WarheadsSE wrote:Then it would be quite simple to mount the samba share to the plug's fs, and copy to it
Run the following, and answer yes to all questions:
pacman -Sy samba avahi
Now we create a user that will be used for guest access. Use all defaults and pick a password.
Add the new guest account to samba. (Use a blank password since it's a guest account).
smbpasswd -a pcguest
Note: This will not work until you have created the configuration file below.
The only thing left is to create a configuration file. The Samba server will not launch without one being present.
To configure your Samba install, you need to create a smb.conf file. Below is a very simple configuration file.
Now edit it. (Check the bottom of this page for a link to Samba configuration help. Any Samba guide will work.)
Here's a sample configuration file that should allow full public access to the first plugged in drive (for the Pogoplug. Adjust the drive's path to match the path to the drive you want to share.
[global] workgroup = WORKGROUP server string = ALARM netbios name = ALARM security = share load printers = no printing = bsd printcap name = /dev/null disable spools = yes log file = /var/log/samba/%m.log max log size = 50 dns proxy = no socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=131072 SO_SNDBUF=131072 SO_KEEPALIVE [ArchLinuxARM] path = /tmp/.cemnt/mnt_sdb1/ read only = no public = yes writable = yes force user = root
In order to avoid some Windows 7 related errors edit /etc/security/limits.conf, scroll down to the end of the file and add the following line:
* - nofile 16384
Save the file and reboot in order for the changes to take effect.
Starting the Server
To start Samba, run:
To start Samba on boot edit /etc/rc.conf, scroll down to the end of the file and add "samba" to the list of DAEMONS.
This will create a 512MB swap file, named "swapfile.img" in /.
dd if=/dev/zero of=/swapfile.img bs=1M count=512 #for a 1GB swapfile, use count=1024 mkswap /swapfile.img
You can now turn the swap file on using:
You can also turn it off by using:
To have your swapfile always enabled, even after a reboot, without having to manually turn it on or off, add the following line to the end of your /etc/fstab file using nano or similar:
/swapfile.img none swap sw 0 0
If you're worried about editing /etc/fstab, you can add "swapon /swapfile.img" to a new line in your /etc/rc.local file. The effect is the same.
pacman -Sy sabnzbd
yaourt -AS sickbeard
Users browsing this forum: No registered users and 3 guests