LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-16-2010, 11:48 PM   #1
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,012

Rep: Reputation: 30
view GUI on SSH?


Is there a way to view the screen on a linux server box through an SSH connection?
What are the GUI tools that need to be installed on CentOS?
Thanks
 
Old 07-17-2010, 12:40 AM   #2
AlucardZero
Senior Member
 
Registered: May 2006
Location: USA
Distribution: Debian
Posts: 4,808

Rep: Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604Reputation: 604
X Forwarding or VNC
 
Old 07-17-2010, 08:29 AM   #3
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,012

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by AlucardZero View Post
X Forwarding or VNC
And what is the GUI I need to install on centos?
yum groupinstall "X Window System" "GNOME Desktop Environment"

will the gui affect server performance?
 
Old 07-17-2010, 10:06 AM   #4
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,012

Original Poster
Rep: Reputation: 30
Doesn't look to promising, any ideas on the errors?

Quote:
[root ~]# startx -- :1
xauth: creating new authority file /root/.serverauth.22252
xauth: creating new authority file /root/.Xauthority
xauth: creating new authority file /root/.Xauthority


X Window System Version 7.1.1
Release Date: 12 May 2006
X Protocol Version 11, Revision 0, Release 7.1.1
Build Operating System: Linux 2.6.18-53.el5 i686 Red Hat, Inc.
Current Operating System: Linux serverxx-xxx-xxx-198.live-servers.net 2.6.18-164.11.1.el5 #1 SMP Wed Jan 20 07:39:04 EST 2010 i686
Build Date: 13 May 2010
Build ID: xorg-x11-server 1.1.1-48.76.el5_5.1
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Module Loader present
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.1.log", Time: Sat Jul 17 15:04:32 2010
(EE) Unable to locate/open config file
New driver is "i810"
(==) Using default built-in configuration (55 lines)
(EE) open /dev/fb0: No such file or directory
(WW) VESA(0): Failed to set up write-combining range (0xe3f00000,0xf0000)
(WW) VESA(0): Failed to set up write-combining range (0xe3e00000,0x1f0000)
(WW) VESA(0): Failed to set up write-combining range (0xe3c00000,0x3f0000)
(WW) VESA(0): Failed to set up write-combining range (0xe3800000,0x7f0000)
(WW) VESA(0): Failed to set up write-combining range (0xe3000000,0xff0000)
(WW) VESA(0): Failed to set up write-combining range (0xe2000000,0x1ff0000)
(WW) VESA(0): Failed to set up write-combining range (0xe0000000,0x3ff0000)
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning: Multiple symbols for level 1/group 1 on key <I5F>
> Using XF86Sleep, ignoring XF86Standby
> Warning: Symbol map for key <I5F> redefined
> Using last definition for conflicting fields
Errors from xkbcomp are not fatal to the X server
localuser:root being added to access control list
No profile for user 'root' found
SESSION_MANAGER=local/serverxx-xxx-xxx-198.live-servers.net:/tmp/.ICE-unix/22274

** (nm-applet:22375): WARNING **: No connections defined

** (eggcups:22349): WARNING **: IPP request failed with status 1030

** (nm-applet:22375): WARNING **: Invalid return value type: GPtrArray_DBusGObjectPath_

** (eggcups:22349): WARNING **: IPP request failed with status 1030
Initializing nautilus-open-terminal extension
Unable to open desktop file /usr/share/applications/redhat-email.desktop for panel launcher: No such file or directory
Unable to open desktop file /usr/share/applications/openoffice.org-1.9-writer.desktop for panel launcher: No such file or directory
Unable to open desktop file /usr/share/applications/openoffice.org-1.9-impress.desktop for panel launcher: No such file or directory
Unable to open desktop file /usr/share/applications/openoffice.org-1.9-calc.desktop for panel launcher: No such file or directory
Introspect error: The name edu.duke.linux.yum was not provided by any .service files
Traceback (most recent call last):
File "/usr/bin/puplet", line 467, in ?
main()
File "/usr/bin/puplet", line 464, in main
p.run()
File "/usr/bin/puplet", line 451, in run
self._refreshInfo()
File "/usr/bin/puplet", line 191, in _refreshInfo
if self.updatesObject is not None and \
AttributeError: DBusException instance has no attribute '_dbus_error_name'

