libera/#devuan/ Saturday, 2025-04-12

XenguySSH question:  Would you say it is best practice to generate SSH keys for each PC, or do people commonly just use a single pair of keys for all their personal PC's?00:29
yetiI'm using one identity per user@system and that already makes a lot of identities.  I'd prefer to even use one keyset for each "connection" (user1@source-->user2@target) but I'm not there yet.  maybe it's alredy too much what I already have here...00:35
rwpI use one identity for my desktop and one more identity for multiple mobile laptops. The laptops conceptually are all the same. If one were lost or stolen I would invalidate the key using the desktop key and create a new key for the mobile devices.01:46
rwpNote that if you have more than six identities then one runs up again sshd MaxAuthTries.01:51
XenguyThanks yeti , rwp01:57
XenguyI also noticed some docs recommend, e.g. ssh-keygen -t ed25519 -C "email@address.net"02:00
XenguyBut it seems to me I've always used something more along the lines of '-C "username@host"02:00
yetiyou can call it "the weekend key" if you want.02:02
XenguySure, but usually there are so-called best practices associated with these operations, and that's usually what I'm looking to discern.02:02
rrqmaybe, if you think of the public "key" as a lock that is unlocked by the private key (as a key) then maybe it makes snese to label the lock by the key holder rather than by what it unlocks.02:43
XenguyDo all Swedes think like this?02:50
XenguyIs this why the Norse have a love/hate relationship with them?02:52
XenguyThank you also, it certainly qualifies as a 'hot take', as they say nowadays02:54
plasma41rwp: You might be interested ^the diagram I shared earlier today as I cited you in the source04:10
rwpXenguy, I label my keys by editing the .pub file and editing the comment there.  It's only a comment.  In my I say "desktop" and "laptop".  It's just a comment tag and can be anything that makes sense to you to identify the key.  Since otherwise the key itself is not immediately intelligible to humans looking at it.06:53
rwpOn our shared hosts where we use keys to access multiple people on those hosts we use the email address in the comment field.06:53
D-HUNDplasma41: thank you! . o O ( dang, totally forgot about ~/.Xresources )07:57
AfdalAnyone use timidity?11:20
AfdalI'm trying to add timidity to my sysvinit services so MIDI will get directed to timidity instead of a non-existent sound card11:21
Afdalbut I don't see a timidity service available in my services list?11:21
Afdaleven though I've got it installed and otherwise setup?11:21
Afdaldo I need to manually build a timidity.service file >:/11:26
Afdalrofl okay, there's a timidity-daemon package I didn't have11:32
Afdal:D11:32
Afdalonly now there's another problem >:(11:32
AfdalStarting TiMidity++ ALSA midi emulation: timidity failed!11:32
AfdalCan I get sysvinit to spit out something more verbose here :/11:38
Afdalthis isn't a very helpful error -.-11:38
Afdaluh wait, service timidity status says the service is running11:39
Afdaleven though it says it failed...11:39
Afdalokay, indeed it is running :)11:40
Afdalwhy does sysvinit spit out this confusing error11:40
AfdalWell I guess I managed to solve my own problem >_>11:41
amarsh04Afdal, I've had problems with timidity also. My other pc still has old PCI slots and a SoundBlaster Audigy 2ZS with wavetable synth11:54
amarsh04brb11:54
AfdalApparently running timidity as a service is uh12:20
Afdalinterfering with all other pulseaudio sound12:20
Afdalit kills my audio for all other programs that aren't running MIDI12:21
Afdalhmm, am I not allowed to let sysvinit handle this... or it ends up competing with pulseaudio?12:22
Afdalif I run timidity as a daemon manually with timidity -iA it doesn't do this :/12:23
AfdalI suppose I can just run timidity as a daemon through xfce4-session12:37
Afdaland that gets it to load properly after pulseaudio12:37
Afdalinstead of taking over completely12:38
Afdalbut I'd rather avoid that kind of hack -_-12:38
rwpI would tell plasma41 if they were here that I appreciate the citation but the authoritative answer is in the source.  (Like Obiwon says, "Use the source Luke.")15:27
djphheh18:46
gnarfaceAfdal: attempting to use timidity with dosbox i discovered similar issues and could only solve them by launching timidity as the same user that's running dosbox. i'm not sure what the point of the daemon mode is actually, because it doesn't seem to be useful except as a stand-alone thing.20:03
gnarface(and i'm not even using pulseaudio either, but i'm sure that does complicate the situation more)20:04
gnarfacei basically ended up just leaving the timidity sysvinit service disabled and writing a wrapper script for dosbox that pre-launches timidity and closes it afterwards20:06
gnarface(i don't consider this a big deal at this point anymore because i already needed to keep a bucket of wrapper scripts for a dozen stupid wine things anyway)20:09
greenjeansgreenjeans also keeps a handy bucket o' scripts onhand, lol20:35
Afdalmaybe I should learn about wrappers...21:14
AfdalI don't really like the idea of a background process running all the time when I'm not using it anyway...21:14
gnarfaceAfdal: go into your ~/.bash_profile and find this block then uncomment it: https://paste.debian.net/1369147/21:16
gnarface(then relog)21:16
Afdaluhhh what's that do21:16
gnarfaceafter that, just create ~/bin and anything executable in there will tab-complete like a stock system executable21:17
gnarfaceit's not required to do this, it's just a convenient place you can keep all your wrapper scripts21:17
gnarfacethe comment literally tells you what it does21:17
Afdaloh okay21:18
Afdalhmm21:18
AfdalI don't really like to keep all my binaries in my home directory though <.<21:18
gnarfacethey're not necessarily binaries, they can just be shell scripts. here's an example of my dosbox wrapper script. https://paste.debian.net/1369148/21:18
gnarface(ignore the "ALSA_GNAR" thing, that's an unrelated fix for a stupid alsa driver snafu)21:19
Afdalso the basics of a wrapper script are...21:20
gnarfaceit calls the system stock binary but adds some extra commands and/or environment variables to customize the behavior to your purposes21:20
Afdal#1 start the process you want running before the program, #2 start the program (you can close it through its own GUI), #3 close the process you wanted running during the program21:21
gnarfacethis one just starts timidity first and keeps track of the PID so it can stop it automatically after you exit dosbox21:21
Afdalis that right21:21
Afdalah, you need to keep track of the process id21:21
gnarfacewell, you don't need to but that's the fundamentally more elegant way21:21
gnarfaceyou could hardcode it to call "killall timidity" or whatever but that's ghetto21:21
gnarfaceyou got the idea though21:21
gnarfacethis is very basic scripting, you can handle it, and it'll be a good stepping stone to fancier stuff21:21
AfdalI have already written fancier bash scripts than this :)21:22
Afdaljust not familiar with wrappers21:22
gnarfacedon't get scared of the terminology, it's nothing really fancy. i used to balk at the notion of having to remember i have a bunch of wrapper scripts too, but somewhat ironically once i needed more than one of them it stopped being a problem21:23
gnarfacemost my wrapper scripts just add extra environment variables21:23
AfdalSince you say you use timidity for a wine a lot21:24
greenjeanspoint of order: the script as pasted is not a bash script21:24
greenjeansdash FTW21:24
Afdalmaybe you can help me figure out how to get wine to use the right sound port for timidity21:24
gnarface...stuff that's only relevant to that one program that i don't want cluttering up the global environment constantly, etc21:24
Afdalthis is more complicated than I was expected >.>21:24
Afdaldo you have to set it through the windows registry editor?21:24
gnarfaceAfdal: oh, a point of clarification, i use timidity for dosbox. i just also use wrappers for wine, but i don't use timidity with wine21:25
Afdaloh okay21:25
gnarfacei'm not sure i have any wine games that use midi currently...21:25
gnarfacehmm, well with dosbox it's quite simple to set these three lines in the dosbox config:21:27
gnarfacempu401=intelligent21:27
gnarfacemididevice=alsa21:27
gnarfacemidiconfig=128:021:27
gnarfacethose work fine with timidity defaults, though games themselves typically also have to be specifically told to use midi on a per-game basis21:28
gnarfacei'm not sure what the wine equivalent would be for this, since the stuff i'm playing in wine typically isn't this old21:28
gnarfaceit might "just work"21:29
AfdalWine stuff is setup by default to listen to the uh21:29
Afdalmidi through port 021:30
Afdalsomehow you've got to tell it to look on one of the virtual ports established by timidity...21:30
Afdalerr, not listen to21:30
Afdalbut output to :)21:30
Afdalwinehq's wiki page on midi setup needs to be better written tbh -_-21:32
Afdalwhat's this -Os >/dev/null 2>&1 & stuff at the end of your timidity line gnarface21:44
gnarfaceAfdal: "-Os" is output to ALSA, and the rest of the line after that is just to background timidity and discard any console noise it might generate. there's a shorthand version of the syntax to do the same thing but ironically the long form is easier for me to remember21:46
gnarfaceliterally, ">/dev/null" redirects stdout to /dev/null, and "2>&1" redirects stderr to [same place as stdout], and then & backgrounds21:50
gnarfacethose are all shell syntax parts, not specific to timidity21:52
Afdalthanks :)21:53
gnarfacenp21:53
plasma41Afdal: Speaking of wrappers, I recommend checking out Section 5.1, "Customizing the cal command", of Kernighan' & Pike's "The UNIX Programming Environment".23:04
Afdaluh23:04
Afdalis this a book >_>23:04
AfdalI've never even heard of the cal command <_<23:04
plasma41Afdal: A quite famous book. The cal program itself isn't important in particular, it's just used as an example program which has a subpar interface that can be made more pleasant using a wrapper.23:07
Afdalis this cal like calories23:10
Afdalor calcium...23:10
plasma41calendar23:14

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