[00:04] 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] oerheks: thanks for the support [00:28] 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] noarb: It runs in crontab I believe, not at login time. === aaguhagegaooeg is now known as westor === westor is now known as Guest1750 [01:08] 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] 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] 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] @noarb check /etc/pam.d/login === Guest1750 is now known as westor === M4he is now known as mahe [01:46] I posted my question here: (This is just a database query question) https://pastebin.com/LpVGMQFX [02:28] ubottu: ping [02:49] 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] FILE manager [02:54] morganu: Which one? [02:55] PCManFM 1.3.1 --- My other one vanished after following somebody's directions. shrug. [02:55] Lightweight file manager using LibFM ver. 1.3.1 [02:56] I am able to change it each time it opens. (https://sourceforge.net/projects/pcmanfm/) [02:56] I would install a different one. "soon" I will put a newer Ubuntu on a different opinion. [02:58] 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] 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] EldonMcGuinness: maybe the #ubuntu-server guys might know that one [04:44] k [05:31] i have issue with sendmail install and configure - can anyone teach me and guide me [06:03] hey guy's does anyone have a kernel for for freya 3.2 upgrade [06:03] sorry ubuntu 4 kernel [06:03] old elementary drive [06:12] 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. === pasiz8 is now known as pasiz [06:42] rfm :please guide me === Denis is now known as Guest8232 === diskin is now known as Guest3817 [07:50] 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] 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] 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] 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] else mail them with your edit request. [07:52] oerheks, oki doki [07:52] im not gonna do that [07:52] i dropped a line inhere :) [07:53] a small partition extra is called persistent, there are guides for that [07:53] no the persistent part is not the extra partition [07:53] mkusb can do that, perhaps rufus too [07:53] you can save the persistent part in a file or in another partition [07:54] https://shallowsky.com/blog/linux/install/ubuntu-persistent-live-cd.html [07:54] mkusb https://www.linuxuprising.com/2019/03/create-persistent-storage-live-usb-with.html [07:54] yeah i tried using mkusb with the iso that guide created [07:55] but that doesnt work [07:55] so i was glad when i got to the bottom of the guide [07:55] oh i am sure it works, it just takes forever.. [07:56] where they explained it how to do it by hand [07:56] hello guys [07:56] hi wizkid [07:58] hello [07:58] i am hacker [08:02] 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] 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] so what is lupin-casper? [08:06] or does apt-get install casper also install lupin-casper automatically and am i mistaken? [08:06] yes its does [08:08] no it doesnt [08:08] The following NEW packages will be installed: [08:08] lupin-casper [08:09] how many live images do you have [08:13] you should type apt install only i tried it and it worked am running ubuntu 18 [08:17] hi all [08:17] :) === diskin_ is now known as diskin [08:21] lol [08:22] XD [08:28] quit [08:28] lol [08:49] what is the default python in last ubuntu? [08:49] 2 or 3? [08:50] I was sure it was 3 but with python I get python 2... something changed but I don't know what [08:50] I usually use the default python as python3. [08:50] if you type python you get 3? [08:51] Yes, [08:51] I was sure it was the same here... but it's 2 now [08:51] Have you tried "sudo apt install python3-pip"? [08:52] you must have installed something that pulled in python2.7 [08:53] oerheks, it doesn't seem, apt-get remove python2.7 doesn't list me any package I have installed [08:54] RedDevilVigilant, I have this package [08:55] Then it is probably what oerheks said, you have something that pulled in python2.7 lol [08:56] cruft from distro upgrade? [08:56] fresh ubuntu is python3 solely. [08:57] and if you removed python2.7, reboot might be needed. [08:58] no [09:02] is python-is-python3 package installed as default? [09:24] dob1, no [09:24] and it can cause some problems, not advised to use it. [09:24] !info python-is-python3 [09:25] python-is-python3 (3.9.2-1, impish): symlinks /usr/bin/python to python3. In component main, is optional. Built by what-is-python. Size 3 kB / 13 kB === Gallomimia- is now known as Gallomimia [10:05] so you don't have python but just python3, right? [10:05] as command I mean [10:49] does the switch pro controller work well on ubuntu? === Guest01 is now known as beaver [11:25] 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] " [11:26] Mrokii: sounds like either connection or hardware error [11:27] EriC^^: So what could I try? Another sata-cable maybe? Or another sata-port, to see if that's the problem? [11:27] Mrokii: try 'sudo apt-get install smartmontools && sudo smartctl -a /dev/sdX' [11:27] replacing sdx with your hdd [11:29] I'll post a link to the output. [11:29] And thanks. [11:29] 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] The problem is that no partition is shown when I use Partition Manager. [11:30] https://pastebin.com/WtJREq7S [11:31] Mrokii: hmm, try installing testdisk, sudo apt-get install testdisk [11:31] I think I have that already. [11:31] then sudo testdisk /dev/sdx and see if partitions how up in the quick search [11:32] Mrokii: also try sudo blkid -s PTTYPE /dev/sdX and see which type of partition table it is [11:34] I'm trying the quicksearch at the moment. [11:37] EriC^^: That blkid command returns nothing [11:38] Mrokii: press p over the partition in testdisk to list the files, and c or C or copy them [11:38] gtg, goodluck! [11:38] erica: Thanks, I'll try. === lotuspsychje_ is now known as lotuspsychje === Denis is now known as Guest2291 [12:40] Hi all [12:41] hi === DasherPack is now known as WikiDasher === WikiDasher is now known as Dasherpack [13:17] 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. === Denis is now known as Guest8017 [13:26] Mrokii: do you happen to have an old parted output [13:37] EriC^^: No, nothing like that. [13:37] I am sure I used the whole HD for one partitioin though. [13:38] Alhtough at this point I'm not even sure a new partition table could be written. [13:39] Mrokii: you could try mounting it by giving the offset, sudo mount -o offset=$((512 * 2048)) /dev/sdx /mnt [13:39] 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] if you're using 512 sectors [13:39] I think I used the starndard settings. Wouldn't know why I should've changed them. [13:40] it's basically the same as writing a partition at 2048 and attempting to mount it via /dev/sdx1 [13:40] Okay, I'll give it a try, thanks. [13:45] EriC^^: Didn't work. Gave me this error: "mount: /media/stephan/3_gb_hd: can't read superblock on /dev/loop9. [13:46] Tried to mount it with what it had been mounted to before. I don't know what that loop9-thing is though. [14:06] Mrokii: you could try giving it another superblock location [14:07] Mrokii: sudo mount -o sb=32768,offset=$((512 * 2048)) /dev/sdx /mnt [14:07] this is the standard alternative superblock locations https://www.poftut.com/wp-content/uploads/2016/11/img_582d2297090e6.png [14:11] 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] maybe add -o sb=32768 to that as well so it uses the backup superblock [14:12] Mrokii: what's the output of "sudo parted -ls" look like? [14:20] 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] EriC^^: https://pastebin.com/43zc8h0x [14:21] I mean how can I extend the VG/volume group so I can extend the LV/logical volume [14:21] 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] krumelmonster: how did you resize sda6_crypt from ~60GB to ~900GB ? [14:26] 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] 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] krumelmonster: replacing the disk would not have resized a dmcrypt-luks layer (assuming you did a 1-to-1 copy) [14:28] Mrokii: the more you try to recover on this one and longer you take the more the chances of recovery diminish [14:28] 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] Yes, I did resize the luks partition using gparted [14:29] krumelmonster: so sda6 is what you resized? [14:29] yes [14:30] and sda6 is now 900 GB? [14:30] according to gparted and lsblk yes but not according to vgdisplay [14:30] So yes, it is [14:30] then indeed "cryptsetup resize" is the next step to extend the crypto containers' size to that of the extended partition [14:31] can I run this online? [14:31] i don't think so [14:33] 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] krumelmonster: "cryptsetup resize" on an active mapping (sda6_crypt) is correct. but run "cryptsetup status sda6" first and note it down [14:38] 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] :) [14:38] or lvm2 structures even [14:48] 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] host os: ubuntu 21.10 [14:52] 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] tomreyn I was actually missing pvresize /dev/mapper/sda6_crypt [15:44] hey guys, is there a keyboard shortcut to reset X to some kind of defaults? [15:44] 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] ctrl+alt+2 will get me into a terminal, but im not sure why its giving no gui output [15:45] TandyUK: did you firmware update your nuc to latest? [15:46] I havent updated anything as yet, ive just taken it out of storage and booted it up [15:46] TandyUK: best to do that first, some nuc models suffer no GUI at boot due firmware lack [15:46] it was fine when last used, about 18 months ago [15:47] or try getting into recoverymode? [15:51] hmm maybe just time for a reinstall - its doing the same on a 1080p screen too [15:51] and actually locks up (ie numlock etc not responding) shortly after getting into a console via ctrl+alt+f2 === Guest2875 is now known as PPe2 [15:54] TandyUK, are you fully updated ? === diskin is now known as Guest9906 === diskin_ is now known as diskin [16:15] krumelmonster: that would have been the next step after resizing the dmcrypt container, yes [16:15] good that you worked it out [16:31] 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] Sven_vB: lsof [16:33] 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] I'll try if I can make dm force-close it [16:39] nope. guess I'll just rename it and have it linger until reboot. [16:50] 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] 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] unfortunately that thread ends without a solution. [17:28] howdy folks, what is that command that visually display system requrement with some unicode drawing [17:35] Bushmaster: neofetch [18:33] 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] 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] and also what happens if i remove the usb-hdd ubuntu from usb connector? [18:34] still leaving my windows 11 nvme m.2 conencted of course === diskin is now known as Guest1874 === diskin_ is now known as diskin [18:38] en11gma: why do you say an ubuntu update is going to overwrite your windows 11 partition? [18:38] i think it happens when ubuntu updates and there is a kernel update or a grub2 update [18:39] because it does everytime [18:39] this isnt my first rodeo with a seperate 2 drive dual boot situation [18:39] i want to control which OS gets booted with the F12 not with a partition manager [18:41] 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] 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] 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] 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] 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] why is this channel so dead? [18:50] 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] 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] 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] what does the "eol" in linux-image-lowlatency-eol-hwe-5.11 mean? [19:39] !eol | Sven_vB [19:39] Sven_vB: End-Of-Life is when security updates and support for an Ubuntu release stop. Make sure to update Ubuntu before it goes EOL so you get updates promptly for newly-discovered security vulnerabilities. See https://help.ubuntu.com/community/EOL and https://wiki.ubuntu.com/Releases for more info. Looking to upgrade from an EOL release? See https://help.ubuntu.com/community/EOLUpgrades [19:40] oh, so that one is End-of-Life even though it's newer than the default lowlatency kernel? [19:50] Sven_vB, but it's older than the current hwe lowlatency kernel [19:53] oh I see. thanks! [20:34] 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] en11gma: yeah [20:36] 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] 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] without ill effects in ueft tpm system. [21:28] 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] 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] thee's also SuperGRUB Disk, it can auto-detect various OSs including Windows and Linux kernels [21:43] I use a variation of that as my default boot [21:45] probably not an option for a secureboot scenario [21:45] does that just replace grub2 after you have did the default ubuntu install? [21:45] yea secureboot i was thinking there could be problems. got to be careful with that. [21:45] i can do almost everyting from a live usb but my gpu drivers cant be done correct [21:46] it would be nice to have the binary working so the usb device works good with the fft window [21:47] 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] grrr [21:47] so confused [21:48] bbiab and thanks guys [21:53] 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] 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] so i could add my nvme m.2 back in without worries? [21:55] 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] 20.04.4 might not have the latest updates, just enable updates during install [21:58] isnt 20.04.4 finished? the final point release. so any updates are just security updates? [21:59] right now im writing it to a 16gb usb stick with rufus. i selected gpt and maxed out the persistent partition [22:00] how do i boot it up so it uses persistent i forget [22:00] 18.04 is currently at .6. i assume 20.4 will go there, too [22:00] oh crap. why an i thinking its finished. [22:00] *20.04(.6) [22:00] oh no. lol im stupid [22:01] 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] 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 === Budweiser_ is now known as Budweiser