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

deadmundI followed a guide and made a .deb package.  How can I submit it to be included in the Ubuntu repositories?00:11
deadmundI think it's a hot mess!  But I tested it and it does appear to work right now.00:11
ekajrunning ubuntu 18.04, trying the 2nd answer located here, python script in /bin/myscript.py isn't running. does it also need to be executable even if i call "python /bin/myscript.py" ? https://askubuntu.com/questions/814/how-to-run-scripts-on-start-up00:14
sarnoldekaj: what errors do you get?00:15
pragmaticenigmadeadmund: You may want to start with searching and finding documentation that readily available: https://wiki.ubuntu.com/Upstream00:15
ekajwell i'm used to centos and there being a /var/log/cron log, but i don't see that file. also, i don't see the output in ps00:16
ekajso no errors that i've found yet sarnold00:16
deadmundpragmaticenigma: thanks00:16
sarnoldekaj: aha, cron usually mails errors to people, look in /var/spool/mail/root or similar00:16
ekajhold on00:17
pragmaticenigmaekaj: which python version is your script targeting? Also, /bin is not where you should be placing your own stuff00:17
ekajin syslog i do see "CRON[413]: (root) CMD (python /bin/myscript.py &)"00:17
ekaj2.700:17
ekajit's currently in bin because i was following a different guide that didn't work00:17
ekajit's usually in /home/user00:17
ekajalso nothing in /var/spool/mail00:18
ekaji went ahead and moved it back to /home and updated crontab00:18
sarnoldekaj: try taking that & off00:18
pragmaticenigmaekaj: You should be able to run a python script from your home folder. If I'm planning on something being more perm, I use /opt00:19
ekajrebooting, 1s00:19
pragmaticenigmaekaj: Yes, sarnold is right... don't launch your script with "&" at the end until you have confirmed it is actually working, and for sure do not use & in a cron tass00:20
pragmaticenigma*task00:20
mattflydoes anyone know how can i get the ip of a android phone connected thru kde connect from my computer?00:20
ekajno change removing the &00:21
pragmaticenigmamattfly: Is the device connected via USB?00:21
mattflywifi00:21
pragmaticenigmaekaj: does the script have any print statements?00:21
Ryviusekaj: I think the systemd solution is more modern, maybe give it a try00:21
ekajpragmaticenigma yes00:21
ekajbut it prints to a file as well00:22
pragmaticenigmaRyvius: that's a nice suggestions, but we have to get the script executing first00:22
pragmaticenigmaekaj: Is the script a direct copy from the CentOS box?00:22
RyviusIt executes if he runs it manually, yes?00:22
pragmaticenigmaRyvius: no, it's not00:22
ekajpragmaticenigma no, no centos boxes were used. it was made on the box i'm trying to get it to run on boot00:23
ekajand yes it runs manually00:23
RyviusSo he's trying to autorun something that doesn't work at all?00:23
pragmaticenigmaekaj: is it possible to post the script to paste.ubuntu.com?00:23
ekajthe script runs and works fine00:23
pragmaticenigmaekaj: or explain what the script does?00:23
sarnoldI didn't love how *one* line on crontab turned into multiple systemd files00:23
ekajessentially records video when a door is opened, uploads the script via scp when door closes, repeats00:23
ekajplus a bunch of error checking00:24
ekajso i noticed it's breaking when it tries to establish an ssh connection00:24
sarnoldekaj: try adding something like writing the date to a file in /var/log/sarnold in the first or second line of the script -- maybe it's executing, but just not working when run through cron00:25
ekajit is executing, it's failing when it tries to establish an ssh connection00:25
sarnoldaha there we go :)00:25
pragmaticenigmaekaj: what are you using to establish the SSH connection? A library or system call?00:25
ekajbefore i do the try/catch for my ssh connections i have an "Attempting ssh connection.." line, but nothing is written after that00:26
ekajparamiko00:26
ekajworst case scenario i can just autologin the user i think? But I'd prefer not to00:27
pragmaticenigmaekaj: It might not be so much a difference in platforms as much as the progression of certain elements moving into userspace and attempts to ensure the system is secured when no user is active00:28
pragmaticenigmaekaj: I'm not familiar with paramiko... I typically use subprocess to make an outgoing connection00:29
ekaji had assumed it was something userspace related00:30
=== coffeeguy is now known as covfefe-guy
=== covfefe-guy is now known as coffeeguy
ekajis there a way to just auto-login the user then?00:30
pragmaticenigmaekaj: You can auto login a user... should be in the settings control panel, Users00:31
ekajno gui :p00:31
pragmaticenigmaoh00:31
pragmaticenigmawell... that's a bit trickier00:31
ekajintention is for this device (when it works) to just sit somewhere forever and do this00:31
ekajso didn't bother installing one00:31
pragmaticenigmaekaj: I can understand that philosophy... the intention is for it to run as a system service though?00:33
pragmaticenigmaor "like" a system service00:33
ekaji don't know, i was just going to have the user run the process00:33
ekajdoesn't matter which user00:33
ekajall of the paths in the file are hardcoded00:33
sarnoldekaj: another possibility is to use incron or systemd units: https://www.freedesktop.org/software/systemd/man/systemd.path.html00:34
ekaji had just stumbled on this as well https://selivan.github.io/2017/12/27/console-autologin-systemd-ubuntu.html00:34
sarnoldekaj: that way you could get the files a lot faster than waiting a full minute, *and* it wouldn't run the script every minute, 1440 times a day, just when needed00:35
pragmaticenigmaekaj: in truth, if you could get that running, I suspect you could get your python script going00:35
ekajit doesn't run every minute, it runs a while true: loop and constantly runs00:35
sarnoldeek. that might be way worse, depending on what you're doing :)00:36
ekajit has to catch a door as soon as it opens, so if i had it on a timer i could potentially miss people00:36
ekaja reed switch is tied to some of the gpio pins on the pi00:37
ekajpragmaticenigma were you referring to the autologin?00:37
pragmaticenigmaywa00:38
pragmaticenigmayes00:38
ekajshoulda just bought a damn camera lol00:38
sarnold:)00:38
ekajit's been fun though, learned quite a bit00:39
pragmaticenigmaekaj: or look into the project "motion" which does a lot of that stuff00:39
ekajit doesn't need motion detection though.. i woulda used that one if it did00:39
pragmaticenigmai use "motion" for my cameras to detect and record when it sense motion. I believe a camera can be configured to trigger with switches as well00:40
ekajthe reason it's tied to a reed switch is that the only time people use this particular door is when something is being stolen, or an emergency00:40
ekajbut traffic passes by it on a regular basis00:40
pragmaticenigmakind of sounds like if it was working before... why change anything with the OS?00:42
ekaji had to manually run it before00:44
ekajalso, this link worked, which is odd because i didn't set a password https://selivan.github.io/2017/12/27/console-autologin-systemd-ubuntu.html00:44
ekajwell script runs but now there's a new error yay.00:48
sarnoldyay :D00:50
ekajinteresting, receiving two errors, seems to maybe be some type of race condition00:53
ekajbut anyways, my ubuntu specific part is solved, thanks all for the help00:54
ekajoh fixed it.. either the network service hasn't started yet is one cause, other cause is because i didnt' remove the script in root's crontab, so root made the file in /home/user/logfile.log, so it said permission denied and failed00:55
ekajwhen user tried to run00:56
elPumaI recently installed the email client seamonkey and noticed that the icon does not remain in the dock after I close out of the app. I right-clicked the icon in the dock while seamonkey was running but there was no option to "add to favorites". Any ideas?00:59
elPumaFor context, this is SeaMonkey 2.49.4 on Ubuntu 19.04 x86_6401:02
elPumaThe documentation is bit outdated. It mentions GNOME panel.01:13
uRock"gnome panel" it's been a while since I heard that one01:15
uRockelPuma, You're trying to add the launcher to the bar?01:16
elPuma, uRock yes exactly01:17
uRockelPuma,  This might give you a new gray hair or two. https://linuxconfig.org/how-to-create-desktop-shortcut-launcher-on-ubuntu-18-04-bionic-beaver-linux01:17
elPuma, uRock word thanks.01:19
uRockelPuma, anytime01:20
elPumadoes the foo.desktop file have to be saved in `~/Desktop`?01:23
elPumawhoops, ignore backticks. I ask because I try to remove or hide superfluous default directories so they don't clutter my home. But01:25
uRockelPuma, I'm looking. I am pretty sure they go somewhere else01:28
elPumathis seems necessary.01:28
=== zbenjamin_ is now known as zbenjamin
uRockelPuma, should be able to drop them in /usr/share/applications/01:32
uRockThat's where the rest of them are.01:32
elPumaThe .desktop files for the launcher icons are typically saved in /usr/share/applications/ ?01:34
elPumaUpdate: Partial success. The icon is in the applications menu. So I can access it with the super button now. Still can't add it to the dock, but I'm good with this. I just wanted an easy option to launch the app in case I forgot the command I created for in .bash_aliases01:39
Bashing-omelPuma: On xfce4 here - and yes /usr/share/applications/ :)01:39
elPumaThe logo is pretty ugly anyways lol01:40
elPumaWait nevermind. I can add to favorites from the super/applications menu. Everything is right again. It's weird how so much of what I learn about unix related tools stems from a desire to change some minor cosmetic thing, or to save a few keystrokes in bash01:46
=== Vilegent is now known as kk4ewt
ekajhunter02:03
slyrobottomreyn any development for https://bugs.launchpad.net/bugs/1833829 ?02:09
ubottuLaunchpad bug 1833829 in xorg-server (Ubuntu) "High memory usage by Xorg with Kubuntu 18.04, plasma-desktop, nvidia 390" [Undecided,New]02:09
=== [b0b] is now known as b0b
maxcell_I'm trying to activate the BFQ scheduler via grub boot options, for kernel 4.21>, but it isn't working on ubuntu.02:44
sarnoldmaxcell_: do you get any error messages?02:46
maxcell_sarnold, no it boots fine but when i type the command to show what's going on i only have MQ-Deadline and None activated.02:47
maxcell_I need bfq-mq or bfq for my rotate disk02:47
OerHekshttps://wiki.ubuntu.com/Kernel/Reference/IOSchedulers02:47
OerHeksFor Ubuntu 19.10 (Linux 4.20) onwards, multiqueue is enabled by default providing the bfq, kyber, mq-deadline and none I/O schedulers.02:47
maxcell_i don't have bfq here, only mq-deadline and none OerHeks02:48
maxcell_let me show you.02:48
sarnoldmaxcell_: try "modprobe bfq" then try setting your scheduler again02:48
maxcell_sarnold, OerHeks https://paste.ubuntu.com/p/7PpZw6dPzt/02:48
maxcell_sarnold, ok02:48
maxcell_yay worked02:49
sarnoldwoot02:49
maxcell_how i can make bfq goes up on the boot?02:49
maxcell_thank you very much sarnold02:49
maxcell_hehe02:50
sarnoldmaxcell_: sticking a file in /etc/modules-load.d/ with the module name will be enough to get it loaded, but I'm not sure if there's a similarly polite way to change it for all your devices automatically or not02:50
maxcell_sarnold, that is https://community.chakralinux.org/t/how-to-enable-the-bfq-i-o-scheduler-on-kernel-4-12/6418 an udev rule on this website to do that02:51
sarnoldmaxcell_: oh cool!02:52
maxcell_i've used many times it works02:52
maxcell_you only need to make the code right by changing the deadline to mq-deadline and cfq to bfq02:53
maxcell_also the first bfq is actually mq-deadline02:53
maxcell_gonna reboot to test02:55
maxcell_sarnold, https://paste.ubuntu.com/p/Y6zSTkGjj6/02:58
sarnoldhuzzah!02:58
maxcell_o/02:58
sarnoldthanks maxcell_ :)02:58
maxcell_i thank you haha02:58
maxcell_there is any way to activate top hot corner on ubuntu?03:10
sarnoldthat's way outside my experience, but there's some extensions on https://extensions.gnome.org/# that mention hot corners and hot dogs03:11
sarnoldtime to go grab some dinner, have fun :)03:12
maxcell_ok ok03:12
maxcell_have a good one03:12
OerHeksgnome-tweaks03:12
OerHekshttps://www.fosslinux.com/4184/how-to-enable-hot-corners-in-ubuntu-18-04.htm03:12
maxcell_OerHeks, i'm on this website lol, but can we install gnome-extensions from outside on this new gnome?03:13
maxcell_i thought it was blocked (only way by downloading via apt-get or so)03:13
maxcell_OerHeks, i'm going to try03:14
OerHeks‘custom hot corners’ in softwarecenter03:14
OerHeksand then enable / tweak it with gnome-tweaks03:15
maxcell_nice03:15
maxcell_worked03:16
maxcell_thanks dude03:16
maxcell_i love how friendly ubuntu are03:17
maxcell_and things just works the way you want to03:17
mallu0987On ubuntu18.04 do scripts in /etc/init.d will get run after a reboot?03:36
metacontentyes03:37
mallu0987metacontent where in the boot sequence scripts in init.d get triggered?03:38
metacontentmallu0987: I'm not sure, but check out `man systemd` for more information03:44
mallu0987ok thanks03:44
aneonI am trying to run a program thru crontab with - @reboot /bin/sleep 300 && /usr/bin/evebox -v -D /tmp --datastore sqlite --input /var/log/suricata/eve.json &>/dev/null but it didn't work, is the crontab syntax correct?04:09
aneonlet me reboot and check modified crontab04:34
aneonuhh it didn't work04:58
Gallomimiahey. is there a way i can make firefox NOT quit after the last window closes? very annoying. then it always opens the last tab i already closed when i open something else.... (ubuntu 19.04)04:58
aneoncreated a startup script from KDE and that failed too04:58
aneonscript is working from console04:58
aneonlooks like I need to create a service file and execute the script from there05:01
Gallomimiarunning a script from crontab didn't work?05:03
Gallomimialike... use a text editor, like vi05:03
HaMsTeRsthanks, I finally managed to got it working05:06
HaMsTeRsit's because I entered the wrong user name05:07
HaMsTeRsthanks05:07
aneonGallomimia: yeah, it didn't05:10
CountryfiedLinuxhowdy05:12
CountryfiedLinuxIs System Profile reliable for benchmark tests when testing different system loads?05:13
sid21gGuys I have just set up Ubuntu 18.04 dual boot alongside Windows10, everything was smooth when i was loging in Ubuntu after the last time I logged in Windows now when i try Ubuntu I am unable to reach the login screen05:38
sid21gThis is the error loghttps://ibb.co/Bg8YFwK05:38
CountryfiedLinuxWhy do people still recommend dual-booting? It's always safer to use a separate drive.05:41
Barabachawhenever I ssh into my Ubuntu server, the console prints "Computer reboot required", can I check why does it need to reboot?05:42
sid21gCountryfiedLinux: Maybe coz they are scared of fucking up with linux and want smething to work with in times of crisis05:42
sid21g*log https://ibb.co/Bg8YFwK05:43
CountryfiedLinuxI've been dual-burned in the past and would never recommend dual-booting to anyone.05:43
aneonwell now it works via systemd05:45
sid21g@aneon how does it change the boot process? Does it make dual boot difficult to run?05:50
=== Roy_Mustang is now known as A_D
aneonlately, the dual boot stuff doesn't work05:51
aneonyou need to delete secure boot keys and set it to "other os" from bios05:51
aneonsecure boot is garbage05:51
gogeta@aneon not relly my pc you just set it from hp keys to custom key05:53
aneonsome people think adding "secure" to anything and then breaking the stuff is the right way05:53
gogetayou dont need to deleted anything05:53
sid21ggogeta: what should be done05:53
sid21g?05:53
aneonas a precaution, on my tower I removed keys05:53
gogeta@sid21gyou bios under securty should have the abilty to set it to use custom keys05:54
gogetathen it will booot under efi05:54
gogetarelly depends on the pc05:54
gogetasome you have to use legicy bios mode05:54
aneonanyway I get back to my tasks05:55
gogetaalso the usb stick should have been set to gpt efi05:55
gogeta@aneon should not do that as that stores your windows key if you every wanna go back or dual boot05:57
CountryfiedLinuxI'm confused with PC benchmark info. Which part is higher is better, or lower is better? Should I assume if an atom processor has a lower number in a benchmark than my i7 that higher is better, or vice-versa?05:57
CountryfiedLinuxIt shows my info and other hardware below mine in each category.05:57
gogeta@CountryfiedLinux depends on the softwhere and yes the i7 is better lol05:58
CountryfiedLinuxgogeta, I know it's better, but I'm trying to figure out how to read these benchmarks as to which benchmark parts are higher is better and which are lower is better. If the weaker processor has the lower number does that mean that higher is better, and if the weaker processor has the higher number does that mean that higher is better?05:59
lotuspsychjewe dont take polls here CountryfiedLinux05:59
CountryfiedLinuxThat second part should be lower is better05:59
lotuspsychjefocus on actual ubuntu support questions please05:59
CountryfiedLinuxlotuspsychje, I'm not asking for polling, just trying to figure out how to read these benchmarks. It doesn't specify each part being higher is better or lower is better.06:00
lotuspsychjeCountryfiedLinux: hardware & benchmarking there are other channels for, like ##hardware06:00
Sweedish@gogeta i7 is faster. "better" depends upon your criteria. @CountryfiedLinux it depends . some benchmark graphics have lower is better, others have higher is better. can you link us to an concrete example?06:01
aneonany ideas on how to kill a daemon & zombies, my program doesn't have exit or shutdown option06:02
CountryfiedLinuxSweedish, https://pastebin.com/faBpwdF6 I don't know which ones represent higher is better and which ones represent lower is better.06:03
CountryfiedLinuxI assume that a lower powered processor with a higher number would indicate that lower is better, and if it has a lower number that would indicate higher is better.06:03
lotuspsychje!offtopic | Sweedish CountryfiedLinux06:03
ubottuSweedish CountryfiedLinux: #ubuntu is the Ubuntu support channel, for all Ubuntu-related support questions. Please register with NickServ (see /msg ubottu !register) and use #ubuntu-offtopic for other topics (though our !guidelines apply there too). Thanks!06:03
lotuspsychjemove to the right channels please06:04
CountryfiedLinuxI'm almost done lotuspsychje just give me a minute please. It's not very busy here right now. Not likely to get help elsewhere atm.06:04
ayekataneon: zombies are already "dead" - they just need to be reaped by their parent process (typically by calling wait/waitpid) - otherwise they'll keep occupying a PID06:04
aneonokay, I will try /bin/kill -9 $MAINPID06:04
ayekataneon: what's the program in question? is it a service/daemon?06:04
lotuspsychjeCountryfiedLinux: its still not ubuntu related, if you want to continue, pm or meet each other in better channel06:05
ayekataneon: yeah no, don't do that06:05
aneonayekat: dragonfly-mle06:05
ayekataneon: how do you start it?06:05
aneonayekat: /usr/local/dragonfly-mle/bin/dragonfly-mle -r /usr/local/dragonfly-mle -p -v06:06
ayekataneon: does it background itself? or why do you need to kill it (i.e. does ^C not just quit it?)06:06
aneonkill it06:06
aneondoesn't bg06:07
ayekatso where's the problem?06:07
aneonI cant start it later since it chroots06:07
aneonI can start it but it doesn't work well06:08
ayekatthat sentence about chroot doesn't make much sense to me - and what do you mean with "doesn't work well"?06:09
aneonwhen I try to start again it errors saying can not enter chroot, there are zombies06:10
aneonso I kill zombies first06:10
aneonI am trying to automate as much as possible06:10
ayekat... sounds like badly written software to me06:10
aneonprimarily BSD-ish06:11
aneonnot everyone get it working on Linux06:11
aneonthere is a docker build but I am trying to avoid it since it destroys config files06:12
furaididoes anyone checked installation current stable on laptops with eMMc already?06:14
sid21gHello aneon did what we discussed here but still no login screen for Ubuntu06:14
ayekatuh... if something destroyed config files (or any files for that matter), I probably wouldn't decide to run it directly on my host rather than containerised or virtualised...06:14
ayekatsid21g: do you get a GRUB menu when the system starts?06:15
ayekatsid21g: (or if not, do you know how to make it appear?)06:15
sid21gyes! problem starts after I choose ubuntu06:15
ayekatsid21g: try hitting `e` (I believe? it's marked at the bottom of the screen) to get into the boot arguments editor, and pass systemd.unit=multiuser.target to the kernel command line06:16
ayekatthis way at least you get a TTY login, and can try to diagnose things from the command line (instead of staring at a frozen boot screen)06:17
ayekatsid21g: wait, not06:17
ayekatit's systemd.unit=multi-user.target (with a dash)06:17
aneonayekat: I want it to not create directories in wrong places, when I change the config and initiate docker build, some strange stuff creates directories in /opt and causes confusion. Anyway, I am not using docker; it doesn't appeal to me06:18
ayekataneon: I see - but that program looks like quite a complex and fragile beast to me, so I'd consider using docker the lesser evil06:20
ayekatbut anyway, zombie processes are annoying, and I don't think you can simply kill them away06:20
sid21gayekat: this way at least you get a TTY login, and can try to diagnose things from the command line, i wish i could debug06:23
aneonlets see, I am tryin to figure out machine learning in security. It is shallow but I am trying to see what it does exactly06:23
ayekatsid21g: well, do you get a login screen at least? or does it get stuck again?06:24
sid21gLet me reboot and test06:25
ayekatsid21g: you could look at the journal from the previous boot (i.e. `journalctl -b -1`), and maybe it tells you what happened when it reached the graphical stage06:25
ayekataneon: well, I have experience in neither one nor the other, so I'm afraid I won't be able to help further than "not waiting for child processes is bad" :-/06:26
aneonhopefully I will fix it06:27
bryanroderyckhello , can i upgrade ubuntu 16.04 to ubutu 18 ?06:28
ayekatyes06:29
bryanroderyckayekat, what is the best way?06:30
ayekatI'm not sufficiently proficient with ubuntu to give a good answer to that06:31
bryanroderyckayekat, ok thanks06:32
ayekatbryanroderyck: I know that there is the graphical upgrade tool, and there's a command line tool (`do-upgrade` or something), and they both seem to work fine06:32
ayekatI mean... "fine" - modulo all the issues that may arise with an ubuntu upgrade, that is06:32
ayekatbryanroderyck: ah, `do-release-upgrade`, apparently - https://help.ubuntu.com/lts/serverguide/installing-upgrading.html06:33
anonymipcan someone please help me on how to chanche hostname on Ubunti 18.04.206:52
sid21gnothing seems to work06:54
anonymipI've tried both using hostnamectl set-hostname <new_hostname> and also manually editing /etc/hostname and /etc/hosts, but when I reboot the hostname is back to the previous one06:54
ayekatanonymip: so after editing /etc/hostname and rebooting, the content of /etc/hostname is back to the old one...?06:55
anonymipyes06:55
ayekatthat... doesn't sound right06:55
anonymipisn't that strange?06:55
sid21g@ayekat failed to type anything06:57
anonymipalso when I do: sudo service hostname restart, I get: Failed to restart hostname.service: Unit hostname.service is masked.06:57
ayekatsid21g: where? do you get a TTY login screen or not?07:00
sid21gI did not07:00
sid21ghttps://ibb.co/Bg8YFwK07:01
BuffaloWingVaporWhen a user locks the computer screen, how would that affect rsync running in a terminal window (assuming computer is not set to suspend automatically)?07:01
sid21gthis is what i see07:01
ayekatsid21g: that's what you see when you attempt to boot into the graphical session (at least that's the same picture you posted above)07:03
Meadsooo... someone posted a solution for a bug with 18.04 and Kodi https://bugs.launchpad.net/ubuntu/+source/kodi/+bug/1836828/comments/9  can anyone elaborate on this? It says I need to download a file and install it...  How do I install it?07:03
ayekat... but I assume you see the same thing this time07:03
ubottuLaunchpad bug 1836828 in kodi (Ubuntu) "Kodi crashes when trying to play any video" [Undecided,Confirmed]07:03
sid21gayekat: I am unable to do anything07:04
ayekatsid21g: yes, if you get stuck at the same place, you can't do anything07:04
sid21gthen whats the way forward?07:04
ayekatI'm out of ideas - not being able to boot to the TTY is pretty limiting07:04
anonymiphmm, I found this thread: https://ubuntuforums.org/showthread.php?t=2389098&page=2 , and removing  ubuntu cloud packages did the trick, now th new host name sticks.07:05
ayekatsid21g: what graphics card do you have?07:06
sid21gAMD Radeon R7 M360 and Intel HD Graphics 52007:07
sid21gayekat:07:07
ayekatoh, two...07:08
sid21gIntel HD Graphics is the built in one07:08
ayekatI'm a bit confused that it stays stuck like this, though07:09
sid21gbut it does stop at diferent stages07:09
ayekatI'd expect it to either just turn blank (and then it's a graphics issue, and booting to a TTY *should* work), or that systemd starts the timeout counter for whatever service is blocking07:09
sid21gi sent the similar one coz i thought it makes no difference07:09
ayekatbut that it just stays blocked in the boot screen like that... then again, I'm really not familiar at all with those dual-graphics-card setups and their quirks (mode changes, etc.)07:10
sid21glet me sent you the latest07:10
sid21gI also think its the timeout counter07:10
sid21ghttps://ibb.co/1RwBqT007:11
sid21g@ayekat this is how it looked this time07:11
sid21ghttps://ibb.co/1RwBqT007:11
ayekatunless someone else has a better idea, I'd probably also try passing `nomodeset` to the kernel command line - but that's just a random suggestion07:12
sid21gbut where can I do that?07:13
sid21gI cannot type anything07:13
sid21gayekat:07:13
ayekatsid21g: it's a kernel command line option - you put it the same place where you put systemd.unit=multi-user.target07:14
sid21gbut i was unable to put that too07:14
ayekatAH!07:14
ayekatso "boot to TTY" was actually never really attempted07:14
sid21gI am so sorry if I wasn't clear at any stage!07:15
ayekatsid21g: do you get a GRUB boot menu when you boot?07:15
sid21gyes I do get that and now I know i should open it in recovery mode07:15
ayekatuh... "recovery mode"?07:15
sid21gOk am quite, you tell.07:15
sid21ggrub is visible I have option to open Ubuntu/Windows07:16
ayekatanyway, at the bottom of the menu, there's typically some text that tells you which key allows you to edit the kernel command line (I think it's `e`, or maybe F10, or whatever)07:16
ayekatdoes it say anything there? if yes, press that, and you should be put into some minimalistic text editor interface07:17
sid21ggive me a few I will try that right away07:17
ayekattell me when you're there07:17
tuxinatorhi everybody07:22
tuxinatordoes somebody have experience using cubic for live iso customization?07:22
abbiyahow to purge docker logs when using journald as log driver ?07:41
sid21ghttps://ibb.co/qFwgyfR07:41
sid21ghttps://ibb.co/qFwgyfR07:41
zambai don't know what i'm doing wrong, but i'm having terrible performance in my ubuntu desktop07:43
sid21gOutput after running the journal comand https://ibb.co/jrymJNM07:43
aneonabbiya: truncate -s 0 /var/log/docker07:44
zambaand i seem to have the same problem with all my installations.. on the system i'm working on now loading a particular web page (probably with some js code) renders my computer totally useless.. the mouse cursor starts to freeze up and if i'm not quick to do ctrl + w to close the tab, the computer will spiral into a complete halt..07:44
abbiya /var/log$ ls docker07:45
abbiyals: cannot access 'docker': No such file or directory07:45
aneonit is somewhere /var/lib/ i think07:45
aneonsearch it07:45
sid21gOutput after running the journal comand https://ibb.co/jrymJNM aneon07:46
aneonsid21g: I a not familiar with secure boot07:46
abbiyavar/lib/docker is a directory full of different things07:47
aneonwhen I used to dualboot linux stuff on a single disk I used to install uEFI on MBR and other OS in legacy mode with their grub on /07:48
aneonabbiya: you need to run find and truncate07:48
aneonLOGDIR="/var/lib/docker"07:49
ayekatsid21g: GDM failing means you're still booting into graphical mode - did you add the systemd.unit=… option correctly? (see /proc/cmdline)07:49
ayekatsid21g: but anyway, now that you're in the journal, you can scroll down (with G you get to the end) - do you see anything useful there?07:49
sid21gits a 20k line output07:50
aneonand later make a loop07:50
ayekatsid21g: yeah, but the interesting part is at the end07:50
sid21gI doubt there is anyway to create an output file of it07:50
aneonor try this = find /var/lib/docker -type f -iname '*.log' -print0 | xargs -0 truncate -s007:50
ayekatsid21g: you can `journalctl -b -1 >boot.log`, and then paste that07:51
sid21g@ayekat this is the end07:51
sid21ghttps://ibb.co/qFwgyfR07:51
sid21g@ayekat but where would that log saved and would it be accessible via windows?07:51
ayekatsid21g: no, but you can just use a paste service from ubuntu07:52
ayekat!paste07:52
ubottuFor 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.07:52
ayekathm... how does this bot work07:52
ayekatsid21g: journalctl -b -1 | curl -F 'f:1=<-' http://ix.io/07:53
Mead someone posted a solution for a bug I have with with my 18.04 install and Kodi https://bugs.launchpad.net/ubuntu/+source/kodi/+bug/1836828/comments/9  it says to download and install libdrm-amdgpu1_2.4.95-1~18.04.1_amd64.deb  but in the link provided I don't see that file, how do I get that file and how do I install it?07:53
ubottuLaunchpad bug 1836828 in kodi (Ubuntu) "Kodi crashes when trying to play any video" [Undecided,Confirmed]07:53
sid21gwow did not know that @ayekat this is life changing07:53
ayekatsid21g: there's dozens of paste services like those07:54
ayekat... oh, they left07:55
* ayekat hopes they're not actually using IRC on the same machine that they're also debugging07:56
ZaZaGXhi07:57
MeadHello07:58
ZaZaGXdo you use ubuntu?07:59
Sven_vByes08:01
ayekatZaZaGX: what did you break?08:03
Meadwhat didn't he break?08:03
tuxinatorcan't find the place where "Try Ubuntu before installing" menu entry is defined on the live CD and cubic does not seem to create the correct auto boot entry for 19.0408:05
ZaZaGXi broke my dd command08:06
lotuspsychjetuxinator: cubic isnt an official supported package on ubuntu08:06
ZaZaGXof ubuntu mate for the raspberry pi08:06
ZaZaGXit won't load08:06
lotuspsychje!arm | ZaZaGX for PI support08:07
ubottuZaZaGX for PI support: ARM is a specific (RISC) processor architecture used in a variety of applications such as handhelds and networkdevices. For more information see https://wiki.ubuntu.com/ARM . For ARM specific support, stop by the #ubuntu-arm channel.08:07
lotuspsychjetuxinator: maybe you can contact the cubic maintainer/forum or seek a channel with !alis08:07
ZaZaGXi don't think i'm suppose to do sudo sync afterwards08:08
lotuspsychjeZaZaGX: type /join #ubuntu-arm08:08
lotuspsychjeMead: i was wondering yesterday, are you using official kodi from apt, or did you add a ppa?08:09
tuxinatorlotuspsychje: any other officialy supported method? or any other idea for a bootable live cd which is easily customizable for a machine which will only be used by guests and should reset on reboot (some kind of kiosk mode)08:10
lotuspsychjetuxinator: we hear good things on cubic, think its a pro package, but we just cant support it here, i hope you understand08:12
lotuspsychjesee also https://tutorials.ubuntu.com/tutorial/secure-ubuntu-kiosk#0 tuxinator08:13
Meadlotuspsychje: I'm using 17.6 from the offical Kodi ppa08:28
lotuspsychjeMead: we dont support ppa's, this should really be tested from the 17.6 apt version on bionic only08:28
sid21gThis is how the output looks like http://ix.io/SP2008:29
sid21gof the journal command08:29
Meadit worked fine  until the update yesterday...08:29
sid21gSorry ix.io/10SP08:30
sid21ghttp://ix.io/10SP08:30
ayekatsid21g: that doesn't look like the right output (kodi on windows...?)08:35
sid21gdont know where did i make the mistake08:36
sid21glet me try again08:36
Meadlotuspsychje: The bug report on launch pad says I need to install a specific library, but I can't find it in the link provided and even then I'm not sure how to manually install a library08:37
lotuspsychjeMead: there are 2 ways of testing this, the official ubuntu way with kodi from apt, removing your ppa, or asking the kodi maintainer whats wrong with 17.6 version on the ppa, probably broken and reccomended to use latest08:41
PhoenyxCullenI cannot add a openvpn connection in network-manager, I've already installed network-managager-openvpn.08:43
PhoenyxCullenthe openvpn command line utility works.08:43
PhoenyxCullensorry, was missing the ....openvpn-gnome piece.08:52
PhoenyxCullenexit08:52
dreamcat4hello. recently i cannot seem to ping 192.168.1.1 anymore. but it still works from a windows pc on same lan09:02
dreamcat4anyone else experienced this issue?09:02
=== mathisen is now known as Mathisen
fribI can't resolve domain names. Please help me thanks09:07
swebi have command /usr/local/bin/my-awesome-shell ... it's work like charm when i typing on shell, but when i add to cron with @reboot timing not work. both tested on root user and root cron09:18
swebit's just command to reconfigure my firewall using iptables, ufw and ipset and fail2ban09:19
swebany alternative to restart point for run special shell scrip09:20
sweb?09:20
ayekatsweb: not sure about all the others, but iptables rules are not persistent across boots, so if you change them before a reboot, they won't stick around09:22
swebayekat: any good alternative just i need after all initialize run sample scrip run same env as root shell level. i dont need to create service for that just simple shell after complete init09:23
ayekatsweb: what is your goal? do you want the script to be run when the system starts up?09:24
swebayekat: yeah, after all initialze steps, latest one, run with same env when i normally run the script with user. user is root09:25
Mathisenwhy not put it in bash_profile ?09:25
swebMathisen: user may be not loggin09:25
ayekatMathisen: because that would require them to log in as root09:25
swebEvent is reboot not loggin09:25
ayekatsweb: create a systemd service09:25
swebit's not service09:26
swebit's not anti pattern ?09:26
ayekatsweb: no, but you want your script to run automatically at startup, which is done using a systemd service unit09:26
ayekatand no, it's not an anti pattern09:27
ayekatconsider "the Firewall is up and functional" your "service" - and your script simply "starts" that "service" - makes sense to me09:28
ShibeHi. Anyone know why the ubuntu 5.2.1 and 5.2 builds are failing for amd64?09:28
Shibehttps://kernel.ubuntu.com/~kernel-ppa/mainline/v5.2.1/09:28
swebayekat: what about Type of systemd ? simple,           exec, forking, oneshot, dbus,           notify or idle09:29
swebis there any sample for such my usecase ?09:29
ikoniaShibe: have a look at the build logs09:29
Shibeikonia: '/home/kernel/COD/linux/include/linux/uuid.h:62:1: error: '-mindirect-branch' and '-fcf-protection' are not compatible'09:30
Shibehmm09:30
Shibeseems like a bad compiler option?09:30
Shibeare the devs aware or is there any place to contact them?09:30
ayekatsweb: read their descriptions - but I guess you probably want `oneshot` there09:30
ayekatsweb: if you want to do it cleanly, you could also add a script (or an option to your script) (or some other way) to tear down/reset your firewall setup, and have ExecStop= run that09:35
ayekatsee http://ix.io/1OTd for an example for how nftables.service does it09:35
=== katnip` is now known as katnp`[chc
Rostin___hi09:42
Rostin___ Is there ubuntu for rpi 4?09:49
swebayekat: thanks a lot, you save my day10:02
ayekatyou're welcome ^^10:02
aneonis anyone using fluentd, elastic & kibana on host?10:15
arunsHi guys, quick question10:26
arunsIf I use sudo update-alternatives --set php, this sets only the PHP CLI version, right?10:26
arunsNot the Apache version as well?10:26
=== imsurit_ofc is now known as imsurit
arunsEveryone gives conflicting answers it seems.10:27
aneonsystemwide10:27
arunsSo that includes Apache?10:27
aneonyeah10:28
arunsThanks.10:29
aneonI think there is a slave provision, check documentation10:31
sid21ghttp://sprunge.us/zvqji2 This is the response to the journalctl query10:32
sid21gI set up dual boot on my system two days back and the ubuntu has stopped entering into the log screen mode, this is the output generated after I ran the journalctl query10:33
sid21ghttp://sprunge.us/zvqji210:34
BluesKajhey folks10:43
ayekatsid21g: /usr/bin/gnome-shell: symbol lookup error: /usr/lib/x86_64-linux-gnu/libmutter-2.so.0: undefined symbol: gbm_surface_create_with_modifiers10:47
ayekatno idea if that is a fatal error, but it might be related10:47
ayekatalso, don't you have a second machine or any other way to connect to IRC, so you don't need to reboot each time for doing something? you've spend 4 hours on something that's normally just a matter of minutes10:48
ayekatalso: /usr/lib/xorg/Xorg: symbol lookup error: /usr/lib/xorg/modules/drivers/modesetting_drv.so: undefined symbol: drmModeListLessees10:49
ayekatsid21g: are you using any special repositories for the graphics driver? have you recently updated your system?10:50
ayekat... also, for some reason this keeps spinning infinitely - I can see dozens of attempts for starting GDM, each failing the same way (AIGLX/amdgpu errors and then out)10:52
sid21gHello ayekat: I did try setting this up https://www.amd.com/en/support/kb/faq/gpu-63510:54
ayekatugh...10:55
sid21gayekat: Now i do have second machine10:57
ayekatsid21g: looking at https://help.ubuntu.com/community/AMDGPU-Driver, did the xserver-xorg-video-amdgpu package itself not work?10:59
ayekator why do you need the pro driver?10:59
sid21gI was playing around, I had an external 4 GB graphic card, so thought why not set it up11:00
sid21goh sheesh just read the page you shared11:00
ayekatI'll take a look at the script they provide - maybe they're doing sane things, and the issue is perhaps elsewhere11:00
sid21gok11:00
sid21gthanks a lot, I will try to find something in it too11:00
sid21gI have raised it up here too https://superuser.com/questions/1461723/boot-process-for-ubuntu-18-04-dual-booted-alongside-windows10-halts-before-log11:01
immuhi alll11:01
ayekatsid21g: what model have you got? (or which driver did you download?)11:01
sid21gI have Lenovo ideapad-500-15ISK11:02
sid21gattempted to set up this AMDGPU-PRO Driver Version 17.40 for Ubuntu 16.04.311:02
ayekat... aaand they left11:10
alesanhello. I downloaded the "nvidia" ubuntu image from "https://developer.nvidia.com/embedded/learn/get-started-jetson-nano-devkit#write" Well I know I cannot look for technical support on that image here but maybe one can send me in the right direction11:10
alesanI can mount that FS locally on my PC but how can I enable sshd?11:10
alesanmy installation is a headless one11:11
sid21gayekat: excuse me if you said something, net got disconnected11:11
alesanI see the links in ./etc/rc4.d/S01ssh and also rc2 and rc511:12
alesanthis means sshd will start? or not11:12
ayekatsid21g: the install script looks sane, but it appears to install packages it ships on its own, instead of repo packages11:14
ayekatsid21g: not sure if this may cause issues when interacting with the kernel, especially after upgrades11:15
ayekatalthough, I would expect kernel modules to remain compatible throughout the lifetime of an ubuntu release (that's the entire point of having stable releases, after all), so... I don't see anything that would cause issues there11:16
alesanand ssh is not enabled, OR it's 100% firewalled11:17
alesanssh: connect to host 192.168.1.253 port 22: Connection refused11:17
ayekatalesan: I'm not familiar with the debian/ubuntu abstraction/compatibility layers for sysv-style initscripts that are still lying around, but normally enabling a service happens by creating a symlink to the service under /etc/systemd/...11:19
ayekat(i.e. /etc/rc{something}.d shouldn't really matter anymore)11:20
sid21gayekat: that is what is disturbing. I have no clue how a fresh was ripped by minimal changes11:20
ayekatsid21g: did it actually ever work at some point?11:20
sid21gyes it worked alright the couple of times I used to set it up11:21
alesanayekat, do you think it can be done by mounting the FS on the SD card on a different PC?11:21
sid21gayekat: but when I opened Windows and the next time i opened ubuntu the situation arise11:21
ayekatalesan: yeah, just mount the root filesystem and create the symlink that would normally be created by `systemctl enable ...`11:22
ayekatsid21g: no upgrade or anything inbetween?11:22
=== imsurit_ofc is now known as imsurit
sid21gno upgrade I set up 18.04 directly11:22
alesanayekat, I have no experience at all with this systemctl, is that systemd thing?11:23
ayekatalesan: yes11:23
ayekatalesan: daemons are expressed through service files that live under /usr/lib/systemd/... (sshd is probably /usr/lib/systemd/system/sshd.service)11:24
alesanOJ11:24
alesanI'll try11:24
alesan./etc/systemd/system/multi-user.target.wants/ssh.service11:25
alesan./etc/systemd/system/sshd.service11:25
alesanthese already exists11:25
ayekatalesan: ah yes, so it should already be enabled11:25
alesanwhy then :(11:25
ayekatnot sure what the /etc/systemd/system/sshd.service does there, though... but ¯\(°_o)/¯11:25
ayekatthe first one looks correct (and it should usually be a symlink to the file under /usr/lib/systemd/...)11:26
alesanyeah11:27
alesanthe IP address I'm trying *is* right11:27
ayekatbut yeah, there's a couple of other factors that may influence this - multi-user.target not being reached, sshd failing, firewall, sshd running on a different port, ...11:28
sid21gnow am scared of setting up ubuntu from scratch again11:28
sid21gIf only I knew the problem is with graphic update or the dual boot itself11:28
ayekatsid21g: I'm not sure if that's relevant, but the driver package there is for 16.04 - then again, if it worked at least once, that's still weird11:29
sid21gis there any way windows drives' might be interfaring? Though I didn't find it possible11:30
ayekatalesan: you could try looking at the journal on the filesystem with `journalctl -D /path/to/mount/var/log/journal/{large_id}`11:30
alesanayekat, now I have reinserted it in the original device I'll try again, do nmap etc11:31
caldarellaHi guys I have dual boot Debian and Windows10 and I would like remove completely Debian and install Ubuntu. When I remove from live cd the partition of Debian with Gparted, how should I remove the Debian installed grub and install the new Ubuntu one? I have UEFI GPT and in the path /boot/efi/EFI/debian/ there is grubx64.efi11:31
ayekatalesan: otherwise, out of curiosity, what is that /etc/systemd/system/sshd.service file? is it a symlink? (if yes, where?) otherwise, what is its content?11:32
alesanayekat, I'll try that in a few minutes11:33
alesan# nmap 192.168.1.253 .... All 1000 scanned ports on tegra-ubuntu (192.168.1.253) are closed11:34
alesanMAC Address: 00:04:4B:E6:17:29 (Nvidia)11:34
vltcaldarella: I'd say the Ubuntu installer will do this itself.11:34
tuxinatorcaldarella: if i get it right, just launch ubuntu setup, overwrite debian partition by formating and you should be fine11:35
tuxinatorvlt: same intention :D11:35
BluesKajalesan, I have to ask the obvious, is ssh-server installed on the remote machine?11:38
caldarellatuxinator vlt removing the debian partition is not a problem, my doubt is that in the efi partition these folders are present: Boot, debian, Microsoft and inside the Boot folder there is the bootx64.efi file which has the same MD5 checksum as the present file in the debian directory: grubx64.efi11:38
alesanBluesKaj, well, some files are there... including the binary11:39
ayekatalesan: so yeah, have a look at the journal - because debugging that as a blackbox is not very efficient IMHO11:41
inflexIs it possible to install Ubuntu with support for BOTH UEFI and CSM boot?  Trying to create a portable USB-stick but I can't be sure which type of hardware will be present11:45
alesanayekat, exactly11:46
inflexAny idea if 'du' and 'df' will be updated to treat snap mount packages as some sort of special device / non-standard, because I'm sick to death of my terminal flooding out every time I want to check either, because of snap mounts.  Going to get far worse too when this obsession with snap keeps taking over everything11:49
inflexI know I can alias off du / df with things like   'du -h | grep -v snap', but it shouldn't have to be done like that11:50
ayekatinflex: I've got a snap-less 16.04 system (not sure if that's still possible with 18.04), so I'd say the cleanest approach if you don't like snap is to simply get rid of all the snap packages11:52
ayekat(and with "packages", I obviously mean "distribution packages")11:52
leftyfb!ot | inflex11:53
ubottuinflex: #ubuntu is the Ubuntu support channel, for all Ubuntu-related support questions. Please register with NickServ (see /msg ubottu !register) and use #ubuntu-offtopic for other topics (though our !guidelines apply there too). Thanks!11:53
=== westor{off} is now known as westor
alesanayekat, ./etc/systemd/system/sshd.service -> /lib/systemd/system/ssh.service12:03
ayekatalesan: weird... so there's two symlinks to the same file?12:04
alesanayekat, there is NO /var/log/journal directory12:04
alesanI have the impression I need to attach a monitor to this thing and perform some installation procvedure12:05
ayekatah yes, that's because - alright, create the /var/log/journal directory, then try again12:05
ayekat(I forgot that debian-based distributions don't provide that directory by default, so the journal is not saved to disk by default)12:06
alesanregular attributes?12:06
ayekatdrwxr-sr-x+ 4 root systemd-journal 4.0K 2017-09-14 15:58 /var/log/journal/12:06
alesanit needs to be set like that?12:07
ayekatbut that may be different on ubuntu - otherwise edit /etc/systemd/journald.conf and set Storage=persistent12:07
ayekatI think editing journald.conf is safer12:07
alesanyeah12:08
alesanshould I delete the directory now I created?12:08
ayekatprobably better, yes12:09
alesanstarting up... I'll give it 5 min12:09
ayekatwith Storage=persistent, journald will create the directory itself12:09
alesanyeah I figured12:10
alesanOK now the directory is there12:14
alesannow I got the logs...12:16
alesannothing about openssh or ssh12:16
alesanI'll just wait for the cable to connect it to a monitor12:16
ayekatmaybe it simply doesn't reach multi-user.target...12:18
alesanyeah12:18
alesanI'll delay all of this to tomorrow when I get the cable12:19
alesanthank's anyway! your help was very nice12:19
ayekatnp - good luck!12:19
=== westor{off} is now known as westor
ws2k3so i have a ubuntu 14.04 and on apt-get update i get a few repo's and then 100% [Working] what can i do?12:33
ioria!14.04 | ws2k312:35
ubottuws2k3: Ubuntu 14.04 LTS (Trusty Tahr) was the 20th release of Ubuntu. !End-of-life was April 25th, 2019. Paid support (ESM) is available. See also !esm, !eol, !eolupgrade12:35
ws2k3hehe nice12:36
ws2k3i know. but that wasnt the question.12:36
ioriaws2k3, and what is ?12:36
tomreynsee the topic for versions we support here12:37
tomreynif you need assistence upgrading to a supported release (rather than doing a fresh install), please say so.12:38
ws2k3nevermind =)12:41
aikemaGetting issues with missing cryptsetup / crypto modules in my initramfs recently - had to boot an earlier kernel to bring system back online and think my current kernel may also be impacted after the initramfs script ran while installing updates.  Any suggestions?  (Running 19.04).  Relevant config excerpts here: https://paste.ubuntu.com/p/45mzTcRdXs/12:49
tomreynaikema: the incorrect resume device is configured in /etc/initramfs-tools/conf.d/12:55
vltaikema: The initramfs build process seems to be very picky about /etc/crypttab.12:55
vltaikema: To not lock you out you can force to include the cryptsetup binary by `CRYPTSETUP=y update-initramfs ...`.12:56
tomreyneither replace the resume device by your swap UUID or remove the file12:57
tomreynremoving it will make update-initramfs guess the resume device, and document its guess as a warning when it runs12:58
tomreyns/document/report/12:58
tomreynis your /boot encrypted, too?12:59
aikematomreyn: had seen that but swapping the resume device for the one in /etc/crypttab just left me with no "RESUME error" but still the missing binaries noted if I do an "update-initramfs -u -k all"13:11
aikemavlt: with "CRYPTSETUP=y update-initramfs -u -k all" still getting hte missing cryptsetup / crypto binaries error13:13
aikematomreyn: /boot is not encrypted13:14
tomreynaikema: can you quote said error message?13:15
aikematomreyn: https://paste.ubuntu.com/p/vZnm99cS95/13:17
aikemaerr... now it's gone it looks like.  Removing the resume file worked... updating it hadn't13:18
tomreynsolve the remaining issues, post your crypttab if you need more assistence13:18
aikematomreyn: /etc/crypttab contents were in my original paste (https://paste.ubuntu.com/p/45mzTcRdXs/).  Now down to warnings.  Am a bit confused about the reference to a keyfile - only thing I see there is /dev/urandom where googling seemed to suggest this just replaces key with each reboot13:21
bryanroderyckhello i have an dell n5010 and i have issue installing ubuntu 19  64 bit... https://dpaste.de/NmBR13:23
aikematomreyn: is size necessary for the resume?  Not seeing it in the crypttab eexample in https://wiki.archlinux.org/index.php/Dm-crypt/System_configuration (for arch not ubuntu but should be similar) and strangely the the file the warning points me to doesn't exist on my system (may need to install a docs package or something like that I guess)13:23
lotuspsychjebryanroderyck: this morning you asked about an 16.04 to 18.04 lts upgrade?13:23
bryanroderycklotuspsychje,  yes i did i want to other version of ubuntu than ubuntu 1613:25
lotuspsychjebryanroderyck: you changed your mind, want clean install 19.04 now?13:25
bryanroderyckcause i want to install blender 2.8 and other softwares13:26
tomreynaikema: README files are usually compressed, you should have /usr/share/doc/cryptsetup/README.initramfs.gz as well as the crypttab(5) man page (run: man 5 crypttab)13:26
tomreyn!man | aikema13:26
ubottuaikema: The "man" command brings up the Linux manual pages for the command you're interested in. Try "man intro" at the  command line, or see https://help.ubuntu.com/community/UsingTheTerminal | Manpages online: http://manpages.ubuntu.com/13:26
lotuspsychjebryanroderyck: please describe your issue to the channel, whats happening exactly?13:27
bryanroderycklotuspsychje, this ubuntu is only weeki have installed it  but it doesnt support all software13:27
aikematomreyn, I found /usr/share/doc/cryptsetup-initramfs/README.initramfs.gz via apt-file.  Strangely the swap line suggested in there for crypttab also doesn't include a size field - which is what I'm getting a warning about now having defined13:27
bryanroderyckis my laptop a 64 bit comatible processor?  https://dpaste.de/NmBR13:28
immuhi @lotuspsychje13:28
tomreynaikema: yes, size is needed in your case, it is documented in crypttab(5)13:29
legreffierbryanroderyck: yes.13:29
lotuspsychjebryanroderyck: i3, yes 64bit capable13:29
aikematomreyn, I see this as the example swap in "man crypttab" - "cswap /dev/sda6 /dev/urandom cipher=aes-xts-plain64,size=256,hash=sha1,swap".  No size field there13:29
bryanroderyckbut why i want to install the ubuntu 64 it doesnt boot ?13:30
lotuspsychjebryanroderyck: elaborate 'doesnt boot' please, what happens exactly?13:30
tomreynaikema: hmm, right, maybe it's just warning you that it'll go with the default then13:31
OerHeksoh, it just does not boot, no "it doesnt support all software"13:31
bryanroderyckit switches off ..13:31
aikematomreyn, err... or I can't read.  At second look seeing a size=256 I glossed over the first time there.13:32
bryanroderycki dont see on the web people talking about dell n5010 having problem with ubuntu 64 bit?13:32
OerHeksbryanroderyck, did you check the iso?13:33
OerHeks!md5sum13:33
ubottuTo verify your Ubuntu ISO image (or other files for which an MD5 checksum is provided), see https://help.ubuntu.com/community/HowToMD5SUM or http://www.linuxquestions.org/linux/answers/LQ_ISO/Checking_the_md5sum_in_Windows13:33
tomreynaikema: make that you and me ;)13:34
bryanroderycki should try to install it from usb key ...are there setting to be done on the cmos bios to install ubuntu 64 bit?13:35
tomreynaikema: note also this quote from  cryptsetup(8):             For XTS mode you can optionally set a key size of 512 bits with the -s option. Key size for XTS mode is twice that for other modes for the same security level.13:35
bryanroderyckOerHeks, no i didnt check md5sum13:36
aikematomreyn, hopefully the default will work.  Been seeing 256 elsewhere which is probably good enough here for the moment.  Any tips as to how to get back online if a test reboot fails?  Would that be to comment out the swap in /etc/fstab and /etc/crypttab or something in addition (after booting via a USB key or some such thing to gain access)?13:38
lotuspsychjebryanroderyck: if you want volunteers to help, its adviced you explain your steps so volunteers can try to help you13:39
lotuspsychjebryanroderyck: you connect your ubuntu usb in your computer, then what?13:40
tomreynaikema: i think you can just resume from the initramfs (busybox) shell if it fails to boot again. after all, the only thing you are encrypting is your on-disk swap partition.13:40
bryanroderycklotuspsychje, im explaining ...i crashes ..it dosent boot the usb13:41
tomreynaikema: you'd boot without swap, but i guess that's tolerable13:41
lotuspsychjebryanroderyck: what crashes at wich point?13:42
aikematomreyn, thanks for the help!  Looking at https://bugs.launchpad.net/ubuntu/+source/cryptsetup/+bug/1802617 sounds like if i hit the initramfs shell i just hit "exit" and boot should continue minus the swap.  Crossing my fingers and rebooting!13:42
ubottuLaunchpad bug 1802617 in cryptsetup (Ubuntu) "After upgrade to 18.10 boot fails on waiting for encrypted source device" [Undecided,Confirmed]13:42
youurayyhi all.  just trying linux again after a long time.   is compiz still the way to get compositing (in dingo)?   installed it, but lost the unity launchers/bars etc.13:43
bryanroderycklotuspsychje, the os doesnt boot ...anyway i have to do the experience again and record all the parameter.13:43
sid21g24testing13:45
immuworking13:45
lotuspsychjebryanroderyck: please take a picture of your screen, at wich point you get stuck13:46
arka500Hello, I have installed kubuntu-desktop package, how do I uninstall Gnome safely now without breaking things?13:46
bryanroderycklotuspsychje, yes i will try ...thanks for your help13:47
lotuspsychjearka500: whats your base ubuntu install?13:47
hggdharka500: there is no way to easily un-install Gnome (to say, ubuntu-desktop)13:47
hggdharka500: just live with both. The only real option is to re-install Ubuntu13:48
aikematomreyn, on OS X at the moment which gives you an idea how well that reboot went.  Hit ESC and the boot is hanging at "A start job is running for /dev/mapper/cryptswap1" which shows as time elapsed / no limit.  How do I abort the swap start if ctrl-c seems to have no effect?13:49
leeijawWhat is the point of clicking on the title bar and change window?13:49
leeijawThis is the behavior on the new desktop environment of 18.04.13:50
leeijawMany times I want to close the tab with middle click but instead cycling through the windows a bit shocking at first.13:50
tomreynaikema: hmm 'no limit' on the timeout, i hadn't considered this, sorry.13:50
uRockleeijaw, for what program?13:51
leeijawAll of them13:51
leeijawuRock: all of them.13:51
tomreynaikema: i need to read up on the available options13:51
tomreynaikema: maybe try booting to recovery for now13:51
leeijawThis is a system behavior.13:52
leeijawTry it in 18.0413:52
aikematomreyn, ctrl-alt-del'ed my way to a grub menu.  as guessing that that's where I need to do some changes.  Not sure if basic recovery mode works or if I need to add some flags to abort the swap mount13:52
leeijawIf I want to switch apps, I will use alt+tab. What is the point of middle clicking on the title bar?13:53
uRockleeijaw, middle click doesn't do that for me. I can scroll between tabs in the web browsers by hovering over the title bar, but not in other apps.13:53
tomreynaikema: me neither, give it a try.13:53
uRockthat has been the case for several years.13:53
leeijawI mean the topmost section of a window.13:54
youurayyso, what's the deal with compiz13:54
uRockyouurayy, specifics?13:54
leeijawThe bar that has minimize, maximize, and close button, but the bar below it.13:55
aikematomreyn, gets to me the "recovery menu"... can get to a root prompt or a bunch of other things but not quite sure how to fix the swap issue.  Wondering if my error might have been triggered by my swap getting corrupted somehow such that it'd need to be rebuilt before it could be remounted.  Should be safe to blow the current swap contents away after a clean shutdown IIRC?13:56
aikematomreyn, or can you fsck a swap partition?13:57
youurayyuRock, i'm trying to set it up on the latest Ubuntu Dingo -- but I lose the Unity Activities/Top bar -- just want my smooth desktop back13:57
youurayyuRock, these things used to work perfectly a decade ago13:57
lotuspsychjeyouurayy: 16.04 is not 18.04 anymore13:58
tomreynaikema: i think you'd just mkswap again if it was inconsistent for some reason.13:59
uRockyouurayy, Ubuntu has moved to gnome. I think you can log out and select Unity13:59
tomreynaikema: but keep in mind that the swap file system is on top of the crypto container which you effectively regenerate on every boot.13:59
uRockNot sure how well that works, though13:59
youurayylotuspsychje ubuntu version? i'm using latest 19.0413:59
uRockI have gotten to the point of not liking Unity anymore14:00
tomreynaikema: well at least you give it a new key file on every boot, using /dev/urandom14:00
youurayyuRock yeah i just want whatever comes w/ the install to also work with compiz, but maybe that's not the idea14:00
BluesKajcompiz is still a "thing" ?14:01
tomreynaikema: so your swap file system does not survive reboots anyways, which is the entire purpose of this configuration you chose to have there14:01
youurayyBluesKaj i guess it is if you want smoothness14:01
aikematomreyn, so I dropped to a root shell, and found that "free -m" reports active swap so guessing that means my swap mounted properly (dmesg | grep swap only reported the swap being added / no errors) .  Am confused about the boot hanging though14:02
lotuspsychjeyouurayy: can you give us details of how you installed unity?14:02
BluesKajyouurayy, glad I'm a kde/plasma guy :-)14:02
youurayylotuspsychje sorry - i confused the terms - i didn't install unity - just went with the out of box Unbuntu manager -- and tried to add compiz later14:03
lotuspsychjeyouurayy: you want to use compiz on gnome?14:04
youurayyyeah, we used to compiz on anything14:05
youurayy*to use14:05
tomreynaikema: try if you can complete the boot without modifications. if you cannot, boot to the recovery again, enable networking, drop to root shell again14:05
youurayyok i see, "gnome-sheel uses mutter, and mutter is compositing" ?14:12
aikematomreyn, resume normal boot seems to have gotten me to my desktop (albeit guessing with crappier graphics drivers than usual).  What would you suggest I attempt now?  Am combing log files to see what I can find14:12
tomreynaikema: i'd like to see all configurations in their current state again14:13
pragmaticenigmayouurayy: That would be correct14:13
pragmaticenigmayouurayy: Mutter is being used because it works with both X-server and Wayland. Gnome-Shell has also been tightly integrated with Mutter which can make it difficult to use a different compositor tool.14:14
tomreynaikema: yu probably wont find logs on how the initramfs failed to enable swap during the last but one mount, since log files are not available at this time of booting.14:15
tomreyn(possibly there was something in dmesg, though.)14:15
youurayythx for the explanation pragmaticenigma - any way to make mutter smoother when dragging windows? / tweaking it14:16
tomreynaikema: the reason your graphics are now worse is that recovery boots with the !nomodeset boot parameter.14:17
lotuspsychjeyouurayy: wich graphics card and driver are you using exactly?14:18
pragmaticenigmayouurayy: That's something I do not have any experience in. I typically just use my machine as is, and haven't noticed any issues with jutter or tearing. I make sure I'm running up-to-date graphics drivers and that's about it.14:18
youurayylotuspsychje GeForce GTX 1060 and i believe the i use the proprietary nvidia driver -- how to make sure?14:19
aikematomreyn, /var/log/boot.log seems to have some relevant info.  Repost of the relevant bits of config (plus boot.log excerpt): https://paste.ubuntu.com/p/8PnDnQ7Xgf/14:19
OerHekslspci -nnk | grep -i vga -A3 | grep 'in use'14:19
pragmaticenigmayouurayy: What OerHeks just wrote14:20
youurayylspci -nnk | grep -i vga -A3 | grep 'in use'14:20
youurayysorry, Kernel driver in use: nvidia14:20
=== BrianG61UK_ is now known as BrianG61UK
youurayyis `nvidia` the proprietary?14:20
pragmaticenigmayes14:20
saurabhdhandareI am on 18.04.2 x86_64 system from Dell14:20
OerHeksyes, else you would read nouveau14:20
saurabhdhandareNo proprietary drivers installed14:20
saurabhdhandareI did a fsck -y /dev/sdX on my seagate expansion 1TB disk but it took 2 days and still didn't complete the repair14:21
saurabhdhandareThe disk has no useful data14:21
saurabhdhandareI want to restore the entire disk to a clean slate14:21
saurabhdhandaregparted doesn't fix errors14:21
saurabhdhandaremkfs.ext4 doesn't fix errors14:21
youurayyso yeah window dragging isn't as silky smooth as in compiz (or win10 / mac)14:22
saurabhdhandareI get a READ-ONLY filesystem error while copying14:22
o0zesaurabhdhandare, what does SMART say about the disk ?14:22
OerHekssaurabhdhandare, sounds like you do have hardware issues, bad disk?14:22
saurabhdhandareit is a brand new one.14:22
youurayyi know i'm nit picking but we had this14:22
aikematomreyn, Found someone else reporting an error like mine (though they say they've hit it intermittently - wonder if the reason for it work in recovery mode is just that I got lucky): https://askubuntu.com/questions/1153319/starting-problems-a-start-job-is-running14:22
uRocksaurabhdhandare, have you chowned the directory yet?14:22
lotuspsychjeyouurayy: what about your other system specs, cpu, ram, hd/ssd?14:23
saurabhdhandareyes I did using chown saurabh: /media/saurabh/XXXXXXX14:23
saurabhdhandareit had exFAT so I changed to ext414:23
saurabhdhandarenow it doesn't work14:23
OerHekshttps://help.ubuntu.com/community/FilesystemTroubleshooting14:23
youurayylotuspsychje it's a beefy PC, if i run compiz the window moving is smooth14:23
saurabhdhandarethanks14:24
tomreynaikema: this post lack context, it's pretty useless really.14:24
tomreyn*lackS14:24
TJ-aikema: can you show us "pastebinit <( sytemctl status cryptswap1.mount; journalctl -b )"14:25
uRocksaurabhdhandare, chown users:user /path to directory14:25
TJ-aikema:oops, typo!14:25
lotuspsychjeyouurayy: details of 'beefy' please?14:25
TJ-aikema: can you show us "pastebinit <( systemctl status cryptswap1.mount; journalctl -b )"14:25
youurayyso that and also the font rendering isn't as good as win/mac14:25
saurabhdhandareuRock, yeah14:26
uRocksaurabhdhandare,  chown saurabh:saurabh /media/saurabh/XXXXXXX14:26
youurayylotuspsychje: Intel(R) Core(TM) i3-8100 CPU @ 3.60GHz,  M2 SSD, GeForce GTX 1060, 32 GB RAM14:26
saurabhdhandarei did. I have permissions to write to the disk14:26
lotuspsychjeyouurayy: if those specs cant run 19.04 then something really wrong in your system14:27
saurabhdhandareIt is when I copy more than 15 GB that the disk becomes READ-only14:27
lotuspsychjeyouurayy: can you pastebin us your dmesg please?14:27
youurayyoh they can run it, just not as smoothly as win/mac  (nothing suspicious in dmesg)14:27
lotuspsychjeyouurayy: let us have a look?14:28
youurayywhat's the pastebin cmd?14:28
saurabhdhandareuRock, can I clean the disk with gparted to a fresh ext4 state??14:28
lotuspsychje!pastebinit | youurayy14:28
ubottuyouurayy: pastebinit is the command-line equivalent of !pastebin - Command output, or other text can be redirected to pastebinit, which then reports an URL containing the output - To use pastebinit, install the « pastebinit » package from a package manager - Simple usage: command | pastebinit14:28
uRocksaurabhdhandare, yes, but you'll have to chown again14:28
saurabhdhandareuRock, ok14:29
saurabhdhandareuRock,14:29
john_ramboAfter pairing my phone using bluetooth it says "Connection failed -No usable services on this device" ...How to fix this ?14:29
saurabhdhandarewill it fix the ext4 errors14:29
youurayylotuspsychje http://paste.ubuntu.com/p/zHQWsnGzZ2/14:29
uRocksaurabhdhandare, it should. I've never had that issue with extra drives14:30
saurabhdhandareuRock, ok thanks. Doing that now...14:30
OerHekssaurabhdhandare, ext4 errors on a blank disk are likely disk errors, hardware failing, check with disks > s.m.a.r.t.14:30
saurabhdhandareOerHeks, okay i'll14:31
tomreynyouurayy: you have ROG STRIX Z370-I GAMING, BIOS 1002 07/02/2018. you should have https://www.asus.com/us/Motherboards/ROG-STRIX-Z370-I-GAMING/HelpDesk_BIOS/14:31
youurayythanks for spotting that, i'll update14:32
lotuspsychjeyouurayy:  nvidia: module verification failed: signature and/or required key missing - tainting kernel14:33
lotuspsychjeyouurayy: are you dualbooting or single boot ubuntu?14:33
aikematomreyn, I agree it's not very complete but at least matches my symptoms14:33
youurayysingle boot, giving it all14:34
youurayy^ lotuspsychje14:34
aikemaTJ-, https://paste.ubuntu.com/p/HWXMBkSNMh/14:34
youurayylotuspsychje does that mean the driver isn't active?14:34
tomreynaikema: right, it *could* be related.14:34
lotuspsychjeyouurayy: please try a higher nvidia driver from the ubuntu graphics ppa14:35
pragmaticenigmalotuspsychje: That message might be from installing the nvidia driver from the graphics driver's team's PPA14:35
lotuspsychje!nvidia | youurayy14:35
ubottuyouurayy: For nvidia and matrox graphics cards, see https://help.ubuntu.com/community/VideoDriverHowto . For AMD/ATI graphics cards, see « /msg ubottu ati » and « /msg ubottu fglrxmissing » For the latest Nvidia drivers see https://launchpad.net/~graphics-drivers/+archive/ubuntu/ppa14:35
aikematomreyn, it's the right version of Ubuntu and reported around when I started having these problems14:35
tomreynaikema: the timing is a good hint, i agree.14:35
lotuspsychjeyouurayy: try also to install preload and haveged and reboot after switching to your new nvidia driver14:37
aikemaTJ-, also poked around for other swap-related systemctl things after that first one didn't amount to anything: https://paste.ubuntu.com/p/69z4gx2Yhb/14:39
TJ-aikema: was that boot.log you pasted earlier from the same boot session as this log? Because in this session cryptswap came up immediately - "Jul 19 15:54:03 nuc systemd[1]: Activated swap /dev/mapper/cryptswap1."14:39
saurabhdhandareOerHeks, uRock I believe I have a hardware issue14:40
tomreynTJ-: i think   journalctl -b -1   currently points to where the swap partition would not mount and the boot got stuck indefinitely waiting for this to happen.14:41
saurabhdhandareSMART test doesn't work on my expansion drive14:41
saurabhdhandareGUI option is not available14:41
saurabhdhandaresomething has to do with 'uas' module in the kernel14:42
saurabhdhandareI think 18.04.2 has the stable kernel with fixed bugs14:42
TJ-aikema: also note you have an unrelated USB device failure recurring constantly: "usb 1-4.1: USB disconnect, device number 10"14:42
OerHeksit is true, not all ext hdd controllers support smart control, so be it14:42
OerHekssaurabhdhandare, then check the health on a windows machine14:43
saurabhdhandareOerHeks, https://askubuntu.com/questions/637450/cannot-perform-smart-data-and-self-test-on-external-hard-drive/692892#69289214:43
TJ-aikema: as tomreyn  points out, was boot before this one, the one where cryptswap1 failed?14:43
saurabhdhandareOerHeks,14:43
saurabhdhandareyeah14:43
saurabhdhandareWindows :(14:43
youurayyok using nvidia-driver-418 (proprietary) now14:44
aikemaTJ-, https://paste.ubuntu.com/p/ZRPgTxZGN3/ is the "journalctl -b -1" which I think is the failed boot which misses a bunch of those swap messages.14:44
youurayythink it's smoother..   4k youtube video in chrome not silky smooth still, but i'll try that bios update14:45
youurayyit also offers "nvidia-driver-430 (open-source)" not "(prorietary)" - but it doesn't say it's the "nouveau" -- should i activate it?14:46
aikemaTJ-, if you have a fix for that USB device failure, that'd be awesome.  It's a UPS that fairly regularly doesn't seem to init properly (but usually seems happy if you restart nut-server and/or nut-client).  I sort of gave up on a permanent fix after having previously poked at it for a while14:47
tomreynaikema: i recommend you remove this "INNO TECH USB to Serial" device you have connected to usb there for now.14:47
lotuspsychjeyouurayy: better not use nouveau on a big GTX card :p14:48
aikematomreyn, permanently detach or just disable for debugging purposes here?14:49
tomreynyouurayy: that's actually the proprietary driver, too, it's just listed incorrectly. this is neither a recommendation to use or not to use it.14:49
tomreynaikema: for now, while we try to fix your boot14:50
youurayylotuspsychje what is the logic there -- is it as good as the proprietary?14:50
youurayytomreyn thanks, these things are confusing for novices14:51
aikematomreyn, OK.  It's not unplugged.  Living in an area with power grid problems, so hopefully I'll remember to plug it back in in the end14:51
aikemaerr... now unplugged I mean14:51
lotuspsychjeyouurayy: depending your needs of course, if you want the full use of your nvidia card= use the nvidia driver14:51
tomreynyouurayy: normally you would not run into this, it's just due to using the PPA. a bug has been filed about it, too, i think, so chances are it will get fixed at some point.14:52
aikemaSo seems that "Found device /dev/mapper/cryptswap1" is the start of the chunk of logs in the working boot that's missing in the failed boot14:53
youurayythanks for your help guys.  i'll check the bios update later tonight, hopefully the 4k video will be smooth (may also play with chrome://flags a bit)14:54
youurayyalso what's the easiest way to get a full win/mac-like font rendering (patents notwithstanding lol) into ubuntu?14:55
youurayyi think we used to compile freetype in the old days14:55
TJ-aikema: those USB errors are logic-level on the USB, which means the remote device is causing the problem14:59
TJ-aikema: is the UPS running well before the PC boots?15:00
TJ-aikema: those errors make it very hard to analyse the logs15:00
aikemaTJ-, am curious why the nut-client and nut-server restarts seem to resolve the issue once they happen - i.e. think this is an issue also implicating drivers - probably a race condition somewhere15:00
aikemaTJ-, am going to try adding that size=256 to the crypt tab though as https://bugs.launchpad.net/ubuntu/+source/cryptsetup/+bug/1802617 seems to suggest it might have been a problem in the past.  That said, the logs both report key size = 256 for the device15:02
ubottuLaunchpad bug 1802617 in cryptsetup (Ubuntu) "After upgrade to 18.10 boot fails on waiting for encrypted source device" [Undecided,Confirmed]15:02
TJ-aikema: 'size' only applies when a swap *file* (/swapfile) is used; your system has a swap partition that isn't needed15:06
tomreynaikema / TJ: so, as aikema said, the issue seems indeed to be that for an unknown reason systemd just does not 'find' the cryptswap1 device when it fails: https://paste.ubuntu.com/p/kdtzKV33bF/15:06
tomreynTJ-: according to the crypttab man page: size=<size>: Encryption key size (ignored for LUKS and TCRYPT devices). See cryptsetup -s.15:07
tomreyn(but then "cryptsetup -s" just returns an error message)15:07
aikemaTJ-, am wondering why cryptsetup would be giving me warnings about not seeing the size param then (and also the other error re use of a key file which in my case I think is /dev/urandom)15:08
tomreyni was also wondering whether or not this is correct. there is also a size mount option in fstab, which i think does refer to volume size15:08
TJ-aikema: tomreyn  I think we may have the wrong focus. If you compare differences in the log files, in the successful boot "Started udev Wait for Complete Device Initialization" occurs a long time after cryptswap1 is created and activated, whereas in the failed boot that happens at the same time as "Started Cryptography Setup for cryptswap1."  - I think this is a race condition15:10
tomreyna race condition seems plausible to me.15:11
tomreyn16:09:01 is indeed a lot later15:14
tomreynaikema, TJ-: what doi you think about just trying to boot again normally (after another   sudo update-initramfs -k $(uname -r) -u     in case we changed anything?) and see if it works out this time, without the UPS connected, or just out of luck? and if it gets stuck, just reboot normally a couple times more to see whether it's really racy?15:19
TJ-aikema: tomreyn  Please do some tests. keep the UPS's USB<>Serial connector unplugged until the system has booted fully. If you can reproduce the cryptswap1 issue like that we can look again at the logs. Currently I think the problem is if the udev "Wait for Complete Device Initialization" starts *before* cryptsetup has created /dev/mapper/cryptswap1, then the udev 'settle' action is being delayed because of15:19
TJ-the USB serial device repeatedly disconnecting (that will be triggering udev jobs constantly)15:19
TJ-aikema: that udev service is executing "/bin/udevadm settle" which "... Watches the udev event queue, and exits if all current events are handled...."15:20
TJ-aikema: if you cannot reproduce with the UPS USB unplugged, you could, instead of unplugging, alter the cryptswap mount to declare a "Before=systemd-udev-settle.service"15:22
aikematomreyn, TJ-: Rebooted 3x without the UPS USB-attached.  First 2 reboots worked without problems and now the 3 reboot is hanging with same symptoms as before15:23
tomreynhmm so this seems to confirm *some* race condition, and i do like TJ-'s theory.15:24
TJ-aikema: OK, don't shut it down, let it time out the job15:27
aikemaTJ-, already shutdown the hanging system.  Unlike some other things I've had hang before this one reports "no limit" so I assume that means it'd hang indefinitely15:30
aikemaTJ-, tomreyn : 4x boots of logs: https://paste.ubuntu.com/p/4ZVnzpZ7Tq/15:33
tomreynhttps://www.freedesktop.org/software/systemd/man/systemd.mount.html  specifies x-systemd.device-timeout and x-systemd.mount-timeout which can be used in /etc/fstab15:36
TJ-aikema: tomreyn  if you look at line 8252 onwards you'll see, at shutdown, the swap/crypto device services were present and terminated cleanly ... so I think the message you're seeing is somehow misleading and something else is the true cause here.15:39
TJ-aikema: line 8261 ends that group with "Deactivated swap /dev/mapper/cryptswap1."15:40
tomreynmeh, this is not fun.15:46
aikemaTJ-, tomreyn, should I try instead setting TimeoutSec in the systemd mount setup.  That way a failed reboot might be more likely to proceed even if TJ- is accurate in suspecting a different root cause?15:46
aikematomreyn, thanks for helping though!15:48
tomreynaikema: oh, you're welcome!15:48
aikemaTJ-, tomreyn : I do find systemd rather confusing though.  If I'm trying to limit the "no limit" service that prevents the reboot from continuing in event of a failure, which file should I edit?  There seem a lot that are potentially related15:50
tomreynaikema: i'm not really sure how to continue. i assume you'll want to develop a workaround next, which is understandable, and lowering the timeouts *might* provide that. on the other hand, identifying a root cause or at least filing a bug report would probably be very useful in general.15:50
tomreyni would not modify the generic mount timeout, but just the one for the specific device in fstab, by adding those x- options i quoted. if you want to try this path. Or wait for TJ- to point out my flawed logic in this (please do!). ;-)15:52
TJ-aikema: tomreyn  OK, that group of messages was from a successful boot - I thought with it being a shutdown it was the failed boot. I found the failed boot at line 379615:52
aikematomreyn, I know TJ- seemed to think seeing what happened if continuing past the "no limit" thing blocking the way.  Poking around an active system with the problem seems as though it might potentially help isolate the problem15:53
=== im0nde| is now known as im0nde
aikemaTJ-, tomreyn : would it help to reupload those logs as 4 separate pastes - one per boot?15:54
tomreynaikema: yes, and to identify which ones ere successful and which were not15:54
tomreynalthough we could do that together later15:55
TJ-tomreyn: aikema sure, add a timeout, it should help. Currently the problem as far as I can tell is this: cryptsetup creates the device (/dev/mapper/cryptswap1), mkswap 'formats' it, the "Local Encrypted Volumes" is therefore reached (which tells us all the crypt side succeeded) *but* "swap.target" is never reached and this is because for some reason udev isn't reporting "Found device /dev/mapper/cryptswap1."15:55
TJ-aikema: no, the logs are fine once I realised what I was looking at!15:55
tomreynaikema: so no need to repost the logs then15:56
TJ-aikema: Have you created/edited any systemd services/mounts, or installed 3rd party packages that use systemd service control? It *feels* to me like a race with dependency issues between other services/mounts - it is unusual to see this using just Ubuntu packages untouched15:57
TJ-aikema: I think we need to see the complete "/etc/fstab" because there are other crypto mounts going on and related fscks that could be an issue here15:58
aikemaTJ-, no other crypto is mounted at boot or exists in /etc/fstab (encrypted devices are mounted after user login).  ("/" is ext4, /boot/efi is fat, and an nfs mount are the only other entries in /etc/fstab)16:03
aikemaTJ-, note that the NFS mount has options set to defaults,nofail.  (I probably should be adding _netdev)16:04
TJ-aikema: the crux of the problem is definitely the "udevadm settle"16:06
TJ-aikema: Add that - it might be the cause of udev failing since that mount isn't appearing16:07
aikemaTJ-, even if nofail is set?  If udevadm settle is the issue couldn't we just use Before/After to ensure ordering like you'd suggested for one of them before?16:09
TJ-aikema: lets do this first to test the hypothesis16:09
TJ-aikema: in theory waiting for the settle shouldn't hold up the appearance of cryptswap1 which would trigger the activating of the swap, but something is doing that so we need to isolate it16:10
aikemaTJ-, _netdev in place.  Trying a few restarts now16:10
TJ-aikema: I don't think a netdev should cause settle to stall - usually it's caused by a local device which was why I recommended unplugging the UPS for now.16:11
fradwhat app can I use to get rid of the artists name of an avi file? I renamed the file, but the artists metadata has not been changed. On vlc it still appears before the file's name. I tried mkvtoolnix, but the artists name is nowhere to be seen16:11
aikemaTJ-, already first reboot is a fail (and still "no limit" as I hadn't figured out which systemd file to update16:12
TJ-aikema: OK, that is helpful in it reduces the problem space16:15
TJ-aikema: in case we don't solve this now and you involve others in trying to solve this, make sure they realise that /dev/mapper/cryptswap1 *does* exist, and you can prove it since we see in the logs "mkswap[943]: Setting up swapspace version 1, size = 31.9 GiB (34244915200 bytes)" and that is executed by the " systemd-cryptsetup@cryptswap1.service" unit which has "ExecStartPost=/sbin/mkswap16:24
TJ-'/dev/mapper/cryptswap1'" <-- and the device is referred to by its device-mapper path16:24
aikemaTJ-, for now had you been suggesting a Before or After modification to a systemd file as a possible workaround?  (And might this also work for my UPS connection?)16:26
TJ-aikema: I'm not so sure at the moment... I just had an idea I need to check16:26
tomreynfrad:  ffmpeg -i input.avi -metadata artist='' -acodec copy -vcodec copy output.avi16:27
TJ-aikema: thinking aloud here to confirm what we know. "Reached target Local Encrypted Volumes." is cryptsetup.target so that tells us all the crypt services have completed successfully, and that infers that "ExecStartPost=/sbin/mkswap '/dev/mapper/cryptswap1'" returned OK (I had been wondering if mkswap process had hung, but this proves it didn't16:30
aikemaTJ-, to answer my last question (I think), you did mention that '"swap.target" is never reached' so I guess adding something like After=udev-settle to swap.target probably wouldn't help?16:31
TJ-aikema: so, we're hunting for something else that is causing a race. I'm wondering if we can stop it happening simply by slowing down boot (as a test!) by causing systemd to do "debug" logging (it gets verbal diahorrea!) - at boot-time interrupt GRUB and edit the kernel command line, remove "quiet splash" and add "debug" and test16:31
TJ-aikema: I agree it probably wouldn't help  but lets see if "debug" solves it by slowing things down dramatically16:32
fradthanks tomreyn16:34
becooldoes mysqldump fail if there's a short network interruption or will it wait for connectivity and proceed with dumping when networking is restored?16:35
aikemaTJ-, https://paste.ubuntu.com/p/YBN3VRjhGv/ is the debug log16:47
tomreynbecool: if transferring over tcp and running into a tcp transmit timeout, it will fail in the same way any tcp transfer would fail then.16:47
becooltomreyn: it doesn't actually fail, though. the process counter just stops counting and the dump stops growing after a variable amount of gigabytes16:51
TJ-aikema: did it fail to start the swap in that session?16:51
puxavidaUpdates for squid and apache on 18.04 were installed today.  When updates are installed like these does the update process restart the services so the new version is loaded?16:53
tomreynbecool: maybe ask in #mysql (or is it ##mysql ?). to me this sounds like it didn't actually run into a tcp transmit timeout, but packets were lost, and then apparently it fails to handle this.16:54
tomreynbecool: consider dumping locally, transmitting (over network link) separately.16:54
becooltomreyn: no response there yet. i can't dump locally, it's an rds aurora instance in aws16:55
becooli'm dumping to an ebs volume attached to an ec2 instance in aws16:55
tomreynbecool: then were's the relation to ubuntu?16:55
becoolthe server i'm dumping to is running ubuntu16:56
tomreyni see16:56
becooli used the --compression switch for the mysqldump, so i'm hoping ubuntu supports network compression16:56
tomreynmaybe the DB server and compute node are in different locations?16:57
becoolthey are16:57
becoolit's dumping "over the wire"16:57
tomreynit'd also do that if they were in the same location, i guess, but the network links would most liklley be more stable.16:57
tomreyn*likely16:58
aikemaTJ-, no failure that session.  Thought you were expecting the slowdown to stop it happening ... or is this a case where you'd want N attempts again?  In which case I'd probably need to figure out how better to access grub at startup (had to trigger a failed boot to get it to go)16:58
becoolreally hoping mysqldump behaves more like an rsync rather than just a cp16:58
TJ-aikema: I see a successful discovery at line 3567, is there 2 boot cycles there because I see what looks like another at line16:59
tomreynpuxavida: yes, network services which are started automatically when installed, should also be restarted automatically when updates are installed.16:59
becoolotherwise i'll never know whether or not i'm getting a dump with full integrity16:59
TJ-aikema: sorry, yes, you'll need to do mutliple boot cycles to know if we've stopped it happening :)16:59
TJ-aikema: accessing GRUB - tapping Esc key or you could temporarily edit /etc/default/grub and change things there, then run "sudo update-grub"17:00
puxavidatomreyn, ok thanks17:01
TJ-aikema: the fact we now have a detailed debug log of a succesful boot means we know what to expect to see17:02
tomreynbecool: there may be other (better?) data export options with aws rds. i don't actually know, but recommend you check the documentation on this. think of percona xtrabackup (innobackupex) for example.17:03
becooltomreyn: i'll check it out. thanks17:03
tomreynyou're both welcome. ;)17:04
pragmaticenigmabecool: mysqldump's original design was more focused on writing to a local file, than over the network. Also, mysqldump is more like cp ... I am not aware of it having any feature that allows it to see what it has already done and what it needs to do. It always wants start from the beginning17:05
becoolpragmaticenigma: are there any more robust and open-source command line dumping tools to solve that problem?17:06
leftyfbbecool: write locally, then rsync17:07
becooli don't know if i can write locally since it's an amazon rds instance17:07
becooli don't have direct access to the vm17:07
pragmaticenigmabecool: are you trying to do full backups?17:07
becoolyes, a full dump of a specific database17:08
Sven_vBis there any hope left for my USB thumb drive? I read on SO that error -110 is about insufficient power supply, but I plugged it directly into several computer, even ones that did not have any other USB ports in use. http://paste.debian.net/plainh/fb798ecc17:09
pragmaticenigmabecool: I think I'm with tomreyn on their suggestion. I'd have to believe that the instance has to have some sort of snapshot or utility to help extract your data from the instance in an efficient manner17:10
aikemaTJ-, updated the grub config to make debug the default and did an update-grub.  It's survived 5 reboots so far which would seem to confirm the race condition as root cause.  Setting it back to normal now / not quite sure how best to move forward (other than occasionally have to re-reboot)17:11
pragmaticenigmaSven_vB: If it fails with the same message on multiple computers than it's not the computer that is the problem it's the device. Likely, a trace in the PCB is cracked and the drive is damaged.17:11
TJ-aikema: arggh! I've had this challenge before and it is VERY frustrating.... you add debug options and the darned thing behaves. I think we sould next try telling udev to save a debug log17:12
Sven_vBpragmaticenigma, does the error message indicate the broken trace is likely related to power supply?17:14
TJ-aikema: try adding "udev.log_priority=debug"17:15
pragmaticenigmaSven_vB: No, there was nothing to interpret with my message. Your USB Drive is failing, time to get whatever data that is on that device backed up someplace else and replace it.17:15
Sven_vBpragmaticenigma, ok, thanks!17:16
aikemaTJ-, does that mean that my options are udev being uber-verbose/slow vs. having to reboot an extra time every once in a while?  Wondering in that case if it'd be easier just to reboot slightly more often.17:20
aikemaTJ-, i.e. over the long haul system has only gotten rebooted 1x/month or so I think17:21
pragmaticenigmaaikema: What TJ- is asking you to do is for the short term, to try and figure out what is happening17:22
TJ-aikema: well, from my perspective I'd always want to identify the issue and solve it. You may have a corner-case that affects others that has never been fully understood17:22
TJ-aikema: I'm hoping that unlike systemd's 'debug' output slowing things down so much we avoid a race, that only having udev logging its action allows us to capture the problem in a combination of the udev log *and* the regular systemd/kernel boot logs, by looking at the timestamps of the log messages and understanding what is (not) being done when udev fails to report the device 'plugged' event for17:25
TJ-/dev/mapper/cryptswap117:25
aikemaTJ-, safe to pair that udev debug logging with the quiet nosplash?17:26
TJ-aikema: leave off the "quiet" - that tells the kernel to do its lowest level of output, so we might learn something of interest without "quiet"17:28
TJ-aikema: as for nosplash, yes, that is fine to have - in fact I prefer it since it prevents Plymouth from obscuring the kernel messages with a useless 'pretty' image!17:29
TJ-aikema: also, it would be possible to automate the testing to force a reboot if the swap.target is reached, but have it not reboot if swap-target is not reached so you could leave it overnight17:36
aikemaTJ-, interestingly with the udev.log_priority=debug added the system seems to always fail to boot.17:41
aikemaTJ-, at least each of my tests was failing.  Anyways, logs from a failed boot: https://paste.ubuntu.com/p/7dh9mRRkg9/17:41
aikemaTJ-, thanks for the help.  Gotta run17:57
chrismo16Hello all. I have installed Ubuntu on an external USB hard drive. I installed a different kernel and am trying to sign it for secure boot. Now I am getting the following error at boot:18:00
chrismo16Failed to open \EFI\BOOT\mmx64.efi - Not FoundFailed to load image \EFI\BOOT\mmx64.efi: Not FoundFailed to start MokManager: Not FondSomething has gone seriously wrong: import_mok_state() failed18:00
sarnoldchrismo16: did you copy over the EFI partition too?18:01
chrismo16I might not have18:01
chrismo16In /boot/efi/ I have "EFI  'System Volume Information'"18:02
chrismo16in /boot/efi/EFI I have "BOOT" and "ubuntu"18:03
chrismo16in BOOT I have BOOTX64.EFI  and fbx64.efi18:04
furyis there a way in 18.04 to keep the screen blanking/monitor power off after 15 minutes, but stop it from forcing me to "swipe up" when i come back? i'd like it to just pop back up with the windows I had open before, like Windows and Mac does when I don't have a screen lock passcode enabled18:04
chrismo16in ubunti I have BOOTX64.CSV, grub.cfg,  grubx64.efi,  mmx64.efi, and  shimx64.efi18:05
sarnoldchrismo16: here's what I've got on an EFI machine http://paste.ubuntu.com/p/ZcDf837YSX/18:05
OerHekschrismo16, what different kernel exacly?18:05
de-factois there any way to uninstall gnome notifications?18:06
OerHekswhat happens if you tried?18:06
chrismo16OerHeks looks like we have the same structure18:06
chrismo164.19.13-041913-generic18:06
tomreynthat's an outdated kernel ppa build, i assume?18:07
tomreynhttps://kernel.ubuntu.com/~kernel-ppa/mainline/v4.19.13/ vs https://kernel.ubuntu.com/~kernel-ppa/mainline/v4.19.59/ vs https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.1.16/18:09
chrismo16Im running 18.04 and followed a tutorial toget my touchscreen working on an HP Spectre x36018:10
chrismo16Perhaps I should install a newer kernel? Would that mean I don't need to sign it for secure boot?18:10
chrismo16I'm following this tutorial to sign the kernal https://github.com/jakeday/linux-surface/blob/master/SIGNING.md18:11
chrismo16tomreyn yes. I used ukuu to install it18:12
furyha, `xset dpms 900 900 900` is my hero18:12
furyinstead of ubuntu's screen blanking option in power settings18:13
furythis one turns off the monitor but doesn't bring up the swipe screen when i come back18:13
tomreyn!hwe | chrismo1618:14
ubottuchrismo16: The Ubuntu LTS enablement stacks provide newer kernel and X support for existing LTS releases, see https://wiki.ubuntu.com/Kernel/LTSEnablementStack18:14
tomreynchrismo16: there are hwe and hwe-edge kernels, providing different kernel versions. i assume -hwe is sufficient for your needs if 4.19 is18:14
lordcirthtomreyn, isn't HWE 4.18?18:15
tomreynthat's vanilla18:15
tomreynlordcirth: sorry, you'Re right18:15
lordcirthYeah, I have HWE on all of mine. edge is 5.0, though, which should definitely cover it18:16
tomreynso chrismo16 would need -hwe-edge which is at 5.018:16
chrismo16OK let me give that a try. However, have I messed up something with my EFI partition with this signing process?18:16
chrismo16tomreyn thanks18:16
tomreynso linux-generic-hwe-18.04-edge18:17
tomreynand xserver-xorg-hwe-18.04 if you don't already have it18:17
tomreyni'm not sure whether hwe-edge are secure boot signed, though18:18
sarnoldI see a linux-signed-hwe-edge source package on my mirror18:19
chrismo16so I just ran "sudo apt-get install --install-recommends linux-generic-hwe-18.04 xserver-xorg-hwe-18.04 " and it says I already have the newest versions (4.18.0.25.74 and 1:7.7+19ubuntu8~18.04.2)18:23
tomreynyou missed -edge18:24
chrismo16got it18:24
chrismo16Should I also replace generic with signed?18:24
tomreynthose which don't say signed should be signed, those which are unsigned should say unsigned18:24
chrismo16ok thanks18:25
tomreyn"generic" is a different type of indicator, telling this kernel image apart from e.g. OEM images.18:26
TJ-tomreyn: if you see aikema can you ask them to *disable* all snaps as a test? Looking at the udev log around line 877 there are several snap-related /etc/udev/rules.d/ custom rules files. I suspect they might be responsible. We could do with seeing their contents too. Udev log file is https://paste.ubuntu.com/p/7dh9mRRkg9/18:26
tomreynTJ-: recommending that people disable snaps is one of my specialties! (sure, i will try to remember to do so)18:27
TJ-tomreyn: thanks... those are the only custom udev rules which is why I aim at those first.18:29
tomreynTJ-: i'm not sure i could tell which ones are custom and which ones are not. could you tell by the file names?18:30
tomreynactually if we can assume that all snap udev rules start with "70-snap." then i can tell that 70-snap.acestreamplayer.rules and 70-snap.dosbox-x.rules are custom18:32
TJ-tomreyn: the path /etc/udev/rules.d/ vs /lib/udev/rules.d18:36
TJ-tomreyn: ^^^ anything in /etc/udev/rules.d/ is suspect since it may not be well-tested, unlike the package-installed rules in /lib/udev/rules.d/18:37
chrismo16I'm at 5.0.0-20-generic now18:37
chrismo16Unfortunately I still can't boot with secure boot enabled18:38
tomreynTJ-: oh my, looks like i need a weekend. :)18:39
TJ-tomreyn: plus of course I'd love to blame snaps :)18:39
sarnoldtomreyn: good news! :)18:39
sarnoldchrismo16: still mmx64?18:39
TJ-tomreyn: ...although ... I do see a Debian patch in the UPS server systemd unit (for nut-server) which adds an "After=...systemd-udev-settle.service" see https://git.launchpad.net/ubuntu/+source/nut/tree/debian/patches/0004-fix-systemd-service.patch?h=ubuntu/disco18:41
chrismo16sarnold in my boot/efi/ubuntu folder? if so yes18:42
tomreynchrismo16: that's a pity, let's see some details - what does it say when you try to?18:42
chrismo16It says it failed to authenticate18:43
tomreynTJ-: but this rule should not trigger if the UPS wasn't connected, i assume?18:43
TJ-tomreyn: it shouldn't *start* until systemd-udev-settle has reported success so in theory shouldn't affect this... but just seems rather conincidental when we consider all those UPS USB disconnect errors too18:44
=== jhona-aima1 is now known as jhona-aima
TJ-tomreyn: so another experiment might be to temporarily 'systemctl mask nut-driver.service'18:45
tomreynTJ-: but not nut-server.service ?18:46
TJ-tomreyn: from what I can see it's the driver that relies on udev. comments in the -server unit indicates -driver isn't required for nut-server to start18:47
TJ-tomreyn: see https://git.launchpad.net/ubuntu/+source/nut/tree/scripts/systemd/nut-server.service.in?h=ubuntu/disco18:48
tomreynthanks. i'll try convey all of this should i get a chance.18:48
TJ-tomreyn: my reasoning on the snaps... they're *all* loop **mounts* and therefore will trigger events for udevd, see e.g. line 1520 onwards at the failed boot log https://paste.ubuntu.com/p/ZRPgTxZGN3/18:50
tomreyni like to make people file bugs early. even if this turns out to be a useless or duplicate bug report in the end, you at least have a way to communicate with the later.18:50
Chrismo16When I boot my machine I have 3 options: os not manager (uefi) - Ubuntu, os boot manager (uefi) - Windows, usb hard drive (eufi)18:50
TJ-tomreyn: yes, if aikema hadn't left whilst I was at dinner I was going to ask they create a report18:51
tomreynyes, those mounts have some overhead.18:52
TJ-tomreyn: my thinking is, as sone of them include udev rules, there may be some kind of race between the snap mount and the snap-package's own udev rule18:53
tomreyni see.18:55
chrismo16Sorry I keep going in and out of the channel. I'm using a second laptop now so I will stay on18:56
chrismo16So with secure boot enabled, if I choose the OS Boot Manager (EUFI) - Ubuntu I get "Selected boot image did not authenticate"18:58
tomreynchrismo16: can you post   sudo ls -lR /boot/efi/EFI | nc termbin.com 999918:58
chrismo16If I choose USB Hard Drive (UEFI) I get the not found errors18:59
chrismo16tomreyn ok18:59
chrismo16tomreyn https://termbin.com/89u719:02
tomreynchrismo16: you must have run a different command?19:04
tomreyni.e. i think you forgot   -lR19:04
TJ-tomreyn: chrismo16  also, "efibootmgr -v | nc termbin.com 9999"19:06
ioria chrismo16  R means  'recursive' (no harm)19:06
=== mossman93_ is now known as mossman93
chrismo16Ok so I ran the ls command multiple times and just ran the efibootmgr command and keep getting the same thing however the last 4 characters changes every time19:08
tomreynchrismo16: different urls, can you post them?19:09
ioriachrismo16  are you on livecd or chroot ?19:09
chrismo1689u7, 3v0o,szgf,nfqw19:10
tomreynchrismo16: what you do there is run some command, then have its output posted to the termbin website, which stores the output and lets us see it using these unique urls19:10
chrismo16I', only getting 1 at a time19:10
chrismo16lol got it19:10
tomreynefibootmgr -v | nc termbin.com 9999    ->  https://termbin.com/nfqw19:11
chrismo16Yes that is correct19:11
tomreynsudo ls -lR /boot/efi/EFI | nc termbin.com 9999    ->   https://termbin.com/szgf19:12
tomreynok19:12
chrismo16Yes that is correct also19:13
tomreynchrismo16: so those files in /boot/efi/EFI/ubuntu were last written at 00:46 today, what time is it there now?19:13
chrismo1631419:14
ioriataiwan19:15
tomreyn03:14 ? so then it's 2h30m ago. at this time you weren't even connected here19:15
chrismo16Also the time stamp may not be accurate. I was working on this yesterday and was having time issues between ubuntu and windows19:15
TJ-what's the betting the mount /boot/efi/ is from the wrong EFI-SP -  ssd (236970a6-5d57-4234-8b2d-e4b3cb6360fb) rather than the USB (7291f428-dc3d-4582-af19-981ec650962f19:16
chrismo16well its PM here now so that would be 15:1419:16
chrismo16so the wrong partition is being mounted at boot/efi ?19:17
TJ-chrismo16: show us "nc termbin.com 9999 < <( lsblk; cat /etc/fstab )"19:18
vasuviI installed the latest Ubuntu (19.04), and it in general works great, but am having some problems with GRUB (UEFI).  I multiboot lots of distros on my machine, so wanted the boot menu to say something more descriptive than "ubuntu".  I renamed the directory, deleted the old entry with ufibootmgr, and ran update-grub.  It seemed to work, but now I get a blank grub prompt and have to manually "configfile (hdx,y)/grub/grub.cfg" to get the actual menu.19:21
vasuviAny idea how to fix that?19:21
chrismo16termbin.com/urt119:22
TJ-chrismo16: tomreyn  "/boot/efi was on /dev/nvme0n1p1 during installation"19:23
TJ-chrismo16: show us "nc termbin.com 9999 < <( sudo blkid )"19:24
tomreyngood find, TJ- !19:24
TJ-tomreyn: it's only a comment note, but I'm wondering if there's an issue with the root-fs, need to check the UUIDs for all partitions19:25
chrismo16I tried moving grub to the external so I could make it portable (which I was able to boot it from a different machine)19:26
chrismo16termbin.com/wneh19:27
shibbolethspeaking of /boot/efi19:27
shibbolethis it possible to save/restore specific XXXX entries?19:27
shibbolethefibootmgr i suppose, anyone know how?19:27
ioriachrismo16, usually you don't mv grub; you just install it on the external device19:28
chrismo16ioria right. I used the wrong terminology. I followed this to do it https://askubuntu.com/questions/740253/how-to-install-grub-in-an-external-hard-drive19:29
chrismo16ioria right I used the wrong terminology. I followed this : https://askubuntu.com/questions/740253/how-to-install-grub-in-an-external-hard-drive19:30
TJ-chrismo16: everything there checks out in terms of it aiming at the correct partition UUIDS19:30
TJ-chrismo16: so I don't get confused - the problem is Secure Boot from the USB does *not* start?19:30
TJ-chrismo16: tomreyn  I'm suspecting this is one of those UEFI's that requires the operator to *trust* the boot-loader file from the UEFI Setup options19:31
ioriachrismo16, you have now grub installed on sda1 (and i think is the external device, right ?)19:32
chrismo16ioria correct19:32
ioriachrismo16, and how do you think to boot ubuntu when it's disconnected ?19:32
chrismo16TJ- I read that somewhere as well but do not see that option in my bios19:32
TJ-chrismo16: tomreyn *but* the 'trust' issue doesn't explain why grub-install is passing grubx64.efi to efibootmgr, rather than shimx64.efi19:33
chrismo16@iora ubuntu is installed on the external and windows on the internal19:33
ioriaok19:33
chrismo16After installing ubuntu I followed this if it helps https://askubuntu.com/questions/740253/how-to-install-grub-in-an-external-hard-drive19:34
sim590I have a computer for which the wireless card doesn't work after waking from sleep.19:35
chrismo16Then I installed a new kernel and then followed this up to step 5 to try to sign it: https://github.com/jakeday/linux-surface/blob/master/SIGNING.md19:36
chrismo16TJ- not sure if that addresses your question19:36
TJ-chrismo16: Let's try adding another UEFI menu entry called "Ubuntu SB" and you can test that: "sudo efibootmgr -c -d /dev/sda -p 1 -w -L 'ubuntu-SB' -l \EFI\ubuntu\shimx64.efi"19:37
ioriachrismo16, then i guess it's an HP thing (alias: you are loading the operating system from cannot provide the information needed by security in order to boot)19:37
sim590How can I diagnose this? I have tried restarting NetworkManager service, reloading kernel modules (iwlwifi and iwlmvm), setting the interface up with "ip link set wlp63s0 up", but no chance.19:39
chrismo16TJ-done19:39
chrismo16Want me to try to boot from it?19:39
TJ-chrismo16: now switch it into Secure Boot mode and test booting that "ubuntu-SB" entry19:39
TJ-sim590: see https://iam.tj/prototype/enhancements/Windows-acpi_osi.html19:39
chrismo16OK19:39
chrismo16I don't see it as an option in my boot menu19:41
chrismo16TJ-I don't see it as an option in my boot menu19:42
TJ-chrismo16: now that is strange!19:43
sim590TJ-: Thanks. I will try that!19:44
TJ-chrismo16: this is starting to look like a problem in the firmware, what is the make/model? do "dmesg | grep DMI:" and tell us what it reports19:44
chrismo16TJ- termbin.com/zshq19:47
TJ-chrismo16: HP's documentation isn't helpful unfortuntely; gives no indication of what the firmware setup options are19:52
TJ-chrismo16: let me tell you my theory of what is happening/happened19:52
TJ-chrismo16: originally I'm guessing you installed Ubuntu without Secure-Boot enabled, is that correct?19:52
becoolwhich log would i check to see if a remote file transfer failed?19:52
becoolor how a mysqldump process ended?19:53
chrismo16TJ- I believe that is correct, yes19:53
tomreynTJ-: sorry, had a phone call there.19:59
chrismo16TJ- its ok. I'm not against reinstalling but I just tried booting to the installation usb and am getting the not found errors20:00
chrismo16With secure boot that is20:01
tomreynhp has models which have a whitelist of EFI files names to boot from20:02
tomreynit could be this20:03
tomreynchrismo16: you had ubuntu secureboot working on this system though, didn't you?20:03
chrismo16tomreyn yes20:03
chrismo16wait no I didn't20:04
tomreynoh ok20:04
chrismo16I'm beginning to confuse myself. I've been trying a lot of things.20:06
chrismo16tomreyn I do believe I had it working before trying to sign the kernel20:07
Nubb3My Meta-key in bash is bound to ESC, any idea how to change that to ALT?20:10
chrismo16Yes, I had it working but when I installed the newer kernel it would not work unless I selected advanced and selected the older kernel20:10
TJ-chrismo16: tomreyn  Sorry, was looking at an unrelated CVE.20:10
tomreynno worries TJ- ;)20:12
TJ-chrismo16: I'm now more certain that ever that the problem here is that the HP's firmware, when in SecureBoot mode, requires the operator to have pre-trusted the bootloader file in order to add it to its menu. The fact that the command I gave you didn't result in an entry seems to confirm that20:12
chrismo16TJ- so should I reinstall?20:12
_dbuggerIn case anyone wants to repo in askubuntu.com here is a problem I have not managed to solve for quite some time...  https://askubuntu.com/questions/1153422/18-04-screen-tearing-with-nvidia-gtx-97020:13
TJ-chrismo16: I don't think it'll help, I think the issue is that the firmware has hard-coded by-pass trust of the Microsoft Windows bootloader but for any other it pre-requires you, the operator, to indicate your 'trust'20:13
TJ-chrismo16: would you be able to take a photograph of the HP's 'Security' setup page where you en/dis-able Secure Boot and upload it to imgur?20:14
TJ-!paste  chrismo1620:14
chrismo16ok20:14
TJ-chrismo16: Before we suggest a reinstall (a very 'Windows' thing to do, but not Linux!) lets be sure what the actual cause is :)20:15
TJ-hmmm, looks like ubottu is asleep20:15
TJ-oh!20:15
TJ-!paste | chrismo1620:16
ubottuchrismo16: 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.20:16
* TJ- kicks self20:16
netametacan you define/set a variable you can use globally all the time ?20:16
tomreyn!details | netameta20:17
ubottunetameta: Please elaborate; your question or issue may not seem clear or detailed enough for people to help you. Please give more detailed information; for example, we might need errors, steps, relevant configuration files, Ubuntu version, and hardware information. Use a !pastebin to avoid flooding the channel.20:17
=== _dbugger is now known as dbugger
netametatomreyn, So say i want to commit something to github, and i want my password to be in a variable20:18
TJ-netameta: eeeek!!!20:18
tomreynnetameta: use ssh keys20:18
netametainstead of typing it each time i could do something like $ghp20:18
TJ-netameta: see https://help.github.com/en/articles/connecting-to-github-with-ssh20:19
netametassh keys will work on 2 fector authentication?20:19
tomreyni don't know, haven't tried. but i don't see why not.20:19
TJ-netameta: I use mutli-factor with github but I've never had it affect ssh key usage, only the web site20:20
TJ-netameta: locally you'd have a password on the SSH key you create for github, and then have that cached in the ssh-agent so you do not need to type it every time20:20
chrismo16imgur.com/gallery/Sx7tMIP20:22
netametawell it effects normal login but i will check ssh20:22
chrismo16TJ- sory its imgur.com/gallery/Sx7tMlP20:23
chrismo16TJ- so you think it was working before because I was using the windows bootloader instead?20:24
tomreynchrismo16: you were using the windows bootloader to boot ubuntu?20:25
TJ-chrismo16: thanks; what is shown if you expand the "▶ OS Boot Manager" entry?20:25
TJ-chrismo16: no, sorry, I didn't complete my theory did i!?20:25
chrismo16TJ- imgur.com/gallery/OClSFh920:28
TJ-chrismo16: with SB disabled grubx64.efi can be installed, added to the UEFI boot manager, and booted at startup. But once you switch to SecureBoot as grubx64.efi is NOT signed by Microsoft UEFI key that entry will always fail, so the entry for Ubuntu should be updated to boot shimx64.efi, which IS signed by Microsoft. However, we just told efibootmgr to add such an entry and yet it didn't show in the menu at20:28
TJ-boot-time. That indicates it is either a) in the menu but not allowed in Secureboot mode or 2) was silently refused but without returning an error so efibootmgr thought all was OK20:28
chrismo16tomreyn I'm just speculating based on TJs comments20:29
sim590I can't find the PPA url for this https://launchpad.net/ubuntu/+source/universal-ctags/0+git20181215-2 ? I'm not really familiar with ppa. How can I find the proper URL?20:29
sim590That is, the proper url for doing like "add-apt-repository URL"20:29
tomreynchrismo16: oh okay ;) it'd actually be possible i think, so i thought i'd better ask20:29
chrismo16TJ- can we edit the one that exists to use shim?20:31
TJ-!info universal-ctags | sim590: there is no PPA, that package is part of the archive20:31
ubottusim590: there is no PPA, that package is part of the archive: Package universal-ctags does not exist in bionic20:31
TJ-hmmph!20:31
TJ-!info universal-ctags disco20:31
ubottuuniversal-ctags (source: universal-ctags): build tag file indexes of source code definitions. In component universe, is optional. Version 0+git20181215-2 (disco), package size 341 kB, installed size 952 kB20:32
tomreynsim590: this is not a ppa, but a package source for building a binary package which could then be distributed in ubuntu proper.20:32
TJ-sim590: which Ubuntu release are you using?20:32
sim590bionic20:32
TJ-sim590: there you go then; the package wasn't available for 18.0420:32
sim590I guess that I can backport it, no?20:33
TJ-chrismo16: We could but I'd rather not because another issue here (since the firmware failed to add "ubuntu-SB") is the firmware is broken and if we managed to change the existing entry the system might fail to boot Ubuntu at all20:33
TJ-sim590: checjk the package dependencies; you might be lucky and be able to (manually) download/install the .deb package from Disco20:34
tomreynsim590: if it doesn't depend on a newer libc6 or libraries / library versions not present in bionic, then yes.20:34
sim590May be I can add the source to disco and do preference pinning like on debian, no ?20:35
TJ-sim590: here's the depends: https://paste.ubuntu.com/p/fcH3SZcRQs/20:37
tomreynsim590: you could do this. it would break if dependencies are not resolveable in the future,20:37
TJ-sim590: no, because you'd be adding ALL the packages from Disco :)20:37
tomreynthe direct dependencies are resolvable on bionic20:37
TJ-chrismo16: experiment. boot the HP without Secure Boot to Ubuntu, then do "nc termbin.com 9999 < <( efibootmgr -v)" and lets see if that "ubuntu-SB" entry is there20:38
Bashing-omsim590: found: https://launchpad.net/~hnakamur/+archive/ubuntu/universal-ctags for 18.04.20:40
chrismo16TJ-its still there20:41
chrismo16termbin.com/nj9c20:42
sim590TJ-: Why would I be pulling everything from disco? I just do some pinning in preferences.d so that all packages are prioritized on bionic and I explicitely use "apt install -t disco package" for some packages, no?20:42
sim590I do that on debian with testing and unstable.20:42
TJ-chrismo16: haha, do you see the problem? the path has no /s in it "EFIubuntushimx64.efi)"20:43
sim590Bashing-om: Yeah. I found that one before, but on debian, the package maintainer is Alessandro Ghedini, so I was inclined to download his on ubuntu also.20:43
TJ-sim590: well I guess you could but it just seems like a sledgehammer to crack a nut, especially for a single non-essential package20:44
chrismo16TJ- haha. How do we fix?20:44
Sven_vBwhen using encrypted LVM, can I use arbitrarily weird python or bash scripts to produce the would-be-keyfile bytes?20:45
netametassh with 2 factor auth works !20:45
TJ-chrismo16: I'm trying to figure out how the command I gave you did that, because I tested it here and it worked.. is it possible you mis-typed the / characters ?20:45
Sven_vBlike submit this file to that server via HTTPS and XOR the reply with this other file20:45
chrismo16I copy pasted20:47
TJ-chrismo16: let's start by deleting that entry: "sudo efibootmgr -v -b 0 -B"20:47
TJ-chrismo16: good, so it must be something else then!20:48
TJ-chrismo16: ha, my fault, I didn't surround the path in single-quotes!20:48
chrismo16How do we edit?20:49
chrismo16Or do we delete and recreate20:50
TJ-chrismo16: let's try again with " sudo efibootmgr -c -d /dev/sda -p 1 -w -L 'ubuntu-SB' -l '\EFI\ubuntu\grubx64.efi' " and once you've done that, do "efibootmgr -v" and ensure the path has \s in it!20:50
TJ-chrismo16: as above, delete entry then create a new20:50
salamanderrakeIs there a network troubleshooting guide I can look at off line, between my network and what ever is going on with spectrum its dropping randomly and I need to restart the router and modem to reconnect again.20:53
chrismo16TJ-ok so that worked. I have booted with secure enabled and am at the blue screen to enroll mok20:57
chrismo16So basically I am at step 5 of https://github.com/jakeday/linux-surface/blob/master/SIGNING.md20:58
TJ-chrismo16: so making progress ?20:58
chrismo16yes20:58
=== im0nde_ is now known as im0nde
geniisalamanderrake: I would probably use the method described here: https://www.linuxjournal.com/content/downloading-entire-web-site-wget  to grab the guide found here: http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch04_:_Simple_Network_Troubleshooting for offline viewing20:59
TJ-chrismo16: can I step down now, the boot issue is now solved?20:59
chrismo16Looks like it is20:59
chrismo16Thank you20:59
TJ-chrismo16: good. Still puzzled how the system got into that state but ... *runs off and hides from the UEFI gremlins*21:00
Bashing-om!cookie | TJ-21:00
ubottuTJ-: Wow! You're such a great helper, you deserve a cookie!21:00
TJ-Bashing-om: I'm going to read the freezer for ice cream to cool my brain down :D21:01
Bashing-omTJ-: Good thought :) Ice cream cures many ailments.21:02
salamanderrakegenii: does that cover the new network tools, or still using the old network tools?21:11
geniisalamanderrake: Actually it does use the older ifconfig instead of the newer ip commands. But you can also still install the older ones21:29
genii..apologies on lag, it's end of day time at work and there was running around to do21:30
salamanderrakegenii: don't worry, I'm lagging because my ISP can't stay up.21:34
geniisalamanderrake: But as far as all the other diagnostic methods and applications, all of them are available normally on *buntu except tracepath is instead of traceroute21:35
salamanderrakeOh, ok.21:36
salamanderrakegenii: https://dougvitale.wordpress.com/2011/12/21/deprecated-linux-networking-commands-and-their-replacements/21:39
=== katnp`[chc is now known as katnip`
=== msalvatore_ is now known as msalvatore
oddtodduring the 18.04 installation of server I am prompted to import an identity is there any way to run your own identity management for this? I only see no / launchpad and 1 other.23:35
sarnoldoddtod: interesting idea23:37
sarnoldoddtod: my guess is that it'll hand whatever you input to ssh-import-id(1) and that can probably be extended easily enough..23:38
leftyfbssh-import-id only supports launchpad and github23:40

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