/srv/irclogs.ubuntu.com/2019/07/31/#ubuntu.txt

tomreynfastputty: did you look at dmesg? and do you do TRIM?00:00
fastputtywhat is trim?00:00
tomreynbasically, telling the ssd which parts of a file system are unallocated and can thus be swapped around safely.00:01
tomreyn!trim00:01
ubottuMany 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:01
tomreynsome 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:04
fastputtysorry omg lost internet again, thunderstorm here00:08
tomreyni'm also sorry, need to go to bed. gl!00:10
tomreyn<tomreyn> 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 full00:11
=== zbenjamin_ is now known as zbenjamin
jrgilmanhey 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:34
jrgilmanhttps://imgur.com/vXw4Y6Y01:35
jrgilmanI'm not really sure how to begin fixing this, all of the errors I find when searching are due to a kernel update.01:35
KalElwhat's a good known-to-work compact usb wifi for ubuntu?01:38
edenistjrgilman: 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
KalEli purchased a lenovo legion y7000 and the the wifi chip keeps giving me trouble to no end01:38
jrgilmanedenist: I have 3 drives01:38
jrgilmanI am unsure01:38
KalElthinking to just use a separate usb wifi01:39
jrgilmanI tried putting them in the same order01:39
jrgilmanshould I just try juggling the cables around?01:39
edenistpossibly. It looks like it's having trouble locating certain partions and lvm  groups, with the fscrypt thrown in there, I think somethings out of order01:40
jrgilmanokay01:40
=== Sven_vB_ is now known as Sven_vB
jrgilmanI guess i'll try all possible permutations of that first01:41
jrgilmanbefore trying to do the hard thing01:41
edenistwhat is the layout of the drives? One boot drive and some other drives mounted too?01:41
edenistraid?01:41
edenistwhich drives are encrypted?01:41
jrgilman1 is encrypted01:41
jrgilmanit used to be /dev/sdb01:41
jrgilmanbut now it's /dev/sda01:42
jrgilmani tried putting it uh01:42
jrgilmansecond in the SATA ports01:42
KalEli have enabled windows raid and i can't boot with these drives anymore01:42
jrgilmananyways sorry01:42
jrgilmanthe main drive has 3 partitions and is encrypted01:42
jrgilmanthat's the only one that matters01:42
jrgilmanthe other two are just data drives01:42
jrgilmannothing important on them01:42
jrgilmanwell01:42
jrgilmanthere's important stuff on them, but not important to booting01:43
edenistjrgilman: just focus on the main boot drive for now then.01:48
KalElwhat are some hidden gem linux games you enjoy01:48
edenistleave the others unplugged01:48
edenistit might be that drives and partitions haven't been specified with UUID, so it's getting confused at boot up01:49
jrgilmanokay01:50
jrgilmanI'm trying every slot now01:50
jrgilmanokay01:54
jrgilmanI've tried every slot for it at this point01:54
jrgilmanit's refusing the mount01:55
edenistjrgilman: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
jrgilmanit should be on the main drive only01:58
jrgilmanall I did was select the01:58
jrgilman"encrypt drive" option when you first install ubuntu01:58
jrgilmani mean01:58
jrgilmanI don't really understand a whole lot about the bootloader, so would the prescense of those drives cause it to be installed there?01:59
jrgilmani dunno if this is helpful at all: https://imgur.com/cjP9B2i02:00
edenistby default it will install it on the main system drive.02:00
jrgilmanI didn't play around with that02:00
edenistthanks. let me take a llok02:00
edenist*look02:00
jrgilmani apologize for the shitty lighting02:01
edenistall good ;-)02:01
jrgilmanthe worst part is i've been burned by this before but i guess i didn't learn the first time02:01
=== [b0b] is now known as b0b
edenistjrgilman: the only thing I notice is that it says root='hd1,gpt2'02:15
edenistit might be expecting one of the other drives to be in there [that drive would be hd0]02:16
edenistI'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 together02:17
edenistPut another drive in, then try combinations of other locations for the boot drive02:17
jrgilmanhm ok02:28
MiguelPeruhey is there a keylogger for ubuntu02:33
sarnoldMiguelPeru: pam_tty_audit(8) if you need a log of a terminal02:35
OerHeksx11log, logkeys, tons of those02:35
OerHeksinstall synaptic, for a more detailed softwarecenter02:36
jrgilmanedenist: what doesn't make sense is the fact that the UUID should be the same02:47
jrgilmanI'm just trying to think this through at this point02:48
edenistjrgilman: correct. But in the grub menu, it's referring to the HD by index02:48
MiguelPerubro02:49
MiguelPeruOerHeks, do I need to install c++ compilers for logkeys02:50
jrgilmanright02:51
OerHeks!info logkeys02:52
ubottuPackage logkeys does not exist in bionic02:52
OerHeksoh02:53
edenistjrgilman: when you boot with just a single drive, can you change 'hd1,gpt2' -> 'hd0,gpt2'?02:54
edenistunder set root02:54
illuminated!info samba02:55
ubottusamba (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 kB02:55
jrgilmanwill try now edenist02:56
jrgilman edenist should i change that in all locations you think02:57
jrgilmansearch command has a reference to it too02:57
jrgilmanin the if statement02:57
edenistjrgilman: yes, quite right. Change it in all locations within the grub editor02:58
edenistsame with ahci1 -> ahci002:58
jrgilmanyep02:58
jrgilmanI just realized02:59
jrgilmanthe other day I mounted this drive in a ubuntu vm to get some data off it using cryptsetup luksOpen etc etc02:59
jrgilmancould that have changed the UUID?02:59
jrgilmanthat didn't work btw03:01
edenistjrgilman: darn :/03:02
edenistno it shouldn't have changed it03:02
jrgilmanhmm03:05
jrgilmanso here's the thing03:05
jrgilmanif grub was failing03:05
jrgilmanwouldn't I not even make it to the cryptsetup screen03:05
jrgilmanthe part where you type the password?03:05
jrgilmanthe weird part about this screen is that it keeps saying "Please unlock disk sdb3_crypt"03:06
jrgilmaneven though there's definitely no /dev/sdb in ehre03:06
edenistyeah, that's the problem. related to the hd0/1 thing. It thinks it is the second drive03:07
edenistit's actually sda3 when no other drives are present03:07
jrgilmanright03:08
jrgilmani just thought that the grub hd0/hd1 thing was seperate from the cryptsetup portion03:08
jrgilmanjust spit balling03:08
jrgilmanthis is really out of my knowledge one03:08
jrgilmanzone*03:10
jrgilmani think i'm gonna attempt all 24 configurations of the three drives at this point03:10
jrgilmanbefore going too far down the rabbit hole03:10
edenistjrgilman: you didn't recently upgrade ubuntu did you?03:11
jrgilmannope03:23
jrgilmannot to my knowledge at least03:23
jrgilmanmaybe i installed some udpates03:23
jrgilmanupdates*03:23
briewebmy 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
briewebI am running an old version03:24
brieweboh, I was thinking that I was on mythbuntu03:27
vegiiWow, I just rebooted a machine and it bootlooped like 10 times and di03:33
vegiidied, as in froze on startup03:34
jrgilmanedenist: when i try to mount the /dev/sda2 partition in a live cd03:35
jrgilmani get a structure needs cleaning error03:35
jrgilmanthis seems to be going somewhere03:35
jrgilmanalso the UUID of /dev/sda2 matches that grub menu uuid03:35
vegiipicrel https://i.imgur.com/gVxIf6p.jpg frozen with this displayed. Assuming it's a (malformed) boot sequence output03:37
jrgilmanokay i think i'm getting somewhere now03:38
jrgilmanbad magic number in super-block while trying to open /dev/sda03:40
vegiiunable 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:40
vegiiI'm wondering what just happened and how I could get the system back up03:43
vegiiit's ubuntu server 18.04 (bionic)03:44
vegiirunning on a thinkpad R6103:45
vegiiwell, it was running03:45
vegiiit said it needed a reboot, so I ran sudo reboot and it started crashing and restarting, which was a bit terrifying.03:46
Bashing-omvegii: Might be a good thing to run a file system/repair - from a liveUSB - at this time.03:48
vegiiI'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.03:56
vegiisince 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
Bashing-omvegii: Only takes a few minutes to run the check. Preliminary: ' sudo fdisk -lu ' to know the targe partiton then 'sudo fsck /dev/<sda1>' .04:01
Bashing-omtarget*04:01
vegiithanks, will try after reseating ram, since it's behaving weirdly04:10
vegiiugh, the laptop itself is failing. Same artifacts with the hdd removed04:27
vegiiassuming it's thanks to the nvidia chip from that era04:28
jezenielHi, 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:30
vegiiBashing-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:50
Bashing-omvegii: At least you know where next to start looking :(04:54
vegiiwym?04:54
vegiithe 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:03
edenistjrgilman: any luck?05:17
=== kallesbar__ is now known as kallesbar
orbur74_qqq06:49
kreyrendo you have ubuntu iso for non-free sources? iso complains about lwlwifi07:16
* kreyren is helping end-user07:16
kreyrenand end-user doesnt have ethernet connection07:16
=== ZaZaGX_ is now known as ZaZaGX
Spookankreyren: What about wifi then?07:19
EriC^^kreyren: he could download the debs and manually install them using dpkg07:19
kreyrenhe's using wifi, but it seems that it needs these07:20
kreyrenEriC^^, Too advanced for said user afaik assuming that he's switching from endlessos and is bad with IT in general.07:20
kreyrendebian has unofficial iso with these i was hoping you would have something alike07:20
EriC^^kreyren: the debs might be on the live iso in \pool i think07:22
EriC^^kreyren: did he have wifi on the live usb?07:22
kreyrendoubt07:23
gimmelHi 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:28
EriC^^gimmel: type "sudo parted -ls | nc termbin.com 9999" and paste07:29
gimmelWhen I connect the drive it auto mounts the /boot partition. However it's the main partition I want.07:29
gimmelEriC^^: ok, one sec07:30
gimmelEriC^^: https://termbin.com/5x4z - note, it's the 500Gb WDC drive I'm trying to access. /dev/sdb507:31
EriC^^gimmel: type "sudo cryptsetup luksOpen /dev/sdb5 sdb5_crypt"07:33
gimmelEriC^^: After entering the passphrase, I then get "Cannot use device /dev/sdb5 which is in use (already mapped or mounted).07:35
EriC^^gimmel: aha, any backstory?07:36
gimmelEriC^^: Well, I haven't mounted anything myself, so I'm not really sure why it would be saying so. Unless it automounted something.07:37
EriC^^what's the /dev/mapper/ubuntu--vg-root one 238gb one? is it from sda5?07:38
gimmelEriC^^: yeah, that's the live hard drive.07:39
AavarOn 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:43
zambai have a system running ubuntu desktop 18.04.2 with just terrible performance07:50
zamba12GB RAM, i5-4590T CPU and a SSD HD07:51
zambaeverything is sluggish07:51
=== jmcgnh_ is now known as jmcgnh
zambaeven running gnome-session-fallback07:51
Guest_33Hey, 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" win07:53
Guest_33dow? Currently It swaps between only two windows (latest & next latest)07:53
gimmelEriC^^: any thoughts?07:53
Guest_33Sorry that got messed up07:54
Guest_33Hey, 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
Guest_33The 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 times07:54
Guest_33There we go =)07:54
=== jelly-home is now known as jelly
EriC^^gimmel: i'd restart the pc, dont mount anything, then try running the command above08:27
EriC^^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 work08:29
gimmelEriC^^: 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:37
EriC^^gimmel: dont enter it08:42
EriC^^gimmel: even if it automounts /boot that's fine08:43
EriC^^gimmel: what does 'sudo mount /dev/mapper/luks-f5f1200e-3781-48be-b10f-27e83de7d7b1 /mnt' give?08:43
=== phlegethon is now known as phlgt1
gimmelEriC^^: 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:45
EriC^^gimmel: type "sudo cryptsetup luksOpen /dev/sdb5 sdb5_crypt"08:47
gimmelEriC^^: looks like it has come back as /dev/sdc5 - so I'll change both sdb5's to sdc5 ?08:49
EriC^^gimmel: yeah08:57
edd_lchopefully, 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
edd_lcam i supposed to work differently concerning groups in ubuntu core? do i manage permissions differently there?08:58
gimmelEriC^^: ok, that just dropped to a new line. So... what next?09:01
Guest_33edd_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 groups09:02
EriC^^gimmel: didn't it ask for a password?09:04
gimmelEriC^^: sorry, yes, and then dropped to a new line.09:07
edd_lcGuest_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 thing09:08
EriC^^gimmel: alright, type 'sudo parted -ls | nc termbin.com 9999'09:10
edd_lcGuest_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] suspects09:10
ubottuLaunchpad bug 1495059 in Snappy "cannot add new sudo users" [Undecided,Fix released]09:10
stoisscant you just edit visudoer manually ?09:10
edd_lcstoiss: if you mean me, my issue is adding myself to the docker group. the "askubuntu" link right above it has my exact symptoms09:11
stoissoh ok09:12
gimmelEriC^^: https://termbin.com/q3pm09:14
EriC^^gimmel: what does 'sudo mount /dev/mapper/ubuntu--vg-root /mnt' give?09:15
gimmelEriC^^: nothing09:16
EriC^^gimmel: then "ls -l /mnt" are those the files you want?09:16
gimmelEriC^^: Nope, they're the live hard drives files09:18
EriC^^gimmel: alright, what does "sudo vgscan | nc termbin.com 9999" give?09:20
gimmelEriC^^: https://termbin.com/regb09:26
IndustrialHi. 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:28
IndustrialIt'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:29
phlegethon.09:33
EriC^^gimmel: seems like it's the old-hdd09:34
tomreynIndustrial: how have you been managing your wifi connection from a terminal so far?09:34
gimmelEriC^^: right, so how do I mount that?09:35
tomreynIndustrial: and if you're ok with the network manager applet (top corner menu), why not use this?09:35
EriC^^gimmel: try "sudo vgchange -a n old-hdd"09:36
gimmelEriC^^: 0 logical volume(s) in volume group "old-hdd" now active09:37
EriC^^gimmel: hmm no idea09:37
gimmelEriC^^: 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
EriC^^gimmel: it usually isn't09:40
gimmelEriC^^: Should I unplug, reboot and try again?09:41
EriC^^gimmel: try "sudo vgdisplay old-hdd"09:43
gimmelEriC^^: https://pastebin.com/MyXzzGsY09:46
gimmelEriC^^: so, it's the right group name09:50
EriC^^gimmel: what about "sudo vgchange -ay old-hdd"09:50
EriC^^gimmel: yeah09:50
EriC^^that command is supposed to activate all the volumes09:50
gimmelEriC^^: 2 logical volume(s) in volume group "old-hdd" now active09:51
EriC^^gimmel: nice09:51
gimmel(it also made the drive buzz on my lap :P )09:51
EriC^^gimmel: try "sudo lvdisplay | nc termbin.com 9999"09:51
gimmelEriC^^: https://termbin.com/iq1x09:52
EriC^^gimmel: try "sudo umount /mnt && sudo mount /dev/old-hdd/root /mnt"09:53
MacroManI'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
gimmelEriC^^: nailed it. Thanks so much!!!09:53
EriC^^gimmel: great! no problem09:53
gimmelEriC^^: Care to explain what that was all about?09:54
EriC^^gimmel: no idea tbh, it usually activates the lvm stuff after decrypting, for some reason it wasn't09:54
gimmelEriC^^: originally the group name was the same as the live drive. Could that have borked it?09:55
gimmelEriC^^: in my troubleshooting, I found the idea of renaming the group to old-hdd to differentiate09:55
EriC^^gimmel: maybe, i doubt though, seems it's taken to old-hdd now09:55
gimmelEriC^^: *hands in the air* who knows. Thanks again though.09:56
EriC^^gimmel: you're welcome09:57
BluesKajHowdy folks11:02
=== im0nde_ is now known as im0nde
cyberalex4lifeHei, 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:46
EoflaOEcyberalex4life: Do you mean that each time you login your microphone gets on and output devices get muted?11:47
cyberalex4lifeEoflaOE, yeah.... I read about some malware gnome-shell-extension that does that, but didn't find anything11:51
BluesKajcyberalex4life, so do you want devices muted at login or ...?11:51
cyberalex4lifeBluesKaj, no, I want output-devices, headphones, whatever to keep their volume from when I logged out, and microphone also to do so.11:53
cyberalex4lifewhatever I do, on login I get microphone on and sound muted11:53
cyberalex4lifeit doesn't preserve state11:54
BluesKajcyberalex4life, open alsamixer in the console, check the automute control on the far right and use the down arrow key to disable it11:56
BluesKajuse the < > keys to navigate11:57
cyberalex4lifeBluesKaj, thanks BluesKaj12:02
EoflaOEcyberalex4life: Now reboot and see if it works12:03
BluesKajcyberalex4life, to solidify your choices, run, sudo alsactl store, at the prompt12:04
cyberalex4lifeBluesKaj, Oh I think I'll reboot later, I have some work to do, but yeah it was enabled12:05
BluesKajcyberalex4life, yes, it's disabled by default so you don't blast your speakers12:06
=== morphis5 is now known as morphis
pomehahello, 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
jtjh95Hello 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 disappear12:13
leftyfbpomeha: check snap12:14
EoflaOEjtjh95: You mean CLI only? Or Ubuntu Server?12:14
jtjh95EoflaOE Command line only12:14
EriC^^jtjh95: are you using xorg?12:14
leftyfbEoflaOE: Ubuntu server is CLI-only by default12:14
EoflaOEleftyfb: I know, because I have seen it.12:15
jtjh95How do I check? For xorg12:15
leftyfbjtjh95: if you're command-line only, xorg isn't relevant12:15
EriC^^jtjh95: do you mean the resolution of the tty? or the graphical desktop?12:15
EriC^^ah nevermind12:16
pomehaleftyfb: oh my..12:16
jtjh95resolution of tty I have no graphical desktop12:16
pomehaleftyfb: thanks12:16
EriC^^jtjh95: i think you can set that up from grub12:16
pomehawhat's `core` snap?12:16
EriC^^jtjh95: sudo nano /etc/default/grub12:16
=== TomyLobo2 is now known as TomyWork
leftyfbjrgilman: sudo dpkg-reconfigure console-setup12:17
EoflaOEjtjh96: Is https://linuxconfig.org/how-to-increase-tty-console-resolution-on-ubuntu-18-04-server what you need?12:17
jtjh95Ok their is a hashed out #grub_GFXMODE I'll try that12:18
EriC^^jtjh95: uncomment and change #GRUB_GFXMODE=640x480 and also add "GRUB_GFXPAYLOAD_LINUX=keep" not sure if that's required though12:18
EriC^^then sudo update-grub12:18
leftyfbjtjh95:  sudo dpkg-reconfigure console-setup12:18
jtjh95Ok will do thanks12:18
leftyfbthere's no need to go messing with kernel/grub parameters12:18
EriC^^jtjh95: seems leftyfb has an easier solution12:19
leftyfbpomeha: https://snapcraft.io/docs/getting-started12:20
nikolamHi, 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
nikolamNo Ubuntu before 19.04 had that and other OSes (Openindiana and Windows 10) work just fine with this audio12:24
nikolamIt is ASUS P5W DH Deluxe motherboard with ICH7 south bridge, NM10/ICH7 Family High Definition Audio Controller [8086:27D8]12:26
nikolamas the audio device12:26
nikolamI reported this few weeks after 19.04 came out. Still here .12:26
pomehanikolam: okay.12:27
nikolamit also clicks loudly when audio stream stops playing12:27
nikolamAnd now clicks by itself from time to time, like initializing audio12:30
nikolamIt is annoying to the point I couldn'ts sleep with speakers on , like before 19.0412:36
iorianikolam, i suggest you to test a previous kernel ,or better, a  19.04 livecd12:39
nikolamI 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
nikolamSo testing 19.04 live cd will make sense, since it is older then current 19.04.12:41
nikolamok ioria12:43
stoissis 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 ubuntu12:43
EriC^^stoiss: xset s activate   if you're using xorg12:45
stoissEriC^^, will that turn off the monitor if i bind that to a keypress ?12:46
EriC^^stoiss: yeah12:47
stoissEriC^^, and it will turn back on when i hit another key ?12:47
EriC^^yeah12:47
stoissnice. thanks12:51
EriC^^no problem12:51
ejrwhat could be the reason that I still need to enter my sudo password in ubuntu even after adding NOPASSWD: ALL to visudo?12:52
stoissEriC^^, well it flash my screen but doesnt turn it off or anything. it seems like it does for a fraction of a second.12:53
EriC^^stoiss: odd, it makes it black for me til i press something12:54
stoissjust xset s activate12:54
EoflaOEejr: Pastebin the output of sudoers file.12:54
stoissmy screen flash for what seems like 1/10th or so12:54
EriC^^stoiss: try in a terminal "xset s activate"12:54
stoissEriC^^, thats what im doing. in a terminal12:54
EriC^^maybe it's picking up the key release from your keybind12:54
EriC^^oh12:55
stoissi didnt use any keybind. just paste it in a terminal and run it12:55
stoisshm it does work with ALT F2 and paste in that command12:55
ejrEoflaOE: https://termbin.com/enup12:56
stoissi tried binding it and it does seem like the release is what causes it to break it12:57
EriC^^stoiss: you could possibly put it in a script that runs "sleep 1 && xset s activate"12:58
EriC^^that would give you enough time to release the keys before it runs12:58
stoissyes. wouldnt that work with a keybind as well ?12:58
EriC^^yeah that's the point12:59
EoflaOEejr: 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?12:59
ejrwill check, thanks!13:03
EoflaOEejr: You are welcome. Tell me if sudo asks for password again.13:04
stoissEriC^^,  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:05
EriC^^stoiss: i dont think so13:07
stoisshm well thanks. ill look into how at least pause the mouse or something13:09
EriC^^stoiss: it doesnt work with xinput to disable the mouse, i just tried fwiw13:10
stoissallright. thanks13:10
EriC^^stoiss: seems to work with xset dpms though13:11
EriC^^1 sec13:11
EriC^^stoiss: yeah13:11
EriC^^stoiss: disabling the mouse using xinput --set-prop <id> "Device Enabled" 013:11
EriC^^then xset dpms force off13:11
stoissallright thanks. ill take a look13:12
EriC^^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 mouse13:12
stoissyeah. ill figure out how to work it.13:22
stoissthanks for the help13:22
EriC^^stoiss: alright, no problem13:23
giacohello! 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 one13:34
compdoctrack down the ports needed and open them?13:34
giacocompdoc: problem is that I can't find the correct it of the openvpn client13:35
compdocgiaco, so you installed a firewall on the docker host?13:36
giacoThe 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 work13:37
compdocI use KVM and virt-manager, so dont know much about docker13:37
giacocompdoc: yes. Docker container works in network_mode: host, but the tun0 device is inside the docker container and not on host13:37
compdocwhat is the ip address ranger of the lan the guests connect to?13:38
compdocrange13:38
giaco192.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 point13:39
compdocthere is normally no firewall installed on ubuntu, so the problems are releated to docker?13:39
giacocompdoc: ufw is installed by default, isn't it? Is it considered a firewall?13:39
compdocno, but you caninstalled ufw and create rules13:39
compdoc*can install13:40
giacocompdoc: 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 source13:42
pragmaticenigmacompdoc: I think ufw is installed by default, just not enabled by default13:42
giacothat'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:43
giacoproblem 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 internet13:45
compdocpragmaticenigma, I think iptables is installed by default but has no rules, and you can install the ufw gui to set  rules.13:45
compdocbut either way, youre right, its not used by default13:45
giacoso question is: what is the correct rule to "allow all ports for connected vpn clients only"?13:46
giacoas I said "ufw allow from 192.168.255.0/24" doesn't work. Apparently that is the ip the client gets inside the docker container13:47
compdocgiaco, 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 beforehand13:50
giacowait, I think I've just solved13:50
=== NickG365_ is now known as NickG365
giacocompdoc: no, ufw let's you use subnets13:50
compdocthats not what I mean13:50
giacoThe solution of my problem is not allowing the vpn clients ip, but the vpn server container ip13:51
compdocmakes sense13:52
giacoso basically ufw allow form 172.22.0.something13:52
=== Gilfoyle- is now known as Church-
INSANUif 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:23
squirtLeaving #ubuntu by alien64's Request15:35
tomreynINSANU: what is the pfx file said to be used for?15:38
lifeboyUbuntu 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
lifeboyHowever, setting the limits in /etc/security/limits.conf of the host and the guest doesn't make a difference15:44
lifeboyWhy would this be so?  Apache24 is pretty ubiquous...15:45
tomreynlifeboy: looks like your lxc guest has stricter limits set than apache httpd requests: lxc config show <ID> | grep ^limits15:52
flingHow do I export the shiftfs patch?16:01
hans_i guess this is just curlftpfs bugging out? http://paste.debian.net/plain/109373316:03
lifeboytomreyn: my lxc run in proxmox, so I don't have the lxc command.  There is a "pct config <ID>", but it doens't show any limits.  I'll ask over at proxmox16:03
hans_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 016:04
flinglifeboy: lxc command is in lxd, not in lxc16:05
lifeboyfling: proxmox doesn't run lxd yet, it still lxc16:13
flinglifeboy: this explains why you don't have an lxc command16:13
jrgilmanhey, when I run fsck, should I get more output other than just "fsck from util-linux 2.31.1"?16:14
lifeboyI'm taking it up with the Proxmox team if I still can't get it to work16:15
lifeboy^^^^^^  for fling:16:15
flingThere is #lxcontainers16:15
lifeboyfling: Yes, all the lxc- commands are there.16:15
flinglifeboy: /join #lxcontainers16:16
lifeboyO, I see what you mean, there's a channel #lxccontainers16:16
flinglifeboy: I don't know what your question is :P16:16
lifeboyUbuntu 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
lifeboyHowever, setting the limits in /etc/security/limits.conf of the host and the guest doesn't make a difference16:17
lifeboyWhy would this be so?  Apache24 is pretty ubiquous...16:17
jrgilmanedenist: also no luck so far16:17
lifeboyThat was my original question 30 minutes ago16:18
flinglifeboy: you need to set your limits in the container16:20
tomreynjrgilman: which command were you running?16:20
flinglifeboy: you may need to specify something in the container config file for the limit change to become available inside of the container16:20
fling^ depending on the container configuration.16:21
flingYou might need to also need to set the limits to the user owning the subuids for the container uid range.16:22
flinglifeboy: good luck!16:22
flingI'm not using lxc for a while, lxd works16:22
jrgilmantomreyn: sudo fsck /dev/mapper/encrypted_drive16:23
jrgilmannot sure if you want the full backstory on this16:24
lifeboythanks fling: I think the proxmox team will have to jump in, since they have their ecosystem that sets this up.16:25
tomreynjrgilman: which file system is on there?16:26
jrgilmanLVM2_member16:26
flinglifeboy: why using proxmox instead of lxd?16:26
tomreynjrgilman: so that's a LVM2 logical volume, you can't run fsck on those16:27
jrgilmanokay16:27
jrgilmanwell that answers that16:27
tomreynjrgilman: 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
jrgilmanyeah sorry, let me gather the links from last night16:28
jrgilmanbasically, 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/tLKjcEi16:29
jrgilman(also the grub config is in there)16:29
=== GraysonBriggs is now known as Grayson
jrgilmanthe UUID in the grub boot config16:31
jrgilmanmatches /dev/sda216:31
jrgilmanthe one it's searching for16:31
jrgilmanbut edenist thought it might have something to do with the "hd1" and "ahci1" references rather than "hd0" and "ahci0"16:31
jrgilmanso we tried that16:31
jrgilmanthat didn't work16:31
jrgilmanI tried all 24 configurations of the drives, that didn't work16:31
jrgilmanunplugged and replugged16:32
jrgilmanI'm trying to think of what else i've tried sorry16:32
tomreynjrgilman: 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:33
jrgilmancan you elaborate?16:34
jrgilmanthe logical volume doesn't span multiple drives16:34
jrgilmanthis LVM thing is only because i chose the "encrypt drive" option at startup16:35
jrgilmansorry s/startup/first install/16:35
tomreynjrgilman: 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
jrgilmanokay, I'm already in a live cd16:37
jrgilmanwhen I run fdisk -l i get a bunch of /dev/loopX16:37
jrgilmanand then /dev/sda (the main drive)16:38
jrgilmanthen /dev/sdb (the live cd usb stick)16:38
jrgilmanare you saying to compare the /etc/fstab to that?16:38
tomreynjrgilman: 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-install16:38
jrgilmanokay16:38
jrgilmanso mounting is just basically:16:38
tomreynjrgilman: i assumed you had multiple hard disk drives connected.16:38
jrgilmantomreyn: we disconnected everything except the main drive at this point16:39
jrgilmanbecause having multiple drives was confusing things last night16:39
tomreyni see.16:39
tomreynfrom what i gather you've also been making changes already so the approach i was thinking of may no longer work.16:39
jrgilmanwould doing the chroot damage the system if i do it without the other two drives hooked in?16:40
jrgilmanoh16:40
tomreynso chroot mounting and recovering from that is probably the better approach16:40
jrgilmanoky16:40
jrgilmanokay*16:40
tomreyni'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
jrgilmanyes16:41
jrgilmanwell16:41
jrgilmanthere is a symlink between the two drives16:41
jrgilmanjust for steam games16:42
lifeboyfling: 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
jrgilmanbut other than that there is no relationship16:42
tomreynjrgilman: ok, this doesn't matter16:42
jrgilmanokay just wanted to make sure16:42
jrgilmansorry16:42
tomreynjrgilman: no worries. it's good to bring it up. do you know how to proceed with the chroot mount?16:43
jrgilmanno idea with chroot, never done that before16:43
jrgilmanbut first i need to cryptsetup16:43
lifeboygotta run.  thanks16:43
jrgilmanso one second16:43
jrgilmanokay I've cryptsetup /dev/sda3 to /dev/mapper/_dev_sda316:43
jrgilmanwhen I do16:44
jrgilmansudo vgdisplay --short16:44
jrgilmanit says it's empty...16:44
tomreynjrgilman: 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
jrgilmanuh it was /dev/sdb316:45
jrgilmanin my original system16:45
tomreynyes, while locked16:45
jrgilmanah ok16:45
tomreynbut when unlocked it would have been /dev/mapper/sda3_crypt16:46
jrgilmanokay16:46
jrgilmansudo cryptsetup luksOpen /dev/sda3 sda3_crypt16:46
jrgilmandone16:46
tomreynand you closed it beforehand?16:46
jrgilmanyes16:46
jrgilmani did luksClose16:47
tomreynok16:47
jrgilmanthen luksOpen16:47
jrgilmanls /dev/mapper only shows "control" and "sda3_crypt"16:47
tomreynnow pvscan16:47
jrgilmanuh want me to take a picture of this output?16:47
jrgilmanor just summarize it16:47
tomreynyou can run it again and post it online:   sudu pvscan 2>&1 | nc termbin.com 999916:48
jrgilmanyeah sorry just working of two different computers for this16:48
jrgilmanhttps://termbin.com/h9aim16:48
jrgilmanmaybe I'm wrong about the other drives not being part of this, maybe I've forgotten16:49
tomreyneither 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
jrgilmanI was pretty sure they weren't16:50
jrgilmanah good idea16:50
tomreynwhen ready, install " pastebinit ", then run: sudo /bin/true; pastebinit < <( sudo pvs; sudo vgs; sudo lvs; )16:52
jrgilmanhttp://paste.ubuntu.com/p/bVzhh4sF6J/16:53
jrgilmanI assume the fact that it's showing 100% free space is not great16:55
tomreynjrgilman: hmm it doesn't see any logical volumes.16:55
jrgilmanquestion16:55
jrgilmanI uh16:55
jrgilmanI was trying to get data off the drive the other day, and mounted it in an ubuntu vm on my mac16:56
jrgilmancould I have messed up the unmounting processes16:56
jrgilmanand deleted that data16:56
jrgilmanI know that's really open ended16:56
jrgilmanalso16:56
tomreyn!enter16:57
ubottuPlease try and keep as much of your info as possible on ONE line - easier to follow for everyone.16:57
jrgilmanI can plug in all my hard drives and boot up again, that way we have all the parts16:57
jrgilmansorry, I will use one line from now on.16:57
tomreynjust 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
tomreyn* should *not* have caused it16:58
tomreynmaybe the fsck to the wrong device could have, though16:59
jrgilmani did fsck to all three sda partitions, but doing to sda3 kept failing due to a "bad superblock"17:00
tomreynand then you forced it, i assume?17:00
tomreynit's not a file system fsck can handle17:01
jrgilmani don't remember at this point17:01
jrgilmani might have17:01
jrgilmanfsck did work fine on /dev/sda1 and /dev/sda2 though17:01
lunawhy are you writing in green ?17:01
tomreynby trying to make fsck "fix" it, it would have changed the data, effectively overwriting the LV information, i guess.17:01
jrgilmanso I presume I basically mega fucked that drive17:02
jrgilmanfor lack of a better word17:02
tomreynyou ould try this if you have the backup acvailablehttps://www.thegeekdiary.com/how-to-recover-deleted-logical-volume-lv-in-lvm-using-vgcfgrestore/17:03
tomreynbut i guess those will be on your root LV, which is inaccessible17:04
tomreynbut if you restore it from a backup this may be the easiest approach17:04
jrgilmanluna: are you talking to me?17:05
jrgilmanwelp I played myself essentially17:07
tomreynjrgilman: reinstall ubuntu, restore your backups, it's not so bad really.17:08
jrgilman_lol_17:08
* jrgilman this dumbass didn't setup backups on this machine because he kept saying later17:08
tomreynoh, that's unfortunate.17:09
jrgilmanit's a valuable lesson17:09
tomreynmaybe you can recover some data using testdisk17:09
lunajrgilman: yeah you and tomreyn wrote green text, might have been an irssi bug however17:09
ejrhi. 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/p14e17:10
jrgilmantomreyn: i'll give this a shot17:12
jrgilmani appreciate the help really17:12
Habbieejr, what groups are you in?17:13
Habbieejr, no, sorry, wrong question17:13
Habbieejr, you've enabled NOPASSWD for *usernames* 'sudo' and 'no'17:14
chillysurferi 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:14
lotuspsychjechillysurfer: hows this related to ubuntu please?17:15
chillysurferlotuspsychje: is it not ok to ask general launchpad and ppa questions here?17:16
chillysurferif not, then apologies17:16
lotuspsychjechillysurfer: well we try to focus on ubuntu support issues here, perhaps we can point you to a relevant channel? see !alis17:16
chillysurferlotuspsychje: makes total sense, thanks!17:17
daxtry /join #launchpad17:17
tomreynjrgilman: try vgscan and lvscan before you try !testdisk17:17
tomreyn!testdisk17:17
tomreyn!recover | jrgilman17:18
ubottujrgilman: Some tools to recover lost data are listed and explained at https://help.ubuntu.com/community/DataRecovery17:18
ejrHabbie: yes, I have - why is that wrong?17:19
jrgilmantomreyn: will do, gotta go to a family function now, but will attempt this tonight17:20
tomreyngood luck.17:21
Habbieejr, is your username 'sudo' or 'no'?17:21
asarchHow do you create a desktop application launcher in Ubuntu 19.04? The old .desktop files seems not working anymore17:29
ejrHabbie: "no" is my username17:30
Habbieoh17:30
Habbiethen it's somewhat surprising17:30
Habbieunless the %sudo group entry a few lines later overrides that17:30
ejrisn't it commented out anyway with the %?17:32
lopeDo 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 operation17:32
Habbieno, % means group17:32
Habbiesee man sudoers17:32
ejrah, that was the problem. now that i moved the %sudo line up, it works! thanks!17:34
Habbieok!17:35
Habbiei wasn't sure if it was first match or last match etc.17:35
EoflaOEhi ejr17:36
lopeI've got "xserver-xorg-video-intel - X.Org X server -- Intel i8xx, i9xx display driver" installed17:36
lopebut it doesn't say it's for intel HD460017:36
lopeand it's running like crap, so it's unlikely17:37
lopelspci 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:37
lopeI have the i915 module loaded17:39
lopeso I suppose that's what the i9xx means17:40
lopeI've uninstalled the nvidia driver and rebooted. It's still running like crap17:40
sarnoldlope: if you run glxgears from a terminal, what kind of framerate do you get?17:41
tomreynlope: bad performance with HD 4600 is a hardware limitation, you won't find a better driver.17:41
anavel-/close17:45
ejrhi 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 back17:47
ejrbut in the end you were right all along17:47
lopetomreyn, it's not a hardware limitation, the HD4600 runs fine in windows17:48
EoflaOEejr: Thanks. I will try to be more clear next time.17:48
lopeHD4600 can even play overwatch in windows17:48
manjeetsHi 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
lopeat low resolution and refresh rate, but it's definitely capable of dragging and resizing 2D windows around17:49
manjeetsI got image from this link http://releases.ubuntu.com/18.04/17:49
manjeetsany idea how do I fix this issue ?17:49
lopeInteresting, sarnold I get 966FPS when I run glxgears17:50
lopeBut if I maximize glxgears to a fullsize window it runs at 2.4gps17:52
lopeFPS17:52
sarnoldlope: ouch indeed. I get around 60 on my seven year old mobile i7 laptop with integrated intel..17:53
tomreynlope: are you using xorg or xwayland?17:55
lopesarnold, xorg17:55
lopekde17:55
lopetomreyn, I'm running xserver-xorg-video-intel17:56
tomreynlope: can you show    glxinfo -B | nc termbin.com 999917:56
sarnoldlope: xorg here too; glxgears may not be the best debugging tool but at least it's a *number* that allows comparison, heh17:57
sparafucile 17:59
lopetomreyn, https://termbin.com/ocqr18:00
lopetomreyn, lol it says my GPU driver is VMWare???18:01
lopeshould I remove xserver-xorg-video-vmware18:01
lopethere's no module loaded with vmware in it's name.18:02
EoflaOElope: Try it and see if it uses intel driver.18:04
tomreynhmm, 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:05
lopeEoflaOE, try what?18:06
lopeOh, sorry, try remove it. Ok.18:06
o0zelope, is the following package installed ? it should be there by default though. i965-va-driver18:07
lopeo0ze, yes, it's installed18:08
tomreynlope: which driver does X report (to the systemd journal / syslog) it is using?18:09
y4m4t0hello everybody!18:12
EoflaOEy4m4t0: Welcome. Any questions about Ubuntu?18:12
y4m4t0@EoflaOE, hi. im not using ubuntu right now, but yeah, i have a couple of questions about it18:13
EoflaOEy4m4t0: Ask, if related to Ubuntu.18:14
y4m4t0i've got over to the DeepIn OS, and since it is extremely similar to ubuntu, i guess most of solutions will be the same18:15
padarcafaik its based on debian, not ubuntu. (just throwing that in)18:16
Habbieyes, it's based on debian18:16
tomreyn!deepin18:17
tomreyn!derivatives18:18
ubottuThe 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
y4m4t0well, 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 gaming18:18
lopetomreyn, gonna reboot and check18:24
echelonhi18:27
echeloni keep getting E: dpkg was interrupted, you must manually run 'sudo dpkg --configure -a' to correct the problem18:28
echelonis there a way to remove this without running dpkg --configure -a?18:28
echelonwhen i do dpkg --configure -a it gets stuck setting up this thing i don't need18:28
leftyfbechelon: why not fix it like it says?18:28
echelon^18:28
leftyfbechelon: pastebin the errors please18:29
echelonTHERE'S NO ERROR18:29
echelonsorry18:29
echelonit just gets stuck18:29
Habbieshow us please :)18:29
echelon# sudo dpkg --configure -a18:29
echelonProcessing triggers for ureadahead (0.100.0-21) ...18:29
echelonSetting up redis-server (5:4.0.9-1ubuntu0.2) ...18:29
miaHey all, "file something.gif" should return file type right?18:30
echelonso yeah, how do i just remove the thing18:30
Habbiemia, yes18:31
miaI have a gif file I found online (on tumblr) I realized it wasn't being processed somehow in my software18:31
miahttps://66.media.tumblr.com/34cad2ac4d1b7b312665a8c71a984916/tumblr_ptrv7pAAQW1wm31l0o1_540.gif18:31
miathis is the file18:31
miacan you check its filetype --- it's a gif but the file command says its a boot sector? like wtf18:31
Habbiefile says it's a GIF file here18:31
miahttps://66.media.tumblr.com/34cad2ac4d1b7b312665a8c71a984916/tumblr_ptrv7pAAQW1wm31l0o1_540.gif18:32
miathis file?18:32
Habbietumblr_ptrv7pAAQW1wm31l0o1_540.gif: GIF image data, version 89a, 540 x 25018:32
miamine does not say so18:32
Habbiemaybe try downloading it again18:32
miaI tested it on two machines18:32
miatumblr_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 sectors18:32
miaI downloaded it again and again18:33
miasame error18:33
Habbiecan you run md5sum on it?18:33
miahow can I do it18:33
Habbiemd5sum tumblr_ptrv7pAAQW1wm31l0o1_540.gif18:33
mia9a085d9c509d759568aa5da64902985f  tumblr_f4569f406b974753697cb57852b89c6b_42ce8512_540.gif18:33
Habbiei see that too18:33
Habbieso we really have the same file18:33
Habbiewhat version of 'file' are you using? i.e. what ubuntu?18:33
miahows that possible18:33
mia18.0418:34
miaand the other machine is 16.0418:34
echelonthere's ways to embed other files into image files18:34
tomreyn!pastebin | echelon18:34
ubottuechelon: 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
echelontomreyn: it was just 3 lines18:34
tomreynright, too many18:35
miasorry -18:35
miajust wondering what's going on here18:35
Habbiemia, so what software is not processing it?18:35
miaHabbie, it's something I made18:35
tomreynechelon: 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 </tmp/aptlog; rm /tmp/aptlog18:35
miaI was auto downloading certain gif files and converting them to video18:36
miait's sort of like a bot thingy18:36
miaI realized it errored on this file18:36
miaI check the file type normally - but this one (even though it looks like a gif) does not seem to be a gif18:36
miaBut you say, it says fig on your end18:36
miaand I don't understand18:36
miabecause I tested the same "file" commadn on multiple machines, I get the same result18:36
miaevery other gif works fine, not this one18:36
miathis is not something I need to *fix* - I'm just trying to understand what's going on here18:37
Habbieso what piece of software is failing to process the gif? some library perhaps?18:37
miaHabbie, nothing is failing18:37
miathere is justa check in my .sh file for filetype18:37
Habbieubuntu 18.04 file also says 'boot sector' here18:37
miaHabbie, yeah exactly18:37
miais this normal?18:37
Habbiedebian 10 file says gif18:37
Habbiewell, file just guesses based on a bunch of things18:37
miamime type also says application here18:38
Habbiehow do you get the mime type?18:38
miaso I want to know* how to deal with this18:38
Habbiewell18:38
miafile mygif.gif --mime-type18:38
Habbiewhy is that check in your .sh?18:38
miabecause my file converts gifs to videos18:38
mianot pngs or jpegs or mp4's18:38
Habbiewhat happens if you do give it a png or jpeg or mp4?18:39
miait just runs an ffmpeg conversion for downloaded gifs only18:39
mianothing else18:39
miait skips the conversion if its not a gif Habbie18:39
Habbiemia, i mean, what if you just removed that check?18:40
miait would convert everything18:40
miawhich is what I don't want18:40
miaI just want proper gif files to be converted18:40
miathis one looks like a gif, but for me, does not ehave like one18:41
miaonly this gif18:41
miabut if this becomes a generalized problem for more files18:41
miathen I need a way to deal with it18:41
Habbiemia, please try file -k18:41
miaThat's why I'm trying to understand the problem18:41
Habbiemia, read the output carefully18:41
miaHabbie, testgif.gif: DOS/MBR boot sector; again18:42
mia(same as above)18:42
miadon2t want to paste it multi lines :D18:42
Habbieno18:42
Habbieplease read it all18:42
Habbiecarefully18:42
miaboot sector 012 is GIF image18:42
miabut why is it like this18:43
miajoker.gif: GIF image data, version 89a, 540 x 29018:43
Habbiewith -k, it gives you -all- guesses18:43
miathis is the output of -another gif file-18:43
Habbiethat one gif file happens to also match the file matches for an MBR sector18:43
Habbieand that matcher wins, in your older version, but not in my newer version18:43
Habbie-k tells file to give you -all- types that it guesses, not just the best matching type18:43
Habbieit's the workaround i have for you18:43
miahm, is there any better way to check for a file type18:44
Habbiethe best way is to use a program designed to handle that file type18:44
Habbieand deal with failure18:44
miaif [[ $(file "${INFILE}") != *GIF* ]]; then18:45
miathis was my check line18:45
Habbieif you add -k to that18:45
Habbieyou should be good18:45
Habbieor at least, as good as you're going to be18:45
miaif [[ $(file -k "${INFILE}") != *GIF* ]]; then18:45
mia^ this?18:45
Habbieyes18:45
miathanks Habbie !18:47
Habbienp!18:47
sarnoldmia: you may enjoy https://www.youtube.com/watch?v=hdCs6bPM4is or https://news.ycombinator.com/item?id=1458637118:47
Habbiehah yes18:47
Habbiealthough i -suspect- that's not what's happening here18:48
lopetomreyn, 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
lopeI checked what intel related packages were installed18:48
lopeRight now I have xserver-xorg-video-intel18:49
lopeBut on the live USB I had xserver-xorg-video-intel-hwe-18.0418:49
lopeWhat is hwe?18:49
tomreyn!hwe18:49
ubottuThe Ubuntu LTS enablement stacks provide newer kernel and X support for existing LTS releases, see https://wiki.ubuntu.com/Kernel/LTSEnablementStack18:49
lopeI seeee18:49
lopehow can I upgrade to it?18:50
tomreynyou could click on this link which is there for a reason18:50
lopeokay sorry for being dumb. doing the install now18:51
lopewas busy reading18:51
tomreyni ran glxinfo -B on an intel laptop i have here in the meantime. mine: http://termbin.com/2bxv  yours (from earlier): https://termbin.com/ocqr18:52
tomreynmaybe posting  dpkg -l \*mesa\*  would hint on what's wrong on your system.18:54
jayjoanyone 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 alternative19:06
tomreyn!discuss | jayjo19:10
ubottujayjo: 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!19:10
=== pcworld is now known as brati
=== brati is now known as pcworld
=== EriC^ is now known as EriC^^
cc89Hi guys19:46
uRockhi19:47
* uRock walks away for a smoke break.19:49
n-iCehi19:50
cc89I 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 HWInfo6419:50
cc89 software and it works perfectly without interruptions19:50
sarnoldcc89: 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 data19:53
sarnoldcc89: poke around in /sys or /proc you may find fanspeeds available through a different mechanism19:53
cc89sarnold the freeze appears also when I open the folder that contains fan1_input fan2_input ... in the path /sys/class/hwmon/hwmon1/19:55
sarnoldcc89: dang :(19:56
cc89to better understand I would like to post the output of the `strace sensors` command19:57
cc89`strace sensors > out.txt` print me the output of sensors and not that of strace20:00
sarnoldcc89: strace -o out.txt sensors20:00
cc89https://pastebin.com/K2LARRan20:02
=== pcworld is now known as broti
=== broti is now known as pcworld
cc89sarnold this with execution time https://pastebin.com/raw/j7rRbxSW20:05
sarnoldcc89: wow those close() calls take forever20:07
cc89sarnold I'm reading the line that contains /sys/class/hwmon/hwmon1 ...20:08
cc89sarnold the strange thing is that my laptop only has 1 fan while sensors shows me: Processor Fan, fan2, fan320:11
sarnoldcc89: are there any interesting values for the others?20:11
cc89sarnold interesting values? I not understand20:12
sarnoldcc89: do you get RPM values for all three sensors?20:12
cc89sarnold 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 command20:13
sarnoldcc89: heh, yeah, you're probably right20:14
cc89sarnold 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
sarnoldyes20:18
sarnoldcc89: there's also probably a /proc/i8k20:18
sarnoldcc89: they've got code to measure timing in this thing: https://github.com/torvalds/linux/blob/master/drivers/hwmon/dell-smm-hwmon.c#L14320:18
sarnoldcc89: and some timing information as comments: https://github.com/torvalds/linux/blob/master/drivers/hwmon/dell-smm-hwmon.c#L53620:19
cc89sarnold so the problem is to look for in the implementation of the hwmon module in the linux 5.0 kernel20:19
sarnoldcc89: I'm guessing this thing is known to be slow-as-can-be for a while..20:19
cc89sarnold should I look for the i8k module or not?20:23
sarnoldcc89: I think the i8k name is just an alias for this module20:24
jrgis there some sort of ubuntu 19.04 / gnome based domain joining plugin or extension or something?20:25
sarnoldcc89: you could try emailing these folks to see if they know a better way http://paste.ubuntu.com/p/z6zfPKKxZ7/20:25
jrgand is there an option to make the window titlebars smaller?20:25
jrgthey're so fat heh20:25
cc89the problem was already present with ubuntu 18.10, I thought that with the 5.0 kernel they would have solved it20:26
cc89sarnold but should I send only the strace output? are these people not in IRC chat to talk in real time?20:27
iffraffHi, 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 file20:35
iffraffdoes anyone know about this?20:35
tdsiffraff: what do you mean by "swapfile partition"?20:38
tdsyou should be able to swapoff the old partition and then delete or reformat it or whatever as needed20:38
iffraffHmm, ok so swapoff how do I dentify the partition? or should I do swapoff --all then start over with the file?20:40
tdsyou should just be able to swapoff /dev/sdxy iirc20:41
iffraffah so specify the drive excellent.  thanks I'll give that a try20:42
EriC^^iffraff: swapon -s    shows the status of swaps20:44
iffraffcool, so it's takin an aweful long time, is that to be expected?20:45
tdsif you've got stuff in swap, yes20:45
iffraffit's 1 gig and maxed.  I guess it's all relative, is that lot?20:46
tomreyncc89: most of these folks whom many would like to talk to usually prefer bug trackers and mailing lists.20:46
tomreyn(at least as a first contact)20:47
cc89tomreyn I send them an email as indicated to sarnold20:47
tomreyncc89: it'd be interesting to see whether the current sensors-detect script suggests a different approach for accessing these values.20:48
tomreyn(you migth want to test this beforehand)20:49
cc89tomreyn what should I do?20:49
tomreyncc89: download and run https://github.com/lm-sensors/lm-sensors/raw/master/prog/detect/sensors-detect20:50
cc89tomreyn I have installed sensors package than I can run `sudo sensors-detect` . Right?20:52
tomreyncc89: 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:53
cc89tomreyn does it overwrite the current sensor configuration file? should I start with or without sudo?20:56
Xat`hello guys, on xenial I'm applying an ansible role . the role is changing by mistake ownership of / and it causes some trouble21:01
Xat`when restarting21:01
Xat`I'm not able to reproduce on another xenial server21:02
Xat`by able to reproduce on the same backuped server21:03
Xat`but21:03
cc89tomreyn ?21:05
=== chalcedny is now known as chalcedony
unknown_hadhi guys I am trying install chrome older version using apt-get but I am not sure how exactly I Can do it.21:20
unknown_hadthe only solution I am getting is this one: https://askubuntu.com/questions/510056/how-to-install-google-chrome21:21
unknown_hadthe issue is it is installing the latest stable version though I have to install the old stable version.21:21
tomreyncc89: i don't think it changes any configurations unless you explicitly ask it to.21:24
unknown_hadindeed it don't21:25
cc89tomreyn sensors config file where is located? that I do a backup21:26
DOSfanGood afternoon everyone :)21:27
cc89tomreyn I have only /etc/sensors3.conf21:28
DOSfanbrb .. taking a break .. alrady ;P ... I have some SSDs I have to try to install later on today .. but sigh .. pets come first.21:28
tomreyncc89: so it'll be that.21:30
cc89tomreyn Some south bridges, CPUs or memory controllers contain embedded sensors. Y or N?21:31
tomreyncc89: you can either just hit enter to go with the default answer or run it with --batch21:32
cc89tomreyn I insert Y21:33
cc89tomreyn https://pastebin.com/raw/5wM9CNkN21:36
tomreyncc89: so it only detected the coretemp module, which is probably already loaded? lsmod | grep coretemp21:38
cc89tomreyn yes In the previous ubuntu version 18.10 I had already started sensors-detect than I have upgrade to 19.0421:40
tomreyncc89: so review "sensors", the output is probably still the same21:41
cc89tomreyn I should post the `sensors` output?21:41
tomreyncc89: not unless you have questions about it.21:42
cc89tomreyn do you remember what the problem is?21:43
tomreyncc89: sensor readings are returned very slowly, the system stalls while querying them.21:43
tomreyncc89: thats what you wrote earlier anyways.21:44
cc89tomreyn Exactly, the problem occurs even when I open the path /sys/class/hwmon/hwmon1 than is a problem of dell-smm-hwmon kernel module21:45
tomreynok21:46
jrghm. this A10 is rebooting when it tries to go to sleep21:49
cc89tomreyn If I run ` ls /sys/class/hwmon/hwmon1` the freeze not occurs. why?21:53
tomreyncc89: i would not know. check with the contacts sarn0ld  provided you with21:54
cc89tomreyn I have yet sended an email21:55
cc89tomreyn but if I run `cat /sys/class//hwmon/hwmon1/fan1_input` occurs :(21:55
tomreynok, but i can't help you more with this.21:56
cc89tomreyn ok, thanks anyway21:56
* jrg scratches his head21:56
jrgi wonder why this thing is rebooting when it goes to sleep21:56
sarnoldcc89: 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 output21:59
cc89sarnold I have yet provided to sent them a email22:00
cc89sarnold 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 that22:02
sarnoldcc89:  note that these developers aren't affilliated with ubuntu; they maintain the kernel module that I believe is giving you the slow reads22:03
excelsiorawhen in recovery-mode, how do you adjust screen brightness?22:23
excelsiora/sys/class/backlight doesn't have anything in it.22:24
EriC^^excelsiora: maybe xbacklight can help?22:38
EriC^^excelsiora: nevermind22:38
excelsiorathx for trying. :) I'm guessing the passing of "recovery" or "nomodeset" as an argument to linux cmd is what's killing it...22:43
lopemy onboard intel graphics is running like absolute crap in my ubuntu 18.04 installation22:43
lopeWhen I boot a ubuntu live USB it's perfect22:44
lopeI'm running the same kernel version22:44
lopeI've compared lsmod and dpkg -l etc and can't spot what the problem is22:44
lopeI've also compared the modprobe.d directories22:44
excelsiorawhat's vt_handoff?22:44
sarnoldlope: you swapped in the hwe kernel and X?22:44
lopesarnold, yes22:45
sarnold:(22:45
jeremy31excelsiora: where the GUI will show up22:45
lopenow that I've swapped to the hwe kernel, my installed 18.04 is even newer than the USB kernel, by a few revisions22:45
lopeI'll reinstall if I have to22:45
lopebut I thought it should be relatively simple to fix my existing install22:45
excelsiorajeremy31: hmm... recovery cmd doesn't have that one...22:45
tomreyn<tomreyn> 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/ocqr22:46
tomreyn<tomreyn> maybe posting  dpkg -l \*mesa\*  would hint on what's wrong on your system.22:46
tomreyn^ lope22:46
sarnoldlope: hm. and I vaguely recall seeing something about virtualbox -- do you have any of those packages still installed?22:46
lopesarnold,22:46
lopeyes I've got a bunch of virtualbox packages22:46
lopeBut I hate virtualbox so I can remove them22:47
lopeI'm a KVM guy22:47
sarnoldlope: try purging all those22:48
loperebooting22:48
lopesarnold, it didn't work22:50
lopeStill running like crap22:50
lopeit says my openGL render string is Vendor: VMware, Inc. (0xffffffff)22:54
lopewhat vmware driver could I possibly be running22:54
Bashing-omlope: What modules are installed ' dpkg -l | grep -i nvidia ' ?22:55
sarnoldBashing-om: vmware, not nvidia :)22:55
lopehmm I've still got libnvidia-compute-39022:56
sarnoldlope: grep -i vmware /var/log/Xorg.*22:56
lopeand bbswitch-dkms22:56
lopethought I removed those22:56
sarnoldmaybe you can spot the path to the driver in use that way?22:56
jrgilmanlope i had this problem too when i first installed 18.0422:56
jrgilmanassuming it's the same22:56
jrgilmanis this a laptop?22:56
lopejrgilman, I've used the same ubuntu installation across laptop and desktop22:57
lopeIt's been in 2 diff laptops and a desktop22:57
jrgilmansame problem?22:57
lopewell, it lags to absolute shit22:57
jrgilmanyeah22:57
jrgilmanthe desktop22:57
lopebut when I boot a live USB it's perfect22:57
jrgilmanright?22:57
lopeyes22:57
jrgilmanyep22:58
lopemoving resizing etc22:58
jrgilmanin my laptop it was due to uh22:58
jrgilmanoptimus graphics22:58
jrgilmani had a dual nvidia/integrated chip22:58
lopeand I can't get dual monitors working22:58
jrgilmanand it was freaking out22:58
lopeyes, I've got a laptop with optimus22:58
jrgilmanyes22:58
jrgilmanthat's it22:58
lopeoh, maybe the bbswitch has been buggering up my desktop intel graphics22:58
jrgilmanyes22:58
lopea bug probably22:58
jrgilmani had to use22:58
lopewow, now I'm excited22:58
jrgilmana different one i can't remember the name22:58
lopegonna reboot.22:58
lopebumblebee?22:58
jrgilmani think it was called nvidia-optimus?22:59
jrgilmani had to restart each time i switched22:59
jrgilmanis all i remember22:59
jrgilmando you have a lenovo p52s per chance?22:59
jrgilmanit took me days to figure this out22:59
jrgilmanbumblebee wasn't working for some reason if i remember vaguely23:00
lopeIt didn't work23:02
lopestill lagging like crap23:02
excelsiorawhere's the log from the prior boot?23:02
jrgilmanyeah as i said the solution took me days and bumblebee didn't work23:03
jrgilmani had to use something else and i can't remember what it was23:03
lopelol I've still got libnvidia-compute-390:i38623:03
jrgilmanit might've been nvidia-prime23:03
lopebut surely that can't be affecting me. This is a 64 bit system23:03
lopethis is my desktop now. I had a nvidia graphics card23:04
lopeBut it died today. So trying to use onboard now23:04
jrgilmanoh23:04
lopeexcelsiora, do you mean syslog?23:04
excelsiora/var/log/syslog looks like it has the log...23:05
tomreynexcelsiora: journalctl -b -1   if you are on 18.04 and newer23:05
lopeexcelsiora, tomreyn, sarnold: http://codepad.org/dae723sF23:06
lopeThat's the syslog from the Live USB which works perfectly23:06
tomreynso?23:07
sarnoldI assume the one from the failing system is coming shortly :)23:07
lopesarnold, grep -i vmware /var/log/Xorg.* gives nothing23:07
tomreynthis one shows mtrr issues23:08
lopetomreyn, what's mtrr?23:08
tomreynmtrr_cleanup: can not find optimal value23:08
tomreynplease specify mtrr_gran_size/mtrr_chunk_size23:08
tomreynif 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.html23:09
tomreynhttps://en.wikipedia.org/wiki/Memory_type_range_register23:09
jrgilmanhey tomreyn, btw I ran testdisk on that drive, and it found my partitions23:10
jrgilmanI'm looking through it now and can see all my files23:10
jrgilmanin the file preview23:10
tomreynjrgilman: very nice. if it can determine the "partition" (really LVM2 LV) boundaries then you could recreate those23:11
jrgilmanit found them as ext4 though23:12
jrgilmanvia sudo ./testdisk /dev/mapper/encrypted23:12
tomreynthose file systems will be on top of the (no longer existing) LVs23:12
jrgilmanah23:13
jrgilmanokay so if testdisk found this, what should my next steps be? I want to avoid doing something that fucks it more up23:13
jrgilmanwrite both of them?23:13
tomreyndd the disk to a clean storage, work on the copy. repeat until you get the boundaries right.23:14
jrgilmanwhat do you mean by "boundaries"23:15
tomreynyou 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
lopedo I really have to reinstall?23:16
lopeseems so lame23:16
lopeI've got a working system23:16
lopejust a driver issue23:16
lopeDo you think the lagging is caused by the MTRR problems?23:17
tomreynjrgilman: 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
tomreynjrgilman: 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:18
excelsioraan older kernel was workinh, but it's gone now...23:20
tomreynthis 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:20
excelsiorais there a software way to dim the screen as a stopgap?23:27
lopegood night guys23:27
lopelooks like I'll have to reinstall in the morning :(23:27
tomreynjrgilman: 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
jrgilmantomreyn: maybe confirming my understanding at the moment of what's going on would be good23:28
tomreyn(but i'd still recommend you work on a clone of the drive)23:28
jrgilmanSo I have this hard drive, LUKS encrypts the actual file systems23:28
jrgilmanso I have to decrypt that using the cryptsetup program. Then inside of that I have LVM which has ext4 on top of it?23:29
sarnoldlope: good night and good luck!23:30
jrgilmanso at the moment, it seems my whole issue is that my LVM is corrupted?23:30
tomreynyou 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
jrgilmanOkay, follow-up question. Why is LVM required for LUKS?23:31
tomreynit isn't23:31
jrgilmanHmm, I thought it auto checks the LVM mode when you try to do an install... okay23:32
tomreynit's useful if you want to have multiple file systems on a single crypto container23:32
jrgilmaninstall with encryption that is23:32
jrgilmanokay23:32
tomreynyes, ubiquity, the desktop installer, creates things this way. and it makes sense that it does.23:33
jrgilmanYeah I'm not questioning it, I just want to try to understand what's happening rather than just "do the thing"23:33
tomreynif 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
jrgilmanahh ok23:34
jrgilmanso at the moment, when I boot up, and I type my password in23:35
jrgilmanit's trying to do cryptsetup, and then after that it tries to find the ubuntu-vg volume group23:35
jrgilmanbut because LVM is corrupted, it can't and thus drops into initramfs?23:35
tomreynexactly23:35
jrgilmansorry I typed on multiple lines there again23:36
jrgilmanokay23:36
jrgilmanooc23:37
jrgilmanooc, 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
sarnoldit might take some massaging to make it boot but mounting it ought to be possible23:38
tomreynjrgilman: oh there is actually "pvck" you can use to try and recover the lvm data, i forgot about this.23:39
jrgilmanokay was just curious23:39
tomreyn...it's like fsck but for LVM physical volumes23:39
jrgilmanjsut to confirm my understanding, in LVM there's three concepts, PV, LV and VG23:39
tomreynphysical volums are storage space which can be joined (e.g. from multipls disks) into VGs. and VGs can contain multiple LVs.23:40
jrgilmanPV 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:40
jrgilmanoh23:41
jrgilmanso VG is the top level set23:41
jrgilmanVG 1:M LV 1:1 PV?23:41
tomreynwell, you cant work with your VGs until you readied your PVs.23:41
jrgilmanokay gotchya23:42
tomreynin your case there is a single PV which is /dev/mapper/sda3_crypt23:42
tomreynthe "pvs" or "pvdisplay" commands would confirm this.23:42
tomreynnow, if the LVM data wasn't corrupt, you could run vgscan to find the ubuntu-vg volume group23:43
=== viv`d is now known as vivid
tomreyn...and then "lvscan ubuntu-vg" to find the 3(?) LVs in there.23:44
jrgilmanthe LVs are the ext4?23:44
jrgilmanwhat testdisk detected?23:44
tomreynthe ext4 file systems are on top of the LVs23:45
tomreynlike a file system is on top of a partition23:45
jrgilmanso a logical volume can be partitioned with for instance NTFS, HPFS, ext4 whatever23:46
tomreynin LVMs inner logic, PVs are like real disks, VGs are like RAID and LVs are like partitions23:46
jrgilmanokay23:46
tomreynLVM 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 then23:47
the_actorSo 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:48
jrgilmanokaygonna dd this first before messing around any further23:49
tomreynyou could just dd the encrypted /dev/sda1 or the decrypted /dev/mapper/sda1_crypt23:50
jrgilmanI'm doing the decrypted one since testdisk definitely was able to find those files23:51
tomreyni only brought up sda1 in case you wanted to ensure your data remains protected.23:52
jrgilmanno, part of me actually wants to remove the LUKS encryption23:52
jrgilmanbut that's a problem for later23:52
jrgilmananything that is sensitive is already encrypted in my home folder23:53
tomreynbtw. pvck can run in a non-writing mode with --test23:54
jrgilmanhmm23:55
tomreyni'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 LVs23:55
jrgilmanalright23:55
jrgilmanI get so afraid when i use dd23:56
jrgilmanI check the options like 10 times over23:57
tomreynthat's healthy23:57
tomreynjust like having backups ;)23:57
jrgilman:(23:57
tomreyni'm just making sure you don't forget this is the main issue here, the encryption layer isn't23:58
jrgilmanoh yeah23:58
jrgilmanI already know that I played myself23:59
jrgilmanalso playing around with fsck and breaking crap wihtout knowing what i was doing didn't help23:59
jrgilmanwithout*23:59
tomreynfsck can be more destructive than useful, yes23:59

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!