You are not logged in.
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
This should help to explain things:
https://dev1galaxy.org/viewtopic.php?id=2858
Offline
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
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
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
Thanks guys, I think that solves that.
do you have to run after changing bashrc?
. .bashrc
Offline
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
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