Sunteți pe pagina 1din 12

• Home

• Multimedia Related

• Linux

• Counter Strike

• Phone related

• Stay Metal

The Perfect Guide for Installing Fedora 12 and NCTUns using VirtualBox 11/22/2010

5 Comment(s)

Once you start to install NCTUNS on your system by yourself, you might encounter
several dependency errors. If you are not a Fedora rooter like me, and you do not
have it installed as an OS on a separate partition, then just for the sake of using
NCTUNS, it doesn't make sense at all to install Fedora first on a separate partition
and then get the latter running on it. Instead I suggest, you use a virutalization
software like 'VirtualBox' to get Fedora running and then install NCTUNS under it.

Lets begin -
Initial step - The Requisites...

1. Virtual Box
Download Virtual Box from here. depending on the operating system you are using.
For ubuntu 10.10 users just follow the following steps.

To add the Ubuntu 10.10 VirtualBox repository, simply copy/paste the


following commands in a terminal:
echo "deb http://download.virtualbox.org/virtualbox/debian maverick non-free
#VirtualBox" | sudo tee -a /etc/apt/sources.list
wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo
apt-key add -

Then, to install VirtualBox:


sudo apt-get update
sudo apt-get install virtualbox-3.2

2. Fedora 12 - The torrent link to it - Click To Download.

3. NCTUNS v6.0 - Click To Download.You do not need to download this for now.
Download it later, after you install fedora

And now since you have all the requisites ready with you, its time to begin installing
Fedora under VirtualBox.

Step 1 - Run VirtualBox and click on New to create a new virtual machine.

Step 2- Click Next To Continue


Step 3. Assign the name to your Virtual Machine as 'Fedora' and the OS type as
'Linux'.

Step 4. Set the memory size for the virtual machine. I used 2GB. Click on Next to
continue.
Step 5. Click on Next to create a new virtual disk.

Step 6. Create New Virtual Disk Wizard starts, click on Next to continue.

Step 7 - Select Dynamically expanding storage and click on Next to continue.


Step 8 - Specify a location for the disk image and size. If your system drive is low on
space, you might want to use a different drive. Click on Next to continue.

Step 9 - Click on Finish to finish creating a new virtual disk.


Step 10 - Click on Finish to finish creating of the new virtual machine.

Step 11 - Now back to the main windows of VirtualBox with the newly created virtual
machine for Fedora. Double click on CD/DVD-ROM. Note that a lot of features are
turned off by default. If you want to change the settings, click on Settings to modify
them.

Step 12 - Check Mount CD/DVD Drive and select ISO Image File. Click on the
folder icon.
Step 13 - Click on the Add icon to locate the iso image you downloaded. Click on
Select and you will be brought back to the dialog in previous step. Click on OK.

Step - 14 Click on Start icon in the upper left corner to start installation.

Step 15 - Click anywhere inside the virtual machine window, so that you can use
your keyboard and mouse inside the virtual machine. If you ever want to release the
mouse and keyboard from the virtual machine, press right Ctrl key. Double click on
Install to Hard Drive.
Step 16 - The installer runs. Click on Next.

Step 17 - Select the language and click on Next.

Step 18 - A warning dialog shows. Click on Re-intialize drive to continue.

Step 19 - Set a hostname and click on Next.


Step 20 - Select a time zone and click on Next.
Step 21 - Enter root’s password and click on Next.

Step 22 - Use the default scheme for partitioning. Click on Next.

Step 23 - A confirmation dialog shows. Click on Write changes to disk.

Step 24 - The installer copies the live image to the virtual disk. When the installation
is done. Click on Close.

Step 25 - When the virtual machine is in the shutdown state. We want to un-mount
the Live CD, so the virtual machine won’t boot to it again. Double click on CD/DVD-
ROM and uncheck Mount CD/DVD Drive. Please see the screenshots for step 11 and
12.

Step 26 - Start the virtual machine.

Step 27 - When the VM boots up the first time, a setup wizard runs. Click on
Forward.

Step 28 - Click on Forward.

Step 29 - Create a user, enter a password of yout choice and click on Forward.

Step 30 - Click on Network Time Protocol and check Enable Network Time
Protocol. Click on Forward.

Step 31 - Click on Finish.

Congratulations, the installation process for fedora completes here.

Now we begin installing the NCTUNS client.

Step 32 - Download NCTUNS from the link mentioned at the starting of this blog
under the Requisites section. Place it in the Downloads folder and then extract it.

Step 33 - Open a terminal and browse to the Downloads folder using the cd
command and then enter the NCTUns-6.0 folder.
Step 34 - Open a terninal and type 'su'. When asked for the password enter your
root password(the password you had set in step 21).

Step 35 - When you have the root access, type in the following command in the
terminal.
yum groupinstall "Development Libraries" "Development Tools" "Legacy Software
Development"

Step 36 - Next after the group install is done, type in the following command -
yum install mkinitrd -y

Step 37 - Install the xterm rpmfile


yum install xterm

Step 38 - Now you have all the required dependency files and you shouldn't face any
errors while installing NCTUns. Type in the following cmd.
./install.sh
Let the above cmd execute. It may take a while for it to finish executing. Once you
are done till this step, without any errors, only then move on to the next step. If you
come across any errors now, it seems that you have messed up one of the previous
steps. Just cross check if you've done everything correctly so far.

Step 39 - You must now configure your shell preferences to include the NCTUns
environment variables. Add these lines to the file /home/user/.bashrc by simply
typing the following commands.
export NCTUNSHOME=/usr/local/nctuns
export NCTUNS_TOOLS=$NCTUNSHOME/tools
export NCTUNS_BIN=$NCTUNSHOME/bin
export PATH=${NCTUNS_BIN}:${PATH}

Step 40 - Thats it you are done with installing NCTUNS. Now restart Fedora.

Step 41 - In order to start using the nctunscleint, open a new terninal and gain root
access by typing 'su' and then enter your root password.

After this you need to type in the following cmd.

source /usr/local/nctuns/etc/nctuns.bash
dispatcher

Step 42 - Leave the terminal running and open another terminal to start coordinator
and then type the follwoing cmd.
source /usr/local/nctuns/etc/nctuns.bash
coordinator

Step 43 - Open another terminal and type in the following cmd to get nctunclient
running.
source /usr/local/nctuns/etc/nctuns.bash
nctunsclient

Please note - You need to repeat steps 41, 42 and 43 in order to start nctuns
everytime.

S-ar putea să vă placă și