Net :: How to modify Samba extension



OK - I see now that /opt/smb.conf, /usr/bin/smbclient and /usr/bin/smbtree exist in DSL without the samba extension being loaded.

From playing around with the commands, I can list the shares on a network hd but it looks like acting as a printer server is going to require the samba extension or perhaps a full version of samba.

If renaming the unc doesn't work for some reason (i think it should, but maybe there is /opt/samba in the unc package), try renaming the samba.dsl file first and then run dsl2unc
Quote
(i think it should, but maybe there is /opt/samba in the unc package)
How would that work?  Wouldn't that be ignored or cause a conflict since (from what i seem to remember) the data is loaded on /opt/<extension> and linked to /KNOPPIX

I couldn't say.  I don't know the exact directory structure of the cloop files, so I thought maybe the "myapp" directory (as in /opt/myapp) might be included in the ISO
If you load it as a unc at boot time this is loaded before the backup is loaded so if you put /ramdisk/etc/smb.conf in your filetool.lst files it will get loaded over whatever the unc loads up. This works OK with the default boot settings (i.e. unionfs) as etc is a union with /ramdisk/etc & so writable. I use this method, but do get some stragne things happening. If I look in /etc/samba I can't see smb.conf listed, but 'vi smb.conf' does edit the file. If I look in /ramdisk/etc/samba the file is visible using 'ls' or in emelfm. There is another version of the file in /opt/samba/etc/samba which is loaded with the unc, but isn't linked to the one in /etc/samba (i.e. if you edit the one accessible through /etc/samba or /ramdisk/etc/samba it has no effect on the one in /opt/samba/etc/samba - as you would expect since it is ro). For info I've appended the output of listu on my machine with Samba.unc loaded. I'm uncertain how unionfs decides which of the files it decides to use when /etc/samba/smb.conf if accessed, but it always seems to pick up the one I want (i.e. the edited one in /ramdisk/etc) & that is the one that is stored & reloaded by the backup system when selected in filetool.lst.

/KNOPPIX/bin
       /ramdisk/bin (rw)
       /KNOPPIX/bin (r-)
/dev
       /ramdisk/dev (rw)
       /dev (r-)
/etc
       /ramdisk/etc (rw)
       /ramdisk/opt/samba/etc (r-)
       /etc (r-)
/KNOPPIX/lib
       /ramdisk/lib (rw)
       /ramdisk/opt/samba/lib (r-)
       /KNOPPIX/lib (r-)
/KNOPPIX/sbin
       /ramdisk/sbin (rw)
       /KNOPPIX/sbin (r-)
/KNOPPIX/usr
       /ramdisk/usr (rw)
       /ramdisk/opt/samba/usr (r-)
       /KNOPPIX/usr (r-)
/ramdisk/var
       /ramdisk/var (rw)

& the output from mount:

/dev/root on / type ext2 (rw)
/dev/scd0 on /cdrom type iso9660 (ro)
/dev/cloop on /KNOPPIX type iso9660 (ro)
/ramdisk on /ramdisk type tmpfs (rw,size=99068k,size=94284k)
/proc/bus/usb on /proc/bus/usb type usbdevfs (rw,devmode=0666)
unionfs on /KNOPPIX/bin type unionfs (rw,dirs=/ramdisk/bin=rw:/bin=ro)
unionfs on /dev type unionfs (rw,dirs=/ramdisk/dev=rw:/dev=ro)
unionfs on /etc type unionfs (rw,dirs=/ramdisk/etc=rw:/etc=rw)
unionfs on /KNOPPIX/lib type unionfs (rw,dirs=/ramdisk/lib=rw:/lib=ro)
unionfs on /KNOPPIX/sbin type unionfs (rw,dirs=/ramdisk/sbin=rw:/sbin=ro)
unionfs on /KNOPPIX/usr type unionfs (rw,dirs=/ramdisk/usr=rw:/usr=ro)
unionfs on /ramdisk/var type unionfs (rw,dirs=/ramdisk/var=rw)
/dev/scd0 on /mnt/auto/cdrom type iso9660 (ro,nosuid,nodev)
/cdrom/unc/samba.unc on /ramdisk/opt/samba type iso9660 (ro,loop=/dev/cloop1)

Next Page...
original here.