3/1/2024 0 Comments Monit check program exampleAfter a bit of poking around, I realised that this was caused because the installer was running from my home directory which is on a different partition from the install location (it seems silly that the installer assume that people won't run it like this, and that it doesn't give a more meaningingful error message!). Part way through, I got this error: rename VigorConnectTempt/VigorConnect /usr/local/VigorConnect: invalid cross-device link. In the installer I used the default install destination and started the install. I copied the installer to the server and unzipped it, changed to root, and then followed the instructions in the PDF that was included in the download. I Installed Draytek's VigorConnect software to monitor Draytek switches and Access Points on the local network, automate firmware upgrades, and sync settings to all of the APs. Unattended-Upgrade::OnlyOnACPower "true" # in case the laptop's power supply is unplugged for some reason, don't install updates. Unattended-Upgrade::Automatic-Reboot-Time "02:00" # This server won't be getting much use, so it can safely reboot out of hours if a kernel update requires it. Unattended-Upgrade::Automatic-Reboot "true" # Allow reboot when needed after kernel updates The documentation says "You should at least uncomment the following: Unattended-Upgrade::Mail "root", but I wanted to send mail directly to my email address rather than going to/via the root user, so I set it like this: Unattended-Upgrade::Mail More on the email setup later. Editing /etc/apt//50unattended-upgrades, I changed the following lines (note that the comments in the file itself have more detail than the online docs). The official documentation for this is here. The purpose of unattended-upgrades is to keep the computer current with the latest security (and other) updates automatically. With this in place, it looks like the screen switches off when I close the lid (which is good for saving power and prolonging the life of the screen), and the system does not go into suspund. I did some experimentation, and the only thing I needed to do was edit /etc/systemd/nf and change this line: I wanted to close the laptop lid while the machine is running so I can tuck it neatly in a cupboard next to the router. I created a file called /etc/ssh/sshd_config.d/nf and used it to change the default port number (actual port number not shown here), and set some basic options:ĬlientAliveCountMax 60 Prevent system suspend when laptop lid is closed Therefore you can customise things in there, leaving the default /etc/ssh/sshd_config untouched, so automatic updates won't trip up over changes to that file. The default OpenSSH server config on Debian now automatically reads all files matching /etc/ssh/sshd_config.d/*.conf. I allocated a fixed IP address for the machine from the DHCP section on the router. I went for the Stable release for obvious reasons. There are loads of guides on how to install Debian out there, so I won't go into any detail here. I first tried using an ancient Samsung NC10 but it's 32-bit and the Draytek VigorConnect software is 64-bit only. It doesn't need to be very fast for my purposes, and running Linux means we can make use of old hardware that would otherwise be thrown away. we get a lot of powercuts in our area and a laptop has a built-in UPS of sorts, in the form of a battery, and B. I considered buying a Raspberry Pi, but then decided that an old laptop would be ideal because A. My aim was to have a server that requires the bare minumum of maintenance, but sends me regular alerts by email, while also minimising the number of 'moving parts' as much as possible. There are plenty of cloud-based management AP controller options, but I wanted a local, self-hosted option because our internet has been patchy in the past, and because I don't want any monthly license fees. Recently, I was setting up a Debian server on an old laptop with the sole purpose of running Draytek's VigorConnect software to monitor and manage the network on my campus (which uses Draytek switches and wireless access points).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |