Category: Debian


Exim4 does not transfer mails to the root user by default. If you’re trying to test Exim4 by sending an email to the root user, it will never be delivered to root user.That’s a default configuration from Debian. Instead, all emails for root user are transferred to /var/mail/mail.
Here is where it is configured :

root@localhost:~# cat /etc/exim4/conf.d/router/mmm_mail4root

### router/mmm_mail4root
#################################
# deliver mail addressed to root to /var/mail/mail as user mail:mail
# if it was not redirected in /etc/aliases or by other means
# Exim cannot deliver as root since 4.24 (FIXED_NEVER_USERS)

mail4root:
  debug_print = “R: mail4root for $local_part@$domain”
  driver = redirect
  domains = +local_domains
  data = /var/mail/mail
  file_transport = address_file
  local_parts = root
  user = mail
  group = mail
If you need to redirect emails to root, then add the right user in /etc/aliases at line where root word stands. Then run the command newaliases to take this change into account. Send a test email to root and log in to the user you’ve just configured and check its email box with the mail command. You should be able to read the email you’ve just sent a few seconds before.

If you are running several namebased SSL VirtualHosts with mod_GnuTLS, you need to provide the adequate intermediate certificate to check that your SSL certificates chains are valid. With mod_GnuTLS, it is quite tricky to set it up. You do not have any options. The only way to make it work is to do as follow :

For a Debian-based distro :

root@localhost:~# cd /etc/ssl/certs

root@localhost:~#cat your_SSL_intermediate_certificate_provider.pem your_ssl_website_certificate.crt > your_new_ssl_certificate.crt

In the Apache config file for your SSL website, add the following line :

GnuTLSCertificateFile /etc/ssl/certs/your_new_ssl_certificat_site.crt

root@localhost:~#/etc/init.d/apache2 reload

More infos about GnuTLS

Some webradios provide mono stream while listening online.

To emulate a stereo stream, you just have to add some options to mplayer.

For instance :

[fool@localhost:~]$ mplayer  -af extrastereo=0,volume=5 -vo null -playlist mms://*

For more information about these options in MPlayer :


Tweaking audio channels with mplayer

 

 

 

Some web-based management tools use Java applets to perform configuration tasks. Within Debian Squeeze, you have two JRE available : openjdk-6-jre and sun-java6-jre. Concerning web browsers, two kinds of Java plug-ins can be installed : the official Oracle Java plug-in from the sun-java6-plugin package and the alternative Icedtea plug-in  from the icedtea6-plugin package.

The Oracle Java Plug-in is better suited for its integration within web browsers. To install it :

root@localhost:~#apt-get install sun-java6-plugin

To use one implementation of Java (either OpenJDK or Oracle java), make sure that your environment is properly configured. update-java-alternatives (utility from the java-common package) can be used for this purpose.

To list the existing Java environments :

root@localhost:~# update-java-alternatives -l
java-6-openjdk 1061 /usr/lib/jvm/java-6-openjdk
java-6-sun 63 /usr/lib/jvm/java-6-sun

To force the use of one given environment :

root@localhost:~#update-java-alternatives -s java-6-sun

To make sure that your installed applications only use the Oracle Java 6, check the output of update-alternatives -l . You should have the following output :

root@localhost:~#update-alternatives -l |grep java

