Adapt > Engage > Dominate

Archive for June, 2011

Symlinks in Linux

To check where a symlink points, use

ls -l symlink

where symlink is the link you want to check.  Try to remember l for link (-l).

 

To create a symlink, use

ln -s /path to/file /path to/symlink

Try to remember ln for link, s for symlink, and DESTINATION <- LINK for the order.

 

To change an existing link, it’s the same thing, except you say

ln -fs

The f stands for force (think of forcing a change).

Compiling from Source: Permissions Problems

When compiling from source, you may eventually try

sudo ./configure && make && make install

However, it may cause a problem on the install step, saying it can’t create whatever, permission denied.  The solution is quite simple:

./configure
make
sudo make install

Adding Canon Pixma MX870 to Ubuntu 11.04 64-bit

Download both of these:

Printer: http://support-sg.canon-asia.com/contents/SG/EN/0100272302.html

Scanner: http://support-sg.canon-asia.com/contents/SG/EN/0100273002.html

Follow the instructions here exactly.  Important to note is that you must run & use scangearmp to use the scanner.  Simple Scan doesn’t work.  Scan Gear gives you the usual options you see when you scan on Windows (dpi, paper size, image settings, preview, etc.).

Finding version and other related info for packages in Ubuntu

dpkg -s packagename

where packagename is, obviously, the exact package you want to look up.  Info includes other useful data like dependencies, architecture, description, etc.