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.