Griffin - Ubuntu

From miki
Jump to navigation Jump to search

Introduction

This is the configuration page for the Ubuntu partition on Griffin.

Configuration Files

All configuration files can be found here.

Repositories

In addition to repositories in the common configuration:

sudo add-apt-repository ppa:texlive-backports/ppa
sudo add-apt-repository ppa:libreoffice/libreoffice-4-0
sudo apt-get update
sudo apt-get install libreoffice-gnome

Installed Applications

Common Applications

See Common configuration for Linux.

Essentials

Google Chrome (chromium-browser)
TrueCrypt [2012-04-29] v7.0a, with AES-NI instructions!
  • Preferences → uncheck Preserve modification timestamp of file containers (such that they are included in rsync backup without need for --checksum)
Privoxy (privoxy)
LAMP (apache2 php5 mysql-server mysql-client php5-mysql) See local config
PHPMyAdmin (phpmyadmin) Install for apache2 + configure database with dbconfig-common. See local config apache2 only,
Courier IMAP (courier-imap courier-doc courier-imap-ssl) * Install (reference here):
  • Create directories for web-based administration
  • SSL Certificate: /etc/courier/pop3d.pem, /etc/courier/imapd.pem
  • Postfix configuration: local only
Courier-POP3 (courier-pop courier-pop-ssl)
Courier-MTA (courier-mta courier-mta-ssl) so that mails are sent to Courier mailboxes.
  • Set alias for postmaster, edit /etc/courier/aliases/system:
postmaster: baddreams
Evolution plugins (evolution-plugins-experimental) For opening Winmail.dat attachment in Evolution
Evolution RSS (evolution-rss)
GNU C/C++ compiler (g++)
C/C++ documentation (manpages-posix-dev stl-manual) Make SGI doc available at http://localhost/sgi :
ln -s /usr/share/doc/stl-manual/html /var/www/sgi
GNU libc documentation (glibc-doc)
Eclipse (eclipse)
Psi (psi) See local config
LaTeX (texlive texlive-xetex latex2hml) Including XeTeX package
Upgraded to TeX Live 2012 (from texlive-backports ppa)
TeX Extra packages (texlive-plain-extra texlive-science texlive-latex-extra) Soul package requires CTAN color package - see [3]
[2011-01-14] Added texlive-science.
Upgraded to TeX Live 2012 (from texlive-backports ppa) — requires package texlive-latex-extra
pdftk (pdftk)
KDirStat (kdirstat)
PCSC Tools (pcsc-tools) For ATR_analysis.
ACL (acl)
Synergy (synergy) v1.4.10! See local settings.
Acrobat Reader (acroread) Edit mime type in ~/.local/share/applications/mimeapps.list:
[Added Associations]
application/pdf=acroread.desktop;evince.desktop;gimp.desktop

Add to ~/.mailcap:

application/pdf; acroread '%s'; test=test -n "$DISPLAY"; nametemplate=%s.pdf
application/x-pdf; acroread '%s'; test=test -n "$DISPLAY"; nametemplate=%s.pdf
application/x-bzpdf; acroread '%s'; test=test -n "$DISPLAY"; nametemplate=%s.pdf.bz2
application/x-gzpdf; acroread '%s'; test=test -n "$DISPLAY"; nametemplate=%s.pdf.gz

Local Applications

MBR (mbr) To create VirtualBox rawdisk
Racoon (racoon) For RSA key generation, see Crypto
HTTrack (httrack)
NTL (libntl-dev libntl-5.4.2)
GMP (libgmp3-dev libgmp3c2 gmp-ecm)
MDF to ISO Converter (mdf2iso) CD image conversion utility
K3b (k3b)
aMule (amule)
fdupes (fdupes)
PuddleTag (puddletag python-qt4 python-pyparsing python-mutagen python-configobj python-musicbrainz2) [2010-12-23] v 0.9.11 See local page
FTP Server (proftpd-basic) Followed instructions here
  • Selected run from inetd during install, but configured to run standalone so that it must be started manually with.
sudo /etc/init.d/proftd start
  • Added /bin/false to /etc/shells
  • Created user userftp, with shell /bin/false to prevent login. Directory /home/userftp/incoming (mode 777)
  • Login with user userftp + user passwd
