00:12.59 | *** join/#devuan n4dir (~n4dir@87.123.200.214) |
00:39.20 | *** part/#devuan romo (~romo@unaffiliated/romo) |
00:51.27 | *** join/#devuan fsmithred (~fsmithred@devuan/developer/fsmithred) |
01:22.53 | *** join/#devuan randomuser1975 (~randomuse@2607:fb90:284e:12f9:2112:975d:2bdd:bf4f) |
01:23.35 | randomuser1975 | I 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? |
01:25.41 | fsmithred | randomuser1975, try the desktop-live iso |
01:26.34 | randomuser1975 | I 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. |
01:26.38 | fsmithred | also, you got an answer after you left |
01:26.43 | fsmithred | <rwp> randomuser1975 did not stay long enough for an answer. But the permissions displayed in that photo looked okay to me. |
01:26.43 | 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. |
01:26.43 | fsmithred | <rwp> Because if there were a real problem to begin with then it would have gotten fixed in the OS distro already. |
01:27.22 | randomuser1975 | The permissions are not. I can't even su because su can not access groups |
01:28.01 | randomuser1975 | I can't start x11, init.d screams at me about sshkeys unsecured |
01:28.13 | randomuser1975 | I can access root in the recovery console |
01:30.32 | randomuser1975 | Fsmithred, rwp |
01:30.46 | fsmithred | the permissions in that pic look right to me, too |
01:30.58 | randomuser1975 | What's the problem then? |
01:31.08 | fsmithred | you ran some script? What did the script do? |
01:31.17 | randomuser1975 | Just a few select files/directories fucked? |
01:31.19 | fsmithred | I have no idea what the problem is. |
01:31.35 | randomuser1975 | The script was a solution posted to ubuntu forums |
01:31.42 | randomuser1975 | It was 4 or 5 lines |
01:31.45 | fsmithred | that doesn't explain what id did |
01:31.59 | randomuser1975 | `chmod -R xxx /dir` |
01:32.16 | fsmithred | yeah, that can definitely fuck things up |
01:32.25 | randomuser1975 | Yes, I'm aware |
01:32.44 | randomuser1975 | As I said, it found its way across the net it appears |
01:32.59 | fsmithred | something below the level of / needs permissions that are not xxx |
01:33.50 | randomuser1975 | It was posted originally to ubuntu forums as a solution to "I accidently ran chmod 777 /" |
01:34.04 | fsmithred | ssh keys should be chmod 400, I know that much |
01:34.09 | randomuser1975 | I meant xxx as a variable |
01:34.13 | fsmithred | so did I |
01:34.17 | randomuser1975 | Each line was different |
01:34.23 | randomuser1975 | Yes |
01:34.30 | fsmithred | which four dirs got hit? |
01:34.45 | randomuser1975 | I can login but maybe the issues were not as big as I thoughy |
01:34.51 | randomuser1975 | All of them |
01:35.12 | randomuser1975 | The first line was a single chmod command for 5 or so dirs |
01:35.19 | randomuser1975 | You can find it online |
01:35.52 | fsmithred | for a few year, I wanted to post on ubuntu forum with the title "chmod 777: RESIST THE URGE" |
01:36.22 | randomuser1975 | I'm not stupid enough to do /that/ |
01:36.35 | fsmithred | normally you don't need to change the permissions on any system files |
01:36.43 | randomuser1975 | I was just trying to reset the system to its default chmod |
01:36.58 | randomuser1975 | Since my initial problems werw with alsa |
01:37.16 | randomuser1975 | Then I discovered that freshclam couldn't access its libraries |
01:37.29 | randomuser1975 | So I saught to fix it to defaults |
01:37.37 | randomuser1975 | Found this |
01:38.12 | randomuser1975 | Only after did I see it shared elsewhere and responses were "This is stupid" and "It bricked my system" |
01:39.50 | randomuser1975 | Do you have any suggestion at this time? I must return to the floor at work. I get home at 11 pst |
01:40.17 | fsmithred | only suggestion is to boot the live and see what permissions are in the dirs you changed |
01:40.27 | fsmithred | assuming you don't want to reinstall |
01:40.33 | randomuser1975 | Ok |
02:07.33 | *** join/#devuan targz (~Thunderbi@unaffiliated/targz) |
02:16.46 | *** join/#devuan qin (~qin@unaffiliated/soalokin) |
02:36.45 | *** join/#devuan n4dir (~n4dir@i5E866662.versanet.de) |
03:10.36 | *** join/#devuan _zxq9_ (~zxq9@FL1-119-244-161-106.okn.mesh.ad.jp) |
03:56.23 | *** join/#devuan debdog (~debdog@194.140.114.164) |
03:59.56 | *** join/#devuan gast0n (~g4570n@unaffiliated/g4570n) |
05:52.24 | *** join/#devuan infobot (ibot@96-86-209-99-static.hfc.comcastbusiness.net) |
05:52.24 | *** topic/#devuan is Welcome to Devuan! https://devuan.org | Releases: https://files.devuan.org (Beowulf 3.0 stable, ASCII 2.1 old-stable) | Forum https://dev1galaxy.org | Chanlogs http://reisenweber.net/irclogs/freenode/_devuan/ | take offtopic chat to #devuan-offtopic |
05:52.24 | *** mode/#devuan [+v infobot] by ChanServ |
07:03.31 | *** join/#devuan clemens3 (~clemens@225.40.150.83.ftth.as8758.net) |
07:24.08 | *** join/#devuan lava2 (~quassel@169-0-253-220.ip.afrihost.co.za) |
07:33.24 | *** join/#devuan clemens3 (~clemens@225.40.150.83.ftth.as8758.net) |
07:56.32 | *** join/#devuan randomuser1975 (~randomuse@ip24-253-120-8.lv.lv.cox.net) |
07:56.52 | randomuser1975 | I am now at my terminal if anyone is willing to aide me further |
07:58.48 | randomuser1975 | I have returned my umask to default 022 and am rebooting out of SUM |
07:58.50 | rrq | chmod 4755 /bin/su |
07:59.18 | randomuser1975 | .ok |
07:59.30 | randomuser1975 | Going back to SUM to do that real quick |
08:00.20 | randomuser1975 | Done |
08:00.46 | randomuser1975 | It's now safe to login as standard to test it, I assume? |
08:01.47 | randomuser1975 | I'm doing so now |
08:02.09 | randomuser1975 | Inet.d screamed about ssh keys being fucked again |
08:02.13 | randomuser1975 | Loging in |
08:02.14 | rrq | same for fusermount mount ntfs-3g umount and rdisc6 |
08:02.34 | randomuser1975 | I now have su working |
08:03.00 | randomuser1975 | Those are all in /bin? |
08:03.09 | randomuser1975 | I thought some were in /sbin |
08:03.51 | rrq | mount.nfs |
08:04.23 | randomuser1975 | it seems rdisc6 is not installed |
08:04.34 | rrq | some few in /usr/bin as well |
08:05.04 | rrq | that's fne |
08:05.12 | randomuser1975 | Did for /sbin/mount.nfs |
08:06.12 | randomuser1975 | I assume this is towards wgetting the iso |
08:06.19 | rrq | bwrap chfn chsh firejail gpasswd ndisc6 newgrp passwd pmount procmail pumount rltraceroute6 sudo in /usr/bin |
08:06.32 | randomuser1975 | All 4755 too? |
08:06.38 | randomuser1975 | I don't use sudo |
08:06.40 | rrq | yes |
08:06.49 | rrq | for ssh it needs ~/.ssh to be 700 |
08:07.37 | rrq | and possibly ~/.ssh/auhorized_keys to be 600 |
08:08.32 | rrq | and you might want /etc/ssh/*key to be 600 as well |
08:09.35 | randomuser1975 | Done. I don't have all the packages you list. I should probably reinstall firejail when done. I have use for it |
08:09.57 | rrq | that's all fine |
08:10.07 | randomuser1975 | After this, I'll probably publish my own default permissions file. I wonder if I could add it to apt |
08:10.22 | randomuser1975 | Idk if I'll have time to maintain it |
08:10.38 | randomuser1975 | Please continue |
08:10.42 | randomuser1975 | And thank you, btw |
08:11.20 | rrq | it should let you ssh to the box now and us su ... I don;t knwo about your x problem |
08:11.47 | randomuser1975 | This is a laptop, I have no use to ssh in |
08:11.53 | randomuser1975 | I have no other comp |
08:12.09 | randomuser1975 | That was the impairment to fixing it |
08:12.42 | rrq | fair enough. i misunderstood |
08:12.54 | randomuser1975 | What should I do further |
08:14.41 | randomuser1975 | The xorg log reads |
08:14.59 | randomuser1975 | drmSetMaster: Permission denied |
08:15.14 | rrq | further down it tells about a log file |
08:15.24 | randomuser1975 | AddScreen/ScreenInit failed for driver 0 |
08:15.29 | randomuser1975 | This is the log file |
08:15.40 | rrq | further down it tells about another log file |
08:16.27 | randomuser1975 | I'm in the only one, in .local/share/xorg/Xorg.0.log |
08:16.44 | randomuser1975 | I grepped permission error |
08:16.59 | randomuser1975 | There is also a dbus permission error at |
08:17.28 | randomuser1975 | ./var/run/dbus/system_bus_socket |
08:18.20 | randomuser1975 | The error is from dbus_core, and it may be minor as it is from org.freedesktop.Dbus.Error.AccessDenied |
08:19.36 | randomuser1975 | This is x11 as a standard user |
08:19.44 | randomuser1975 | I will try root |
08:20.05 | randomuser1975 | X11 opens with root |
08:20.19 | rrq | I 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" setup |
08:20.22 | randomuser1975 | This may be due to the change in ascii |
08:20.52 | randomuser1975 | I remember having to change settings per a changelog due to this behavior |
08:21.38 | randomuser1975 | Anyway, can we continue with checking anything else? |
08:22.50 | randomuser1975 | The script included /proc and /dev |
08:24.13 | rrq | you've got the sticky bit set on the programs that need that; all other programs should be "-rwxr-xr-x" (755) I suppose |
08:24.14 | randomuser1975 | And /var |
08:24.19 | randomuser1975 | Really evetything |
08:24.32 | randomuser1975 | Is there an easy way to set that enmasse |
08:25.23 | randomuser1975 | Does tor need the stickybit, btw |
08:25.34 | randomuser1975 | Tor/torify/torsocks |
08:25.39 | randomuser1975 | And fetchmail? |
08:26.43 | rrq | don't know; if you have disk space you can set up a chroot with everything installed and check |
08:28.08 | rrq | or use the live iso (and check it) |
08:30.35 | randomuser1975 | Could you please guide me to download it? |
08:30.42 | randomuser1975 | I have not used chroot before |
08:32.12 | rrq | yes the live iso is "easier" .. let me find a fast mirror |
08:33.12 | rrq | usually fast: https://mirror.leaseweb.com/devuan/devuan_ascii/desktop-live/devuan_ascii_2.1_amd64_desktop-live.iso |
08:33.32 | rrq | its 1G |
08:33.47 | rrq | command: wget https://mirror.leaseweb.com/devuan/devuan_ascii/desktop-live/devuan_ascii_2.1_amd64_desktop-live.iso |
08:34.13 | rrq | saves it as file devuan_ascii_2.1_amd64_desktop-live.iso |
08:34.17 | randomuser1975 | Ok |
08:34.59 | rrq | do you have usb or dvd+media ? |
08:35.13 | randomuser1975 | Downloading |
08:35.17 | randomuser1975 | Not presently, no |
08:35.24 | randomuser1975 | Which was another issue |
08:36.06 | randomuser1975 | Also for record, I checked the ascii release notes and I have already enabled `allow_root_login` in xorg-common |
08:36.19 | randomuser1975 | So the issue is not the known qwerk |
08:36.25 | randomuser1975 | 65% |
08:36.51 | randomuser1975 | 90% |
08:37.05 | randomuser1975 | Done |
08:37.59 | rrq | it's a little bit trickier to run it directly from the disk ... esp with wokring X11 hmmm |
08:38.05 | rrq | without |
08:38.13 | randomuser1975 | That's ok |
08:38.45 | randomuser1975 | Should I extract the iso or attempt to mount it |
08:39.28 | rrq | yes you can browse the dis; the running file system is inside a squasfs file on the disk |
08:39.35 | rrq | so mount the disk |
08:39.50 | rrq | then mount that squashfs |
08:40.00 | randomuser1975 | Which is better, /mnt, or /media/sr0 |
08:40.20 | rrq | mkdir /mnt/disk /mnt/fs |
08:40.33 | randomuser1975 | One moment |
08:40.34 | rrq | mount file /mnt/disk |
08:41.33 | randomuser1975 | Mounted in read-only mode |
08:41.57 | rrq | find the squasfs ... (I'm still downloading) |
08:42.18 | rrq | then: mount /mnt/disk/squasfs /mnt/fs |
08:42.38 | randomuser1975 | You mean /live/filesystem.squashfs? |
08:42.58 | rrq | sounds good |
08:43.19 | rrq | mount /mnt/disk/live/filesystem.squashfs /mnt/fs |
08:43.29 | randomuser1975 | Done |
08:43.43 | randomuser1975 | I'm in |
08:44.22 | rrq | ok now you can review /mnt/fs and compare ... it doesn't have fetchmail installed though |
08:44.50 | randomuser1975 | You know who I am, dontcha |
08:44.52 | randomuser1975 | Heh |
08:45.03 | *** join/#devuan amesser (~amesser@p57bcf35e.dip0.t-ipconnect.de) |
08:45.04 | randomuser1975 | What isvthe best way to compare |
08:45.10 | rrq | the entries in /mnt/fs/dev are the initial static entries; the rest get created dynamically |
08:45.13 | randomuser1975 | I'm sure there's a standard way |
08:46.11 | rrq | make two "ls -alR" logs and diff them, perhaps? |
08:46.46 | rrq | though only on subdirs below / ... not / itself |
08:47.05 | rrq | skip /proc /dev and /sys which are (mostly) dynamic |
08:47.11 | rrq | and /run |
08:48.42 | rrq | re fetchmail and firejail and tor* it might be easiest to purge and install |
08:48.53 | randomuser1975 | I performed it on both the fs and the system |
08:49.22 | randomuser1975 | ./bin/ /sbin/ /etc/ /lib/ /usr/ |
08:49.42 | randomuser1975 | Running a diff on both log files prints out content I do not understand |
08:50.44 | randomuser1975 | I see why now |
08:50.59 | randomuser1975 | It doesn't list permissions, it's colorcods |
08:51.12 | rrq | it does get a bit messy... perhaps "diff -y --suppress-common-lines ..." and pipe that into a file |
08:51.36 | *** join/#devuan DocScrutinizer05 (~saturn@openmoko/engineers/joerg) |
08:51.54 | randomuser1975 | Did so |
08:51.59 | randomuser1975 | Numerous output here |
08:52.33 | randomuser1975 | Still in a color-coded format I do not understand |
08:53.23 | rrq | righ hmm, your ls has colors I suppose |
08:53.44 | randomuser1975 | Yes |
08:53.53 | randomuser1975 | But I expected numerical chmod |
08:54.09 | rrq | maybe rerun with ls --color=never |
08:55.05 | randomuser1975 | This list is still not saying chmod, only packagelists |
08:55.41 | randomuser1975 | That is, filelists |
08:56.38 | rrq | try: find . -type f | xargs -n 1 -I+ stat -c "%a %n" '+' |
08:56.46 | rrq | to make the file lists |
08:57.16 | rrq | or maybe put the name before the code: "%n %a" |
08:57.32 | rrq | then diff gets happier |
08:58.30 | randomuser1975 | Can I use xargs without x11? |
08:58.37 | rrq | yes |
08:58.42 | randomuser1975 | One moment |
08:59.18 | rrq | that x means something else than X11 |
08:59.28 | randomuser1975 | Ah |
09:00.07 | rrq | "execute" maybe, or "execute for" |
09:00.55 | rrq | https://en.wikipedia.org/wiki/Xargs |
09:01.12 | rrq | xargs = "eXtended ARGuments" |
09:01.26 | randomuser1975 | Sorry 'bout that |
09:01.47 | randomuser1975 | I missed your instruction to purge and reinstall those packages |
09:01.50 | randomuser1975 | So I did so |
09:01.56 | randomuser1975 | Now to continue |
09:03.06 | randomuser1975 | Now we're cooking with gas |
09:03.19 | randomuser1975 | Command still running |
09:03.35 | randomuser1975 | All these files are suffixed with the chmod |
09:03.44 | randomuser1975 | Shouldn't they be prefixed? |
09:04.08 | randomuser1975 | I'm changing the order |
09:04.11 | rrq | as file lists it works better to have the file name first |
09:04.20 | rrq | you 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 ... |
09:04.24 | randomuser1975 | Verywell |
09:04.29 | randomuser1975 | Ah yes |
09:05.25 | randomuser1975 | This produces error |
09:05.42 | randomuser1975 | "Cannot stat %n %a B |
09:06.05 | randomuser1975 | I probably bonked syntax |
09:06.14 | rrq | the quotes ? |
09:06.34 | randomuser1975 | Nay |
09:06.58 | rrq | find . -type f | xargs -n 1 -I+ stat -c "%n %a A" '+' |
09:07.02 | randomuser1975 | "%n %a A" "%n %a B" '+'... |
09:07.05 | randomuser1975 | Ah |
09:07.20 | rrq | that would be for the laptop dirs |
09:07.24 | randomuser1975 | This'll take a while I'm sure |
09:07.25 | rrq | find . -type f | xargs -n 1 -I+ stat -c "%n %a B" '+' |
09:07.32 | rrq | would be for the squashfs dirs |
09:07.38 | randomuser1975 | I'm still in /mnt/fs |
09:07.56 | randomuser1975 | So in this case |
09:08.05 | randomuser1975 | A is the squashfs |
09:08.16 | randomuser1975 | And B is the bonked system |
09:08.48 | rrq | fair enough |
09:09.12 | randomuser1975 | Interesting errors once going back to / |
09:09.32 | randomuser1975 | ./rub/udev/* no such file or directory |
09:10.17 | randomuser1975 | All of it being in /run/udev/links/x2f* |
09:10.29 | rrq | skip /erun .. it's dynamic |
09:10.51 | rrq | skip /dev /proc /run and /sys |
09:10.54 | randomuser1975 | I'm running your command from / with no additional arguments |
09:11.11 | rrq | then it'll traverse into /mnt/fs as well |
09:11.25 | randomuser1975 | What should I do |
09:11.36 | rrq | well.. wait :) |
09:12.22 | randomuser1975 | I'm cding into dirs now and prepending the log with >> |
09:12.42 | randomuser1975 | The original was in /root/log.log |
09:12.47 | rrq | so you only get two lists then, A and B ? wwith A being rooted in the squasfs |
09:12.53 | randomuser1975 | This one is /root/log1.log |
09:12.57 | rrq | ok |
09:12.57 | randomuser1975 | Yes |
09:13.21 | randomuser1975 | I did /bin |
09:13.21 | randomuser1975 | Now /usr |
09:13.28 | randomuser1975 | Then /sbin |
09:13.34 | randomuser1975 | Then /etc |
09:13.41 | randomuser1975 | Then what |
09:13.45 | rrq | cat /root/log.log /root/log1.log | sort -uk1,2 > /root/logX.log |
09:13.58 | randomuser1975 | Any other dirs |
09:14.48 | rrq | possibly /var |
09:15.27 | randomuser1975 | Doing /var now |
09:15.50 | rrq | all added into log1.log I hope |
09:16.53 | rrq | then sorting |
09:17.03 | randomuser1975 | your command prouuces a file with the forst 47 lines all B |
09:17.29 | randomuser1975 | Ok, there are a few A mixed |
09:17.40 | randomuser1975 | How do I sort through this then |
09:19.01 | randomuser1975 | Is A only appearing when it's different from B? |
09:19.05 | randomuser1975 | I'm confused |
09:19.08 | rrq | you should find both A and B for the same file together where they differ in file mod |
09:20.06 | randomuser1975 | The first instance of A I find is for /bin/bash |
09:20.16 | randomuser1975 | It does not list B next to it |
09:20.16 | rrq | a B line without preceding A line indicates a file that where not in the squashfs |
09:20.35 | randomuser1975 | There are numerous |
09:20.42 | randomuser1975 | It's almost all B |
09:20.48 | rrq | an A line without an equal B line indicates a common file with equal file mod |
09:21.08 | randomuser1975 | Ok |
09:21.24 | randomuser1975 | So if there is a B with no A then it's fucked |
09:21.31 | randomuser1975 | Should I be running diff? |
09:21.34 | randomuser1975 | I'm using less |
09:22.04 | randomuser1975 | None of these appear to be duplocates |
09:22.18 | rrq | so .. hmm find all A lines that followed by same file B line (and differing file mod) .. would be an awk |
09:22.42 | randomuser1975 | I'm not versed on awk |
09:24.00 | rrq | maybe: awk '$1==F { print; } {F=$1;}' |
09:24.31 | rrq | that should print all B lines preceded by an equal file (differing mod) A line |
09:24.31 | randomuser1975 | Why couldn't I just do "chmod %n %f on squashfs, then |
09:24.38 | randomuser1975 | Run it |
09:25.10 | randomuser1975 | Do I cat the logx into awk? |
09:25.17 | rrq | yes right |
09:25.55 | rrq | unless file names have spaces in them ... |
09:26.30 | randomuser1975 | This produces an incredibly short list |
09:27.07 | randomuser1975 | Most of them being ./share and ./local |
09:27.11 | randomuser1975 | All of them B |
09:27.32 | randomuser1975 | Only things of note are the first two lines in ./etc and ./lib |
09:27.55 | rrq | ok that's all files with different file mod on the squasfs |
09:27.55 | randomuser1975 | One is /etc/ssl/openssl.cnf |
09:28.23 | rrq | hmm so you need the A line I suppose; different awk |
09:28.33 | randomuser1975 | The second is /lib/x86_64/libpopt.so.0.0.0 |
09:29.00 | rrq | maybe: awk '$1==F { print F,M; } {F=$1; M=$2}' |
09:29.05 | randomuser1975 | And the rest is mostly Wolfenstein Enemy Terretory and supertuxkart |
09:30.16 | randomuser1975 | Same output except no letter, A or B suffixed |
09:30.40 | rrq | yes but now the file mod of the squashfs |
09:30.56 | randomuser1975 | It's the same files |
09:31.16 | randomuser1975 | I doubt the squashfs hs SuprtTuxKart and Wolfensten: ET |
09:31.47 | rrq | ok; file names with spaces gets messier |
09:32.36 | randomuser1975 | There is one difference |
09:32.51 | randomuser1975 | Openssl.cnf is 644 on second run |
09:33.04 | randomuser1975 | As is libpopt.so.... |
09:33.27 | randomuser1975 | These were 755 originally |
09:34.01 | rrq | maybe: awk '{X=$0; $NF=""; $(NF-1)=""} $0==F { print Y; } {F=$0; Y=X}' |
09:34.19 | rrq | that might handle filenames with spaces |
09:35.38 | rrq | but the squashfs doesn't have them anyhow |
09:36.37 | randomuser1975 | This produces null output |
09:37.47 | rrq | ok, use: awk 'NF!=3 {next;} $1==F { print F,M; } {F=$1; M=$2}' |
09:38.06 | rrq | that should discard all lines with spaces in file names |
09:39.05 | rrq | then fix up those few files |
09:39.45 | randomuser1975 | This again produces the same two files of significance, and only these two files |
09:40.05 | randomuser1975 | ./etc/ssl/openssl.cnf 644 |
09:40.34 | rrq | so all else is compatible; but of course the squasfs dowsn't have all files the laptop has |
09:40.51 | randomuser1975 | ./lib/x86_64-linux-gnu/libpopt.so.0.0.0 644 |
09:41.06 | randomuser1975 | Before going forward |
09:41.15 | randomuser1975 | This is the /correct/ chmod? |
09:41.20 | rrq | yes |
09:42.30 | randomuser1975 | I think I should check /dev |
09:42.31 | rrq | that should bring you back to having the x11 problem before "running random script to fix" |
09:42.52 | randomuser1975 | Lemme check what dirs I had |
09:42.56 | rrq | most of /dev is dynamic ... i.e. created at boot |
09:43.39 | rrq | I need to go |
09:43.43 | randomuser1975 | I did /bin, /usr, /sbin, /etc, /var |
09:43.45 | randomuser1975 | Ok |
09:44.13 | randomuser1975 | Thank you |
09:44.19 | randomuser1975 | I'm trying it out |
09:44.37 | randomuser1975 | I truly don't know if this worked, only two files have been modified |
09:44.49 | randomuser1975 | On this checking awk at least |
09:45.22 | randomuser1975 | And actually |
09:45.31 | randomuser1975 | The second file chmod could not find |
10:07.24 | gnarface | if 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 character |
10:43.14 | *** join/#devuan cocoadaemon (~foo@2a01:e0a:4e1:97e0:a69c:dc6e:df01:d357) |
11:00.36 | *** join/#devuan deby (~deby@host-79-19-115-31.retail.telecomitalia.it) |
11:03.37 | deby | hello, installing things in debian can also enable services automatically. I'm not a fun of this. Can this happen in Devuan too? |
11:04.53 | deby | for example if I only install apache2, then apache2 is run every time I boot the system. |
11:06.29 | gnarface | deby: 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. |
11:07.25 | gnarface | deby: 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. |
11:08.32 | gnarface | and no funny business like with systemd where they "oopsie" have it ignore that sometimes or just spastically relaunch everything that shuts down for any reason |
11:08.46 | gnarface | it's not complex enough to make mistakes like that |
11:09.31 | deby | gnarface: I see. The problem is, that if I'm not vigilant when installing stuff I might not become aware that some service was enabled. |
11:10.07 | gnarface | deby: 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 updates |
11:10.22 | gnarface | deby: mistakes are made though, it's good to be vigilant either way |
11:11.35 | gnarface | i 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 accidentally |
11:15.49 | onefang | sysv-rc-conf can be helpful to see what services are enabled, and disabling them. |
11:16.19 | gnarface | i just use nmap or nc to run a quick portscan but yea that works too |
11:17.10 | gnarface | there are more than one tools to edit the rc?.d symlinks but i prefer to do it by hand usually |
11:17.17 | debdog | for the links: just rename them from S$something to K$something |
11:17.35 | gnarface | yea, the logic is so simple it almost doesn't need documentation |
11:18.08 | gnarface | you can kinda figure it out by inference and observation |
11:18.35 | debdog | also, there's a readme inside that folder :) |
11:18.41 | gnarface | heh yea |
11:19.07 | gnarface | in /etc/init.d/ |
11:19.36 | gnarface | oh, it's symlinked from all the /etc/rc?.d/ directories as well i see |
11:19.42 | gnarface | at least on ceres |
11:34.11 | *** join/#devuan Nili (~ni120878@213.207.33.71) |
11:34.12 | *** join/#devuan Nili (~ni120878@unaffiliated/nili) |
11:38.18 | *** join/#devuan dagelf (~quassel@169-1-87-141.ip.afrihost.co.za) |
11:42.12 | *** join/#devuan Pali (~pali@Maemo/community/contributor/Pali) |
11:46.24 | *** join/#devuan rsx (~rsx@ppp-188-174-140-157.dynamic.mnet-online.de) |
12:19.54 | *** join/#devuan nieuwland (~nieuwland@185.2.240.205) |
12:20.45 | nieuwland | hi |
12:23.26 | nieuwland | we 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? |
12:24.57 | luser977 | it'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. |
12:27.28 | luser977 | <PROTECTED> |
12:30.47 | onefang | nieuwland: 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.txt |
12:31.14 | nieuwland | ok thannk! |
12:31.57 | nieuwland | it works |
12:31.58 | nieuwland | bbl |
13:15.30 | *** join/#devuan ac_laptop (~ac_laptop@186.2.247.129) |
13:59.23 | *** join/#devuan xrogaan (~xrogaan@unaffiliated/xrogaan) |
14:02.53 | *** join/#devuan Akuli (~akuli@87-94-111-51.bb.dnainternet.fi) |
14:13.28 | *** join/#devuan cd (~cd@unaffiliated/cd) |
14:32.21 | *** join/#devuan targz (~Thunderbi@unaffiliated/targz) |
14:48.27 | *** join/#devuan morruth (~quassel@77.244.126.154) |
15:03.32 | *** join/#devuan ErRandir (~mhabets@81.168.73.77) |
15:15.36 | *** join/#devuan luser977 (~resuuser@188.27.82.162) |
15:48.03 | *** join/#devuan Xenguy (~Xenguy@devuan/community/Xenguy) |
16:10.50 | *** join/#devuan lava2 (~quassel@169-1-87-8.ip.afrihost.co.za) |
16:19.48 | *** join/#devuan dagelf (~quassel@169-0-60-143.ip.afrihost.co.za) |
16:24.58 | *** join/#devuan cocoadaemon (~foo@36.161.2.109.rev.sfr.net) |
16:27.38 | *** join/#devuan luser977 (~resuuser@188.27.82.162) |
17:00.30 | *** join/#devuan romo (~romo@unaffiliated/romo) |
17:25.05 | *** join/#devuan DashiePie (~Rawr@c-73-152-100-71.hsd1.wv.comcast.net) |
17:42.35 | *** join/#devuan AnimaInvicta (~AnimaInvi@ber27-1-78-230-215-86.fbx.proxad.net) |
17:49.14 | *** join/#devuan targz (~Thunderbi@unaffiliated/targz) |
17:50.12 | *** join/#devuan ac_laptop (~ac_laptop@186.2.247.129) |
17:51.40 | *** join/#devuan shibboleth (~shibbolet@gateway/tor-sasl/shibboleth) |
17:54.29 | *** join/#devuan bru (~bru@181.165.92.57) |
17:54.33 | *** join/#devuan user_ (~user@188.27.82.162) |
17:55.27 | 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 pulse |
17:55.43 | user_ | syslog shows pulse trying to restart itself with every connection from osspd! |
17:55.59 | user_ | Jan 24 19:53:43 beowulf pulseaudio[21771]: [pulseaudio] main.c: D-Bus name org.PulseAudio1 already taken. |
17:56.02 | user_ | Jan 24 19:53:43 beowulf pulseaudio[21768]: [pulseaudio] main.c: Daemon startup failed. |
17:56.13 | user_ | of course pulse is running, under xfce, just this... what the... |
17:56.41 | user_ | Any ideas where to look? osspd provides /dev/dsp and /dev/mixer emulation for pulse |
17:56.51 | user_ | -.- |
17:57.22 | *** join/#devuan alexandros_c_ (~quassel@unaffiliated/alexandros-c/x-1684531) |
17:57.29 | *** join/#devuan alexandros_tab_ (~quassel@unaffiliated/alexandros-c/x-1684531) |
17:58.43 | user_ | Anyone used padsp with a scripting language like perl or tcl? |
18:01.51 | user_ | Excellent. Running an interp under padsp shows zero audio devices usable. |
18:02.59 | user_ | padsp fakes open() on /dev/dsp but not stat() /dev/dsp |
18:03.13 | user_ | Poettering, I hope you are hiccuping hard now. |
18:08.58 | user_ | Right, the readme of osspd says it uses padsp as back end. Back to Poettering. |
18:09.35 | *** join/#devuan n4dir (~n4dir@i5E866662.versanet.de) |
18:13.15 | user_ | So /usr/lib/osspd/ossp-padsp does something which pulse/padsp do not like |
18:13.28 | user_ | No log or error messages even with --log=6 |
18:13.51 | user_ | Is the /dev/dsp emulation in jack/jackd better? |
18:14.21 | user_ | -.- <- this is Morse for 'K'. Means key. As in, answer please :) |
18:23.05 | user_ | more strangeness, /dev/shm has several jack related things in it, but jack(d) is not running |
18:26.29 | n4dir | try #lau perhaps |
18:26.36 | user_ | #lau? |
18:26.38 | n4dir | or #opensourcemusicians |
18:26.53 | n4dir | ups: linux audio users, yes, lau. I forgot to spell it out |
18:26.57 | user_ | right, this is more a #kernel question imho, or at least drivers |
18:42.51 | *** join/#devuan luser977 (~resuuser@188.27.82.162) |
18:42.52 | *** join/#devuan krzych (krzych@nroot.pl) |
18:46.24 | *** join/#devuan morruth (~quassel@77.244.126.159) |
18:54.55 | *** join/#devuan Centurion_Dan (~Thunderbi@devuan/developer/centuriondan) |
19:06.19 | *** join/#devuan luser977 (~resuuser@188.27.82.162) |
19:12.21 | user_ | fluidsynth does the midi job 10 times better than timidity. |
19:12.32 | *** join/#devuan cocoadaemon (~foo@2a01:e0a:4e1:97e0:a69c:dc6e:df01:d357) |
19:12.34 | buZz | yeah, especially with a good soundfont |
19:13.10 | user_ | Just for laughs, tmidity gets stuck and stutters while fluid does not. Neither is allowed high priority threads or low niceness |
19:18.38 | *** join/#devuan luser977 (~resuuser@188.27.82.162) |
19:24.24 | *** join/#devuan ThiagoCMC (~ThiagoCMC@bras-base-ktnron0919w-grc-05-70-27-234-236.dsl.bell.ca) |
19:27.29 | *** join/#devuan luser977 (~resuuser@188.27.82.162) |
19:29.55 | *** join/#devuan luser978 (~resuuser@188.27.82.162) |
19:29.56 | *** join/#devuan harryruhr (~harryruhr@p200300ee8f16514845536e20b88c48cb.dip0.t-ipconnect.de) |
19:35.07 | user_ | What happens on beowulf if one deinstalls pulse and does not install jack? |
19:35.10 | user_ | No sound? |
19:35.33 | n4dir | not for firefucker, iirc. Else sure. |
19:35.39 | n4dir | there is a workaround though. |
19:35.39 | buZz | alsa should still work fine |
19:38.35 | fsmithred | ff-esr does not need pulse |
19:38.58 | fsmithred | tor-browser does, and it will work with apulse |
19:39.55 | *** join/#devuan luser977 (~resuuser@188.27.82.162) |
19:41.08 | gnarface | user_: everything should still work with bare alsa, and most of it actually does, unless you have a broken driver |
19:41.34 | gnarface | (partially-broken alsa driver is a common problem though) |
19:42.07 | n4dir | i sure didn't find a way make amsynth and zynaddsubfx use anything but jack |
19:42.18 | n4dir | and some more |
19:42.48 | user_ | n4dir: amsynth works great with alsa here |
19:43.49 | gnarface | well, "partially-broken" can mean that one driver can work for some hardware and software combinations but not others |
19:44.55 | *** join/#devuan Acacia (~Acacia@unaffiliated/acacia) |
19:44.57 | user_ | byebye pulse |
19:44.58 | gnarface | the 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 sure |
19:45.20 | user_ | That thing gave me hives for months. |
19:45.31 | gnarface | anyway it suggests that the breakage can be patched around with a clever enough ~/.asoundrc, which is a situation i've seen before |
19:45.58 | user_ | I would like to tinker as little as possible with this and just go on with my other projects. |
19:45.59 | gnarface | sometimes the driver just misses part of the setup, but certain programs cover it |
19:46.19 | gnarface | and in those cases sometimes you can make a custom config |
19:46.36 | gnarface | in a fair world you shouldn't have to |
19:58.59 | user_ | Is there an xfce tray volume control which works with alsa? |
19:59.47 | user_ | there is an xfce4-alsa-plugin |
20:00.12 | user_ | on github, depends on gtk... |
20:00.48 | user_ | https://github.com/equeim/xfce4-alsa-plugin not in Beowulf |
20:00.51 | fsmithred | volumeicon-alsa |
20:01.03 | fsmithred | there is no more xfce mixer |
20:01.42 | user_ | there is alsamixergui |
20:01.52 | user_ | which looks like original Motif from 199x but hey |
20:01.56 | user_ | pulse is GONE. |
20:03.49 | fsmithred | yeah, it works |
20:04.23 | fsmithred | does alsamixergui sit in the panel? Been a long time since I've used it. |
20:04.43 | user_ | No |
20:04.57 | user_ | I need to restart xfce it does not see the volumeicon now |
20:04.59 | user_ | brb |
20:05.44 | *** join/#devuan user_ (~user@188.27.82.162) |
20:06.20 | 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?! |
20:06.48 | fsmithred | no need for a launcher. Add it to startup applications. |
20:06.51 | user_ | grr it's a tray only app |
20:08.09 | fsmithred | why is that a problem? |
20:08.37 | 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 controls |
20:09.24 | fsmithred | n-m icon should not be affected by volumeicon |
20:13.26 | user_ | How come I can't move the tray icon around? |
20:14.00 | fsmithred | dunno. I never tried that. |
20:14.27 | user_ | AHH it is called "Notification Area" in the panel editor. And it can be moved with the arrows in the list. |
20:14.34 | fsmithred | maybe they are in alphabetical order |
20:14.48 | fsmithred | the whole thing moves, right? |
20:15.03 | fsmithred | or can you move the individual items? |
20:15.05 | user_ | yes the volume icon and the network manager icon are in a mini tray |
20:15.23 | user_ | which is moved as one item using the arrows in the panel edit and cannot be dragged etc |
20:15.38 | *** join/#devuan AmeliaFloofPC (~AkiDerg@c-73-255-162-200.hsd1.fl.comcast.net) |
20:15.44 | fsmithred | I have those two plus hexchat, and they are in alphabetical order from left to right |
20:15.59 | user_ | Yes that thing is not so configurable. |
20:16.17 | AmeliaFloofPC | is it possible to migrate to OpenRC from a SysVInit install |
20:16.40 | fsmithred | yes. apt install openrc |
20:16.54 | fsmithred | you'll get on-screen instructions for what to do wtih the symlinks |
20:17.11 | fsmithred | at least I think you still have to do that manually. Maybe I'm wrong and it's automatic. |
20:19.36 | *** join/#devuan AmeliaFloofPC (~AkiDerg@c-73-255-162-200.hsd1.fl.comcast.net) |
20:19.38 | AmeliaFloofPC | ok |
20:19.41 | AmeliaFloofPC | no it did it all |
20:19.48 | AmeliaFloofPC | I had to run a command that migrated them |
20:19.55 | AmeliaFloofPC | but other than that I am now on OpenRC :) |
20:20.12 | user_ | great. Now what? :) |
20:20.26 | user_ | What's your beef with syvinit? |
20:20.33 | AmeliaFloofPC | It was difficult for me to use |
20:20.34 | AmeliaFloofPC | tbh |
20:20.48 | AmeliaFloofPC | its nice and hella fuckin stable |
20:21.56 | AmeliaFloofPC | I 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) |
20:24.01 | user_ | Ok so amsynth needs jack, does not run on bare alsa. |
20:24.36 | user_ | in despite of permitting selection of alsa in the io controls |
20:25.17 | user_ | qsynth also refuses to work w/o jack |
20:30.44 | user_ | where does one find alsa-patch-bay ? Or Patchage? |
20:31.59 | user_ | http://pkl.net/~node/software/alsa-patch-bay/ hmm not in beowulf packages |
20:32.56 | user_ | And no dates on it. W3C HTML 3 compat suggests ancient history and elderberry flavor |
20:36.08 | gnarface | AmeliaFloofPC: are you using a graphical login? check the release notes about it |
20:36.19 | AmeliaFloofPC | yes? |
20:36.27 | AmeliaFloofPC | is there a bug with parted and using xorg? |
20:36.32 | AmeliaFloofPC | would switching to tty1 fix it? |
20:37.05 | gnarface | i 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 work |
20:37.21 | gnarface | switching to tty1 might dodge it, not sure |
20:37.30 | gnarface | worth a try |
20:37.33 | n4dir | user_: alsa-patch-bay isn't the jack-alsa-bridge, is it? |
20:38.05 | gnarface | AmeliaFloofPC: http://files.devuan.org/devuan_beowulf/Release_notes.txt |
20:38.54 | gnarface | AmeliaFloofPC: you should read the whole thing really, but the part relevant to my earlier comment is the section "### Session management and policykit backends" |
20:40.13 | gnarface | there 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 path |
20:41.56 | AmeliaFloofPC | so Im kinda borked basically? |
20:42.33 | fsmithred | use 'su -' |
20:42.36 | gnarface | no, did you read it? |
20:42.53 | gnarface | both issues have simple fixes |
20:42.54 | AmeliaFloofPC | I already have a session manager tho |
20:42.58 | gnarface | you just have to be aware of them |
20:43.22 | fsmithred | the root path fix is independent of any session manager issues |
20:43.30 | gnarface | yes, they're different issues |
20:43.38 | AmeliaFloofPC | I was talking about the issue with fdisk and aprted |
20:43.45 | gnarface | i was too |
20:43.47 | fsmithred | that is the root path |
20:43.51 | fsmithred | call /sbin/fdisk |
20:44.01 | fsmithred | pretty sure it's there |
20:44.30 | AmeliaFloofPC | OHHH |
20:44.38 | AmeliaFloofPC | ok that makes sense |
20:44.41 | AmeliaFloofPC | it works ty |
20:45.04 | fsmithred | do you like to run graphical apps as root, started from a terminal? You won't be able to do that with 'su -' |
20:45.31 | gnarface | well, not by default anyway |
20:45.37 | gnarface | you can make some adjustments though... |
20:46.21 | AmeliaFloofPC | do you know where parted is stored |
20:46.36 | gnarface | dpkg -S parted |
20:47.39 | *** join/#devuan luser977 (~resuuser@188.27.82.162) |
20:47.42 | AmeliaFloofPC | it doesnt mention the installed dir |
20:47.54 | AmeliaFloofPC | just the pkg desc and if its installed and like conflicts |
20:48.38 | gnarface | did you use capital "S" or lower-cased? |
20:48.52 | AmeliaFloofPC | wait |
20:48.54 | gnarface | case matters with these |
20:48.57 | AmeliaFloofPC | got it to work. |
20:49.01 | AmeliaFloofPC | I have parted |
20:49.48 | AmeliaFloofPC | thank you guys |
20:57.28 | *** join/#devuan luser977 (~resuuser@188.27.82.162) |
20:58.43 | *** join/#devuan luser978 (~resuuser@188.27.82.162) |
21:00.05 | *** join/#devuan nil21 (~nil21@139.47.6.182) |
21:03.53 | *** part/#devuan nil21 (~nil21@139.47.6.182) |
21:08.19 | user_ | Ok I made amsynth work on alsa w/o jack with vmpk etc. Requires manual patching with aconnect |
21:08.55 | *** join/#devuan Hestben (~robert@213.136.35.112) |
21:09.07 | *** join/#devuan chomwitt (~quassel@2a02:587:dc2a:2100:712f:3b41:4d72:d2f8) |
21:09.16 | user_ | note: do not change midi instruments from vmpk - it crashes amsynth. |
21:10.59 | *** join/#devuan Inepu (~Mithrandi@137-217-234-46.wifi4all.it) |
21:12.59 | n4dir | why not just use jack? |
21:13.06 | user_ | I just wiped jack and pulse |
21:14.34 | user_ | <PROTECTED> |
21:15.16 | fsmithred | must be from alsa-oss because I don't have /dev/dsp. |
21:15.23 | user_ | it's osspd |
21:16.00 | fsmithred | alsa-utils does not provide /dev/dsp. That's all I know. |
21:16.16 | user_ | stumper: with pulse, I had osspd-pulse and I modded /etc/init.d/osspd to add: chown root.audio /dev/dsp etc |
21:16.39 | user_ | that worked. Now with osspd-alsa I have the exact same init.d file and the permissions stay root.root on /dev/dsp |
21:16.42 | user_ | WHAT THE |
21:18.26 | user_ | ok, this is beyond me. |
21:18.53 | user_ | I have: chown root.audio /dev/dsp /dev/adsp /dev/mixer 2>/dev/null |
21:19.09 | user_ | in osspd in /etc/init.d ; there is no other chown in there |
21:19.27 | user_ | I run $@ start and it makes /dev/dsp root.root |
21:19.30 | user_ | this is insane |
21:19.40 | user_ | I checked I put it where it should be and it used to work |
21:20.00 | fsmithred | try root:audio instead of root.audio |
21:20.03 | user_ | Something changes perms on /dev/dsp after the script runs. If I change perms on the device manually after the fact they stay |
21:20.13 | user_ | root.audio is correct for this machine |
21:20.15 | fsmithred | dot works? |
21:20.16 | fsmithred | ok |
21:20.36 | user_ | I suspect the program deletes the device and re-creates it "later" since it's a daemon |
21:20.45 | user_ | later meaning after the script runs |
21:22.19 | user_ | adding a sleep 2 before chown in the script fixed it |
21:22.31 | user_ | it was what I thought it was, daemon recreates file. |
21:26.38 | *** join/#devuan gnu_srs1 (~srs@host-95-192-189-107.mobileonline.telia.com) |
21:26.50 | fluffywolf | spots a floof! |
21:28.40 | user_ | you two get a room |
21:29.33 | user_ | the amsynth link I posted above is unrelated to devuan/debian package amsynth, sorry, my mistake. |
21:31.19 | *** join/#devuan shibboleth (~shibbolet@gateway/tor-sasl/shibboleth) |
21:37.55 | *** join/#devuan user282069 (user@2a01:7e00::f03c:92ff:fe7f:456d) |
21:42.21 | *** join/#devuan xrogaan (~xrogaan@unaffiliated/xrogaan) |
21:46.10 | *** join/#devuan grillon (~quassel@fsf/member/grillon) |
21:46.25 | grillon | hi there |
21:52.07 | grillon | I 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:03.02 | *** join/#devuan lagfra (~fra@185.242.6.203) |
22:04.38 | grillon | If 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... |
22:06.47 | grillon | Ok I see it's in dhclient.eth0.leases |
22:06.58 | grillon | can I just erase this file? |
22:09.38 | n4dir | <PROTECTED> |
22:10.05 | n4dir | i guess i would consider if setting the wished IP static in the interfaces file. |
22:10.34 | grillon | yes but I want to configure more than one guest |
22:10.57 | grillon | let's try the backup file thank you |
22:17.42 | grillon | it's just incrementing |
22:18.10 | grillon | instead of 107 I obtain 108 then 109 then 110 etc. |
22:19.33 | n4dir | i 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 comment |
22:19.42 | n4dir | if no one answers here you can probably also ask in #linux or such |
22:19.51 | n4dir | doesn#t seem like a devuan specific problem |
22:20.02 | n4dir | short version: good luck |
22:21.32 | grillon | thank 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 here |
22:21.53 | n4dir | ah, good then. |
22:22.22 | n4dir | just wait. or ask again if it will take to long. i guess |
22:33.55 | *** join/#devuan grillon (~quassel@lfbn-mon-1-1524-115.w92-167.abo.wanadoo.fr) |
22:34.02 | *** join/#devuan grillon (~quassel@fsf/member/grillon) |
22:34.38 | *** join/#devuan lagfra (~fra@host-79-49-71-62.retail.telecomitalia.it) |
22:35.19 | grillon | thank you @n4dir I wait |
22:38.02 | rrq | grillon: which dhcp server is used, and how is that configured for static service (i.e. [macaddress or cliet hostname]-to-[IP] assignments) |
22:38.51 | grillon | I use a virtual bridge |
22:39.39 | grillon | my config is https://controlc.com/ae87343e |
22:40.13 | rrq | do 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? |
22:40.38 | rrq | gridbed = bridged, and outboutn = outbound |
22:44.04 | grillon | yes tht's what I mean |
22:45.51 | grillon | my virtual bridge is associated with my physical host interface and acte as gateway, switch, and dhcp server |
22:48.35 | rrq | one 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 issue |
22:49.24 | rrq | or not ... |
22:51.10 | rrq | but, presumably that <dhcp>...</dhcp> block is intended to declare the static assignments |
22:52.38 | grillon | host is not in the same network |
22:53.07 | grillon | host network is 192.168.1.0/24 and guest network is 192.168.122.0/24 |
22:53.09 | rrq | bridging operates at Etherent level, not IP level |
22:53.53 | rrq | the purpose with bridging is to join interfaces to be on "the same network" |
22:54.34 | grillon | I do not think my bridge act as dhcp server on host network |
22:54.58 | grillon | it's like different physical network...physical and virtual |
22:55.55 | grillon | in my tcpdump I see only my virtual machine talking to dhcp serveur |
22:55.58 | rrq | yes, 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 nework |
22:56.19 | grillon | yes as you said :-) |
22:56.27 | rrq | all in all, you have a program servicing port 68 |
22:56.57 | rrq | could be named *dhcp* something or perhaps dnsmasq |
22:57.19 | rrq | or whatever the RH guys thinks is cute |
22:57.38 | grillon | I have dnsmasq |
22:58.26 | rrq | right; it will need a kill -HUP to re-read its static configuration |
22:58.40 | rrq | if you do: pgrep -a dnsmasq |
22:58.57 | rrq | it will tell you pid and all arguments used |
22:59.33 | rrq | it should have and argument like --dhcp-hostsfile=/home/share/dhcphosts |
23:00.04 | rrq | and that file should be a table of static assignments, in format "mac,hostname,ip" |
23:01.26 | grillon | yes I got it |
23:01.39 | grillon | and it's exactly what I want |
23:02.21 | grillon | I mean it's filled as it should be good mac, ip, hostname |
23:02.41 | grillon | in this order |
23:03.19 | rrq | hmm that's different order from mine (which works) |
23:04.19 | rrq | perhaps try reconfigure libvirt and use name= as ip and ip= as name, then restart |
23:05.25 | rrq | (if that works, then someone worried about semantics should lodge a bug to debian/libvirt) |
23:06.17 | rrq | but remember also that the clients try to persist their last assignment by proposing that in their request, and dnsmasq typically accepts that |
23:08.27 | grillon | I think it's your last statement |
23:09.05 | grillon | because as I said if I wait few minutes and do dhclient eth0 on the guest I get the good IP |
23:09.32 | grillon | and sometimes I have two Ip when I boot (last given IP and IP I want) |
23:10.45 | rrq | the client uses leases file... client:/var/lib/dhcp/dhclient.eth0.leases |
23:11.36 | grillon | yes so I erased it but it's incrementing, instead of using IP it should |
23:12.59 | grillon | it's like it's about time... |
23:15.14 | rrq | have you tried with "corrected" file for dnsmasq? and the leases file deleted |
23:16.01 | rrq | it might also be something with the macaddress; that it starts up with a random one and then the client sets it? |
23:16.45 | rrq | (would be rather odd) |
23:17.30 | rrq | do "pgrep -a qemu" to ensure that the macaddress is assigned as command line argument |
23:17.43 | rrq | (that's on the host obviously) |
23:18.27 | rrq | or even: pgrep -a qemu | sed "s/ -/\n-/g" |
23:19.46 | rrq | or even even: pgrep -a qemu | sed "s/ -/\n-/g" | grep macaddr |
23:27.26 | *** join/#devuan KREYREN (~kreyren@gateway/tor-sasl/kreyren) |
23:32.12 | grillon | rrq here the pgrep qemu : https://controlc.com/6beb3ef8 |
23:33.20 | rrq | ok it has a mac= assignment matching up with your intended devuan_front client |
23:35.32 | grillon | before doing it I erased leases files and restart every thing(virtual bridge, libvirt including dnsmasq), started tcpdump and finally the vm |
23:36.14 | rrq | so.. and you had changed the detail order for dnsmasq's conf .. you tried my order and it still didn't work? |
23:36.15 | grillon | here my tcpdump : https://controlc.com/f81b35c8 |
23:37.49 | grillon | here ip addr on guest: https://controlc.com/9e3ad991 |
23:38.09 | grillon | as you can see I have dual IPs the good and another |
23:38.19 | rrq | hmm first Reply is for 192.168.122.151 |
23:38.24 | grillon | I did not changed dnsmasq conf yet |
23:39.30 | grillon | yes and I have dual Ips. Sometimes it's dual ip, sometimes only bad one bad ip. to have only the good one I need to wait few minutes and do dhclient eth0 on guest |
23:40.05 | rrq | hmm how many network management sub systems does the client have? |
23:40.07 | grillon | do you still want I switch hostname and IP in dnsmasq conf? |
23:40.23 | rrq | seems not necessary given that first reply is good |
23:40.28 | grillon | it's a fresh devuan installation |
23:40.45 | rrq | probably dnsmasq is flexible :) |
23:41.26 | rrq | the client is "fresh devuan"... with which networking? |
23:43.33 | grillon | yes client is a fresh devuan, what do you mean by which networking? |
23:44.57 | rrq | let's see: is there an /etc/network/interfaces with a "allow-hotplug eth0" in? |
23:45.43 | grillon | yes there is |
23:46.19 | rrq | that indicates the client wants udev to set up the network; and this typically competes with eg wicd for configuring eth0 |
23:47.11 | rrq | for your use case I would purge wicd |
23:47.44 | grillon | ok how? |
23:47.57 | rrq | so: apt-get purge wicd |
23:48.28 | grillon | not installed so not removed |
23:48.53 | rrq | ok; hmm network-manager? same action |
23:50.02 | grillon | same result |
23:50.09 | rrq | hmm now I see that your desired hostname "devuan_front" gets digested into the hostname "front" for the secondary dhcp request |
23:50.33 | rrq | probably the client code takes offense to an underscore in the hostname |
23:50.50 | grillon | no I think it's because I change the hostname |
23:50.58 | grillon | it was front |
23:51.10 | rrq | ok; and that causes a new dhcp request for the new hostname |
23:51.11 | grillon | may be... |
23:51.43 | rrq | which dnsmasq does not associate with the assignment ... it's a theory |
23:51.58 | grillon | it's more starnge than that |
23:52.14 | grillon | hostname is still front |
23:52.26 | grillon | vm name is devuan_front |
23:52.31 | rrq | yes, and dhcp asks for the assignment for "front" which there is none |
23:53.21 | rrq | so, add that to the libvirt conf |
23:53.41 | grillon | what? front? |
23:54.29 | grillon | maybe I should I change my hostname in devuan_front to have devuan_front everywhere? |
23:55.09 | rrq | yes, it seems important that the dhcp assignment agrees with the client about the hostname |
23:56.29 | rrq | that's new knowledge for me; thank you for that. |
23:57.01 | fsmithred | Host names may contain only alphanumeric |
23:57.01 | fsmithred | <PROTECTED> |
23:57.01 | fsmithred | <PROTECTED> |
23:57.23 | rrq | periods? |
23:57.44 | fsmithred | that's right from the man page |
23:58.08 | *** part/#devuan AnimaInvicta (~AnimaInvi@ber27-1-78-230-215-86.fbx.proxad.net) |
23:58.18 | grillon | ok my mystake, hostname is front and vm name is devuan_front |
23:59.13 | rrq | man page of what? meaning that hostname may be a FQDN I suppose |
23:59.23 | fsmithred | man hosts |