LinuxQuestions.org
Help answer threads with 0 replies.
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 10-01-2013, 04:17 AM   #1
threezerous
Member
 
Registered: Jul 2009
Posts: 92

Rep: Reputation: 15
Question -bash: startx: command not found while using cygwin


Hello all,

I just installed cygwin on my windows laptop. When I start cygwin from All Programs and then type startx, I get

-bash: startx: command not found.

I also get the same error for ssh.
$ ssh
-bash: ssh: command not found


Google search told me to confirm X11 is selected to be installed. It was set to default. I changed it to install and tried again. Still seeing the same issue. How do I resolve this? Is there any other way to confirm if X11 is installed? This is my first time using cygwin. Any help/info is much appreciated. Thanks
 
Old 10-01-2013, 06:13 AM   #2
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 8,527

Rep: Reputation: 2439Reputation: 2439Reputation: 2439Reputation: 2439Reputation: 2439Reputation: 2439Reputation: 2439Reputation: 2439Reputation: 2439Reputation: 2439Reputation: 2439
have you installed ssh and X? How did you check it?
http://x.cygwin.com/docs/ug/using.html
have you tried startxwin ?
 
1 members found this post helpful.
Old 10-01-2013, 08:15 AM   #3
threezerous
Member
 
Registered: Jul 2009
Posts: 92

Original Poster
Rep: Reputation: 15
I have installed putty, but not sure of X. How would I install X? I tried startxwin with the same message. Command not found
 
Old 10-01-2013, 08:20 AM   #4
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
Quote:
Originally Posted by threezerous View Post
How would I install X?
Following instructions here: http://x.cygwin.com/docs/ug/setup.html (chapter 2 of the manual linked by pan64 above).
 
1 members found this post helpful.
Old 10-01-2013, 09:18 AM   #5
threezerous
Member
 
Registered: Jul 2009
Posts: 92

Original Poster
Rep: Reputation: 15
I think I am missing something obvious. Colucix, I reviewed the link you provided and I did the exact steps upto step 14. However, for step 15, when I clicked view after selecting X11 category, I do not see many of the packages listed in the link such as xorg-server, xinit, etc. I do see a lot of other packages and a screen similar to the one in the link. But no packages related to "x...." I tried downloading from two other mirror sites with the same exact result. Not sure what I am missing.
 
Old 10-01-2013, 09:21 AM   #6
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 8,527

Rep: Reputation: 2439Reputation: 2439Reputation: 2439Reputation: 2439Reputation: 2439Reputation: 2439Reputation: 2439Reputation: 2439Reputation: 2439Reputation: 2439Reputation: 2439
you would need to show us that screen.
 
Old 10-01-2013, 09:38 AM   #7
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
It should be the last entry in the list of available packages and it's named X11. Expand it and you will see a long list of packages. Do you see X11 at the bottom of the list?
 
1 members found this post helpful.
Old 10-01-2013, 10:51 AM   #8
threezerous
Member
 
Registered: Jul 2009
Posts: 92

Original Poster
Rep: Reputation: 15
Thanks Pan64 and colucix. I uninstalled cygwin completely and then re-installed it. I was then able to view and install the X11 package explicitly. Apparently, during the first run, thee default option for X11 was "do not install". Thanks much for your help
 
  


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
cygwin mkfs.msdos: command not found zgintasz Linux - General 1 10-31-2012 10:43 AM
make command is not found in cygwin udayakumarsv General 3 07-16-2012 08:00 AM
1st script attempt; cygwin; fails "bash: myscript : command not found" engineerd1 Linux - Newbie 8 11-08-2009 05:03 PM
Cygwin problem: lex: Command not found EasyLife Linux - Distributions 1 07-28-2008 11:19 AM
bash: startx: command not found bene223 Debian 3 06-27-2006 07:07 PM


All times are GMT -5. The time now is 02:17 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration