The officially official Devuan Forum!

You are not logged in.

#1 2019-06-12 06:17:30

czeekaj
Member
Registered: 2019-06-12
Posts: 154  

Beowulf missing /usr/sbin commands (update-rc.d & openvpn) [Solved]

I have updated ascii to beowulf.
changing the sources.list
However I updated a few packages at a time, trying to prevent any breakage.
Yet, still managed to break a few things. Maybe it's after I removed systemd0. Installing udisks2.

Here's what I noticed, I moved from a stable ascii, from /usr/sbin/openvpn and put it in the beowulf install.

I can run the openvpn. However, it broke all the links. Even if I put the new file in /usr/sbin 
I can't run openvpn without using ./ and redirecting the .ovpn scripts to the certificates.

Sadly same goes for update-rc.d. It's also missing, I have updated everything but grub at this point.

I can run it, but I have to manually copy the /sbin/update-rc.d and run it from location. I am not sure how to re-establish the symlinks manually

I tried uninstalling openvpn and reinstalling. Nothing worked. Checked dependencies but apt said it's all good as well.

Last edited by czeekaj (2019-06-13 04:58:47)

Offline

#2 2019-06-12 07:35:25

golinux
Administrator
Registered: 2016-11-25
Posts: 3,316  

Re: Beowulf missing /usr/sbin commands (update-rc.d & openvpn) [Solved]

This should help to explain things:
https://dev1galaxy.org/viewtopic.php?id=2858

Online

#3 2019-06-12 08:18:43

czeekaj
Member
Registered: 2019-06-12
Posts: 154  

Re: Beowulf missing /usr/sbin commands (update-rc.d & openvpn) [Solved]

Thanks, I ran

echo $PATH

I just figured out a bit more of linux. I can see the bright side in this. I put openvpn, in /usr/bin. Or /usr/local/bin. 
Well I don't want to bloat it by copying all the old commands if they still working in /bin.

Thanks for the reply, I think I figured it out. However adding /sbin to the path would be ideal, anyone know how to go about this?

Last edited by czeekaj (2019-06-12 09:02:03)

Offline

#4 2019-06-12 10:37:57

Head_on_a_Stick
Member
From: London
Registered: 2019-03-24
Posts: 3,125  
Website

Re: Beowulf missing /usr/sbin commands (update-rc.d & openvpn) [Solved]

czeekaj wrote:

adding /sbin to the path would be ideal, anyone know how to go about this?

Edit ~/.profile and add this line:

export PATH="/sbin:${PATH}"

Then log out & back in again.

FWIW, /sbin should already be included in root's PATH but you have to use

sudo -i

or

su -

If you use plain su (without the dash) then PATH will be set to whatever it was for your normal user.

This change is because beowulf now uses the su command from the util-linux package rather than the version from the login package that ascii uses.


Brianna Ghey — Rest In Power

Offline

#5 2019-06-12 13:24:38

fsmithred
Administrator
Registered: 2016-11-25
Posts: 2,486  

Re: Beowulf missing /usr/sbin commands (update-rc.d & openvpn) [Solved]

I put the following in /root/.bashrc. It gives me root's normal path when I use 'su' in a user's terminal. The advantage is it keeps me in the user's home instead of moving me to /root, where I'd have to cd to user's home again. (for example to install a deb package I just downloaded). It also allows me to run graphical apps as root. (e.g. I use gparted a lot).

export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"

Offline

#6 2019-06-13 05:00:45

czeekaj
Member
Registered: 2019-06-12
Posts: 154  

Re: Beowulf missing /usr/sbin commands (update-rc.d & openvpn) [Solved]

Thanks guys, I think that solves that.
do you have to run after changing bashrc?

. .bashrc 

Offline

#7 2019-06-13 11:43:07

fsmithred
Administrator
Registered: 2016-11-25
Posts: 2,486  

Re: Beowulf missing /usr/sbin commands (update-rc.d & openvpn) [Solved]

czeekaj wrote:

Thanks guys, I think that solves that.
do you have to run after changing bashrc?

. .bashrc 

Yes. (or log out and log in again.)

Offline

#8 2019-06-13 14:58:26

Ogis1975
Member
Registered: 2017-04-21
Posts: 307  
Website

Re: Beowulf missing /usr/sbin commands (update-rc.d & openvpn) [Solved]

You can put

ALWAYS_SET_PATH yes in /etc/login.defs

to get an approximation of the old behavior.
Or put the system administration directories (/sbin, /usr/sbin, /usr/local/sbin) in your regular account's PATH.

Last edited by Ogis1975 (2019-06-13 14:58:54)


What economists call over-production is but a production that is above the purchasing power of the worker, who is reduced to poverty by capital and state.
            ----+- Peter Kropotkin -+----

Offline

Board footer