To edit/create a local crontab
crontab -e
Here I am running a GUI program at 12:15 AM and terminating it at 5:50 AM ( there are better ways to terminate though ;) )
15 00 * * * DISPLAY=:0 /usr/bin/somegui
50 05 * * * /usr/bin/pkill somegui
Nix Alley is a place for random knowledge about *nix systems . Linux in particular. Life in general.
To edit/create a local crontab
crontab -e
Here I am running a GUI program at 12:15 AM and terminating it at 5:50 AM ( there are better ways to terminate though ;) )
15 00 * * * DISPLAY=:0 /usr/bin/somegui
50 05 * * * /usr/bin/pkill somegui
I have a Bluetooth speaker with USB support. Come next storm ( and power disruption) I have one pen drive full of classic rock songs . The problem is they are named as such " Artist - Song.mp3 and in the dir, they play alphabetically .. ah darn .. all AC/DC songs at one go.. lets change the file names as such "song.mp3" :-)
for i in *.mp3 ; do mv -v "$i" "${i#* -}" ; done
does the trick . Bash pattern matching
I've gotten fond of tea these days .. especially "Twinnigs earl grey" .. I prefer it seeped for 2.5 minutes .. so I wrote a trivial tea timer to time my teas . The default is 3 minutes . It's convenient as the image chosen gets displayed over screen even if mplayer is playing a movie in full screen.
I'm using Feh which is a fine image viewer. .. cheers.
t=180
if [ $1 ] ; then t=$(echo "$1*60" | bc ) ; fi
t=$(echo $t | awk -F "." '{print $1}')
i=0
echo "$i"
while [ $i -lt $t ] ; do let i=$i+1 ; echo $i ; sleep 1; clear; done
echo " $i seconds"
feh -F ~/tea.jpg
tsched=0
in /etc/pulse/default.pa
$ sudo apt-get install build-essential linux-headers-$(uname -r)
wget -c http://goo.gl/JXy7L -O VMware-Player-5.0.2-1031769.x86_64.bundle.tar
note : The shortened URL points to a vmware hosted download server
The above link no longer works !!!!
wget -c https://www.vmware.com/go/tryplayerpro-linux-64
$chmod +x
tryplayerpro-linux-64
Create a directory say VMware and move the bundle to that dir. The just run the "bundle".
./
tryplayerpro-linux-64
Have fun :)