Gnome/X startup errors

Hi everyone. I recently installed openSUSE 10.3 in a text console mode only, and have been using Yast2 for management, etc. Now, I need to get an actual GUI going, and decided to go with Gnome. Using Yast2, I installed the following packages:

X Window System
Gnome Desktop Environment
Gnome Base System.

When trying to run the “gnome” command after logging in, I get the following message:

xdpyinfo: unable to open display “”.
/usr/bin/gnome: line 22: ( * 10) / : syntax error: operand expected (error token is "* 10) / " )

(gnome-session:4369): Gtk-WARNING **: cannot open display:

When trying to run the “startx” command, I get this message:

xinit: connection refused (errno 111): unable to connect to X server
xinit: No such process (errno 3): Server error

Does anyone know how I can fix this? I am assuming there is a configuration I need to make, but I’m really not sure. This is my first time ever installing Linux without a desktop environment pre-setup for me.

Hi
At the text console;


su -
init 3
sax2 -r
or
sax2 -r -m 0=vesa
init 5 & exit

You may also have to setup the displaymanager and windowmanager
variables in yast /etc/sysconfig editor if you wish it to login to a
GUI automatically, oh and set the runlevel to 5.

But see how that goes first.


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.0 x86 Kernel 2.6.25.11-0.1-default
up 2 days 19:51, 1 user, load average: 0.03, 0.13, 0.21
GPU GeForce 6600 TE/6200 TE - Driver Version: 173.14.12

Malcolm,

Thank you for your suggestion. With this, I was finally able to see X load. However, it only brings up the “Automatic Graphics System Setup,” which asks me if I want the current SaX2 suggestion. If I say OK, it simply takes me back to the console. If I change anything, and then exit, it does the same. I then can still not get X to start up unless I do your commands, and then this is all I get.

UPDATE: Sorry, I just tried running “startx” when logged in as root, and it worked fine. How do I get this setup so that other users can run this command without being root?

[QUOTE sokabs]
Malcolm,

Thank you for your suggestion. With this, I was finally able to see X
load. However, it only brings up the “Automatic Graphics System Setup,”
which asks me if I want the current SaX2 suggestion. If I say OK, it
simply takes me back to the console. If I change anything, and then
exit, it does the same. I then can still not get X to start up unless I
do your commands, and then this is all I get.
/QUOTE
Hi
Sax2 is just for setting up you graphics card on monitor. You need to
make sure the config is defined (eg your resolution), you also need to
ensure you seletct the correct monitor and refresh rates size etc. Then
make sure you test and if everything is ok then save.

The 'init 5 command should start the GUI, if it doesn’t at your login
(user that is not root) try the command startx


Cheers Malcolm °¿° (Linux Counter #276890)
SLED 10.0 SP2 x86_64 Kernel 2.6.16.60-0.27-smp
up 2:30, 2 users, load average: 0.01, 0.03, 0.21
GPU GeForce 8600 GTS Silent - Driver Version: 173.14.05

Thanks again. This seems to work when I start out by SU-ing as root. When simply trying as a non-root user, though, the “init 5” command simply gives me a “command not found” error. “startx” gives me a “fatal server error: cannot move old log file…” message.

You mentioned earlier having to set the displaymanager and windowmanager variables and setting runlevel to 5: what should these variables be, and how do I set the runlevel?

[QUOTE sokabs]
malcolmlewis;1861957 Wrote:
>
> The 'init 5 command should start the GUI, if it doesn’t at your login
> (user that is not root) try the command startx

Thanks again. This seems to work when I start out by SU-ing as root.
When simply trying as a non-root user, though, the “init 5” command
simply gives me a “command not found” error. “startx” gives me a “fatal
server error: cannot move old log file…” message.

You mentioned earlier having to set the displaymanager and
windowmanager variables and setting runlevel to 5: what should these
variables be, and how do I set the runlevel?
/QUOTE
Hi
The init 5 command can only be run as root :slight_smile:

So when you are at the console login enter your user name and password
Then enter the following;

/sbin/runlevel

If it is “N 3” you need to change to root user and run the following
three commands;


su -
init 5
exit

Now you should be back at the console under your user name, it should
be at “N 5” now, check with the following;

/sbin/runlevel

Now try the startx command.

This is assuming you setup the video card/monitor via sax2 ok and saved
and exited.

If you now get a GUI, please confirm. Then we can setup for it to start
automatically.


Cheers Malcolm °¿° (Linux Counter #276890)
SLED 10.0 SP2 x86_64 Kernel 2.6.16.60-0.27-smp
up 4:32, 1 user, load average: 0.00, 0.02, 0.00
GPU GeForce 8600 GTS Silent - Driver Version: 173.14.05