Ubuntu: Trash can support on NTFS volumes

kesäkuu 14, 2009 at 13:11 (linux) (, , )

As Wyatt Smith said on https://answers.launchpad.net/ubuntu/+question/52985 :

To enable a trash can on a NTFS partition you will have to make an entry in your /etc/fstab file. You must specify the drive by UUID and assign a userid.

To discovery the UUID of the external drive. Please plug the drive in and then type

sudo blkid

To edit your fstab file with root permission

gksu gedit /etc/fstab

Here is an example of how the entry should look. Please replace the UUID and mountpoint with the appropriate values from your system

# NTFS Partitions
UUID=19031A6158945892 /media/DATA ntfs-3g defaults,uid=1000,locale=en_US.UTF-8 0 0

Save and exit.

To remount (unmount then mount) all drives listed in /etc/fstab

sudo umount -a
sudo mount -a

You should then see a hidden trash folder on your ntfs drive.

After this deletes are not permanent and they should be visible in the trash.

Osoiterakenne 4 kommenttia

Annoying nonbreakable space character by accident

kesäkuu 7, 2009 at 10:39 (linux) (, , )

Have you noticed that when you press alt gr + space in terminal window, a non-breakable space character is outputted? It looks just like normal space but it prevents commands from working.

From example ‘[alt gr + space] ls’ cannot be interpreted but ‘[space] ls’.

Solution is to change keyboard behaviour:

From here

This feature can be configured in:
System
->Preferences
->Keyboard
->Layouts
->Layout options…
->Using space key to input non-breakable…

Change the setting to ‘usual space at any level’ setting.

Please note that this problem may not occur in some keyboard layouts.

Osoiterakenne Kommentoi

Change ls colors in ubuntu

kesäkuu 7, 2009 at 10:18 (linux) (, , , )

See here

Osoiterakenne Kommentoi

Default terminal size in ubuntu

kesäkuu 7, 2009 at 10:17 (linux) (, , , , )

Osoiterakenne Kommentoi

Matlab toolbar problems in ubuntu

kesäkuu 7, 2009 at 09:01 (linux) (, , , , )

Matlab might have problems drawing toolbars on ubuntu. This is especially true if you’re using nondefault theme in gnome. The solution is simple once again. Edit /path/to/matlab/bin/matlab with gedit and add following line below #!/bin/sh

export MATLAB_JAVA=/usr/lib/jvm/java-6-sun/jre/

After this toolbars should be working.

Osoiterakenne Kommentoi

Do not hide widgets when ’showing desktop’ in Ubuntu

kesäkuu 7, 2009 at 08:56 (linux) (, , , , )

First all this little trick is for screenlets users only. You must have compiz enabled and compizconfig-settings-manager installed. Widgets should have ‘Skip taskbar’ setting enabled (the default).

I have set my all widgets to be treated as ‘widgets’. This may not be necessary but handy if you’re using Widget layer.

Start compiz settings manager and go to ‘General settings’. Uncheck ‘Hide Skip Taskbar Windows’ (it means that compiz does not hide windows that are not in taskbar, widgets for example). and apply settings. After this, when showing desktop, widgets should be there and not hidden.

Osoiterakenne Kommentoi

PPTP VPN connection from ubuntu

kesäkuu 7, 2009 at 08:47 (linux) (, , , , )

Connecting to windows pptp (VPN) server can be done from Ubuntu too! All you need is pptp-linux and network-manager-pptp packages.

After installing the packages, PPTP support is integrated nicely in the ubuntu UI. To see the VPN settings, click on the network icon in the tray bar and choose VPN Connections -> Configure VPN…

Gateway should be the ip address (or host name) of the vpn server. User name doesn’t have to contain the doman. I don’t like to use the password remember feature because then it is so easy to find out the password using the ’show password’ checkbox.

I found out that advanced settings need some adjustment for optimal performance. I disabled PAP and EAP authentication methods by unchecking them. I use Point-to-point encryption (MPPE) with 128bit security and allowing stateful encryption. I’ve also checked BSD, Deflate and TCP header data compression. Send PPP echo packets is also enabled.

Now we still need to configure routing settings for the vpn connection. Without configuring routing I found out that the connection was very slow when surfing the internet. Routing settings can be found from the IPv4 Settings tab and click “Routes…” button. I’ve added route with following properties:

address 192.168.1.0
netmask 255.255.255.0
gateway 192.168.1.1

Osoiterakenne Kommentoi

Thunderbird: check all imap folders for new messages

kesäkuu 1, 2009 at 05:41 (Uncategorized) (, , )

I’ve found a nice trick for thunderbird users

Thunderbird can download mail from all accounts when you start the program. Just open the Config Editor, search for the preference mail.check_all_imap_folders_for_new, and change its value to true.

Source:
http://www.mozilla.org/support/thunderbird/tips#beh_downloadstartup

Osoiterakenne Kommentoi