- OpenSSH.
- Samba File Server.
Follow these steps-by-steps :-
- sudo apt-get update
- sudo apt-get upgrade
- sudo nano /etc/network/interfaces
- static
- address 192.168.4.200
- netmask 255.255.255.0
- gateway 192.168.4.1
- network 192.168.4.0
- broadcast 192.168.4.255
- dns-nameservers 202.188.0.133 202.188.1.5
- sudo fdisk -l
- sudo nano /etc/fstab
- /dev/sdb1 /media/sdb1 ntfs
- /dev/sdc1 /media/sdc1 ntfs
- sudo mkdir /media/sdb1
- sudo mkdir /media/sdc1
- sudo blkid (note the HDD's UUID displayed).
- sudo mount -t ntfs /dev/sdb1 /media/sdb1
- sudo mount -t ntfs /dev/sdc1 /media/sdc1
- sudo nano /etc/samba/smb.conf
- [MUSIC]
- Comment = My Music Folder
- path = /media/sdb1
- browsable = yes
- guest ok = yes
- read only = no
- read list = @[username]
- write list = @[username]
- sudo restart smbd
- sudo restart nmbd
- sudo iptables -A INPUT -p tcp --dport ssh -j ACCEPT
- sudo sh -c "iptables-save > /etc/iptables.rules"
- sudo nano /etc/network/interfaces
- prep-up iptables-restore < /etc/iptables.rules
No comments:
Post a Comment