AfterCleanInstallation
= Install
Multiboot time fix windows ubuntu https://www.howtogeek.com/323390/how-to-fix-windows-and-linux-showing-different-times-when-dual-booting/
timedatectl set-local-rtc 1 --adjust-system-clock
If Using Emachines e525 then with 12.04 kernel fix for display to show is here
First Steps
Start comunicating about Ubuntu https://help.ubuntu.com/community
Check programms http://appnr.com/
What i recently discovered as less consuming therefore faster responsiver and longworking is Ubuntu Netbook Remix 10.04.03 LTS http://releases.ubuntu.com/lucid/
Usefull Commands
Update and clean apt-get files
sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade && sudo apt-get clean && sudo apt-get autoclean && sudo apt-get autoremove
sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get dist-upgrade -y && sudo apt-get clean -y && sudo apt-get autoclean && sudo apt-get autoremove
time sudo apt-get update && time sudo apt-get upgrade -y && time sudo apt-get dist-upgrade -y && time sudo apt-get clean -y && time sudo apt-get autoclean && time sudo apt-get autoremove
time sudo apt-get update \ && time sudo apt-get upgrade -y \ && time sudo apt-get dist-upgrade -y \ && time sudo apt-get clean -y \ && time sudo apt-get autoclean \ && time sudo apt-get autoremove \ && time sudo reboot
sudo shutdown now
Usefull Commands Ubuntu-Bug Apport Triaging
https://help.ubuntu.com/community/ReportingBugs; https://help.ubuntu.com/community/ReportingBugs Check package of window
dpkg -S "\/bin/$(xprop WM_CLASS | cut -d "\"" -f2)"
x-terminal-emulator -e bash -c 'sleep 2; dpkg -S ""\/bin/$(xprop WM_CLASS | cut -d ""\"""" -f2)""; sleep 5'
https://askubuntu.com/questions/401009/command-to-open-new-terminal-window-from-the-current-terminal https://askubuntu.com/questions/1215533/how-to-write-commands-with-default-variables-for-terminal-or-default-app-browse
https://askubuntu.com/questions/107726/how-to-create-animated-gif-images-of-a-screencast
Swap install first 2 commands to remove in case exists and need bigger
sudo swapoff /swapfile sudo rm /swapfile sudo swapon --show free -h df -h sudo fallocate -l 2G /swapfile df -h free -h ls -lh /swapfile sudo chmod 600 /swapfile ls -lh /swapfile sudo mkswap /swapfile sudo swapon /swapfile sudo swapon --show free -h sudo cp /etc/fstab /etc/fstab.bak echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab cat /proc/sys/vm/swappiness sudo sysctl vm.swappiness=1 echo 'vm.swappiness=10' | sudo tee -a /etc/sysctl.conf echo 'vm.vfs_cache_pressure = 50' | sudo tee -a /etc/sysctl.conf
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
- Enables all "main universe restricted multiverse "repositories and canonical "partner" repository
- 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.ubuntu.com/ubuntu $(lsb_release -sc) main universe restricted multiverse" && sudo add-apt-repository "deb http://archive.canonical.com/ubuntu $(lsb_release -sc) partner" && sudo apt-get update && sudo apt-get dist-upgrade && sudo apt-get install xul-ext-adblock-plus flashplugin-nonfree vlc skype usb-modeswitch nautilus-image-converter nautilus-open-terminal nautilus-gksu chromium-browser 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
Firefox Addons one liner- Adblock Plus, FlashBlock, Download Helper
wget https://addons.mozilla.org/firefox/downloads/latest/1865/addon-1865-latest.xpi && wget https://addons.mozilla.org/firefox/downloads/latest/433/addon-433-latest.xpi && wget https://addons.mozilla.org/firefox/downloads/latest/3006/addon-3006-latest.xpi && firefox *.xpi && rm *.xpi
Keep Kernels clean
https://bugs.launchpad.net/bugs/241368
sudo add-apt-repository ppa:bugs-launchpad-net-falkensweb/remove-old-kernels && sudo apt-get update && sudo apt-get install remove-old-kernels
Firefox sessionrestore.js loosing prevention with cron hourly backup
sudo gedit /etc/cron.hourly/FirefoxBackup && sudo chmod +x /etc/cron.hourly/FirefoxBackup
When Gedit opens paste in it this code and correct in this code line for your firefox profile folder
profiledir=/home/kangarooo/.mozilla/firefox/a2t42sie.default/ cd $profiledir; mkdir -m 777 000Hourly ; mkdir -m 777 -p 000Hourly/$(date +"%m-%d-%y_%T") && cp -p sessionstore.js sessionstore.bak 000Hourly/$(date +"%m-%d-%y_%T") exit 0
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
Youtube autopause
http://userscripts.org/scripts/show/73105
Later for me to check
- DEJADUP
TIMEVAULT https://launchpad.net/timevault
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".
If Firefox slow speed it up http://kb.mozillazine.org/Memory_Leak
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/
Nautillus scripts http://ubuntugenius.wordpress.com/2010/05/22/nautilus-extensions-plugins-adding-even-more-functionality-to-ubuntus-file-manager/
...
Kangarooo sidepages:
/AfterCleanInstallation /Copying /SpeedUpTesting /UbuntuVersionProCon |
Kangarooo/AfterCleanInstallation (last edited 2021-01-04 22:01:59 by kangarooo)