Category Archives: Linux

Canon i-Sensys MF8030Cn on Ubuntu 10.10

Post migrated from my old site:

Driver for Linux can be found here: http://software.canon-europe.com/software/0040355.asp?model=

Some more help might be found here: https://help.ubuntu.com/community/CanonCaptDrv190

MPlayer and MEncoder to the rescue!

For those of you that have not discovered MPlayer and MEncoder yet. If you find yourself trying to combine dozens of codecs, converters, etc. and nothing works, to convert a movie, try MPlayer and/or MEncoder. Every time I have problems converting MEncoder proves to be the solution.
http://www.mplayerhq.hu

Postfix on KPN Direct ADSL

Hi,

I had a lot of trouble setting up Postfix so that it would relay my mail (sending only). I am using KPN Direct ADSL and have documented some tricks here for Ubuntu 12.10.

KPN’s support answer is somewhat useful but not that much:
http://kpn-customer.custhelp.com/app/answers/detail/a_id/13372

The three different addresses they are mentioning for the relayhost, confused me a lot. The right relayhost to use is: mail.kpnmail.nl.

My /etc/postfix/main.cf looks like this:

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no
append_dot_mydomain = no
readme_directory = no
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
myhostname = <hostname>
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
mydestination = <externaldomain>, <hostname>, localhost
relayhost = [mail.kpnmail.nl]
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = loopback-only
default_transport = relay
relay_transport = relay
inet_protocols = all
sender_canonical_maps=hash:/etc/postfix/sender_canonical

Please make sure that you replace <hostname> and <externaldomain> with your machine’s hostname and external domain URL.

The last I found with http://www.whatismyip.com/ to get my external ip address and to get your external domain URL:

host <ip-address>

Notice that I had to change the default_transport and relay_transport to error to:

default_transport = relay
relay_transport = relay

The other thing I had to do is to set the following to change rewrite the from field as KPN does not accept the <user>@<hostname> that your Ubuntu machine provides:

sender_canonical_maps=hash:/etc/postfix/sender_canonical

To set up your sender_canonical file, follow these instructions:
http://ubuntuforums.org/archive/index.php/t-38429.html

Useful background information can be found here:
http://www.postfix.org/

Spotify on Precise Pangolin (Ubuntu 12.04LTS)

Good instructions to install Spotify using apt-get on Ubuntu 12.04LTS Precise Pangolin can be found here:
http://www.liberiangeek.net/2012/04/the-quickest-way-to-install-spotify-client-in-ubuntu-12-04-precise-pangolin/

If you get an error about invalid keys, the solution is here (post by dubbe):
http://community.spotify.com/t5/Desktop-Linux/Can-t-Open-Spotify/td-p/89529

Have fun.

Regards,
Jeroen

Postfix malfunctioning on Ubuntu 11.10

In case Postfix is complaining about /etc/postfix/main.cf missing in your Ubuntu 11.10 Oneiric Ocelot too, follow this link for the solution:

http://ubuntuforums.org/showthread.php?p=9348088

Ubuntu 11.10 (Oneiric Ocelot): PHP dynamic library problem

Hi,

I noticed that my Ubuntu 11.10 Oneiric Ocelot machine was complaining about:

$ php -v
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/idn.so' - /usr/lib/php5/20090626/idn.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php5/20090626/sqlite.so' - /usr/lib/php5/20090626/sqlite.so: cannot open shared object file: No such file or directory in Unknown on line 0
PHP 5.3.6-13ubuntu3.6 with Suhosin-Patch (cli) (built: Feb 11 2012 03:26:01) 
Copyright (c) 1997-2011 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2011 Zend Technologies

To resolve this issue, take a look at this thread. It works:
http://ubuntuforums.org/showthread.php?t=1610097

http://ubuntuforums.org/showthread.php?t=1610097

Password less login on Linux

Instructions for password less authentication on Linux can be found here:

http://www.cyberciti.biz/faq/ssh-password-less-login-with-dsa-publickey-authentication/

Apt-get behind a proxy in Ubuntu 11.10

When you are behind a proxy on Ubuntu 11.10 and would like to update your system:

  1. Edit the file /etc/apt/apt.conf.d/02proxy
  2. Add the following line to this file (Of course replace the username, password and proxy ip address)
    Acquire:http:Proxy "http://username:password@proxy:80";
  3. And of you go:
    apt-get update
    apt-get upgrade

Thanks to:
http://naveenubuntu.blogspot.com/2011/09/updating-packages-behind-prxy-in-ubuntu.html

Update:
If the above does not work, you could try the above in /etc/apt/apt.conf. This sometimes works with the above doesn’t.

Evernote

Excellent tool on many platforms for note taking:
http://www.evernote.com

Disk load monitoring tool: iotop

iotop is a nice disk monitoring tool for Linux in case your hard disk is bugging you with high load and you want to find out what it is causing it (like mine).

http://guichaz.free.fr/iotop/