[00:01]  * fenafsezaman - (Allah the Greatest Rules and the power is in his hands)
[00:04]  * fenafsezaman we r not UFOs we rule by the authority and POWER of GOD My God is Allah the one of islam
[00:05]  * fenafsezaman - ^ All your life u been following seculars armies and tyrant systems those who rule in injust
[00:05]  * fenafsezaman In the name of Allah AlAazam the sustainer of existance the most powerful Almonhi HAWK ALAKBAR AJBAR AJBAR AJBAR: (Praised) he is in Quran the Global Book ; Sunni islam is the true religion of God (Allah Rules and the power is in his hands) _ monotheism islam is righthood it is the belief in God Allah the King of kings the right -
[00:10] <johnny_Linux> they are out in full force
[00:14] <sarnold> he's quite a bit nicer these days than previously; once upon a time it was a gigantic 100-line flood
[00:20] <johnny_Linux> this is why internet 2 will be enforced
[00:21] <johnny_Linux> its all been hyjakt and those who said we were kooks.. eats sht.. its here.
[01:09] <Guest87> Can I use apt-mirror on Ubuntu to create a repository for Debian?
[01:11] <leftyfb> Guest87: yes, lots of tutorials online on how to do it
[01:12] <sarnold> yeah I'd expect that to work okay
[01:24] <oerheks> Guest87, register with libera, and ask there?
[01:24] <oerheks> lolz
[01:29] <Guest87> Do I use the same process as creating a Ubuntu mirror but with Debian links?
[01:30] <oerheks> It is disrespectful not to register.
[01:30] <oerheks> after that, you know you will have access to #debisn
[01:30] <oerheks> debian*
[01:33] <leftyfb> Guest87: when I typed "apt-mirror" into google, this is the 4th link that comes up https://www.howtoforge.com/local_debian_ubuntu_mirror
[01:34] <oerheks> Bing idem dito
[01:52] <cami> hola
[01:53] <cami> que asen
[01:59] <Guest87> Are the instructions going to download the tar.gz?
[02:00] <oerheks> Guest87, can you explain what you are asking for?
[02:55] <shachaf> I upgraded to Ubuntu 22.04 and now Firefox is a Snap package. It works better than I expected, but my keybinding to open a new Firefox window now takes over 500ms. Is there a way to not have it be so slow?
[02:56] <shachaf> All it does is run the `firefox` program, which I guess goes through Snap which is very slow to start up programs.
[02:58] <toddc> shachaf: bug they are working on it
[03:03] <shachaf> toddc: What's the bug? That it takes a long time to run a Snap program?
[03:07] <arraybolt3[m]> shachaf: Run "sudo snap refresh" - this will update all the Snaps on your system (including Firefox). The latest Snap Firefox starts up quite quickly even the first time after bootup.
[03:07] <arraybolt3[m]> (The transition to Snap originally made Firefox launch very slowly the first time after the system was booted, but the latest version has improved tremendously.)
[03:07] <toddc> shachaf:  https://linuxstoney.com/ubuntu-developers-begin-to-solve-problems-with-the-slow-launch-of-the-firefox-snap-package/
[03:08] <toddc> yes it is much better with the latest version
[03:11] <shachaf> Hmm, "All snaps up to date."
[03:12] <shachaf> I guess 500ms to open a window in an existing instance is considered "quite quick" by Snap standards.
[03:12] <shachaf> But if people are working on it, maybe it'll get faster eventually.
[03:14] <sarnold> that sounds like it's worth a bug report to me
[03:15] <arraybolt3[m]> 500ms = 1/2 second? I guess to me that's more than fast enough.
[03:16] <shachaf> Every time you open a new browser window?
[03:16] <arraybolt3[m]> (Then again my Chromebook can pop open a browser window in an instant so I can understand the appeal of a quicker start speed.)
[03:16] <arraybolt3[m]> Yeah, every time I open a new browser window. That's just par for the course for me. It was that way even with the apt version of Firefox IIRC.
[03:16] <sarnold> this is what I got on my 20.04 system:
[03:16] <sarnold> ± time firefox --new-window http://google.com
[03:16] <sarnold> real	0m0.163s
[03:16] <sarnold> it felt about like that
[03:17] <arraybolt3[m]> It takes multiple seconds for a new Chrome window to appear on my laptop, and I have Chrome installed via apt. Maybe I just have slow hardware.
[03:17] <sarnold> a second run 0m0.079s
[03:18] <shachaf> Hmm, given that Firefox is already running, I don't see why it should take more than one frame (16ms) to open a new window. 500ms is just absurd.
[03:18] <arraybolt3[m]> Yeah I'm getting more like 5 to 10 seconds on my laptop.
[03:19] <arraybolt3[m]> Oh, but that's starting Firefox afresh every time. So when I do a new window while Firefox is stil running, it takes 0.688s.
[03:20] <enigma9o7[m]> 0.227 seconds on 18.04 (using deb version) on the command sarnold tried... on my 13 year old laptop
[03:20] <sarnold> half a second is an eternity then :)
[03:20] <enigma9o7[m]> second run 0.117
[03:21] <shachaf> I upgraded from 21.something to 22.04 and it definitely got much slower.
[03:22] <arraybolt3[m]> shachaf: I wouldn't expect a new Firefox window to just snap to the screen in an instant - after all, you are calling the Firefox program from scratch and it does have to go through the whole process of figuring out that another Firefox instance is already running and then do whatever magic it does from there - that's gonna take time. But it does look like Snap is slowing things down. You could install Firefox from a PPA or from the
[03:22] <arraybolt3[m]> official tarball.
[03:23] <arraybolt3[m]> (Note by "a PPA" there's one PPA I have in mind, there might be various Firefox PPAs of questionable reliability but there's one that I think Mozilla runs that should be safe.)
[03:25] <shachaf> I don't understand why it needs to take time that's noticeable on a human scale or anything close to it.
[03:25] <shachaf> 500ms is an eternity.
[03:26] <enigma9o7[m]> apperantly its because the developers have super new hardware, and dont realize most everyone else is 10x slower than them.
[03:26] <arraybolt3[m]> shachaf: https://launchpad.net/~mozillateam/+archive/ubuntu/ppa
[03:28] <shachaf> Switching away from the Snap package sounds like a good idea.
[05:39] <Guest59> Can I use ubuntu on 2 monitors together ? I mean combining them as 1 display ?
[05:48] <InPhase> nowhere007: Yes, if you follow the following steps:  Plug them both in.
[05:53] <nowhere007> Actually I was trying wireless, I could do the wired. Is there any way to do it wireless ? Like windows can cast to another display wirelessly and extend
[06:01] <tuxinator> Good morning everybody, somebody else getting this on try to sync jammy to on premise landscape? Calculating packages to get...
[06:01] <tuxinator> Deleting unexpected file './pool/universe/q/qtdeclarative-opensource-src/qtdeclarative5-doc-html_5.15.3+dfsg-1_all.deb'!
[06:01] <tuxinator> (not in database and wrong in pool)
[06:01] <tuxinator>  Getting packages...
[06:01] <tuxinator> aptmethod error receiving 'http://mirror.init7.net/ubuntu/pool/universe/q/qtdeclarative-opensource-src/qtdeclarative5-doc-html_5.15.3+dfsg-1_all.deb':
[06:01] <tuxinator> 'Connection failed [IP: 109.202.202.202 80]'
[06:05] <tuxinator> Good morning everybody, somebody else getting this on try to sync jammy to on premise landscape? https://dpaste.com/7RTECJSRJ
[06:06] <Unit193> I have never seen that before, have you done an `apt update` recently?
[06:07] <tuxinator> tried a lot of things, change of mirror etc
[06:07] <tuxinator> and i checked my mirror sync logs and synced manually my used mirror (i am the operator of mirror2.tuxinator.org public ubuntu mirror) but all looks good
[06:08] <tuxinator> friday i was unable to download the package even manually to the landscape-server but now this works but the error is the same
[06:08] <tuxinator> Unit193: do you use landscape on premise?
[06:08] <Unit193> No, I have never used landscape except the sysinfo aspect of it. :P
[06:09] <tuxinator> Unit193: well then it's clear you never seen that error message
[06:09] <Unit193> Yeah I was thinking apt/aptitude stuff.
[06:11] <tuxinator> Unit193: thx anyway for your try to help
[06:12] <Unit193> tuxinator: Wouldn't one contact Canonical for landscape issues?
[06:19] <tuxinator> Unit193: well that would be my next step :D  i thought maybe there is some general issue with this package or this error message independent of landscape :D
[06:21] <Unit193> `apt-get download qtdeclarative5-doc-html` goes well at least, not that I'd expect it to show that error even if there was a problem, since it's very basic.
[07:31] <nuovolnx> Sorry, I use linuxmint, after upgrading to 21 I find myself with the open suorce drivers instead of the nvidia ones I had previously installed. The pc freezes on google maps 3d and when I watch videos with celluloid.
[07:42] <nuovolnx> nobody?
[07:47] <tuxinator> nuovolnx: as a workaround disable hw accel in your browser
[07:47] <tuxinator> this is the ubuntu channel, maybe you find better help in a mint channel
[07:48] <nuovolnx> better help?
[07:57] <Johnny_Mucambo> good morning all... i have one question about graphics
[07:57] <Johnny_Mucambo> I have one monitor 7''
[07:58] <Johnny_Mucambo> my PC has one display port and convert it to VGA so my output is VGA
[07:58] <Johnny_Mucambo> o bought one VGA to HDMI converter because i need HDM as output
[07:59] <Johnny_Mucambo> my problem is
[08:00] <Johnny_Mucambo> i cant foce any resolution (at least the right resolution) i suspect that is somthing about timings on HDMI
[08:03] <Johnny_Mucambo> my vga to hdmi can output 1920x1200. whene i connect to my desktop if i force full HD it works very well but if i use this 7'' LCD i can't force any resolution
[08:03] <Johnny_Mucambo> edid problems? how can i solve this ? frame buffer?
[08:37] <ForeverNoob[m]> Hi, I have `python3` pointing to python 3.6, what is the best way for it to point to python 3.7? Simply adjust the symlink?
[08:41] <tarzeau> ForeverNoob[m]: that's ubuntu 18.04?
[08:41] <ForeverNoob[m]> Correct.
[08:47] <tarzeau> why not just dist-upgrade to 20.04? and then 22.04?
[08:47] <tarzeau> yes you can fiddle with the symlink, it might be good for some things, but break others. better use pyenv/venv instead?
[09:22] <firesnap> Hi, I upgraded ubuntu to 22.04 and I can not install firefox anymore. When I try, I get error: "Run configure hook of "firefox" snap if present (run hook "configure": cannot perform operation: mount --rbind /home /tmp/snap.rootfs_SX52GO//home: Permission denied)" ... is there some work-a-round or way for me to fix it?
[09:23] <ForeverNoob[m]> @tarzeau: yeah it's going to happen somewhen in the future but atm got too many things going on. Can pyenv/venv be used if external app depends on python3 pointing to 3.7 though?
[09:44] <ogra> firesnap, try postin in ths thread: https://discourse.ubuntu.com/t/known-issues-with-firefox-snap/24663
[09:45] <ogra> *posting
[09:45] <ogra> it is read by the firefox maintainers ...
[09:47] <firesnap> @orgra Thanks
[10:22] <firesnap> Answering to myself, as a work-a-round, I installed Firefox as a .deb package using these instructions: I hope I don't run into too many problems in the future because of this, but at least I can use Firefox again for now: https://www.omgubuntu.co.uk/2022/04/how-to-install-firefox-deb-apt-ubuntu-22-04
[10:38] <pikapika> how do we get a list of pacakges for a fresh install
[10:38] <pikapika> without actually installing a vm
[10:39] <pikapika> is there any page or archive that lists packages that are preinstalled on a fresh ubuntu
[10:41] <Unit193> There's the manifest.
[10:43] <ravage> pikapika, https://packages.ubuntu.com/source/jammy/ubuntu-meta
[10:46] <pikapika> thanks
[10:46] <pikapika> I found a manifest file in the ubuntu release page
[10:46] <pikapika> it has a list of packages
[10:49] <cousteau> Hi!
[10:49] <lotuspsychje> welcome cousteau
[10:50] <cousteau> I see gksu and gksudo are gone.  Why were they removed (what is the rationale), what purpose did those applications serve, and what are the recommended alternatives?
[10:51] <cousteau> In my experience, gksu was used to run graphical applications as admin, probably because running them directly with sudo had several issues.
[10:51] <cousteau> So instead of "run sudo with these extra parameters that fix those issues", the general recommendation was just "use gksu instead", but I'm not totally sure what were the advantages.
[10:52] <pikapika> what were you opening with gksudo
[10:52] <lotuspsychje> cousteau: in nautilus you can now ctrl+l and type admin:/// to manage admin tasks
[10:53] <cousteau> I *think* that the main reason it was discouraged to "run graphical apps as sudo" was because "graphical apps" tend to mess with your $HOME (either because they write config files or because of some issues with .Xauthority files and other locks being left on your $HOME), so I systematically run sudo with the -H option so that it puts all that garbage on /root and leaves my $HOME alone
[10:54] <cousteau> but I don't know if that was the actual reason to use gksu instead of sudo
[10:55] <cousteau> !gksu
[10:56] <cousteau> welp, guess that answers the third part of my question :)
[10:57] <cousteau> !sudo
[10:57] <cousteau> although that link is old, it does mention my -H trick I was so proud of...
[11:00] <krytarik> cousteau: gksudo and friends also query the admin password graphically rather than on the command line, which you wouldn't get when invoking it graphically like by using a launcher.
[11:00] <cousteau> https://help.ubuntu.com/community/RootSudo#Graphical_sudo -- hm, this may provide details about why it is unadvised to use sudo with graphical apps
[11:01] <cousteau> krytarik: oh, good point... you don't always have a terminal (well, I do, but not all people do)
[11:03] <cousteau> lotuspsychje: I guess that works for opening and editing and moving files, but there are other uses for it such as... dunno, running graphical installers, for example
[11:03] <cousteau> but good to know about admin:///
[11:04] <krytarik> Yeah, the rationale here is of course that if you run graphical apps (with elevated rights or not) then you shouldn't need to use a terminal to do that.
[11:05] <cousteau> pikapika: in this particular case, I was thinking on using it for a graphical installer.  And the first thing that installer did when I launched it with `sudo -H` was to throw a cryptic java error, which seems to be solved if I run `xhost +` before.
[11:05] <cousteau> (For those of you who don't know what `xhost +` does... welcome to the club!)
[11:06] <cousteau> krytarik: yeah that makes a lot of sense
[11:06] <lotuspsychje> cousteau: running gparted from terminal for example asks your password GUI
[11:06] <cousteau> but I thought gksu was meant to solve other issues.  For example, I think it deals with the -H issue.
[11:07] <cousteau> And I suspect it would have solved the xhost + issue, which looks like it's something graphical-related
[11:07] <Slartibart> When I try to download some file from a chat in slack I get notice with 'Open containing folder' and all that. I.e it looks as if the file was downloaded. But when I check outside slack the file isn't there in that folder. I'm fairly sure apparmor is behind this, but when I check /etc/apparmor.d there are no slack profiles, and dmesg doesn't seem to show anything about it either.
[11:07] <cousteau> lotuspsychje: so it sort of "has a built-in gksudo"?
[11:07] <Slartibart> https://ubuntu.com/server/docs/security-apparmor says 'explicit denies will put no message in your logs at all'. Is there some other way to get confirmation that apparmor is causing this?
[11:07] <lotuspsychje> i used to like sux a lot, but its not on recent ubuntu releases any longer
[11:08] <cousteau> I guess sux is the creative name for an X-based version of su
[11:10] <cousteau> OK this is annoying: pkexec automatically cd's to /root >:(
[11:10] <cousteau> pkexec ./xsetup  ->  Error executing ./xsetup: No such file or directory
[11:12] <ravage> no cd here. https://p.haxxors.com/qgaxxzz6.txt
[11:12] <cousteau> and there doesn't seem to be an elegant way around it (well, in this case I guess `pkexec "$PWD/xsetup"` would work, but there are other use cases that wouldn't)
[11:13] <cousteau> ravage: `pkexec pwd`?
[11:13] <ravage> that shows root yes
[11:13] <cousteau> ok
[11:14] <cousteau> obviously, calling a regular command, which is run in a subshell, won't change the directory from the caller shell
[11:14] <ravage> https://stackoverflow.com/questions/50783033/execute-pkexec-command-on-a-different-path looks like a workaround
[11:15] <cousteau> so something like   sh -c 'cd /tmp'   will cd to /tmp *in a subshell* and then exit, and after exiting you'll be left on the dir you were before
[11:16] <cousteau> ravage: well, I guess that (or a simpler `pkexec -c 'cd /some/path; some_command'`) would do... but that's not an elegant way around it
[11:18] <cousteau> an elegant way would be either a --dont-change-dir switch, or a config option to decide whether it does change dir or not.  Or not having that "undocumented feature" at all, which doesn't seem to serve any practical purpose.
[11:19] <cousteau> (do you know what "undocumented feature" is a euphemism for?)  >:)
[11:20] <pikapika> cousteau, in some applications like video games undocumented features are considered acceptable to use for setting speed records
[11:21] <ravage> cousteau, https://gitlab.freedesktop.org/polkit/polkit/ and when its implemented upstream feel free to file a bug/feature request on launchpad :)
[11:25] <cousteau> ravage: https://gitlab.freedesktop.org/polkit/polkit/-/blob/master/src/programs/pkexec.c#L554
[11:25] <cousteau> seems to be already implemented
[11:26] <ravage> nice :)
[11:26] <ravage> then maybe someone can port to ubuntu
[11:26] <ogra> gksu/gksudo simply can not work with waylands security model (one window can not see the content of the other or control the other by design), this is why they were dropped
[11:26] <cousteau> ...for some pkexec version
[11:27] <cousteau> ravage: I'm not even sure that feature's been released though
[11:27] <AlexC> hi, does anyone aware in ubuntu 22.04 transmission has a memory leak?
[11:27] <cousteau> ogra: thanks, that's a neat explanation for the first part of my question :)
[11:27] <AlexC> 1 day uptime it consumed me 20 gigs of ram
[11:27] <ravage> cousteau, you should check if its available in debian sid
[11:28] <cousteau> I don't have a debian sid around... I'll do some version checking though
[11:28] <lotuspsychje> AlexC: bug #1973084
[11:29] <lotuspsychje> AlexC: if you think this is your case, please affect to the bug at left upper corner
[11:29] <AlexC> it has been fixed in upstream, but it has still some bugs, using more cpu than it should
[11:30] <AlexC> it is affecting, but not just arm64 build
[11:30] <AlexC> x86_64 also affected
[11:30] <AlexC> thx
[11:30] <AlexC> known bug over on transmission github also
[11:30] <lotuspsychje> AlexC: you can also add a comment, and/or mention the upstream bug ID
[11:31] <AlexC> if I remember my launchpad creds.. :D
[11:32] <cousteau> https://gitlab.freedesktop.org/polkit/polkit/-/commit/af533784a33040ce91b03744c6fd5ba9aff3e007 -- "pkexec: Don't chdir(~)" - commit authored 3 months ago
[11:32] <cousteau> merged into tag... uh... doesn't seem available in gitlab
[11:33] <cousteau> Incidentally, that commit also fixes the "bug due to an 'undocumented feature'" in the simplest way to fix those bugs: by documenting them
[11:33] <cousteau> (but I still don't see WHY the default should be to cd ~)
[11:34] <ravage> cousteau, it is very unlikely that any of that will appear in Ubuntu before there is any debian package available for it. so if you really need this to be fixed the first step is to make it apperar in sid
[11:34] <cousteau> ravage: I understand that.  I was just checking if that commit has been "released" or not
[11:35] <AlexC> yee I remembered
[11:35] <AlexC> :D
[11:36] <cousteau> ...oh, that cryptic "[__> 121" button in gitlab seems to mean "this commit is part of tag '121'"
[11:38] <cousteau> So, the earliest version containing this change is polkit 121 (version 121 is the one immediately following 0.120, because apparently they got tired of that 0. numbering system and went directly with single numbers)
[11:42] <cousteau> ravage: it appears that polkit is in version 0.105-33 in sid, but 121-2 in experimental: https://packages.debian.org/sid/pkexec | https://packages.debian.org/experimental/pkexec
[11:42] <ravage> cousteau, feel free to discuss in #ubuntu-discuss or #ubuntu-offtopic . i dont see an direct support case here atm.
[11:42] <cousteau> is that good enough, or does it HAVE to be in sid?
[11:42] <cousteau> ok :) sorry for deviating
[11:43] <krytarik> Needs to be in Sid, yes.
[11:43] <ravage> sid makes the merge much easier
[11:43] <ogra> well, experimental is sometimes an option ...
[11:43] <cousteau> in any case I wasn't planning to get this deep into debugging that issue; I just wanted to know the alternatives to gksu
[11:43] <cousteau> but I guess I should move the discussion there, or maybe to #ubuntu-devel
[11:44] <ravage> actually it will appear in ubuntu after some years automatically if you can wait :)
[11:44] <ravage> (from sid)
[11:44] <cousteau> but I want it now!
[11:44] <ogra> cousteau, in fact you shoudl "ubuntu-bug pkexec" and explain it in the bug 😉
[11:44] <cousteau> hmm
[11:45] <ravage> ogra, sorry - totally unrelated - any chance you can push a zoom-client snap update. my client keeps complaining :D
[11:46] <ogra> ravage, sadly not ... zoom removed the ability to open links in newer client versions that drop the internal sandboxing (which i have to do for the snap to work at all) ... so the zoomus:// urls will not work anymore
[11:46] <ravage> oh :(
[11:46] <ogra> ravage, you can switch to the edge channel and live with the limitation
[11:46] <ravage> yes thats ok for me
[11:46] <ogra> i'm still looking for a solution, but dont expect anything fast
[11:46] <ravage> i dont click zoom links :)
[11:47] <ogra> well, people that open them from i.e. a google calendar invite are screwed ... (especially if the invite holds the credentials for a non-public meeting)
[11:47] <cousteau> And, back to my original issue... it seems that `pkexec "$PWD"/xsetup` doesn't solve this issue I was having with xhost
[11:49] <cousteau> basically, `./xsetup` works, but `sudo [-H] ./xsetup` and `pkexec "$PWD"/xsetup` cause a Java error; this error seems to go away if I run `xhost +` first.  I somehow suspect that this is the sort of thing that gksu would deal with elegantly, but I have no way to prove it.
[11:49] <ravage> ogra, sure. i just have to start a video call once in a while and use the chat. i dont like the tool really and try to avoid it as much as i can. edge will do for me. thanks :)
[11:49] <ogra> great
[11:49] <ogra> edge is auto-built every time zoom does a new release btw ... so expect regular (but intested) updates
[11:49] <ogra> *untested
[11:50] <ravage> living on the edge is fun :D
[11:50] <ogra> 😄
[12:03] <dante-as> Hi guys, how can I create a username with password included in CLI?
[12:05] <cousteau> dante-as: `useradd -p password123`?  Although I don't think you want to put a password directly in a command line argument
[12:05] <oerheks> dante-as, see the server docs, https://ubuntu.com/server/docs/security-users
[12:05] <oerheks> cousteau, +1
[12:05] <oerheks> in the docs are more details, about when the user is forced to change the password and so on
[12:06] <cousteau> better to use useradd and then passwd
[12:07] <oerheks> useradd --help
[12:07] <ogra> uuuh ... use adduser, not useradd ...
[12:07] <ogra> (adduser applies the distro default settings, useradd does not)
[12:08] <oerheks> ogra, you are right, useradd does not make a home folder
[12:09] <geirha> useradd is how you confusingly end up with sh as your login shell
[12:09] <ogra> yep
[12:09] <ogra> and lost of other dd things 😞+
[12:09] <ogra> *odd things 🙂
[12:09] <dante-as> I would need to create it without interactivity as will be part of user-data
[12:09] <dante-as> Is it possible?
[12:10] <mgedmin> adduser can be used non-interactively (IIRC you need to pass --disable-password so it doesn't stop to ask)
[12:11] <cousteau> dante-as: so you first create the user with something like:  useradd  -c 'John Smith'  -G 'sudo,plugdev,dialout,someothergroups'  -m  -s /bin/bash  johnsmith
[12:11] <dante-as> Hmm, let rephrase it - I would need to create the user with password included, but without interactivtiy
[12:11] <cousteau> and then set its password with:   passwd johnsmith
[12:11] <mgedmin> ah, it also asks for GECOS information, unless you pass --gecos or add a --sytem user
[12:12] <SuperLag> oerheks: sure enough, you were right... phased updates. Both of those packages updated this morning.
[12:12] <dante-as> cousteau: that would require to set the password with interactivity. I would need it without interactivity
[12:12] <oerheks> SuperLag, thanks, have fun!
[12:13] <ogra> dante-as, use adduser without setting a password, ten you use chpasswd to set a PW
[12:13] <ogra> *then
[12:13] <mgedmin> chpasswd(8) is a tool that can set user passwords noninteractively
[12:14] <dante-as> ok, let me try
[12:15] <cousteau> -c/--comment is the user description (their full name), -G/--groups the initial groups (include "sudo" if you want them to have access to sudo, and e.g. "plugdev" and "dialout" are usually good if you work with UART and stuff like that; those are only a few examples); -m/--create-home will create a ~johnsmith home directory at /home/johnsmith (by default it doesn't), and -s/--shell specifies the default login shell (I think useradd defaults to /bin/sh
[12:15] <cousteau> in ubuntu instead of the more practical /bin/bash)
[12:17] <cousteau> dante-as: what is the use case you have where you want to set passwords non-interactively?  Maybe mgedmin's suggestion of using chpasswd is a better solution
[12:18] <cousteau> I guess the usage (assuming bash) would be   chpasswd <<<'johnsmith:password123'   or   chpasswd <<'EOF'  johnsmith:password123  EOF
[12:19] <cousteau> but I'm not really sure what are the risks of simply using `useradd --password password123`, and whether my other suggestions defy the purpose of not using that option
[12:39] <cousteau> to wrap up my question... any reason I would NOT want to use `sudo -H` and SHOULD use `pkexec` instead?  (as a user, not as a developer of some script meant to be run graphically)
[12:40] <cousteau> ...and also I'd like to know what's with this `xhost +` that I needed to call
[12:42] <mgedmin> pkexec can open a GUI password prompt (well, ask gnome-shell to show it via whatever polkit dbus mechanism); sudo needs a terminal to ask for the password
[12:43] <cousteau> but I'll ask about `xhost` elsewhere
[12:43] <mgedmin> xhost + is to allow X11 apps to work when the uid of the X11 app doesn't match the uid of the logged in user (e.g. app running as root vs regular user)
[12:44] <mgedmin> it's an old security mechanism from when we had multiuser machines to not allow other users sniff your passwords etc.
[12:44] <cousteau> mgedmin: yeah, but as a user who just wants to run a program, there's no difference between running sudo from a terminal or running pkexec from a terminal.  If I were writing a script for someone else to open e.g. by double-clicking, then that's a different scenario where I understand why I'd want to use pkexec.
[12:44] <cousteau> I see
[12:45] <mgedmin> yeah, if you always run from a terminal there's not much difference
[12:45] <mgedmin> sudo can remember the password verification for a little while (15 minutes iirc) as long as you reuse the same terminal
[12:45] <mgedmin> I don't know if pkexec has anything like that
[12:45] <cousteau> ...but I've never needed that in the past, and I've run a great deal of graphical apps with `sudo -H` or `gksudo` or `gksu`, why do I need it for this?
[12:46] <mgedmin> there are probably technical reasons why pkexec is superior, but I don't remember them
[12:46] <mgedmin> (running GUI apps as root is generally accepted to be a Bad Idea, for various reasons)
[12:47] <cousteau> (not sure if "this" is just "the latest ubuntu version", or "this specific program", or "the current system configuration", or "ever since wayland started being used")
[12:47] <cousteau> mgedmin: oh, I'm interested... which are those various reasons?
[12:47] <cousteau> I keep running stuff under `sudo -H` with a trembling pulse fearing I will break something
[12:48] <mgedmin> one of the main reasons is that large GUI toolkits tend to have exploitable bugs in them, so it's easier to make a GUI app running as root to do evil things
[12:48] <mgedmin> another thing is when you ask sudo to preserve your home directory, a bunch of dotfiles become root-owned, and then when you run the same apps as non-root they end up being unable to save settings/history/etc.
[12:49] <cousteau> Has anyone here ever been locked out of their graphical session because some program decided to create a ~/.Xauthority lock as sudo, and couldn't log in graphically ever again, until they logged in from a tty and manually deleted/chowned that file?  I have :I
[12:49] <mgedmin> (sudo preserves $HOME used to be default, and I had gotten into a habit of running `find ~/ -uid \! 1000 -ls` to discover problems)
[12:50] <cousteau> mgedmin: ok.  (1) is not really an issue since this file is an installer, so of course it needs access to my system.  Not sure if having other apps leeching into that app for evil purposes is a concern.  And not sure if pkexec et al would solve that.
[12:51] <cousteau> (2) is solved by running `sudo -H`, and is the reason one of the first things I do whenever I set up a new linux account is to add `alias sudo='sudo -H'` to my .bashrc
[12:51] <cousteau> (I think there is a system-wide option for that)
[12:52] <cousteau> I remember that MAAAAANY years ago I proposed that -H to be the default in the Ubuntu platform where users proposed stuff and then voted on them, but it got very little support
[12:52] <mgedmin> speaking of sudo and friends, what's a good way to allow a user (me) run echo 0 > /sys/class/leds/tpacpi::power/brightness as root without a password prompt
[12:53] <EriC^^> mgedmin: did you try using xbacklight?
[12:53] <cousteau> do you mean without the password prompt getting in the way, or without ever needing a password prompt at all?  For the former, you usually do it like   sudo sh -c 'echo 0 > /sys/class/leds/tpacpi::power/brightness'
[12:54] <mgedmin> this command turns off the power LED, not the display brightness
[12:54] <cousteau> and... oh ok I didn't bother to read what the command did... yeah I see why you would want to do that without being root evvery time
[12:54] <mgedmin> I want to Alt-F2, turn-off-power-led, enter and not be bothered with any password prompts
[12:54] <mgedmin> then enjoy my movie at night without extraneous white lights (why did Lenovo have to make all the LEDs white?)
[12:55] <mgedmin> I suppose I could add 'NOPASSWD: /bin/sh -c "echo ..."' to my sudoers file...
[12:55] <EriC^^> mgedmin: "xset dpms force off" this doesnt work?
[12:56] <mgedmin> I don't want to turn off my display, I want to turn off the little LED light in the middle of the power button
[12:56] <cousteau> it's weird that that block device is owned by root:root.  I was expecting it to be owned by some less restricted group, e.g. plugdev or something
[12:57] <cousteau> ...maybe you can chmod that file?
[12:57] <ioria> mgedmin, you use a unit service at startup
[12:57] <mgedmin> yeah, I do that for the mute and mic mute LEDs
[12:58] <mgedmin> but usually I want the power LED to be visible, except when I'm watching a movie at night
[12:58] <ioria> mgedmin, something like this : https://n.ethz.ch/~dbernhard/disable-led-on-a-thinkpad.html
[12:58] <lotuspsychje> nice find ioria
[12:59] <BluesKaj> Hi all
[12:59] <ioria> mgedmin, maybe you add a condition ; e.g if your player is running; then do that
[12:59] <mgedmin> hmmm I could create the systemd unit without the WantedBy and then add 'NOPASSWD: systemctl start disable-power-led' to sudoers, then have my turn-off-power-led do the sudo systemctl start ... thing
[13:00] <ioria> mgedmin, or even a .timer for night time
[13:00] <mgedmin> anyway time for me to go, thanks for all the ideas!
[13:00] <ioria> lotuspsychje, hey lotus; all good ?
[13:00] <lotuspsychje> yeah mate tnx ioria
[13:04] <cousteau> mgedmin: if you're adding an init script for stuff, you could add an init script that chmod or chown that special file
[13:09] <Guest5> :]
[13:19] <Guest6> Hi! After starting the installation of Steam from Ubuntu 20.04 Package Repository I wanted to reboot my system and now I can't start it anymore. In Grub I can choose between my windows system (which works fine) and my ubuntu one, which doesn't restart. Any tips or help?
[13:25] <EriC^^> Guest6: start by choosing an older kernel from the "Advanced" menu
[13:31] <Guest6> okay
[13:36] <Guest6> so I got into the recovery menu - any suggestions what I should do next? Repair broken packages?
[13:57] <cousteau> Guest6: do you get any error message?
[13:58]  * cousteau trying to recall if installing Steam did something weird on him
[13:58] <Guest6> no I didn't
[14:00] <cousteau> so if you boot normally, what happens?
[14:00] <cousteau> spends a long time booting?  you get an error?  it reboots by itself?
[14:01] <cousteau> can you press Ctrl-Alt-F1 and login on a terminal after booting normally?  if so, maybe the issue is that you can't log in graphically, only via command line?
[14:01] <Guest6> my screen freezes with my laptop logo
[14:07] <Guest6> tried booting normally via recovery menu now I'm logged in but I can't see my desktop, can only use search box, calender and stuff
[14:19] <cousteau> Guest6: when your screen has frozen, if you press Ctrl-Alt-F1, do you get a command line prompt?
[14:19] <cousteau> or, can you do Ctrl-Alt-F1 now that you've booted, and open a terminal?
[14:20] <cousteau> there you can search for possible things that may have happened, and at least you have a chance to fix the issues
[14:20] <Guest6> let me try
[14:21] <Guest6> no, I can't open the terminal
[14:23] <ogra> alt-left/rigth cursor keys should work too if you are still on the boot splash ...
[14:23] <cousteau> one possible issue, if the problem is that your home got corrupted by installing steam, then this command may help you find files that were touched by root:   find "$HOME" \! -user "$USER" -nowarn
[14:24] <cousteau> (or   find /home/youruser \! -user youruser -nowarn   if you're on a terminal owned by root)
[14:27] <Guest6> unfortunately I can't find a way to open the terminal
[14:28] <ogra> Guest6, on the boot splash, is there the ubuntu spinner at any time before it hangs ?
[14:29] <ogra> (under the vendor logo)
[14:29] <ogra> if so, hold the alt key and press the left or right cursor key to get to the terminal messages at least ... you should see wheer it stops the boot then
[14:29] <Guest6> no
[14:30] <ogra> no spinner at all ?
[14:30] <Shaggy> Hi! Where can i find help with driver install for wifi adapter on linux mint? ^^
[14:30] <ogra> are you sure you did not install anything else or did a system update before installing steam ?
[14:30] <ogra> Shaggy, in a mint forum perhaps ...
[14:30] <ogra> Shaggy, here is onyl ubuntu support
[14:31] <Shaggy> Sorry then :C Do you know where can i find mint network on irc?
[14:31] <ogra> !alis
[14:31] <ogra> Shaggy, ^^
[14:31] <Guest6> No spinner
[14:33] <Guest6> any chance I could do sth in the recovery menu? At least I can get to that
[14:33] <Maik> !Mint | Shaggy
[14:33] <Shaggy> It was spotchat! omg thanks, i just forgot what network it was
[14:33] <Shaggy> sorry again
[14:34] <Shaggy> Thanks <3
[14:34] <Maik> no problem :)
[14:35] <Guest13> Installer for Ubuntu-22.0.4.1 does not work for us, filed bug https://bugs.launchpad.net/ubuntu/+bug/1986674
[14:38] <ioria> Guest6, what did you exactly before the crash ?
[14:39] <ioria> *do
[14:40] <Guest6> I wanted to install Steam from Ubuntu 20.04 Package Repository and when it said "reboot system when convenient" I did that. And since then I can't reboot it
[14:41] <ioria> Guest6, in Recovery, can you get a prompt ?
[14:42] <ioria> Guest6, i mean 'root shell'
[14:42] <Guest6> yes - drop to root shell prompt
[14:43] <ioria> Guest6,   do you have connectivity ?  ping google.com
[14:43] <Guest6> you mean after root?
[14:43] <ioria> yes, ofc
[14:46] <enigma9o7[m]> Before you installed steam, did you run updates, perhaps a kernel update?
[14:47] <Guest6> no, don't think so.
[14:47] <Guest6> and nop, no connectivitiy
[14:47] <ioria> Guest6,  ping 8.8.8.8
[14:48] <Guest6> Do you think it makes more sense at this point to just reinstall partition?
[14:48] <clamiax> hi guys
[14:49] <ioria> it would be make sense if you answer
[14:49] <Guest6> answer to what question?
[14:49] <ioria> Guest6,  ping 8.8.8.8
[14:49] <clamiax> I just upgraded my server to Ubuntu 22.04 and noticed that dkimproxy is not available anymore. Is there an alternative package or do I need to install that by hand? Still googling for a solution.
[14:50] <ioria> Guest6, run it
[14:53] <Guest6> tty doesn't work
[14:54] <Guest6> somehow normal boot works again
[14:54] <Guest6> thank you guys!
[14:57] <javi404> anyone run into issues upgrading from 20 LTS to 22?
[14:58] <downeast> javi404: someone was in here yesterday with an issue related to gpg
[14:58] <javi404> got it, im running old hardware, so that is my main worry.
[14:59] <javi404> AMD Phenom(tm) II X6 1090T Processor
[14:59] <javi404> 10+ years old
[14:59] <javi404> downeast: thanks.
[14:59] <Maik> if 20.04 runs well on your hardware then 22.04 should too
[14:59] <downeast> :)
[14:59] <javi404> Maik: got it.
[15:00] <javi404> just didn't know if any drivers got pulled.
[15:00] <Maik> also... back up you important data first
[15:00] <javi404> Maik: always
[15:00] <Maik> you/your
[15:00] <Maik> :)
[15:00] <javi404> :-)
[15:04] <javi404> one thing I forgot to mention.
[15:05] <javi404> I'm booting off of a mdraid device.
[15:06] <javi404> raid1
[15:06] <javi404> md0p1 259:0    0  1000M  0 part  /boot
[15:06] <javi404> will this break or has anyone else who boots off of a raid1 have had any issues?
[15:24] <z1> In the name of Allah AlAazam the sustainer of existence the most powerful _ Alhamdulilah Aazam Alaalamin - the great the merciful - owner of the judgement day - Ye alone we worhip , Ye Alone we seek help
[15:24] <z1> Guide us the straight path - the path of those whom u bestowed your grace - not the path of thoose who have earned your anger - nor those who have Gone astray Amen
[15:24] <z1> -
[15:24] <z1> _ Greetings  - In the name of Allah AlAazam the sustainer of existance the most powerful : (Praised) he is in Quran the Global Book ; Sunni islam is the true religion of God (Allah Rules and the power is in his hands) _ monotheism islam is righthood it is the belief in God Allah the King of kings the right -
[15:24] <z1> _ No body asked U to commite crimes AND kiLL muslims and innocents SySTeMATicly * which U r judged upon by God the redeemer -  by the authority of whats mentioned above and from prophet Gabriel the Great and from Allah::
[15:24] <z1> _ Most IMPORTANT - U have three choices or u will be severly judged and in Pain by Allah : -a- stop targetting sunni Muslim people and poor people everywhere under the consequences of being ended by Allah the redeemer. -b- AID and backup Ukraine in this war now with all power u got -c- be true muslim
[15:25] <oerheks> z1, please keep this channel clear for ubuntu support, thanks.
[15:26] <leftyfb> !op | z1
[15:26] <leftyfb> oerheks: same idiot as yesterday
[15:26] <oerheks> oh oke, ops can go back to their icetea.
[15:27] <sarnold> oo I love iced tea
[16:13] <arg_> That's what i always complain at mad hatter T party...not icy enough.
[17:37] <andypandy> On my Ubuntu 21.04 server I suddenly get the error message " The repository 'http://se.archive.ubuntu.com/ubuntu hirsute Release' no longer has a Release file.". I thought 21.04 would be support for quite some time yet. Any idea whats happening?=
[17:38] <cbreak> andypandy: 21.04 has been out of support for a year or so
[17:39] <andypandy> Ahh. Forogt its not an LTS, correct?
[17:39] <cbreak> it is indeed not.
[17:39] <andypandy> So what? Apt stops working? Anything I can do?
[17:39] <cbreak> I'd recommend you update to 21.10, and then 22.04, but 21.10 has also been out of support for some months
[17:40] <cbreak> there's a way to update such old systems via alternate servers, but for such an intermediate release, I'm not sure if that still works
[17:40] <cbreak> !oldupdates
[17:40] <ezakimak> my dmesg is getting spammed by an nvidia driver error: "[drm:nv_drm_gem_fence_attach_ioctl [nvidia_drm]] *ERROR* [nvidia-drm] [GPU ID 0x00000100] Failed to lookup gem object for fence attach: 0x0000000a"
[17:40] <ezakimak> is there any way to avoid or squelch it?
[17:40] <cbreak> hmm... wonder what that trigger was
[17:41] <ogra> !eol
[17:41] <cbreak> andypandy: https://www.barryodonovan.com/2022/01/31/upgrading-legacy-versions-of-ubuntu might help
[17:41] <ogra> !eol | andypandy
[17:41] <andypandy> I have to say
[17:42] <andypandy> Very suprised
[17:42] <ogra> why is that ?
[17:42] <cbreak> about what specifically? :)
[17:42] <andypandy> Seems such a non-linux-kinda-way that it suddenly stops working. But I guess its because I happened to install server in an in-between release that had features I wanted
[17:43] <cbreak> not really
[17:43] <andypandy> I have been waiting for the new LTS so that I could upgrade to it
[17:43] <cbreak> the servers won't keep unsupported dat for ever
[17:43] <cbreak> I've not used rolling release distros myself, but from what I read, they have it much worse
[17:43] <cbreak> if you don't install updates there for a few months, you can already get into trouble
[17:44] <ogra> well, it surely bugged you for quite a while to upgrade on the motd screen ... (which admittedly does not help much if you never log in to your server 🙂 )
[17:44] <cbreak> with ubuntu, you have 10 months or so of support for most releases
[17:44] <ogra> 9
[17:44] <cbreak> and many years for LTS releases
[17:44] <cbreak> and more if you pay
[17:44] <ogra> all non LTS releases have 9 months, LTS 10y
[17:44] <ogra> nah
[17:44] <ogra> 10y for everyone ...
[17:45] <ogra> you need to open an ubuntu advantage account after 5y ... but it is free
[17:45] <enyc> Oh great, ubuntu 20.04 tftpd buggy ;/
[17:45] <enyc> Aug 16 18:31:00 user-ThinkPad-L450 tftpd[19863]: tftpd: trying to get file: /spa122.cfg
[17:45] <enyc> Aug 16 18:31:00 user-ThinkPad-L450 systemd[1]: Started Process Core Dump (PID 19864/UID 0).
[17:45] <enyc> Aug 16 18:31:01 user-ThinkPad-L450 systemd-coredump[19865]: Process 19863 (in.tftpd) of user 65534 dumped core.#012#012Stack trace
[17:45]  * enyc grumbles!
[17:45] <cbreak> whoa, tftp :O
[17:45] <ogra> in.tftpd ? i thought thats dead since decades
[17:45] <andypandy> Well. I installed the latest at the time. And then waited for next LTS. Did not seem very unreasonable to mee
[17:45] <andypandy> But I am more used to windows, which is built in a completely different way
[17:45]  * ogra remembers even in 6.04 we only supported tftpd-hpa in ubuntu
[17:45] <cbreak> andypandy: you should have installed the latest _lts_ :)
[17:46] <cbreak> andypandy: yeah, on windows, you'd get force updated
[17:46] <cbreak> whether you like it or not
[17:46] <andypandy> ... which lacked versions and support I needed, and was quite old at the time
[17:46] <ogra> well, next time you know 😉 just make sure to update in time and you save some hassle
[17:46] <cbreak> a coworker of mine ended up on 11 by accident
[17:47] <andypandy> Well. I am now forced to end up at the next version if I want any updated or use the server in the most basic ways it seems.. Unless I am missing soemthing
[17:47] <ogra> you just follow what the bot linked above
[17:47] <cbreak> you can stay with what you have, if you don't need security updates... or any updates
[17:47] <cbreak> I'd recommend updating though
[17:47] <ogra> !eol | andypandy
[17:48] <andypandy> Well. I guess I will have to update the server. And hope it doesnt get borked
[17:49] <cbreak> make a snapshot :) or backup
[17:49] <ogra> you will have to do it twice to get to the LTS though
[17:49] <cbreak> yeah... 21.10 first, then 22.04. And after that, you should change your track to lts
[17:49] <ogra> hirsute is actually 2 releases away from the LTS
[17:49] <andypandy> Yeah
[17:49] <andypandy> I always planned on doing it anyways, just had hoped of not being forced into it
[17:50] <andypandy> And I cannot backup everything. So I will just make backups of the most important parts and hope for the best
[17:50] <ogra> in general i'd not use nonLTS releases at all on public servers
[17:50] <ogra> if you need newer versions of apps, use snaps, lxd containers or docker containers
[17:50] <andypandy> This is my homeserver. And if I recall correctly there were wireguard and/or zfs-stuff in this release that was not in the lts I wanted
[17:51] <andypandy> The zfs array should be fine to import I hope. So I will focus backup on the OS disk, which should be quite easy tbh. I am just not comfortable with dist upgrade
[17:51] <cbreak> at work I used some pre-lts servers for a year or so, because of drivers
[17:51] <ogra> hmm, yeah, wiregueard and zfs are indeed something you cant easily get with containers or snaps or so
[17:51] <cbreak> but when I reached lts, it was much nicer :)
[17:52] <cbreak> in the end I used the nvidia drivers from nvidia anyway, so it wouldn't have mattered even :/
[17:52] <cbreak> ogra: I do use wireguard in lxc... but I think it still somehow relies on the host kernel
[17:53] <cbreak> there's also the userland wireguard...
[17:53] <ogra> right, needs kernel bits that were perhaps not there in the above case
[17:54] <andypandy> I also use wireguard in docker, but it uses the OSs stuff in some way
[17:54] <andypandy> zfs is in the kernel I believe?
[17:54] <cbreak> yes, absolutely
[17:54] <ogra> parts of it
[17:55] <cbreak> don't run zpool upgrade unless you're sure :)
[17:55] <cbreak> and zfsf you can get via a DKMS, if you want to build it yourself
[17:56] <cbreak> it's in some ways better than ubuntu's build, but it's also much less convenient, and not as reliable
[17:56] <andypandy> I will just stick with the one in ubuntu...
[17:57] <andypandy> But its scary shit. But I mostly just use the server for docker and zfs. So it really should not be to bad I hope
[17:58] <cbreak> I've had 21.04 on this very machine, and migrated to 22.04 over time, all with root on zfs
[17:58] <cbreak> it worked fine
[17:58] <andypandy> I think I have plain old ext4 on the OS nvme ssd. Then 2 different zfs raids with hdds
[17:58] <cbreak> (I did some non-standard surgery too, so ... this system isn't very stock anymore... but it still works :D)
[17:59] <cbreak> root on zfs is very nice
[17:59] <cbreak> you could snapshot the OS, upgrade, and if it fails, just roll back
[17:59] <andypandy> My problem is that I only use Ubuntu for server applications at work and at home. So if something goes wrong I probably wont be able to fix it
[17:59] <cbreak> or clone the OS, update the clone, and have both
[18:00]  * ogra notes that we're getting a bit off topic for the support channel ... we should take it to #ubuntu-discuss ...
[18:02] <andypandy> Well since its too late to just do this simply anyway there is no use trying to rush it. Might aswell do it a quite weekend
[18:02] <andypandy> Thanks for the help guys
[18:02] <ogra> good luck !!
[18:14] <ezakimak> where do I add a kernel boot parameter? the article in the wiki says to edit /etc/default/grub, but if the file doesn't exst refers to a non-existent instructions for earlier releases
[18:16] <sarnold> ezakimak: here's one from my 20.04 laptop https://termbin.com/f1ta  -- certainly a lot of it won't make sense for your environment, but it shows you a lot of what's common
[18:18] <ezakimak> so you just edited the /boot/grub/grub.cfg directly?
[18:19] <ezakimak> pretty sure that's auto generated, and there's a place you're supposed to put them that gets picked up by update-grub
[18:22] <ezakimak> all the docs talk about /etc/default/grub, not /etc/default/grub.d
[18:27] <oerheks> see the grub wiki
[18:27] <oerheks> !grub
[18:28] <oerheks> https://help.ubuntu.com/community/Grub2/Setup#Configuring_GRUB_2
[18:29] <ezakimak> okay, again, it only mentions /etc/default/grub, not the /etc/default/grub.d/ directory
[18:32] <oerheks>  it mentions  /etc/grub.d/
[18:35] <ezakimak> and?
[18:35] <ezakimak> I need to know the format for using /etc/default/grub.d/  what is the file name convention, and are their contents the same format as the /etc/default/grub file that is documented?
[18:41] <jhutchins> ezakimak: Have you considered dropping a file there to see what happens?
[18:41] <jhutchins> ezakimak: Anything fully documented in Linux is deprecated and obsolete.
[18:42] <ezakimak> I found it: https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/901600
[18:42] <ezakimak> back in the original bug/feature request thread from 2012. docs have not been updated to include it since... so now it's a doc bug.
[18:43] <ezakimak> would be a one-liner edit to the wiki...
[18:44] <ezakimak> "Files /etc/default/grub.d/*.cfg are sourced after the file /etc/default/grub and contain the same format"
[18:49] <arraybolt3[m]> I have wiki editor privileges and can fix that pretty quickly.
[19:27] <webchat94> I'm having a problem with running a bash script via a desktop launcher.  With some online research, I was able to write a script (that is executable) that will parse the name of and path to a media file, then use that info to launch a media player opening that file while also loading an associated subtitle track that the media player wouldn't
[19:27] <webchat94> otherwise find easily because of its location.
[19:27] <webchat94> If I run the script from a prompt ($ /home/me/foo.sh /home/me/bar.vid), it works fine, loads the media player playing bar.vid with the subtitles at /home/me/Subs/bar.srt as intended.  However, I'd like to be able to drag and drop the media player in the GUI, so I made a desktop launcher (and made it executable) with the command "'/home/me/foo.sh'
[19:27] <webchat94> %u".  When I drop a media file on it. the player opens the video file, but doesn't properly load the subtitles.  If I tell the launcher to run in a terminal, the immediate output from the media player says that the .srt file doesn't exist, which is desmonstrable false.
[19:27] <webchat94> Does anyone have an idea what's going wrong here?  Does the launcher sandbox the application being launched so it can only modify files it is directly handed, or something like that?  Why would the script via a launcher only be able to access the media file but not the subtitle file when the script works fine when run from the command line?
[19:29] <sarnold> try putting quotes around that %u  ?
[19:29] <webchat94> sarnold if you mean extending the ''
[19:30] <sarnold> I mean replacing %u   with "%u"
[19:33] <webchat94> ''s too enclose the %u as well, i tried that and it didn't help.  i could try separate quotes around the %u like '/home/me/foo.sh' '%u' I can try it, but you'd think if that path wasn't being passed in properly, the media file wouldn't be opened either... So weird that it can get the main file but not the secondary one...
[19:33] <alkisg> webchat94: to continue troubleshooting, you may put these after line 1 in your script:
[19:33] <alkisg> exec 2>/tmp/debug.log
[19:33] <alkisg> set -x
[19:34] <alkisg> Then check the log for the commands that your script runs (which include the parameters, e.g. the script might misbehave on file:/// parameters)
[19:34] <alkisg> While another approach would be to use "open with...." in your file manager, and completely avoid the desktop launcher
[19:34] <alkisg> (and save the open with... association)
[19:35] <sarnold> webchat94: note that '' and "" are two very different quotes and they do different things in the shell
[19:35] <sarnold> webchat94: I don't know how exactly your launcher is launching things :) but "" feels more likely to work with a %u in it. heh
[19:38] <alkisg> AFAIK %f, %u etc do not get quoted at all in .desktop files: https://specifications.freedesktop.org/desktop-entry-spec/latest/ar01s07.html
[19:39] <alkisg> > Field codes must not be used inside a quoted argument, the result of field code expansion inside a quoted argument is undefined.
[19:39] <webchat94> sarnold I used the '  ' because I created the launcher using the GUI and my path to the script has spaces in it, so it used them automatically.  I added the %u myself and tried it in and out of the ' ', with only outside working.  I just tried it with '/home/me/foo.sh' "%u" and it had the same incorrect behavior as without the quotes.
[19:39] <sarnold> akaWolf: oh nice!
[19:39] <sarnold> webchat94: sorry, ignore my advice entirely :) alkisg went and found the docs, hehe
[19:39] <alkisg> webchat94: try with Exec=/home/me/foo.sh %f
[19:40] <alkisg> No quotes
[19:40] <sarnold> akaWolf: sigh sorry for the highlight
[19:40] <alkisg> No %u, but %f
[19:40] <webchat94> alkisg okay
[19:42] <webchat94> alkisg that did it, thanks!  can you give a quick answer why it fixed it, or should i just give the %u vs %f a quick browsing around in some docs?
[19:43] <alkisg> webchat94: %u maps to file:///path and your script probably breaks with it
[19:43] <oerheks> investigate yourself is key. you might find more goodies.
[19:43] <alkisg> While %f maps to /plain/path, without file:/// in front
[19:43] <alkisg> It's all in the docs, yup
[19:44] <alkisg> And %F means "accepts multiple files in a single process"
[19:44] <alkisg> (invocation)
[19:44] <webchat94> ah, okay, thanks very much! i had to learn just to get the script written, and interactions between the script, launcher, etc was potentially more than i could figure out myself for now.  thanks for the tip!
[19:45] <webchat94> ah yeah, maybe the media player didn't mind being passed the path as file:/// but the command line switch for the subtitles wasn't able to.
[19:46] <webchat94> well, not maybe, it seems to be the case
[19:46] <alkisg> 👍️
[19:46] <webchat94> i didn't realize the  %u vs %f thing and was just trying to hack something together
[19:46] <webchat94> thanks very much
[19:47] <alkisg> In general it's easier to create /usr/local/bin/your-player wrappers
[19:47] <alkisg> Then by just double clicking on a video, it automatically tries to locate the subtitles
[19:47] <alkisg> It's already accosiated etc
[19:47] <webchat94> and yeah, oerheks i agree, but i'm already a bit out of my comfort zone, and it was getting to too many levels of me not knowing what was going on
[19:48] <alkisg> What's your media player name?
[19:48] <webchat94> alkisg i'll look into / consider that.  in this case it's an unusual directory structure and for now i feel i only need it for this one set of files, but maybe it will make sense to make it easier going forward
[19:48] <webchat94> smplayer for this
[19:49] <alkisg> You can easily check "if the media is in that dir, then search that other dir for subtitles; otherwise just open the media without subtitles"
[19:50] <webchat94> but the directory structure is actually /home/series/ep1.vid and /home/series/Subs/ep1/2_Eng.srt
[19:50] <alkisg> Anyway, you have many roads ahead of you; enjoy learning :)
[19:50] <webchat94> so it's a little funky
[19:50] <webchat94> (each episode having its own dir for subs)
[19:51] <webchat94> probably because there are two .srt files per video
[19:52] <webchat94> thanks for the help, alkisg , and yeah, always learning!
[19:53] <alkisg> It's not hard, if you need help with the script, you can also ask for help in #bash
[19:54] <webchat94> i was able to get the script on my own (yay research and docs and learning!), but it was less clear to me where the problem was when it had to interact with the launcher, too.
[19:55] <webchat94> the problem with the wrappers, it seems to me, would be that i don't normally need subs loaded, especially with this type of directory structure, so i wouldn't want to assicoate every video file of that type with the custom wrapper anyway, so it would probably still be a drag/drop thing, too, for me, since i'd prefer to do it in the gui.
[19:57] <webchat94> i am (unjustifiably) rather proud of myself for just getting the bash script, right, though :)   Thanks for helping complete the package to deliver actual results!
[19:57] <alkisg> webchat94: the wrapper can have an "IF the file is in /home/series, only THEN search for subs"
[19:58] <alkisg> That will just take 0.001 sec, so you can use it for all media, it doesn't harm
[20:02] <TarekZ> In the name of Allah Aazam Tarek bin Ziad the sustainer of existence the most powerful _ Alhamdulilah Aazam Alaalamin - the great the merciful - owner of the judgement day - Ye alone we worhip , Ye Alone we seek help
[20:02] <TarekZ> Guide us the straight path - the path of those whom u bestowed your grace - not the path of thoose who have earned your anger - nor those who have Gone astray Amen
[20:02] <TarekZ> _ Greetings  - In the name of Allah AlAazam the sustainer of existance the most powerful : (Praised) he is in Quran the Global Book ; Sunni islam is the true religion of God (Allah Rules and the power is in his hands) _ monotheism islam is righthood it is the belief in God Allah the King of kings the right -
[20:02] <TarekZ> _ No body asked U to commite crimes AND kiLL muslims and innocents SySTeMATicly * which U r judged upon by God the redeemer -  by the authority of whats mentioned above and from prophet Gabriel the Great and from Allah::
[20:02] <TarekZ> _ Most IMPORTANT - U have three choices or u will be severly judged and in Pain by Allah : -a- stop targetting sunni Muslim people and poor people everywhere under the consequences of being ended by Allah the redeemer. -b- AID and backup Ukraine in this war now with all power u got -
[20:02] <webchat94> alkisg Well, that's a good point.  If I find myself loading subs more often, I'll look into that for sure.  It's definitely going to be nice having them load up automatically in this case and not have to load them manually, especially with them being annoying to browse to for this series.  Maybe once I get used to it, I'll find myself forced to
[20:02] <webchat94> look into the wrapper asap. :)
[20:03] <webchat94> haha, sorry ASap
[21:54] <Square> Just accepted upgrade to 22.04.1
[21:54] <Square> wish me luck
[22:16] <wez> Square: How did you go?
[22:21] <Square> omg. I got some question on firefox moved to snap and now upgrade stalled with "Frontend is not responding"
[22:21] <Square> phew.. it resolved itself
[22:22] <wez> That was a close one
[22:31] <jhutchins> Is chrome still a normal .deb, not a snap?
[22:31] <leftyfb> jhutchins: correct. Only provided by Google.
[22:32] <jhutchins> !info chromium
[22:33] <leftyfb> chromium, however, is a snap in ubuntu
[23:42] <SleePy> Upgraded a 20.04.4 to 22.04.1.  Rebooted ant it won't complete a boot.  Last message is "Reached Target: Remote File Systems".  Any thoughts as to what to try?  It seems it completed the NFS mounts, but I'm not sure what is is waiting for or stuck on now
[23:43] <tarzeau> SleePy: boot into init=/bin/bash and play it through manually?
[23:43] <tarzeau> SleePy: i've done like 200 such upgrades, had no such problem
[23:44] <sarnold> of my upgrades to 22.04, one of them got stuck because the networking wasn't translated :(
[23:44] <sarnold> I wound up writing an /etc/netplan/foo.yaml by hand for that system, which isn't great fun to do when you don't have networking, hehe
[23:44] <tarzeau> well now that there's 5 ways to do networking, how you do networking?
[23:47] <SleePy> 5 ways to do networking.. Sounds like we need a 6th way to combine a all the standards
[23:47]  * sarnold nods
[23:50] <SleePy> Ok, I disabled everything except the essentials in fstab and it boots.  I think its getting held up on the kvm driver for the file system passthrough mount I had
[23:57] <SleePy> Yup, reanbled it and it times out.  virtio doesn't seem to work.  I guess I will have to see if anyone has info on that.  I may wait until I upgrade the host to 22.04.1 as well.