This may sound crazy, but I am using a laptop as a server. This post talks about turning on the tools I have enabled, some of the script I run on startup, and how I secured my system.
I will be locking this Laptop down as it is my personal device and I do not want any data exposed. I plan to do this by securing SSH access, using a VPN, and reducing the number of ports the device opens.
Turning on SSH
By default a desktop ubuntu setup doesnt have [OpenSSH] installed, so I ran a
sudo apt update && sudoa apt upgrade && sudo apt install openssh-server to install the application. I then enabled the ssh server, started it and checked the status of it wit the
systemctl commands. An example of the systemctl command would be
sudo systemctl status ssh, note the service is called
ssh and not
Enabling X11 Forwarding for Desktop Applications
After ssh’ing into the server, run an
xclock to check if everything is working properly.
- Script to open the VPN Connection?/Looking into creating an OpenVPN Daemon to connect
- Script to “enable” and “disable” the server mode of the laptop. This would turn off all services that are used for the server applications (SSH, VPN Connections?)