Operating System - Linux
1820389 Members
3864 Online
109623 Solutions
New Discussion юеВ

how to start GUI in linux..

 
chindi
Respected Contributor

how to start GUI in linux..

Hi ,
m new to linux...and i would like to start gui for my linux server..


i have exported the display variable...of my client windows where the xbrowser is installed and i have run startx on my linux server...

m gettng the o/p as shown...




[root@intmailserver ~]# /usr/X11R6/bin/startx


X Window System Version 6.8.1
Release Date: 17 September 2004
X Protocol Version 11, Revision 0, Release 6.8.1
Build Operating System: Linux 2.4.21-14.ELsmp i686 [ELF]
Current Operating System: Linux intmailserver 2.6.9-1.667smp #1 SMP Tue Nov 2 14:59:52 EST 2004 i686
Build Date: 20 October 2004
Build Host: tweety.build.redhat.com

Before reporting problems, check http://wiki.X.Org
to make sure that you have the latest version.
Module Loader present
OS Kernel: Linux version 2.6.9-1.667smp (bhcompile@tweety.build.redhat.com) (gcc version 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)) #1 SMP Tue Nov 2 14:59:52 EST 2004
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Thu Dec 18 13:36:56 2008
(==) Using config file: "/etc/X11/xorg.conf"
/etc/X11/xinit/xinitrc-common: line 45: 3640 Segmentation fault xmodmap "$sysmodmap"
Agent pid 3654
SESSION_MANAGER=local/intmailserver:/tmp/.ICE-unix/3635
AUDIT: Thu Dec 18 13:36:58 2008: 3611 X: client 5 rejected from local host
looking for type: got text/plain
/usr/lib/python2.3/site-packages/gtk-2.0/gtk/__init__.py:90: GtkDeprecationWarning: gtk.mainloop is deprecated, use gtk.main instead
self.warn(message, DeprecationWarning)
/usr/lib/python2.3/site-packages/gtk-2.0/gtk/__init__.py:90: GtkDeprecationWarning: gtk.mainiteration is deprecated, use gtk.main_iteration instead
self.warn(message, DeprecationWarning)
/usr/lib/python2.3/site-packages/gtk-2.0/gtk/__init__.py:90: GtkDeprecationWarning: gtk.mainquit is deprecated, use gtk.main_quit instead
self.warn(message, DeprecationWarning)


nw afetr this wen i try to login thru gui m not able to login , m not able to get the gui window to login...



[root@intmailserver ~]# uname -a

Linux intmailserver 2.6.9-1.667smp #1 SMP Tue Nov 2 14:59:52 EST 2004 i686 i686 i386 GNU/Linux
9 REPLIES 9
Fredrik.eriksson
Valued Contributor

Re: how to start GUI in linux..

I don't know exactly what the issue is about. But google might be able to help you if you get a pointer.

/etc/X11/xinit/xinitrc-common: line 45: 3640 Segmentation fault xmodmap "$sysmodmap"

This seems to be a likely issue... Also,
AUDIT: Thu Dec 18 13:36:58 2008: 3611 X: client 5 rejected from local host
looking for type: got text/plain
Could be culprit, could be that $sysmodmap is a invalid value for xmodmap which crashes and makes X reject your connection since your settings doesn't work/exist.

The rest is just warnings about old coding standards that shouldn't be used in the future.

Best regards
Fredrik Eriksson
Rick Retterer
Respected Contributor

Re: how to start GUI in linux..

Chindi,
Instead of running "startx" to begin with, try running a simple Xclient application like /usr/bin/X11/xclock, right after you have exported your display.

It would be easier to diagnose the problem that way instead of running an entire session.

In addtion, you may want to try opening up the display security as well.

Example:

# DISPLAY=ip.address.of.pc:0.0
# export DISPLAY
# /usr/bin/X11/xhost +
access control disabled, clients can connect from any host
# /usr/bin/X11/xclock &

If xclock runs, then try executing startx

Cheers,
Rick
- Rick Retterer



chindi
Respected Contributor

Re: how to start GUI in linux..

Hi Rick,
i want to access the gui window i.e. desktop of my linux server from windows machine....

on my windows machine i have installed VNC server n client..

on my linux i have configured /etc/sysconfig/vncservers..

[root@intmailserver sysconfig]# cat vncservers
# The VNCSERVERS variable is a list of display:user pairs.
#
# Uncomment the line below to start a VNC server on display :1
# as my 'myusername' (adjust this to your own). You will also
# need to set a VNC password; run 'man vncpasswd' to see how
# to do that.
#
# DO NOT RUN THIS SERVICE if your local area network is
# untrusted! For a secure way of using VNC, see
# <>.

VNCSERVERS="1:vnctest"
VNCSERVERARGS[1]="-geometry 1024x768 -depth 16 "



from vnc client i.e. windows box wen v r tryng to connect to linux server v r gettng this error..



nable to connect to host: A socket operation was attempted to an unreachable host (10065)

many of them suggested to check iptables...

o/p of iptables





[root@intmailserver sysconfig]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination
RH-Firewall-1-INPUT all -- anywhere anywhere

Chain FORWARD (policy ACCEPT)
target prot opt source destination
RH-Firewall-1-INPUT all -- anywhere anywhere

Chain OUTPUT (policy ACCEPT)
target prot opt source destination

Chain RH-Firewall-1-INPUT (2 references)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT icmp -- anywhere anywhere icmp any
ACCEPT ipv6-crypt-- anywhere anywhere
ACCEPT ipv6-auth-- anywhere anywhere
ACCEPT udp -- anywhere 224.0.0.251 udp dpt:5353
ACCEPT udp -- anywhere anywhere udp dpt:ipp
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:http
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ftp
ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:smtp
REJECT all -- anywhere anywhere reject-with icmp-host-prohibited

==========================================


do v need to add the port in iptables ??? 5901..
dirk dierickx
Honored Contributor

Re: how to start GUI in linux..

either you start the application from the command line just like that, and it will popup.

or

when using gdm or kdm (or any login manager), you can choose to have XDMP logins enabled. when you enable this, you can login from another machine to the desktop of your unix server.
chindi
Respected Contributor

Re: how to start GUI in linux..

hi,
how do i mk xdmp logins enabled...???

chindi
Respected Contributor

Re: how to start GUI in linux..

hi guys,

can u tell me how to acces it through xmanager....??????
Fredrik.eriksson
Valued Contributor

Re: how to start GUI in linux..

There's lots and lots of good guides on the internet.

http://www.faqs.org/docs/Linux-HOWTO/XDMCP-HOWTO.html

Best regards
Fredrik Eriksson
Rick Retterer
Respected Contributor

Re: how to start GUI in linux..

Chindi,
If you want to use VNC, there is more to it than just enabling /etc/sysconfig/vncservers...

You also have to create a password for your account by executing the command:

#/usr/bin/vncpasswd

and create a password.

This also creates a .vnc directory under your $HOME directory that contains the password file and a xstartup file.

Edit the xstartup file and uncomment the lines that it tells you to uncomment and then save the file.

Once you have that completed, then you need to manually start the server...

# sbin/service vncserver start

This will (should) create the X1 server listening socket in /tmp

You can then connect from your PC to your linux system via xvnc

XDMCP requires some editing of the gdm configuration scripts or the kdm configuration scripts so I would recommend that you research this option a little bit before you embark on enabling it. It will also require that you install a PC Xserver on your PC to use XDMCP.

Cheers,
Rick
- Rick Retterer



Srimalik
Valued Contributor

Re: how to start GUI in linux..

try running "gnome-session" or "startkde" directly after exporting the display.

abandon all hope, ye who enter here..