LinuxQuestions.org
Visit Jeremy's Blog.
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-18-2004, 10:51 AM   #1
batfastad
Member
 
Registered: Nov 2004
Location: London, UK
Distribution: CentOS, RHEL, Debian, IPCop, PS2Linux
Posts: 95

Rep: Reputation: 23
path problem - startkde :command not found


Hi

I'm new to Linux and I think I have a path problem.

Not sure what a path problem is, not sure how to solve it.

Basically this is because I'm trying to install xvnc and I want to use kde as my default window manager rather than twm.
So apparently all I have to do is replace 'twm' on the last line in the ~./vnc/xstartup script with 'startkde'

However when I start the vncserver and login on my windows machine, I get a grey background and a terminal screen.

When I look at the server startup log in ~./vnc/ there seems to be a problem with the startkde command.
It says startkde :command not found

I've been led to believe that this is a PATH problem but I have no idea as to how I fix it.

Any ideas?

Thanks

Ben
 
Old 11-18-2004, 11:24 AM   #2
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
before that commandd, add the line

Code:
export PATH=$PATH:/usr/kde/bin/
replace /esr/kde/bin with the kde/bin path of your system.
 
Old 11-18-2004, 11:56 AM   #3
batfastad
Member
 
Registered: Nov 2004
Location: London, UK
Distribution: CentOS, RHEL, Debian, IPCop, PS2Linux
Posts: 95

Original Poster
Rep: Reputation: 23
How do I find the kde/bin path of my system?

I'm assuming it will probably be the default so usr/kde/bin

But if I do a search for the command 'startkde' in search files then I'm assuming whatever folder that file is in, is the path I need.

Thanks for your help

Ben
 
Old 11-18-2004, 12:04 PM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
On my system the startkde command is in '/opt/kde3/bin/'

Type in 'locate startkde' to find the path to the kde executables. Then edit your ~/.profile or ~/.bash_login file to add this directory to your PATH environment variable.
 
Old 11-18-2004, 12:07 PM   #5
qwijibow
LQ Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
be sure to run "updatedb" before you run "locate"
locate is an optimed searvh, that uses a database of your hard-drive generated by the updatedb command...

everything your system has changed significantly, and you want to use locate, re-run updatedb.

anyways.. yeah, you need to search for a /bin/startkde
 
Old 11-18-2004, 04:16 PM   #6
batfastad
Member
 
Registered: Nov 2004
Location: London, UK
Distribution: CentOS, RHEL, Debian, IPCop, PS2Linux
Posts: 95

Original Poster
Rep: Reputation: 23
Sorted!

Just another quick question...

The files
~/.profile
~/.bash_login

Are they run when you first login?
Or when you start KDE?
What's the difference between them?

I can't find a .bash_login file in my home dir

Would it work if I added the following commands to the end of .profile...

cd /usr/local/bin
./vncserver

??
I'm trying to get the vnc server to run automatically on startup.

I must admit I'm loving Linux. Everything goes into your home dir. So you can easily backup application settings. Not like in windows with the registry. I liked windows when it kept everything in .ini files - that was good.

Thanks
 
Old 11-18-2004, 06:28 PM   #7
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
They are run when you log in. You don't need to use kde.
The .bash_login is bash specific while more then one shell will use .profile.

They are alternatives. You can use just .profile. Read 'info bash' for details on the startup scripts run. The login scripts will sometimes call other scripts. On some distros for instance, there is a scripts called aliases and .aliases which are run if they exist. Reading through your .bashrc and .profile scripts will help locate such files.

For things like setting the path, you don't want to use the .bashrc script because it is run every time you open a new shell. This could result in the same path being tagged on to the end of the PATH variable.

Last edited by jschiwal; 11-18-2004 at 06:30 PM.
 
Old 11-18-2004, 08:12 PM   #8
batfastad
Member
 
Registered: Nov 2004
Location: London, UK
Distribution: CentOS, RHEL, Debian, IPCop, PS2Linux
Posts: 95

Original Poster
Rep: Reputation: 23
Excellent!

I'll just use .profile then.

One final final question...

In .profile is it ok to have something like this...

cd /usr/local/bin
./vncserver

Would that run as expected or does the script in .profile have to be a special scripting language, rather than just command line syntax?

Thanks

Ben
 
  


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
Problem: Startx Command Not Found rvijay Debian 11 02-13-2005 12:40 PM
NIS startkde problem microsmart Fedora 1 05-09-2004 07:39 AM
J2sdk problem Javac command not found CollestonPie13 Linux - Software 3 02-15-2004 12:30 PM
Network Path Not Found - Problem..!! hiren_d_in Linux - Newbie 2 08-07-2003 11:45 PM
Command not found problem rudon Linux - Newbie 3 04-16-2003 10:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:10 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