• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Can keyboard inputs be invoked remotely ?

SokaMoka

Banned
I have setup a Fedora Core 4 box for a friend of my mine at his place, and I adminster his machine remotely via ssh on my free time or whenever he runs into an issue he doesn't have time to deal with / doesn't know how to get done.

Usually that involves installing apps for him / resolving certain dependencies which is something way beyond his league.

I got an idea today, he used to play some jokes on me back at the office and now it's payback time 😀

What I want to do is something simple yet confuse him a bit :laugh:

I want to make his Numlock blink on and off continiousley and maybe his CapsLock too so he is like " WTF!!"

Is it possible to invoke those keyboard iputs via terminal ?

Something like a for loop that has the required commands, timed for a minute or so.
 
For the beeping thing there's also a beep package done in C, or you can use printf "\a" from a shell.

I don't know how to enable/disable the caps/num locks manually, but you could always install the tleds package.
 
Originally posted by: nweaver
better yet, beep his speaker. There is a beep perl module iirc

Originally posted by: Nothinman
For the beeping thing there's also a beep package done in C, or you can use printf "\a" from a shell.

I don't know how to enable/disable the caps/num locks manually, but you could always install the tleds package.


Oh man I already know the beep command, but why didn't I think about it ?? Sweet.

Hmm however I am not familiar with tled I will have to look that up.

One last question, I am not sure when he would be usually playing around with the Fedora box again, how can figure when a user has logged in while in terminal ? Better yet how can I write a script that sends a message to root eveytime a user logs in to the machine ? Also knowing the location of the login logfile would be benefecial here.

And here is another idea what's the command for ejecting the CD-ROM Drive ?

This will be AWESOME 😀

It will be a whole series of beeps keyboard LED's flashing CD-ROM drive (s) ejecting and one confused as hell friend haha.

Then I will sure get a call from him telling me how wierd Fedora is behaving and then I'll play along for a while and then tell him that I am not near my PC ATM and tell him to go to terminal and type 1=90t-p@wn3d and lit him read it to me , and just before he realizes what he typed I will beep his PC a couple of times and tell him "
You hear that ? That's you getting PWNED!!"

Oh I can't wait :evil: that will teach him not to hook a wireless keyboard & mouse to my office PC and start jerking around with me for 8 minutes before I checked my PC and noticed that there was this USB RF reciever hooked up to the back, damned guy was laughing his ass off from his office while I was writing a report >_<

 
Back
Top