Actually, it's more complicated than that. GNOME & KDE use HAL (the hardware
abstraction layer) and UDEV (the device manager daemon) to do all those
"automatic" things.

To see what UDEV does when you encounter hardware use:

*udevadm --log-priority=debug*

(In older versions of UDEV, the command was a bit different. I think it was
udevcontrol or something)

Then do a tail of */var/log/messages*.

Now you can see all those "automated" things that happen when you plug in a
flash drive, printer, etc.

Debugging HAL means editing your startup scripts such that the hald daemon
has the --verbose=yes parameter.

In openSUSE, edit */etc/init.d/haldaemon* & edit *HALDAEMON_PARA* to
have "*--daemon=yes
--verbose=yes*"

Again, *tail -f /var/log/messages* will show you what's going on.

Good luck!
Peter

"Happiness makes up in height what it lacks in length"
-- Robert Frost


2009/10/27 Markus A. Wipfler <[email protected]>

> Hi,
>
> have a look at syslog and its config file. Depending on which unix / linux
> flavor you are using, a good place to start would be:
>
> # apropos syslog
>
>
>
>
> Regards
>
> --
> Markus
>
>
>
>
>
>
>
>
>
>
>
>
>
> On Oct 27, 2009, at 8:24 PM, Benjamin Wakhweya wrote:
>
>  Hi Robert,
>>
>> Log files are generally stored under
>>
>> /var/log/
>>
>> I don't know of any of particular log file in here though that "logs
>> Linux commands given by Gnome"
>>
>> When you plug in a usb flash drive, you should see some activity that
>> you'll be able to see by typing in
>>
>> "tail /var/log/messages"
>>
>> which shows you the last ten lines of the log file (as it may be
>> constantly changing as you read it)
>>
>> OR
>>
>> "less /var/log/messages"
>>
>> I'm assuming that you are interested in learning commands from the
>> system as it goes about it's usual tasks, my suggestion is that you
>> either get yourself a good book that has a chapter which references
>> most basic Linux commands for easy lookup
>>
>> OR
>>
>> Google the particular command you are looking for.
>>
>> Either way, with time, practice and loads of patience on your part,
>> the commands will become second nature,
>>
>> Benjamin M Wakhweya
>> Kafuluz Technical Services
>> Nsambya By-Pass Road
>> Kampala
>>
>> --
>> A person who never made a mistake never tried anything new.
>> Albert Einstein
>>
>>
>>  Date: Tue, 27 Oct 2009 02:14:03 -0700
>>> From: [email protected]
>>> Subject: [LUG] Logging Linux commands given by Gnome
>>> To: [email protected]
>>> Message-ID: <[email protected]>
>>> Content-Type: text/plain;       charset=ISO-8859-1;     DelSp="Yes";
>>>        format="flowed"
>>>
>>> Hi,
>>>
>>> Is there a system log that logs Linux commands given by Gnome? For
>>> example, when I connect a thumb drive to the USB port, Gnome opens a
>>> File Browser window. Gnome is clearly doing a "mount", but it seems to
>>> be doing some other things as well, and I'd like to know what Linux
>>> commands it runs.
>>>
>>> Thanks in advance,
>>>
>>> Robert
>>>
>>>
>>>
>>>  _______________________________________________
>> LUG mailing list
>> [email protected]
>> http://kym.net/mailman/listinfo/lug
>> %LUG is generously hosted by INFOCOM http://www.infocom.co.ug/
>>
>> The above comments and data are owned by whoever posted them (including
>> attachments if any). The List's Host is not responsible for them in any way.
>> ---------------------------------------
>>
>
>
> _______________________________________________
> LUG mailing list
> [email protected]
> http://kym.net/mailman/listinfo/lug
> %LUG is generously hosted by INFOCOM http://www.infocom.co.ug/
>
> The above comments and data are owned by whoever posted them (including
> attachments if any). The List's Host is not responsible for them in any way.
> ---------------------------------------
>
>
>
_______________________________________________
LUG mailing list
[email protected]
http://kym.net/mailman/listinfo/lug
%LUG is generously hosted by INFOCOM http://www.infocom.co.ug/

The above comments and data are owned by whoever posted them (including 
attachments if any). The List's Host is not responsible for them in any way.
---------------------------------------

Reply via email to