Ubuntu Phone goes global – cheap and special, but do you really want one?

Ubuntu Phone! They’re a new thing this year, and they just got viral globally. It appears that the smartphones are finally set to launch everywhere, not just in Europe and China. The Spanish manufacturer BQ will start shipping the Aquarius E5 Ubuntu everywhere, and other manufacturers using the OS on their phones may soon follow.


Ubuntu phone

Why should you be excited about the Ubuntu phone?


Let’s be honest, most of us will not remember this device by its name but by its OS, at least for now. The E5 Ubuntu edition has a rather low cost at €199.90; price tag which mirrors its tech specs: 5” 720 x1280p screen, 1.7 GHz quad core MediaTek chip with 1 GB of RAM and 16GB of internal memory. But it’s not all about the specs, right? It’s all about the joy and exclusive feeling of having a Linux-OS smartphone.


The OS is selling itself on the change in app-to-app user function as it uses some customizable scopes to bring related contents to a single home screen. You won’t be using as many apps because you would plug in your services to a scope.


If you’re in the US, you may just want to pass on this device if you are really connected to your virtual world. The $200 Ubuntu phone has no LTE and the HSPA+ antennas don’t support AT&T and T Mobile frequencies. Even if you live in other countries, you may want to check if your preferred carriers have 900 and 2100 MHz HSPA+ support if you need the device to work on the Internet.


Source: The Verge


Sample apt.sources file with

Remove the us. part if you arent on a US server.

change the word precise to whatever your version of ubuntu is.



deb mirror:// precise main restricted universe multiverse
deb mirror:// precise-updates main restricted universe multiverse
deb mirror:// precise-backports main restricted universe multiverse
deb mirror:// precise-security main restricted universe multiverse

deb precise main restricted
deb-src precise main restricted
deb precise-updates main restricted
deb-src precise-updates main restricted
deb precise universe
deb-src precise universe
deb precise-updates universe
deb-src precise-updates universe
deb precise multiverse
deb-src precise multiverse
deb precise-updates multiverse

deb precise-security main restricted universe multiverse
deb-src precise-security main restricted universe multiverse

deb precise partner
deb-src precise partner
deb precise main
deb-src precise main



dpkg-divert local redirection of bins in Ubuntu

[et_pb_section admin_label=”Section” fullwidth=”on” specialty=”off”][et_pb_fullwidth_post_title admin_label=”Fullwidth Post Title” title=”on” meta=”on” author=”off” date=”on” categories=”on” comments=”off” featured_image=”on” featured_placement=”background” parallax_effect=”off” parallax_method=”on” text_orientation=”center” text_color=”dark” text_background=”on” text_bg_color=”rgba(255,255,255,0.9)” module_bg_color=”rgba(255,255,255,0)” title_all_caps=”off” use_border_color=”off” border_color=”#ffffff” border_style=”solid”]

[/et_pb_fullwidth_post_title][/et_pb_section][et_pb_section admin_label=”section”][et_pb_row admin_label=”row”][et_pb_column type=”4_4″][et_pb_text admin_label=”Text” background_layout=”light” text_orientation=”left” use_border_color=”off” border_color=”#ffffff” border_style=”solid”]

It seems sometimes you get a new package from somewhere and its just an update for an older package but from a different author, or a slightly different functioning bin. The dpkg-divert command allows you to replace a binary installed upon the system, and have this replacement persist even if you upgrade packages. One common reason to do this is if you’re using a mailserver such as qmail, and you wish to replace the file /usr/lib/sendmail with the version from that package. In this case making a diversion is a good solution. Well you can locally divert how you refer to the bin and make dpkg aware of this via the following command :

dpkg-divert --local --divert /usr/bin/sumguy --rename --add /usr/bin/sumguy-longer-name-newer-package

In this case our package provides sumguy-longer-name-newer-package  as the binary and hence the command, but thats a LOT to type 🙁 we just want to call it by its simpler name of
so we use the above divert command and voila! we are good to go.

Linux shell

Adding extra Swap to Linux

On one of my servers I needed extra swap space because the datacenter screwed up the partitioning and I didn’t have time to reimage the machine. so an easy way to add swap after partitioning is just to add it via a new file on any partition.

lets say you want to add 8GB of swap in a file called swapfile based in /

# generate empty swap file
sudo dd if=/dev/zero of=/swapfile bs=1024 count=8192k
# make the file into swap ready file
sudo mkswap /swapfile
# enable swap on said file so the OS / kernel knows about it
sudo swapon /swapfile
#list enabled swap
swapon -s

This will last till a reboot, so you need to add it to /etc/fstab.  type :

sudo nano /etc/fstab

add at the bottom :

/swapfile       none           swap    sw      0       0

and you are done 🙂

Linux shell tuts

Remove all old installed but unused kernels

I just noticed I had 8 kernels installed on a machine. dont need but one…. so I rebooted to make sure I was using the newest, and removed all the old ones via these simple commands :


Ubuntu / Debian / dpkg / Apt:

dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt-get -y purge

Thats a one liner, so just copy paste the whole thing.

Centos / RHEL / Yum / RPM:

uname -r

See which kernel is being used.

rpm -q kernel

get a list of installed kernels

yum install yum-utils

make sure yum-utils is installed

package-cleanup --oldkernels --count=1

Cleanup old packages, the count can be any number and it will keep that number of the latest packages. count 2 will keep the current newest and one more, 3 will keep the current newest and 2 more and so on.

nano yum.conf

edit /etc/yum.conf and look for installonly_limit and change it to any number, this was the kernels will be cleaned up automatically. I have mine set to 3.



Linux shell

secure copy ( SCP ) howto 102

Secure Copy (SCP) provides a secure and authenticated method for copying files between hosts. SCP relies on Secure Shell (SSH).

Copy the file “somefile.txt” from a remote host to the local host

scp [email protected]:somefile.txt /some/local/directory

Copy the file “somefile.txt” from the local host to a remote host

scp somefile.txt [email protected]:/some/remote/directory

Copy the directory “somedir” from the local host to a remote host’s directory “anotherdir”

scp -r somedir [email protected]:/some/remote/directory/anotherdir

Copy the file “somefile.txt” from remote host “” to remote host “”

scp [email protected]:/some/remote/directory/foobar.txt \

[email protected]:/some/remote/directory/

Copying the files “somefile.txt” and “anotherfile.txt” from the local host to your home directory on the remote host

scp somefile.txt anotherfile.txt [email protected]:~

Copy the file “somefile.txt” from the local host to a remote host using port 1234

scp -P 1234 somefile.txt [email protected]:/some/remote/directory

Copy multiple files from the remote host to your current directory on the local host

scp [email protected]:/some/remote/directory/\{1,2,3\} .

scp [email protected]:~/\{somefile1.txt,somefile2.txt\} .