Thursday, June 2, 2011

Securing SSH On Ubuntu With WiKID Two-Factor Authentication

Create A Network Client

After saving the domain information, click on the Network Client tab and Create New Network Client. Enter a name for this client and the IP Address of the SSH gateway on the internal network. Select Radius as the protocol and the domain you created above as the domain.



View the Original article

Record your Linux desktop from the command line

If you do not wish to install a dedicated application for recording your desktop, you can do it with this one-liner:

ffmpeg -f x11grab -s wxga -r 25 -i :0.0 -sameq /home/user/out.mpg

All you need is have ffmpeg already installed (and most systems do). Navigate to /home/user and you’ll find you MPEG video file there.



View the Original article

Check your unread GMail e-mails using the Linux command line

All you need to display your latest GMail messages in the command line is this one-liner:

curl -u username:password --silent “https://mail.google.com/mail/feed/atom”

View the Original article

Monitor your changed files in real-time in Linux

Everybody knows top or htop. Ever wished there was something similar but to monitor your files instead of CPU usage and processes? Well, there is.
Run this:

watch -d -n 2 ‘df; ls -FlAt;’

and you’ll get to spy on which files are getting written on your system. Every time a file gets modified it will get highlighted for a second or so. The above command is useful when you grant someone SSH access to your box and wish to know exactly what they’re modifying.



View the Original article

Wednesday, June 1, 2011

Leave no traces in your .bash_history file

If you wish to not leave traces of your CLI activity in the .bash_history file, you can exclude the logging of certain commands by appending a space character before them. For example, press the space bar before you type cat /etc/passwd:

cat /etc/passwd



View the Original article

Impress your friends with your CLI magic in Linux

Here are two one-liners to have fun with. The first one takes a block of text you input it and displays it one character at a time, creating the impression that someone else is typing:

echo “I have a troll in my Linux box that is doing all the work for me”

View the Original article

Extract a tarball online without local saving

This can be a real saver if you are using an EeePC with very low disk space. Say you want to download a large file but you don’t want to save it locally because you don’t have the necessary disk space. Do a

wget -qO - “http://www.site.com/archive.gz”

View the Original article

Make that last command into a Linux script

You have been trying combinations to see which command line options best fit your needs, and you’ve finally found it. Now let’s make that into a script. You could revert to the last command using your Up key, copy the string, create a new file, paste the string, save the file. Or you could simply

echo “!!” > awesome-script.sh



View the Original article

Install Firefox 4.0 in Ubuntu 10.10 via apt

The easiest way to install the latest version of Firefox in your Ubuntu is by launching the following command:

sudo add-apt-repository ppa:mozillateam/firefox-stable && sudo apt-get update && sudo apt-get install firefox

This will update your current version of Firefox to 4.0.



View the Original article

Disable the overlay scrollbars in Ubuntu 11.04

With the new Ubuntu 11.04, the scrollbars in almost all applications and windows look radically different than those we grew accustomed with. Here’s how to revert them to the old looks:

sudo apt-get remove overlay-scrollbarsudo suecho "export LIBOVERLAY_SCROLLBAR

View the Original article