Jump to content

What cool things can you do with ssh??


Peep
 Share

Recommended Posts

What can yo do via ssh to get someone's attention while they're using another machine? The best I've come up with is SSH'ing to the other machine and doing an "eject" and then an "eject -t" to put the cdrom drawer in and out... but there's probably something funnier that can be done. X apps all open on the remote machine, so I'm at a loss for other ways to get a girlfriend's attention when she's in the other room playing frozen bubble or lbreakout. (killing the process works, but is unpopular) Any ideas?

Edited by Peep
Link to comment
Share on other sites

X apps don't start on the local machine if you ssh to the remote machine like this:

 

ssh -x remote-machine

export $DISPLAY=:0.0

 

(if that's the display she's on)

 

Here's a good one:

Xdialog --no-close --no-cancel --ok-label Yes --msgbox Do\ You\ REALLY\ Want\ to\ Erase\ the\ Entire\ Harddrive??? 5 48

Edited by Steve Scrimpshire
Link to comment
Share on other sites

Or even better, copy the attached file to the directory on her machine that you are going to be running the command in and then run this command:

 

Xdialog --no-close --beep-after --title "Ready to Format Harddrive" --ok-label No --infobox "Do You REALLY Want to Erase the Entire Harddrive???" 5 48 4750 && Xdialog --title "Formatting Harddrive" --gauge "Formatting Harddrive" 5 48 10 < file.txt

file.txt

Edited by Steve Scrimpshire
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...