Originally Posted by
tgalati4
Yes, grepping fstab would be a reliable way to do it. Although there are many, many live CD/DVD's you would have to compile a list of markers to uniquely identify each different type of live environment.
When logged into my freenas file server I find the following:
[tgalati4@freenas ~]$ cat /etc/fstab
# Device Mountpoint FStype Options Dump Pass#
/dev/ad1s1a / ufs rw 1 1
proc /proc procfs rw 0 0
# Used for htop if I can ever get it to work
# linproc /compat/linux/proc linprocfs rw 0 0
freenas runs the ufs file system and it is running from a hard disk, not a live usb or CD.
But on my Jaunty laptop:
tgalati4@tpad-Gloria7 ~ $ echo $DESKTOP_SESSION
default
Which is not very helpful in identifying that I am running a Gnome2 desktop.
I would use Amongst other things it shows
Code:
GNOME_DESKTOP_SESSION_ID=Failsafe
...in my case
Bookmarks