AfterCleanInstallation

Revision 33 as of 2012-03-05 00:06:27

Clear message

First Steps

CLean install fix

1 Remove and install all but whats needed in 1 line

  • All what i need for any x/Ubuntu in one line. I myself now use Ubuntu Desktop 10.04.02 and Ubuntu Netbook Remix 10.04.03 and for testing i sometimes also log in Ubuntu Desktop 11.04
  • Puts apport to start now and permantely
  • Makes Grub timeout 2 sec and removes 3-6 tty
  • Makes harddrive usage less by making Swap usage less important so 90% stays in ram and making it work immidiattly and faster inode vm.vfs_cache_pressure=1
  • Adds Firefox stable ppa so with update comes latest
  • Adds ubuntu partner repo so we can later install skype
  • Removes GIMP and Thunderbird couse not everyone starts with drawing and most uses gmail instead of Thunderbird or as me chromium with Offline Gmail
  • Removes Totem couse to play all we need to install some plugins but later well Install VLC witch plays with no additional codex installations
  • Installs aptitude and with it does update and upgrade. It removes not used anymore packages on upgrades.
  • Installs Chromium-Browser Firefox Addon Adblock-Plus FlashPlugin VLC SKype

  • AND Powertop and launhes it so on 1st time u can do fixes for powersaving when it after 5 seconds starts giving help on saving battery power and proposing autofix with confirmation of pressing asked keys

With apt-get (for now best line but latter will be remade to aptitude)

  • sudo apt-get purge gimp thunderbird totem banshee rhythmbox && sudo service apport start force_start=1 && sudo sed -i 's/enabled=0/enabled=1/g' /etc/default/apport && sudo sed -i 's/GRUB_TIMEOUT=10/GRUB_TIMEOUT=3/g' /etc/default/grub && sudo rm /etc/init/tty3.conf && sudo rm /etc/init/tty4.conf && sudo rm /etc/init/tty5.conf && sudo rm /etc/init/tty6.conf && sudo add-apt-repository "deb http://archive.canonical.com/ $(lsb_release -sc) partner" && sudo apt-get update && sudo apt-get dist-upgrade && sudo apt-get install chromium-browser adblock-plus flashplugin-nonfree vlc skype usb-modeswitch powertop --fix-missing && sudo powertop
    
    ## old sudo service apport start force_start=1 && sudo sed -i 's/enabled=0/enabled=1/g' /etc/default/apport && sudo sed -i 's/GRUB_TIMEOUT=10/GRUB_TIMEOUT=3/g' /etc/default/grub && sudo rm /etc/init/tty3.conf && sudo rm /etc/init/tty4.conf && sudo rm /etc/init/tty5.conf && sudo rm /etc/init/tty6.conf && echo "vm.swappiness=1" | sudo tee -a /etc/sysctl.conf && echo "vm.vfs_cache_pressure=1" | sudo tee -a /etc/sysctl.conf && sudo sysctl -w vm.swappiness=1 && sudo sysctl -w vm.vfs_cache_pressure=1 && sudo add-apt-repository "deb http://archive.canonical.com/ $(lsb_release -sc) partner" && sudo apt-get purge gimp thunderbird totem banshee rhythmbox && sudo apt-get update && sudo apt-get dist-upgrade && sudo apt-get install chromium-browser adblock-plus flashplugin-nonfree vlc skype usb-modeswitch powertop --fix-missing && sudo powertop

2 SSD Speed up shortcut commands

http://www.howtogeek.com/62761/how-to-tweak-your-ssd-in-ubuntu-for-better-performance/

  • sudo cp /etc/fstab /etc/fstab.bak && sudo sed -i 's/errors=remount/discard,noatime,nodiratime,errors=remount/g' /etc/fstab && echo "tmpfs /tmp tmpfs defaults,noatime,mode=1777 0 0" | sudo tee -a /etc/fstab &&
    cat /sys/block/sda/queue/scheduler

if  cat /sys/block/sda/queue/scheduler  gives Deadline then do

  • sudo sed -i 's/^exit 0$/\necho deadline > \/sys\/block\/sda\/queue\/scheduler\necho 1 > \/sys\/block\/sda\/queue\/iosched\/fifo_batch\nexit 0/' /etc/rc.local

And youll be rollin rollin rollin rollin Yeah after Restart

3. CHecking if all ok

Opens all edited/related files for Eye-check if all ok. Backups to thouse witch needs them were made.

  • sudo gedit /etc/default/apport & sudo gedit /etc/default/grub & sudo gedit /etc/sysctl.conf & sudo gedit /etc/fstab & sudo gedit /etc/rc.local

Latest VLC

Latest version from http://www.videolan.org/vlc/download-ubuntu.html

  • sudo add-apt-repository ppa:lucid-bleed/ppa && sudo apt-get update && sudo apt-get install vlc vlc-plugin-pulse mozilla-plugin-vlc

DVD playback from https://help.ubuntu.com/community/RestrictedFormats/PlayingDVDs

  • sudo apt-get install libdvdread4 && sudo /usr/share/doc/libdvdread4/install-css.sh

Later for me to check

While Youtube without Flash Auto http://userscripts.org/scripts/show/50771 doesnt work in vlc on Ubuntu Then FlashVideo Replacer helps https://addons.mozilla.org/en-Us/firefox/addon/flashvideoreplacer/

Note to self: later doing prioritizing lines who uses tty 3-6? who uses banshee rhythmbox who uses totem vlc skype pidgin firefox latest adblock flash chromium who uses ssd hdd all need faster speed up RAMing

who wants also can add banshee rhythmbox

few ideas from http://www.pelagodesign.com/blog/2009/07/21/how-to-make-ubuntu-linux-run-faster-on-a-laptop/

Same post in many lines (outdated & less tweaks)

My Clean Install 1st commands using Xubuntu

  • Remove 3-6 virtual TTY terminals and leave 1-2
    sudo rm /etc/init/tty3.conf && sudo rm /etc/init/tty4.conf && sudo rm /etc/init/tty5.conf && sudo rm /etc/init/tty6.conf
  • To remove unneeded programms update lists upgrade programms and install needed programms If using apt-get
    sudo apt-get purge gimp thunderbird && sudo apt-get update && sudo apt-get install adblock-plus flashplugin-nonfree vlc ntfs-config
    If using aptitude (alternative to apt-get and better couse it removes all on purge witch apt-get on specific ocasions doesnt)
    sudo aptitude purge gimp thunderbird && sudo aptitude update && sudo aptitude install adblock-plus flashplugin-nonfree vlc ntfs-config
    sudo add-apt-repository "deb http://archive.canonical.com/ $(lsb_release -sc) partner" && sudo apt-get update && sudo apt-get install skype
  • Just updating in terminal if slow Update Manager couse Slow Comp ( -y means no asking if are you sure)
    sudo apt-get update && sudo apt-get dist-upgrade -y

MY clean install 1st commands using 10.04.03 couse its LTS and faster then 11.10

  • Update to latests Firefox
    sudo add-apt-repository ppa:mozillateam/firefox-stable && sudo apt-get update && sudo apt-get install firefox
  • Help Improve Ubuntu by sending crash reports on EACH crash.. From How to enable Apport

    sudo service apport start force_start=1
    To enable it permanently, do this: (nano is editor, can change nano to mousepad or gedit. nano saves using ctrl+shift+x)
    sudo nano /etc/default/apport

... and change enabled from "0" to "1".

Very cool ways to send emails using gmail

* http://do.davebsd.com/wiki/GMail_Contacts_Plugin * http://www.howtogeek.com/howto/ubuntu/set-gmail-as-default-mail-client-in-ubuntu/