[00:23] Hi guys I'm having issues with modprobe, when i modprobe a new driver it returns error module: version magic '4.15.0.55-generic SMP mod_unload' should be '4.15.0-58-generic SMP mod_unload' [00:24] idea how do i fix it ? [00:24] manjeets: that means your module was intended for a different kernel [00:24] how to fix it depends upon how you got to this point :) [00:25] sarnold, my machine has kenrl 58 version [00:26] is there a way I can explicitly point modprobe to specific version ? [00:26] manjeets: insmod can take a specific path [00:26] manjeets: that way you can give the path to the version of the module compiled against the 58 headers [00:28] isc-dhcp-server, how to define the dhcp-server's own IP? [00:29] so i have an AWS Ubuntu Server... on there im running MySQL database. How can i create an ssh tunnel so that my local web application can communicate with the MySQL DB [00:29] all tutorials are greatly explain everything except that, how to get an IP address for itself! [00:32] sarnold, sudo insmod pathto_ko returns same thing [00:33] manjeets: do you need to recompile your module? how did you build it? [00:34] ausjke: you just give the server one with eg netplan or /etc/network/interfaces, depending upon what release you're using [00:34] ausjke: make sure you don't configure the dhcpd to hand out the address it's already using :D [00:35] its basically a ethernet driver followed instructions from documentation untar the i40e driver and make install [00:36] entry_lvl_dev: something like ssh -L 3306:awshostip:3306 [00:36] sarnold, networking on my machine is screwed up (with i40 update) its not even detecting nic cards [00:37] sarnold, recompiled the driver and insmod just worked [00:37] thanks appreciate it :) [00:37] manjeets: woot :) [00:38] does insmod persists reboot ? [00:38] no [00:38] /etc/modules-load.d/ is probably the best answer if it doesn't autoload for whatever reason [00:40] sarnold and then i would just need tell my local enviornment to connect to localhost 3306 and it should work fine right? [00:40] entry_lvl_dev: yeah [00:41] thanks sarnold [00:42] you're welcome entry_lvl_dev, have fun :) [00:45] sarnold: it works, thanks! [00:45] ausjke: nice :) [01:06] Does LD_LIBRARY_PATH not apply to stuff in /lib64 or something? [01:09] I have one thing in that directory and it's not a useful executable [01:09] what are you trying to do? [01:12] I'm pretty sure lib64 is deprecated [01:14] Yeh, it's /lib64/ld-linux-x86-64.so.2 [01:15] genii: I'm trying to install p7zip so I can read zip files from PHP on a system with no root access. Stupid, I know. === zbenjamin is now known as Guest50711 === zbenjamin_ is now known as zbenjamin [01:17] That file should actually be a symlink to /lib/x86_64-linux-gnu/ld-2.27.so [01:18] Yeh, I even corrected the symlink to point to the right place. Still nothing [01:19] I've created a test environment; I can move everything to home as long as I symlink /home/username/lib64 to /lib64. It works perfectly if I do that and set LD_LIBRARY_PATH. But it can't find /lib64/ld-linux-x86-64.so.2 if I don't create the symlink, and I can't cuz I'm not root. [01:21] CoJaBo: so.. why doesn't apt install p7zip work? [01:21] sarnold: Because it needs root [01:22] ahh [01:22] I've installed p7zip to a folder, but I can't actually get it to run from that folder, because the /lib64 path seems to be permanently hardcoded somehow [01:24] so, how'd you do that? apt download, then ar x, then tar xf ? [01:25] sarnold: Copied it from my own system, which has it installed [01:25] CoJaBo, `ldconfig -p` will print cache of dirs & candidate libs currently available.. [01:27] CoJaBo: is your local system identical to the one where you don't have root? [01:28] sarnold: Not completely, so I may hit other problems down the road; I'm first trying to get it to work on my system [01:29] CoJaBo: does the system have python installed? [01:29] so you have access to the php zipfiles you want to read? [01:30] No Python, but it works if I hexedit the path in the binary [01:30] i have a static-ip isc-dhcp-server running on ubuntu18.04 supplying IP to raspberry pi, all is well, rpi grabs first IP from 192.168.1.100-200 pool which is 192.168.1.100, somehow after a few minutes, my dhcp-server itself discards 192.168.1.1 and assign itself a 192.168.1.101 ip addr, what gives? [01:31] Not really sure why I didn't think of that sooner [01:31] That was the only problem, it also works just fine now in the production server [01:32] Things I've tried that failed: ZipArchive (not installed), unzip (same issue as 7zip), and busybox unzip (I hit a bug in it I can't work around) [01:41] peazip portable, perhaps? https://www.peazip.org/peazip-portable.html [01:41] oh wait, windows.. [01:47] Yeh, has to run under Linux [01:47] 7z even HAS a portable version. It just doesn't work, cuz it's not actually a static build. [02:24] Need help! Trying to dual-boot ubuntu with windows 10 already installed, and the ubuntu installer won't detect my hard drive. Here is the output of fdisk -l : https://pastebin.com/pvv5BP8r [02:25] It appears its only detecting the live-usb [02:29] areth: Thoughts: Secure boot and fast boot disabled; booting the installer in EFI mode ? [02:31] Thanks, actually yes I should have said, have disabled fast boot / secure boot [02:31] Does booting the installer in EFI mode mean selecting the EFI option when creating the usb in rufus? [02:31] Because that's what I did [02:32] areth: I an not that EFI experienced - but in your firmware make sure to select an appropriate EFI boot selection. [02:35] I'm not sure what means, firmware I assume means selecting EFI boot in the bios? [02:35] Hmmm... reading this guide (because you should always read guides after you've wiped the computer), would suggest I should change SATA to AHCI in the BIOS: https://www.debugpoint.com/2019/01/complete-guide-how-dual-boot-ubuntu-windows/ [02:36] I'll restart and try that now, appreciate the help Bashing-om :) [03:00] Good day people [03:07] What's the meaning the *depend with/out the | char on this output? [03:08] https://bpaste.net/show/3OIP [03:08] sorry for the delay [03:27] chieta: my guess is that they indicate alternative groups: ghostscript + libgs-dev, or ghostscript-dbg + ghostscript + libgs-dev, or ... [03:29] noted delta [05:28] Good Morning [05:29] What is this regression in dovecot (see USN-4110-3)? Where can I get the sourcecode / diff of both releases? [05:30] oh, never mind. === SuperL4g is now known as SuperLag [06:11] i m dancer now, so i don’t know i must do dancing or learning computer [06:11] :( [06:13] this is me : https://www.youtube.com/watch?v=vhWzEuSZsac [07:18] Hello [07:18] I am trying to understand the Ubuntu Software center [07:19] It often tells me about updates, and I can just click "Update all", without knowing what is being updated. It is probably flatpaks and snaps [07:19] but is it on purpose the updates are not listed, or is it just my system? === export_ is now known as export [07:35] rva: think software centre updates software from software centre, full system updates are via apt or your update manager, and snaps are getting auto updated from the background too [07:37] rva: to see whats going on exactly, you could launch gnome software from a terminal and a new terminal journalctl -f and see whats all happening in the background [07:54] Hey all - I'm using vscode to edit my project files that are in a mounted remote sftp folder. If I weant to use the "terminal" window, I believe, vscode tries to run a remote terminal and fails. Is there any way to use the local terminal insted, in vscode? [08:03] lotuspsychje: thanks, I will try the journalctl next time [08:08] https://bpaste.net/show/OGO_ any help with network namespaces? [08:20] Hi there. I have a new laptop, a Lenovo Thinkpad X1 Yoga, 4th Gen [08:21] It's a gorgeous machine, but I'm finding that somethings don't work out of the box with ubuntu [08:22] So far, it's just. 1. Microphone input. 2. Speakers are configured weird. 3. The stylus buttons aren't configured. [08:22] I believe I might be able to fix them [08:22] Does anyone know how to balance/configure the audio channels for the audio card? [08:22] It seems there's a subwoofer, center, and tweeters. maybe a 3.1 or 4.1 system? [08:24] cluelessperson, I'd try `pavucontrol` (Pulse Audio Volume Control); I've only used stereo but it lets me control left vs right; maybe for you (output devices; click unlock) [08:26] guiverc nice, yeah, I already have that installed, but good example. Yes, the speaker channels are all screwed up in mapping [08:27] rear left is actually front right [08:27] and if I mute everything, if I enable rear slider at all, it sounds 100%, even at 1% [08:27] so something is definitely going on [08:33] reading up on lenovo specifications, it seems to have "quad speakers" [08:33] probably tweaters and then bass [08:33] okay, so it is stereo [08:37] cluelessperson, sorry I can't help, if patient someone else maybe able to help more [08:38] guiverc well that's on the right track. :) I'm able to select the right audio "mode" 4.0 (quad speakers), but now it's a matter of balancing audio [08:39] guiverc and, I happen to have some experience calibrating audio. ;) [08:39] I can play pink noise, and use a high quality microphone + spectrum analyzer to relatively calibrate the audio curve [08:39] however, that leaves the problem of subwoofer sticking at 100% if it's on at all [08:50] Hello, I am installing RJ45 mural plugs in my house. I'd like to test if they work properly. I do not have a router, but I have two Ubuntu laptops. If I connect one at each end of my mural plug, can I test them out? [08:52] Antoine- Google "RJ45" Pinout, pick either A or B to use across the board. [08:53] Antoine-: if at least one machine has an auto-MDIX 100MBit port or a gigabit port, yes. You can check with mii-tool [08:53] and it's A on both ends, or B on both ends, not A-B [08:53] Antoine-: if you have two non-MDIX 100Mbit ports, you'll need a crossover cable [08:53] Antoine- Your laptops should autonegotiate a 1G link. [08:53] modern equipment supports without crossover. [08:54] Antoine- On each laptop, just do `tail /var/log/syslog` and connect the link. [08:54] you should see 1G negotiated [08:55] doesn't matter if there's an ip or not [08:55] tail -F is helpful for stuff like that ;) [08:55] yeah, sorry, I meant tail -f ;) [08:59] I haven't looked up RJ45 A or B yet. I do not know what auto-MDIX mean. I just connected my two laptops with an Ethernet cable to see what it does when the cable works (I assume its not crossover). In syslog, I get "Link is up - 1Gbps/Full - flow control rx/tx" then some lines, and a lot of DHCPDISCOVER stuff [09:01] Antoine- did the RJ45 outlet thingies have color codes on them, and did you wire them up with those color codes? [09:02] Antoine- RJ45 "A" or "B", is basically the color/wiring scheme you're generally supposed to use, but as long as you see that 1Gbps text, it's fine. [09:02] cluelesaperson: I haven't started yet. I just wanted to know how to try them out when I'm done [09:02] that 1Gbps thing is all you need to see. [09:03] So I guess when I'm done I can plug a laptop at each end and I'm supposed to see what I told you in syslog, right? [09:03] yeah. [09:03] Antoine- Basically your adapter should automatically test the various lines and autonegotiate 1M, 10M, 100M, or 1000M(1G) [09:04] Great :). Then about layout A and B, can I chose whichever I prefer? Wonder why there are two different layout. Do they work the same? Can my laptop use both then? [09:07] Antoine- Just use A. I don't know the exact history. [09:07] https://acuitysupport.zendesk.com/hc/en-us/articles/210113548-What-is-the-difference-between-T568A-T568B- [09:08] Antoine- I think A-B is used to make "crossover cables" from when old equipment didn't support automatically connecting two devices directly to each other. [09:09] hi guys Ubuntu 18.04.3 LTS - When I plugin Platronics USB headphones, the keyboard layout changes to US. Does anyone know how can i debug it? [09:10] Antoine- EACH computer has IN/OUT IN/OUT and you had to match them up to let them talk to each other. [09:10] OUT -> IN [09:10] IN <- OUT [09:11] Mad_Dud tail -f /var/log/syslog observe usb changes occuring and why. [09:11] presumably your headphones are misread as some sort of keyboard input, causing a input change [09:12] or the power change causes your usb system to reset, causing an input change [09:12] Mad_Dud lastly, does your keyboard layout default to US? and do you manually change it to something else? [09:15] cluelessperson: thanks for suggestion. by default i use us dvorak. i configured it with "dpkg-reconfigure keyboard-configuration" and restarted OS. when i plugin the headphones, the layout canges from dvorak to us. when us is setup and i plug headphones in, it doesn't change to anything else [09:15] the syslog shows some messages "unhandled action 'bind' on ..." [09:16] and there is this line: "usb 1-4.4.2: Warning! Unlikely big volume range (=8192), cval->res is probably wrong." [09:16] https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1708495 [09:16] Launchpad bug 1708495 in linux (Ubuntu) "usb 3-1: Warning! Unlikely big volume range (=10361), cval->res is probably wrong." [Low,Expired] [09:17] ubottu++ [09:18] heh. automatic ticket. closed without resolution. related to autio. [09:19] Mad_Dud can you provide a paste link containing the last 100 lines or so? tail -n 200 /var/log/syslog when you plugin the usb device? [09:19] this platronics has got volume up/down etc buttons... it might be acting as a keyboart too [09:19] Mad_Dud my thinking is your usb system is resetting maybe, and resetting the keyboard input [09:19] or something [09:19] cluelessperson: where would you like me to upload it? [09:19] Mad_Dud ah, yeah, that sounds like that's probably it. [09:20] Mad_Dud you might configure ubuntu to ignore the new keyboard connected, or something [09:20] or at least not change input when a new keyboard is connected [09:21] ok. i will try to figure it out "not change input" [09:21] cluelessperson: Ok, thanks for your help :) === jmcgnh_ is now known as jmcgnh === jmcgnh is now known as jmcgnh_ === jmcgnh_ is now known as jmcgnh === xeon is now known as bqq === abbiya_ is now known as abbiya === abbiya_ is now known as abbiya [10:43] Hi I have a headless server, I was hoping someone might know of a distro that has openssh server enabled by default or how to enable it on the ubuntu live usb drives [10:44] jacks_ for what purpose? [10:45] lots of purposes [10:45] recovery / building lfs [10:47] back [10:47] who was I responding to? [10:47] me [10:47] jacks_: you can enable it yourself and make it a distro [10:48] jacks_ open a terminal, apt-get update && apt-get install openssh-server [10:48] might have to configure a user [10:48] jacks_ what are you actually trying to do though? [10:49] well it doesn't have a monitor, it has no keyboard [10:49] Ubuntu crashed when I hit Ctrl+Shift+F1 [10:49] i just wanted something i can plug in, eg. usb flash drive, it boots and starts ssh server [10:50] jacks_ multiple ways to do that, could install to USB drive entirely and just install ssh server there. [10:50] bqq: i didn't want to reinvent the wheel. must be some distro someone knows of that has ssh enabled by default as a live usb bootable distro [10:51] hmm good point [10:51] jacks_ it's kinda a security issue. [10:51] i might try that [10:51] I dunno i'm not really bothered by it [10:52] I'll try installing on to a dest usb drive [10:52] thanks dunno why I didn't think of that myself [10:52] jacks_ Do this. Install alpine linux onto a usb drive, and add an ssh server. It's super minimal, like 5-10MB total [10:53] size doesn't bother me so much, would be good if it was ubuntu tho because of build tools [10:53] jacks_ alpine has build tools. :P [10:53] i got plenty of flash drives so ill give it a shot [10:53] https://github.com/alpinelinux/alpine-chroot-install [10:53] cool [10:53] i'll check it out [10:54] I'm thinking it might be as easy as. chroot-install alpine on usb, chroot install grub bootloader on usb, chroot apk add ssh-server, chroot enable openrc service ssh server on boot [10:55] see if that boots. You wind up with a minimal imzge. [10:55] image [10:55] cool [10:55] if you prefer debian/apt, you can use debootstrap [10:56] thanks [10:57] cluelessperson: 5m-10m is that small? standand alpine >117M [10:58] bqq I could be incorrect, I thought it was much smaller. [10:58] Anyway, great for creating nice ram based boots [11:00] cluelessperson: grub2 itself 8M [11:02] Hey folks [11:02] sup [11:03] cluelessperson: but alpine is still perhaps the smallest decent distro over there [11:03] dunno where I got the number from [11:03] I'll have to look up and compare them [11:04] dsl 50m, puppy over 100m [11:05] bqq I strip them down to minimal packages. [11:06] I thought dsl was 5M [11:09] there are some distro <5m but barely decent useful === subopt is now known as _subopt_in_repos === GWM-Deus is now known as GWM [12:31] helloo i need help with something small and weird, i want to fix an error in my log i keep getting that just says eno1: DHCP lease expired and it wont seem to go away no matter what i try elsewhere. [12:31] i can use the internet fine but that just wont go away [12:37] How do I get an 18.04 server to completely forget about a dhcp IP? I've cloned this VM and it keeps trying to take the original VMs IP... [12:46] anyone familiar with update-manager getting stuck on a brave browswer update [12:47] i uninstalled brave but it still keeps trying to download an update from there and it never finishes and slows down my whole computer [12:47] i'd much rather see ads than this nonsense [12:47] bnason, maybe helpful - https://help.ubuntu.com/lts/serverguide/network-configuration.html (has dynamic & static addressing info) [13:17] guiverc: thanks, i added dhcp-identifier: mac to my /etc/netplan/50-cloud-init.yaml and ran netplan apply and that seems to have worked [13:17] :) [13:20] I accidentally used the command line tool pastebinit tool to paste a doc with sensitive info. How do I get it removed from the server at http://paste.ubuntu.com [13:21] newhorn: You can't [13:21] :O [13:22] Please what can I do? Wouldn't this be publicly viewable? [13:23] newhorn, anything on paste.ubuntu.com is publically viewable, that's what it's for [13:24] newhorn, in time it'll disappear (it's not long term storage; see https://paste.ubuntu.com/ for details) [13:24] newhorn: You might be able to get assistnace via e-mailing "rt@ubuntu.com" ... there are no guarantees there. This channel is run by volunteers, no one here has any control over Canonical's web properties, including paste.ubuntu.com [13:25] newhorn: If it is any consolation, the page is flagged to not be indexed by any web bots that respect the robots.txt. If you have passwords in that file, I suggest you start changing those right away. [13:26] guiverc, pragmaticenigma: Many thanks. [13:29] Hey! I have a little problem here with date. For some reason my VM's clock is staying behind all the time. When I run ntpdate -u pool.ntp.org it updates back to real time.. but after few hours it's about 20 min behind again. Any idea what might be wrong? I can't see anything in syslog that would look like ntp error something. [13:29] battery?? [13:29] When I run timedatectl then this is the output: https://paste.ubuntu.com/p/V76tDC9WMx/ [13:30] It says "NTP synchronized: no" not sure why [13:30] Diplomat: That would be a question to register with the developer of the Virtual Machine software [13:30] Diplomat: your host have the right time ? [13:31] Not sure really.. It's just a VPS that I bought some time ago [13:31] But I can ask from the host [13:31] Too early for me, I didnt read the post properly from Diplomat [14:00] Hello, I've just installed Ubuntu 18.04.2 on a cheap laptop, it won't detect the built-in wifi adapter and the laptop has no wired network card, how can I go about finding the right drivers and getting them installed on the machine? [14:00] Snowy_, can you 'lsusb' or 'lspci' or 'lshw'? [14:03] yes I just ran all 3 commands, I cannot find anything that looks like a wireless card ( how do I mention someone in a message? ) [14:03] Snowy_, like i do here - your nick, plus a comma (or a colon : ) [14:03] I'm trying to understand an SSH issue, can someone tell me if this is normal? I have a Ubuntu server with a user 'deployer'. That users home dir has a .ssh folder, and an "authorized_keys" file. That file contains a single public key (not know which key this is). My colleague, who connects with his own personal key (which looks totally DIFFERENT from the one in authorized_keys) can connect successfully. How does this make sense? [14:04] Snowy_, can you show the output of all 3? we understand that you cannot copy/paste from the machine so maybe a photo? [14:04] And by different, I mean we are comparing his public key to the public key stored in authorized_keys (we're not confusing it with the private key) [14:04] kettlecooked, i don't suppose you want to show us the two public keys? [14:06] you know what.. I think asking for that might've solved it. It's all concatenated on a single line, vs our other servers where it's all newline delimited. Did not spot until now [14:06] kettlecooked, happy to be your rubber duck :) [14:09] Habbie, here: https://pastebin.com/uBDQ4VDq [14:11] Snowy_, line 4 is interesting [14:12] Bus 001 Device 007: ID 6080:8061 ? [14:12] Snowy_, i cannot find any references to vendor 6080 online anywhere [14:12] yes [14:12] oh, https://github.com/linuxhw/LsUSB/blob/master/Tablet/README.md says it's a keyboard [14:13] Snowy_, how did you get this data from the laptop to the pastebin? [14:14] Habbie, saved on a text file and copyed between machines with a thumbdrive [14:14] Snowy_, that is much appreciated from this side :) [14:14] Snowy_, is it possible that the wireless is disabled by some hardware switch? Fn-someFunctionKey perhaps? do you have 'rfkill' installed? [14:16] Habbie, there is no hardware switch or fn-key combination to disable the wifi afaik, I don't know how to check for rfkill [14:16] Snowy_, 'apt show rfkill' or 'dpkg -l rfkill' or just try 'which rfkill' at a root prompt [14:17] Habbie, it seems to be installed [14:18] Snowy_, i haven't used it; so now you get to figure out if it can enable your wifi somehow [14:18] Snowy_, i have no idea if this will help [14:19] Snowy_, when you run rfkill, does it show anything? [14:21] coz_, I've tryed "rfkill list" and it gives no output at all [14:22] Habbie, one important bit of information, upon installation I've been asked if I wanted to enable 3rd party drivers, and was asked to provide a password to do so, which will be asked for at next boot, but I haven't noticed any prompt for it, did I miss something there? [14:26] Snowy_: try ubuntuforums.org or askubuntu.com if it isn't fixed here [14:29] jeremy31, noted, thanks === Wryhder is now known as Lucas_Gray [14:43] Snowy_, i'm out of ideas, sorry.. good luck [14:54] Habbie, no problem, I've found a bigger problem right now, the battery seems to be swelling, I defnetly want to get that checked, thanks for your time! [14:54] To understand the load average given in `top` I understand that the number of CPU the system has. How many single CPU does this system appear to have? -> Processors | physical = 1, cores = 2, virtual = 2, hyperthreading = no [14:54] 2, right? [14:55] crised, that sounds like 1 physical CPU socket, with 2 cores. [14:55] lordcirth_: correct, but top would count this as 2, right? [14:55] Yes. [15:55] @tomreyn: Back to the "pull DHCP at boot" question... I'm not entirely sure how to "edit the network configuration", but I found this: https://help.ubuntu.com/lts/serverguide/network-configuration.html <-- is that what you're talking about? [16:05] sudoISS: if you run the latest Ubuntu Server LTS release, 18.04, that's a yes. [16:07] sudoISS: you really should read some documentation if you're running a server, especially if it's on the internet. [16:07] It's a VM on my local machine which I use to generate certs. :| [16:09] I'm just trying to learn a lot of this stuff, but the behavior of being connected to a network and NOT requesting a DHCP lease is... uh, different, and I was wondering how to fix it post-install. I just used the standard ISO to install it into the Hyper-V instance. [16:10] static network configurations are actually pretty common in a server environment. [16:10] hi [16:11] @tomreyn: I'm aware [16:11] and probably more common than dynamic ones overall. still, changing your configuration to do DHCP shouldn't be difficult, really. [16:11] @tomreyn: We're actually using them, for the most part, here [16:11] i see [16:12] see how far you can get, and if there are any issues, ask in #ubuntu-server, i'd say. [16:13] (btw. there's no need for @ in front of nicknames on IRC) [17:14] anyone know of any decent linux support companies? trying to get a quote for some server management. [17:15] rcp, try #ubuntu-discuss [17:19] where is Xorg.0.log on 18.04? [17:20] is it ~/.local/share/xorg/Xorg.0.log ? [17:20] weird location for that [17:20] de-facto, /var/log/Xorg.0.log for me [17:21] But I think it depends, because different login managers start it as root or as your user? Not sure. [17:22] something like that, i searched for /var/log/Xorg.0.log and was a bit surprised that it is not present [17:23] I am trying to find the cause of gnome3 freezes starting with later updates (not sure which package exactly) [17:24] dmesg and Xorg.0.log are clear afaik [17:25] the /var/log/gdm3/ is empty...? [17:26] dang whats going on with logfiles?! [17:37] de-facto, I run locate Xorg.0.log and found it in ~/.local/share/xorg/Xorg.0.log [17:44] diskin, yeah that seems to be the new location for some reason [17:45] how do i get the actual path of a process from its pid, without resorting to /proc? cos /proc apperas to give me junk sometimes (i.e clearly not a valid path...or not a path that actually exists on the system) [17:45] banisterfiend, why do you want this? [17:45] banisterfiend, and, what part of /proc is disappointing you in this regard? [17:45] Habbie /proc/PID/exe is disappointing me [17:46] i just want the actual path a process was started from [17:46] in macos you can just do: proc_pidpath() [17:46] but it seems much more tricky in linux? [17:46] i mean, surely you have a reason for wanting this, and perhaps that reason has other solutions as well [17:46] Habbie ah, i want to be able to route traffic for certain applications differently, based on their path [17:47] hmm, can't you execute into some cgroup for that? [17:47] i hook the process creation, check the path based on pid, and then add that pid to the cgroup, if it's a path i care about [17:47] but, also, how is /exe failing for you? [17:47] ok [17:47] so we're pretty much aligned on the methods [17:47] Habbie well i can't use cgexec, cos the apps might be already running [17:47] Habbie it's for customers/end users [17:47] if it was just me i'd just use cgexec :) [17:47] understood :) [17:47] so how is /exe failing? [17:48] Habbie it gives me nosense sometimes, sometimes the paths don't exist on the sytem or the paths include junk, let me give you ane xample [17:48] i can get results like this: "exec: process path=/bin/dashdevice for \(.*\): usb:.*=\(TAG.*\)$/\1 \2/p" [17:48] or "/bin/dashhexchatlinux-gnu/glib-2.0/gio-launch-desktop" [17:49] are you sure that's /exe and not /cmdline ? [17:49] which isn't a path that even exists on my system! [17:49] yes 100% sure that's /exe [17:49] o_O [17:49] how do we replicate this? [17:49] cmdline just gives me "hexchat" [17:49] but the path gives me "/bin/dashhexchatlinux-gnu/glib-2.0/gio-launch-desktop" [17:49] that surprises me [17:49] how about /proc/self/maps? [17:51] or /proc/X/comm [17:51] never heard of those [17:51] sorry i'm new to linux from macos, where i implemented the same using proc_pidpath [17:51] i just want the equivalent [17:52] doesn't matter you haven't heard of them, you can try them :) [17:52] $ man -k proc_pidpath [17:52] proc_pidpath: nothing appropriate. [17:52] but i'm still confused that /exe does not work for you === juboxi is now known as jubo2 [17:52] where'd you get this proc_pidpath? [17:52] Habbie here's the code i'm using: https://gist.github.com/banister/63bf69ae3717bff0f01f8fbebc1f6c33 [17:53] sarnold it's hidden API on macos, but it exists [17:53] and it's public [17:53] banisterfiend, when this code fails for you, does ls -al /proc/PID/exe also give garbage? [17:54] Habbie let me try ,good point indeed [17:54] banisterfiend: there we go! :D [17:54] banisterfiend: found your bug, you forgot to nul-terminate the buffer [17:55] readlink() places the contents of the symbolic link pathname [17:55] in the buffer buf, which has size bufsiz. readlink() does [17:55] not append a null byte to buf. [17:55] ah! [17:55] i was just scanning for something like that [17:55] banisterfiend: probably char buf[256] = {0}; will do what you want [17:55] no stop [17:56] * sarnold stops [17:56] not 256 but the return value of readlink [17:56] or zero the whole thing before, of course [17:56] i thought sprintf null terminated itself? [17:56] Habbie: ah, yes, that's the zero-the-whole-thing approach [17:56] banisterfiend, your path is not coming out of sprintf, it's coming out of readlink [17:56] sarnold, oh, sorry, i misread you, yes, you do my second suggestion and that works [17:56] thanks [17:56] Habbie: I can see how what i said could be misread. It's scary. I'm glad you said something :D [17:57] i misread it as buf[256]=0 [17:57] which is indeed a NO SARNOLD STOP moment [17:57] then when i thought 'no wait that is beyond the allocated buffer' i reread [17:57] banisterfiend, sorry for me and sarnold confusing eachother - did you get something from this? [17:57] ah you guys are right [17:57] in teh man page [17:57] "readlink does not null terminate teh buffer" [17:57] i just assumed it would [17:57] yes [17:57] let me check now :) [17:58] i also assumed that but your failure really smelled like this [17:58] so i was just reading that when sarnold reported it [17:59] that's looking muich better now! [17:59] yay [17:59] yay! [17:59] good - it would really surprise me if /exe was garbage [17:59] same [17:59] and if it had what looked to me like a missing NUL terminator garbage .. potentially very scary :) [17:59] thanks, i should have read the docs for readlink first [18:00] i just assumed it null terminated [18:00] thanks again guys, looking good now :) [18:00] btw is tehre any other C API for doing this other than reading from /proc ? [18:00] or is /proc the official way? [18:00] jsut want: pid -> path [18:01] banisterfiend, /proc is the best interface linux has for these things [18:01] banisterfiend, there are libs out there that support many OSes [18:01] banisterfiend, and on linux, they use /proc [18:01] wonderful, thanks [18:01] Does linux have a kinfo_proc synonym? [18:02] ikanobori: what's that do? :) [18:02] https://www.freebsd.org/cgi/man.cgi?query=kinfo_getproc&sektion=3&apropos=0&manpath=FreeBSD%2010.0-RELEASE [18:02] Habbie do you think this approach is likely to be fast enough btw? i mean...will adding the pid to the cgroup happen before chrome starts creating sockets do you think? [18:02] It does what procfs does on Linux :) [18:02] unfortunately I only really know the APIs linux expose -- higher level apis that devbelopers would find enjoyable to use are almost entirely foreign to me [18:03] seems linux loves VFS for so many things, the entire cgroup API appears to be exposed through VFS too [18:04] banisterfiend, your question about a race condition is a very good question but i don't have an answer [18:04] banisterfiend, there's a reason i, with many words, said 'use cgexec' (i did not know it was called cgexec) [18:04] banisterfiend, i wonder if any of this can be done with file attributes or something like that === nullbyte_ is now known as sunzero [18:24] I just install mariadb-server, and I did not get the blue screen in terminal where you enter the root password etc. [18:24] What is the default root password for mariadb in 18.04 ubuntu [18:24] I need to get in so I can make user accounts and such [18:25] mandude, can you just try 'mysql -u root'? [18:25] yes, I tried no password as well [18:25] mysql -u root -p [18:25] $ mysql -u root [18:25] ERROR 1698 (28000): Access denied for user 'root'@'localhost' [18:26] I just installed it. Usually anytime I have installed mysql/mariadb in the past in Ubuntu, it always gives me a blue screen asking me to specify a root password. [18:26] I have done apt-get --purge remove mariadb* and then I have reinstalled it, wiped all the tables/db from the system [18:26] the mysql/mariadb docs have a generic password reset howto [18:27] Upon reinstalling it fresh without any config files or db, it still does not give me the screen where I can specify root pass upon installation [18:27] But this is quite goofy. To let people install mariadb-server in ubuntu and then require them to go through the hassle of resetting a password. [18:27] well i'm sure it's not supposed to be like that [18:28] so perhaps there's a reason you are not getting that prompt [18:28] what ubuntu version? [18:28] 18.04 LTS [18:28] what's your apt-get install command? [18:28] It's a fresh system, I just installed it. [18:28] apt install mariadb-server [18:29] can you do the purge again, and then pastebin the full output of apt install mariadb-server? [18:29] sure [18:32] did you run the mysql_secure_installation? [18:32] script [18:32] Nope. Just whatever came with ubuntu [18:32] I havn't dont it for a long time but [18:33] in that case root can log in without password for localhost? [18:33] and this script will set the password for root [18:33] https://stackoverflow.com/questions/43379892/mariadb-cannot-login-as-root [18:33] Look at the last reply [18:34] Unlike native MariaDB packages (those provided by MariaDB itself), packages generated by Ubuntu by default have unix_socket authentication for the local root. [18:34] ah! [18:34] What does this mean? [18:34] it means 'sudo mysql' from the question might be helpful [18:34] That's just stupid! [18:34] Wow. [18:34] That's universally stupid. [18:34] it really isn't [18:34] no [18:34] It really is. [18:34] good luck. [18:35] This is not a reaction. It's a well thought out developer quirk. No one likes that nonsense. [18:35] mandude: it means, authentication is done just by logging into mysql as root from the local machine. No remote access or passwords [18:35] Ubuntu should leave things alone. [18:35] *sigh* [18:35] That's the problem with every distro. No QA. Everyone thinks they have the best way to implement something. [18:35] Should move back to BSD. [18:36] mandude: if you have root on the machine, authentication to databases means nothing regardless [18:36] mandude: this isnt the complaints channel [18:36] mandude: also, it has nothing to do with ubuntu https://mariadb.com/kb/en/library/authentication-plugin-unix-socket/ [18:37] Certainly. Habbie thank you for checking that out for me. Great help. :) [18:37] Habbie: according to the mariadb docs, unix_socket is default in MariaDB 10.4.3 and newer [18:38] Debian has enabled it since 9 and Ubuntu since 15.10 [18:38] leftyfb, cool, i like that a lot [18:38] leftyfb, (but i had no idea until just now) [18:39] mandude, you're welcome! [18:40] Now I'm acquiring the packages from here, so I won't have to ask you for support [18:40] https://downloads.mariadb.org/mariadb/repositories/#distro=Ubuntu&distro_release=bionic--ubuntu_bionic&mirror=nus&version=10.4 [18:40] mandude: you know that won't get you what you want right? [18:41] mandude: as I pointed out, MariaDB enabled unix_socket by default [18:42] the answer on that stackoverflow page is about ubuntu doing this by default on 10.0, and the person installing upstream 10.2 to avoid the default [18:42] but as leftyfb indeed pointed out, the 10.4 you linked should also have this behaviour [18:43] The reason I used ubuntu was so I don't have to setup everything manually. [18:43] It's a nice workstation distro for work [18:43] mandude: again, this has nothing to do with ubuntu [18:44] But then, when distros do things for you, sometimes they also do things you don't want or originally wanted done differently. [18:44] Even then, I can't stand the horridness of gui things. [18:45] I use Xmonad, Kubuntu (only the kde panel for task switching), Firefox/Netbeans and urxvt. Everything cli unless I need dev tools. [18:45] Buntu works for my needs but certains things I wish were different. [18:45] mandude: take it elsewhere. This is a support channel [18:46] mandude: https://www.linuxbabe.com/mariadb/plugin-unix_socket-is-not-loaded-2 this is what you want. Start on line "Another authentication plugin is mysql_native_password. MariaDB uses this plugin to authenticate a user who is created with this command:" [18:47] Actually it's the same behavior in non ubuntu packages. [18:48] * leftyfb is shocked [18:56] Habbie you still here? [18:57] banisterfiend, i am, but if you have a question, just ask it, there's lot of clever people in here that know way more than i do [18:57] Habbie ah, i was just going to ask how i can atomically update the net_cls /tasks file [18:57] if i want to remove/add other pids [18:57] i don't know what that is, sorry :) [18:58] for cgroups [18:58] routing processes differently based on pid [18:58] ah that [18:58] i don't know [18:58] i add the pid of the procsses to sys/fs/cgroup/net_cls/foo/tsks [18:58] but i need to be able to add/remove pids atomically [18:58] i.e not just adding them one by one [18:58] how do you add them? [18:59] literally by: echo $PID > /sys/fs/cgroup/net_cls/foo/tasks 😂 [18:59] so why does it need to be atomic? [18:59] because i may want to remove one [18:59] but i can't see a way to actually remove them [18:59] i think i just have to add them all again [18:59] ah [19:00] sorry, i don't know [19:00] but if i add them 1 by 1, then there's an issue [19:04] When I scp I get a version type mismatch, I did a apt-get upgrade on both machines... google didn't help, thanks! [19:05] kifaro, please show the error [19:05] lol just tried to run as sudo for the heck of it and it worked [19:05] #ubuntu magic :) [19:06] ehh [19:21] hi, adding a bridge with brctl addbr - why is it GONE after Reboot??? that never happened before [19:22] brctl addbr does not store anything anywhere [19:22] is there a rebuild anywhere of pip/pip3 for ubuntu 18? unfortunately 9.0.1 that comes by default with u18 is legit broken between pip and requests issues [19:28] Habbie so I'll just add the interfaces to network/interfaces or netplan? [19:28] depending on what I use [19:28] what's the deal with GS* packages on raspbian? https://uploads.kiwiirc.com/files/c2aac2d313741e64f1e5653238560e53/pasted.txt can't find it when I try apt install [19:29] orbiter, probably [19:30] mithrison, this is #ubuntu [19:30] mithrison, try #raspberrypi or #raspbian [19:33] I forgot setting bridge_ports in network/interfaces... thanks [19:43] hello [19:44] I'm trying to kexec into an ubuntu live CD. I was able to extract the squashfs file system from the ISO and put it on /dev/sda and then put the kernel and initrd on another drive [19:44] does anybody know, I have an old radeon graphics card, and youtube video are really laggy [19:44] Then I kexec -l /mnt/flash/ubuntu/casper/vmlinuz --initrd="/mnt/flash/ubuntu/casper/initrd" --ramdisk="/mnt/flash/ubuntu/casper/initrd" --append="console=tty0 console=ttyS0 rw root=/dev/sda" [19:45] so i'm wondering if i can install anything to improve the performance [19:45] It seems to boot up fine, but I'm getting a [FAILED] Failed to start Load Kernel Modules. [20:39] cyberyl: which graphics card is it, which ubuntu version are you running? [20:39] lspci -knn | grep -A3 VGA | nc termbin.com 9999 [20:39] nc termbin.com 9999 < <(lsb_release -ds;cat /proc/{version,cmdline};echo "Session: $XDG_CURRENT_DESKTOP ($XDG_SESSION_TYPE)";echo Shell: $SHELL) [20:45] sup [20:46] tomreyn ATI Mobility Radeon X300 (64MB GDDR SDRAM) [20:47] I already figured out that it doesn't support VA-API out of the box [20:47] but you can do it through a translation layer: https://wiki.archlinux.org/index.php/Hardware_video_acceleration#Translation_layers [20:47] but i can't figure out how to do it in ubuntu [20:47] ie what package i need [20:48] do it: add VA-API support [20:48] cyberyl: doh, that's really old hardware. have you considered replacing it? even a current intel GPU should be faster now, and AMD GPU certainly is. [20:49] it's an older machine i kinda want to play with, so i haven't really considered replacing it :) [20:50] whle you're limited to this hardware, try using youtibe-dl or similar to download the videos and play them back in a video player (which is not also a web browser) [20:54] well maybe it can't handle youtube, but i'd like to try and configure this translation layer, to see if it does anything [20:57] personally i'm not interested on trying to get better performance out of 15 yo hardware. maybe others will be happy to spend time. good luck! [20:59] ok, no problem, thanks for trying anyway :) === herb6 is now known as herb [21:07] trying to set up a local package repo. after adding entries in sources.list to point to my local copy and removing the ones that reference the publicly hosted ones, apt update seems to succeed. But when I go to try to upgrade an installed package, I am told that I have the latest version when in fact a newer version is present in the Packages fil [21:07] e and the newer release is in the mirror [21:08] how do I debug this? === fginther is now known as fginther` [21:19] how to turn on on-screen keyboard ? [21:21] done it myself [21:22] is anyone familiar with creating custom speaker configurations? [21:24] I was wondering how to remove a matching string from all files in a directory. like I have pithos-fly which records pandora songs... but it puts "(loved)" at the end of songs I have liked. how could I remove that in one go? [21:24] notgnu sed [21:26] {wanders off to read more on sed} [21:26] thanks [21:26] notgnu: the filename? [21:27] its a bunch of songs. like 311 - Amber (loved).mp3 Jack Johnson - Broken (loved).mp3 etc...... [21:28] I have a TON of these messages [21:28] Window manager warning: Overwriting existing binding of keysym A with keysym B (keycode C) [21:29] what are these and how do I make it stop? [21:30] notgnu: apt install rename; rename -n -e 's/ \(loved\)//' *loved* [21:31] the -n means it won't actually rename, just tell you what it'll do so that you can check [21:31] if it all looks right, remove the -n [21:32] if I install Ubuntu, make any change, recreate the iso from that installation, can it still be "Ubuntu"? or "only for personal use"? (if made public should remove all Ubuntu reference) [21:33] I didn't found related info on the wiki [21:36] notgnu: to prevent it happening in future, edit pithos.py, find the line "if self.current_song.rating == RATE_LOVE:", and change it to "if false:" [21:37] (or delete the line and the next two, and shift the following line left) [21:37] ^^ oh shit didn't even think of that! you rock!! :D :D [21:39] anyone know why apt can't find the latest version of a package from my local repo? [21:40] I see the updated package version in the packages file, and the deb exists in the repo [21:40] update gets the right package file from my repo, but the package appears to be the latest version according to apt, which is false [21:42] rumbler31, what ubuntu version, what package and what 'local repo' ? [21:42] 16.04 lts [21:42] the latest perl package [21:42] and a local repo mirror I made [21:43] the currently installed version of the perl package is one release behind the latest, my repo has the latest [21:43] we nbeed more details, version nr? [21:43] so vague, what wouyld you answer? [21:44] installed [21:44] 5.22.1-9ubuntu0.5 [21:44] available in my repo and matches the currently distributed version [21:44] 5.22.1-9ubuntu0.6 [21:44] 06 is in 16.04 updates https://launchpad.net/ubuntu/+source/perl [21:45] yup, and I have that in my mirror, or at least I think I do [21:45] Betal: if you're distributing your changed version, it can't use the Ubuntu trademarks (unless you get permission). https://ubuntu.com/legal/intellectual-property-policy [21:45] I know I have the package list with the latest version and the binary for it in the file tree [21:46] Ign:4 http://192.168.0.169:8080/ubuntu xenial/main amd64 Packageswhich is the package file where this package is listed [21:47] so that is being fetched correctly [21:47] when was the last time you ran 'apt-get dist-upgrade' ? [21:47] not sure [21:47] what does that do [21:47] in this context [21:47] !dist-upgrade [21:47] A dist-upgrade will install new dependencies for packages already installed and may remove packages if they are no longer needed. This will not bring you to a new release of Ubuntu, see !upgrade if that is your intention. [21:47] it might give a fresh kernel and other core elements [21:47] that would explain kept back perl [21:47] in this case I do not want this, unless it is blocking me from upgrading this package [21:47] er [21:48] you can run it, and hit 'n' to cancel [21:48] ok let me see [21:48] or the -d dryrun option [21:49] it says there is no work to do [21:50] oh, no clue then, perl -05 installed,.. [21:50] ? [21:52] deltab: got it, thanks, so only allowed for personal use, not allowed even to give for friends a custom iso (was just trying to find out the point of some iso creators over there) [21:53] Betal: I think you can create an installation script that sets which packages are included and some config [21:54] Betal, you can respin the iso with cubic, but we are not happy to support such install, unless you add just ubuntu packages. [21:54] https://askubuntu.com/questions/741753/how-to-use-cubic-to-create-a-custom-ubuntu-live-cd-image [21:55] rumbler31, disable your local repo, and reinstall perl again? [21:56] I am testing a workflow to update systems in the field with no internet access, so I need the local repo workflow to work [21:57] hi [21:58] rumbler31, interesting, so why does those offline systems not find perl with apt? [21:58] you tell me lol [21:58] deltab, OerHeks: so using cubic Iam allowed to create a new iso using some apt purge and apt install, and later make it public or the "can't use Ubuntu trademarks" still valid [21:59] Betal, yes, that does not infringe trademark. you might even add a ppa, like drivers-ppa or others. 3rd party repo's are the problem. [22:03] When I modify /etc/pam.d/sudo nothing happens [22:03] I can't seem to get other pam modules to work [22:57] <^amra> hello. I have one ext IP on my ubuntu server and want to forward incoming connections from myserver.con:27960 to subdomain.myserver.com:27961 this is possible? [22:59] ^amra: think in terms of ip addresses, not dns names, and you'll probably have an easier time of setting it up; iptables can do that [22:59] <^amra> Hm [23:00] <^amra> but if i have only on ip address [23:00] <^amra> And I need to sort incoming connections by domain names === Videonauth_ is now known as Videonauth [23:00] <^amra> Is it possible? [23:01] <^amra> For example if incoming request searches for subdomain.myserver.com:27960 -> redirect to *:27961 [23:01] <^amra> Protocol is UDP [23:02] oh, hmm, maybe I completely misunderstood what you're trying to do; can you describe more of it? [23:02] Sounds like a job for an apache/nginx redirect but need more info [23:05] but udp is a real surprising twist [23:05] Question.. fresh install of 18.04 server ed and latest mariadb. I cannot get the service to start.. keeps timeing out. I added some rules to apparmor and most the errors went away except for one and still cannot start it [23:05] <^amra> sarnold, I have only one extIP and can create several subdomains on it. On the server I have several quake3 game-servers on misc different ports. Server is Ubuntu 18.04.3... I try to understand how can I forward incoming connections by UDP protocol and distribute all incoming connections to differnet ports where is each port is for some name used for incoming connection. not ip [23:05] apparmor="DENIED" operation="sendmsg" info="Failed name lookup - disconnected path" error=-13 [23:05] xtacie: maria disables the apparmor parser entirely; did you switch from mysql? [23:05] sorry, just seen paste comment in topic [23:06] fresh install of barebone 18.04 and i believe i left out mysql [23:06] i was getting dozens of DENIED msgs.. and then added the default apparmor rules of mysql and restarted and still nothing [23:09] sarnold: https://paste.ubuntu.com/p/bQbFqHqZGd/ [23:10] xtacie: I ask about the mysql because *this* is what mariadb ships for an apparmor profile: http://paste.ubuntu.com/p/pps7RMjRxp/ [23:11] hmm, so how.. erase the rules i set.. and how do i make apparmor ignore mariadb [23:13] apparmor_parser --remove /etc/apparmor.d/usr.sbin.mysqld ; followed by an apt purge ; followed by apt install --- perhaps just an apt install --reinstall ... but i've not tried that.. [23:13] just be sure to save aside the configs you want before you purge them [23:20] it was a little scary to do but...... sudo apt-get --purge remove "mysql*" [23:21] you guys have a simple way to run a speed test via cli? basically my ubuntu server vps. wanna see what the host caps it at. [23:21] wget lets u know the speed of a file you retrieve.. [23:22] wget http://ipv4.download.thinkbroadband.com/1GB.zip [23:23] for disk performance (might get u in trouble if you run alot) u can try.... [23:23] dd if=/dev/zero of=test bs=64k count=16k conv=fdatasync [23:25] what about upload? [23:25] there is a speedtest-cli [23:25] google packages... speedtest and [23:25] fast [23:25] speedof.me is nice [23:29] trying to use speedof.me on MS edge and its not loading correctly [23:30] nshire, file a bugreport ... wait [23:31] I can't even download chrome, it's so slow aaahhhh [23:31] !ot [23:31] #ubuntu is the Ubuntu support channel, for all Ubuntu-related support questions. Please register with NickServ (see /msg ubottu !register) and use #ubuntu-offtopic for other topics (though our !guidelines apply there too). Thanks! [23:31] oops [23:31] where am I [23:31] 'buntu [23:32] I'm looking at 3 computers and a phone right now, I got lost lol sorry [23:41] hi, i am trying to see glyphs from zsh on the console, where can I download the correct font to install with setfont [23:44] henninb: try fonts-noto, I think it's got a lot of glypohs [23:44] thanks sarnold, i will check it out. [23:45] indeed it does, which is how it got its name [23:46] some font renderers display missing glyphs as white squares, nicknamed 'tofu' [23:46] 'Noto' is from 'no tofu' [23:50] for use on the console though, do you need psf fonts? [23:52] Is there a way to hide a user from pkexec? [23:53] not sure if i absolutely need it, but I would like my console to show the gliphs from zsh [23:54] deltab: hah, cool :D I hadn't heard that before [23:56] henninb: which characters do you need? I think there's a low limit on how many the console can show [23:56] the ones for git [23:56] oh hmnm, at the console, yeah, I wouldn't expect that to go over well. it's got pretty limited capabilities. [23:57] i am using oh my zsh [23:57] is it an actual text mode, or is it text drawn on a graphical mode? [23:58] i am not sure I understand the question deltab. it is all text from my point of view.