Skip to content
subhashc edited this page Dec 18, 2014 · 5 revisions

Cockpit Howto-Install Cockpit on RHEL 7.0

http://cockpit-project.org/

Cockpit is developed by Red Hat browser server management tool, the advantage is no intermediate layer, and can manage a variety of services

Easy to use

Cockpit is perfect for new sysadmins, allowing them to easily perform simple tasks such as storage administration, inspecting journals and starting and stopping services.

No interference

Jumping between the terminal and the web tool is no problem. A service started via Cockpit can be stopped via the terminal. Likewise, if an error occurs in the terminal, it can be seen in the Cockpit journal interface.

Multi-server

You can monitor and administer several servers at the same time. Just add them with a single click and your machines will look after its buddies.

Steps # 1

Enable the distro Repo's for dependencies

  • rpm -ivh https://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-5.noarch.rpm

Download glib2 from Redhat official repo

  • rpm -Uvh glib-networking-2.40.0-1.el7.x86_64.rpm glib2-2.40.0-4.el7.x86_64.rpm glib2-devel-2.40.0-4.el7.x86_64.rpm

  • yum install git rpm-build yum-utils make openssl libssh-devel libssh-0.6.3-1 libssh-devel-0.6.3-1

  • git clone https://github.com/cockpit-project/cockpit.git

  • yum install trickle nbd-server npm python-libguestfs qemu mock qemu-kvm python curl libvirt-client libvirtd qemu-nbd krb5-workstation krb5-server

  • npm install phantomjs

Step # 2

  • cd cockpit
  • srpm=$(tools/make-srpm)
  • yum-builddep $srpm
  • mkdir build
  • cd build
  • ../autogen.sh --prefix=/usr --enable-maintainer-mode --enable-debug
  • make && make install
  • cp ../src/bridge/cockpit.pam.insecure /etc/pam.d/cockpit
  • sh -c "cat ../src/bridge/sshd-reauthorize.pam >> /etc/pam.d/sshd"
  • systemctl enable cockpit.socket
  • systemctl start cockpit.service
  • Point your browser to https://IP:9090 Login as root

If you are facing any issues follow the logs

  1. Check user authentication - /var/log/secure
  2. Query the systemd journal - journalctl -b | grep cockpit
  3. Check syslog - /var/log/message

Reference:-

###Subscribing here if you're going to be building the cutting edge cockpit:-

###For quick support:- join on IRC at #cockpit on FreeNode.

Friendly Support reach me @

Clone this wiki locally