This is going to start where congenio.de stop
so assuming you booted their image and now you have logged in for the first time with root password congenio.
sudo passwd root or passwd #change root password
usermod -aG sudo username
reboot #just to make sure everything works 🙂
by default the swapfile is pretty much disabled
nano /etc/fstab #enable swapfile remove #
nano /etc/sysctl.d/98-swap.conf #swapiness to 20
There might be times when you’ve run out of swap space and it is not practical to repartition a drive or add a new one. In this case, you can use a regular file in an ordinary partition. All you have to do is create a file of the size you want
dd if=/dev/zero of=/var/my_swap bs=1024 count=131072
and activate it
mkswap -f /var/my_swap
This invocation creates a file called my_swap in /var. It is 128 Mb long (128 x 1024 = 131072). Initially, it is filled with zeros. However, mkswap marks it as swap space and swapon tells the kernel to start using it as swap space. When you are done with it,
Multiple Swap Areas
More than one swap partition can be used on the same system. Consider an example fstab where there is a single swap partition:
/dev/hda5 / ext3 defaults 1 1
/dev/hda1 /boot ext2 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
/dev/hda7 /usr ext3 defaults 1 2
/dev/hda6 swap swap defaults 0 0
Imagine replacing the entry for the swap partition with these three lines:
/dev/hda6 none swap sw,pri=3 0 0
/dev/hdb2 none swap sw,pri=2 0 0
/dev/hdc2 none swap sw,pri=1 0 0
This configuration would cause the kernel to use /dev/hda6 first. it has the highest priority assigned to it (pri=3). The maximum priority can be 32767 and the lowest 0. If that space were to max out, the kernel would start using /dev/hdb2, and on to /dev/hdc2 after that. Why such a configuration? Imagine that the newest (fastest) drives are given the highest priority. This will minimize speed loss as swap space usage grows.
It is possible to write to all three simultaneously. If each has the same priority, the kernel will write to them much like a RAID, with commensurate speed increases.
/dev/hda6 none swap sw,pri=3 0 0
/dev/hdb2 none swap sw,pri=3 0 0
/dev/hdc2 none swap sw,pri=3 0 0
Notice that these three partitions are on separate drives, which is ideal in terms of speed enhancement.
sudo apt-get install usbmount
next job is to build and set up netatalk
install the following packages by “apt-get install”.
apt-get install build-essential libevent-dev libssl-dev libgcrypt11-dev libkrb5-dev libpam0g-dev libwrap0-dev libdb-dev libtdb-dev libmysqlclient-dev avahi-daemon libavahi-client-dev libacl1-dev libldap2-dev libcrack2-dev systemtap-sdt-dev libdbus-1-dev libdbus-glib-1-dev libglib2.0-dev libio-socket-inet6-perl libtracker-sparql-1.0-dev libtracker-miner-1.0-dev tracker
$ tar xvf netatalk-3.1.9.tar.bz2
$ cd netatalk-3.1.9
makeEdit “nano /usr/local/etc/afp.conf“.
sudo apt-get install libtool-bin
sudo libtool --finish /usr/local/lib/netatalk/
; Netatalk 3.x configuration file
; Global server settings
hostname = AirDrive
uam list = uams_dhx.so uams_dhx2.so uams_guest.so
zeroconf = yes
guest account = nobody
log level = default:warn
log file =/var/log/afpd.log
mimic model = Macmini
basedir regex = /home
; path = /path/to/volume
path = /media/usb1/media/itunes
valid users = john
; [My Time Machine Volume]
; path = /path/to/backup
; time machine = yes
Enabling & Starting
# systemctl enable avahi-daemon
# systemctl enable netatalk
# systemctl start avahi-daemon
# systemctl start netatalk
of course the problem is what if it isn’t mounted on usb1.
the solution is to create a mount point but systemd may cause problems on boot.
There is a bit of a gotcha with systemd if a drive has an entry in /ect/fstab and it isn’t available systemd may drop to an emergency shell. unfortunately this doesnt have ssh enabled so you cant work on the problem unless you have the serial console set up.
Of course if you can attach the boot drive to a second machine you can edit fstab.
by default the iconnect thinks it is in germany
this will let you select your correct timezone.