{"id":1588,"date":"2022-09-06T13:47:24","date_gmt":"2022-09-06T11:47:24","guid":{"rendered":"https:\/\/hobbykeller.spdns.de\/?p=1588"},"modified":"2022-09-06T13:48:30","modified_gmt":"2022-09-06T11:48:30","slug":"ubuntu-20-04-server-admin","status":"publish","type":"post","link":"https:\/\/hobbykeller.spdns.de\/?p=1588","title":{"rendered":"Ubuntu 20.04+ Server Admin Cheat Sheet"},"content":{"rendered":"\n<p>The following is a collection of handy commands for the Ubuntu 20.04 server administration:<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Changing network configuration<\/h2>\n\n\n\n<p>Most of the network configuration is stored in <code>\/etc\/netplan\/00-installer-config.yaml<\/code>. In my configuration, the server is configured to a static IP address:<\/p>\n\n\n\n<div class=\"wp-block-urvanov-syntax-highlighter-code-block\"><pre class=\"font:ubuntu-mono font-size:14 lang:default decode:true \" title=\"00-installer-config.yaml file governing network configuration\"># This is the network configuration written by 'subiquity'\nnetwork:\n  ethernets:\n    enp03s:\n      addresses: [192.168.4.65\/24]\n      gateway4: 192.168.4.1\n      nameservers:\n        addresses: [192.168.4.1,172.104.136.243,192.71.245.208]\n      dhcp4: no\n  version: 2<\/pre><\/div>\n\n\n\n<p>After editing the file, validate it with <code>sudo netplan apply<\/code>.<\/p>\n\n\n\n<p>Solution comes from the official <a href=\"https:\/\/ubuntu.com\/server\/docs\/network-configuration\" target=\"_blank\" rel=\"noreferrer noopener\">Ubuntu server documentation<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Changing tty keyboard layout<\/h2>\n\n\n\n<p>Changing your keyboard layout is a piece of cake: Just issue the command <code>sudo dpkg-reconfigure keyboard-configuration<\/code>.<\/p>\n\n\n\n<p>Solution comes from <a href=\"https:\/\/askubuntu.com\/questions\/155424\/changing-tty-keyboard-layout-on-a-server\" target=\"_blank\" rel=\"noreferrer noopener\">askubuntu.com<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The following is a collection of handy commands for the Ubuntu 20.04 server administration: Changing network configuration Most of the network configuration is stored in \/etc\/netplan\/00-installer-config.yaml. In my configuration, the<span class=\"more-button\"><a href=\"https:\/\/hobbykeller.spdns.de\/?p=1588\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\">Ubuntu 20.04+ Server Admin Cheat Sheet<\/span><\/a><\/span><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[64,1],"tags":[342,341,340],"class_list":["post-1588","post","type-post","status-publish","format-standard","hentry","category-linux","category-uncategorized","tag-keyboard-layout","tag-network-configuration","tag-ubuntu-server"],"_links":{"self":[{"href":"https:\/\/hobbykeller.spdns.de\/index.php?rest_route=\/wp\/v2\/posts\/1588","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hobbykeller.spdns.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hobbykeller.spdns.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hobbykeller.spdns.de\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/hobbykeller.spdns.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1588"}],"version-history":[{"count":3,"href":"https:\/\/hobbykeller.spdns.de\/index.php?rest_route=\/wp\/v2\/posts\/1588\/revisions"}],"predecessor-version":[{"id":1591,"href":"https:\/\/hobbykeller.spdns.de\/index.php?rest_route=\/wp\/v2\/posts\/1588\/revisions\/1591"}],"wp:attachment":[{"href":"https:\/\/hobbykeller.spdns.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1588"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hobbykeller.spdns.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1588"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hobbykeller.spdns.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1588"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}