How to update server’s time

I did it on OpenVZ server and it works like a charm

rm -fv /etc/localtime
ln -s /usr/share/zoneinfo/GMT /etc/localtime
or
ln -s /usr/share/zoneinfo/CST6CDT /etc/localtime

Note the sym link may not work, so just copy file physically

Set date and sync it on hardware

date 081209312016
hwclock --systohc

The syntax is `date MMDDhhmmYYYY`.… Read the rest

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

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

How to upgrade your WordPress to the latest version via command line

It may fix various problems with your WordPress

First of all backup your files and database

Enter your www/ folder

cd /home/USER/public_html

Download/extract and replace files using latest WordPress version from an original source

wget https://wordpress.org/latest.zip

unzip latest.zip

rsync -avz wordpress/* ./
Read the rest

Upgrade guake on Xubuntu 14.04, 18.04.1 LTS

I’ve upgraded my guake from 0.4.0 to 0.5.0 as it was glitched after release upgrade

Download the latest version from https://github.com/Guake/guake/

Install dependience:

sudo apt-get build-dep guake

Use the following source list in case you got “Unable to find a source package for guake” error

Don’t forget backup your current list /etc/apt/sources.listRead the rest

How to reduce the size of mp3 files

Do the install of lame program

sudo apt-get install lame -y

Try it now

lame --mp3input -b 32 input.mp3 output.mp3

The size of ~5M will be decreased to ~900K

Its pretty good if you don't need a good qulity of your media

For bulk mp3 converts login your media folder and run:

for i in `ls |grep -i mp3`; do lame --mp3input -b 32 "$i" ./output/$i;
Read the rest

Xubuntu shortcuts configuration file location

The configured keyboard shortcuts are stored in :

~/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml

cat /home/username/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml |grep -i lock

Output:

<property name="&lt;Super&gt;l" type="string" value="xflock4"/>… Read the rest

How to repair Boot loader Grub

Boot your computer from a Live USB/CD/DVD

Note: only use a Live USB/CD/DVD of the Ubuntu version that you wish to repair.

However I've used Xubuntu 12.04 to repair 14.04 version

Find a root partition where your Ubuntu is installed

sudo fdisk -l

sudo parted -l

Run the following command into your teminal

sudo mount /dev/sdaX /mnt

Where X is number of partition where your Ubuntu is installed

For example:

sudo mount /dev/sda1 /mnt

This mounts the Ubuntu root partition on the hard drive

Run the following command to install Grub

sudo grub-install /dev/sda --root-directory=/mnt

Done

Reboot your machine

sudo reboot

You should see now grub menu now with your installation, so just login your Ubuntu now and run the following:

sudo update-grub

It will update your grub if you have other OS installed

sudo reboot

Done!… Read the rest