Friday, August 23, 2013

Add Swap Partition in Ubuntu after System Installation

I always create swap partition every install new linux distro, and the size usually twice then my RAM around 2 GB to make the system work properly.

But when I was installing debian and used the same swap partition for debian, the swap partition in ubuntu is not available when I checked in system monitor so here what I do to add swap partition in ubuntu after system installation.

This way work for other distro not only in ubuntu, I also try this in arch linux.

For example my swap partition is /dev/sda2

sudo mkswap /dev/sda2
sudo swapon /dev/sda2

To enable this swap partition on boot, add an entry to /etc/fstab

sudo gedit /etc/fstab

then add this entry

/dev/sda2    none    swap   defaults     0   0

Then my swap available again.

Thursday, August 22, 2013

Install Netspeed applet in ubuntu

Netspeed applet like indicator to monitor network traffic such as download and upload speed so I know the speed of my network. I like this indicator and I install it in my ubuntu.


I install netspeed indicator in ubuntu 13.04 just run following command in terminal

sudo add-apt-repository ppa:alexeftimie/ppa
sudo apt-get update
sudo apt-get install indicator-sysmonitor dstat
mkdir -p ~/scripts && cd ~/scripts
wget http://webupd8.googlecode.com/files/sysmon_0.2.tar.gz && tar -xvf sysmon_0.2.tar.gz

then start the indicator

indicator-sysmonitor &




Monday, August 19, 2013

Reinstall Grub with Arch Linux live USB / CD

Installing dualboot or multiboot operating system sometimes can damage the boot loader and make the pc fail to boot as it happened to me when I was installing multiple linux distros a few days ago.

But do not worry because installing grub boot loader is very easy and I use Archlinux live usb to reinstall grub in my laptop.

Here is my way to fix it and reinstall grub using archlinux live usb.

First, I restart my computer and boot from live archlinux usb and I get todefault archlinux shell.

1. Create a root point for root disk in /mnt/root

mkdir /mnt/root

2. Mount root partition to this point

mount /dev/sdXX /mnt/root

3. Now I have to change the root

arch-chroot /mnt/root

4. Now is the time to regenerate grub.cfg

grub-mkconfig -o /boot/grub/grub.cfg

5. The last only install grub back in the MBR

grub-install /dev/sdX

Then reboot the computer and it was working and I can see boot menu to choose which os I will use.