Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cockpit Web Console Install
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
alexlabarge
n00b
n00b


Joined: 04 Oct 2023
Posts: 1
Location: Washington, D.C.

PostPosted: Wed Oct 04, 2023 4:59 pm    Post subject: Cockpit Web Console Install Reply with quote

[Good afternoon everyone,

I wanted to share my results to get Cockpit (https://cockpit-project.org/) working on Gentoo. I haven't finished the bash script below, but I can confirm following the steps worked.

Do you guys think it would be beneficial to get another ebuild together? I see a few others have done so, but nothing recent.

Terminal in Browser: https://drive.google.com/file/d/1265ZHhl9dqHfhW9rHQzn_6JSvtCmCF8S/view?usp=sharing
Live System Stats: https://drive.google.com/file/d/1CdUQIuoDkJuvq3A-3SnEEwhaMUFjRoQA/view?usp=sharing

Steps:

# All Commands as Sudo or Root

# Update System
sudo emerge --sync

# Install Git
sudo emerge --ask --verbose dev-vcs/git

# Resolve Dependency Problems for Cockpit (Before we Even Try to Install)
sudo emerge --ask net-libs/libssh2
# Performance Co Pilot is a Dependency of Cockpit - and then has its own nested dependency problems :)
# We will resolve the depencies, then clone, and then build
# FIX DEPENDENCY PROBLEM: Project ERROR: Unknown module(s) in QT: printsupport
sudo emerge -av dev-qt/qtprintsupport

# Git Clone Performance Co Pilot
sudo mkdir -p /opt/git_builds
cd /opt/git_builds
sudo git clone https://github.com/performancecopilot/pcp.git

# Build Performance Co Pilot
# Make the PCP User First as Required per PCP Documentation
sudo groupadd -r pcp
sudo useradd -c "Performance Co-Pilot" -g pcp -d /var/lib/pcp -M -r -s /usr/sbin/nologin pcp
cd /opt/git_builds/pcp
# Configure PCP *** DO NOT USE ./Makepkgs --verbose *** <- This is for building an RPM, etc.
sudo ./configure
# Make PCP
sudo make -j8
# Install PCP
sudo make -j8 install
# Check to See if PCP is Installed as of 4 Oct 23: pcp version 6.1.1
sudo pcp --version

# OpenSSH is a Dependency of Cockpit
sudo emerge --ask net-misc/openssh
sudo systemctl start sshd
sudo systemctl enable sshd

# Git Clone Cockpit
cd /opt/git_builds
sudo git clone https://github.com/cockpit-project/cockpit.git

# Build Cockpit
cd /opt/git_builds/cockpit
sudo ./autogen.sh --prefix=/usr
sudo make -j8
sudo make -j8 install

# Resolve Cockpit Logon Problems with PAM (Pluggable Authentication Modules)
sudo sh -c '
echo "#%PAM-1.0" > /etc/pam.d/cockpit
echo "auth include system-remote-login" >> /etc/pam.d/cockpit
echo "account include system-remote-login" >> /etc/pam.d/cockpit
echo "password include system-remote-login" >> /etc/pam.d/cockpit
echo "session include system-remote-login" >> /etc/pam.d/cockpit
'

# Start and Enable Cockpit with SystemD
sudo systemctl start cockpit
sudo systemctl enable cockpit

# Optional - Haven't Dug into it yet, but the pmlogger service is not starting due to incorrect environmental variables in the pmdc.conf (another service for PCP).
# So, disabling pmlogger is not enough, because it then gets called by pmlogger_daily.timer. So, we need to disable the timer as well.
# I will use a different overall performance logging mechanism like Grafana, but cockpit overall functionality is there.
sudo systemctl disable pmlogger_daily.timer
sudo systemctl stop pmlogger_daily.timer
sudo systemctl disable pmlogger
sudo systemctl stop pmlogger
# Will also mask them for now
sudo systemctl mask pmlogger_daily.timer
sudo systemctl mask pmlogger
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Wed Oct 04, 2023 7:38 pm    Post subject: Reply with quote

Have you seen this
https://gpo.zugaina.org/app-admin/cockpit
?
_________________
:)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum