Tuesday, September 25, 2012

Getting Windows 7 NFS Client to Connect to a Fedora Linux NFS Server

1) On linux:

sudo /sbin/chkconfig --level 345 nfs-server on
sudo /sbin/service nfs-server start
system-config-nfs

When the GUI pops up, add in your directory that you'd like to share, and the IP addresses (e.g. your Windows 7 IP address) you'd like to share your directory with.

2) Still on linux, edit the /etc/exports file, and change the following line:

(rw,sync)

to

(rw,sync,all_squash,anonuid=12345,anongid=23456)

where 12345 is your linux uid and 23456 is your linux gid.

That will make files written to your nfs server from anonymous client be owned by the specified uid and gid.

3) On linux, perform a

/sbin/service nfs-server restart

You can also perform the following, to confirm the directories shared:

sudo /usr/sbin/exportfs

4) On Windows 7, go to Control Panel > Programs and Features > Turn Windows features on or off

Check all three checkboxes under Services for NFS.  Optionally turn on Telnet Client if you'd like to test out your NFS connection over port 111 (telnet linuxServerHostname 111)

5) Windows-R (run) > \\linuxServerHostname\path\to\nfs\mountname

If all goes well, that will just magically work.

6) (Optional) To mount the nfs server to a Windows drive, you can perform the following on the command line:

mount \\linuxServerHostname\path\to\nfs\mountname z:

And to unmount, either:

umount -a

or

umount z:

Easy.  Well... at least, not too bad.

Friday, September 14, 2012

cannot find ... NXConstantString

Why do I get the following error (on Linux using GNUstep), when trying to compile an Objective C program?

... error: cannot find interface declaration for ‘NXConstantString’ ..

Answer:

Use the following flag when compiling everything (.o's, main, etc):

-fconstant-string-class=NSConstantString

Friday, September 7, 2012

New Window Manager Day

I always get excited when I start using a new toothbrush or bar of soap, and I call that day new toothbrush or new soap day. Well, today is new window manager day. I've made the switch from gnome to xfce and I'm really loving it. I'm copying what he did: http://digitizor.com/2011/08/04/linus-torvalds-ditches-gnome-for-xfce/ (I also switched from KDE to Gnome at one point when KDE 4 came along)
Things that I've had to customize so far:
http://lgallardo.com/en/2009/09/02/bloquear-pantalla-en-xfce4/
Changed clock format to: %l:%M %p%n%A%n%x

Mapped the windows button to /usr/bin/xfce4-popup-applicationsmenu
Mapped Alt-v to Maximze veritcally
Mapped windows-l to /usr/bin/screensaver-command -lock