LinuxQuestions.org
Help answer threads with 0 replies.
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 08-10-2009, 07:17 PM   #1
qwertyjjj
Senior Member
 
Registered: Jul 2009
Location: UK
Distribution: Cent OS5 with Plesk
Posts: 1,012

Rep: Reputation: 30
do I have GUI installed on server?


How do I know whether I have a GUI installed on the server or not?
I suspect not as I only have SSH access but I want to check in case it's using up memory.
 
Old 08-10-2009, 07:18 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
ps aux |grep gdm (or kdm or xdm and/or xorg)

I guess you should just do ps aux and look through for things that look gui-like.

If you know what distro, you could use the package manager to list the files installed and see if an xserver is installed.

Last edited by pljvaldez; 08-10-2009 at 07:19 PM.
 
Old 08-10-2009, 07:25 PM   #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 pljvaldez View Post
ps aux |grep gdm (or kdm or xdm and/or xorg)

I guess you should just do ps aux and look through for things that look gui-like.

If you know what distro, you could use the package manager to list the files installed and see if an xserver is installed.
Code:
[root@localhost ~]# ps aux |grep gdm
root     19549  0.0  0.1   4116   620 pts/0    SN+  00:23   0:00 grep gdm
[root@localhost ~]# ps aux |grep kdm
root     19565  0.0  0.1   4120   624 pts/0    SN+  00:24   0:00 grep kdm
[root@localhost ~]# ps aux |grep xdm
root     19567  0.0  0.1   4120   620 pts/0    SN+  00:24   0:00 grep xdm
[root@localhost ~]# ps aux |grep xorg
root     19571  0.0  0.1   4116   624 pts/0    SN+  00:24   0:00 grep xorg
Code:
[root@localhost ~]# locate xserver
/usr/lib/xserver
/usr/lib/python2.4/site-packages/rhpxl/xserver.py
/usr/lib/python2.4/site-packages/rhpxl/xserver.pyc
/usr/lib/python2.4/site-packages/rhpxl/xserver.pyo
/usr/lib/xserver/SecurityPolicy
/usr/share/doc/nss_ldap-253/pam.d/xserver
/usr/share/doc/selinux-policy-2.4.6/html/services_xserver.html
[root@localhost ~]#

Last edited by qwertyjjj; 08-10-2009 at 07:27 PM.
 
Old 08-10-2009, 07:40 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,260

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
Wouldn't worry too much. Like any other sw, if you're not using it (ie actually pointing/clicking), 99% of it will be flushed from mem, just leaving a stub so the kernel can respond to any activation.
Try running top to see.
 
Old 08-10-2009, 07:42 PM   #5
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
Wouldn't worry too much. Like any other sw, if you're not using it (ie actually pointing/clicking), 99% of it will be flushed from mem, just leaving a stub so the kernel can respond to any activation.
Try running top to see.
what should I be looking for?
Is grep the GUI?
How would I actually be able to access the GUI remotely anyway?
 
Old 08-10-2009, 07:47 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,260

Rep: Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328Reputation: 2328
One way to check is to look at /etc/inittab. There's a line in there with the word initdefault, which means startup init level (man init or telinit).

3 = cli mode
5 = Xserver (GUI) mode

http://www.linuxhomenetworking.com/w...x_Boot_Process
 
Old 08-10-2009, 07:52 PM   #7
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
Quote:
Originally Posted by chrism01 View Post
One way to check is to look at /etc/inittab. There's a line in there with the word initdefault, which means startup init level (man init or telinit).

3 = cli mode
5 = Xserver (GUI) mode

http://www.linuxhomenetworking.com/w...x_Boot_Process
Unless it's Debian based in which all the runlevels (2-5) are the same. You have to customize them yourself.

You're better off browsing through the entire ps aux output and google for things if you don't know what they are.
 
  


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
Installed KnoppMyth but cannot get to GUI skr Linux - Distributions 4 11-20-2007 01:08 PM
Fedora 7 Installed - No Gui Help JustaDad Linux - Newbie 7 09-13-2007 08:23 PM
Installed 10.0; GUI interface to X server not found? Pck21 SUSE / openSUSE 11 07-09-2006 12:54 AM
Installed Suse 10 and no GUI leupi Linux - Hardware 12 04-06-2006 05:30 AM
OK I've installed Debian; how do I get a GUI? gusjones Linux - Newbie 14 03-19-2005 01:58 PM


All times are GMT -5. The time now is 09:08 PM.

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