Friday, February 18, 2011

Mount Windows Shares in Arch Linux using fstab

Mounting a windows share at runtime is very easy and straight forward. But mounting a windows share with read/write permission without a user or password can be quiet tricky.
First you need to install some components:
pacman -S smbclient
pacman -S gamin
pacman -S smbnetfs
modprobe fuse

Add the following lines to your /etc/rc.conf
MODULES=(... fuse ...)
DAEMONS=(... smbnetfs ...)

And write this line inside your /etc/fstab
//servername/sharedFolder  /home/user/share  cifs  guest,uid=1000,iocharset=utf8,codepage=unicode,unicode  0  0

guest: means there are no login credentials requierd to access this share
uid=1000: this must be your user id. With this option you get additional write access
the combination iocharset=utf8,codepage=unicode,unicode allows access to files with names in non-English languages

Thursday, February 10, 2011

Samsung N210 Wireless problems

I recently heard some complaints about Linux wireless drivers on Samsung N210 netbooks. There seem to be some quality issues with the standard drivers (r8192e_pci). I found here a fixed one. To compile it use the following commands:

tar xvfz rtl8192e_linux_2.6.0014.0401.2010.tar.gz
cd rtl8192e_linux_2.6.0014.0401.2010
make
sudo cp HAL/rtl8192/r8192e_pci.ko /lib/modules/`uname -r`/kernel/drivers/staging/rtl8192e/
reboot