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

noarb-what's the correct way to sync an ubuntu server with a local ntp server? I'm having trouble turning off system timedatectl stuff to get it to sync with antp server. Is chrony the right tool? Or is there just a setting I can change with default tools?00:24
noarb-on the server docs page I'm finding stuff the ubuntu to be the ntp server, not the client00:25
sarnoldnoarb-: you can use chrony if you'd rather, I think you just systemctl disable systemd-timesyncd.service ; systemctl stop systemd-timesyncd.service ; apt install chrony ; then do whatever is necessary to configure chrony00:28
leftyfbnoarb-: https://vitux.com/how-to-install-ntp-server-and-client-on-ubuntu/00:28
leftyfbnoarb-: start at: "Configure NTP Client to be Time Synced with the NTP Server00:29
leftyfb"00:29
noarb-leftyfb: I used the tutorial you'd posted. Is there a way to verify at the end that it's working? I was able to use  sudo ntpdate NTP-server-host to get the offset of my NTP server, but now that command says "the NTP socket is in use, exiting".  ntpq -p shows  NTP-server-host .INIT.          16 u    1   64    0    0.000    0.000   0.000, but not sure how else to verify00:38
noarb-my initial offset was about -0.500s, so it's hard to tell by eyeballing it if it's working00:39
noarb-timedatectl still says System clock synchronized: yes; NTP service: n/a00:45
Guest9029Having issues downloading/installing virtual box on ubuntu 20.0401:06
Bashing-om!info virtualbox focal | Guest902901:11
ubottuGuest9029: virtualbox (6.1.16-dfsg-6~ubuntu1.20.04.2, focal): x86 virtualization solution - base binaries. In component multiverse, is optional. Built by virtualbox. Size 20,964 kB / 109,033 kB. (Only available for amd64.)01:11
=== M4he is now known as mahe
srcGuest9029: you will have to way more specific than that01:17
Guest9029in the terminal it was giving me an error waiting for cache lock: could not get lock.01:18
sarnolddo you still get the error?01:18
Guest9029yes01:20
sarnoldput the command and error message into a pastebin site and share the link, someone can probably take a look and make suggestions01:20
srvguest your trying to update intthe terminal and tell you that is lock weel the way i do is power off the vm then power on and try again to update and upgrade01:21
srvand for me works that way if is that what you trying to do01:22
Guest9029okay i will try this thank you01:23
sarnoldif it's what I think it is, the unattended-upgrades script running, then you're powering off potentially in the middle of updates. That's not a great idea.01:23
Bashing-omGuest9029: Be aware that there can be only one instance of a package manager active at a given time. What shows - ps -efly | egrep '(dpkg|apt)' - ?01:24
oerhekslock sounds unattended updates are ready01:30
oerheksalways, run proper updates first, then install01:30
sarnoldif guest* manages to come back, I wouldn't be surprised if the next step is debug why apt is broken..01:30
oerheksmaybe his mirror is in california, it is shaking there for some time now01:31
sarnold"mirror mirror on the floor..."01:32
pikapikaIs it practical to make a custom user who has mostly read only rights for installing the tarballs if I am paranoid about it affecting system files? (ie even if I chose to modify the prefix in 'configure')? Or will just installing it without a root mode be fine and it shouldn't be able to touch system folders even if it mistakenly tries to02:07
leftyfbpikapika: use lxd02:15
pikapikaleftyfb, isn't a container a rather "overpowerd" tool for that?02:16
leftyfbpikapika: I use it all the time for testing things like that, no02:16
pikapikaHow much storage does a blank lxd take02:16
pikapikado you get to set the directory, or its installed in some system location by default02:16
leftyfbpikapika: depends on the distro you choose and you can pick dir mode or btrfs, the former allowing you to pick the location only by first settings configs. Pretty sure btrfs allows you to change the location of the pool as well. Neither of which I'm familiar with02:18
ruediiOh, I noticed a small bug on recent versions of firefox.  It seems the cache doesn't migrate properly, so if anyone is experiencing crashing, clear your cache directory (~/.cache/mozilla/firefox)05:04
ruediiI should see if cruddy cache is also causing my issues on Android.05:05
lotuspsychjei didnt have crashing ruedii but i noticed some 100% cpu on some FF sessions on latest updates05:06
lotuspsychjemaybe related05:06
lotuspsychjecheckout htop while playing with FF05:07
ruediiCould be worth checking deleting the cache.  Such bugs can express in different manners based on people's system setup.05:08
ruediiNo harm in deleting that cache directory, it's all votile stuff.  I'm thinking of making that directory a tmpfs on my system to speed things up.05:09
ruediiMaybe make it tmpfs with backing store, though.05:09
lotuspsychjei tested it on a clean FF reinstall with all dirs removed05:09
ruediiDid you remember the cache directory.  It's separate for some reason (likely in case someone wants to make the cache directory no-sync and/or tmpfs)05:10
lotuspsychjeyeah we used to set cache on 0 and combine with ssd05:11
lotuspsychjebut i think my issue is caused by something else05:11
lotuspsychjeafk a bit first05:12
ruediiCertain websites waste a LOT of processor time and on slower processors will use 100%.  (Cough, facebook, cough).05:19
=== Ricardus_ is now known as Ricardus
=== kostkon_ is now known as kostkon
back_from_death8hey06:12
back_from_death8I am searching for Nautilus source code GIT that has been used in ubuntu 18.0406:12
=== arif-ali_ is now known as arif-ali
docmaxi need to compile an extra module from kernel, how can i do this in ubuntu?06:36
rfmdocmax, this looks like it might help https://serverfault.com/questions/674415/compiling-an-individual-kernel-module-debian-ubuntu06:47
alkisgDoes `apt update` fail for everyone or is it just my ISP?07:45
=== EriC^ is now known as EriC^^
toddcalkisg: works for me are you root or add sudo before apt08:02
alkisgtoddc, it appears that us.archive.ubuntu.com maps to either 91.189.91.38, 91.189.91.39; the first one is broken, but if I force .39, then it works08:04
alkisgWhat do you get with `host us.archive.ubuntu.com` ?08:04
alkisg(thank you btw)08:05
alkisgtoddc: never mind both seem to be working now. Maybe it was some server syncing glitch08:09
isgjHi I installed gnome-calendar through snap on Ubuntu 20.04. It doesn't start. Is there a way to see the problem why it's not starting? Which is the recommended way to install the calendar, apt or snap?08:48
weedmicis "snap" something like flatpak?08:49
isgjkinda08:49
weedmicok, it came up yesterday and that reminded me.08:49
EriC^^isgj: how are you starting calendar? maybe you can start it from the terminal using the command and see any output it gives08:57
isgjhttps://paste.ubuntu.com/p/hxR2DJJ7tF/09:00
EriC^^isgj: try without sudo09:02
isgjthat was run with sudo https://paste.ubuntu.com/p/9gtCY6FT43/09:05
=== pseudocrat is now known as Pseudocrat
EriC^^isgj: give this a shot https://github.com/bitwarden/desktop/issues/215#issuecomment-62343691909:08
ubottuIssue 215 in bitwarden/desktop "Errors from snap install on Ubuntu...." [Closed]09:08
EriC^^isgj: seems like it might be a bug in the snap and it needs to connect to dbus and can't cause it's missing some part in the config, just a guess09:13
isgjthanks, all the permissions are on, but it doesn't work09:15
EriC^^isgj: is there anything showing up in "dmesg -w" when you try running gnome-calendar from the terminal?09:21
isgjwhen I run it without sudo https://paste.ubuntu.com/p/bGcB44vSfj/09:26
EriC^^no idea, maybe you can allow it via apparmor somehow, ive no experience with it though or how to use it safely09:28
EriC^^isgj: maybe you could use a trusted ppa or another trusted snap that doesnt have the issue09:28
isgjhmm, this snap is from canonical09:31
hugottyis ports.ubuntu.com down for anyone else?09:45
alkisghugotty: I had the same issue an hour ago with us.archive.ubuntu.com09:46
alkisgIt got resolved automatically after 10 minutes09:46
alkisgI think they introduced a new server syncing script that is somehow broken09:46
hugottyAh alright, I'll wait a bit then, thanks alkisg09:52
=== Europa is now known as Guest4201
=== Europa_ is now known as Europa
isgjI had to log out and in again, but it doesn't sync the calendars 😫️10:02
alkisghugotty: does it work now? I've reported the issue to #ubuntu-devel and they're asking for feedback10:04
TR1950X*.ubuntu.com is down?10:11
guivercTR1950X, no issues from here..10:14
mauzillaHi everyone, im running into a bit of a strange situation. We have a backup server (20.04) that is burning out of free space, however, I cannot determine what is growing as there is about 3tb of storage unaccounted for. The server has 18tb is is currently almost 95% full (17tb used), however, using du -h I can only account for about 13tb10:45
mauzillait has to be something in our /home directory but it's as if du -h only returns 13tb max10:45
mauzillacan this be possible?10:46
mauzillaor is there another way for me to get better accurate amounts when looking for storage usage?10:46
lotuspsychjemauzilla: im using bleachbit and stacer usualy to cleanup space and tmp files, not sure whats most reccomended for server10:47
lotuspsychjebleachbit can be used in cli10:47
mauzillalet me install and have a look10:47
lotuspsychje!info ncdu | mauzilla perhaps also?10:54
ubottumauzilla perhaps also?: ncdu (1.15.1-1, hirsute): ncurses disk usage viewer. In component universe, is optional. Built by ncdu. Size 43 kB / 104 kB10:54
hugottyTRX1950X: same here, can't reach any of canonical's servers11:05
hugottyTR1950X *11:05
lotuspsychjehugotty: we have #ubuntu-mirrors to ask about known issues on ubuntu repos if you like11:06
hugottyalright I'll hop in there. Think this might have something to do with ISPs because traceroute just stops at one of my ISP's switches11:07
hugottyhuh, the problem just now resolved itself!11:11
lotuspsychjethe magic of ubuntu hugotty :p11:11
hugottyit certainly felt magical ;)11:18
lotuspsychje: )11:18
=== BlessJah_ is now known as BlessJah
=== rhymeswithmogul is now known as signofzeta
adacHi ther!13:20
adacAny ideas on how to solve this issue? https://pastebin.com/2vLjCi2z13:21
Saxleadac: try sudo apt --fix-broken install13:22
=== Marco_Polo is now known as Guest9248
adacSaxle, hmm no luck what I get is this: https://pastebin.com/jt66rkuu13:26
lotuspsychjeadac: what about sudo apt autoremove and sudo apt update && sudo apt full-upgrade ?13:29
Saxleadac: Are you on LTS 20.04? Did you upgrade from 18.04?13:30
=== Abrax- is now known as Abrax
Saxleadac: try to reconfigure the packages which need configuration. sudo dpkg-reconfigure13:36
adacSaxle, yes I did an upgrade grom 18.04 to 20.04 some time ago13:37
adaclotuspsychje, I'll try13:38
adaclotuspsychje, Saxle actually automremove does indeed remove some packages, but one still has an issue13:41
adachttps://pastebin.com/Lc1rwmCs13:41
adacsudo dpkg-reconfigure linux-image-5.8.0-59-generic13:42
adac usr/sbin/dpkg-reconfigure: linux-image-5.8.0-59-generic is broken or not fully installed13:42
lotuspsychje!info linux-image-generic focal13:42
ubottulinux-image-generic (5.4.0.77.80, focal): Generic Linux kernel image. In component main, is optional. Built by linux-meta. Size 3 kB / 18 kB. (Only available for amd64, armhf, arm64, powerpc, ppc64el, s390x.)13:42
lotuspsychje!info linux-image-generic-hwe-20.0413:43
ubottulinux-image-generic-hwe-20.04 (5.11.0.22.23, hirsute): Generic Linux kernel image. In component main, is optional. Built by linux-meta. Size 3 kB / 18 kB. (Only available for amd64, armhf, arm64, powerpc, ppc64el, s390x.)13:43
Saxleadac: try sudo apt install --reinstall linux-image-5.8.0-59-generic13:43
adacSaxle, it says https://pastebin.com/P0Ht0yGM13:44
adacIf I want to remove this package I get:13:47
adachttps://pastebin.com/ZsGYkhvC13:47
lotuspsychjewow that looks weird13:47
adacstrange that it wants to remove all that13:47
adacuh yes13:47
adacLD13:47
lotuspsychjewhy would hwe depend on 5913:47
lotuspsychjewell maybe you should do it, and try reinstall hwe back after13:48
adacyepp I just did. lets see what happens :)13:48
SaxleMaybe its not fully installed? adac: Try sudo apt install linux-image-generic-hwe-20.04 linux-hwe-5.8-headers-5.8.0-59 linux-generic-hwe-20.04 linux-headers-generic-hwe-20.0413:50
adacSaxle, will now run my ansible again, should re-install all what is needed. Lets see13:52
SaxleGood luck13:52
adacHehehe thanks :-)13:52
=== Abrax is now known as Azriel
=== Azriel is now known as Abrax
adacHmm nope no luck13:57
adacOne more question: Is that correct:13:57
adachttps://pastebin.com/3ujPP8QJ13:57
SaxleYes to install hwe kernel for 20.0413:58
SaxleLooks like it didn't install before when you upgraded adac13:58
adacSaxle, when I run this manually on the machine I get this:13:59
adachttps://pastebin.com/cp2kDMBU13:59
lotuspsychjeadac: i would always trust what apt says it wants to do14:00
lotuspsychjeits a self fixing mechanism14:00
lotuspsychjeand get rid of its complaints systematic14:01
lotuspsychjethere are some exceptions too ofc14:02
adackk I will check the error messages14:02
adac df -h | grep boot14:03
adacdev/md1        487M  453M  8.6M  99% /boot14:03
SaxleDependancy issues can be annoying idk if your package linux-image-5.8.0-59-generic may have issues14:03
adaclooks pretty full14:03
root__hi14:03
lotuspsychje!rootirc | root__14:03
ubotturoot__: It's not technically our business, but we'd like to tell you that IRC'ing as root is a Very Bad Idea (tm). After all, doing anything as root when root is not needed is bad, and especially bad with software that connects to the Internet.14:03
adacSaxle, lotuspsychje I had to purge some older kernels manually. Not sure why autoremove kept them. Afterwards all was fine now14:12
lotuspsychje!yay | adac14:13
ubottuadac: Glad you made it! :-)14:13
adacWell also thanks to you guys :-)14:14
lotuspsychjewelcome adac14:14
adacFeels good when all is running fine again. And it is Friday noon as well here. So have a nice WE guys!14:15
lotuspsychjesame to you mate14:15
Saxleadac great14:16
=== jpe__ is now known as sharperguy
devslashWhen it comes to securing my Ubuntu server, I use a firewall behind a reverse proxy with ports 80 and 443 open and 1 more port open for ssh. Are there any other suggestions to secure my server ?15:37
cokefirewall is a great start but what is running on those ports usually is what gets you screwed15:47
cokeespecially when its some web thing you dont really know much about and dont run updates very often15:47
SaxleYou could use fail2ban to block some attacks devslash15:51
devslashcoke its not some qweb thing i dont know much about its Traefik15:52
cokeif you use traefik then the web apps are probably in containers15:53
cokeso should be way better already15:53
cokeSaxle: fail2ban only makes sense if you even users to log in with passwords (and you shouldn't)16:00
leftyfbcoke: not true. fail2ban can be used for a lot more than remote authentication attempts16:03
coke even allow* users16:03
cokeyea anything that is vulnerable to brute forcing16:04
cokebut ssh with key only auth isn't16:04
leftyfbcoke: for instance, I wrote a filter that checks for wordpress login attempts or sql injection on the site or bots16:04
leftyfbcoke: it's also useful to just for a thing in a log and then do a thing, not related to ip addresses or banning(firewall)16:05
leftyfblook for*16:05
cokeip blocking is something that you get strange support calls about so I dont know how broad I wouldn't want to use it16:09
cokeif you know certain http requests are bad just error them?16:09
=== TheHoliestRoger is now known as mentholtissueguy
webchat54Hello. I'm looking for advises on Ubuntu Server 21.04 for raspberry pi. I haven't found any IRC channel about this king of release. Is there one ?16:33
leftyfbwebchat54: it depends on the advice you're looking for. First off, why would you put a non-LTS release on something you consider a server?16:34
webchat54Because I want to use GPIO and only version since 21.04 provide a good way to do that.16:36
davidkrauserwebchat54: what kind of advice do you need?16:37
=== mentholtissueguy is now known as TheHoliestRoger
webchat54Existing python3-rpi-gpio in ubuntu rasperry release before 21.04 seems to be deprecated and replaced by python3-lgpio. In my case I'm looking for help and advices to install a RTC BS1302 module.16:42
webchat54My BS1302 RTC module is documented to use: https://github.com/sourceperl/rpi.rtc with python3-rpi.gpio. But since ubunt 21.04 this package seems deprecated and the correct way is to use python3-lgpio (https://discourse.ubuntu.com/t/how-to-use-raspberry-pi-gpio-pins-with-ubuntu/22009 & lgpio doc is http://abyz.me.uk/lg/py_lgpio.html).16:42
webchat54So I don't find any python implementation for this DS1302 RTC module that use lgpio.... If someone have more information about that. Thanks in advance16:42
donofrioI thought .04 were LTS releases?16:43
leftyfbdonofrio: every 2 years16:43
webchat54I don't have skill to develop a python lgpio implemention at all. I'm looking for some advices on who to contact... Probably the team that develop the py_gpio. But I have no idea on who to contact in the ubuntu team...16:50
Mekaneckdonofrio: 20.04 is a LTS release and LTS releases come out every two years, the next LTS release will be 22.04, then 24.04 and so on and so forth16:54
Mekaneckeverything in between are interim releases which are only supported for 9 months16:55
Mekaneckdonofrio: also only Ubuntu LTS receives 5 years of support, all other LTS flavours Xubuntu, Kubuntu, Ubuntu MATE etc are only supported for 3 years16:57
davidkrauserwebchat54: if you look at the package page, there're links to contact the maintainers: https://packages.ubuntu.com/hirsute/python3-lgpio17:02
linuxfanHello, I am having problems pairing a bluetooth keyboard. I am using Linux Lite 5.4.17:02
davidkrauserwebchat54: you may need to look through the options there and see where the best place to ask your question is :-)17:02
davidkrauserwebchat54: it also looks like that maintainer has an irc channel: #ubuntu-motu17:04
webchat54Ok. Thanks davidkrauser17:04
davidkrauserwebchat54: sorry I couldn't be more helpful directly :-)17:04
linuxfanThe keyboard is the Logitech 613. Has both wireless (with dongle) and bluetooth connectivity.17:05
webchat54My fault. No problem :)17:05
patiencezeroanybody know if NVIDIA has a feed or a consistent naming scheme for releasing new drivers?18:45
patiencezeroI'd like to setup a cron job to mirror the latest .run driver files18:45
patiencezerowhenever there is a new release18:46
oerheksdon't use such run file, use the ones ubuntu provides18:48
patiencezeroWhat's wrong with using the .run file?18:48
oerheksmaybe they give a .rss feed, dunno18:48
leftyfbpatiencezero: for one, we cannot support the .run files here18:49
oerheksif you want to be a beta tester, fine, but that is beyond ubuntu support.18:49
patiencezeroyeah, I pinged one of the guys from the Ubuntu "graphics drivers" team to see how they check18:49
patiencezeroI imagine there's a pipeline of some sort for y'all to update the ppa, just hoping that pipeline isn't a manual check. lol18:50
sarnoldI've always assumed it was an nvidia engineering telling us they'd like us to make a new build of their new driver18:51
oerheksyou mean https://launchpad.net/~graphics-drivers/+archive/ubuntu/ppa  ??18:51
oerheksjust run updates to spot a new version18:51
oerheksthere is also !hwe18:52
oerheks!hwe18:52
ubottuThe Ubuntu LTS enablement stacks provide newer kernel and X support for existing LTS releases, see https://wiki.ubuntu.com/Kernel/LTSEnablementStack18:52
patiencezeroI'll be attempting to support several distros that don't host proprietary drivers18:53
patiencezeroI could see this turning into a nightmare though, with the DWM / x-server breaking every time there's a kernel update.18:53
patiencezeroI guess I'd have to write a hook to have it reinstall the latest nvidia driver everytime there's a kernel update...18:54
tomreynpatiencezero: if this is going to be a cross distro effort, maybe #linux is a better place to discuss it. and note there's https://www.nvidia.com/en-us/drivers/unix/18:54
patiencezerothanks Tom, good idea. I'll check there!18:55
=== Lutine_ is now known as Lutin
=== ghostcube__ is now known as ghostcube
donofrioMekaneck, oh thank you for the background on LTS versions19:04
Mekaneckdonofrio: no problem, you're welcome :)19:08
thismachineDoes anyone know where I can find an updated list of patches that are applied to Ubuntu's kernels? There used to be one at https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.11/SOURCES, but that's 404ing now. I had a kernel build script that depended on it.19:29
TJ-thismachine: in the git repository for each release19:34
TJ-thismachine: e.g. git://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/hirsute19:35
tomreynTJ-: https://git.launchpad.net/~ubuntu-kernel/ubuntu/+source/linux/+git/hirsute/tree/ has no SOURCES file, though?19:38
thismachineThanks for the links. Is there a git repo for the latest kernel itself? I'm trying to build the latest kernel releases, eg 5.13.x. There used to a repo that stayed up to date with mainline releases found at ~kernel-ppa/mainline19:42
Guest14Hi y'all. I'm back from earlier (the guy who's trying to rescue some files). I found some discrepancy between df -h /home/$USER and the output of gddrescue. Is it because I used --sparse with ddrescue?19:44
Guest14If I run ls -lah from /home/$USER it says my sbd1.img from ddrescue is 466G, however, when I run df -h /home/$USER it returns "/dev/sda6 441G 187G 231G 45% /home"19:44
Guest14How is it possible for a 466G file to be in /home when /home is 441G?19:44
oerhekshttps://kernel.ubuntu.com/~kernel-ppa/mainline/?C=N;O=D19:44
Guest14Or even worse, how come /home is only 45% used? lol19:44
Guest14Once again, is it because of the sparse file deal? How do I know its true size?19:44
oerheksthismachine, ^19:44
tomreynthismachine: https://kernel.ubuntu.com/~kernel-ppa/mainline/v5.13/ says "To obtain the source from which they are built fetch the commit below: git://git.launchpad.net/~ubuntu-kernel-test/ubuntu/+source/linux/+git/mainline-crack cod/mainline/v5.13"19:44
oerheksGuest14, you had a faulty disk, wasn't it?19:44
oerheksso discrepancy would be expected..19:45
Guest14oerheks yes. I was able to back it up with ddrescue19:45
Guest14oerheks wdym? this is a good disk though19:45
oerheksHow is it possible for a 466G file to be in /home when /home is 441G? .. errors in the filetable?19:45
thismachineGuest14, could be reflinks or compression, too. You can use compsize to figure out if that's the cause of the discrepancy19:45
thismachinetohreyn, oerheks thanks19:46
Guest14So I plugged my faulty disk into my good computer and used ddrescue to back it up, though, I used the sparse flag19:46
Guest14I thought that might explain why a '466G' file can be in a 441G partition19:46
Guest14I don't see any other way19:47
gordonjcpGuest14: is it owned by root?19:47
gordonjcpGuest14: root gets 5% more disk space than is really shown, you can have a disk at over 100% capacity19:48
oerheksgordonjcp, no way telling when he copied..19:49
oerheksonly the original disk can show restored bad blocks19:49
gordonjcpGuest14: 105% of 441GB is 463GB...19:49
tomreyni like gordonjcp's theory, which i think refers to ext2-4 only.19:50
Guest14gordonjcp yes, it's owned by root but as you said 105% of 441GB is 463, though not only that19:50
Guest14df -h /home/$USER returns "/dev/sda6 441G 187G 231G 45% /home"19:51
Guest14because i have other files under /home/$USER19:51
Guest14how come is 45% free?19:51
TJ-thismachine: tomreyn  since v5.6.18 the build scripts changed and as the HEADER tells, the commit of the build is shown - there are no longer patches on top19:51
tomreynTJ-: ah, i didn't notice that the HEADER message changed19:52
TJ-the git commit now includes the packaging patches19:53
Guest14Okay. I guess my google-fu is better today. Apparently one can tell a sparse file's size using `du -h --apparent-size sba1.img` to see how much it could expand to19:55
Guest14and `du -h sba`.img` to check the _actual_ size19:55
Guest14In this case, the actual size is 187G. That explains why it is sitting on /dev/sda6 which only is 441G and it is only 45% used19:56
Guest14TJ- you mentioned that once ddrescue was done recovering the data, I created a backup of that image with cp --sparse=always and then "try using the fsck tool (initially in the do-not-change-anything mode!)" do i have to mount the image first? I'm not sure if this question is stupid20:00
Guest14since one mounts disks not images, right?20:01
TJ-Guest14: no, it isn't and no you don't; fsck can operate on file-systems inside regular files20:02
TJ-Guest14: but you could also attach the file to a loopdev (/dev/loopX) so it appears as a block device20:03
Guest14TJ- is there any advantages to doing the latter?20:04
TJ-Guest14: e.g. "sudo losetup -f -P --show path/to/file.img" and that will report which /dev/loopX it is attached to20:04
TJ-Guest14: yes; more tooling options that would expect the file-system in a block device20:04
phdhello20:05
phdHow do I authenticate scripts from ubuntu-archive-tools with my UbuntuOne/launchpad account? Is it possible to use exported ssh key? I can't find any documentation on this online.20:05
Guest14so I guess before I run "sudo losetup -f -P --show path/to/file.img" I have to attach file.img to a loopdev?20:06
Guest14Would I pass /dev/loopX to fsck or file.img?20:06
TJ-Guest14: no, the command I gave you would do that for you20:07
TJ-Guest14: aside for correcting the path,that command is complete20:07
TJ-Guest14: losetup 'mounts' a file as a block device (confusing use of 'mount' in this context, I'm afraid!)20:08
TJ-Guest14: if it reports /dev/loop8, then you can do things like "fsck -N -V /dev/loop8"20:09
Guest14Indeed. I'm still trying to wrap my head around the concept20:09
Guest14TJ- Guest14: if it reports /dev/loop8, then you can do things like "fsck -N -V /dev/loop8" << this makes sense20:09
TJ-loopdev isn't bothered whether what is in the file makes sense as a block device; it just presents whatever is in the file as a block-addressable device that behaves somewhat like a physical disk/SSD20:10
Guest14I'm curious though to 'mount' this file as a block device, would I need 187G (_actual_ size used in disk by sparse file) free or 441G (the maximum size to which file.img may expand)?20:11
TJ-doesn't enter into it20:11
Guest14I see. I'm curious, what is file.mapfile for? We haven't needed so far20:12
TJ-no space/memory is being used. All a lopdev does is translate sector based access (e.g. read sector 8) to a fseek(path/to/file, 512 * 8, SEEK_SET)20:12
Guest14Does linux know 'this (sparse) file img.file has a matching file.mapfile'?20:12
TJ-Guest14: the mapfile was created by ddrescue to record which sectors it managed to extract and which had problems20:13
TJ-Guest14: the mapfile is nothing to do with anything but the ddrescue tool (it can use the mapfile to restart/resume a recovery)20:13
Guest14Got it. That makes sense. For some reason I thought it was a 'metadata' sort of thing in general and not only for ddrescue20:14
Guest14By the way, journalk reported 6 errors that day. You mentioned "If that suggests there aren't too many faults"20:15
TJ-Guest14: that sounds like a lucky/good result!20:15
TJ-Guest14: I've done rescues where 80% of sectors had failed20:16
TJ-Guest14: those jobs can often take a week... generally I put special coolers on the devices to stop them failing thermally due to the prolonged aggresive access20:17
Guest14Cool. I hope I can recover my files, though, to be honest, this has been a quite insightful experience so far20:18
Guest14A bit off topic, I'm glad #ubuntu has logs. Can refer back to this conversation at any time20:20
TJ-I often wonder how my brain retains and can produce all this arcane stuff - I often have to refer back to my own logs for guidance on things I need to do!20:21
Guest14I'd pictured you going through your great Zettelkasten lol20:23
TJ-:D20:24
TJ-I am generally the 'low-level' and 'go to the source-code' guy around here :)20:24
Guest14Guest14: TJ-: How'd you know that?20:26
Guest14TJ-: I just quickly looked at the kernel code before answering your question20:26
Guest14lol20:26
TJ-:)20:28
TJ-"Feel the source, Luke"20:28
Guest14I guess. Step by step. I'm slowly dabbling into C20:33
Guest14I was going to ask you if you would recommend any books to learn this much about Linux right before you told me you were the 'go to the source-code' guy around here20:33
=== war is now known as Guest7976
tgarderanyone tried gnome40? is it rough or usable by this point?20:49
Pnytried fedora34 with gnome40 seems stable to me20:50
GSMarquisWhere in gnome can I edit the width of the scroll bars?20:50
Pnybut not in ubuntu. havent tried it in ubuntu20:51
rapid16I just re-installed grub on my partition after having reinstalled Windows. Unfortunately, it did not work in the way that GRUB loads on machine boot.20:54
=== kevr is now known as tiny-kevr
quadratrapid16 what comes up, rather than grub20:55
=== tiny-kevr is now known as kevr
rapid16Well it just boots straight into Windows 1021:00
quadratrapid16 can you boot into a live ubuntu?21:02
TJ-rapid16: it is possible the firmware is in fastboot mode where it'll boot the default OS directly21:03
rapid16Okay. I'll check that21:06
TJ-Guest14: I'd recommend reading well-written source. Kernel is generally well written, easy to reason if you skim it and don't try to resolve every pre-processor macro or struct.21:07
rapid16I discovered I can access Ubuntu by booting using EUFI boot menu. But I need to install GRUB somehow so that I get option between Ubuntu and Windows.21:20
Bashing-omrapid16: Might see what resukts when booted into ubuntu with terminakl command ' sudo update-grub '. See if this picks up Windows too.21:22
Bashing-omresults*21:22
rapid16Yes, it saw Windows too21:23
Bashing-omrapid16: Reboot too see the effect :D21:24
=== genii is now known as genii-core
Guest14TJ- well, I haven't tried to read the kernel code yet, though, I reckon one would need more than just C knowledge to grok it21:43
TJ-Guest14: if you don't try to understand every word, but skim for the meaning, you'll quickly pick up C language structure and style21:46
supremekaiHey guys, what is the ~/.ssh/known_hosts used for? Can one access to the root via SSH only using a ssh key?21:49
sarnoldsupremekai: the known_hosts file keeps track of the remote ssh host keys you've said are legitimate; that way, if you contact them again and they've got a different key, you'll get a warning about it21:50
supremekaisarnold, how do I know the last login made by those keys?21:51
sarnoldsupremekai: you can access root via only an ssh key, that's pretty common, the ubuntu cloud images set up an 'ubuntu' user with passwordless sudo access; so you just ssh in to the ubuntu account, run sudo, and no passwords are invovled anywhere21:51
supremekaisarnold, I got 2-3 freelancers working on this server, can one use know_hosts to get illegitimated access?21:51
sarnoldsupremekai: no21:51
sarnoldsupremekai: known_hosts only keeps tracks of the servers you can ssh'd to21:51
supremekaioh21:52
sarnoldsupremekai: ~/.ssh/authorized_keys sounds more like the file you're thinking about21:52
supremekaithat one I don't have it sarnold21:52
supremekaiso, known_hosts it's like from SERVER to another HOST via ssh21:52
supremekaiand authorized_keys from another HOST to SERVER via ssh?21:52
sarnoldsupremekai: known_hosts is the ssh *client* keeping track of the various servers you've contacted; authorized_keys is consulted by the server when a client connects21:53
supremekaioh ok21:53
supremekaihow can I "decrypt" or "dehash" it?21:53
supremekai'cause I don't know "who" are those hosts21:53
TJ-supremekai: often that info is obscured or removed deliberately21:55
supremekaiTJ-, can I remove those "known_hosts"?21:57
supremekaiwhat is the worst case scenario of doing so?21:57
TJ-supremekai: sure you can; each time your ssh client connects to a remote host, that remote's pubkey is recorded in known_hosts once you've agreed to connect to it, so you don't get asked every time you connect21:59
supremekaiohhhhh21:59
supremekainow I get it!!21:59
supremekaithnks!!!21:59
supremekaiThat's the warning it usually prompts on putty or such21:59
supremekaioh ok ok21:59
TJ-yes22:01
=== ircuser7 is now known as AppXPrt
=== AppXPrt is now known as AppXprt
ice9firefox notifications doesn't use notify-send in wayland session, any solution to that?22:08
matsamanice9: so 'notify-send' on its own works?22:11
=== ubuntu is now known as Guest5210
Guest5210Hey, how would be the easiest way to do a custom partitioning, want to use btrfs with subvolumes, which the ubuntu installer doesn't allow22:33
matsamanGuest5210: it allows btrfs without subvolumes?22:39
Guest5210matsaman: sure22:40
oerheksDo this from a live session, setting up btrfs, then run the installer again22:40
Guest5210so i can edit the disk while the installer is running and during disk setup just click next?22:40
oerheksno. get a guide to do this manually.22:41
sarnoldhmm, I thought it sounded a bit promising, but with the caveat that it ought to be done before you get to the partitioning screen22:42
Guest5210i know how to partition the disk, i just don't know how the installer reacts if you don't want to use it's disk setup22:42
sarnoldbut if a guide already exists it will probably be helpful :)22:42
oerhekssome guide with nice pics https://www.addictivetips.com/ubuntu-linux-tips/ubuntu-btrfs/22:43
Guest5210oerheks: thanks, so I assume I first have to setup the disks with the disk setup, and then edit it before it tries to install the system/22:45
Guest5210?22:45
oerhekswell what is your plan, encrypted?22:46
Guest5210encrypted + 4 subvolumes22:46
oerhekshttps://mutschler.eu/linux/install-guides/ubuntu-btrfs/ and tons more to find ..22:46
sarnoldhmm that first guide doesn't seem to mention anything about subvolumes22:47
Guest5210and the second is also rather not really going in subvolumes + it uses the normal ubiquity disk partitioning it seems like. as it's using ubiquity to setup everything (except grub)22:49
cbreakcan't you install onto an existing filesystem hierarchy?22:49
sarnold"Note that the subvolume @ is mounted to /, whereas the subvolume @home is mounted to /home." .. the second one kinda does, in passing..22:50
Guest5210does it really automount @ to / oO that would be new to me22:50
cbreakwith zfs, I have like a dozen or two datasets, and ubuntu got installed into it22:50
sarnoldyeah, same here, but I used the debootstrap approach and it wasn't super fun :)22:51
cbreakand a bit later, I copied the whole installation somewhere else, redid the pool, and copied it back, and it still worked22:51
Guest5210sarnold: with debootstrap, is there an easy way to install ubuntu-minimal? i tried that, but the install was borked, as gnome didn't even have gnome-terminal, networkmanager or the likes22:52
Guest5210i wouldn't mind going that route22:52
sarnoldGuest5210: yeah, apt install ubuntu-minimal etc22:53
Guest5210hm interesting, because I used, ubuntu-minimal^22:53
Guest5210let's try it again I guess22:54
sarnoldah, it may not be a task, too22:54
sarnoldI don't know off-hand how to list the tasks that are available, it's not the easiest thing to learn, heh22:54
bancroftforgive me for being blunt, but is snap no longer a hot piece of garbage? I've had nothing but horrible experiences with it and that's putting it lightly23:24
devslashno its still hot garbage....23:24
bancroftwell that's a shame23:25
Bashing-ombancroft: My take on snaps: has its place - but, on the desktop use judicously :(23:25
cbreakbancroft: it seems to work23:26
devslashI ran into permission issues when installing apps with snap23:27
cbreakat least to get lxd, slack, zoom,23:27
cbreakyes, that's working as intended I think23:27
cbreakdue to the improved isolation of such programs23:27
cbreak(that's why I like it for crap like slack or zoom)23:27
Guest5210cbreak: do you use bash-completion with lxd? i have issues with the latest lxd version23:28
cbreaknot that I'm aware of, no23:28
cbreakI use zsh23:28
cbreakand no intentionally installed completion23:28
sarnoldI use bash completion with lxd delivered by the snap; the completion is glacial23:29
sarnoldbut it works23:29
Guest5210sarnold: i always have to source .bashrc, so that lxd completions work. but the latest gives me also an error when I start gnome-terminal with _have command not found23:29
sarnoldGuest5210: oh weird. I've never seen anythiung like that23:30
Guest5210weirdly, multipass works fine. so it has to be lxd imo23:30
Bashing-omGuest5210: Nice intro for LCD: https://popey.com/blog/2021/07/lxd-container-manager/ .23:30
Guest5210yup already read it ;). have him in my rss feed23:31
Bashing-omLXD**23:31
Guest5210nah i am for LCD :)23:31
cbreakmanaged to get firefox working inside lxd23:31
cbreakalong with wireguard23:31
cbreakwithout completion :)23:31
sarnoldha :)23:31
Guest5210sarnold: thanks, got mostly everything working, except I can’t get network manager get to manage my Ethernet device :/23:53

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