ไม่สามารถเล่นวิดีโอนี้
ขออภัยในความไม่สะดวก
Linux Server Web GUI - management with cockpit
ฝัง
- เผยแพร่เมื่อ 16 ส.ค. 2024
- In this video, I will show you how to install a Web GUI for your Linux server with cockpit. I will show you the features of cockpit and how to use it to manage virtual machines and install custom plugins. #Linux #HomeLab #HomeServer
Follow me:
TWITTER: / christianlempa
INSTAGRAM: / christianlempa
DISCORD: / discord
GITHUB: github.com/chr...
PATREON: / christianlempa
MY EQUIPMENT: kit.co/christi...
Timestamps:
00:00 - Introduction
00:54 - What is the cockpit-project?
02:35 - How to install cockpit on Ubuntu
03:26 - What about HTTPS certs?
03:54 - Basic Features of cockpit
06:24 - Software Update Issue on Ubuntu and how to fix it
08:36 - How to manage virtual machines with cockpit?
12:25 - How to manage ZFS filesystem with cockpit?
----
All links with "*" are affiliate links.
Dude! I've been using Cockpit for a while, and I had no idea that you could spin up VM's from the Web interface. Bravo mate.... Thank you ❤️
You're welcome! Thanks for the feedback :)
Another very good guide. I use Cockpit in docker but I did not know that I can add plugins. Time to check those!
Awsome. I will do everything. Thanks for zfs and cockpit.
Your every videos are awsome. Please bring more videos for us.
Thanks a lot ❤️
Now we need a docker plugin similar to portainer to manage all docker container through cockpit. That'd be awesomesauce.
apparently cockpit discontinued support for docker in favour of podman, i'm disappointed by that news
I was thinking about that too...
@@shnabz1redhat Sphere suprised why do you not use podman most things that work in Docke i think work in Podman
Great video, thank you. New subscriber now! I didn't know about Cockpit plugins. I also play around with "Webmin", but now I like the ZFS plugin for Cockpit 😁
Thank you! :) Oh yeah Cockpit is much better than Webmin in my opinion.
You really deserve more likes and subscribers. Your videos are really helpful
Thanks mate! That will come over time, I'm sure :)
Thanks Christian...just what i needed for my first real linux homelab server
This is awesome! Thanks :)
A quick warning for people installing it, cockpit comes with NetworkManager which will spoof your MAC address WITHOUT WARNING.
If you're not able to access your server anymore through dns, because your server is on the wrong local IP, because dhcp is messed up, then make sure to re-set your dhcp to the right mac address and maybe turn off spoofing in the NetworkManager configuration.
Newbie to Linux here and I was like what the hell after installing it and IP decided to change. Lol.
@@PaulSpinks I hope I saved you some time which I wasted figuring this out
@@Rerbun You certainly, did. Not all heroes wear capes! Thanks. 😁
@@PaulSpinks thank YOU for making me feel like it was worth it 😁
Thanks, didn't know about that, didn't hapen, maybe because I'm using static IPs with no check for MAC. But I know Cockpit needs NetworkManager to update itself. And an Ubuntu server uses networkd as renderer in netplan (NetworkManager can be purged) which kinda defeats the Cockpit purpose. Of course, the switch from networkd to NetWorkManager in netplan on a remote server makes the server not remote because it needs direct input to correct the lost of connectivity. So, IMO, too many arguments against the use of Cockpit on a Ubuntu server at this moment.
Thanks for the great tutorial!
Man, the software update issue was trying to drive me nuts!! Thank you so much for the help!
Awesome solution at 7:27 - I found I had to restart as netplan wasn't able to be ran on Ubuntu server. But a restart fixed all my issues with managing network interfaces.
Thanks! :)
Im ersten Satzt direkt gemerkt "Jop das ist nen Deutscher"
Ich danke dir, genau nach so einer Software hab ich schon länger gesucht.
Haha, danke dir ;)
Great presentation of the cockpit application and some of its features. Thanks.
I slowed down the video to 0.75x. Now you are speaking my language, as I hold my beer thank you, you drunken champ. Cheers, from a drunken coder
Oh. this is awesome. With built in VNC, it will be so easy to manage multiple VM instances remotely on web.
Great work👌
Love frm 🇮🇳
Thanks bro
Thank you for the video.
thnk´s body, you help me a lot.
Great vids! Would love to see a vid on exposing cockpit using nginx proxy! :)
Thank you ❤️, hmm that could be interesting to expose cockpit properly, I'll think about it 😊👍
@christianlempa Christian, you could mention also about Proxmox and LXC, that LXC on Proxmox requires enabled nesting... Otherwise it won't work complainning about permissions...
Thanks, great video :)
My pleasure!
Great work thank you.
Thanks mate!
Thank you! I googled tool like this and failed to find it! Thank you!
Thanks mate! :)
definitely want to know how to open cockpit
thanks man
Thanks Fritz
Schönes Video^^
Danke :)
Can we monitor apache access log (in relatime with moving graps like CPU and RAM) with this cockpit? how?
Thanks for the info, Do you have a video just for Cockpit VM stuff? have a hard time creating pool/storage etc.. tnx
No I’m not using it much these days unfortunately
Did you have any success in getting the Cockpit Plugin for Docker Container to work?
Good question! Cockpit has support for managing containers with "podman", which is a RedHat replacement for docker. In Centos/RedHat that works out-of-the-box, but unfortunately for Ubuntu the cockpit-docker package was deprecated and the cockpit podman package is not in the official Ubuntu repos, yet. That might change and you probably can install the old outdated cockpit-docker debian package manually.
However, I like managing my docker containers with docker-compose or other systems like portainer or yacht than using cockpit for this, I will make some tutorials on these web GUIs for docker containers in upcoming videos.
What is your opinion and/or experience about *unattended-upgrade* feature on an Ubuntu Server?
I use it to enable only automatic security updates, had no issues so far. Other stuff I do manually.
Prefer Proxmox for same but cool intro to cockpit
I have cloudpanel on my server. If I install cockpit, which also has a web server, things get a bit confusing. how can I install the cockpit but have it be through a proxy on the cloudpanel server?
i'm installed aapanel, but i'm thinking about to replace with cockpit
i am very comfortable with using terminal, should i be using this from my vps ? What can it do more that can't be done with terminal ?
Hi, I have watched a lot of videos from your channel lately. They have helped me a lot while setting up my home/personal/hobbyist humble server. Do you have any explaining how to properly configure a route to cockpit in traefik?
Thank you and you’re welcome :) honestly I haven’t Cockpit for a while now so I’m not sure, maybe in the far future
Hey, great tutorial! I'm building a home server on Raspberry Pi4 but for now, I only have one external storage disk. Would it be able to mount 1 disk for now with OpenZFS and later on, if everything works fine, mount another disk to create a mirror of the first disk?
Cheers!!
Hey thank you :) There maybe a way to do it, but I think it should be safer and easier to create a new storage pool as mirror and copy the files over.
i use webmin for my servers, so i can easly send apt-get update/upgrade to all my linux systems, can i send commands with this to mutiple machines at the same time too?
How would this affect performance? I Run My Server on a Sandi Bridge dual core
Good day, love your video on using cockpit
I will like to know if the following scenerio is possible:
If i was to get one powerful Ubuntu Server, can i have 3 VM's with the following setup:
1. One dedicated for email marketing (Ubuntu) knowing fully well this requires its own dedicated IP Address,
2. Another for hosting my site using CyberPanel(Ubuntu) and
3. Finally another for forex EA's (Windows)
Secondly will they all be using the same IP address?
Finally will this kind of scenerio degrade the performance of the server overtime
Kindly explain to me how the issue of IP Address is managed among them.
Hope to hear from you soon.
One downside about and Debian-derived distro + cockpit is that there is no iscsi options in cockpit. I went through the code to find out why and found that iscsi depends on udisk2, which is not fully featured for debian-based distros and lacks some iscsi functions. I downloaded rockylinux and found that it doesn't have this problem. Also other rhel-like distros don't have this issue (including fedora).
That being said, we can still use the CLI to manage that aspect. It would have been nice to have iscsi in cockpit for Ubuntu LTS.
Thanks for sharing! To me it's not a critical gap, but yeah I experienced the same, cockpit is really made for RHEL and RHEL based Distros ;)
what about networkin briding?
As of Fedora 39, Cockpit is installed by default and Cockpit-machines is an available to install from the Applications menu. Also what about Webmin? Does anyone still use it?
NetworkManager is deprecated now,. what is the alternative?
How to update cockpit after installation?
Wenn ich auf die virtuelle Maschine nen Univention Corporate Server aufsetzen will wie stell ich das am Besten an.
Sie hat bei mir keine .iso und keine kvm oder hyper-v angenommen.
Please upload a video on using ssl certs for cockpit
Hmm let me put it on the backlog when I have time 😁
I'm using Webmin but I give this a try
Awesome 👍😎
awsome project... will follow it... but??? why do you use ZFS...
what features took you to that FS... ?so you have a video on that??
What about when adding/mounting new Storage for physical or vm disks?
The warranty on your DELL PowerEdge T410 expired in March 2014. : )
Yea, going to replace that soon :P
Hi, does cockpit have gui. I only see terminal interface!! . what about gui?
Webmin & Cockpit are there same? sorry im new in Linux🥺 please enlight me. tq
Hi! Great tutorial! Is it possible to use cockpit to manage Xen Servers or XCP-NG hosts?
Thank you man :) I don't think so, it's based on Linux.
Nice Vid Christian
I'd like to ask you if Cockpit can do patch management for multiple Linux servers from a single management interface?
Thanks for your attention
Does the cockpit present its' separate management for KVM or is it a wrapper for virt-manager? Will things go wrong if I use both?
cant test cockbit mybe firewall stopping? no login
I have been wondering something for awhile.
If you have a Webpanel installed like
cPanel, Direct Admin, WebMin, CWP or whatever of the many available
Is CockPit designed to be installed without conflict with a web panel
Or is it one or the other?
Yes, I use both Webmin and Cockpit. I use Fedora server and it installs Cockpit out the box. Cockpit can do basic server admin, but you can't get 99% of the apps/modules that you can get with Webmin. I have not used it with any of the others webbie interfaces you mentioned. Plus I don't recommend CWP using because you have to reinstall the server you installed it on.
The Netplan does not work for me. All my Interfaces stay Unmanaged
You may have a look at the documentation or forums of cockpit project, or take a look at our discord community, I'm sure we can help you :)
I installed like you said, but I get an error Virtualization service (libvirt) is not active, why?
Probably because it's not installed
@@christianlempa That was the problem, thank you!
Thank you! Question for you: I have a perl script that executes a data backup via cron. Do you know how I could display the results using cockpit, or as a next step have a button to manually start the backup script?
No idea if that's possible with cockpit, sorry.
hi im stuck when you did the sudo vim bit i did that and it empty i have not got the blue writing in mine and was wondering if you could help me please as am stuck on that bit
Hey mate, maybe join our discord we'll be able to you better there ;)
Please give project about linux cockpit
Does anyone know how to resolve this error?
A dependency job for cockpit.service failed.
Cannot start cockpit on Ubuntu 22.04
That thing with Netplan and NetworkManager is a bummer....
Great tutorial! I am trying to setup Cockpit on a subdomain. I watched your video on NGINX and LetsEncrypt but when I applied it to this Cockpit video I got some weird results where the server did not authenticate. I looked around online and most of the documentation does not use Ubuntu. Are you able to go over this in a future video?
Hi, yea I will have a look at it
@@christianlempa I used some of the documentation on cockpit to copy and replace the auto generated certificate but once I try to login it still uses the old auto generated certificate even after removing it completely. It is just odd.
Cool. xD
Thanks ❤
hi, ich versuche es mal auf deutsch: ich bin neu in dieser serverthematik und weiß bei der netplan thematik nicht weiter. Wie kommt der inhalt in dieses dokument? wie wende ich das an? bei mir ist sudo vim leer. wie bekomme ich dort etwas rein? hä? haha, vielen dank für eine antwort
Any chance to get latest cockpit version on Ubuntu 20.04? The package install with apt is 215 and the latest one is 242.
No idea, can you share some details on our discord?
Hi!
This is what i wanted!
Is there any plugin for SAMBA server on Ubuntu?
I used the ZFS plugin mentioned in the video, that also has a plugin for samba!
Hello, thank you for your video, it vary helpful. I almost done with my Windows Server VM. The last thing left. VM hasn't connection to the internet. Network interface IP address is unknown. . Please advice me.
Dev: Would you like an easy to understand graphical interface for common management tasks?
Linux Turbo Nerd: Heck naw, I would rather read man pages all day and type hundreds of cryptic commands.
Lol xD
im getting a white or black page after logging in ... How to solve it?!!!!
@Christian Lempa
subtitles mode on pls!
can you mabe make a video on ubuntu cockpit PAM and Two factor auth support in Cockpit?
Hmm I've done a video on 2FA and will do another one with Traefik and Docker. Don't know but this might also be helpful for Cockpit.
Awesome Video, how do i allow "Graphical Console " on the host machine instead of the virtual machine
Thanks mate! Not sure what you mean by that, can you explain it, please?
Hi@@christianlempa , sorry for not being clear, what i meant was
1. At the video 12:14 where there is a graphical console shown to view your virtual machines running in the host system
2. In the host system where cockpit is installed how to view in cockpit page the same graphical console
3. It would be greatly useful to have to access the host system GUI via the cockpit page
Hope that clarifies my question
I change the renderer to NetworkManager and now I can't access my server. Any help?
i want to change port on cockpit 9090 give me an conflict
That should help you cockpit-project.org/guide/latest/listen
Sir please make a video on cockpit ssl with nginx reverse proxy
I thought about it, but I believe it's better to show you more about access management and SSL certs in general, which will help you to access web interfaces like cockpit with proper 2FA and access control, rather than exposing it with NPM. Hope that makes sense ;)
Sir is There any Simple Gui, for install SSL , add remove, Domain in One Click,
for Ubuntu Desktop Version,
i'm Using Aapanel , it's Very Slow, i don't want to Use Any Web Panel,
just i want, to do in Ubuntu Desktop, Without Commands....
I installed in ubuntu 23.10 but i dont see any addon on "Application" menu
Maybe there have been some changes, haven't used it in a while...
How do these virtual machines compare to Virtual Box or docker containers? Thanks.
It's based on KVM, Cockpit is just a management UI for it. So that's basically very similar to VirtualBox, but a lot different from docker ;)
@@christianlempa I don't know how my question got on this video. Sorry about that. I know I was on a different video. I was watching some of your listed videos and I must of jumped to this one without realizing it. I am sure my question didn't make sense.
how to change cockpit port?
Thank you for this video. But how to ad and configure a domain?
Thank you! :)
@@christianlempa but how to join a domain in cockpit on Debian 10? Thanks
@@jomik100 Yes. He didn't mention RealmD. Or the store metric plugin. Id like to know about realmd as well.
Very interesting, why not just go with Webmin? It does seem to be more mature and Ubuntu friendly.
If you *only* want to use webmin, that is fine. But you have to be aware that it "owns" your machine, i.e. sets up its own config files etc. everywhere, and is not "reactive" to changes on the CLI or from Ansible etc. Cockpit is designed to only use the official system APIs (like D-Bus, hostnamed, or libvirt), so the UI will respect and immediately update to changes that you do somewhere else. So you can use it as an occasional troubleshooting/learning tool without it getting in the way.
@@MartinPitti This is so strange, I have the opposite experience with Webmin and find it to be CLI and /etc friendly. no junk, no special db or config and i can keep using vi without breaking anything .. this is exactly why i like it.
@@alainterriault7492 Thanks for the correction! It's been a while since I looked at webmin. Honestly great to hear that this became so much better now.
the renderer part is already added by default to my new ubuntu desktop, i guess the community fixed that problem
Nice, I need to take a look at this again at some time...
Hi! Do you have a video about that how we can install cockpit inside docker and handle with portainer? docker/ws is not enough to work well seems, probably i couldnt do something well :) anyone has cockpit inside docker and handle with portainer? thanks :)
Very nice video! I'm just dabbling in Linux (Debian on a Buffalo NAS). I have Webmin but it's a bit too much for the old device. Cockpit looks intriguing! If it doesn't require as many resources as Webmin, I may have to give it a try. Do you think it's worth switching? Thanks for the helpful video!
It depends on how you're using webmin. Webmin has many more plugins and features than Cockpit, but if you don't need them, I guess it would be worth switching.
13+ years ago I was using Webmin to manage multiple servers from one web interface, and it had many of the features of Cockpit, do you know if was a fork from Webmin?
Hm never heard that, so I guess it's a separate project
Hi @The Digital Life, it seems that NFS was removed from the latest version, do you perhaps know why and if there is a way to install?
Not sure, sorry.
Hey Man, I am going to buy a server with 8 Core Xeon Intel Xeon 2.6GHz with Turbo, 16 threads and 16 GIGs of memory. What I want to do is install Windows 11 as a VM, if I do this, would it be powerful enough to run PC games? I want to do this because I want to exclude my gaming PC. I have a Mac, PC and a server. Too many, computer in my house. This is the server that am going too buy PowerEdge T150 Tower Server
Thanks!
Hi. it looks like it is an useful tool. I used webmin since -99 when there was nothing else. Nowadays it starts to come along more projects like this. I have a question I hope answered. I have a 12 drive server with not much room to add more than one ssd internally. In an ZFS pool will it be most useful to add that ssd as a cache or a log to gain speed?
No idea unfortunately, haven't looked into that myself (yet)
Quick one : Can I run cockpit alongside VESTA CONTROL PANEL all running under one server or will there be some conflicts?
Not sure, I haven't tried it out.
hi Chris, i just missed it; does ubuntu server working on a real server which you connected with ssh from windows, or it's already installed your windows machine as in virtual box... thanks already.
I mostly run Linux in virtual machines, there is currently no physical installation in my setup. I think this one I simply created with vagrant on my Windows Workstation.
@@christianlempa thank you
Great video! have you found a way to get Cockpit to send email notifications? I am trying to get it to email me if I run low on disk space and have not be able to find anything online
Not yet, I mainly use cockpit for configuration and other tools for monitoring
I don't really know anything about anything. but I bet you could make a script that does this
Cockpit is not a monitoring software. If there is no running session, then nothing is running on the machine (other than cockpit.socket, which is trivial). If you need monitoring, use something like nagios.
He predicts anyyhong i think abt
i just use ssh :/
This is almost similar to organizr
I disagree. Organizr is something different.
You can compare Cockpit somehow with cPanel, Plesk, Webmin, Ispconfig, Froxlor, CentOS Web Panel and similar...
i have installed cockpit on my vps but it did not came with netplan pre installed. Is there a way to set up netplan to get the update to work?
Depends on you distro. You can simply install it, but maybe check if cockpit works without