LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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, 09: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 02:17 PM. Reason: Solved
 
Old 05-22-2015, 01:50 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,121

Rep: Reputation: 2270Reputation: 2270Reputation: 2270Reputation: 2270Reputation: 2270Reputation: 2270Reputation: 2270Reputation: 2270Reputation: 2270Reputation: 2270Reputation: 2270
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, 08: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, 05:46 AM   #4
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,121

Rep: Reputation: 2270Reputation: 2270Reputation: 2270Reputation: 2270Reputation: 2270Reputation: 2270Reputation: 2270Reputation: 2270Reputation: 2270Reputation: 2270Reputation: 2270
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, 01: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, 03:59 AM   #6
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 8,121

Rep: Reputation: 2270Reputation: 2270Reputation: 2270Reputation: 2270Reputation: 2270Reputation: 2270Reputation: 2270Reputation: 2270Reputation: 2270Reputation: 2270Reputation: 2270
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


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


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