ServerTo start samba on the server during boot save your settings:
1) Open a terminal and enter the following:
echo usr/local/etc/samba >> /opt/.filetool.lst
echo "/usr/local/etc/init.d/samba start" >> /opt/bootlocal.sh
2) Open Control Panel
3) Select Backup/Restore
3) Enter your backup device in the dialog box
4) Click on Backup
For more info on Backup/Restore see:
Core Concepts and the articles under "Persistence" in the
WikiLinux ClientTo mount the share on the linux client requires:
filesystems-2.6.29.1-tinycore.tcz
Samba3.tcz (optional - see step #2 below for details)
1) Open a terminal and create a mount point. Example:
sudo mkdir /mnt/myshare
or in your home directory
mkdir -p mnt/myshare
Note: If you create a mount point elsewhere in your home directory (i.e. not in ~/mnt) then remember to add it to
/opt/.xfiletool.lst so you don't accidentally backup up your entire server when you run a backup. (home/tc/mnt is already included in .xfiletool.lst)
{Thanks Kindomcome}echo home/tc/myshare >> /opt/.xfiletool.lst
2) Invoke the mount command.
Mount syntax (without Samba3):
sudo mount -t cifs //ip.add.re.ss/share /mount/point -o username=xxx,password=yyy
Mount Syntax (requires Samba3.tcz):
sudo mount.cifs {service} {mount-point} [-ooptions]
Example 1 - sudo mount.cifs //192.168.0.10/share /mnt/myshare -o user=your_username
Example 2 - sudo mount.cifs \\\\server_name\\share /mnt/myshare -o user=your_username
Example 3 - sudo mount -t cifs //192.168.0.10/share /mnt/myshare -o user=your_username
To automate the process at boot, you could add the following lines to /opt/bootlocal.sh and do a backup.
echo "mkdir /mnt/myshare >> /opt/bootlocal.sh
echo "mount -t cifs //192.168.0.10/share /mnt/myshare -o user=xxx, password=yyy" >> /opt/bootlocal.sh
NOTE: This is not very secure. A better option is to create a script with the above commands and run it after booting:
#!/bin/sh
sudo mkdir /mnt/myshare
sudo mount.cifs //192.168.0.10/share /mnt/myshare -o user=your_username
For netboot instructions see
Netbooting.
{Edited to incorporate corrections from Kingdomcome}