Wednesday, January 30, 2013

ns2 software in Fedora


Download the software ns-2.35Click here to download

Copy your downloaded file in /home/username.

Open terminal: become root(be careful now)

$su
Untar the file which you have downloaded by entering following commands:

$tar -xzvf ns-allinone-2.35.tar.gz
$cd ns-allinone-2.35
$./install
It will automatically compile, make and install.

After installation, PATH information will be shown on the screen.

Copy PATH, LD_LIBRARY_PATH, TCL_LIBRARY from the terminal to the .bash_proflie file.

Then run command:

$source .bash_profile
You will find .bash_profile in /root/.bash_profile
As you can see, it is a hidden file, so you can do ls -a to list hidden files.

The .bash_profile contents will look like
$cat .bash_profile
# .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
~/.bashrc
fi
# User specific environment and startup programs
PATH=$PATH:$HOME/bin:/home/login-fedora/Downloads/ns-allinone-2.35/bin: ... 
 ... /home/login-fedora/Downloads/ns-allinone-2.35/tcl8.5.10/unix:/home/login-fedora/Downloads/ns-allinone-2.35/tk8.5.10/unix
export PATH
LD_LIBRARY_PATH=/home/login-fedora/Downloads/ns-allinone-2.35/otcl-1.14:/home/login-tesla/Downloads/ns-allinone-2.35/lib
TCL_LIBRARY=/home/login-fedora/Downloads/ns-allinone-2.35/tcl8.5.10/library
After you complete your installation process, to check whether you have installed correctly or not, run the following command and check for the following output:

CHECK 1:

$cd /home/ns-allinone-2.35/ns-2.35
$./ns
output: % (modulus sign)

CHECK 2:

$cd /home/ns-allinone-2.35/nam-1.15
$./nam
output: nam console window will open For any query comment below.

Thursday, January 24, 2013

sudo in Fedora 17

Configuring sudo in fedora

Open terminal: Become a root user
  $su
Write this command in terminal:
  $echo 'your_username ALL=(ALL) ALL' /etc/sudoers
your_username= add your user name(the name by which you login)

Its done! Now, you can use sudo.

Installing Dropbox in Fedora

Open a terminal
  $sudo or su
  $cd /etc/yum.repos.d
After opening yum.repos.d directory, download the repo file. In terminal:
  $wget http://dl.dropbox.com/u/30876345/repo/dropbox.repo
  $yum update
Now, simply install dropbox
  $yum install nautilus-dropbox