Sunday, December 27, 2009

Default to pdf when printing to file in Firefox

Using Ubuntu Karmic and Firefox 3.5.6.


Following advice here:
to default to pdf/A4 when printing to file in firefox.

Saturday, December 5, 2009

Redirecting mailto: links in firefox to Google Apps

Firefox preferences → Applications → mailto. Choose to run the following script:

#!/bin/sh
firefox -remote "openurl(https://mail.google.com/a/YOUR_GOOGLE_APPS_DOMAIN_HERE/mail?view=cm&tf=0&to=`echo $1 | sed 's/mailto://'`,new-tab)"

Note: Some of the code is hidding beyond the right margin of the webpage. Copy-paste to a text editor to see the complete script.

Got this tip from How-to Geek and slightly modified it.

Sunday, November 29, 2009

HDMI sound output on nVidia 9300 with Ubuntu 9.10

Start
alsamixer
from a terminal, unmute output IEC 958 1 (on the far right, scroll right out of the screen).

Then go to sound preferences, hardware tab and choose a profile with HDMI output.

Above works for Ubuntu Karmic 9.10 with nVidia IGP 9300 chipset.

Saturday, November 28, 2009

WinTV Ministick-HD firmware for Ubuntu 9.10 Karmic

Found the missing driver for my Hauppauge WinTV Ministick-HD. Downloaded sms1xxx-hcw-55xxx-dvbt-02.fw and placed in /lib/firmware.

Sunday, October 11, 2009

Setting up postfix

https://help.ubuntu.com/community/Postfix

1. Run deb-reconfigure script
2. sudo postconf -e 'home_mailbox = Maildir/'
3. sudo postconf -e 'mailbox_command ='
4. Forward root's email to normal user

Intended for local-only mail.

TODO: Cap mail database size.

PDF annotation

I would like a tool to highlight text and write text box comments in PDFs I review.

Xournal is the best option currently.

I also tried KDE Okular, PDFedit, ghostview and Gnome Evince 2.26. None of these have the annotation capabilities I need.(Evince 2.28 might get them, but Ubuntu 9.10 is needed to install it). PDFedit did have a nice way to move text comments, which Xournal is missing, but highlighting and page flipping is not working for me.

Saturday, October 10, 2009

Avoid too frequent e2fsck


sudo tune2fs -c 60 /dev/sdaXX

Monday, October 5, 2009

Permanently mounting smb shares

Followed this guide: http://ubuntuforums.org/showthread.php?t=288534

Mount point located in /media.
ClientUser owns the mount point.
uid and gid set to ClientUser, otherwise files wont have editing permissions.
Server-side permissions still refer to ServerUser, not ClientUser. OK!

Sunday, October 4, 2009

ÆØÅ special chars, Synology NAS and Ubuntu

Problem: Wrong character encoding when mounting CIFS/Samba share from Synology NAS in Ubuntu 8.04. Black diamond with question mark (unicode replacement character �) displayed instead of æøåÆØÅ. File Station web interface and mounting from Windows machine works perfectly.

Solution: Use -o iocharset=utf8 in mount.cifs.

An example:

mount.cifs \\\\server\\share mount_point_folder/ \
-o user=myusername,iocharset=utf8

Source: http://www.linuxin.dk/node/13731

Saturday, October 3, 2009

MappingWindowsKey

https://help.ubuntu.com/community/MappingWindowsKey
as /home/user/.xstartup

Paste the following in the file:

# Make the Windows key a useable mod key:
xmodmap -e "remove mod4 = F13"
xmodmap -e "keycode 115 = Super_L"
xmodmap -e "add mod4 = Super_L"

HOWTO: Resolve Netbios hostname system-wide

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

Let me start with a little background info. I manage a computer lab with 85 workstations. I ocassionally use either RDP or VNC to do some maintenance. I have no problem doing this from windows, but I wanted my lonely Ubuntu workstation to be able to do the same thing. After about a week of research I am finally able to ping my windows workstations via their Netbios names. Woohoo!!

All you have to do is:

edit /etc/nsswitch.conf

change the line that says

Quote:
hosts: files dns
to this:

Quote:
hosts: files wins dns
(order does matter)

finally, you need to install winbind

Code:
sudo apt-get install winbind
that's all that it took for me.

now ping works great. And I can finally use the built-in terminal server client with hostnames instead of IP addresses.