Category: GNU/Linux

How to install Ubuntu 16.04 and Automatically Install all my apps

How to install Ubuntu 16.04 and Automatically Install all my apps

I’m assuming this gets searched quite a lot. It is one thing installing ubuntu, but another hugely time consuming gig installing all the old applications that you like. Couple that with your configurations of .bashrc, application configs, editor configs and logins for apps and it becomes a seemingly impossible task.

But it’s not it can be done with an awesome tools known as ansible which will become known to you in due time. First off lets install it.

Remember this tutorial is just for a ffresh install of the Desktop ubuntu version, although the ansible script can be modified for a server. If you just want to upgrade your ubuntu 14.04 LTS server to Ubuntu 16,.04 check this out

Installing Ubuntu 16.04

  1. Download the desktop version of Ubuntu 16.04, it is a .iso.
  2. Get an empty USB Flash drive (2 gb or more) or clear an old one with ubuntu (Or use gparted it’s the best, see below)
  3. Get a PC ready either for a dual boot (Windows and Ubuntu) or just Ubuntu. I think the .iso we just downloaded has gparted – a utility to partition space to install operating systems – installed. Otherwise get gparted here. Clear enough free space for ubuntu (20gb should be ok) with gparted.
  4. On an ubuntu machine: Windows key -> Search for Startup disk Creator -> Open it -> Make a Startup disk with the ubuntu .iso Alternatively if you are on windows you can use Unetbootin to Install the iso onto a USB
  5. Get the pc you have cleared to install ubuntu on and plug in the startup/ bootable usb, make sure to select the drive of the USB to boot from
  6. Now say install ubuntu not try ubuntu without installing Unless you just want to try it
  7. It will prompt for your language choice, but this is a good time to connect to your wifi in the top right.
  8. Select your language and continue, then depending on your preference choose Download updates while installing ubuntu and Install third-party software for graphics and Wi-Fi hardware, Flash,MP3 and other Media
  9. Continue and wait a while…
  10. It will then ask the installation type. Make your choice depending on if you want to dual boot and just want the new ubuntu or something else. You will need to make some swap space available for memory if you choose something else, use this guide on the manual ubuntu partitioning. (I changedto install alongside, because I got an error with the manual method, I also didn’t connect to the wifi)
  11. Next select your timezone/city then your keyboard layout
  12. Next your name (this is used as the name of your home folder /home/surfer190 so make sure it is lower case and simple. Choose a password and continue. You can enrypt your home folder if you aren’t the only user on the pc.
  13. Install then completes, Woohoo fresh install

Customisation and Automatically Install all my apps

First thing I noticed was the unnatural scrolling direction of the two-finger scroll on the touchpad.

 

How to Change Desktop Environment from Xfce to KDE

Don’t use Xfce, use KDE!

Why is Xfce junk?

The style is very half windows, half mac, half-a-job. There is also no built in support for dual monitors so you have to use xrandr everytime you boot which is very annoying. Sure it is lightweight, but it is not good enough.

Why is KDE the best?

Well for one, it was the first ever GNU/Linux Desktop environment, announced in 1996. So they have had time to refine the experience and it is very smooth and customisable. It is also now the most popular desktop environment and rightly so.

What about the rest?

Well Gnome is alright but you will pull your hair out after a while. Unity for ubuntu is really good and I would advise sticking with it if you are on ubuntu. I have not tested Cinnamon but apparently it is very windowsy, so you may want to stay clear.

How to Change Desktop Environment from Xfce to KDE

Take note that in this case I am using Debian 8 as the operating system, with the apt-get package manager you can probably use the same commands but with your package manager of choice eg. aptitude, yum, emerge

1. First install KDE, otherwise if you remove XFCE first then your network connection manager may not work.


sudo apt-get purge xfce4

2. Install KDE


sudo apt-get install ~t^desktop$ ~t^kde-desktop$

3. Reconfigure the Display manager and select KDE, this probably appened in the previous step


sudo dpkg-reconfigure kde

4. Configure the default X-session to start. Select KDE.


update-alternatives --config x-session-manager

5. Autoremove Xfce


sudo apt-get autoremove

What Now?

Enjoy the best Desktop environment there is. Welcome to the calm world where almost everything is intuitive…

switch-xfce-to-kde

Demystifying Unix File Permissions

Never really understood what was going on with Linux File Permissions and chmod?

If you understand binary then this will be a piece of cake. Here is a simple blog post to demystify Unix File Permissions:

Ever seen:

-rwxr-xr--  1 dgerman  staff  823 Dec 16 15:03 findPhoneNumbers.sh

Operations:

  • r – Read
  • w – Write
  • x – Execute

Now why are there 3 sets of rwx?

  1. User – The owner of the file
  2. Group – The group owning the file
  3. Others (Rest of the World) – anyone

Below is a table Showing numeric permissions.

# Permission rwx
7 read, write and execute 111
6 read and write 110
5 read and execute 101
4 read only 100
3 write and execute 011
2 write only 010
1 execute only 001
0 none 000

When you give a 777 permission to a file/folder, you are giving user, group and anyone ((20 x 1 + (21 x 1 + 22 x 1)) = 7. That is Read, write and Execute.