LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   do I have GUI installed on server? (https://www.linuxquestions.org/questions/linux-newbie-8/do-i-have-gui-installed-on-server-746570/)

qwertyjjj 08-10-2009 06:17 PM

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.

pljvaldez 08-10-2009 06:18 PM

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.

qwertyjjj 08-10-2009 06:25 PM

Quote:

Originally Posted by pljvaldez (Post 3638504)
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 ~]#


chrism01 08-10-2009 06:40 PM

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.

qwertyjjj 08-10-2009 06:42 PM

Quote:

Originally Posted by chrism01 (Post 3638527)
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?

chrism01 08-10-2009 06:47 PM

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

pljvaldez 08-10-2009 06:52 PM

Quote:

Originally Posted by chrism01 (Post 3638532)
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.


All times are GMT -5. The time now is 12:38 AM.