inxi root requirement

mrneilypops

How can I run inxi as a non-root user?

falldown

#1
Do you have the correct permission to write to your inxi.conf file?

I have never used inxi before, but usually these problems are a permission issue.

VastOne

From terminal, do a

whereis inxi

If it reports either of these

inxi: /usr/sbin/inxi

/usr/local/bin/inxi


Run from terminal

/usr/sbin/inxi

or

/usr/local/bin/inxi


If either of these work then it is an environment path issue.

I can run inxi on my install without sudo, this is why I think it is a path issue
VSIDO      VSIDO Change Blog    

    I dev VSIDO

VastOne

I was about to suggest permissions but falldown already had..

;D ;D
VSIDO      VSIDO Change Blog    

    I dev VSIDO

VastOne

Quote from: falldown on January 17, 2013, 06:46:02 PM
Do you have the correct permission to write to your inxi.conf file?

I have never used inxi before, but usually these problems are a permission issue.

It is installed natively on VSIDO, why not try to run it and see?
VSIDO      VSIDO Change Blog    

    I dev VSIDO

mrneilypops

#5
@VastOne
Exactly as you described.
How can I fix this to just type inxi (-F)

EDIT: Hmm...this is odd.
Since I logged into openbox I can run inxi -F as a normal user.
In xfce4 desktop I definitely had to be root.
Any ideas?

falldown

#6
Quote from: VastOneI was about to suggest permissions but falldown already had..

;D ;D
:D

VastOne

Run

echo $PATH

and report what it shows ... My guess is that :/usr/sbin is not included in yours.. and will need to be fixed

This is mine

/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin:/usr/sbin:/home/vastone/bin
VSIDO      VSIDO Change Blog    

    I dev VSIDO

mrneilypops


neil@vsido:~$ echo $PATH
/home/neil/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin:/usr/sbin:/home/neil/bin:/sbin:/usr/sbin:/home/neil/bin

VastOne

Both OB and Xfce use ~.bashrc, which is where these variables are set

Your path statement shows everything is correctly set

I am at a loss as to why it works in OB and not Xfce

You might want to run the echo $PATH in Xfce to verify

As I said, it also runs fine on my Xfce

@falldown, will you run it from Xfce to see what you get?
VSIDO      VSIDO Change Blog    

    I dev VSIDO

mrneilypops

@VastOne
Thanks for the tips.
I will give this a try in xfce and post back on this thread ASAP.

falldown

In xfce I have to sudo it.. OB does not require sudo.

Very strange indeed.

Sector11

@ mrneilypops et all

Check this out: inxi the super script - bash aliases

Gotta put that in my sig.  :D
Stay Home

mrneilypops

@falldown
Thanks for the confirmation.

VastOne

I will track this down and find the solution today

VSIDO      VSIDO Change Blog    

    I dev VSIDO