Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
how do i start a program from the terminal?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
tone33
n00b
n00b


Joined: 13 Sep 2008
Posts: 38

PostPosted: Mon Sep 15, 2008 12:11 am    Post subject: how do i start a program from the terminal? Reply with quote

I'm coming from kubuntu in which i could start a program... say "kate" from a terminal. This is handy when making changes to a root access only config file from my normal user account. In Gentoo w/KDE 3.5.9 I get this:

Code:
desktop-gentoo tone # kate
bash: kate: command not found


How can i add programs to be accessible from the terminal?
Back to top
View user's profile Send private message
tone33
n00b
n00b


Joined: 13 Sep 2008
Posts: 38

PostPosted: Mon Sep 15, 2008 12:14 am    Post subject: Reply with quote

so i just figured out that i can do this through the Run Command. I'm curious as to why i can't from Konsole.
Back to top
View user's profile Send private message
skellr
l33t
l33t


Joined: 18 Jun 2005
Posts: 976
Location: The Village, Portmeirion

PostPosted: Mon Sep 15, 2008 12:56 am    Post subject: Reply with quote

It's probably not in your PATH yet, if this is a new install It should work next time you login. or 'source /etc/profile' from your current shell.
Back to top
View user's profile Send private message
tone33
n00b
n00b


Joined: 13 Sep 2008
Posts: 38

PostPosted: Mon Sep 15, 2008 2:57 am    Post subject: Reply with quote

i executed source /etc/profile and it works now. what exactly does that command do?
Back to top
View user's profile Send private message
skellr
l33t
l33t


Joined: 18 Jun 2005
Posts: 976
Location: The Village, Portmeirion

PostPosted: Mon Sep 15, 2008 4:48 am    Post subject: Reply with quote

/etc/profile is a shell script that is used for setting up environment variables when you login. The PATH variable is basically a list of directories of where to look for something. KDE installs into /usr/kde witch is not in the default path.

So when KDE gets installed, new environment variables are put into /etc/env.d. Then env-update is ran and it reads files in /etc/env.d and then updates /etc/profile.env witch is read by /etc/profile.

If you read /etc/profile.env it will probably make more sense than I atm. :D
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum