[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


startx results in "Cannot find a free VT" on my Virtual Dedicated Server from my home machine

Posted on 2004-11-21
Medium Priority
Last Modified: 2013-12-27
hi !

I have a Virtual Dedicated Server with root access, based on Redhat 9.0.
I installed Xfree86 without problems.

Now, using X11 on my home machine (an apple OS X), i open an ssh session with X11 forwarding (ssh -X login@example.com) to my VDS. It works fine : xclock, xemacs, X applications work correctly on my screen.

But when i try to use 'startx' to be able to use e.g. the Gnome environment , i get the following errors
Fatal server error:
xf86OpenConsole: Cannot find a free VT

I have tried with the root user, and with other users. I have played with /etc/inittab to no avail. Here is a portion of :etc/inittab
x:5:respawn:/etc/X11/prefdm -nodaemon
0:2345:respawn:/sbin/mingetty ttys/0
1:2345:respawn:/sbin/mingetty ttys/1
2:2345:respawn:/sbin/mingetty ttys/2
3:2345:respawn:/sbin/mingetty ttys/3

And here is ls -l on /dev
crw-r--r--    1 root     root       1,  10 jan  1  1970 anon
crw-------    1 root     root       5,   1 nov 22 04:04 console
drwxr-xr-x    1 root     root            0 jan  1  1970 discs
crw-rw-rw-    1 root     root       1,   7 jan  1  1970 full
prw-------    1 root     root            0 nov 22 03:48 initctl
crw-r-----    1 root     root       1,   2 jan  1  1970 kmem
srw-rw-rw-    1 root     root            0 nov 22 03:48 log
crw-r-----    1 root     root       1,   1 jan  1  1970 mem
drwxr-xr-x    1 root     root            0 jan  1  1970 misc
drwxr-xr-x    1 root     root            0 jan  1  1970 net
crw-rw-rw-    1 root     root       1,   3 jan  1  1970 null
crw-r-----    1 root     root       1,   4 jan  1  1970 port
crw-------    1 root     root     108,   0 jan  1  1970 ppp
crw-rw-rw-    1 root     root       5,   2 nov 22 04:07 ptmx
drwxr-xr-x    2 root     root            0 nov 22 03:48 pts
drwxr-xr-x    1 root     root            0 jan  1  1970 pty
crw-r--r--    1 root     root       1,   8 jan  1  1970 random
lr-xr-xr-x    1 root     root            5 nov 22 03:48 root -> ubd/0
lr-xr-xr-x    1 root     root            3 jan  1  1970 serial -> tts
drwxrwxrwt    2 root     root           40 nov 22 03:48 shm
drwxr-xr-x    1 root     root            0 jan  1  1970 tts
crw-rw-rw-    1 root     root       5,   0 jan  1  1970 tty
lr-xr-xr-x    1 root     root            2 jan  1  1970 ttys -> vc
drwxr-xr-x    1 root     root            0 jan  1  1970 ubd
crw-r--r--    1 root     root       1,   9 nov 22 03:48 urandom
drwxr-xr-x    1 root     root            0 jan  1  1970 vc
crw-rw-rw-    1 root     root       1,   5 jan  1  1970 zero

And ls -l on /dev/ttys
crw-------    1 root     root       4,   0 nov 22 03:49 0
crw-------    1 root     root       4,   1 nov 22 03:49 1
crw-------    1 root     root       4,   2 nov 22 03:49 2
crw-------    1 root     root       4,   3 nov 22 03:49 3
crw-------    1 root     root       4,   4 jan  1  1970 4
crw-------    1 root     root       4,   5 jan  1  1970 5
crw-------    1 root     root       4,   6 jan  1  1970 6
crw-------    1 root     root       4,   7 nov 22 03:49 7

 Please help me find a way to have this work !

Thank you

Question by:safarlebus
  • 3
  • 3
LVL 38

Expert Comment

ID: 12641451
> using X11 on my home machine (an apple OS X), i open an ssh session with X11 forwarding (ssh -X login@example.com)
   to my VDS
>  i try to use 'startx' to be able to use e.g. the Gnome environment
You mean you run "startx" inside X-window?
You won't get the Gnome-seesion running inside X-window
(Gnome is kind of X-window manager which X-window run inside it).

If you want to get "the Gnome which runs on RedHat Linux 9 box" to you Mac OS X, then "vnc" is the one.
Run vncserver on the RedHat Linux 9.0 box, then use vncviewer on the Mac OS X to connect it.
Say, ssh into RedHat 9 box and run
-- RedHat 9 ---
$ vncserver    <---- first time will ask you to type in password twice
.... display :1   <--- may be :2, :3 or other number

---- Mac OS X --- (with VPN connection first)
$ vncviewer <IP or hostname of RedHat 9>:1  <--- the display number you get when you run vncserver above

Then you will see the Gnome in vnc.



Author Comment

ID: 12642804
thank you for your suggestion.
I did as you suggested : downloaded, compiled and started vncserver, and use Vncthing (a Mac OS X aqua standard vnc client) to connect to the vncserver on my redhat box.

Everything worked ok... but what i see in my vnc client is just another terminal window, which gives the exact same error message when i try to have it run 'startx'
LVL 38

Expert Comment

ID: 12642872
> in my vnc client is just another terminal window, which gives the exact same error message when i try to have it run 'startx'
Do you see "Gnome" in your vncviewer? If not, then ssh into the Linux box and
# cd ~/.vnc
# vi xstartup
then replace "twm" with "gnome-session"
# vncserver
And connect vnc again.

What your vnc client see is a X-window manger, you can not start another X-window manager (startx) in it (this X-window

However, you should be able to install vncserver from RedHat 9 CDs which use "gnome-session" by default.

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!


Author Comment

ID: 12642946
well actually, trying "gnome-session", i just realised i did not have Gnome installed. How could i install it ? I have a VDS, not a home machine : i have no access to cds, etc..., and my disk space is limited to 4 GB

LVL 38

Accepted Solution

wesly_chen earned 1500 total points
ID: 12642974
Go the the following URL and download all the gnome rpm files (search keyword gnome, not just start with "gnome"):
You can skip the "devel" rpm files to save space.

The do as root
# cd /tmp/gnome   <--- assume you download to /tmp/gnome
# rpm -ivh *.rpm
If missing any package, then download from the same URL and then try again.


Author Comment

ID: 12646227
thank you... i understand better. I have spent a lot of time, and have decided not to use Gnome because it would be so heavy (i have only 4 GIG)


Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses
Course of the Month19 days, 9 hours left to enroll

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question