LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-08-2005, 09:27 AM   #16
blindcoder
ROCK Linux
 
Registered: Dec 2003
Location: Berlin, Germany
Distribution: Crystal ROCK
Posts: 108

Rep: Reputation: 15

Quote:
Originally posted by Peleus
peleus@linux:~> azureus
bash: azureus: command not found

Thats after I deleted azureus from /usr/bin
Did you logout and in again as I told you? You need to refresh your PATH variable after moving the stuff to /opt which happens at a login.

Quote:

Out of intrest once we get this working is it going to be a universal process for all these programs assuming I install them in /opt/?
Quite, though some apps automatically use the bin/ directory. You don't have to use symlinks then.

I'll be off for the rest of the day now, so I really hope this solves it now

Bye,
Benjamin
 
Old 11-08-2005, 09:30 AM   #17
Peleus
Member
 
Registered: Mar 2003
Posts: 77

Original Poster
Rep: Reputation: 15
Yeah I reset it too for good measure.
 
Old 11-08-2005, 10:02 AM   #18
Peleus
Member
 
Registered: Mar 2003
Posts: 77

Original Poster
Rep: Reputation: 15
Ok got it semi working (very ugly method)

I just put all the files into my /home/peleus/bin directory, which is going to cause problems eventually.

Anyone know any other way thats neater?
 
Old 11-08-2005, 06:34 PM   #19
Peleus
Member
 
Registered: Mar 2003
Posts: 77

Original Poster
Rep: Reputation: 15
Ok, now I understand a bit more about what I'm doing, how do I modify the path variables permanently?

I can get it going by adding PATH=/home/peleus/bin/azureus:$PATH which adds the folder, but then every time I log out I have to do it all over again, which file do I edit or put that line into so its always there?

(Using SuSe 10.0)
 
Old 11-09-2005, 12:23 AM   #20
blindcoder
ROCK Linux
 
Registered: Dec 2003
Location: Berlin, Germany
Distribution: Crystal ROCK
Posts: 108

Rep: Reputation: 15
Quote:
Originally posted by Peleus
I can get it going by adding PATH=/home/peleus/bin/azureus:$PATH which adds the folder, but then every time I log out I have to do it all over again, which file do I edit or put that line into so its always there?
Add this line to your ~/.bashrc file:
Code:
PATH="/home/peleus/bin/azureus:$PATH"
Greetings,
Benjamin
 
Old 11-09-2005, 05:52 PM   #21
Peleus
Member
 
Registered: Mar 2003
Posts: 77

Original Poster
Rep: Reputation: 15
Sounds stupid but it seems I don't have a .bashrc file (that I can find)

Yes I'm in root so I can see hidden files.
 
Old 11-09-2005, 06:09 PM   #22
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,362

Rep: Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377Reputation: 2377
That's odd ...

When I do "ls -a" in my home dir, I get a load of hidden files, inc .bashrc, .bash_profile :

.bashrc
Code:
# .bashrc

# User specific aliases and functions

# Source global definitions
if [ -f /etc/bashrc ]; then
        . /etc/bashrc
fi
.bash_profile
Code:
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi

# User specific environment and startup programs
PATH=$PATH:$HOME/bin

export PATH
unset USERNAME

# Aliases
alias vi="vim"

export vi
Try these ...
BTW, this is on RH FC3
HTH
 
Old 11-10-2005, 12:53 AM   #23
blindcoder
ROCK Linux
 
Registered: Dec 2003
Location: Berlin, Germany
Distribution: Crystal ROCK
Posts: 108

Rep: Reputation: 15
Quote:
Originally posted by Peleus
Sounds stupid but it seems I don't have a .bashrc file (that I can find)
So just create it

.bashrc is a file that is run by bash whenever you login. You can do all sorts of stuff there like defining shell functions, aliases, change your prompt or run whatever commands you think should be run on login.

Greetings,
Benjamin
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
commands "init" and "modprobe" not working Diagmato Fedora 2 07-22-2005 11:44 PM
what is difference between "reset" and "clean " commands? zameer_india Linux - Newbie 2 01-10-2005 06:23 AM
"depmod" and "modprobe" commands don't work The1PatO Fedora 7 06-10-2004 12:10 PM
gnome global settings "Help Me!!" or "URGENT" Fascistchicken Linux - Software 3 01-26-2004 06:27 PM
Module usage :Global symbol "$ref" requires explicit package name rajatgarg Programming 2 12-17-2003 01:55 AM


All times are GMT -5. The time now is 12:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration