Outils pour utilisateurs

Outils du site

Panneau latéral




Ham Radio







Some quick notes about Debian and Ubuntu-related systems.

Apt's keyring

$ gpg --keyserver subkeys.pgp.net --recv-keys 6070D3A1
$ gpg --export -a 6070D3A1 | apt-key add -

(works on Etch)

Quickly Tweak the Desktop Environment Using gconftool-2

$ gconftool-2 --set /apps/epiphany/directories/downloads_folder --type string "~/download"
$ gconftool-2 --set /apps/epiphany/general/homepage --type string "http://www.google.com.au"
$ gconftool-2 --set /apps/gksu/sudo-mode --type bool true
$ gconftool-2 --set /apps/gnome-terminal/profiles/Default/background_color --type string "#000000"
$ gconftool-2 --set /apps/gnome-terminal/profiles/Default/foreground_color --type string "#FFFFFF"
$ gconftool-2 --set /apps/gnome-terminal/profiles/Default/use_theme_colors --type bool false
$ gconftool-2 --set /apps/metacity/general/compositing_manager --type bool true
$ gconftool-2 --set /apps/metacity/general/focus_mode --type string "mouse"
$ gconftool-2 --set /apps/nautilus/desktop/home_icon_visible --type bool false
$ gconftool-2 --set /apps/nautilus/preferences/desktop_is_home_dir --type bool true
$ gconftool-2 --set /desktop/gnome/interface/gtk_key_theme --type string "Emacs"

Ditto for the Gnome 3 Shell and Nautilus

To be completed, but see also the 'gnome-tweak-tool'.

$ dconf write /org/gnome/desktop/wm/preferences/focus-mode "'sloppy'"
$ dconf write /org/gnome/nautilus/preferences/desktop-is-home-dir true
$ dconf write /org/gnome/desktop/interface/gtk-key-theme "'Emacs'"
$ dconf write /org/gnome/desktop/background/show-desktop-icons true

Disable Default Session Services

$ for file in at-spi-dbus-bus.desktop gnome-keyring-gpg.desktop  gnome-keyring-ssh.desktop gwibber.desktop indicator-bluetooth.desktop onboard-autostart.desktop orca-autostart.desktop pulseaudio-kde.desktop ubuntuone-launch.desktop vino-server.desktop ; do echo -e "[Desktop Entry]\nX-GNOME-Autostart-enabled=false" > ~/.config/autostart/$file; done

Yaboot Parameters for a PowerMac G5

For some reason, the Lenny installer gets them wrong…

The device= line has to be changed to the following in /etc/yaboot.conf.


The actual device can be found in OpenFirmware (Cmd+Opt+o+f during boot), using command devalias. The ':2' at the end identifies the second partition (/dev/sda2).

$ sudo ybin -v -b /dev/sda2 -C /etc/yaboot.conf

It can be checked that all worked properly by mounting /dev/sda2 and checking the beginning of file ofboot.b is instructed to load yaboot from the aforementionned device (/ht/pci@7/k2-sata-root/k2-sata@0/disk@0:2,\\yaboot).

Thermal module for PowerMac G5

For some reason, the thermal module doesn't get loaded, which results in the computer to quickly start really noisy, with the fans full on. As suggested in this post, loading module therm_pm72 (e.g. from /etc/modules) solves the problem.

Prevent the Upgrade Window from Popping Up

A notification is just fine.

$ sudo gconftool -s --type bool /apps/update-notifier/auto_launch false

Deinverting ALSA Mixer on an ASUS P4SD

This is the motherboard found in HP/Compaq d530 computers. The Headphones and Main mixers are inverted. Fortunately this seems to be common emough amongst manufacturer that ALSA provides a way to make everything write again.

The snd-intel8x0 module has an ac97_quirk option which, when set to swap_hp does exactly what we want it to.

This can be made reboot-proof by adding the following in /etc/modprobe.d/alsa-base.conf.

options snd-intel8x0 ac97_quirk=swap_hp

Letting the XBMC user share the audio

FIXME: work in progress (a.k.a this doesn't work yet…)

A dmix mixer has to be created, in ~xmbc/.asoundrc/etc/asound.conf.

pcm.dmixer {
  type dmix
  ipc_key 1024
  ipc_key_add_uid false   # let multiple users share
  ipc_perm 0666           # IPC permissions for multi-user sharing (octal, default 0600)

  slave {
      pcm "hw:0,0"
      period_time 0
      period_size 1024
      buffer_size 8192
      #periods 128
      #rate 44100
      rate 48000

  bindings {
    0 0
    1 1

pcm.!default {
  type plug
  slave.pcm dmixer

Then XBMC has to be configured to use this mixer. In Settings/System/Audio hardware set AUDIO OUTPUT DEVICE to custom and CUSTOM AUDIO DEVICE to plug:dmixer (lowercase).

Disable PulseAudio for GDM

When using MPD as a system service using ALSA, PulseAudio messes with the volumes all the time. Setting flat-volumes = no in /etc/pulse/daemon.conf doesn't fix the problem.

As GDM is the one responsible to start the PulseAudio daemon, we follow instructions from there to disable it. Namely, this is done by creating a configuration file for user gdm that prevents PulseAudio from starting:

autospawn = no
daemon-binary = /bin/true

The file is then given to the gdm user.

# sudo chown gdm:gdm /var/lib/gdm/.pulse/client.conf

This also works on ArchLinux.

tips/debian.txt · Dernière modification: 2015-02-22 08:27 par shtrom