Ubuntu is an African word and ubuntu is Africa themed Linux
so what is so important in Africa? beside being poor and potential for development Africa people use little of our earth resources. As seen on image emissions from Africa are low. Have met a men who fly a lot over continents and when flying over Africa at night you just don't see much lights as in other countries.
Many people in developed world today think that development means luxury. That rich mean yacht. Little rich people make use of their money to help rebuild planet. So what is truly developed person? sure one that has low impact living as seen daily in Africa and ubuntu.
note:This weblog currently support XUBUNTU.
|
|
|---|
|
|
|---|
Monday, August 17, 2009
Wednesday, August 5, 2009
copy mp3s to your mp3player in right order
your audio files not in right order on mp3player? right place!
#before runnin change dir of your mp3s and dir of your usb
#remove spaces because bash hate spaces
for ((i=1;i<=15;i+=1)); do
(cd /home/username/media/cpbook && find -type f -name "*.mp3" -exec rename 's/ /\_/i' {} \;)
done
#see if ok
(cd /home/username/media/cpbook && ls)
#copy in alfabetical order to your player
(cd /home/username/media/cpbook && for i in `ls *.mp3`; do cp "$i" /media/player;sync; done)
to see how to split too big file (for audiobooks) see
http://michkhoo.blogspot.com/2009/05/solved-split-mp3-to-smaller-files.html
#before runnin change dir of your mp3s and dir of your usb
#remove spaces because bash hate spaces
for ((i=1;i<=15;i+=1)); do
(cd /home/username/media/cpbook && find -type f -name "*.mp3" -exec rename 's/ /\_/i' {} \;)
done
#see if ok
(cd /home/username/media/cpbook && ls)
#copy in alfabetical order to your player
(cd /home/username/media/cpbook && for i in `ls *.mp3`; do cp "$i" /media/player;sync; done)
to see how to split too big file (for audiobooks) see
http://michkhoo.blogspot.com/2009/05/solved-split-mp3-to-smaller-files.html
Labels:
hardware
Sunday, August 2, 2009
human labor games comparison (gwap, google image labeler)
all games described use human labour to produce better web for example better results when looking for images
general
Google image labeler: fast, efficient, simple, can track image source
gwap:slow, beautiful, give awards (probably small presents like books), require login
description
google image labeler
brilliant game to learn language, see new images and help google image search
gwap games:
ESP game like google image labeler
Verbosity seem to be perfect for high level English speakers
Tag a tune you hear music and then tag, you have agreed wth your companion if listening to same tune, extra game where you look for most different tune
Squigl maybe good match if you have pen tablet instead of mouse - you draw lines around objects
Matchin you select pic that seems better to you - mostly clicking
Pop Video watch music video from youtube instead, when there is a talk or lyrics just look not worth writing it all down
-----
tip
use google image labelr with greasemonkey installed and darken script. search: darken lifehacker
conclusion
google imagel labeler may be better and seems like game of the century
but anyway when waitin to load you can play gwap
general
Google image labeler: fast, efficient, simple, can track image source
gwap:slow, beautiful, give awards (probably small presents like books), require login
description
google image labeler
brilliant game to learn language, see new images and help google image search
gwap games:
ESP game like google image labeler
Verbosity seem to be perfect for high level English speakers
Tag a tune you hear music and then tag, you have agreed wth your companion if listening to same tune, extra game where you look for most different tune
Squigl maybe good match if you have pen tablet instead of mouse - you draw lines around objects
Matchin you select pic that seems better to you - mostly clicking
Pop Video watch music video from youtube instead, when there is a talk or lyrics just look not worth writing it all down
-----
tip
use google image labelr with greasemonkey installed and darken script. search: darken lifehacker
conclusion
google imagel labeler may be better and seems like game of the century
but anyway when waitin to load you can play gwap
Labels:
fun,
productivity,
stories,
web
Tuesday, July 21, 2009
start and play seamless video with script
video that can be played for entertainment similar to visualisations and screensavers
digital juice and art beats are known producers of seamless video
-------------------------------------------------------------------------------------------------------------------------------------------------
killall xfmedia
sudo xfmedia -loop -f './media/seamless/seamlessvideo.mov'&
sleep 4
#window name is Xfmedia: seamlessvideo
b=$(xwininfo -name Xfmedia:\ seamlessvideo | grep Window\ id:\ | awk '{print $4}')
#commands to restart playback to get picture #on my pc (using virtual keyboard)
xvkbd -xsendevent -window $b -text "\t"
xvkbd -xsendevent -window $b -text "\t"
xvkbd -xsendevent -window $b -text "\t"
xvkbd -xsendevent -window $b -text "\t"
#stop
xvkbd -xsendevent -window $b -text "\r"
xvkbd -xsendevent -window $b -text "\t"
xvkbd -xsendevent -window $b -text "\t"
xvkbd -xsendevent -window $b -text "\t"
xvkbd -xsendevent -window $b -text "\t"
xvkbd -xsendevent -window $b -text "\t"
xvkbd -xsendevent -window $b -text "\t"
#play
xvkbd -xsendevent -window $b -text "\r"
#fullscr
xvkbd -xsendevent -window $b -text "\f"
echo done
-------------------------------------------------------------------------------------------------------------------------------------------------
must be done:
install xfmedia
install xvkbd
get your file into form /media/seamless/seamlessvideo.mov or mod script
keywords:backdrops loops drops ambient atmospheric loopable
digital juice and art beats are known producers of seamless video
-------------------------------------------------------------------------------------------------------------------------------------------------
killall xfmedia
sudo xfmedia -loop -f './media/seamless/seamlessvideo.mov'&
sleep 4
#window name is Xfmedia: seamlessvideo
b=$(xwininfo -name Xfmedia:\ seamlessvideo | grep Window\ id:\ | awk '{print $4}')
#commands to restart playback to get picture #on my pc (using virtual keyboard)
xvkbd -xsendevent -window $b -text "\t"
xvkbd -xsendevent -window $b -text "\t"
xvkbd -xsendevent -window $b -text "\t"
xvkbd -xsendevent -window $b -text "\t"
#stop
xvkbd -xsendevent -window $b -text "\r"
xvkbd -xsendevent -window $b -text "\t"
xvkbd -xsendevent -window $b -text "\t"
xvkbd -xsendevent -window $b -text "\t"
xvkbd -xsendevent -window $b -text "\t"
xvkbd -xsendevent -window $b -text "\t"
xvkbd -xsendevent -window $b -text "\t"
#play
xvkbd -xsendevent -window $b -text "\r"
#fullscr
xvkbd -xsendevent -window $b -text "\f"
echo done
-------------------------------------------------------------------------------------------------------------------------------------------------
must be done:
install xfmedia
install xvkbd
get your file into form /media/seamless/seamlessvideo.mov or mod script
keywords:backdrops loops drops ambient atmospheric loopable
Labels:
fun
Saturday, July 18, 2009
xubuntu install psyco to speed up nicotine (and other python programs)
1.download
http://sourceforge.net/projects/psyco/files/psyco/psyco-1.6-linux.i386-2.5.tar.gz/download
extract tar file
2.locate your python packages directory
python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()" (mine was: cd /usr/lib/python2.6/dist-packages)3. copy psyco directory (inside extracted directory) to packages directory
sudo cp -r psyco /usr/lib/python2.6/dist-packages
and your python code should run much much much faster
Labels:
optimization
Sunday, June 14, 2009
power off from terminal
script is not perfect and may need your customization. It was written so you can end programs and power off your system from terminal
requrements:xvkbd ~6mb
code (add programs running on your system):
(ps ax | grep -v grep | grep transmission) #check if transmission is running if [ "$?" -eq 0 ]; then b=$(xwininfo -name Transmission | grep Window\ id:\ | awk '{print $4}') #get programs window id xvkbd -xsendevent -window $b -text "\Cq" #send keystroke to quit program fi sleep 1 #set firefox title to normal firefox about:blank sleep 1 (ps ax | grep -v grep | grep gnumeric) if [ "$?" -eq 0 ]; then b=$(xwininfo -name Book1.gnumeric\ :\ Gnumeric | grep Window\ id:\ | awk '{print $4}') xvkbd -xsendevent -window $b -text "\Cq" fi (ps ax | grep -v grep | grep nicotine) if [ "$?" -eq 0 ]; then b=$(xwininfo -name Nicotine+\ 1.2.9 | grep Window\ id:\ | awk '{print $4}') xvkbd -xsendevent -window $b -text "\Cq" fi sleep 1 (ps ax | grep -v grep | grep firefox) if [ "$?" -eq 0 ]; then echo firefox running, now trying to end #(using different character c) c=$(xwininfo -name Mozilla\ Firefox | grep Window\ id:\ | awk '{print $4}') xvkbd -xsendevent -window $c -text "\Cw"; sleep 1 xvkbd -xsendevent -window $c -text "\Cq"; fi df xvkbd -xsendevent -window $c -text "\Av"; (ps ax | grep -v grep | grep linuxdcpp) if [ "$?" -eq 0 ]; then b=$(xwininfo -name LinuxDC++ | grep Window\ id:\ | awk '{print $4}') xvkbd -xsendevent -window $b -text "\Cq" fi (ps ax | grep -v grep | grep vlc) if [ "$?" -eq 0 ]; then b=$(xwininfo -name VLC\ media\ player | grep Window\ id:\ | awk '{print $4}') xvkbd -xsendevent -window $b -text "\Cq" fi #send once again commands to firefox in case it wasnt running xvkbd -xsendevent -window $c -text "\Cw"; xvkbd -xsendevent -window $c -text "\Cq"; (ps ax | grep -v grep | grep transmission) if [ "$?" -eq 1 ]; then echo transmission now off, poweroff? #last resort to end firefox killall firefox sudo shutdown -P now fi
article will be updated as donation recievedrequrements:xvkbd ~6mb
code (add programs running on your system):
(ps ax | grep -v grep | grep transmission) #check if transmission is running if [ "$?" -eq 0 ]; then b=$(xwininfo -name Transmission | grep Window\ id:\ | awk '{print $4}') #get programs window id xvkbd -xsendevent -window $b -text "\Cq" #send keystroke to quit program fi sleep 1 #set firefox title to normal firefox about:blank sleep 1 (ps ax | grep -v grep | grep gnumeric) if [ "$?" -eq 0 ]; then b=$(xwininfo -name Book1.gnumeric\ :\ Gnumeric | grep Window\ id:\ | awk '{print $4}') xvkbd -xsendevent -window $b -text "\Cq" fi (ps ax | grep -v grep | grep nicotine) if [ "$?" -eq 0 ]; then b=$(xwininfo -name Nicotine+\ 1.2.9 | grep Window\ id:\ | awk '{print $4}') xvkbd -xsendevent -window $b -text "\Cq" fi sleep 1 (ps ax | grep -v grep | grep firefox) if [ "$?" -eq 0 ]; then echo firefox running, now trying to end #(using different character c) c=$(xwininfo -name Mozilla\ Firefox | grep Window\ id:\ | awk '{print $4}') xvkbd -xsendevent -window $c -text "\Cw"; sleep 1 xvkbd -xsendevent -window $c -text "\Cq"; fi df xvkbd -xsendevent -window $c -text "\Av"; (ps ax | grep -v grep | grep linuxdcpp) if [ "$?" -eq 0 ]; then b=$(xwininfo -name LinuxDC++ | grep Window\ id:\ | awk '{print $4}') xvkbd -xsendevent -window $b -text "\Cq" fi (ps ax | grep -v grep | grep vlc) if [ "$?" -eq 0 ]; then b=$(xwininfo -name VLC\ media\ player | grep Window\ id:\ | awk '{print $4}') xvkbd -xsendevent -window $b -text "\Cq" fi #send once again commands to firefox in case it wasnt running xvkbd -xsendevent -window $c -text "\Cw"; xvkbd -xsendevent -window $c -text "\Cq"; (ps ax | grep -v grep | grep transmission) if [ "$?" -eq 1 ]; then echo transmission now off, poweroff? #last resort to end firefox killall firefox sudo shutdown -P now fi
Labels:
hardware
Wednesday, June 10, 2009
Low disk space notifications
linux low disk space notifications
Pre-requisite
In order for the pop-up message to appear, you would need to install “libnotify-bin”.
Script
The script will check the free disk space in “/dev/sda1″. It will show a pop-up message for 30 seconds when the free space is below 100MB. If the free space is below 50MB, it will show a pop-up message for 5 minutes. You should modify these parameters to your own requirement.
Copy and paste the script below to a file called “checklowdisk”.
Setting up the script
Make the script executable:
Change file ownership to root:
Move file to “/usr/bin”:
Set-up crontab
I chose to run the script hourly using crontab.
Edit crontab:
Add this line in the editor:
Save and close the editor. The crontab is now configured, and the script will run at the hour.
thanx:Chewearn
to free up disk space more effectively click here
Pre-requisite
In order for the pop-up message to appear, you would need to install “libnotify-bin”.
Script
The script will check the free disk space in “/dev/sda1″. It will show a pop-up message for 30 seconds when the free space is below 100MB. If the free space is below 50MB, it will show a pop-up message for 5 minutes. You should modify these parameters to your own requirement.
Copy and paste the script below to a file called “checklowdisk”.
- Code:
#!/bin/sh
DISKSPACE=`df | grep "/dev/sda1" | awk '{ print $4 }'`
if [ "$DISKSPACE" -lt "51200" ] ; then
/usr/bin/notify-send -u critical -t 300000 \
'Check low disk' '/dev/sda1 is less than 50MB.'
exit
fi
if [ "$DISKSPACE" -lt "102400" ] ; then
/usr/bin/notify-send -u normal -t 30000 \
'Check low disk' '/dev/sda1 is less than 100MB.'
fi
Setting up the script
Make the script executable:
Change file ownership to root:
Move file to “/usr/bin”:
Set-up crontab
I chose to run the script hourly using crontab.
Edit crontab:
- Code:
crontab -e
Add this line in the editor:
- Code:
00 * * * * env DISPLAY=:0 /usr/bin/checklowdisk
Save and close the editor. The crontab is now configured, and the script will run at the hour.
thanx:Chewearn
to free up disk space more effectively click here
Labels:
optimization
Subscribe to:
Posts (Atom)