update-alternatives –get-selections |grep java
appletviewer                   manual   /usr/lib/jvm/java-6-sun/bin/appletviewer
apt                            manual   /usr/lib/jvm/java-6-sun/bin/apt
ControlPanel                   manual   /usr/lib/jvm/java-6-sun/jre/bin/ControlPanel
extcheck                       manual   /usr/lib/jvm/java-6-sun/bin/extcheck
firefox-javaplugin.so          manual   /usr/lib/jvm/java-6-sun/jre/lib/amd64/libnpjp2.so
HtmlConverter                  manual   /usr/lib/jvm/java-6-sun/bin/HtmlConverter
iceape-javaplugin.so           manual   /usr/lib/jvm/java-6-sun/jre/lib/amd64/libnpjp2.so
iceweasel-javaplugin.so        manual   /usr/lib/jvm/java-6-sun/jre/lib/amd64/libnpjp2.so
idlj                           manual   /usr/lib/jvm/java-6-sun/bin/idlj
jar                            manual   /usr/lib/jvm/java-6-sun/bin/jar
jarsigner                      manual   /usr/lib/jvm/java-6-sun/bin/jarsigner
java                           manual   /usr/lib/jvm/java-6-sun/jre/bin/java
javac                          manual   /usr/lib/jvm/java-6-sun/bin/javac
javadoc                        manual   /usr/lib/jvm/java-6-sun/bin/javadoc
javah                          manual   /usr/lib/jvm/java-6-sun/bin/javah
javap                          manual   /usr/lib/jvm/java-6-sun/bin/javap
java_vm                        manual   /usr/lib/jvm/java-6-sun/jre/bin/java_vm
javaws                         manual   /usr/lib/jvm/java-6-sun/jre/bin/javaws
jconsole                       manual   /usr/lib/jvm/java-6-sun/bin/jconsole
jcontrol                       manual   /usr/lib/jvm/java-6-sun/jre/bin/jcontrol
jdb                            manual   /usr/lib/jvm/java-6-sun/bin/jdb
jexec                          manual   /usr/lib/jvm/java-6-sun/jre/lib/jexec
jhat                           manual   /usr/lib/jvm/java-6-sun/bin/jhat
jinfo                          manual   /usr/lib/jvm/java-6-sun/bin/jinfo
jmap                           manual   /usr/lib/jvm/java-6-sun/bin/jmap
jps                            manual   /usr/lib/jvm/java-6-sun/bin/jps
jrunscript                     manual   /usr/lib/jvm/java-6-sun/bin/jrunscript
jsadebugd                      manual   /usr/lib/jvm/java-6-sun/bin/jsadebugd
jstack                         manual   /usr/lib/jvm/java-6-sun/bin/jstack
jstat                          manual   /usr/lib/jvm/java-6-sun/bin/jstat
jstatd                         manual   /usr/lib/jvm/java-6-sun/bin/jstatd
keytool                        manual   /usr/lib/jvm/java-6-sun/jre/bin/keytool
midbrowser-javaplugin.so       manual   /usr/lib/jvm/java-6-sun/jre/lib/amd64/libnpjp2.so
mozilla-javaplugin.so          manual   /usr/lib/jvm/java-6-sun/jre/lib/amd64/libnpjp2.so
native2ascii                   manual   /usr/lib/jvm/java-6-sun/bin/native2ascii
orbd                           manual   /usr/lib/jvm/java-6-sun/jre/bin/orbd
pack200                        manual   /usr/lib/jvm/java-6-sun/jre/bin/pack200
pluginappletviewer             auto     /usr/lib/jvm/java-6-openjdk/jre/bin/pluginappletviewer
policytool                     manual   /usr/lib/jvm/java-6-sun/jre/bin/policytool
rmic                           manual   /usr/lib/jvm/java-6-sun/bin/rmic
rmid                           manual   /usr/lib/jvm/java-6-sun/jre/bin/rmid
rmiregistry                    manual   /usr/lib/jvm/java-6-sun/jre/bin/rmiregistry
schemagen                      manual   /usr/lib/jvm/java-6-sun/bin/schemagen
serialver                      manual   /usr/lib/jvm/java-6-sun/bin/serialver
servertool                     manual   /usr/lib/jvm/java-6-sun/jre/bin/servertool
tnameserv                      manual   /usr/lib/jvm/java-6-sun/jre/bin/tnameserv
unpack200                      manual   /usr/lib/jvm/java-6-sun/jre/bin/unpack200
wsgen                          manual   /usr/lib/jvm/java-6-sun/bin/wsgen
wsimport                       manual   /usr/lib/jvm/java-6-sun/bin/wsimport
xjc                            manual   /usr/lib/jvm/java-6-sun/bin/xjc
xulrunner-1.9-javaplugin.so    manual   /usr/lib/jvm/java-6-sun/jre/lib/amd64/libnpjp2.so
xulrunner-javaplugin.so        manual   /usr/lib/jvm/java-6-sun/jre/lib/amd64/libnpjp2.so

For Iceweasel,you can check that your Java plug-in is configured by typing about:plugins in the address bar.

Perl is famous for its tremendous number of modules ready to use. They can be fetched and installed from the Comprehensive Perl Archive Network (CPAN)

One of the best way to add new modules into your system is to use the program cpan.

Before any manual installation, make sure that these modules are not packaged by Debian. According to the Debian Perl Policy , the Perl modules provided by Debian are located in the following folders :

For the core modules : (provided by perl-base and perl-modules packages)

/usr/lib/perl/version

/usr/share/perl/version

For Debian packed modules :

/usr/lib/perl5

/usr/share/perl5

Concerning the modules installed with cpan command :

/usr/local/lib/perl/version

