[00:25] <chieta> is there any artifact that show on bash variable that show that this is focal release?
[00:27] <chieta> $ echo $UBUNTU_RELEASE
[00:27] <chieta> focal
[00:27] <razorback> chieta: lsb_release -a
[00:28] <razorback> lsb_release -sc to be exact
[00:30] <chieta> thanks razorback... just thinking for more filter on this $lsb_release -a | grep Codename:
[00:30] <razorback> lsb_release -sc just prints you exactly "focal", just as you wanted
[00:31] <razorback> you can put the output of bash commands into variables like that: release=$(lsb_release -sc)
[00:32] <StupidLikeAFox> I'm on xubuntu 20.04, and I'm trying to install the package 'lightyears' from bionic, but I can't seem to either pull a .deb from ubuntu's website, or figure out the apt line to add the appropriate repo into synaptic
[00:33] <StupidLikeAFox> I did fine the package's page, and it's list of depends
[00:33] <StupidLikeAFox> *find
[00:36] <razorback> StupidLikeAFox: open /etc/apt/sources.list and uncomment the lines with "universe"
[00:36] <razorback> if that's what you mean, you need to "apt update" afterwards
[00:43] <chieta> thanks razorback, it works
[00:44] <Ubun00by> hello, anyone know how to run a sysv script on systemd?
[00:45] <Ubun00by> or even an upstart script on systemd
[00:45] <StupidLikeAFox> razorback: No dice, but lemme go ahead and apply all the changes I have in synaptic first
[00:46] <StupidLikeAFox> and I'll try from apt
[01:06] <StupidLikeAFox> razorback: nope, didn't work
[01:06] <StupidLikeAFox> 'no installation candidate'
[01:08] <razorback> StupidLikeAFox: what does "apt-cache search lightyears" show?
[01:09] <StupidLikeAFox> it didn't produce any output
[01:11] <razorback> And what does "apt-cache policy" say?
[01:15] <CrazyLikeAFox> razorback: https://pastebin.com/qFc90mbg
[01:17] <razorback> CrazyLikeAFox: ah, yes, it's not available for focal
[01:19] <razorback> CrazyLikeAFox: maybe you can try http://us.archive.ubuntu.com/ubuntu/pool/universe/l/lightyears/lightyears_1.4-2_all.deb
[01:26] <Adalogic> Hey so how do I get audio playing through my speakers to not play through my discord mic? I'm playing some Youtube videos and the audio plays through my Discord microphone during calls.
[01:27] <StupidLikeAFox> razorback: Thank you much :D
[01:28] <StupidLikeAFox> Installed that, did a fix-broken, and it's good to go
[01:28] <razorback> StupidLikeAFox: nice. I didn't know if it would work but I'm glad I was able to help
[01:28] <sarnold> Adalogic: many of these kinds of things can be solved by running pavucontrol
[01:29] <s3nd1v0g1us> what is the latest model Macbook that will run Ubuntu? (I know that there is not currently support for T2.)
[01:29] <Adalogic> Alright! I'll try that out right now.
[01:34] <robertparkerx> I'm getting notice that updates & security updates are available but I just ran 'apt-get update && apt-get upgrade'
[01:35] <robertparkerx> I forgot what to do in this case...
[01:35] <guiverc> robertparkerx, are there any with `sudo apt-get dist-upgrade`  (upgrade has limits on what it can upgrade; refer `man apt-get` for details
[01:35] <sarnold> robertparkerx: I think that can also come from firmware updates, try fwupdmgr upgrade  ?
[01:41] <robertparkerx> 'apt-get dist-upgrade' did it
[01:41] <robertparkerx> ty
[01:41] <blueingress> hi, my brave browser can't update anymore, the message: "brave-browser is already the newest version (1.3.115)." stay the same for months.
[01:46] <sarnold> https://community.brave.com/c/faq/release-notes/98 -- oww, feels like you're a year behind
[02:02] <blueingress> sarnold, yes , that is an installation instruction{. not deb files to download.
[02:02] <blueingress> I've tried that for many times.
[02:11] <Ubun00by> does anyone know if i could get systemd to execute a command outside the user folder (bypass permissions)
[02:13] <leftyfb> Ubun00by: run the service file as root or another user with permissions. Other than that, no, that would be a security flaw
[02:13] <sarnold> Ubun00by: WorkingDirectory= in systemd.exec(5) perhaps? what are you trying to do?
[02:13] <Ubun00by> i am running it as root
[02:13] <leftyfb> Ubun00by: then you can stick the program it's calling anywhere you like
[02:13] <Ubun00by> run virtual machine that is on another drive
[02:14] <Ubun00by> command needs to be called in folder with VM
[02:14] <leftyfb> Ubun00by: VM?
[02:14] <Ubun00by> virtual machine
[02:14] <leftyfb> Ubun00by: ok?
[02:14] <Ubun00by> which is on a seperate drive from the root
[02:15] <leftyfb> Ubun00by: and you want the VM to be able to access a file on drive/partition not mounted in the VM?
[02:15] <Ubun00by> no
[02:15] <Ubun00by> i just want the host machine to start the VM, via system d script
[02:15] <leftyfb> Ubun00by: ok?
[02:15] <Ubun00by> really simple
[02:15] <Ubun00by> but i keep getting permission denied
[02:15] <leftyfb> Ubun00by: what is the issue then?
[02:15] <leftyfb> Ubun00by: please pastebin what you have so far and the error messages
[02:16] <leftyfb> blueingress: install brave from snap. That is up to date
[02:16] <Ubun00by> please excuse me, it is my first time writing a systemd script
[02:16] <leftyfb> blueingress: it's all a package we can support
[02:16] <Ubun00by> [Unit]
[02:16] <Ubun00by> Description=VM ubuntu2004
[02:16] <Ubun00by> [Service]
[02:16] <Ubun00by> Type=forking
[02:16] <Ubun00by> RestartSec=15
[02:16] <leftyfb> !paste | Ubun00by
[02:17] <leftyfb> Ubun00by: you have been set to quiet by the bots here. You cannot paste multi-line outputs to the channel. Use pastebin as I asked and as directed by ubottu above. Wait just a few moments for the quiet flag to be removed
[02:19] <Ubun00by> https://paste.ubuntu.com/p/gJp6JgXjHV/
[02:20] <leftyfb> Ubun00by: you have an executable called "KVM" in /media/data/ ?
[02:20] <sarnold> Ubun00by: pastebin the namei -l /media/data/KVM  output?
[02:20] <leftyfb> Ubun00by: ls -l /media/data/KVM
[02:21] <Ubun00by> that is just a directory
[02:21] <sarnold> aha, you can't execute directories
[02:21] <leftyfb> Ubun00by: ok, so why do you have a space between KVM and vagrant?
[02:21] <sarnold> what are you trying to execute?
[02:21] <leftyfb> sarnold: I'm going to assume vagrant
[02:21] <blueingress> leftyfb, hm... thanks I will try...
[02:21] <Ubun00by> vagrant up ubuntu2004 is the command
[02:22] <Ubun00by> i see so I need to write an executable instead?
[02:22] <leftyfb> Ubun00by: why do you have /media/data in there at all?
[02:22] <Ubun00by> more directories
[02:22] <Ubun00by> it's a samba shared drive
[02:23] <leftyfb> Ubun00by: for what? The ExecStart line is to run a command
[02:23] <leftyfb> Ubun00by: ok, how about this .... how do you normally start the VM from the command line?
[02:23] <Ubun00by> yes that's what I'm trying to do. Go to directory /media/data/KVM and run the VM
[02:23] <sarnold> aha!
[02:23] <sarnold> WorkingDirectory=
[02:24] <Ubun00by> ohhh i think that makes sense now sarnold
[02:24] <leftyfb> Ubun00by: https://pastebin.ubuntu.com/p/hpvwndBHTf/
[02:25] <leftyfb> Ubun00by: also, I would call the full path of vagrant
[02:25] <sarnold> leftyfb: nice
[02:26] <leftyfb> Ubun00by: https://pastebin.ubuntu.com/p/x2M6gVRmtk/
[02:28] <Ubun00by> but vagrant up/vagrant halt is the command
[02:28] <leftyfb> Ubun00by: yes, that's all in there
[02:28] <leftyfb>  /usr/bin/vagrant up
[02:28] <leftyfb> is the same as "vagrant up"
[02:28] <Ubun00by> shouldn't there be a space before vagrant?
[02:29] <leftyfb> no, /usr/bin/vagrant is the full path to the vagrant binary
[02:30] <leftyfb> Ubun00by: https://linuxhint.com/path_in_bash/
[02:31] <Ubun00by> thank you leftyfb, i will read that and troubleshoot
[02:31] <Ubun00by> it's just telling me exit code now
[02:32] <Ubun00by> run-ubuntu2004-vm.service: Failed with result 'exit-code'
[02:32] <leftyfb> Ubun00by: journalctl -u run-ubuntu2004-vm.service
[02:34] <leftyfb> Ubun00by: can I ask why you are making a service just to start the VM?
[02:34] <blueingress> leftyfb, how can I start it from command line? tahnks
[02:35] <Ubun00by> so that this VM is always running whenever the host is rebooted up
[02:35] <leftyfb> Ubun00by: vagrant up "ubuntu2004
[02:35] <Ubun00by> run-ubuntu2004-vm.service: Failed at step EXEC spawning /media/data/KVM: Permission denied
[02:35] <leftyfb> Ubun00by: config.vm.define "ubuntu2004", autostart: true
[02:36] <leftyfb> Ubun00by: you can configure your VM's to autoboot
[02:36] <leftyfb> blueingress: start what? brave?
[02:41] <Ubun00by> leftyfb: I thought autostart was just for controlling the general vagrant up command to have specific VMs not start with just "vagrant up"
[02:41] <leftyfb> Ubun00by: https://www.vagrantup.com/docs/multi-machine
[02:41] <blueingress> leftyfb, yes. from command line
[02:41] <leftyfb> Ubun00by: please read the docuentation
[02:42] <Ubun00by> yes i reviewed that
[02:42] <leftyfb> blueingress: did you try typing: brave
[02:43] <leftyfb> Ubun00by: ok, and doesn't vagrant start on boot for you?
[02:43] <Ubun00by> leftyfb: correct
[02:43] <blueingress> leftyfb, greate ..:-)
[02:43] <Ubun00by> leftyfb: i need a way to automatically vagrant up that folder
[02:44] <leftyfb> Ubun00by: ok, then if vagrant starts on boot, then the VM's should come up as well as long as they are set to true for autostart
[02:44] <leftyfb> Ubun00by: please pastebin your service file
[02:46] <Ubun00by> https://pastebin.ubuntu.com/p/w3QZDDDMJG/
[02:46] <Ubun00by> still gives me the same permission error
[02:47] <Ubun00by> leftyfb: run-ubuntu2004-vm.service: Failed at step EXEC spawning /media/data/KVM: Permission denied
[02:48] <sarnold> Ubun00by: just to be clear, did you run systemctl daemon-reload  after making these changes?
[02:48] <Ubun00by> yes
[02:48] <xamua> is that a mount point? is the noexec option set on it?
[02:48] <sarnold> because the error message sure looks like you're still trying to execute the directory
[02:49] <Ubun00by> it is a mount point! i think that's what i need to fix, yes
[02:49] <Ubun00by> sarnold: every time i change the file i reload the daemon, start and then journal
[02:50] <sarnold> Ubun00by: try systemd-analyze /etc/systemd/system/run-ubuntu2004-vm.service ?
[02:50] <leftyfb> Ubun00by: please remove the +'s
[02:50] <leftyfb> wait....
[02:50] <leftyfb> Ubun00by: where does this service file live and how did you enable it?
[02:51] <Ubun00by> exists in /etc/systemd/system
[02:51] <hansh> why does "apt remove --purge mysql-server" leave old user credentials in /var/lib/mysql ?
[02:51] <hansh> i very specifically said --purge
[02:52] <hansh> but.. it didn't purge the useraccounts of the mysql server
[02:52] <leftyfb> hansh: maybe because the user credentials created there were not part of the package to begin with?
[02:53] <leftyfb> Ubun00by: what command did you use to enable the service?
[02:53] <Ubun00by> leftyfb: i do systemctl daemon-reload, then systemctl start file.service
[02:53] <hansh> leftyfb, incorrect, it doesn't purge the "root account", and the root account is there to begin with.
[02:53] <leftyfb> Ubun00by: what command did you use to *enable* the service?
[02:53] <hansh> leftyfb, (good guess though)
[02:53] <Ubun00by> leftyfb: systemctl enable file.service
[02:53] <leftyfb> Ubun00by: did you run that as root or use sudo?
[02:54] <Ubun00by> leftyfb: root
[02:54] <leftyfb> Ubun00by: you are logged in as root?
[02:54] <Ubun00by> leftyfb: yeah
[02:54] <hansh> anyway i need to figure out how to ACTUALLY purge the root account, as the password is lost
[02:55] <hansh> iirc i can do some `sudo service mysqld stop; mysqld --skip-grant-table` thing tho
[02:56] <Ubun00by> xamua: my folder is marked noexec
[02:56] <xamua> ...
[02:56] <sarnold> hansh: http://paste.ubuntu.com/p/9Zj3nSnrVp/
[02:56] <sarnold> hansh: it looks like it's configurable via debconf if the databases will be removed
[02:57] <leftyfb> Ubun00by: can you run this from the commandline?:   /usr/bin/vagrant up ubuntu2004
[02:57] <leftyfb> Ubun00by: as root
[02:57] <Ubun00by> leftyfb: doesn't work. i need to be in the directory of the vagrantfile
[02:59] <leftyfb> Ubun00by: and if you are in that directory?
[02:59] <Ubun00by> leftyfb: i just type: vagrant up ubuntu2004
[02:59] <leftyfb> Ubun00by: and if you are in that directory, can you please run:  /usr/bin/vagrant up ubuntu2004
[03:00] <Ubun00by> leftyfb: sorry, yes that works
[03:04] <leftyfb> Ubun00by: you know what I would do? Create the service file to start vagrant as opposed to the individual VM's
[03:04] <leftyfb> Ubun00by: you want it started regardless
[03:05] <Ubun00by> leftyfb: i don't think that's how vagrant works. it's basically KVM always running
[03:07] <Ubun00by> leftyfb: it's just a command line utilty not sure how to explain
[03:07] <Ubun00by> leftyfb: libvirt is the actual thing that runs
[03:08] <Ubun00by> leftyfb: vagrant just automates the provisioning for me
[03:08] <leftyfb> Ubun00by: https://www.cyberciti.biz/faq/rhel-centos-linux-kvm-virtualization-start-virtual-machine-guest/
[03:18] <Ubun00by> leftyfb: thank you soo much, i think i was really overcomplicating it! i will just write a script to execute a virsh shutdown instead, since that will not be dependent on any directory
[03:19] <Ubun00by> leftyfb: i have been heavily reliant on the automated vagrant tool that I oversaw the main qemu operations
[03:37] <Ubun00by> leftyfb: ahhh the libvirt commands to start the VM don't work, since it's provisioned via vagrant. I wrote a script with the virsh commands and they can only show status and shutdown a VM
[03:38] <Ubun00by> leftyfb: error: Requested operation is not valid: network 'vagrant-libvirt' is not active
[03:39] <Ubun00by> error: autostart doesn't work so i guess i have to go back to figuring out a vagrant script again lol
[04:34] <Ubun00by> leftyfb: are you still available?
[04:36] <Ubun00by> leftyfb: i am using the script you pastebinned me and it is active but not doing anything for some reason..
[05:40] <sara2010> hi
[05:40] <Vatum> sara2010, install gentoo
[05:40] <Vatum> hi
[05:41] <sara2010> Vatum, okay its not possible scanner will work on ubuntu
[05:42] <Vatum> lmao
[05:44] <vysty> I just built myself a new computer (installed 20.04) and want to check if my video card is running with optimal drivers. The card is an NVIDIA Geforce GT 730. Can anyone help walk me through how to do this?
[05:44] <sara2010> Vatum .
[05:46] <Vatum> Vatum, what scanner do you have?
[05:47] <sara2010> Vatum. Canoscan LIDE 300
[05:48] <Vatum> sara2010, https://askubuntu.com/questions/1107632/install-canon-lide-300-400-on-ubuntu-18-04
[05:49] <sara2010> Vatum i did this . but scanner is not detecting
[05:50] <Vatum> does it say some error?
[05:50] <Vatum> when you run sane software from terminal?
[05:51] <sara2010> there is no scanner found
[05:51] <sara2010> https://pastebin.ubuntu.com/p/wbJJwwPKDQ/
[05:52] <sara2010> see this ,
[05:52] <sara2010> https://pastebin.ubuntu.com/p/MVjqMwZpnv/
[05:52] <sara2010> 2909.349269] usb 2-1.6: USB disconnect, device number 102
[05:56] <Vatum> sara2010, you need to use a PPA repository to get the latest release of sane, this has the support you want
[05:56] <Vatum> https://askubuntu.com/questions/1218905/how-to-install-canoscan-lide-400-scanner-on-ubuntu-18-04-4-lts
[05:57] <Vatum> sudo add-apt-repository ppa:rolfbensch/sane-release ;
[05:57] <Vatum> install sane-utils also
[06:02] <sara2010> sane-utils is already the newest version (1.0.27-1~experimental3ubuntu2.4).
[06:03] -Vatum:#ubuntu- someone help the girl plz
[06:03] <sara2010> Vatum . you can help as well
[06:04] <Disconsented> from pakistan?
[06:04] <Disconsented> something smells fishy
[06:05] <sara2010> Disconsented . no smells .. fesh morning
[06:32] <sara2010> Vatum , u there .
[06:32] <sara2010> i  m waiting
[06:39] <sara2010> any one help me
[06:42] <tomreyn> hi sara2010. first of all, i should point out that Canon support for Linux is not good, so buying a device form a manufacturer which provides Linux support would help.
[06:43] <jayjo> I'm trying to install the unifi controller on my machine, but I get "the following packages have unmet dependencies": https://bpa.st/AKZKK on mongo. Can I install these manually, or does that mean the package is broken?
[06:43] <tomreyn> sara2010: your paste to https://pastebin.ubuntu.com/p/MVjqMwZpnv/ suggests that the scanner connected, but identification failed the first time it was enumerated. the second time, it seemed to succeed, but then the device disconnected. this may be due to several reasons, including usb power issues.
[06:44] <tomreyn> jayjo: your ubuntu release is?
[06:44] <INTELGENERATOR> hey how do i obtain xf86-video-intel driver on ubuntu 2004 lts
[06:45] <jayjo> 20.10
[06:45] <INTELGENERATOR> hey how do i obtain xf86-video-intel driver on ubuntu 20.04 lts
[06:45] <tomreyn> !universe | jayjo
[06:45] <tomreyn> jayjo: you're probably missing the 'universe' repository, which provides mongodb packages
[06:46] <jayjo> I ran 'sudo add-apt-repository universe' and still get that error
[06:46] <sara2010> tomreyn, so how i fix this issue
[06:47] <tomreyn> sara2010: so this needs to be further analyzed and solved before you can address the driver support. driver support is discussed at the askubuntu post previously mentioned here: https://askubuntu.com/questions/1107632/install-canon-lide-300-400-on-ubuntu-18-04
[06:49] <tomreyn> sara2010: for the issue of the decvice disconnecting, you can removing any usb devices you don't strictly require, and move those you require to a different usb bus (i.e. make them show up with different bus IDs in the output you posted, "usb 2-1.6" is a usb bus id + port)
[06:50] <tomreyn> sara2010: you can also try conecting the scanner itself to a different usb bus while reducing the number of other USB connected devices
[06:51] <tomreyn> sara2010: to further debug the device enumeration issues, you can use the "udevadm monitor" command, running it before you connect the scanner
[06:53] <tomreyn> sara2010: USB device enumeration is done by the Linux kernel (and udev). you can try a different kernel version, such as the !hwe oder hwe-edge kernel series or !mainline kernel builds to do some cross testing.
[06:53] <sara2010> tomreyn okay
[06:54] <tomreyn> INTELGENERATOR: it will already be installed, just the package name differs. what'S the problem you are trying to solve?
[06:54] <tomreyn> INTELGENERATOR: apt search xserver-xorg-video-intel
[07:04] <unixbsd> hello
[07:05] <unixbsd> we teach on ubuntu virtual machine the skills of programming GTK graphical frontend, maybe you wanna learn on course online to dev for ubuntu.
[07:23] <stevecam> User funmade is spamming your visitors with invites to their discord
[07:30] <sara2010> hmmm
[07:30] <sara2010> still issue not solve :(
[07:48] <Ubun00by> hello could someone help me with a systemd script please?
[07:50] <drag0nius> i'm having weird issue, after few re-provisionings of machine without issues `apt update` started taking ~10 minutes per run advancing the "Reading package lists..." roghy 1% per 10 seconds
[07:50] <drag0nius> any idea whats going on and how to fix?
[07:51] <Ubun00by> drag0nius: what is the memory usage? perhaps increase and/implement memory swap
[08:03] <tuxinator> drag0nius: "WARNING: apt does not have a stable CLI interface. Use with caution in scripts."
[08:04] <tomreyn> drag0nius: could be hardware problems, see dmesg / journalctl -k
[08:05] <tuxinator> drag0nius: see manpage https://manpages.debian.org/buster/apt/apt.8.en.html section scripts
[08:09] <sara2010> hmmm
[08:10] <sara2010> any news for me
[08:21] <sara2010>  [ Error writing /sys/bus/usb/devices/usbpower: Permission denied ]
[08:21] <sara2010> root@wa-1:~# sudo nano /sys/bus/usb/devices/usbpower
[08:22] <sara2010> any one help me
[08:25] <tomreyn> sara2010: you need to enable volunteers to help by explaining what you're doing, why, in which environment, what the expected outcome was, and what happened instead.
[08:25] <tomreyn> so far you provided an error message, and a command, which may have triggered this error message. but there's no context.
[08:33] <sara2010> tomreyn , i m create new bash script file , but it sys permission error
[08:33] <sara2010> tomreyn in ubuntu 18.04
[08:33] <unixbsd> somebdy, are you maybe using gtk devel to make softwares?
[08:36] <tuxinator> tomreyn: how do you run it?
[08:36] <tuxinator> can you show ls -al
[08:44] <diskin> sara2010, you can't create files in /sys. See https://www.reddit.com/r/linux4noobs/comments/26fnd9/sys_permission_denied/
[08:47] <locsmif_work> What is a good desktop recorder if you have a multi-monitor setup
[08:49] <pa> hi folks
[08:49] <pa> i'm on a metered connection. How do i prevent snapd from sucking my data as soon as i connect my PC? https://imgur.com/a/y0hZDi2
[08:56] <EriC^^> pa: https://askubuntu.com/questions/1045542/how-to-stop-snapd-from-auto-updating
[08:57] <pa> er
[08:57] <pa> EriC^^, thanks! im on plasma, i cannot find that app.. what can i use?
[08:58] <EriC^^> pa: try to use the systemctl command to mask the service so it doesnt start anymore
[08:58] <EriC^^> it's further down in the answer iirc
[08:58] <pa> right, thanks
[09:00] <EriC^^> pa: for plasma it might be "startup & shutdown - Autostart" for the startup apps gui
[09:00] <EriC^^> *-> autostart
[09:01] <EriC^^> no problem
[09:01] <pa> ah right, found it, but i think it's not , in there i see only 2 entries "Desktop file" and "Script file"
[09:01] <EriC^^> ah
[09:01] <pa> but i went the other way, so thanks for that :-)
[09:01] <EriC^^> alright, no problem :)
[09:36] <drag0nius> Ubun00by tuxinator there is 4.5GB out of 16GB memory used, 100% CPU, the machine is a VirtualBox/Vagrant derivative of ubuntu/focal64 running on WIndows 10
[09:37] <drag0nius> there is nothing whatsoever in journal or dmesg
[09:37] <drag0nius> it just takes terribly long time AFTER downloading new repo list spent in high-cpu operations
[09:41] <drag0nius> FYI: this is about apt/apt-get update proceeding in the magnitude of 1% list read per 10-20 secons
[09:44] <tomreyn> "derivative"
[09:44] <elias_a> Firefox with around 30 tabs gets slow apparently because of bad memory handling. I have to use killall to close it. After that, FF starts in a 1/3 size window of whole desktop, window flickers and FF is unresponsive. 2 to 3 restarts of FF resolves the problem. Anyone else experiencing the same?
[09:45] <tomreyn> !derivatives | drag0nius: if, by "derivative", you referred to a ubuntu-lookalike installation
[09:48] <tomreyn> elias_a: generally, in my experience, both Firefox and Chromium / Chrome don't do well when it comes to out of memory situations and Linux swapping memory out to disk. This said, given sufficient physical memory, the number of open tabs should not matter much unless you have problematic browser extensions.
[09:50] <tomreyn> you can restart firefox with add-ons disabled from the help menu or using    firefox --safe-mode    but beware that this could cause your previous session (and potentially open tabs) to be lost.
[09:51] <drag0nius> i mean like i took the base box, then provisioned it with my configration installing ~50 packages, few snaps and configured the services running in it
[09:51] <tomreyn> drag0nius: so it's based on a golden image?
[09:52] <tomreyn> if so, how was that produced?
[09:52] <drag0nius> i've multi-stage packer setup running simple python scripts (run apt, write config files, restart services etc.)
[09:53] <tomreyn> my main question is: did you initially install ubuntu, and how?
[09:53] <drag0nius> then i worked on re-running all the provisioning stages (eg. after an update) on the final image and i noticed apt-get update got bogged down after a few tries
[09:54] <drag0nius> it's https://app.vagrantup.com/ubuntu/boxes/focal64 except i granted it 16 GB of RAM and 100% of 4 CPU cores
[09:54] <drag0nius> basically each of 4 stages runs apt-get update then apt-get install
[09:56] <tomreyn> so, based on the text onn this web page, this image seems to be somehow based on one of the official cloud images hosted at https://cloud-images.ubuntu.com
[09:57] <elektrinis> hi
[09:57] <elektrinis> I have noticed my USB3 port operates in USB2 mode (45MB/s max data transfer)
[09:57] <elektrinis> do I need to install something?
[10:00] <tomreyn> drag0nius: So at least the base image you used seems to be one we can support here. Please note that ensuring you're working with proper, safe, original images is really your job to make yourself aware of if you're using images provided by someone somewhere that is not, on first sight, Canonical / Ubuntu. Now, did you make changes to the apt configuration? Which mirror servers are you using? Can you share a debug (Acquire::http/https) output of
[10:00] <tomreyn> the apt actions you perform?
[10:02] <drag0nius> i've definitely added the Docker repository and that's it for modifying apt configuration
[10:02] <drag0nius> how do i get that debug output?
[10:03] <tomreyn> drag0nius: and the apt signing key, too?
[10:03] <drag0nius> yeah
[10:04] <tomreyn> -o Debug::Acquire::http=1 -o Debug::Acquire::https=1
[10:08] <tomreyn> elektrinis: tell us about your ubuntu release ( lsb_release -ds ), kernel version and command line ( cat /proc/{version,cmdline} ), using https://paste.ubuntu.com (see /topic and type !paste here). try unplugging all usb devices you don't strictly require, reboot, see whether it's still USB2 only. Also tell us how you tell, share logs as needed. And try a different kernel version, such as !hwe or hwe-edge, or even !mainline
[10:09] <drag0nius> tomreyn: https://gist.github.com/bec-zt8/38b613595f48c95e5f78f5a15c08d43d nothing unusual in here
[10:09] <tomreyn> elektrinis: this can also be a matter of your mainboard firmware configuration ("BIOS"), or a bug therein (firmware upgrades *can* help)
[10:10] <drag0nius> except it's on 22% after ~2 minutes before i typed in gist url :P
[10:10] <elektrinis> tomreyn thanks, will try.
[10:10] <lotuspsychje> !biosupdate | elektrinis suggested by tomreyn
[10:11] <tomreyn> drag0nius: ah, so the download stage isn't the problem but it gets stuck during reading the package list?
[10:12] <drag0nius> yeah
[10:12] <drag0nius> actually had a command typo (https and httpss) but that doesn't matter
[10:13] <drag0nius> parsing/reading/whatever the list takes painfully long
[10:14] <tomreyn> drag0nius: so the output is the same with "http{,s}" ? can you try this without a http proxy, just to be sure that's not the cause (it often is)?
[10:15] <elektrinis> tomreyn well now I get USB3 speeds. Not sure what was wrong. Thanks anyway.
[10:15] <drag0nius> nope, i'm behind corporate proxy
[10:19] <drag0nius> i've actually updated the git at rev 2
[10:19] <tomreyn> elektrinis: a bad usb device, or just insufficient power to properly power all attached devices could cause this.
[10:20] <elektrinis> maybe.
[10:21] <elektrinis> or maybe it was USBA->USBC adapter, which, now I think, does not have the lanes.
[10:22] <drag0nius> apt-get upgrade has exactly the same issue
[10:22] <tomreyn> drag0nius: there's debugging code for this, too, see apt.conf(5)
[10:22] <drag0nius> `apt list --installed` takes forever too i guess
[10:23] <tomreyn> maybe the storage is just slow?
[10:23] <drag0nius> everything else seems to work fine
[10:23] <tomreyn> anything in dmesg?
[10:24] <tomreyn> system date wrong?
[10:24] <drag0nius> date is fine
[10:24] <drag0nius> only dockerd messages in dmesg
[10:25] <drag0nius> maybe i could do something to reset the apt storage?
[10:25] <elektrinis> ~$ sudo udisks --detach /dev/sda
[10:25] <elektrinis> sudo: udisks: command not found
[10:25] <elektrinis> am I doing something wrong?
[10:25] <elektrinis> udisks seems to be installed
[10:26] <tomreyn> drag0nius: you can   rm -r /var/lib/apt/lists/
[10:26] <drag0nius> tried that before i think, doing it again
[10:27] <tomreyn> elektrinis: just because a package of name 'somepackage' is installed, doesn't mean there will be a command 'somepackage'. use udiskctl
[10:27] <drag0nius> maybe there is something i could run to benchmark storage?
[10:28] <elektrinis> found the command on some guides online
[10:28] <elektrinis> but ok.
[10:31] <drag0nius> i didn't notice anything else having issues (i'm developing in IntelliJ, running stuff in docker container etc.)
[10:32] <tomreyn> drag0nius: fio or bonnie++ for storage benchmarking. if you are doing this commercially (you seemto), then i recommend dedicating more time on the ops part of your devops career for a while.
[10:43] <cube1> I'm hitting some keyboard input bugs. Is IBus something Ubuntu uses, and something I can disable to hopefully simplify the architecture to see if I can get around the bug?
[10:45] <cube1> Language Support -> Keyboard input method system -> IBus/XIM/none - Got it!
[10:57] <mr_johnsie> join #c#
[11:15] <charolastra> how much space is needed to apt install the kernel header .deb? got a VM with 700Mb free disk space but unzipping still fails
[12:12] <EriC^^> !info linux-headers-generic | charolastra
[12:13] <charolastra> well, generic is just the pointer to the current version
[12:13] <EriC^^> yup
[12:13] <EriC^^> !info linux-headers-5.4.0-65-generic | charolastra
[12:13] <EriC^^> seems 14mb
[12:14] <charolastra> yeah, shouldn't be that much but installation fails even with >700mb free disk space
[12:14] <xamua> what's the error?
[12:14] <charolastra> unable to create '/usr/src/linux-headers-4.4.0-186/include/video/edid.h.dpkg-new' (while processing './usr/src/linux-headers-4.4.0-186/include/video/edid.h'): No space left on device
[12:14] <EriC^^> charolastra: are you doing it as root? i think 5% is reserved for root
[12:15] <charolastra> and 'df' says: /dev/sda1       6.9G  5.8G  736M  89% /
[12:15] <charolastra> and yes, directly as root
[12:16] <EriC^^> charolastra: inodes good? df -i
[12:16] <xamua> and df -i /dev/sda1
[12:16] <Vatum> gfgd
[12:17] <charolastra> 905 free inodes
[12:18] <EriC^^> charolastra: that might be it, dpkg -L headers... | wc -l shows 9000+ files/dirs
[12:18] <charolastra> yeah, so each file inside the archive needs a inode while unpacking?
[12:18] <EriC^^> those are the files that it installs to the system, not the archive
[12:20] <charolastra> ok, any way to get more free inodes?
[12:20] <EriC^^> delete any files you dont want, there's got to be something that's installing a lot of tiny files so it ate them all up
[12:21] <EriC^^> any service running that writes a lot of tiny files?
[12:21] <charolastra> can't think of much. it's a VM that serves a few websites and the SQL DBs for those
[12:22] <charolastra> actually it's a single wordpress instance on that one
[12:23] <EriC^^> are you sure df -i shows 905 left or used? whats the percent free, dont mean to be rude
[12:25] <EriC^^> charolastra: try "sudo find / -xdev -printf '%h\n' | sort | uniq -c | sort -k 1 -n;"  it should show the list of dirs and how many files are in there
[12:26] <charolastra> don't worry, we all know what's usually going on in IRC help channels. the df -i says: /dev/sda1      458752 457847    905  100% /
[12:27] <EriC^^> ok, hopefully the find command can show what's the culprit
[12:28] <elektrinis> i have added two HDDs to my setup and I can hear they are being accesed constantly, even though they are empty.
[12:28] <elektrinis> is this normal?
[12:33] <charolastra> EriC^^: thanks! the most inodes are in the various /usr/src/linux-headers-x.x.x and in /var/lib/dpkg/info
[12:44] <famubu> Hi. I had doubt which isn't exactly related to ubuntu but that I hope some of you can help me out with. I am running firefox on ubuntu and of late I've noticed that some websites (I could find no relation between them) redirect me to a website at "binomo.com" when I click on some part of the webpage. I searched about this binomo online and it seems to be something that involves money. This problem happens
[12:44] <famubu> occassionally that if I try soon after it happened at a time, I'm unable to replicate it. But it keeps happening over and over again at later points of time. All this made me think that my computer may have been infected somehow. If that's the case, any idea how I can get rid of it? I'm on Ubuntu 18.04
[12:46] <Intelo> any clues? https://imgur.com/3hVOZjX.png
[12:48] <geirha> you're trying to install 18.04 packages on a 20.04 system? that's not really supported
[13:11] <BluesKaj> Hi folks
[13:21] <Bozwell> Hi everyone. I'm a total novice running Lubuntu on a laptop. Does anybody know how to set up a network share for a folder on a Win 10 m/c? I've got as far as mounting the folder I want on my Linux m/c but I don't have any write access. It's enabled for Everyone on the Win side but when I try to creat a fold from Linux I get 'Permission denied'.......
[13:22] <garo> When booting the "live server" image of 20.04.1, is it's possible to force it not to use anything graphical ? No X, not even framebuffer
[13:22] <garo> Or even better: does it do this automatically ?
[13:26] <Maik> Bozwell: not sure if this is helpful: https://davescomputertips.com/how-to-network-sharing-with-lubuntu/
[13:29] <Bozwell> Thanks Maik
[13:29] <Maik> yw
[13:29] <Intelo> geirha: what should I do?
[13:29] <Intelo> geirha: you are correct. what is the 20v package?
[13:29] <lotuspsychje> garo: try #ubuntu-server if you like
[13:30] <xamua> Intelo: apt install mysql-client ?
[13:30] <geirha> the apt-cache policy command you ran shows that there are three versions available. Those are the ones you can choose from
[13:30] <geirha> Intelo: ^
[13:35] <garo> nevermind, i tried in a vbox :-)
[13:35] <garo> (it supports it, if you are fast enough to enter grub)
[13:39] <trupsalms> morning my cp -Rf /mnt/ /nfsshare/ubuntu18 isn't working as expected, its copying /mnt instead of the contents of /mnt
[13:39] <Habbie> trupsalms, is that the -exact- command you typed?
[13:40] <Habbie> trupsalms, oh, you mean it is copying the content of mnt into a new folder also called mnt?
[13:41] <trupsalms> yes yes
[13:42] <trupsalms> i need it to copy the contents of mnt into ubuntu18
[13:43] <Habbie> right
[13:43] <Habbie> using the trailing slashes in a different way might help
[13:46] <trupsalms> cp -Rf /mnt/ /nfsshare/ubuntu18/
[13:46] <trupsalms> cp -Rf /mnt /nfsshare/ubuntu18
[13:50] <Intelo> xamua: geirha I want 5.7 v of mysql on ubuntu 20
[13:51] <Intelo> xamua: geirha but now I am in a dependency and compatibility issue it seems
[13:51] <Intelo> I followed tutorials like https://www.digitalocean.com/community/questions/how-can-i-properly-downgrade-from-mysql-8-to-5-7-on-ubuntu-20-04
[13:52] <trupsalms> cp -R /mnt /nfsshare/ubuntu18/
[13:55] <Intelo> xamua: geirha there?
[14:04] <Intelo> I cannot install mysql-server. Getting these errors. By the way I do want to install mysql 5.7 on ubuntu 20. https://imgur.com/Y5m2RKK.png
[14:04] <Intelo> any clues?
[14:10] <tuxinator> Intelo: mixing amd64/x64 packages with i386 ?
[14:11] <Intelo> tuxinator:  no idea
[14:11] <Intelo> tuxinator: how can I fix?
[14:16] <tuxinator> did you try the suggested command?
[14:17] <SteelRose> hi all
[14:17] <tuxinator> Hi
[14:19] <SteelRose> has anyone deployed a reverse proxy with either nginx or Apache to point to the official Ubuntu mirrors when a system needs to download some packages or do a complete update? The idea is to configure the new Ubuntu systems to point to some internal server acting as a reverse proxy and download the packages so that the internal systems never access the outside world...
[14:20] <tuxinator> SteelRose: would probably be better to just host an internal mirror
[14:20] <SteelRose> for CentOS is easy because the syntax is quite straighforward but in Ubuntu I have entries like: deb http://ch.archive.ubuntu.com/ubuntu/ bionic universe
[14:20] <SteelRose>   ... and I have no idea hw to handle this
[14:20] <tuxinator> that way you download only 1 time
[14:21] <SteelRose> tuxinator: that was the initial idea but when I read that I'd need almost 1 TB to hold only one version (i.e. 20.04 LTS) I had to raise an eyebrow and think of another solution
[14:22] <SteelRose> hence me asking about the reverse-proxy configuration
[14:22] <tuxinator> well i would do it the mirror way
[14:23] <tuxinator> or setup a proper proxy to the internet, actually a reverse-proxy seems a bad and wrong solution
[14:23] <SteelRose> sorry... I meant forward-proxy
[14:24] <SteelRose> from here deb http://ch.archive.ubuntu.com/ubuntu focal universe I assume that the URL would be http://ch.archive.ubuntu.com/ubuntu/focal/universe but I'm not too sure how to pass the "focal universe" bit to the proxy
[14:26] <lusrx> does the "--disabled-password" option when creating user only create a blank (empty) password or disallow use of passwords?
[14:26] <SteelRose> so... anyone? :-)
[14:26] <tuxinator> well forwardproxy means something like squid
[14:27] <tuxinator> I think you should first ensure you understand the difference of proxy vs reverse-proxy and after that consider a solution
[14:27] <tuxinator> Doing it the wrong way against any good practice would be -> Reverse Proxy
[14:27] <tuxinator> the best or good practice would be -> Proxy or Local mirror
[14:28] <tuxinator> for the local mirror option:
[14:29] <tuxinator> advantage: download 1 time, LAN is normaly more reliable than a internet-connection
[14:29] <tuxinator> disadvantage: need 1 tb space -> however could be put on an external disk as if it is lost you just do a resync
[14:29] <tuxinator> btw operating the tuxinator mirrors since 15 years or so
[14:30] <SteelRose> tuxinator: I understand the differences mate :-)
[14:30] <pizzaburger> Hi! Is there a way to decrease wireless adapter power output to 75%? I know on Windows you can do that using device manager. Running Ubuntu 20.10. Thanks!
[14:31] <tuxinator> SteelRose: seems not to me, as you would never consider a Reverse-Proxy for your usecase normaly then
[14:32] <tuxinator> Proxy=you don't want direct internet connection without scanning and direct IP routes to the internet and or caching
[14:32] <tuxinator> Reverse-Proxy: you want to hide your backend servers and maybe do some security scanning and filtering (modsecurity etc.) and/or do loadbalancing
[14:32] <xamua> without much digging, I also think that unless you plan to host more than one or two releases, that you don't need the full 1.1TB space
[14:33] <tuxinator> xamua: yeah i was also thinking about the size
[14:33] <tuxinator> let me check on my tuxinator
[14:34] <tuxinator> will just do some "du" there
[14:34] <SteelRose> tuxinator: really, there is no need to patronise :-) I've been dealing with several r-proxies today and got confused during my question...
[14:34] <Intelo> What is wrong here? https://imgur.com/Tbm7Tc5.png
[14:34] <Intelo> tuxinator: which one?
[14:35] <tuxinator> Intelo: in your previous command it suggested a command
[14:35] <tuxinator> Intelo: read your output before asking here ,-)
[14:36] <geirha> Intelo: you have to use the exact version number available. 5.7.33-1debian9 in that screenshot, I'd expect furtehr issues though when trying to install a package meant for another os
[14:36] <geirha> I'd first check if mysql's repo at least has ubuntu 20.04 packages
[14:36] <oerheks> good spot, geirha
[14:38] <geirha> You might have an easier time just running mysql from a ready made docker image, than to try and squeeze an ill fitting box into your package manager
[14:42] <Intelo> tuxinator: I missed. can you tell?
[14:44] <oerheks> Intelo, just remove the wonky repo?
[14:45] <Intelo> geirha: how did you came to know that exact version? where did you see it?
[14:46] <Intelo> geirha: oh I get it. doing onw
[14:46] <Intelo> oerheks: am.. I want 5.7 msyql in ubuntu20.
[14:46] <Intelo> oerheks: don't know whats best
[14:47] <tuxinator> ok i cant provide mirror size requirements for bionic only
[14:47] <leftyfb> Intelo: don't. If you want 5.7, run it in a container running 18.04
[14:48] <tuxinator> don't understand how to achieve at the moment (long time since last studied package linking stuff etc) maybe somebody else can
[14:49] <SteelRose> tuxinator: rsync foobar --dry-run should help
[14:49] <SteelRose> and also --stats
[14:50] <lordcirth> I just had the permissions on /dev/null in an LXC container change - from 666 to 662. Apparently this broke ssh. I chmod'd it back, but anyone have any idea what did that??
[14:50] <tuxinator> i want to count localy and i use ubumirror as recommended (atleast when i installed the mirrors)
[14:53] <elias_a> tomreyn: Thanks. Not using add-ons is not an option really as I use both Privacy Badger and NoScript as a default precaution. :)
[14:57] <sybariten> hey'all
[14:58] <sybariten> so i couldnt help notice a bit of a difference in funcionality
[14:59] <sybariten> I'm running a live OS, and i'm double clicking on some externally attached harddrives on a laptop. They become mounted as directories under /media/$username/ .... $username is owned by root but the directories under that seems owned by $username
[14:59] <sybariten> If however i try to mount a third disk, an internal harddrive, manually .... i try to make a dir under /media/$username ... and i'm not allowed to. And if i sudo make it it becomes root owned ofcourse. What am i missing?
[15:00] <lordcirth> sybariten, the gist is that most desktop Linux distros run a daemon that mounts external drives for you, without you needing root.
[15:01] <oerheks> if a partition does not mount, what filesystem exactle?
[15:01] <leftyfb> sybariten: the mounts are mounted as $user which is why you see the ownership as $user. Write access to /media requires root
[15:03] <sybariten> leftyfb: yeah but.... ok so how should i do it, if i want to do it manually. If i sudo create the dir, i will always need to be root or sudo, to reach that dir no?
[15:03] <lordcirth> sybariten, as root/sudo, you can use chmod to change the ownership to your user.
[15:03] <lordcirth> Sorry, chown to change ownership, chmod to change permissions
[15:03] <sybariten> i mean how did the OS make those dirs looking user-owned then? Did they first sudo make dirs and then chown eerything, under the hood?
[15:04] <leftyfb> sybariten: you can mount the drive as the $user
[15:04] <oerheks> keep /mnt/  for manual, and /media/  for automount
[15:04] <sybariten> leftyfb: i thought if anything "on top" would be root owned, it would be a problem drilling further down
[15:04] <sybariten> oerheks: should that be the standard procedure?
[15:05] <lordcirth> sybariten, if you have x permission to a dir, you can follow paths below it. If you have r, you can ls it
[15:05] <lordcirth> So it can be root-owned but allow rx
[15:05] <sybariten> x is not so important as we are talking about different OSes here but i would need write permission...
[15:08] <sybariten> OK i did as you said, worked a charm, guys, Thanks!
[15:54] <Shadowbird2468> Greetings! I'm casual level user, not very advanced and I'm having a problem while trying to install UBports for Ubuntu Touch https://pastebin.com/78dP2MZG
[15:56] <regedit> hello - can't seem to SSH or FileZilla into some server, it hangs and times out. Where can i look for any reasons? i have sshd_config open, ufw is inactive, what else?
[15:57] <Shadowbird2468> I'm using Ubuntu 20.04
[16:02] <leftyfb> regedit: on the ubuntu server run: sudo lsof -i :22
[16:03] <regedit> leftyfb: i happen to see in sshd_config port is set to something else - let's say 22222, should i replace 22 with 22222?
[16:03] <leftyfb> Shadowbird2468: UBports/Touch is not really a supported project anymore. If you have problems installing it, you might try the channel for ubports or forums. If you have a generic ubuntu question, feel free to ask
[16:03] <leftyfb> regedit: yes
[16:04] <ramster> regedit yes try with -p 22222
[16:04] <kk4ewt> why a netscan will show where it is
[16:05] <Shadowbird2468> yea, I realized that I accidentaly ran wronf INSTALL.sh :S so, I goofed. but yes, I had this problem with anbox. how ever I'm fine as long as ubports works
[16:05] <regedit> COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
[16:05] <regedit> sshd 804664 root 3u IPv4 25816159 0t0 TCP *:22222 (LISTEN)
[16:05] <regedit> sshd 804664 root 4u IPv6 25816161 0t0 TCP *:22222 (LISTEN)
[16:05] <Shadowbird2468> *wrong
[16:05] <leftyfb> !paste | regedit
[16:06] <regedit> ah ok sorry
[16:06] <leftyfb> Shadowbird2468: you'll need to seek support from the ubports/touch project for help installing it
[16:06] <leftyfb> Shadowbird2468: it's not officially supported anymore
[16:06] <leftyfb> regedit: looks like it's listening
[16:06] <Shadowbird2468> yes
[16:07] <leftyfb> regedit: on the client machine, run: sudo nmap -p 22222 <ip.of.server>
[16:07] <leftyfb> regedit: also, make sure you can ssh from the server to the server
[16:07] <regedit> leftyfb: that works
[16:07] <regedit> iptables maybe? is it "safe" to paste my iptables online? no sensitive details? 😛
[16:07] <regedit> same for sshd_config
[16:07] <leftyfb> regedit: try flushing iptables, then try to ssh
[16:09] <regedit> what does flush mean - does that delete rules and stuff? some rules i might not want to lose... 😬
[16:10] <leftyfb> regedit: yes. This is for testing. Put them back when you are done
[16:10] <regedit> ah ok so need to back up first ok
[16:11] <slingamn> belatedly, what i did was: `truncate --size 0 /etc/python3.8/sitecustomize.py`, then ran python3 as root, recompiling /usr/lib/python3.8/__pycache__/sitecustomize.cpython-38.pyc
[16:12] <leftyfb> regedit: wait, you don't have any rules loaded?
[16:12] <leftyfb> regedit: sudo iptables -L -n
[16:12] <regedit> leftyfb: i think i do see some stuff there
[16:13] <leftyfb> regedit: to flush: sudo iptables -F
[16:13] <regedit> leftyfb: and to restore?
[16:13] <leftyfb> regedit: depends on how you loaded them
[16:14] <regedit> leftyfb: no idea how previous rules got there... but i ran "iptables-save" and "ip6tables-save" and output to saved files
[16:15] <regedit> current iptables -L -n output: https://paste.ubuntu.com/p/xCZ7MsYNck/
[16:17] <leftyfb> regedit: you don't have port 22222 open
[16:17] <regedit> oh
[16:17] <regedit> what about port 22 is that open?
[16:18] <leftyfb> regedit: look at your pastebin. Do you see the number "22" anywhere in it?
[16:19] <regedit> ah so if a port is not listed explicitly that's how it works? (I dunno iptables.. is it whitelist, blacklist, ranges, default ports, etc.)
[16:21] <regedit> trying to dig history of what previous sysadmin was doing, looks like there was a bunch of iptables action happening https://paste.ubuntu.com/p/YpDZvxRpHX/
[16:25] <regedit> so is this the command i need? `iptables -A OUTPUT -p tcp --sport 22222 -j ACCEPT`
[16:26] <leftyfb> regedit: INPUT
[16:29] <regedit> ah
[16:29] <regedit> i might be reading the wrong stackexchange answer... "To allow outbound packets from your SSH daemon to the SSH client you need to add the following rule:"
[16:30] <leftyfb> regedit: I personally use: -A INPUT -p tcp -m state --state NEW -m tcp --dport 22222 -j ACCEPT
[16:32] <regedit> ok lemme try that 🤷‍♂️ wth
[16:36] <regedit> oh whoops looks like my previous paste had a lot of text missing
[16:38] <regedit> https://paste.ubuntu.com/p/sXPcV3pmr6/ i see port 222 was already designated for this? maybe i'll use that instead of my 22222 which i'll adjust in sshd_config
[16:38] <regedit> how do i remove the rule i just added leftyfb ?
[16:41] <Lutin> If I want to kill a process on a file change with inotify shoud I use a oneliner or a script ?
[16:41] <leftyfb> regedit: you should read through something like this: https://www.digitalocean.com/community/tutorials/how-to-list-and-delete-iptables-firewall-rules
[16:41] <regedit> awesome thanks
[16:43] <akem> Hey, i try to install woeusb i added the repository but it does not find the package, any idea,
[16:47] <oerheks> akem the repo? ppa:tomtomtom/woeusb
[16:48] <leftyfb> akem: sudo apt update
[16:50] <arnje> Can anyone help me with driver porblems? Im not quite sure witch driver to install for my nivada gtx 1650 card. I have tried to install and always poblem after restarting
[16:52] <nunya_> often when I start  gnome-software the installed list is empty and will remain empty. I have gone away for hours and checked again, still empty. One work around is sudo apt-get install --reinstall gnome-software, Is there something else I can do so I don't have to reinstall gnome-software evry time I want to see waht programs I have installed?
[16:55] <nunya_> The Explore and Update tabs work fine. Just the Installed tab shows nothing.
[17:01] <nunya_> I have Googled and so far sudo apt-get install --reinstall gnome-software is the only thing that makes it work but I'd rather a more permanent solution.
[17:02] <oerheks> what happens if you run update before entering softwarecenter?
[17:03] <oerheks> that would trigger snap refresh too
 sudo apt-get update ?
