News for hackers. Stuff that matters.
Re:Cockpit: Web-based graphical interface for servers by TwoNineFive on Monday October 16, 2023 @03:54AM (#37896905)
I'm an actual RHCE. This thread has to be some big Red Hatter click farm or something. The artificial positivity is striking. Is Red Hat threatening to pull funding for this project or something? Just weird.

Cockpit is okay but it's basically Red Hat's equivalent to the Windows Server Manager tool, and I have no doubt it was directly inspired by Server Manager. It's development and improvement over the years has been painfully slow.

Nobody who is comfortable with an ssh session uses Cockpit, except maybe to create new VMs, and even then all of these comments comparing it to Proxmox are just whack because it doesn't have a quarter of the features the Proxmox UI offers. The utility for managing VMs is a recent development and even then I still prefer the Virtual Machine Manager tool because I don't want to deal with the latency increase and other limitations of working through a browser.

But anyway, there's a ton of things you can't do with Cockpit, and never will be able to do. It's for people who want to point and click, can't do a bash for/while loop, don't understand pipe chaining commands, and don't like using vim.

Like happyweasel said, it's basically webmin for Red Hat.

It's kinda cool, but it's so old now and development has been so slow and it's been so over-hyped that I don't pay attention to it at all and I've never used it except what was required to get certified.

Re:Cockpit: Web-based graphical interface for servers by Kiro on Monday October 16, 2023 @04:19AM (#37897032)
> Please don't post insinuations about astroturfing, shilling, brigading, foreign agents, and the like. It degrades discussion and is usually mistaken. If you're worried about abuse, email [email protected] and we'll look at the data.

https://news.ycombinator.com/newsguidelines.html

Re:Cockpit: Web-based graphical interface for servers by minimaul on Monday October 16, 2023 @04:18AM (#37897031)
It's a very useful tool to manage libvirt + KVM remotely without trawling through poorly documented XML, it's accessible from any platform - even an iPad, and it requires next to no setup (basically install the package and add a cert and you're done).

I consider these big pluses, I use Cockpit on Debian on my servers that run VMs rather than something like Proxmox, because 1. it's much less invasive, 2. the machines tend to run other things too, like docker containers.

Have been using it for this since ~2019.

The stats views are useful too, but I wouldn't install it for that on it's own.

edit: and honestly, there's not another good (maintained!) option that fits the niche of 'let me create libvirt VMs from a web browser on a single machine without taking over my whole system'.

Re:Cockpit: Web-based graphical interface for servers by Karrot_Kream on Monday October 16, 2023 @04:23AM (#37897058)
> Nobody who is comfortable with an ssh session uses Cockpit

> It's for people who want to point and click, can't do a bash for/while loop, don't understand pipe chaining commands, and don't like using vim.

Lol! Are you ready to deploy an ssh-capable terminal emulator at all times? What's wrong with making simple tasks simple?

I run multiple Raspberry Pi cameras (with nicer camera modules) to watch the pets if the family travels. The RTSP camera streams run in a systemd unit on their boxes. I have some healthchecks to make sure packets are being streamed as other systemd units. Each camera gets its own private IP on a ZeroTier network I manage. Since copilot is only run on demand, it's a no brainer to have around for administration.

Sometimes one of the cameras just starts streaming out blank frames. I'd much rather manage this through a copilot web interface on my phone when I'm on vacation than find a keyboard to use SSH with and restart the camera stream unit. I mean sure, I could write a healthcheck which checks whether blank frames are being emitted, but it's just so much easier to restart it via copilot than it is to write that healthcheck and it only ever happens a few times a year. Shrug.

Re:Cockpit: Web-based graphical interface for servers by arghwhat on Monday October 16, 2023 @04:30AM (#37897097)
> Lol! Are you ready to deploy an ssh-capable terminal emulator at all times?

What terminal emulator isn't ssh-capable? Where would you not be able to open a terminal emulator? I am so confused.

> What's wrong with making simple tasks simple?

The limited tasks exposed by cockpit are also simple (or depending on the individual, simpler) in a terminal, but if you want a point-and-click UI for just a few things, go ahead.

That cockpit is very limited and seemingly has no future does not mean you can't like what it does now. Just might be worth considering if there are better-supported alternatives.

Re:Cockpit: Web-based graphical interface for servers by Karrot_Kream on Monday October 16, 2023 @04:35AM (#37897118)
> Where would you not be able to open a terminal emulator? I am so confused.

A mobile device. I don't use terminal emulators without access to some non-touch keyboard so I want a simple interface on my mobile device.

> That cockpit is very limited and seemingly has no future does not mean you can't like what it does now. Just might be worth considering if there are better-supported alternatives.

Sure then compare cockpit with other webmin-esque tools, not a terminal emulator. These are different interfaces, much like I don't compare a voice interface with a mouse-oriented one.

Re:Cockpit: Web-based graphical interface for servers by lopkeny12ko on Monday October 16, 2023 @04:38AM (#37897140)
Terminal emulators, which can run SSH clients, are absolutely possible on a mobile device. https://termux.dev/en/
Re:Cockpit: Web-based graphical interface for servers by Karrot_Kream on Monday October 16, 2023 @04:51AM (#37897226)
I know. Android is a capable platform. I'm just not going to use it on a mobile device without a keyboard, sorry.
Re:Cockpit: Web-based graphical interface for servers by tw04 on Monday October 16, 2023 @06:24AM (#37897816)
There are countless terminal emulators for iOS that support ssh. Termius, prompt, and blink off the top of my head.
Re:Cockpit: Web-based graphical interface for servers by MaxMatti on Monday October 16, 2023 @09:25AM (#37899571)
And using any of them is more of a hassle than just using cockpit instead.
Re:Cockpit: Web-based graphical interface for servers by worksonmine on Monday October 16, 2023 @05:00AM (#37897288)
Possible and usable aren't the same thing. You can run it on an android watch as well, but would you?
Re:Cockpit: Web-based graphical interface for servers by jeroenhd on Monday October 16, 2023 @07:15AM (#37898149)
I use Termux to do SSH once in a a while. It makes me want to install a web UI to be honest. Most of the time I'm fumbling my long sudo password to restart some systemd service that crashed or manually running a maintenance script, that stuff is a massive pain on touch screens.
Re:Cockpit: Web-based graphical interface for servers by arghwhat on Monday October 16, 2023 @09:11AM (#37899393)
> A mobile device. I don't use terminal emulators without access to some non-touch keyboard so I want a simple interface on my mobile device.

Whether you want to use a terminal emulator on your phone doesn't change whether it's available.

I wouldn't want to use a clumsy web app with dangerous buttons that put me a single mis-touch on a poorly thought out touch target away from messing up/rebooting/powering down a server from my phone either, but that doesn't change that cockpit is available.

> Sure then compare cockpit with other webmin-esque tools, not a terminal emulator.

You compare it to the options available, which includes both terminals and webmin equivalents.

I don't know if there's much of a space left for cockpit or webmin equivalents though. There's hypervisors with dedicated UIs like Proxmox and oVirt, but that's not the same.

Re:Cockpit: Web-based graphical interface for servers by dig1 on Monday October 16, 2023 @04:31AM (#37897105)
I'd say it is half-baked webmin. You can only use it with NetworkManager, and if you have an even remotely complex network setup for VMs, NetworkManager usually must be turned off, which makes Cockpit practically unusable. virt-manager [1] is way more powerful for those who like managing VMs with GUI.

[1] https://virt-manager.org/

Re:Cockpit: Web-based graphical interface for servers by minimaul on Monday October 16, 2023 @04:48AM (#37897209)
I've not noticed any dependencies on NetworkManager when using Cockpit for VMs on Debian? My servers configure their networking using Debian's usual ifupdown, and NetworkManager isn't even installed!
Re:Cockpit: Web-based graphical interface for servers by dig1 on Monday October 16, 2023 @09:36AM (#37899717)
What Cockpit version? Maybe it is compiled differently on RH-based distros.
Re:Cockpit: Web-based graphical interface for servers by minimaul on Monday October 16, 2023 @03:55PM (#37905523)
https://packages.debian.org/search?keywords=Cockpit&searchon... says 188 to 287, for versions I’ve used.
Re:Cockpit: Web-based graphical interface for servers by KronisLV on Monday October 16, 2023 @04:12AM (#37896994)
> Like happyweasel said, it's basically webmin for Red Hat.

Seems pretty cool to me, "meet your users where they are" and all that.

I actually wonder what other options for this sort of web based management panel there are out there, maybe more DEB oriented ones.

Re:Cockpit: Web-based graphical interface for servers by INTPenis on Monday October 16, 2023 @04:57AM (#37897261)
A friend of mine actually found it very useful, and I think it helped him get into selfhosting on Fedora and RHEL. Now he mostly uses Ansible but I remember hearing a lot about cockpit during the start of his journey. He would use it to manage VMs, containers, and get a better grasp of SElinux denials.
Re:Cockpit: Web-based graphical interface for servers by worksonmine on Monday October 16, 2023 @05:09AM (#37897348)
> It's for people who want to point and click, can't do a bash for/while loop, don't understand pipe chaining commands, and don't like using vim.

I hate the mouse so much that I've got a script to move it off-screen (it follows my focus), and I usually live in my terminal. But trying Fedora on one of my Pis I tried cockpit since it was installed by default and I'm surprised how much I like it.

I think the lack of features is a good thing, there's not much bloat and it recommends extra packages I could like. While i love my terminal cockpit has been nice to get a quick glance. So far the only thing I'm missing is support for doas.

Every tool does not have to be able to do all the things.

Re:Cockpit: Web-based graphical interface for servers by oli-g on Monday October 16, 2023 @05:32AM (#37897491)
> It's for people who want to point and click, can't do a bash for/while loop, don't understand pipe chaining commands, and don't like using vim

"Instagram filters are for people who don't know how to work with Photoshop layers, don't understand basic color blending operations, and who just want to swipe."

I mean, yes.

Re:Cockpit: Web-based graphical interface for servers by distcs on Monday October 16, 2023 @06:19AM (#37897779)
I have no problem viewing pictures shared by those who don't understand basic color blending and just want to swipe.

But I may have a problem with people who can't do a bash for/while loop or understand pipe chaining commands be responsible for administrating my company servers.

I don't see how the comparison between adminstrating servers and sharing pictures on social media is a useful comparison.

Re:Cockpit: Web-based graphical interface for servers by addicted on Monday October 16, 2023 @06:33AM (#37897871)
I don’t understand why you think the fact that someone may choose to point and click to do something, a task which depending on the UI can be completely mindless and yet significantly safer eliminating any chance of making a mistake (by throwing in a typo for instance), does not know what a bash for/while loop is?

I suspect most people here used the HN web interface to post their comments, even though constructing an HTPP request to send to HN using curl to post your comment wouldn’t be significantly harder. The fact that they used the point and click HM Web UI doesn’t mean they’re incapable of constructing such a request where it actually is needed.

Re:Cockpit: Web-based graphical interface for servers by shortrounddev2 on Monday October 16, 2023 @06:37AM (#37897896)
I think there's an elitism within the Linux world to being a totally CLI user
Re:Cockpit: Web-based graphical interface for servers by jarym on Monday October 16, 2023 @07:02AM (#37898058)
There does seem to be a bit of it yes, but I thought it had become less common.

Reminds me of a colleague I met once who was happily boasting he's a 'real' HTML developer because he writes everything in Microsoft notepad. I took a look at his work and cried inside - broken tags, bad formatting and of course he didn't escape all his characters correctly.

Being able to type some characters on a keyboard does not make anyone superior to a user that uses a point+click interface.

Re:Cockpit: Web-based graphical interface for servers by BodyCulture on Monday October 16, 2023 @07:30AM (#37898263)
Diff is to type you need to have better understanding, what is good for IT work.
Re:Cockpit: Web-based graphical interface for servers by sgarland on Monday October 16, 2023 @08:20AM (#37898800)
> Being able to type some characters on a keyboard does not make anyone superior to a user that uses a point+click interface.

There isn’t a causal relationship, but the two are heavily correlated. Getting deep into the details of most server software means doing so via CLI, because the people who built the software intended it to be used there, since servers are usually headless.

Even if you run a DE, chances are high you’ll still end up editing some config files in a text editor, and running commands in a terminal emulator.

It’s a bit like [n]vi[m] - learning its esoteric commands doesn’t make you good at coding or ops, but there’s a decent chance you wouldn’t bother to spend the time learning it unless you needed the speed increases it grants you.

Re:Cockpit: Web-based graphical interface for servers by robertlagrant on Monday October 16, 2023 @06:43AM (#37897927)
OP mentioned ProxMox UI as being much better. I think you're focusing on the wrong point.
Re:Cockpit: Web-based graphical interface for servers by distcs on Monday October 16, 2023 @06:54AM (#37898005)
> I don’t understand why you think the fact that someone may choose to point and click to do something, a task which depending on the UI can be completely mindless and yet significantly safer eliminating any chance of making a mistake (by throwing in a typo for instance), does not know what a bash for/while loop is?

I don't think like that at all. Of course someone can know bash for/while loop and still choose to use a point-and-click tool to administrate their servers. Nothing wrong with that.

Not sure where in my message did I say that if someone chooses to point and click, then they don't know what a bash for/while loop is.

What I said in my comment is that if someone doesn't know what a bash for/while loop is, then I may be uncomfortable adminstrating my servers.

My point was to show that comparing adminstrating servers and sharing pictures on social media is not a useful comparison.

Re:Cockpit: Web-based graphical interface for servers by shortrounddev2 on Monday October 16, 2023 @06:36AM (#37897888)
What if they CAN do a bash for/while loop, but they prefer not to because bash is the ugliest effing language they've ever seen
Re:Cockpit: Web-based graphical interface for servers by distcs on Monday October 16, 2023 @06:57AM (#37898023)
That is totally fine. I was talking about people who CANNOT do a bash for/while loop. You are talking about people who CAN do a bash for/while loop but choose not to. We are talking about different types of people. I am comfortable with the latter type of people administrating my servers. I am not comfortable about the former.

Anyway, what has that got to do with my point though that sharing pictures on social media is not a meaningful comparison to make with something like administrating servers?

Re:Cockpit: Web-based graphical interface for servers by shortrounddev2 on Monday October 16, 2023 @09:56AM (#37899968)
> I am comfortable with the latter type of people administrating my servers. I am not comfortable about the former.

idk what kind of legacy orgs people in this thread work for where there are Linux sysadmins working for their companies which directly manage server configs and security settings. "Administering my servers" is an interesting phrase in 2023, because there often aren't any servers to directly administer (even a VPS is hard to find). The last few companies I worked for all used some kind of virtualized infrastructure and usually through some kind of declarative interface (Docker, Kubernetes, or some terraform-style tool). Certainly, the people who OWN the servers have sysadmins managing these things, but such things are an abstraction these days, where many organizations don't have to deal with CLI configuration and bash, and just leave infrastructure to devops or even the developers themselves

Re:Cockpit: Web-based graphical interface for servers by worksonmine on Monday October 16, 2023 @11:42AM (#37901430)
> The last few companies I worked for all used some kind of virtualized infrastructure and usually through some kind of declarative interface (Docker, Kubernetes, or some terraform-style tool)

Which unfortunately is a problem in itself. A lot of core knowledge is lost and many people running infrastructure don't know how to read actual logs and debug outside of what the GUI shows. Just like you mention it's not even VPS these days it's a Dockerfile pushed to some cloud.

Copy/paste a Dockerfile, edit some yaml for the CI and claim you know DevOps. It's a shame really. I don't mind a nice minimal GUI when it makes sense, but it's important to understand the pieces below it.

Re:Cockpit: Web-based graphical interface for servers by shortrounddev2 on Monday October 16, 2023 @12:04PM (#37901833)
> Which unfortunately is a problem in itself. A lot of core knowledge is lost and many people running infrastructure don't know how to read actual logs and debug outside of what the GUI shows. Just like you mention it's not even VPS these days it's a Dockerfile pushed to some cloud.

Plenty of k8s users are accessing their services and logs through CLI. It's just that the relevant logs are from the application and not whatever the underlying infrastructure is. It makes it way easier to have amazon deal with the underlying server and just let me focus on the actual application. Saves labor costs (in theory) by not having to hire an IT guy, and you can put more faith in the security practices of the cloud providers than in your own organization.

Your criticism reads like old school developers complaining about new devs learning Javascript without learning C or Assembly. Technology progresses, the set of baseline skills required to do your job changes. Few software engineers know anything about hardware or electrical engineering, but that used to be a requirement many decades ago.

> Copy/paste a Dockerfile, edit some yaml for the CI and claim you know DevOps. It's a shame really. I don't mind a nice minimal GUI when it makes sense, but it's important to understand the pieces below it.

What you've described is a way to make it dead simple for engineers to develop code without having to interface with a human being (a sysadmin) in between. It makes deployments consistent and easy. When you add CI/CD into the mix, you don't even need to run the command anymore, you just merge the master and swap your staging and production instances. Amazon can hire the sysadmins, the client can hire engineers.

Re:Cockpit: Web-based graphical interface for servers by worksonmine on Monday October 16, 2023 @12:23PM (#37902145)
> Your criticism reads like old school developers complaining about new devs learning Javascript without learning C or Assembly.

Valid point, but I'm a javascript dev tired of helping my peers figure out their tools when they're not even interested in discussing lower level topics on a normal day. I wish I had some grumpy old-timers around me to learn from.

> It makes deployments consistent and easy.

Consistent on the platform chosen at start, if you run into egress costs you might already be locked in to that platform and migrating AWS container format for every service might take time for those who don't understand what it does exactly. One simple mistake can be really costly if you forget to set limits. It's dangerous to put too much power in the hands of people who don't understand the possible consequences.

Don't get me wrong, I like modern software dev and day to day tasks should be easy. But too many people are lazy and uninterested in the details behind their craft. "Just install half the universe, why bother reinventing the wheel" is too common. You're not a DevOps unless you can setup and manage the workers on a CI on bare metal, you shouldn't always go that route in production though, but the knowledge is important.

Re:Cockpit: Web-based graphical interface for servers by sgarland on Monday October 16, 2023 @06:48PM (#37907713)
> Your criticism reads like old school developers complaining about new devs learning Javascript without learning C or Assembly.

It’d be great if JS devs could learn JS, but I’m not holding my breath.

Your comments read like someone who doesn’t believe you need to understand how the abstractions work, which tends to end in failure (or extremely high cloud bills).

Re:Cockpit: Web-based graphical interface for servers by distcs on Monday October 16, 2023 @12:12PM (#37901967)
> idk what kind of legacy orgs people in this thread work for where there are Linux sysadmins working for their companies which directly manage server configs and security settings.

I don't know if you consider Amazon/AWS "legacy org". When I worked there I didn't think it was a legacy org. Yet they needed skilled Linux sysadmins. Sure they are called by fancy names like infrastructure engineer, production engineer, etc. but the work they did used core Linux kernel skills, scripting skills and programming skills, just to name a few of the skills.

A few years later I worked for another cloud provider and it was no different. I don't understand why you think only legacy orgs care about good system-administration skills.

Re:Cockpit: Web-based graphical interface for servers by shortrounddev2 on Monday October 16, 2023 @12:37PM (#37902433)
Yes, obviously the people who offer the virtualized infrastructure are going to need the sysadmins. I'm talking about the majority of businesses and engineers which aren't cloud service providers, but rather customers of those providers.
Re:Cockpit: Web-based graphical interface for servers by sgarland on Monday October 16, 2023 @06:51PM (#37907741)
People who don’t know how to bootstrap a Linux box have no business spinning up a K8s cluster. It will eventually fail in a Linux-y way, and they will be hopelessly lost, begging ChatGPT for help.

Abstractions leak. They’re great, but you still need to know how they work.

Re:Cockpit: Web-based graphical interface for servers by talent_deprived on Monday October 16, 2023 @09:57AM (#37899971)
Actually powercrap is far uglier than Bash, for real.
Re:Cockpit: Web-based graphical interface for servers by shortrounddev2 on Monday October 16, 2023 @10:49AM (#37900614)
Being a somewhat C/C# inspired bracket syntax, Powershell's syntax is easily better than bash's schizophrenic usage of brackets and semi-colons. Somehow it seems that the people who measure their self worth and identity based on their proclivity for typing in a terminal are also the ones who bitch the most about how long cmdlet names are. I didn't realize Linux users were so allergic to typing (not to mentions aliases and auto-complete)
Re:Cockpit: Web-based graphical interface for servers by rafaelmn on Monday October 16, 2023 @07:08AM (#37898096)
Your comparison implies that the web UI is faster than SSH once you know these tools ?

You could have godlike Photoshop skills and it will take orders of magnitude more effort to get results. With SSH and shell scripts you'll likely be faster than the web UI once you're skilled enough. And it's easy to automate.

Re:Cockpit: Web-based graphical interface for servers by saynay on Monday October 16, 2023 @08:27AM (#37898889)
I've been using it because we deliver application servers based on Red Hat / CentOS to customers that are unfamiliar with Linux. 99% of the time, they do not need to log in to the command-line for anything. When they do, Cockpit has been a lot easier for them to understand than navigating ssh and bash.
Re:Cockpit: Web-based graphical interface for servers by talent_deprived on Monday October 16, 2023 @09:50AM (#37899879)
Agree, all of it, like the term Red Hatter. This cockpit-project thing came up on Reddit yesterday as well. It feels like the podman astroturfing that was so strong last year. It also feels like Red Hat hired some of Jetbrains' hyper PR astroturfers who troll the Java and webdev forums on various sites, extolling the extreme virtues of all Jetbrains' products.
Re:Cockpit: Web-based graphical interface for servers by cuddlyogre on Monday October 16, 2023 @10:50AM (#37900628)
Your post implies there is something obviously better.

Genuine question.

What would that be? I'm always on the lookout for better tools.

Re:Cockpit: Web-based graphical interface for servers by notabee on Monday October 16, 2023 @11:31AM (#37901241)
I tend to not ever interact with /r/linux for this reason. It always seems overrun with corporate mouthpieces. I would really love to see a platform take this problem seriously, but I think for most of them (even this one) that would threaten the money supply either directly or indirectly. I'm tired of the "just don't talk about it" decorum when it's such a huge problem.
Re:Cockpit: Web-based graphical interface for servers by brancz on Monday October 16, 2023 @11:55AM (#37901682)
I was architect leading all things Observability at Red Hat until 3 years ago there was an absurd amount of support for this project internally I never understood it either. But there were huge amounts of customer support, sales and engineers who adore this thing, I genuinely don't understand the appeal when we had next level cluster-wide Observability supported on and off OpenShift.

Even being in a leadership position and basically competing within Red Hat against this, I found no answer to your question.

Re:Cockpit: Web-based graphical interface for servers by axus on Monday October 16, 2023 @02:46PM (#37904272)
This is a good analogy. Maybe once every few years I'll set up Windows Servers. Being able to use the GUI and not keep a bunch of PowerShell on-hand means I can do it without help, and get on with my day.

Meanwhile I'm happier doing everything on command line on Linux, understanding and learning all its features has been worthwhile. But I can imagine some people just want a server set up and to get on with their day.

Re:Cockpit: Web-based graphical interface for servers by bonney_io on Monday October 16, 2023 @04:35PM (#37906174)
> It's for people who want to point and click, can't do a bash for/while loop, don't understand pipe chaining commands, and don't like using vim.

This sounds like the dream.