Some git browsers (qgit gitg source-highlight) [2011-02-21] gitg updated to 0.0.8!
Nautilus Audio Converter (wavpack mppenc libmpcdec6 faac flac vorbis-tools faad lame libid3-3.8.3-dev nautilus-script-audio-convert) Enable script ConvertAudioFile (Menu PreferenceNautilus Scripts Manager). See Linux audio.
Canorus (canorus) Music score editor. Sounds does not work.
Frescobaldi (frescobaldi) Music score editor.
MuseScore (musescore) Another music score editor. Play sound out of the box.
Calibre (calibre)
Perl Audio Converter (pacpl)
VirtualBox (virtualbox) [2011-06-01] Local settings. Updated to 4.0.14! — See VirtualBox
dwww (dwww)
Word Diff (wdiff)
Transmission (transmission) Disabled DHT, PEX. Seed until ratio = 2.0. Enable privacy filter.
dos2unix (dos2unix)
hexedit (hexedit)
violin tuner (fmit, gtkguitune, lingot) gtkguitune does not seem to work though...
Ack (ack-grep) A better grep...
sudo ln -s /usr/bin/ack-grep /usr/local/bin/ack
gconf-editor
uncrustify v0.59, compiled from source, copied to /usr/local/bin
openJDK 6 32-bit Installed via APT, in /usr/lib/jvm/java-6-openjdk-i386:
sudo apt-get install openjdk-6-jdk:i386 \
     libice-dev libsm-dev libxt-dev
# Adding 'libice-dev libsm-dev libxt-dev' 
# ... to avoid these packages to be removed

Otherwise it can also be copied from e.g. Ubuntu Lucid 32-bit distribution (used to copy /usr/lib/jvm/java-6-openjdk to /usr/lib32/jvm/java-6-openjdk)

openJDK 7 (openjdk-7-jdk openjdk-7-jre) Selected alternatives with:
sudo update-alternatives --config java
sudo update-alternatives --config javac
# TODO: Add others (like ant, javah, etc?)
Oracle JDK 7 (oracle-java7-installer) See Linux Software#Oracle / Sun Java
uncrustify v0.59, compiled from source, copied to /usr/local/bin
ia32 libraries (ia32-libs libc6-dev:i386 gcc-multilib) TODO: Seems we should install ia32-libs-multiarch though...
Installing this package removed some package, so reinstall them back with:
sudo apt-get install build-essential g++ dkms \
     nvidia-current virtualbox-dkms

Compiling with gcc -m32 still does not work though (missing 32-bit libgcc.a). Installing package gcc-4.6:i386 force removal of many 64-bit packages. Instead we go for solution given here:

sudo apt-get install gcc-multilib
make documentation (make-doc)
screen (screen)
amarok (amarok)
dropbox (dropbox python-gpgme) python-gpgme needed for dropbox daemon download authentication
Canon scangear (scangearmp-common scangearmp-mg5300series) Driver for Canon MG5350 Scanner. Downloaded from Canon website. See also here.

Not yet installed

CUPS PDF (cups-pdf) Allow CUPS to access ~/PDF:
sudo aa-complain cupsd
Oracle/Sun Java JDK 1.6 (sun-java6-jdk)
Macbuntu 10.10 theme See Macbuntu page. Check log + uninstall script in ~/.macbuntu. no wobbly windows, no hot corners. Don't launch docky at startup.
iplist (iplist) Not found
IMAPSync (imapsync)
Sage 4.7.1 See Sage
SSH Tunnel script (sshtunnel.pl, libssl-dev) Thierry Walrant's Perl script sshtunnel.pl
Foxit Reader (qiv) Extracted tar.gz in /usr/local/bin
Icons in /usr/share/pixmaps/foxitreader.png.
Desktop file in /usr/share/applications/ + edited mime type in ~/.local/share/applications/mimeapps.list to associate with application/pdffiles
Google Earth (googleearth googleearth-data) Requires Medibuntu repository
tnef (tnef,ytnef) Parsing winmail.dat attachment
Recoll desktop search (recoll) See also Recoll page.
X File Explorer (xfe)
4Pane (4pane) See Linux Software#4Pane
LIRC (LIRC)
LineAKD (LineAKD)
KeyTouch (KeyTouch)
Grub2 Splash Image (ubuntu-splash-image) (from lucid-splash-image.deb) installed with sudo dpkg -i --force-architecture lucid-splash-image.deb

Uninstalled

Ophcrack, John the ripper (ophcrack john) To crack win7 password. Uninstalled because not needed anymore

To install:

  • Click Edit and see html comments.

Simple Settings

  • [2011-01-16] — Enabled proprietary video device driver NVIDIA.
  • [2011-02-13] — gdm — Do not show face browser with know users in login window (see Gnome page).
  • [2011-11-13] — Add user www for synchronization of /data/www folder (localhost page):
sudo useradd -g www-data -G users -u 999 -s /bin/bash -m www
sudo passwd www
su - www
ssh-keygen                                         # Or copy .ssh/ copy from other www users
scp .ssh/id_rsa.pub .ssh/authorized_keys
  • [2012-04-29] — Copy Macbuntu fonts (Apple Garamond, Lucida Console...) to /usr/share/fonts/mac.
  • SUDO - keep environment variable http_proxy, https_proxy (to keep proxy settings for apt-get etc)
  • SUDO - keep environment variable GREP_OPTIONS (keep grep options)
  • SUDO - keep environment variable DISPLAY, XAUTHORITY (avoid doing xhost local:root before launching X pgm)
  • SUDO - keep environment variable HOME (e.g. to keep git aliases and settings when using etckeeper)
