Detect if X server is installed
Is it possible to write a script which will tell me if x-server is installed. Can somebody please tell me how.
Please help Rieta |
I think you don't need to write any scripts, just try some commands:
startkde , Xconfigurator, man XF86Config, xf86config, xfree86setup |
Or, check your log files. /var/log/XFree86.0.log
Should exist if you have one installed. |
Ofcourse it's possible to write a script, AFAIK X11 makes X a link to server in /usr/X11/bin, dunno which distro's won't handle this:
if [ -f /etc/X11/X ]; then set_instd_flag=0; fi |
All times are GMT -5. The time now is 02:35 PM. |