I'm an Ubuntu user since, erm... Ubuntu 8.04? I don't know. However, I wasted hours and days installing, wiping, installing, wiping, installing again and tweaking it. From now on I'll try to post all the tweaks I come across here on my shiny new blog. Read on...
So, the first tweak isn't really to be considered as a tweak. In fact it's a good prevention from being fooled by your coworkers.
Disabling accessibility in GDM
You ask why the hell one would want to disable such a great and useful feature? Well, take my laptop, lock its screen (CTRL + ALT + L, by the way) and hand it over to some of my best friends. As a result you get an unusable laptop back because enabling all the accessibility features at once and moving the virtual keyboard around makes it impossible to log in again (I think it was due to a faulty graphics driver).
Enough thrilling story. Here's how you can disable accessibility in GDM:
sudo gedit /var/lib/gdm/.gconf.mandatory/%gconf-tree.xmlNow search for "accessibility" and set "enable" to "false". It should look like this afterwards:
<dir name="accessibility">
<dir name="keyboard">
<entry name="enable" mtime="1306265153" type="bool" value="false">
</dir>
</dir>
Done. Enjoy your unhackable GDM.
Ugly boot screen after enabling Nvidia drivers
Without any further blabla:
wget http://launchpadlibrarian.net/57638460/fixplymouthchmod +x fixplymouth./fixplymouth
If you don't know what resolution to use open nvidia-settings, click "X Server Display Configuration" and look at the list at "Resolution".
Next...
Adjust your display's brightness automatically
To do that we need to install a tool called redshift:
sudo add-apt-repository ppa:jonls/redshift-ppa
sudo apt-get update &amp;amp;&amp;amp; sudo apt-get install redshift
"Unlock your keyring" a thousand times
One
This is what your "Passwords and Encryption Keys" screen should look like |
Non-sliding background with Compiz
You're annoyed of your background sliding around when you're switching workspace? Install Compiz configuration manager (sudo apt-get install compizconfig-settings-manager), open it (ccsm), find a plugin called "Desktop Wall" and copy "type=Desktop" into the "Non sliding windows" field in the "Viewport Switching" tab. That's it.
Get lifetime and performance out of your SSD
Congratulations! You did the only correct thing and bought yourself a SSD. Booting up should take only a few seconds now (really!).
At first, do a backup (really, I almost crashed my laptop because I did one little mistake):
Now open fstab (sudo gedit /etc/fstab) and find the line that's responsible for mounting your root ("/"). It should look like this:
Add "discard,noatime,nodiratime," in front of "errors=remount-ro,user_xattr 0 1" like this:
Next step is to edit /etc/rc.local (sudo gedit /etc/rc.local). Add the following text before "exit 0":
Speed it up no matter if you run a HDD or SSD
Open your /etc/fstab again (sudo gedit /etc/fstab) and append the following line:
If you want some more detailed instructions or you want to know what you're actually tweaking visit the-engine.at or How To Geek.
PS: Don't forget to reboot your machine now. ;)
Further reading...
Get lifetime and performance out of your SSD
Congratulations! You did the only correct thing and bought yourself a SSD. Booting up should take only a few seconds now (really!).
At first, do a backup (really, I almost crashed my laptop because I did one little mistake):
sudo cp /etc/fstab /etc/fstab.bak
Now open fstab (sudo gedit /etc/fstab) and find the line that's responsible for mounting your root ("/"). It should look like this:
UUID=b0620914-3943-4cdd-bcf8-00909575c43c / ext4 errors=remount-ro,user_xattr 0 1
Add "discard,noatime,nodiratime," in front of "errors=remount-ro,user_xattr 0 1" like this:
UUID=b0620914-3943-4cdd-bcf8-00909575c43c / ext4 discard,noatime,nodiratime,errors=remount-ro,user_xattr 0 1
Next step is to edit /etc/rc.local (sudo gedit /etc/rc.local). Add the following text before "exit 0":
echo deadline > /sys/block/sda/queue/scheduler
echo 1 > /sys/block/sda/queue/iosched/fifo_batch
Speed it up no matter if you run a HDD or SSD
Open your /etc/fstab again (sudo gedit /etc/fstab) and append the following line:
tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0
If you want some more detailed instructions or you want to know what you're actually tweaking visit the-engine.at or How To Geek.
PS: Don't forget to reboot your machine now. ;)
Further reading...
- AskUbuntu - Disable Accessibility in login screen
- AskUbuntu - Unlock keyring prompts three times instead of one time
- Wed Upd8 - Script to fix Ubuntu Plymouth for proprietary Nvidia and ATI graphics drivers
- AskUbuntu - Enabling Nvidia driver messes up splash screen
- OMG! Ubuntu - Alleviate tired eyes in Ubuntu with Redshift
- the-engine.at - Ubuntu 11.04 für SSD anpassen (German) / English
- How To Geek - How to Tweak Your SSD in Ubuntu for Better Performance
- Launchpad - Can't play video using any player
The SSD section got me to finally spend the few minutes to tweak my SSD performance. I doubt I'll notice much improvement, I mean I hardly noticed an improvement with my SSD over an HDD (probably due to not paying attention), but even the unnoticeable improvements are still improvements.
ReplyDeleteBefore I reached the bottom and saw the link for detailed instructions, I was wondering what exactly everything did and Googled it and came across this: http://howtogeek.com/62761/how-to-tweak-your-ssd-in-ubuntu-for-better-performance - I find it to be much better than the translated instructions.
As for the other sections, I either already know it or it doesn't affect me much if at all. Great stuff though!
Thanks for pointing this out! I've added your link. :)
ReplyDelete