[00:44] <Guest62> hello, how can i convert a file which has
[00:44] <Guest62> }
[00:44] <Guest62> {
[00:44] <Guest62> to
[00:44] <Guest62> },
[00:44] <Guest62> {
[00:45] <BadAtom> Guest62: on different lines?
[00:46] <Guest62> BadAtom, } and { are on different lines. I need to add a comma between them
[00:46] <Bashing-om> Guest62: Your are guilty of flooding the channel - please use a paste bin site when thbe quiet is lifted.
[00:46] <Guest62> so I can treat the file as a json
[00:46] <Guest62> Bashing-om : yeah :S
[00:46] <Bashing-om> Guest62: :D
[00:48] <sarnold> Guest62: something similar: sed -i 's/^}$/},' foo
[00:48] <sarnold> Guest62: this doesn't do any sort of checking for the { on the next line
[00:48] <sarnold> and the -i updates the file directly, so be careful with it :)
[00:49] <tomreyn> i think you missed a / in this sed regexp
[00:49] <sarnold> argh that's possible
[00:49] <sarnold> Guest62: something similar: sed -i 's/^}$/},/' foo
[00:52] <Guest62> but it's a json doc
[00:53] <Guest62> so it has other } too and that'll mess up
[00:54] <sarnold> how many are the only character on their own line?
[00:59] <Guest62> sarnold, thanks for the help but I tweaked a SO answer and got it working
[00:59] <Guest62> https://stackoverflow.com/questions/27659164/how-to-read-multiple-dictionaries-from-a-file-in-python one
[01:00] <sarnold> Guest62: woot :) what answer was helpful?
[01:00] <sarnold> hehe thanks
[01:02] <sarnold> of those answers, I like the 'simplejson' one the most; I don't know if that actually fits your problem well, but it feels the most robust to me
[01:02] <Guest62> yeah that's the one I used
[01:02] <Guest62> and it's working fine
[01:04] <sarnold> it's nice to see this here, every now and then these "big pile of jsons" show up and I don't know good tools for handling them, hehe
[02:21] <hans_> "apt purge thunderbird" seems broken in 20.04: it still remembers the default outgoing server
[02:21] <enigma9o7[m]> puring doesnt remove files from user folder
[02:21] <enigma9o7[m]> you probably have something in .config or .local/share or something
[02:24] <hans_> hmm yup, "apt purge thunderbird; rm -rfv .thunderbird; apt install thunderbird;" worked, it forgot everything!
[06:10] <acu> peace be upon you all
[06:11] <acu> I am wondering do I need to keep IPV6 for my server ?
[06:11] <acu> Like from ISP I have only IPV4
[06:21] <Bashing-om> acu: Can not hurt to keep that IPV6 capability - who know maybe your ISP will catch up someday :D
[08:00] <clarkk> bluetooth has suddenly become unreliable on my ubuntu 20.04 system. When I switched it off via gnome settings, the window says its disabled, but the button looks like it's on. From a shell, systemctl stop bluetooth.service takes a long time, then shows, "bluetoothd[1052]: Unable to get io data for Headset Voice gateway: getpeername: Transport endpoint is not connected (107)"
[08:01] <clarkk> Why is this suddenly happening after working perfectly for 2 years? No changes have been made except the normal updates
[08:03] <clarkk> I've just run systemctl start bluetooth.service, and systemctl status bluetooth.service, and the output seems correct, but gnome doesn't reflect that bluetooth is running
[08:05] <clarkk> If I now run hcitool dev, no devices are listed
[08:06] <clarkk> the output of systemctl status bluetooth.service looks fine
[08:06] <rfm> clarkk, if the software has been fine for years, and suddenly things go bad. must be the hardware
[08:10] <clarkk> rfm, do you mean the laptop hardware or the bluetooth device (headphones)?
[08:12] <clarkk> rfm, just so you know, my irc client doesn't recognise your username. I've never noticed that in the years I've been using irc, Strange!
[08:13] <clarkk> ah, he's gone :D
[08:13] <clarkk> Anyone else able to help me through this, please?
[08:23]  * enyc meows
[08:24] <enyc> clarkk: I would be trying this from a bootable ubuntu-22.04 or derivative USB-stick -or- indeed an older ubuntu 20.04 stick
[08:24] <enyc> this may help confirm does/doesn't work with different software set etc.
[08:25] <clarkk> enyc, by older ubuntu 20.04, do you mean to see if an update broke it?
[08:26] <enyc> clarkk: or any other settings file who-knows!
[08:27] <clarkk> I mean, I understand,  "I would be trying this from a bootable ubuntu-22.04 or derivative USB-stick". What is your aim with older ubuntu 20.04?
[08:27] <clarkk> updates issue?
[08:28] <enyc> clarkk: it could be any changes, not just update packages....
[08:28] <enyc> clarkk: or it could indeed be broken hardware
[08:28] <clarkk> ok thanks for your help
[08:28] <enyc> clarkk: if it suddenly works from 22.04 stick then you know the hardware must be workable, which will be useful info
[08:29] <enyc> clarkk: if so, i'd do full backup and do the system update 20.04 -> 22.04  in THAT particular case
[08:29] <clarkk> I've managed to attach a different set of headphones. They're exactly the same model. No issue. It seems that the headphones cause the whole ubuntu bluetooth subsystem to fail
[08:30] <enyc> 'faulty headphones likely then
[08:30] <clarkk> but why would that bring the whole system down?
[08:30] <enyc> clarkk: good question, isn't software fun =)
[08:30] <clarkk> not when it costs me time :D
[08:30] <enyc> don't assume etc=)
[08:31] <clarkk> assume what?
[08:31] <enyc> don't assume software or firmware magically fits your expectations =)
[08:32] <heftig-weechat> Are the jammy ddebs broken? I can no longer install libglib2.0-0-dbgsym
[09:41] <iomari891> greetings. What should the permissions be on the files in the folder /var/lib/bind? The OS is Ubuntu 22.04
[09:41] <ogra> sounds more like a question for #ubuntu-server
[09:46] <realivanjx> anyone who uses ubuntu 22.04 gnome wayland, does suspend mode break drag and drop files between windows (nautilus -> chromium browser)
[10:03] <daniel__> hi
[10:06] <luna__> hi
[11:01] <jhave> hello
[11:02] <jhave> why is 22.04 not set as stable for 20.04 upgrade ?
[11:03] <jhave> i dont get any notification about a 22.04 upgrade on 20.04 server ?
[11:07] <luna__> jhave: it will when 22.04.1 is out 4th August
[11:07] <luna__> so in 28 days
[11:09] <jhave> ok thanks :)
[11:14] <jadenlian> quick help  how can i know the size of blocks im using on my hard drive
[11:16] <jeronimo> Hi, I would like to record a video using OBS, for a charity, using my bluetooth headset mic. It's not available. Is there any way I can record high quality audo using my bluetooth headset mic?
[11:18] <jeronimo> jadenlian: sudo fdisk -l ?
[11:18] <jadenlian> jeronimo:thanks
[11:28] <jadenlian> im guessing that when youre installing the os  thats when decide how big your block sizes will be   or can i change those now on my file system even if it would mean major restructuring on the drive
[11:33] <EriC^^> jadenlian: what's the actual problem you're having?
[11:35] <jeronimo> jadenlian: disk you can use a partition manager to resize partitions, when you use a live disk , you can resize filesystems that are normally an use.
[11:36] <jeronimo> in use*
[11:39] <jadenlian> its just that i have a 64G harddrive  and i want to make sure im optimzing my storage use   and when i do <du -h filename> on a file with only 300 bytes   the output is 4.0 k   which im guessing is that my file is been stored in a 4k blocksize
[11:40] <jadenlian> and i usually keep multiple small files  so id like to bring down my blocksizes to optimize  until im able to get a bigger drive
[11:41] <EriC^^> i dont think it matters to actual storage jadenlian, in the sense that you'll be able to store the same amount of actual data regardless
[11:43] <jadenlian> erick^^: i know but the remaining bytes from a 4k blocksize thats only storing 300 bytes can be used for something else
[11:44] <jadenlian> jeronimo: how can i resize my filesystem on my disk
[11:46] <EriC^^> i see jadenlian
[11:47] <jeronimo> jadenlian: using a partition manager
[11:47] <jadenlian> jeronimo:fdisk?
[11:47] <EriC^^> jadenlian: i think you'll have to create a fresh fs with that blocksize then copy the data over
[11:48] <jeronimo> jadenlian: do you have a gui or do you need to use the commandline?
[11:49] <jadenlian> commandline
[11:49] <EriC^^> jeronimo: he wants to modify the blocksize used in the fs, not increase/decrease the fs size
[11:49] <EriC^^> jadenlian: https://askubuntu.com/questions/546621/how-do-i-create-an-ext4-file-system-with-block-size-1024-and-no-reserved-blocks
[11:50] <jeronimo> EriC^^: ah k, yeah then you need to recreate the filesystem probably
[11:50] <jeronimo> I don't know.
[11:51] <EriC^^> yeah i think so as well, i dont think it can be done on the fly
[11:53] <jeronimo> jadenlian: you can try to google the problem but if google doesn't show you good results on how to do it. It probably can't be done
[11:55] <jadenlian> yeah ill google it    but im guessing it can be done because its sort of like defragmenting the disk
[11:56] <EriC^^> jeronimo: did you try the obs-studio package?
[12:03] <jeronimo> EriC^^: actually the problem is not obs, I think I've got to switch to pipewire to get the appropiate AD2P profile
[12:03] <jeronimo> I thinnk it means I have to upgrade my system to 22.04 and then switch to pipewire
[12:04] <EriC^^> ah
[12:47] <p9> how can I check when did specific package version entered archive? On debian this information is at tracker.debian.org
[12:50] <kryl> hi, it appears than package "aufs-tools" is missing in jammy 22.04 LTS, I need it as a dependency, do you need I can find a quick way to install it from an other place ?
[13:03] <ogra> kryl, https://tracker.debian.org/news/1160103/aufs-tools-removed-from-testing/
[13:03] <ogra> and: https://bugs.launchpad.net/ubuntu/+source/aufs-tools/+bug/1947004
[13:17] <BluesKaj> Hi all
[13:56] <kryl> ogra, thank you ;)
[14:49] <PeGaSuS> hi folks. I'm wondering if there's a way to force the installation of PHP 7.4 instead of 8.1 on Ubuntu 22.04 and keep it in a way that it's never upgraded until WordPress has support for 8.1?
[14:54] <ogra> PeGaSuS, there probably is if you resort to PPAs
[14:55] <PeGaSuS> I mean, without PPA.. I'm wondering if there's something like version pinning
[14:55] <ogra> PeGaSuS, google for Ondřej Surý ... (note that we do not support PPAs in here )
[14:56] <ogra> 7.4 is not in the 22.04 archive ... how would you pin aganst something non-existing ?
[15:00] <GBGames> Is there a way to determine what program/service is preventing my computer from hibernating? I noticed that the screen was still on despite having been away for long enough, and I expected the screen to be blanked.
[15:04] <vqueiroz> Do we have anything similar to QtCreator for GNOME? I really like QtCreator. it's probably the best open source IDE out there. But, do we have something developed with GTK+?
[15:04] <KBar> GBGames: `journalctl -b`
[15:04] <KBar> inhibitors should show up in the journal
[15:05] <KBar> GBGames: note that hibernation is very different to screensavers. If you expected it just to be blanked, you need to enable power management in the settings. if you want hibernation, you need to have a swap set up
[15:06] <KBar> (aka suspend to disk in that case)
[15:10] <GBGames> KBar: Ah, ok, I am being imprecise. I have my system setup so that it never powers down, but after so many minutes of no activity, it blanks the screen. Today, however, I noticed that it wasn't doing so, which is normally due to a video playing fullscreen or something else that is running and preventing it.
[15:10] <GBGames> The only other thing I can think of is that I recently had the system update, and it didn't require a reboot, but maybe it is in a weird state.

