{"id":251542,"date":"2021-05-17T15:00:26","date_gmt":"2021-05-17T12:00:26","guid":{"rendered":"https:\/\/en.buradabiliyorum.com\/how-to-manage-linux-servers-with-cockpit-cloudsavvy-it\/"},"modified":"2021-05-17T15:00:26","modified_gmt":"2021-05-17T12:00:26","slug":"how-to-manage-linux-servers-with-cockpit-cloudsavvy-it","status":"publish","type":"post","link":"https:\/\/buradabiliyorum.com\/en\/how-to-manage-linux-servers-with-cockpit-cloudsavvy-it\/","title":{"rendered":"#How To Manage Linux Servers With Cockpit \u2013 CloudSavvy IT"},"content":{"rendered":"<p><strong>&#8220;#How To Manage Linux Servers With Cockpit \u2013 CloudSavvy IT&#8221;<\/strong><\/p>\n<div id=\"article-content-area\">\nManaging a network of Linux servers used to require using a terminal emulator to ssh into each of your servers. To update a local firewall rule, system administrators had to learn arcane <code>iptables<\/code> commands to add the right incoming and outgoing ports. To add a new local user required running <code>useradd<\/code> with the necessary options. And to check free space on the local filesystems, Linux administrators likely ran <code>df<\/code> and <code>du<\/code> commands on each storage system.<\/p>\n<p>Linux server administration would be much easier with a point-and-click interface that did all the hard work for you behind the scenes, so you could focus on your job: managing servers. That\u2019s where <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/cockpit-project.org\/\">Cockpit<\/a> comes in.<\/p>\n<p>Cockpit provides a web-based dashboard so you can monitor and update your Linux systems. I find with Cockpit, remote server management is a breeze. Let\u2019s take a look at what Cockpit has to offer:<\/p>\n<p>To access Cockpit on your server, point your web browser to your server\u2019s IP address on port 9090. For the Raspberry Pi mini-server I run at home, that\u2019s <code>10.0.0.11:9090<\/code> . But your network will likely be different; use your Linux server\u2019s hostname or IP address in your web browser\u2019s URL line, and add <code>:9090<\/code> to connect to port 9090. Login with the root username and password for that server.<\/p>\n<figure style=\"width: 1920px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"type:primaryImage size-full wp-image-10500\" data-pagespeed-lazy-src=\"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2021\/04\/5c48e2de.png?width=1200&amp;trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"\" width=\"1920\" height=\"1015\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><figcaption class=\"wp-caption-text\">Log in to Cockpit using your local username and password.<\/figcaption><\/figure>\n<p>After you\u2019ve logged in, Cockpit displays a system overview screen. This lets you check your server status at a glance: CPU and memory usage, server information, configuration overview, and overall server health. You can see on my Linux system that things are running fine, but I have a few new patches to install.<\/p>\n<p>The system overview also makes it easy to shutdown or reboot the server, such as for system maintenance. The overview also provides a great jumping-off point for more complex tasks. If you need to join your server to a domain, or need more details, you can click the blue links.<\/p>\n<figure style=\"width: 1920px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-10501\" data-pagespeed-lazy-src=\"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2021\/04\/f0c4a4db.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"\" width=\"1920\" height=\"978\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><figcaption class=\"wp-caption-text\">Cockpit shows your system status at a glance.<\/figcaption><\/figure>\n<p>The left side of the Cockpit dashboard shows a navigation menu. Click each one to check logs, storage, and networking, to update accounts, to stop and start services, or to <a href=\"https:\/\/buradabiliyorum.com\/en\/category\/download-scripts-themes-apps\/\" data-internallinksmanager029f6b8e52c=\"9\" title=\"Download Scripts &amp; Themes &amp; Apps\" target=\"_blank\" rel=\"noopener\">app<\/a>ly updates.<\/p>\n<p>Checking logs is straightforward in the \u201cLogs\u201d tab. No more wading through your <code>\/var\/log<\/code> directory, trying to spot errors or warnings. Cockpit shows the log entries with a helpful icon to indicate errors or warnings. Click on the menus at the top of the screen to filter logs by time, priority, or identifier. The default shows everything at \u201cError\u201d and above.<\/p>\n<p>If you need more information about a particular log message, you can click it for details. For example, I run my Raspberry Pi as a print server, and the logs showed that my printer was turned off when I was trying to print.<\/p>\n<figure style=\"width: 1920px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-10502\" data-pagespeed-lazy-src=\"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2021\/04\/2fc3c5ec.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"\" width=\"1920\" height=\"978\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><figcaption class=\"wp-caption-text\">Cockpit makes it easy to view logs. This shows when my printer was turned off when I was trying to print.<\/figcaption><\/figure>\n<p>The \u201cStorage\u201d tab presents your filesystems and storage I\/O at a glance.\u00a0You can also add other storage, including remote NFS filesystems, from this panel.<\/p>\n<p>My Raspberry Pi server has an internal micro SD card for its main storage, and a USB fob drive mounted at <code>\/backup<\/code>\u00a0 so I can make backups. On the \u201cStorage\u201d tab, I can quickly see my disk usage to verify my backup filesystem is about half full, and my main storage is mostly empty.<\/p>\n<figure style=\"width: 1920px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-10503\" data-pagespeed-lazy-src=\"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2021\/04\/f4204009.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"\" width=\"1920\" height=\"978\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><figcaption class=\"wp-caption-text\">With Cockpit, you can view the status of all your storage.<\/figcaption><\/figure>\n<p>The \u201cNetworking\u201d tab lets me check the network on one screen. My Raspberry Pi runs only on my wireless network at home, so only my <code>wlan0<\/code> network device shows any traffic.<\/p>\n<figure style=\"width: 1920px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-10504\" data-pagespeed-lazy-src=\"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2021\/04\/cb6b133a.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"\" width=\"1920\" height=\"978\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><figcaption class=\"wp-caption-text\">Cockpit shows your network usage in a handy chart.<\/figcaption><\/figure>\n<p>Managing your firewall is also much simpler. Click the \u201cEdit rules and zones\u201d button to enter a panel that lets you add or remove services from the firewall. No more debugging a list of\u00a0<code>iptables<\/code>\u00a0commands to update your firewall rules, now adding and removing services from the firewall is just clicking a button and scrolling through a list of services. Tick the box next to the services, you want to add, and click the \u201cAdd services\u201d button.<\/p>\n<figure style=\"width: 852px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-10563\" data-pagespeed-lazy-src=\"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2021\/04\/4399f95a.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"\" width=\"852\" height=\"488\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><figcaption class=\"wp-caption-text\">To add a new service to your firewall, just select the service in Cockpit.<\/figcaption><\/figure>\n<p>If you need to manage local accounts, you can do that from the \u201cAccounts\u201d tab. You can quickly create new users with the \u201cCreate new account\u201d button, or click on a username to edit the account details. You can even add and remove SSH keys to support passwordless login.<\/p>\n<figure style=\"width: 1920px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-10505\" data-pagespeed-lazy-src=\"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2021\/04\/1cb7a99a.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"\" width=\"1920\" height=\"978\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><figcaption class=\"wp-caption-text\">Manage local accounts easily with Cockpit.<\/figcaption><\/figure>\n<p>The \u201cServices\u201d tab lets you start and stop services. Click on each service, and you\u2019ll find a toggle to enable or disable a service at boot-time, or to im<a href=\"https:\/\/buradabiliyorum.com\/en\/category\/social-mediaa\/\" data-internallinksmanager029f6b8e52c=\"1\" title=\"Social Media\" target=\"_blank\" rel=\"noopener\">media<\/a>tely reload, restart, or stop a service that is already running.<\/p>\n<figure style=\"width: 1920px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-10506\" data-pagespeed-lazy-src=\"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2021\/04\/e64cfff0.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"\" width=\"1920\" height=\"978\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><figcaption class=\"wp-caption-text\">Start, stop, enable, and disable services using Cockpit.<\/figcaption><\/figure>\n<p>My Raspberry Pi is a scratch server on my private home network, but it\u2019s still important to keep it updated with the latest patches. When you\u2019re managing your server with Cockpit, you may notice an alert icon next to the \u201cSoftware Updates\u201d tab. That lets you know your system needs to be updated. You can choose to update everything by clicking the \u201cInstall all patches\u201d button, or only install the most critical patches by clicking the \u201cInstall security updates\u201d button.<\/p>\n<figure style=\"width: 1920px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-10507\" data-pagespeed-lazy-src=\"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2021\/04\/cc695bd8.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"\" width=\"1920\" height=\"978\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><figcaption class=\"wp-caption-text\">Install updates through Cockpit at the touch of a button.<\/figcaption><\/figure>\n<p>And despite all that Cockpit has to offer, if you must do something manually on the server, you can click into the \u201cTerminal\u201d tab to bring up an interactive shell. This is convenient if you need to do something on the command line, including editing configuration files or running scripts.<\/p>\n<p>The default terminal view is white-on-black text, with the \u201cBlack\u201d color profile. You can change the colors to your preferences using the \u201cAppearance\u201d menu, to set the colors to white text on a dark blue background (\u201cDark\u201d) or black text on an off-white background (\u201cLight\u201d) or plain black-on-white text (\u201cWhite\u201d).<\/p>\n<figure style=\"width: 1920px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-10508\" data-pagespeed-lazy-src=\"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2021\/04\/527cb643.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"\" width=\"1920\" height=\"978\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><figcaption class=\"wp-caption-text\">Need to login as root? Cockpit provides a web-based terminal.<\/figcaption><\/figure>\n<p>Using Cockpit makes server management a breeze. I find that Cockpit helps to automate the routine stuff, and makes the hard stuff easier to do. The interface is simple yet powerful, and the interaction feels intuitive. Install Cockpit on your server, and streamline your system administration workflow.\n<\/p><\/div>\n<blockquote><p><strong><span style=\"color: #ff6600;\">If you liked the article, do not forget to share it with your friends. Follow us on\u00a0<span style=\"color: #ff0000;\"><a style=\"color: #ff0000;\" href=\"https:\/\/news.google.com\/publications\/CAAqBwgKMLG0nwswvr63Aw\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Google News<\/a><\/span>\u00a0too, click on the star and choose us from your favorites.<\/span><\/strong><\/p><\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\">For forums sites go to <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/forum.buradabiliyorum.com\/\" target=\"_blank\" rel=\"noopener\">Forum.BuradaBiliyorum.Com<\/a><\/span><\/strong><\/p>\n<\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\"><strong>If you want to read more like this article, you can visit our <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/en.buradabiliyorum.com\/technology\/\" target=\"_blank\" rel=\"noopener\">Technology category.<\/a><\/span><\/strong><\/p>\n<\/blockquote>\n<p><span style=\"color: black;\"><a style=\"color: #ff9900;\" href=\"https:\/\/www.cloudsavvyit.com\/10297\/how-to-manage-linux-servers-with-cockpit\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8220;#How To Manage Linux Servers With Cockpit \u2013 CloudSavvy IT&#8221; Managing a network of Linux servers used to require using a terminal emulator to ssh into each of your servers. To update a local firewall rule, system administrators had to learn arcane iptables commands to add the right incoming and outgoing ports. To add a&#8230;<\/p>\n","protected":false},"author":1,"featured_media":251543,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"https:\/\/www.cloudsavvyit.com\/p\/uploads\/2021\/04\/5c48e2de.png","fifu_image_alt":"","footnotes":""},"categories":[18],"tags":[],"class_list":["post-251542","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology"],"_links":{"self":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/251542","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/comments?post=251542"}],"version-history":[{"count":0,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/251542\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media\/251543"}],"wp:attachment":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media?parent=251542"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/categories?post=251542"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/tags?post=251542"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}