LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Trying to run Gnome from the command line and getting startx not found (https://www.linuxquestions.org/questions/linux-newbie-8/trying-to-run-gnome-from-the-command-line-and-getting-startx-not-found-665991/)

sneaky 08-28-2008 03:49 AM

Trying to run Gnome from the command line and getting startx not found
 
Hi,

I am trying to run run from the command line with startx gnome.

I am getting the msg -bash: startx command not found

Any ideas greatfully received.

Thanks

Chris

honeybadger 08-28-2008 04:45 AM

hi there,

first of all which distro are you using?

try and run the same command as root.

try finding out if gnome is installed - I once had installed a Debian net-inst cd and I was very confused when the gui did not show up. Later realised that there were no gui packages

try using 'X' on the command line - works the same. u may also try 'gdm'. all of these will work the same if you have X installed on the pc

sneaky 08-28-2008 04:57 AM

Hi,

I am using Fedora 9.

I am logged in as root.

I have ram yum install gnome and it says all is installed and nothing to do.

gdm comes up with command cannot be found.

I have ran X and all I get is a grey screen with a black cross in the middle and just hangs there. I cannot move the X with the mouse but nothing else appears.

Thanks

Chris

colucix 08-28-2008 05:07 AM

The startx command on Fedora 9 is provided by the xorg-x11-xinit package and the startx executable is placed in /usr/bin. See if the package is installed:
Code:

yum list xorg-x11-xinit

sneaky 08-28-2008 05:29 AM

I have had a look in /usr/bin and there isnt startx but there is a startxfce which doesn't work.

yum list xorg-x11-xinit - did this and it says available packages xorg-x11-xinit.x86_64

run yum update xorg etc and it says no packages marked for update.

Thanks

Chris

colucix 08-28-2008 05:36 AM

On my system I have
Code:

# yum list xorg-x11-xinit
Loaded plugins: refresh-packagekit
fedora                                                                                          | 2.4 kB    00:00   
updates                                                                                          | 2.3 kB    00:00   
primary.sqlite.bz2                                                                              | 2.8 MB    00:00   
Installed Packages
xorg-x11-xinit.x86_64                    1.0.9-1.fc9            installed

If you don't see installed, but only available you have to install it using
Code:

yum install xorg-x11-xinit
since yum update looks for updates of the already installed packages.

sneaky 08-28-2008 06:15 AM

Hi,

X is still the same.

xfce works now but is fairly basic for my liking.

Gnome tries to boot but comers up with the following error msg.

xinit: no such file or directory (errno 2): no program named xterm in path

specify a program on the command line or make sure that /usr/bin is in your path

waiting for x server to shut down

and the back to the command line


All times are GMT -5. The time now is 03:48 PM.