by kiniki » Tue Sep 27, 2011 9:57 am
Considering my lack of knowledge in this area I just want to check if I follow the steps below.. I'll be heading in the right direction..
Firstly follow the steps to install Arch Linux Arm....
Then install samba
$this->bbcode_second_pass_code('', '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.
adduser pcguest
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.
Configuration
To configure your Samba install, you need to create a smb.conf file. Below is a very simple configuration file.
touch /etc/samba/smb.conf
Now edit it. (Check the bottom of this page for a link to Samba configuration help. Any Samba guide will work.)
nano /etc/samba/smb.conf
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:
/etc/rc.d/samba start
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.')
Followed by creating the swapfile
$this->bbcode_second_pass_code('', '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:
swapon /swapfile.img
You can also turn it off by using:
swapoff /swapfile.img
Always-on Swapfile
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.')
For Sabnzbd $this->bbcode_second_pass_code('', 'pacman -Sy sabnzbd ')
And Sickbeard $this->bbcode_second_pass_code('', 'yaourt -AS sickbeard ')
Then it's just a case of configuring Sab & Sickbeard?