Skip to content

Latest commit

 

History

History
49 lines (47 loc) · 2.11 KB

File metadata and controls

49 lines (47 loc) · 2.11 KB

Setting up an Ubuntu Server

  • servers dont typically use bluetooth or wifi
  • use an ssd for the operating system for quicker response time and booting (doesnt need to be large, only needed for os not actual storage)
  • use magnetic disks to store very large files
    • cheaper
  • dont overload our server with roles and tasks
  • plan ram and storage carfully, so theres enough for the needed tasks
  • when we provide services to others we need them to be reliable
    • if you have time, try testing different configurations
    • dont be afraid to rebuild
  • should keep on LTS (long term support)
  • configure network connections
    • specify static network address
    • provide router address
  • serves should have a static ip address, we can also use automatic dhcp
  • we can also provide a proxy address or different mirror of ubuntu
  • lvm needs to grow, doesnt take up entire disk by default
    • everytime system boots we need to enter password if encrypted
  • unattended upgrades
    • happen periodically
    • may conflict with apt currently downloading if locked
    • wont update to new release
  • text logs
    • readable
    • easier to use
  • binary logs
    • accessed through journalctl
    • managed by systemd-journald
    • not as easy to work with using text based tools
  • journalctl -u to specify the unit you want to search
  • journalctl -since to see messages since a time frame
  • any software that runs on a linux system runs in a process
  • processes have a unique id
    • we can see some using ps ux or ps -e
    • ps -ejHf for a tree view
  • we use kill -9 <pid>
    • SIGKILL will send a kill signal to a process
  • services are programs that run all the time and wait to respond to certain conditions
  • some services are externally facing
  • systemctl is a way to see our services
  • UPS, uninteruptable power supply
    • will notify if the power is cut, and will provide power information
    • safer shutdown
    • check battery capacity, and the shutdown strategy

Note

I should make my old desktop a server, do that for a fun side project. I have ubuntu already on it so it shouldnt be hard buttt I should reinstall the server version instead