Game Development Reference
In-Depth Information
I will create a directory called /nas and mount my USB drive there. Then, I will
create a subdirectory called USB001 . We will also create directories that we will
use for sharing as shown in the following command line snippet:
mkdir /nas
cd /nas
mkdir USB001
sudo mount -t ext4 -v /dev/sda1 /nas/USB001/
cd /USB001
mkdir public
mkdir work
Remounting a disk after reboot
The quickest way to get your drives remounted after a reboot is to add a few lines
to the fstab file, which controls the filesystem configuration and can be found at
/etc/fstab .
Simply add the following command line. The first part is the partition and the latter
part is the mount point. You need to adjust these to your hardware. The final options
are for auto mounting. Do not change these options.
/dev/sda1 /media/HDD1 auto noatime 0 0
/dev/sda2 /media/HDD2 auto noatime 0 0
Accessing files
We will go over several ways of allowing access to files on the Pi on the network
and the Internet. You should choose the method that suits you best, as enabling
more than one way makes it easier to compromise your system or network.
FTP service
The File Transfer Protocol specification was originally published in 1971, but we
currently use a specification from 1985 that everybody should really start moving
away from. FTP uses port 21.
A much newer specification known as Secure FTP (SFTP) supports the IPv6 and
Secure Socket Layer (SSL) encryption. Installing FTP will just be a waste of time
as SSH comes with built-in support and is enabled by default to use SFTP. SFTP
generally uses port 22, which is the same port as SSH.
 
Search WWH ::




Custom Search