CLI iso HowTo

From Docs

Jump to: navigation, search


This How-to will cover how to install and add software to the Unity Command line ISO in VMware Player and it should also work if you’re installing the CLI Distro to the Computer itself. This How-To will assume that you know how to create a virtual machine in VMware player.

Getting the ISO

First you need to download the ISO if you have not already. You can get it from here where you can choose your mirror

Cli howto 01.jpg

which will take to a page like this:

Cli howto 02.jpg

Then click on isos and you will see the one you will need which in this case will be unity-i586-cli.iso.

Cli howto 03.jpg

Installing the ISO

Now that you got the proper ISO downloaded you want to boot it up in your virtual machine and the first thing you will be greeted with is the boot screen:

Cli howto 04.jpg

Go ahead and hit enter or wait a few minutes and you will be booted to the command line.

Cli howto 05.jpg

Once your here you have an option to log in as guest with the password being guest or as root with the password being root. For this how-to we will log in as guest. When you log in you can do the ls command and you will see a temp folder so there is not too much here but we will take care of that after we install Unity. Now logged in we will type su at the prompt and hit enter. You will then be asked to enter the password which is root. Than you will want to enter smart –shell at the command prompt and hit enter. Your screen should look like this:

Cli howto 06.jpg

Now we will enter ls to see what is installed from smart

Cli howto 07.jpg

As you can see there is quite a bit here but we are only interested in one thing and that is the unity installer. Go ahead and type unity-installer at the command prompt and hit enter. This will start the installer and it is just like the GUI installer inside the regular Unity ISO.

Cli howto 08.jpg

Just go ahead and push the right arrow key and hit enter. For this install we will let the installer partition and format the hard drive for us by selecting use free space at the next screen. Since it is already highlighted just hit enter.

Cli howto 09.jpg

You will now see the installer format and make partitions and from there it will start copying files over to the hard drive.

Cli howto 10.jpg

After this the screen will give Bootloader options, once again just accept the defaults here too.

Cli howto 11.jpg

Then you will be taken to a screen that will show you the summary and once again hit enter to accept the defaults. After this the installer will tell you to halt the live system, restart your computer and take out the disk. At this point you will be taken back to the command prompt and type reboot and the system will reboot.

First System Boot

When booting the system for the first time, you will be taken to a text login prompt . Right now the only log in available is root with the password of root. After you log in you will want to create a user by typing on the command line:

useradd –d /home/guest –s /bin/bash –g users guest

Now useradd –d /home/guest tells Unity to add the user guest (Note: guest is just an example, you may choose any name you wish) and –s /bin/bash ­tells Unity to set the users default shell as bash –g users guest tells Unity to set users and guest as the users group.

Cli howto 12.jpg

Now that that is done logout of the root account by typing exit and log in as the user you just created. At this point all we have is the command line so we want to install some type of Desktop Environment so once logged in as the user type su and the root password. In order to get to a Desktop we need x11 installed so type smart update to make sure we have the latest packages and then after that is done type smart install task-x11.

Cli howto 13.jpg

Hit enter when it ask you to confirm changes (The capital Y is the default option) and then you get to wait some more. After this though we are still not done, now we need some video drivers and for this instance we can install x-11 vesa drivers (If your installing on a Computer and know what kind of video card you have you can install the appropriate driver) so now type x11-driver-video-vesa and accept the defaults.

So far we have everything all ready to go to our Desktop Environment (DE) except the DE itself. So now you must decide what DE you want and the Unity Developers have given many choices from Openbox to KDE4. For this example we are going to install XFCE which is like the GNOME DE but with a lighter footprint. After smart gets done installing the vesa drive you now need to type smart install task-XFCE.

Cli howto 14.jpg

After the wait is over you will want to install one more package and that is smart-gui so at the command prompt type smart install smart-gui and accept the defaults once again. This will have smart be in its GUI (Graphical User Interface) form once we are inside our DE. After smart is all done type exit to log off of root and then at the user prompt type startx and enjoy the new system you created.

Return to Unity Homepage
Personal tools
Getting Help