[00:00] fastputty: did you look at dmesg? and do you do TRIM? [00:00] what is trim? [00:01] basically, telling the ssd which parts of a file system are unallocated and can thus be swapped around safely. [00:01] !trim [00:01] Many Solid State Drives support TRIM, which allows the drive to do garbage collection and improves performance. Ubuntu 14.04 activates it by default. For older versions, see http://askubuntu.com/a/19480 for information on activating it. [00:04] some models can get very slow if they don't get a way to swap blocks around in the background and the file system is somewhat full. [00:08] sorry omg lost internet again, thunderstorm here [00:10] i'm also sorry, need to go to bed. gl! [00:11] some models can get very slow if they don't get a way to swap blocks around in the background and the file system is somewhat full === zbenjamin_ is now known as zbenjamin [01:34] hey guys, I had a serious problem with my computer the other day and had to basically pull the entire thing apart. Now that i've put it together, cryptsetup is refusing to allow me to boot. [01:35] https://imgur.com/vXw4Y6Y [01:35] I'm not really sure how to begin fixing this, all of the errors I find when searching are due to a kernel update. [01:38] what's a good known-to-work compact usb wifi for ubuntu? [01:38] jrgilman: do you have multiple drives in the system? did you put them back into the same [what I'm assuming is SATA] port? [01:38] i purchased a lenovo legion y7000 and the the wifi chip keeps giving me trouble to no end [01:38] edenist: I have 3 drives [01:38] I am unsure [01:39] thinking to just use a separate usb wifi [01:39] I tried putting them in the same order [01:39] should I just try juggling the cables around? [01:40] possibly. It looks like it's having trouble locating certain partions and lvm groups, with the fscrypt thrown in there, I think somethings out of order [01:40] okay === Sven_vB_ is now known as Sven_vB [01:41] I guess i'll try all possible permutations of that first [01:41] before trying to do the hard thing [01:41] what is the layout of the drives? One boot drive and some other drives mounted too? [01:41] raid? [01:41] which drives are encrypted? [01:41] 1 is encrypted [01:41] it used to be /dev/sdb [01:42] but now it's /dev/sda [01:42] i tried putting it uh [01:42] second in the SATA ports [01:42] i have enabled windows raid and i can't boot with these drives anymore [01:42] anyways sorry [01:42] the main drive has 3 partitions and is encrypted [01:42] that's the only one that matters [01:42] the other two are just data drives [01:42] nothing important on them [01:42] well [01:43] there's important stuff on them, but not important to booting [01:48] jrgilman: just focus on the main boot drive for now then. [01:48] what are some hidden gem linux games you enjoy [01:48] leave the others unplugged [01:49] it might be that drives and partitions haven't been specified with UUID, so it's getting confused at boot up [01:50] okay [01:50] I'm trying every slot now [01:54] okay [01:54] I've tried every slot for it at this point [01:55] it's refusing the mount [01:58] jrgilman:is the bootloader only present on the boot drive? Or was it accidentally [or on purpose] installed on one of the other drives too? [01:58] it should be on the main drive only [01:58] all I did was select the [01:58] "encrypt drive" option when you first install ubuntu [01:58] i mean [01:59] I don't really understand a whole lot about the bootloader, so would the prescense of those drives cause it to be installed there? [02:00] i dunno if this is helpful at all: https://imgur.com/cjP9B2i [02:00] by default it will install it on the main system drive. [02:00] I didn't play around with that [02:00] thanks. let me take a llok [02:00] *look [02:01] i apologize for the shitty lighting [02:01] all good ;-) [02:01] the worst part is i've been burned by this before but i guess i didn't learn the first time === [b0b] is now known as b0b [02:15] jrgilman: the only thing I notice is that it says root='hd1,gpt2' [02:16] it might be expecting one of the other drives to be in there [that drive would be hd0] [02:17] I'm not an expert on that matter but it's just a hypothesis, and it goes with the fact that things were fine until you pulled things apart then back together [02:17] Put another drive in, then try combinations of other locations for the boot drive [02:28] hm ok [02:33] hey is there a keylogger for ubuntu [02:35] MiguelPeru: pam_tty_audit(8) if you need a log of a terminal [02:35] x11log, logkeys, tons of those [02:36] install synaptic, for a more detailed softwarecenter [02:47] edenist: what doesn't make sense is the fact that the UUID should be the same [02:48] I'm just trying to think this through at this point [02:48] jrgilman: correct. But in the grub menu, it's referring to the HD by index [02:49] bro [02:50] OerHeks, do I need to install c++ compilers for logkeys [02:51] right [02:52] !info logkeys [02:52] Package logkeys does not exist in bionic [02:53] oh [02:54] jrgilman: when you boot with just a single drive, can you change 'hd1,gpt2' -> 'hd0,gpt2'? [02:54] under set root [02:55] !info samba [02:55] samba (source: samba): SMB/CIFS file, print, and login server for Unix. In component main, is optional. Version 2:4.7.6+dfsg~ubuntu-0ubuntu2.11 (bionic), package size 872 kB, installed size 11110 kB [02:56] will try now edenist [02:57] edenist should i change that in all locations you think [02:57] search command has a reference to it too [02:57] in the if statement [02:58] jrgilman: yes, quite right. Change it in all locations within the grub editor [02:58] same with ahci1 -> ahci0 [02:58] yep [02:59] I just realized [02:59] the other day I mounted this drive in a ubuntu vm to get some data off it using cryptsetup luksOpen etc etc [02:59] could that have changed the UUID? [03:01] that didn't work btw [03:02] jrgilman: darn :/ [03:02] no it shouldn't have changed it [03:05] hmm [03:05] so here's the thing [03:05] if grub was failing [03:05] wouldn't I not even make it to the cryptsetup screen [03:05] the part where you type the password? [03:06] the weird part about this screen is that it keeps saying "Please unlock disk sdb3_crypt" [03:06] even though there's definitely no /dev/sdb in ehre [03:07] yeah, that's the problem. related to the hd0/1 thing. It thinks it is the second drive [03:07] it's actually sda3 when no other drives are present [03:08] right [03:08] i just thought that the grub hd0/hd1 thing was seperate from the cryptsetup portion [03:08] just spit balling [03:08] this is really out of my knowledge one [03:10] zone* [03:10] i think i'm gonna attempt all 24 configurations of the three drives at this point [03:10] before going too far down the rabbit hole [03:11] jrgilman: you didn't recently upgrade ubuntu did you? [03:23] nope [03:23] not to my knowledge at least [03:23] maybe i installed some udpates [03:23] updates* [03:24] my mythbackend keeps dying, but I can't seem to see anything in the logs. It's running now, but later, it will just die. [03:24] I am running an old version [03:27] oh, I was thinking that I was on mythbuntu [03:33] Wow, I just rebooted a machine and it bootlooped like 10 times and di [03:34] died, as in froze on startup [03:35] edenist: when i try to mount the /dev/sda2 partition in a live cd [03:35] i get a structure needs cleaning error [03:35] this seems to be going somewhere [03:35] also the UUID of /dev/sda2 matches that grub menu uuid [03:37] picrel https://i.imgur.com/gVxIf6p.jpg frozen with this displayed. Assuming it's a (malformed) boot sequence output [03:38] okay i think i'm getting somewhere now [03:40] bad magic number in super-block while trying to open /dev/sda [03:40] unable to ssh into it this time. Earlier, I was able to ssh for a while between bootloops and the load was higher than 2, plus when I ran dmesg, I got things like "File /var/log/journal/3beaaebfff284d0eb9f211d1b1fec3ea/user-1000.journal corrupted or uncleanly shut down, renaming and replacing" [03:43] I'm wondering what just happened and how I could get the system back up [03:44] it's ubuntu server 18.04 (bionic) [03:45] running on a thinkpad R61 [03:45] well, it was running [03:46] it said it needed a reboot, so I ran sudo reboot and it started crashing and restarting, which was a bit terrifying. [03:48] vegii: Might be a good thing to run a file system/repair - from a liveUSB - at this time. [03:56] I'm wondering if it was HDD's fault in the first place, although that does not seem very probable. What utility should I use to fix any fs errors and what's the chance of getting it up quickly this way? It's a zoneminder box and I'm leaving in a few hours for over a week. [04:01] since it's a single hdd, is it unlikely to go quickly and smoothly? Might as well reinstall everything, but I haven't slept yet... [04:01] vegii: Only takes a few minutes to run the check. Preliminary: ' sudo fdisk -lu ' to know the targe partiton then 'sudo fsck /dev/' . [04:01] target* [04:10] thanks, will try after reseating ram, since it's behaving weirdly [04:27] ugh, the laptop itself is failing. Same artifacts with the hdd removed [04:28] assuming it's thanks to the nvidia chip from that era [04:30] Hi, I am using ubuntu 18.04, but whenever i use my bluetooth headphones i need to manually set profile to HSP/HFP when using hangouts. Is there a way to automatically switch from a2dp to HSP/HFP automatically and vice versa? [04:50] Bashing-om: Thank you. In the end, I just plugged the hdd into a second R61 I have and it's all working perfectly now. Won't be needing that laptop until I get back anyway :) [04:54] vegii: At least you know where next to start looking :( [04:54] wym? [05:03] the enclosure on that laptop is cracked, so the mobo likely experienced more flexion than needed to upset a device dating back to the introduction of RoHS and lead-free solder, so it's free to rest in peace, I'll find another machine later. [05:17] jrgilman: any luck? === kallesbar__ is now known as kallesbar [06:49] qqq [07:16] do you have ubuntu iso for non-free sources? iso complains about lwlwifi [07:16] * kreyren is helping end-user [07:16] and end-user doesnt have ethernet connection === ZaZaGX_ is now known as ZaZaGX [07:19] kreyren: What about wifi then? [07:19] kreyren: he could download the debs and manually install them using dpkg [07:20] he's using wifi, but it seems that it needs these [07:20] EriC^^, Too advanced for said user afaik assuming that he's switching from endlessos and is bad with IT in general. [07:20] debian has unofficial iso with these i was hoping you would have something alike [07:22] kreyren: the debs might be on the live iso in \pool i think [07:22] kreyren: did he have wifi on the live usb? [07:23] doubt [07:28] Hi all, I have the hdd pulled from another Ubuntu laptop. It's encrypted with LUKS. I'm struggling to mount it (yes I know the password). I've followed the instructions here: https://evilshit.wordpress.com/2012/10/29/how-to-mount-luks-encrypted-partitions-manually/ but when I get to the cryptsetup command I receive "Device /dev/sdb5/ doesn't exist or access denied. [07:29] gimmel: type "sudo parted -ls | nc termbin.com 9999" and paste [07:29] When I connect the drive it auto mounts the /boot partition. However it's the main partition I want. [07:30] EriC^^: ok, one sec [07:31] EriC^^: https://termbin.com/5x4z - note, it's the 500Gb WDC drive I'm trying to access. /dev/sdb5 [07:33] gimmel: type "sudo cryptsetup luksOpen /dev/sdb5 sdb5_crypt" [07:35] EriC^^: After entering the passphrase, I then get "Cannot use device /dev/sdb5 which is in use (already mapped or mounted). [07:36] gimmel: aha, any backstory? [07:37] EriC^^: Well, I haven't mounted anything myself, so I'm not really sure why it would be saying so. Unless it automounted something. [07:38] what's the /dev/mapper/ubuntu--vg-root one 238gb one? is it from sda5? [07:39] EriC^^: yeah, that's the live hard drive. [07:43] On a raspberry pi it is posible to set up a serial console to control the pi via serial. Is this posible to do this with a regular computer/server? [07:50] i have a system running ubuntu desktop 18.04.2 with just terrible performance [07:51] 12GB RAM, i5-4590T CPU and a SSD HD [07:51] everything is sluggish === jmcgnh_ is now known as jmcgnh [07:51] even running gnome-session-fallback [07:53] Hey, quick question. When I use Alt+Tilde to switch within an application, is there a way to make it cycle through all windows? The problem is that I have about 10 terminal windows open and I cant visually distinguish betwen them from the thumbnails so i end up tabbing to the same window multiple times As in Alt+Tilde always going to the "next" win [07:53] dow? Currently It swaps between only two windows (latest & next latest) [07:53] EriC^^: any thoughts? [07:54] Sorry that got messed up [07:54] Hey, quick question. When I use Alt+Tilde to switch within an application, is there a way to make it cycle through all windows? As in Alt+Tilde always going to the "next" window? Currently It swaps between only two windows (latest & next latest) [07:54] The problem is that I have about 10 terminal windows open and I cant visually distinguish betwen them from the thumbnails so i end up tabbing to the same window multiple times [07:54] There we go =) === jelly-home is now known as jelly [08:27] gimmel: i'd restart the pc, dont mount anything, then try running the command above [08:29] gimmel: it kind of looks like it's already opened (the luks) but it says partition table unknown, that tells me either something is corrupt, or maybe it literally had no partition table and it's just the filesystem on it, in that case sudo mount /dev/mapper/ubuntu--vg-root /mnt (or how it was spelt) should work [08:37] EriC^^: Well, as soon as I connect the drive (it's connected with a USB adapter), I get prompted for the encryption password. If I enter the password, it then mounts the /boot partition. [08:42] gimmel: dont enter it [08:43] gimmel: even if it automounts /boot that's fine [08:43] gimmel: what does 'sudo mount /dev/mapper/luks-f5f1200e-3781-48be-b10f-27e83de7d7b1 /mnt' give? === phlegethon is now known as phlgt1 [08:45] EriC^^: Sorry, I'd already disconnected the drive. I'm connecting again now. I won't enter the password. What do you want me to run after it's connected? [08:47] gimmel: type "sudo cryptsetup luksOpen /dev/sdb5 sdb5_crypt" [08:49] EriC^^: looks like it has come back as /dev/sdc5 - so I'll change both sdb5's to sdc5 ? [08:57] gimmel: yeah [08:58] hopefully, this is the right place to ask. xy problem disclaimer: ive installed ubuntu core on my raspberry pi 3b+ to try and debug a hangup during python's scipy build process under a docker image build (https://github.com/raspberrypi/linux/issues/1885). after i `snap install docker`, i failed to add myself to the docker group using `usermod` but, because group management isn't documented under snap commands, i thought the methodology changed - [08:58] am i supposed to work differently concerning groups in ubuntu core? do i manage permissions differently there? [09:01] EriC^^: ok, that just dropped to a new line. So... what next? [09:02] edd_lc, I don't know much about docker or snap but what do you mean that you failed to add yourself to the docker group? A common mistake is to forget to logout/login after adding groups [09:04] gimmel: didn't it ask for a password? [09:07] EriC^^: sorry, yes, and then dropped to a new line. [09:08] Guest_33: No, according to this https://askubuntu.com/questions/872621/how-do-you-modify-group-membership-in-ubuntu-core the group magement is done differently under ubuntu core. You can see the `usermod` attempt on his thread with the output. I'm getting the exact same thing [09:10] gimmel: alright, type 'sudo parted -ls | nc termbin.com 9999' [09:10] Guest_33: You can read a little more about it here https://bugs.launchpad.net/snappy/+bug/1495059 but I haven't found a nice doc about ubuntu core and the difference between it and the usual [distro] suspects [09:10] Launchpad bug 1495059 in Snappy "cannot add new sudo users" [Undecided,Fix released] [09:10] cant you just edit visudoer manually ? [09:11] stoiss: if you mean me, my issue is adding myself to the docker group. the "askubuntu" link right above it has my exact symptoms [09:12] oh ok [09:14] EriC^^: https://termbin.com/q3pm [09:15] gimmel: what does 'sudo mount /dev/mapper/ubuntu--vg-root /mnt' give? [09:16] EriC^^: nothing [09:16] gimmel: then "ls -l /mnt" are those the files you want? [09:18] EriC^^: Nope, they're the live hard drives files [09:20] gimmel: alright, what does "sudo vgscan | nc termbin.com 9999" give? [09:26] EriC^^: https://termbin.com/regb [09:28] Hi. Is there a way to get a LIST of WIFI connections in the area in a GUI application OUTSIDE of Gnome/Unity/KDE (in a window manager)? I know nm-connection-editor but it doesn't show a list of Access Points. [09:29] It's very frustrating to manage wifi points from cmdline. nm-c-connection-editor works fine for existing/saved connections but not for quickly selecting a new one like the topright dropdown in most Desktop Environments. [09:33] . [09:34] gimmel: seems like it's the old-hdd [09:34] Industrial: how have you been managing your wifi connection from a terminal so far? [09:35] EriC^^: right, so how do I mount that? [09:35] Industrial: and if you're ok with the network manager applet (top corner menu), why not use this? [09:36] gimmel: try "sudo vgchange -a n old-hdd" [09:37] EriC^^: 0 logical volume(s) in volume group "old-hdd" now active [09:37] gimmel: hmm no idea [09:40] EriC^^: hmm, thanks for the help so far. I find it odd that it's so hard to mount a Ubuntu drive in Ubuntu :/ [09:40] gimmel: it usually isn't [09:41] EriC^^: Should I unplug, reboot and try again? [09:43] gimmel: try "sudo vgdisplay old-hdd" [09:46] EriC^^: https://pastebin.com/MyXzzGsY [09:50] EriC^^: so, it's the right group name [09:50] gimmel: what about "sudo vgchange -ay old-hdd" [09:50] gimmel: yeah [09:50] that command is supposed to activate all the volumes [09:51] EriC^^: 2 logical volume(s) in volume group "old-hdd" now active [09:51] gimmel: nice [09:51] (it also made the drive buzz on my lap :P ) [09:51] gimmel: try "sudo lvdisplay | nc termbin.com 9999" [09:52] EriC^^: https://termbin.com/iq1x [09:53] gimmel: try "sudo umount /mnt && sudo mount /dev/old-hdd/root /mnt" [09:53] I've followed different guides for switching to vanilla gnome, but I don't get the Gnome on Xorg option on the login screen. Specifically this guide: https://www.freeyourdesktop.com/2018/09/installing-vanilla-gnome-in-ubuntu-18-04-and-start-with-a-clean-slate/ [09:53] EriC^^: nailed it. Thanks so much!!! [09:53] gimmel: great! no problem [09:54] EriC^^: Care to explain what that was all about? [09:54] gimmel: no idea tbh, it usually activates the lvm stuff after decrypting, for some reason it wasn't [09:55] EriC^^: originally the group name was the same as the live drive. Could that have borked it? [09:55] EriC^^: in my troubleshooting, I found the idea of renaming the group to old-hdd to differentiate [09:55] gimmel: maybe, i doubt though, seems it's taken to old-hdd now [09:56] EriC^^: *hands in the air* who knows. Thanks again though. [09:57] gimmel: you're welcome [11:02] Howdy folks === im0nde_ is now known as im0nde [11:46] Hei, guys, I'm using Ubuntu 19.04, and, on login, I usually get microphone on and output-devices muted. I usually set microphone mute and output-devices at some value. Has anyoan had this issue, or, if it's an option or ... something, does anyone know how to disable it? [11:47] cyberalex4life: Do you mean that each time you login your microphone gets on and output devices get muted? [11:51] EoflaOE, yeah.... I read about some malware gnome-shell-extension that does that, but didn't find anything [11:51] cyberalex4life, so do you want devices muted at login or ...? [11:53] BluesKaj, no, I want output-devices, headphones, whatever to keep their volume from when I logged out, and microphone also to do so. [11:53] whatever I do, on login I get microphone on and sound muted [11:54] it doesn't preserve state [11:56] cyberalex4life, open alsamixer in the console, check the automute control on the far right and use the down arrow key to disable it [11:57] use the < > keys to navigate [12:02] BluesKaj, thanks BluesKaj [12:03] cyberalex4life: Now reboot and see if it works [12:04] cyberalex4life, to solidify your choices, run, sudo alsactl store, at the prompt [12:05] BluesKaj, Oh I think I'll reboot later, I have some work to do, but yeah it was enabled [12:06] cyberalex4life, yes, it's disabled by default so you don't blast your speakers === morphis5 is now known as morphis [12:13] hello, could someone tell me, why does installing ubuntu server with 'docker' checkbox checked in it's installer results into a VM with a working docker, but no docker group and no package in apt grepped by 'docker' [12:13] Hello I'm using a minimal install of Ubuntu so the command line only, how would I go about changing the resolution as Ubuntu is running on my monitors native resolution which causes graphical errors, I know when the resolution is lowered these problems disappear [12:14] pomeha: check snap [12:14] jtjh95: You mean CLI only? Or Ubuntu Server? [12:14] EoflaOE Command line only [12:14] jtjh95: are you using xorg? [12:14] EoflaOE: Ubuntu server is CLI-only by default [12:15] leftyfb: I know, because I have seen it. [12:15] How do I check? For xorg [12:15] jtjh95: if you're command-line only, xorg isn't relevant [12:15] jtjh95: do you mean the resolution of the tty? or the graphical desktop? [12:16] ah nevermind [12:16] leftyfb: oh my.. [12:16] resolution of tty I have no graphical desktop [12:16] leftyfb: thanks [12:16] jtjh95: i think you can set that up from grub [12:16] what's `core` snap? [12:16] jtjh95: sudo nano /etc/default/grub === TomyLobo2 is now known as TomyWork [12:17] jrgilman: sudo dpkg-reconfigure console-setup [12:17] jtjh96: Is https://linuxconfig.org/how-to-increase-tty-console-resolution-on-ubuntu-18-04-server what you need? [12:18] Ok their is a hashed out #grub_GFXMODE I'll try that [12:18] jtjh95: uncomment and change #GRUB_GFXMODE=640x480 and also add "GRUB_GFXPAYLOAD_LINUX=keep" not sure if that's required though [12:18] then sudo update-grub [12:18] jtjh95: sudo dpkg-reconfigure console-setup [12:18] Ok will do thanks [12:18] there's no need to go messing with kernel/grub parameters [12:19] jtjh95: seems leftyfb has an easier solution [12:20] pomeha: https://snapcraft.io/docs/getting-started [12:24] Hi, I finally got to migrate to 19.04 and my ICH7 sound started "clicking" every time new audio stream is about to play. [12:24] No Ubuntu before 19.04 had that and other OSes (Openindiana and Windows 10) work just fine with this audio [12:26] It is ASUS P5W DH Deluxe motherboard with ICH7 south bridge, NM10/ICH7 Family High Definition Audio Controller [8086:27D8] [12:26] as the audio device [12:26] I reported this few weeks after 19.04 came out. Still here . [12:27] nikolam: okay. [12:27] it also clicks loudly when audio stream stops playing [12:30] And now clicks by itself from time to time, like initializing audio [12:36] It is annoying to the point I couldn'ts sleep with speakers on , like before 19.04 [12:39] nikolam, i suggest you to test a previous kernel ,or better, a 19.04 livecd [12:41] I am just coming from previous kernel (18.10 xubuntu) and there it worked fine as on any other OS. I also just upgraded to 19.04 right now . But I suppose you want to make sure if the bug was acquired after 19.04 release? [12:41] So testing 19.04 live cd will make sense, since it is older then current 19.04. [12:43] ok ioria [12:43] is there a reliable way to turn off the monitor of say a laptop with ubuntu ( xfce) instantly and then turn back in when you press a key ? it seems most things ive found are for way back versions of ubuntu [12:45] stoiss: xset s activate if you're using xorg [12:46] EriC^^, will that turn off the monitor if i bind that to a keypress ? [12:47] stoiss: yeah [12:47] EriC^^, and it will turn back on when i hit another key ? [12:47] yeah [12:51] nice. thanks [12:51] no problem [12:52] what could be the reason that I still need to enter my sudo password in ubuntu even after adding NOPASSWD: ALL to visudo? [12:53] EriC^^, well it flash my screen but doesnt turn it off or anything. it seems like it does for a fraction of a second. [12:54] stoiss: odd, it makes it black for me til i press something [12:54] just xset s activate [12:54] ejr: Pastebin the output of sudoers file. [12:54] my screen flash for what seems like 1/10th or so [12:54] stoiss: try in a terminal "xset s activate" [12:54] EriC^^, thats what im doing. in a terminal [12:54] maybe it's picking up the key release from your keybind [12:55] oh [12:55] i didnt use any keybind. just paste it in a terminal and run it [12:55] hm it does work with ALT F2 and paste in that command [12:56] EoflaOE: https://termbin.com/enup [12:57] i tried binding it and it does seem like the release is what causes it to break it [12:58] stoiss: you could possibly put it in a script that runs "sleep 1 && xset s activate" [12:58] that would give you enough time to release the keys before it runs [12:58] yes. wouldnt that work with a keybind as well ? [12:59] yeah that's the point [12:59] ejr: If the group lines are after user lines, it overrides the settings, so that's why it's still asking for a password. You can move all the group lines above the first user line, so the settings don't get overridden. After doing it, is sudo still asking for password? [13:03] will check, thanks! [13:04] ejr: You are welcome. Tell me if sudo asks for password again. [13:05] EriC^^, i made a bash script then used keybinding to activate it. It does work but it seems to deactivate with mouse movement. Is there a way to deactivate mouse or only respond to keypress ? [13:07] stoiss: i dont think so [13:09] hm well thanks. ill look into how at least pause the mouse or something [13:10] stoiss: it doesnt work with xinput to disable the mouse, i just tried fwiw [13:10] allright. thanks [13:11] stoiss: seems to work with xset dpms though [13:11] 1 sec [13:11] stoiss: yeah [13:11] stoiss: disabling the mouse using xinput --set-prop "Device Enabled" 0 [13:11] then xset dpms force off [13:12] allright thanks. ill take a look [13:12] works, but then you'd need i guess to make 2 keybinds, 1 that does those and the other that you press to wake it up and reenable the mouse [13:22] yeah. ill figure out how to work it. [13:22] thanks for the help [13:23] stoiss: alright, no problem [13:34] hello! I'm trying to solve a networking problem: I've just installed an openvpn server with docker and it works. The client can connect to LAN hosts but every port on the openvpn server seems filtered but If I disable ufw it works. I just need to add the correct rule, but I need help in finding out which one [13:34] track down the ports needed and open them? [13:35] compdoc: problem is that I can't find the correct it of the openvpn client [13:36] giaco, so you installed a firewall on the docker host? [13:37] The vpn clients are getting an ip in subnet 192.168.255.0 inside the docker container, but "ufw allow flow 192.168.255.0/24" don't work [13:37] I use KVM and virt-manager, so dont know much about docker [13:37] compdoc: yes. Docker container works in network_mode: host, but the tun0 device is inside the docker container and not on host [13:38] what is the ip address ranger of the lan the guests connect to? [13:38] range [13:39] 192.168.255.0/24, so the client get something like 192.168.255.1. It would be ok to me to allow the whole subnet, but it seems not the point [13:39] there is normally no firewall installed on ubuntu, so the problems are releated to docker? [13:39] compdoc: ufw is installed by default, isn't it? Is it considered a firewall? [13:39] no, but you caninstalled ufw and create rules [13:40] *can install [13:42] compdoc: ok, so I did install ufw in the past to limit ssh connection only from some source ips, and it works. But that seems not the point: docker container iptables rules comes before the ufw ones, so every port used by docker and exposed through docker commands is by default open for every source [13:42] compdoc: I think ufw is installed by default, just not enabled by default [13:43] that's why I don't need to allow openvpn port to make the openvpn container work (see here for details https://www.techrepublic.com/article/how-to-fix-the-docker-and-ufw-security-flaw/) [13:45] problem here is that once the vpn clients connects to the docker container running in host mode, it won't connect to local (docker host) services due to uwf. I could just do "ufw allow XXX" and it would work, but I want to allow the service for vpn clients and not the whole internet [13:45] pragmaticenigma, I think iptables is installed by default but has no rules, and you can install the ufw gui to set rules. [13:45] but either way, youre right, its not used by default [13:46] so question is: what is the correct rule to "allow all ports for connected vpn clients only"? [13:47] as I said "ufw allow from 192.168.255.0/24" doesn't work. Apparently that is the ip the client gets inside the docker container [13:50] giaco, 192.168.255.0/24 is the local range, but many firewalls I use require allowig the range the client is using, so that would be a problem if random clients connect and you dont know their ranges beforehand [13:50] wait, I think I've just solved === NickG365_ is now known as NickG365 [13:50] compdoc: no, ufw let's you use subnets [13:50] thats not what I mean [13:51] The solution of my problem is not allowing the vpn clients ip, but the vpn server container ip [13:52] makes sense [13:52] so basically ufw allow form 172.22.0.something === Gilfoyle- is now known as Church- [15:23] if I generate a .crt and .pem from a pfx certificate where should I put the pem ? I know that the cert must be placed in /usr/local/share/ca-certificates/ [15:35] Leaving #ubuntu by alien64's Request [15:38] INSANU: what is the pfx file said to be used for? [15:44] Ubuntu 18.04 in an LXC: Apache24 just doens't run. I get an error: /usr/sbin/apache2ctl: 99: ulimit: error setting limit (Operation not permitted) [15:44] However, setting the limits in /etc/security/limits.conf of the host and the guest doesn't make a difference [15:45] Why would this be so? Apache24 is pretty ubiquous... [15:52] lifeboy: looks like your lxc guest has stricter limits set than apache httpd requests: lxc config show | grep ^limits [16:01] How do I export the shiftfs patch? [16:03] i guess this is just curlftpfs bugging out? http://paste.debian.net/plain/1093733 [16:03] tomreyn: my lxc run in proxmox, so I don't have the lxc command. There is a "pct config ", but it doens't show any limits. I'll ask over at proxmox [16:04] it's mounted as curlftpfs#ftp://dedibackup-dc3.online.net/ /m2 fuse rw,nosuid,nodev,relatime,user_id=0,group_id=0,allow_other 0 0 [16:05] lifeboy: lxc command is in lxd, not in lxc [16:13] fling: proxmox doesn't run lxd yet, it still lxc [16:13] lifeboy: this explains why you don't have an lxc command [16:14] hey, when I run fsck, should I get more output other than just "fsck from util-linux 2.31.1"? [16:15] I'm taking it up with the Proxmox team if I still can't get it to work [16:15] ^^^^^^ for fling: [16:15] There is #lxcontainers [16:15] fling: Yes, all the lxc- commands are there. [16:16] lifeboy: /join #lxcontainers [16:16] O, I see what you mean, there's a channel #lxccontainers [16:16] lifeboy: I don't know what your question is :P [16:17] Ubuntu 18.04 in an LXC: Apache24 just doens't run. I get an error: /usr/sbin/apache2ctl: 99: ulimit: error setting limit (Operation not permitted) [16:17] However, setting the limits in /etc/security/limits.conf of the host and the guest doesn't make a difference [16:17] Why would this be so? Apache24 is pretty ubiquous... [16:17] edenist: also no luck so far [16:18] That was my original question 30 minutes ago [16:20] lifeboy: you need to set your limits in the container [16:20] jrgilman: which command were you running? [16:20] lifeboy: you may need to specify something in the container config file for the limit change to become available inside of the container [16:21] ^ depending on the container configuration. [16:22] You might need to also need to set the limits to the user owning the subuids for the container uid range. [16:22] lifeboy: good luck! [16:22] I'm not using lxc for a while, lxd works [16:23] tomreyn: sudo fsck /dev/mapper/encrypted_drive [16:24] not sure if you want the full backstory on this [16:25] thanks fling: I think the proxmox team will have to jump in, since they have their ecosystem that sets this up. [16:26] jrgilman: which file system is on there? [16:26] LVM2_member [16:26] lifeboy: why using proxmox instead of lxd? [16:27] jrgilman: so that's a LVM2 logical volume, you can't run fsck on those [16:27] okay [16:27] well that answers that [16:28] jrgilman: feel free to discuss what you're trying to do and how it fails if there's a greater story that's still unsolved. [16:28] yeah sorry, let me gather the links from last night [16:29] basically, TL; DR: took my computer apart completely, put it back together, forgot the order of the SATA ports, got this error: https://imgur.com/a/tLKjcEi [16:29] (also the grub config is in there) === GraysonBriggs is now known as Grayson [16:31] the UUID in the grub boot config [16:31] matches /dev/sda2 [16:31] the one it's searching for [16:31] but edenist thought it might have something to do with the "hd1" and "ahci1" references rather than "hd0" and "ahci0" [16:31] so we tried that [16:31] that didn't work [16:31] I tried all 24 configurations of the drives, that didn't work [16:32] unplugged and replugged [16:32] I'm trying to think of what else i've tried sorry [16:33] jrgilman: would you be able to tel whether the disks are connected in the order they were connected before you disassembled by looking at their partition layout? [16:34] can you elaborate? [16:34] the logical volume doesn't span multiple drives [16:35] this LVM thing is only because i chose the "encrypt drive" option at startup [16:35] sorry s/startup/first install/ [16:37] jrgilman: the issue you're dealing with seems to be that your disks are not connecte din the order they used to be connected. you could boot from a live / installer usb and run fdisk -l against all disks. this could help you determine the order in which you had them previously connected to the sata controller. you could then swap around the cables so that they're connected as they used to be, [16:37] okay, I'm already in a live cd [16:37] when I run fdisk -l i get a bunch of /dev/loopX [16:38] and then /dev/sda (the main drive) [16:38] then /dev/sdb (the live cd usb stick) [16:38] are you saying to compare the /etc/fstab to that? [16:38] jrgilman: alternatively you could also mount the root file system and any other file systems you need and chroot into that, then run update-initramfs / update-grub / grub-install [16:38] okay [16:38] so mounting is just basically: [16:38] jrgilman: i assumed you had multiple hard disk drives connected. [16:39] tomreyn: we disconnected everything except the main drive at this point [16:39] because having multiple drives was confusing things last night [16:39] i see. [16:39] from what i gather you've also been making changes already so the approach i was thinking of may no longer work. [16:40] would doing the chroot damage the system if i do it without the other two drives hooked in? [16:40] oh [16:40] so chroot mounting and recovering from that is probably the better approach [16:40] oky [16:40] okay* [16:41] i'm assuming your entire ubuntu installation is on this disk that is now conected to sda, the other storages you had previously connected only provided additional storage for data? [16:41] yes [16:41] well [16:41] there is a symlink between the two drives [16:42] just for steam games [16:42] fling: Why? I've a host of servers running ceph as and HA services for VMs and LXC's. Why should I not use proxmox instead of doing that all by hand? [16:42] but other than that there is no relationship [16:42] jrgilman: ok, this doesn't matter [16:42] okay just wanted to make sure [16:42] sorry [16:43] jrgilman: no worries. it's good to bring it up. do you know how to proceed with the chroot mount? [16:43] no idea with chroot, never done that before [16:43] but first i need to cryptsetup [16:43] gotta run. thanks [16:43] so one second [16:43] okay I've cryptsetup /dev/sda3 to /dev/mapper/_dev_sda3 [16:44] when I do [16:44] sudo vgdisplay --short [16:44] it says it's empty... [16:45] jrgilman: i suggest unlocking it as "sda3_crypt" - that's how the installer does it and probably how this device was called on your unmounted system. [16:45] uh it was /dev/sdb3 [16:45] in my original system [16:45] yes, while locked [16:45] ah ok [16:46] but when unlocked it would have been /dev/mapper/sda3_crypt [16:46] okay [16:46] sudo cryptsetup luksOpen /dev/sda3 sda3_crypt [16:46] done [16:46] and you closed it beforehand? [16:46] yes [16:47] i did luksClose [16:47] ok [16:47] then luksOpen [16:47] ls /dev/mapper only shows "control" and "sda3_crypt" [16:47] now pvscan [16:47] uh want me to take a picture of this output? [16:47] or just summarize it [16:48] you can run it again and post it online: sudu pvscan 2>&1 | nc termbin.com 9999 [16:48] yeah sorry just working of two different computers for this [16:48] https://termbin.com/h9aim [16:49] maybe I'm wrong about the other drives not being part of this, maybe I've forgotten [16:50] either start an irc client on the computer you're trying to fix (can be webchat.freenode.net) or start an ssh server therre and connect to it from your irc computer. [16:50] I was pretty sure they weren't [16:50] ah good idea [16:52] when ready, install " pastebinit ", then run: sudo /bin/true; pastebinit < <( sudo pvs; sudo vgs; sudo lvs; ) [16:53] http://paste.ubuntu.com/p/bVzhh4sF6J/ [16:55] I assume the fact that it's showing 100% free space is not great [16:55] jrgilman: hmm it doesn't see any logical volumes. [16:55] question [16:55] I uh [16:56] I was trying to get data off the drive the other day, and mounted it in an ubuntu vm on my mac [16:56] could I have messed up the unmounting processes [16:56] and deleted that data [16:56] I know that's really open ended [16:56] also [16:57] !enter [16:57] Please try and keep as much of your info as possible on ONE line - easier to follow for everyone. [16:57] I can plug in all my hard drives and boot up again, that way we have all the parts [16:57] sorry, I will use one line from now on. [16:58] just mounting the logical volumes on the other computer should have caused the LVs to vanish. also not unmkounting them uncleanly should have caused it. [16:58] * should *not* have caused it [16:59] maybe the fsck to the wrong device could have, though [17:00] i did fsck to all three sda partitions, but doing to sda3 kept failing due to a "bad superblock" [17:00] and then you forced it, i assume? [17:01] it's not a file system fsck can handle [17:01] i don't remember at this point [17:01] i might have [17:01] fsck did work fine on /dev/sda1 and /dev/sda2 though [17:01] why are you writing in green ? [17:01] by trying to make fsck "fix" it, it would have changed the data, effectively overwriting the LV information, i guess. [17:02] so I presume I basically mega fucked that drive [17:02] for lack of a better word [17:03] you ould try this if you have the backup acvailablehttps://www.thegeekdiary.com/how-to-recover-deleted-logical-volume-lv-in-lvm-using-vgcfgrestore/ [17:04] but i guess those will be on your root LV, which is inaccessible [17:04] but if you restore it from a backup this may be the easiest approach [17:05] luna: are you talking to me? [17:07] welp I played myself essentially [17:08] jrgilman: reinstall ubuntu, restore your backups, it's not so bad really. [17:08] _lol_ [17:08] * jrgilman this dumbass didn't setup backups on this machine because he kept saying later [17:09] oh, that's unfortunate. [17:09] it's a valuable lesson [17:09] maybe you can recover some data using testdisk [17:09] jrgilman: yeah you and tomreyn wrote green text, might have been an irssi bug however [17:10] hi. i would like to disable the password prompt when using sudo commands. this is my sudoers file. i still need to enter the password every time i use sudo. https://termbin.com/p14e [17:12] tomreyn: i'll give this a shot [17:12] i appreciate the help really [17:13] ejr, what groups are you in? [17:13] ejr, no, sorry, wrong question [17:14] ejr, you've enabled NOPASSWD for *usernames* 'sudo' and 'no' [17:14] i built a custom package (cloud-init, with a couple of modifications) and pushed it to my new ppa on launchpad. dput said it was successful, but i'm seeing nothing in launchpad for my ppa view. that was maybe 2 hours ago. how long does this usually take? [17:15] chillysurfer: hows this related to ubuntu please? [17:16] lotuspsychje: is it not ok to ask general launchpad and ppa questions here? [17:16] if not, then apologies [17:16] chillysurfer: well we try to focus on ubuntu support issues here, perhaps we can point you to a relevant channel? see !alis [17:17] lotuspsychje: makes total sense, thanks! [17:17] try /join #launchpad [17:17] jrgilman: try vgscan and lvscan before you try !testdisk [17:17] !testdisk [17:18] !recover | jrgilman [17:18] jrgilman: Some tools to recover lost data are listed and explained at https://help.ubuntu.com/community/DataRecovery [17:19] Habbie: yes, I have - why is that wrong? [17:20] tomreyn: will do, gotta go to a family function now, but will attempt this tonight [17:21] good luck. [17:21] ejr, is your username 'sudo' or 'no'? [17:29] How do you create a desktop application launcher in Ubuntu 19.04? The old .desktop files seems not working anymore [17:30] Habbie: "no" is my username [17:30] oh [17:30] then it's somewhat surprising [17:30] unless the %sudo group entry a few lines later overrides that [17:32] isn't it commented out anyway with the %? [17:32] Do I need to install some special package to make intel HD4600 graphics work properly? My graphics card died today, now I'm using onboard graphics and it's running like absolute sh1t. Just opening a or resizing a window, scrolling is a multi-second laggy operation [17:32] no, % means group [17:32] see man sudoers [17:34] ah, that was the problem. now that i moved the %sudo line up, it works! thanks! [17:35] ok! [17:35] i wasn't sure if it was first match or last match etc. [17:36] hi ejr [17:36] I've got "xserver-xorg-video-intel - X.Org X server -- Intel i8xx, i9xx display driver" installed [17:36] but it doesn't say it's for intel HD4600 [17:37] and it's running like crap, so it's unlikely [17:37] lspci says I have "00:02.0 VGA compatible controller: Intel Corporation Xeon E3-1200 v3/4th Gen Core Processor Integrated Graphics Controller (rev 06)" [17:39] I have the i915 module loaded [17:40] so I suppose that's what the i9xx means [17:40] I've uninstalled the nvidia driver and rebooted. It's still running like crap [17:41] lope: if you run glxgears from a terminal, what kind of framerate do you get? [17:41] lope: bad performance with HD 4600 is a hardware limitation, you won't find a better driver. [17:45] -/close [17:47] hi EoflaOE: when you advised me about the group line earlier, i mixed that up with the normal sudoers line, so then it did not change anything. that's why i came back [17:47] but in the end you were right all along [17:48] tomreyn, it's not a hardware limitation, the HD4600 runs fine in windows [17:48] ejr: Thanks. I will try to be more clear next time. [17:48] HD4600 can even play overwatch in windows [17:49] Hi guys I'm having an issue while installing ubuntu 18.04.2 lTs curtin.util.ProcessExecutionError: Unexpected error while running command. command [unshare, fork, pid] [17:49] at low resolution and refresh rate, but it's definitely capable of dragging and resizing 2D windows around [17:49] I got image from this link http://releases.ubuntu.com/18.04/ [17:49] any idea how do I fix this issue ? [17:50] Interesting, sarnold I get 966FPS when I run glxgears [17:52] But if I maximize glxgears to a fullsize window it runs at 2.4gps [17:52] FPS [17:53] lope: ouch indeed. I get around 60 on my seven year old mobile i7 laptop with integrated intel.. [17:55] lope: are you using xorg or xwayland? [17:55] sarnold, xorg [17:55] kde [17:56] tomreyn, I'm running xserver-xorg-video-intel [17:56] lope: can you show glxinfo -B | nc termbin.com 9999 [17:57] lope: xorg here too; glxgears may not be the best debugging tool but at least it's a *number* that allows comparison, heh [17:59] [18:00] tomreyn, https://termbin.com/ocqr [18:01] tomreyn, lol it says my GPU driver is VMWare??? [18:01] should I remove xserver-xorg-video-vmware [18:02] there's no module loaded with vmware in it's name. [18:04] lope: Try it and see if it uses intel driver. [18:05] hmm, this is unusual, i think. llvmpipe should be fine, though. but 32 GB VRAM seems a lot, too, unless it just returns installed physical RAM there. is this kubuntu 18.04.2 then? [18:06] EoflaOE, try what? [18:06] Oh, sorry, try remove it. Ok. [18:07] lope, is the following package installed ? it should be there by default though. i965-va-driver [18:08] o0ze, yes, it's installed [18:09] lope: which driver does X report (to the systemd journal / syslog) it is using? [18:12] hello everybody! [18:12] y4m4t0: Welcome. Any questions about Ubuntu? [18:13] @EoflaOE, hi. im not using ubuntu right now, but yeah, i have a couple of questions about it [18:14] y4m4t0: Ask, if related to Ubuntu. [18:15] i've got over to the DeepIn OS, and since it is extremely similar to ubuntu, i guess most of solutions will be the same [18:16] afaik its based on debian, not ubuntu. (just throwing that in) [18:16] yes, it's based on debian [18:17] !deepin [18:18] !derivatives [18:18] The Ubuntu channels can only provide support for Ubuntu and its official flavors, since other distributions and derivatives have repository and software changes. So please use their dedicated support venues, for example: Linux Mint (#linuxmint-help on irc.spotchat.org), Kali Linux (#kali-linux), and LXLE (#lxle) [18:18] well, the story is pretty s1mple, i removed my old laptop with a new one, much more productive in terms of performance. And I really wish it would be possible to use it in terms of modern gaming [18:24] tomreyn, gonna reboot and check [18:27] hi [18:28] i keep getting E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem [18:28] is there a way to remove this without running dpkg --configure -a? [18:28] when i do dpkg --configure -a it gets stuck setting up this thing i don't need [18:28] echelon: why not fix it like it says? [18:28] ^ [18:29] echelon: pastebin the errors please [18:29] THERE'S NO ERROR [18:29] sorry [18:29] it just gets stuck [18:29] show us please :) [18:29] # sudo dpkg --configure -a [18:29] Processing triggers for ureadahead (0.100.0-21) ... [18:29] Setting up redis-server (5:4.0.9-1ubuntu0.2) ... [18:30] Hey all, "file something.gif" should return file type right? [18:30] so yeah, how do i just remove the thing [18:31] mia, yes [18:31] I have a gif file I found online (on tumblr) I realized it wasn't being processed somehow in my software [18:31] https://66.media.tumblr.com/34cad2ac4d1b7b312665a8c71a984916/tumblr_ptrv7pAAQW1wm31l0o1_540.gif [18:31] this is the file [18:31] can you check its filetype --- it's a gif but the file command says its a boot sector? like wtf [18:31] file says it's a GIF file here [18:32] https://66.media.tumblr.com/34cad2ac4d1b7b312665a8c71a984916/tumblr_ptrv7pAAQW1wm31l0o1_540.gif [18:32] this file? [18:32] tumblr_ptrv7pAAQW1wm31l0o1_540.gif: GIF image data, version 89a, 540 x 250 [18:32] mine does not say so [18:32] maybe try downloading it again [18:32] I tested it on two machines [18:32] tumblr_f4569f406b974753697cb57852b89c6b_42ce8512_540.gif: DOS/MBR boot sector; partition 1 : ID=0x99, active 0xcc, start-CHS (0x3cc,153,46), end-CHS (0x288,238,59), startsector 2856478412, 3152954453 sectors; partition 3 : ID=0xdd, active 0xee, start-CHS (0x1ed,170,38), end-CHS (0x3dd,204,63), startsector 574908057, 579390702 sectors [18:33] I downloaded it again and again [18:33] same error [18:33] can you run md5sum on it? [18:33] how can I do it [18:33] md5sum tumblr_ptrv7pAAQW1wm31l0o1_540.gif [18:33] 9a085d9c509d759568aa5da64902985f tumblr_f4569f406b974753697cb57852b89c6b_42ce8512_540.gif [18:33] i see that too [18:33] so we really have the same file [18:33] what version of 'file' are you using? i.e. what ubuntu? [18:33] hows that possible [18:34] 18.04 [18:34] and the other machine is 16.04 [18:34] there's ways to embed other files into image files [18:34] !pastebin | echelon [18:34] echelon: For posting multi-line texts into the channel, please use https://paste.ubuntu.com | To post !screenshots use https://imgur.com/ !pastebinit to paste directly from command line | Make sure you give us the URL for your paste - see also the channel topic. [18:34] tomreyn: it was just 3 lines [18:35] right, too many [18:35] sorry - [18:35] just wondering what's going on here [18:35] mia, so what software is not processing it? [18:35] Habbie, it's something I made [18:35] echelon: can you show this: sudo /bin/true && cat &>/tmp/aptlog < <(sudo apt-get -qqy update 2>&1; apt-cache policy 2>&1; sudo apt-get -syV full-upgrade 2>&1;); nc termbin.com 9999 I was auto downloading certain gif files and converting them to video [18:36] it's sort of like a bot thingy [18:36] I realized it errored on this file [18:36] I check the file type normally - but this one (even though it looks like a gif) does not seem to be a gif [18:36] But you say, it says fig on your end [18:36] and I don't understand [18:36] because I tested the same "file" commadn on multiple machines, I get the same result [18:36] every other gif works fine, not this one [18:37] this is not something I need to *fix* - I'm just trying to understand what's going on here [18:37] so what piece of software is failing to process the gif? some library perhaps? [18:37] Habbie, nothing is failing [18:37] there is justa check in my .sh file for filetype [18:37] ubuntu 18.04 file also says 'boot sector' here [18:37] Habbie, yeah exactly [18:37] is this normal? [18:37] debian 10 file says gif [18:37] well, file just guesses based on a bunch of things [18:38] mime type also says application here [18:38] how do you get the mime type? [18:38] so I want to know* how to deal with this [18:38] well [18:38] file mygif.gif --mime-type [18:38] why is that check in your .sh? [18:38] because my file converts gifs to videos [18:38] not pngs or jpegs or mp4's [18:39] what happens if you do give it a png or jpeg or mp4? [18:39] it just runs an ffmpeg conversion for downloaded gifs only [18:39] nothing else [18:39] it skips the conversion if its not a gif Habbie [18:40] mia, i mean, what if you just removed that check? [18:40] it would convert everything [18:40] which is what I don't want [18:40] I just want proper gif files to be converted [18:41] this one looks like a gif, but for me, does not ehave like one [18:41] only this gif [18:41] but if this becomes a generalized problem for more files [18:41] then I need a way to deal with it [18:41] mia, please try file -k [18:41] That's why I'm trying to understand the problem [18:41] mia, read the output carefully [18:42] Habbie, testgif.gif: DOS/MBR boot sector; again [18:42] (same as above) [18:42] don2t want to paste it multi lines :D [18:42] no [18:42] please read it all [18:42] carefully [18:42] boot sector 012 is GIF image [18:43] but why is it like this [18:43] joker.gif: GIF image data, version 89a, 540 x 290 [18:43] with -k, it gives you -all- guesses [18:43] this is the output of -another gif file- [18:43] that one gif file happens to also match the file matches for an MBR sector [18:43] and that matcher wins, in your older version, but not in my newer version [18:43] -k tells file to give you -all- types that it guesses, not just the best matching type [18:43] it's the workaround i have for you [18:44] hm, is there any better way to check for a file type [18:44] the best way is to use a program designed to handle that file type [18:44] and deal with failure [18:45] if [[ $(file "${INFILE}") != *GIF* ]]; then [18:45] this was my check line [18:45] if you add -k to that [18:45] you should be good [18:45] or at least, as good as you're going to be [18:45] if [[ $(file -k "${INFILE}") != *GIF* ]]; then [18:45] ^ this? [18:45] yes [18:47] thanks Habbie ! [18:47] np! [18:47] mia: you may enjoy https://www.youtube.com/watch?v=hdCs6bPM4is or https://news.ycombinator.com/item?id=14586371 [18:47] hah yes [18:48] although i -suspect- that's not what's happening here [18:48] tomreyn, EoflaOE, sarnold: I booted the latest 18.04 live USB and it ran perfectly on my intel onboard graphics. Super fast and smooth. [18:48] I checked what intel related packages were installed [18:49] Right now I have xserver-xorg-video-intel [18:49] But on the live USB I had xserver-xorg-video-intel-hwe-18.04 [18:49] What is hwe? [18:49] !hwe [18:49] The Ubuntu LTS enablement stacks provide newer kernel and X support for existing LTS releases, see https://wiki.ubuntu.com/Kernel/LTSEnablementStack [18:49] I seeee [18:50] how can I upgrade to it? [18:50] you could click on this link which is there for a reason [18:51] okay sorry for being dumb. doing the install now [18:51] was busy reading [18:52] i ran glxinfo -B on an intel laptop i have here in the meantime. mine: http://termbin.com/2bxv yours (from earlier): https://termbin.com/ocqr [18:54] maybe posting dpkg -l \*mesa\* would hint on what's wrong on your system. [19:06] anyone have any experience with buttercup password manager? I have been using keepassxc on my desktop with the stronbox app and keeping my pw database in a cloud storage provider... looks like a clean alternative [19:10] !discuss | jayjo [19:10] jayjo: Want to talk about Ubuntu, but don't have a support question? /join #ubuntu-discuss for non-support Ubuntu discussion, or try #ubuntu-offtopic for general chat. Thanks! === pcworld is now known as brati === brati is now known as pcworld === EriC^ is now known as EriC^^ [19:46] Hi guys [19:47] hi [19:49] * uRock walks away for a smoke break. [19:50] hi [19:50] I have a problem with ubuntu 19.04 and the sensor module dell_smm-virtual-0, the problem concerns reading of fan values, when I run in terminal `sensors` command the system is freezed temporariry and then return me the fan values. I would like to say that it is not a BIOS problem, because I tried on Windows 10 to read these values with the HWInfo64 [19:50] software and it works perfectly without interruptions [19:53] cc89: wild guess, it's possible sensors is using acpi to read it, and that's causing the system to execute vendor-supplied acpi blob; the hwinfo64 method may use a different mechanism to read the same or similar data [19:53] cc89: poke around in /sys or /proc you may find fanspeeds available through a different mechanism [19:55] sarnold the freeze appears also when I open the folder that contains fan1_input fan2_input ... in the path /sys/class/hwmon/hwmon1/ [19:56] cc89: dang :( [19:57] to better understand I would like to post the output of the `strace sensors` command [20:00] `strace sensors > out.txt` print me the output of sensors and not that of strace [20:00] cc89: strace -o out.txt sensors [20:02] https://pastebin.com/K2LARRan === pcworld is now known as broti === broti is now known as pcworld [20:05] sarnold this with execution time https://pastebin.com/raw/j7rRbxSW [20:07] cc89: wow those close() calls take forever [20:08] sarnold I'm reading the line that contains /sys/class/hwmon/hwmon1 ... [20:11] sarnold the strange thing is that my laptop only has 1 fan while sensors shows me: Processor Fan, fan2, fan3 [20:11] cc89: are there any interesting values for the others? [20:12] sarnold interesting values? I not understand [20:12] cc89: do you get RPM values for all three sensors? [20:13] sarnold yes, but they look about the same: 2844 RPM, 2840 RPM, 2837 RPMI think the difference is due to the waiting time for the execution of the command [20:14] cc89: heh, yeah, you're probably right [20:18] sarnold the sensors command if I understand correctly shows a summary of all the sensors detected, but the actual values of the sensors are located in the path "/sys/class/hwmon/*". Quite right? [20:18] yes [20:18] cc89: there's also probably a /proc/i8k [20:18] cc89: they've got code to measure timing in this thing: https://github.com/torvalds/linux/blob/master/drivers/hwmon/dell-smm-hwmon.c#L143 [20:19] cc89: and some timing information as comments: https://github.com/torvalds/linux/blob/master/drivers/hwmon/dell-smm-hwmon.c#L536 [20:19] sarnold so the problem is to look for in the implementation of the hwmon module in the linux 5.0 kernel [20:19] cc89: I'm guessing this thing is known to be slow-as-can-be for a while.. [20:23] sarnold should I look for the i8k module or not? [20:24] cc89: I think the i8k name is just an alias for this module [20:25] is there some sort of ubuntu 19.04 / gnome based domain joining plugin or extension or something? [20:25] cc89: you could try emailing these folks to see if they know a better way http://paste.ubuntu.com/p/z6zfPKKxZ7/ [20:25] and is there an option to make the window titlebars smaller? [20:25] they're so fat heh [20:26] the problem was already present with ubuntu 18.10, I thought that with the 5.0 kernel they would have solved it [20:27] sarnold but should I send only the strace output? are these people not in IRC chat to talk in real time? [20:35] Hi, I want to switch form a swapfile partition to a swapfile ... file. I was able to create a swapfile and turn it on using swapon, but I would like to delete or at least turn off the swapfile partition as I'm not convinced it's using the new file [20:35] does anyone know about this? [20:38] iffraff: what do you mean by "swapfile partition"? [20:38] you should be able to swapoff the old partition and then delete or reformat it or whatever as needed [20:40] Hmm, ok so swapoff how do I dentify the partition? or should I do swapoff --all then start over with the file? [20:41] you should just be able to swapoff /dev/sdxy iirc [20:42] ah so specify the drive excellent. thanks I'll give that a try [20:44] iffraff: swapon -s shows the status of swaps [20:45] cool, so it's takin an aweful long time, is that to be expected? [20:45] if you've got stuff in swap, yes [20:46] it's 1 gig and maxed. I guess it's all relative, is that lot? [20:46] cc89: most of these folks whom many would like to talk to usually prefer bug trackers and mailing lists. [20:47] (at least as a first contact) [20:47] tomreyn I send them an email as indicated to sarnold [20:48] cc89: it'd be interesting to see whether the current sensors-detect script suggests a different approach for accessing these values. [20:49] (you migth want to test this beforehand) [20:49] tomreyn what should I do? [20:50] cc89: download and run https://github.com/lm-sensors/lm-sensors/raw/master/prog/detect/sensors-detect [20:52] tomreyn I have installed sensors package than I can run `sudo sensors-detect` . Right? [20:53] cc89: yes. the script contained in the ubuntu package will be older, though, which is why i pointed you to the one on the upstream source code repository. it's just a stand-alone perl script, so no need to compile anything. [20:56] tomreyn does it overwrite the current sensor configuration file? should I start with or without sudo? [21:01] hello guys, on xenial I'm applying an ansible role . the role is changing by mistake ownership of / and it causes some trouble [21:01] when restarting [21:02] I'm not able to reproduce on another xenial server [21:03] by able to reproduce on the same backuped server [21:03] but [21:05] tomreyn ? === chalcedny is now known as chalcedony [21:20] hi guys I am trying install chrome older version using apt-get but I am not sure how exactly I Can do it. [21:21] the only solution I am getting is this one: https://askubuntu.com/questions/510056/how-to-install-google-chrome [21:21] the issue is it is installing the latest stable version though I have to install the old stable version. [21:24] cc89: i don't think it changes any configurations unless you explicitly ask it to. [21:25] indeed it don't [21:26] tomreyn sensors config file where is located? that I do a backup [21:27] Good afternoon everyone :) [21:28] tomreyn I have only /etc/sensors3.conf [21:28] brb .. taking a break .. alrady ;P ... I have some SSDs I have to try to install later on today .. but sigh .. pets come first. [21:30] cc89: so it'll be that. [21:31] tomreyn Some south bridges, CPUs or memory controllers contain embedded sensors. Y or N? [21:32] cc89: you can either just hit enter to go with the default answer or run it with --batch [21:33] tomreyn I insert Y [21:36] tomreyn https://pastebin.com/raw/5wM9CNkN [21:38] cc89: so it only detected the coretemp module, which is probably already loaded? lsmod | grep coretemp [21:40] tomreyn yes In the previous ubuntu version 18.10 I had already started sensors-detect than I have upgrade to 19.04 [21:41] cc89: so review "sensors", the output is probably still the same [21:41] tomreyn I should post the `sensors` output? [21:42] cc89: not unless you have questions about it. [21:43] tomreyn do you remember what the problem is? [21:43] cc89: sensor readings are returned very slowly, the system stalls while querying them. [21:44] cc89: thats what you wrote earlier anyways. [21:45] tomreyn Exactly, the problem occurs even when I open the path /sys/class/hwmon/hwmon1 than is a problem of dell-smm-hwmon kernel module [21:46] ok [21:49] hm. this A10 is rebooting when it tries to go to sleep [21:53] tomreyn If I run ` ls /sys/class/hwmon/hwmon1` the freeze not occurs. why? [21:54] cc89: i would not know. check with the contacts sarn0ld provided you with [21:55] tomreyn I have yet sended an email [21:55] tomreyn but if I run `cat /sys/class//hwmon/hwmon1/fan1_input` occurs :( [21:56] ok, but i can't help you more with this. [21:56] tomreyn ok, thanks anyway [21:56] * jrg scratches his head [21:56] i wonder why this thing is rebooting when it goes to sleep [21:59] cc89: I didn't recognize any of the names; they may or may not be on irc, but they should be ready to handle emails; the strace output might ormight not be helpful. it's probably fine to include the strace output [22:00] sarnold I have yet provided to sent them a email [22:02] sarnold I just hope they welcome my request, because I switched from Debian to Ubuntu because the developers were a little bit on their own in responding to various reports, I hope that with ubuntu it's not like that [22:03] cc89: note that these developers aren't affilliated with ubuntu; they maintain the kernel module that I believe is giving you the slow reads [22:23] when in recovery-mode, how do you adjust screen brightness? [22:24] /sys/class/backlight doesn't have anything in it. [22:38] excelsiora: maybe xbacklight can help? [22:38] excelsiora: nevermind [22:43] thx for trying. :) I'm guessing the passing of "recovery" or "nomodeset" as an argument to linux cmd is what's killing it... [22:43] my onboard intel graphics is running like absolute crap in my ubuntu 18.04 installation [22:44] When I boot a ubuntu live USB it's perfect [22:44] I'm running the same kernel version [22:44] I've compared lsmod and dpkg -l etc and can't spot what the problem is [22:44] I've also compared the modprobe.d directories [22:44] what's vt_handoff? [22:44] lope: you swapped in the hwe kernel and X? [22:45] sarnold, yes [22:45] :( [22:45] excelsiora: where the GUI will show up [22:45] now that I've swapped to the hwe kernel, my installed 18.04 is even newer than the USB kernel, by a few revisions [22:45] I'll reinstall if I have to [22:45] but I thought it should be relatively simple to fix my existing install [22:45] jeremy31: hmm... recovery cmd doesn't have that one... [22:46] i ran glxinfo -B on an intel laptop i have here in the meantime. mine: http://termbin.com/2bxv yours (from earlier): https://termbin.com/ocqr [22:46] maybe posting dpkg -l \*mesa\* would hint on what's wrong on your system. [22:46] ^ lope [22:46] lope: hm. and I vaguely recall seeing something about virtualbox -- do you have any of those packages still installed? [22:46] sarnold, [22:46] yes I've got a bunch of virtualbox packages [22:47] But I hate virtualbox so I can remove them [22:47] I'm a KVM guy [22:48] lope: try purging all those [22:48] rebooting [22:50] sarnold, it didn't work [22:50] Still running like crap [22:54] it says my openGL render string is Vendor: VMware, Inc. (0xffffffff) [22:54] what vmware driver could I possibly be running [22:55] lope: What modules are installed ' dpkg -l | grep -i nvidia ' ? [22:55] Bashing-om: vmware, not nvidia :) [22:56] hmm I've still got libnvidia-compute-390 [22:56] lope: grep -i vmware /var/log/Xorg.* [22:56] and bbswitch-dkms [22:56] thought I removed those [22:56] maybe you can spot the path to the driver in use that way? [22:56] lope i had this problem too when i first installed 18.04 [22:56] assuming it's the same [22:56] is this a laptop? [22:57] jrgilman, I've used the same ubuntu installation across laptop and desktop [22:57] It's been in 2 diff laptops and a desktop [22:57] same problem? [22:57] well, it lags to absolute shit [22:57] yeah [22:57] the desktop [22:57] but when I boot a live USB it's perfect [22:57] right? [22:57] yes [22:58] yep [22:58] moving resizing etc [22:58] in my laptop it was due to uh [22:58] optimus graphics [22:58] i had a dual nvidia/integrated chip [22:58] and I can't get dual monitors working [22:58] and it was freaking out [22:58] yes, I've got a laptop with optimus [22:58] yes [22:58] that's it [22:58] oh, maybe the bbswitch has been buggering up my desktop intel graphics [22:58] yes [22:58] a bug probably [22:58] i had to use [22:58] wow, now I'm excited [22:58] a different one i can't remember the name [22:58] gonna reboot. [22:58] bumblebee? [22:59] i think it was called nvidia-optimus? [22:59] i had to restart each time i switched [22:59] is all i remember [22:59] do you have a lenovo p52s per chance? [22:59] it took me days to figure this out [23:00] bumblebee wasn't working for some reason if i remember vaguely [23:02] It didn't work [23:02] still lagging like crap [23:02] where's the log from the prior boot? [23:03] yeah as i said the solution took me days and bumblebee didn't work [23:03] i had to use something else and i can't remember what it was [23:03] lol I've still got libnvidia-compute-390:i386 [23:03] it might've been nvidia-prime [23:03] but surely that can't be affecting me. This is a 64 bit system [23:04] this is my desktop now. I had a nvidia graphics card [23:04] But it died today. So trying to use onboard now [23:04] oh [23:04] excelsiora, do you mean syslog? [23:05] /var/log/syslog looks like it has the log... [23:05] excelsiora: journalctl -b -1 if you are on 18.04 and newer [23:06] excelsiora, tomreyn, sarnold: http://codepad.org/dae723sF [23:06] That's the syslog from the Live USB which works perfectly [23:07] so? [23:07] I assume the one from the failing system is coming shortly :) [23:07] sarnold, grep -i vmware /var/log/Xorg.* gives nothing [23:08] this one shows mtrr issues [23:08] tomreyn, what's mtrr? [23:08] mtrr_cleanup: can not find optimal value [23:08] please specify mtrr_gran_size/mtrr_chunk_size [23:09] if you also have this on the installed system you'll want to http://my-fuzzy-logic.de/blog/index.php?/archives/41-Solving-linux-MTRR-problems.html [23:09] https://en.wikipedia.org/wiki/Memory_type_range_register [23:10] hey tomreyn, btw I ran testdisk on that drive, and it found my partitions [23:10] I'm looking through it now and can see all my files [23:10] in the file preview [23:11] jrgilman: very nice. if it can determine the "partition" (really LVM2 LV) boundaries then you could recreate those [23:12] it found them as ext4 though [23:12] via sudo ./testdisk /dev/mapper/encrypted [23:12] those file systems will be on top of the (no longer existing) LVs [23:13] ah [23:13] okay so if testdisk found this, what should my next steps be? I want to avoid doing something that fucks it more up [23:13] write both of them? [23:14] dd the disk to a clean storage, work on the copy. repeat until you get the boundaries right. [23:15] what do you mean by "boundaries" [23:16] you had and still have an LVM PV (physical volume), you also used to have a single VG (volume group) in there, i would assume, and probably a small number of LVs (logical volumes, the equivalent to partitions). [23:16] do I really have to reinstall? [23:16] seems so lame [23:16] I've got a working system [23:16] just a driver issue [23:17] Do you think the lagging is caused by the MTRR problems? [23:18] jrgilman: you'd need to recover / recreate the volume group, and the logical volumes so that you can create the file systems. when recreating them you'd need to know where they originally started and eded, otherwise the file systems on top of them which teswtdisk still sees, won't be recoverable in place, [23:18] jrgilman: maybe there's a way that you can restore those file systems on a different storage, though, i'm not sure whether testdisk can do this. [23:20] an older kernel was workinh, but it's gone now... [23:20] this way you'd not need to guess the LV boundaries., just create some sufficiently large partitions on another storage which these file systems would fit onto (or even dump those file systems into files if that's possible, even better. [23:27] is there a software way to dim the screen as a stopgap? [23:27] good night guys [23:27] looks like I'll have to reinstall in the morning :( [23:28] jrgilman: it looks like testdisk may actually be able to recover LV's https://www.cgsecurity.org/wiki/TestDisk so you can maybe just do that once you identified all of them. [23:28] tomreyn: maybe confirming my understanding at the moment of what's going on would be good [23:28] (but i'd still recommend you work on a clone of the drive) [23:28] So I have this hard drive, LUKS encrypts the actual file systems [23:29] so I have to decrypt that using the cryptsetup program. Then inside of that I have LVM which has ext4 on top of it? [23:30] lope: good night and good luck! [23:30] so at the moment, it seems my whole issue is that my LVM is corrupted? [23:31] you have a HDD, with some partitions (as listed by "parted /dev/sda print"). one of those partitions contains a dmcrypt-luks crypto layer. on top of that crypto layer is an LVM2 PV, VG, and a few LVs. just that the VG and LVs were lost when the LVM superblock was deleted someehow. [23:31] Okay, follow-up question. Why is LVM required for LUKS? [23:31] it isn't [23:32] Hmm, I thought it auto checks the LVM mode when you try to do an install... okay [23:32] it's useful if you want to have multiple file systems on a single crypto container [23:32] install with encryption that is [23:32] okay [23:33] yes, ubiquity, the desktop installer, creates things this way. and it makes sense that it does. [23:33] Yeah I'm not questioning it, I just want to try to understand what's happening rather than just "do the thing" [23:34] if you had multiple crypto containers oyu 'd need to enter multiple passphrases at boot (there's ways to automate this but it's not 'out of the box') [23:34] ahh ok [23:35] so at the moment, when I boot up, and I type my password in [23:35] it's trying to do cryptsetup, and then after that it tries to find the ubuntu-vg volume group [23:35] but because LVM is corrupted, it can't and thus drops into initramfs? [23:35] exactly [23:36] sorry I typed on multiple lines there again [23:36] okay [23:37] ooc [23:38] ooc, if i were to dd the /dev/mapper/encrypted "drive" to another drive, would it boot as just a normal ext4 partition with no LUKS or LVM? [23:38] it might take some massaging to make it boot but mounting it ought to be possible [23:39] jrgilman: oh there is actually "pvck" you can use to try and recover the lvm data, i forgot about this. [23:39] okay was just curious [23:39] ...it's like fsck but for LVM physical volumes [23:39] jsut to confirm my understanding, in LVM there's three concepts, PV, LV and VG [23:40] physical volums are storage space which can be joined (e.g. from multipls disks) into VGs. and VGs can contain multiple LVs. [23:40] PV is the actual physical disk so /dev/sda sdb etc, VG is a grouping of partitions and then LV can combine those VG to create a "fake disk" so to speak? [23:41] oh [23:41] so VG is the top level set [23:41] VG 1:M LV 1:1 PV? [23:41] well, you cant work with your VGs until you readied your PVs. [23:42] okay gotchya [23:42] in your case there is a single PV which is /dev/mapper/sda3_crypt [23:42] the "pvs" or "pvdisplay" commands would confirm this. [23:43] now, if the LVM data wasn't corrupt, you could run vgscan to find the ubuntu-vg volume group === viv`d is now known as vivid [23:44] ...and then "lvscan ubuntu-vg" to find the 3(?) LVs in there. [23:44] the LVs are the ext4? [23:44] what testdisk detected? [23:45] the ext4 file systems are on top of the LVs [23:45] like a file system is on top of a partition [23:46] so a logical volume can be partitioned with for instance NTFS, HPFS, ext4 whatever [23:46] in LVMs inner logic, PVs are like real disks, VGs are like RAID and LVs are like partitions [23:46] okay [23:47] LVM does not care about file systems, it just creates LVs and on top of that you can place a file system or anything else you could place on a partition, but that's outside of this LVM then [23:48] So I am sitting in LAX on my way to Houston and interestingly enough I am connected to their public WiFi and I cannot connect to anything but I can Mosh out to a computer to weechat over Mosh? Any ideas whats going on? [23:49] okaygonna dd this first before messing around any further [23:50] you could just dd the encrypted /dev/sda1 or the decrypted /dev/mapper/sda1_crypt [23:51] I'm doing the decrypted one since testdisk definitely was able to find those files [23:52] i only brought up sda1 in case you wanted to ensure your data remains protected. [23:52] no, part of me actually wants to remove the LUKS encryption [23:52] but that's a problem for later [23:53] anything that is sensitive is already encrypted in my home folder [23:54] btw. pvck can run in a non-writing mode with --test [23:55] hmm [23:55] i'd suggest you run pvck on the copy first before you run testdisk against it. if pcvk can restore vg and Lvs then all you'll need to do is to run fsck against the LVs [23:55] alright [23:56] I get so afraid when i use dd [23:57] I check the options like 10 times over [23:57] that's healthy [23:57] just like having backups ;) [23:57] :( [23:58] i'm just making sure you don't forget this is the main issue here, the encryption layer isn't [23:58] oh yeah [23:59] I already know that I played myself [23:59] also playing around with fsck and breaking crap wihtout knowing what i was doing didn't help [23:59] without* [23:59] fsck can be more destructive than useful, yes