[00:58] <IlGiocatore_ubun> Hey
[00:58] <IlGiocatore_ubun> Does anyone know how to run .cmd files with wine?
[00:58] <IlGiocatore_ubun> I thought, it would work using wineconsole.
[00:59] <IlGiocatore_ubun> But when I enter the name of the .cmd file, nothing is displayed - except for a new prompt line.
[00:59] <murmel> IlGiocatore_ubun: what is a .cmd file?
[01:00] <IlGiocatore_ubun> Something like a .bat file, I guess.
[01:00] <IlGiocatore_ubun> Windows Batch files, if I'm right.
[01:01] <IlGiocatore_ubun> Something like Windows shell scripts.
[01:01] <oerheks> No, .cmd files are not suimple bat scripts, better ask in #winehq
[01:01] <IlGiocatore_ubun> I did asked there, but nobody has answered yet so I thought maybe someone in here knows it too. :)
[01:01] <murmel> definitely ask there as I am not even sure if those _should_ run
[01:02] <IlGiocatore_ubun> Maybe I should look up the difference between .bat and .cmd.
[01:45] <awinmngt> any good 5g hotspot with port forwarding?
[01:59] <backthen> How do I know if file transfer really completed? The "Moved 893,483 files to 'LG external drive' pop up still persists. I'm not sure if I can remove the drive now
[02:00] <NickH> Run a checksum on the file and confirm it is the same as the original.
[02:00] <murmel> backthen: with the command "sync" you force to write stuff to the disk, when all data is written, the command completes. after that I just make sure another time that really everything is written by reissuing the command
[02:01] <sarnold> backthen: you could try 'lsof' in a terminal, to see if the files are open or not; you could collect an md5sum run over the entire source directory and verify that on the destination directory
[02:03] <backthen> ok I'll have to learn those commands. How come Ubuntu doesn't give some visual feedback? Around the file explorer's address bar, there is still a circle (filled) to indicate some writing operation is/was going on.
[02:07] <tomreyn> backthen: That would (likely) be a bug in Nautilus / Gnome Files, I think (or maybe some of the UI libraries it uses). You could check their bug tracker to see whether soemone already filed it and if so, what the status of fixing this is.
[02:08] <toddc> sync?
[02:08] <backthen> Maybe I can try unmount this external drive? Presumably if everything completed, the unmount would succeed
[02:09] <murmel> if you eject in nautilus, it will send a sync command, before it actually ejects
[02:11] <backthen> ok. Yes in nautilus. Nautilus's eject button is labeled 'unmount' if you mouse over. But I guess underneath, if I press it, it'll issue a sync before really unmount
[02:12] <marcopolo1_> I installed nvidia drivers and even tho it runs better it still runs with some lags like there will always be slight freezes sometimes
[02:15] <murmel> marcopolo1_: did you make sure that the nvidia driver is in use, not the foss driver?
[02:21] <marcopolo1_> murmel: yeah i did, in additional drivers it says nvidia 515
[02:21] <marcopolo1_> The game runs fine but like it isnt really playable
[02:22] <marcopolo1_> On windows it runned better
[02:27] <murmel> marcopolo1_: sorry, don't know too much about how to verify that nvidia runs well. never had a nvidia gpu
[02:46] <oerheks> " the game"
[03:52] <r_> rx2t56j
[04:32] <johnfg> hi folks
[04:32] <johnfg> my desktop is gnome shell.
[04:33] <johnfg> Not sure what happened, but my desktop icons, normally (always, forever) would be on the left side.  But they've disappeared.  They show up when I click on Activities.  I've looked at Settings, but can't figure out what to do to get them back.  thanks for helping.
[04:38] <toddc> johnfg: https://linuxhint.com/hide-dock-in-ubuntu/
[04:46] <johnfg> toddc: Thanks.  For some reason, the Settings/Appearance didn't work/change things back.  However, using the cli worked.  I appreciate the help.
[04:51] <gebbione> hi ubunters, my desktop takes a long time to show the login and let me back in after screens are locked. It litterally takes at least 30 seconds . Is there anything I can check to improve this?
[05:18] <bankai_> dmesg
[05:23] <webchat3> I have a partition I want to resize, before I make backups of partitions with DD to another drive, obviously as files like so :  dd if=/dev/sda1 /external_disk/sda1.img; and then I boot the machine with some livecd image, resize the partitions AND THEN restore the fs with my previous backup files: dd if=/external_disk/sda1.img of=/dev/sda1, and in
[05:23] <webchat3> the same vein with other partitions. Now, I know that ext4 uses inodes to keep its structure, and they are logical but underneath it uses device blocks, and if the blocks change, (and with partitions being resized they will change), will this eff up my fs?
[05:26] <webchat3> what I want is actually a certain partition smaller, and the next one to assume its space
[05:34] <ravage> If you have backups boot https://gparted.org/livecd.php
[05:34] <ravage> Make your changes and be happy
[07:16] <morgan-u2> is there a way I can get my grid of images to be more than one inch high (in files) I used to be able to doom in to actually see what's in the screenshots. This is unworkable.
[07:20] <gonix> ask your distrib channel #ubuntu #mint whatever, or try anothe filemanager, like thunar or gnome/xfce pcman-fs
[08:41] <avih> hi, what do i need to do to clean up the snaps on my system to the absolute minimum before the system starts breaking? it's taking up gigabytes of space which i don't have
[08:41] <avih> using 22.04 LTS
[08:42] <avih> (which started somwehere around 14.04 LTS and updated/upgraded since)
[08:43] <avih> after i removed all the non-current snaps, it still uses 6.3G at /snap/ and 3G at /var/lib/snapd/   . needless to say that i did not request to install any of them.
[08:45] <avih> for reference, this is what snap list --all shows: https://0x0.st/odNK.txt
[08:46] <avih> (why do i need 5 gnome versions?!)
[08:46] <avih> (and i don't even use gnome...)
[08:49] <alkisg> You can completely remove snap without the system breaking, if you wish: https://ltsp.org/guides/snap/
[08:53] <avih> alkisg: thanks. how do i know which functionality goes away by removing each snap? the only one i can be sure of is "firefox" (which i actually want to keep, though i'd prefer non-snap instead if possible)
[08:54] <alkisg> avih: yeh the link installs the non-snap firefox version, from the mozillateam ppa. I don't know about the other snaps, I uninstall it myself as it doesn't work at all in my use cases
[08:54] <avih> alkisg: but how do i know what would break by removing them?
[08:54] <avih> firefox is just one. i have more than a dozen snaps installed...
[08:55] <alkisg> You'd read the package description, but as I said I'm not using snap so I can't help with "where to find it". Wait for others to answer that part if you wish. I do know nothing broke for me in all flavors when I uninstalled snap.
[08:56] <avih> so basically, you're saying "if you want to remove all snaps, this is how. but i don't know what things will stop working for you"  ?
[08:57] <alkisg> Yup, and additionally "in a default installation, when removing snap, nothing breaks for me".
[08:57] <avih> right
[08:58] <avih> well, i need to know what stops working before i do that...
[09:01] <alkisg> And that's the "wait for others" or "read the package description" part that I mentioned. I didn't claim that I had a fully documented answer for all your questions, I just wanted to mention a relevant idea.
[09:03] <avih> yup, appreciated.
[09:04] <avih> so how do i find what depends on which snap? (including inter-snaps?)
[09:05] <avih> e.g. of the seemingly 5 versions of gnome here, what stops working if i remove the first (gnome-3-26-1604) ?
[09:05] <avih> (should i be worried that i seem to have 16.04 snaps?)
[09:06] <avih> (never looked at it closely before, till apt told me it can't update because it ran out of disk space...)
[09:06] <avih> again, for reference, snap list --all prints this https://0x0.st/odNK.txt
[09:30] <avih> alkisg: if i understand correctly, that script does these: 1. remove mate stuff if needed (which i don't have). 2. replace firefox snap with firefox from mozilla PPA. 3. remove snapd. 4. symlink the new firefox to the snap location.    right? do you know if i can remove all snaps except firefix and expect it to work? (i _think_ i only care about firefox, but not sure...)
[09:32] <alkisg> avih: I think firefox snap depends on the core, themes, portal, hunspell etc snaps to function properly
[09:32] <avih> thx
[09:33] <avih> are there dependencies of stuff outside snaps on snaps? e.g. do some apt packages depend on some snap packages?
[09:34] <murmel> avih: if you give us a list of all snaps you have installed, we could even help you better ;)
[09:34] <murmel> no
[09:35] <avih> murmel: i've installed none that i know of, and yet snap list --all prints this https://0x0.st/odNK.txt
[09:35] <avih> (that's after i removed all the non current ones. this system started and upgraded since 14.04 LTS and currently at 20.04 LTS)
[09:36] <avih> sorry, currently 22.04 LTS
[09:37] <murmel> avih: k, so the things you could be interested in are snap-store, firefox and gnome-system-monitor which means, you need to install the ppa firefox, and apt packages called gnome-software and gnome-system-monitor ;)
[09:37] <avih> murmel: i don't use gnome (i still use the old unity, and if needed, i also have xfce installed)
[09:38] <avih> also, define "you could be interested in"?
[09:38] <murmel> okay, so afaik you still want those, but not sure, as gnome-system-monitor should be also used in unity
[09:38] <avih> (i mostly use this system headless though)
[09:38] <murmel> avih: that are the actual software you installed, the rest are dependencies
[09:39] <avih> not sure i understand
[09:39] <avih> i don't recall, but i think firefox was installed with the system without me installing it explicitly via apt? (but that was years ago)
[09:40] <murmel> avih: firefox was moved from a deb package to snap with the move to 22.04
[09:40] <avih> so what does this mean? " the actual software you installed"
[09:41] <murmel> avih: the software which is "front facing", which means that is software which you interact with, which you maybe use
[09:41] <murmel> idk how to explain it otherwise
[09:41] <avih> i didn't install gnome that i recall, and same for firefox (i don't care about gnome, but i do about firefox)
[09:42] <avih> you mean "the things i want to keep" ?
[09:42] <murmel> avih: well what specifically "gnome" are you reffering to? (the gnome snaps) or gnome-system-monitor?
[09:42] <murmel> avih: the thing you "may" want to keep
[09:42] <murmel> idk if you want to keep firefox for example. (I mean I know you want, but still)
[09:42] <murmel> it's something you maybe don't want
[09:42] <murmel> as you use chromium or whatever
[09:43] <avih> well, my first issue is that i have this list of snaps installed, not by me, and i want to remove as much as possible, but i don't know exactly what each name refers to (Except probably firefox), and i don't know what depends on what
[09:44] <murmel> so as I already said, the software which is installed are these 3 (firefox, gnome-system-monitor, snap-store) the rest are just dependencies so these softwares can run
[09:45] <murmel> snap store is a front-end for deb repositories and snap packages, gnome-system-monitor is a system monitoring tool (duh) and firefox is firefox
[09:46] <avih> of the things on this list https://0x0.st/odNK.txt i know prefer to keep using firefox (possibly from elsewhere, like mozilla ppa), i don't use gnome desktop, i don't think i use gnome system monitor, i don't know whet depends for instance on "gtk-common-themes" (only other snaps? or also non-snap gtk stuff?)
[09:46] <avih> what is gnome-system-monitor?
[09:46] <murmel> avih: as I said above, unity uses gnome-system-monitor
[09:46] <avih> and what is snap-store?
[09:46] <murmel> as it's monitoring tool
[09:46] <avih> oh
[09:46] <avih> like task manager of sorts?
[09:46] <murmel> yes
[09:46] <avih> i.e. a user gui tool?
[09:47] <murmel> yes
[09:47] <avih> right, i don't need it
[09:47] <murmel> and gtk-common-themes are themes, so the software can give you a correct window with information on it, so a dependency
[09:47] <avih> of what? only of other snaps? or also of non-snap packages, like xfce?
[09:48] <murmel> everything in snaps is only for snaps
[09:48] <avih> hmm
[09:48] <murmel> that's why you can purge snapd, and nothing is broken
[09:48] <avih> so if i have xfce, it does not depend on anything in snaps, yes?
[09:48] <murmel> even unity
[09:49] <avih> so basically i'd lose firefox (and gnome desktop, and gnome-system-monitor), and that's about it, yes?
[09:49] <murmel> you don't lose gnome desktop, as that's not installed
[09:49] <avih> oh?
[09:49] <murmel> what's called gnome, is the toolkit
[09:50] <murmel> so that the windows of software can be shown to you on the screen
[09:50] <avih> hmm.. why do i have 5 of them?
[09:50] <avih> i though that's gtk?
[09:50] <avih> gnome-3-26-1604                 <IP_ADDRESS>10629             104    latest/stable/…  canonical**  -
[09:50] <avih> gnome-3-28-1804                 3.28.0-19-g98f9e67.98f9e67  161    latest/stable    canonical**  -
[09:50] <avih> gnome-3-34-1804                 0+git.3556cb3               77     latest/stable    canonical**  -
[09:50] <avih> gnome-3-38-2004                 0+git.6f39565               119    latest/stable    canonical**  -
[09:50] <avih> gnome-42-2204                   0+git.c271a86               44     latest/stable    canonical**  -
[09:50] <murmel> dont spam ;)
[09:50] <murmel> give it a min, then you are unmuted
[09:51] <murmel> but yes, that's gtk, in the snap world, they are called gnome<something>
[09:51] <avih> testing...
[09:52] <murmel> you are back
[09:52] <avih> thx
[09:52] <avih> so why do i have 5 of those? does firefox need them all?
[09:53] <avih> and i have 4 cores...
[09:53] <murmel> avih: no, but the gnome-3-26-1604 is for example an old residue from your 16.04 days
[09:53] <avih> why is it not removed automatically the same way it was added automatically?
[09:54] <avih> and how do i know what breaks if i remove it now?
[09:54] <murmel> avih: no idea, I assume nobody implemented a way to remove old stuff (which are not disabled)
[09:54] <murmel> snapd will complain that it's needed
[09:54] <murmel> for example you can't remove core as of right now
[09:55] <avih> you nean if some other snap depends on it, then i wouldn't be able to remove it?
[09:55] <murmel> but you should be able to remove core18 afaik
[09:55] <murmel> yes
[09:55] <murmel> avih: same with apt and deb packages
[09:55] <avih> how do i list which snaps depends on which others?
[09:55] <murmel> you can't
[09:55] <avih> huh
[09:56] <murmel> avih: can you give me the output of "snap list --all | nc termbin.com 9999"
[09:56] <avih> so the only way to test whether snap X depends on snap Y is to remove Y and if it complains then something depends on Y?
[09:56] <avih> https://0x0.st/odNK.txt
[09:56] <murmel> yeah, or you know a little bit about packaging (and your software which is installed with snap)
[09:56] <avih> (5th time, that's the output of snap list --all)
[09:57] <murmel> avih: so you have no disabled snaps?
[09:57] <avih> not anymore
[09:57] <murmel> that's why I was thinking that you didn't put the --all in it
[09:57] <avih> oh
[09:57] <avih> yeah, i removed them.
[09:58] <avih> to quote one of my initial comments: <avih> after i removed all the non-current snaps, it still uses 6.3G at /snap/ and 3G at /var/lib/snapd/   . needless to say that i did not request to install any of them.
[09:58] <avih> (i guess i meant "non disabled")
[09:59] <murmel> avih: I mean the easiest is really debate if you need gnome-system-monitor and snap-store, backup the firefox data directory and purge snapd if you have that of an disk space issue
[09:59] <avih> i don't need the gnome task-manager-ish, and i don't know what snap-store is
[09:59] <murmel> avih: type snap-store as a command and see ;)
[10:00] <murmel> if you like it or not
[10:00] <avih> oh, it's a gui thing i see. i'm connected remotely, it refuses to open
[10:00] <avih> "No manual entry for snap-store"
[10:01] <avih> so what is it? some gui store thing to choose what snaps to install? if yes, i don't care about it
[10:01] <murmel> yeah, but I assume you ever heard of gnome-software (it's a software which lets you "shop" around to install software)
[10:01] <murmel> it's not only snaps, but also deb packages
[10:02] <avih> i think i've heard of gnome-software, but i do all my installs either via apt or i build things myself. i don't use any gui installer
[10:02] <avih> or store
[10:02] <avih> maybe i used aptitude once or twice years ago, but i don't care about gui stores
[10:03] <murmel> which means the only software _is_ firefox, just make sure you backup ~/snap/firefox/common/.mozilla as that's your firefox profile
[10:03] <avih> oh, it was moved there from ~/.firefox/ (or whatever it was before)?
[10:03] <murmel> (on the other hand if you remove snapd, it doesn't remove stuff from ~)
[10:04] <murmel> yes
[10:04] <murmel> it was ~/.mozilla
[10:04] <avih> can i try to keep only firefox and its deps first? how do i do that?
[10:04] <avih> right, previously ~/.mozilla
[10:05] <avih> try to remove everything which isn't firefox? :)
[10:05] <murmel> you can but not 100% sure which are needed for firefox (but as I said, snapd will complain if it's needed)
[10:05] <avih> (seriously? no way to tell which snaps firefox depends on?)
[10:05] <murmel> I do know core and core20 should be nonremovable
[10:06] <murmel> I assume it's core20, firefox, gnome-43-2204, gtk-common-themes
[10:06] <murmel> ah and bare
[10:06] <murmel> but remember core is not removable (even with nothing depending on it :S)
[10:08] <avih> hmm.. so i removed gnome-system-monitor, it told me it "disconnects" it from some things (why does it overwrite the line as it works so i can't have the list?!), and i ended up with ~zero space freed
[10:08] <murmel> avih: probably because gnome-system-monitor is a snap which is very very small
[10:08] <murmel> just think about it, the gtk dependencies are in a different snap, which means the snap is maybe 5 megs?
[10:09] <avih> nuala: wait, wouldn't it remove the deps too if nothing depends on it?
[10:09] <murmel> no
[10:09] <avih> murmel: ^ sorrt
[10:09] <avih> y
[10:09] <avih> si*t
[10:09] <murmel> additionally, did you --purge?
[10:09] <avih> h
[10:09] <avih> no
[10:10] <murmel> that's why it keeps the snap file
[10:10] <avih> just sudo snap remove gnome-sys....
[10:10] <avih> it does?
[10:10] <murmel> remove --purge gnome-
[10:10] <avih> $ sudo snap remove --purge gnome-system-monitor
[10:10] <avih> snap "gnome-system-monitor" is not installed
[10:11] <murmel> obvious, you removed it ;)
[10:11] <murmel> the snaps are stored in /var/lib/snapd/snaps
[10:11] <avih> so? did it remove the file or not?
[10:11] <murmel> no as I said, to also remove the file, you need to use the --purge switch
[10:12] <avih> ok, but now after i removed it without --purge, what can i do to also remove the file?
[10:12] <murmel> what do you think if i gave you the directory where the snaps are stored
[10:12] <avih> i.e. how do i unf(ck it?
[10:12] <murmel> !language
[10:12] <avih> i don't understand the question
[10:12] <murmel> it doesn't help when you "censor" it
[10:13] <avih> right. unimportant i didn't understand your question
[10:13] <murmel> avih: make sure the file is not in that directory? otherwise delete it
[10:13] <avih> which dir? /snap/ ?
[10:14] <murmel> read what I type?
[10:14] <murmel> man
[10:14] <avih> ok, sec
[10:15] <avih> right <murmel> the snaps are stored in /var/lib/snapd/snaps
[10:15] <murmel> yes
[10:16] <avih> i don't see it there https://0x0.st/odN0.txt
[10:16] <murmel> oh, interesting. I thought the snap was being kept, seems like it doesn't
[10:18] <avih> ok, so back to "how to i remove verything except firefox and its deps". should i just try to remove all of them except firefox until nothing get removed anymore?
[10:18] <murmel> yes
[10:19] <avih> but also, if that's where the snaps are, and it's ~3G for me, what's at /snaps/ ? (which is ~6.5G for me)
[10:19] <ig21> test
[10:19] <avih> ig21: loud and clear
[10:20] <avih> murmel: so what's at /snaps/ ?
[10:20] <avih> /snap/
[10:22] <avih> oh, wait, so the /var/lib thing is the "source" package, and /snap/ is where it's extracted or some such?
[10:22] <murmel> yes
[10:28] <avih> murmel: so, i ran this few times till it removed no more: (for s in $(snap list --all | tail -n +2 | awk '{print $1}'); do [ "$s" = firefox ] || sudo snap remove --purge "$s"; done)
[10:29] <avih> snap list --all now prints: https://0x0.st/odNn.txt
[10:29] <avih> and firefox seems broken
[10:29] <murmel> what is broken?
[10:29] <avih> first error of several:  firefox
[10:29] <avih> update.go:85: cannot change mount namespace according to change mount (/var/lib/snapd/hostfs/usr/share/cups/doc-root /usr/share/cups/doc-root none bind,ro 0 0): cannot create directory "/usr/share/cups/doc-root": permission denied
[10:30] <avih> iirc you said firefox depends on some gnome packages, right? but all of them now seem removed
[10:30] <avih> snap seemingly didn't prevent me from removing all the gnome-* ones
[10:31] <murmel> yeah, I am baffled honestly
[10:31] <avih> i'm lest only with core, core20, and firefox
[10:31] <avih> left*
[10:32] <murmel> interestingly enough, it complains about cups oO
[10:33] <alkisg> avih: as I said I'm not using snap, but here's another idea, maybe if you remove firefox snap now, and reinstall firefox snap, it will pull the dependencies it's missing
[10:33] <avih> there are more, https://0x0.st/odNR.txt
[10:34] <murmel> yeah, so you can reinstall firefox to get the dependencies back or go full non-snap system
[10:34] <avih> alkisg: yeah, i'm sure it's possible from the ppa, but i was attempting to remove all snaps except firefox and its deps
[10:34] <alkisg> avih: "reinstall firefox snap". Not deb.
[10:35] <alkisg> I.e. maybe the purging/removing dependencies code isn't very mature, but I doubt that the snap install firefox code wouldn't pull the missing snap dependencies
[10:35] <avih> alkisg: it could fix it, but so far i've not yet started to think how to fix it. just trying to understand how it got broken
[10:36] <avih> yes, i imagine it might
[10:36] <murmel> hope you can find the issue, I'm out
[10:36] <alkisg> Eh, apt has almost 3 decades on its back, I'm sure you can find a lot of cases where snap isn't as mature :)
[10:36] <avih> however, the worrying thins is that removing all those packages freed about only about 1.5G
[10:36] <avih> of disk space
[10:36] <alkisg> Are you counting the loopback mounts on /snap, or the source size in /lib?
[10:37] <avih> df -hs
[10:37] <alkisg> df -sh /lib or /snap?
[10:37] <avih> sorry, df -h
[10:37] <avih> just df -h
[10:38] <alkisg> What's the output?
[10:38] <avih> https://0x0.st/odN7.txt
[10:38] <alkisg> Files in use will be freed after they're not in use anymore
[10:39] <alkisg> Not sure if snap behaves properly in that regard
[10:39] <avih> so /dev/sda1 has ~1.7G free and after all packages were removed and purged except 3, it has 3,2G free
[10:39] <alkisg> Try rebooting, if you measure just the df and not the du -sh /lib...
[10:39] <avih> it had 1.7G free, now it has 3.2G free
[10:39] <avih> yeah, will try
[10:40] <alkisg> Also, what's the output of this? sudo du -sh /var/* /usr/* /lib/* | sort -h | nc termbin.com 9999
[10:41] <avih> fwiw, it behaved as if "snap won't let it remove it if things depends on it" is 100% incorrect
[10:42] <avih> sec, still rebooting
[10:42] <avih> i think unity broke too
[10:42] <avih> i don't get a desktop anymore
[10:43] <alkisg> Did you reinstall the missing dependencies?
[10:43] <avih> define "missing"
[10:43] <alkisg> The ones that you uninstalled  and made firefox complain
[10:43] <avih> i tried to remove all snaps except firefox till nothing more got removed
[10:43] <avih> no, i rebooted after you said the free space might show up after reboot
[10:44] <alkisg> OK, login to vt2 then and reinstall the missing snaps
[10:44] <avih> i'll ssh into it
[10:44] <avih> df -h still shows 3.2G free on /dev/sda1
[10:45] <alkisg> For the disk usage issue, the command I mentioned above will help ^
[10:45] <avih> i'm trying to find it :)
[10:45] <alkisg> sudo du -sh /var/* /usr/* /lib/* | sort -h | nc termbin.com 9999
[10:46] <avih> (still running)
[10:46] <avih> yeah, unity desktop definitely ot broken
[10:46] <avih> got*
[10:46] <alkisg> Ah, termbin might stop processing when it takes a long time
[10:47] <avih> alkisg: https://0x0.st/odqi.txt
[10:47] <alkisg> You'd better do it in two steps: sudo du -sh /var/* /usr/* /lib/* | sort -h > /tmp/disk.log; cat /tmp/disk.log | nc termbin.com 9999
[10:47] <avih> i didn't pipe to termbin
[10:47] <alkisg> 8.7M    /var/snap
[10:47] <alkisg> So snap is fine, and the bigger parts are 4.6G    /var/log and 5.4G    /usr/lib
[10:47] <avih> yes, but the snaps are at /var/lib/snapd, no?
[10:48] <alkisg> Not sure, try du -sh /var/lib/* | sort -h then
[10:48] <avih> 1.4G    /var/lib/snapd
[10:48] <avih> not terrible
[10:49] <Newbie> good morning, I need help
[10:49] <avih> and /snap/ is 1.
[10:49] <avih> 1.2G
[10:49] <alkisg> That's a loop-mount, it doesn't count
[10:50] <avih> so overall 3G instead of ~10G used by snaps, but df -h still shows 3.2G free, and it should have been ~7.7G free (6G freed by snaps)
[10:50] <avih> hmm
[10:51] <alkisg> What did you measure to see that snap was using 10G?
[10:51] <alkisg> Judging from the snaps you had installed, I wouldn't have expected 10G
[10:51] <avih> as i said, /var/lib/snapd/ was 3G, and /snap was 6.5G  (but you now say it doesn't count)
[10:52] <alkisg> Right, so from 3G you freed 1.5G
[10:52] <avih> this is ****** up
[10:53] <avih> so firefox got broken, unity got broken, non-snap things (unity) do depend on snaps, and and snap doesn't refuse to remove snaps which other things depends on
[10:53] <avih> basically, the cake is a lie
[10:54] <alkisg> Eh, I decided to remove snap ages ago, no need to preach at me :D
[10:54] <avih> even if i install the firefox snap, surely it won't restore things which unity depends on
[10:54] <avih> excepy by pure luck
[10:54] <alkisg> I don't think unity depends on snap, but a broken snap can affect things
[10:55] <alkisg> So you can either reinstall the dependencies and fix it, or remove it so that it doesn't affect the rest of the programs
[10:55] <avih> well, unity worked, and after i removed some snaps it doesn't work.
[10:55] <alkisg> Yeh, firefox too
[10:55] <alkisg> Dependencies do that, removing them breaks things not only in the snap world
[10:56] <alkisg> Don't think that snap is completely isolated and that its breakage won't affect apt
[10:56] <avih> well, i got pretty straight up replies "non snap things don't depend on snap"
[10:56] <avih> which was wrong, at least in some ways. ffs.
[10:57] <alkisg> I never said that :)
[10:57] <avih> i didn't say you did :)
[10:57] <alkisg> But in any caseit should be easy to reinstall your missing snaps and restore what you had
[10:57] <avih> some other people
[10:57] <avih> (which did try to help, my fault for not cross checking their suggestions)
[10:58] <alkisg> If you didn't keep your initial list, it's still there: https://0x0.st/odNK.txt
[10:58] <avih> i do have the link
[10:58] <avih> but i doubt reinstalling all of them would fix the broken things
[10:59] <avih> the "snap remove $whatever" prints that it "disconnects" the removed snap from things, and i doubt it will "reconnect" them upon install
[10:59] <alkisg> AFAIK it does
[11:00] <avih> the other issue is that it used terminal escape sequences to rewrite the same line, so even the terminal scrollback doesn't have the list it disconnected from
[11:00] <alkisg> snaps declare connection points and mounts and whatever they call them in their description
[11:01] <avih> anyway, forgetting firefox for now, my current problem is to get a desktop. it was set to auto-login without a greeter, and now it fails to start unity, and i'm not sure how to make it show the greeter
[11:01] <avih> i do have xfce4 installed
[11:02] <avih> (i don't know if it would work, but it exists. greeter would be a good start)
[11:02] <alkisg> Without knowing the snap internals, my experience with it is that removing SOME snaps make the DE fail. So either reinstall the deps, or remove snap.
[11:03] <avih> how do i change the greeter config from cli to start xfce4 instead of unity?
[11:03] <avih> i believe it's the default one (gdm?)
[11:04] <alkisg> There's a lightdm.conf entry for this, I  think it's user-session=xfce, or you can temporarily move aside /usr/share/xsessions/*.desktop and leave only the one you want
[11:04] <avih> great, and now i get a message from the not-started unity that "desktop will suspend soon due to inactivity"
[11:04] <alkisg> systemctl stop lightdm will kill it :D
[11:09] <avih> alkisg: so i moved all of them elsewhere except xfce4.desktop, killed lightdm, started it, it showed the login dialog, username is correct, i entered the password, and it "fails to start session"
[11:10] <avih> this is like bad bad
[11:10] <avih> i can still use it remotely, which is my main  use case anyway, but the desktops seems just broken, which sucks
[11:12] <avih> i'm a fool to believe advice so quickly,, and murmel should not have talked so confidently with their advice if they're not 100% sure it's actually true.
[11:16] <avih> for posterity: "snap remove foo" WILL remove foo even if other snap depend on it, and removing some snaps can break non-snap packages, like xfce4 refusing to start
[11:19] <avih> alkisg: how come the space at /snap doesn't count? is it ramdrive? or some virtual things which maps into /var/lib/snapd like "zip folders" used to do on windows?
[11:20] <zetheroo> is it possible to restart a VPN connection (not stop and start it)?
[11:23] <xxy> i hope to enable BBR in ubuntu 20.04, i see the parameter configure is " net.ipv4.tcp_congestion_control=bbr", but my traffic is IPv6, how to enable IPV6 bbr ?
[11:26] <ogra> avih, /snap is just mount points, there is no actual data in it
[11:27] <avih> ogra: of what?
[11:27] <ogra> avih, snaps are compressed, gpg signed read-only filesystem images that only get loop mounted (imagine a CDrom iso) but never unpacked ... the acual space they occupy is in /var/lib/snapd/snaps
[11:28] <avih> right, so it's a virtual mount which is passthrough to extracted data from /var/lib/snapd ?
[11:28] <ogra> what you see in /snap is just a representation of what the upacked content would be, but it is nevr actually unpacked
[11:28] <avih> right, thanks
[11:28] <ogra> there is no extracted data
[11:28] <avih> i understand
[11:28] <avih> it's fetched on demand
[11:28] <ogra> (well, there is, but only at runtime in ram ... for the bits actually needed by a binary)
[11:29] <ogra> right
[11:29] <avih> i understand, yes
[11:29] <ogra> snaps are generally way smaller than th equivalent of binary data in debs
[11:30] <ogra> (and are 100% tinker proof thanks to being readonly and signed)
[11:30] <avih> ok, anyway, after i removed everything i could except "firefox", lightdm fails to start a session. i do have xfce4 installed for instance, and if i run it via remote x then it starts, but in lightdm it shows "failed to start session"
[11:30] <avih> everything = snaps
[11:31] <ogra> well, there is nothing except the snapd package that hoks into your session ... and given you still have the firefox snap, the snap daemon will/should LSO BE STILL THERE
[11:31] <ogra> OOPS
[11:31] <avih> lightdm does show the greeter, and i can enter password and choose a DE, but it shows a blank screen instead of starting the DE
[11:32] <ogra> sorry, rogue capslock
[11:32] <ogra> thats very unlikely to be related to any snap removals
[11:32] <avih> well, it did work before k remove the snaps...
[11:32] <avih> i*
[11:33] <ogra> what exactly did you remove ...
[11:33] <avih> 1st i removed all disabled snaps, which resulted in snap list --all printing this: https://0x0.st/odN0.txt
[11:33] <ogra> "snap list" should still show snapd, core20 and firefox
[11:34] <ogra> looks like you removed the snapd snap
[11:34] <avih> then i followed an ill advice that to keep only firefox, i can try to remove everything except firefox and snap will refuse to remove deps of firefox. i ended up with this https://0x0.st/odNn.txt
[11:35] <ogra> well, this is true if you properly use "snap remove" ...
[11:36] <avih> not sure what "properly" means, but i did this: (for s in $(snap list --all | tail -n +2 | awk '{print $1}'); do [ "$s" = firefox ] || sudo snap remove --purge "$s"; done)
[11:36] <avih> i ran this few times till nothing more got removed, and i was left with core, core20, and firefox
[11:36] <ogra> well, try removing and then installing the firefox snap ... it should pull the missing bits back in
[11:37] <avih> won't i lose the firefox profile if i remove it?
[11:37] <ogra> also, probably a "snap install snapd" first
[11:38] <ogra> you can use snaps backup feature and make a snapshot ... (though first re-install the snapd snap ... then take a look at "snap help save")
[11:39] <ogra> later you can restore the snapshot with "snap restore" (see: snap help restore)
[11:39] <ogra> that will back up your profile (and all other data of the package) and restore it properly
[11:41] <ogra> in general it helps to take a deeper look at "snap help" to familiarize with the features snaps give you
[11:41] <avih> ogra: thanks. so installing snapd (how is it allowed to be removed?!) seem to improve things. desktop seem to start now. sec. still checking things
[11:41] <ogra> good
[11:47] <avih> ogra: do you happen to know in lightdm, if the list is too long and the screen (Resolution) too small, how to view what's below the bottom of the screen at the list of DEs ?
[11:47] <ogra> no idea, sorry, has been ages since i used lightdm last (6y or so)
[11:47] <avih> the list seem to start always at the middle of the screen, with pretty big font, and it doesn't seem to scroll
[11:48] <avih> k, thx. i think it did solve the "no desktop" issue. xfce logs in after start. now i'm trying to choose unity, but the list is too long and i can't choose it at the lightdm greeter
[11:48] <avih> (installing snapd solved the desktop issue)
[11:49] <ogra> wow, the list of desktop sessions is too long ?
[11:49] <ogra> have you considered removing a few sessions ?
[11:50] <avih> i installed few of my own (xfce, fvwn), but many got there on their own (gnome, gnome-wayland, unity because i used it, and more)
[11:51] <avih> at least half the list are some variants of gnome
[11:51] <avih> (this system started as 14.04 LTS, and upgraded over the years, now it's 22.04 LTS)
[11:52] <avih> the gnome variants show up at the lightdm list even without a respective *.desktop file at /usr/share/xsessions/
[11:56] <p3lim> On ubuntu 22.04 with gnome wayland xdotool obviously doesn't work, but neither does wtype (because mutter doesn't support the virtual keyboard protocol) nor ydotool
[11:56] <p3lim> are there any other alternatives for typing something?
[12:05] <lolok> i use xte for simulating keypresses but its probably not useful under wayland
[12:12] <avih> ogra: is it possible to check what are the dependencies of snap X, and what breaks (system wide) if i remove snap Y? (independent questions)
[12:13] <avih> the earlier replies i got were "impossible" and "nothing", respectively.
[12:14] <avih> (well, nothing breaks, except obviously the removed snap itself)
[12:14] <ogra> avih, snap connections show you what an installed snap uses ...
[12:14] <ogra> obviously "snap help connections" for more info
[12:15] <avih> so i presumes this will answer the first question? or both?
[12:16] <ogra> if you look at the "slot" column you can see the sname of a snap that provides a certain slot (if it is not provided by the system itself)
[12:16] <avih> fwiw, i did run snap connections before i started removing things. i got this https://0x0.st/odqV.txt
[12:16] <ogra> *name
[12:17] <ogra> well, that lists *all* existing connections of everything
[12:17] <avih> you mean even of snaps which i don't have installed?
[12:17] <ogra> you want to look only at single snaps
[12:17] <ogra> snap connections firefox
[12:17] <avih> well, i can't do that now, because most of them are now removed :)
[12:17] <ogra> (like snap help connections eplains)
[12:17] <ogra> +x
[12:18] <avih> but anyway, does this also answer what breaks system wide (also non snap) if i remove snap Y?
[12:18] <ogra> nothing breaks system wide
[12:18] <ogra> snaps are completely independent from the OS
[12:19] <ogra> (they run on top of their own minimal rootfs (the core* snaps))
[12:19] <avih> sure, except lightdm, which is not a snap, was not able to start any desktop until i installed snapd
[12:19] <avih> so something definitely did break
[12:19] <ogra> because you removed the snap system itself by removing snapd
[12:20] <ogra> thats like rm'ing parts of our apt installation
[12:20] <ogra> *your
[12:20] <avih> so the answer is "except for the "snapd" snap, all other snaps can be removed safely without breaking non-snap systems" ?
[12:20] <ogra> right, and usually removing the snapd *deb* will also cleanly remove all snaps
[12:21] <ogra> if you remove snapd but keep i.e. snapd-desktop-integration around, things can fall apart
[12:21] <ogra> because you removed only parts of the system
[12:21] <avih> why doesn't "snap remove snapd" complains or requires special force flag if it's known to be able to break non-snap things?
[12:21] <ogra> dunno, file a bug
[12:22] <ogra> in general removing snapd does not break because it falls back to th snapd deb
[12:22] <ogra> (i.. you still had the "snap" command functional, even though you removed the snapd snap)
[12:22] <ogra> *i.e.
[12:22] <avih> k, thanks. so now the other thing i counted on but seemed incorrect: shouldn't "snap remove foo" refuse to remove foo if there's some snap X which depend on it?
[12:23] <ogra> not really, because snaps do not have dependeincies ... there could be other snas providing the same interface connection (imagine snapped themes)
[12:24] <avih> murmel: FYI ^ snap doesn't refuse to remove snaps which others depend on.
[12:24] <ogra> well, it depends ... things like the gnome extension snap will likely complain
[12:24] <ogra> it depends on the type of connection between two snaps
[12:25] <avih> right, so a more correct answer is "it might or might not refuse, you can't count on it to keep deps of another snap X"
[12:25] <ogra> something that is deemd necessary will complain
[12:25] <ogra> there are no deps 🙂 try to overcome this thinking 😉
[12:26] <ogra> there are interface slots provided by other snaps ... if these connections are essential, the removal of the snap *will* complain
[12:26] <avih> well, snap firefox can't run without snap X, then firefox logically depends on X, even if "dependency" is not a snap terminology
[12:26] <ogra> (this is seemingly not true for the snapd snap itself because there is an expected fallback)
[12:27] <ogra> right, this is true for the gnome snap
[12:27] <ogra> firefox can run without all the others
[12:27] <ogra> (will look shabby, missing fornts/features or whatnot, but should still be functional)
[12:28] <ogra> that you could remove snapd without having snapd-desktop-integration removed alongside (which was likely the reason for your login hanging) is obviously a bug you should file
[12:29] <avih> i'm not overly concerned with snapd. i understand it's required but snap doesn't refuse to remove it. whatever. but is there some way to do "i want only firefox and the things needed to make it run well, and remove all other snaps" ?
[12:29] <ogra> but in general removing essential content snaps like the gnome-* ones will also remove the snaps using them
[12:30] <ogra> same goes for all the core* snaps
[12:30] <avih> what?
[12:30] <avih> so if firefox depends on gnome-X, then removing gnome-X will also remove firfox?!
[12:31] <ogra> yes
[12:31] <ogra> and if firefox uses i.e. core20 removing core20 will remove it too (as well as any other core20 based snap)
[12:31] <avih> clearly that's incorrect. i started with this https://0x0.st/odNK.txt and tried to remove all except firefox and ended up with this https://0x0.st/odNn.txt
[12:31] <avih> gnome removed, firefox stayed
[12:31] <ogra> file a bug ?
[12:32] <ogra> it should defnitely remove the others
[12:32] <ogra> unless you removed snapd first ... which gets you into a kind of degraded mode
[12:32] <avih> i'm not filing bugs. the most i would do is leave ubuntu. i'm getting there, but not quite yet.
[12:32] <ogra> becuse all these features are handled by snapd
[12:33] <ogra> well, if you dont file bugs such issues will never be fixed
[12:33] <avih> i removed them at the order they're listed here https://0x0.st/odNK.txt (Several times till nothing got removed)
[12:33] <ogra> right, file a bug ....
[12:34] <avih> and snapd-* is at the end of this list, so at least at the first pass, snapd-* was removed last
[12:34] <ogra> ubuntu-bug snapd
[12:34] <avih> no offense, but i won't.
[12:34] <ogra> well, then stop complaining
[12:34] <avih> i wasn't complaining
[12:35] <avih> i tried to undrstand how it's supposed to behave. i didn't assume bugs
[12:35] <ogra> lol
[12:35] <ogra> it is software ... you should always assume bugs
[12:36] <avih> let's put it this way, i didn't assume such blatant dependency bugs from ubuntu crown jewel packages snap
[12:36] <avih> the same way i don't expect such blatant dependency bugs from apt
[12:36] <ogra> well, i doubt anyone in the snapd team even expects people to run such weird scripts on top of the snap ecosystem
[12:37] <avih> i can believe that, sure
[12:37] <ogra> either way, if you want them to be aware, you need to file a bug
[12:37] <avih> but again, i foolishly believed an advice which said it will refuse to remove depsimportant snaps
[12:38] <ogra> and it usually does (for me at least)
[12:38] <ogra> migh be because of the bulk removal you are doing with that hack
[12:38] <ogra> no idea
[12:38] <avih> yeah. anyway, i really do appreciate your help. thanks again.
[12:38] <ogra> yw
[12:39] <avih> yeah, i definitely ran too quickly with that. **** happens... my fault.
[13:11] <avih> ogra: from my "snap connections" output https://0x0.st/odqV.txt , is there a way i could deduce that unity (the old desktop) would stop working if i remove some snaps? (other than snapd)
[13:12] <avih> (i'm still not 100% sure it's broken, but so far i couldn't get it running after the removals, and also not after i restored snapd)
[13:12] <ogra> avih, no ... i dont think snapd-desktop-integration is even exposed there, it is an internal tool that yu seemingly left behind somehow when removing the snapd snap befor
[13:13] <avih> not sure i understand the reply, but is it "no, connections is not enough to deduce that" ?
[13:13] <ogra> ... and that would be the only thing i could imagine having any influence on desktop session
[13:14] <ogra> no it is ... you removed half of snapd somehow formerly ... that was the reason for your xfce session not starting ... there is nothing else that could affect your desktop startup
[13:15] <chinku> hello
[13:15] <avih> so presumably unity should still be able to start?
[13:15] <ogra> yes
[13:15] <chinku> am new
[13:15] <ogra> unlikely to be in any way snap related
[13:15] <avih> (i can start xfce, but not unity)
[13:15] <ogra> check the logs 🙂
[13:15] <avih> of what?
[13:15] <ogra> of your session startup
[13:15] <avih> unity was my main desktop (though it was mostly used headless)
[13:15] <ogra> no idea where unity stores them though
[13:16] <avih> so basically you think unity should still work, but i should check the unity logs to see what prevents it?
[13:16] <ogra> (it used to use ~/.xsession-errors but that was years ago, i have not used it in 6y or longer, no idea where it stores logs in the systemd based world now)
[13:16] <chinku> anyone i gotta a q
[13:17] <ogra> avih, yes
[13:17] <avih> my thought was that it might depend on some old gtk which is not only available via a snap
[13:17] <avih> which is now* only...
[13:18] <avih> (i had like 5 gnome-* versions...)
[13:19] <avih> ogra: if i wanted to remove all the snap things completely, should i expect lightdm and xfce to still work?
[13:19] <ogra> avih, yes, if doing it properly
[13:20] <avih> what is "properly"?
[13:20] <ogra> that is: sudo apt purge snapd
[13:20] <avih> so "snapd" is both a dpkg package, and a snap package?
[13:21] <avih> (different ones, same name)?
[13:22] <ogra> same content even ... but the deb has additional bits like a postinst script that cares for clean removal
[13:22] <ogra> s/postinst/postrm/
[13:22] <ogra> note that the "purge" is essential for it to remove the snaps ... else it wont
[13:22] <avih> that did not succeed https://0x0.st/odbi.txt
[13:23] <ogra> again. file a bug, no idea what state your system is in now after all that tinkering
[13:24] <avih> it was very stable till today....
[13:24] <avih> for 8 years...
[13:24] <avih> can you identify something at this output which suggests what might have gone wrong?
[13:24] <ogra> well, it looks like your disk became redonly or some such ...
[13:24] <avih> (obviously it thinks some firefox files are readonly... but how do i proceed?)
[13:24] <ogra> /var/snap/firefox/common/ is just a dir on your filesystem
[13:25] <avih> should i remove it manually? (i don't care about the firefox profile anymore)
[13:25] <ogra> nothing fancy or readonly ... it is where FF sores RW data
[13:25] <ogra> *stores+
[13:26] <ogra> particulary in that hunspell dir there should only be symlinks and files that are RW
[13:26] <ogra> (they are here on all my machines)
[13:28] <Freneticks> I try to install a jamy package but apt don't found it, it's in universe but if I do : add-apt-repository universe it say already enabled
[13:34] <Freneticks> nvm motd message say 22.04 everywhere but it's not 22.04............ i'm not use to ads in terminal...
[13:35] <BluesKaj> Hi all
[13:37] <avih> ogra: i had to umount something, and then apt purge snapd completed successfully. thanks.
[13:40] <avih> xfce still works after boot. better than nothing...
[13:41] <alkisg> avih: I already reported a bug for that issue: https://bugs.launchpad.net/ubuntu/+source/snapd/+bug/1998710
[13:41] -ubottu:#ubuntu- Launchpad bug 1998710 in snapd (Ubuntu) "Purging snapd fails due to the hunspell mount" [Undecided, Confirmed]
[13:41] <alkisg> ....and scripted the workaround in https://ltsp.org/guides/snap/
[13:43] <avih> right. i "solved" it by umount the hunspell thing manually, and then purge snapd completed successfully
[13:43] <avih> (and i gave up on my firefox profile. i'll start a new one if i reinstall it)
[13:43] <alkisg> avih: this left some traces in your system, like the hunspell snap connection service
[13:43] <avih> k, can i remove it now?
[13:44] <alkisg> I suggest that you reinstall snap and remove it using the commands I mention
[13:44] <alkisg> install snap, install firefox snap, then remove firefox snap, then purge snap
[13:44] <avih> your suggestion includes removing firefox first, should i install snapd and firefox first?
[13:44] <alkisg> The snap remove firefox properly removes firefox, while apt purge snapd doesn't
[13:44] <alkisg> No, you can keep your firefox.deb
[13:44] <alkisg> You don't have to remove it when installing firefox.snap
[13:44] <avih> i don't think i have it (not sure)
[13:45] <alkisg> > install snap, install firefox snap, then remove firefox snap, then purge snap
[13:45] <avih> right. will do. thanks.
[13:45] <alkisg> Yes, you do need to install snap and firefox snap first, in order to remove them
[13:46] <avih> so "sudo apt install snap && sudo snap install snapd firefox && sudo snap remove --purge firefox && sudo apt purge snap"  ?
[13:46] <alkisg> sudo apt install snapd; sudo snap install firefox; sudo snap remove firefox; sudo apt purge snapd
[13:47] <avih> right. thx
[13:50] <avih> (hmm... it downloads many MBs...)
[13:50] <avih> (finally installing the firefox snap)
[13:59] <avih> alkisg: thx. for reference: after installing snapd (apt) and firefox (snap): 3.6G free. after snap remove firefox: 3.9G free and the following snaps remained: (bare core20 gnome-3-38-2004 gtk-common-themes snapd), after apt purge snapd, 4.8G free.
[14:02] <avih> and after reboot, xfce starts well, but so far i was not able to run (the old) unity, which was working before i started removing snaps.
[14:05] <avih> so basically, it seems that snap and firefox take about 1.2G, which is not huge TBH.
[14:06] <avih> and i still don't know what depends on the other snaps i removed. i suspect maybe the old unity (on older gtk), but not sure.
[14:12] <MrMobius> where in the directory tree should I store a source code file that is referenced by several other projects? now I have a separate copy in each project which is a pain to update when I change something
[14:14] <ravage> may /usr/src ?
[14:14] <ravage> *maybe
[14:18] <avih> ogra: alkisg: unity now runs too :) so i removed all snaps and snapd, and basically seems to have lost only firefox. that's good. thanks again for your tips and time.
[14:37] <anddam> hi, asking here since I could not find any more appropriate channel and I am on ubuntu 20 LTS: I need to install dotnet aspnet 3.1.31 https://dotnet.microsoft.com/en-us/download/dotnet/3.1
[14:38] <anddam> the Linux "Package Manager Instructions" says it's packaged on Ubuntu 20 https://learn.microsoft.com/en-gb/dotnet/core/install/linux-ubuntu but from what I can see that's only the .net runtime, not aspnet
[14:39] <anddam> oh wait, adding their repo via the provided .deb I do see aspnetcore-runtime-3.1/kinetic
[15:30] <kkkssf> Hi!
[15:31] <kkkssf> How long will it take to fix the remote code execution in vlc on ubuntu?
[15:32] <kkkssf> this one https://ubuntu.com/security/CVE-2022-41325
[15:32] -ubottu:#ubuntu- An integer overflow in the VNC module in VideoLAN VLC Media Player through <IP_ADDRESS> allows attackers, by tricking a user into opening a crafted playlist or connecting to a rogue VNC server, to crash VLC or execute code under some conditions. <https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-41325>
[15:33] <kkkssf> debian already fixed it https://security-tracker.debian.org/tracker/CVE-2022-41325
[15:33] -ubottu:#ubuntu- An integer overflow in the VNC module in VideoLAN VLC Media Player through <IP_ADDRESS> allows attackers, by tricking a user into opening a crafted playlist or connecting to a rogue VNC server, to crash VLC or execute code under some conditions. <https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-41325>
[15:33] <mybalzitch> *checks watch*
[15:34] <leftyfb> kkkssf: https://ubuntu.com/security/CVE-2022-41325
[15:34] -ubottu:#ubuntu- An integer overflow in the VNC module in VideoLAN VLC Media Player through <IP_ADDRESS> allows attackers, by tricking a user into opening a crafted playlist or connecting to a rogue VNC server, to crash VLC or execute code under some conditions. <https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-41325>
[15:35] <leftyfb> it's in progress
[15:36] <mybalzitch> and is only an issue if you blidly feed vlc a malformed playlist
[15:36] <mybalzitch> *blindly
[15:37] <avih> i presume "random" is not particularly an issue, but "maliciously crafted" is
[15:43]  * alkisg didn't know VLC has a VNC module!
[15:45] <alkisg> avih: you can get firefox from the mozillateam ppa, which is maintained by canonical (thanks for that!); and your snap-firefox profile should be somewhere under ~/snap, if you want to locate bookmarks etc
[15:46] <avih> akossh: thanks, yes, i did install it. there was a ~/.mozilla (which shouldn't have changed much since i upgraded to 22.04) but the new firefox didn't pick it up. i _think_ i removed /snap
[15:46] <alkisg> avih: "alkisg", not "akossh"; it's ~/snap, under home, not /snap, under rootfs
[15:47] <alkisg> I.e. /home/avih/snap
[15:47] <avih> yeah, i removed /snap. so i guess that profile is lost, and ~/.mozilla does not seem to get used
[15:47] <avih> right, sorry (autocomplete)
[15:48] <alkisg> ...that doesn't sound right, the ppa firefox should be using ~/.mozilla
[15:48] <avih> hmm.. ~/snap/firefox/current is a symlink to "2154", but i don't think i can locate this dir
[15:49] <avih> alkisg: i think so too, but maybe the move to snap with 22.04 also cleaned ~/.mozilla ?
[15:49] <alkisg> Eeeh, that sounds horrible to contemplate
[15:49] <avih> it was about 70M before i installed firefox-esr from that ppa
[15:49] <alkisg> Ah, dunno about firefox-esr, it might be using something else, I installed firefox
[15:49] <avih> which sounds a bit small TBH, but then again, maybe not
[15:50] <avih> yeah, possibly esr has a different config dir. let me check inside ~/.mozilla
[15:50] <avih> there is indeed ~/.mozilla-firefox-esr
[15:51] <avih> ~/.mozilla/firefox-esr
[15:59] <avih> alkisg: renaming firefox/ to firefox-esr inside ~/.mozilla did not work as expected, but removing firefox-esr and installing firefox from that ppa (and restoring the config dir) does pick it up as expected :) thanks
[16:00] <alkisg> 👍
[16:00] <avih> it's a shame that firefox works so badly these days over remote x. i remember when they removed xrandr support and i was against it (i was forking for mozilla back then)
[16:01] <jenky> any incite on being able to download movies from i.e. netflix/hulu/hbogo/etc to be able to watch on a plane w/o internet?  was going to check to see if there are any netflix/hulu/etc clients for ubuntu/linux, but figured id check here first
[16:01] <avih> their excuse at the time was "chrome doesn't work great over remote x, so that's our benchmark...)
[16:02] <leftyfb> jenky: feel free to /join #ubuntu-offtopic for software opinions
[16:02] <avih> while before the removal firefox was orders of magnitude better than chrome over remote x
[16:03] <avih> (obviously there's technical merit for the removal, but still...)
[16:03] <jhutchins> jenky: There are a couple of youtube downloaders that might work with other sources.  It's considered piracy, so much of any support is "underground".
[16:04] <jhutchins> jenky: Before you try, you should test your device and see if it will actually drive full-res graphics for two hours or more.
[16:04] <jhutchins> jenky: Many laptops won't.
[16:05] <jhutchins> jenky: (Also, "incite'=to arouse, "insight" means to see into.
[16:05] <jenky> k ill look that up as well; thx for the responses
[16:05] <jenky> lol it didnt autocorrect so figured it was spelled right
[16:21] <huw_> hey, a couple of nights ago my trackpad just stopped working, don't think i had installed, updated, or upgraded anything for quite a while.  any ideas of what to look at? I ended up doing a hail mary upgrade so I'm up to date now at least :)
[16:21] <huw_> Meant to say, it works on a live cd.
[16:47] <jhutchins> huw_: Ah.  Sudden failure without software changes points to hardware, thanks for clarifying that it still works.
[16:47] <jhutchins> huw_: Try creating a new user and seeing if it works for them.
[16:50] <huw_> jhutchins, new user works :D what could I have done? I do wonder if one of my kids has pressed some buttons.. lol
[16:54] <jhutchins> huw_: I suspect a guest cat in my office has not only opened folders but may have deleted files.  I had the "Unable to create trashcan" message on my screen.
[16:55] <jhutchins> huw_: There's something in your profile, the preferences for your desktop most likely.  I only have about five minutes of experience with gnome, so hopefully somebody else knows what to tweak.
[17:01] <arraybolt3> jhutchins: Oh yikes. You have backups right?
[17:05] <ogra> of his trashcan ?
[17:05] <ogra> 🙂
[17:09] <arraybolt3> ogra: Yeah but what if more than just a trashcan got deleted?
[17:09] <ogra> he can blame the cat ...
[17:09] <ogra> 🙂
[17:10] <ogra> (i'm totally not serious here in my last few lines, hope you get that 🙂 )
[17:10]  * alkisg would like to restore 2 cats he accidentally deleted... :/
[17:11] <arraybolt3> ogra: :P
[18:12] <esv> hey folks, it seems like http://azure.archive.ubuntu.com/ubuntu/ points to a recursive link
[18:12] <esv> to itself
[18:13] <jhutchins> arraybolt3: I don't usually pay attention to when/how/why that message crops up, I know what _I'm_ doing.  I _think_ it aborts the delete if it can't create the trashcan (CIFS share).  In any case, it wasn't an important file, just a cute video if anything.
[18:14] <jhutchins> I do now have the screen lock engaged.
[18:14] <jhutchins> Oh, yeah, that folder's in the backup stack too, so no loss.
[18:16] <leftyfb> esv: sort of. Are you having an issue with your repo?
[18:17] <leftyfb> esv: https://askubuntu.com/a/953254
[18:19] <cluelessperson> Where does nautilus store samba passwords?
[18:20] <leftyfb> cluelessperson: more than likely in your "passwords and keys" (seahorse) application
[18:21] <cluelessperson> can't find them in there.
[18:21] <leftyfb> cluelessperson: gnome-keyrung
[18:21] <leftyfb> gnome-keyring*
[18:22] <esv> yes, there are issues with the repo. wondering if anyone at canonical can fix that.
[18:22] <leftyfb> esv: try #ubuntu-mirrors
[19:01] <Crepe> hi
[19:02] <Crepe> Does anybody know how to configure Ubuntu so it keeps my Lenovo's keyboard backlight always on? I tried to search a solution but it looks like nothing works on Lenovo laptops, so i'm asking just in case anyone managed to solved it
[19:26] <jhutchins> Crepe: That _might_ be a hardware limitation.
[19:26] <jhutchins> It'd be nice if it could at least keep it on during power-up.
[19:26] <jhutchins> Crepe: Does it go out even if you're typing?
[19:40] <Crepe> jhutchins: hi sorry, I was cooking; no, it just turns off both when 1) I restart my computer (well, not really when i restart, but when I shut down and start again), and 2) when I'm iddle for few minutes so the screen also reduces its brightness
[19:40] <Crepe> but keyboard's backlight doesn't reactivate as screen does
[19:41] <Marz> can anyone assist with unattended upgrades? On debian I add "o=Artifact"; but this does not work on ubuntu. How do you add other packages to unattended upgrades?
[19:50] <jhutchins> Crepe: You might look for Lenovo keyboard drivers on the web, or see what support Lenovo might be offering these days.  Even if they won't support Liux, the more people who ask the more likely they are to eventually support it.
[19:50] <jhutchins> Crepe: It definitely sounds like a driver issue, although keyboards usually don't take a specific driver.  (Special function keys do.)
[19:56] <Crepe> jhutchins: true, I've been reading about it and it looks like a drivers problem
[19:57] <Crepe> I'll ask them to include the drivers so they feel the pressure from more and more people :)
[19:57] <Crepe> btw, thank you jhutchins
[20:08] <linuxsux_windows> linux sux
[20:08] <linuxsux_windows> windows best benchmarks
[20:08] <leftyfb> linuxsux_windows: trolling is offtopic here. Please /join #ubuntu-offtopic
[20:09] <linuxsux_windows> im not trolling im serious
[20:09] <leftyfb> linuxsux_windows: as am I
[20:09] <linuxsux_windows> who is more serious bring me evidence
[20:09] <linuxsux_windows> benchmarks talk
[20:09] <arraybolt3> !ops | linuxsux_windows is disrupting the channel
[20:10] <linuxsux_windows> disrupting? youre overly emotional. sorry to hurt your fragile ego
[20:14] <arraybolt3> Apologies if that was overkill, I saw he wasn't listening and figured he wasn't going to listen, but it dawns on me he probably would have just left if ignored.
[20:16] <emilyCringe> opening with "linux sux" was funny at least. definitely just wanting to troll though
[20:16] <leftyfb> lets stay on topic please
[20:38] <Crepe> linux might suck but in my company we only use Linux and we sell open source software so nothing to envy to property software
[20:38] <Crepe> anyway it's a clear trolling so nevermind
[20:40] <Crepe> dinner time
[20:56] <oerheks> Linux kernel 6.2 contains fixes for some problems handling floppy disks
[21:19] <elias_a> :D
[21:29] <bingoJACKPOT> Alright, I'm having some weird issue with permission. I can open my text editor alone - I use gedit - without putting a file in path. But if I use it to open some programs it just hangs. The only way to fix it and it's not a surefire way is to run the following command: ps -aleF | grep sudo | awk '{print $4}' | xargs kill -9
[21:30] <bingoJACKPOT> ... If anyone knows of a permanent fix, please share. In other news, I'm being recruited by Canonical for an Ubuntu job!
[21:31] <leftyfb> bingoJACKPOT: define "But if I use it to open some programs"
[21:31] <bingoJACKPOT> And it looks like it will open some files without sudo. That makes no sense. The root user should have full access and non-root should not have more privelege in any way or form over root.
[21:32] <bingoJACKPOT> My local user has the highest rights in the sudoers file but he should not be overtaking Mr. Root.
[21:32] <bingoJACKPOT> OK, when I open a script I wrote for /usr/local/bin, it will open without sudo but with sudo it hangs.
[21:32] <leftyfb> bingoJACKPOT: what type of script? Shell script? Python?
[21:32] <bingoJACKPOT> I store my scripts in /usr/local/bin, which is where they should go by Linux convention.
[21:32] <bingoJACKPOT> They are Bash scripts, mostly
[21:33] <bingoJACKPOT> I have a separate photo for my Python code
[21:33] <bingoJACKPOT> *folder
[21:33] <leftyfb> ok, how exactly are you opening them?
[21:33] <bingoJACKPOT> I run usually sudo gedit /usr/local/bin/<filename>
[21:33] <bingoJACKPOT> I just tested one of the files and it did open without sudo and it was written likely without sudo as sudo should never be the default way to write a script. Sudo should be limited in use.
[21:34] <bingoJACKPOT> But in my sudoers... And this shouldn't be an issue, the standard user can run anything without a password - or most things anyway. I can run sudo <argument> for most programs and they will run. But that sudoers file was edited months ago and the issue arose only recently.
[21:35] <oerheks> no,  /usr/local/sbin
[21:35] <leftyfb> bingoJACKPOT: slow down. The queick answer is, you're not going about this correctly
[21:35] <bingoJACKPOT> What ... sbin has the binaries themselves ... that makes no sense
[21:35] <leftyfb> bingoJACKPOT: the longer answer I'm trying to find
[21:35] <bingoJACKPOT> The binaries for owners are there ... the files are not stored there... sbin is for the ownership bits
[21:35] <alkisg> Does sudo gedit work on wayland?
[21:36] <leftyfb> yes
[21:36] <bingoJACKPOT> OK, someone not be terse ans answer. Please, mr. leftyfb
[21:36] <leftyfb> that also isn't the issue
[21:36] <oerheks> files in  /usr/local/bin are used for users without sudo rights..
[21:36] <leftyfb> bingoJACKPOT: I'm looking
[21:36] <bingoJACKPOT> You're being aggressive and terse and those two adjectives should not go together
[21:36] <bingoJACKPOT> Yes, that's right /usr/local/bin is not for super users. I agree with that
[21:36] <oerheks> so why use sudo to edit them?
[21:36] <bingoJACKPOT> Linux traditionally is a multi-user platform and root should not have his or her scripts in /usr/local/bin
[21:37] <bingoJACKPOT> I did not
[21:37] <EriC^^> bingoJACKPOT: try sudo -H gedit
[21:37] <bingoJACKPOT> I either mispoke, you misread or both
[21:37] <leftyfb> bingoJACKPOT: sudo -E gedit /usr/local/bin/script.sh
[21:37] <bingoJACKPOT> with sudo -H it still hangs
[21:38] <bingoJACKPOT> I know something is up with my permissions either way as some of my issues aren't happening on Debian
[21:38] <leftyfb> bingoJACKPOT: the quick answer is, you're not supposed to be calling GUI applications with sudo. There are proper mechanisms for this.
[21:38] <bingoJACKPOT> For instance, about once every month or so after an update, I have to edit the config file for Software Center so that the GUI will open without sudo
[21:38] <bingoJACKPOT> I should not have to use sudo to open Software Center
[21:39] <bingoJACKPOT> OK, /usr/local/bin doesn't store GUI programs, dude or lady
[21:39] <bingoJACKPOT> It's for shell scripts
[21:39] <EriC^^> bingoJACKPOT: gedit is the gui program
[21:39] <bingoJACKPOT> I think most programs which are gui go in /usr/bin
[21:39] <bingoJACKPOT> The configs go in /etc
[21:39] <bingoJACKPOT> Gedit, yes, that's the text editor
[21:39] <leftyfb> bingoJACKPOT: sudo -E gedit /usr/local/bin/script.sh
[21:39] <bingoJACKPOT> I use it to write my scripts.
[21:39] <bingoJACKPOT> Hold on. Let me see if it opens that way
[21:40] <bingoJACKPOT> I don't write normal scripts or edit them with sudo, BTW
[21:40] <bingoJACKPOT> I only use sudo when I have to
[21:40] <EriC^^> bingoJACKPOT: yeah, you're not supposed to use "sudo <gui program>" you will mess up your $HOME file ownership potentially
[21:40] <bingoJACKPOT> OK, we're getting somewhere, the "E" switch worked. Thanks!
[21:41] <EriC^^> great
[21:41] <bingoJACKPOT> Yes, it says in numerous places not to open Nautilus with root
[21:41] <leftyfb> bingoJACKPOT: just because it worked doesn't mean it's the right thing to do
[21:41] <bingoJACKPOT> That is well known - and I don't
[21:41] <leftyfb> the same thing applies to gedit
[21:41] <bingoJACKPOT> But you have to edit the network configs for VMware by opening it with root
[21:41] <oerheks> nautilus has a special plugin for that
[21:41] <bingoJACKPOT> So, in the case of VMware, there's no other way
[21:41] <bingoJACKPOT> You can't create network adapters or networks in VMware Workstation Pro without opening it as sudo
[21:42] <bingoJACKPOT> Nice that non-noob questions can get answered here. I rarely come here for technical problems so I apprecitae this
[21:42] <leftyfb> bingoJACKPOT: I can tell you an answer you're not goin to like
[21:42] <oerheks> have fun!
[21:42] <bingoJACKPOT> There will be a lot of people like me though if I get that Canonical job
[21:43] <bingoJACKPOT> I have a thick skin for this channel so you can tel me whatever. Trolling is popular on Libera
[21:43] <leftyfb> bingoJACKPOT: "non-noobs" don't use gedit to edit config files
[21:43] <bingoJACKPOT> Trolling is VERY VERY pouplar on Stack Exchange
[21:43] <bingoJACKPOT> Oh, you use Vim or Vi
[21:43] <bingoJACKPOT> Yeah, I could do that
[21:43] <bingoJACKPOT> You must be pushing eighty-six years old to be using it though. You were with AT&T in the Unix era? Can you pass over a note to Dennis Ritchie for me please?
[21:44] <bingoJACKPOT> Also, Kevin Mitnick has a question for you... He's on the phone no
[21:44] <bingoJACKPOT> *now
[21:44] <leftyfb> bingoJACKPOT: coming from someone who used to work for Canonical, you'd be good to not have that attitude while working there
[21:45] <bingoJACKPOT> leftyfb ...   I prefer nano - that's the respectable answer
[21:45] <leftyfb> bingoJACKPOT: vim and emacs are very popular for sysadmins and devops. As are proper IDE's for development. Regardless of age
[21:45] <bingoJACKPOT> But it's hard to edit huge scripts with nano
[21:45] <leftyfb> nano is also fine for some
[21:45] <bingoJACKPOT> For really hardcore stuff, I like Visual Studio Code
[21:45] <leftyfb> bingoJACKPOT: good luck
[21:46] <leftyfb> bingoJACKPOT: If you have no further support questions, feel free to chat in #ubuntu-offtopic
[21:46] <bingoJACKPOT> Yeah, thanks. If you are not being sarcastic
[21:46] <bingoJACKPOT> I can't believe they're even talking to me. I'm a power user but I'm not like my uncle who could do pretty much anything with Linux
[21:47] <bingoJACKPOT> If you're an older man or lady, you may be my uncle's age. He's a baby boomer and he got me into Linux in the mid 2000s
[21:47] <bingoJACKPOT> Ubuntu was less popular and well known then
[21:48] <bingoJACKPOT> If you have any tips beyond telling me to be humble or trashing gedit, which could help me score a job, please share them leftyfb ... I was playfully joking with you, mate. I mean no harm nor disrespect.
[21:49] <leftyfb> bingoJACKPOT: It's offtopic here. Feel free to ask others in #ubuntu-discuss
[21:50] <bingoJACKPOT> OK
[22:13] <TreeFish20> Hi guys, I want to re-encrypt my OS from aes to twofish or serpent, using Lubuntu 22.04, LUKS.
[22:16] <oerheks> backup data and reinstall ? that would be fastest and safest.
[22:16] <oerheks> !rootirc
[22:17] <Guest7996> hi
[22:26] <jesmaani> hello everyone. Could someone help me. I am trying to revive old Acer Aspire ES 14 with a Lubuntu install. Everything went fine with the live USB install, but after the install computer does not recognise its eMMC where it should boot and where I have lubuntu installed
[22:28] <oerheks> disable uefi?  and reinstall.. https://askubuntu.com/questions/943947/no-bootable-device-found-after-ubuntu-install-aspire-es-14
[22:28] <oerheks> old issue
[22:28] <jesmaani> no uefi option in boot menu
[22:28] <jesmaani> even after disabling secure boot and adding passwords
[22:29] <oerheks> oke, no clue then ..
[22:30] <jesmaani> damn
[22:30] <jesmaani> there has to be some way
[22:30] <oerheks> other more recent post; https://askubuntu.com/questions/1198117/no-bootable-device-on-single-boot-ubuntu-for-acer-aspire-es14
[22:31] <oerheks> on https://askubuntu.com/questions/1277405/problems-installing-ubuntu-on-acer-laptop  i see screenshots with 'fastboot'. make sure that is disabled during install
[22:33] <jesmaani> I have no option to choose from UEFI or LEGACY in bios and thats the problem with these things. ES1-432-C0BW is complete model. This piece of junk comes with 32gb eMMC with the only storage
[22:34] <oerheks> fastboot is different from secureboot
[22:34] <oerheks> !uefi
[22:34] <ubuntu4evah> hi
[22:35] <ubuntu4evah> i am looking for ways to imrpove perfornamce on linux. any tips?
[22:35] <jesmaani> ok i boot that piece of junk and lets see if there was any fastboot option but if remember right there was no such option
[22:36] <ubuntu4evah> what
[22:36] <ubuntu4evah> ?
[22:36] <leftyfb> !op | please remove ubuntu4evah. Same troll as earlier
[22:37] <ubuntu4evah> i am not a troll. its really rude of you to talk about me this way
[22:37] <leftyfb> ubuntu4evah: please leave
[22:37] <ubuntu4evah> just because you dont have any suggestions
[22:37] <ubuntu4evah> rude
[22:38] <ubuntu4evah> !op | please remove leftyfb same troll as before
[22:39] <oerheks> oh linuxsux_windows is back..
[22:39] <jesmaani> Ok. There was no fastboot option. When I'm in bios there is the eMMC where i have lubuntu installed, but when i restart the machine and hit f12 for boot manager it show only network boot options
[22:39] <jesmaani> if i stick my live usb on the machine it boots from there
[22:40] <ubuntu4evah> windows sux
[22:40] <oerheks> jesmaani, check bios version? maybe an update solve things
[22:40] <ubuntu4evah> oerheks. u a witch
[22:52] <neoweb> I cannot get this laptop to stop suspending at the login screen
[22:52] <neoweb> I have tried everything here
[22:52] <neoweb> https://askubuntu.com/questions/942366/how-to-disable-sleep-suspend-at-login-screen
[22:54] <neoweb> is there some systemd stuff here that is messign with me
[22:56] <neoweb> i know systemd has some hate when i close the lid in archlinux
[22:56] <neoweb> back in the day
[22:57] <neoweb> so freaking frustrating at this point
[23:04] <neoweb> https://askubuntu.com/questions/1337649/how-to-disable-suspend-in-20-minutes-from-the-lightdm-login-screen
[23:12] <highrate> why does itoa() not have man page
[23:12] <highrate> manual*
[23:13] <highrate> test.c:(.text+0x48): undefined reference to `itoa'
[23:13] <highrate> not used anymore?
[23:14] <esv> https://www.mkssoftware.com/docs/man3/itoa.3.asp