Configuration Common: Difference between revisions

From miki
Jump to navigation Jump to search
(→‎Install script: Always define user email/name when using etckeeper)
(→‎Install script: Install libavcodec-extra-54 to get extra codecs)
Line 76: Line 76:
app-install-data-medibuntu xbmc xsel \
app-install-data-medibuntu xbmc xsel \
compizconfig-settings-manager moreutils tmux \
compizconfig-settings-manager moreutils tmux \
indicator-multiload unity-tweak-tool
indicator-multiload unity-tweak-tool libavcodec-extra-54
# Discontinued: ubuntu-restricted-extras
# Discontinued: ubuntu-restricted-extras
# 14.04 Trusty: packages 'ubuntu-tweak', 'app-install-data-medibuntu',
# 14.04 Trusty: packages 'ubuntu-tweak', 'app-install-data-medibuntu',

Revision as of 21:49, 3 May 2014

Any

To be completed

Linux

Install script

  • Initial install script to install common applications
sudo apt-get install git etckeeper
git config --global user.email "user@server.com"                   # Make sure this is defined for admin user + root
git config --global user.name "User Name"                          # or release upgrade might fail in the future
sudo su -
git config --global user.email "user@server.com"
git config --global user.name "User Name (root)"
logout

sudo vi /etc/etckeeper/etckeeper.conf                              # Select git, avoid daily commit, avoid auto-commit
sudo etckeeper init
sudo etckeeper commit "1st commit"
cd /etc
sudo vi .gitignore                                                 # Ignore resolv.c* (and cups/subscriptions.* before Ubuntu Precise)
sudo git rm --cached resolv.c*
sudo git rm --cached cups/subscriptions.*                          # No longer needed on Ubuntu Precise and after
sudo git add .gitignore
sudo etckeeper commit "ignore resolv.c*, cups/subscriptions.*"

sudo vi /etc/apt/sources.list                                      # Enable / add all relevant repositories (partner...)
sudo apt-get update
sudo apt-get install opera                                         # or sudo dpkg -i opera...
sudo apt-get install libnss-mdns avahi-daemon mdns-scan synapse gitk git-gui git-doc \
                     mc autossh ssh vim-gnome exuberant-ctags cscope ruby keepassx
                                                                   # 14.04 Trusty: package 'synapse' missing
                                                                   # -> Install from 13.10 package

