Wednesday, May 4, 2011

Install wine on SLES 11

Wine package can be downloaded from the web site of http://www.winehq.org/.

To install wine on SLES 11, two rpm packages are required: wine-gecko and wine. The packages downloaded are wine-1.3.19-1.1.i586.rpm and wine-gecko-1.2.0-22.1.noarch.rpm. When installing the packages, it complains about libgphoto library on 64 bit OS. But I found the 64-bit package is already installed. So I run the following to force install.

rpm -ivh --nodeps wine*.rpm

After this, wine works now and I can install some wine supported software.

Samba File System on SuSE

To mount a samba file system (CIFS) on SLES 11, do the following

1. Edit the file of /etc/samba/smbfstab, specify the source location, mount point, username and password. Below is an example
//fjall/test /data/test cifs username=tridge,password=foobar
2. Mount the directory by
rcsmbfs start
3. Turn on smbfs service.
chkconfig smbfs on

For OpenSuSE 11.4, the file used for samba client is /etc/samba/cifstab. And the corresponding command is changed to rccifs, and we can turn the service on by "chkconfig cifs on". 

Or do the manually every time, we can run
mount -t cifs -ousername=tridge,password=foobar //fjall/test /data/test