Recent Updates Page 4 Toggle Comment Threads | Keyboard Shortcuts

  • MD1032 7:00 pm on October 14, 2010 Permalink | Reply  

    Apple Mail: copy only email addresses, not ‘name address’ 

    This was introduced in Snow Leopard. Here’s how to get back to the old behaviour:

    defaults write AddressesIncludeNameOnPasteboard -bool NO

    Now when you ⌘-C an address in Apple Mail, only the address will end up in the clipboard.

  • MD1032 4:14 pm on October 14, 2010 Permalink | Reply
    Tags: ubuntu apt   

    Reinstall all installed Ubuntu packages 

    for pkg in `dpkg --get-selections | egrep -v deinstall | awk '{print $1}'` ; do apt-get -y install --reinstall $pkg ; done

  • MD1032 5:18 pm on October 13, 2010 Permalink | Reply
    Tags: scp ssh   

    Speed of SCP transfers over Gigabit Ethernet 

    I’m getting around 20MB/s with the default cipher, but when choosing arcfour:
    scp -c arcfour file user@host:
    the transfer speed doubles to 40MB/s.

    For rsync, add this to the rsync command line:
    --rsh="ssh -c arcfour"

  • MD1032 1:46 am on October 10, 2010 Permalink | Reply
    Tags: ati, fglrx, , radeon,   

    fglrx in Ubuntu 10.10: disable underscan 

    Do you see black borders on your TV when you connect your Linux HTPC with ATI Radeon chipset/card? Usually you would be able to change overscan/underscan settings in the graphical ATI tool – but my plasma is detected as a projector, some underscan is applied and the slider to correct it is missing.

    The solution lies in the command-line tool aticonfig. It allows you to set the relative screen position and the absolute screen size. Create a new file containing this script:

    aticonfig --set-dispattrib=dfp1,positionX:0
    aticonfig --set-dispattrib=dfp1,positionY:0
    aticonfig --set-dispattrib=dfp1,sizeX:1920
    aticonfig --set-dispattrib=dfp1,sizeY:1080

    and make it executable. Now configure it as a “startup application” in the Ubuntu preferences. There’s a catch though: you need to find out the name of your display device first. Mine is called “dfp1”. Have a look at your /var/log/Xorg.0.log and find the line similar to

    [    25.483] (II) fglrx(0): Connected Display0: DFP1

    and insert the correct name into the script. Also make sure you set the correct display resolution. Run the script or log off and back on, and the black borders should be gone.

    • frans 3:21 pm on January 10, 2012 Permalink

      Thanks for this fix, Works great.

    • kevin 2:28 am on December 22, 2012 Permalink

      this fixed my projector as well… why isnt the default to not over/underscan the damn screen? the edid info has proper hz and res in the rest of the tools. wtf ati?

  • MD1032 7:47 pm on October 8, 2010 Permalink | Reply
    Tags: hack, , , udev   

    Disable automatic udev rules for network interfaces in Ubuntu 

    If you want to deploy a Ubuntu image across different hosts, each time you boot it on a new machine, a new udev rule for its network card will be created. You will then end up with eth1, eth2, and so on. There are different ways to work around this problem. Here is a simple approach that will completely disable the automatic rule file generation:

    1. rm /etc/udev/rules.d/70-persistent-net.rules
    2. mkdir /etc/udev/rules.d/70-persistent-net.rules

    It’s a hack, it’s not pretty, but it works.

  • MD1032 4:33 pm on October 8, 2010 Permalink | Reply
    Tags: , osx, ssh   

    SSH passwordless login: ssh-copy-id 

    To log on to a remote machine without the need to enter a password each time, you need to copy your SSH public key to the remote machine and add it to the .ssh/authorized_keys file. First, generate a keypair using ssh-keygen, then use this script to copy your key to the remote host:

    # Shell script to install your public key on a remote machine
    # Takes the remote machine name as an argument.
    # Obviously, the remote machine must accept password authentication,
    # or one of the other keys in your ssh-agent, for this to work.
    if [ "-i" = "$1" ]; then
      # check if we have 2 parameters left, if so the first is the new ID file
      if [ -n "$2" ]; then
        if expr "$1" : ".*\.pub" > /dev/null ; then
        shift         # and this should leave $1 as the target name
      if [ x$SSH_AUTH_SOCK != x ] && ssh-add -L >/dev/null 2>&1; then
        GET_ID="$GET_ID ssh-add -L"
    if [ -z "`eval $GET_ID`" ] && [ -r "${ID_FILE}" ] ; then
      GET_ID="cat ${ID_FILE}"
    if [ -z "`eval $GET_ID`" ]; then
      echo "$0: ERROR: No identities found" >&2
      exit 1
    if [ "$#" -lt 1 ] || [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
      echo "Usage: $0 [-i [identity_file]] [user@]machine" >&2
      exit 1
    { eval "$GET_ID" ; } | ssh ${1%:} "umask 077; test -d .ssh || 
    mkdir .ssh ; cat >> .ssh/authorized_keys" || exit 1
    cat < <EOF
    Now try logging into the machine, with "ssh '${1%:}'", and check in:
    to make sure we haven't added extra keys that you weren't expecting.

    Mac OS users can copy this script to /usr/bin to and make it executable (chmod +x ssh-copy-id) to make it accessible system-wide.

    • babil 5:18 pm on October 8, 2010 Permalink

      You can also use the following one-liner in absence of “ssh-copy-id”:

      ssh remoteuser@remotehost “echo $(cat >> /home/remoteuser/.ssh/authorized_keys”

      To generate keys, use “ssh-keygen” as suggested above to get “”.

  • MD1032 2:56 am on April 24, 2006 Permalink  

    Playing DTS-WAV with Audigy2 

    DTS-WAV is a format found on DTS Audio CDs. It’s basically a hack, as it uses a standard WAV header to trick the CD player into playing the track, while the music format is DTS. The WAV header must be removed before the file can be played in Windows. I used the latest BeSplit beta for that:

    BeSplit -core( -input DTS-Track-001.wav -output 001.dts -type dtswav -fix)

    But how do I play it? PowerDVD used to work, but doesn’t anymore. VLC crashes. Foobar2000 does not (anymore) have a DTS plugin. I also tried the ASIO driver for Winamp and Foobar’s kernel device mode. Nothing puts out digital DTS to my stereo.

    Media Player classic can downmix DTS to stereo or play it via S/PDIF. The problem: the output is not resampled from 44.1kHz to 48khz, which leads to high pitched voices.

  • MD1032 11:54 pm on March 22, 2006 Permalink  

    Thunderbird IMAP TLS Bug 

    Thunderbird seems to be a bit buggy connecting via IMAP/TLS to a Courier server. When Courier is set up to disallow non-TLS connections, it advertises STARTTLS and LOGINDISABLED. This is a challenge for the mail client to send the STARTTLS command before logging in. Thunderbird doesn’t do that: as soon as it sees LOGINDISABLED, it aborts the connection with error message. This happens even if the account settings in Thunderbird are set to require TLS.

  • MD1032 7:51 pm on March 15, 2006 Permalink  

    Debian, make and kernel rebuild troubles 

    Building the Linux kernel on my Debian/unstable machine recently caused some trouble: everytime I ran make, all files were (re-)compiled, not just the ones of modules I just added. The problem is related to the latest make version 3.81rc-1. Downgrading to 3.81beta4 solved this for me. It’s actually a bug in kbuild, but I can take months until the kernel includes a fix.

Compose new post
Next post/Next comment
Previous post/Previous comment
Show/Hide comments
Go to top
Go to login
Show/Hide help
shift + esc