Giter Club home page Giter Club logo

glancesautoinstall's Introduction

Glances Auto Install

A quick and dirty way to install Glances on your system.

Just enter the following command (with an admin account):

curl -L https://bit.ly/glances | /bin/bash

Available for following operating system:

  • Alpine
  • Arch
  • CentOS
  • CentOS minimal based
  • Debian
  • elementary OS
  • Fedora
  • LinuxMint
  • macOS
  • OpenSuse
  • Oracle EL
  • Raspbian
  • Redhat
  • Redhat Enterprise Server
  • Scientific aka SL
  • Ubuntu

Please contribute to add your favorite OS !

To uninstall Glances from your system, clone the current repository and run:

./uninstall.sh

glancesautoinstall's People

Contributors

blaubaron avatar cr1cr1 avatar jquagga avatar ldouchy avatar luzfcb avatar monujee avatar nalpine avatar neipcs avatar nicolargo avatar orbin avatar sconaway avatar spezialist1 avatar the-lazy-fox avatar thorian93 avatar tomauty avatar tommye123 avatar toxel avatar winter0mute avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

glancesautoinstall's Issues

Install is incompatible with pip 10.0

I have been trying to build a Docker image for glances, but I get the following error:

W: --force-yes is deprecated, use one of the options starting with --allow instead.
Install dependancies
Collecting pip
  Downloading https://files.pythonhosted.org/packages/0f/74/ecd13431bcc456ed390b44c8a6e917c1820365cbebcb6a8974d1cd045ab4/pip-10.0.1-py2.py3-none-any.whl (1.3MB)
Installing collected packages: pip
  Found existing installation: pip 8.1.1
    Not uninstalling pip at /usr/lib/python2.7/dist-packages, outside environment /usr
Successfully installed pip-10.0.1
Traceback (most recent call last):
  File "/usr/bin/pip", line 9, in <module>
    from pip import main
ImportError: cannot import name main
The command '/bin/sh -c curl -L https://raw.githubusercontent.com/nicolargo/glancesautoinstall/master/install.sh | /bin/bash && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 1

I've tried with Ubuntu Xenial and Bionic as base image. I've tried the develop and release/glances2 branches. Always the same error.

After in-place upgrading Debian-11.7 -> Debian-12.0 the glances binary no longer works?

Dear support,
I found that after in-place upgrading Debian-11.7 -> Debian-12.0 the glances binary no longer works:

# glances Traceback (most recent call last): File "/usr/local/bin/glances", line 5, in <module> from glances import main ModuleNotFoundError: No module named 'glances'

I want to hear the opinion of the community on this?
Very thanks for the support.

No SUSE and OpenSUSE support, Script fails to install

So following the autoinstall instructions i get this output. It fails saying that the script is not compliant with my system. How do i go about fixing this?

~/bin> sh ./install.sh
Detected system: openSUSE Leap
Sorry, GlancesAutoInstall script is not compliant with your system.
Please read: https://github.com/nicolargo/glances#installation
:~/bin> wget -O- https://bit.ly/glances | /bin/bash
--2017-10-12 21:45:51-- https://bit.ly/glances
Resolving bit.ly (bit.ly)... 67.199.248.10, 67.199.248.11
Connecting to bit.ly (bit.ly)|67.199.248.10|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://raw.githubusercontent.com/nicolargo/glancesautoinstall/master/install.sh [following]
--2017-10-12 21:45:52-- https://raw.githubusercontent.com/nicolargo/glancesautoinstall/master/install.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.0.133, 151.101.64.133, 151.101.128.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.0.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3611 (3.5K) [text/plain]
Saving to: ‘STDOUT’

100%[=========================================================================>] 3,611 --.-K/s in 0s

2017-10-12 21:45:53 (68.5 MB/s) - written to stdout [3611/3611]

Detected system: openSUSE Leap
Sorry, GlancesAutoInstall script is not compliant with your system.
Please read: https://github.com/nicolargo/glances#installation

Upgrading system pip may cripple the system

At least in Ubuntu 16.04, upgrading system pip was not a very sensible action (required sudo apt-get purge python-pip && sudo apt-get install python-pip to recover)

do_with_root pip install --upgrade pip

If your only goal is to avoid having some specific broken version, it might be nice to indicate so.

GCC, Pip and setuptools

Any reason why not to try to autoinstall gcc lib on Ubuntu at #L57?

IMO, pip should also be upgraded first with pip install --upgrade pip at #L90 (optional)

and then setuptools should be included on $DEPS at #L89.

#my2cents

MacOS X Compability

Hey guys,

i would love to see OS X Compability here.
A "pip install glances" on OS X Sierra worked just fine and glances started without any visible issues to me.
If you need any information to make this work, i will be giving them to you asap.

best regards,
ss89

Should warn about homebrew installation

Source: nicolargo/glances#1448 (comment) (by @KenanSulayman)

The “Glances Auto Install script” as listed on the website should not install Homebrew without explicit warning and the website should explicitly mention that the automated installation will try install Homebrew on the host system.

I deeply abhor Homebrew and would have loved to be given a choice, and even better, had glances use my existing MacPorts installation.

Thanks

Install script isn't working on Ubuntu 20.04

The script is not working on Ubuntu 20.04