Defaults        env_reset
Defaults        env_keep += "http_proxy https_proxy GREP_OPTIONS DISPLAY XAUTHORITY HOME"
  • Printer — add Canon network printer (select IPP network printer via DNS-SD for protocol)
    • Set Color Model to CMYK
  • apport — disable apport, which produces these annoying popup System program problem detected. Edit /etc/default/apport (see [4]), and set:
enabled=0
  • Force locale time to en_US.UTF-8. Add to ~/.profile:
export LC_TIME="en_US.UTF-8"

Detailed System Settings

1st install

  • 1st install on [2011-01-15]
  • Distribution: Ubuntu 10.10 amd64
  • Installation method: Net boot install from Internet using GRUB
  • Language: English
  • Location: Europe, Belgium Time
  • Computer name: griffin
  • Keyboard layout: BE
  • Name: baddreams
  • Login name: baddreams
  • Update: Install security updates automatically
  • Software to install: Ubuntu Desktop
  • Partition: see main page

2nd install

  • 2nd install on [2012-04-28]
  • Distribution: Ubuntu 12.04 amd64
  • Installation method: Net boot install from Internet using GRUB
  • Language: English
  • Location: Europe, Belgium Time
  • Computer name: griffin
  • Keyboard layout: BE
  • Name: baddreams
  • Login name: baddreams
  • Update: No automatic update
  • Software to install: Ubuntu Desktop
  • Partition: see main page (except that /home was temp. mounted to /homeold)

File System

  • To be completed

Network

  • To be completed

Preferences

  • Fonts (via ubuntu-tweak):
  • Category Font Size
    Default Font Ubuntu 9
    Desktop Font Sans 9
    Monospace font Lucida Console Semi-Condensed 10
    Document font Sans 10
    Window title bar font Ubuntu Bold 10
    • Hinting: Basic
    • Antialiasing: Subpixel antialising (LCD screens only)
  • Keyboard

Users

  • NAS Users
# For interface with NAS (note: users are disabled)
sudo useradd -s /bin/bash -u 1027 -g 100 nasbackup
sudo useradd -s /bin/bash -u 1028 -g 100 nasphotos
sudo useradd -s /bin/bash -u 1029 -g 100 nasmovies
sudo useradd -s /bin/bash -u 1030 -g 100 nasvideos
sudo useradd -s /bin/bash -u 1031 -g 100 nasmusics
sudo useradd -s /bin/bash -u 1032 -g 100 nasarchives
  • Add user baddreams to group users (for write access to mnemosyne)
sudo gpasswd -a baddreams users
  • Disable guest account in lightdm. Edit /etc/lightdm/lightdm.conf, and add:
allow-guest=false

Detailed Application Settings

Firefox

  • Theme: macfox3 1.1.4
  • Extensions:
    • AutoPager 0.6.1.12
    • Cycle Input Focus 1.0.0
    • Delicious Bookmarks 2.1.072
    • Fast Dial 2.23b1
    • FireGestures 1.5.7
    • Live HTTP headers 0.16
    • User Agent Switcher 0.7.2

Gnome DO

  • Autostart, Quiet mode, notification icon, Glass theme
  • Launch key: <alt>+space (! disable first Gnome global shortcut for Activate the window menu)

Nautilus

  • Default view: List View
  • Display, date format: YYYY-MM-DD hh:mm:ss
  • List View: zoom 33%
  • Icon View, Compact View: zoorm 50%
  • Preview: all set to Never, and only for files smaller than 500kB (to prevent thumbnailing PDFs...)

Psi

(recovered from previous settings on Gryphon at ~/.psi)

  • Gnome: Added Psi as startup program (Psi, /usr/bin/psi, Communicate over the jabber network).
  • OptionsEventsEnable popup notifications (all notifications)
  • Modify Account... → Changed resource to work-ux
  • Modify Account...Automatically reconnect if disconnected
  • Modify Account...Proxylocalhost:8118

Synergy

  • Configuration file /etc/synergy.conf
  • Install xsel (to circumvent Firefox copy/paste Chinese bug)
  • Edited gdm startup scripts to launch server automatically
  • Added quick alias to ~/.bashrc

Terminal

Vim

  • Added ~/.bash_completion from [5] (modified to also take alias v=gvim)

Wine

See Configuration Griffin - Wine.

To Do

Issues

See Common Issues.

To Do

  • To DoNFS Server, Remove temporary rules from /etc/exports
  • To Do — Get apt-get log for 1st install.
  • To Do — Look here for possible fix on EliteBook laptops.
  • To Do — Look at byobu (see this also).
  • To Do — Install better temperature management from Intel, see [6]
  • To Do — To-Do list after upgrade to trusty:
    • Fonts (in opera at least) are strange
    • Recover etc settings (at least for: ufw, autofs, mc, mailcap)