/srv/irclogs.ubuntu.com/2021/07/08/#ubuntu.txt

Enissaycompdoc: it works with gnome just fine, except that you need an active session already logged in... which is sad in case of crash/reboot00:45
EnissayI am thinking of setting up auto login during my trip so I can access remotely since I will have no physical access to my machine during that time :<00:47
compdocEnissay, I always install a minimal Mate desktop00:47
compdocno need for an active session00:48
Enissayhmmm, I may do it... that machine is a mini pc actually not my main00:48
EnissayI'll try that tomorrow then... time to hit bed at 3am :x00:49
Enissaywho am I kidding... I cant sleep with this in mind... Installing...00:52
compdoclol00:55
compdocyou installing ubuntu mate from scratch?00:56
Enissayno, over regular ubuntu 20.0400:56
compdocthats the best way. works great as a server or desktop00:56
compdocI mean from scratch00:57
compdocgood luck!00:59
Enissayofc, that's best way always01:02
Enissaymy machine still new, so I will try it as is now and format if needed01:02
EnissayMate Terminal is ugly a-f though01:03
EnissayBut on the bright side it indeed started a session even while none was active01:03
=== Guest9398 is now known as war
=== M4he is now known as mahe
ezakimakseems systemd and networkmanager are fighting over who controls hostapd, what's the right way to doi it?03:15
burts7358hello03:24
Bashing-omezakimak: Out of curiosity; what shows for the render ' cat /etc/netplan/01-network-manager-all.yaml ' ?03:38
ezakimakthere is no /etc/netplan03:48
leftyfbezakimak: cat /etc/os-release | nc termbin.com 999903:49
ezakimak20.04.2 LTS (Focal Fossa)03:50
leftyfbezakimak: that's not the whole output03:50
leftyfbezakimak: if you don't have /etc/netplan then you're not running Ubuntu 20.04. Or have modified it and removed netplan03:50
ezakimakhttps://paste.ubuntu.com/p/Pfr9HZN9Yv/03:51
leftyfbezakimak: so you removed netplan?03:52
ezakimakI didn't03:52
ezakimakit's possible the vendor did.03:52
leftyfbezakimak: vendor?03:52
ezakimakit's for an arm mx8 device03:52
ezakimakthey provided the image03:52
leftyfbezakimak: ok, then it's unlikely this is a version of ubuntu that we can support. You'll need to seek support from the vendor. Especially when the support issue is specifically due to what they modified03:54
ezakimaki've sent an inquiry as to why they removed it03:54
ezakimakso is netplan the new "standard" way of configuring networking in ubuntu moving forward?03:55
leftyfbezakimak: you'll also need to inquire about your networking issues regarding systemd and networkmanager03:55
leftyfbezakimak: yes03:56
leftyfbezakimak: https://netplan.io/03:56
ezakimaki already have my hostapd configured how I need it03:57
ezakimakas well as my dnsmasq03:58
ezakimakseems there still isn't a built-in way to make firewall rules persistent03:59
Bashing-omezakimak: However: in ubuntu netplan is the configuration generator, for either NetworkManager, or systemd-networkd.03:59
ezakimakanother config generator layer. great.04:03
ezakimakone more reason reminding me why I prefer gentoo04:03
alkisgIt does sound silly to have a generator just for 2 possible layouts. Just select one of these layouts and create a converter, not a third format...04:58
=== tomaw_ is now known as tomaw
=== Avago_Broadqual7 is now known as Avago_Broadqual
Guest914Does anyone know what process/service is responsible for running the scripts inside /etc/update-motd.d ?06:32
Guest914I'm trying to disable motd, and I'd like to stop this at its source, rather than make these files not executable06:32
ruediiI'm running into issues with my system having the video card crash on boot on kernel 5.11, but it works on 5.8.  I'm wondering if there is a bug.06:40
ruediiGuest914, what are you trying to achieve by stopping that script from running?06:42
Guest914Trying to disable the motd06:51
ruediiIn that case, just set the MOTD to be blank.06:52
ruediiThat way it will update it to be blank.    I know running a useless script seems unusual, but it makes more sense than ripping out a primary function, and you never know when you might need to add an MOTD back.06:53
Guest914Is there a singular process that runs all those scripts?06:54
ruediiYes, systemd handles them.06:54
ruediiThe update motd script runs in almost no time.06:55
ruediiBTW, if you want a custom MOTD, there are some seriously cool things you can do with it.  It parses all sorts of variables about the current state of your system, and you can set it to either parse on boot or on display.06:55
ruediiOh, did I mention you can do UTF8 or ASCII art if your terminal is capable.06:56
Guest914lol I'll keep that in mind the next time I want to echo an emoji06:56
ruediiJust be careful, a few UTF extended characters have minor issues with terminals not set to UTF-8.06:57
ruediiI think Ubuntu needs to move the default advanced VT to use UTF8 now that there are options available and all video cards that are the slightest bit modern are capable of it on a hardware level.06:58
ruediiAn 8 bit per a glyph framebuffer actually runs slower on some newer cards which are optimized for 16bit and 32bit access partitioning.06:59
rfmGuest914, if you just want to stop diplaying the motd at login, you want to comment out the pam_motd lines in //etc/pam.d/{login,sshd}06:59
ruediirfm, yep. that is an excelent way to do it too.07:00
ruediiI need to look into my video card issue further and get back.  I hope it's not the same one I was running into earlier on Ubuntu 20.04 (SMU crashing on DPM initializing.)07:01
rfmGuest914,  if you want to climb back further, there's motd-news.service and update-notifier-motd.service (both on timers() at least, and there might be more...07:01
ruediiThere is also a whole infrastructure for setting all sorts of neat stuff on MOTD.  For instance, you can check the current system load average, and available memory.07:02
ruediiNote that there are tricky little syntax distinctions between parse at runtime, parse at initial set, and parse at boot.07:03
Guest914Okay I found that /etc/profile.d/update-motd.sh is what's running all those other scripts.  So I'll just gut that out.  Thanks for the help07:04
=== shubbu_ is now known as shubbu
alzghHello. I have a question regarding how to interpret the man page for `sudo`. It's not Ubuntu specific. Can I ask it here? I don't intend to bind anyone by this question. It's OK if post-question, it is considered out of scope.07:21
ayrusalzgh: man sudo07:23
srcalzgh: just ask :P07:27
alzghayrus it's about how to interpret it. `man sudo` show the following for the `-i, --login` switch: https://paste.ubuntu.com/p/D3JZqgb3rN/. I use this switch to go into root since root is not enabled on my system (ubuntu focal), but as hard as I try I can't see this in the text of the man page.07:27
Croranalzgh: have you considered 'sudo su' ?07:28
alzghCroran this isn't my question, but I have not. `sudo -i` worked fine for me. My question is how to learn to interpret the man page.07:29
EriC^^alzgh: what do you mean by you can't see the text of the manpage?07:29
Croranalzgh: your question is unclear.07:29
alzghOK, sorry. Let me rephrase.07:30
EriC^^alzgh: if you type 'man sudo' then type '/-i' and hit enter twice does it not display it?07:30
EriC^^*hit "n" once07:30
alzghI know that `sudo -i` let's me login as the super user. I found this out through means other then the man page (I used `tldr` and google). Then I went to read the sudo man page and looked at it's description for `-i, --login` and didn't find any reference to the fact that this switch helps you login as the super user.07:32
ayrusalzgh: it's the `vim`.07:32
alzghI know how to search in the man pages.07:32
alzghMy question is, how should I learn from this https://paste.ubuntu.com/p/D3JZqgb3rN/ that the `-i, --login` switch enables me to login as the super user.07:33
alzghWhat am I missing there?07:33
alzghIn the man page.07:33
sneepMaybe you should be more interested in what Ubuntu means by "disabling the root user"07:33
sneep+instead07:33
ayrusalzgh: are you mentioning there is no entry for `-i` in the man page of sudo?07:34
Croranalzgh: sudo gives you the permissions of the super user. why wouldn't you think this extends to logging in as the super user?07:34
alzghsneep maybe that's the root of my confusion. If I knew what it meant under the hood, maybe I would how the description of this switch worked.07:34
sneepWell, if you run sudo bash, do you get a root shell? Yes07:35
Croranalzgh: easier to 'sudo su' to get a root shell though.07:36
EriC^^alzgh: in the sudo manpage there's a part where it says if no user is provided it defaults to executing the command as root, and that -i part pertains to the login part where it will execute the command as if you logged in, changes $HOME etc07:36
EriC^^(user is provided via the -u argument)07:37
sneepUbuntu doesn't set a password for the root user, thereby disabling authenticating as root in the standard login process07:37
alzghEriC^^ I think that clears things up. I was missing this part. the `-i` switch is just for loading the selected users preferences.07:38
ducassealzgh: are you saying you can't see the definition for -1 in the man page?07:38
EriC^^yeah exactly, just so you access the shell as if it were a login shell07:39
alzghI can see the definition, I wasn't able to understand it though. Was not able to make a logical connection between the text in the man page and how the tool worked.07:39
alzghThanks guys. Really helpful. Sorry for the confusion. I'm trying to read and use the man pages but it isn't always easy to understand them :D07:40
EriC^^no problem07:41
ducassealzgh: the man pages are meant to be definitive, not readable :)07:41
alzghyeah, true. Good to have this in mind next time I go through them. Right now, I use `tldr` in many cases.07:42
alzghAnd after I find what I'm looking for, I look it up on the man page and try to make sense to it.07:43
sneepBTW, all that bash does when adding -i is call /bin/bash with special arguments. Specifically, it prefixes argv[0] with a hyphen character when doing the system call to execute a program. That is understood by bash and other shells (by convention) to invoke a login shell.07:51
cxlHi, I am using grub on my computer. It's a laptop so I have my linux install on the whole internal disk using zfs. But I also have a windows installed on a usb drive and I'd like to add that option in grub instead of having to mash F12 every time I need windows. What's the right way? I took a look at /boot/grub.cfg and it says DO NOT EDIT08:21
EriC^^cxl: you can edit /etc/grub.d/40_custom and add a windows entry there, then 'sudo update-grub' to make a new grub.cfg08:22
cxlEriC^^: thank you I'll look there08:23
EriC^^cxl: no problem08:23
alkisgcxl: you can probably just run `update-grub` while you have the stick attached08:24
cxlalkisg: that did it, it found windows. much easier, thanks08:25
alkisg👍️08:26
cxlalkisg: I spoke too fast... it found it according to the command's output, I can see the new entry in /boot/grub/grub.cfg, but when grub actually loads then it's not on the list08:29
alkisgcxl: that might mean it's using a different grub.cfg from elsewhere?08:30
alkisgPress "c" to get a console in grub08:30
alkisgThen set root=(hd0,gpt1) or something, to get to where your grub.cfg is,08:30
alkisgthen: configfile /boot/grub/grub.cfg08:31
alkisgIf THAT one shows the entry, then go back and echo root etc to see where your initial grub.cfg actually is08:31
cxlok I'll try that now08:31
=== denningsrogue1 is now known as denningsrogue
kiwichrishEvening/Morning/afternoon.... :-)08:38
kiwichrishA Small Q: about Ubuntu Advantage subscriptions...  Does anyone know if you get a list on the website when you've got more than a community/free account of the host names / IPs that have subscribed under your key / account?  (Just got the free 3x one at the moment and looking at getting a paid subscription for work)08:40
=== shubbu_ is now known as shubbu
=== m_ueberall is now known as ueberall
alexg1hello08:53
kiwichrishHello08:54
ice9how can I run a script automatically whenever apt (install or upgrade) is executed for a specific package?09:23
kiwichrishhttps://askubuntu.com/questions/869219/how-can-i-run-a-script-after-a-specific-package-is-upgraded09:25
kiwichrish:-)09:25
sixwheeledbeastxy?09:34
bertptrssixwheeledbeast: https://en.wikipedia.org/wiki/XY_problem09:35
sixwheeledbeastit was a suggestion not a question ;)09:36
kiwichrishI know, but XY is what I was thinking as well. :)09:36
bertptrsI should pay more attention my bad09:37
=== denningsrogue8 is now known as denningsrogue
kiwichrishDon't worry, it didn't make sense anyway.09:38
SwahiliHi!10:07
SwahiliI'd like to do some tests on ubuntu. Installed it through a vm via parallels desktop for macos. Opened the chrome website and pulled the 64 deb. After installing, opened but its not rendering correctly, shows a red square, etc.10:08
gordonjcpSwahili: Jambo, habari gani?10:08
SwahiliAny idea what might've been wrong? I used to work on ubuntu, but haven't for the past 10 years more or less10:08
Squareim red yes10:08
Swahiligordonjcp: lol sorry if that's some swahili, I have no idea!10:08
gordonjcpSwahili: heh, my dad taught me how to say hello, goodbye, and please and thank you but that's about it10:09
SwahiliI also get that with band t-shirts that I don't actually listen to, but I like the art :~D10:09
Swahilihere's a screenshot: https://i.ibb.co/t25VprK/Screenshot-2021-07-08-at-11-10-11.png10:10
Swahiliguess its a parallels desktop issue and not the installation processs for chrome. I'll disable 3d acceleration10:12
=== Thin_icE is now known as pgp
Swahilidisabled 3d acc and worked10:18
ogra`👍10:20
edlzrhello everyone!10:47
=== oerheks1 is now known as oerheks
frogzillahello, my laptop screen turned black since a restart. Do you know how to solve it ? (https://linux-hardware.org/?probe=1ec52430a2)11:46
toddcfrogzilla: do you have a ubuntu install disk that you can boot to and use the try ubuntu option and verify if it is hardware or software11:58
frogzillahow ?12:00
frogzillaI have a usb.12:00
frogzillaand i can boot on it12:00
frogzillahow can I check if it is hardware or software ?12:00
frogzillaif it works with live cd it will be software so ?12:02
frogzillaand what can I do ?12:02
BluesKajHi all12:47
marvaHello i have question is lightdm still active project and developed by canonical?13:25
oerheksYes, used up to version 16.04 LTS. While it has been replaced by GDM in later Ubuntu releases, LightDM is still used by default in the latest release of several Ubuntu flavors13:28
marvaok ,thanks for answer i wanted to use https://github.com/ArcticaProject/lightdm-remote-session-freerdp2 but this project seems quite dead, no documentation. To start rdp session on startup13:33
oerheksfreerdp2 is in our repos too.. https://packages.ubuntu.com/source/focal-updates/freerdp213:36
oerheksno need to switch to lightdm13:37
marvai think its built directly to DM, and then allow direct connection to remote with RDP from login screen or something like that13:42
oerheksthat github project is dead..13:42
felipeAfter the last ubuntu update the bluetooth of my laptop isn't working properly. It is switched on but appears as off.14:30
=== holgersson is now known as cb4
felipeDMESG gives [    8.551508] Bluetooth: hci0: Failed to send firmware data (-38)14:31
felipeas well [    8.705889] iwlwifi 0000:00:14.3: BIOS contains WGDS but no WRDS14:31
felipe 14:31
felipeI am using 5.4.0-77-generic #86~18.04.1-Ubuntu14:32
ioriafelipe, try to reload the  btusb module; sudo rmmod btusb  , wait a couple of cs and sudo modprobe btusb14:45
ioria*secs14:46
Sheilongioria: That did not work14:49
=== alpha_Aqu1lae is now known as clone
=== niko is now known as o
=== cb4 is now known as holgersson
SheilongBluetooth error segfault lol15:31
Sheilonghttps://paste.ofcode.org/dHBudKPK7We9eVbEuU6THz15:31
leftyfbSheilong: what version of ubuntu are you running?15:33
Sheilongleftyfb: 18.04.115:34
leftyfbSheilong: why are you so far out of date?15:34
SheilongI just booted a livecd of Lubuntu 20 and the bluetooth did work.15:34
leftyfbSheilong: ok, we're not going to troubleshoot a live cd. Install it and then we can go from there15:35
leftyfbSheilong: why is your installed version so far out of date?15:36
Sheilongleftyfb: Because canonical still gives support to this version. Also I have a lot of stuff installed on that I need to do my work. I will only upgrade it when canonical does not support 18.04 lts anymore.15:36
Sheilongleftyfb: This version come when I brought a new laptop in 2019.15:36
leftyfbSheilong: I'm not talking upgrading 18.04 to 20.04. I'm talking 18.04.1 to 18.04.515:37
leftyfbSheilong: run the regular package upgrades and then we can continue.15:37
leftyfbSheilong: sudo apt update ; sudo apt full-upgrade15:37
leftyfbSheilong: I also suggest the latest HWE kernel: sudo apt install linux-image-generic-hwe-18.0415:38
Sheilongleftyfb: Okay. I will do it.15:40
Sheilongleftyfb: Done.15:42
leftyfbSheilong: reboot15:42
Sheilongleftyfb: Done.15:44
leftyfbSheilong: ( cat /etc/os-release ; uname -a ) | nc termbin.com 999915:45
Sheilongleftyfb: it still shows #86~18.04.1-Ubuntu15:45
leftyfbSheilong: please post the output termbin URL here15:45
Sheilonghttps://termbin.com/flpw15:45
leftyfbSheilong: ok, and what do you get for messages about BT now?15:46
Sheilongleftyfb: no. Everything seems to be okay. However, it does not see any bluetooth device on.15:48
Sheilonghttps://termbin.com/geyw15:48
leftyfbSheilong: hcitool dev15:50
leftyfbSheilong: you'll need to install bluez-utils # if the command isn't found15:50
Sheilongleftyfb: hci0DC:FB:48:75:1F:B015:51
leftyfbSheilong: ok, so your BT chipset is found and working15:51
SheilongThat's right. However, my phone is on and it can't find it.  I will switch between on and off the device.15:51
=== Ricardus_ is now known as Ricardus
Sheilongafter switch on and off, dmesg gives twice the message: "debugfs: File 'le_min_key_size' in directory 'hci0' already present!"15:52
leftyfbSheilong: ok, so this is a usability issue. Why are you trying to pair your phone and laptop?15:52
Sheilongleftyfb: sorry, I meant Earphone15:54
Sheilongheadphone15:54
lotuspsychjeSheilong: when you said your issue started after an update, did you mean after a kernel update, BT update or no clue wich?15:55
Sheilonglotuspsychje: It was a kernel update.15:56
lotuspsychjeSheilong: tnx, what you could try is boot a previous kernel as a test perhaps?15:56
Sheilonglotuspsychje: I did, but the problem remained.15:56
leftyfblotuspsychje: I think we are passed it being a kernel issue15:57
lotuspsychjeah you tested15:57
leftyfblotuspsychje: the chipset is detected and loaded just fine15:57
lotuspsychjekk15:57
leftyfblotuspsychje: they weren't running HWE. I had them upgrade to it now15:57
leftyfbSheilong: hcitool scan15:57
leftyfbSheilong: do you see your headphones in the results?15:57
Sheilongleftyfb: No.15:58
leftyfbSheilong: do you see any devices in the results?15:58
leftyfbSheilong: are your headphones currently in pairing mode?15:58
Sheilongleftyfb: Also to make sure that the headphone is working I just connect it to my phone and it is working fine.15:59
Sheilongleftyfb: that command did returning nothing.15:59
leftyfbSheilong: also, have you deleted the existing profile for your headphones from ubuntu so you can repair them?15:59
Sheilongleftyfb: Just did. Now I was able to connect.16:00
Sheilongleftyfb: Thanks so much for your help.16:00
lotuspsychjecookies for leftyfb16:01
raubjoin #nginx16:22
doubletwistSo what are the caveats of disabling feature-pinning for apparmor? As an alternative to just uninstalling or disabling apparmor altogether which is the recommended 'fix' by Proxmox Mail Gateway16:28
HornetHello - having real strife with an anomalous boot issue - anyone able to invest a bit of time to assist?  Long story short, this is a headless home media server, which seems to (re?)boot into read only mode on / for reasons unknown. the uuid I can see in fstab doesn't match anything I can see in blkid or grub.cfg and I cannot see why/how it has16:39
Hornetchanged (nor where it is even set to begin with)16:39
Hornet. Any help & support greatly appreciated16:39
Hornetfstab: https://termbin.com/4jrfp  mount: https://termbin.com/d68i  blkid: https://termbin.com/hplz   grub.cfg https://termbin.com/z3zl   grub probably is correct according to current blkid (547bf7de-c9c9-44c3-85ed-f02a07cbf4c9), it's fstab that has the wrong uuid: UUID=75755639-921e-4817-a790-353a6ea4d6c5 / ext4 errors=remount-ro 0  116:39
Hornethowever I cannot know (by nature of the problem) if that is what is causing it or not, it's the only obvious anomaly however16:40
leftyfbHornet: look in "dmesg" for any I/O or related storage errors16:54
Hornetif there were any on the initial boot would they not have been lost? this is read only this boot so dmesg might as well not exist16:55
Hornetaiui anyway16:55
ogra`Hornet, dmesg goes to a ringbuffer in ram it will have all info from the moment the kernel starts16:58
ogra`(we're talking about the dmesg command, not about the /var/log/dmesg file)16:59
Hornetright thanks :)17:00
Hornetwill look one sec17:00
Hornethttps://termbin.com/2966 ogra`17:00
ogra`the UUID difference is normal, one is a GPT UUID the other a filesystem UUID ...17:01
weedmicHornet: did this used to work, and then this happened, or is this a new setup and you are trying to get it to work the first time?17:03
Hornetused to work, was off for a while after a broken apt issue (circular dependancy unfulfillable yet somehow also uninstallable)17:04
HornetI sorted that BUT then this issue appeared behind it17:04
Hornetapt was unable to work at all, so it's not as if it died part way17:04
Hornetit just jammed and couldn't operate17:04
Hornetre UUIDs, if you're sure then I'll take your word for it, thanks17:05
ogra`Hornet, that does not look like there are any errors, and yor fstab seems to be preocessed fine as well, given the mount shows everything mounted properly17:09
ogra`Hornet, what are the exact errors you get ... the system seems to have booted pretty correctly based on the info you give17:10
Hornetogra`: there are no errors - I'm just stuck with a read only / partition17:12
Hornetand as there are no (save) errors I can't work out why17:12
Hornet*saved17:12
ezakimakNetworkManager failed to start, but I can't find any actual log info showing the cause17:13
Hornetogra this is the fdisk -l output if it helps at all https://termbin.com/2a7u17:13
ezakimak"NetworkManager.service: Failed with result 'exit-code'" is all I got17:14
Hornethttps://termbin.com/m5ky lsblk -f also17:14
ogra`Hornet, check if you see any errors with "journalctl -b", the dmesg log looks like a clean boot ... fdisk wont help here, the disks are all properly assigned and mounted, you look for mount errors17:14
Hornetlooking one sec, thanks17:15
HornetJun 13 10:59:21 ArcaneSanctum kernel: Command line: BOOT_IMAGE=/vmlinuz-4.4.0-173-generic root=UUID=547bf7de-c9c9-44c3-85ed-f02a07cbf4c9 ro nomdmonddf nomdmonisw17:15
Hornetlast entry in there about booting I think17:16
leftyfbezakimak: you are running a modified version of ubuntu. The modification specifically being networking. I don't think we can support that here. Please contact your vendor for support.17:16
ezakimakcause you don't use network manager?17:16
ezakimakand you don't use systemd?17:16
ezakimakyou can't tell me how to get log files out of it for an error message?17:17
leftyfbezakimak: because your vendor removed netplan and who knows what other modifications17:17
ezakimakthey claim it never had netplan to begin with17:17
ogra`Hornet, well, not sure where the last two options come from, the rest looks like a proper kernel cmdline17:17
ezakimakall netplan does is create config files17:17
ezakimakso how do you debug when that goes south?17:17
Hornetlook at the date though - it's jun 13th. that hasn't been written to in ages17:17
Hornetcertainly  not today's boot17:18
ogra`yeah, right17:18
ezakimakolder version of ubuntu did not use netplan, do you not support that?17:18
leftyfbezakimak: journalctl -u NetworkManager17:18
ogra`Hornet, well, try fdisk with the -N option, that will run it in no-op mode so you only see what it would do but it wont apply any changes17:19
tomreynHornet: did you run "journalctl -b" or just "journalctl"?17:19
leftyfbezakimak: if you install an official release of ubuntu, we can help you17:19
ogra`oh, right17:19
ogra`-b should really come from the ringbuffer17:19
Hornethornet@ArcaneSanctum:~$ sudo journalctl -b17:19
ezakimakthe journal is useless. I already told you what it says17:19
ezakimakah, I take that back, there's one more line that -xe didn't show me17:20
tomreynHornet: what does "uptime" report?17:20
tomreynyou said it was a server, so it's well possible that you last booted it on jnue 13?17:21
Hornet 18:21:16 up  1:46,  1 user,  load average: 0.00, 0.00, 0.0017:21
Hornetit was powered off so that would be a feat17:21
tomreynthe journal is indeed older than it should have been, though.17:22
tomreynHornet: what does this report?    cat /proc/version17:22
HornetI promise you it was off. if it can run while unplugged I should have had it mining bitcoin17:22
Hornethornet@ArcaneSanctum:~$ cat /proc/version17:23
HornetLinux version 4.4.0-173-generic (buildd@lgw01-amd64-037) (gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.12) ) #203-Ubuntu SMP Wed Jan 15 02:55:01 UTC 202017:23
tomreynthat's a really old kernel. i assume your apt problems are not really solved17:23
Hornetit's not been turned on for a long time, I fixed the apt circular issue, but then this appeared17:23
tomreynapparently this kernel was built on (and probably for) ubuntu 16.04, too17:24
tomreyndid you post output of "mount" above?17:24
HornetDISTRIB_DESCRIPTION="Ubuntu 16.04.6 LTS"17:24
Mekaneckwhich is EOL17:25
HornetI'm trying to update it!17:25
Hornetfstab: https://termbin.com/4jrfp  mount: https://termbin.com/d68i  blkid: https://termbin.com/hplz   grub.cfg https://termbin.com/z3zl fdisk -l: https://termbin.com/2a7u lsblk -f: https://termbin.com/m5ky17:25
tomreynmount reports "/dev/sde2 on / type ext4 (ro,relatime,stripe=32730,data=ordered)"17:25
tomreynnote "ro"17:25
HornetI do indeed note it17:25
tomreynthat's read-only17:25
Hornetthat is the root of the issue (hurr no pun intended)17:25
ogra`thats what we were discussiong the last 20min 🙂17:25
tomreyncat /proc/cmdline17:25
tomreynprobably has "ro" as well?17:26
Hornetyar17:26
ogra`it hopefully does17:26
ogra`thats a default17:26
HornetBOOT_IMAGE=/vmlinuz-4.4.0-173-generic root=UUID=547bf7de-c9c9-44c3-85ed-f02a07cbf4c9 ro nomdmonddf nomdmonisw17:26
tomreynso you asked to boot in read-only mode, and you got what you asked for., congratulations.17:26
HornetI didn't ask it to though17:26
Hornetit's rebooting into it itself17:27
tomreynwell that'S what you or some software put into your grub.cfg, it would seem17:27
ogra`tomreyn, thats a default ... the initrd remonts it rw usually17:27
ogra`check your own machine 😉17:27
tomreynogra`: oh my, right17:27
HornetUUID=75755639-921e-4817-a790-353a6ea4d6c5/               ext4    errors=remount-ro 0       117:27
tomreynsorry17:27
ezakimakis it better to use dnsmasq via networkmanager or directly with systemd ?17:28
ogra`there must have been errors somewhere ... but they are not logged anywhere17:28
Hornetthat's fstab's line about this (note UUID is different for reasons unclear)17:28
Hornetis there any way I can debug what is actually happening AT boot time?17:29
ogra`well, usually via dmesg and journalctl -b17:30
ogra`but the latter didnt give you a recent log17:30
tomreynhttps://lists.ubuntu.com/archives/ubuntu-devel/2014-February/038095.html discusses nomdmonddf nomdmonisw17:30
Hornethttps://termbin.com/s5ui that's dmesg17:31
ogra`i would try "fsck -N /dev/sde2" ... thats a no-op and should tell you about any errors17:31
tomreynjournalctl -eb    would move to the end of the log17:31
Hornetcan I run that fsck from a mounted (even read only) system? iirc fscks on mounts act weirdly17:31
ogra`as long as it is readonly it should be fine17:32
ogra`and as long as you use -N 🙂17:32
Hornettomreyn, that shows the last 20 minutes!17:34
Hornetshould I reboot it and try to see if anything useful ends up there?17:34
ogra`yay17:34
tomreynhmm, still weird that it started logging this session so long ago.   journalctl -p4 -b | nc termbin.com 9999    should give us more clues17:36
tomreynoh wait this is 16.04, it doesn't usually have persistent journald17:36
Hornetsudo journalctl --since=yesterday --until=now >>> https://termbin.com/wasj17:37
Hornetthanks greatly for helping with this btw. I seem to end up with all the exotic issues17:38
ogra`well, thats already readonly ...17:38
tomreynJul 08 16:35:03 ArcaneSanctum ntpdate[987]: [..] offset 2180128.236919 sec    might explain some weirdness about logs.17:39
ogra`yeah17:39
ogra`smells like a wrong BIOS clock or broken battery ... but that still doesnt explain the readonly state17:40
tomreynit doesn't. but we can assuem that    jorunalctl -b   does indeed output the current boot log.17:40
ogra`the fact that npdate runs successfully before the network is up is also interesting17:41
Hornetthe battery is old, I can change it, fairly sure I have a spare17:41
HornetI have no idea how it's doing that bit of voodoo though?17:41
ogra`so paste the full log of journalctl -b, the timestamps might be moot here17:42
Hornetuptime shows correct current time, but will do, one sec17:43
Hornethttps://termbin.com/be1p17:43
ogra`Jun 13 10:59:21 ArcaneSanctum kernel: EXT4-fs (sde2😞 mounted filesystem with ordered data mode. Opts: (null)17:45
Hornetwait how are there errors in there about read only filesystesms17:45
ogra`looks all good17:45
ogra`Jun 13 10:59:21 ArcaneSanctum systemd-remount-fs[279]: /bin/mount for / exited with exit status 1.17:45
ogra`there you go !17:45
ogra`Jun 13 10:59:21 ArcaneSanctum systemd-remount-fs[279]: mount: can't find UUID=75755639-921e-4817-a790-353a6ea4d6c517:46
ogra`so you are right ... the UUID is wrong in fstab it seems17:46
Hornetif this is saved on the / drive how was this log even written17:46
Hornetthat was my gut reaction but I thought uuids couldn't change ever17:46
Hornetand I certainly didn't put that in there17:47
ogra`its not written ... journald logs to ram by default and only flushes to disk later17:47
Hornetoh I see so that 'old' log is actually today still17:47
ogra`most likely, given your clock is off17:47
HornetI thought the last time I worked on it was the 13th though (my birthday so I remembered)17:48
ogra`so for a test i'd try to comment the original / entry in fstab and change to the correct one for sde217:48
Hornetthat's one hell of a coincidence if so17:48
HornetI'll have to edit that with a live boot usb then, I'll dig one up and wire the box into something visual17:49
ogra`547bf7de-c9c9-44c3-85ed-f02a07cbf4c917:49
ogra`that seems ot be the one you want17:49
HornetI know! /dev/sde2: LABEL="slash" UUID="547bf7de-c9c9-44c3-85ed-f02a07cbf4c9" from blkid17:49
Hornetbut that should -always- have been the one in fstab17:49
ogra`you can just "sudo mount -o remount,rw /"17:49
ogra`and then edit fstab17:50
Hornetsomething has altered that, or, the sde2 uuid has changed since I wrote it in fstab17:50
Hornetoho, black magic, I'll try 2 seconds17:50
ogra`well, UUIDs can be changed with tune2fs ...17:50
ogra`perhaps you ran something that called it or so17:50
* ogra` needs to go afk ... but i'll return later ...17:51
Hornetmount: can't find UUID=75755639-921e-4817-a790-353a6ea4d6c517:51
Hornetlol.17:51
Hornetthanks greatly for your help though :)17:51
Hornetsame fstab error is causing it to begin with17:51
Hornetmaybe we should have just done the remount command as debug stage 1!17:52
tomreynthat's not safe to do if the file system is corrupt17:52
ogra`it isnt corrupt ... the UUID changed somehow17:52
ogra`which causes: Jun 13 10:59:21 ArcaneSanctum systemd-remount-fs[279]: mount: can't find UUID=75755639-921e-4817-a790-353a6ea4d6c517:53
ogra`so it never gets remounted RW17:53
ogra`anyway, out ...17:54
Helmholtz1Why none my SysReq Magic sequences work except hard reboot?17:54
tomreyndoes this rule out that the file system is corrupt? i don't assume it is since we know that the initial mount failed.17:54
tomreynbut we only learnt this in the past 5 miuntes, i think17:54
tomreynHelmholtz1: i think some others should fwork, too, but certainly not all of them:  cat /etc/sysctl.d/10-magic-sysrq.conf17:56
tomreynHornet: so you know how to proceed?18:00
Hornettomreyn: going to live boot something to edit that fstab manually, then reboot and see what blows up18:00
Hornetwiring up kvm atm18:00
tomreynwhy live boot, did you not remount.rw already?18:01
Hornetno, it can't remount as fstab is errant!18:01
Hornetthat's the root of all this, as I suspected an hour ago18:02
Helmholtz1tomreyn, huh...so enabling them is a security issue18:02
Hornethornet@ArcaneSanctum:~$ sudo mount -o remount,rw /18:02
Hornet[sudo] password for hornet:18:02
Hornetmount: can't find UUID=75755639-921e-4817-a790-353a6ea4d6c518:02
alkisgYou can override /etc/fstab if you want18:02
Hornethornet@ArcaneSanctum:~$18:02
alkisgYou can create /run/fstab and then run mount --bind /run/fstab /etc/fstab18:02
alkisgAnd then mount -o remount,rw /18:02
alkisg(although mount -o remount,rw <device> should work even without the fstab being correct)18:02
HornetI've already moved the server so can't try that now18:03
Hornetwill let you know what happens in a few though18:03
tomreynmake sure you really reinstall or upgrade this system once this is solved18:03
HornetI wanted to upgrade to 20.4 lts18:03
tomreynHelmholtz1: yes, can be, depends.18:04
Helmholtz1`enable sync command`18:04
Helmholtz1what is this?18:04
tomreynsync write buffers to storage18:04
Helmholtz1So in general what can I do when system is completely hung up?18:04
Helmholtz1Like even mouse doesn't move18:05
tomreynssh in, or switch to a tty18:05
tomreynor use a netconsole, or a serial console18:05
tomreynif none of this works wither, then you can just sysrq sync + reboot18:06
tomreyn*either18:06
Helmholtz1tomreyn, This is my main laptop. even can't switch to TTY. A particular vpn app causes this18:08
Helmholtz1I don't know it's Firefox bug or this app's bug18:08
Helmholtz1honestly, Linux shouldn't behave like this18:08
tomreynit doesn't18:08
tomreynunless the app takes all resources18:08
Helmholtz1I mean kernel shouldn't let it take all resources18:09
=== RedNifre_ is now known as RedNifre
Helmholtz1at least keyboard input should interrupt everything18:09
tomreynyou mean ctrl-c? that wouldn't work on X18:09
tomreynyou probably should not be running "a particular vpn app", or run it differently, mor constrained, if it achieves to put the system out of cpu resources18:11
=== rhymeswithmogul is now known as signofzeta
tomreynsync has the benefit that you may be able to tell what went wrong after reboot, by reviewing the logs from before you rebooted18:12
Helmholtz1tomreyn, embarrased to say that I didn't understood "write buffers"?18:12
Helmholtz1What buffers? did you mean journald?18:13
oerheksNo need for a 'particular vpn app', just a few mouseclicks and name/password .. https://help.ubuntu.com/stable/ubuntu-help/net-vpn-connect.html.en18:13
Helmholtz1oerheks, every vpn app does its own thing. some use openVPN (which could be integrated as you said)..some reverese SSH...newer ones wireguard18:14
Helmholtz1This one is a go-app which does reverese SSH I guess18:14
oerheksoh, that worries me..18:14
alkisgHelmholtz1: when an app writes to disk, the kernel may cache it instead. "sync" writes that cache/buffer to disk18:15
tomreynHelmholtz1: disk writes don't usually go to disks immediately, but are kept in memory for a few a few seconds, so as to prevent constatly writing to the disk. that's write buffering.18:15
Helmholtz1So when we sync, it essentially flushes every running app's working memory to disk (if it wanted to write to disk in the first place)18:16
Helmholtz1So if this app does not write its log, sync would not be heplful18:16
tomreynso if there are important logs on this critical event that caused the system to become unresponsive for you, have been logged to ram only, but not yet written to disk, and you reboot (without syncing the write buffer to disk) then you'll loose those18:16
Helmholtz1It spams ~/.Xresources about warnings on gtk tray though18:17
Helmholtz1tomreyn, Can journald somehow catch what process got all system resources?18:17
Helmholtz1s/~/.Xresources/X-session-errros18:18
tomreynno, not unless something logs it there18:18
tomreynwhich ubuntu releae and desktop are you running?18:18
Helmholtz1tomreyn, 18.04 but Xfce..18:19
Helmholtz1I know it's outdated18:20
Helmholtz1https://dpaste.com/A8KPJQ34P18:20
tomreynthe hardware or the ubuntu release?18:20
Helmholtz1My journald is spammed by ;CPU0: Package temperature above threshold, cpu clock throttled (total events = 11153)'18:20
Helmholtz1tomreyn, the release18:20
tomreyni don't help with eol releases unless it's about upgrading to a supported release18:21
Helmholtz1tomreyn, ok 🌹18:21
oerheksrtkit-daemon, only puseaudio uses that, IIIRC18:22
=== rhymeswithmogul is now known as signofzeta
oerheksoh, EOL xfce .. i hope you have Firefox 89.0.218:23
morgansWhere doies cheese store it's images, ubuntu 20.04 - yes I did try google.18:49
morgansWhere does cheese store i's images? ubuntu 20.04 - yes I did try google.18:50
morgansWhere does cheese store its images? ubuntu 20.04 - yes I did try google.18:50
oerheksmorgans, standard in ~/Pictures18:50
morganslet me look again.18:50
MekaneckIf you googled it for real you'd know it: By default, Cheese saves the photos and videos in the Webcam folder in your user's Photo or Videos folder of your home folder.18:51
morgansDOH. In the "Webcam" folder. Thanks for being kind to the dumb. (And would help some of us in some Ubuntu help page.)18:51
morgansThanks oerheks18:52
Mekaneckmy next answer was ~/Pictures/Webcam18:52
Mekaneck:)18:52
Hornetogra` , tomreyn : looks like that has it writing again18:54
Hornettook a long time to boot up to sshable though, when I had it on monitor it was running disk checks18:54
tomreynHornet: congrats. and: hush, release upgrade time18:55
Hornetunsure if it should be doing that each boot but who knows, problem for another time! next step is upgrading yes18:55
Hornetis there likely to be anything complex about an upgrade from this old?18:55
tomreynit probably needed to check all file systems during this boot18:55
Hornetlast boot was the same except no networking (no cable that reaches here)18:55
Hornettime taken implies it did the same checks18:56
Hornetit's now back in the corner by the router18:56
tomreynmake sure you have internet access so you can bring it up to date on 16.0418:56
tomreynthen disable all third party repositories, then sudo apt update, then check what you need to remove or downgrade, yet: what does this output? apt list --installed | grep ',local\]$' | nc termbin.com 999918:57
Hornethrmmmm, apt can't lock18:57
tomreynmaybe you have unattended-upgrades installed18:58
Hornethttps://termbin.com/0j7w18:58
tomreynfinally, when this and anything around apt updates + apt full-upgrade  looks sound, you can do the release upgrade18:59
tomreyn(after ensuring complete and restorable backups are present)18:59
Hornetroot      1325  0.0  0.0   4500   668 ?        Ss   19:52   0:00 /bin/sh /usr/lib/apt/apt.systemd.daily update19:01
Hornetroot      1338  0.0  0.0   4500  1568 ?        S    19:52   0:00 /bin/sh /usr/lib/apt/apt.systemd.daily lock_is_held update19:01
Hornethornet    2085  0.0  0.0  14224   924 pts/0    S+   20:01   0:00 grep --color=auto -i apt19:01
Hornetso if that's something working in the background should I just wait & hope it sorts things out itself?19:02
sarnoldHornet: yeah, just wait for that to run to completion19:04
tomreynyou can run   watch pstree -n 1325   to see whether it's child processes are changing19:06
Hornetseems to show nothing19:12
sarnoldah then it's probably done and you can start your apt update && apt upgrade commands19:12
Hornethowever in ps aux the pids have changed for those programs19:13
Hornetno19:13
Hornetlooks like it reexecuted them19:13
HornetI think19:13
sarnoldd'oh19:13
Hornetif it thinks it's actually doing something though then I'll let it19:13
=== pi0_ is now known as pi0
alkisg"repty" lets you "steal" the stdio tty from a process, maybe that way we can interact with unattended upgrades when we want to...19:33
sarnoldthey're running without a pty in the first place, so I'm not sure if you could realistically attach one after the fact. (I'd be curious what your results are ;) -- but because it's not intended to have a terminal, I don't think there's much room for interacting with it19:34
TJ-You'd need to set APT::Periodic::Verbose = 3 to see what it is doing20:25
TJ-there's a neat wrapper around gdb called fdswap which could change the current file descriptor targets on a running process. https://www.redpill-linpro.com/sysadvent/2015/12/04/changing-a-process-file-descriptor-with-gdb.html20:29
=== hugoposca is now known as hposca
morganshow do I change my background image (fill zoom tile...) - i googled it but the control is no longer in Appearances or in Background.21:03
Mekaneckmorgans: on Gnome.... not21:04
morgansnor in Display. (have been looking at the suggestions. BTW I use duckduckgo not the goog21:04
oerheksclick on background >right mouse, change background?21:06
Mekaneckoerheks: he means the zoom, tile, fill options21:07
Mekaneckthose options are gone in Gnome21:07
oerheksOh oke, yes, they are moved to gnome-tweak-tool21:08
Mekaneckah, true21:08
Mekaneckmorgans: sudo apt install gnome-tweak-tool21:08
Mekaneckafter that you'll find it as Tweaks among the other apps21:09
Mekaneckthere you'll find the zoom, tile, fill options21:09
Mekaneckthanks oerheks21:09
oerhekscentered scaled stretched ..21:09
morgansoerkecks, I have it. Will go there. (not ready for ordinary let alone prime time. (what were they thinking to remove that?)21:12
morganswhat do I do to show the entire desktop without minimizing each window one by one?21:13
oerheksi think there is a list of short keys?21:14
Mekaneckmorgans: https://wiki.gnome.org/Design/OS/KeyboardShortcuts21:21
Mekaneckmorgans: if you have issues running Gnome 3 know there's also Ubuntu MATE with a traditional Gnome 2 layout back from the good old days and there's Kubuntu and Xubuntu too. You could try those then.21:24
nuxilis it possible to create a 8K resolution or alike, in ubuntu when its running in a vm? i tried using cmd: xrandr --size 7680x4320  but it says no availeble modes for that resolution.22:18
weedmicnuxil: yes, but... you need a physical second gpu that you can assign to the VM.  if you are using an ethereal gpu, then no as you only get 128mb max.22:22
nuxilthe thing is i need a virtual resolution that is bigger than what the monitor can provide.22:23
nuxilhmm22:30
DrManhattanI love the whole "Use of this channel implies acceptance of TOS"22:32
DrManhattanthat's cute22:32
leftyfbDrManhattan: can we help you with something?22:33

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