My question is more of how to make gnome-software do this on it's own so I don't have to keep fixing it.
[17:05] <akem> oerheks, leftyfb, thx, i was able to install it from the .deb file instead. update didn't change anything.
[17:06] <oerheks> i would run; sudo apt update && sudo apt full-upgrade
[17:06] <oerheks> to avoid packages held back
[17:07] <oerheks> nunya_, this is unusual behaviour, though you were not the only one; did not find the fix yet.
who are you speaking to? Me or akem?
[17:08] <oerheks> nunya_, you
re  i would run; sudo apt update && sudo apt full-upgrade
 to avoid packages held back
[17:09] <oerheks> jups, like a kernel or such important update
[17:14] <unixbsd> hello,
[17:15] <unixbsd> How to ./configure  mutt to have SSL + UTF8 ?    I have no UTF8 in ubuntu links package.
[17:15] <unixbsd> (compilation from src).
 A  lot of stuff was updated and upgraded. Hopefully this solves the problem.  https://paste.ubuntu.com/p/mm27KQXwjX/
[17:18] <thopiekar> For the 21.04 users/testers here... Do you also have issues shutting down your computer?
[17:18] <thopiekar> Feels like I have no permissions :/
[17:18] <oerheks> nunya_, good, reboot after that
[17:18] <TJ-> unixbsd: the packaging already does that does it not? so check the debian/rules makefile
[17:19] <oerheks> thopiekar, for testing, join #ubuntu+1 for now
[17:19] <thopiekar> Thansk oerheks!
[17:19] <thopiekar> *thanks
Thanks!
I opened gnome-software It downloaded package list. When I clicked on isntalled tab it took a minute to do what looked like populating the installed programs then the little prgress wheel stopped and the installed went black. I tried apt-get install --reinstall gnome-software again. It worked. this is not the end of the world but is a pain in the butt! Hopefully they sort this out in the next Ubuntu distrubution! Thanks for
[17:36] <nunya_> trying to help.
[17:43] <dfrey> I believe (and correct me if I'm wrong) that in Ubuntu 20.04 there is no /usr/bin/python. So it seems that the typical "#!/usr/bin/env python" shebang line is not going to work anymore.  If you have written a program that's only intended to work on python3, then the solution is simple, just change your shebang to "#!/usr/bin/env python3" and if your program only works on python 2.7, use the shebang
[17:43] <dfrey> "#!/usr/bin/env python2.7".  But what about programs that are written in such a way that they intend to support python2.7 OR python3?  What shebang line should they use?
[17:45] <TJ-> dfrey: generally /usr/bin/python is a symlink to the default/preferred python version
[17:45] <oerheks> python2.7 is dropped in 20.04
[17:46] <oerheks> !info python-is-python3
[17:52] <locsmif_work> Any reason why bluetooth would refuse to connect to a speaker but would work after a reboot?
[17:56] <ExcessiveAggro> morning!  I have a window that has made its default size 1 pixel x 1 pixel so i cant find it. IS there a way to bring it back?
[18:03] <tomreyn> ExcessiveAggro: edit or delete its configuration, which can be in ~/ or ~/.config or ~/.local/{etc,share} or in the gsettings DB.
[18:03] <SCHAPiE> ExcessiveAggro: If you use an application switcher in a taskbar of some sort, you could possibly rightclick -> maximize?
[18:04] <leftyfb> ExcessiveAggro: try https://unix.stackexchange.com/a/359311
[18:04] <TJ-> ExcessiveAggro: on the taskbar right click it and choose Resize then use cursor keys
[18:04] <ExcessiveAggro> You all are the best - thanks I will get to looking at all of these
[18:05] <ExcessiveAggro> TJ the right click option doesnt show resize unfortunatley.  However I also just found this: https://extensions.gnome.org/extension/1240/cascade-windows/
[18:05] <oerheks> alt tab ..
[18:05] <ExcessiveAggro> oerheks - yeah it's weird, alt tab shows the application and the preview is a single pixel lol.  And selecting it doesnt make it appear.  I close the app and come back, still at one pixel
[18:06] <ExcessiveAggro> The cascade app i just pasted worked but I'm going to check out the other suggestions for my own knowledge.  Thanks all
[18:06] <TJ-> ExcessiveAggro: ahhh, Gnome strikes again!
[18:06] <WaltS48> Any progress on getting Thunderbird 78.x.x into the Software Updater repo? Version 78.7.0 was released this week.
[18:06] <oerheks>  Alt + F8 to resize. Use the arrow keys to move or resize,
[18:06] <oerheks> hopla
[18:06] <ExcessiveAggro> oerheks - GENIUS!  thank you
[18:25] <CrazyLikeAFox> Is there a way to chage what the 'default' display mode is when no EDID data is present?
[18:27] <CrazyLikeAFox> The montior I'm gonna use with this system doesn't have EDID and is quite pickey about what mode it wants- I can use a second display to setup graphics, but it breaks when I reboot the machine
[18:27] <oerheks> put it hard in a xorg.conf?
[18:27] <CrazyLikeAFox> I think I ned EDID anyways though because I can't interact with the bios or grub either :T
[18:28] <oerheks> what do you mean with ' interact with the bios or grub'??
[18:29] <CrazyLikeAFox> I have no video during boot because the motherboard isn't outputting the correct mode
[18:33] <CrazyLikeAFox> I do have an edid spoofer, I can get the resolution right but it doesn't have an option for the correct refresh rate
[18:52] <CrazyLikeAFox> I actually found some software and guides for making EDID files, but no mentiomn of what hardware is used to inject it
[18:55] <Intelo> tuxakadjseb: geirha oerheks leftyfb    it worked. Someone just didn't told a newbie to use 5.7.33-1debian9 else than geirha
[18:56] <shinobi> Can someone confirm the following potential bug in 20.04. I have dual monitors in "join display" mode. After timing out and going to a lock screen, the system treats them as mirrored. When I go to Display Settings, it still shows "joined display" even though it behaves as "mirrored". I must set the display to mirrored mode, revert, and save in order to regain joined displays again.
[19:35] <crst> Hi, how can I figure out why my netplan doesn't stick?
[19:36] <crst> 20.04 here btw.
[19:37] <crst> I run netplan apply and after a couple of seconds the applied plan reverts to something different.
[19:41] <regedit> thanks for all the help leftyfb 👍
[19:41] <rfm> crst, are you running netplan rendering to networkd but also having NetworkManager active?
[19:42] <leftyfb> crst: if you're running the desktop environment, you don't use netplan to manage your networking, you use network manager in your settings GUI
[19:42] <crst> It's a server without gui
[19:44] <crst> It works on Ubuntu 18 not sure what's wrong here.
[19:45] <crst> rfm: NetworManager doesn't seem to run
[19:45] <crst> systemd-networkd is running fine
[19:45] <TJ-> crst: which renderer have you configured?
[19:46] <TJ-> crst: could it be some cloud-init config? have you checked for additional yaml files in /etc/netplan/ ?
[19:47] <crst> TJ-: networkd on the main file that comes from the provider. There's only this and another file with my custom config and there's no renderer.
[19:47] <leftyfb> crst: try removing cloud-init
[19:48] <TJ-> crst: ok, so default renderer is systemd-networkd
[19:48] <leftyfb> crst: wait, provider?
[19:48] <crst> leftyfb: It's a dedicated server without cloud-init in the first place
[19:48] <TJ-> crst: look at the generated files in /run/systemd/network/
[19:48] <leftyfb> crst: cloud-init is installed by default now. If it wasn't, then it's not a default install
[19:48] <TJ-> crst: check if there are more than 1, and if they have conflicting settings
[19:49] <TJ-> crst: so you've got TWO netplan yaml files?
[19:51] <TJ-> On a related note, I do get annoyed at how difficult it is to enable verbose logging in systemd-networkd
[19:51] <crst> leftyfb: Ah ok. There is no cloud-init here. It's the default image from Hetzner I use here.
[19:52] <leftyfb> crst: sounds like it's not an official ubuntu image
[19:52] <crst> TJ-: There is indeed. There's a 10-netplan-enp35s0.4001.netdev and a 10-netplan-enp35s0.4001.network that are conflicting.
[19:53] <crst> leftyfb: I'm sure it's a bit modified by the provider.
[19:53] <TJ-> crst: .netdev and .network do different thinks.
[19:53] <TJ-> things
[19:53] <TJ-> crst: naming looks like you're doing VLAN
[19:55] <crst> TJ-: Indeed. I use it for a subnet of public IP's.
[19:56] <crst> TJ-: Actually the files diff but are not really conflicting, sorry about the confusion
[19:57] <TJ-> crst: so how does the applied config change? you said "something different" but what - that might help us figure out what is happening
[19:58] <TJ-> crst: the .netdev presumably just has [Netdev] Name=enp35s0.3001 Kind=vlan [VLAN] Id=4001
[19:58] <TJ-> grrr, typo
[19:59] <crst> TJ-: After apply `ip rule show` has it add it added and after a couple of seconds it's gone. Should I check the files in /run/systemd/network for changes?
[19:59] <TJ-> crst: what is this 'it' - are you configuring some policy routing?
[19:59] <chalcedony`> greetings :)
[19:59] <crst> TJ-: Correct about the netdev
[20:00] <CrazyLikeAFox> Oioioi
[20:00] <CrazyLikeAFox> I just found somebody that made, and published, arduino code for this
[20:01] <leftyfb> !ot | CrazyLikeAFox
[20:01] <CrazyLikeAFox> Whoops, wrong tab
[20:02] <crst> TJ-: It adds two rule: 1: (10:	from X.X.X.X/28 lookup net-name) and 2: (10:	from all to X.X.X.X/28 lookup net-name)
[20:02] <CrazyLikeAFox> But it's hardware level fix to my earlier EDID problem (I'll take it to the tab I meant to type into)
[20:02] <TJ-> crst: and is netplan creating those, and are they ending up defined in /run/systemd/network/enp35s0.4001.network in "[RoutingPolicyRule]" section?
[20:05] <chalcedony`> I'm trying to fix my husband's ubuntu 20.04. when i type 'xrandr' I get Can't open display. He's running Gdm3 and nothing else. Is this even a good place to ask about this? (the actual problem is that the main screen on boot is enrmous and out of focus.) I'm working in Console 2 because I can't use the gui at this point. we downloaded nvidia drivers a while back, and then had to fsck the drive. *sigh* HELP!?
[20:06] <TJ-> chalcedony`: you need to pass the display number; generally: "DISPLAY=:0.0 xrandr -q" or "xrandr --display :0.0 -q"
[20:06] <sarnold> chalcedony`: you'll need both a DISPLAY and XAUTHORITY environment variable to connect an x client like xrandr to your x server to do anything; iirc gdm3 is responsible for writing the ~/.Xauthority file (or wherever gdm3 stores it) -- so *maybe* a DISPLAY=:0 xrandr willl work, if it's not authenticated, but ... if it's not, I'm not sure what to do then
[20:07] <chalcedony`> Hi TJ. I think I will get Display 0 doesn't exist or so.
[20:07] <TJ-> chalcedony`: is this before or after the login greeter?
[20:08] <chalcedony`> i'm logged in TJ
[20:08] <TJ-> chalcedony`: I mean for the GUI
[20:08] <TJ-> chalcedony`: if the GUI session hasn't logged in we'd need to locate the .Xauthority file belonging to gdm3
[20:08] <chalcedony`> didn't login on the gui. TJ-
[20:09] <TJ-> sarnold: isn't it under /tmp/ somewhere?
[20:09] <TJ-> chalcedony`: do you find one doing this: "sudo find /tmp -name '.Xauthority' -ls"
[20:11] <chalcedony`> sudo find /tmp: command not found TJ-
[20:11]  * TJ- blinks
[20:11] <sarnold> wow
[20:11] <jadax> hi, I'm trying to $ sudo apt install <pkg> but it errors out saying that couldn't get lock as it's held by process (unattended-upgr)
[20:11] <jadax> since last 15min
[20:11] <jadax> can/should I kill that process?
[20:12] <crst> TJ-: Yes, when I run `netplan apply` theses rules are added. I just checked and the contents in /run/systemd/network don't change at all when I run `netplan apply` and [RoutingPolicyRule] shows my rules.
[20:13] <crst> Something seems to be interfering with the rules and i don't know what.
[20:13] <TJ-> crst: netplan apply writes those files in /run/systemd/network/ and then tells systemd-networkd to read and use them. So if the rules are specified, they appear via manual check, and then disappear, there's something else removing them.
[20:13] <sarnold> jadax: it might be better to file a bug report first, once it's killed it might require yet more work to try to fix things..
[20:13] <TJ-> crst: is this a new 20.04 or a release upgrade from an earler release?
[20:13] <jadax> sarnold if I wait for next 30 min, will it finish perhaps?
[20:14] <crst> It's the latest stable
[20:14] <jadax> is there any place I can see what is actually going on and see maybe some progress bar?
[20:14] <sarnold> jadax: there's a chance, especially if your network is kinda slow or something..
[20:14] <TJ-> crst: OK so it hasn't inherited any config from an earlier release - makes things easier
[20:14] <crst> Right, it's pristine and freshly setup from scratch
[20:15] <sarnold> /var/log/unattended-upgrades/unattended-upgrades.log and /var/log/unattended-upgrades/unattended-upgrades-dpkg.log
[20:15] <chalcedony`> jadax try top in console
[20:15] <TJ-> chalcedony`: what does "which find" report?
[20:16] <chalcedony`> TJ- /usr/bin/find
[20:16] <TJ-> chalcedony`: ok, and "which sudo" ?
[20:17] <jadax> chalcedony` it just finished ^_^
[20:17] <jadax> I guess it was worth waiting
[20:17] <TJ-> chalcedony`: trying to figure out why you got "command not found"
[20:17] <chalcedony`> TJ- /usr/bin/sudo
[20:18] <TJ-> chalcedony` and I hope " echo $PATH | grep -o /usr/bin " reports /usr/bin
[20:25] <chalcedony`> TJ- don't hate me. that gets nothing.
[20:25] <TJ-> chalcedony`: now I'm very confused, since 'which' searches $PATH to find commands and it reported what we'd expect for the locations of 'find' and 'sudo' :s
[20:26] <shinobi> Is there no firmware for the intel AX200 in 20.04?  The firmware was first supported in kernel 5.1. I'm running 5.8
[20:27] <chalcedony`> TJ- the drive was kind of messed up. fsck -y was needed. Maybe that did something?
[20:27] <TJ-> chalcedony`: so far it looks like that system is severely messed up; likely by the file-system corruption
[20:28] <chalcedony`> Wait TJ- no space after $ it worked now :)
[20:28] <chalcedony`> my husband is making me sit way over here.. it's hard to see everything.
[20:29] <leftyfb> chalcedony`: echo $SHELL
[20:29] <chalcedony`> leftyfb /bin/bash
[20:33] <TJ-> chalcedony`: let's try to find out how much damage there is - this command compares the hashes of all files installed by packages and reports any that do not match. Hopefully you shouldn't see many differences: " /usr/bin/sudo /usr/bin/dpkg --verify | grep -v /etc/ "
[20:34] <chalcedony`> TJ- maybe add pastebinit to that?
[20:34] <TJ-> chalcedony`: " pastebinit <( /usr/bin/sudo /usr/bin/dpkg --verify | grep -v /etc/ ) "
[20:38] <chalcedony`> it's working.. waitng.
[20:41] <TJ-> chalcedony`: could take a while on spinning disks
[20:41] <chalcedony`> ok
[20:42] <chalcedony`> i'll highlight you when i notice it's finished then, TJ- and thank you and leftyfb too :)
[21:13] <arnje> Anyone here that could mabey help me install driver fro gforce gtx 1650 on ubuntu... I dont really know witch one to choose and i always have some poblems booting after i update
[21:14] <arnje> *after i install a driver*
[21:24] <sarnold> arnje: it should be enough to run ubuntu-drivers to install whatever is needed
[21:28] <DreamPCS> Good afternoon guys, I have a question about setting up a backup server for my local machines. My girl uses Windows 10, I'd like to set up Windows 10 to automatically backup to the Network drive, which is an Ubuntu 20.04 machine.
[21:28] <DreamPCS> So, is there a simple way now a days to configure samba to work nicely with Windows? Can someone maybe point me to a good guide?
[21:37] <lordcirth> chalcedony`, If "sudo" wasn't in path, you would have gotten "sudo: command not found". If you got "sudo find /tmp: command not found", you are probably running the command in quotes.
[21:38] <leftyfb> DreamPCS: https://linuxize.com/post/how-to-install-and-configure-samba-on-ubuntu-18-04/
[21:45] <Tas-sos> I have a non relevant question with Ubuntu, but a problem question/concern for my systems. So, forgive me, but I would like to discuss this with you and possibly someone's advice.
[21:45] <Tas-sos> I'am newbie ok. But recently, I installed a  rsyslog server  and I also installed "rsyslog" to the other machines, to send their logs, to the rsyslog server machine.
[21:45] <Tas-sos> But, how can I see beautifully - the collected logs ?  The only way is with  grep  tool ?
[21:45] <Tas-sos> Isn't there something more modern, something easier to manage than writing regex with grep ?
[21:45] <Tas-sos> Something like... for example at least a "htop" tool for logs ?
[21:47] <dlam> i'm trying to `sudo apt install binutils=2.24-5ubuntu14`   on one box it works, but not the second! (it says '...not found')    anyone know what I should do to debug?
[21:48] <sarnold> Tas-sos: it's usually considered rude to cross-post questions
[21:52] <summonner> Tas-sos, splunk maybe
[21:52] <summonner> they have a channel, don't know how active it is
[21:55] <leftyfb> Tas-sos: for something a little simpler, you can look at multitail which can do things like look at multiple logs at once and can filter and colorize/highlight different aspects of logs
[22:14] <Tas-sos> leftyfb: multitail ? I don't know, looks interesting for a first step! Thank you!
[22:15] <Tas-sos> Very interesting! Thank you! Now.. after this first tool.. ?
[22:43] <scoffin> is there any repo that includes ROXterm for 20.04 ?
[22:48] <leftyfb> scoffin: looks like that might be a dead project. Maybe look at terminator
[22:56] <scoffin> leftyfb: thanks, it looks like terminator DOES respect the "geometry" spec, unlike gnome-terminal
[23:25] <Sirisian|Work> I could probably find a more specific community, but random question for people that use clamav. Have you ever noticed clamd, the daemon, being stuck using 0% CPU and 500+ MBs? I don't know if this is a recent issue, but it seems like more people would be mentioning it. Anyone seen something like this?
[23:33] <Maik> !discuss | Sirisian|Work
[23:33] <Maik> and a antivirus isn't needed on linux
[23:34] <sarnold> it sometimes is
[23:34] <Sirisian|Work> Thank you. (I blame clients. We had a few that listed it as a requirement years ago so it was added to the server pipelines).
[23:34] <sarnold> it's handy to scan at email servers or samba fileshares to protect the windows machines
[23:38] <Maik> my goodness, if it isn't Matrix it's irccloud....
[23:39] <Maik> sarnold: some say windows users should protect their own stuff. On linux ClamAV and other antivirus give more false positive than anything else.
[23:39] <sarnold> Maik: but windows users wind up disabling their AV all the time because it busts stuff (no real surprise :)