djmelik / archey Goto Github PK
View Code? Open in Web Editor NEWArchey is a system information tool written in Python.
Home Page: http://github.com/djmelik/archey/blob/master/archey
License: Other
Archey is a system information tool written in Python.
Home Page: http://github.com/djmelik/archey/blob/master/archey
License: Other
Here's some input for the upcoming new version.
speedtest
) and cached in a text file.Look into how this can be compacted / neatly formatted into columns to save space.
Tip: External IP can be efficiently checked with dig +short myip.opendns.com @resolver1.opendns.com
.
$ archey -h
-p --ports Show ports
-d --devices Show devices
-n --network Show network
-s --security Show security
Model: Mac mini (Mid 2011)
System: High Sierra 10.13.5
Serial: 1234567890
Battery: 10 hours
HARDWARE
CPU: i5 2.30GHz
GPU: Intel 3000
RAM: 8 GB
SSD: 500 GB
Display: 1440x900
PORTS
USB 2.0 x 3
FireWire 400 x 2
Mini DisplayPort
Ethernet
SD reader
Microphone
Headphone
DEVICES
Apple Wireless Keyboard (53% battery)
Apple Wireless Trackpad (26% battery)
Apple Cinema Display 30” (2560x1440)
Apogee Duet One
NETWORK
User: user@host
Local: 10.0.1.5
Public: 12.34.56.78
Speed: 50/10 Mbit/s
Space: 275 GB
Trash: 30 GB
Uptime: 10 days
SECURITY
SSH ✘
Siri ✘
Location ✘
Firewall ✔
FileVault ✔
Password ✔
Wi-Fi ✔
Bluetooth ✘
Airdrop ✘
Suggestions ✘
When running archey I don't get WM info when I'm really using XMonad.
Archey now gives the following error when run:
curl: (7) Failed to connect to eth0.me port 80: Connection refused
As a consequence, no IP address is shown.
It seems that eth0.me
is no longer available.
Hello guys, since this has been inactive project for quite a while I have made a fork of this repo. I updated archey2 in AUR to point to my repo. I am planning to keep maintaining this project. For any issues or pull requests, go to my fork. Cheers
Forked repo link: XdaemonX/archey
Hello,
It seems in free from procps-ng 3.3.10 buff and cache are combined together. See attached logs:
% free -V
free from procps-ng 3.3.10
% free -m
total used free shared buff/cache available
Mem: 3957 551 3041 17 364 3193
Swap: 1023 0 1023
I suggest to change line 215 form:
used = int(ram[2]) - int(ram[5]) - int(ram[6])
to:
used = int(ram[2]) - int(ram[4]) - int(ram[5])
Or handle it a bit smarter, depending on type of free result.
EDIT:
It seems usage of free -wm was better approach :) - proper pull request is already merged. Closing this issue. Thanks!
BR
E: archey: wrong-file-owner-uid-or-gid usr/ 1000/1000
E: archey: wrong-file-owner-uid-or-gid usr/bin/ 1000/1000
E: archey: wrong-file-owner-uid-or-gid usr/bin/archey 1000/1000
E: archey: wrong-file-owner-uid-or-gid usr/share/ 1000/1000
E: archey: wrong-file-owner-uid-or-gid usr/share/archey/ 1000/1000
E: archey: wrong-file-owner-uid-or-gid usr/share/archey/CHANGELOG 1000/1000
E: archey: wrong-file-owner-uid-or-gid usr/share/archey/COPYING 1000/1000
It's not possible to use a -32.5GB ram on a system that only has 24GB.
Fedora 21 version installed from rpm:
:/------------:// OS: Fedora 21 x86_64
:------------------:// Hostname: thebes
:-----------/shhdhyo/-:// Kernel: 3.19.1-201.fc21.x86_64
/-----------omMMMNNNMMMd/-:/ Uptime: 1:39
:-----------sMMMdo:/ -:/ Packages: 1573
:-----------:MMMd------- --:/ RAM: -32573 MB / 24040 MB
/-----------:MMMy------- ---/ CPU: Intel(R) Core(TM) i7-4700MQ CPU @ 2.40GHz
:------ --/+MMMh/-- ---: Shell: Bash
:--- oNMMMMMMMMMNho -----: Terminal: Xterm-256color
:-- +shhhMMMmhhy++ ------: Root FS: 4.9G / 50G (ext4)
:- -----:MMMy--------------/ Home FS: 307G / 1.6T (ext4)
:- ------/MMMy-------------: Boot FS: 97M / 477M (ext4)
:- ----/hMMM+------------: 34A401E6A401Ac04 FS: 381G / 1.4T (fuseblk)
[scott@thebes Downloads]$ free -m
total used free shared buff/cache available
Mem: 24040 2000 7495 455 14544 21277
Swap: 12031 0 12031
your script calculates: used = int(ram[2]) - int(ram[5]) - int(ram[6])
so 2000 - 14544 - 21277 ??
How about this:
used = int(ram[2]) + int([4])
mine comes close to matching top and htop.
thanks.
Wouldn't it ? 😄
When run archey,I saw $EDITOR: None
but even I set EDITOR=vim in bashrc
,archey still show $EDITOR: None ,it's odd!
I created a fix and a pull request here: https://github.com/djmelik/archey/pull/38
How to fix since my branch hasn't been merged yet:
If you get the following error when trying to run Archey (especially if you are doing it in a VPS):
Traceback (most recent call last): File "/usr/bin/archey", line 304, in <module> func() File "/usr/bin/archey", line 285, in disk_display total = p1.splitlines()[-1] IndexError: list index out of range
Then chances are it didn't worse because of missing support for SimFs/TempFs. To fix this just edit this line in /usr/bin/archey
p1 = Popen(['df', '-Tlh', '--total', '-t', 'ext4', '-t', 'ext3', '-t', 'ext2', '-t', 'reiserfs', '-t', 'jfs', '-t', 'ntfs', '-t', 'fat32', '-t', 'btrfs', '-t', 'fuseblk', '-t', 'xfs'], stdout=PIPE).communicate()[0].decode("Utf-8")
to read
p1 = Popen(['df', '-Tlh', '--total', '-t', 'ext4', '-t', 'ext3', '-t', 'ext2', '-t', 'reiserfs', '-t', 'jfs', '-t', 'ntfs', '-t', 'fat32', '-t', 'btrfs', '-t', 'fuseblk', '-t', 'simfs', '-t', 'tempfs'], stdout=PIPE).communicate()[0]
Save and re run the archey command. If it works congrats you fixed Archey to work for you! If it still doesn't work please reply with the error outputted.
Traceback (most recent call last):
File "/usr/bin/archey", line 304, in
func()
File "/usr/bin/archey", line 184, in distro_display
output('OS', distro)
UnboundLocalError: local variable 'distro' referenced before assignment
We have to add distro = 'CrunchBang %s %s' % (release, arch)
manually at line 180.
Traceback (most recent call last):
File "/usr/bin/archey", line 305, in
func()
File "/usr/bin/archey", line 289, in disk_display
usedpercent = float(re.sub("[A-Z]", "", used)) / float(re.sub("[A-Z]", "", size)) * 100
ValueError: invalid literal for float(): 1,6
There is a problem if a hard drive with some special characters in its name is plugged in.
Thank you !
EDIT: It's not name-related, but same issue about the disk usage parsing (sorry for the duplicate then).
http://pastebin.archlinux.fr/425809 shows that for some locale where the decimal point is a coma, archey fails and throws an exception
archey seems to fail on output like this ??
http://pastebin.archlinux.fr/425811
note: I don't see why the usedperncent is calculated because it is alreedy returned by df
proprer parsing of df output is needed. with regex ?
I am reporting the bug of someone else
https://bbs.archlinux.org/viewtopic.php?pid=1089598#p1089598
A few weeks ago, archey ran just fine, but now it doesn't.
In gentoo i get
archey 1s
Traceback (most recent call last):
File "/usr/bin/archey", line 118, in <module>
DetectDistro = Popen(['lsb_release', '-i'], stdout=PIPE).communicate()[0].split(':')[1].lstrip('\t').rstrip('\n')
File "/usr/lib/python2.7/subprocess.py", line 710, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1335, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
Screenshotting in
5...4...3...2...1...Say Cheese!
Traceback (most recent call last):
File "/usr/bin/archey3", line 860, in <module>
main()
File "/usr/bin/archey3", line 857, in main
archey.run(options.screenshot)
File "/usr/bin/archey3", line 722, in run
screenshot(self.state)
File "/usr/bin/archey3", line 628, in screenshot
ctime().replace(' ','_')).split(" "))
File "/usr/lib/python3.3/subprocess.py", line 542, in check_call
retcode = call(*popenargs, **kwargs)
File "/usr/lib/python3.3/subprocess.py", line 523, in call
with Popen(*popenargs, **kwargs) as p:
File "/usr/lib/python3.3/subprocess.py", line 824, in __init__
restore_signals, start_new_session)
File "/usr/lib/python3.3/subprocess.py", line 1448, in _execute_child
raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: 'import'
Package version: 0.2.8
Operating System: Ubuntu 12.04 LTS
Python version: 2.7.3
Error message (when launching "archey" command):
Traceback (most recent call last):
File "/usr/bin/archey", line 304, in
func()
File "/usr/bin/archey", line 288, in disk_display
usedpercent = float(re.sub("[A-Z]", "", used)) / float(re.sub("[A-Z]", "", size)) * 100
ValueError: invalid literal for float(): 4,9
Traceback (most recent call last):
File "/usr/bin/archey", line 261, in <module>
out.append(classes[x]())
File "/usr/bin/archey", line 215, in __init__
used = int(ram[2]) - int(ram[5]) - int(ram[6])
IndexError: list index out of range
Used the version currently available in the AUR.
The current configuration file is stored in ~/.archey3.cfg whilst it is better to be stored somewhere in ~/.config/
RAM_DISPLAY ISSUE on ubuntu 16.04.
Output from the terminal:
Traceback (most recent call last):
File "/usr/bin/archey", line 304, in
func()
File "/usr/bin/archey", line 140, in ram_display
used = int(ram[2]) - int(ram[5]) - int(ram[6])
IndexError: list index out of range
File "/usr/bin/archey", line 338, in
func()
File "/usr/bin/archey", line 149, in ram_display
used = int(ram[2])
IndexError: list index out of range
Got this error
looked at the code at this line and can´t find any issues.
I am new at Arch so make your answers as easy as possible xD
Traceback (most recent call last):
File "/usr/lib/python2.7/pdb.py", line 1314, in main
pdb._runscript(mainpyfile)
File "/usr/lib/python2.7/pdb.py", line 1233, in _runscript
self.run(statement)
File "/usr/lib/python2.7/bdb.py", line 400, in run
exec cmd in globals, locals
File "", line 1, in
File "./archey", line 97, in
'--no-headers')), encoding='utf8').rstrip('\n').split('\n')
TypeError: str() takes at most 1 argument (2 given)
Uncaught exception. Entering post mortem debugging
Running 'cont' or 'step' will restart the program
/home/aboettger/src/archey/archey(97)()
-> '--no-headers')), encoding='utf8').rstrip('\n').split('\n')
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.