LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 03-15-2016, 01:50 AM   #1
fanoflq
Member
 
Registered: Nov 2015
Posts: 397

Rep: Reputation: Disabled
logging of graphical operations


I suspect there is logging of graphical command operations.
Where are those command logging files for Linux Mint and CentOS?
Thanks.
 
Old 03-15-2016, 06:57 AM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Smarta-alec'y answer:
Quote:
We could tell you but we'd then have to silence you... (maniacal laugh)
More correct answer:
Quote:
None that I'm aware of. If you suspect such, rather than blindly ask, go look.
There is history of commands within your terminal. Graphical commands? You mean mouse clicks and screen actions? None natively in any Linux OS, nor (to be fair) Windows. I was aware of a screen spy utility, but it was an add-on that people could put on a screen to monitor/catch/spy/etc probably not technically legal and so forth.

Brute force would be to run your system, mouse around a lot and check files, as well as hidden files and verify that things aren't growing. You're internet cache file will grow, but you can look at that.

Your question is open ended, doesn't really explain your thinking, perhaps you can share why you feel this and what the impetus is for your question. I mean, if you're all paranoid, then I recommend you become very well versed in Linux, enough so that you can make this determination yourself. I won't tell you that it's impossible, I've already cited that persons could install software (previously known for Windows) which can do that, I've seen software which can take screenshots every so many seconds, therefore whatever content someone is viewing, it is all saved, provided it's showing at the time of the screenshot. That typically would be used for spying, likely on spouses or kids, "for the greater good" as the perpetrator would always tell you. I.e. not morally good. Only you can determine if this situation potentially matches your own.

If instead you're just asking because of a technical thing, like you need to record and replay a sequence, I'd say again, "not natively", and also add that if you're trying to automate something, there are likely better ways to do it.
 
Old 03-15-2016, 09:10 AM   #3
fanoflq
Member
 
Registered: Nov 2015
Posts: 397

Original Poster
Rep: Reputation: Disabled
Quote:
Your question is open ended, doesn't really explain your thinking, perhaps you can share why you feel this and what the impetus is for your question.
Being able to see the command issued after graphically setting or interaction can enhance command line learning significantly.

If the gui app issues a command, it has to go through Bash. and Bash interprets and then sends relevant command to kernel. So somewhere this command may be logged (or should be logged?) globally.

Last edited by fanoflq; 03-15-2016 at 09:16 AM.
 
Old 03-15-2016, 09:16 AM   #4
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Quote:
Originally Posted by fanoflq View Post
Being able to see the command issued after graphically setting or interaction can enhance command line learning significantly.

If the gui app issues a command, it has to go through Bash. and Bash interprets sends relevant command to kernel So somewhere this command may be logged (or should be logged?).
No it won't go through the shell. The UI is running a program and uses the library calls available to it. For an example, you use mv to rename a file, correct? Please take a look at the C program manual page for the rename() function, which is a library command used from within a program to accomplish the same action, thus without the use of the shell ever.

rename(3)
 
Old 03-15-2016, 09:22 AM   #5
fanoflq
Member
 
Registered: Nov 2015
Posts: 397

Original Poster
Rep: Reputation: Disabled
Quote:
No it won't go through the shell. The UI is running a program and uses the library calls available to it. For an example, you use mv to rename a file, correct?
But these operations has to go through the kernel somewhere inside those C function calls if it involves the filesystem or some kernel level operations.
 
Old 03-15-2016, 09:31 AM   #6
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Quote:
Originally Posted by fanoflq View Post
But these operations has to go through the kernel somewhere inside those C function calls if it involves the filesystem or some kernel level operations.
But it won't go through BASH per your assertion. Note that you can find the C code for the rename() library function and determine what that does. And you can also find the C code for the mv command and determine what that does. Likely they do very similar stuff, but no guarantees. This is just one example, there are others. And remember that there are usually more than one way to skin the cat, hence a UI program uses library functions more than uses any BASH commands, especially since using a BASH command would require a fork() to accomplish it and would be very inefficient versus just using a library command. I do not believe this is either uniform, or as simple as you're trying to hope it can be so that you can put in a single hook to be able to conclude everything from a single source.
 
1 members found this post helpful.
Old 03-15-2016, 09:39 AM   #7
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,930

Rep: Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321Reputation: 7321
you can check the kernel calls using strace
 
2 members found this post helpful.
  


Reply



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
[SOLVED] Linux Ent 5 only root logging in.not other users logging authentication failure error ravikavala Linux - General 1 09-30-2014 03:46 AM
Automatically start graphical (SDL) program as root on non-graphical Debian the_merovingian Debian 1 03-03-2009 03:20 PM
Logging all mysql command line operations Linville79 Linux - Server 8 06-19-2008 01:51 PM
Logging into Linux machien remotely with graphical interface hopbalt Linux - Newbie 1 08-12-2004 01:11 PM
Mandrake logging into graphical interface Syringe Mandriva 4 07-26-2004 11:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:29 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
Open Source Consulting | Domain Registration