Create a new repository Generate a local git repo in the project working directory: git init . SSH to remote server create a bare repo using the project name: ssh tim@fileserv git init --bare /files/git/xxxxxxx exit Add the files to be tracked and commit: git add blah.c git commit -a -m "Initial commit." Add the remote repo and push: git remote add origin tim@fileserv:/files/git/xxxxxxx git push --set-upstream origin master
1. Disable All Suspend, Sleep, and Hibernate These commands globally block the system from entering power-saving states. Mask Sleep Targets: Prevents the system from reaching any sleep state by linking targets to /dev/null. bash sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target suspend-then-hibernate.target Modify Sleep Config (Optional): Explicitly disable modes in the configuration file. bash echo -e "[Sleep]\nAllowSuspend=no\nAllowHibernation=no\nAllowSuspendThenHibernate=no\nAllowHybridSleep=no" | sudo tee /etc/systemd/sleep.conf.d/nosuspend.conf Ignore Lid Actions: Prevents laptops from sleeping when the lid is closed. Edit /etc/systemd/logind.conf and set HandleLidSwitch=ignore. Apply with sudo systemctl restart systemd-logind.service. 2. Disable / Re-enable GNOME (GDM3) For a headless server, you can stop the GUI to save resources or re-enable it for occasional maintenance. Action Command Description Disable GUI...