Last edited by qwertyjjj; 07-18-2010 at 09:08 PM.
 
Old 07-17-2010, 01:32 PM   #5
arifwn
LQ Newbie
 
Registered: Jul 2010
Distribution: Fedora 13
Posts: 2

Rep: Reputation: 1
To enable X forwarding, use -X (capital X) option when starting ssh.

example: ssh to local machine (pointless but it works)

$ ssh -X user@localhost

after the ssh session initiated, you can use any x applications e.g. gedit

$ gedit

Last edited by arifwn; 07-17-2010 at 01:45 PM.
 
Old 07-18-2010, 10:29 AM   #6
wagaboy
Member
 
Registered: Jun 2010
Distribution: Ubuntu 10.04, Cent OS 5.5, CLE3
Posts: 51

Rep: Reputation: 21
Quote:
Originally Posted by arifwn View Post
$ ssh -X user@localhost
You may also want to try
Code:
ssh -Y user@localhost
which "Enables trusted X11 forwarding."
 
1 members found this post helpful.
Old 07-18-2010, 07:33 PM   #7
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,012

Original Poster
Rep: Reputation: 30
The error above us just when starting X though not ssh - is that the same issue?

Last edited by qwertyjjj; 07-18-2010 at 07:35 PM.
 
Old 07-18-2010, 10:11 PM   #8
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,012

Original Poster
Rep: Reputation: 30
Also, I'm trying to kill the existing x server but it keeps restarting automatically under a new pid.
Any ideas?

23008 tty8 Ss+ 0:00 /usr/bin/Xorg :0 -br -audit 0 -auth /var/gdm/:0.Xauth -nolisten tcp vt8
 
Old 07-19-2010, 12:01 AM   #9
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
respawn is set in /etc/inittab http://www.comptechdoc.org/os/linux/...runlevels.html
 
Old 07-19-2010, 06:56 AM   #10
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,012

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by chrism01 View Post
Ok, I commented that out and killed xorg.
I then tried to start x on 1 but got the following errors:

Code:
[root ~]# startx -- :1
xauth:  creating new authority file /root/.serverauth.397


X Window System Version 7.1.1
Release Date: 12 May 2006
X Protocol Version 11, Revision 0, Release 7.1.1
Build Operating System: Linux 2.6.18-53.el5 i686 Red Hat, Inc.
Current Operating System: Linux serverxx-xxx-xxx-198.live-servers.net 2.6.18-164.11.1.el5 #1 SMP Wed Jan 20 07:39:04 EST 2010 i686
Build Date: 13 May 2010
Build ID: xorg-x11-server 1.1.1-48.76.el5_5.1
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Module Loader present
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.1.log", Time: Mon Jul 19 11:52:57 2010
(==) Using config file: "/etc/X11/xorg.conf"
(EE) intel(0): [dri] DRIScreenInit failed. Disabling DRI.
The XKEYBOARD keymap compiler (xkbcomp) reports:
> Warning:          Multiple symbols for level 1/group 1 on key <I5F>
>                   Using XF86Sleep, ignoring XF86Standby
> Warning:          Symbol map for key <I5F> redefined
>                   Using last definition for conflicting fields
Errors from xkbcomp are not fatal to the X server
localuser:root being added to access control list
No profile for user 'root' found
SESSION_MANAGER=local/serverxx-xxx-xxx-198.live-servers.net:/tmp/.ICE-unix/419
Initializing nautilus-open-terminal extension

** (eggcups:502): WARNING **: IPP request failed with status 1030

