Choose style:

Author Topic: Archey Terminal Assistance  (Read 3112 times)

0 Members and 1 Guest are viewing this topic.

Offline BariBeanBag

  • nOOb
  • *
  • Posts: 2
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 5
Archey Terminal Assistance
« on: July 08, 2014, 12:05:54 am »
Hello there.  I'm having difficulty installing Archey, the program that displays the OS logo and system stats.  Didn't see anyone else posting about this, but I was hoping someone could help.


Offline kendall

  • Developer
  • Member
  • *****
  • Posts: 535
  • Karma: 75
  • Peppermint Dev
    • View Profile
    • http://kendallweaver.com
Re: Archey Terminal Assistance
« Reply #1 on: July 08, 2014, 10:30:06 am »
I'm not familiar with Archey at all, but the terminal output you're seeing indicates that it's written in Python and that there is an error with the application that causes it to reference a variable that's not been assigned yet. Could you perhaps post a link to where you downloaded it from? I have a little bit of time today and can maybe help shed some light on the error or get you some information for a bug report or something.
Co-Founder and CTO of Peppermint. Developer, Photographer, and spicy food lover.

Peppermint is powered by VPS.NET Cloud Servers.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25497
  • Karma: 2807
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Archey Terminal Assistance
« Reply #2 on: July 08, 2014, 11:23:40 am »
@kendall

I'm assuming it's the 0.2.8 deb from here:
https://github.com/djmelik/archey/downloads
every online tutorial I've seen so far points to that link (or a direct download link from there)

install the 0.2.8 deb, then create ~/.bashrc and add a single line that reads

archey

Save the file .. now archey should start whenever you open the terminal

but It gives these errors
Code: [Select]
Traceback (most recent call last):
  File "/usr/bin/archey", line 304, in <module>
    func()
  File "/usr/bin/archey", line 193, in user_display
    output ('User', username)
  File "/usr/bin/archey", line 134, in output
    result.append(output)
UnboundLocalError: local variable 'output' referenced before assignment



I seriously doubt if this is fixable (or rather something you'd like to fix) .. the python script references lsb-release then displays the ASCII art (contained in the python script) for Ubuntu/Arch/Mint/Debian/Fedora/Crunchbang
But it doesn't contain any ASCII art for Peppermint so falls over when it reads "Peppermint" in lsb-release.
« Last Edit: July 08, 2014, 11:34:20 am by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline kendall

  • Developer
  • Member
  • *****
  • Posts: 535
  • Karma: 75
  • Peppermint Dev
    • View Profile
    • http://kendallweaver.com
Re: Archey Terminal Assistance
« Reply #3 on: July 08, 2014, 11:39:17 am »
It would probably be as easy as adding a "try/except" with a default back to an existing or generic ASCII art pattern. Why the developer didn't do this already is somewhat puzzling. I'll take a quick look.
Co-Founder and CTO of Peppermint. Developer, Photographer, and spicy food lover.

Peppermint is powered by VPS.NET Cloud Servers.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25497
  • Karma: 2807
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Archey Terminal Assistance
« Reply #4 on: July 08, 2014, 11:43:06 am »
The .deb is from 2010 IIRC, so hasn't been updated in a while.

Oddly I've seen a screenshot somewhere with Peppermint ASCII art .. so someone must have a version with Peppermint included.

I have a funny feeling it may have been by VinDLS (could be wrong) and on the old forum somewhere.
« Last Edit: July 08, 2014, 11:46:43 am by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25497
  • Karma: 2807
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8R, 9, and 9R
Re: Archey Terminal Assistance
« Reply #5 on: July 08, 2014, 12:06:22 pm »
Screenfetch (similar to archey) has a Peppermint logo (ASCII art) included.
(bash as opposed to python script)

http://tuxtweaks.com/2013/12/install-screenfetch-linux/

« Last Edit: July 08, 2014, 12:07:59 pm by PCNetSpec »
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline kendall

  • Developer
  • Member
  • *****
  • Posts: 535
  • Karma: 75
  • Peppermint Dev
    • View Profile
    • http://kendallweaver.com
Re: Archey Terminal Assistance
« Reply #6 on: July 08, 2014, 12:07:31 pm »
Right on. Looking at the code, it's very simple and there are a lot of things that could be seriously improved: multiple "if" statements where "elif" statements should have been used; a distinct lack of "or" statements to save processor cycles; the obvious lack of a generic fallback for unrecognized distros; etc. Anyway, the most recent commit was only 12 days ago so either someone has very recently decided to start maintaining it again or that someone was just really put off by the lack of XFS as a listed filesystem.

Anyway, I've got it working here. Because I have a little bit of time today and because it's such a simple program, I'll rewrite/fork it and make something that works a little bit better.

Mandatory screenshot:

Co-Founder and CTO of Peppermint. Developer, Photographer, and spicy food lover.

Peppermint is powered by VPS.NET Cloud Servers.

Offline kendall

  • Developer
  • Member
  • *****
  • Posts: 535
  • Karma: 75
  • Peppermint Dev
    • View Profile
    • http://kendallweaver.com
Re: Archey Terminal Assistance
« Reply #7 on: July 08, 2014, 12:08:59 pm »
Actually it looks like Screenfetch is a good enough alternative to where we shouldn't have to mess with it at all. Good call.
Co-Founder and CTO of Peppermint. Developer, Photographer, and spicy food lover.

Peppermint is powered by VPS.NET Cloud Servers.