[15:13] <Guest92> is achronym for?
[15:14] <Guest92> git rm <file>
[15:14] <Guest92> how do I remove file before I commit on linux
[15:17] <ogra> Guest92, try asking in #git ?
[16:33] <OliverUK> Helo
[16:34] <OliverUK> I have been referred here to ask a PCRE question.  I am trying to find out what /* means, could anyone on here please enlighten me?
[16:35] <enigma9o7[m]> I dunno what PCRE means, but /* looks like the way to begin a comment
[16:35] <arraybolt3[m]> enigma9o7: Perl Compatible Regular Expressions
[16:36] <arraybolt3[m]> OliverUK: I'd try #perl for this. This is an Ubuntu technical support spot, and there's probably more knowledgeable people in #perl (I had to look up PCRE just now).
[16:38] <rob0> "zero or more of the '/' character"
[16:44] <OliverUK> rob0: Thank you for your help
[17:07] <Arsimael> Does anyone know where Ubuntu saves its icons? /usr/share/icons is not the right place
[17:09] <rob0> Many icons are probably compiled into binaries. What in particular are you looking for?
[17:11] <Arsimael> The Standard Evolution Icon
[17:15] <jhutchins> Arsimael: No idea what that is.  Is there an icon labeled "Standard Evolution" that appears somewhere? If so, where?
[17:16] <Arsimael> I am searching the icon which is shown for the evolution mail client.
[17:16] <oerheks> maybe it is just called evolution?
[17:16] <Arsimael> yep. But I can't find it.
[17:17] <Arsimael> I get tons of results from different icon themes, but not the 'standard' one
[17:18] <Arsimael> I could get it from wikipedia, but thats just 'working on symptoms' - I have no Idea where the original one is located.
[17:18] <oerheks> Yaru ? /usr/share/icons/Yaru/32x32@2x/apps/evolution.png
[17:18] <oerheks> and there are more themes and sizes,..
[17:19] <jhutchins> find /usr/share/icons/ -name "evolution*"
[17:20] <Arsimael> Yaru is not the right one
[17:20] <Arsimael> https://upload.wikimedia.org/wikipedia/commons/1/1c/Evolution_icon_Tango_48px.svg
[17:21] <Arsimael> that one is not in /usr/share/icons
[17:22] <jhutchins> Is there an Ubuntu Artwork archive somewhere?
[17:26] <mybalzitch> is api.snapcraft.io down?
[17:27] <oerheks> https://status.snapcraft.io/
[17:27] <oerheks> yes sir
[17:27] <mybalzitch> thanks
[17:27] <ogra> Arsimael, $ dpkg -L evolution-common|grep evolution.svg
[17:27] <ogra> /usr/share/icons/hicolor/scalable/apps/evolution.svg
[17:28] <ogra> that should be the default icon
[17:39] <ogra> mybalzitch, there is a bigger server migration going on, i think something went really wrong during that (launchpad has also some issues)
[17:44] <Arsimael> ogra, thanks
[17:46] <jhutchins> !info evolution
[17:50] <Arsimael> And the only application which kann hookup to MS365 in a way which synchronizes without a ton of errors and compliant to certain security policies.,
[18:15] <cluelessperson> is there a way to turn off the annoyatron "Software Updater" ?
[18:16] <cluelessperson> I'm doing `apt-get update and upgrade` multiple times a day
[18:16] <cluelessperson> I don't need a stupid gui to annoy me
[18:18] <jhutchins> Arsimael: Does MS no longer provide a standard IMAP/POP interface?
[18:20] <oerheks> https://status.snapcraft.io/ all systems up.
[18:46] <Arsimael> jhutchins, This is not what MS provides. This is about Enterprise compliance and policies
[18:49] <jhutchins> Arsimael: That's not really what I asked.
[18:49] <jhutchins> I understand that the Microsoft mail system provides additional services such as interfaces for surveilance and control of end-user content.
[18:57] <Arsimael> I think MS still provides such interfaces. Actually I don't know.
[18:57] <Arsimael> for my own stuff I am not using MS services. and at Work, I am not using imap/pop/smtp.
[19:05] <samy1028b> jhutchins, yes, You can enable Pop3/Imap as long as you can do "Modern Authentication".  I know Thunderbird on Windows can do it and I assume Thunderbird on Ubuntu can as well.
[19:11] <elias_a> What on earth is this vulgar speech about proprietary systems here? Shame on you! :P
[19:12] <arraybolt3[m]> elias_a: LOL some of us have to get good software to work with systems like that. It happens.
[19:13] <elias_a> arraybolt3[m]: That is a temporary problem. :)
[19:13] <arraybolt3[m]> 👍️
[19:14] <XoloX> So. I was here before about my laptop without a screen. I got it running nicely. I set up SSH and Plex and Qbittorent. So now from my desk I can access it. (desk is Windows 10). Only thing I can't do is adding a folder to Plex. I don't get why? I can on the laptop (Ubuntu and Plex) go to plek and go to /home/XoLox/ but in plex I can't go on to the
[19:14] <XoloX> folders there.
[19:17] <arraybolt3[m]> XoloX: Hmm, that's odd. I think this is on-topic, so you can wait for someone to help, but you might also try joining #plex in case they know more. You will need to register with NickServ before you can join there, instructions to do so are here: https://libera.chat/guides/registration, once registered, "/join #plex" will take you there.
[19:17] <arraybolt3[m]> XoloX: How are you trying to add a folder to Plex? Are you using Plex's UI, or are you using some other method?
[19:19] <jhutchins> XoloX: That sounds a lot like permissions/ownership issues. If you don't have write permission, you can't create a sub-directory.  If you don't have Execute, you can't see the contents.
[19:27] <XoloX> Maybe? How do I set the Permission all open? It's just on my own network at the moment
[19:28] <ogra> XoloX, https://github.com/dfialho/plexmediaserver-snap/issues/1 ... :) ... i guess you will have to access your files via /var/snap/plexmediaserver/current ... or via /var/snap/plexmediaserver/common ... there is also the opportunity to use external media with it
[19:28] <arraybolt3[m]> ogra: That's only if XoloX is using Snap. I think they also considered using Docker.
[19:28] <ogra> arraybolt3[m], well ... yeah ... indeed
[19:30] <arraybolt3[m]> XoloX: If you want to set the permissions on a folder to about as open as possible, open a terminal in the folder that contains the folder you want to change (so if you're trying to change /home/user/myfolder, open the terminal in /home/user), and then run "chmod -R 0777 ./myfolder". Make sure to make no typos, or you might open up way more permissions than you intend to.
[19:30] <arraybolt3[m]> (And make good and sure you're in the right folder before running the command.)
[19:31] <XoloX> No I just installed it on the laptop. In plex I can go add library to /home/myname/ and than there is nothing. I download detectorists complete in home/myname/plex/tvSeries/detectorists/ I am on localhost:32400
[19:32] <arraybolt3[m]> XoloX: What method did you use to install Plex? Snap? Apt? Script file?
[19:34] <XoloX> https://linuxhint.com/install_plex_ubuntu-2/
[19:34] <arraybolt3[m]> XoloX: https://support.plex.tv/articles/200288586-installation/ Make sure your media is named the way Plex wants it - turns out it's very picky about file names.
[19:35] <XoloX> But I should see folders like desktop, downloads, documents and so on no?
[19:36] <arraybolt3[m]> XoloX: I would think you could. And you installed it from a .deb file, so it shouldn't be too tricky to make this work. Hmm...
[19:38] <arraybolt3[m]> Xolox: Found this command on Reddit, looks like it should do the trick: "usermod -a -G <your username here> plex"
[19:39] <arraybolt3[m]> So if your username is "xolox", do "usermod -a -G xolox plex"
[19:41] <XoloX> I did "usermod -a -G xolox plex
[19:41] <arraybolt3[m]> This should let Plex read anything that's in your user's group (it adds the plex user to the xolox group).
[19:41] <XoloX> permission denied.
[19:42] <XoloX> But than SUDO "the same":
[19:42] <XoloX> And no error!
[19:42] <arraybolt3[m]> XoloX: The sudo ought to do it. Try adding your stuff in Plex now. You just gave the Plex user group-level access to your files.
[19:43] <sarnold> that might only affect things if plex logs in via PAM as part of startup; that seems unlikely to me
[19:43] <sarnold> adding the group to the systemd service file that starts plex feels more likely to work
[19:43] <XoloX> Still I go in Plex to /home/myname/ and than nothing. Should I reboot?
[19:44] <arraybolt3[m]> XoloX: Hmm. sarnold: How would you do that? (I have no clue.)
[19:45] <XoloX> I have a laptop with no screen and a tv hooked up to it. I would just tell Ubuntu to reboot. I can see what's going on on the TV!
[19:46] <arraybolt3[m]> XoloX: Many people online say it's a permissions issue, but fixing permissions shouldn't require a reboot to make it work.
[19:46] <sarnold> arraybolt3[m]: systemctl edit plex.service  or something like that -- match the service name -- in the [Service] section, add a SupplementaryGroups= field with the group in question
[19:47] <arraybolt3[m]> sarnold: OK.
[19:48] <arraybolt3[m]> XoloX: Can you run "sudo systemctl edit plex.service" and tell me what happens?
[19:51] <XoloX> I reboot and now it works!
[19:52] <XoloX> Fuck me!
[19:52] <KBar> XoloX: woah woah, watch your language pls
[19:52] <arraybolt3[m]> XoloX: Oh, nice!
[19:52] <XoloX> Have you tried to turn it off and turn it on again.
[19:52] <arraybolt3[m]> XoloX: (Also, don't get mad at yourself - I've made similar mistakes. We all do.)
[19:52] <XoloX> F*ck me?
[19:53] <arraybolt3[m]> (We try to avoid language like that for the sake of other users in the channel.)
[20:44] <pagnol> Anybody here who can help me figure out why aws vpn client on Ubuntu 18.04 and 20.04 is not working?
[20:51] <jhutchins> pagnol: That's probably up to AWS support.  I hear they're not impossible.
[20:54] <e4> I know it's a little bit of topic, but maybe you will be kind enough  to help me with this. So I'm working on this script. What I want to do is to find a product by it's bar code on a given website and download the name of the product (echo it in the script). So my way of thinking was like this:  if I can go to the url and at the of it put /search?keywords=product code (I will show an example in a second) so I can find the
[20:54] <e4> product I can then use wget to download the website and extract from it everything I need. But I only know the bar code and search?keywords barcoded doesn't work. Here's the example: https://business.currys.co.uk/catalogue/computing/laptops/macbook/apple-macbook-air-13-3-2020-m1-256-gb-ssd-space-grey/N314812W
[20:55] <e4> On the right of the picture you will see the product code, but you need to scroll down and click specifications to find EAN which is products bar code.
[20:56] <oerheks> no, how inconveniant, e4
[20:57] <e4> oerheks, thank you. I'm not very good at this it's just my hobby and I barely know anything about html.
[20:57] <oerheks> i think it is not really an Ubuntu issue, but maybe you can look at the source of the page?
[20:57] <oerheks> any browser gives such option
[20:58] <e4> oerheks, it's defenitely there, I can find it no problem. It's just I need to know which website I need to look into knowing only barcode of the product.
[21:02] <gordonjcp> in normal Ubuntu, how do I turn off "Alert Sound"?
[21:02] <gordonjcp> there's five options, Default, Bark, Drip, Glass, and Sonar, but apparently no option for "NO ANNOYING NOISES EVER PLEASE"
[21:03] <ahasenack> mute system sounds in that window, perhaps?
[21:04] <ahasenack> it's how I have it
[21:04] <ahasenack> I didn't even remember :)
[21:04] <gordonjcp> system sounds are turned right down
[21:04] <gordonjcp> okay, sudo rm -rf /usr/share/sounds it is then
[21:04] <ahasenack> there is a mute icon on the right
[21:05] <gordonjcp> ahasenack: it is set to muted
[21:05] <ahasenack> I have that selected too, besides the volume bar all the way to the left
[21:05] <gordonjcp> it is still making sounds
[21:05] <ahasenack> then I don't know, maybe you have multiple sound cards and it's acting on the wrong one
[21:06] <e4> gordonjcp, try dmesg |grep -i error maybe you'll find something there why it behaving like that.
[21:06] <e4> Is it virtual?
[21:12] <e4> ok gtg. cheers to all.
[21:23] <jhutchins> gordonjcp: Does changing the setting change what it sounds like?  (If not, it's some other subsystem.)
[21:23] <jhutchins> gordonjcp: Is it coming through the speakers, or the motherboard?
[23:52] <Dan39> why does ubuntu 20.04 still have rc.d files laying around? thought this was a totally systemd setup..
[23:53] <sarnold> because cleaning them up would introduce additional maintenance costs over debian -- when we import from debian, we can either sync over directly with very little cost, or we can perform a merge (where we retain ubuntu-specific changes) at a great deal of expense
[23:53] <sarnold> I wish we cleaned them up, but I don't pay the bills
[23:54] <Dan39> debian is using systemd too, no? so why do they keep them around?
[23:56] <sarnold> because debian is also using sysvinit-utils, runit, s6, and probably half-dozen more I've forgotten..
[23:59] <Dan39> heh, i see. thanks
[23:59] <Dan39> makes sense now