LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 05-21-2015, 08:56 PM   #1
haind
LQ Newbie
 
Registered: Apr 2015
Location: Ha Noi, Viet Nam
Distribution: Slackware 14.1
Posts: 15

Rep: Reputation: Disabled
Slackware startx command not found


I probably do something wrong with $PATH when install Java JDK. Now when I type
startx, reboot, which,... I get command not found.

When I type: echo $PATH
It shows only: /usr/local/java/bin

Last edited by haind; 05-23-2015 at 01:17 PM. Reason: Solved
 
Old 05-22-2015, 12:50 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,918

Rep: Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318
usually PATH contains: /bin /usr/bin /usr/local/bin (and possibly other dirs too). You can set it in your shell or in /etc/profile
 
Old 05-22-2015, 07:27 AM   #3
haind
LQ Newbie
 
Registered: Apr 2015
Location: Ha Noi, Viet Nam
Distribution: Slackware 14.1
Posts: 15

Original Poster
Rep: Reputation: Disabled
It was really trouble. I cannot edit ~/.profile which I edited before at terminal. I type vi ~/.profile but it showed vi command is not a command. almost command I tried It just showed like that, "A command not found". I'm crazy and decided to reinstall Slackware. This clean trouble.
 
Old 05-23-2015, 04:46 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,918

Rep: Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318
because vi is not in your path. try /usr/bin/vi (use full path) instead
 
1 members found this post helpful.
Old 05-23-2015, 12:56 PM   #5
haind
LQ Newbie
 
Registered: Apr 2015
Location: Ha Noi, Viet Nam
Distribution: Slackware 14.1
Posts: 15

Original Poster
Rep: Reputation: Disabled
yes It work naturally. I wish I didn't reinstall slackware if I knew before. Thank so much!
 
Old 05-25-2015, 02:59 AM   #6
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,918

Rep: Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318Reputation: 7318
just remember, usually you can solve it without reinstall, this is not windows (which was much harder to repair). But obviously there are cases when you need to do that.
 
  


Reply

Tags
slackware 14.1



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
startX 'command not found' ? phil81 Debian 20 01-05-2005 08:59 AM
Startx command is not found. What do I do? Alram Linux - Newbie 11 12-20-2004 10:25 AM
startx command not found suresheva31 Linux - General 1 10-15-2004 03:12 AM
startx command not found brian183 Debian 6 10-07-2004 06:37 PM
startx command not found desluscious Linux - Newbie 6 08-25-2003 06:57 PM

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

All times are GMT -5. The time now is 08:04 AM.

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
Open Source Consulting | Domain Registration