# Restore my profile
sudo vi /etc/hosts                                                 # Add host 'griffin'
ssh griffin -C "cat /etc/hosts"                                    # recover any needed host ip address
sudo vi /etc/hosts                                                 # ... and write them
sudo etckeeper commit "update /etc/hosts file"
git clone git@apple-pi:git/home.git
mv home/.git .
rm -rf home
git reset --hard
git st
export PATH=$PATH:$HOME/bin
set-network.sh
chmod 600 .ssh/*
chmod 644 .ssh/id_rsa.pub
mkdir tmp
git co opera -- .opera && git reset
git co mc -- .mc/ini && git reset
                                                             # Opera
# sudo add-apt-repository ppa:synapse-core/ppa               # Synapse - older ubuntu release
sudo add-apt-repository ppa:tualatrix/next                   # Ubuntu Tweak
                                                             # 14.04 Trusty: ppa not yet available
sudo add-apt-repository ppa:nathan-renniewaldock/xbmc-stable # XBMC
These repositories are obsolote or discontinued:
  • Install common applications
# Common Applications
sudo apt-get install rpcbind                                              # Use 'portmap' before oneiric ocelot
sudo apt-get install cifs-utils                                           # Use 'smbfs' with precise pangolin or before
sudo apt-get install terminator smbclient nfs-kernel-server nfs-common \
                     autofs apt-file p7zip-full p7zip-rar dlocate thunderbird \
                     chromium-browser meld colordiff ttf-mscorefonts-installer \
                     qiv gthumb gnupg-agent renameutils wine mplayer \
                     mplayer-doc mplayer-fonts flashplugin-installer \
                     gnome-mplayer gecko-mediaplayer gimp gdmap gparted \
                     ubuntu-tweak \
                     app-install-data-medibuntu xbmc xsel \
                     compizconfig-settings-manager moreutils tmux \
                     indicator-multiload unity-tweak-tool libavcodec-extra-54
                                                                          # Discontinued: ubuntu-restricted-extras 
                                                                          # 14.04 Trusty: packages 'ubuntu-tweak', 'app-install-data-medibuntu',
                                                                          # 'smbfs' missing
sudo apt-file update
sudo /usr/share/doc/libdvdread4/install-css.sh
# Optional essentials
sudo apt-get install nmap
# Optional applications
sudo apt-get install gnugo qgo uligo cgoban quarry pgpgpg powertop
# Optional - Fix blue video in flash (see below for details)
sudo mkdir /etc/adobe
echo -e "EnableLinuxHWVideoDecode=1\nOverrideGPUValidation=true" | sudo tee /etc/adobe/mms.cfg > /dev/null
sudo etckeeper commit "Fix blue video bug in adobe flashplayer"
  • Apply common settings (see below)
  • Applications not from repositories:
    • Panda glGo 1.4.1 (does not work on Oneiric 64-bit)
  • Install latest updates:
sudo apt-get upgrade
Ubuntu 12.04
sudo vi /etc/default/apport                         # Disable apport by setting "enabled=0"
sudo etckeeper commit "disable apport"

Common repositories

See install script above

Common Applications

Opera (opera) See Opera to fix apt key issues
Synapse (synapse) Using Ctrl-Alt-Space as shortcut
sudo add-apt-repository ppa:synapse-core/ppa
sudo apt-get update && sudo apt-get install synapse
Git (git gitk git-gui git-doc gitweb git-svn) [2011-12-15] Updated to 1.7.8 Installed from sources
etckeeper (etckeeper) Configured to use git as SCM, AVOID_DAILY_AUTOCOMMITS, AVOID_COMMIT_BEFORE_INSTALL
mDNS (libnss-mdns avahi-daemon mdns-scan) After install, do:
mdns-scan

Machine should broadcast its ip address on griffin.local to all avahi clients. For some strange reason, avahi may append a -2 suffix to broadcast name. To avoid that, edit /etc/avahi/avahi-daemon.conf and set host-name variable:

host-name=griffin
Midnight Commander (mc) See reference page. Use vi as standard viewer/editor. Installed version from mc official repository to fix file highlighting issue.
AutoSSH (autossh)
SSH (ssh) Local settings
Vim (vim vim-gnome exuberant-ctags) including GVim to enable support of X clipboard
Vim/Cscope (cscope)
Ruby (ruby) ... for Vim plug-in snipMate.vim
Gnome Terminator (terminator) See Gnome Terminator
Samba (smbclient cifs-utils)
  • Use package smbfs for u1204 Precise Pangolin and before
NFS Server (nfs-kernel-server nfs-common rpcbind) See NFS for more details; Created entries in /etc/exports. rpcbind replaces portmap since Oneiric.
AutoFS (autofs)
  • Mount mnemosyne shares as NFS autofs (see [1]) and as SMB autofs
Enabled/created the following automounters in /etc/auto.master:
/net           /etc/auto.net
/smb/mnemosyne /etc/auto.smb.mnemosyne
  • Create configuration file /etc/auto.smb.mnemosyne
  • Create SMB credential files /etc/auto.smb.mnemosyne.* (see man mount.cifs)
  • Created path for mount points:
sudo mkdir /net
sudo mkdir -p /smb/mnemosyne
# ls /net/mnemosyne
# sudo mkdir -p /mnt/mnemosyne
# for i in /net/mnemosyne/volume1/*; do sudo ln -s $i /mnt/mnemosyne/$(basename $i); done
  • Or recover settings from an already configured host:
scp griffin:tmp/autofs.tgz .                                        # Configure autofs
sudo tar -xvzf autofs.tgz
sudo cp etc/* /etc
KeePassX (keepassx)
  • Set kbd layout to fix autotype bug ([2]). Create ~/.xprofile and /etc/skel/.xprofile [3]:
#!/bin/sh

#
setxkbmap be
apt-file (apt-file)
p7zip (p7zip-full p7zip-rar)
dlocate (dlocate)
Thunderbird (thunderbird)
Google Chrome (chromium-browser)
Meld (meld) Diff tool
Color Diff (colordiff)
MS Truetype core fonts (ttf-msttcorefonts-installer)
Qiv (qiv)
gThumb (gthumb)
GPG Agent (gnupg-agent) Added use-agent at end of ~/.gnupg/gpg.conf
Rename utils (renameutils)
Wine (wine) See Wine page
MPlayer (mplayer mplayer-doc mplayer-fonts)
Flash Plugin 10 (flashplugin-installer)
  • Enable Ubuntu partner repository if needed(deb http://archive.canonical.com/ubuntu lucid partner).
  • In case of error failure to download extra data files flashplugin-installer, try
sudo apt-get --reinstall install flashplugin-installer

(Old recipe:

sudo aptitude autoremove "flashplugin-*"
sudo aptitude install flashplugin-installer
)
  • broken— This is too unstable, see next solution — On Ubuntu 12.04 with NVidia card, there is a bug Flash video appears blue. That link recommends to update libvdpau1, but in my case it was already at the latest version. Instead the following did the trick (from bug 968647):
sudo mkdir /etc/adobe
echo -e "EnableLinuxHWVideoDecode=1\nOverrideGPUValidation=true" | sudo tee /etc/adobe/mms.cfg > /dev/null
  • Another solution is to disable hardware acceleration, by going into flash player settings. If the settings window is not clickable, first disable unity 3D (for instance with metacity --replace&)
Quicktime plugin (gnome-mplayer gecko-mediaplayer) To play Quicktime content in Opera, Firefox
Gimp (gimp)
Graphical Disk Map (gdmap)
gparted (gparted)
Ubuntu restricted extras (ubuntu-restricted-extras) shall install automatically libdvdread4
libdvdcss2 Installed via sudo /usr/share/doc/libdvdread4/install-css.sh (see also [4])
Ubuntu tweak (ubuntu-tweak) see Ubuntu Tweak
Medibuntu application center (app-install-data-medibuntu)
  • No longer available on u1404 Trusty Tahr
  • This install medibuntu apps in Ubuntu Application Center
XBMC (xbmc) see XBMC
XSel (xsel)
Compiz config settings manager (compizconfig-settings-manager)
moreutils For chronic, sponge
tmux (tmux) Alternative to screen, but with support for multiple panes like terminator
CPU indicator (indicator-multiload) Selected CPU, Memory, Network
Unity tweak tool (unity-tweak-tool
  • Don't show desktop in switcher
  • top right hot corner: Spread all workspacse

Optional Applications:

GNU Go (gnugo)
Various Go games (qgo uligo cgoban)
Quarry (quarry) Board games Go, Amazons, and Reversi
PGP (pgpgpg)
PowerTop (powertop)

Applications not from repositories:

Panda glGo 1.4.1 See local page — does not work on Oneiric 64-bit

Optional Essentials:

nmap (nmap) For use with my git prj script

Common Settings

Network

  • Samba / NFS client: Via autofs

Preferences

Users

sudo useradd -s /bin/bash -m -u 1100 marie
sudo useradd -s /bin/bash -m -u 1200 isma
sudo useradd -s /bin/bash -m -u 1300 emma
sudo passwd marie
sudo passwd isma
sudo passwd emma

X11

  • Custom keyboard mapping be:
# From my profile
sudo cp ~/etc/be /usr/share/X11/xkb/symbols/be

Miscellaneous

  • Disable apport. Set enabled=0 in /etc/default/apport
  • Edit AppArmor tunables. If home directories are not located at /home (e.g. /data/home), edit apparmor tunables. See here for details.

Workaround

  • Install custom udisks package, version 1.0.4-5ubuntu2.1fuu1, to fix unreadable DVD-RW. See udisks, or bug 635499).
sudo dpkg -i udisks_1.0.4-5ubuntu2.1fuu1_amd64.deb

Windows

To be completed