Monthly Archives: November 2014

Skype missing shared object file

My Skype refused to start, saying following error:

skype: error while loading shared libraries: libGL.so.1: cannot open shared object file: No such file or directory

First locate “missing” library or use find / -name libGL.so.1 command.

locate libGL.so.1

/etc/alternatives/glx--libGL.so.1-x86_64-linux-gnu
/etc/alternatives/nvidia--libGL.so.1-x86_64-linux-gnu
/usr/lib/mesa-diverted/i386-linux-gnu/libGL.so.1
/usr/lib/mesa-diverted/i386-linux-gnu/libGL.so.1.2.0
/usr/lib/mesa-diverted/x86_64-linux-gnu/libGL.so.1
/usr/lib/mesa-diverted/x86_64-linux-gnu/libGL.so.1.2.0
/usr/lib/x86_64-linux-gnu/libGL.so.1
/usr/lib/x86_64-linux-gnu/nvidia/libGL.so.1
/usr/lib/x86_64-linux-gnu/nvidia/current/libGL.so.1

I’m using Intel Graphics, so I picked up Mesa driver. Skype is i386 application. My choice was the directory below containing “missing” library.

nano /etc/ld.so.conf.d/skype.conf

/usr/lib/mesa-diverted/i386-linux-gnu/

ldconfig -v

Happy Skyping!

Restore WordPress site from backup

I’m doing regullar backups using BackUpWordpress plugin.

Find the backup my-site-complete-backup.zip file in directory like this /var/www/wordpress/wp-content/backupwordpress/ and copy it to new WordPress site location.

cd /var/www/wordpress/
unzip my-site-complete-backup.zip
mysql -h localhost -u root -p database-name < my-site-complete-backup.sql
rm -f my-site-complete-backup.sql

If you moved your site to another domain name, you will need to do this hack.

/var/www/wordpress/wp-login.php

Find this line:

require( dirname(__FILE__) . '/wp-load.php' );

and insert the following lines below:

update_option('siteurl', 'http://your.domain.name/the/path' );
update_option('home', 'http://your.domain.name/the/path' );

Login to WP runing on new domain: https://your.domain/wp-admin/

Do not forget to remove hack lines in the end!