Tag Archives: linux

Trash support with FUSE

Been very busy working on a new lab build for the university. Deciding how to mount home directories is always challenging. NFS is not secure enough, I don’t like the current implementation of Kerberos support in NFSv4, with tickets being machine based. Until recently we have been using SMB with PAM_MOUNT but of course permissions were always monged, and smb shares have their own security concerns. I wanted home directory mounts which required user authentication and were secure. What I have settled for is SSHFS.

SSHFS is a FUSE based filesystem which basically uses sftp for the backend. There is no quota, flock or disk free support, and it is kinda slow, but it is a better solution than samba and it meets all of my security concerns. Getting it to work was fun, first trying pam_mount and then finally getting it to work with pam_script and a Perl::Expect script, I might post more on that later.

But once home directories were mounting successfully I discovered the Trash icon was behaving strangely. I could move data to Trash, and it would be moved to the .trash directory, but the Trash icon would still appear empty, and I could never empty the Trash folder.

It turns out the gnome-vfs package explicitly states all the filesystems it supports in the code. Fuse was not mentioned. Adding the line:

{ "fuse" , N_("FUSE Volume"), 1 },

to:

libgnomevfs/gnome-vfs-filesystem-type.c

and recompiling fixed the problem.

Editing Gnome Settings with gconf-editor

I like gnome, but the preferences applets are fairly limited. More setting are available to be played with using gconf. If you know what elements you want to change you can use gconf-tool. You can navigate all settings using gconf-editor or if you you are uncomfortable navigating all the settings you could try gtweakui. Use yum to install gconf-editor or gtweakui.

Running gconf-editor as a regular user allows you to modify settings for a specific user account. Running gconf-editor as root allows you 2 more options. “New Defaults Window” allows you to change settings for all users. “New Mandatory Window” allows you to change settings for all users, and prevents them from changing the settings, very useful if building a corporate or education SOE.

Hooray for NDIS Wrapper

I have been using a very old lucent (orinico) pcmcia wireless card on my laptop. FC5 has great support for this card, but the card itself is pretty outmoded, and I wanted an 802.11g card.

Being a good linux citizen I researched all the cards available from my local retailer to see which had support, and decided on a dlink DWL 630g. Unfortunately I didn’t research enough. Previous versions of this card use the fairly stable and well supported madwifi drivers, but the current card wearing this model number uses a Ralink 61t chipset. Campanies changing chipsets and keeping the same model numbers is one of those particularly annoying things that gets me cranky. But I had already paid my money and now just wanted to make it work.

There is an open source project to support the rt61 chipset, but it’s still in beta, so I thought I would try the ndiswrapper approach.

I have always felt running binary windows network drivers on linux kind of a black magic solution, and the fact the it worked at all kind of bothered me. But I didn’t expect it to work as well as it did. Read on for brief howto. Continue reading Hooray for NDIS Wrapper

“Enter” key on evo keyboard doesn’t work in some apps

Most things have been working great on the notebook. However, in certain apps, I kept coming up against an “enter” key which would not send a newline character. An external PS2 keyboard would work, but the laptop keyboard would not. It was particularly annoying in “info” and “man”.

After some digging, it turns out the keyboard is actually sending a keypad enter scancode instead of a regular enter scancode. Most apps don’t care, and it made no difference, but some did, and it bugged the crap out of me.

Easy fix. Add the line:

keycode 108 = Return

To ~/.xmodmap. Restart X or just run: xmodmap ~/.xmodmap. The problem should go away.

FC5 on Compaq Evo N1000c

I just installed FC5 on an old evo laptop. All in all, I am very impressed. Almost everything worked as it should without any configuration and the power management stuff has improved heaps since the last time I installed linux on a laptop.

There were a couple of annoyances, the biggest one fixed. I could not change the brightness on my display, simply adding:

Option "AGPMode" "4"

to xorg.conf under Section “Device”, corrected the problem and the funtion
keys on the keyboard now increase/decrease brightness as expected.

novi

Directly from the novi website: “novi is a tool for finding the latest-version RPMs in a tree. You can use it to create Kickstart trees or yum repos that contain the updated RPMS. In the case of Kickstart, this means machines come to life with the updates already applied. Using novi for yum repos trims the size of the repodata files, which reduces client download and processing time.”

Basically using one or more directories, or yum repos, novi will return a list of the most up to date rpm files from the source. Excellent for updating your own yum repo, or creating an already patched install cd.