libera/#devuan/ Wednesday, 2021-04-28

ychaoucheHello #devuan12:40
ychaoucheIf I want to run a script at boot time, should I just call it from /etc/rc.local or is that a bad idea ?12:40
rrqshould be fine; make sure that rc.local doesn't return with failure though12:42
ychaouchethe comment inside rc.local says "This script is executed at the end of each multiuser runlevel."12:43
ychaoucheSo in theory there's a possibility that my script would be run more than once12:44
rrqif you change runlevel12:44
gnarfaceonly if you change runlevels manually12:44
gnarfaceeverything just uses runlevel 212:44
gnarfacerunlevel 3 now?12:45
ychaouchehow many multiuser runlevels are they anyway ?12:45
ychaoucheare there*12:45
gnarfacei don't think there's any distinction?12:45
gnarfacenot sure12:45
rrqman inittab12:45
* rrq oops wrong window12:46
ychaouche:p12:46
gnarfaceoh, there's 4 of them12:46
gnarface1 isn't, apparently12:46
GyrosGeier0 is shutdown, 1 is singleuser, 2-5 are multiuser, 6 is reboot12:47
jonadabTraditionally, 2 was multiuser without X11 logins (you could use startx...), 3 was multiuser with X11.15:44
jonadabAnd I guess 4 and 5 were for room for expansion, not sure.15:44
jonadabIn practice, I think most modern distributions only normally ever use runlevel 3, and reboot/shutdown.  Unless you trigger one of the other runlevels manually somehow.15:46
Tenkawaback in the old old days 5 was x15:47
jonadabOh, was it?  Ok.15:47
Tenkawa25 years ago15:47
jonadabI didn't start using Linux until 1998.15:47
jonadabSo I don't know the _early_ history.15:47
jonadabI do remember that in Debian 1.3, X11 wasn't on the main CD, you needed an additional CD, or remote repositories.15:48
Tenkawayeah... it was a mess15:49
jonadabAlso, that was the dselect era, which was terrible.  apt is so much better.15:50
Tenkawaindeed15:50
Tenkawawhat are they trying to do with startx btw?15:50
jonadabNow?  No idea.15:50
Tenkawaoh I thought someone in chaneel asked something I missed15:51
jonadabTraditionally, you could use startx to start an X11 GUI after you logged in.  As opposed to having X11 running already and logging in through it.15:51
jonadabI suppose that still works?15:51
jonadabHaven't tried it lately.15:51
Tenkawayeah... painful but it works15:51
TenkawaI like the ease of *dm :)15:52
jonadabIt was useful if you were having issues getting your XF86Config file right.15:52
Tenkawaor trying to get X -configure to produce a useable file15:53
Tenkawa(that got bad once AMD & NVIDIA came on the scene )15:54
jonadabOh, I had Matrox graphics cards back then.15:54
jonadabBut there could still be things I wanted to tweak, like trying to get a scrollmouse wheel working, or multiple resolutions for ctrl-alt-+ / ctrl-alt--15:55
TenkawaI started on Unix itself in 79... never even had a need for graphical terminal at that point15:55
jonadabThere are relatively few things you *need* a GUI for.  Photo editing is one.15:56
Tenkawaindeed15:56
jonadabBut it's kind of nice to have.15:56
jonadabEven if all you use it for is to run terminals.15:57
jonadabWell, terminals and a web browser, these days.15:57
GyrosGeierDebian never used any other runlevel than 216:00
GyrosGeierand I still log in on console and run "exec startx"16:01
GyrosGeierthat's a lot saner than allowing root logins on X1116:01
TenkawaGyrosGeier: and debian isnt the only os/linux out there16:02
Tenkawamany others use tradional sysvinit levels16:03
Tenkawaand actually you are wrong16:03
Tenkawaroot@OMENPC:/etc/rc3.d# ls -l | wc -l16:06
Tenkawa3116:06
Tenkawa/etc/os-release - PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"16:06
GyrosGeierdefault config in Debian is to install start/stop symlinks into all multiuser runlevels16:09
GyrosGeierbasically, so admins have a base for local customizations16:09
GyrosGeierso there is no difference between runlevels in packages16:10
TenkawaGyrosGeier: yes.... and if you want to get pedantic... it uses systemctl so these runlevels arent  used at all16:10
GyrosGeierunlike redhat, which installed xdm into runlevel 3, but not 2, and set 3 as default16:10
Tenkawalike I said though.. this isnt all distros16:10
Tenkawas/systemctlsyste,d16:11
Tenkawaer systemctl/systemd16:11
Tenkawacheers all.. impendending storm approaches... snow 3 days ago.. tstorms today... figures16:14
ham5urgIs it possible to boot up without GPU (headless) and pass the built-in GPU of the server towards a VM?18:41
ErRandirI think you would need to blacklist DRM in your hypervisor kernel, not start anything display manager and X server, and pass through the PCI device of the GPU into the VM.20:37
rwpham5urg, Yes.  Do a web search for "kvm gpu passthrough" and you will find many guides on how to do it.20:48
rwp(I have looked into it but so far have not done it myself yet.  But supposedly it works.)20:48
lts-There may be complications if it's the internal GPU though https://wiki.archlinux.org/index.php/PCI_passthrough_via_OVMF#Passing_the_boot_GPU_to_the_guest20:50
rwpI think it always needs to be a secondary gpu that is otherwise not touched by the host system.20:52
rwpI was trying to set up a VM to run an old game that I liked.  Thought gpu passthrough might be required.  But then found using the Cirrus emulation worked excellently and did not need it.20:53
rmwow wow exactly what I'm wrangling with today...20:55
rmI did not succeed with the primary GPU yet20:56
rmit appeared like setting "vfio-pci.ids=..." would allow the VFIO driver to grab the GPU early during boot https://wiki.archlinux.org/index.php/PCI_passthrough_via_OVMF#Binding_vfio-pci_via_device_ID20:59
rmbut now reading the previously posted link, it might be also needed to save and provide the VGA BIOS20:59
ham5urgrm, did you succeed to pass through the primary GPU?22:12
rmnot yet, I did not reboot to try the vfio-pci.ids= yet22:12
rmand just now downloaded the BIOS for my card and prepared that22:13
rmdid not reboot for that either22:13
rmtry and tell me how it goes :)22:13
rmfirst I have to figure out how to make the secondary GPU to be the console GPU for host22:13
rmradeonfb failed to load on secondary GPU on previous attempts22:14
ham5urgrm, why you need the secondary gpu? Try without any GPU. Remotely22:14
rmI like being able to still access the host console directly22:14
ham5urgI use a usb-serial device for that22:15
rmit wasn't a big deal previously to run an old PCI video card as my primary "GPU"22:16
rmso I upgraded literally today, and now the console GPU wants an entire PCI Express slot22:16
ham5urgrm, AFAIK, you swith gpu0 and gpu1 via bios/efi22:16
rmso yeah I might reconsider how necessary that is, actually22:16
ham5urgswitch*22:17
rmI don't remember seeing there a literal option to do that22:17
rmpeople say on forums this is sometimes swapped as a side effect via disabling CSM22:17
ham5urgI remember one for dell computer, but won't bet for my actual machine.22:17
rmthere could be, but only if "gpu0" would be the onboard one22:18
rmnot for when you have multiple ones in PCI-E22:18
ham5urgWhy not pass the secondary? You need an Intel GPU inside VM?22:19
rmIf I want to keep my console-only old Radeon X300SE GPU as primary, that means keeping it in the first PCI-E x16 slot, and that throws both of the main slots into x8/x822:20
rmseems like a waste22:21

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