Monday, December 26, 2016

Installing nodejs from the command line on linux

sudo apt-get install nodejs

doesn't install the latest version


sudo curl -sL https://deb.nodesource.com/setup_7.x |sudo bash -

sudo apt-get install -y nodejs

Friday, December 23, 2016

Updating existing software on linux from command line

These commands will upgrade all existing software packages on linux and remove any no longer used packages/dependencies

sudo apt-get update -y
sudo apt-get upgrade -y
sudo apt-get dist-upgrade
sudo apt-get autoclean
sudo apt-get autoremove 

Monday, December 19, 2016

Using new formatted paritions on linux

When setup linux on my system, I created several new partitions other than home
Once I finished installation, I found out I could only view these partitions, but not copy to them or remove from them

The reason is because these partitions were formatted by a filesystem owned exclusively by root

To change that, change the owner of the partition

mount /dev/sda4 /mnt/
chown -R khaled:khaled /mnt/
umount /dev/sda4