Xubuntu fixing Skype video upside down

To check how its going close your Skype session and run the following from the inside your command line:

bash -c 'LD_PRELOAD=/usr/lib/i386-linux-gnu/libv4l/v4l1compat.so skype'

Its working…

Go ahead and update your Skype luncher on you panel with this line to start fixed Skype

You may create executable file to run Skype session

#!/bin/bashRead the rest

CloudLinux, lveinfo issue

Problem when lveinfo reflects an empty or error results

root@server[~]# lveinfo -u username 

Error while reading lve_version from database

root@server [~]# lveinfo -u username 

+—-+–+—-+—-+—-+—+—+—+—+

|From|To|aCPU|mCPU|lCPU|aEP|mEP|lEP|EPf|

+—-+–+—-+—-+—-+—+—+—+—+

To fix this out:

/etc/init.d/lvestats stop 

mv /var/lve/lveinfo.db /var/lve/lveinfo.db_old 

/etc/init.d/lvestats start 

Stats should start showing in ~1 minute

root@server [~]# lveinfo -u username 

+———–+———–+—-+—-+—-+—+—+—-+—+—+—+—–+—–+—–+—–+—–+——+—+—–+—–+—–+—–+—–+
| From | To |aCPU|mCPU|lCPU|aIO|mIO|lIO |aEP|mEP|lEP|aVMem|mVMem|lVMem|aPMem|mPMem|lPMem |EPf|VMemF|PMemF|aIOPS|mIOPS|lIOPS|
+———–+———–+—-+—-+—-+—+—+—-+—+—+—+—–+—–+—–+—–+—–+——+—+—–+—–+—–+—–+—–+
|07-28 12:35|07-28 12:36| 0 | 1 | 9 | 0 | 3 |3072| 0 | 0 | 20| 0 | 0 | 1.0G| 6.3M| 6.5M|256.0M| 0 | 0 | 0 | 0 | 0 | 1024|
+———–+———–+—-+—-+—-+—+—+—-+—+—+—+—–+—–+—–+—–+—–+——+—+—–+—–+—–+—–+—–+

Done!… Read the rest

Update curl on Centos to the latest version

Find the latest version under the following link:

http://curl.haxx.se/download/?C=M;O=D

For instance curl-7.46.0 version

Download and install it

cd /usr/local/src/
curl http://curl.haxx.se/download/curl-7.46.0.tar.gz | tar xvz
cd curl-7.46.0/
./configure && make && make install
curl -V
Read the rest

How to recreate WordPress table

The error's output like the following:

Error    : Table 'XXXX_wrdp1.wp_comments' doesn't exist

mysql DATABASE_NAME;
DROP TABLE IF EXISTS wp_comments;
CREATE TABLE wp_comments (
comment_ID bigint(20) unsigned NOT NULL auto_increment,
comment_post_ID int(11) NOT NULL default '0',
comment_author tinytext NOT NULL,
comment_author_email varchar(100) NOT NULL default '',
comment_author_url varchar(200) NOT NULL default '',
comment_author_IP varchar(100) NOT NULL default '',
comment_date datetime NOT NULL default '0000-00-00 00:00:00',
comment_date_gmt datetime NOT NULL default '0000-00-00 00:00:00',
comment_content text NOT NULL,
comment_karma int(11) NOT NULL default '0',
comment_approved varchar(20) NOT NULL default '1',
comment_agent varchar(255) NOT NULL default '',
comment_type varchar(20) NOT NULL default '',
comment_parent bigint(20) NOT NULL default '0',
user_id bigint(20) NOT NULL default '0',
PRIMARY KEY (comment_ID),
KEY comment_approved (comment_approved),
KEY comment_post_ID (comment_post_ID),
KEY comment_approved_date_gmt (comment_approved,comment_date_gmt),
KEY comment_date_gmt (comment_date_gmt)
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;

You may know about WordPress table's structure here:

http://codex.wordpress.org/Database_Description#Table:_wp_comments… Read the rest

How to upgrade ClientExec to the latest version

The update process is really simple

1. Backup your MySQL Database

2. Backup your files

3. Remove from folder where the ClientExec installation is located all except config.php and uploads/ folder

4. Download the latest version from https://www.clientexec.com/download.php?fuse=files&view=FileList

5. Place all files from zip except config.phpRead the rest

How to mount your Android device over WiFi

Install on your android device Samba Server (I believe this best one)

https://play.google.com/store/apps/details?id=com.icecoldapps.sambaserver&hl=en

There is not additional configuration on Windows 7,8. Simply run Windows+R and type here \\XX.XX.XX.XX

Where XX.XX.XX.XX is your device's local IP address

Xubuntu:

Ensure XX.XX.XX.XX is pinging, if not try to either restart WiFi or reboot your phone

Try to mount your device

sudo mkdir /mnt/android/

sudo mount -t cifs //XX.XX.XX.XX/storage
Read the rest

Changing Drupal’s theme via mysql command line

Download for example "garland" theme to ./sites/all/themes folder from

https://www.drupal.org/project/garland

Then:

UPDATE dr_system SET status=1 WHERE name = 'garland';

Then:

UPDATE dr_variable SET value='s:7:"garland"' WHERE name = 'theme_default';
TRUNCATE dr_cache;
TRUNCATE dr_cache_bootstrap;
TRUNCATE dr_cache_block;

Here is Drush method

drush vset theme_default garland
Read the rest

How to change a limit email message size in Exim

You may do it either via cPanel

WHM –> Service Configuration –> Exim Configuration Editor –> Advanced Editor

or

Using command line update /etc/exim.conf file with the following line

message_size_limit = 50M

To verify changes run the following command

exim -bP | grep message_size_limit

 … Read the rest