Re: [DNG] modprobe can't find modeule
Haines Brown: ... > I have /lib/modules/5.18.0-4-amd64/updates/dkms/vboxdrv.ko > > When I run modprobe on it I get this error: ... insmod might be of help. Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Init respawns - was: Be prepared for the fall of systemd
Steve Litt: > On Thu, 2022-08-04 at 16:01 +0200, k...@aspodata.se wrote: > > Steve Litt: ... > > There is no requirement of pid files in the above. The notion of pid > > files comes from some req. that you should be able to do > > ./some_script stop. > > I do sv stop daemonname all the time. Well, fine, I don't complain about that, just don't exspect every one to have the same set of requirments. > > If you don't care about scripts like thoose in > > /etc/init.d there is no need for pid files, and if you manage the > > startup and shutdown of single processes on your own then the ps > > output is sufficient. > > What if there are two of them running, or two processes so close in text that > it's > hard to grep between them? I've done stuff like looking at the ps output or > searching thru /proc, but I always felt a little insecure when doing so. . minimizes the number of running processes . when reading ps output, remove the kernel tasks from the list try e.g. ps ax | egrep -v '\]$' | sort -n . if it listens to a socket you can use netstat -tulp Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Be prepared for the fall of systemd
Bruce Perens: ... > But we should be looking forward to something else as the next OS paradigm. > This would include features that have been seen mostly in experimental > operating systems up to now. This is what I think the "next OS" might be: > > The fundamental OS concept is "Everything's an API" rather than > everything's a file. ... Do you have some pointers to thoose experimental operating systems so I can get a taste of what you are talking about ? Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Init respawns - was: Be prepared for the fall of systemd
Steve Litt: > On Wed, 2022-08-03 at 09:36 +0200, marc wrote: > > Karl Hammar > > > Steve Litt: ... > > > 1) Does Busybox init require the daemon to background itself? > > So I seem no reason why "nohup daemon > /var/log/logfile &" isn't sufficient > > for this, or is there something I am not aware of ? > > The preceding involves PID files, which can get mixed up or stale. Also, the > nohup.out file can grow to a monstrosity, although that can be handled (no pun > intended) by redirection to /dev/null. ... There is no requirement of pid files in the above. The notion of pid files comes from some req. that you should be able to do ./some_script stop. If you don't care about scripts like thoose in /etc/init.d there is no need for pid files, and if you manage the startup and shutdown of single processes on your own then the ps output is sufficient. Note, there is no godsent decry to have anything like a process manager, things works perfectly fine without that cruft, it all depends on your application and your own taste. Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Init respawns - was: Be prepared for the fall of systemd
marc: > Steve Litt: > > 1) Does Busybox init require the daemon to background itself? > > So I seem no reason why "nohup daemon > /var/log/logfile &" isn't sufficient > for this, or is there something I am not aware of ? The requirement for deamons not to background is so that the process manager: 1, will get a SIGCHLD when the process terminates instead of scanning running processes or log files 2, don't need a pid file to find the process for the purpose of terminating it or something else 3, will get log output from a file descriptor instead of scanning syslog possible other things... Depending of your own requirements, that might be important or not. > > 2) Does Busybox init give you a reasonable way to automatically restart the > > process > > after the process terminates? > > > > 3) Does Busybox init give you the choice of auto-restart or not for each > > different > > process? If it does, that's something specifically missing in Runit. ... > TL;DR: just install better daemons ;) ACK. But you have to write them also, what others write is usually out of your hands. Regards /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Be prepared for the fall of systemd
Steve Litt: ... Busybox doesn't do what I guess you want, for that you just fire up a process supervisor, there are a few to choose among. Remember busybox init is just a minimal init, everthing else is some other programs responsibility. You can think of busybox init as sysv init but with just one runlevel. But since you asked: > 1) Does Busybox init require the daemon to background itself? No, just place it last in /etc/rcS, and there can only be one such process. > 2) Does Busybox init give you a reasonable way to automatically restart the > process > after the process terminates? You can run it in its own console, and there you can have it to respawn just like a getty. > 3) Does Busybox init give you the choice of auto-restart or not for each > different > process? If it does, that's something specifically missing in Runit. Yes, start the process either in /etc/rcS or in its own "getty" line. Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Be prepared for the fall of systemd
Steve Litt: ... > * Runit > * S6 ... Why not busybox init, it handles gettys and the rest is up to /etc/rcS, which you are free to make it do whatever you like. As a direct replacement for sysv init, you can use for i in /etc/rcS.d/S* /etc/rc2.d/S* do $i start done in rcS and similar for shutdown. Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
[DNG] *too (Re: article about devuan)
Antony: > On Saturday 30 July 2022 at 16:47:59, Steve Litt wrote: > > Inconvenient to newbies? LOL, compare it to *too or Slackware :-) > Have I missed something - are there spinoffs from Gentoo which also end in > too? ... http://www.funtoo.org/ https://en.wikipedia.org/wiki/File:GentooFamilyTree1210.svg Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
[DNG] About the majoritys choise (Re: article about devuan)
olbigtenor: ... > Dunno as to the real reason but I've given up on trying to get others to > switch from M$ Win - - - - the argument always gets to 'the majority > of users just can't be wrong' to which there is no real effective counter. A million flies can't be wrong, shit is good. If you place a million monkeys in front of typewriters, Shakespears complete works will eventually emerge; well, Internet has proved that to be wrong. Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] vdev in chimaera
Didier: > Le 26/05/2022 à 13:26, k...@aspodata.se a écrit : > > The kernel devtmpfs makes dev files come and go, yes, but they > > will have some default user, group and permission setting, so > > *dev daemons handle that part. > >    Yes, I forgot this point. > >    However handling permission and ownership is a simple task. > Couldn't it be done by a script fed by inotifywait ? > >    'inotifywait -mqe create --format %f /dev | PermissionManager.sh' > >    An oversimple hotplugger (~: Well, why don't you try it and tell us. The simplest cause of action is to have the /dev files previously set up. A static /dev is sufficient enless you use md's with superblock version > 0.90, hdmi audio (I guess) and lvm, and I guess if you havn't root access on your system and uses not permanently connected usb devices. Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] vdev in chimaera
Didier: ... > Â Â Â Seems there is a myth about user-space hotplugger > (udev/eudev/vdev/mdev) being necessary to have a dynamic /dev. Dynamic > /dev has been managed by the kernel from many years. The hotpluggers do > other things, like managing the symlinks in /dev/disk/by-* and they are > usefull for that. But, even if you remove the hotplugger, if the kernel > has the DEVTMPFS feature enabled (which is likely), it will create and > delete the device files. The kernel devtmpfs makes dev files come and go, yes, but they will have some default user, group and permission setting, so *dev daemons handle that part. And, if DEVTMPFS isn't used then udev will not start, don't know about eudev. vdev and mdev will probably run fine without devtmpfs. Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] vdev in chimaera
Aitor: > On 25/5/22 23:04, k...@aspodata.se wrote: > > It would be nice if one could choose static /dev (as it was before udev). > > It is no problem running with a static /dev if you compile your own > > kernel. > > vdevd already has a "run once" option, passing the argument --once (either > -1), ... > where the daemon -if not- would remain waiting for next events, once the > scanning > of the contents of `/sys` has been carried out. > So generated `/dev` is static and, as Jude Nelson explains in his > `how-to-test.md` > file, "running the daemon again will update the > previously-generated static `/dev` with only the device files that correspond > to hardware plugged into your computer." Very nice, but README.md says it removes dev files, and I know how to get device files from /sys. But it should be useful for thoose packages that says they depend on udev and doesn't really. Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] vdev in chimaera
Aitor: > On 20/1/22 0:23, aitor wrote: ... > > I uploaded some images of gnuinos chimaera including vdev as default > > device manager. ... > It's possible to choose between sysvinit, openrc or runit at the end of the > installation, but unlike devuan, the later is set as default. > > Bear in mind that you can always toggle device managers via apt, whether: > > # apt-get install libeudev1 eudev > > or > > # apt-get install libudev1-compat vdev It would be nice if one could choose static /dev (as it was before udev). It is no problem running with a static /dev if you compile your own kernel. Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] mouse driver question
Fred: > On 5/12/22 15:23, Florian Zieboll via Dng wrote: > > On May 12, 2022 9:44:39 PM GMT+02:00, Fred wrote: > >> I don't use a DE, just openbox and xterm. The regular scroll wheel > >> mouse works correctly in both xev and the application. Button 2 is > >> identified as 2 so I contend it has to have something to do with > >> program(s) run to use the serial mouse. > >> > >> xmodmap -pp shows the buttons mapped correctly with both mice. > >> > >> The Xorg.log file has entries for USB Optical Mouse, Mouse Systems > >> mouse and Sun mouse (when I gave that protocol to inputattach and > >> gpm) but nothing about mouse buttons. Then I'm more or less at loss what to do, save make an adapter for my sun mouse try it at home. ... > > There's just one question itching me for a > > little while now: Is it possible, that this > > old mouse simply has some physical > > issue, triggered by using button 2? > > > > And if so, what would be the best way to > > prove it? He has already proven it. > No, the mouse is fine. I have an application that I have used for 20 > years running on Solaris 2.6. The Sun is retired but I still need the > application. I was able to get it to compile and run happily on Devuan > Beowulf and it works fine with the standard pc scroll wheel mouse. The > program makes extensive use of the middle button which is a pain with > the pc mouse. I would like to continue using the Sun three button mouse > which works except the middle button. I have studied the output of the > mouse with an oscilloscope and software and it is working exactly as a > Mouse Systems mouse. There is some defugalty in getting the middle > button information into user programs. Maybe a bug somewhere? There have been some changes over the years, e.g. xlib replaced by xcb. This might not be related, but this little test program didn't work (segfault) with devuan/debian libXt but it workes fine in gentoo: http://aspodata.se/computing/librnd_motif/Shell_Size_Constraint/ it also workes fine in debian woody and when rebuilding libXt in previous devuan version, so it might be something shady in current devuan/debian libxt. If this is really important to you, you could try to . rebuild libxt . install another distro, eg. gentoo . try an older version of debian, e.g. potato, woody or sarge Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] mouse driver question
Fred: ... > With xev, buttons 1 and 3 are correctly identified but the middle button > is randomly assigned 4,5,6 or 7. Possibly this is the problem as I know > the application is expecting button 2. Maybe it is the desktop environment or the window manager that messes this up. Try installing and using fvwm1 or something of similar age instead of what you are using currently and do the same test, or if you know how, run bare Xorg. /// It can also be the xserver config if you happens to have a xorg.conf that is picked up by X. Configs like buttonmapping and things related to emulateweel can mess this up. Look in man evdev (or man mousedrv). Look in your X11 log file for clues: $ man xorg | grep -A8 ' -logfile' -logfile filename Use the file called filename as the Xorg server log file. The default log file when running as root is /var/log/Xorg.n.log and for non root it is $XDG_DATA_HOME/xorg/Xorg.n.log where n is the display number of the Xorg server. The default may be in a different directory on some platforms. This option is only available when the server is run as root (i.e, with real- uid 0). Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] mouse driver question
Fred: > On 5/11/22 05:02, k...@aspodata.se wrote: > > You should be able to do lsinput from input-utils package to see which > > /dev/input/inputX file your mouse's byte stream transformed as events > > would appear. And then run input-events X to see the events. E.g.: > > > > # lsinput | tail > > open /dev/input/event11: No such device or address > > > > /dev/input/event10 > > bustype : BUS_I8042 > > vendor : 0x2 > > product : 0xa > > version : 0 > > name: "TPPS/2 IBM TrackPoint" > > phys: "isa0060/serio1/input0" > > bits ev : (null) (null) (null) > Why did you pick event10? Because that where the mouse is as shown by the lsinput output. > I have event0 to 21 also mice and mouse0 in that directory. Run lsinput and choose. Here ia another example: # modprobe sermouse # ./inputattach --daemon --mouseman /dev/ttyS0 # tail -2 /var/log/all May 11 15:01:30 zoisit user.info kernel: [15477.331554] input: Logitech M+ Mouse as /devices/pnp0/00:01/tty/ttyS0/serio3/input/input19 May 11 15:01:30 zoisit user.info kernel: [15477.332229] serio: Serial port ttyS0 # lsinput | tail open /dev/input/event18: No such device or address /dev/input/event17 bustype : BUS_RS232 vendor : 0x4 product : 0x1 version : 256 name: "Logitech M+ Mouse" phys: "ttyS0/serio0/input0" bits ev : (null) (null) (null) # input-events 17 /dev/input/event17 bustype : BUS_RS232 vendor : 0x4 product : 0x1 version : 256 name: "Logitech M+ Mouse" phys: "ttyS0/serio0/input0" bits ev : (null) (null) (null) waiting for events 15:13:30.888773: (null) ??? (0x112) pressed 15:13:30.888773: (null) code=0 value=0 15:13:32.998688: (null) ??? -1 15:13:32.998688: (null) code=0 value=0 15:13:33.061029: (null) ??? -1 15:13:33.061029: (null) code=0 value=0 15:13:33.560736: (null) ??? 1 15:13:33.560736: (null) code=0 value=0 15:13:33.583775: (null) ??? 3 15:13:33.583775: (null) code=0 value=0 15:13:33.591262: (null) ??? 3 15:13:33.591262: (null) code=0 value=0 15:13:33.614295: (null) ??? 1 15:13:33.614295: (null) code=0 value=0 15:13:33.621787: (null) ??? 2 15:13:33.621787: (null) code=0 value=0 15:13:34.191695: (null) ??? 1 15:13:34.191695: (null) code=0 value=0 15:13:34.302401: (null) ??? 1 15:13:34.302401: (null) code=0 value=0 15:13:34.553504: (null) ??? (0x112) released 15:13:34.553504: (null) code=0 value=0 ... Here above we can see the middle button pressed, the mouse moved, and the button released. > I think we are barking up the wrong tree here. The application sees the > button because the pointer freezes when it is pressed. What is missing > is X and Y movement info. while the button is pressed. With the above example we can check if that is true. Another way to test this is to use xev. Start xev, move the mouse xev's window, press button, move, release, check the result: ButtonPress event, serial 33, synthetic NO, window 0x321, root 0x4d3, subw 0x0, time 243503614, (56,88), root:(360,300), state 0x0, button 1, same_screen YES MotionNotify event, serial 33, synthetic NO, window 0x321, root 0x4d3, subw 0x0, time 243504966, (57,88), root:(361,300), state 0x100, is_hint 0, same_screen YES MotionNotify event, serial 33, synthetic NO, window 0x321, root 0x4d3, subw 0x0, time 243504989, (59,89), root:(363,301), state 0x100, is_hint 0, same_screen YES MotionNotify event, serial 33, synthetic NO, window 0x321, root 0x4d3, subw 0x0, time 243505012, (60,90), root:(364,302), state 0x100, is_hint 0, same_screen YES ButtonRelease event, serial 33, synthetic NO, window 0x321, root 0x4d3, subw 0x0, time 243505908, (60,90), root:(364,302), state 0x100, button 1, same_screen YES Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] mouse driver question
Fred: ... > The Sun Compact 1 three button mouse is 1200 baud, 8 data bits, no > parity and sends 5 bytes in Mouse Systems protocol. Byte 0 is button > info. exactly the same as msc. Byte 1 is 8 bit signed X movement. Byte > 2 is 8 bit signed Y movement. Bytes 3, 4 are zero. That fits the Mousesystems protocol as described in man mouse. ... > The problem seems to be that movement info. is not being sent or is > incorrect when the middle button is down. The inputattach program > appears to be decoding the mouse protocol so I think that is where the > problem is. I am not a C programmer so I can't determine what is wrong. ... If I look at utils/inputattach.c from https://sourceforge.net/projects/linuxconsole/files/latest/download inputattach does . option handling . sets the line discipline: ldisc = N_MOUSE; if (ioctl(fd, TIOCSETD, &ldisc) < 0) { . sets the device type (e.g. it's a MSC mouse) ioctl(fd, SPIOCSTYPE, &devt) . goes into the background (daemon()) . stays there just emptying the input buffer of the serial port So, inputattach does not decode the byte stream from the mouse. Instead it seems that the kernels drivers/input/mouse/sermouse.c does that. Look in the static void sermouse_process_msc(struct sermouse *sermouse, signed char data) function. So... the "input" way is too buggy. Why not consider the deprecated X11 mouse driver. /// You should be able to do lsinput from input-utils package to see which /dev/input/inputX file your mouse's byte stream transformed as events would appear. And then run input-events X to see the events. E.g.: # lsinput | tail open /dev/input/event11: No such device or address /dev/input/event10 bustype : BUS_I8042 vendor : 0x2 product : 0xa version : 0 name: "TPPS/2 IBM TrackPoint" phys: "isa0060/serio1/input0" bits ev : (null) (null) (null) # input-events -t 100 10 /dev/input/event10 bustype : BUS_I8042 vendor : 0x2 product : 0xa version : 0 name: "TPPS/2 IBM TrackPoint" phys: "isa0060/serio1/input0" bits ev : (null) (null) (null) waiting for events 11:58:57.217543: (null) ??? (0x110) pressed 11:58:57.217543: (null) code=0 value=0 11:58:57.356137: (null) ??? (0x110) released 11:58:57.356137: (null) code=0 value=0 11:58:59.084678: (null) ??? (0x112) pressed 11:58:59.084678: (null) code=0 value=0 11:58:59.225056: (null) ??? (0x112) released 11:58:59.225056: (null) code=0 value=0 11:58:59.613730: (null) ??? (0x111) pressed 11:58:59.613730: (null) code=0 value=0 11:58:59.689984: (null) ??? (0x111) released 11:58:59.689984: (null) code=0 value=0 ^C # Where I pressed the left, middle and lastly right button on my laptop. Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] mouse driver question
Fred: ... > In spare time I am building a board to convert mouse output to RS232. I > did research on this in 2011. I found a program I wrote (for embedded > controller) to watch serial port and show mouse bytes on lcd. I don't > know yet if it was finished or works. Viewing the mouse output with an > oscilloscope shows it is definitely 1200 baud and appears to be 8 data > bits odd parity and one stop bit. The mouse is sending 5 bytes. I made a program that "spied" on a serial port, reporting all bytes coming in and out from a serial port. It worked by using pty's. It has seen some bitrot, but perhaps I can shape it up during the summer. In the meantime, you could watch the input bytes by doing # stty -F /dev/ttyS4 1200 cs8 raw # cat /dev/ttyS4 | od -t x1 # and then move the mouse 000 40 01 00 4c 3d 4c 05 3f 4c 04 3f 02 3f 40 00 01 020 40 01 01 40 02 03 40 02 40 03 40 00 04 43 3d 06 040 43 3c 06 43 3b 06 43 3b 04 43 3d 01 40 00 01 43 060 3f 00 4f 3f 3f 4f 3f 3f 4f 3e 3f 4f 3f 3c 3d 4f 100 3b 4f 3d 4f 3f 4c 00 3f 4c 00 3f 4c 01 3f 4c 01 ^C # cat /dev/ttyS4 | od -t x1 # pressing the right button 000 40 00 50 00 00 40 00 00 50 00 40 00 50 00 40 00 020 50 00 00 40 00 00 50 00 40 00 00 50 00 40 00 50 ^C # cat /dev/ttyS4 | od -t x1 # pressing the left button 000 60 00 40 00 00 60 00 40 00 00 60 00 00 40 00 60 020 00 40 00 00 60 00 40 00 00 60 00 40 00 60 00 40 ^C od waits to fill one line before it writes out anything. Descriptions of mouse protocols are available here: https://courses.cs.washington.edu/courses/cse477/00sp/projectwebs/groupb/PS2-mouse/mouse.html https://www.kryslix.com/nsfaq/Q.12.html man mouse > I tried gpm again in a VT. The left button highlights a single > character or lines. The right button highlights lines from the last > left button click. The middle button prints the character that was > under the cursor at last left button click. $ man gpm ... OPERATION To select text press the left mouse button and drag the mouse. To paste text in the same or another console, press the middle button. The right button is used to extend the selection, like in `xterm'. Soo, it works as adverticed above ? Then the problem is that the input subsystem is doing the wrong things (i.e. in the kernel git repo, drivers/input/mouse/sermouse.c needs some fix) or it is been set up wrongly. > I think inputattach is actually doing what it is supposed to do but is > telling the application something different from what the standard > scroll wheel pc mouse does. inputattach is just setting up the kernel to read and translate the mouse packets. The packets then appear somewhere at /dev/input/ which X11 reads. Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] mouse driver question
Fred: > On 4/25/22 10:17, k...@aspodata.se wrote: ... > I am using the DLP-TXRX-G usb/serial adapter with a transistor to invert > the mouse output. The mouse has an active high output and the dlp rx > input is active low. This one: http://www.dlpdesign.com/usb/txrx.php seems to be ttl, not rs232 levels/signals. > I forgot to say in the previous message that x and y movement and > buttons 1 and 3 all work normally. Only the middle button doesn't work. Well, half a victory! > I have some hardware that would be fairly easy to have read in the mouse > signals and display the bytes. I will do this over the next few days > and it should be possible to determine the exact protocol. Nice. Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] mouse driver question
Fred: ... > I ran gpm-mouse-test again. That program seems to have major > problems. It can't even detect the baud rate which I know to be 1200. ... I tested it here and it succesfully detected my MouseMan at 1200baud. It can be that your serial to usb converter confuses the program because usb delivers bytes in a different way, in packets, not one byte at a time. I might make a din-8 (aka sun mouse if.) to rs232 converter within the month. If so I'll report back to you. Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] mouse driver question
Nick: > On 25-04-2022 16:20, Fred wrote: ... > > The compile went ok. I used command line: > > inputattach --daemon --baud 1200 -msc /dev/ttyUSB0 > > It accepted the baud rate option this time however the middle button > > still does not work. The pointer freezes when the middle button is > > down. So, everything works, except the middle button ? Just checking, is this one in the kernel: # grep MOUSE_SERIAL /boot/config-`uname -r` CONFIG_MOUSE_SERIAL=y If done as a module, you need to modprobe sermouse > > I ran gpm-mouse-test again. That program seems to have major > > problems. It can't even detect the baud rate which I know to be 1200. ... Forget about that program then, it doesn't help you. > Looking at inputattach man page could you give the option > > *-ms*,*--mshack* > 3-button mouse in Microsoft mode. > > a try? Cannot say much about that, but there is a -sun variant also. You have to try around. /// If you cannot make inputattach to work, you can . go for the old mouse driver and edit xorg.conf . reverse engineer the protocol used and make code to handle that Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] mouse driver question
Fred: ... > The compile fails because SDL.h can't be found. > Package sd12 was not found in the pkg-config search path. It also > mentions adding directory containing sd12.pc to the PKG-CONFIG_PATH > environment variable. To find which package a missing file belongs to, do: # apt-get install apt-file $ apt-file search SDL.h $ apt-file search sdl2.h /// I get: $ apt-file -x search /SDL.h$ libsdl1.2-dev: /usr/include/SDL/SDL.h libsdl2-dev: /usr/include/SDL2/SDL.h $ apt-file search /sdl2.pc libsdl2-dev: /usr/lib/x86_64-linux-gnu/pkgconfig/sdl2.pc So, the above problem is solved by installing libsdl2-dev. Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] mouse driver question
Fred: ... > The middle button is being seen as the pointer won't move when it is > held down. It would appear the application is being told something > different than when the standard pc mouse is used. It is probably because you were forced to set the wron baudrate. Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] mouse driver question
Fred: > On 4/23/22 12:53, k...@aspodata.se wrote: ... > > If so, press Ctl-Alt-F2 buttons simultaineusly to get to a console. > > There log in as root > > and then try one of > >gpm -b 1200 -m /dev/ttyUSB0 -t msc > >gpm -b 1200 -m /dev/ttyUSB0 -t sun > >gpm -b 1200 -m /dev/ttyUSB0 -t mman > > and move the mouse to test. > > > This works. The msc protocol works best, the mman protocol doesn't work > at all. All three buttons show some effect. Very good. ... > > B, try inputattach to make the mouse appear as a /dev/input/* device > > and be automatically included by X11, I haven't tested this. See > > > > https://wiki.archlinux.org/title/Serial_input_device_to_kernel_input > > https://sourceforge.net/projects/linuxconsole/files/ > > https://help.ubuntu.com/community/SerialMouseHowto > > https://wiki.alpinelinux.org/wiki/Serial_Mouse ... > There is some progress. The inputattach package in Devuan apparently > doesn't have a config file. Specifying the baud on the command line > results in an invalid baud message. inputattach does work with the Sun > mouse but the middle button doesn't work. I tried msc and sun protocol > and both work the same. I may try some other protocols but I suspect a > bug in inputattach. Maybe I should contact the maintainer? I have no experience with inputattach, but looking at utils/inputattach.c from https://sourceforge.net/projects/linuxconsole/files/latest/download around line 1163: switch(baud[i]) { case -1: break; case 2400: type[i]->speed = B2400; break; case 4800: type[i]->speed = B4800; break; case 9600: type[i]->speed = B9600; break; case 19200: type[i]->speed = B19200; break; case 38400: type[i]->speed = B38400; break; case 115200: type[i]->speed = B115200; break; default: fprintf(stderr, "inputattach: invalid baud rate '%d'\n", baud[i]); return EXIT_FAILURE; } and $ grep -A2 msc inputattach.c { "--mousesystems", "-msc", "3-button Mouse Systems mouse", B1200, CS8, SERIO_MSC, 0x00, 0x01, 1, NULL }, So, yes, you found a bug. Add this before the "case 2400" line: case 1200: type[i]->speed = B1200; break; compile and test. Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] mouse driver question
Fred: ... > I also don't like the beetle wings for buttons one and three because > I am often accidentally clicking button three. ... Yes, it is wery annoying when you accidentally press button three. Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] mouse driver question
Ralph Ronnquist: ... > I think all mice are supposed to be handled by the kernel and will > then get presented at /dev/input/mice ... At some level every hardware is handled by the kernel. What you are talking about is the input subsystem. To make a serial mouse work or use the input subsystem you have to do an inputattach so the mouse attached at /dev/ttySx is available as /dev/input/mouseY. As you kan see in the kernel source/drivers/input/mouse/sermouse.c, in function static void sermouse_process_msc(struct sermouse *sermouse, signed char data) it takes the protocol and converts it to another protocol. For that function to work you need it be configured in the kernel, build in or as a module. This command should return y or m. # grep MOUSE_SERIAL /boot/config-`uname -r` CONFIG_MOUSE_SERIAL=y If done as a module, you need to modprobe sermouse After that you do the inputattach of the serial port. At this stage you need to know the protocol used, there is no autodetection. It is in a sense similar to the gpm repeater mode. > Section "ServerFlags" > Option "AutoAddDevices" "false" > EndSection I.e. either you do it all by yourself, or you use hw that can be auto detected, there is no midpoint, like auto detect gpu and monitor, but use this mouse... Yea, thanks x devs. for ditching us with unusual hw. > and b) installing xserver-xorg-input-kbd and xserver-xorg-input-mouse ... Thoose two drivers are abandoned upstream from what I heard. Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] mouse driver question
Fred: ... > If gpm only works in a virtual terminal why do I need to continue > working with it? I don't use a virtual terminal. ... Since it is such a simple test to do, e.g. you don't have to restart the X server to try another protocol. Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Looking for xorg.conf (was Re: mouse driver question)
Olaf Meeuwissen: ... > As I mentioned in a previous response, nowadays Xorg gets by without > this file quite well, most of the time. It simply probes your system > and uses what it finds. ... That has never worked for serial mice, sorry. Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] mouse driver question
Fred: > On 4/23/22 02:34, k...@aspodata.se wrote: ... > > So, make sure you are running in a virtual console and logged in as > > root, then run the gpm -b etc. thing and move the mouse around. > > > > To make the mouse to work in X11, please test the mouse with gpm in > > a console first to assert basic functionality, and then come back. Did you do the test above ? As long the serial port isn't opened by anything, you can let X11 and openbox be running. If so, press Ctl-Alt-F2 buttons simultaineusly to get to a console. There log in as root and then try one of gpm -b 1200 -m /dev/ttyUSB0 -t msc gpm -b 1200 -m /dev/ttyUSB0 -t sun gpm -b 1200 -m /dev/ttyUSB0 -t mman and move the mouse to test. > A previous post mentioned xorg.conf which doesn't appear to exist in > Devuan Beowulf (AMD64). > So, where do I go from here? You can either A, do a xorg configuration with the mouse driver man xorg.conf is your friend. B, try inputattach to make the mouse appear as a /dev/input/* device and be automatically included by X11, I haven't tested this. See https://wiki.archlinux.org/title/Serial_input_device_to_kernel_input https://sourceforge.net/projects/linuxconsole/files/ https://help.ubuntu.com/community/SerialMouseHowto https://wiki.alpinelinux.org/wiki/Serial_Mouse Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] mouse driver question
Fred: > On 4/22/22 15:31, k...@aspodata.se wrote: ... > > gpm -b 1200 -m /dev/ttyS1 -t msc ... > It shows up at /dev/ttyUSB0. I have tried that command line several > times. Nothing happens. ps -e shows gpm is running. The pointer will > not move and the mouse buttons have no effect. ... You have to be aware that gpm is for virtual consoles: $ man gpm | grep 'gpm - ' gpm - a cut and paste utility and mouse server for virtual consoles So in X11, openbox etc. graphical environment, it has no effect unless you take special action. With graphical environment I mean bitmapped as opposed to character (i.e. letters) based graphics. Testing with gpm is best done without X11, so stop your window manager (obenbox) and exit from X11. If you then is presented with a greeter (also called display manager, see https://en.wikipedia.org/wiki/X_display_manager_(program_type) ), see if you can stop the greeter. Also testing has to be done as root. So, make sure you are running in a virtual console and logged in as root, then run the gpm -b etc. thing and move the mouse around. To make the mouse to work in X11, please test the mouse with gpm in a console first to assert basic functionality, and then come back. Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] mouse driver question
Fred: > On 4/22/22 14:21, Fred wrote: > > On 4/22/22 13:46, k...@aspodata.se wrote: > >> Fred: > >> ... > >>> As I said in an earlier post there is an article on using a (different) > >>> Sun mouse on Linux. The protocol used was msc. From looking at the > >>> output with an oscilloscope that protocol does appear close if not > >>> correct. ... >From the scope trace you can infer the baud rate. The baud rate is 1 / smallest_pulse_width. > >> Have you tried: > >> > >>  mouse-test [ device ] ... > > That program is actually gpm-mouse-test. ... Should be the same program, differnt packaging. Does most development on gentoo, run devuan on production boxes. > > The Sun mouse I would like to use is also a compact-1. Does the > > mouse-test program you mention work with your compact-1 mouse and > > therefore is actually a different program than the one in the gpm package? I haven't made any adapter for it, it is on a sparcstation. ... > As I said in an earlier post I used the mouse > (long ago) on Debian Jessie with gpm and it worked with msc protocol. Soo, what happens when you try with: gpm -b 1200 -m /dev/ttyS1 -t msc where ttyS1 should be changed to the serial port used. Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] mouse driver question
Fred: ... > As I said in an earlier post there is an article on using a (different) > Sun mouse on Linux. The protocol used was msc. From looking at the > output with an oscilloscope that protocol does appear close if not correct. Type-4 and -5 mice seems to been made by mouse systems: https://www.oldmouse.com/mouse/mousesystems/sun.shtml http://www.telltronics.org/hardware/SunMouse.html My own sun moues is a type compact-1 and is done by Logitech. So your primary choises would be msc and mman (in gpm parlance). > As I said in an earlier post I haven't been able to get gpm to do > anything with the pointer. Have you tried: mouse-test [ device ] Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] mouse driver question
Fred: ... > I don't understand what you mean by virtual terminal. There are not many "true" terminals left: https://en.wikipedia.org/wiki/Computer_terminal so basically all terminals today are virtual, in the sense that they behave as if they were an actual terminal, but they are not. There are basically two types of virtual terminals: . virtual consoles (also called virtual terminals) https://en.wikipedia.org/wiki/Virtual_console . terminal emulators (like xterm) https://en.wikipedia.org/wiki/Terminal_emulator It seems the primary differance between them is that the virtual consoles/terminals works in the text mode which linux comes up in. I.e. with no X11, wayland, openbox or whatever graphical support. And the terminal emulators works in the graphical mode. Some people relate this to the difference between DOS and MS-Windows. Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] mouse driver question
Fred: ... > I need to work with a nonstandard serial three button mouse without > scroll wheel. It needs a baud rate specification and gpm has an > option for this. ... > I know that gpm works with this mouse. Since gpm works with the mouse I wouldn't say it is a "non-standard" one. What mouse protocol does the mouse speak ? Common protocols are mouseman and msmouse. You can see what protocols are supported by gpm by doing: gpm -m /dev/null -t help Unfortunately you have to do that as root, it doesn't matter what you write as the device, it can be any string. You can also find out about mouse protocols with man mouse Examples of mouse protocols: https://web.stanford.edu/class/ee281/projects/aut2002/yingzong-mouse/media/Serial%20Mouse%20Detection.pdf https://www.kryslix.com/nsfaq/Q.12.html Example mouse code (if you want to build a mouse yourself): https://aspodata.se/git/openhw/boards_arm_aspo/mouse/mouse.c > What program is used as mouse driver on Beowulf and Chimaera? In a text mode terminal you can use gpm or something similar. In wayland, I don't know, it seems libinput is used by wayland. In X11 you could use the mouse driver: https://www.x.org/releases/current/doc/man/man4/mousedrv.4.xhtml https://packages.debian.org/bullseye/xserver-xorg-input-mouse You have to configure the mouse driver yourself, udev is of no help for a serial mouse. You can have multiple serial mice connected and used. Example xorg.conf extracts: Section "InputDevice" Identifier "Configured Mouse" Driver "mouse" Option "CorePointer" Option "Device""/dev/ttyS4" Option "Protocol" "MouseMan" EndSection Section "InputDevice" Identifier "Configured MSMouse" Driver "mouse" Option "SendCoreEvents" Option "Device""/dev/ttyS5" Option "Protocol" "Microsoft" EndSection Todays usb mice can use: Section "InputDevice" Identifier "Generic Mouse" Driver "mouse" Option "SendCoreEvents""true" Option "Device""/dev/input/mice" Option "Protocol" "auto" Option "ZAxisMapping" "4 5" EndSection It has apperantly been removed in favour of libinput upstream: https://www.gentoo.org/support/news-items/2020-04-03-deprecation-of-legacy-x11-input-drivers.html Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] What is your take on finit?
Steve Litt: ... > I read the docs at https://troglobit.com/projects/finit/ , and have > some opinions technically... ... I don't see the point in letting init do serious process monitoring. Just use a minimal init and startup a separate process monitoring daemon (or what theese things are called). ... > Ability to run foreground daemons is a huge asset when you make your > own daemons. Any C, Python, Perl, Ruby, Lua, Java, PHP, C++, Pascal, > bash, /bin/sh, or pretty much any other program that loops forever > doing its job can be made into a daemon by an init that accepts > foreground daemons. This is revolutionary, because it means the daemon > author no longer needs to write the (non-trivial) self-backgrounding > code. I have several home-made no-backgrounding daemons running, and > those wouldn't be possible with finit. I don't see the point, learn to write good deamons. It seems the need to use theese process monitors has sprung up from the availability of shitty deamons. In my view, when a deamon dies by any other cause than from your will then it shall die so hard that it causes a major headacke and the shitty programmer should be publicly flogged as a reminder and example to other programmers -- well not really, but you get my point. Most deamons I have run, they just run, they don't need a process monitor except me. Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Website "motto"?
Florian: > On Wed, 19 Jan 2022 18:19:57 +0100 (CET) > k...@aspodata.se wrote: ... > > To paraphrase usenix: > > > > ;init: > > > > but that would be too much of an internal joke. ... > I tried with a websearch for 'usenix AND syntax' - but this remains "too > much of an internal joke" for me... May I ask you to elaborate on it? ;login: is/was the magazine of usenix and sage, see: https://www.usenix.org/publications/login/ "login:" is was the getty prints at the terminal so you can login. For the semicolon, see: https://static.usenix.org/publications/login/whysemi.html Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Website "motto"?
Florian: ... > I like "init freedom" very much and think, that it's fully sufficient > resp. that it doesn't need any further comment (nor advice). > > The only change I would suggest is to add a colon, that it reads: > > init: freedom > > or, to stress the "command" style, while keeping the syntax intact: > > > init freedomâ > > with a (blinking?) cursor at the end, seducing to hit [enter]... > > This, I think, would make it even more obvious, that Devuan stands not > only for the freedom to choose among a number of init systems, but that > the this very choice will have a much greater impact subsequently. To paraphrase usenix: ;init: but that would be too much of an internal joke. Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Website "motto"?
o1bigtenor: > On Wed, Jan 19, 2022 at 3:55 AM wrote: ... > > I'd prefer something that say that you as an owner is in control and > > has the final say. That you are not subjected to random choises by > > some clique. ... > but I really like the idea of nothing negative. > There has been a lot of very negative stuff flying around - - - > somehow I think it is possible to make a point without > having to destroy the opposing one. I agree with that. Perhaps something like "You're the captain, which init do you prefer today?" Like in captain of a ship and you have to navigate the system. Somehow corporate marketing has thoose positive things seems like ads. Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Website "motto"?
Hendrik: > On Tue, Jan 18, 2022 at 08:49:41PM -0600, goli...@devuan.org wrote: > > On 2022-01-18 16:33, o1bigtenor via Dng wrote: > > > > > > Maybe something like "init freedom - - - your first step . . . " > > Like this? https://transfer.sh/cTgmNi/if-rev2.png > > Interesting. The "if" in italics and off-centre makes the > image dynamic. At first I thought it a design error; then > I realised it works very well. What is that "if" about, ohh, it is an acronym... Unfortunately it looks like this insurance company's logotype: https://www.if.se/ so, I'd say we cannot use it (it really make me wounder why the authorities allows thoose names). Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Website "motto"?
Curtis: > > On Jan 18, 2022, at 9:49 PM, goli...@devuan.org wrote: > > On 2022-01-18 16:33, o1bigtenor via Dng wrote: > >> Maybe something like "init freedom - - - your first step . . . " ... > âYour first step mattersâ I'd prefer something that say that you as an owner is in control and has the final say. That you are not subjected to random choises by some clique. Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Fwd: request for assistance
ael: > > On Sat, Jan 15, 2022 at 2:37 PM wrote: > > > > > > o1bigtenor: > > > ... > > > > I'm told to: > > > > > > > > rebuild the kernel with CONFIG_NOUVEAU_DEBUG_PUSH=y > > > ... > > > > > > That config is used in: > > > drivers/gpu/drm/nouveau/include/nvif/push.h > > > > > > its latest commit is d502297008142645edf5c791af424ed321e5da84 > > > from 2021-01-19, so you need kernel v5.11-rc6 or later. So > > > get a suffiently new kernel and do as they say. > > > > > > > Hmm - - - - and HOW do I do that? > > git clone > git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git or if you want samething smaller, download a specific kernel source from: https://www.kernel.org/ Here is a guide on how to buile the kernel: https://phoenixnap.com/kb/build-linux-kernel The debian howto is a little confusing, start at sec.4.6 https://kernel-team.pages.debian.net/kernel-handbook/ch-common-tasks.html If you use "make menuconfig" the config mentioned above is in "Device drivers -> Graphics support", put a "y" in this entry: [ ] Enable additional push buffer debugging There are a lot of choises in the kernel config, so the hard part is to make the right choises. Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] request for assistance
o1bigtenor: ... > I'm told to: > > rebuild the kernel with CONFIG_NOUVEAU_DEBUG_PUSH=y ... That config is used in: drivers/gpu/drm/nouveau/include/nvif/push.h its latest commit is d502297008142645edf5c791af424ed321e5da84 from 2021-01-19, so you need kernel v5.11-rc6 or later. So get a suffiently new kernel and do as they say. Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] HDA AD1882 no card
Karl: > I have a lenovo desktop computer which I cannot make sound work > on, what am I missing ? > > It's a HDA AD1882 "sound card", but alsamixer says "no card". > > alsa-info, kernel config and lenovo doc (see p.80) in: > http://aspodata.se/tmp/sound/ > > /// > > I run with static /dev (no udev) and > boot directly to disk (no initrd). Ok, found the culprit, the kernel was configured with dynamic minors which doesn't play well with static /dev. This config kicked in due to a hdmi setting, so I missed it. $ grep DYNAMIC_MINOR config-4.19.182-rt74a # CONFIG_DVB_DYNAMIC_MINORS is not set CONFIG_SND_DYNAMIC_MINORS=y # CONFIG_USB_DYNAMIC_MINORS is not set $ Thanks, for all help. Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] HDA AD1882 no card
Nick: > On 09-01-2022 19:32, k...@aspodata.se wrote: > > I have a lenovo desktop computer which I cannot make sound work > > on, what am I missing ? > > > > It's a HDA AD1882 "sound card", but alsamixer says "no card". ... > Maybe obvious but is your sound card enabled in the BIOS? (I did have > that once so I always ask now) Yes, very obvious... The only configuration in BIOS I found is ENABLED/DISABLED, and yes, I have set it to ENABLED. Setting it to DISABLE did not help. Nor did disabling pci parity, power management etc. Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] HDA AD1882 no card
ael: > On Sun, Jan 09, 2022 at 07:32:13PM +0100, k...@aspodata.se wrote: > > I have a lenovo desktop computer which I cannot make sound work > > on, what am I missing ? > > > > It's a HDA AD1882 "sound card", but alsamixer says "no card". > kernel Documentation/sound/hd-audio/models.rst > includes > > AD1882 / AD1882A > > 3stack > 3-stack mode > 3stack-automute > 3-stack with automute front HP (default) > 6stack > 6-stack mode > > which I think means that these are possible "model" parameter > values for the driver. > > Perhaps worth trying those? I have tried all thoose three as model parameter, still "no souncard". Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] HDA AD1882 no card
ael: > On Sun, Jan 09, 2022 at 07:32:13PM +0100, k...@aspodata.se wrote: > > I have a lenovo desktop computer which I cannot make sound work > > on, what am I missing ? > > > > It's a HDA AD1882 "sound card", but alsamixer says "no card". > > > > alsa-info, kernel config and lenovo doc (see p.80) in: > > http://aspodata.se/tmp/sound/ ... > I would start with > # lspci -k |less 00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 02) Subsystem: Lenovo 82801I (ICH9 Family) HD Audio Controller Kernel driver in use: snd_hda_intel Kernel modules: snd_hda_intel Added lspci output to above site. ... > # modinfo snd_hda_intel (or whatver your driver is) > Seems plausible that you may need to adjust some parameters there to > match your hardware. But you have an old lenova which surely must have > been sorted out years ago? Hmm, there are a lot of parameters. I have used model=AD1882. Added modinfo output to above site. > $ aplay -l aplay: device_list:274: no soundcards found... > Look also in /proc/asound/cards 0 [Intel ]: HDA-Intel - HDA Intel HDA Intel at 0xd01a irq 26 Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
[DNG] HDA AD1882 no card
I have a lenovo desktop computer which I cannot make sound work on, what am I missing ? It's a HDA AD1882 "sound card", but alsamixer says "no card". alsa-info, kernel config and lenovo doc (see p.80) in: http://aspodata.se/tmp/sound/ /// I run with static /dev (no udev) and boot directly to disk (no initrd). Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
[DNG] How to make non /usr merged dpgs (was: Re: merged /usr breakage)
Karl: > The first one gives me an unbootable system > $ ldd /sbin/init | grep /usr > libpcre2-8.so.0 => /usr/lib/x86_64-linux-gnu/libpcre2-8.so.0 > (0x7f737ba28000) ... So, how do I change the above package to install the lib in /lib//x86_64-linux-gnu instead ? I can get the source with: $ apt-get source libpcre2-8-0 $ cd pcre2-10.36/debian is it sufficient to change this file ? $ cat libpcre2-8-0.install debian/tmp/usr/lib/*/libpcre2-8.so.* $ and if I manage to create the package, what name should I give it, something like libpcre2-8-0_nonusrmerge or what ? Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] merged /usr breakage
Aitor: > On 4/1/22 22:17, k...@aspodata.se wrote: > > the problem is that the lib is on a > > filesystem that isn't available at kernel to init handover time. > Did you try something like this: > copy_exec /usr/lib/x86_64-linux-gnu/libpcre2-8.so.0 > in a hook located at/usr/share/initramfs-tools, in order to include it in the > initrd? Sorry, > but i'm a bit unaware of the thread... No, haven't tried it, don't use initrd, booting directly to disk. Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] merged /usr breakage
Antoine: > On Monday, 3 January at 18:25, k...@aspodata.se wrote: ... > >$ ldd /sbin/init | grep /usr > >libpcre2-8.so.0 => /usr/lib/x86_64-linux-gnu/libpcre2-8.so.0 > > (0x7f737ba28000) ... > Maybe your /etc/ld.so.cache is misconfigured? ... What makes you believe that ? ld.so.cache is just fine, the problem is that the lib is on a filesystem that isn't available at kernel to init handover time. If I move over the lib to the root fs, then there is no problem other than that apt/dpkg et al. don't know about it. Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] merged /usr breakage
Didier: > The simplest way to kick off problms with /usr merge is to *not* > make /usr a mountpoint. Perhaps, but why break working systems, especially when they are 3h car ride from home and all in differnt locations. That is just rude. > There is no utility in splitting the OS in several partitions. ... My systems, my rules. Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] busybox init
Steve Litt: ... > If busybox init does not require daemons to self-background, I'd be > even more enthusiastic. ... Busybox init has its inittab, mostly for gettys, and a boot script, that is your options. Having daemons not-backgrounded in the rcS script isn't practical and I don't think that is what you want. You can have the daemon in the inittab like: $ grep ssh /etc/inittab tty2::respawn:/usr/sbin/sshd -d and that works perfectly well, you can ssh to the box but only one user at time, that is a sshd -d limit. Log output is printed on tty2. My guess is that you don't want that either. Why don't you start a process monitor, either at the end of the rcS script or from the inittab. So, in effect let init handle /etc/rcS.d/S* and the gettys, and the process monitor /etc/rc2.d/S*. Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] busybox init
Karl: > I have used busybox init for a while. It differs from sysvinit > by not having runlevels, except perhaps on and off. ... > One could possible (not tested) mimic sysvinit bootup by having > for i in /etc/rc2.d/S*; do $i start; done > in the rcS file or if you prefer you can have your own handwritten > and tuned script there. With this temporary fix: mv /usr/lib/x86_64-linux-gnu/libpcre2-* /lib/x86_64-linux-gnu/ mv /usr/lib/x86_64-linux-gnu/libpcre2-* /lib/x86_64-linux-gnu/ mv /usr/lib/x86_64-linux-gnu/libblkid.so.1* /lib/x86_64-linux-gnu/ mv /usr/lib/x86_64-linux-gnu/libmount.so.1* /lib/x86_64-linux-gnu/ mv /usr/lib/x86_64-linux-gnu/uui /lib/x86_64-linux-gnu/ ldconfig static busybox compiled from git and installed in /busybox and theese files: # cat inittab ::sysinit:/etc/rcS ::respawn:/sbin/agetty --noclear 38400 tty1 linux tty2::respawn:/sbin/agetty --noclear 38400 tty2 linux tty3::respawn:/sbin/agetty --noclear 38400 tty3 linux tty4::respawn:/sbin/agetty --noclear 38400 tty4 linux tty5::respawn:/sbin/agetty --noclear 38400 tty5 linux tty6::respawn:/sbin/agetty --noclear 38400 tty6 linux ::ctrlaltdel:/busybox/poweroff ::shutdown:/busybox/swapoff -a ::shutdown:/busybox/umount -a -r ::restart:/busybox/init # cat rcS for i in /etc/rcS.d/S* do $i start done for i in /etc/rc2.d/S* do $i start done my test chimaera system boots just fine with init=/busybox/init. Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] merged /usr breakage
Ralph: > On Mon, 3 Jan 2022 18:25:12 +0100 (CET) > k...@aspodata.se wrote: > > The first one gives me an unbootable system > > $ ldd /sbin/init | grep /usr > > libpcre2-8.so.0 => /usr/lib/x86_64-linux-gnu/libpcre2-8.so.0 > > (0x7f737ba28000) > > > > fortunately /bin/bash didn't depend on /usr so I could boot with > > init=/bin/bash, but there is more breakage: ... > No solution, but it looks like "the culprit" for this is that the > libselinux1 package changed in between beowulf (buster) and chimaera > (bullseye) from depending on libpcre3 to depending on libcre2-8-0. libpcre3 was the old, and libcre2 the new lib, with -8 is for working on 8bit walues, also available is -16 and -32 (if you have wide characters). > The former, libpcre3, installs its libraries in both /lib and /usr/lib > (different), in both its beowulf and chimaera versions, whereas > libcre2-8-0 installs only in /usr/lib. Yes, so it is: /lib/x86_64-linux-gnu/libpcre.so.3.13.3 /usr/lib/x86_64-linux-gnu/libpcreposix.so.3.13.3 vs. /usr/lib/x86_64-linux-gnu/libpcre2-8.so.0.10.1 > I haven't reviewed the source for comment around that dependency > change. Apart from the strange numbering (which is upstreams fault), the dependancy migration seems sane. Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] busybox init
Curtis Maurand: ... > I was reading the âcomment on systemdâ article. the last two sview > and svcpage could be aliases to those shell scripts rewritten to > take cli arguments in your .bashrc. Whats wrong with grep named /var/log/messages | less and similar ? /// Don't cc me, I'm on the list. Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] merged /usr breakage
Steve Litt: > k...@aspodata.se said on Tue, 4 Jan 2022 00:08:01 +0100 (CET) ... > >busybox can replace the mount command, but there is no fsck.* in > >busybox. > > Rather than fighting the mostly political fight of usr-merge, If it makes systems unbootable it isn't a "political" fight. > my first > thought would be to make a whole new directory on the root partition. ... > I'd probably call it /bb . Put all the static executables > needed in early boot there. If there are a lot, it could have > subdirectories, We already have /bin and /sbin, there is no need to create a new one. > and a bb.d subdirectory with scripts to be performed in > order. We already have one, /etc/rcS.d, which serves booting. /// If you seriously want new directories for booting, somewhere in /boot is more appropriate, it could possible replace initrd. Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] merged /usr breakage
Martin: > k...@aspodata.se - 03.01.22, 18:25:12 CET: > > The first one gives me an unbootable system > > $ ldd /sbin/init | grep /usr > > libpcre2-8.so.0 => /usr/lib/x86_64-linux-gnu/libpcre2-8.so.0 > > (0x7f737ba28000) > [â¦] > > Soo, what can I do to help with that ? > https://manpages.debian.org/bullseye/dpkg/dpkg-fsys-usrunmess.8.de.html > worked for me. No guarantees from my side. $ dpkg-fsys-usrunmess -n D: checking symlink? /bin ... System is fine, no aliased directories found, congrats! Well, it is worse than that. Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Printer trouble again. (slight progress)
Hendrik: > On Mon, Jan 03, 2022 at 06:52:17PM +0100, k...@aspodata.se wrote: > > Hendrik: > > ... > > > DeviceURI > > > dnssd://Brother%20HL-3170CDW%20series._ipp._tcp.local/?uuid=e3248000-80ce-11db-8000-30055c5516df > > From what I can see: > > https://www.brother-usa.com/products/hl3170cdw > > > > that printer supports BR-script which is a postscript clone. > > Why not set it to BR-script mode on the front panel, run plain old > > lpr and be done with it. And tell your programs to always output > > postscript. > > lpr is what I use to print. And it ends up going through CUPS. At least, it > did last time I successfully printed. > It turns out that there are several packages that provide lpr. CUPS is one > of > them. Presumably it provided an lpr that passes everything through CUPS. You probably have the "cups-bsd" package, plain old lpr is in the package "lpr". > I had anther machine where I did not use CUPS an spent quite a while figuring > out how to find, install, and configure the 'plain old lpr'. Abd that > involved > getting a print driver from the manufacturer. Of course, they provided an > 'installer' which had to be run as root and changed an plastered whatever it > wanted around the file system (something I don't appreciate). The point is that a postscript printers don't need a driver, so if you only uses postscript printers (that are set up as such mode), then your printcap file ends up with lines like: granat:rm=granat:sd=/var/spool/lpd/granat:rp=lp:lp=:sh:mx#0: > I no longer know how I accomplished that. But when I installed Devuan jessie > on > my new computer a few years ago, it came with CUPS and just worked. Well, that is fine, but when it don't work, it is a black box. /// Regarding driverless printing, that is what I always had it with postscript. PCL could probably work also, but there is no PCL previewer what I know of. Sending pdfs to printer usually gets me a scaled down printout. Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] merged /usr breakage
Karl: > The first one gives me an unbootable system > $ ldd /sbin/init | grep /usr > libpcre2-8.so.0 => /usr/lib/x86_64-linux-gnu/libpcre2-8.so.0 > (0x7f737ba28000) > > fortunately /bin/bash didn't depend on /usr so I could boot with > init=/bin/bash, but there is more breakage: ... booting with init=/bin/bash and running the files /etc/rcS.d/S* manually it seems to be fsck.* and mount who has dependacies on /usr. To fix this, theese packages needs to un-/usr-merged: libmount1 libblkid1 libpcre2-8-0 libuuid1 uuid-dev busybox can replace the mount command, but there is no fsck.* in busybox. Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] busybox init
Didier Kryn: > Le 03/01/2022 à 21:27, tito via Dng a écrit : > > On Mon, 3 Jan 2022 18:45:28 +0100 (CET) > > k...@aspodata.se wrote: ... > >> The sysinit thing is a how you start the system, it's just > >> one script /etc/init.d/rcS (or where you prefer to place it). > >> > >> One could possible (not tested) mimic sysvinit bootup by having > >> for i in /etc/rc2.d/S*; do $i start; done > >> in the rcS file or if you prefer you can have your own handwritten > >> and tuned script there. If you have /usr on a separate partition... This didn't work: for i in /etc/rcS.d/S*; do $i start; done fsck.* and mount has dep. into /usr Manually mounting with busybox/mount works, but there is no fsck.ext4 in busybox. After mountall /usr is available, so the rest did work and so did for i in /etc/rc2.d/S*; do $i start; done ... > > I would build a static compiled busybox binary with: Yes like: git clone git://busybox.net/busybox.git cd busybox make defconfig make menuconfig # I wanted static busybox binary make mkdir /busybox cp busybox /busybox cd /busybox ./busybox --install . > > init > > a shell > > reboot, shutdown > > swapon/swapoff > > mount, umount > > (start-stop-daemon) > > (getty, login) >    AFAIR you would also need cttyhack, setsid and a few others I've > forgotten if you want to be able to debug it. ... cttyhack and setsid is in busybox upstream. Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Printer trouble again. (slight progress)
Hendrik: ... > DeviceURI > dnssd://Brother%20HL-3170CDW%20series._ipp._tcp.local/?uuid=e3248000-80ce-11db-8000-30055c5516df From what I can see: https://www.brother-usa.com/products/hl3170cdw that printer supports BR-script which is a postscript clone. Why not set it to BR-script mode on the front panel, run plain old lpr and be done with it. And tell your programs to always output postscript. Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
[DNG] busybox init
I have used busybox init for a while. It differs from sysvinit by not having runlevels, except perhaps on and off. Busybox repo is at: git://busybox.net/busybox.git Website at: https://busybox.net/ Comment re. systemd: https://busybox.net/kill_it_with_fire.txt Example inittab at: https://git.busybox.net/busybox/tree/examples/inittab excerpt: # Note: BusyBox init works just fine without an inittab. If no inittab is # found, it has the following default behavior: # ::sysinit:/etc/init.d/rcS # ::askfirst:/bin/sh # ::ctrlaltdel:/sbin/reboot # ::shutdown:/sbin/swapoff -a # ::shutdown:/bin/umount -a -r # ::restart:/sbin/init # tty2::askfirst:/bin/sh # tty3::askfirst:/bin/sh # tty4::askfirst:/bin/sh The sysinit thing is a how you start the system, it's just one script /etc/init.d/rcS (or where you prefer to place it). One could possible (not tested) mimic sysvinit bootup by having for i in /etc/rc2.d/S*; do $i start; done in the rcS file or if you prefer you can have your own handwritten and tuned script there. Would there be any interests having a busybox_init package which I could possible maintain (with a little help) ? Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
[DNG] merged /usr breakage
The first one gives me an unbootable system $ ldd /sbin/init | grep /usr libpcre2-8.so.0 => /usr/lib/x86_64-linux-gnu/libpcre2-8.so.0 (0x7f737ba28000) fortunately /bin/bash didn't depend on /usr so I could boot with init=/bin/bash, but there is more breakage: $ ldd /bin/mount | grep /usr libmount.so.1 => /usr/lib/x86_64-linux-gnu/libmount.so.1 (0x7f5bc9b06000) libblkid.so.1 => /usr/lib/x86_64-linux-gnu/libblkid.so.1 (0x7f5bc98f) libpcre2-8.so.0 => /usr/lib/x86_64-linux-gnu/libpcre2-8.so.0 (0x7f5bc982c000) $ dpkg -l | grep sysvinit-core ii sysvinit-core2.96-7+devuan1 amd64System-V-like init $ dpkg -l | grep mount ii libmount1:amd64 2.36.1-8+devuan1 amd64device mounting library ii mount2.36.1-8+devuan1 amd64tools for mounting and manipulating filesystems Soo, what can I do to help with that ? Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Automating the distro?
Steve Litt: > I wonder if building Devuan can be further automated. Void Linux has > some super-duper software processes to do much of this automatically. > It works right off of a git server (unfortunately, github). If I'm not > mistaken it puts out two updates a day, but of course there's no > automatic updating so the user chooses when to do all the updates up to > current. With very few people, Void Linux manages to keep a very > complete distro with very few screwups, and they fix major security > flaws about as fast as Debian. > > I'm wondering if Devuan could make use of something similar. Perhaps > doing this would free up resources to Devuanize more packages, for less > dependency on Debian. You just have to provide build servers and maintainers, and then copy the way debian does it. > Before you ask, no, I can't help. I'm indexing my new book, Writing takes time, indexing shouldn't, what's wrong here. > I'm making > provisions so programs written in Freepascal, C, and pretty much any > other language, can send a sine wave to the speakers (a capability > requiring way too much programming in Linux). Of course I'll > release it as Free Software. Have a look at: http://archive.debian.org/debian/pool/main/d/dtmfdial/dtmfdial_0.2.orig.tar.gz ... > In the > long run it's probably going to be advantageous for Devuan to move more > toward a distro of its own, before the Debian crowd decide to put in > halloween code to sabotage Devuan. Sure, what programs do you want to maintain ? Can you provide a build server ? Me myself, I could work on . removing bogus debendancies on udev in packages . busybox init . kernels without iiniramfs for traditional desktop computers with ahci sata if. . udev-less systems just don't know the devuan process. Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
[DNG] Embedded devuan (was Re: Devuan with usr merge?)
Didier Kryn: > Le 16/11/2021 à 01:44, Florian Zieboll via Dng a écrit : > > On Mon, 15 Nov 2021 21:19:08 +0100 ... > > As I use to do a minimal *.bian install on my SoC hardware, which > > I afterwards move to the Devuan repositories, while keeping the > > related original "firmware" repository, I must confess that the > > whole "embedded"-thing is still somewhat unclear to me, at least > > regarding kernel and firmware updates. I'd be more than happy to > > get a hint towards an honest introduction to this topic. If you are using embedded linux, you probably have an ip-connection to the hw and uboot as the fw/bootlooder/bios or what you prefer to call it. If you have an ip-connection, you can just ssh to the box and copy it to the right place and do whatever is needed. You usually don't update the processor, embedded board or other fw than uboot. If you want to do that you have to check the manufacturer documentation. ... >    I wish to every Linux fan to live this adventure. Ack, here is example manufacturer documentation of the process: http://developer.embedian.com/display/LOS/SMARC+T335X That hw is similar to the BeagleBoneBlack mentioned by Antoine, so if you start off the BBB, this one could be the next in your learning curve. Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Devuan with usr merge?
James Cloos: > >>>>> John Morris via Dng writes: > > So yes, it is time to eliminate /bin, /sbin and /lib. > the real result shod be eliminate /usr. Guys, please don't push unnessary changes and policies to the user. Let each and everyone be the master of his/her own systems. Just because debian wants to go that route doesn't mean it has to be engraved as a policy for devuan. Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
[DNG] kernels (was Re: Devuan with usr merge?)
Steve Litt: > k...@aspodata.se said on Sat, 13 Nov 2021 12:42:51 +0100 (CET) > >Steve Litt: ... > >> Which brings up another beef I have: Why don't they build Ext4 and > >> maybe a couple other mainstream filesystems into the kernel, so if I > >> want, I can boot without initramfs? What would it cost? > >... > > > >I use it all the time. > > > >Just do it yourself, it just cost you a little time, or do you > >volunteer to maintain a such kernel for devuan ? ... > I think it's more than just a little time. Depends on what you want. > Every time the kernel updates, No, you don't have to follow the dists update schedule, you don't need to use the dist kernel at all. It should read, every time _you_ want to update the kernel. > you need to get the new kernel's source, recompile, and > replace the new kernel. Well, get used to it and streamline it then. Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Devuan with usr merge?
Steve Litt: > John Morris via Dng said on Fri, 12 Nov 2021 17:26:52 -0600 > >On Tue, 2021-11-09 at 01:56 -0500, Steve Litt wrote: ... > >The size of the OS is just so small now, compared to storage media and > >data files. Even a small SSD will easily hold all of /usr for all but > >the most bloated installs on old obsolete storage media. So simply > >including /usr in the root filesystem makes sense for almost all use > >cases. Size is not the only reason. You might want to have a separation for other reason. ... > Which brings up another beef I have: Why don't they build Ext4 and > maybe a couple other mainstream filesystems into the kernel, so if I > want, I can boot without initramfs? What would it cost? ... I use it all the time. Just do it yourself, it just cost you a little time, or do you volunteer to maintain a such kernel for devuan ? Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] What is libc5-i686 | lib32gcc1 (proliant package dependencies)
For libc5, run "man libc" and look under the heading "Linux libc". The latest libc5 package is from 2003 in debian-archive, from what I can see: debian-archive/debian/pool/main/libc/libc/libc5_5.4.46-15_i386.deb That is within Debian 3.0, Woody, timeline. Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Bluetooth headset
Jyri: > Has anyone gotten a Bluetooth headset with microphone working yet? ... I don't have any bluetooth headset, and I don't use it, just programming some devices for it, so no, but: There are two variants of Bluetoth, classic and low energy (BLE). If your headset is using the classic one, you probably need bluetooth legacy support. First of all, you need to "see" the other side, try something like (you need to stop bluetoothd first): https://www.hackers-arise.com/post/2018/01/30/bluetooth-hacking-part-2-bluetooth-reconnaissance https://wiki.archlinux.org/title/Bluetooth#Pairing Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] ntp setup
Rick Moen: ... > https://support.ntp.org/bin/view/Dev/DeprecatingNtpdate ... Thanks for the link. /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] ntp setup
o1bigtenor: > Given that Devuan is about the 'not' use of systemd it would seem sorta > normal to have a how-to for a newbie I don't follow the logic in that. Are you saying that thoose who don't use systemd needs newbie documentation ? > - - - - - and I couldn't find anything > that wasn't using systemd except for npt and then Look in: /var/lib/dpkg/info/ntp.list and you'll find that both man pages and html pages are provided. If that doesn't help you, go to http://www.ntp.org/ and click on the Documentation link. If that doesn't help you, ask about the specific problem you have. > npt only synchronizes only on machine starts. That is wrong, I guess you are thinking about initial sync. You can do initial syncronisation with e.g. ntpdate, but ntpd can do that also, but can take more time before it decides to jump the clock if it differ too much. Then ntpd, while running, will at some regular interval, syncronize the clock. Run ntpq -p to see the polling interval. The ntp.conf file installed with devuan is perfectly fine for a newbies always-connected system. If your box only has intermittent connection to the internet, ntpd might not be what you need. You might then be better served by chrony or something else. Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] PartialSolve Re: Chimaera; Lost sound
Arnt Karlssen: ... > ..try apulse $them, at least the firefox people said they > "would only support PulseAudio" a while back. firefox 78.9.0esr works with jack for me. Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Strange browser home
Hendrik: > I ssh -X from my laptop (midwinter) to my server, april. > On april I start a browser. > Of course it displays on my laptop because of the -X, > I navigate to my home directory (I have one on each machine) > > When I do this with chromium I get my home directory on april, as expected. > When I do it with firefox-esr, I get my home directory on midwinter, my > laptop. > > Evidently starting firefox-esr on april manages to actually start it on > midwinter... > > How can it so this? How does it even know to do this? Don't know, dbus perhaps. > It's clearly more efficient if I want to look at files on the world-wide > web. > > But not what I want if I want to examine files on the server. Don't know, firfox --no-remote might help. Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] [3.0] Time in AM/PM format ??
Hendrik: > I reset my personal day when I go to sleep at night. So when I'm a > night owl I'll cheerfully use times like 23:00, 24:00, 25:00 ..., all > treated as part of the same day. Reminds me of the municpal bus company in Stockholm, at least in the 80-ies, the day went on to I think 29:00, depending on if you started your job after or before midnight i.e. Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] [3.0] Time in AM/PM format ??
Adam Borowski: ... > The latter have weird customs like a medieval system of measurements, units > that differ on dry-vs-liquid-vs-slightly-moist, or different distances by > the same name on air vs land vs survey measurements. Just go back 50-60years and you'll find that we used a lots of different "thumb" and other units here also. And it's usage is still lingering although diminishing. Sometimes it is used as an indication of a person who "knows" his trade, like 5" nail instead of 125mm nail. And regarding your last comment, here in Sweden we still use mil (=10km) and distansminut (=1852m, nautical mile) as a complement to the boring km. Doesn't the airplane etc. people all arond the globe talk about flying heights in feet. And annoyingly many persons excels in using mils (=1/1000 inch) instead of mm in the pcb industry even though components with pitch derived from inch grids are quickly becoming obsolete. Yea, thoose "medieval" units still has a somewhat strong hold on us all. ... > And, also, a discontinuous system of time with four non-monotonic segments > and ambiguous endpoints; marked with "am" and "pm". ... Isn't it so that all (?) analogue clocks show 0-12 and you must infer the "am" and "pm" part from context. And in informal situations you (at least here) say five a'clock, not 17:00. The difference is we use a 24h clock in formal situations or when we want to be more specific. /// Upstream date (coreutils) has got a debug flag that might be useful: $ LC_TIME=sv_SE ./date --debug ./date: output format: ?%a %e %b %Y %H:%M:%S %Z? tis 30 mar 2021 18:39:34 UTC $ LC_TIME=en_US ./date --debug ./date: output format: ?%a %d %b %Y %r %Z? Tue 30 Mar 2021 06:39:38 PM UTC Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
[DNG] web conferencing software (was Re: Any interest in a Devuan Meetup in Colorado Springs or Denver?)
Rick Moen: ... > More to the point, Jitsi Meet (reminder: that's its correct name) > is open source (Apache License 2.0). All it takes to run is a computer > with adequate RAM and a public IP address. > > BigBlueButton also has many adherents, and is generally similar > (including relying on WebRTC and being open source, LGPL). https://en.wikipedia.org/wiki/Comparison_of_web_conferencing_software lists four open source systems: https://en.wikipedia.org/wiki/Jitsi https://en.wikipedia.org/wiki/Jami_(software) https://en.wikipedia.org/wiki/OpenMeetings https://en.wikipedia.org/wiki/BigBlueButton Anyone knows which one to choose for a smallish group (< 20 persons) ? Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Linux's sucky cut and paste: was: problematic mouse driver?
Steve: > On Thu, 19 Nov 2020 22:16:46 +0100 > a...@saar.de wrote: > > Please, in all your critique of X's mechanism in doing cut&paste > > remember, that all this worked quite well until around 2000, when > > (mostly) KDE and Gnome started to try to make Linux more and more > > like Windows and ignoring and sidelining established mechanisms. > > That's not how I remember it. When I first started using Linux in 1998, > RH 5.0, with fvwm user interface, cut and paste sucked. "Sucked" is a somewhat fuzzy thing and it also depends on whatever you expected in 1998, my guess is that you didn't like the middle click thing, while others like it. As it stands today, we have two somewhat colliding ways to do cut'n'paste in linux+X. Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Linux's sucky cut and paste
Here are a few links about cut'n'paste: https://en.wikipedia.org/wiki/Cut,_copy,_and_paste https://everything2.com/title/Cut+and+Paste+in+X https://www.jwz.org/doc/x-cut-and-paste.html Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] problematic mouse driver?
Hendrik: ... > Also, I think there's > some kind of mouse configuration that is required for this to work. ... $ man mousedrv | grep -A6 Emulate3Buttons Option "Emulate3Buttons" "boolean" Enable/disable the emulation of the third (middle) mouse button for mice which only have two physical buttons. The third button is emulated by pressing both buttons simultaneously. Default: on, until a press of a physical button 3 is detected. Property: "Mouse Middle Button Emulation" Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Ancient releases
> Hendrik: > ... > > Is there a line for sources that will access an archived Debian release? > > I'm > > interested in running some software that was dropped from Debian about a > > decade ago. I still have a bootable partition with that ancient release > > lying round somewhere. > > https://www.debian.org/distrib/archive And the timeline is here: https://en.wikipedia.org/wiki/Debian_version_history A decade ago would be lenny or squeeze. Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Ancient releases
Hendrik: ... > Is there a line for sources that will access an archived Debian release? I'm > interested in running some software that was dropped from Debian about a > decade ago. I still have a bootable partition with that ancient release > lying round somewhere. https://www.debian.org/distrib/archive Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] terminology
Hendrik: > On Mon, Aug 24, 2020 at 01:51:05AM +0200, k...@aspodata.se wrote: > > Hendrik: > > > There are files and directories. > > > > > > Is there an establiched word in the Linux/Unix xommunity > > > for something which might be a file or a directory? > > > > One could possible use "file system node", perhaps shortened to fsnode. > > Yes. That might work. > I was hoping to find a well-known estabished word. > At least this has the right meaning. > Someone familiar with the insides of file systems might > know more,,, Well, "file" is the well-known established word, it is just linux that forces you to use ls/readdir() instead of cat/read() on directories which works for other unices (at least used to work, I havn't checked reasently). What do you want to use it for ? /// (git://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-stable-rt.git) $ fgrep -B1 -A14 'File types' linux-stable-rt/include/linux/fs.h /* * File types * * NOTE! These match bits 12..15 of stat.st_mode * (ie "(i_mode >> 12) & 15"). */ #define DT_UNKNOWN 0 #define DT_FIFO 1 #define DT_CHR 2 #define DT_DIR 4 #define DT_BLK 6 #define DT_REG 8 #define DT_LNK 10 #define DT_SOCK 12 #define DT_WHT 14 $ man find | grep -A19 ' -type c' | grep ' ' -type c File is of type c: b block (buffered) special c character (unbuffered) special d directory p named pipe (FIFO) f regular file l symbolic link; this is never true if the -L option or the -follow option is in effect, unless the symbolic link is broken. If you want to search for symbolic links when -L is in effect, use -xtype. s socket $ See also the discussion about 'The file type and mode' in man inode. Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] terminology
Hendrik: > There are files and directories. > > Is there an establiched word in the Linux/Unix xommunity > for something which might be a file or a directory? One could possible use "file system node", perhaps shortened to fsnode. Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Device naming: was Felker Init: was without-systemd.org not working
Handrik: ... > What's sg_map? > > I don't seem to have one. ... $ man sg_map ... sg_map - displays mapping between Linux sg and other SCSI devices ... $ apt-file search sg_map sg3-utils: /usr/bin/sg_map sg3-utils: /usr/bin/sg_map26 sg3-utils: /usr/share/man/man8/sg_map.8.gz sg3-utils: /usr/share/man/man8/sg_map26.8.gz votca-csg: /usr/bin/csg_map votca-csg: /usr/share/man/man1/csg_map.1.gz To get the serial number of a disk, do # sg_inq /dev/sda Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Device naming: was Felker Init: was without-systemd.org not working
Rick: > Quoting Ian Zimmerman (i...@very.loosely.org): ... > > it. If only I had listened to my nagging inner voice and looked at > > /dev/disk/by-id first, I'd have been okay. > I'm a lot more concerned about servers, personally, and am not going to > permit overengineered software on my server just because someone > couldn't bother looking at 'dmesg | tail' before running dd against an > SD card. ... There is more than one way to do it: sg_map -x -i Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Installer deficiency (was: netbooting Dev1)
dal: ... > I meant the boot media as vmlinuz + initramfs or an ISO or something bootable, > i.e. the contents of that media. > > Devuan does not provide such installation media / data. > > It seems that netboot (pxe-style) is not a target scenario for Devuan, > which is a shame. ... First, it may be unfortunately for you, but don't shame others. Second, what do you want ? Do you want: a, files for pxe style booting and installing b, a minimal cd (or usb stick) which is booted locally, and take the rest of the installation from the net c, something that helps you install on a large number of computers Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] netbooting Dev1
dal: > > From: Dng [mailto:dng-boun...@lists.dyne.org] On Behalf Of k...@aspodata.se .. > > What do you need help with ? > This is about which media and how > can be used to netboot Devuan at the installation time. The media is ethernet, don't know if it is possible over wifi. Or is it so that you don't really want netbooting, instead you want to boot from some local media as in the "netboot cd" procedure ? > AFAICS the available installer is not capable of setting up networking > without the installation CD iso at hand. > This means it cannot proceed if netbooted. As you wrote you have a lot of similar installations, I suggest you make a model fs and copy (dd) it to the new disks. And then using a selfmade script that sets up the config. The easiest way is to use a sata docking station and do all the disks in one run. This is one example: https://www.deltaco.se/produkter/deltaco/h%C3%A5rddisktillbeh%C3%B6r/h%C3%A5rddiskdockning/MAP-GD35U3 > Did you succeed to install current Devuan with netboot? Not tried that. /// It is a while since I did this, so this info might be old. To netboot, you go into the "bios" and tell it to boot over pxe; perhaps it already has it as boot alternative. On the "server" side, you have a rarp/bootp/dhcp server and a tftp server, possible also a nfs server. The usual procedure is to boot a pxebootloader which then boots the kernel. Booth thoose is to be available on a tftp server. The kernel has to be specially prepared with mknbi. The kernel then mounts a nfs fs as root. Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] netbooting Dev1
da1: > I am facing a two-faceted challenge: > > One is to make a very minimal, stable (reproducible in the sense > of the same versions of the same package set) OS installation. > Two is to install from the network with netboot (pxe/efi). ... I have done some pxe booting and install in the past. What do you need help with ? Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
[DNG] Upgrade report
On an IBM laptop. I get an unknown dist. notice: ... Fetched 589 MB in 12min 35s (779 kB/s) Extracting templates from packages: 100% Preconfiguring packages ... supported-versions: WARNING! Unknown distribution: devuan debian found in ID_LIKE, treating as Debian /// The upgrade wanted to change audio group from 18 to 29. /// Eudev install complains that udev isn't installed: Preparing to unpack .../5-eudev_3.2.7-6_amd64.deb ... dpkg-query: package 'udev' is not installed Use dpkg --info (= dpkg-deb --info) to examine archive files, and dpkg --contents (= dpkg-deb --contents) to list their contents. Unpacking eudev (3.2.7-6) over (3.2.2-13) ... /// Since I use busybox init, I get this a few times: invoke-rc.d: could not determine current runlevel invoke-rc.d: WARNING: No init system and policy-rc.d missing! Defaulting to block. /// There is some comflict between manpages and manpages-dev: dpkg: considering deconfiguration of manpages-dev, which would be broken by installation of manpages ... dpkg: yes, will deconfigure manpages-dev (broken by manpages) Preparing to unpack .../24-manpages_4.16-2_all.deb ... De-configuring manpages-dev (4.10-2) ... Unpacking manpages (4.16-2) over (4.10-2) ... /// Setting up iputils-ping (3:20180629-2) ... Failed to set capabilities on file `/bin/ping' (Operation not supported) The value of the capability argument is not permitted for a file. Or the file is not a regular (non-symlink) file Setcap failed on /bin/ping, falling back to setuid /// Unknown debian release: Setting up postgresql-common (200+deb10u3) ... Installing new version of config file /etc/apt/apt.conf.d/01autoremove-postgresql ... supported-versions: WARNING: Unknown Debian release: 3 Replacing config file /etc/postgresql-common/createcluster.conf with new version /// The upgrade didn't like my kernels/lilo setup: Processing triggers for initramfs-tools (0.133+deb10u1) ... update-initramfs: Generating /boot/initrd.img-4.9.0-8-amd64 I: The initramfs will attempt to resume from /dev/sda3 I: (UUID=65c4c336-60bf-4729-a4ac-b1899257ad99) I: Set the RESUME variable to override this. Added Memtest Added 318 Added 418 Added 409c * Added wifi Added deb + Processing triggers for libgdk-pixbuf2.0-0:amd64 (2.38.1+dfsg-1) ... Processing triggers for menu (2.1.47+b1) ... Errors were encountered while processing: lilo E: Sub-process /usr/bin/dpkg returned an error code (1) So I removed the things that made it break: dpkg -P initramfs-tools linux-image-4.9.0-8-amd64 /// The line below starting with 11 is in red, it would be hard to read for people with colour blindness: Setting up postgresql-11 (11.5-1+deb10u1) ... Creating new PostgreSQL cluster 11/main ... /usr/lib/postgresql/11/bin/initdb -D /var/lib/postgresql/11/main --auth-local peer --auth-host md5 ... Ver Cluster Port Status OwnerData directory Log file 11 main5433 down postgres /var/lib/postgresql/11/main /var/log/postgresql/postgresql-11-main.log update-alternatives: using /usr/share/postgresql/11/man/man1/postmaster.1.gz to provide /usr/share/man/man1/postmaster.1.gz (postmaster.1.gz) in auto mode /// W: APT had planned for dpkg to do more than it reported back (3822 vs 3851). Affected packages: gcc-6-multilib:amd64 gcc-multilib:amd64 lib32gcc-6-dev:amd64 libc6-dev-x32:amd64 libx32asan3:amd64 libx32atomic1:amd64 libx32cilkrts5:amd64 libx32gcc-6-dev:amd64 libx32gcc1:amd64 libx32gomp1:amd64 libx32itm1:amd64 libx32quadmath0:amd64 libx32stdc++6:amd64 libx32ubsan0:amd64 // reboot without problems starting x worked fine unfortunately emacs have stopped honouring the geometry option Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Identifying or rsetting a microsd card
Hendrik: ... > Device Start End Sectors Size Type > /dev/sdb1 20483481532768 16M unknown > /dev/sdb2 34816 31116254 31081439 14.8G unknown # file -s /dev/sdb1 # file -s /dev/sdb2 Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Help to install LiLo to a GPT HDD.
ÐндÑей: > Please help to install LiLo to a GPT HDD. I have a https://www.gigabyte.com/Motherboard/GA-MA790X-UD3P-rev-1x (I think), booting gpt partitioned 3TB disks with lilo. It has a ~100MB ext2 /boot at start of the disk, having a small first /boot is a good practice. I usually partition etc. the disks from some rescue media or in another box and then copies some pre-prepared image of a system to disk, chroot to target system and set up booting. That way I can get rid of udev which I don't need. Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] logging uses of machine-id
SteveT: ... > By the way, how did you detect insertion? Were you using dmesg > --follow ? ... I usually detect insertion via my nervous system connecting to the tip of my fingers, they detect the end stop or click that usually uccurs when the device is fully inserted. This detection system then calls the device_inserted() callback usually available during my awake hours and is denied when when I sleep. Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] sans dbus/udev (was Re: new freedesktop "standard": /etc/machine-id)
Didier: > Le 10/03/2019 à 11:22, k...@aspodata.se a écrit : > > Since nowadays the kernel can provide devtmpfs, what is the role of > > udev et al apart from handling usb devices ? > >    1) Change owner, group and permissions because the kernel defaults > everything to root.root and (I guess) 0600 > >    2) Create and populate /dev/disk/by-*, which is sometimes usefull > on a desktop or laptop. > >    3) Rename network devices (for people who want that) > >    The first 2 items might be done by monitoring /dev with inotify. > This must be checked though because, in principle, inotify only reports > interactions with the VFS issued from userspace, which is why it doesn't > work on /sys and /proc. Inotify works fine when /dev and > /dev/disk/by-label are popluated by udev, but I didn't check with > devtmpfs. We would then resort to reading the netlink. Isn't the above moot if you have a no usb devices and static dev: 1) changing owner/group/permissions are persistent, i.e. set it once and be done with it 2) isn't that mostly useful for if you have lots of disks, say more than 5. If you just have one or two, you don't need that. Also that could be generated by a script which you run manually when needed. 3) can't you do ifrename from rc.local So unless you change things you don't need udev. Unfortunately, many things have grown to dependent of udev which technically isn't. Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
[DNG] sans dbus/udev (was Re: new freedesktop "standard": /etc/machine-id)
Didier: ... >    I disliked dbus even before people spoke of systemd and I'm afraid > dbus becomes some day the way to force systemd on us. I'd like to drop > it right away, but my usual DE (xfce) uses it. I don't know much about dbus, what is good/bad with dbus ? >    But I'm modestly and slowly working to escape it: I'm writing a > little application to monitor hot-plug storage in a GUI, of course > without dbus, but also without libudev and/or gvfs. I'm almost done - > now trying to make sense out of a gtk2 tutorial. I also have a few ideas > to replace udev by a script, provided devtmpfs is enabled in the kernel. Since nowadays the kernel can provide devtmpfs, what is the role of udev et al apart from handling usb devices ? Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] new freedesktop "standard": /etc/machine-id
Rowland: > On Fri, 8 Mar 2019 11:44:49 -0600 > "Jamey Fletcher" wrote: ... > > I have it here on my Gentoo install - and /var/lib/dbus/machine-id is > > a symlink to it. It's basically the same length as a MD5SUM - why > > not just standardize on the MD5SUM of an empty 0-byte file ( > > d41d8cd98f00b204e9800998ecf8427e ) and tell them to take a running > > leap from the ISS? > > Now that's an idea, if they are tracking us, one ID will appear to be > everywhere at once, that should confuse them ;-) No, it tells "them" that you are using e.g. Devuan, and that you are concerned about it for some reason. Depending about how many who is doing so, you might be singled out. If it is for tracking, best is to not to have the infrastructure for this at all, i.e. bug programs that wants it and tell distributions to stop using it. Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] new freedesktop "standard": /etc/machine-id
Jaromil: > any thoughts about this new systemd-made thing that freedesktop > immediately "standardized" (whatever is their procedure for that, > likely smoking cigars among old-boys or so) > https://www.freedesktop.org/software/systemd/man/machine-id.html ... . It doesn't say "why". Why should I (we) provide a means to uniquely identify my systems ? I don't need it. Is it for - the nice though not useful concept, yes we reinvent things you know - the ongoing trend for more surveillance from the authorities - the ongoing trend for more surveillance from the advertising firms - the ongoing trend for more surveillance for "copyright" reason . It says "This ID uniquely identifies the host." - on the lan I can just as well use hostname or the primary ip-number - on the internet I use the fqdn or the ip-number The uniqness part will fail without someone guarantying the uniqness. Do we have an "IEEE handling out oui's" - for machine-id's ? Even if there were some IEEE, pci- or usb-consortium handling out vendor parts of the id's, there is no guaranty for uniqness since that number is just what's the local admin fancies, or is it for "tamperproof" hardware, something oppressive regimes would like. And I have seen pci cards with the wrong vendor part: "the programmer left and we don't have the code so we cannot change it" as the vendor put it. > AFAIK chromium started checking it and its absence on Devuan Beowulf > is reported as an error, so we may have to work around this. Isn't that a bug, the above man page says: It should be considered "confidential", and must not be exposed in untrusted environments, in particular on the network. Why would a network centric program need this unless it wants to expose it ? > but first things first: do we want /etc/machine-id? and how? In my view it falls in the completely unnessesary or the potentially dangerous group. I don't want it. Regards, /Karl Hammar ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] gpt boot on bios machine
hendrik: > Currently booting from a 750G BIOS-partitioned disk. > Trying to enable booting from the 4.7T drive, which is GPT partitioned. > > With grub-install I get errors: > > april:/farhome/hendrik# grub-install /dev/sda > Installing for i386-pc platform. > grub-install: warning: this GPT partition label contains no BIOS Boot > Partition; embedding won't be possible. > grub-install: error: embedding is not possible, but this is required for RAID > and LVM install. > april:/farhome/hendrik# > > Evidently there is some kind of incompatibility here. > > What is going on? What can I to do other than continuing to boot from > small BIOS disks? I have: # file -s /dev/sda /dev/sda: DOS/MBR boot sector, LInux i386 boot LOader; partition 1 : ID=0xee, start-CHS (0x0,0,1), end-CHS (0x3ff,254,63), startsector 1, 4294967295 sectors # fdisk -l /dev/sda Disk /dev/sda: 2.7 TiB, 3000592982016 bytes, 5860533168 sectors Disk model: TOSHIBA MG03ACA3 Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: gpt Disk identifier: 7A22F348-BA09-4E8C-9EE5-D2534E719D7C Device StartEndSectors Size Type /dev/sda12048 194559 19251294M Linux RAID /dev/sda2 19456019537911759232 859M Linux RAID /dev/sda3 1953792 19531775 17577984 8.4G Linux RAID /dev/sda419531776 117186559 97654784 46.6G Linux RAID /dev/sda5 117186560 136718335 19531776 9.3G Linux RAID /dev/sda6 136718336 1953124351 1816406016 866.1G Linux RAID /dev/sda7 1953124352 5860532223 3907407872 1.8T Linux RAID # Using lilo and mdraid mirrored partitions, no problems at all. I always use a small /boot partition first, no initrd, self compiled kernel. Hope this helps you. ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng
Re: [DNG] Creating directory in /var/run on bootup
Tom: ... > What is the recommended alternative way to create a sub-directory of > /var/run on bootup for non-daemon software? Don't know about "recommended", but you can . prepend your cron script like (or have a wrapper): if [ ! -d / ]; then mkdir -p /var/run/barman; fi . in the crontab have a boot entry: @reboot
Re: [DNG] slashes in FAT file names
Didier: ... > 2) there isn't a function in the C library which permits to change > the name of a file (or open it), except by giving its whole pathname. > Eg. it's not possible to open it from its directory entry. ... man openat man renameat Regards, /Karl Hammar --- Aspö Data Lilla Aspö 148 S-742 94 Östhammar Sweden ___ Dng mailing list Dng@lists.dyne.org https://mailinglists.dyne.org/cgi-bin/mailman/listinfo/dng