Linux for PlayStation 2 Community - Forums


Summary |  Home Page |  Forums |  Lists |  Tasks |  Docs |  Surveys |  News |  Files | 

Discussion Forums: Networking

Admin

Message: 50562
BY: grseidel
DATE: 2007-Sep-09 02:41
SUBJECT: Backuppc with samba 2.2.12 works with Vista

Anybody still out there? I thought I share some progress...

Since I moved to MS Vista my well established samba fileserver combined with a backuppc solution stopped suddenly working. I took quite a while to figure this out...

Basically, I was still on a 2.0.x version of samba. I downloaded the latest stable 2.x version 2.2.12, extracted it and run the configure script with

tar -xzf samba-2.2.12.tar.gz
cd samba-2.2.12/source/
./configure --with-configdir=/etc --with-smbmount --with-smbwrapper –with-msdfs

Then it needs two patches:

vi include/config.h
/* #define HAVE_PREAD 1 */
/* #define HAVE_PREAD64 1 */
/* #define HAVE_PWRITE 1 */
/* #define HAVE_PWRITE64 1 */
/* #define HAVE___PWRITE64 1 */
=> remove all PREAD and PWRITE functions (by the comments /* .. */)

vi libsmb/clientgen.c
cli->timeout = 20000; /* Timeout is in milliseconds. */
=> increased it to 220000, needed to avoid the timeout in backuppc

Then the usual:
make
make install
cp packaging/RedHat/smb.init /etc/rc.d/init.d/smb
vi /etc/rc.d/init.d/smb
CONFIG=/etc/smb.conf
=> change the loction of the config file

(obviously run as root)

I needed to manually delete all old samba files from /usr/bin as I had it installed there before. Otherwise it was still on the old version...

BTW, on the vista side of things you got to enable the 'old' authorization, I found a good explanation at
http://www.builderau.com.au/blogs/codemonkeybusiness/viewblogpost.htm?p=339270746

Finally, as I have the vista firewall to block as default any outgoing traffic, I needed to add the rules
Protocoll UDP, Port local 137 ,Port remote any; Area Remote Local Subnet; Profil private
Protocoll ICMPv4, Typ 0 ,Code any; Area Remote Local Subnet; Profile private

Lastly I had some issues with special characters (German Umlaute), which I fixed by adding to following to smb.conf [global] section

character set = ISO8859-15
client code page = 850

Now it is working great again, both the file server as the backup. BTW I am running on version 2.1.2pl2 of backuppc.

Let me know if is of any help to somebody...

Rgds.
GS


 

Thread View

Thread Author Date
Backuppc with samba 2.2.12 works with Vistagrseidel2007-Sep-09 02:41
      RE: Backuppc with samba 2.2.12 works with Viscronocloud2007-Sep-17 01:42

 

Post a followup to this message

You could post if you were [logged in]