Use the diff command with the -q switch for simple output, such as:
diff -q folder1 folder2 | sort > compare.txt
Play a sound with bash script “playsound”
At the time of this writing the package to install was the following:
sudo apt-get install libsdl-sound1.2
The command in the bash script to use is as follows:
playsound ding.wav
Change default startup location of gnome-terminal
In your home folder
gedit .bashrc
Add the following lines at the bottom of the file:
# CHANGE DEFAULT LOCATION OF STARTUP
cd ~/Desktop
Using Alias with Run Application
If you define an alias, it will then run in the "Run Application" window. You can put a bash script in your home folder, make it executable, and use the following command to run it from "Run Application".
xterm -e ./myscript.sh
You can try to research the following to avoid using xterm.
Refer: link
Reset IPod Nano 3G
To reset your iPod:
1. Toggle the Hold switch on and off. (Slide it to Hold, then turn it off again.)
2. Press and hold the Menu and Center (Select) buttons simultaneously until the Apple logo appears, about 6 to 10 seconds. You may need to repeat this step.
Tip:
If you are having difficulty resetting your iPod, set it on a flat surface. Make sure the finger pressing the Select button is not touching any part of the click wheel. Also make sure that you are pressing the Menu button toward the outside of the click wheel, and not near the center.
If the above steps did not work, try connecting iPod to a power adapter and plug the power adapter into an electrical outlet, or connect iPod to your computer. Make sure the computer is turned on and isn't set to go to sleep.
Reset Desktop Settings Back to Default in Ubuntu
Drop to a terminal by hitting CTRL + ALT + F1, login to your account, and run this command:
rm -rf .gnome .gnome2 .gconf .gconfd .metacity
Get back to your GUI desktop by hitting CTRL + ALT + F7
Logout and Logon
Your desktop settings are now reset
Update WebCollab Tasks, Remove Late Tag
Use the following MySQL command to globally change all tasks not done:
UPDATE `tasks`
SET `deadline` = '2009-08-01'
WHERE `deadline` <= '2009-08-01'
AND `status` <> 'done'
Running XAMPP on Different Ports
You will need to access the application by the following:
http://localhost:8080/
https://localhost:444/
Change port 80 to 8080 twice in the following file:
F:\Programs\xampplite\apache\conf\httpd.conf
Change port 443 to 444 three times in the following file
F:\Programs\xampplite\apache\conf\extra\httpd-ssl.conf
Use Ubuntu with VirtualBox Behind Proxy
There seems to be problems with Ubuntu 9.04. It is possible to install from CD-ROM instead by using:
- Press System → Administration → Software Sources.
- Go to the Third Party Software tab and click on the Add CD-ROM button.
- Insert the CD.
Do the following in your terminal prior to using apt-get:
export http_proxy=http://username:pword@HALPROXY1.flagship.hal.com:80
Installing Ubuntu 9.04 on Dell 1545 Laptop
Basic Install Items
Reference Guide Ubuntu904
- Ubuntu restricted extras from Add/Remove
- DVD Playback
- sudo apt-get install libdvdread4 totem-gstreamer
- sudo /usr/share/doc/libdvdread4/install-css.sh
- check with Synaptic Package Manager you should see the following packages installed after searching for libdvdread4, libdvdnav4, libdvdcss2
- System, Preferences, Main Menu -- trim down menu, remove things you are not going to use
- Nautilus Edit, Preferences, Preview -- turn off thumbnails
- Install Sun Java 6
- sudo apt-get install sun-java6-jre sun-java6-plugin
- sudo apt-get install sun-java6-jdk
- sudo update-alternatives --config java
Lessons Learned
- Turn off visual effects, it causes VLC and MPlayer to crash by locking the computer.
- After you install Eclipse you will need to run the sudo update-alternatives --config java again because Eclipse installs its own version of Java, and this will set the defaults. Sun's version runs faster.
Flavors of the Month
- Comix - Manga viewer
- Gwenview - Simple image manipulation
- Eclipse
- ISO Master - Redo contents of ISO images
Other Items
- Here's the grub menu.lst as of May 3, 2009: menu.lst

