Debian Annoyances: Difference between revisions

From MK Wiki EN
Jump to navigation Jump to search
(+Avoid "perl: warning: Setting locale failed.")
Line 51: Line 51:


== Avoid "perl: warning: Setting locale failed." ==
== Avoid "perl: warning: Setting locale failed." ==
This warning is displayed if you start "perl -e exit".


  locale-gen
  locale-gen

Revision as of 05:35, 4 October 2018

Follow this tutorial to get rid off some annoyances in Debian 7 aka Wheezy.

pcspkr error message

Get rid off error message "Driver ‘pcspkr’ is already registered, aborting..." when booting: in /etc/modprobe.d/blacklist.conf create an entry "blacklist snd-pcsp"

Credits

exim4

Don't need a MTA? Deactivate it easily:

cd /etc/rc2.d
mv S21exim4 K21exim4

Credits

The same way it's possible to deactivate all the NFS and portmapper crap.

Clearing screen on tty1

Since some time, Debian automatically clears the screen when the login prompt appears. This is especially annoying on tty1 because it vanishes all messages from the boot process. The solution is quite simple: in /etc/inittab (yes, they still use it!) find the line "1:2345:respawn:/sbin/getty 38400 tty1" and put a "--noclear" before "38400". Credits: man getty

Setting video mode

Due to a bug in update-grub, GRUB_GFXPAYLOAD in /etc/default/grub is ignored. Two changes enable it:

In /etc/grub.d/00_header

if [ "x${GRUB_GFXPAYLOAD}" = "x" ] ; then GRUB_GFXPAYLOAD=800x600x32 ; fi

some lines later

set gfxpayload=${GRUB_GFXPAYLOAD}

Credits

Avoid PAM messages from CRON

In /etc/rsyslog.conf find section "RULES". Just before "auth,authpriv.*" insert

:msg, contains, "pam_unix(cron:session)" ~

In Ubuntu, this information is saved in /etc/rsyslog.d/50-default.conf.

After saving the file, restarting the service is required:

service rsyslog restart

Credits

Avoid "perl: warning: Setting locale failed."

This warning is displayed if you start "perl -e exit".

locale-gen
dpkg-reconfigure locales