/srv/irclogs.ubuntu.com/2020/11/12/#ubuntu.txt

=== jeddo- is now known as jeddo
=== jeddo- is now known as jeddo
=== jeddo- is now known as jeddo
=== MrC is now known as MrMayflower
sybariten'elo00:29
sybaritenI'm _pretty_ sure my network restarts or rather "dies" on a ubuntu machine, every day around 2-3 in the night , local time. I always lose the samba shares and well general connectivity from/to that machine (like a server) . Any suggestions where i begin to dig what is wrong?00:30
sybaritenthe machine is cable connected and i go there every day and use that deskltop menu to connect to the network and then its fine again. Its lubuntu by the way.00:31
pikapikaWhy is chromium (and thus also steam etc) demanding keyring access? Is this some new update wherein it uses gnome keyring instead for managing passwords and cookies?00:31
=== guiverc2 is now known as guiverc
collinmandersonummm... a user named "ubuntu" appeard on my 20.04 server. should I be worried?00:52
matsamancollinmanderson: there are ways to log how users are created, if you are, although they need to be in place from installation time00:55
wedrJust wanted to ask if anyone can actually play a Youtube video in incognito mode with adblockers enabled on a Ubuntu 20.04? There was an update that caused me to no longer be able to play videos in incognito mode any more, so I'm wondering if it's only me that's affected, or everyone else had similar issues?00:59
wedrMaybe I need to reupdate the computer.01:07
wedrANyway, that's all.01:08
mumixamwedr: i think youtube is broken right now01:17
wedrSo it's not just me.   Half of me says, YESSS, but the other half says, NOOOO01:18
mumixamive never tried in incognito mode but i had no issues before today with adblocker via chromium01:18
mumixamand ive seen some other people talking about youtube issues right now01:18
mumixamlet me disable ublock and see what happens01:19
mumixamyea still doesnt work01:19
mumixam"An error occurred. Please try again later."01:20
wedrOk, we start to see a nationwide outage on Youtube now.01:21
wedrCool, thanks for confirmation. I got 100 other users who planned on watching the latest gaming related videos reporting in about the outage.01:21
mumixamyea i was rather annoyed i updated chromium then checked on a windows 10 box and got the same error01:22
mTeKAny dual video card users in here that can offer a sugestion on using 2 nvidia 2060's to drive 6 monitors?01:54
lotuspsychjemTeK: best to ask your question in the channel, so volunteers can think along with you for a solution01:55
mTeKOk well I'm trying to figure out how or if it's possible to drive these. I am using KDE and have the nvidia drivers installed but can't get but 3 of the ones on the single 2060 to show up.01:57
mTeKI tried to create the second xscreen and then open certain applications on that seconds xscreen.01:57
mTeKThat didn't seem to work. Really I just need an Idea so I can do the research because either I'm searching wrong or just plain doing it wrong.01:58
mTeKA single xscreen across dual cards not in SLI would be awesome so I could drag and drop into each screen.01:58
Bashing-ommTeK: I do not know the how - but I am aware that TJ- that frequents here; does indeed run 6 monitors on Nvidia cards.01:59
=== zbenjamin is now known as Guest75538
=== zbenjamin_ is now known as zbenjamin
Psi-JackHmm, why is it, that in the Ubuntu Software app, the email suite, Evolution, is not searchable?02:24
Psi-JackBase install of Ubuntu Desktop includes evolution-data-server, and data-server-common, but, includes Thunderbird as an email client, and nothing for calendars.02:26
mTeKThunderbird has lightening calendar for caldav.02:27
mTeKI prefer evolution over thunderbird all day02:28
lotuspsychjePsi-Jack: shows at my side on 20.04, you have the universe repo enabled?02:28
Psi-Jacklotuspsychje: Note, I said in the Ubuntu Software app. I can see and install it with apt directly.02:28
lotuspsychjePsi-Jack: you didnt mention your ubuntu release yet, gnome-software or snap-store ?02:29
Psi-Jack20.04, and whatever "Ubuntu Software" loads. :)02:29
lotuspsychjePsi-Jack: 20.04 has now snap-store by default and i just tested it for you02:30
Psi-JackLooks like that.... is annoyingly the snap-store, no wonder.,02:31
cybrNautwedr, mumixam: i was in the middle of watching netflix, & out of the blue my "smart" TV launched Youtube and hung.  I had to relaunch the netflix app and recover what I was watching.  So with mention of a youtube outtage, perhaps it's related02:34
mTeKYoutube and youtube tv has been down for awhile.02:35
cybrNautwith all the spyware inherent in smart TVs, i wouldn't be surprized if they were exploited to atk youtube02:35
cybrNautit was roughly an hour ago that I experenced that02:36
mTeKThey both seem to have recovered in my market but I had customers in other markets call in saying their internet didn't work.02:36
cybrNautwell, i get the feeling i should do more to harden the security around my smart TV.. I should probably have an egress firewall or something02:38
abesabHello. On my Ubuntu 20 LTS, I deleted /etc/apache2. To restore it I was able to `sudo apt purge apache2` and `sudo apt install apache2`. However, the php.load and php.conf files in mods-available were not restored.03:25
abesabI tried to also purge and install php and libapache2-mod-php but they are still not restored. Any idea why? Should I nuke my Ubuntu installation from orbit and try again?03:26
=== gabkdlly_ is now known as gabkdlly
=== BrianG61UK__ is now known as BrianG61UK_
Perdelliantomreyn: that patch worked. thanks04:29
Perdelliantomreyn++04:29
=== the_ant1 is now known as the_ant
=== bindiboi is now known as bindi
=== jeddo- is now known as jeddo
=== bettencb1 is now known as bettencb
=== PowerTower_121 is now known as PowerTower_120
StressedGopherhiya06:53
StressedGophermy dock is on top of my applications, for instance if I maximise hexchat, the left border of it will be covered up by my dock06:53
StressedGopherI'm not sure what caused this and I don't know how to fix it06:54
guivercStressedGopher, you should provide release details (are you talking about GNOME, Unity 7 or something else if so say)07:03
StressedGopherI'm not quite sure what that means guiverc07:15
StressedGopheroh wait yeah I do07:15
StressedGopherUbuntu 20.04.1 LTS, GNOME 3.36.307:16
guivercon my system, if I maximized hexchat the dock disappears, but re-appears if I move the mouse to it... but my system is likely different to yours (different release, desktop etc)07:16
StressedGopherI can make it hide when something maximizes, but that's not how it was originally, it was closer to a windows style taskbar07:17
pikapikaWhy does chromium want keyring access suddenly?07:18
guivercsorry I'm not running focal/GNOME so can't compare/explore07:18
pikapikaWhat am I missing if I deny perms07:18
pikapikaguiverc, I am not running gnome either but strangely some apps have dependencies on gnome keyring07:19
guivercpikapika, sorry I was speak to StressedGopher07:19
guivercs/speak/speaking ^07:19
StressedGopherlol I guess this is fine07:20
pikapikaguiverc, I know07:20
StressedGopherI'll just... get used to it lol07:20
pikapikaIt was just a good opportunity to chime in about gnome programs getting mysteriously pulled in07:20
guivercStressedGopher, if patient you may get an answer (people respond when they can), but details help you get the correct responses..  you could also try again later07:21
pikapikaguiverc, lets talk in #ubuntu-offtopic07:22
pikapikaStressedGopher, thats how it was in gnome last I remember07:23
pikapikawhen a window is maximised the task bar subsumed its title bar07:23
pikapikagnome seemed too complex to configure so I just changed to xfce07:24
pikapikahey bro ducasse would you have any idea why chromium suddenly demands access to gnome keyring?07:49
ducassea guess would be it uses it to store login details, but i'm not sure07:50
pikapikaducasse, it never did before07:51
pikapikaAnd chromium and thus by extension steam etc are demanding keyring07:51
pikapikaAlso of note is that this isn't a gnome system07:51
pikapikaIts xubuntu07:52
pikapikaSo chromium somehow pulled in that dep07:52
ducassei'm on i3, and geary still insists on keyring access07:52
pikapikaInteresting07:52
ducassetry #chromium-support?07:52
pikapikaThe browser never used to ask before07:52
pikapikaI will later, its too late now07:53
pikapikaThanks for the direction ducasse07:53
ducassei use brave, and it doesn't ask07:53
pikapikabrave must deliberately remove that part07:53
pikapikaor it might be that ubuntu packaging made it a part of chromoium idk07:53
pikapikasince steam asks it too07:53
ducassemaybe, chromium on my desktop doesn't either07:53
pikapikastrange07:54
pikapikait only started happening recently07:54
ducasselet me check something07:54
pikapikaI wish there was a way to step through updates, but I understand how such a feature would be ridiculously complex to implement07:54
ducasseyeah, gnome-keyring is installed on both, but my desktop doesn't ask07:55
ducassei keep the laptop snap-free, so no chromium07:55
ducasseyou can ask snap for a specific revision, iirc07:56
pikapikai'll try07:56
TJ-pikapika: re the gnome-keyring prompt - did you recently change your user account password, and more specifically, do it from an ssh or console rather than GUI session?08:19
TJ-pikapika: being prompted is often a sign that the keyring pass-phrase has got out of sync with the user account password08:20
pikapikaI didn't change any passwords lately. I moved around some files (from home folder) because of a login loop caused due to lack of space08:20
pikapikathrough a ctrl+fn terminal08:20
pikapikaDoes that count08:20
pikapikaThats the only "odd" thing I remember doing recently08:20
pikapikamy pass is unchanged08:20
pikapikaThough yes08:20
pikapikaI have switched to another session and didn't change back08:20
pikapikacan that cause problems TJ- ?08:21
pikapika(in the display manager)08:21
TJ-pikapika: moving things around could count, if you moved something related to the keyring :)08:21
pikapikaI might have put in the passwords a long while ago in the keyring i nthe previous session and forgotten08:21
pikapikaTJ-, most probably not. I didn't touch any dotfiles and such08:21
pikapikaonly moved around some media from home08:21
pikapikabut can change of session cause issues08:22
TJ-pikapika: if you run "seahorse" manually does it start and show saved credentials without asking you for the password to unlock them?08:23
pikapikaDon't have seahorse08:24
pikapikaTJ-, I could try logging in to the other session as a test08:24
pikapikabrb08:24
ren0v0Hi, can someone tell me if PulseAudio should be in audio output settings in 20.04 ?08:52
ren0v0I'm using Strawberry music player, and when I select ALSA direct it stops youtube etc playing, but I thought I could set the system to use pulseaudio ?08:54
ren0v0I want pure passthrough from music player!08:54
=== TheMetamorphosis is now known as Metamorphosis
jellyshort answer no, restore from backups09:12
jellyoops, was scrolled WAY back up09:13
mortWell, anacron still just fails to shut down 50% of the time, extending Ubuntu’s shut-down time to 1m30s09:22
mortNo, there are no useful logs, it just doesn't respond to systemd's SIGTERM09:23
Aliekezhihi, everytime I login, or use a command with sudo, there is a delay of like 10s or more before something happens. Any idea what cause this delay ?09:23
Aliekezhi(it's a recent computer with high performances on anything else)09:24
jellyAliekezhi: do you have unusual dns setup or user/password database setup?09:25
mortprobably some PAM module taking a whole lot of time. Can you run `sudo journal to -f` in one terminal, then in another terminal run something with sudo (such as `sudo ls`), and see if there's anything strange as sudo starts?09:25
jellyAliekezhi: does it happen consistently, every time you log in, or is the second time in quick succession less delayed09:26
Aliekezhimort, do you mean journalctl ?09:34
mortAliekezhi: yeah, sorry. I wrote it on a phone keyboard and it auto-incorrected09:34
Aliekezhimort, jelly it doesn't seem to happen when running a simple ls09:36
Aliekezhi(but my password is already memorize)09:37
jellyAliekezhi: "ls" is not logging in.  "ssh localhost" would be09:37
Aliekezhijelly, I mean sudo ls09:37
jellyuse sudo -K or sudo -k to wipe its password timestamp09:38
Aliekezhijelly, still no problem when I try right now09:38
Aliekezhistrange...09:38
Aliekezhiit doesn't seem to be all the time09:39
jellyso it's not a pam issue, or it's not something that is used by sudo, or there's caching elsewhere09:39
AliekezhiI will try with another tty when login to my session in gdm09:39
mortAliekezhi: it has to be in a new terminal session, sudo lets you avoid authenticating again for some time09:39
mortit _should_ work in just another gnome-terminal instance or something though09:39
jellyssh localhost is the simplest way to log in09:39
jellyassuming you have ssh service installed and running09:39
Aliekezhicould be related to gnome-shells errors I can see in journactl09:40
Aliekezhignome-shell[2084]: JS ERROR: Exception in callback for signal: icon: Error: Argument 'filename' (type filename) may not be null09:41
AliekezhiI have this a lot of times, but I don't know if it could be related09:41
lotuspsychjeAliekezhi: maybe pastebin your whole dmesg too, we can take a look09:42
Aliekezhilotuspsychje, https://paste.ubuntu.com/p/QYmKnxgbrD/ could that be apparmor ?09:50
Aliekezhihum, nevermind it seems only related to hexchat09:51
lotuspsychjeAliekezhi: did you update system to kernel -53 since?09:53
Aliekezhilotuspsychje, no, still 5209:54
lotuspsychje!uptodate | Aliekezhi try please + reboot09:54
ubottuAliekezhi try please + reboot: To ensure you have all the latest known patches and security updates for your ubuntu installation, please update with the following command: `sudo apt update && sudo apt upgrade`. See also !upgrades and !security; you may also need to run `apt full-upgrade`.09:54
lotuspsychjeAliekezhi: can you give an example what you tried with running as root and get the lag?09:55
Aliekezhilotuspsychje, there may be different problems : the delay of login into gnome session, the delay when login after screensaver/hibernate and the sudo delay09:57
Aliekezhilotuspsychje, I'll try to use the journactl/dmesg next time it occurs and paste it here09:58
lotuspsychjeAliekezhi: weird, sounds like some hardware bottleneck or something09:58
locsmif_workWhat would be the best choice for a web-based administration tool that can also manage (dist-)upgrades?09:59
lotuspsychjeAliekezhi: maybe check your systemd-analyze blame && systemd-analyze critical-chain also09:59
locsmif_workA solid web-based frontend for apt would also suffice for now10:00
lotuspsychjelocsmif_work: are you on ubuntu server?10:01
locsmif_worklotuspsychje: yes10:02
lotuspsychjelocsmif_work: try if the volunteers @ #ubuntu-server might have some reccomends for you10:02
locsmif_worklotuspsychje: thanks!10:02
lotuspsychjewelcome ; )10:02
codecutteris it safe to truncate /var/log/syslog?11:05
jpdsIt's safe, but if you did that on a box I was managing, I'd ban you from it11:07
codecutterwhy?11:07
codecuttersyslog is taking up a lot space11:07
jpdsDeleting systems records is a good sign that you're doing some thing malicious11:08
codecutteroh11:08
codecutterwell, it my box11:08
codecutterit's*11:08
jpdscodecutter: Then you need to figure out why something is returning so many errors11:08
mgedmincodecutter: it's better to run logrotate11:09
codecutteri think its just accumulation over the years11:09
codecutteryears = couple of years11:09
mgedminpossibly several times, as that'll compress the old (large) logs11:09
mgedminthe command is logrotate -f /etc/logrotate.d/rsyslog11:11
mgedminthe first run will remove syslog.7.gz and move syslog to syslog.1 and gzip the old syslog.1 to syslog.2.gz and rename all the rest with increasing numbers11:12
codecuttershall upgrade to 20.04.1 LTS or wait another few months?11:12
mgedminand then if syslog.1 is still huge and you need more space, you run it again and end up with empty-ish syslog, syslog.1 and the big one is now gzipped syslog.2.gz11:12
codecuttershall i*11:12
codecuttermgedmin already ran trunacate11:13
mgedminalso maybe consider disabling rsyslog and using (persistent) journal instead11:13
codecutterwhy?11:13
mgedminthe journal is limited to, what is it, 20% of disk space?  and it collects oldest log entries automatically, or you can run journalctl --vacuum manually11:14
mgedminalso IIRC journald deduplicates messages/has rate limits/is fancy11:14
codecutterkewl11:15
=== vlm_ is now known as vlm
VSpikeI'm trying to understand CVE info. Take this one for example https://people.canonical.com/~ubuntu-security/cve/2018/CVE-2018-20721.html ... what does "Needed" mean here? Does this mean there's no fix for 18.04?11:35
VSpikeI'm also wondering why the priority/severity scores vary on different sites. e.g here https://nvd.nist.gov/vuln/detail/CVE-2018-20721 it's shown as "critical"11:37
VSpikeHere it's marked as "High" https://security-tracker.debian.org/tracker/CVE-2018-20721 but that's pulling from NVD. But the Ubuntu tracker shows it as Medium11:38
Hollusionhi, i just upgraded to latest ubuntu 20 and my audio is not working after each reboot. have to manually do a "sudo alsa force-reload" every time12:19
Hollusionis there any fix for this yet?12:19
Hollusionoh and i do a "sudo apt-get install --reinstall alsa-base pulseaudio" before12:20
HollusionUbuntu 20.04.1 LTS12:21
neurehi12:22
neurehow do i control usb device power management?12:22
TimothyPI am going to repost my question because I think I was offline and it did not reach this channel if it did I am sorry12:25
TimothyPHi. Just installed 20.10 on a brand new laptop (Xiaomi Notebook Pro 2020) (was using the 2018 version before with Ubuntu 20.04). Now it turns out I have no sound at all (even though the control pannel shows the sound output and input devices).12:25
TimothyPIf I connect a usb headset, that one gets sound though.12:25
TimothyPAnd although the restricted nvidia drivers are installed (the laptop has intel graphics and Nivdia MX3500) Blender and Kdenlive report there are no devices with CUDA cores available12:25
TimothyPmx350 (not 3500)12:30
mTeKTimothyP: https://askubuntu.com/questions/1225463/18-04-no-sound-intel-sound-card-snd-hda-intel-not-working12:37
dami0hi, is there a way to run different builders for the same source depending on a user variable?12:41
=== bettencb1 is now known as bettencb
TimothyPmTeK I will take a look thank yuou12:54
mTeKHad the same issue when I was testing earler in the year.12:55
TimothyPwhen I reboot I have sound though but only for a while so will apply the info on that page and see what it does13:02
mgedmin18.04 was a long time ago13:10
mgedminhave you checked the sound preferences dialog?  ubuntu likes to switch audio outputs sometimes to silly stuff like external monitor hdmi or a dock's spdif13:10
mgedminI guess the logic is "you plugged in a cable, you must want to use it" yes, but I want the monitor bit, not the audio bit13:11
mgedminit's one usb-c cable, I can't pick and choose13:11
Aliekezhiok I have more ideas of what's going on13:25
Aliekezhilotuspsychje, jelly //paste.ubuntu.com/p/HCxm9MKYXh/13:28
Aliekezhicould be related to some kerberos settings I use only at work13:29
Aliekezhiand DNS domains13:29
Aliekezhithe thing is that I don't want sudo to authenticate on kerberos (I use it only for printing in some specifi cases)13:47
zetheroohow do I find out what is the latest version of mariadb-server in Ubuntu 20.04 via the command line?14:20
zetherooI found this https://packages.ubuntu.com/focal/mariadb-server which seems to say that the latest version of mariadb-server in 20.04 is 10.3.25 ... is this right?14:21
Maikzetheroo: apt info mariadb-server14:22
Maikand yes it´s 10.3.2514:22
=== ryzokuken_ is now known as ryzokuken
djp_is there a way to only delete retrieved packages from /var/cache/apt/archives/ that have been uninstalled?14:36
pepperjackwhat happened to ubuntu server?  Is there an iso link? I dont need any of this cloud nonsense i just want a cli install.14:36
pepperjacknevermind.  "third option"14:37
TimothyPmgedmin yep the correctone is selected. so the lapop boots, there is music and then sometimes later there is not but the device is still the same, reloading alsa does not help15:05
ace_me1for a web inside docker location I have:15:12
ace_me1lrwxrwxrwx 1 root root 34 Oct 15 11:46 ./public/.well-known -> ../../../shared/public/.well-known15:12
ace_me1var/www/site/shared/public# has ls -al15:12
ace_me1drwxrwxrwx 3 root www-data 4096 Aug  1 21:25 .well-known15:12
ace_me1but the renew fails as the challenge is not created. Should the rights configured be changed ?15:12
ace_me1I see no challenge created there and certbot complaints Detail: Invalid response from15:14
ace_me1http:/....../.well-known/acme-challenge/D1ek6etDEJWFkcE9HFc89khywl5mdtfxZ7CUzl0PmDA15:14
ace_me1I suspect the file cannot be created but with -vvv I'm still not able to see "cannot create..."15:14
ace_me1Helllppp :)15:15
=== LabMonkey is now known as Mechanismus
rapidwaveI'm having an issue with black screensaver freezing up my computer when I leave for a while. I don't even remember putting a screensaver on here, but it's on here. I cannot find any settings to change screensaver or disable.15:35
rapidwaveI'm using latest Ubuntu LTS15:35
lotuspsychjerapidwave: desktop or another flavour?15:35
leftyfbrapidwave: look under power settings15:36
rapidwaveThank you! Not even a screensaver...just going blank...maybe actually turning itself off.15:41
ducasserapidwave: you can control it from cli with xset15:59
zetherooMaik: thanks16:03
zetherooI need to manually create a boot partition for an Ubuntu 20.04 install (using LUKS which needs /boot to be a separate partition) - what is the recommended rise and filesystem for /boot partitions these days ... I was thinking ~750MB and Ext216:04
zetherooI just read that Ext4 is better for EFI16:07
zetheroook, going for 1024MB and Ext4 :)16:09
mgedminsounds reasonable16:09
mgedminI wanted to raise doubts about grub supporting all ext4 features, but hey, my current install doesn't even have a separate /boot, just / and /boot/efi and it boots fine16:10
mgedmin(no luks though)16:10
zetherooyeah, luks wants to be special :D16:10
zetherooI am installing between Windows and Lenovo Recovery partitions ... hehe16:11
mgedminyeah, how come the installer doesn't let me enable FDE when I choose to install side-by-side with windows?16:12
zetheroogreat question16:12
zetherooinstaller crashed ... bug 1871268 is apparently at fault :/16:20
ubottubug 1871268 in apt (Ubuntu Focal) "Installation fails due to useless immediate configuration error when "Install Third-Party Drivers" is selected" [Medium,Triaged] https://launchpad.net/bugs/187126816:20
nikolamWhy installing 'apt install wine32 ' tries to remove so many packages and now I have PDF viewer uninstalled (ant it wants to uninstall Virtualbox, too..) ??16:54
nikolamhttps://pastebin.com/LqHGWkiV16:55
EriC^^nikolam: it looks like it wants to remove the 64bit packages and install a bunch of 32bit16:56
EriC^^are you usin 64bit or 32bit? try "arch" in the cli16:57
nikolamEriC^^, x86_64 of course, but I have an winbox.exe that seems require win3216:58
nikolamIt seems it is terribly wrong..16:58
nikolamand it already made to remove my pdf viewer.. (*(&16:59
nikolamwhy would apt do that at all16:59
phobosophhi16:59
EriC^^nikolam: yeah something definitely went bad17:02
EriC^^hello phobosoph17:02
nikolamEriC^^, it is 20.04 to 20.10 update , maybe Ubuntu finally killed 32-bit support or something17:03
EriC^^nikolam: did you try to remove wine and see what happens, if you can get it back to a stable 64bit state17:04
EriC^^nikolam: nah it seems it really is intent on installing those 32bit stuff :D17:04
nikolamwine is installed.17:04
nikolamI have BTRFS snapshots to get it back to previous state...17:04
nikolamthere is no wine32 package listed , and it decides to uninstall all 64-bit packages to 32-bit ones ..17:05
zetheroois there any way to convert a legacy boot partition to a UEFI/EFI one without reinstalling ?17:06
EriC^^zetheroo: yeah, you need to create a fat32 partition for the efi partition, add to fstab, install grub-efi* and use the standard efi file locations so it boots, or use a live usb booted in uefi mode to add a new uefi entry or install grub from there17:07
zetheroook, I'll try with the live usb17:08
EriC^^zetheroo: ok, be sure to mount the efi partition at /boot/efi before running grub-install17:08
nikolamI'll go back to previous state with BTRFS snapshot. Seems like apt-btrfs-snapshot is needed package these days17:08
zetherooEric^^: wdyt about Method 1 here https://itectec.com/ubuntu/ubuntu-how-to-change-ubuntu-install-from-legacy-to-uefi/17:10
EriC^^zetheroo: i doubt method1 works, as i dont think boot-repair takes the liberty of repartitioning your disk to make an efi partition, and if it does, that's concerning17:11
zetheroohmmmk17:12
EriC^^if you boot a live usb i could walk you through the process17:12
zetherooI am booted into the live usb on the system17:13
EriC^^zetheroo: type 'ls /sys/firmware/efi' and see if it says file not found or shows a list of files17:13
zetheroothere is a list of files17:14
EriC^^zetheroo: type 'sudo parted -ls | nc termbin.com 9999' paste the link here17:14
zetheroohttps://termbin.com/3qcg17:15
zetheroonumber 4 is /boot17:16
EriC^^zetheroo: decrypt ubuntu and mount the root fs under /mnt17:17
mgedminoh cool you already have an ESP17:18
zetheroounknown filesystem type 'crypto_LUKS'17:20
zetherooI did 'sudo mount /dev/nvme0n1p6 /mnt'17:20
mgedminthat's not how you mount encrypted partitions17:21
mgedminyou need to cryptsetup luksOpen /dev/ndmve0n1p6, iirc, which will create a /dev/mapper/nvme0n1p6_crypt, which you can then mount17:21
zetherooah got it17:21
zetheroook, it's mounted in /mnt17:22
zetheroosorry, I am typing on another system ... so it's a bit slow17:22
EriC^^zetheroo: type the following line "for i in /dev /proc /sys /run; do sudo mount -R $i /mnt$i; done"17:22
zetherooah shoot ... I have to deal with something else ... sorry ... be back asap ...17:24
mgedminooh nice17:24
EriC^^:D17:25
* mgedmin TIL'ed about mount -R; he was usually doing mount --bind or just chroot /mnt && mount /proc; mount /dev; mount /sys17:28
mgedminone trick I like lately is booting grub from a live media, then going into the grub command line and telling it to load the grub.cfg of my installed OS17:30
EriC^^mgedmin: quick and easy line, pretty useful17:30
mgedminavoids the need to chroot17:30
mgedminonce the full os is booted, you can grub-install to your liking17:30
EriC^^yeah that's even better, in this case we can't though cause we have to install the grub-efi package and edit fstab and stuff17:31
mgedminI think grub.cfg is the same for efi vs legacy boot?  just the way grub is loaded differs17:31
EriC^^the quicker the better though17:31
EriC^^ah i got what you meant, yeah using grub cli would be nice too17:32
EriC^^thought you meant using grub-install with arguments and stuff to the efi dir17:33
mgedminno, just a lot of flailing around with ls (hd0)<tab><tab> until I get the right device name and path for config (hd0,msdos2)/grub.cfg17:34
mgedminI don't trust myself to use grub-install correctly17:34
* mgedmin made his system not boot once after trying to install an efi bootloader into a usb drive and forgetting the --removable flag17:35
=== denningsrogue4 is now known as denningsrogue
=== Examknow is now known as Texas
zetheroo1Eric^^: ok I am back and now on the system with the live usb session17:49
zetheroo1the last command was:17:50
zetheroo1for i in /dev/proc /sys /run; do sudo mount -R $i /mnt$i; done17:50
zetheroo1is that correct?17:50
EriC^^right17:50
zetheroo1mount: /mnt/dev/proc: mount point does not exist.17:50
EriC^^zetheroo1: put a space between /dev and /proc17:51
zetheroo1ah sorry17:51
zetheroo1ok done - no output17:51
EriC^^zetheroo1: type 'sudo chroot /mnt'17:52
=== nikolam_ is now known as nikolam
zetheroo1ok17:53
realiescan you start shipping more recent versions of ffmpeg in ubuntu 20.04?17:53
zetheroo1I am now root@ubuntu17:53
EriC^^zetheroo1: type 'blkid /dev/nvme0n1p1'17:54
EriC^^it should show the UUID= of the filesystem, copy the UUID17:54
zetheroo1there is also the PARTUUID17:54
EriC^^then type 'nano /etc/fstab'   and add a line there with the following17:54
EriC^^yup, nevermind the partuuid17:55
zetheroo1ok17:55
EriC^^UUID=0A87-44C2  /boot/efi       vfat    umask=0077      0       117:55
EriC^^replace the stuff after UUID= with your uuid from blkid17:55
zetheroo1this was already in there:17:57
zetheroo1UUID=C478-7895  /boot/efi       vfat    umask=0077      0       117:57
EriC^^same uuid?17:57
zetheroo1yes17:58
EriC^^ok, seems ubuntu is already in uefi mode17:58
EriC^^type 'mount /boot/efi' in the terminal17:58
EriC^^then "ls -lR /boot/efi | nc termbin.com 9999"17:58
zetheroo1mount: /boot/efi: mount point does not exist.18:00
EriC^^zetheroo1: ah, type 'mount /boot'18:00
EriC^^then 'mount /boot/efi'18:00
zetheroo1ok18:01
EriC^^try the ls command again18:02
zetheroo1https://termbin.com/6kzj18:02
EriC^^ubuntu seems to be there18:03
EriC^^zetheroo1: ok, finally type "(efibootmgr -v; dpkg -l | grep grub) | nc termbin.com 9999"18:03
zetheroo1https://termbin.com/0uf618:08
zetheroo1thing is that I first installed Ubuntu with the automatic side-by-side with Windows option .. and then I did the install manually with a /boot and LUKS partition18:09
zetheroo1don't know if that makes any difference18:10
Deano59anyone using an rpi4 and ubuntu 20.10? I'm getting serious lag, when say I try to open file manager, browser etc. not sure what's causing it..........18:10
EriC^^zetheroo1: when you installed ubuntu side by side with windows and restarted, did you get grub when it booted?18:10
Deano59it's taking 5+ seconds to open anything! :S18:10
EriC^^Deano59: is the ram good?18:11
Deano59EriC^^: yeah, 4gb and swap also.18:11
Deano59just time thunar, 18 seconds to open :/18:11
EriC^^maybe something is using up the cpu, anything in "top" 's output?18:11
Deano59I did check that first and nothing that I can see18:12
lotuspsychjeDeano59: 4GB for gnome is a minimum, unless you start tweaking your system18:13
zetheroo1Eric^^: yes, grub was there and it booted to both Windows and Ubuntu18:13
Deano59lotuspsychje: not using gnome....18:13
EriC^^zetheroo1: aha, ok, currently ubuntu isnt in the uefi list so maybe just reinstalling grub and having it there will do the job18:13
EriC^^zetheroo1: type 'grub-install'18:14
lotuspsychjeDeano59: mate?18:14
Deano59No. i3-wm18:14
zetheroo1root@ubuntu:/# grub-install18:14
zetheroo1Installing for x86_64-efi platform.18:14
zetheroo1Installation finished. No error reported.18:14
lotuspsychjeDeano59: ah ok, that should work much better indeed18:14
EriC^^zetheroo1: what does 'efibootmgr -v | nc termbin.com 9999' show now?18:15
zetheroo1https://termbin.com/t6g3m18:15
EriC^^looks good, ubuntu is first in boot order18:15
EriC^^zetheroo1: for good measure run 'update-grub' then exit the chroot and try rebooting18:16
zetheroo1ok18:16
lotuspsychjeDeano59: sudo apt install preload stacer haveged, will help you18:16
Deano59I know it should be fine, lotuspsychje.18:16
Deano59nope, not helped lotuspsychje.18:19
Deano59I even rebooted.18:19
lotuspsychjeDeano59: can you pastebin; systemd-analyze blame && systemd-analyze critical-chain18:19
zetherooEric^^: Grub menu showed up and Ubuntu booted! Windows was also in the grub menu ...18:20
EriC^^zetheroo: great!18:20
zetherooSo was the solution just to run 'grub-install' and 'grub-update' ... or was the previous stuff also needed?18:21
Deano59lotuspsychje: https://paste.ubuntu.com/p/cznZ3Dmmn2/18:21
EriC^^zetheroo: yeah that's basically it, ubuntu was already in the efi partition, but not added to the uefi list, so we had to chroot and find out and run grub-install18:22
lotuspsychjeDeano59: that also looks pretty sane to me and quick boot too18:22
Deano59lotuspsychje: it's not booting that's the problem :) it's app opening times. 20+ seconds for a file manager isn't "normal"18:22
lotuspsychjeDeano59: i know, i just wanted to make sure your boot/installed apps arent the bottleneck18:23
=== ijohnson is now known as ijohnson|lunch
lotuspsychjeDeano59: is there speed difference opening thunar from terminal?18:25
=== tucked is now known as disi
Deano59Nope18:30
zetherooEric^^: ok, so in my setup there is the /boot partition the one being used to boot Ubuntu ?18:38
EriC^^zetheroo: yeah, the efi partition has the initial grub efi file, then the other grub files and menu is read from /boot18:39
zetheroook18:41
lotuspsychjeDeano59: did you install i3-wm ontop an ubuntu-desktop base or server?18:41
leekokotEver since upgrading to 20.04 some Chrome pages load for 2 seconds and then I get the 'aw snap' error. Anyone heard of this?19:02
devslashWhen I log into Ubuntu, it shows an MOTD with disk usage, cpu usage, temperature and so on. What command do I run to see those stats ?19:04
leekokotdevslash: xmotd..?19:05
devslashI dont have that. I dont have X Server installed19:06
leekokotah, ok.19:07
=== ijohnson|lunch is now known as ijohnson
leekokotAnyone been having Chrome browser issues since 20.04 upgrade? Firefox works fine. Some pages crash with Chrome.19:10
devslashlike what pages ?19:11
devslashand what version of chrome19:11
leekokotslickdeals.net. 70.0.3538.77 (Official Build) (64-bit)19:13
tpw_ruleshello all. i have a machine with a fully updated lubuntu 20.04 install and an intel iris pro 655 graphics card (no discrete card) using the i915 + iris driver. whenever i try and copy a large selection from gimp, gimp crashes. small selections are fine. https://pastebin.com/dBnv9H1k this is what the console says, but the internet says the X error is irrelevant19:14
devslashleekokot, I found it. Its landscape-sysinfo19:17
leekokotdevslash: hmm, that's a new one for me. :\19:19
leekokotI think I'll install that...19:19
devslashim using ubuntu server and it was part of the o.s.19:19
tpw_rulesahh, figured it out for people reading the logs: qlipper in lubuntu is the problem. everything is fine if i quit it.19:20
leekokotYa, it's a python script. Just installed it, devslash19:22
leekokotAnyone having issues with pages crashing in Chrome since upgrading..?19:27
leekokotI guess the Linux Gods are mad at me...19:30
=== otisolsen70_ is now known as otisolsen70
ghutzriophi, I get this nice error and I'm quite clueless how to handle this root@db1:/# service mariadb status \ /usr/bin/mysqladmin: connect to server at 'localhost' failed \ error: 'Access denied for user 'root'@'localhost' (using password: NO)'19:51
bdiddyyou can't login as root it seems19:57
bdiddytry the same command as your user with access permissions19:58
ghutzriopbdiddy, service management is out of scope for non-root users, I think.20:02
bdiddyyeah you'd have to use sudo20:02
bdiddynot sure that's your problem20:02
bdiddycan't really imagine why you'd ever want to run a database system from root though let alone log into it20:04
bdiddyhttps://mariadb.com/kb/en/running-mysqld-as-root/20:04
bdiddyseems for root to have access you have to do some special things20:05
ghutzriopbdiddy, I'm only trying to manage the service wrapper as root, but I think you might have given me the right idea, thanks.20:06
Fin3hello there, i'm having a very big trouble with latest ubuntu updates for 18.0420:13
Fin3is anyone there good at network configs? the problem is that i'm connected, nic are ok, but there is no connectivity at all20:13
Fin3please guys someone with a good heart that can give me some hints20:14
Fin3it'll be really appreciated20:14
=== disillusion- is now known as disillusion
Fin3really no one?20:20
blueeagleI just joined Fin3, so I don't know what I don't know. :)20:21
rjwiiiFin3: Patience ... if someone knows, they'll answer20:21
Fin3blueeagle, i've got some problems with latest updates20:21
Fin3now i've got no connectivity at all, i've tried what i know but without luck20:22
Fin3so i'm here to get some help 'cause i'll be fired tomorrow if this server will be down...or something like :)20:22
blueeagleFin3: So network stopped working after you did a distribution upgrade to 20.10? Are you on a wired or wireless connection?20:22
rjwiiiFin3: using DHCP?20:22
Fin3no no sorry, i've got two nic bounded in active-backup20:23
Fin3with a static ip20:23
Fin3and i've done only "apt update" and "apt-upgrade"20:23
Fin3i already tried changing something in the netplan configuration...without luck20:24
blueeagleFin3: Well, the first step of troubleshooting is to simplify the system to isolate the error. Are you able to set the system up to run on only one NIC?20:25
=== cesarnf0 is now known as abze
=== blueeagle is now known as BlueEagle
Fin3BlueEagle, i think yes, i must try with the idrac of the server to disable one nic20:26
Fin3let me check, i'll back soon20:26
* abze hi there this is an ame msg come to follow20:27
BlueEagleFin3: Very good. When you've checked that, see if you can get it up and running on the other NIC as well. If either of them works then at least you won't be fired right away. Then we can talk about why you don't upgrade production equipment without backing up the working system when you haven't got a test rig.20:27
Fin3i've got a backup, i don't want to use it20:28
BlueEagleFin3: Then it's a douche move to say you'll be fired over this, and that makes me less inclined to help you.20:29
Fin3:(20:30
Fin3BlueEagle, please forgive me and let me figure out this20:33
Fin3i've never performed a restore in this server, and i think something will go wrong on this20:34
Fin3anyway i've checked and i've got no way to unlink the cable in a virtual way by the idrac (it's an irmc of fujitsu)... further more, without lan connectivity i'll be not able to restore the backup20:35
Fin3BlueEagle, pls help20:35
Fin3:(20:39
BlueEagleFin3: I'm sorry, but what kind of hardware is this?20:39
Fin3it's a fuhitsu primenergy server20:40
Fin3*fujitsu20:40
BlueEagleFin3: And it is not in your immediate vicinity?20:40
Fin3nope it's in my office20:40
Fin3i'm at home due to covid rules, in smart working20:41
BlueEagleFin3: So you ran an upgrade on hardware you do not have access to on a system that you have no way to restore if network connectivity goes down?20:41
Fin3ok you are not helping me at all20:41
BlueEagleFin3: I'm sorry, kid. I am just trying to understand the magnitude of the fsck-up.20:42
Fin3from what i said u already know i did it20:42
BlueEagleFin3: Do you have a working ILO at least?20:42
Fin3no 'cause it's not an hp server20:43
BlueEagleFin3: I'm sorry, do you have an equivalent of an ILO then?20:43
Fin3yes, i've got an iRMC20:43
Fin3and i'm logged in, but i can't find anything useful to virtually unlink the network card20:44
Fin3i'm at the console of the server, and even if i try to ping the gateway, it doesn't respond20:45
BlueEagleFin3: Ok, do you have net-tools installed so you can do an ifconfig?20:46
Fin3yes i've got it, and it show up my correct configuration20:46
BlueEagle!pastebin20:47
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.20:47
Fin3it's ok a screenshot? 'cause i can't copy text from the console20:48
BlueEagle!screenshots20:48
ubottuScreenshots can be made with the [PrtScr] button. Want to show us a screenshot of your problem? Upload an image to http://imgur.com/ and link the created page here.20:48
pavlosFin3: paste screenshots on imgur.com20:48
Fin3i'm registering, they want a phone number, but don't like mine -.-'20:50
BlueEagleFin3: Well, it's just your job ...20:51
Fin3may i use another site for pasting the screenshot?20:52
BlueEagleFin3: As long as we are able to see what you see then that is the primary objective. I do not see anyone in here going to go ape if you link a google photos link. :)20:53
Fin3no no i'm registered, i've changed phone20:53
Fin3https://imgur.com/w2Oiph120:54
happyghostWhat music player does everone prefer?20:54
Fin3https://imgur.com/DrMiFLN20:54
Fin3my bonds are in the first pic, the first two20:54
Fin3it's working only eno2 as you can see...maybe i can try to unbound them and see what's happen?20:56
BlueEagleFin3: So only IP6 and no IP4. Is that intentional? Also, only local link addresses and no global also as intended?20:57
Fin3yes sir20:57
BlueEagleFin3: Very good. Then it is on to the routing. What does `route -6` yeld20:59
Fin3ok....but if it's on the routing, why it was working before updates?21:00
Fin3(i'm doing)21:00
Fin3https://imgur.com/uyR8dX021:01
pavlosFin3: there is folio.ink if you don't like imgur21:01
Fin3pavlos, hmmmm...what?21:02
BlueEagle!poll21:02
Fin3sorry, i didn't understand...21:02
BlueEagleFin3: Wrong window :)21:02
BlueEagleFin3: I don't se anything that has next hop _gateway, and I would have expected to see that. (At least I have it)21:04
Fin3but..where?21:04
BlueEagleFin3: [::]/0                         _gateway                   UGe  1024 9     0 eno121:04
Fin3i've got no switching on ipv621:04
BlueEagleFin3: I'm sorry, from what you wrote to begin with I understood that you were not able to connect to anything.21:05
Fin3:O21:05
BlueEagleFin3: If you want to connect to something then you need to know where that thing is.21:05
BlueEagle... or at least how to get to that thing.21:05
BlueEagleFin3: If you don't have a static route to it then it has to go through a gateway, and I don't see one.21:06
Fin3the gateway of the machine is 172.31.79.253, as you can see in the print screen21:06
BlueEagleFin3: But that is an IP4 address and both your NICs only have IP6 addresses. Now I am not a network technician, but from what I gather the two don't talk nice with each other.21:08
BlueEagleFin3: Unless you're doing some tunneling, in which case your tunnel appears not to be up.21:08
Fin3but i've no ipv6 addresses at all!21:08
Fin3u asked me for the route of 6, but i'm watching the route of 4 and it's all ok21:08
rangergordwhat's that package you install on Ubuntu servers to re-enable autocomplete on apt package names?21:09
BlueEagleFin3: Oh, I see what happened. I only got the last one of your links because they were on separate lines.21:09
Fin3rangergord, how can i show you?21:09
Fin3i've got no /var/log/apt21:09
rangergordFin3, you can't. People who use Ubuntu Server would know21:10
Fin3is there another log file i can show you?21:10
BlueEagleFin3: If it is the IPv4 route then I could use the output of `route`21:10
rangergordIt comes pre-installed on desktop Ubuntu21:10
Fin3oh sorry, i haven't21:10
Fin3ok BlueEagle let me do it21:10
rangergordFound it, software-properties-common and command-not-found21:10
Fin3BlueEagle, https://imgur.com/mQXTDqW21:12
Fin3i've tried changing netplan changing /etc/netplan/50...yaml but the bounded cards after netplan apply won't go away, any hints?21:16
BlueEagleFin3: Ok, my next guess (I am out of my depth here) is to: `sudo ifconfig bond0-dmz down` - However you must be absolutely sure that this is not what grants you access to the remote console. Once the interface is down you should be left with one gateway, which is how I imagine networks should work.21:17
BlueEagleFin3: I do not know netplan at all, so I cannot be of help with it.21:17
Fin3ok ty BlueEagle now i'm trying what u suggest, but it's a very strange behaviour....i'm start thinking is not a software related problem21:18
BlueEagleFin3: If that doesn't help get access to anything then run the command again but replace down with up to get it back.21:18
Fin3ok thank you but i will not lose connection, i'm logged with the irmc21:18
BlueEagleFin3: Very good. Also an `arp -a` could possibly be useful21:19
Fin3i really can't figure out what's going on...this server is up&running since 14.0421:19
Fin3thank you BlueEagle21:19
pavlosFin3: to upload images21:21
BlueEaglepavlos: High ping today? :)21:22
Fin3oh my god my server is back21:23
Fin3hahahah BlueEagle i want to ask the same :P :)21:23
Fin3i'm soooooo glad to see my f**n server run again21:23
Fin3i think was a netplan mistake21:23
Fin3BlueEagle, https://cloud.pal.it21:24
Fin3BlueEagle, finally i've removed the bound, now my netplan config file look like this https://imgur.com/VS0ATJC21:26
Fin3this is the only ip i need, but i've lost the backup-active capability.... when i come back to office i MUST check what's happening down there21:26
Fin3the strange behaviour was that before updates all works like a charme21:28
Fin3now i'm opening a wine bottle (prosecco one, if u know what i mean :)21:28
Fin3BlueEagle, nothing to say?21:32
zetheroowhat is the name of that network manager tool which allows the search domain for a VPN connection to be set?21:35
Rubatowhat the offtopic channel?21:37
Fin3ok guys, anyway thank you a lot for your help, really appreciated, especially for BlueEagle. Good night all!21:38
zetheroowhat happened to nm-connection-editor in 20.04?21:48
BlueEagleWell, I am glad it sorted itself for Fin3. :)21:50
etronikhi all, can anybody assist with "usbi: usb_claim_interface failed vid 04b8 pid 013a nco 1 ifn 0 : could not claim interface 0: Operation not permitted" - it's an Epson scanner not being detected by Vuescan22:03
etronikalso tried with sudo but no difference22:03
daxRubato: #ubuntu-offtopic22:17
mefistofeleshello, so I'm having this high pitched chirp (like a cricket sound) when I use the microphone with zoom, any ideas why this may be happening or any tips on how to solve that?22:24
matsamannear another microphone?22:25
matsamananybody else on the zoom meeting near another one?22:25
mefistofelesthey left, but no, it's not feedback22:26
mefistofelesthe other person can be muted and they can hear it, if I mute my microphone it's gone22:27
=== KingPin1 is now known as KingPin
RandomGuyOnIrcI am using ubuntu 18.04 mate. I used screensaver stop the screen saver from coming on. I unchecked the "activate screensave when computer is idle" and "lock screen when screensaver is active".  The screen still turns black. I want to leave this screen on all the time. How can I do that?22:32
tacomasterI know that notepad++ has a snap but I am looking for a linux alternitive to it. The only feature that is an absolute must is a find all in current document that does not name you click next to see the next match. I do a lot of log analysis for my job.22:46
sarnoldwhat would you rather it do?22:49
tacomastersarnold: Have you ever looked at notepad++?22:49
tacomastersarnold: It basically creates a bottom window that shows all of the results and if you click on one it will take to the the line in the log22:50
tacomasterI am at a point were I can do all of my work on my linux machine but the only two things I cant seem to find is a reader that will read windows event logs and a good log reader. I have already replaced the package agent ransack for a program called search monkey that works great.22:52
sarnoldtacomaster: I may have used notepad++ ~25 years ago, is the license on it 'please send me a postcard'? I sent the author a postcard once ;) heh22:53
sarnoldtacomaster: vim's :g/foo/p  will print all the lines matching the regex, but there's no useful way to get to them22:53
sarnoldtacomaster: vim's quickfix support makes it easy to take something like compiler output and jump to lines in source code.. it might be harder to wrap that into your use though22:53
tacomastersarnold: I am absolutely terrible with regex :D. Something that would useful to learn but I am looking for something  I can quickly pick up and just start using in the mean time.22:54
etronikare packages with extension .deb.tar.gz directaly installable from command line ? or do I have to extract it ?22:55
tacomasteretronik:  think of a .gz like a zip file22:55
tacomasterFor dpkg to work it needs to be in a .deb22:56
etronikbut that "zip" file has a folder with .deb extension... that's weird22:56
etronikie. not a .deb file22:56
tomreyntar xzf somefile.tar.gz     will unpack whats in it (including paths)22:57
tomreynthe file name seems to suggest that just one or more .deb files would be unpacked22:57
tomreyntar lzf somefile.tar.gz     will show what's inside the archive.22:58
etronikthats why its weird - it's an epson driver of sorts... the .deb is merely a folder with stuff, not a single file22:58
tomreyntar tzf somefile.tar.gz     will show what's inside the archive, not  'lzf, sorry22:58
etronikI've opened with KDE archive viewer  - I already seen whats inside22:59
jeremy31etronik: I deb file is an archive like a zip but it has other info to install it22:59
etronikguys, I knows exactly what I said :-) the whatever.deb is NOT a file or package or whatever, it's a FOLDER... with files inside23:00
etronikI mean, in this instance23:00
etronikso I don't know how to proceed23:00
RandomGuyOnIrcI am using 18.04 mate. I have disabled screensaver by unchecking the two boxes which turn it on. But after a few minutes the computer goes black. It comes back to normal as soon as I touch any key or the mouse. It is a black screen. I did not select a black screen saver. This is something other than screen saver. Does anyone know what program causes my screen to go black after several minutes?23:02
tomreynwe've reached a point where referring us to a downloadable copy of the file, or showing a screen shot or textual output of the tar commnd would help23:02
tomreynetronik: ^23:02
etronikyou're right23:03
tomreynRandomGuyOnIrc: maybe     xset -dpms23:04
RandomGuyOnIrcthanks I will google that23:04
tomreynxset -dpms s off23:04
etroniktomreyn,  you're right, but... it's just Epson's weirdness, I'm reading docs, going inside the folder and running the install.sh stuff - I was just at a loss looking at a non-standard .deb thingy23:04
RandomGuyOnIrcI get this error "xset; unable to open display ""23:07
RandomGuyOnIrcI think I need to specify a screen23:07
RandomGuyOnIrcI don't know why my current display number is23:07
tomreynDISPLAY=:0 xset -dpms -s off23:07
RandomGuyOnIrcthanks!23:08
tomreynit could be a different one, i'm just guessing that it's :023:09
RandomGuyOnIrcwell I will give it a few minutes and see if it works23:09
RandomGuyOnIrcthanks23:09
wolframHello, on Ubuntu 18.04, when using 'fuser /path/to/file' I can get a list of PIDs that have the file currently open. I wonder if this information is also available somewhere in /proc or elsewhere (i.e. I am looking for another way to achieve the same, being able to say what PIDs have an arbitrary path open right now). Thanks.23:20
wolfram"path to an arbitrary file", rather.23:21
wolframReading https://gitlab.com/psmisc/psmisc/-/blob/master/src/fuser.c I cannot really find anything obvious :/23:21
sarnoldwolfram: /proc/*/fd/*  -- all look like symlinks23:23
sarnoldwolfram: lsof and fuser are the two popular ancient utilities for this23:23
TJ-wolfram: "lsof"23:23
wolframsarnold: Right.. I am strace'ing fuser and it appears to be scanning the whole of /proc/*/fd/* if I am not mistaken.23:23
sarnoldyeah, that's about what I would expect the implementation to look like, hehe23:24
wolframTJ-: I know, but I would prefer to magically have it somewhere in /proc too :)23:24
=== DArqueBish0p is now known as DArqueBishop
jayjoCan I achieve everything the startup disk creator does on an ubuntu installation with `dd`, or is there more to it?23:25
Bashing-omwolfram: See; https://www.cyberciti.biz/faq/howto-linux-get-list-of-open-files/https://www.cyberciti.biz/faq/howto-linux-get-list-of-open-files/ for some additional ideas.23:25
TJ-wolfram: lsof scans /proc/ :)23:25
wolframTJ-: Hah, so that is about it.23:26
TJ-wolfram: basically you do "sudo ls -l /proc/[1-9]*/fd/* | grep $PATH_TO_MATCH"23:27
wolframBashing-om TJ- sarnold: I owe you some context, my apologies. I am running this command from another program and I am hitting performance issues, lsof is slower than fuser but fuser is still not fast enough so I am just trying to understand how to implement the same functionality myself. And it appears that a scan over /proc is the way.23:27
TJ-wolfram: you have to consider the symlinks23:27
TJ-wolfram: and those other tools have been optimised to do that, so you'll not do much better unless you can reduce the brute-force range of PIDs using some additional information available to your tool23:29
wolframBut this leads me to a question, this concern aside, do filesystems generally expose some APIs like that to user land? It would be nice for ext4 to keep a map of file_names -> PIDs available for user code to consult to avoid the inevitable sequential scan of /proc.23:29
TJ-wolfram: file-systems are not interested in PIDs23:29
wolframTJ-: But I am :)23:29
TJ-wolfram: right, and the kernel provides procfs so you can find them23:29
wolframTJ-: But I know, I know, the tools are already optimised, I am just checking my options, I appreciate your assistance.23:30
TJ-wolfram: if you want performace, write an eBPF program23:30
wolframNot in Ubuntu 18.04? Does it not require some extra software to be installed? This is for a client that would not be able to install custom kernels or anything.23:31
sarnoldwolfram: hmm, you *could* try something like an inotify watch on *everything* and keep a database of pids and fds23:31
sarnoldwolfram: that'll hit memory limits and watch limits, so it might only work on a system that's small enough that it's not interesting23:31
wolframsarnold: Unfortunately, this file is saved to ext4 via Samba and I get 4-5 events from inotify each time Samba files like saving some data received from Windows.23:32
wolframsarnold: I.e. this is the very reason I am checking fuser's implementation, to be able to say when Samba actually closed the file it was writing ot.23:32
sarnoldwolfram: what is the problem you're trying to solve?23:33
wolfram:)23:33
TJ-wolfram: inotify can be set to only report CLOSE23:34
wolframHm, this is intriguing TJ-23:34
wolframLet me see if I can make use of it here.23:35
Sven_vBWhen did Ubuntu update its apt to 1.4?23:36
TJ-wolfram: I suppose you could also put the samba process in a separate namespace so it's the only PID there (or one of a very small number)23:37
Sven_vBor maybe easier: are there still any supported versions that have an apt older than 1.4?23:37
TJ-Sven_vB: check the changelog23:38
tomreynSven_vB: https://packages.ubuntu.com23:38
wolframHm, I could not use inotify in a general case. The same piece of code needs to work under Linux and Mac, ultimately Windows too. But I guess no one will use Samba with Mac or Windows.23:38
Sven_vBTJ-, tomreyn, thanks!23:38
TJ-Sven_vB: "apt-get changelog apt | grep -C 10  '1\.4' " maybe?23:38
TJ-ouch! "Changelog unavailable for apt=2.0.3"23:39
TJ-did someone break changelogs.ubuntu.com ?23:39
wolframsarnold: There is no problem really, everything works as designed probably. It is just that Samba sends a few inotify write events when a file is being tranferred over a slow connection but TJ- now reports that I can think outside the box and have inotify give me close events which is what I will check under Linux, leaving the Mac part of the code as it is.23:39
wolframTJ-: Good hint with a namespace, thanks.23:40
Sven_vBTJ-, tomreyn, I'll just check the web man pages of each version, they have the "Provided by:" info top left.23:40
TJ-Sven_vB: manually it is at http://changelogs.ubuntu.com/changelogs/binary/a/apt/2.0.3/changelog23:41
wolframSven_vB: Ubuntu 16.04 has apt 1.2.32ubuntu0.1 apparently but no one will install a new system using 16.04..23:41
TJ-Sven_vB: " -- Julian Andres Klode <jak@debian.org>  Sat, 01 Apr 2017 21:39:37 +0200"23:42
sarnoldwolfram: are you trying to implement something like samba-vscan from http://www.openantivirus.org/projects.php ?23:42
wolframsarnold: Never heard of it and it does not seem related. I just have a server that listens for new files in specific directories, this occurs once in a while, nothing on the order of hundreds of events as a second. More like a hundred a day.23:43
wolframsarnold: The listener / observer part needs to be cross platform, currently Linux and Mac, Windows coming up. Not using inotify makes the whole thing cross platform but thanks to this conversation I can see that using inotify under Linux again, if it can give me only close events, will be fine too.23:45
wolframsarnold: TJ- For some reason, I either forgot that inotify can emit only close events or it did not for me a couple of years ago when I was using inotify in this part of code. I just honestly cannot recall, I replaced it with a custom file observer which works fine unless it is in conjuction with Samba and a slow connection. That is the whole story :)23:47
wolframThanks again sarnold and TJ- It was once again nice to be able to chat with you, have a great weekend good people.23:54
sarnoldoh dang, he's gone already .. oh well23:57
sarnoldhopefully he'll return sometime to tell us how it's going :)23:57

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