libera/#devuan/ Sunday, 2024-07-14

AlexLikeRockAPT working ....00:00
AlexLikeRock      Remove the following packages:00:23
AlexLikeRock1)      apache2-bin [2.4.61-1~deb11u1 (now, oldstable-security)]00:23
AlexLikeRock2)      kde-plasma-desktop [5:111 (now, oldstable)]00:23
AlexLikeRock3)      libapache2-mod-dnssd [0.6-3.2 (now, oldstable)]00:23
AlexLikeRock4)      libtaskmanager6abi1 [4:5.20.5-6+deb11u1 (now, oldstable-security)]00:23
AlexLikeRock5)      mate-user-share [1.24.0-2 (now, oldstable)]00:23
AlexLikeRock6)      plasma-workspace [4:5.20.5-6+deb11u1 (now, oldstable-security)]00:23
AlexLikeRocklooks , its working a little bit00:24
AlexLikeRockgoood morning people !18:10
AlexLikeRocki sexy back !18:10
beagleburtG'day from New Zealand everyone! I hope these electrons find you all well & truly happy! I am fine but I had to do a fresh install - Daedalus - & I have lost my $PATH...18:35
beagleburtI tried to set /etc/profile but I cannot seem to get a wide range of '*/bin/'s?18:36
beagleburtI have been searching the net for advice & finally came here for help.18:37
rwpWhat does "set /etc/profile" mean?  What did you do?18:38
rwpNormally PATH is set to a reasonable default in /etc/profile but one does not make local modifications there.18:39
rwpUsually if one wants to make local PATH modifications it will be done in one of three places depending upon the user's setup.18:39
rwpI'll guess ~/.xsessionrc is the place for 99.44% of the people because most people use a Desktop Environment these days.  Set PATH there.  Log out.  Log back in again.  Profit!18:40
beagleburtI tried to add /usr/bin & /usr/sbin etc., etc., to my exisisting PATH, but I still get the same limited PATH???18:40
rwpBut /usr/bin is a standard part of PATH already.  It should already be there.18:40
gnarfacebeagleburt: you mean as your own user or root?18:40
rwpHow did you try to add /usr/sbin to your path?18:40
beagleburtgnarface, both18:41
rwpFor root the best place is /root/.profile to set additional PATH entries.18:42
beagleburtrwp, I just followed instructions on websites....?18:42
rwpThat's great.  What *exactly* were those instructions?18:42
beagleburthttps://www.baeldung.com/linux/bashrc-vs-bash-profile-vs-profile18:43
beagleburthttp://stackoverflow.com/questions/26136710/ddg#2613679018:44
beagleburthttps://www.cyberciti.biz/faq/unix-linux-adding-path/18:44
rwpI gave it a quick skim.  Seemed reasonable at first glance.  Now what exactly are you trying to do?  And what actions did you take to try to do it?18:44
beagleburtForgive me, but I am quite tired...I have been up all night battling with this ... :-((18:45
rwpPlease look at it from our point of view.  We don't know what you did.  And it works perfectly for us.  How can we help you if we don't know what you want to do and what you did to try to do it?18:46
beagleburtI thought that I would add */bin: to my $PATH but they stubbornly remained the same?18:47
rwpI am sorry but if you don't help us to help you then we can't help you.18:48
beagleburtOK - Just a moment I will open the file I had the problem with & copy relevant code snippet....18:48
rwpIf it is more than a line please don't paste it into the channel as there is a system global bot that will kick people who paste too much at one time.18:49
rwpThat's what pastebin sites are used for.  For pasting in larger example snippets.18:49
rwpBut can't you just say in some words what it is that you want to do and what you tried already?18:50
beagleburt# /etc/profile: system-wide .profile file for the Bourne shell (sh(1))18:50
beagleburt# and Bourne compatible shells (bash(1), ksh(1), ash(1), ...).18:50
beagleburtif [ "$(id -u)" -eq 0 ]; then18:50
beagleburt  PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"18:50
beagleburtelse18:50
beagleburt  PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games"18:50
beagleburtfi18:50
beagleburtexport PATH18:50
rwpPlease don't paste in multiple lines like that into the channel.  The global bot might "kick" you from the channel for abuse due to it.   Instead use a pastebin site like https://paste.debian.net/ for it.18:51
rwpIf the bot does kick you from the channel please simply join again as it is not a ban but just a kick.18:51
beagleburtbut I ONLY get the echo $PATH : ending in /usr/games   ????18:51
gnarfacewait wait wait18:52
beagleburtok sorry tku for the advice18:52
gnarfacebeagleburt: before you do all this you should be setting ENV_PATH and ENV_SUPATH (for normal users and root, respectively) in /etc/login.defs18:52
gnarfacethey removed /sbin/ and /usr/sbin/ from ENV_SUPATH there at some point a release or two ago, which i also object to18:52
gnarfacethe other stuff will probably all also work, but this is where you're supposed to set the default18:53
beagleburtHmmmm? I'm a bit of a S-L-O-W Nubie.... this is a steep curve for me!18:55
rwpThere is so much to unpack and say here.  I disagree that it is the place it is supposed to be set.  But setting it will do it.  It's a personal environment customization so the place it is supposed to be done is ~/.xsessionrc (or ~/.profile [or ~/.bash_profile]).  but I agree that setting ENV_PATH in /etc/login.defs will also accomplish the task.18:55
gnarfacei'm just about reverting unwanted changes back to sane defaults18:56
gnarfacei didn't add /sbin and /usr/sbin to login.defs, i merely put them back18:56
rwpBut usually putting /usr/sbin into PATH for a non-root user is useless because root privilege is still needed to run most /usr/sbin programs.18:56
gnarfaceno, that's not what i'm advocating18:56
gnarfacewell, not specifically, but you could do that too18:56
rwpIf not then why did you mention it?18:56
gnarfacebecause /sbin and /usr/sbin were in ENV_SUPATH before18:57
gnarfaceENV_SUPATH is root's path18:57
gnarfacesorry i wasn't clear about that, if beagleburt wants to add them to both ENV_SUPATH and ENV_PATH in there both, that's up to him18:57
rwpLet's see what beagleburt has there now.18:57
rwpBecause I read "a fresh install of daedalus" and that will have ENV_SUPATH      PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin18:58
gnarfaceuh... i don't think so....18:58
gnarfacei was pretty sure they pulled all the sbins out of there about 1 or 2 releases ago and we all had to add them back manually18:58
gnarface(more vandalism from upstream)18:58
beagleburtgnarface, & rwp When I reinstalled Daedalus, at some point I was given the choice of LINKING (?) /sbin & (?) /usr/sbin.... i think?18:59
gnarfacefrankly i think it even happened to some of my upgraded systems...18:59
rwpLet's see what beagleburt has there now.18:59
rwpbeagleburt, How did you answer that usermerge question?  Yes or no?18:59
gnarfacebeagleburt: that's a separate thing, "usrmerge" (i said no to that)18:59
rwpBut that's a separate thing.  Useful to know though.18:59
AlexLikeRockgnarface, o/18:59
gnarfaceAlexLikeRock: yo19:00
beagleburtrwp, Yes19:00
rwpGood.19:00
rwpbeagleburt, Can you tell us what you have in /etc/login.defs for ENV_SUPATH?  Are you working in a text terminal?  Can you "grep ENV_SUPATH /etc/login.defs" and tell us what value is listed there?19:02
beagleburtrwp, Text Terminal = Yes19:04
beagleburtHang on a moment - ( I am disabled & V. slow....19:05
AlexLikeRockfree -h19:05
AlexLikeRock               total        used        free      shared  buff/cache   available19:05
AlexLikeRockMem:            15Gi       2.3Gi        11Gi        50Mi       1.8Gi        13Gi19:05
AlexLikeRockSwap:          3.0Gi        55Mi       2.9Gi19:05
fsmithredThe sbins are still in ENV_SUPATH but when su got moved to (or from?) util linux, the behavior changed. You need to use 'su -' to get root's path.19:08
rwpI am thinking it is the lack of "-" problem too.19:09
AlexLikeRockyes19:10
AlexLikeRock"-"19:10
rwpNow that UsrMerge is a done deal they are also moving to merge /usr/sbin/* into /usr/bin/ now too.  That's coming down the pipeline of time now too.19:11
beagleburthttps://paste.debian.net/132326219:12
gnarfacehuh19:12
rwpbeagleburt, Perfect!  As shown there the PATH has both /usr/sbin and /sbin so we know that /etc/login.defs is okay and that is not the problem.19:13
gnarfacei swear to you all this really happened; i was having the same problem with root missing /sbin and /usr/sbin, and i was notified in here about the change from upstream to login.defs and i put it back manually19:13
rwpThat definitely happens in Testing which is post Daedalus.19:13
gnarfacei had already been using "su -" all along, for other environment variables, so i know for a fact it wasn't that im' remembering19:13
gnarfacei wasn't ever using testing, i was however using unstable before the daedalus release19:14
rwpbeagleburt, Since that is now shown as okay we can move on.  How were you using su?  The typical error is "su" instead of "su -".19:14
gnarfacethen that system i merged into daedalus after the freeze19:14
rwpUnstable/Testing are almost the same.  Only a few days of separation.19:14
gnarfaceso maybe that's why it happened to me, if they made the change to unstable but somehow that change didn't make it into actual daedalus...19:15
beagleburtrwp,  'su' what's the diff between that & 'su -'?19:15
gnarface... but was still made to unstable before daedalus19:15
rwpbeagleburt, Please type in "su -" in a terminal to switch user to root and to load the root environment.  Then type in "echo $PATH" to show the resulting PATH after doing those two steps.19:15
rwpIt will ask for the root password at the "su -" step.19:15
beagleburtok19:15
gnarfacebeagleburt: "-" just includes root's entire environment too19:15
gnarfaceif you don't use it, you'll be root but with your user's environment19:16
AlexLikeRocksu  =   acces to root user19:16
rwpsu = switch-user19:16
gnarfaceat one point, PATH was an exception that was always included, but they changed it19:16
AlexLikeRocksu - = entry to root enviroment  ( path's , home , basic autorithys, etc  )19:16
rwpIt used to be like it is now, then it was changed to a different su which added it by default, and now we have changed back to the original behavior from before.  An example of thrash.  They need to stop changing these things for no good reason.19:17
AlexLikeRockrwp,   yes19:17
AlexLikeRock su  =  entry as root19:17
beagleburtrwp, ~# echo $PATH19:17
AlexLikeRocksu rwp   = entry as user19:18
AlexLikeRocksu AlexLikeRock  = entry as normal user19:18
AlexLikeRocksu gnarface  = entry as normal user19:18
AlexLikeRocksu root = entry as root19:18
AlexLikeRocksu =entry as root  (too)19:18
beagleburt~# echo $PATH/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin19:18
AlexLikeRockfree -h19:19
AlexLikeRock               total        used        free      shared  buff/cache   available19:19
AlexLikeRockMem:            15Gi        15Gi       152Mi        55Mi       385Mi       192Mi19:19
AlexLikeRockSwap:          3.0Gi       1.1Gi       1.9Gi19:19
AlexLikeRock.19:19
rwpbeagleburt, Great!  So it is there.  And the problem was the missing "-" on the su line.  Always call it "su -".19:19
AlexLikeRockapt eat my RAM  , help , please19:19
beagleburtrwp ok TKU!19:20
rwpbeagleburt, Now that we have that sorted out, what command were you trying to run as root?  Can we help you get through that step?19:20
beagleburtrwp,  I was not worrying about the su - I was trying to get the $PATH for user sorted first....?19:22
rwpOkay.  Things should be sorted out now.  Good luck! :-)19:24
beagleburtrwp,  $ echo $PATH /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games19:26
beagleburtrwp still not right!19:27
rwpbeagleburt, That's the right path for a NON-root user and the '$' says that is your non-root user login.  You should not have /usr/sbin:/sbin in a NON-root login PATH.19:28
rwpThe programs in /usr/sbin:/sbin (other than ping and a very few others) all require root privilege in order to run.  So they are not in a user path.  If you want to use programs from there you will need to use either "su -" to become root to use them, or use sudo or doas other jump-to-root utility.19:29
rwpOh, and I see ping has been moved to /bin/ping so is no longer in /usr/sbin and not a problem now.19:30
joergeven ping _may_ need root permisions19:31
beagleburtrwp,  OH? I have been trying to achieve the wrong thing! I just get sick and tired of having to do a ' # locate commmand ' and paste it into  the cli - but i guess it was mainly with the # su not su -?19:32
gnarfaceprobably19:32
AlexLikeRockyes :   ping need root permissions19:32
AlexLikeRockbeagleburt,19:33
rwpNever use "su" and always use "su -".19:33
AlexLikeRockits not for a normal user19:33
AlexLikeRockat some time ago ,ping  no need root  permissions , but no they need19:33
AlexLikeRockbeagleburt,  try with stand alone command as root like this  :19:34
AlexLikeRocksu -c ping yahoo.com19:34
joergping -f 8.8.8.8   ;#-> ping: cannot flood; minimal interval allowed for user is 200ms19:35
AlexLikeRock-c = command19:35
AlexLikeRockthe command its ping19:35
AlexLikeRockjoerg,  whta devuan do you have ?19:35
rwpThese days ping has the cap_net_raw=ep set upon it so that it does not need root access but uses the kernel "capabilities" to allow the privilege access.  OR without that it needs suid-root.  (fsmithred that's one thing that a refracta install does not set last time I checked.)19:35
beagleburtrwp I will try & remember that good advice ....m y memory is not the best since surviving a coma.... If I stop using commands for a while, I forget them ... "There are a few holes in the seive" - LOL!19:35
joergthis is not (necessarily) devuan19:35
rwpbeagleburt, I am so sorry to here that!  Here is to hoping for continued recovery.19:36
AlexLikeRockyes rwp , yes , refracta not set19:36
AlexLikeRockother problems are  install whit apt19:37
AlexLikeRockwith refracta : need "su -"19:37
AlexLikeRocknot work with only "su "19:37
rwpThe rsync command refracta uses does not include the --xattrs,-X option and does not copy the extended attributes.19:37
rwpAnd so those attributes are lost in installation.  They can be set again.  sudo setcap cap_net_raw=ep /bin/ping19:38
rwpAlexLikeRock, Try that, setcap cap_net_raw=ep /bin/ping, as root, and then ping will be available to normal users again.19:39
rwpActually probably the better advice is "dpkg-reconfigure iputils-ping" and let the package postinst script do the work. Because in the future there might be more for it to do.19:43
AlexLikeRockrwp, , no  you guys , devuan developers, must be fix  refracta , please19:44
rwpI am not a refracta developer.  All I can do is report the issue.19:45
AlexLikeRockoh!19:45
AlexLikeRockfine19:45
AlexLikeRockplease , do it m for us19:45
beagleburtrwp,  Thank you! I have had several miracles in my 'continued recovery' already. God bless you & yours ! & TKU gnarface also for your help - it really is appreciated!19:46
gnarfaceno problem19:46
beagleburt'b'ye !19:46
AlexLikeRockany time beagleburt19:46
AlexLikeRocko/19:46
beagleburtTKU AlexLikeRock !19:47
rwpGood night beagleburt!19:47
beagleburt05:47am!19:48
rwpYou did say you had been up all night!19:50
joergrwp: how about >>setfattr [-h] --restore=file  :: Restores extended attributes from file.  The file must be in the format generated by the getfattr command with the --dump option. <<?19:53
beagleburtrwp YUP! For many years now I stay awake for up to 2-3 Days & Nights & then zzzZ for up to 3 days & nights to catch up. As long as I do not get 'sleep deprived' - no one worries.... I spend most of my time on my computer(s)...19:55
joergor... actually use rsync19:55
joergI mean, rsync is meant, by definition, to avoid duplicate copying, so should _only_ update xattr where and only where needed19:56
rwpjoerg, rsync discards extended attributes when copying unless the -X,--xattrs is explicitly specified.19:58
beagleburtLEAVE20:00
beagleburt?20:00
rwpThe refracta install pours files on with rsync but lacks the -X option and the ping capabilities are lost.  I have mentioned it to fsmithred before.20:00
rwpbeagleburt, Probably you want "/PART" as the IRC command.20:00
beagleburtrwp,  ok t.a. cu l8r!20:01
rwpOtherwise it is like the song Hotel California, you can checkout but you can never leave. :-)20:01
AlexLikeRockhahahahahah20:01
joergrwp: >>rsync discards extended attributes when copying ***unless the -X,--xattrs***<< exactly my idea: use it a second time, fixing the missing -X, shouldn't do any further harm20:06
rwpUse it the first time and be done in one pass!20:06
joerghehe of course20:07
joergbut maybe using it a second time yields a more comprehensive effect than setcap cap_net_raw=ep20:08
rwpOne can repair by doing a grep setcap /var/lib/dpkg/info/*.postinst and seeing what packages install capabilities and then running dpkg-reconfigure on those packages.  They will run the postinst configure section again and set them again.20:08
joergooooh, I see, refracta is *built* using rsync, not using it at *installation* time. Sorry, I wasn't aware20:09
joergnebbermind20:10
rwpI think it is both built and installed that way both.20:10
rwpI have slept since the last time I thought about the repair and so it took me a while this morning to get back around to getting the list of packages to dpkg-reconfigure by grep'ing the postinst files.  But there might be several and the list depends upon what is installed so best to get it dynamically.20:11
rwpping is just the program I run into most often because I use it a lot.20:12
fsmithredrwp, refracctainstaller uses -X starting in version 9.7.020:15
rwpYay! \o/ :-)20:18
fsmithredyeah, it's built with rsync mksquashfs and xorriso and it's installed with rsync20:18
fsmithredthat version is in daedalus20:19
fsmithredbut if you run refractainstaller -v it tells you the wrong version. (sorry)20:19
rwpI have not looked at the current up to date refracta yet, sorry, but that was definitely an issue in chimaera.20:19
fsmithredThanks for pointing it out.20:20
AlexLikeRockwau wau!21:20
debdog /^^\21:22
AlexLikeRockim back22:51
AlexLikeRockproblem #122:51
AlexLikeRockapt averflow  my RAM  then my SWAP22:52
AlexLikeRockat my OLD DEVUAN22:52
AlexLikeRockinit 623:05
AlexLikeRockdam!23:19
AlexLikeRockstartx23:20
AlexLikeRock /etc/X11/xinit/xserverrc: 3 exec: /usr/bin/X: not  Found23:20
AlexLikeRockxinit: giving up23:20
AlexLikeRockxinit : unable to conect to X server : network is unreachable23:21
AlexLikeRockxinit : server error23:21
rustyaxesounds like 1gb of ram just might not cut it these days :O23:22
AlexLikeRocki mix differents devuans23:24
AlexLikeRock I have a disaster23:24
fsmithred100123:24
fsmithredPin-Priority: 100123:24
fsmithredon chimaera23:24
AlexLikeRockyes23:25
fsmithredand try n=chimaera instead of what you were using23:25
AlexLikeRock# cat   /etc/apt/preferences23:25
AlexLikeRockPackage: *23:25
AlexLikeRockPin: release a=oldstable23:25
AlexLikeRockPin-Priority: 90023:25
AlexLikeRockPackage: *23:25
AlexLikeRockPin: release a=stable23:25
AlexLikeRockPin-Priority: 60023:25
AlexLikeRockok23:25
AlexLikeRocklet me change 900  to 100123:26
fsmithredand change 600 to something less than 500 or remove that stanza completely23:27
AlexLikeRockapt update 18%23:27
AlexLikeRockCTRL + C23:27
AlexLikeRocklook  fsmithred23:31
AlexLikeRock --allow-downgrades23:32
AlexLikeRockE: Earlier versions of some packages were installed and -y was used without --allow-downgrades.23:32
AlexLikeRocksearching  at WWW  ......23:33
fsmithredwhat are you searching for?23:34
AlexLikeRock apt-get --allow-downgrades --allow-change-held-packages  install xorg23:35
AlexLikeRockto make DOWNGRADE23:35
AlexLikeRockhttp://paste.debian.net/1323285/23:36
rwpWhen I need to downgrade something I deduce the version of the packages that are needed and then "apt-get install foo=123.4.5" and it downgrades to 123.4.5.23:36
AlexLikeRockYES, BUT I NEED TO DOWNGRADE the entire operating system.23:37
AlexLikeRockit would be a headache to specify the version of each package23:38
fsmithredYes, whole system. I told you how to do it. If it did not work, you should say what error you got.23:38
rwpNow you know why that operation has always been listed as unsupported.  It's a PITA.  And there is bound to be a package or three that has changed config file syntax and will not downgrade cleanly, but can be manually hacked up to work okay.23:38
rwpFollow fsmithred's instructions.23:38
fsmithredmeanwhile, I'll go do some cooking. bbl.23:39
rwpI just completed a large-ish database migration here.  Time to let it burn-in and see if anything breaks.  Looks good though.  So time for snacks for me too.23:40
* AlexLikeRock are lisstening : LF SYSTEM - Afraid To Feel23:40

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!