** (eggcups:502): WARNING **: IPP request failed with status 1030
** Message: Could not connect to power manager: Could not get owner of name 'org.gnome.PowerManager': no such name
Unable to open desktop file /usr/share/applications/redhat-email.desktop for panel launcher: No such file or directory
Unable to open desktop file /usr/share/applications/openoffice.org-1.9-writer.desktop for panel launcher: No such file or directory
Unable to open desktop file /usr/share/applications/openoffice.org-1.9-impress.desktop for panel launcher: No such file or directory
Unable to open desktop file /usr/share/applications/openoffice.org-1.9-calc.desktop for panel launcher: No such file or directory

** (nm-applet:545): WARNING **: No connections defined
Introspect error: The name edu.duke.linux.yum was not provided by any .service files
Traceback (most recent call last):
  File "/usr/bin/puplet", line 467, in ?
    main()
  File "/usr/bin/puplet", line 464, in main
    p.run()
  File "/usr/bin/puplet", line 451, in run
    self._refreshInfo()
  File "/usr/bin/puplet", line 191, in _refreshInfo
    if self.updatesObject is not None and \
AttributeError: DBusException instance has no attribute '_dbus_error_name'
Do I have to kill startx as well?

ps- x

Code:
[root ~]# ps -x
Warning: bad syntax, perhaps a bogus '-'? See /usr/share/doc/procps-3.2.7/FAQ
  PID TTY      STAT   TIME COMMAND
    1 ?        Ss     0:00 init [3]
    2 ?        S<     0:05 [migration/0]
    3 ?        SN     0:00 [ksoftirqd/0]
    4 ?        S<     0:00 [watchdog/0]
    5 ?        S<     0:03 [migration/1]
    6 ?        SN     0:00 [ksoftirqd/1]
    7 ?        S<     0:00 [watchdog/1]
    8 ?        S<     0:00 [events/0]
    9 ?        S<     0:00 [events/1]
   10 ?        S<     0:00 [khelper]
   11 ?        S<     0:00 [kthread]
   15 ?        S<     0:03 [kblockd/0]
   16 ?        S<     0:08 [kblockd/1]
   17 ?        S<     0:00 [kacpid]
  158 ?        S<     0:00 [cqueue/0]
  159 ?        S<     0:00 [cqueue/1]
  162 ?        S<     0:00 [khubd]
  164 ?        S<     0:00 [kseriod]
  233 ?        S<     3:56 [kswapd0]
  234 ?        S<     0:00 [aio/0]
  235 ?        S<     0:00 [aio/1]
  393 ?        S<     0:00 [kpsmoused]
  424 ?        S<     0:00 [ata/0]
  425 ?        S<     0:00 [ata/1]
  426 ?        S<     0:00 [ata_aux]
  430 ?        S<     0:00 [scsi_eh_0]
  431 ?        S<     0:00 [scsi_eh_1]
  432 ?        S<     0:00 [scsi_eh_2]
  433 ?        S<     0:00 [scsi_eh_3]
  440 ?        S<     0:00 [kstriped]
  453 ?        S<     1:47 [kjournald]
  477 ?        S<     0:03 [kauditd]
  508 ?        S<s    0:00 /sbin/udevd -d
  532 ?        S      0:00 /usr/libexec/gam_server
  610 pts/0    S      0:00 /bin/sh /usr/bin/startx -- :1
  627 pts/0    S      0:00 xinit /etc/X11/xinit/xinitrc -- /usr/bin/X :1 -auth /root/.serverauth.610
  628 tty9     S<s+   0:00 /usr/bin/X :1 -auth /root/.serverauth.610
  645 pts/0    T      0:00 /usr/bin/gnome-session
  670 ?        Ss     0:00 /usr/bin/ssh-agent /usr/bin/dbus-launch --exit-with-session /etc/X11/xinit/Xclients
  673 pts/0    T      0:00 /usr/bin/dbus-launch --exit-with-session /etc/X11/xinit/Xclients
  674 ?        Ss     0:00 /bin/dbus-daemon --fork --print-pid 4 --print-address 6 --session
  680 pts/0    T      0:00 /usr/libexec/gconfd-2 5
  683 pts/0    T      0:00 /usr/bin/gnome-keyring-daemon
  685 ?        Sl     0:00 /usr/libexec/gnome-settings-daemon
  705 ?        Ss     0:00 metacity --sm-client-id=default1
  709 ?        Ss     0:00 gnome-panel --sm-client-id default2
  711 ?        Ss     0:00 nautilus --no-default-window --sm-client-id default3
  716 ?        S      0:00 /usr/libexec/gnome-vfs-daemon
  730 ?        S      0:00 /usr/libexec/wnck-applet --oaf-activate-iid=OAFIID:GNOME_Wncklet_Factory --oaf-ior-fd=19
  732 ?        S      0:00 /usr/libexec/trashapplet --oaf-activate-iid=OAFIID:GNOME_Panel_TrashApplet_Factory --oaf-ior-fd=25
  735 ?        Ss     0:00 eggcups --sm-client-id default4
  739 ?        Sl     0:00 /usr/libexec/mixer_applet2 --oaf-activate-iid=OAFIID:GNOME_MixerApplet_Factory --oaf-ior-fd=20
  745 ?        Ss     0:00 bt-applet --sm-disable
  758 ?        Sl     0:00 ./escd --key_Inserted="/usr/bin/esc" --on_Signal="/usr/bin/esc"
  760 ?        Ss     0:00 nm-applet --sm-disable
  764 ?        S      0:00 /usr/libexec/notification-area-applet --oaf-activate-iid=OAFIID:GNOME_NotificationAreaApplet_Factory --oaf-ior-fd=21
  766 ?        S      0:00 /usr/libexec/clock-applet --oaf-activate-iid=OAFIID:GNOME_ClockApplet_Factory --oaf-ior-fd=28
  770 ?        Ss     0:00 pam-panel-icon --sm-client-id default0
  774 ?        Ss     0:00 gnome-power-manager
  775 ?        S      0:00 /sbin/pam_timestamp_check -d root
  777 ?        S      0:00 /usr/libexec/mapping-daemon
  782 ?        S      0:00 gnome-screensaver
  802 ?        S      0:00 /usr/sbin/gdm-binary
  811 tty8     Ss+    0:00 /usr/bin/Xorg :0 -br -audit 0 -auth /var/gdm/:0.Xauth -nolisten tcp vt8
  857 pts/0    R+     0:00 ps -x
 1242 ?        S<     0:00 [hd-audio0]
 1604 ?        S<     0:00 [kmpathd/0]
 1605 ?        S<     0:00 [kmpathd/1]
 1606 ?        S<     0:00 [kmpath_handlerd]
 1633 ?        S<     1:21 [kjournald]
 1635 ?        S<     0:00 [kjournald]
 1850 ?        S<     0:00 [kondemand/0]
 1851 ?        S<     0:00 [kondemand/1]
 2349 ?        S<     0:00 [rpciod/0]
 2350 ?        S<     0:00 [rpciod/1]
 2364 ?        S      0:00 /usr/sbin/courierlogger -pid=/var/spool/authdaemon/pid -start /usr/libexec/courier-authlib/authdaemond
 2365 ?        S      0:00 /usr/libexec/courier-authlib/authdaemond
 2411 ?        S      0:00 /usr/libexec/courier-authlib/authdaemond
 2412 ?        S      0:00 /usr/libexec/courier-authlib/authdaemond
 2413 ?        S      0:00 /usr/libexec/courier-authlib/authdaemond
 2414 ?        S      0:00 /usr/libexec/courier-authlib/authdaemond
 2415 ?        S      0:00 /usr/libexec/courier-authlib/authdaemond
 2454 ?        Ss     0:00 /usr/sbin/hcid
 2488 ?        S<     0:00 [krfcommd]
 2543 ?        Ss     0:00 /usr/sbin/acpid
 2563 ?        Ss     0:00 /usr/bin/hidd --server
 2854 ?        Ss     0:00 /usr/sbin/httpd-matrixsa
 2867 ?        Ss     0:07 crond
 2944 ?        S      0:00 hald-runner
 3104 tty2     Ss+    0:00 /sbin/mingetty tty2
 3105 tty3     Ss+    0:00 /sbin/mingetty tty3
 3106 tty4     Ss+    0:00 /sbin/mingetty tty4
 3110 tty5     Ss+    0:00 /sbin/mingetty tty5
 3122 tty6     Ss+    0:00 /sbin/mingetty tty6
 3509 ?        Ss     0:14 /usr/lib/postfix/master
 4998 ?        S      0:01 [pdflush]
 7191 ?        Ss     0:06 syslogd -m 0
 7194 ?        Ss     0:00 klogd -x
 7518 ?        S      0:11 /usr/bin/oprofiled --session-dir=/var/lib/oprofile --separate-lib=1 --separate-kernel=1 --separate-thread=0 --separate-cpu=0 --events=CPU_CLK_UNHALTED
 8684 ?        Ss     0:00 /usr/sbin/atd
 8722 ?        Ss     0:00 rpc.idmapd
 8807 ?        Ssl    0:00 automount
 8947 ?        S<sl   0:19 auditd
 8949 ?        S<sl   0:09 /sbin/audispd
 9069 ?        Ss     0:00 squid -D
 9325 ?        Sl     0:17 python MatrixSALaunch.py ThreadedAppServer