[So Aug 02][14:52:00][root]@[nuc-mini-server]:[~]# curl -L https://bit.ly/glances | /bin/bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   167  100   167    0     0    521      0 --:--:-- --:--:-- --:--:--   521
100  5081  100  5081    0     0   7353      0 --:--:-- --:--:-- --:--:-- 4961k
Detected system: Ubuntu
...
Es wurden 777 kB in 1 s geholt (633 kB/s).
Paketlisten werden gelesen... Fertig
W: --force-yes ist veraltet, verwenden Sie stattdessen eine der Optionen, die mit --allow beginnen.
Paketlisten werden gelesen... Fertig
Abhängigkeitsbaum wird aufgebaut.
Statusinformationen werden eingelesen.... Fertig
Hinweis: »python-dev-is-python2« wird an Stelle von »python-dev« gewählt.
W: --force-yes ist veraltet, verwenden Sie stattdessen eine der Optionen, die mit --allow beginnen.
E: Paket python-pip kann nicht gefunden werden.

Glances installation via install.sh script fails on VPS

Description

When installing glances via the install.sh script on a VPS hosted by Strato the installation fails with the following messages:
Server 1:
Detected system: strato
Server 2:
Detected system: plesk

The scripts seems to be unable to use the lsb_release tool on the servers although it is installed. When using the workaround:
find /etc -type f -maxdepth 1 \( ! -wholename /etc/os-release ! -wholename /etc/lsb-release -wholename /etc/\*release -o -wholename /etc/\*version \) 2> /dev/null
it gets the following outputs:
/etc/strato-release /etc/debian_version
and
/etc/plesk-release /etc/debian_version /etc/strato-release

which result in the error that this is a unsupported system.

Servers

Ubuntu 14.04 LTS 64bit
Ubuntu 14.04 LTS 64bit + Plesk 12.5

As far as I can see that this issue is related to the way the distribution detection is done.
Maybe the script simply needs to be expanded with the values I stated above. I would create a pull request if that is the case. If further development would be needed, then I personally can't help.

If further information is needed I will provide it.

I appreciate any support!

Pi (dietPi) // DEBIAN // Installscript fails

Describe the bug
In the installation/setup script are wrong package names called. So the simple install instruction from website don't work.

used command:

curl -L https://bit.ly/glances | /bin/bash

Error:

root@PiBox:~# curl -L https://bit.ly/glances | /bin/bash
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   167  100   167    0     0    662      0 --:--:-- --:--:-- --:--:--   662
100  5144  100  5144    0     0   9473      0 --:--:-- --:--:-- --:--:--  9473
Detected system: debian
Paketlisten werden gelesen… Fertig
Abhängigkeitsbaum wird aufgebaut… Fertig
Statusinformationen werden eingelesen… Fertig
Hinweis: »python-dev-is-python2« wird an Stelle von »python-dev« gewählt.
Paket python-pip ist nicht verfügbar, wird aber von einem anderen Paket
referenziert. Das kann heißen, dass das Paket fehlt, dass es abgelöst
wurde oder nur aus einer anderen Quelle verfügbar ist.
Doch die folgenden Pakete ersetzen es:
  python3-pip

E: Für Paket »python-pip« existiert kein Installationskandidat.
E: Paket python-docker kann nicht gefunden werden.
root@PiBox:~#

To Reproduce
Steps to reproduce the behavior:

  1. Install dietPi on Raspian
  2. Go to official website: https://nicolargo.github.io/glances/
  3. Copy command from page
  4. enter as root/sudo in terminal

Expected behavior
Clean Setup

Desktop (please complete the following information):

  • OS: Linux PiBox 5.10.63-v8+ 1488 SMP PREEMPT Thu Nov 18 16:16:16 GMT 2021 aarch64 GNU/Linux

Additional context
None

do not ruin the permissions of the pip cache folder

install python packages with pip as the superuser, using sudo without using the -H modifier, causes permissions issues in pip cache folder.

it was necessary, I run sudo chown -R $USER $HOME/.cache/pip/ to correct the permissions

Unit Test Across supported OSes Using Docker [Suggestion]

I wanted to throw out an improvement suggestion, which is to launch docker containers and set up a .travis.yml file to create a matrix of tests for each supported OS.

We could put in a flag or something to dump the output into a file and use that to verify the installation was successful.

Python3

Is there any reason why not using python3 by default (via pip3 on ubuntu) ?

Debian-12.0 glances autoinstall: Install dependencies error: externally-managed-environment

Dear support,
I tried to reinstall glances with the glancesautoinstall script (curl -L https://bit.ly/glances | /bin/bash) and got the following error:

`# curl -L https://bit.ly/glances | /bin/bash
.
.
.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Install dependencies
error: externally-managed-environment

× This environment is externally managed
╰─> To install Python packages system-wide, try apt install
python3-xyz, where xyz is the package you are trying to
install.

If you wish to install a non-Debian-packaged Python package,
create a virtual environment using python3 -m venv path/to/venv.
Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
sure you have python3-full installed.

If you wish to install a non-Debian packaged Python application,
it may be easiest to use pipx install xyz, which will manage a
virtual environment for you. Make sure you have pipx installed.

See /usr/share/doc/python3.11/README.venv for more information.

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.`

As far as I understand, you now need to change the way you install glances in a Debian-12 environment?
Very thanks for the support.

Installation is not compatible with last ubuntu version 20.04

Hi,

I am trying to build your Dockerfile in order to get last version of glances, however the installation script is not compatible with latest ubuntu.

python-pip is not supported anymore, either you should use migrate to python3 (with python3-pip) or use the following to get it install : curl https://bootstrap.pypa.io/get-pip.py --output get-pip.py

In the mean time, I will try to work on a Dockerfile to do it.
Thank you.

EDIT: I am doing a PR on your main repo with an updated Dockerfile. I let you have a look. Thanks again.

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.