[00:04] <murthy> oerheks: regarding the chromium snap, one user from #kde told me it could be because of an emergency security update, where the devs possibility didn't spend time to check the icon paths and stuff
[00:05] <murthy> oerheks: thanks for the support
[00:28] <noarb> when logging in with ssh, when does update-motd get run? I'm looking at sshd configuration with 'PrintMotd no' but I still get that message when I log in, does it run at a different time in the login?
[00:28] <wez> noarb: It runs in crontab I believe, not at login time.
[01:08] <Dr-007> i'm still looking for a way how to make a live usb stick from the ubuntu os i'm currently on. so with all my apps and settings cloned to an usb thumbdrive. then make the usb thumbdrive live persistent so it will use an overlay for files that get created while you're booted from the usb drive
[01:09] <Dr-007> as from what i understand is if you want to make a persistent bootable iso you'll add something like this in the grub.cfg: linux (loop)/casper/vmlinuz boot=casper iso-scan/filename=$isofile quiet splash noprompt persistent --
[01:10] <Dr-007> and the $isofile should be an isofile download from ubuntu.com. when i look into that .iso file there's a bunch of folders and such that would not exist if would make a .img file from my current ubuntu partition
[01:11] <sprnk[m]> @noarb check /etc/pam.d/login
[01:46] <RonWhoCares> I posted my question here:   (This is just a database query question) https://pastebin.com/LpVGMQFX
[02:28] <jhutchins> ubottu: ping
[02:49] <morganu> 20.04 I would like to make my view in finle manager to be always a list of the files and their qualities. I have googled how to make that permanent, change the default, but the directions dont work. I dont have a meanu button I dont have something in preferences. \o/
[02:49] <morganu> FILE manager
[02:54] <jhutchins> morganu: Which one?
[02:55] <morganu> PCManFM 1.3.1  --- My other one vanished after following somebody's directions. shrug.
[02:55] <morganu> Lightweight file manager  using LibFM ver. 1.3.1
[02:56] <morganu> I am able to change it each time it opens. (https://sourceforge.net/projects/pcmanfm/)
[02:56] <morganu> I would install a different one.  "soon" I will put a newer Ubuntu on a different opinion.
[02:58] <morganu> jhutchins, dont worry. I just found THIS on the sourceforge page. --->   Also: there is no obvious way to set the default folder view mode.
[04:24] <EldonMcGuinness> I know there has to be something I'm missing here, how can I install qemu-kvm without the gtk bits? This is on a headless server.
[04:37] <lotuspsychje> EldonMcGuinness: maybe the #ubuntu-server guys might know that one
[04:44] <EldonMcGuinness> k
[05:31] <RaimondRaj> i have issue with sendmail install and configure - can anyone teach me and guide me
[06:03] <Mystified> hey guy's does anyone have a kernel for for freya 3.2 upgrade
[06:03] <Mystified> sorry ubuntu 4 kernel
[06:03] <Mystified> old elementary drive
[06:12] <rfm> RaimondRaj, I've worked on email for about 30 years now, and my guidance is *don't use sendmail*.  I've found postfix easier than exim.
[06:42] <RaimondRaj> rfm :please guide me
[07:50] <Dr-007> bleh, i wanted to edit stuff on a wiki page but it's hard to find the entrance to do it at all. it's this page: https://help.ubuntu.com/community/MakeALiveCD/DVD/BootableFlashFromHarddiskInstall where 'install grub to flash disk' it has this command: `sudo grub-install --no-floppy --force --root-directory=/mnt /dev/sdc` it should be `sudo grub-install --removable --root-directory=/mnt /dev/sdc`
[07:50] <Dr-007> with no-flopy it would hit my efi partition on the usb but grub would just say "System reset" and reboot over and over
[07:52] <oerheks> Wiki is locked down, to avoid troll edits; To edit the Ubuntu Wiki, join the Ubuntu Wiki Editors team on Launchpad. https://launchpad.net/~ubuntu-wiki-editors
[07:52] <Dr-007> and maybe you could add a little section / explanation above it explaining you can use 2 partitions. an efi partition and a ntfs/ext4 partition. the last one so you can store large .iso's onthere. if you follow that guide then youll end up with a fat32 partition and you're restricted to 4GIG isos
[07:52] <oerheks> else mail them with your edit request.
[07:52] <Dr-007> oerheks, oki doki
[07:52] <Dr-007> im not gonna do that
[07:52] <Dr-007> i dropped a line inhere :)
[07:53] <oerheks> a small partition extra is called persistent, there are guides for that
[07:53] <Dr-007> no the persistent part is not the extra partition
[07:53] <oerheks> mkusb can do that, perhaps rufus too
[07:53] <Dr-007> you can save the persistent part in a file or in another partition
[07:54] <Dr-007> https://shallowsky.com/blog/linux/install/ubuntu-persistent-live-cd.html
[07:54] <oerheks> mkusb https://www.linuxuprising.com/2019/03/create-persistent-storage-live-usb-with.html
[07:54] <Dr-007> yeah i tried using mkusb with the iso that guide created
[07:55] <Dr-007> but that doesnt work
[07:55] <Dr-007> so i was glad when i got to the bottom of the guide
[07:55] <oerheks> oh i am sure it works, it just takes forever..
[07:56] <Dr-007> where they explained it how to do it by hand
[07:56] <Jasonwizkid> hello guys
[07:56] <Dr-007> hi wizkid
[07:58] <Jasonwizkid> hello
[07:58] <Jasonwizkid> i am hacker
[08:02] <Dr-007> hmm, i am booted from the live ubuntu i created myself on a usb. and i installed ubiquity (while not in persistent mode) and the installer i end up with is one for kubuntu.
[08:05] <Dr-007> also i forgot to install lupin-casper inside my os before making the iso file. i only installed casper. it complained in the boot sequence about lupin-for-devs or something like that. but it still loaded okay.
[08:05] <Dr-007> so what is lupin-casper?
[08:06] <Dr-007> or does apt-get install casper also install lupin-casper automatically and am i mistaken?
[08:06] <Jasonwizkid> yes its does
[08:08] <Dr-007> no it doesnt
[08:08] <Dr-007> The following NEW packages will be installed:
[08:08] <Dr-007>   lupin-casper
[08:09] <Jasonwizkid> how many live images do you have
[08:13] <Jasonwizkid> you should type apt install only i tried it and it worked am running ubuntu 18
[08:17] <hamburger> hi all
[08:17] <hamburger> :)
[08:21] <tbot_> lol
[08:22] <RedDevil> XD
[08:28] <RedDevil> quit
[08:28] <RedDevil> lol
[08:49] <dob1> what is the default python in last ubuntu?
[08:49] <dob1> 2 or 3?
[08:50] <dob1> I was sure it was 3 but with python I get python 2... something changed but I don't know what
[08:50] <RedDevilVigilant> I usually use the default python as python3.
[08:50] <dob1> if you type python  you get 3?
[08:51] <RedDevilVigilant> Yes,
[08:51] <dob1> I was sure it was the same here... but it's 2 now
[08:51] <RedDevilVigilant> Have you tried "sudo apt install python3-pip"?
[08:52] <oerheks> you must have installed something that pulled in python2.7
[08:53] <dob1> oerheks, it doesn't seem, apt-get remove python2.7  doesn't list me any package I have installed
[08:54] <dob1> RedDevilVigilant, I have this package
[08:55] <RedDevilVigilant> Then it is probably what oerheks said, you have something that pulled in python2.7 lol
[08:56] <oerheks> cruft from distro upgrade?
[08:56] <oerheks> fresh ubuntu is python3 solely.
[08:57] <oerheks> and if you removed python2.7, reboot might be needed.
[08:58] <filename> no
[09:02] <dob1> is python-is-python3 package installed as default?
[09:24] <oerheks> dob1, no
[09:24] <oerheks> and it can cause some problems, not advised to use it.
[09:24] <oerheks> !info python-is-python3
[10:05] <dob1> so you don't have python  but just python3, right?
[10:05] <dob1> as command I mean
[10:49] <Croran> does the switch pro controller work well on ubuntu?
[11:25] <Mrokii> Hello. Not sure if I'm in the right room for this, but I have an HD that might possibly be broken. It doesn't seem to contain a partition anymore (superblock broken?), and I'm not sure how I can fix that. Mounting failed with this: "column: read failed: Input/output error
[11:25] <Mrokii> "
[11:26] <EriC^^> Mrokii: sounds like either connection or hardware error
[11:27] <Mrokii> EriC^^: So what could I try? Another sata-cable maybe? Or another sata-port, to see if that's the problem?
[11:27] <EriC^^> Mrokii: try 'sudo apt-get install smartmontools && sudo smartctl -a /dev/sdX'
[11:27] <EriC^^> replacing sdx with your hdd
[11:29] <Mrokii> I'll post a link to the output.
[11:29] <Mrokii> And thanks.
[11:29] <EriC^^> yeah, i think you should get another hdd and try to copy the data over if possible, or use gddrescue to image the disk
[11:30] <Mrokii> The problem is that no partition is shown when I use Partition Manager.
[11:30] <Mrokii> https://pastebin.com/WtJREq7S
[11:31] <EriC^^> Mrokii: hmm, try installing testdisk, sudo apt-get install testdisk
[11:31] <Mrokii> I think I have that already.
[11:31] <EriC^^> then sudo testdisk /dev/sdx and see if partitions how up in the quick search
[11:32] <EriC^^> Mrokii: also try sudo blkid -s PTTYPE /dev/sdX and see which type of partition table it is
[11:34] <Mrokii> I'm trying the quicksearch at the moment.
[11:37] <Mrokii> EriC^^: That blkid command returns nothing
[11:38] <EriC^^> Mrokii: press p over the partition in testdisk to list the files, and c or C or copy them
[11:38] <EriC^^> gtg, goodluck!
[11:38] <Mrokii> erica: Thanks, I'll try.
[12:40] <BluesKaj> Hi all
[12:41] <luna> hi
[13:17] <Mrokii> Hello. I have a drive that has suddenly gone into read-mode, and I had to restart. Now, the drive has "lost" its partition information, and a quick search with testdisk didn't show anything. I wonder, would writing a new partition table (it was the complete HD bevore) show the files again? Smart-tools btw can identify the disc, but apart from that only gives input/output errors.
[13:26] <EriC^^> Mrokii: do you happen to have an old parted output
[13:37] <Mrokii> EriC^^: No, nothing like that.
[13:37] <Mrokii> I am sure I used the whole HD for one partitioin though.
[13:38] <Mrokii> Alhtough at this point I'm not even sure a new partition table could be written.
[13:39] <EriC^^> Mrokii: you could try mounting it by giving the offset, sudo mount -o offset=$((512 * 2048)) /dev/sdx /mnt
[13:39] <Mrokii> In that case I assume my only chance would be a new HD (which I need anyway) and ddrescue or something like that, to try to get the files.
[13:39] <EriC^^> if you're using 512 sectors
[13:39] <Mrokii> I think I used the starndard settings. Wouldn't know why I should've changed them.
[13:40] <EriC^^> it's basically the same as writing a partition at 2048 and attempting to mount it via /dev/sdx1
[13:40] <Mrokii> Okay, I'll give it a try, thanks.
[13:45] <Mrokii> EriC^^: Didn't work. Gave me this error: "mount: /media/stephan/3_gb_hd: can't read superblock on /dev/loop9.
[13:46] <Mrokii> Tried to mount it with what it had been mounted to before. I don't know what that loop9-thing is though.
[14:06] <EriC^^> Mrokii: you could try giving it another superblock location
[14:07] <EriC^^> Mrokii: sudo mount -o  sb=32768,offset=$((512 * 2048)) /dev/sdx /mnt
[14:07] <EriC^^> this is the standard alternative superblock locations https://www.poftut.com/wp-content/uploads/2016/11/img_582d2297090e6.png
[14:11] <EriC^^> Mrokii: you could also search for other locations than 2048 in case that's that it was using,   blocksize=512; for i in {0..6000}; do echo "trying offset $i"; sudo mount -o offset=$(($i * $blocksize)) /dev/sda /mnt > /dev/null 2>&1 && echo "offset successful at sector $i , byte $(($i * $blocksize))" && break; done
[14:11] <EriC^^> maybe add -o sb=32768 to that as well so it uses the backup superblock
[14:12] <EriC^^> Mrokii: what's the output of "sudo parted -ls" look like?
[14:20] <krumelmonster> I resized sda6_crypt from ~60GB to ~900GB on a typical 20.04 luks+lvm installation. pvdisplay still says PV Size ~60GB. How can I extend the PV so I can extend the root lv and root fs?
[14:21] <Mrokii> EriC^^: https://pastebin.com/43zc8h0x
[14:21] <krumelmonster> I mean how can I extend the VG/volume group so I can extend the LV/logical volume
[14:21] <Mrokii> EriC^^: The relevant part is the error with sdb. That input/output error is something that has been shown with almost everything I tried.
[14:23] <tomreyn> krumelmonster: how did you resize sda6_crypt from ~60GB to ~900GB ?
[14:26] <krumelmonster> tomreyn replaced the disk etc. I think "cryptsetup resize" might actually be the command I need (looking at https://unix.stackexchange.com/a/322631 )
[14:27] <EriC^^> Mrokii: i think you should find another 4tb hdd and ddrescue this one there, then look into photorec and other stuff to recover
[14:27] <tomreyn> krumelmonster: replacing the disk would not have resized a dmcrypt-luks layer (assuming you did a 1-to-1 copy)
[14:28] <EriC^^> Mrokii: the more you try to recover on this one and longer you take the more the chances of recovery diminish
[14:28] <tomreyn> krumelmonster: i'm just trying to understand whether you may already have broken something by what you did so far. you probably have these layers: disk sda -> partition sda6 -> dmcrypt-luks layer sda6_crypt -> LVM2 PV -> LVM2 VG(s)/LV(s).
[14:28] <krumelmonster> Yes, I did resize the luks partition using gparted
[14:29] <tomreyn> krumelmonster: so sda6 is what you resized?
[14:29] <krumelmonster> yes
[14:30] <tomreyn> and sda6 is now 900 GB?
[14:30] <krumelmonster> according to gparted and lsblk yes but not according to vgdisplay
[14:30] <krumelmonster> So yes, it is
[14:30] <tomreyn> then indeed "cryptsetup resize" is the next step to extend the crypto containers' size to that of the extended partition
[14:31] <krumelmonster> can I run this online?
[14:31] <tomreyn> i don't think so
[14:33] <tomreyn> actually yes, it works on an active device. but maybe it's not the right command. i need to read up, it's been a while.
[14:37] <tomreyn> krumelmonster: "cryptsetup resize" on an active mapping (sda6_crypt) is correct. but run "cryptsetup status sda6" first and note it down
[14:38] <tomreyn> krumelmonster: i'm not sure whether you can safely do this while any file systems are mounted from within the crypto container, though
[14:38] <hamburger_> :)
[14:38] <tomreyn> or lvm2 structures even
[14:48] <BinarySavior> hi I installed nix-bin and I'm having trouble running it without sudo privileges.  I added my user to group nix-users and added my user to trusted-users in /etc/nix/nix.conf.  I noticed the socket file is owned by root:root but the directory it lives in is owned by root:nix-users.  Is this intentional?  or could i chown the socket to root:nix-users without breaking things?
[14:48] <BinarySavior> host os: ubuntu 21.10
[14:52] <Mrokii> EriC^^: That's what I intend to do. I've tried every possible (hopefully nondestructive) command I could get ahold of, and nothing worked. So I'll have to get another hd and try ddrescue or photorec.
[15:00] <krumelmonster> tomreyn I was actually missing pvresize /dev/mapper/sda6_crypt
[15:44] <TandyUK> hey guys, is there a keyboard shortcut to reset X to some kind of defaults?
[15:44] <TandyUK> not even sure what ubuntu version is on this nuc, but connected to a 4k 60hz screen, i see it boot, but it gives me no desktop etc
[15:44] <TandyUK> ctrl+alt+2 will get me into a terminal, but im not sure why its giving no gui output
[15:45] <lotuspsychje> TandyUK: did you firmware update your nuc to latest?
[15:46] <TandyUK> I havent updated anything as yet, ive just taken it out of storage and booted it up
[15:46] <lotuspsychje> TandyUK: best to do that first, some nuc models suffer no GUI at boot due firmware lack
[15:46] <TandyUK> it was fine when last used, about 18 months ago
[15:47] <lotuspsychje> or try getting into recoverymode?
[15:51] <TandyUK> hmm maybe just time for a reinstall - its doing the same on a 1080p screen too
[15:51] <TandyUK> and actually locks up (ie numlock etc not responding) shortly after getting into a console via ctrl+alt+f2
[15:54] <ioria> TandyUK, are you fully updated ?
[16:15] <tomreyn> krumelmonster: that would have been the next step after resizing the dmcrypt container, yes
[16:15] <tomreyn> good that you worked it out
[16:31] <Sven_vB> hi :) I'm on focal, "sudo cryptsetup close vg_foo-bar" -> "Device vg_foo-bar is still in use." how do I figure out what uses it? I already closed and released that LUKS's volume group, it no longer shows in "sudo vgs".
[16:31] <leftyfb> Sven_vB: lsof
[16:33] <Sven_vB> so I sudo -s to ensure the glob works, but still "lsof /dev/mapper/vg_foo-*" prints no output, except some warnings about unrelated sshfs mounts.
[16:36] <Sven_vB> I'll try if I can make dm force-close it
[16:39] <Sven_vB> nope. guess I'll just rename it and have it linger until reboot.
[16:50] <Sven_vB> nope, doesn't help. if I try to remount it, it still tries to use the old, failed vg_… even after I successfully closed their pv
[17:12] <Sven_vB> found someone with the same problem (unexpected storage device disconnect) on the dm-devel ML: https://www.spinics.net/lists/dm-devel/msg24301.html
[17:25] <Sven_vB> unfortunately that thread ends without a solution.
[17:28] <Bushmaster> howdy folks, what is that command that visually display system requrement with some unicode drawing
[17:35] <Niekdo> Bushmaster: neofetch
[18:33] <en11gma> i have windows 11 (TPM enabled) installed on my nvme m.2 in my x570 motherboard. i want to use a ubuntu live usb to install ubuntu to an "external hdd usb to sata adapter" which from what i seen is possible. during the install process i just select that drive and also select that drive for the partition manager/grub to be installed too. the problem i have is after i reboot into the usb-hdd
[18:33] <en11gma> ubuntu is at some point there will be an ubuntu update and it will overwrite my windows 11 partition manager and take control. this is what i do not want. is there a way to keep both operating systems seperate and just select which drive to boot through F12 boot menu
[18:33] <en11gma> and also what happens if i remove the usb-hdd ubuntu from usb connector?
[18:34] <en11gma> still leaving my windows 11 nvme m.2 conencted of course
[18:38] <leftyfb> en11gma: why do you say an ubuntu update is going to overwrite your windows 11 partition?
[18:38] <en11gma> i think it happens when ubuntu updates and there is a kernel update or a grub2 update
[18:39] <en11gma> because it does everytime
[18:39] <en11gma> this isnt my first rodeo with a seperate 2 drive dual boot situation
[18:39] <en11gma> i want to control which OS gets booted with the F12 not with a partition manager
[18:41] <en11gma> and then when it picks the drive i select it boots to that partition manager which should only see ubuntu or should only see windows depending on which drive i select with F12
[18:42] <en11gma> i do not want windows partition manager giving me the option to boot ubuntu and i do not want ubuntu partition manager to give me option to boot windows
[18:43] <en11gma> but somewhere along the line ubuntu tries to take over and run it. it will install grub2 to the windows drive. does grub2/ubuntu look for windows partitions and then try to overwrite windows partition manager even when ubuntu install was told to install grub2 to the ubuntu drive?
[18:44] <en11gma> i mean how is this preventable? only way i found so far was to disconnect sata cables for the os i didnt want to boot
[18:45] <en11gma> but now i dont have any sata drives. just the nvme m.2 (windows) and a sata drive i want to use as external drive for ubuntu with usb2sata adapter
[18:49] <en11gma> why is this channel so dead?
[18:50] <tomreyn> do you understand how uefi booting works / how it's supposed to work, with a single efi system partition on a single disk, containing boot loaders which the firmware chooses from?
[18:51] <EriC^> en11gma: you basically don't want grub-install to ever run on the ubuntu install, you could manually pin the package so it never gets updated, and replace grub-install binary with something like /bin/true
[18:56] <EriC^> en11gma: or maybe tackle efibootmgr instead, as that's the package that really would be altering your uefi menu, also -x os_prober from /etc/grub.d/  so your windows install doesnt show up in the ubuntu grub menu
[19:32] <Sven_vB> what does the "eol" in linux-image-lowlatency-eol-hwe-5.11 mean?
[19:39] <leftyfb> !eol | Sven_vB
[19:40] <Sven_vB> oh, so that one is End-of-Life even though it's newer than the default lowlatency kernel?
[19:50] <rfm> Sven_vB, but it's older than the current hwe lowlatency kernel
[19:53] <Sven_vB> oh I see. thanks!
[20:34] <en11gma> EriC^ so that means on my first install of ubuntu i should have the nvme m.2 with windows 11 on it removed?
[20:35] <EriC^> en11gma: yeah
[20:36] <en11gma> my nvme m.2 is above my gpu so its not that hard to remove. i think i will just have one device connected at a time. can i swap back and fourth like that with no problems when i have tpm enabled in uefi?
[20:37] <en11gma> im not going to edit anything i will just disconnect ubuntu drive (usb to sata adapter) and put in nvme m.2 when i want to use win11 and then remove nvme m.2 and hook up ubuntu drive. can i do that as long as both drives are gpt?
[20:38] <en11gma> without ill effects in ueft tpm system.
[21:28] <tomreyn> en11gma: had you considered virtualization? it can make it much easier to run two OSes, plus you can even run them at the same time.
[21:40] <en11gma> tomreyn i might give that a try but i have a usb 3.0 device that might be picky in that kind of enviroment. its a limesdr-mini and saturates that bus sometimes. that might be a good idea. i could try it and see how it goes maybe.
[21:43] <Sven_vB> thee's also SuperGRUB Disk, it can auto-detect various OSs including Windows and Linux kernels
[21:43] <Sven_vB> I use a variation of that as my default boot
[21:45] <tomreyn> probably not an option for a secureboot scenario
[21:45] <en11gma> does that just replace grub2 after you have did the default ubuntu install?
[21:45] <en11gma> yea secureboot i was thinking there could be problems. got to be careful with that.
[21:45] <en11gma> i can do almost everyting from a live usb but my gpu drivers cant be done correct
[21:46] <en11gma> it would be nice to have the binary working so the usb device works good with the fft window
[21:47] <en11gma> i think i will try the vm. thats a really good idea and i have done those before i just worry that the usb device might not work. then again i think maybe just pull the dang nvme m.2 out and hook the sata drive up without the adapter.
[21:47] <en11gma> grrr
[21:47] <en11gma> so confused
[21:48] <en11gma> bbiab and thanks guys
[21:53] <en11gma> i was just thinking if i download the ubuntu 20.04.4 is finished right? there isnt really anymore updates that will reinstall grub is there?
[21:54] <en11gma> i should only have to remove my nvme m.2 one time for the ubuntu install and the only updates after that are secutiry?
[21:54] <en11gma> so i could add my nvme m.2 back in without worries?
[21:55] <en11gma> i had been doing the ubuntu 22.04 daily builds and writing those images to usb so it didnt update anything because there was nothing to update until the next day
[21:56] <oerheks> 20.04.4 might not have the latest updates, just enable updates during install
[21:58] <en11gma> isnt 20.04.4 finished? the final point release. so any updates are just security updates?
[21:59] <en11gma> right now im writing it to a 16gb usb stick with rufus. i selected gpt and maxed out the persistent partition
[22:00] <en11gma> how do i boot it up so it uses persistent i forget
[22:00] <tomreyn>  18.04 is currently at .6. i assume 20.4 will go there, too
[22:00] <en11gma> oh crap. why an i thinking its finished.
[22:00] <tomreyn> *20.04(.6)
[22:00] <en11gma> oh no. lol im stupid
[22:01] <en11gma> in the persistent partition can i tell it not to update anything else so when i do a sudo apt update it will not try to install anything that makes me restart to finish installing?
[22:02] <en11gma> i think i might just try and run it from a usb live enviroment and hope the 2d driver for the gpu will be good enough for that usb fft app