screen

Screen is a terminal multiplexer. It is very useful if you want to run multiple programs/scripts at the same time and want to switch between them. You don’t need to open another terminal for it and it even keeps them running when you logoff from the terminal.

To install screen type:
#apt-get install screen

To run it type
#screen

Here a couple of useful shortcuts (C stands for Ctrl)

Shortcut Description
C-a c Create a new window
C-a n Jump to the next window
C-a p Jump to the previous window
C-a A Set a window name
C-a “ Overview of all windows
C-a K Close window (kill)
C-a d Detach screen
C-a S Split screen horizontally
C-a | Split screen vertically
C-a Q Remove splits
C-a {Tab} Switch between the window

To reattach a screen type:
#screen -r

No Comments »

admin on May 19th 2010 in Linux

Show all hidden files and folders in Finder

Run in terminal:

Show all files:
defaults write com.apple.finder AppleShowAllFiles TRUE
killall Finder

Hide it again:
defaults write com.apple.finder AppleShowAllFiles FALSE
killall Finder

No Comments »

admin on October 21st 2009 in MAC

Scheduled Download Azureus/aMule Mac

I just moved from Europe to Australia and there you actually get a fast Internet Connection but with bandwidth limitation. So you get a bandwidth volume for peak and off peak time. Of course the one one for the off peak time is much bigger. So at the begin I didn’t care much about it and I was downloading as usual. Soon I had used my volume for the peak time and I could surf just with ISDN speed during the day. So I needed scheduled downloading but I missed that feature in Azureus and aMule. So what’s the solution to that dilemma?

We know MAC OS is based on Unix and there is service called crontab which does the trick. It is running in the background and is used to run commands in a specified interval. What I basically do is open and close the download program in a specific time.

1. Open Terminal
2. “crontab -e”
3. Modifie and put the commands below:

  1. 05 2 * * * /Applications/aMule.app/Contents/MacOS/amule
  2. 05 2 * * * /Applications/Azureus.app/Contents/MacOS/JavaApplicationStub
  3. 55 11 * * * kill `ps aux | grep aMule | grep -v grep | awk '{print \$2}'`
  4. 55 11 * * * kill `ps aux | grep Azureus | grep -v grep | awk '{print \$2}'`

4. To save the file press “:” (run commands) and then press “qw” (quit and write)

Explanation:
2:05am Open aMule
2:05am Open Azureus
11:55am Close aMule
11:55am Close Azureus

Of course the interval time and paths needs to be adjusted. Do a google search if you want to know more about crontab.

No Comments »

admin on May 18th 2008 in MAC




Check out new movies online website. Download and buy movies now.
1