How to install aspell dicts

aspell -a

Error: No word lists can be found for the language "en_US".

If it doesn't go via yum install aspell-en

It needs to be installed manually

Download from here

http://ftp.gnu.org/gnu/aspell/dict/en/

bzip2 -d aspell6-en-6.0-0.tar.bz2
tar -xvf aspell6-en-6.0-0.tar
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

Exim bounced back message “retry time not reached for any host after a long failure period”

Centos's solution:

cd /var/spool/exim/db
rm -f retry retry.lockfile
rm -f wait-remote_smtp wait-remote_smtp.lockfile
service exim restart

If its still not working backup and remove all under /var/spool/exim/db folder

service exim stop
cp -rp /var/spool/exim/db /var/spool/exim/db_back
cd /var/spool/exim/db
rm -fv /var/spool/exim/db/*
service exim start
Read the rest

How to reset forgotten mysql root password

Login server as root and stop/kill mysql processes

Start mysql server with skip-grant-tables

mysqld_safe --skip-grant-tables

mysql

use mysql;
update user set Password=PASSWORD('new-password') where user='root';
flush privileges;

Done!

Now kill mysql processes and restart your mysql server… Read the rest