Monthly Archives: July 2010

SSH Tips for the day

‘When you are forwarding ports through a tunnel, either locally or remotely (i.e., with the -L or -R switches), you can modify the session real-time. The way that you do this is after you start the session, you press SHIFT … Continue reading

Share
Posted in Linux Tricks | Leave a comment

Cropping Multiple Images in the Same Way

‘Getting the right cropping values using GIMP In 5 steps: Where to find the cropping values 1. Open up GIMP. 2. Open one of the images in GIMP. 3. Using the Rectangle Select Tool (hotkey “R”), select the area you … Continue reading

Share
Posted in Important for LPI 117-101 | Leave a comment

Creating an mpeg with mencoder that plays on Windows Media Player

‘Let’s have a look at a rather simple mencoder command that should create a WMP-compatible MPEG file: [rechosen@localhost ~]$ mencoder -oac lavc -ovc lavc -lavcopts acodec=mp2:vcodec=mpeg2video:mbd=1:vbitrate=1800 -of mpeg -o Replace “ ” with the video source (for example a file … Continue reading

Share
Posted in Important for LPI 117-101 | Leave a comment

If Condition in Bash Script

‘If you use bash for scripting you will undoubtedly have to use conditions a lot, for example for an if … then construct or a while loop. The syntax of these conditions can seem a bit daunting to learn and … Continue reading

Share
Posted in Important for LPI 117-101 | Leave a comment