Table of Contents
- Download an image of the Debian Installer.
- Check md5 sums:
md5sum debian-testing-amd64-CD-1.iso
- Copy the iso on a USB stick (warning, this formats the stick):
sudo dd if=debian-testing-amd64-CD-1.iso of=/dev/sdX
(where
sdX
is given bydf
). - Boot on the USB stick and follow instructions. Swap = RAM × 2 up to
4 GB of RAM, otherwise Swap = RAM. Space kept for root on /home: 3%
- If necessary, adds a SWAP file.
- Install
sudo
(if necessary):# adduser mathieu sudo
- Then relog:
# su - mathieu
- Deactivate root account:
sudo passwd -l root
- To re-activate root account (if necessary):
sudo passwd -u root
- Install the complete and functional system (if necessary):
sudo tasksel install gnome-desktop --new-install
or
$ sudo aptitude install gnome-desktop-environment
sudo aptitude install gnome sudo tasksel install desktop sudo tasksel install laptop sudo aptitude install laptop-mode-tools sudo aptitude install gnome-session sudo aptitude install gnome-terminal sudo aptitude install gdm3
- Remove menu, set up text colors and transparent background: in the options.
- Autocompletion as root, Ctrl-N keeps current directory, Manpage with
colors, Aliases (which allow
sudo
), Ctrl-PageUp/Down to autocomplete based on history, Screen (server version), add or uncomment the following lines:sudo nano /etc/bash.bashrc
if [ -f /etc/bash_completion ]; then . /etc/bash_completion fi ### Ctrl-N keeps current directory export PS1='\[$(__vte_ps1)\]'$PS1 ### Manpages with colors export MANPAGER="/usr/bin/most -s" ### Alias upgrade alias upgrade='sudo aptitude update && sudo aptitude safe-upgrade && sudo aptitude clean && sudo aptitude autoclean && sudo aptitude purge ~c' ### Alias VPN UF alias vpnuf='echo -n "<password>" | sudo openconnect -u <UF-email> --passwd-on-stdin https://vpn.ufl.edu/' ### Alias wake-on-lan alias wol='wakeonlan -i <IP> <MAC>' ### Alias app (find the name of an application) alias app='ps --no-header -o comm -p $(xwininfo -all | grep "Process id:" | cut -d":" -f2 | cut -d" " -f2)' ### When using sudo, use alias expansion (otherwise sudo ignores your aliases) alias sudo='sudo ' ### Git in English alias git='LANG=en_US git' ### Alias getwd = pwd alias getwd='pwd' ### Prevent screen to turn off (server only) xset s off # Disable X windows screen saver xset -dpms # Disable display power management system ### Bash history with Ctrl + page up/down nano .inputrc "\e[5~": history-search-backward "\e[6~": history-search-forward # "\e[A": history-search-backward # "\e[B": history-search-forward set show-all-if-ambiguous on set completion-ignore-case on "\e[1;5C": forward-word "\e[1;5D": backward-word
Problème de luminosité ? http://ihisham.com/2013/12/fix-gnome-screen-brightness-keys-bug/
- Use only SWAP when 100% of RAM is used
sudo nano /etc/sysctl.conf
# SWAP after 100% RAM used vm.swappiness = 0
- To empty SWAP (switch to RAM only–requires that enough RAM is available):
sudo swapoff -av sudo swapon -av
- If step skiped during install, set up space for root on /home (3%
instead of 5%):
sudo tune2fs -m 3 /dev/XXX
(where
XXX
is given bydf
and corresponds to/home
;-l
to check).
- Optimize SSD:
- Reduce write frequency + boost performance:
sudo nano /etc/fstab
Add the
noatime
anddiscard
options for every SSD partition. /tmp
in RAM:sudo nano /etc/fstab
tmpfs /tmp tmpfs defaults,size=1g
- Init settings:
sudo update-initramfs -u -k all
- Remove
.xsession-errors
sudo echo 'ln -fs /dev/null "$HOME"/.xsession-errors' > /etc/X11/Xsession.d/00disable-xsession-errors
- Reduce write frequency + boost performance:
- Bug with
Super+H
openingbaobab
instead ofNautilus
:xdg-mime default nautilus.desktop inode/directory
- Copy
sources.list
andpreferences
in/etc/apt/
.sudo cp etc/apt/sources.list /etc/apt sudo cp etc/apt/preferences /etc/apt
- Avoid downloading translation indexes:
sudo nano /etc/apt/apt.conf.d/apt.conf
Acquire::Languages "none";
- Complete upgrade + install:
sudo aptitude update sudo aptitude install deb-multimedia-keyring sudo aptitude install apt-listbugs sudo apt-cache policy sudo aptitude safe-upgrade sudo aptitude full-upgrade upgrade
- WIFI Firmware support:
sudo aptitude install firmware-iwlwifi sudo modprobe -r iwlwifi sudo modprobe iwlwifi
sudo aptitude install aspell aspell-fr aspell-en autoconf bijiben build-essential cadaver chromium-browser cmake cmake-curses-gui conky-all cowsay debian-goodies deja-dup detox disper dosbox elinks epiphany-browser espeak firmware-linux-free flashplugin-nonfree fonts-crosextra-carlito fonts-crosextra-caladea fortune gcstar gftp gir1.2-gweather-3.0 git gkbd-capplet gnome-shell-extensions gnome-tweak-tool gnote gparted gtg gtick gtk2-engines-pixbuf gvncviewer hibernate hunspell-en-ca hunspell-en-us hunspell-fr libreoffice-gnome libreoffice-pdfimport marble most mozplugger myspell-en-gb network-manager-openconnect-gnome network-manager-vpnc-gnome ntp pandoc pandoc-citeproc privoxy python-vte revelation rsync screen stellarium subversion telepathy-haze terminator tesseract-ocr tesseract-ocr-eng tesseract-ocr-fra transmission tree ttf-mscorefonts-installer ttf-arphic-ukai ttf-arphic-uming ttf-arphic-gkai00mp ttf-arphic-gbsn00lp ttf-arphic-bkai00mp ttf-arphic-bsmi00lp ttf-kochi-gothic ttf-kochi-mincho ttf-baekmuk unetbootin unifont unison units unrar vpnc wakeonlan yafc
- Mozilla software
sudo aptitude install iceweasel iceweasel-l10n-fr icedove icedove-l10n-fr iceowl-extension iceowl-l10n-fr torbrowser-launcher
- Icedove integration with Gnome calendar
gsettings set org.gnome.desktop.default-applications.office.calendar exec icedove
- Suppression des liens des dicos fr_*
sudo rm /usr/share/hunspell/fr_* sudo rm /usr/share/myspell/dicts/fr_*
In case of trouble, just reinstal
hunspell-fr
. - Privoxy :
sudo aptitude install privoxy
Paramètres Gnome / Réseau / Serveur mandataire : HTTP/HTTPS = localhost:8118
- Enigmail (needs version >= 1.8):
sudo aptitude install -t unstable enigmail
Then change Gnome settings for the passphrase:
gsettings list-recursively org.gnome.crypto.cache
Lists relevant settings: the method can be `session` (never expires during the session), `idle` (timer is reset each time there’s activity on the computer) or `timeout` (simple timer since entering the passphrase). We set it to `timeout` with 5 minutes of delay:
gsettings set org.gnome.crypto.cache gpg-cache-method "timeout" gsettings set org.gnome.crypto.cache gpg-cache-ttl 300
sudo aptitude install gimp-gmic gimp-plugin-registry gimp-resynthesizer gthumb hugin imagemagick inkscape darktable rawtherapee phatch qtpfsgui cuetools easytag flac gstreamer1.0-ffmpeg gstreamer1.0-fluendo-mp3 gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly monkeys-audio shntool soundconverter devede easytag mkvtoolnix oggconvert pitivi frei0r-plugins gnome-video-effects-frei0r openshot rhythmbox-ampache sound-juicer sox subtitleeditor vlc vorbis-tools vorbisgain xbmc sweethome3d qarte chromium-bsu
Hack: http://sourcefoundry.org/hack/ Copy OTF files in usr/local/share/fonts and check permissions: $ sudo cp * /usr/local/share/fonts $ sudo chmod -R 777 /usr/local/share/fonts Use gnome-tweak-tools to change non-proportional font to Hack Regular 11
Calibri/Cambria : https://wiki.debian.org/SubstitutingCalibriAndCambriaFonts Install Carlito and Caladea, + LibreOffice font substitution (nothing checked though)
sudo aptitude install emacs24 gedit-latex-plugin gummi ispell texlive-full bibtex2html rubber jabref latex2rtf xpdf pdftk pdfjam poppler-utils libtext-pdf-perl pdf2svg impressive pdfchain pdfshuffler calibre mupdf pdf2djvu scribus xournal ditaa
Note that biblatex
lives in texlive-bibtex-extra
, which comes with
texlive-full
; pdfmanipulate
comes with calibre
.
Config:
cp -R .emacs.d ~ xrdb -merge ~/.Xresources
- Different font between Emacs and other software (e.g. gedit): gnome-tweak-tool > Polices > Optimisation > Full
- To get Emacs in the list of available software (contextual menu):
nano /home/mathieu/.local/share/applications/emacs.desktop
[Desktop Entry] Version=1.0 Name=Emacs GenericName=Text Editor Comment=View and edit files MimeType=text/english;text/plain;text/x-makefile;text/x-c++hdr;text/x-c++src;te$ Exec=/usr/bin/emacs %F TryExec=emacs Icon=/usr/share/icons/hicolor/scalable/apps/emacs.svg Type=Application Terminal=false Categories=Utility;Development;TextEditor;
- Install a package (e.g.
moderncv
)sudo nano /etc/texmf/texmf.d/03local.cnf
TEXMFHOME = ~/.emacs.d/texmf
sudo update-texmf
Check with:
kpsewhich --var-value TEXMFHOME
Copy packages in
~/.emacs.d/texmf/tex/latex/
and complete install when necessary, e.g.:latex moderntimeline.ins latex moderntimeline.dtx
- Install a font: copy the font in
~/.emacs.d/texmf/fonts/truetype/
, then update the TeX index:sudo texhash
- Import preferences (PrefJabRef-2014-XX-XX)
- Use
/home/mathieu/Work/biblio/PDF/
as main file folder (External programs) - GTK look & feel: Options > Preferences > Advanced > Class name: “com.sun.java.swing.plaf.gtk.GTKLookAndFeel”
- Link folder of main BibTeX file to the Tex install:
mkdir ~/.texmf-var/ mkdir ~/.texmf-var/bibtex/ ln -s ~/Work/biblio/ ~/.texmf-var/bibtex/bib
Check with:
kpsewhich -show-path=.bib
- Adobe Reader (in dmo)
sudo aptitude install acroread:i386
- Google Earth
The Debian way:
sudo aptitude install googleearth-package sudo dpkg --add-architecture i386 sudo apt-get install alien ia32-libs-gtk lib32nss-mdns libfreeimage3 lsb-core msttcorefonts pax rpm ttf-dejavu ttf-bitstream-vera make-googleearth-package --force sudo dpkg -i googleearth*.deb
But impossible to install ia32-libs
… Solution: get offical .deb @ Google, then:
dpkg-deb -R google-earth-stable_current_amd64.deb gg
To extract files, remove dependence to ia32-libs
in DEBIAN/Control before recreating the archive:
dpkg-deb -b gg google-earth-stable_current_amd64_mod.deb sudo dpkg -i google-earth-stable_current_amd64_mod.deb
- Google Chrome
Add Google Chrome repository (sources.list + preferences), then:
$ sudo aptitude install google-chrome-stable
sudo dpkg --add-architecture i386 sudo aptitude update wget -O skype-install.deb http://www.skype.com/go/getskype-linux-deb sudo dpkg -i skype-install.deb sudo aptitude -f install
If necessary, install dependencies manually:
sudo aptitude install libc6:i386 libgcc1:i386 libqt4-dbus:i386 libqt4-network:i386 libqt4-xml:i386 libqtcore4:i386 libqtgui4:i386 libqtwebkit4:i386 libstdc++6:i386 libx11-6:i386 libxext6:i386 libxss1:i386 libxv1:i386 libssl1.0.0:i386 libpulse0:i386 libasound2-plugins:i386
Don’t mute sound (music) when Skype (VoIP) calls or other notifications:
sudo nano /etc/pulse/default.pa
and comment the line:
### Cork music/video streams when a phone stream is active #load-module module-role-cork
- Download Rockbox utility
- Unzip file, and copy RockboxUtility in
/usr/local/bin/
:tar xvjf RockboxUtility-v1.4.0-64bit.tar.bz2 sudo mv RockboxUtility-v1.4.0-64bit/RockboxUtility /usr/local/bin/rockbox sudo chmod 755 /usr/local/bin/rockbox rm -R RockboxUtility-v1.4.0-64bit
- Launch
rockbox
- Install Ambiance theme (activate icons).
sudo aptitude install owncloud-client nautilus-owncloud cadaver
(or from backports:
sudo aptitude install -t jessie-backports owncloud-client nautilus-owncloud
sudo aptitude install nautilus-dropbox ## To install deamon dropbox start -i
Credential file:
nano .smb username=basille password=***** chmod 600 .smb
sudo mkdir mnt/ecored sudo mount.cifs //if-srv-flfile02/data/Unit/EcoRed /mnt/ecored -o credentials=/home/mathieu/.smb,uid=mathieu,gid=mathieu
mkdir MabLab mkdir MabLab/bkp mkdir MabLab/bkp/mathieu mkdir MabLab/bkp/mathieu/home
#!/bin/sh ################################################# ## ## ## rsync home Micmac on Ecored ## ## ## #################################################
################################################# ## ## ## -n pour tester le script sans modifs ! ## ## ## #################################################
### Mount Ecored sudo mount.cifs //if-srv-flfile02/data/Unit/EcoRed mnt/ecored -o credentials=/home/mathieu/.smb,uid=mathieu,gid=mathieu
### Save file ACLs (permission, ownership) cd ~ getfacl -R . > .file-acl ### Restore file ACLs
### tout home sauf Photos, Musique, Vidéos, caches/thumbnails, .extraswap, emacs.d/elpa/, .R-site/site-library/, Torbrowser, Trash ### –modify-window=1 to consider rounded timestamp rsync -avz –progress –delete-during –modify-window=1 –exclude=Musique –exclude=Images/Photos –exclude=Vidéos –exclude=.local/share/torbrowser –exclude=.cache –exclude=.extraswap –exclude=.gftp/cache –exclude=.googleearth/Cache/ –exclude=.thumbnails –exclude=.emacs.d/elpa –exclude=.R-site/site-library/ –exclude=.local/share/Trash home/mathieu mnt/ecored/MabLab/bkp/mathieu/home
### Unmount Ecored sudo umount mnt/ecored
#
#
#
#