Howto: Easily Setup DVD Playback in Ubuntu with 1 Click
Here is the easiest way to get dvd playback in Ubuntu Hardy Heron!
Open the Terminal and paste these commands:sudo wget http://www.medibuntu.org/sources.list.d/hardy.list -O /etc/apt/sources.list.d/medibuntu.listsudo apt-get update && sudo apt-get install medibuntu-keyring apturl && sudo apt-get update
Click here to install DVD playback from your browser!
If the above does not work simply:sudo apt-get install libdvdcss2
Now startup your favorite media player and it *should decrypt the dvd* :)
Howto: Awesome Opensource MilkDrop Winamp Music Visualizations for Ubuntu Linux! (475 visuals!)
Tired of lame GOOM! visualizations in Ubuntu and want something pretty tight? Check out projectM!
A week or 2 ago I told people at this post that I would help port over winamp visualizations over to ubuntu and I have finally accomplished that task and created a .deb package for easy installation! Please note that projectm doesnt currently work with amarok or any music player at the moment so you can simply run projectM before/after/during what your listening to and the effects will be amazing, this will work for any sounds and can even be configured to visualize music on the lan/wan!
Howto install:wget http://ubuntu-debs.googlecode.com/files/projectm_1.1-rev-980-2_i386.debsudo dpkg -i projectm_1.1-rev-980-2_i386.deb
*recommended but optional* *updated* Download my 475 presets and extract to preset directorycd ~ ; wget http://ubuntu-debs.googlecode.com/files/projectm_presets.tar.gztar zxvf projectm_visuals.tar.gz
When you download a preset package, you will need to extract all the files to a directory where projectM can find it. We put ours in ~/projectM/presets and then we'll create a symbolic link to our preset directory so projectM can see itcd /usr/share/projectM/presets && sudo ln -s ~/projectm/presets/ others
Howto Run:
Goto: Applications->Sound and Video->projectM-pulseaudio
Usage:Controls (these are listed in the menu under "hotkeys":
m - brings up a menu
f - toggles fullscreen on/off
l - "locks" to a particular preset
y - toggles shuffle mode
n - next preset
p - previous preset
r - selects random preset
F1 - Help menu
F2 - Toggles song title on/off (doesn't work in libvisual or pulseaudio as far as I can tell)
F3 - Toggle preset name on/off
F4 - Toggle rendering info on/off
F5 - Shows fps
How to load visualizations:
Simply click the load preset button and select the presets in the correct directory you want to see. You can create a visualization playlist as well, its easy.
Other info:
ProjectM uses pulseaudio, it can do everything that pulseaudio can do. In the menu, you can select which pulseaudio source to use as the music input to the visualizations. This includes network sound resources. You CAN use projectM as a visualizer for the music ANOTHER PC is playing!
Adding too many presets may crash projectm, so load only a hundred or so at a time, or experiment on how many can be loaded at once
You can find more visualizations here
Compile from svn src howto here
ProjectM Developers Page here
Howto: Setup Compiz Fusion with open source ati radeon drivers
Older ATI cards have been blacklisted for Compiz Fusion because of a bug in the driver, but there is an easy workaround for many cards that use the open source ati drivers. Radeon 9500 are the oldest cards to support the restricted "fglrx" drivers, so everything older requires the open source drivers to function properly.
First edit the launcher for Compiz Fusion:gksudo gedit /usr/bin/compiz
Near the top, add the lineSKIP_CHECKS="yes"
I added it under VERBOSE="yes"
You may also need to install the Compiz settings manager program that you can access from System->Preferences->Advanced Desktop Effect Settings | 1-click install or:sudo apt-get install compizconfig-settings-manager
You can now load Compiz Fusion withcompiz --replace
and revert to Metacity (the basic window manager) withmetacity --replace
I suggest making launchers in a panel for this.
Remember that this is a workaround and may not work for everybody. If you have further problems, you should consider running a forum search and then posting on one of the main support forums if you still need help.
For the record, my card is an ATI Mobility Radeon 9000.
This Article was found here
HOWTO: Install btnx for better mouse control in Ubuntu
When I installed Hardy, I forgot to copy my awesome xorg.conf which held the configuration to enable all 12 buttons of my Logitech MX1000.
Lo and behold, a new method of configuring it has come about, albeit it was around prior to Gutsy.
btnx is the work of Olli Salonen. The program runs as a daemon, catching mouse events and turning them into either key presses or proper mouse events which the system can interpret. This eases the configuration one must do in order to enjoy the full potential of the high-end Logitech mice—a potential which, in my opinion, Windows cannot reach.
The installation process for btnx is pretty easy.
Read the full article here
Easily Upgrade to Ubuntu Hardy Heron 8.04 LTS
Now is the best time to upgrade, and upgrading is a breeze, sit back relax, and issue the following commands!
Upgrade from 7.10 to 8.04 LTS
Press Alt-F2 and type update-manager -d
Click the Check button to check for new updates.
A message will appear informing you of the availability of the new release.
Click Upgrade.
Follow the on-screen instructions.
Command line upgrade:
sudo apt-get update && sudo apt-get dist-upgradeDownload the iso:
http://releases.ubuntu.com/8.04/
Howto: Loop Movie, Video, and Display Screensaver as Desktop Wallpaper in Ubuntu Linux
Want to loop a video clip or movie on your desktop? I did and found a nice little tool that does just that! Check out this easy howto
First lets grab some essential building libraries via the terminal: Applications->Accessories->Terminalsudo apt-get install build-essential libx11-dev x11proto-xext-dev libxrender-dev libxext-dev cvs
Now lets Install xwinwrap:cvs -d :pserver:anoncvs@cvs.freedesktop.org:/cvs/xapps co xwinwrap
cd xwinwrap
make
sudo cp xwinwrap /usr/bin
Now lets start our video/movie as the Desktop Wallpaper!
First find a video/movie you would like to set as your backround and issue this command:xwinwrap -ni -fs -s -st -sp -b -nf -- mplayer -wid WID -nosound "Steal This Film II.Xvid.avi" -loop 0
Now everything should be working fine, if you would like sound, remove -nosound
You can also display Screensavers as your background:nice -n 15 ./xwinwrap -ni -o 0.20 -fs -s -sp -st -b -nf -- /usr/lib/xscreensaver/glmatrix -root -window-id WID
Credit for the screen saver hack goes out to wayne@fsckin
Tweak and optimize, and increase Ubuntu Hardy Heron Boot and Application Startup times dramatically!
Here I will share some methods on tweaking and optimizing your ubuntu install that I have learned over the years tweaking linux. This is small and sweet, down to the point and can dramatically speed up your system.
First lets tweak our directory structure so our Computer can find/seek files faster:
What we'll need is a Ubuntu Gutsy+ LiveCD and boot it up, and right click unmount all the drives mounted in nautilus via places. Then Open up a Terminal: Applications->Accessories->Terminal
Lets Sudo Root:sudo -s
Then lets check which drives we got to optimize:df -h
Example:/dev/sda3 154G 145G 1.6G 99% /media/sda3
/dev/sda4 99G 61G 39G 62% /media/sda4
Ok great, we got a list of our drives to optimize so lets get to work:e2fsck -fD /dev/sda3
choose y for yes and optimize your drive, then continue to the next drive once finished
If you need to you can RTFM on e2fsck: -D Optimize directories in filesystem. This option causes e2fsck
to try to optimize all directories, either by reindexing them if
the filesystem supports directory indexing, or by sorting and
compressing directories for smaller directories, or for filesys‐
tems using traditional linear directories.
Ok now that the drives are optimized the system should be more responsive. So were finished with the liveCD portion of this howto, so reboot, and remove your liveCD.
Ok the next tweak I dont use completely, I only use noatime in my fstab and I dont use writeback mode because I sometimes have power outages and dont want to risk dataloss. So changing to writeback is dangerous but much faster if you do not have to worrie about dataloss, crashes, lockups, forced reboot/shutdowns.
Ok now you can Use data=writeback and noatime when mounting ext3 partitions in /etc/fstab:sudo gedit /etc/fstab
Here is an example of what I have in my fstab:UUID=3eb414ba-5198-4c1f-9e3d-e91675329f83 / ext3 defaults,noatime,errors=remount-ro 0 0
Lets change this to:UUID=3eb414ba-5198-4c1f-9e3d-e91675329f83 / ext3 defaults,data=writeback,noatime,errors=remount-ro 0 0
Ok now lets tune our drive for writeback mode:sudo tune2fs -o journal_data_writeback /dev/sda1
For reference you can RTFM:writeback
Data ordering is not preserved - data may be written into
the main file system after its metadata has been commit‐
ted to the journal. This is rumoured to be the highest-
throughput option. It guarantees internal file system
integrity, however it can allow old data to appear in
files after a crash and journal recovery.
noatime
Do not update inode access times on this file system
(e.g, for faster access on the news spool to speed up
news servers).
Ok now lets install preload to optimize bootspeed and application startup time, I have an alternate tutorial here explaining how preload works:sudo apt-get install preload
Ok you can also tune the swap/memory usage by optimizing swappiness, I have provided a more in depth tutorial explaining what it does here So lets tweak our swappiness:sudo gedit /etc/sysctl.conf
If you have a lot of memory and succeed in not using swap at all and want swap to be used less then add this line:vm.swappiness=0
If your computer has little memory and needs to swap add this line instead:vm.swappiness=100
You may want to experiment with swapiness by changing it between 0 - 100
Last but not least you may want to profile your boot, what this does is, executes the readahead daemon to readahead files that you use every boot like drivers/gdm/kde/X, this is easy, on reboot, press esc to enter grub then find the kernel line:/boot/vmlinuz-2.6.24-16-generic root=UUID=3eb414ba-5198-4c1f-9e3d-e91675329f83 ro splash=verbose vga=794
Press e once its selected then append profile after this line like this:/boot/vmlinuz-2.6.24-16-generic root=UUID=3eb414ba-5198-4c1f-9e3d-e91675329f83 ro splash=verbose vga=794 profile
Then Press enter then "b" to boot up, what this will do is learn what files load every boot up and read them in advance every boot up. This will temporarily disable preload so once it finishes profiling and you are at a login terminal, reboot again and your system should startup/boot faster, and preload will preload applications and important libraries that you frequently access.
I hope this helps others enjoy Ubuntu Linux more, this took me 5 minutes to create, so let me know if I need to explain this a little better.
Have any other tweaks to add to this list? I'll give you credit.
Tweak Gnome Startup added by defcon @ 10:00 AM
You may also want to remove unnecessary applications starting up that gnome executes by opening Session Preferences via: System->Preferences->Sessions
Click on StartUp Programs
I disabled Bluetooth manager because I do not use bluetooth, you may want to as well.
I have disabled check for new hardware drivers because I do that via synaptic
I have disabled network manager because I use /etc/network/interfaces only and apt-get remove network-manager network-manager-gnome if you do not need it
I have disabled Print Queue Applet because I dont print on this computer
I also disabled Visual Assistance because I do not need assistance
You may find other things you may want to disable as well to speed up gnome startup