Giter VIP home page Giter VIP logo

cockpit_ynh's Introduction

Cockpit for YunoHost

Integration level Working status Maintenance status

Install Cockpit with YunoHost

Lire ce readme en français.

This package allows you to install Cockpit quickly and simply on a YunoHost server. If you don't have YunoHost, please consult the guide to learn how to install it.

Overview

Cockpit is an interactive server admin interface. It is easy to use and very lightweight. Cockpit interacts directly with the operating system from a real Linux session in a browser.

Shipped version: 239~ynh2

Screenshots

Screenshot of Cockpit

Documentation and resources

Developer info

Please send your pull request to the testing branch.

To try the testing branch, please proceed like that.

sudo yunohost app install https://github.com/YunoHost-Apps/cockpit_ynh/tree/testing --debug
or
sudo yunohost app upgrade cockpit -u https://github.com/YunoHost-Apps/cockpit_ynh/tree/testing --debug

More info regarding app packaging: https://yunohost.org/packaging_apps

cockpit_ynh's People

Contributors

ericgaspar avatar liberodark avatar orhtej2 avatar yalh76 avatar yunohost-bot avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

cockpit_ynh's Issues

Install succeeds but no app on home page

Yunohost version: 4.3.4.1, virtual machine.
Install from command line succeeds, but app is not accessible from /cockpit url and doesn't show up as icon on yunohost home page.

Installation on a subdir does not work

I installed the app on /monitor as suggested. The install succeeded, but the login page is broken. Here is what I see in the console:

Échec du chargement pour l’élément <script> dont la source est « https://mydomain.fr/cockpit/static/login.js ».

Indeed, it should not be /cockpit, but /monitor !
Also, https://mydomain.fr/monitor/static/login.js, https://mydomain.fr/monitor/cockpit/static/login.js don't work either.

I checked cockpit.conf, and it contains UrlRoot = /monitor, so that's good.

Cockpit service inactive/dead

Describe the bug

The cockpit service seems to die a few minutes after rebooting the service. However when I connect to the app on my server, it seems to work normally, except for the history since it was dead.

Context

  • Hardware: Old laptop
  • YunoHost version: 11.2.3
  • I have access to my server: Through SSH & through the webadmin & direct access via keyboard / screen
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: no
    • If yes, please explain:
  • Using, or trying to install package version/branch: 188~ynh2

Steps to reproduce

Run the cockpit service. Wait a few minutes (can't say exactly) and check the status.

Expected behavior

I expect cockpit to remain active.

Logs

So this bugs me but I can't seem to find any trace of what went wrong in the logs : https://paste.yunohost.org/mayoqulisa
Maybe there's somewhere else I could find more detailed logs ?

Thank you for you help !

Getting message "Please enable javascript" on login page

Describe the bug

Getting message "Please enable javascript" on login page and I'm unable to access the Cockpit UI.

Context

  • Hardware: virtualized through QEMU
  • YunoHost version:
yunohost: 
  repo: stable
  version: 11.0.9.15
yunohost-admin: 
  repo: stable
  version: 11.0.10
moulinette: 
  repo: stable
  version: 11.0.9
ssowat: 
  repo: stable
  version: 11.0.9
  • I have access to my server: Through SSH | through the webadmin | direct access via keyboard / screen
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: no

Steps to reproduce

  • *If you performed a command from the CLI, the command itself is enough:
    sudo yunohost app install cockpit
  • Attempt to access cockpit through URL where it was installed

Expected behavior

I would be greeted by the login page

Logs

Oct 04 18:40:18 mydomain.tld cockpit-ws[4776]: cockpit-ws: couldn't load configuration file: /etc/cockpit/cockpit.conf: Permission denied
Oct 04 18:45:12 mydomain.tld cockpit-ws[5195]: cockpit-ws: Failed to open certificate file /run/cockpit/tls/e3b0c44298fc1c149afbf4c8996fb92427ae41e4>

If applicable and useful, add screenshots to help explain your problem.

Possible fix / workaround

I was able to access Cockpit's login page after executing:

sudo chmod +r /etc/cockpit/cockpit.conf

Limited user access

Describe the bug

After logging into the cockpit UI, a user will be of limited access if the are not in the sudo group.

Context

  • Hardware: virtualized through QEMU
  • YunoHost version:
yunohost: 
  repo: stable
  version: 11.0.9.15
yunohost-admin: 
  repo: stable
  version: 11.0.10
moulinette: 
  repo: stable
  version: 11.0.9
ssowat: 
  repo: stable
  version: 11.0.9
  • I have access to my server: Through SSH | through the webadmin | direct access via keyboard / screen
  • Are you in a special context or did you perform some particular tweaking on your YunoHost instance?: no

Steps to reproduce

  • If you performed a command from the CLI, the command itself is enough. For example:
    sudo yunohost app install cockpit
  • Apply the workaround on #16 to be able to access the web ui:
    sudo chmod +r /etc/cockpit/cockpit.conf
  • Access Cockpit's web UI through the URL it was installed in.
  • Note the "Limited Access" entry in the top right bar. When an user has administrator access, it should read "Administrative access".*

Expected behavior

I expected to be able to somehow let users escalate privileges through the yunohost UI (i.e. to be able to add them to the sudo group through the UI)

There's no documentation either so I'm providing a workaround below.

Logs

N/A

Workaround

Open a terminal in yunohost and add the user to the sudo group:

sudo gpasswd -a myuser sudo

Consider adding the app to the community list

Hello !

This is a friendly automatic notice from the Yunohost Apps team : our tool noticed that your app is pretty interesting but is not listed in the community list !

Please consider making a pull request to add it, such that people can easily learn about its existence from this page. If you declare your app as working, you might also benefit from automatic tests on the app C.I..

It is relevant to add your app to the list even if it's not working or unmaintained since it might still help people who might want to continue packaging the app. Just be sure to correctly flag it as notworking/unmaintained.

Checkout the README to learn how to add your app to the list (should take only a few minutes).

Datalove <3,

The YunoHost team.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.