LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   view GUI on SSH? (https://www.linuxquestions.org/questions/linux-newbie-8/view-gui-on-ssh-820322/)

qwertyjjj 07-16-2010 10:48 PM

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

AlucardZero 07-16-2010 11:40 PM

X Forwarding or VNC

qwertyjjj 07-17-2010 07:29 AM

Quote:

Originally Posted by AlucardZero (Post 4035977)
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?

qwertyjjj 07-17-2010 09:06 AM

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'

arifwn 07-17-2010 12:32 PM

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

wagaboy 07-18-2010 09:29 AM

Quote:

Originally Posted by arifwn (Post 4036438)
$ ssh -X user@localhost

You may also want to try
Code:

ssh -Y user@localhost
which "Enables trusted X11 forwarding."

qwertyjjj 07-18-2010 06:33 PM

The error above us just when starting X though not ssh - is that the same issue?

qwertyjjj 07-18-2010 09:11 PM

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

chrism01 07-18-2010 11:01 PM

respawn is set in /etc/inittab http://www.comptechdoc.org/os/linux/...runlevels.html

qwertyjjj 07-19-2010 05:56 AM

Quote:

Originally Posted by chrism01 (Post 4037652)

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



All times are GMT -5. The time now is 02:52 AM.