/usr/local/share/perl/version

 

If your host OS is Windows with a Linux flavor as a guest OS, here is a quick reminder of the steps to proceed to install or update the current VirtualBox guest additions.

The VirtualBox guest additions are located in the VBoxGuestAdditions ISO image which can be found in C:\Program Files\Oracle\VirtualBox

To install  them, load this ISO image into your virtual CD/DVD drive and your OS guest should make it available through a mount point. Make a local copy of its content into a folder and launch the following command as root :

root@localhost:~#./VBoxLinuxAdditions.run

Verifying archive integrity… All good.
Uncompressing VirtualBox 4.1.22 Guest Additions for Linux………
VirtualBox Guest Additions installer
Removing installed version 4.1.16 of VirtualBox Guest Additions…
Removing existing VirtualBox DKMS kernel modules …done.
Removing existing VirtualBox non-DKMS kernel modules …done.
Building the VirtualBox Guest Additions kernel modules …done.
Doing non-kernel setup of the Guest Additions …done.
You should restart your guest to make sure the new modules are actually used

Installing the Window System drivers
Installing X.Org Server 1.7 modules …done.
Setting up the Window System to use the Guest Additions …done.
You may need to restart the hal service and the Window System (or just restart
the guest system) to enable the Guest Additions.

Installing graphics libraries and desktop services components …done.

Three services should be present in /etc/init.d :

/etc/init.d/vboxadd
/etc/init.d/vboxadd-x11
/etc/init.d/vboxadd-service

After the install/upgrade of VirtualBox guest additions, reboot your guest OS to make the upgrade take effect.

For more information : Installing VirtualBox guest additions

Oracle has released the latest maintenance version of VirtualBox Please find below the details of the changelog :

