libera/#devuan/ Sunday, 2021-01-24

randomuser1975I came in earlier about my bonked chmod. Is it possible to download a list of fresh-install permissions and use that to script a fix?02:23
fsmithredrandomuser1975, try the desktop-live iso02:25
randomuser1975I don't have access to another computer at this time. Also, any solution I perform will be later as I am at work. I am simply seeking information at this time.02:26
fsmithredalso, you got an answer after you left02:26
fsmithred<rwp> randomuser1975 did not stay long enough for an answer.  But the permissions displayed in that photo looked okay to me.02:26
fsmithred<rwp> I am not a fan of those "hardening" scripts.  Maybe at one time those had a purpose.  But now they just break things.02:26
fsmithred<rwp> Because if there were a real problem to begin with then it would have gotten fixed in the OS distro already.02:26
randomuser1975The permissions are not. I can't even su because su can not access groups02:27
randomuser1975I can't start x11, init.d screams at me about sshkeys unsecured02:28
randomuser1975I can access root in the recovery console02:28
randomuser1975Fsmithred, rwp02:30
fsmithredthe permissions in that pic look right to me, too02:30
randomuser1975What's the problem then?02:30
fsmithredyou ran some script? What did the script do?02:31
randomuser1975Just a few select files/directories fucked?02:31
fsmithredI have no idea what the problem is.02:31
randomuser1975The script was a solution posted to ubuntu forums02:31
randomuser1975It was 4 or 5 lines02:31
fsmithredthat doesn't explain what id did02:31
randomuser1975`chmod -R xxx /dir`02:31
fsmithredyeah, that can definitely fuck things up02:32
randomuser1975Yes, I'm aware02:32
randomuser1975As I said, it found its way across the net it appears02:32
fsmithredsomething below the level of / needs permissions that are not xxx02:33
randomuser1975It was posted originally to ubuntu forums as a solution to "I accidently ran chmod 777 /"02:33
fsmithredssh keys should be chmod 400, I know that much02:34
randomuser1975I meant xxx as a variable02:34
fsmithredso did I02:34
randomuser1975Each line was different02:34
randomuser1975Yes02:34
fsmithredwhich four dirs got hit?02:34
randomuser1975I can login but maybe the issues were not as big as I thoughy02:34
randomuser1975All of them02:34
randomuser1975The first line was a single chmod command for 5 or so dirs02:35
randomuser1975You can find it online02:35
fsmithredfor a few year, I wanted to post on ubuntu forum with the title "chmod 777: RESIST THE URGE"02:35
randomuser1975I'm not stupid enough to do /that/02:36
fsmithrednormally you don't need to change the permissions on any system files02:36
randomuser1975I was just trying to reset the system to its default chmod02:36
randomuser1975Since my initial problems werw with alsa02:36
randomuser1975Then I discovered that freshclam couldn't access its libraries02:37
randomuser1975So I saught to fix it to defaults02:37
randomuser1975Found this02:37
randomuser1975Only after did I see it shared elsewhere and responses were "This is stupid" and "It bricked my system"02:38
randomuser1975Do you have any suggestion at this time? I must return to the floor at work. I get home at 11 pst02:39
fsmithredonly suggestion is to boot the live and see what permissions are in the dirs you changed02:40
fsmithredassuming you don't want to reinstall02:40
randomuser1975Ok02:40
randomuser1975I'm on my lunchbreak now, seeking more info for when I go home05:06
randomuser1975I am curious why distros don't have a list of default permissions avalible on their sites05:06
randomuser1975It would benefit errors like this, and be wise from a security viewpoint05:07
randomuser1975Fsmithread, rwp05:07
randomuser1975Golinux05:07
randomuser1975After talking earlier about this, it does seem now less significant an issue than previously thought05:08
randomuser1975My only problem is I don't have another computer to download the live install nor a usb05:08
randomuser1975What are priority files I should look at to at least give me su and x1105:09
golinuxYes?05:09
randomuser1975Golinux, I've fucked my chmod and recommend that there be a file with fresh-install permissions05:10
golinuxI haven't been following your tale of woe . . .05:10
randomuser1975I think that'd benefit a lot of users of multiple distros05:11
golinuxI am drowning in colors atm05:11
golinuxhttps://dev1galaxy.org/files/356387.png05:11
randomuser1975Golinux, I will copypaste from the top05:12
onefangI suspect "I fucked up X, there should be a readme for how to fix X" may result in looooooots of fix_X_README.txt.05:12
randomuser19755]  randomuser1975: [Devuan 3] [Chmod] Issues with System-Wide Permissions05:12
randomuser1975[14:15]  randomuser1975: I had run Lynis, a system security hardening script. Following its instructions, I changed the chmod to numerous files to much more secure05:12
randomuser1975[14:15]  randomuser1975: ones. However, this caused permission errors with both alsa, and libraries. I saught the default permissions to restore my system at the directory root. In doing so, I discovered a script called "FixPermissions" originally posted to the Ubuntu Forums. Running this bricked my system. Looking around, this script apparentky has found its way around the net, bricking other people's systems (haha).05:12
randomuser1975[14:15]  randomuser1975:05:12
randomuser1975[14:15]  randomuser1975: I am able to access root only through the Kernel's recovery console. Attatched Image is the permission changes post-script. I have access to fix this, but I have no idea what to do. Please help.05:12
randomuser1975[14:17]  randomuser1975: https://i.4cdn.org/g/1611432879315.jpg05:12
randomuser1975[14:20]  randomuser1975: Reinstilation is undesirable at this time05:12
golinuxI can see it I just don't have brain space to process.05:12
randomuser1975Ok05:13
randomuser1975The issue may not be as severe as thought05:13
onefangCopy permissions off a live ISO.05:13
randomuser1975I have root access through single-user mode, I just need to know what to fix for basic access then go from there05:13
randomuser1975I don't have the abilility to download nor run LiveISO at this time. It is my only computer rn05:14
randomuser1975So Idk if I'm asking if you could do it or not, but I need to start fixing somewhere05:14
randomuser1975As I said, I don't understand why distros don't have a list of default permissions05:15
randomuser1975I think it'd be trivial05:15
randomuser1975Host it on git or the site or ftp05:15
onefangSee my comment above.  It might be trivial, but there's loooooots of trivials that add up to not so trivial.05:16
randomuser1975rpm apparently has the ability.to fix installed packages, but dpkg/apt does not05:16
randomuser1975Onefang, yeah, but all I seek is to restore system-wide chmod from the point of fresh-install05:17
onefangIt's documented.  On the live ISOs.  If you can download the document with these details, you could download a small ISO.05:18
randomuser1975I'm on my phone05:19
randomuser1975I could download both, but not mount or run it in the current state05:19
randomuser1975In fact, I believe I'll have to manually type it once I have it05:20
onefangYou have root access through single user mode, no dd or mount command?05:21
randomuser1975I have root through sum, I haven't had the opportunity to check much else. I own no usb nor blank cd at this time05:22
randomuser1975If I must, I suppose I could pick up these items05:22
onefangOr loopback mount the ISO file.05:22
randomuser1975I'd rather attempt to wget a file, and prepend `chmod` to each line05:23
onefangIn the absence of such a file....05:23
randomuser1975Once I have the iso, what command do I run to get the chmod of all files05:23
onefangI would start with "ls -la", or something similar.05:24
randomuser1975Not tree?05:24
randomuser1975Let me ask this again, onefang, what files are priority05:26
randomuser1975As in, to get su and x11 running again05:26
tuxd3vrandomuser1975, what is your 'umask'?05:26
randomuser197502205:27
randomuser1975Changed from 027 at lynis' suggestion before the bigger fuckup05:27
tuxd3vwell 0022 is the default for devuan05:28
tuxd3vI also have it05:28
tuxd3vthe 027 is the one that should inibit you from doing things05:29
tuxd3vits more restrictive :)05:29
randomuser1975Ah, I had it backwards iirc05:29
randomuser1975I'm not at my terminal rn05:29
randomuser1975I'm seeking info while on lunch at work05:29
randomuser1975I'll be back05:30
tuxd3vthe umask is something that you subtract from the forlder permissions to get the final permissions..05:31
tuxd3vho.. gone? =.=05:31
tuxd3vonefang, you said you broke your X?05:32
tuxd3vwas it an example to the user <randomuser1975, or you really broke it?05:32
tuxd3v:)05:32
onefangIt was the theoretical generic X, not my X in particular.  B-)05:33
tuxd3vnice!05:34
tuxd3v:)05:34
randomuser1975I am now at my terminal if anyone is willing to aide me further08:56
randomuser1975I have returned my umask to default 022 and am rebooting out of SUM08:58
rrqchmod 4755 /bin/su08:58
randomuser1975.ok08:59
randomuser1975Going back to SUM to do that real quick08:59
randomuser1975Done09:00
randomuser1975Done09:00
randomuser1975It's now safe to login as standard to test it, I assume?09:00
randomuser1975I'm doing so now09:01
randomuser1975Inet.d screamed about ssh keys being fucked again09:02
randomuser1975Loging in09:02
rrqsame for fusermount mount ntfs-3g umount and rdisc609:02
randomuser1975I now have su working09:02
randomuser1975Those are all in /bin?09:03
randomuser1975I thought some were in /sbin09:03
rrqmount.nfs09:03
randomuser1975it seems rdisc6 is not installed09:04
rrqsome few in /usr/bin as well09:04
rrqthat's fne09:05
randomuser1975Did for /sbin/mount.nfs09:05
randomuser1975I assume this is towards wgetting the iso09:06
rrqbwrap chfn chsh firejail gpasswd ndisc6 newgrp passwd pmount procmail pumount rltraceroute6 sudo in /usr/bin09:06
randomuser1975All 4755 too?09:06
randomuser1975I don't use sudo09:06
rrqyes09:06
rrqfor ssh it needs ~/.ssh to be 70009:06
rrqand possibly ~/.ssh/auhorized_keys to be 60009:07
rrqand you might want /etc/ssh/*key to be 600 as well09:08
randomuser1975Done. I don't have all the packages you list. I should probably reinstall firejail when done. I have use for it09:09
rrqthat's all fine09:09
randomuser1975After this, I'll probably publish my own default permissions file. I wonder if I could add it to apt09:10
randomuser1975Idk if I'll have time to maintain it09:10
randomuser1975Please continue09:10
randomuser1975And thank you, btw09:10
rrqit should let you ssh to the box now and us su ... I don;t knwo about your x problem09:11
randomuser1975This is a laptop, I have no use to ssh in09:11
randomuser1975I have no other comp09:11
randomuser1975That was the impairment to fixing it09:12
rrqfair enough. i misunderstood09:12
randomuser1975What should I do further09:12
randomuser1975The xorg log reads09:14
randomuser1975drmSetMaster: Permission denied09:14
rrqfurther down it tells about a log file09:15
randomuser1975AddScreen/ScreenInit failed for driver 009:15
randomuser1975This is the log file09:15
rrqfurther down it tells about another log file09:15
randomuser1975I'm in the only one, in .local/share/xorg/Xorg.0.log09:16
randomuser1975I grepped permission error09:16
randomuser1975There is also a dbus permission error at09:16
randomuser1975./var/run/dbus/system_bus_socket09:17
randomuser1975The error is from dbus_core, and it may be minor as it is from org.freedesktop.Dbus.Error.AccessDenied09:18
randomuser1975This is x11 as a standard user09:19
randomuser1975I will try root09:19
randomuser1975X11 opens with root09:20
rrqI believe there are quirks involved wrt running startx as root or non-root but you'll have to wait for other people on that ... I'm using the "standard Devuan xfce" setup09:20
randomuser1975This may be due to the change in ascii09:20
randomuser1975I remember having to change settings per a changelog due to this behavior09:20
randomuser1975Anyway, can we continue with checking anything else?09:21
randomuser1975The script included /proc and /dev09:22
rrqyou've got the sticky bit set on the programs that need that; all other programs should be "-rwxr-xr-x" (755) I suppose09:24
randomuser1975And /var09:24
randomuser1975Really evetything09:24
randomuser1975Is there an easy way to set that enmasse09:24
randomuser1975Does tor need the stickybit, btw09:25
randomuser1975Tor/torify/torsocks09:25
randomuser1975And fetchmail?09:25
rrqdon't know; if you have disk space you can set up a chroot with everything installed and check09:26
rrqor use the live iso (and check it)09:28
randomuser1975Could you please guide me to download it?09:30
randomuser1975I have not used chroot before09:30
rrqyes the live iso is "easier" .. let me find a fast mirror09:32
rrqusually fast: https://mirror.leaseweb.com/devuan/devuan_ascii/desktop-live/devuan_ascii_2.1_amd64_desktop-live.iso09:33
rrqits 1G09:33
rrqcommand: wget https://mirror.leaseweb.com/devuan/devuan_ascii/desktop-live/devuan_ascii_2.1_amd64_desktop-live.iso09:33
rrqsaves it as file devuan_ascii_2.1_amd64_desktop-live.iso09:34
randomuser1975Ok09:34
rrqdo you have usb or dvd+media ?09:34
randomuser1975Downloading09:35
randomuser1975Not presently, no09:35
randomuser1975Which was another issue09:35
randomuser1975Also for record, I checked the ascii release notes and I have already enabled `allow_root_login` in xorg-common09:36
randomuser1975So the issue is not the known qwerk09:36
randomuser197565%09:36
randomuser197590%09:36
randomuser1975Done09:37
rrqit's a little bit trickier to run it directly from the disk ... esp with wokring X11 hmmm09:37
rrqwithout09:38
randomuser1975That's ok09:38
randomuser1975Should I extract the iso or attempt to mount it09:38
rrqyes you can browse the dis; the running file system is inside a squasfs file on the disk09:39
rrqso mount the disk09:39
rrqthen mount that squashfs09:39
randomuser1975Which is better, /mnt, or /media/sr009:40
rrqmkdir /mnt/disk /mnt/fs09:40
randomuser1975One moment09:40
rrqmount file /mnt/disk09:40
randomuser1975Mounted in read-only mode09:41
rrqfind the squasfs ... (I'm still downloading)09:41
rrqthen: mount /mnt/disk/squasfs /mnt/fs09:42
randomuser1975You mean /live/filesystem.squashfs?09:42
rrqsounds good09:42
rrqmount /mnt/disk/live/filesystem.squashfs /mnt/fs09:43
randomuser1975Done09:43
randomuser1975I'm in09:43
rrqok now you can review /mnt/fs and compare ... it doesn't have fetchmail installed though09:44
randomuser1975You know who I am, dontcha09:44
randomuser1975Heh09:44
randomuser1975What isvthe best way to compare09:45
rrqthe entries in /mnt/fs/dev are the initial static entries; the rest get created dynamically09:45
randomuser1975I'm sure there's a standard way09:45
rrqmake two "ls -alR" logs and diff them, perhaps?09:46
rrqthough only on subdirs below /  ... not / itself09:46
rrqskip /proc /dev and /sys which are (mostly) dynamic09:47
rrqand /run09:47
rrqre fetchmail and firejail and tor* it might be easiest to purge and install09:48
randomuser1975I performed it on both the fs and the system09:48
randomuser1975./bin/ /sbin/ /etc/ /lib/ /usr/09:49
randomuser1975Running a diff on both log files prints out content I do not understand09:49
randomuser1975I see why now09:50
randomuser1975It doesn't list permissions, it's colorcods09:50
rrqit does get a bit messy... perhaps "diff -y --suppress-common-lines ..." and pipe that into a file09:51
randomuser1975Did so09:51
randomuser1975Numerous output here09:51
randomuser1975Still in a color-coded format I do not understand09:52
rrqrigh hmm, your ls has colors I suppose09:53
randomuser1975Yes09:53
randomuser1975But I expected numerical chmod09:53
rrqmaybe rerun with ls --color=never09:54
randomuser1975This list is still not saying chmod, only packagelists09:55
randomuser1975That is, filelists09:55
rrqtry: find . -type f | xargs -n 1 -I+ stat -c "%a %n" '+'09:56
rrqto make the file lists09:56
rrqor maybe put the name before the code: "%n %a"09:57
rrqthen diff gets happier09:57
randomuser1975Can I use xargs without x11?09:58
rrqyes09:58
randomuser1975One moment09:58
rrqthat x means something else than X1109:59
randomuser1975Ah09:59
rrq"execute" maybe, or "execute for"10:00
rrqhttps://en.wikipedia.org/wiki/Xargs10:00
rrqxargs = "eXtended ARGuments"10:01
randomuser1975Sorry 'bout that10:01
randomuser1975I missed your instruction to purge and reinstall those packages10:01
randomuser1975So I did so10:01
randomuser1975Now to continue10:01
randomuser1975Now we're cooking with gas10:03
randomuser1975Command still running10:03
randomuser1975All these files are suffixed with the chmod10:03
randomuser1975Shouldn't they be prefixed?10:03
randomuser1975I'm changing the order10:04
rrqas file lists it works better to have the file name first10:04
rrqyou maight even want to add an A nd B to the file lists, as "%n %a A" and "%n %a B" in order to postprocess them by mreging and getting rid those that are equal ...10:04
randomuser1975Verywell10:04
randomuser1975Ah yes10:04
randomuser1975This produces error10:05
randomuser1975"Cannot stat %n %a B10:05
randomuser1975I probably bonked syntax10:06
rrqthe quotes ?10:06
randomuser1975Nay10:06
rrqfind . -type f | xargs -n 1 -I+ stat -c "%n %a A" '+'10:06
randomuser1975"%n %a A" "%n %a B" '+'...10:07
randomuser1975Ah10:07
rrqthat would be for the laptop dirs10:07
randomuser1975This'll take a while I'm sure10:07
rrqfind . -type f | xargs -n 1 -I+ stat -c "%n %a B" '+'10:07
rrqwould be for the squashfs dirs10:07
randomuser1975I'm still in /mnt/fs10:07
randomuser1975So in this case10:07
randomuser1975A is the squashfs10:08
randomuser1975And B is the bonked system10:08
rrqfair enough10:08
randomuser1975Interesting errors once going back to /10:09
randomuser1975./rub/udev/* no such file or directory10:09
randomuser1975All of it being in /run/udev/links/x2f*10:10
rrqskip /erun .. it's dynamic10:10
rrqskip /dev /proc /run and /sys10:10
randomuser1975I'm running your command from / with no additional arguments10:10
rrqthen it'll traverse into /mnt/fs as well10:11
randomuser1975What should I do10:11
rrqwell.. wait :)10:11
randomuser1975I'm cding into dirs now and prepending the log with >>10:12
randomuser1975The original was in /root/log.log10:12
rrqso you only get two lists then, A and B ? wwith A being rooted in the squasfs10:12
randomuser1975This one is /root/log1.log10:12
rrqok10:12
randomuser1975Yes10:12
randomuser1975I did /bin10:13
randomuser1975Now /usr10:13
randomuser1975Then /sbin10:13
randomuser1975Then /etc10:13
randomuser1975Then what10:13
rrqcat /root/log.log /root/log1.log | sort -uk1,2 > /root/logX.log10:13
randomuser1975Any other dirs10:13
rrqpossibly /var10:14
randomuser1975Doing /var now10:15
rrqall added into log1.log I hope10:15
rrqthen sorting10:16
randomuser1975your command prouuces a file with the forst 47 lines all B10:17
randomuser1975Ok, there are a few A mixed10:17
randomuser1975How do I sort through this then10:17
randomuser1975Is A only appearing when it's different from B?10:19
randomuser1975I'm confused10:19
rrqyou should find both A and B for the same file together where they differ in file mod10:19
randomuser1975The first instance of A I find is for /bin/bash10:20
randomuser1975It does not list B next to it10:20
rrqa B line without preceding A line indicates a file that where not in the squashfs10:20
randomuser1975There are numerous10:20
randomuser1975It's almost all B10:20
rrqan A line without an equal B line indicates a common file with equal file mod10:20
randomuser1975Ok10:21
randomuser1975So if there is a B with no A then it's fucked10:21
randomuser1975Should I be running diff?10:21
randomuser1975I'm using less10:21
randomuser1975None of these appear to be duplocates10:22
rrqso .. hmm find all A lines that followed by same file B line (and differing file mod) .. would be an awk10:22
randomuser1975I'm not versed on awk10:22
rrqmaybe: awk '$1==F { print; } {F=$1;}'10:24
rrqthat should print all B lines preceded by an equal file (differing mod) A line10:24
randomuser1975Why couldn't I just do "chmod %n %f on squashfs, then10:24
randomuser1975Run it10:24
randomuser1975Do I cat the logx into awk?10:25
rrqyes right10:25
rrqunless file names have spaces in them ...10:25
randomuser1975This produces an incredibly short list10:26
randomuser1975Most of them being ./share and ./local10:27
randomuser1975All of them B10:27
randomuser1975Only things of note are the first two lines in ./etc and ./lib10:27
rrqok that's all files with different file mod on the squasfs10:27
randomuser1975One is /etc/ssl/openssl.cnf10:27
rrqhmm so you need the A line I suppose; different awk10:28
randomuser1975The second is /lib/x86_64/libpopt.so.0.0.010:28
rrqmaybe: awk '$1==F { print F,M; } {F=$1; M=$2}'10:29
randomuser1975And the rest is mostly Wolfenstein Enemy Terretory and supertuxkart10:29
randomuser1975Same output except no letter, A or B suffixed10:30
rrqyes but now the file mod of the squashfs10:30
randomuser1975It's the same files10:30
randomuser1975I doubt the squashfs hs SuprtTuxKart and Wolfensten: ET10:31
rrqok; file names with spaces gets messier10:31
randomuser1975There is one difference10:32
randomuser1975Openssl.cnf is 644 on second run10:32
randomuser1975As is libpopt.so....10:33
randomuser1975These were 755 originally10:33
rrqmaybe: awk '{X=$0; $NF=""; $(NF-1)=""} $0==F { print Y; } {F=$0; Y=X}'10:34
rrqthat might handle filenames with spaces10:34
rrqbut the squashfs doesn't have them anyhow10:35
randomuser1975This produces null output10:36
rrqok, use: awk 'NF!=3 {next;} $1==F { print F,M; } {F=$1; M=$2}'10:37
rrqthat should discard all lines with spaces in file names10:38
rrqthen fix up those few files10:39
randomuser1975This again produces the same two files of significance, and only these two files10:39
randomuser1975./etc/ssl/openssl.cnf 64410:40
rrqso all else is compatible; but of course the squasfs dowsn't have all files the laptop has10:40
randomuser1975./lib/x86_64-linux-gnu/libpopt.so.0.0.0 64410:40
randomuser1975Before going forward10:41
randomuser1975This is the /correct/ chmod?10:41
rrqyes10:41
randomuser1975I think I should check /dev10:42
rrqthat should bring you back to having the x11 problem before "running random script to fix"10:42
randomuser1975Lemme check what dirs I had10:42
rrqmost of /dev is dynamic ... i.e. created at boot10:42
rrqI need to go10:43
randomuser1975I did /bin, /usr, /sbin, /etc, /var10:43
randomuser1975Ok10:43
randomuser1975Thank you10:44
randomuser1975I'm trying it out10:44
randomuser1975I truly don't know if this worked, only two files have been modified10:44
randomuser1975On this checking awk at least10:44
randomuser1975And actually10:45
randomuser1975The second file chmod could not find10:45
gnarfaceif you have a script that is getting tripped up by there being spaces in file names, you could just try changing $PS1 to a newline character11:07
debyhello, installing things in debian can also enable services automatically. I'm not a fun of this. Can this happen in Devuan too?12:03
debyfor example if I only install apache2, then apache2 is run every time I boot the system.12:04
gnarfacedeby: it's up to the individual package's maintainers, and yes, it's fairly common for them to be enabled by default.  in fact, the ones that don't are the ones that have historically been the biggest problem for people.12:06
gnarfacedeby: luckily it's far easier to disable them here than with systemd, so you really shouldn't worry.  just delete the init script and it *really* isn't gonna start.12:07
gnarfaceand no funny business like with systemd where they "oopsie" have it ignore that sometimes or just spastically relaunch everything that shuts down for any reason12:08
gnarfaceit's not complex enough to make mistakes like that12:08
debygnarface: I see. The problem is, that if I'm not vigilant when installing stuff I might not become aware that some service was enabled.12:09
gnarfacedeby: well for the most part if you learn how to manipulate the /etc/rc?.d/ symlinks they can be used to disable launch and usually won't be overwritten by updates12:10
gnarfacedeby: mistakes are made though, it's good to be vigilant either way12:10
gnarfacei mean, if you're really paranoid about security but you don't trust yourself enough, you could always just run a firewall that blocks inbound traffic.  that will work even if some service gets enabled accidentally12:11
onefangsysv-rc-conf can be helpful to see what services are enabled, and disabling them.12:15
gnarfacei just use nmap or nc to run a quick portscan but yea that works too12:16
gnarfacethere are more than one tools to edit the rc?.d symlinks but i prefer to do it by hand usually12:17
debdogfor the links: just rename them from S$something to K$something12:17
gnarfaceyea, the logic is so simple it almost doesn't need documentation12:17
gnarfaceyou can kinda figure it out by inference and observation12:18
debdogalso, there's a readme inside that folder :)12:18
gnarfaceheh yea12:18
gnarfacein /etc/init.d/12:19
gnarfaceoh, it's symlinked from all the /etc/rc?.d/ directories as well i see12:19
gnarfaceat least on ceres12:19
nieuwlandhi13:20
nieuwlandwe have an old devuan install here that i'm trying to update, but it cant find the package mirrors  anymore.. did the mirror dns names change? it's set to nl.mirror.devuan.org whats the new name then?13:23
luser977it's standard for an installed service or server to start immediately. this is BAD. stopnthe service by hand after installing, configure, start again or disable in /etc/rc?.d/ as needed.13:24
luser977 alas it's the same in devuan and debian. slackware has it right, no auto start.13:27
onefangnieuwland: Use deb.devuan.org for your package mirror, the country code mirrors are deprecated.  If you want one that is closer to you, look in https://pkgmaster.devuan.org/mirror_list.txt13:30
nieuwlandok thannk!13:31
nieuwlandit works13:31
nieuwlandbbl13:31
user_Beowulf audio woes: continued: /etc/init.d/osspd start -> works but had to add: chown root.audio /dev/dsp /dev/adsp /dev/mixer; no sound from pulse18:55
user_syslog shows pulse trying to restart itself with every connection from osspd!18:55
user_Jan 24 19:53:43 beowulf pulseaudio[21771]: [pulseaudio] main.c: D-Bus name org.PulseAudio1 already taken.18:55
user_Jan 24 19:53:43 beowulf pulseaudio[21768]: [pulseaudio] main.c: Daemon startup failed.18:56
user_of course pulse is running, under xfce, just this... what the...18:56
user_Any ideas where to look? osspd provides /dev/dsp and /dev/mixer emulation for pulse18:56
user_-.-18:56
user_Anyone used padsp with a scripting language like perl or tcl?18:58
user_Excellent. Running an interp under padsp shows zero audio devices usable.19:01
user_padsp fakes open() on /dev/dsp but not stat() /dev/dsp19:02
user_Poettering, I hope you are hiccuping hard now.19:03
user_Right, the readme of osspd says it uses padsp as back end. Back to Poettering.19:08
user_So /usr/lib/osspd/ossp-padsp does something which pulse/padsp do not like19:13
user_No log or error messages even with --log=619:13
user_Is the /dev/dsp emulation in jack/jackd better?19:13
user_-.- <- this is Morse for 'K'. Means key. As in, answer please :)19:14
user_more strangeness, /dev/shm has several jack related things in it, but jack(d) is not running19:23
n4dirtry #lau perhaps19:26
user_#lau?19:26
n4diror #opensourcemusicians19:26
n4dirups: linux audio users, yes, lau. I forgot to spell it out19:26
user_right, this is more a #kernel question imho, or at least drivers19:26
user_fluidsynth does the midi job 10 times better than timidity.20:12
buZzyeah, especially with a good soundfont20:12
user_Just for laughs, tmidity gets stuck and stutters while fluid does not. Neither is allowed high priority threads or low niceness20:13
user_What happens on beowulf if one deinstalls pulse and does not install jack?20:35
user_No sound?20:35
n4dirnot for firefucker, iirc. Else sure.20:35
n4dirthere is a workaround though.20:35
buZzalsa should still work fine20:35
fsmithredff-esr does not need pulse20:38
fsmithredtor-browser does, and it will work with apulse20:38
gnarfaceuser_: everything should still work with bare alsa, and most of it actually does, unless you have a broken driver20:41
gnarface(partially-broken alsa driver is a common problem though)20:41
n4diri sure didn't find a way make amsynth and zynaddsubfx use anything but jack20:42
n4dirand some more20:42
user_n4dir: amsynth works great with alsa here20:42
gnarfacewell, "partially-broken" can mean that one driver can work for some hardware and software combinations but not others20:43
user_byebye pulse20:44
gnarfacethe stupid shared snd_hda_intel driver has had a long-standing regression with surround sound on my onboard audio device, but after extensive testing it seems like VLC actually works right?!?  maybe just for dts/ac3 content though, not sure20:44
user_That thing gave me hives for months.20:45
gnarfaceanyway it suggests that the breakage can be patched around with a clever enough ~/.asoundrc, which is a situation i've seen before20:45
user_I would like to tinker as little as possible with this and just go on with my other projects.20:45
gnarfacesometimes the driver just misses part of the setup, but certain programs cover it20:45
gnarfaceand in those cases sometimes you can make a custom config20:46
gnarfacein a fair world you shouldn't have to20:46
user_Is there an xfce tray volume control which works with alsa?20:59
user_there is an xfce4-alsa-plugin20:59
user_on github, depends on gtk...21:00
user_https://github.com/equeim/xfce4-alsa-plugin not in Beowulf21:00
fsmithredvolumeicon-alsa21:00
fsmithredthere is no more xfce mixer21:01
user_there is alsamixergui21:01
user_which looks like original Motif from 199x but hey21:01
user_pulse is GONE.21:01
fsmithredyeah, it works21:03
fsmithreddoes alsamixergui sit in the panel? Been a long time since I've used it.21:04
user_No21:04
user_I need to restart xfce it does not see the volumeicon now21:04
user_brb21:04
user_Hmm can't add volumeicon to a launcher in the tray. File path is /usr/bin/volumeicon but it does not appear in the launcher's config as installable binary?!21:06
fsmithredno need for a launcher. Add it to startup applications.21:06
user_grr it's a tray only app21:06
fsmithredwhy is that a problem?21:08
user_f.ex. it pulls in the network manager icon in the tray and the position is not controllable in the tray using the panel edit controls21:08
fsmithredn-m icon should not be affected by volumeicon21:09
user_How come I can't move the tray icon around?21:13
fsmithreddunno. I never tried that.21:14
user_AHH it is called "Notification Area" in the panel editor. And it can be moved with the arrows in the list.21:14
fsmithredmaybe they are in alphabetical order21:14
fsmithredthe whole thing moves, right?21:14
fsmithredor can you move the individual items?21:15
user_yes the volume icon and the network manager icon are in a mini tray21:15
user_which is moved as one item using the arrows in the panel edit and cannot be dragged etc21:15
fsmithredI have those two plus hexchat, and they are in alphabetical order from left to right21:15
user_Yes that thing is not so configurable.21:15
AmeliaFloofPCis it possible to migrate to OpenRC from a SysVInit install21:16
fsmithredyes. apt install openrc21:16
fsmithredyou'll get on-screen instructions for what to do wtih the symlinks21:16
fsmithredat least I think you still have to do that manually. Maybe I'm wrong and it's automatic.21:17
AmeliaFloofPCok21:19
AmeliaFloofPCno it did it all21:19
AmeliaFloofPCI had to run a command that migrated them21:19
AmeliaFloofPCbut other than that I am now on OpenRC :)21:19
user_great. Now what? :)21:20
user_What's your beef with syvinit?21:20
AmeliaFloofPCIt was difficult for me to use21:20
AmeliaFloofPCtbh21:20
AmeliaFloofPCits nice and hella fuckin stable21:20
AmeliaFloofPCI actually do have another issue.... Disk utils like parted and fdisk dont work even though they are installed. They say command not found whenever I run them (As user or as root)21:21
user_Ok so amsynth needs jack, does not run on bare alsa.21:24
user_in despite of permitting selection of alsa in the io controls21:24
user_qsynth also refuses to work w/o jack21:25
user_where does one find alsa-patch-bay ? Or Patchage?21:30
user_http://pkl.net/~node/software/alsa-patch-bay/ hmm not in beowulf packages21:31
user_And no dates on it. W3C HTML 3 compat suggests ancient history and elderberry flavor21:32
gnarfaceAmeliaFloofPC: are you using a graphical login?  check the release notes about it21:36
AmeliaFloofPCyes?21:36
AmeliaFloofPCis there a bug with parted and using xorg?21:36
AmeliaFloofPCwould switching to tty1 fix it?21:36
gnarfacei think it might be a permissions backend thing, there was a bug with those before anyway, it's mentioned in the release notes, certain combinations don't work21:37
gnarfaceswitching to tty1 might dodge it, not sure21:37
gnarfaceworth a try21:37
n4diruser_: alsa-patch-bay isn't the jack-alsa-bridge, is it?21:37
gnarfaceAmeliaFloofPC: http://files.devuan.org/devuan_beowulf/Release_notes.txt21:38
gnarfaceAmeliaFloofPC: you should read the whole thing really, but the part relevant to my earlier comment is the section "### Session management and policykit backends"21:38
gnarfacethere might have been other things that could cause issues like this for you too though... they removed /sbin and /usr/sbin from root's default path21:40
AmeliaFloofPCso Im kinda borked basically?21:41
fsmithreduse 'su -'21:42
gnarfaceno, did you read it?21:42
gnarfaceboth issues have simple fixes21:42
AmeliaFloofPCI already have a session manager tho21:42
gnarfaceyou just have to be aware of them21:42
fsmithredthe root path fix is independent of any session manager issues21:43
gnarfaceyes, they're different issues21:43
AmeliaFloofPCI was talking about the issue with fdisk and aprted21:43
gnarfacei was too21:43
fsmithredthat is the root path21:43
fsmithredcall /sbin/fdisk21:43
fsmithredpretty sure it's there21:44
AmeliaFloofPCOHHH21:44
AmeliaFloofPCok that makes sense21:44
AmeliaFloofPCit works ty21:44
fsmithreddo you like to run graphical apps as root, started from a terminal? You won't be able to do that with 'su -'21:45
gnarfacewell, not by default anyway21:45
gnarfaceyou can make some adjustments though...21:45
AmeliaFloofPCdo you know where parted is stored21:46
gnarfacedpkg -S parted21:46
AmeliaFloofPCit doesnt mention the installed dir21:47
AmeliaFloofPCjust the pkg desc and if its installed and like conflicts21:47
gnarfacedid you use capital "S" or lower-cased?21:48
AmeliaFloofPCwait21:48
gnarfacecase matters with these21:48
AmeliaFloofPCgot it to work.21:48
AmeliaFloofPCI have parted21:49
AmeliaFloofPCthank you guys21:49
user_Ok I made amsynth work on alsa w/o jack with vmpk etc. Requires manual patching with aconnect22:08
user_note: do not change midi instruments from vmpk - it crashes amsynth.22:09
n4dirwhy not just use jack?22:12
user_I just wiped jack and pulse22:13
user_ /dev/dsp is provided by alsa or by alsa oss compat?22:14
fsmithredmust be from alsa-oss because I don't have /dev/dsp.22:15
user_it's osspd22:15
fsmithredalsa-utils does not provide /dev/dsp. That's all I know.22:16
user_stumper: with pulse, I had osspd-pulse and I modded /etc/init.d/osspd to add: chown root.audio /dev/dsp etc22:16
user_that worked. Now with osspd-alsa I have the exact same init.d file and the permissions stay root.root on /dev/dsp22:16
user_WHAT THE22:16
user_ok, this is beyond me.22:18
user_I have: chown root.audio /dev/dsp /dev/adsp /dev/mixer 2>/dev/null22:18
user_in osspd in /etc/init.d ; there is no other chown in there22:19
user_I run $@ start and it makes /dev/dsp root.root22:19
user_this is insane22:19
user_I checked I put it where it should be and it used to work22:19
fsmithredtry root:audio instead of root.audio22:20
user_Something changes perms on /dev/dsp after the script runs. If I change perms on the device manually after the fact they stay22:20
user_root.audio is correct for this machine22:20
fsmithreddot works?22:20
fsmithredok22:20
user_I suspect the program deletes the device and re-creates it "later" since it's a daemon22:20
user_later meaning after the script runs22:20
user_adding a sleep 2 before chown in the script fixed it22:22
user_it was what I thought it was, daemon recreates file.22:22
* fluffywolf spots a floof!22:26
user_you two get a room22:28
user_the amsynth link I posted above is unrelated to devuan/debian package amsynth, sorry, my mistake.22:29
grillonhi there22:46
grillonI have two vms on devuan in dhcp I set an IP for them on my default bridge network with libvirt.  But my vms still obtain random adress. We have check host and libvirt conf(on libvirt channel) every thing seems ok, they think it's my guest configuration. Do you know what I could check? NB: if I wait few minutes and I do dhclient eth0, I obtain the good IP...22:52
grillonIf my interpretation of my tcpdump is good. Server want to give 192.168.122.151(as I want) but client reclaim 192.168.122.107 this is the IP I obtain after installing the vm...23:04
grillonOk I see it's in dhclient.eth0.leases23:06
grilloncan I just erase this file?23:06
n4dir  grillon you can always mv a file to a *.backup, to test23:09
n4diri guess i would consider if setting the wished IP static in the interfaces file.23:10
grillonyes but I want to configure more than one guest23:10
grillonlet's try the backup file thank you23:10
grillonit's just incrementing23:17
grilloninstead of 107 I obtain 108 then 109 then 110 etc.23:18
n4diri stick to i would try to enforce it also in /etc/network/interfaces, but i am neither in libvirt nor in static IP addresses. Perhaps pointless comment23:19
n4dirif no one answers here you can probably also ask in #linux or such23:19
n4dirdoesn#t seem like a devuan specific problem23:19
n4dirshort version: good luck23:20
grillonthank you I was on #virt channel and we check together libvirt conf and it's ok, they think problem is in my guest conf that's why I ask here23:21
n4dirah, good then.23:21
n4dirjust wait. or ask again if it will take to long. i guess23:22
grillonthank you @n4dir I wait23:35
rrqgrillon: which dhcp server is used, and how is that configured for static service (i.e. [macaddress or cliet hostname]-to-[IP] assignments)23:38
grillonI use a virtual bridge23:38
grillonmy config is https://controlc.com/ae87343e23:39
rrqdo you mean that the networking is set up using a bridge where VM taps gets gridbed to the host outboutn interface, and that that bridging is some wway is associated with dhcp service?23:40
rrqgridbed = bridged, and outboutn = outbound23:40
grillonyes tht's what I mean23:44
grillonmy virtual bridge is associated with my physical host interface and acte as gateway, switch, and dhcp server23:45
rrqone issue would be that, if bridged with the outbound interface, the outer dhcp service (on a eg router) will see and act on dhcp requests; in competition with your gateway host dhcp ... but that's a different issue23:48
rrqor not ...23:49
rrqbut, presumably that <dhcp>...</dhcp> block is intended to declare the static assignments23:51
grillonhost is not in the same network23:52
grillonhost network is 192.168.1.0/24 and guest network is 192.168.122.0/2423:53
rrqbridging operates at Etherent level, not IP level23:53
rrqthe purpose with bridging is to join interfaces to be on "the same network"23:53
grillonI do not think my bridge act as dhcp server on host network23:54
grillonit's like different physical network...physical and virtual23:54
grillonin my tcpdump I see only my virtual machine talking to dhcp serveur23:55
rrqyes, on inference from your conf, that is what the "nat" setup implies; that bridge only connects the VM taps into a network, and is also the gateway end of that nework23:55
grillonyes as you said :-)23:56
rrqall in all, you have a program servicing port 6823:56
rrqcould be named *dhcp* something or perhaps dnsmasq23:56
rrqor whatever the RH guys thinks is cute23:57
grillonI have dnsmasq23:57
rrqright; it will need a kill -HUP to re-read its static configuration23:58
rrqif you do: pgrep -a dnsmasq23:58
rrqit will tell you pid and all arguments used23:58
rrqit should have and argument like --dhcp-hostsfile=/home/share/dhcphosts23:59

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