Nov 282011
 
sudo apt-get install python-software-properties
sudo add-apt-repository ppa:freenx-team

As long as oneiric is not in the list of http://ppa.launchpad.net/freenx-team/ppa/ubuntu/dists/ you have to tell your packages sources to download and install the packages for lucid 10.04:
sudo sed -i 's/oneiric/lucid/g' /etc/apt/sources.list.d/freenx-team-ppa-oneiric.list

sudo vi /etc/apt/sources.list.d/freenx-team-ppa-oneiric.list
sudo apt-get update
sudo apt-get install neatx-server

Resources

Nov 172011
 

Prerequisites

First, you need to install XCode 4 which can be found in the Mac App Store. You need it because it’s providing the compiler and the git binary. Then install Homebrew using /usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)".

ROOT Installation

Installing ROOT using configure and make is fairly easy. I recommend the following procedure on 10.7 Lion as it is easy and convenient:

Nov 172011
 

Installing Pandoc is easy when you have Homebrew installed:

brew install haskell-platform
cabal update
cabal install pandoc

Alternatively use the way described in its installation instructions.

Resources

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
Nov 152011
 

GUI options

The easy GUI way is to use Synaptic and enable the “Installed Size” column by going to Settings → Preferences → Columns and Fonts.

You can then go to the “Status” filters and select the “Installed” filter then click on the column you want to sort by. It’s interestingly called just “Size” instead of “Installed Size”.

Command Line Options

#!/bin/bash
perl -ne '$pkg=$1 if m/^Package: (.*)/; print "$1\t$pkg\n" if m/^Installed-Size: (.*)/;' < /var/lib/dpkg/status | sort -rn | less

or using dpkg-query:

Nov 132011
 

[ 3.086754] scsi 16:0:0:1: CD-ROM Virtual CDROM PQ: 0 ANSI: 0
[ 3.282066] sr 16:0:0:1: Attached scsi CD-ROM sr1
[ 3.282101] sr 16:0:0:1: Attached scsi generic sg6 type 5
[ 42.848084] sr 16:0:0:1: uas_eh_abort_handler tag -1
[ 42.848091] sr 16:0:0:1: uas_eh_device_reset_handler tag -1
[ 42.848094] sr 16:0:0:1: uas_eh_bus_reset_handler tag -1
[ 43.291693] sr 16:0:0:1: Device offlined – not ready after error recovery
[ 43.291735] sr 16:0:0:1: rejecting I/O to offline device

The problem is the kernel module uas. So just disable it:

echo -e "\nblacklist uas\n" | sudo tee -a /etc/modprobe.d/blacklist.conf

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

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)
Nov 132011
 

Recover Files using TestDisk

Mount the partition with the lost files read only:

sudo mount -o remount,ro /dev/sdX

Install the requirements, the TestDisk suite:

sudo apt-get install testdisk

Start analysing:

sudo testdisk /dev/sdX
  1. Select your disk and enter Proceed.
  2. TeskDisk tries to find the correct partition type. If you are sure, the default selection is wrong, change it.
  3. Select Advanced Filesystem Utils.
  4. Select a desired partition and choose Undelete.
  5. Select desired file to recover and hit c key to copy into our current directory so answer Y. Once the copy is done quit from tesdisk utility with q key.

PhotoRec (part of TestDisk)

Dedicated PhotoRec Documentation: http://www.cgsecurity.org/wiki/PhotoRec_Step_By_Step

Nov 082011
 

Boot a Linux system (not from the SSD itself!). For example a Ubuntu Live distribution. Run the following commands in your terminal (consider choosing a later firmware version if available from OCZ):

cd ~/Downloads
wget http://www.ocztechnology.com/files/ssd_tools/fwupd_v2.12.05.tar.gz
tar -xf fwupd_v2.12.05.tar.gz
sudo su
### The next step is flashing the SSD:
~/Downloads/fwupd_v2.12.05/linux64/fwupd –log /dev/sd?
# ( ↑ This will create save a log file in you working directory: fwupd.log )

Error message when running this on a MacBook Pro (early 2011) on Ubuntu 11.10 64bit Live CD:

Firmware update FAILED on /dev/sda/: drive OCZ-AGILITY3

The solution: http://www.ocztechnologyforum.com/forum/showthread.php?92009-Updating-firmware-of-Vertex-3-Agility-3-Solid-3-drives-on-2011-Macs-using-a-Linux-CD

Nov 072011
 

Scanning

These instructions are for 64-bit Ubuntu. (If you’re using 32bit, download the i386 .deb package and you also don’t have to copy the three files from /usr/lib64 then…)

sudo apt-get install xsane sane-utils xsane-common
cd ~/Downloads
wget http://pub.brother.com/pub/com/bsc/linux/dlf/brscan4-0.3.0-2.amd64.deb
sudo dpkg -i brscan4-0.3.0-2.amd64.deb
sudo cp /usr/lib64/sane/libsane-brother4.so.1.0.7 /usr/lib/sane/
sudo cp /usr/lib64/sane/libsane-brother4.so /usr/lib/sane/
sudo cp /usr/lib64/sane/libsane-brother4.so.1 /usr/lib/sane/
brsaneconfig4 -a name=DCP-7065DN model=DCP-7065DN nodename=drucksack.local
# ...where drucksack is the local hostname of the printer/scanner ↑
# If you want if you want to specify your printer rather using its IP, run this instead:
brsaneconfig4 -a name=DCP-7065DN model=DCP-7065DN ip=192.168.2.30

Now you should be ready to scan (using xsane for example).

Nov 032011
 

AutoFS is a convenient tool to mount remote filesystems automagically.

Installation:

sudo apt-get install autofs sshfs
ssh-keygen

Entire content of my /etc/auto.master:

/net    /etc/auto.sshfs --timeout=120 --ghost

Entire content of my /etc/auto.sshfs

Documents   fstype=fuse,rw,allow_other,IdentityFile=/home/username/.ssh/id_dsa  :sshfs\#remoteusername@192.168.1.1\:/var/Documents/
## or
Multimedia  -fstype=fuse,rw,nodev,nonempty,noatime,allow_other  :sshfs\#remoteusername@192.168.1.1\:/var/Multimedia/

Now set the correct permissions for the autofs configuration files:

sudo chmod 644 /etc/auto.sshfs /etc/auto.master

Resources

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)