mexon | Hello all, I was wondering if anyone can recommend somewhere where I can find a comprehensive guide on sysvinit. I've searched around and all I can find are snippets of info here and there. I'm looking for an old-school beginning to end book/tutorial sort of thing about the init system. Thanks | 02:25 |
---|---|---|
gnarface | mexon: if they haven't taken it down, the wiki pages for debian wheezy and earlier on the matter were the simplest condensation of it i recall seeing | 02:29 |
gnarface | mexon: it's actually not as complex of a thing as it seems | 02:29 |
gnarface | mexon: (devuan hasn't really changed this part) | 02:30 |
mexon | Thanks, maybe I'll check on archive.org.. I get that its not uber complex, but I like understanding things fully not just partially | 02:30 |
mexon | For example, I understand about the run-levels what I don't get is what determines the order in which the scripts are executed.. | 02:32 |
gnarface | mexon: you want a reference for the "LSB headers" | 02:34 |
gnarface | mexon: (they look like comments, but there's a block of active logic amongst the header comments of most these init scripts) | 02:34 |
gnarface | mexon: second layer, overrides, are the symlinks in the rc?.d directories (somewhat intuitively named with "K" and "S" first-letters for start/kill, and numeric order identifiers, but the LSB headers take precedent if present) | 02:35 |
gnarface | mexon: (try this: ls -l /etc/rc?.d/) | 02:35 |
mexon | right!, gotcha | 02:36 |
gnarface | mexon: there's a tool called "update-rc.d" (check "man update-rc.d") built-in for automating manipulating the shell scripts, but i don't know of any good tools for manipulating the LSB headers in an automated fashion. they were all meant to be hand-managed | 02:37 |
gnarface | mexon: *symlinks i mean. update-rc.d just manipulates those /etc/rc?.d/ symlinks | 02:37 |
mexon | okay, really appreciate the info, I have a starting point to go from now.. | 02:38 |
gnarface | mexon: and each symlink just points to a script in /etc/init.d/ that has an obligation to have certain default behaviors when responding to "start" and "stop" as command-line parameters, ec | 02:38 |
gnarface | mexon: and no problem | 02:38 |
gnarface | mexon: there's not much else to it than just what i've mentioned. there's an /etc/inittab that runs first. | 02:39 |
n4dir | wondering about /etc/init.d/.depend.boot. But not that much | 02:39 |
mexon | I came into linux during the transition.. Well I was there before but still very new to it all. Now I realise that I have a whole gap of knowledge here and so I'm filling in the blanks. So this has really been helpful. | 02:40 |
gnarface | n4dir: interesting, haven't noticed those before. i have to imagine it's to do with package management? | 02:40 |
n4dir | well, such sure is beyond me, but looking at it it might be a reasonable order to start what when | 02:41 |
gnarface | n4dir: i'm not sure but those might be package preinst/postinst scripts and such | 02:41 |
n4dir | I checked inittab, then manpages, and then ran in said file i never heard of before | 02:41 |
n4dir | i usually start or stop with /etc/init.d/stuff.d start/stop, and for permanent just use sysv-rc-conf | 02:42 |
gnarface | no they're not package preinst/postinst scripts actually | 02:42 |
n4dir | the question asked by mexon sure is interesting, else i wouldn't have checked if i could figure out. But usually it just works via magic | 02:43 |
gnarface | although it might just be cached data of what the LSB headers are implying, now that i'm looking at it closer | 02:43 |
n4dir | at least something where i think: if i had the interest, i *could* understand it. That is not the case for systemd | 02:43 |
fsmithred | I saved a copy of Debian Adminstrator's Handbook for Wheezy: https://www.ibiblio.org/refracta/docs/debian-handbook-wheezy.pdf | 03:05 |
gnarface | oh neat | 03:07 |
gnarface | he's gone already though | 03:07 |
gnarface | bummer | 03:07 |
fsmithred | yeah, too bad | 03:08 |
EHeM | I'll have to say, some of the issues `systemd` is pointing towards *are* issues, though `systemd` is the wrong solution (yes, rather a lot of things disolve in acids or bases). | 03:46 |
EHeM | One thing I would like to do to traditional `init`, add the ability to include files/directories into inittab. | 03:48 |
EHeM | Then if you desired, when you plugged in a USB-serial cable, `eudev` could add a /run/inittab.d/ttyUSB0.getty file which simply added a respawning `getty` process (perhaps a silly example, but I needed an example). | 03:50 |
MinceR | sounds like what xinetd did to inetd :> | 03:53 |
MinceR | (except its files were managed by the package manager) | 03:54 |
EHeM | MinceR: I'm pretty sure xinetd had rather different goals; here I'm simply pointing out that `systemd` does have some points, even if the implementation was crap. | 04:19 |
MinceR | :> | 04:27 |
* enyc meows | 05:40 | |
* MinceR meows | 05:41 | |
EHeM | gnarface: I should have actually directly responded to what you stated. | 06:22 |
EHeM | gnarface: SuSE has gone 100% U-Boot/GRUB/UEFI, a consistent platform means they can target many different types of hardware while merely changing the lowest layer. | 06:23 |
EHeM | https://www.suse.com/media/article/UEFI_on_Top_of_U-Boot.pdf | 06:24 |
unixbsd | After installing apt-get install kde-standard on a clean system, there is no wireless working. Right click on wifi, enter key wpa, will result in prompot of root pass. | 09:18 |
unixbsd | Once you enter the root pass, it asks again,,.... in a loop | 09:18 |
unixbsd | So kde has no wireless working on devuan. debootstrap the base, apt-get install kde-standard, gives no wifi. | 09:19 |
gnarface | missing a network management utility not sure why or which one, but i'm sure it can be installed manually | 09:37 |
gnarface | kde might use network-manager | 09:37 |
gnarface | hmmm, or maybe not | 09:38 |
gnarface | maybe it uses something else | 09:38 |
gnarface | i always forget | 09:39 |
Deknos | is anyone aware, if i can set a device with nmcli in unmanaged mode? i only see it in the network-manager config file | 09:47 |
gnarface | i don't know, the man page doesn't say? | 09:57 |
gnarface | you should be able to with ifconfig or iwconfig, if you mean what i think | 09:58 |
Deknos | nmcli manages dhcp requests and stuff like that. ifconfig and iwconfig do not care about that, do they? | 10:06 |
gnarface | i wasn't aware unmanaged mode had anything to do with dhcp | 10:14 |
gnarface | you don't mean wireless ad-hoc networking? | 10:14 |
gnarface | the dhcp client is what actually handls dhcp requests | 10:17 |
gnarface | wpasupplicant has something to do with it all too, probably | 10:17 |
gnarface | (if this is wireless) | 10:17 |
kreyren | howddya get audio jack working on devuan chimaera? x.x | 18:01 |
fsmithred | kreyren, do you mean the physical mini-jack or do you mean jackd the sound server? | 18:03 |
kreyren | i mean the 3.3mm jack connector on the size of my notebook >.> | 18:05 |
kreyren | apparently i need alsa things O.o | 18:05 |
fsmithred | if pulseaudio is installed... | 18:06 |
fsmithred | oh | 18:06 |
kreyren | pulseaudio is installed | 18:06 |
fsmithred | you do need alsa-utils installed | 18:06 |
kreyren | i was using it for my logitech G533 that broke so i am using the backup x.x | 18:06 |
* kreyren is installing alsa-utils | 18:06 | |
fsmithred | see /etc/pulse/something 00-autospawn-something | 18:06 |
fsmithred | or look at beowulf release notes | 18:06 |
fsmithred | without systemd, pulseaudio won't start by default | 18:07 |
fsmithred | you have to comment or uncomment one line in the config file. It tells you in the comments. | 18:07 |
* kreyren_ got tor dc | 18:08 | |
kreyren_ | fsmithred, alsa-utils installed | 18:08 |
kreyren_ | kreyren@leonid:~$ sudo alsactl init |& ix | 18:09 |
kreyren_ | http://ix.io/2EYq | 18:09 |
kreyren_ | and i don't seem them in pavucontrol x.x | 18:09 |
* kreyren_ is slowly loosing him mind as his previous headphones have only one working reproductor~ | 18:12 | |
fsmithred | aplay -l | 18:18 |
fsmithred | which card is first? | 18:18 |
fsmithred | is pulseaudio actually running and does pavucontrol run correctly, or is it giving you an error message or hanging? | 18:18 |
kreyren_ | kreyren@leonid:~$ aplay -l |& ix | 18:39 |
kreyren_ | http://ix.io/2EYK | 18:39 |
kreyren_ | fsmithred, ^ | 18:39 |
kreyren_ | pulseaudio is running | 18:39 |
kreyren_ | pavucontrol was reliable so far in terms of G533 and they are working on that | 18:39 |
kreyren_ | i don't see any errors | 18:39 |
kreyren_ | ah works now! | 18:41 |
kreyren_ | thanku fsmithred <3 | 18:41 |
clort | bring patience to linux sound | 18:41 |
kreyren_ | it's so nice to hear from both ears again~ | 18:41 |
Soltis | Sidegraded Debian 10 to Ceres; no special config aside from that - cron is not emailing root or anywhere else when jobs fail. | 19:00 |
Wafficus | Hi there, I have a question about adding a user to the 'sudo' list. I installed the 'sudo' command through 'apt' on Devuan, and I did: usermod -aG sudo sam | 19:06 |
Wafficus | yet when I'm present as the 'sam' user, its still saying: 'sam is not in the sudoers file. This incident will be reported' | 19:06 |
Wafficus | do I have to reboot the machine for the 'sudo' group changes to take into effect? | 19:06 |
n4dir | log out and back in, iirc | 19:07 |
gnarface | Wafficus: i don't think that sudoers line is uncommented in the default sudo config file. you should double check. | 19:09 |
gnarface | Wafficus: but in my memory i was pretty sure debian leaves that commented-out in the stock config | 19:09 |
Wafficus | yeah I uncommented that section in the /etc/sudoers as well | 19:10 |
Wafficus | but I just restarted and will see if it took into effect | 19:10 |
Wafficus | get the feeling a reboot is necessary | 19:10 |
gnarface | no, but logging out all the way would be | 19:10 |
gnarface | and if you're using a graphical login manager, it might need to be restarted, but not the whole kernel | 19:10 |
Wafficus | I rebooted anyway | 19:11 |
gnarface | sudoers operates in userspace | 19:11 |
Wafficus | but still same thing happens | 19:11 |
gnarface | shouldn't hurt anything either | 19:11 |
Wafficus | more so | 19:11 |
Wafficus | poweroff doesn't work either even as root | 19:11 |
gnarface | hmmm | 19:11 |
Wafficus | I literally have to go to /sbin/shutdown -r now | 19:11 |
Wafficus | to do that action | 19:11 |
Wafficus | that's another weird quirk I noticed | 19:11 |
gnarface | can you paste your sudoers file? | 19:11 |
fsmithred | elogind/libpam-elogind? | 19:11 |
Wafficus | yeah sure one sec | 19:11 |
gnarface | seems like you might be missing something though, yea | 19:11 |
gnarface | the thing about poweroff buttons not working sounds like a permissions backend package thing | 19:12 |
fsmithred | and/or policykit-1-gnome (for shutdown buttons) | 19:12 |
Wafficus | wait weird, I had an /etc/sudoers file before... | 19:12 |
fsmithred | buttons/menu | 19:12 |
Wafficus | BEFORE I did the usermod command | 19:12 |
Wafficus | now when I go to /etc | 19:12 |
Wafficus | the sudoers file is blank :/ | 19:12 |
Wafficus | what in the heck | 19:12 |
Wafficus | does that usermod command overwrite the /etc/sudoers file when it adds a person to the group? | 19:13 |
fsmithred | no way would usermod mess with sudoers | 19:14 |
Wafficus | hmm it says /etc/sudoers is not readable | 19:14 |
Wafficus | idk why that is | 19:14 |
Wafficus | when I originally opened it it said it was readonly in Vim | 19:14 |
Wafficus | so I did :w! to save my changes as root anyway before | 19:14 |
fsmithred | you did 'visudo'? | 19:14 |
Wafficus | now its corrupted i'm guessing, not sure why | 19:14 |
Wafficus | so | 19:14 |
Wafficus | *no | 19:14 |
fsmithred | that's why read-only | 19:14 |
gnarface | Wafficus: for the future, there are several good reasons why they say never use anything other than visudo. i happen to know you can safely use other editors for the visudo command besides vi, but do use it. | 19:15 |
fsmithred | you can also put your own sudo configs in a file in /etc/sudoers.d/ | 19:15 |
fsmithred | and you don't need to use visudo for those files | 19:15 |
gnarface | yea or this^ | 19:15 |
gnarface | unless my my memory is wrong, visudo will obey the $EDITOR environment variable | 19:16 |
gnarface | (i like to switch mg for vi) | 19:16 |
gnarface | (in general for EDITOR - i typically don't use sudo though) | 19:17 |
Wafficus | so in a case like this... | 19:20 |
Wafficus | do I have to reinstall Devuan to get back my /etc/sudoers file | 19:21 |
Wafficus | ? | 19:21 |
fsmithred | just reinstall sudo | 19:22 |
Wafficus | ok I uninstalled sudo via apt | 19:23 |
Wafficus | and reinstalled it | 19:23 |
Wafficus | though 'visudo: command not found' | 19:23 |
Wafficus | do you also have to install the 'visudo' command as well? | 19:23 |
gnarface | probably | 19:25 |
gnarface | also, when you uninstall stuff, add "--purge" | 19:25 |
gnarface | (that way it'll blast out conflicting/old configs) | 19:25 |
Wafficus | yeah even visudo isn't still found when I reinstall after purging | 19:27 |
Wafficus | I think I'll just reinstall Devuan | 19:27 |
fsmithred | that's overkill | 19:27 |
Wafficus | visudo comes by default with sudo | 19:27 |
gnarface | well, only you know at this point if you've done enough damage to it to really need a full reinstall | 19:27 |
fsmithred | I've never had to install it separately | 19:27 |
fsmithred | it=visudo | 19:27 |
gnarface | you shouldn't need to reinstall the whole OS just because you botched your sudoers file though. that is a sign of something much bigger wrong with the install, some prior damage not yet covered by this conversation | 19:28 |
gnarface | (usually it means you mixed repos you shouldn't have) | 19:28 |
gnarface | (though sometimes this happens on unstable or testing occasionally just due to upstream fuckups) | 19:29 |
Wafficus | honestly | 19:29 |
Wafficus | I just want the Devuan box to be up and running ASAP so I can get my Gentoo VM installed again and to tweak that | 19:29 |
Wafficus | so yeah I'll just reinstall it, will take up to 5 mins tops | 19:29 |
Wafficus | I don't have time to spend all day just to fix sudoers file that just won't fix itself at this point | 19:30 |
Wafficus | I don't have any data on that drive anyway since its just a VM type drive so yeah, will see if a reinstall works instead | 19:30 |
gnarface | as long as you got the bandwidth and you're just needing a minimal install, i have to admit it's probably faster than figuring out what you did. but at some point you're gonna want to figure out how to stop doing it again. | 19:30 |
gnarface | i'd estimate the fastest install time to be around 20 minutes though | 19:30 |
gnarface | 5 might be a bit unrealistic | 19:31 |
gnarface | don't fool yourself | 19:31 |
n4dir | I'd say one cigarette, preparing a coffee and visiting the ladies room is enough time | 19:31 |
n4dir | hitting the enter key in between though | 19:31 |
Wafficus | if you knew how minimal I keep my setups | 19:32 |
Wafficus | literally only use AwesomeWM and Openbox | 19:33 |
n4dir | most do that | 19:33 |
Wafficus | after I get it installed, its just a matter of doing a quick apt install with all of the components in my install guide | 19:33 |
Wafficus | not hard at all | 19:33 |
Wafficus | but yeah I guess, don't edit the stupid (F#$(!) /etc/sudoers file is what I learned | 19:33 |
Wafficus | not a prob | 19:33 |
Wafficus | will just do visudo and hopefully that works instead | 19:33 |
Wafficus | rather I will probably just do | 19:34 |
n4dir | one idea might be to backkup all of /etc after the setup is finished | 19:34 |
Wafficus | usermod -aG sudo sam | 19:34 |
Wafficus | maybe, but again, I just wanna get back to working on my Gentoo VM to move that forward | 19:34 |
Wafficus | so that I can live in Gentoo and move over in 6 months | 19:34 |
Wafficus | I only use Devuan as the hub for VM's on that drive anyway | 19:34 |
Wafficus | via kvm + virt-manager * | 19:34 |
gnarface | really, back up /etc if nothing else | 19:36 |
gnarface | it takes up almost no space | 19:36 |
gnarface | that'll save your ass so many times | 19:37 |
Wafficus | gotcha, will do later on my external HDD | 19:38 |
n4dir | i ususally put it in /root . Forgot it for this install, checked, and it's 8.8 MB | 19:40 |
n4dir | why /root ? Well: as there is nothing else, no need to hunt for it :-) | 19:40 |
fsmithred | 10 minute install from live-iso | 19:41 |
n4dir | ha ha. And that is even long, i guess | 19:41 |
fsmithred | no idea how you do a 5-minute install | 19:41 |
gnarface | not bad | 19:41 |
n4dir | I remove a bit beofre i install | 19:41 |
gnarface | 5-minute install, if possible, would require a local mirror and a preseeding file | 19:41 |
r3boot | 23 | 19:42 |
fsmithred | I should play with overlays sometime and figure out how to do a minimal or full install from the same iso | 19:42 |
n4dir | overlay? | 19:42 |
gnarface | n4dir: live images use mask overlays in the filesystem | 19:44 |
gnarface | n4dir: conceptually it's like a mask overlay in photoshop, but you know... with files | 19:44 |
gnarface | metaphorically it's like a mask | 19:44 |
Wafficus | base install is 5 mins tops, idk what you guys are talking about | 19:45 |
Wafficus | its the min install ISO though | 19:45 |
n4dir | gnarface: thanks a lot for trying, but it looks such is above me | 19:45 |
gnarface | Wafficus: you might just have a really fast machine? | 19:45 |
gnarface | n4dir: the implementation is still above me, too, but it's a way to transparently combine multiple partial installs (some of them being read-only) into something that looks like a single complete install to the kernel | 19:46 |
n4dir | that sounds even worse than metaphysics. :-) | 19:47 |
fsmithred | n4dir, you know how a persistent partition in a live-usb has the structure of the whole filesystem but only contains the files that have been changed? | 19:47 |
n4dir | oh, yeah, kinda. | 19:47 |
fsmithred | it overlays those changed files on top of the read-only filesystem | 19:47 |
n4dir | ok. I think i understand | 19:48 |
fsmithred | so get to boot with your changed settings | 19:48 |
fsmithred | the original files are invisible, covered by the edited ones | 19:48 |
fsmithred | my thought would be to have one overlay for a minimal system and another that adds the desktop system | 19:48 |
n4dir | uhum. | 19:49 |
fsmithred | boot the one you want to use or install | 19:49 |
gnarface | i think it's a good idea | 19:49 |
fsmithred | the instaler just installs whatever is running | 19:49 |
gnarface | ooh, i wonder if you could tie the layers to the runlevels | 19:49 |
gnarface | how neat would that be? | 19:49 |
gnarface | get a whole new rootfs for every runlevel | 19:49 |
fsmithred | not sure if that would work, but it might | 19:49 |
gnarface | i'm not aware of the load implications of swtiching on the fly like that | 19:50 |
gnarface | seems like it could be a neat trick if it wasn't slow though | 19:50 |
fsmithred | normally you control persistent partition mounts with live-config options | 19:50 |
fsmithred | or live-boot options | 19:50 |
fsmithred | and whatever you put in persistence.conf | 19:50 |
fsmithred | there are some advanced things you can do with it, but I've never tried them | 19:51 |
n4dir | may i ask the following: what would be the advantage over either stay in TTY, or startx a WM, or use a full DE? | 19:51 |
fsmithred | personal preference | 19:51 |
gnarface | well | 19:51 |
gnarface | those options also incrementally decrease in security | 19:51 |
fsmithred | lol, yeah | 19:52 |
gnarface | but most people would consider that secondary for desktop use | 19:52 |
Wafficus | ok | 19:52 |
Wafficus | now we're back in | 19:52 |
Wafficus | in the TTY prompt | 19:52 |
Wafficus | so yeah about 5 to 10 mins | 19:52 |
Wafficus | fine I was maybe boasting earlier ;) | 19:52 |
gnarface | not bad | 19:52 |
fsmithred | netinstall? | 19:52 |
Wafficus | yeah | 19:52 |
gnarface | i got old hardware around here so some stuff goes slower | 19:53 |
Wafficus | I'll install the AwesomeWM related stuff, login manager, and basic stuff I like | 19:53 |
Wafficus | then I'll pursue the sudo thing again | 19:53 |
fsmithred | are you doing some fine-grained sudo or just bazooka sudo? | 19:54 |
Wafficus | pure basics | 19:55 |
Wafficus | that's it | 19:55 |
Wafficus | just wanna elevate to root as a super user | 19:56 |
n4dir | why? | 19:56 |
Wafficus | because... basic things like sudo poweroff are nice to use... | 19:57 |
fsmithred | you can set sudo for just selected commands. Safer that way. | 19:58 |
n4dir | i do poweroff as root all the time | 19:58 |
Wafficus | even after reinstalling sudo... | 19:58 |
Wafficus | after a reinstall of Devuan... | 19:58 |
Wafficus | -bash: visudo: command not found | 19:58 |
fsmithred | on most of my systems I have shutdown and reboot set for sudo without password | 19:58 |
Wafficus | ... :/ why | 19:58 |
fsmithred | are you root? | 19:59 |
Wafficus | yeah | 19:59 |
Wafficus | did this as root, and as the 'sam' user | 19:59 |
fsmithred | and sudo is installed? | 19:59 |
fsmithred | fuck. It's in /usr/sbin | 19:59 |
fsmithred | you don't have root's path because you used su instead of 'su -' | 19:59 |
fsmithred | or give the full path | 20:00 |
fsmithred | what a fucking stupid decision that was | 20:00 |
fsmithred | sorry | 20:00 |
miskatonic | a change since buster | 20:00 |
n4dir | a cancer since buster. i'd say | 20:00 |
fsmithred | I'm just tired of having to tell EVERYONE about it | 20:00 |
miskatonic | until stretch, su behave like su - today | 20:00 |
* gnarface always used "su -" anyway, to get himself in the habit, because he foresaw this would one day happen to everyone else | 20:00 | |
fsmithred | su got moved from the shadow package to util-linux | 20:01 |
Wafficus | ah su - | 20:01 |
Wafficus | hmm interesting | 20:01 |
Wafficus | so... | 20:01 |
* gnarface is getting really tired of that feeling, by the way | 20:01 | |
Wafficus | should I do su - | 20:01 |
Wafficus | then visudo? | 20:01 |
Wafficus | or go straight to /usr/sbin | 20:01 |
fsmithred | yeah, that'll work | 20:01 |
fsmithred | either | 20:01 |
Wafficus | ah you're right | 20:01 |
Wafficus | now visudo works | 20:01 |
Wafficus | :/ \: | 20:01 |
Wafficus | lol | 20:01 |
fsmithred | if you want su to revert to the old behavior... | 20:01 |
gnarface | Wafficus: without the "-" you only change users, you keep your old user's entire environment. if you think about it, that should be the default behavior, but some decisions made by committee you know... | 20:02 |
Wafficus | so in this case | 20:02 |
fsmithred | echo 'ALWAYS_SET_PATH yes' > /etc/default/su | 20:02 |
n4dir | he wants to remove su altogehter | 20:02 |
Wafficus | the %sudo ALL=(ALL:ALL) ALL is already uncommented | 20:02 |
Wafficus | so do I just save in Nano and quit at this moment? | 20:02 |
miskatonic | who wants to remove su altogether? Torvalds? | 20:02 |
n4dir | i thought you can pick that during installation, btw | 20:02 |
fsmithred | if you put yourself in the sudo group, you can use sudo for all commands | 20:02 |
n4dir | miskatonic: Wafficus only wants sudo. | 20:02 |
fsmithred | without editing sudoers | 20:03 |
Wafficus | well | 20:03 |
Wafficus | I'm already doing visudo | 20:03 |
Wafficus | so we're already editing some form of it | 20:03 |
fsmithred | do you want all commands or just shutdown/reboot? | 20:03 |
Wafficus | ^ my latest comment above applies, should I just save the file that opened in visudo if its already uncommented the correct line? | 20:03 |
Wafficus | all commands honestly | 20:03 |
fsmithred | yeah, exit | 20:03 |
Wafficus | save and exit | 20:03 |
fsmithred | you didn't make any changes | 20:03 |
miskatonic | visudo can be configured to use nano | 20:03 |
Wafficus | or just exit? | 20:03 |
Wafficus | ah gotcha | 20:03 |
Wafficus | ok | 20:03 |
gnarface | Wafficus: yes save & exit, it will do the right thing with the tmp file if you launched it with visudo | 20:03 |
fsmithred | adduser sam sudo | 20:04 |
fsmithred | logout/login | 20:04 |
gnarface | Wafficus: i assume it's using nano instead of vi because you messed with $EDITOR, alternatives, or you just removed all other editors? | 20:04 |
fsmithred | user has to log out and in, not just root | 20:04 |
Wafficus | no, its just the default editor | 20:04 |
Wafficus | haven't added any of my dot files at all yet | 20:04 |
gnarface | should work | 20:04 |
gnarface | you should see it actually saving to a tmp file but then something else moves the temp file for you and fixes permissions | 20:05 |
Wafficus | so | 20:05 |
Wafficus | i didn't make any changes | 20:05 |
Wafficus | after I did visudo as root | 20:06 |
Wafficus | I logged out technically via tty prompt | 20:06 |
Wafficus | logged back in as sam | 20:06 |
fsmithred | sudo blkid | 20:06 |
Wafficus | I then became root and did: usermod -aG sudo sam | 20:06 |
n4dir | oh boy. | 20:06 |
fsmithred | ok | 20:06 |
gnarface | then log out again | 20:06 |
gnarface | wait | 20:06 |
gnarface | yea | 20:06 |
fsmithred | yeah | 20:06 |
Wafficus | ahah | 20:07 |
Wafficus | that worked after logging out the second time | 20:07 |
fsmithred | yup | 20:07 |
Wafficus | phew, the old tried and true way still works | 20:07 |
Wafficus | but yeah 'sudo -' is noted | 20:07 |
fsmithred | no | 20:07 |
fsmithred | su - | 20:07 |
Wafficus | rather | 20:07 |
Wafficus | yeah su - | 20:07 |
Wafficus | sorry | 20:07 |
gnarface | sudo su - | 20:07 |
gnarface | :-p | 20:07 |
fsmithred | lol | 20:07 |
fsmithred | I like sudo -i | 20:08 |
n4dir | you sure you are ready for Gentoe? | 20:08 |
Wafficus | I did it before | 20:08 |
Wafficus | over 2 or 3 weekends of attempts | 20:08 |
Wafficus | I make install guides to make it easy | 20:08 |
Wafficus | so yeah idk, but I wanted to give it a shot | 20:08 |
Wafficus | though to be totally honest | 20:08 |
Wafficus | it was compiling something from source, and that same SSD drive went into read only mode last weekend | 20:08 |
Wafficus | so... yeah if it does the same BS again, I'll just try FreeBSD instead since that drive might be tempermental | 20:09 |
gnarface | got enough ram? maybe just build stuff in a ramdisk | 20:09 |
Wafficus | thought hardware =/ software so yeah, different things, but its still enough to be a time waster | 20:09 |
Wafficus | 16 gigs of ram | 20:09 |
Wafficus | i7 | 20:09 |
Wafficus | this PC is ok lol | 20:09 |
gnarface | should be enough for most stuff | 20:09 |
gnarface | should be enough to build the kernel but not arm efl hehe | 20:09 |
Wafficus | yeah I'm going for a configured kernel this attempt | 20:10 |
Wafficus | more so because that kernel menu is a hell hole | 20:10 |
Wafficus | I have never seen something so unorganized in my entire lifetime | 20:10 |
Wafficus | and yes, I tried the "search" and it doesn't work | 20:10 |
gnarface | it has been getting worse as more hardware vendors are contributing | 20:10 |
Wafficus | like the instructions are ok, but trying to dive into the sub menus in that ncurses menu is like the most frustrating thing on earth | 20:10 |
gnarface | the open source guys usually follow the established patterns, but commercial vendors like to ram their code in like a derailed freight train | 20:11 |
gnarface | linus is just one guy | 20:11 |
gnarface | what the real key is, is just recogizing what you're not using, and disabling it all | 20:12 |
gnarface | but the time that takes for one guy to do starting from a vanilla kernel, has in the past decade has escalated from 8 hours to 2 days | 20:12 |
n4dir | nothing beats the fun of having to recompile the kernel for 5 times cause 5 times you forgot something | 20:13 |
gnarface | yea | 20:13 |
gnarface | but computers have gotten WAY faster at it, so that's good at least | 20:13 |
n4dir | i guess if you really do it it gets ok, but it sure ain't my thing | 20:13 |
gnarface | we're getting offtopic now | 20:14 |
gnarface | but anyway, yea i guess the moral is, log out after you change groups | 20:14 |
gnarface | hehe | 20:14 |
gnarface | and use visudo | 20:14 |
Wafficus | how would I enable libvirtd on Devuan? | 20:37 |
Wafficus | * since I know it doesn't use systemctl * | 20:37 |
n4dir | sysv-rc-conf | 20:37 |
Wafficus | i'm using openrc | 20:37 |
Wafficus | * | 20:37 |
n4dir | oh. | 20:37 |
miskatonic | openrc as pid1 or only as daemon supervisor? | 20:38 |
Wafficus | I checked the openrc man page | 20:38 |
Wafficus | I'm guessing 'sysinit' is what I want | 20:39 |
Wafficus | to enable a specific service? | 20:39 |
miskatonic | something like rc-update add virtd sysinit ? | 20:41 |
Wafficus | that's teh weird thing | 20:41 |
Wafficus | I tried that | 20:41 |
Wafficus | aka: 'rc-update add libvirtd' | 20:41 |
Wafficus | but it says: "bash: rc-update: command not found" | 20:42 |
Wafficus | even though there's a man page for rc-update... | 20:42 |
miskatonic | /sbin/rc-update add virtd sysinit ? | 20:42 |
Wafficus | thanks | 20:43 |
Wafficus | why are basic commands in sbin not being registered | 20:44 |
Wafficus | that's so weird | 20:44 |
miskatonic | did you use su without a - ? | 20:44 |
Wafficus | that seemed to have started libvirtd fine since it gave a green x in terminal aka: "x service libvirtd added to runlevel sysinit' | 20:44 |
Wafficus | after I did: sudo ./rc-update add libvirtd sysinit (after cd'ing into the /sbin directory) | 20:44 |
Wafficus | miskatonic: I just did sudo | 20:45 |
Wafficus | * rather, the command above | 20:45 |
miskatonic | /sbin/* is only in the path for superuser. Sudo uses the environment of the one issuing the command, not root's | 20:47 |
Wafficus | regarding openrc | 20:48 |
Wafficus | how do I actually "start" a service like libvirtd | 20:48 |
Wafficus | I tried openrc-run but that doesn't seem to do it | 20:48 |
Wafficus | aka after I'm in /sbin | 20:48 |
Wafficus | openrc-run libvirtd | 20:48 |
Wafficus | got it | 20:50 |
fsmithred | does the service command work with openrc? | 20:50 |
Wafficus | its ./rc-service libvirtd start | 20:50 |
Wafficus | it was already started when it was added though so it should be fine | 20:50 |
miskatonic | also: rc-status to see which daemons are running at which runlevel | 20:51 |
* clort points to his Miskatonic University degree on the wall o/ | 20:53 | |
Wafficus | what's interesting is that there doesn't appear to be a 'libvirtd' group present though | 20:54 |
Wafficus | I tried doing: sudo usermod -G libvirtd -a sam | 20:54 |
Wafficus | but yeah no 'libvirtd' group was found | 20:55 |
Wafficus | ah its "libvirt" as the name of the group, got it | 20:56 |
miskatonic | the research team of miskatonic university is now examinating the trail of devastation caused by the systemdemon monster and its creator, Dr. Frankenpoettering | 21:01 |
clort | shh, the hills have eyes | 21:04 |
jelly | the hills are ALIVE | 21:06 |
systemdlete | I will try it on my beowulf hardware to see if it is better supported | 21:55 |
systemdlete | (sorry, I may have missed some messages) | 21:55 |
phidoux | greetings any one here familiar with pulseaudio i am having issues i upgraded to chimaera and pulseaudio was able to provide analog stereo duplex for my Audigy2 sound card but now its not i can use apulse but because things keep fighting over the microphone some applications keep losing it making it hard to communicate in places like discord | 21:58 |
fsmithred | phidoux, someone else came here with PA problems in chimaera, and he claimed that I helped him, but I have no idea what I did. | 22:02 |
fsmithred | Discussion is about 1/5 of the way down this page: http://maemo.cloud-7.de/irclogs/freenode/_devuan/_devuan.2020-11-21.log.html | 22:02 |
fsmithred | with kreyren and me | 22:03 |
phidoux | the issue is getting analog input and output at the same time | 22:07 |
phidoux | normaly called analog stereo duplex | 22:08 |
phidoux | but somthing is wrong with chimaera's configuration as its not showing up | 22:08 |
fsmithred | cat you see all your audio devices in pavucontrol? | 22:09 |
fsmithred | cat/can | 22:09 |
phidoux | i use pulsemixer on the terminal and yes i get the same output from pavucontrol | 22:10 |
phidoux | upgraded to chimaera for better suport with my amd rtx580 using the newer kernels | 22:11 |
fsmithred | I'm about to install PA on my chimaera to see what it does | 22:12 |
fsmithred | what's in /etc/pulse/client.conf.d/? | 22:13 |
fsmithred | is the 00-autospawn file there or is it 01-enable-autospawn? | 22:14 |
phidoux | 01-enable-autospawn.conf | 22:14 |
phidoux | with autospawn=yes | 22:14 |
fsmithred | ok, that's what I have. I was thinking maybe the old config was in the way. | 22:14 |
fsmithred | I've got it in the last tab. Profile: Analog Stereo Duplex | 22:18 |
phidoux | yes | 22:18 |
phidoux | the problem is its not showing up for my card | 22:18 |
phidoux | https://pastebin.com/VLEA1qAc | 22:19 |
phidoux | and it did in beowulf | 22:20 |
phidoux | right now i can only have one input or output but not input and output | 22:20 |
phidoux | basicaly i would need two cards | 22:20 |
phidoux | SB Audigy 2 ZS [SB0353] (rev.4, serial:0x10031102) <- the card i am using | 22:22 |
fsmithred | sorry, I got no good ideas other than to look for debian bug reports | 22:24 |
n4dir | there is always #lau and #opensourcemusicians | 22:27 |
systemdlete | Turns out that the new nvidia card works fine in beowulf. | 23:59 |
Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!