libera/#devuan/ Wednesday, 2024-03-06

sfoxHello03:07
sfoxWhere is the Xhosts file in Devuan?03:07
gnarfacexhosts?03:08
sfoxhttps://tldp.org/HOWTO/XDM-Xterm/config.html03:08
gnarfacei didn't know there was a file, you just manage it with the "xhost" binary03:08
gnarfacei mean, i'm sure there's a file somewhere for it but i've never had to touch it directly03:08
gnarfaceunless we're talking about a different xhost here...03:08
sfoxoh03:09
gnarfaceuh... i'm confused, this link isn't about xhost03:09
sfoxyes there's an Xserver running on a different computer03:09
sfoxI want to allow my friend to run programs on my computer under their own user account as it is more powerful, but still be able to user their less powerful computer for a keyboard and screen and speakers03:10
gnarfacealright, easy, though i don't know what that has to do with this link03:10
sfoxthey need to do some stuff which requires a beefy gpu but their on a laptop and their workstation was killed in a power surge03:10
gnarfacesure03:10
sfoxwere trying to setup XDM because that's what we think will do this03:10
gnarfaceafaik XDM is some freedesktop.org user environment crap, i'm not sure if they're making a move on remote access or not, if they were that would be news to me but i'd recommend just using openssh's built-in X11 Forwarding feature03:12
gnarfaceyou have openssh-server installed on your machine and openssh-client installed on your friend's, righT?03:12
gnarfacei don't think you will even need to change xhost permissions, i think that would just be for if you want him to be able to run the programs remotely on your desktop03:14
gnarfaceif you just want him to be able to run it on his own screen, on his own desktop, but using your computer's resources... there's very little to change in fact i think X11 Forwarding is on by default in current openssh-server builds03:15
gnarfacehang on03:16
gnarfacepasting from stackexchange:03:16
gnarfaceOn the client side, the -X (capital X) option to ssh enables X11 forwarding, and you can make this the default (for all connections or for a specific connection) with ForwardX11 yes in ~/.ssh/config.03:16
gnarfaceOn the server side, X11Forwarding yes must be specified in /etc/ssh/sshd_config. Note that the default is no forwarding (some distributions turn it on in their default /etc/ssh/sshd_config), and that the user cannot override this setting. If you change the configuration, remember to tell the server to reload its configuration, e.g. service ssh reload if your system uses systemd.03:16
gnarface(https://unix.stackexchange.com/questions/12755/how-to-forward-x-over-ssh-to-run-graphics-applications-remotely)03:17
gnarfacealternately you could use VNC if you want to give him a whole desktop of his own instead of just having him forward programs on a per-program basis03:17
gnarfaceeither way though, if you're not on a LAN together the latency will be punishing03:18
gnarfaceand i think current VNC builds in the repo don't support hardware acceleration but it did exist at one point...03:18
gnarfacesfox: try the ssh thing and see how that works then we'll go from there03:19
sfoxssh would be too much overhead and latency03:20
sfoxplus, we want to forward the entire screen to an Xserver, not just a few clients03:20
gnarfacealright, that's a job for VNC then03:21
sfoxwhy not plain X?03:21
gnarfacethe direction03:21
gnarfaceand the fact you want the whole desktop not just 1 window at a time03:22
sfoxwe are on a LAN03:22
sfoxand we have IPv603:22
gnarfaceipv6 probably won't make a difference, being on the LAN will be critical though, i hope it's not wireless...03:22
sfoxno03:22
sfoxwired03:22
sfoxa linux laptop on gigabit ethernet, through 2 switches03:23
sfoxand a netbsd i386 machine capable of X03:23
sfoxit has a 3com networking card at 100megabits03:23
gnarfaceok, good. so what you want to do as i understand it, is you want your computer to host a whole desktop but it shows up on his client machine. that's a job for VNC. if you wanted programs he runs to show up on your desktop, that would be just bare X03:24
gnarface(or alternately you could launch programs on his... that would also be bare X)03:24
gnarfaceso you want the whole desktop and you want it to go the other direction, those two things mean it has to be a remote desktop client/server setup such as VNC but there are other options frankly that's just my favorite (even microsoft rdesktop is actaully supported)03:25
gnarfacemaybe XDM has something for this too even but it looks like a mess if so...03:26
sfoxdo you think that'd be suitable for running virtual reality software?03:26
sfoxI really don't like VNC for work because of all the jpeg artifacting and latency03:27
gnarfaceonly if you got the VNC hardware acceleration for jpeg working really03:27
gnarfacejpeg quality can be adjusted but you'll need the hardware accel for it not to be laggy03:27
sfoxbasiclly, the OpenXR implementation needs to run on the beefy computer with a gpu. The vr game does too. then the OpenXR implementation talks to ALVR which encodes a framebuffer and sends to to a vr headset over the wifi03:28
gnarfacedoes the whole desktop have to be forwarded? to be honest i still think the best solution is to use ssh forwarding on just the VR game itself. you know you can disable encryption for a ssh connection, right?03:29
gnarfacesomewhat ironically the best performing solution is gonna be Steam03:29
gnarfacewell, the best i've seen personally anyway. i've heard of a close contender called Sunshine (i think) but it's not in the repos03:30
gnarfaceor you could just spin up a ffmpeg script and pipe it over netcat to him03:30
gnarfacethe key factor is just getting something that's hardware accelerated, is what i'm getting at03:30
gnarfaceit's not enough that your computer is hardware accelerating the local rendering of the game itself, it also has to hardware accelerate the encoding of the video feed, and preferrably to a format that your friend's client machine can hardware decode too03:31
gnarfaceif this is a VR game you're developing yourself, it bears mentioning that there's some built-in features of OpenGL itself that can obviate this whole thing for you03:32
gnarfaceOpenGL itself can be run in a network-transparent client-server type setup just as you want, it's just that almost nobody ever uses that anymore03:33
gnarface(except maybe some stuff on Steam)03:33
gnarface(I think I caught RocketLeague for example causing compatibility problems with the Steam Link by doing it wrong, before they discontinued the Linux version.)03:34
gnarfacesfox: the netbsd machine... what's the video card in there?03:35
gnarfacewhat sort of hardware decoding features does its driver support?03:35
gnarfaceit would be helpful to know what you're working with03:36
gnarfacehardware jpeg decoding is not ubiquitous anymore but common on NVidia hardware as well as old stuff03:36
gnarfaceand that would be a huge boon to getting VNC useable03:37
sfoxNeoMagic 256ZX03:37
rustyaxenomachine is quite good useful for video heavy remote display stuff03:37
rustyaxei use it for waterfall displays on radios often over LTE03:38
rustyaxeneeds h.264 accel03:38
rustyaxebut might be more common03:38
gnarfacesfox: hmm, 4MB SGRAM, AGP 2X... no matter what you do this thing ain't gonna handle 1080p, you know that right?03:40
gnarfaceeven if you're doing all the hardware acceleration on the host side, you're gonna have to constrain the feed to a pretty low resolution somehow just so this thing can actually draw the frames at full speed03:41
gnarfacei used to have the numbers in my head....03:42
gnarfacei forget now but 4MB is 800x600?03:42
gnarfaceor somewhere around there?03:42
gnarfacewell, you can lower color depth too to help, but i'm not sure how much that will impact your development process03:43
gnarfacesorry, i'm not trying to discourage you from trying this, i'm just trying to help you set realistic expectations03:44
sfox1-24x768@60fps03:44
sfox1024x768@6003:44
gnarfacethat's at 24 bit color depth?03:45
gnarfaceor 8?03:45
sfoxit looks full range to me03:45
sfoxAll it needs to do is run a Xserver and a window manager03:46
sfoxthe big computer with the modern gpu will do all the work.03:46
gnarfaceah yea, i found a wiki https://www.thinkwiki.org/wiki/Neomagic_MagicGraph256ZX03:46
sfoxit's just that we both need to use the big computer but there's only one seat.03:46
gnarfacesays it can do 1024x768 @ 24-bit, 1280x1024 @ 8-bit03:46
gnarface"This is despite the 4Mb video ram which should allow 1280x1024 @ 16-bit but low memory bandwidth limits this to 8-bit."03:47
sfoxit doesn't need to do 1080, 768 is fine03:47
gnarfaceso... good news! it supports hardware XV decoding apparently03:47
sfoxoh?03:47
sfoxXV?03:47
gnarfaceold 90's era linux specific video codec03:47
gnarfacebut linux stuff like ffmpeg/mplayer still supports it well03:48
gnarfaceand it's old enough probably bsd too, though you'll have to check03:48
sfoxit's running the latest stable netbsd03:48
sfox9.303:48
gnarfacemy only BSD systems are headless, so i'm not very valuable to figuring that half out03:49
sfoxit's already got a working X server03:49
gnarfaceyea, like i said, i think it should work i just don't know for sure03:49
sfoxwere just trying to figure out how to have the Xserver open a port on the network so we can send Xclients to it from the big computer03:49
gnarfacedefinitely possible, and unless you're running a firewall the ports are already open03:50
gnarfacementally, i've just already leaped ahead to trying to solve the performance issue you're going to run into next03:50
gnarfacei only see the mention of hardware XV decoding on the thing, but you might want to check the driver docs on netbsd to see if there's any other options03:52
gnarface(like i said if you're lucky and it can do hardware jpeg decoding that'll make VNC a lot more viable of a solution)03:53
onefangIn VR keeping lag down is very important, so might be better having the VR hooked directly to the beefy machine, and move the other person to the remote X.03:54
onefangUnless you have iron guts like me and don't do nausea.03:55
sfoxi typed xhost +bigcomputer.lan and it looked like it worked03:55
sfoxbut when i type DISPLAY=smallcomputer.lan:0 glxgears on the big computer it says03:55
sfoxError: couldn't open display03:55
sfoxI don't think X is binding to a network address03:56
gnarfacehmm, bigcomputer.lan and smallcomputer.lan are both registered in both systems' dns or hosts files?03:57
sfoxhow can I get X to listen on it's network port?03:57
sfoxdns03:57
gnarfaceyou typed "DISPLAY=smallcomputer.lan:0 glxgears" from the bigcomputer side, right?03:58
sfoxyes03:58
gnarfaceand glxgears is installed on the smallcomputer side already?03:58
sfoxi also commented out         DisplayManager.requestPort: 0 on the small computer03:58
gnarfaceor, wait no, i guess it'd need to be on the bigcomputer side03:58
sfoxyes the big computer running devuan has glxgears03:58
gnarfaceyou sure you don't have a firewall in place on the netbsd side?03:58
sfoxyes03:59
gnarfacei think port 6000 is the default03:59
sfoxTCP?03:59
gnarfaceboth actually? not sure03:59
gnarfacechecking...03:59
gnarfacehmm, i've been doing this over ssh for so long i'm having trouble remembering what the details were for doing without it04:01
gnarfacewell i'm seeing google searches suggest that it might be 6000 or 6001 but not specifying whether tcp or udp04:02
gnarfacei would open both just for testing until sure04:02
gnarfacesfox: anything on here that looks like you forgot? https://stackoverflow.com/questions/20548509/forwarding-x11-without-ssh-how-do-i-run-local-apps-on-another-pc-running-x-serv04:03
sfoxi'm not trying to do that, i'm trying to get X to listen on the network04:04
sfoxwithout ssh04:04
gnarfacethat's exactly what he's trying to do too, no?04:04
gnarfacejust talking about this glxgears test for starters04:05
gnarfacesfox: oh, here's an idea, see if you can telnet to tcp port 6000 on the netbsd machine from the bigcomputer04:07
gnarfacethat's just a quick sanity check04:07
gnarfacemaybe netbsd needs some secondary xorg config changed to allow forwarding, it does seem like the type of thing that might be disabled by default for security04:08
sfoxhey i got it to listen on the small computer with X -listen inet604:09
sfoxbut now when i try to run  glxgears on the big computer i get04:09
sfoxuthorization required, but no authorization protocol specified04:09
sfoxError: couldn't open display smallcomputer.lan:004:09
sfoxI host typed on the small computer xhost +bigcomputer.lan04:09
gnarfacehmm04:09
sfoxthat should have worked04:10
gnarfaceis it possible the netbsd side is wired up to require xauth by default or something like that?04:10
sfoxwhat's xauth?04:10
gnarfacei only vaguely understand it as a way to assign encryption keys to clients/hosts04:11
gnarfaceinstead of just allowing by IP only04:11
gnarfacebut now it does occur to me that ipv6 could be a complication too after you brought up that you had to run "X -listen inet6" specifically04:11
sfoxthere's a manual page missing in Devuan04:13
sfoxreferenced in Xserver(1) there should be a Xsecurity(7)04:14
onefangTry netstat to see if X is on IPv4 or IPv6?04:14
sfoxis is definitely listening on v6 now04:15
gnarfacehmm, we're missing something here04:21
gnarfacemaybe in the xorg config04:22
gnarfaceah ha!04:26
gnarfacesfox: look in the file "/etc/X11/xinit/xserverrc"04:27
gnarface(or whatever the netbsd equivalent is)04:27
gnarfaceor hell, just look at the executed command line for X in the output of "ps aux"04:28
gnarfacehmm, no that's not all of the story though here... missing something else too...04:30
rrqsfox: Xsecurity man page comes in xorg-docs-core04:30
gnarfacei'm sure this used to work, but they seem to have placed several default stopgaps since then and i have only found one so far04:36
sfoxthanks04:40
rrqX authorisation may require the XAUTHORITY envirnment variable to be set for the client04:40
sfoxwe were able to get it working my manually generating an xcoookie for inet6 and then SCPing the .Xauthority over04:40
gnarfacecool04:41
sfoxgnarface, thanks for that file!04:41
rustyaxewhere should i put some early tasks for mkdiring some /var/log directories? i have a tmpfs on /var/log as / is going ro soon04:41
gnarfacesfox: there should be some way to disable the xauth thing too, but i'm struggling to find it, it wasn't on by default last time i did this without ssh... what's important is you got it working though04:42
gnarfacerustyaxe: you mean like somewhere in the startup scripts?04:43
rustyaxelooking like either mountall or checkroot-bootclean would be good spots04:45
rustyaxenot really seeing anywhere unlikely to get clobbered by dpkg unintentionally later04:46
onefang  /etc/rc.local or depending on which version you have installed /etc/boot.d/ which rc.local should run through all scripts in there.04:49
gnarface /etc/rc.local wouldn't get clobbered, but that's very last in the boot order, would that be soon enough?04:49
onefangHmmm, maybe not soon enough if it's being used to setup /var/log04:50
gnarfaceyou could always add your own init script, that shouldn't get clobbered, though the symlinks might not be so lucky04:51
onefangI keep my writable directories in a separate /media/DATA disk, with things symlinked there.  Including things like /var and /home04:52
sfoxyeah, now trying to lookup exactly what XDMCP does and how to set it up04:54
sfoxthanks for the help gnarface, onefang04:54
onefangYou are welcome.04:54
gnarfaceno problem, though i don't think i actually helped much04:56
rustyaxegnarface: rc.local would be a good bit too late as daemons will all be started by then.  probably just need to make another initscript and stuff it in between in the right spot04:56
sfoxhttps://tldp.org/HOWTO/Remote-X-Apps-6.html04:58
gnarfacethanks sfox, this has been a very educational exercise in realizing just how old i'm getting05:03
onefangAre you a greybeard yet gnarface?  B-)05:05
gnarfaceheh, oh yes. not all of it, but it's getting to be most of it05:05
n4dir anyone uses lightdm with autologin?08:32
n4diri edited the file, no autologin, i edited 3 lines.08:32
n4dirautologin{guest,user,timeout}. There were spaces, the web had the entry witout spaces08:33
n4dirautologin-guest = false;08:33
n4dirafter removing the spaces around =; still no autologin08:37
CueXXIIIwhere did the dash come from?08:40
n4dirwhich dash?08:42
CueXXIIIalso lightdm probably has a logfile in /var/log, or logs there to another file08:44
n4dirwhich dash?08:45
CueXXIIIthe one you pasted08:45
n4diri got no idea what you mean "where does it come from"08:45
CueXXIII"autologin{guest,user,timeout}" and "autologin-guest"08:46
n4diri tried to say that for all three lines per default there is a space around the =08:48
n4dirthe autologin-guest was the example how it looks like08:48
n4dirthe dash comes from the file08:48
CueXXIIIthe space probably was not the problem, did lightdm put somethin in a logfile?08:49
n4dirthe logfile says unknown option08:50
CueXXIIIhm, maybe the option was removed?08:52
CueXXIIIbut it still seems to be present in the source of lightdm 1.32.0-4devuan108:54
n4dirthe weird thing is that quite a few web-results got no space around =; the lightdm.conf file has them08:57
n4dirdidn't work either though. lol08:58
n4diri mean i assume if the config file has the spaces, then it wants them.09:01
CueXXIIIi think i had autologin running sometime ago, not sure which dm, though. but decided against it09:01
n4diryup. good choice09:02
n4dirback more than a decade, always something was broken for lightdm. I then gave up on it altogether09:03
onefangWhy not just run startx from a boot script?09:07
onefangAnd skip lxdm altogether.09:07
onefangEr lightdm.09:07
n4dironefang: i had the idea, but was not sure if cadence would automatically start jack audioserver if i autologin by other means09:07
n4dircould have tested it, but i am not really willing to spend too much time on this. Having in mind that probably no one will use the laptop anyway09:08
onefangI start qjackctl (and other things) from a login script, you could do something similar.09:08
n4diroh, and i didn't quicky find the autologin procedure for sysv09:08
onefangI have cadence installed, but haven't played with it much.09:09
n4diryes, i could do similar things. I assumed, wrongly, with lightdm this would just be a few seconds09:09
n4diri guess they will get over it having to enter username/passwd to log in09:10
onefangI use lightdm, but never tried autologin.09:10
n4diri already gave up on the idea. shutdown the laptop and put it in the bag, to carry it to them later09:11
n4dirand dang, it sure is heavy09:13
onefangYou are speaking to a man that spent a week last month carrying 30 kg packs around the city.  Define "heavy".  B-)09:14
n4dirheavy for a laptop09:14
CueXXIIIn4dir: hm, had a daedalus vm lying around; autologin-user works, with and without spaces around the =09:28
n4dirCueXXIII: that even makes it worse. Thanks for looking. No clue why it didn't work09:28
CueXXIIIdid you put the option in the right section of the config file?09:29
n4diri did a search for "auto" with vim in lightdm.conf. I only found the ones i mentioned and some pam stuff09:29
n4dirperhaps i didn't look close enough09:30
n4dirthe entry seems short enough to have been the right one09:30
CueXXIIIit should be in a seat section, since autologin is a seat option09:30
n4diroh. I did get some seatd messages during boot. I ignored them09:32
n4diras i don't even know what seat is09:32
CueXXIIIseatd is something different; seat in lightdm means one xsession instance. maybe with a local xserver, maybe with a remote one, or a virtual one (vnc, …)09:34
CueXXIIInot sure about seatd, it's one of these new inventions like logind09:34
n4dirCueXXIII: you have the session to be run set in lightdm.conf?09:34
n4diror just the lines with username and timeout?09:35
CueXXIIIi just uncommented autologin-user09:35
n4diryup, same for me.09:35
n4dirweird09:35
n4diri will just leave it as one of those reasons i don't use display-mangers09:36
CueXXIIIn4dir: my conofig: https://www.oetec.com/pastebin/plain/bvKCf6XP09:37
CueXXIII-o09:38
* n4dir looks09:38
n4dirCueXXIII: you seem to be the man. I didn't look closely, and you got it in Seat, as you said. Thanks09:38
n4dirnow i got to unpack the dang thing again. Then will tell you: yup, that worked (i hope09:39
CueXXIIIhm, is there a lightwight browser in devuan in which 90% of the web works?09:39
n4dirfalkon might be worth a try. It adds a lot of dependecies though09:40
n4dirfor me it works on most of the web. It starts with rather low ressource-usage, but it gets up later.09:41
n4diras i gave up on it, i assume it isn't too low in the long run09:41
n4dirbut i always liked it09:41
CueXXIIIuh, it pulls in a fishbowl of kde libs xD09:42
n4diri wouldn't care about them, but you also get a lot of entries in apps-menu (i don't use it anyway, but for the ones using the laptp: might confuse them)09:43
n4dir--no-install-recommends; didn't really help, iirc09:43
n4dirCueXXIII: as i have assumed, you are the man. It worked. Thanks a ton for looking into it and helping09:44
CueXXIIIyeah, i was wondering weather the documentation was outdated…09:46
n4diri would have never expected there is a second entry (a third if you add pam). My fault, assuming i would know more than i did09:47
n4dirthe warning should be in the docs though, i am probably not the first running in it09:47
CueXXIIIwhether09:47
n4dirnah, weather is great. I love it, and do it all the time09:48
n4dirof curse !09:48
CueXXIIIthere are sections in the config file, marked with [foo]09:48
CueXXIIIand with any config file, the section has to match09:49
n4dirstill i wonder what the other entry might be good for. But not enough to look closely09:51
CueXXIIIthe one above that? a description of the seat options, it even has a commented [Seat] at the top10:00
attemGood day!14:25

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