Results 1 to 6 of 6

Thread: adding path

  1. #1
    Junior Member registered user
    Join Date
    Oct 2004
    Posts
    11

    adding path

    hi,

    i am a newbie to knoppix

    These are the instructions to be carried out in red hat linux. how can this be done in knoppix.
    Do u have to open bashrc file to do this? I see the command is different from the red hat.


    9. Put /root/ns/ns-allinone-2.27/bin into your PATH environment by editing the .bash_profile at root directory by typing: gedit .bash_profile
    10. You will most like encounter a line: PATH=$PATH:$HOME/bin:
    11. Add in your path for ns2 to the above line: PATH=$PATH:$HOME/bin:/root/ns/ns-allinone-2.27/bin:
    12. You are ready to run ns2.

    Please help me. thank you

  2. #2
    Senior Member registered user
    Join Date
    Oct 2004
    Posts
    260
    You can type "less .bash_profile" in a shell to see what that file looks like and if you have it.
    I don't think knoppix comes with gedit-does it? I'm not in knoppix right now.
    I seem to edit bashrc, xinitrc, and profile files all the time in osx darwin but not linux.
    Anyway it is possible to do this without editing the file by typing the line you supplied
    PATH=$PATH:$HOME/bin:/root/ns/ns-allinone-2.27/bin: <enter>
    and then issuing "export PATH" <enter> That's only suppose to last for the time that terminal is open.
    Probably editing the file with a text editor that you have practiced on will work best for you.
    Take a look at kedit.

  3. #3
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    USA, IL
    Posts
    1,041

    Re: adding path

    " jstar " is the editor I use, and IIRC it's on the CD. Text-based and wordstar key bindings.

    Quote Originally Posted by roustabout
    hi,

    i am a newbie to knoppix

    These are the instructions to be carried out in red hat linux. how can this be done in knoppix.
    Do u have to open bashrc file to do this? I see the command is different from the red hat.


    9. Put /root/ns/ns-allinone-2.27/bin into your PATH environment by editing the .bash_profile at root directory by typing: gedit .bash_profile
    10. You will most like encounter a line: PATH=$PATH:$HOME/bin:
    11. Add in your path for ns2 to the above line: PATH=$PATH:$HOME/bin:/root/ns/ns-allinone-2.27/bin:
    12. You are ready to run ns2.

    Please help me. thank you

  4. #4
    Junior Member registered user
    Join Date
    Oct 2004
    Posts
    11
    hi,


    in the terminal write:
    PATH="/home/knoppix/ns/ns-allinone-2.28/bin" <enter>
    export path <enter>

    but this is only temporary afte i closed the shell for that particular session and start a new shell. I have to retype it again. How can i make it permanent?


    thank youi

  5. #5
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    USA, IL
    Posts
    1,041
    ' jstar .bash_profile '

  6. #6
    Junior Member registered user
    Join Date
    Oct 2004
    Posts
    11
    For detail instruction follow the url betllow


    http://www.knoppix.net/forum/viewtop...b6a2ddf38fcd92

Similar Threads

  1. Mystery path ~/.dist/bin
    By moon in forum General Support
    Replies: 0
    Last Post: 01-23-2008, 08:26 PM
  2. Installing jdk 1.5 and setting path
    By A. Jorge Garcia in forum General Support
    Replies: 7
    Last Post: 09-05-2005, 06:40 PM
  3. path environment
    By roustabout in forum Hdd Install / Debian / Apt
    Replies: 1
    Last Post: 06-25-2005, 12:54 PM
  4. Path to programs
    By hesa666 in forum MS Windows & New to Linux
    Replies: 0
    Last Post: 05-22-2005, 06:38 PM
  5. Setting Java PATH
    By furryfren in forum General Support
    Replies: 2
    Last Post: 04-21-2005, 03:43 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Intel Core i5-12500T SRL5W 2GHz 18MB 6 Core Socket LGA1700 Desktop CPU Processor picture

Intel Core i5-12500T SRL5W 2GHz 18MB 6 Core Socket LGA1700 Desktop CPU Processor

$114.99



INTEL CORE I9-10940X X-SERIES PROCESSOR | 3.30GHZ | SRGSH picture

INTEL CORE I9-10940X X-SERIES PROCESSOR | 3.30GHZ | SRGSH

$179.99



ASRock b560 ATX Motherboard + Intel Core i5-11600K CPU Combo Gaming + 32 GB DDR4 picture

ASRock b560 ATX Motherboard + Intel Core i5-11600K CPU Combo Gaming + 32 GB DDR4

$300.00



LAST BATCH *Brand New-Sealed* AMD Ryzen 9 9950X3D2 Dual Ed. 4.3GHz 16Core AM5 picture

LAST BATCH *Brand New-Sealed* AMD Ryzen 9 9950X3D2 Dual Ed. 4.3GHz 16Core AM5

$768.00



Intel Core i7-9700 Octa-Core 3 GHz Desktop Processor LGA 1151 picture

Intel Core i7-9700 Octa-Core 3 GHz Desktop Processor LGA 1151

$79.99



Intel Core i7-3770K 3.5 GHz Processor picture

Intel Core i7-3770K 3.5 GHz Processor

$39.00



Intel Core I7-7700 SR338 3.60 Ghz Processor picture

Intel Core I7-7700 SR338 3.60 Ghz Processor

$39.99



Intel Core i7-7700K SR33A 4.20GHz 4-Core LGA1151 CPU Processor picture

Intel Core i7-7700K SR33A 4.20GHz 4-Core LGA1151 CPU Processor

$62.95



AMD - Ryzen 7 5800X3D 8-Core - 16-Thread 3.4 GHz (4.5 GHz Max Boost) w/ Ice Pad picture

AMD - Ryzen 7 5800X3D 8-Core - 16-Thread 3.4 GHz (4.5 GHz Max Boost) w/ Ice Pad

$355.99



Intel 6th Gen Core i7-6700K 4.0GHz (Turbo 4.2GHz) 4-Core LGA1151 CPU SR2L0 picture

Intel 6th Gen Core i7-6700K 4.0GHz (Turbo 4.2GHz) 4-Core LGA1151 CPU SR2L0

$38.00