0
jamezg

orange pi r1 path incorrect (5.90)

Recommended Posts

Armbian 5.90 Orangepi-r1 Debian buster next
kernal was upgraded to 4.19.62 using aptitude (not that that matters)

armbian-config wont run because it wants dpkg-reconfigure which in /usr/sbin which in not in the path.

where dose this get set ?

root@orangepi:/home/james# $PATH
bash: /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games: No such file or directory
root@orangepi:/home/james# 

Share this post


Link to post
Share on other sites

Problem was fixed by rebooting.

It was something in the initial setup scripts did not finish.

It took several reboots to finish.

Share this post


Link to post
Share on other sites

My mistake, this is not fixed.

 

if i login as root the path is correct for root.

if i login as user the path is correct for user.

if i su from user to root, the path stays set for user.

i think it has something to do with /etc/profile but i don't know how su interacts with it.

--------------------------------------------------------------------------------
root@nanopi:/home/james# cat /etc/armbian.txt | head
--------------------------------------------------------------------------------
Title:			Armbian 5.91 Nanopi-r1 Debian buster next
Kernel:			Linux 4.19.59
Build date:		16.07.2019
Maintainer:		Igor Pecovnik <igor.pecovnik@****l.com>
Authors:		https://www.armbian.com/authors
Sources: 		https://github.com/armbian/
Support: 		https://forum.armbian.com/
Changelog: 		https://www.armbian.com/logbook/
Documantation:		https://docs.armbian.com/

  
james@nanopi:~$ 
james@nanopi:~$ $PATH
-bash: /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games: No such file or directory
james@nanopi:~$ su
Password: 
root@nanopi:/home/james# $PATH
bash: /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games: No such file or directory
root@nanopi:/home/james# 

 

Share this post


Link to post
Share on other sites

never mind, it is new thing. i have to keep up with the trends.

using su - solves it

 

on to the next problem (.=> rtl8188e_iol_efuse_patch errors, no wireless)

Share this post


Link to post
Share on other sites
11 hours ago, jamezg said:

never mind, it is new thing. i have to keep up with the trends.

using su - solves it

another new trend could be to set the alias please for sudo ;)

please.png

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
0