This is a maintenance release. The following items were fixed and/or added:

  • VMM: fixed a crash under rare circumstances for VMs running without hardware virtualization
  • VMM: fixed a code analysis bug for certain displacement instructions for VMs running without hardware virtualization
  • VMM: fixed an interpretion bug for TPR read instructions under rare conditions (AMD-V only)
  • Snapshots: fixed a crash when restoring an old snapshot when powering off a VM (bugs #9604, #10491)
  • VBoxSVC: be more tolerant against environment variables with strange encodings (bug #8780)
  • VGA: fixed wrong access check which might cause a crash under certain conditions
  • NAT: final fix for crashes under rare conditions (bug #10513)
  • Virtio-net: fixed the problem with receiving of GSO packets in Windows XP guests causing packet loss in host-to-VM transfers
  • HPET: several fixes (bugs #10170, #10306)
  • Clipboard: disable the clipboard by default for new VMs
  • BIOS: the PCI BIOS was not properly detected with the chipset type set to ICH9 (bugs #9301, #10327)
  • Mac OS X hosts: adaptions to Mountain Lion
  • Linux Installer: fixes for Gentoo Linux (bug #10642)
  • Linux guests: fixed mouse integration on Fedora 17 guests (bug #2306)
  • Linux Additions: compile fixes for RHEL/CentOS 6.3 (bug #10756)
  • Linux Additions: compile fixes for Linux 3.5-rc1 and Linux 3.6-rc1 (bug #10709)
  • Solaris host: fixed a guru meditation while allocating large pages (bug #10600)
  • Solaris host: fixed possible kernel panics while freeing memory
  • Solaris Installer: fixed missing icon for menu and desktop shortcuts

To install it on Linux, whatever your distro:

VirtualBox on Linux

If you have this error “CHECK_NRPE: Error – Could not complete SSL handshake” while configuring Nagios or Centreon, make sure that your (Nagios|Centreon) poller IP address is allowed in the remote monitored nrpe server configuration file. Just add the IP address :

Debian : cat  /etc/nagios/nrpe.cfg

allowed_hosts=your_ip_here

then, reload the nrpe server configuration file :

root@localhost:~#/etc/init.d/nagios-nrpe-server reload

RedHat : cat  /etc/nagios/nrpe.cfg

allowed_hosts=your_ip_here

Then, restart the nrpe server configuration file (no option for reloading) :

root@localhost:~#service nrpe restart

You can make searches for package(s) through apt-cache and other GUI related tools. Debtags provides a different way to do the same kind of job : debtags

To install it :

root@localhost:~#apt-get install debtags

To populate the debtags database with the latest up-to-date data, you should remove the “#” at the line beginning with “tags http://debtags.alioth.debian.org/tags/”.  You can launch the database update :

root@localhost:~# debtags update

Most of the packages available in the Debian repositories have tags inside their description. See below what an apt-cache show provides as information for the vim package.

root@localhost:~# apt-cache show vim
Package: vim
Priority: optional
Section: editors
Installed-Size: 1744
Maintainer: Debian Vim Maintainers <pkg-vim-maintainers@lists.alioth.debian.org>
Architecture: amd64
Version: 2:7.2.445+hg~cb94c42c0e1a-1
Provides: editor
Depends: vim-common (= 2:7.2.445+hg~cb94c42c0e1a-1), vim-runtime (= 2:7.2.445+hg~cb94c42c0e1a-1), libacl1 (>= 2.2.11-1), libc6 (>= 2.7), libgpm2 (>= 1.20.4), libncurses5 (>= 5.7+20100313), libselinux1 (>= 1.32)
Suggests: ctags, vim-doc, vim-scripts
Filename: pool/main/v/vim/vim_7.2.445+hg~cb94c42c0e1a-1_amd64.deb
Size: 915008
MD5sum: dab2644b07e8dea570fc020d59f69d41
SHA1: 8314d6388d378a8994e94d224255ef5b447851a8
SHA256: 22c28c136a0c761cdc19a299b7cd9b8adb00e9de7e66b787c945f2104cfdba9d
Description: Vi IMproved – enhanced vi editor
Vim is an almost compatible version of the UNIX editor Vi.
.
Many new features have been added: multi level undo, syntax
highlighting, command line history, on-line help, filename
completion, block operations, folding, Unicode support, etc.
.
This package contains a version of vim compiled with a rather
standard set of features.  This package does not provide a GUI
version of Vim.  See the other vim-* packages if you need more
(or less).
Homepage: http://www.vim.org/
Tag: devel::editor, implemented-in::c, interface::text-mode, role::program, scope::application, uitoolkit::ncurses, use::editing, works-with::text, works-with::unicode

Here is a couple of commands to deal with this kind of search. You do not need to be root to run these commands.

fool@localhost:~$ debtags show vim

With this command above, you get all the tags within the vim package. This is similar to apt-cache show.

If you want to list all the packages available in the repositories with the “devel::editor” tag :

fool@localhost:~$ debtags search devel::editor

cream – VIM macros that make the VIM easier to use for beginners
csstidy – CSS parser and optimiser
drpython – simple and customizable editor for the Python language
eclipse-jdt – Eclipse Java Development Tools (JDT)
editra – simple multi-platform text editor
eieio – Enhanced Implementation of Emacs Interpreted Objects
elvis – powerful clone of the vi/ex text editor (with X11 support)
elvis-common – common files for elvis, elvis-console and elvis-tools
elvis-console – powerful clone of the vi/ex text editor (without X11 support)
elvis-tiny – Tiny vi compatible editor for the base system
elvis-tools – text editing tools for programmers (elvfmt, elvtags, ref)
emacs – The GNU Emacs editor (metapackage)
emacs-goodies-el – Miscellaneous add-ons for Emacs
emacs-intl-fonts – Fonts to allow multi-lingual PostScript printing from Emacs
emacs23 – The GNU Emacs editor (with GTK+ user interface)
emacs23-bin-common – The GNU Emacs editor’s shared, architecture dependent files
emacs23-common – The GNU Emacs editor’s shared, architecture independent infrastructure
emacs23-nox – The GNU Emacs editor (without X support)
emacsen-common – Common facilities for all emacsen
eric – full featured Python IDE
fte – Text editor for programmers – base package
fte-console – Text editor for programmers – console edition, no I18N support
fte-docs – Documentation and examples for the FTE editor
fte-terminal – Text editor for programmers – version for terminals
fte-xwindow – Text editor for programmers – X Window System edition with I18N support
gphpedit – development environment for PHP/HTML/CSS
haskell-mode – A major mode for editing Haskell in Emacs
infon-devel – Develop bots for the infon game
jed – editor for programmers (textmode version)
jed-common – S-Lang runtime files for jed and xjed
jed-extra – collection of useful Jed modes and utilities
jove – Jonathan’s Own Version of Emacs – a compact, powerful editor
js2-mode – Emacs mode for editing Javascript programs
jvim-canna – Japanized VIM (Canna version)
kate – K Advanced Text Editor
kobby – Collaborative text editor for KDE
kwrite – simple graphical text editor
lpe – Lightweight Programmer’s Editor
medit – A useful programming and around-programming text editor
monodevelop – Development Environment for GNOME
monodevelop-java – Java plugin for MonoDevelop
nvi – 4.4BSD re-implementation of vi
padre – Perl Application Development and Refactoring Environment
pida – Python Integrated Development Application, a Python IDE
plt-scheme – PLT Scheme Programming Environment
projectmanager.app – Simple IDE for GNUstep
pype – Python programmers editor
pyragua – Very lightweight Python editor
rkward – a KDE frontend to the R statistics language
scite – Lightweight GTK-based Programming Editor
vigor – nvi with the evil paperclip
vile – VI Like Emacs – vi work-alike
vile-common – VI Like Emacs – support files for vile/xvile
vile-filters – VI Like Emacs – highlighting filters for vile/xvile
vim – Vi IMproved – enhanced vi editor
vim-common – Vi IMproved – Common files
vim-gnome – Vi IMproved – enhanced vi editor – with GNOME2 GUI
vim-gtk – Vi IMproved – enhanced vi editor – with GTK2 GUI
vim-latexsuite – view, edit and compile LaTeX documents from within Vim
vim-lesstif – Vi IMproved – enhanced vi editor – with LessTif GUI
vim-nox – Vi IMproved – enhanced vi editor
vim-runtime – Vi IMproved – Runtime files
vim-scripts – plugins for vim, adding bells and whistles
vim-tiny – Vi IMproved – enhanced vi editor – compact version
vim-vimoutliner – script for building an outline editor on top of Vim
vimhelp-de – Vi IMproved – Documentation files (German translation)
wily – A work-alike of the Acme programming environment for Plan 9
wims – server for educative contents as courses, exercises, exams
xemacs21 – highly customizable text editor
xemacs21-basesupport – Editor and kitchen sink — compiled elisp support files
xemacs21-basesupport-el – Editor and kitchen sink — source elisp support files
xemacs21-bin – highly customizable text editor — support binaries
xemacs21-gnome-mule – highly customizable text editor — transitional package
xemacs21-gnome-mule-canna-wnn – highly customizable text editor — transitional package
xemacs21-gnome-nomule – highly customizable text editor — transitional package
xemacs21-mule – highly customizable text editor — Mule binary
xemacs21-mule-canna-wnn – highly customizable text editor — Mule binary compiled with Canna and Wnn
xemacs21-mulesupport – Editor and kitchen sink — Mule elisp support files
xemacs21-mulesupport-el – Editor and kitchen sink — source elisp support files
xemacs21-nomule – highly customizable text editor — Non-mule binary
xemacs21-support – highly customizable text editor — architecture independent support files
xemacs21-supportel – highly customizable text editor — non-required library files
xjed – editor for programmers (x11 version)
xvile – VI Like Emacs – vi work-alike (X11)

Then, you can install one of them with the apt-get program.

To find which tags have been created for a particular subject :

fool@localhost:~$debtags tagsearch perl

devel::lang:perl – Perl Development
implemented-in::perl – Perl

More info in the debtags manpage : man (1) debtags

With the recent upgrade of pulseaudio to version 1.1-3, you will probably encounter error messages while playing an audio file as the ones below :

[AO_ALSA] alsa-lib: conf.c:1220:(parse_def) show is not a compound
[AO_ALSA] alsa-lib: conf.c:1686:(snd_config_load1) _toplevel_:24:26:Unexpected char
[AO_ALSA] alsa-lib: conf.c:3406:(config_file_open) /usr/share/alsa/pulse-alsa.conf may be old or corrupted: consider to remove or fix it

I had the messages above with mplayer while listening to an on-line radio.

After searches, this has been recently filed as a bug : Debian bug 661095

Look at the following configuration file : /usr/share/alsa/pulse-alsa.conf

Make a copy of it before doing any changes :

root@localhost:~# cp /usr/share/alsa/pulse-alsa.conf /usr/share/alsa/pulse-alsa.conf.save

With your favorite text editor, remove all the lines starting at line 20 until the last line. Here is what you should have at last :

root@localhost:~# cat /usr/share/alsa/pulse-alsa.conf

# This file is referred to by /usr/share/alsa/pulse.conf to set pulseaudio as
# the default output plugin for applications using alsa when PulseAudio is
# running.

pcm.!default {
    type pulse
    hint {
        show {
            @func refer
            name defaults.namehint.basic
        }
        description “Playback/recording through the PulseAudio sound server”
    }
}

ctl.!default {
    type pulse
}

You can now play any audio file with no more error messages.

Hope this help !

Follow

Get every new post delivered to your Inbox.