libera/#devuan/ Sunday, 2024-09-29

ibanjaUsing sox play, running: play anyfile.mp3 gives an error. https://paste.debian.net/1330740/01:38
ibanjaaplay -l lists cards01:39
fsmithredI can't play mp3 with sox either, but I don't get your error. BTW, your paste uses ogg not mp3. I can play ogg fine with sox.01:43
fsmithredplay FAIL formats: no handler for file extension `mp3'01:44
fsmithredcan you get sound with other apps or other file formates?01:45
ibanjamultiple apps fail, and other file formats fail.01:47
ibanjaand I just discovered that my other computer is doing exactly the same thing.01:47
ibanjaThey have been working fine up until today.01:48
Xenguydrizzt, Incorrect01:49
rrqfsmithred: intall libsox-fmt-mp3, or even libsox-fmt-all02:44
fsmithredrrq, thanks.02:47
fsmithredI have no idea what ibanja's problem is.02:48
rrqsame. apperas to be a module bug (reading uninitialsed memory)02:48
rrqor smtg02:50
devuanconsumerI have a curious problem. I installed an old XFX radeon RX 580 GTS XXX edution but the display is not showing high-resolution even after being even after installing firmware-amd-graphics07:04
gnarfacecheck the Xorg log, and the output of "xrandr" while Xorg is running07:38
devuanconsumerhttps://termbin.com/rxyk07:39
devuanconsumerdevuanconsumer@msi124:~$ xrandr07:39
devuanconsumerxrandr: Failed to get size of gamma for output default07:39
devuanconsumerScreen 0: minimum 1024 x 768, current 1024 x 768, maximum 1024 x 76807:39
devuanconsumerdefault connected primary 1024x768+0+0 0mm x 0mm07:39
devuanconsumer   1024x768      76.00*07:39
gnarfacethere's flood protect in here, you can't just paste multi-line pastes07:39
gnarfacei think it stops you at 307:40
gnarfacethen you get a 120 second timeout07:40
gnarfaceor was that actually all of it?07:40
devuanconsumerits all of it07:40
gnarfaceweird07:40
devuanconsumerman i'm confused this is an old graphics card - it didn't work after fresh install07:40
devuanconsumerso I installed firmware-amd-graphics07:41
gnarfaceanything weird about the display? or the cabling? sometimes this happens if the display doesn't auto-detect right07:41
devuanconsumerno07:42
gnarfaceeven having the wrong HDMI cable version for the monitor could cause it07:42
devuanconsumeri will try a new hdmi cable but this is weird as heck07:42
gnarfacecheck the version of HDMI the cable is for, make sure it matches the version the monitor is for; the stuff is supposed to be generally forward and reverse compatible but in my experience it sucks at that07:43
gnarfacecheck the version of HDMI the video card is for too, i forget what that one is, but it's new enough that if you try to use a HDMI 1.0 cable with it, you might have this type of problem07:44
gnarfacealso sometimes there are just very weird displays that need you to plug in a modeline to the xorg.conf manually for certain resolutions, though that's uncommon with normal desktop monitors unless they're a weird aspect ratio. usually i see that in stuff that has really weird clocks like projectors and stuff07:46
devuanconsumer__ok so i just restarted wtih a a display port cable and no change07:47
gnarfacehmm07:48
devuanconsumer__i got an old grpahics card for the support lol07:48
devuanconsumer__and it doesn't work :(07:48
gnarfacei've gotta afk for a bit, but stick around, someone else might know and i'll come back if i think of anything07:48
devuanconsumer__thank you07:49
rrqdevuanconsumer__: maybe try this advice: https://askubuntu.com/questions/441040/failed-to-get-size-of-gamma-for-output-default-when-trying-to-add-new-screen-res07:56
devuanconsumerthe problem is resolved - i installed the stable firmware-amd-graphics (uninstalled the latest version) and it worked08:07
devuanconsumerDoes anyone know how to run a #! /bin/bash script (thoughtd) on start up? I placed the script in /etc/init.d and it doesn't load automatically  despite running the commands: sudo ln -s /etc/init.d/thoughtd /etc/rc5.d/S01thoughtd19:53
drizztyep20:04
drizztin /etc/inittab file you have a line starting with "id" (5th line usually)20:04
drizztwhich usually states "id:2:initdefault:"20:05
drizztif it has a "2", it means that your starting runlevel is runlevel 220:05
drizztthus, you must make your link in /etc/rc2.d/20:06
drizztbut that's the "manual way"20:07
drizztthe right way is to add the "INIT INFO" at the beginning of your script, with appropriate "Default-Start:" content20:08
drizztlike "# Default-Start:     2 3 4 520:08
drizztand then run :20:09
drizztupdate-rc.d thoughtd enable20:09
drizzt(or something like this, I do not remember the exact command options)20:10
drizztthis should create the links in the appropriate (selected) runlevels, and keep your script accross updates20:10
devuanconsumermy script has that "init info" and default start20:14
devuanconsumerso to do it the manual way i would run "sudo ln -s /etc/init.d/thoughtd /etc/rc2.d/S01thoughtd"20:17
devuanconsumer"update-rc.d thoughtd enable" this command doesn't work20:22
devuanconsumerdoes anyone know the correct one?20:22
devuanconsumermy run level is 220:22
devuanconsumersudo ln -s /etc/init.d/thoughtd /etc/rc2.d/S01thoughtd but it didn't work20:22
devuanconsumerupdate_rc.d [name] enable [level] that enables it, and by level, they mean runlevels.20:27
devuanconsumeri found this on the internet but it doesn't work20:27
devuanconsumeri get the update.rc.d command not found20:27
devuanconsumeri tried "update_rc.d thoughtd enable 2"20:27
devuanconsumerlet me know if you guys can help20:33
nemohttps://news.ycombinator.com/item?id=4168741320:55
nemoso. when I read stuff like this, I always wonder.  what new challenge will devuan face as a result20:56
fsmithreddevuanconsumer, 'update-rc.d thoughtd defaults' should work if your LSB header info is correct. You shouldn't have to make links manually. Another option is to install and run sysv-rc-conf.20:58
Xenguysysv-rc-conf sounds easier; for some reason I was never able to wrap my head around update-rc.d21:01
freemit's not the 1st time I read about systemd folks trying to switch dbus for something else I think... was it ibus or something? But I guess ibus was missing "TCPtcp:127.0.0.1:12345hostname/IP address and port" a totally worthy feature for a PID121:02
XenguyThere used to be others too, like rcconf... huh, it's still around apparently, not sure if it still works as advertised21:02
nemohm... had to reply to that thread. someone was being wrong about bigint21:23
devuanconsumerfsmithrd how can i check if my lsb header info is correct? any command i type with update-rc.d says it doesn't work22:12
devuanconsumeroh ok i will install sysv-rc-conf22:13
fsmithreddevuanconsumer, I think you have to read it to confirm that it's correct. Is this an init script that you wrote or did it come with a package?22:15
devuanconsumera professional wrote it22:15
devuanconsumeri will paste it here with paste.debian.net22:15
fsmithreddoesn't work or command not found?22:15
devuanconsumercommand not found22:15
devuanconsumerthe script runs flawlessly i just want it to run automatically on login22:16
fsmithredthat just means it's not in your path22:16
fsmithreduse 'su -' to become root, not just 'su'22:16
fsmithredon login?22:16
devuanconsumeryes like if i shutdown my pc22:16
devuanconsumerto blow the dust and turn it on and login to my user account22:16
devuanconsumeri want the script to run automatically after i login to my devuan user account22:17
fsmithrednot before login?22:17
devuanconsumeror however22:17
devuanconsumerright now i type "sudo /etc/init.d/thoughtd start "22:17
fsmithredyou don't need an init script for stuff to start with the desktop22:17
devuanconsumerthis is mining software22:17
fsmithredecho $PATH22:18
fsmithredyou won't see /sbin or /usr/sbin I bet.22:18
devuanconsumeri get this: echo $PATH22:18
devuanconsumeroops22:18
devuanconsumerroot@msi124:~# update-rc.d thoughtd defaults22:18
devuanconsumerinsserv: warning: current start runlevel(s) (2) of script `thoughtd' overrides LSB defaults (2 3 4 5).22:18
devuanconsumerinsserv: warning: current stop runlevel(s) (empty) of script `thoughtd' overrides LSB defaults (0 1 6).22:18
fsmithredsounds like it's wrong. I need to look at an example. brb22:20
devuanconsumerhttp://paste.debian.net/1330793/22:20
devuanconsumermy run level is 222:20
fsmithred# Default-Start:     2 3 4 522:20
fsmithred# Default-Stop:      0 1 622:20
devuanconsumerso what does that mean lol22:21
fsmithredlooks like it's right22:22
fsmithredI never mess with init scripts, so I don't know. sysv-rc-conf to the rescue22:22
fsmithredarrow keys, space bar and q22:23
devuanconsumeri installed sysv-rc-conf22:25
devuanconsumernow what?22:25
devuanconsumeror did the command on root work?22:25
fsmithreddevuanconsumer, it just occurred to me that your error message may be due to the manual links you created.22:26
fsmithredupdate-rc.d will not clobber any existing links in case you customized it.22:26
fsmithredwhich you did.22:26
devuanconsumersudo ln -s /etc/init.d/thoughtd /etc/rc2.d/S01thoughtd22:26
devuanconsumerthis?22:26
fsmithredyeah22:26
devuanconsumersudo ln -s /etc/init.d/thoughtd /etc/rc5.d/S01thoughtd22:26
devuanconsumeri did both of these22:27
devuanconsumerdo i delete those files?22:27
fsmithredanyway, run sysv-rc-conf as root22:27
fsmithredand put the checks in the appropriate places22:27
fsmithredcheck=start22:27
fsmithredthe stops are where there are no checks22:27
fsmithredor x's I guess22:27
devuanconsumerright now thoughtd has an X on 2 only22:28
fsmithredso it should start when system goes into runlevel 222:28
fsmithredmost things in debian/devuan run 234522:28
devuanconsumerthe numbers are 1 2 3 4 5 0 6 S22:29
devuanconsumerthe last is S for stop i guess?22:29
drizztdevuanconsumer: did you chmod +x your script in /etc/init.d/ ?22:29
devuanconsumeryes22:29
devuanconsumerofc22:29
drizztdevuanconsumer: no22:29
drizztS is system start22:29
devuanconsumerok22:29
fsmithredS for single?22:29
drizztneither22:29
devuanconsumerso what do i select based on the scipt a programer wrote for me22:29
devuanconsumerhttp://paste.debian.net/1330793/22:30
devuanconsumerI selected 2 3 4 5 ?22:30
fsmithredyes22:30
devuanconsumerwhat about the letter S22:30
fsmithredthen q to quit22:30
fsmithredno22:30
devuanconsumernot S?22:31
fsmithrednope22:31
devuanconsumerdo i do ctrl + s before exiting22:31
fsmithredthat's for one-shots22:31
devuanconsumer?22:31
fsmithredno22:31
devuanconsumerok22:31
fsmithredq to save and quit22:31
devuanconsumerok22:31
devuanconsumerdo i uninstalle the manuatl links i made?22:31
devuanconsumerhow do i do that?22:32
fsmithredI'm pretty sure they will get corrected by sysv-rc-conf22:32
devuanconsumerok22:33
devuanconsumerso now i reboot22:33
fsmithredew, maybe you should delete  those22:33
devuanconsumerhow do i delete them?22:33
devuanconsumerjust open paths with root and delete file?22:33
fsmithredyou have thought as S0122:33
fsmithredmeaning it starts before everything else. That doesn't sound right.22:33
devuanconsumeri followed the programmers instructions22:34
devuanconsumerbut i should've just came here lol22:34
devuanconsumerhe's more about systemctl22:34
devuanconsumernot sysv22:34
fsmithred rm /etc/rc2.d/S01thoughtd22:34
fsmithredrm /etc/rc5.d/S01thoughtd22:35
drizztand same for /etc/rc5.d/S01thoughtd22:35
fsmithredupdate-rc.d thoughtd defaults (I think)22:35
fsmithredyeah, that should do it22:36
fsmithredwithout sysv-rc-conf22:36
devuanconsumerso those files don't exist22:37
fsmithredgood22:37
devuanconsumeri guess when i selected the items22:38
fsmithredoh, ok22:38
devuanconsumerit deleted them22:38
devuanconsumerwhen i selected 2 3 4 522:38
devuanconsumernow i just run update-rc.d thoughtd? is this part of the whole sysv-rc-conf package22:38
fsmithredno22:38
devuanconsumeroh22:39
fsmithredupdate-rc.d is the orthodox way to do it22:39
devuanconsumershould i uninstall the sys-rc-conf22:39
fsmithredsysv-rc-conf I guess is a front-end for that22:39
devuanconsumerand try it like that?22:39
fsmithredno, you can leave it22:39
fsmithredare there any thoughtd links or not?22:39
devuanconsumernot the same ones22:39
devuanconsumerS02thoughtd but not S01thoughtd (the ones I added)22:40
fsmithredok22:40
devuanconsumerlet me reboot and check if it loads it atuomatically22:40
fsmithredok22:40
devuanconsumerit didn't work22:43
fsmithredcheck dmesg and/or syslog for messages about it22:44
drizzt devuanconsumer: after update-rc.d call do you have a link from /etc/rc2.d/ to /etc/init.d/ ?22:45
devuanconsumerI see "S02thoughtd" in "rc.d"22:46
devuanconsumerin the folders22:47
devuanconsumerthe syslog has nothing in it22:47
devuanconsumerhow can i check dmesg22:47
fsmithredin rc2.d?22:47
devuanconsumeryes22:47
fsmithreddmesg | grep thoughtd22:47
devuanconsumernothing comes up22:48
fsmithredI have a couple of ideas but maybe drizzt knows better. 1. remove all the links and make the defaults again.22:49
fsmithred2.add set -x to the init script22:49
devuanconsumerwait22:50
devuanconsumeri think it's delayed start22:50
devuanconsumerlet me restart22:50
devuanconsumerand see if it works again22:50
devuanconsumerit worked!22:52
fsmithredcool22:52
devuanconsumerbasically it takes a bit to sync with the block chain22:52
devuanconsumerso its like 10 seconds22:52
devuanconsumerbut its nice22:52
devuanconsumerthank you so much!22:52
fsmithredyw22:52
drizztnice22:52
devuanconsumerfuck yeah22:52
devuanconsumeri will write the steps and dave them in a doc to reproduce on other comps!22:53
devuanconsumerand so i never ask again22:53
fsmithreda note about runlevels and sysv-rc-conf: you might want to customize something to only run in certain runlevels.22:53
fsmithredthen you can change runlevel to activate things for specific tasks.22:53
fsmithredin some distros, runlevels 2 and 3 are non-graphical logins and the default is to boot to runlevel 4 to get a desktop.22:54
devuanconsumerok thank you23:23
devuanconsumeranother question: how can I get a simply script to run like thoughtd since I can't code: http://paste.debian.net/1330797/23:24
devuanconsumerwould i simply copy the script into /etc/init.d and repeat the syc-rc-conf steps again?23:25
fsmithreddevuanconsumer, I would put the script in /usr/local/bin and let the desktop start it.23:34
fsmithredadd it to the desktop startup apps somewhere in settings.23:35
fsmithredSession and Startup, Application Autostart  (in xfce)23:36
fsmithredafk (outside)23:39
devuanconsumerok thank you!23:39

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