User Tools

Site Tools


computing:linux:ubuntu_14.04

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
computing:linux:ubuntu_14.04 [2014/05/17 16:00]
gcooper
— (current)
Line 1: Line 1:
-====== Ubuntu 14.04 ( Trusty Tahr ) ====== 
  
-===== Configure Repositories ===== 
- 
-**Dash -> Software & Updates** 
- 
-  * **Other Software -> Enable Canonical Partners Repos** 
-  * **Updates -> Check for Updates Weekly** 
- 
-===== Update the New Installation ===== 
- 
-==== Activate SSD Support ==== 
- 
-:!: A weekly trim is enabled by default for Intel and Samsung SSDs. 
- 
-http://askubuntu.com/questions/443761/how-is-trim-enabled/ 
- 
-Test TRIM support at the command line: 
- 
-<file> 
-sudo fstrim -v / 
-</file> 
- 
-Run the command daily: 
- 
-<file> 
-mv /etc/cron.weekly/fstrim /etc/cron.daily/ 
-</file> 
- 
-Make it work for non-Intel/Samsung drives: 
- 
-<file> 
-vim /etc/cron.daily/fstrim 
- 
-exec fstrim-all --no-model-check 
-</file> 
- 
-==== Install Ubuntu Updates ==== 
- 
-<file> 
-sudo apt-get update && sudo apt-get dist-upgrade 
-sudo reboot 
-</file> 
- 
-===== Software Tweaks ===== 
- 
-<file> 
-sudo apt-get autoremove unity-lens-shopping vim-tiny empathy 
-</file> 
- 
-<file> 
-sudo apt-get install ubuntu-restricted-extras gnome-tweak-tool unity-tweak-tool vim-nox minicom \ 
-rdesktop wget pidgin whois vncviewer compizconfig-settings-manager keepassx unrar zip unzip rar \ 
-cabextract gimp 
-</file> 
- 
-===== System Tweaks ===== 
- 
-==== Enable 'root' Account ==== 
- 
-<file> 
-sudo passwd root 
-</file> 
- 
-==== Configure Bash Shell ==== 
- 
-<file> 
-cat >> ~/.bashrc << EOF 
- 
-alias ll='ls -l' 
-alias la='ls -al' 
-alias l='ls -CF' 
-alias ls="BLOCK_SIZE=\'1 ls --color=auto" 
-alias free="free -m" 
-export GREP_OPTIONS='--color=auto' 
-PS1='\[\033[00;36m\]\u\[\033[00m\]@\h:\[\033[05;33m\]\w\[\033[00m\] \$ ' 
-export HISTCONTROL=ignoredups 
-EOF 
-</file> 
- 
-===== GUI Tweaks ===== 
- 
-:!: Adjust these settings as a regular user. 
- 
-Get rid of shopping stuff: 
- 
-<file> 
-wget -q -O - https://fixubuntu.com/fixubuntu.sh | bash 
-</file> 
- 
-File Manager tweaks: 
- 
-  - Open a file manager (Nautilus) window 
-  - **Edit -> Preferences -> Behavior -> Include a Delete Command That Bypasses Trash** 
- 
-Start the CompizConfig Settings Manager as a regular user: 
- 
-<file> 
-ccsm 
-</file> 
- 
-Adjust your workspaces (virtual desktops): 
- 
-**General -> General Options -> Desktop Size** 
- 
-  * **Horizontal Virtual Size -> 3** 
-  * **Vertical Virtual Size -> 2** 
- 
-For windows to display on all workspaces: 
- 
-**Utility -> Workarounds -> Window Stickyness -> Make "on all desktops" sticky** 
- 
-Show day and date:  
- 
-<file> 
-gsettings set com.canonical.indicator.datetime show-date true 
-gsettings set com.canonical.indicator.datetime show-day true 
-</file> 
- 
-Move Minimize/Maximize/Close buttons to the right-hand side: 
- 
-<file> 
-gsettings set org.gnome.desktop.wm.preferences button-layout ':minimize,maximize,close' 
-</file> 
- 
-===== Printing ===== 
- 
-**Dash -> Printers -> Add** 
- 
-===== Oracle Java ===== 
- 
-http://askubuntu.com/questions/183867/how-do-i-update-oracle-java-7-jdk-and-jre 
- 
-<file> 
-sudo add-apt-repository ppa:webupd8team/java 
-sudo apt-get update 
-sudo apt-get install oracle-java7-installer 
-sudo update-java-alternatives -s java-7-oracle 
-java -version 
-</file> 
- 
-If necessary: 
- 
-<file> 
-sudo update-java-alternatives -s java-7-oracle      # if previous caommand shows other than Oracle Java  
-sudo apt-get install oracle-java7-set-default       # set Java environment 
-sudo update-alternatives --config java              # switch between Java versions 
-sudo apt-get remove oracle-java7-installer          # remove Oracle Java 
-</file> 
- 
-**Java Test Page**: http://www.java.com/en/download/testjava.jsp 
- 
-===== Applications ===== 
- 
-==== Dropbox ==== 
- 
-See also **[[computing:storage:dropbox|Dropbox]]** 
- 
-<file> 
-sudo apt-key adv --keyserver pgp.mit.edu --recv-keys 5044912E 
-sudo add-apt-repository "deb http://linux.dropbox.com/ubuntu trusty main" 
-sudo apt-get update && sudo apt-get install dropbox python-gpgme 
-</file> 
- 
-=== Tweaks to Use Dropbox === 
- 
-<file> 
-# SSH 
-rm -rf ~/.ssh 
-ln -s ~/Dropbox/Config/SSH ~/.ssh 
- 
-# Documents Folder 
-rm -rf ~/Documents 
-ln -s ~/Dropbox/Documents ~/Documents 
- 
-# Fonts Folder 
-ln -s ~/Dropbox/Config/Fonts ~/.fonts 
- 
-#Pidgin 
-rm -rf ~/.purple 
-ln -s ~/Dropbox/Config/Pidgin ~/.purple 
- 
-# Remina 
-rm -rf ~/.remmina 
-echo "" > ~/.freerdp/known_hosts           #Fixes "Unable to connect to RDP server" 
-ln -sf ~/Dropbox/Config/Remmina ~/.remmina 
-</file> 
- 
-==== Instant Messaging ==== 
- 
-:!: Note that the commands above uninstall Empathy and install Pidgin. 
- 
-=== Empathy === 
- 
-Empathy is the default IM client and is pre-installed. 
- 
-**System Settings -> Add Online Accounts** 
- 
-=== Pidgin === 
- 
-Pidgin is also integrated well into the UI. 
- 
-Pidgin is the 'Old Reliable' IM client.  You can uninstall 'empathy' and install 'pidgin'. 
- 
-FIXME Some of the following applications have not been installed or tested yet. 
- 
-==== Calibre for E-books ==== 
- 
-http://www.makeuseof.com/tag/combine-dropbox-calibre-universal-access-ebooks/ 
- 
-http://www.makeuseof.com/tag/the-best-6-sites-to-get-free-ebooks/ 
- 
-<file> 
-sudo apt-get update && sudo apt-get install calibre 
-</file> 
- 
-==== Kompozer ==== 
- 
-<file> 
-cd ~/Downloads 
-wget http://archive.ubuntu.com/ubuntu/pool/universe/k/kompozer/kompozer_0.8~b3.dfsg.1-0.1ubuntu2_amd64.deb http://archive.ubuntu.com/ubuntu/pool/universe/k/kompozer/kompozer-data_0.8~b3.dfsg.1-0.1ubuntu2_all.deb 
-sudo dpkg -i kompozer*.deb 
-</file> 
- 
-===== Multimedia ===== 
- 
-This will install the VLC media player and HandBrake DVD ripper: 
- 
-<file> 
-sudo add-apt-repository ppa:stebbins/handbrake-releases 
-sudo apt-get update 
-sudo apt-get install vlc libdvdread4 handbrake-gtk 
-sudo /usr/share/doc/libdvdread4/install-css.sh 
-</file> 
- 
-==== Netflix ==== 
- 
-:!: Installing this will likely install a TON of dependencies. Un-tested for that reason. 
- 
-http://www.my-guides.net/en/guides/linux/how-to-install-the-netflix-desktop-app-on-ubuntu 
- 
-===== Portable Computers (Laptops) ===== 
- 
-==== Enable Hibernation ==== 
- 
-<file> 
-sudo gedit /var/lib/polkit-1/localauthority/50-local.d/hibernate.pkla 
-</file> 
- 
-<file> 
-[Re-enable hibernate by default in upower] 
-Identity=unix-user:* 
-Action=org.freedesktop.upower.hibernate 
-ResultActive=yes 
- 
-[Re-enable hibernate by default in logind] 
-Identity=unix-user:* 
-Action=org.freedesktop.login1.hibernate 
-ResultActive=yes 
-</file> 
- 
-Restart your PC then check to verify the ''Hibernate'' option is available in the shutdown menu and that it works properly. 
- 
-===== Remote Access ===== 
- 
-Enable VNC access to your desktop: 
- 
-**Applications -> Desktop Sharing** 
- 
-  * **Allow other users to view your desktop** 
-  * **Require the user to enter this password** 
- 
-:!: You will need to forward TCP port 5900 to your PC. 
- 
-===== Virtualization ===== 
- 
-:!: KVM virtualization is the default in Ubuntu, but I go straight to Virtualbox for Desktops and XenServer for servers. 
- 
-==== Virtualbox ==== 
- 
-:!: Enable the Partner Repos per above. 
- 
-:!: Install the Extension Pack from here when done: https://www.virtualbox.org/wiki/Downloads 
- 
-Install Virtualbox: 
- 
-<file> 
-sudo apt-get update && sudo apt-get install virtualbox 
-</file> 
- 
-===== Security ===== 
- 
-https://wiki.ubuntu.com/UncomplicatedFirewall 
- 
-Enable the built-in firewall: 
- 
-<file> 
-sudo ufw enable 
-</file> 
- 
-Show the firewall status: 
- 
-<file> 
-sudo ufw status verbose 
-sudo ufw show raw 
-</file> 
- 
-Manage the firewall: 
- 
-You can use the command line to modify the firewall like this: 
- 
-<file> 
-sudo ufw allow ssh/tcp 
-</file> 
- 
-or install a GUI tool: 
- 
-<file> 
-sudo apt-get install gufw 
-</file> 
- 
-**Applications -> Firewall Configuration** 
- 
-:!: Note that the rules files are in ''/etc/ufw'' 
computing/linux/ubuntu_14.04.1400364012.txt.gz · Last modified: 2014/05/17 16:00 by gcooper