10389 ?        S      0:02 [pdflush]
18257 ?        Ssl    0:00 pcscd
20460 ?        Ss     0:00 cupsd
22202 ?        Ss     0:00 /usr/sbin/gdm-binary
22205 ?        Sl     0:00 /usr/libexec/gdm-rh-security-token-helper
22385 ?        S      0:00 /usr/sbin/nm-system-settings --config /etc/NetworkManager/nm-system-settings.conf
22764 ?        Ssl    0:00 /usr/libexec/bonobo-activation-server --ac-activate --ior-output-fd=16
26297 ?        Ss     0:00 (ncsa_auth) /etc/squid/xxxxx
26298 ?        Ss     0:00 (ncsa_auth) /etc/squid/xxxxx
26299 ?        Ss     0:00 (ncsa_auth) /etc/squid/xxxxx
26300 ?        Ss     0:00 (ncsa_auth) /etc/squid/xxxxx
26301 ?        Ss     0:00 (ncsa_auth) /etc/squid/xxxxx
30911 ?        Ss     0:00 /usr/sbin/sshd
30936 ?        S      0:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --socket=/var/lib/mysql/mysql.sock --log-error=/var/log/mysqld.log --pid-file=/var/run/mysqld/my
31493 tty1     Ss+    0:00 /sbin/mingetty tty1
31521 ?        S<     0:01 [reiserfs/0]
31522 ?        S<     0:01 [reiserfs/1]
32732 ?        Ss     0:00 sshd: xxxxx [priv]
32752 pts/0    S      0:00 su -
32753 pts/0    S      0:00 -bash
 
  


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
Folder View or graphical view login using ssh caliskans Linux - Newbie 2 07-05-2009 05:57 PM
Using DSL and ssh / ssh-server to access the Windoze desktop GUI On2ndThought Linux - Server 4 11-16-2008 03:17 PM
GUI to view audit logs mgk720 Linux - Security 3 01-29-2008 08:41 PM
How to view command executed via GUI skleung Linux - General 5 07-09-2007 06:32 AM
Whole GUI Can't View Images laxisusous Linux - General 3 09-20-2006 08:17 AM


All times are GMT -5. The time now is 09:06 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