User Tools

Site Tools


computing:linux:ubuntu_14.04

This is an old revision of the document!


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:

sudo fstrim -v /

Run the command daily:

mv /etc/cron.weekly/fstrim /etc/cron.daily/

Make it work for non-Intel/Samsung drives:

vim /etc/cron.daily/fstrim

exec fstrim-all --no-model-check

Install Ubuntu Updates

sudo apt-get update && sudo apt-get dist-upgrade
sudo reboot

Software Tweaks

sudo apt-get autoremove unity-lens-shopping vim-tiny empathy
sudo apt-get install ubuntu-restricted-extras gnome-tweak-tool vim-nox minicom rdesktop wget pidgin \
whois vncviewer compizconfig-settings-manager keepassx unrar zip unzip rar cabextract gimp

System Tweaks

Enable 'root' Account

sudo passwd root

Configure Bash Shell

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

GUI Tweaks

:!: Adjust these settings as a regular user.

File Manager tweaks:

  1. Open a file manager (Nautilus) window
  2. Edit → Preferences → Behavior → Include a Delete Command That Bypasses Trash

Start the CompizConfig Settings Manager as a regular user:

ccsm

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:

gsettings set com.canonical.indicator.datetime show-date true
gsettings set com.canonical.indicator.datetime show-day true

Move Minimize/Maximize/Close buttons to the right-hand side:

gsettings set org.gnome.desktop.wm.preferences button-layout ':minimize,maximize,close'

Printing

Dash → Printers → Add

Oracle Java

http://askubuntu.com/questions/183867/how-do-i-update-oracle-java-7-jdk-and-jre

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

If necessary:

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

Java Test Page: http://www.java.com/en/download/testjava.jsp

Applications

Dropbox

See also Dropbox

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

Tweaks to Use Dropbox

# 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

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'.

Calibre for E-books

Kompozer

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

Multimedia

This will install the VLC media player and HandBrake DVD ripper:

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

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

sudo gedit /var/lib/polkit-1/localauthority/50-local.d/hibernate.pkla
[Re-enable Hibernate]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes

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 13.04.

KVM

Configure the Network Bridge

:!: Note that Network Manager does not yet support bridge interfaces, so we disable it here.

Here we edit the /etc/network/interfaces file to create a bridge interface and make eth0 a member:

sudo vim /etc/network/interfaces
auto lo
iface lo inet loopback

auto br0
iface br0 inet dhcp
        bridge_ports eth0
        bridge_stp off
        bridge_fd 0
        bridge_maxwait 0
echo "manual" | sudo tee /etc/init/network-manager.override

Install Packages

After configuring the bridge networking, we install KVM virtualization plus support and management tools:

sudo apt-get install ubuntu-virt ubuntu-virt-mgmt qemu-system spice-client python-spice-client-gtk

sudo adduser `id -un` libvirtd                           # add additional users if desired

Finally, we reboot:

sudo reboot

Manage

Run the Virtual Machine Manager:

Applications → Virtual Machine Manager

Audio

:!: If you have problems with sound, check the Sound applet in Settings, Applications tab.

Virtualbox

:!: Enable the Partner Repos per above.

:!: Install the Extension Pack from here when done: https://www.virtualbox.org/wiki/Downloads

Install Virtualbox:

sudo apt-get update && sudo apt-get install virtualbox

Security

https://wiki.ubuntu.com/UncomplicatedFirewall

Enable the built-in firewall:

sudo ufw enable

Show the firewall status:

sudo ufw status verbose
sudo ufw show raw

Manage the firewall:

You can use the command line to modify the firewall like this:

sudo ufw allow ssh/tcp

or install a GUI tool:

sudo apt-get install gufw

Applications → Firewall Configuration

:!: Note that the rules files are in /etc/ufw.

computing/linux/ubuntu_14.04.1400360561.txt.gz · Last modified: 2014/05/17 15:02 by gcooper