[00:53] hey hey. i'm trying to get a connection to mssql 2008 r2 going using ubuntu 20.04 and php 7.4 [00:53] sqlcmd doesn't work from commandline, however i am able to telnet to the sql server. it is running and in production on the old webserver i'm attempting to replace [00:54] i've followed most of the basic tutorials but am still getting [Microsoft][ODBC Driver 17 for SQL Server]Client unable to establish connection type errors [00:54] does anyone have experience getting connection to mssql going on ubuntu 20.04 server? [01:10] rxdeath: are there any more details? check logs on both server and client, perhaps one of them logged something more useful [01:10] rxdeath: if there's nothing in the logs that's helpful, it might be useful to fire up wireshark or tshark or tcpdump and watch the connection live [01:14] sarnold: i'm able to connect with nc and telnet [01:14] and the server is use from the old webserver, so at most it would be a driver thing, but know remote connections are up, etc === tnewman7 is now known as tnewman [02:43] I cannot 'startx' on virtualbox when doing it by tty alt+ctrl+f2/3/4'. it says https://termbin.com/cmeq any clues? [02:44] [ 75.279] (II) Server terminated successfully (0). Closing log file. [02:44] wild guess, you don't have a ~/.startxrc file to tell the server what to do [02:45] sarnold: checking [02:46] sarnold: I don't have that file in the system where tty works too. [02:47] sarnold: are you sure its .startxrc? don't think so [02:48] Intelo: check the startx manpage [02:51] sarnold: found /etc/X11/xinit/xinitrc in a working system [02:51] now checking the not-working one [02:57] sarnold: both working and non working have identical files (I didn't go in depth though) but one difference is that the working one has xubuntu installed while the non working has xubuntu installed afterwards (it was ubuntu-server initially) [02:58] sarnold: what do you think how can i trace the issue here [03:00] Intelo: I'm not sure; if it were me, I'd create a ~/.xinitrc file with xterm in it and see if that works [03:56] Intelo, Did you notice this? [ 74.292] (EE) open /dev/fb0: Permission denied [03:59] apb1963: sarnold hm.. [04:00] sarnold: how to make such file? [04:00] apb1963: what should it be fixed with [04:15] Intelo, No clue. I find problems, not fix them :p Try this link, they're talking about it. Personally I have no clue. https://unix.stackexchange.com/questions/149985/startx-cannot-open-dev-fb0-permission-denied [04:16] Intelo, And that ends my participation... good luck, I'm off to dinner :) [04:18] Intelo, Last thing and then I'm gone. "Asked 6 years, 8 months ago [04:18] Active 6 years, 8 months ago " So I don't know if it's still relevant but permission denied is often relevant. Good luck! [06:20] so, i think i royally messed up my install by accidentally installing a couple packages that are incompatible to the point that not even "sudo apt --fix-broken install" does nothing... [06:21] i was trying to get dependencies to get avxsynth to compile, so i grabbed the deb files and tried to install them... and yeah, i think that broke everything. please advise on how to fix [06:22] the command that i think broke everything was wget http://ftp.br.debian.org/debian/pool/main/d/double-conversion/libdouble-conversion1_3.1.0-3_amd64.deb http://archive.ubuntu.com/ubuntu/pool/main/libj/libjpeg-turbo/libjpeg-turbo8_2.0.3-0ubuntu1_amd64.deb http://archive.ubuntu.com/ubuntu/pool/main/libj/libjpeg8-empty/libjpeg8_8c-2ubuntu8_amd64.deb [06:23] a wget can't possibly break apt, so that command must've gotten truncated on irc [06:23] you didn a dpkg -i or something, didn't you [06:24] please pastebin the output of apt --fix-broken instlal [06:26] doing so now [06:28] https://pastebin.com/SHt5rTGn [06:29] ahm hm, interesting [06:30] sounds like a multiarch problem where you have both libjpeg-turbo8:amd64 and libjpeg-turbo8:i386 installed and you're trying to upgrade just one of them [06:30] i didn't want the i386 version, though [06:30] and the error message doesn't mention it; can we check if :i386 is even installed? [06:31] sure [06:31] can you pastebin the output of apt policy libjpeg-turbo8:{i386,amd64} [06:32] alrighty [06:33] https://pastebin.com/x0XmMGV2 [06:33] huh, so the i386 is not installed at all? [06:34] and, wait, libjpeg-turbo8 is already at the latest version? [06:35] so apt succeeded despite that error? [06:35] what happens if you run apt install --fix-broken again? [06:37] Reading package lists... Done [06:37] Building dependency tree [06:37] Reading state information... Done [06:37] 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded. [06:37] i wonder why it was tryign to install i386 packages... this is an x86_64 machine running ubuntu in WSL2... can it even *run* i386 programs/libraries? [06:39] I don't think it was trying to install i386 [06:39] but according to dpkg -S /usr/share/doc/libjpeg-turbo8/changelog.Debian.gz, the only two packages that share this file [06:40] are libjpeg-turbo8:i386, libjpeg-turbo8:amd64 [06:40] yeah, i figured as much [06:40] it looks like apt somehow managed to conflict libjpeg-turbo8:amd64 with itself? don't ask me how [06:40] maybe file a bug, if you've time [06:40] so "1 not upgraded", what is that about? apt policy claims libjpeg-turbo8:amd64 is alread at the latest version [06:41] is it still stuck in the unconfigured state because of the failure? [06:41] if you run sudo dpkg --configure -a, does that resolve the situation? [06:41] i have no idea which package is "not upgraded" [06:42] sudo dpkg --configure -a just returns nothing [06:42] ran sudo apt-get upgrade [06:42] said that libmysqlclient20:amd64 had an upgrade available [06:43] okay... this is definitely entering bizarre territory for me. never had apt-get crap itself that hard... but i'm glad it seems to have fixed itself with your guidance, mgedmin :) [06:44] well it had help [06:44] from me? not likely.. i come from fedoraland... still getting used to ubuntu's habits :P [06:44] don't install random packages with wget + dpkg unless you enjoy cleaning up messes ;) [06:44] oh yeah. i agree [06:45] my next question is.... would following these instructions be a good idea? https://stackoverflow.com/questions/42120938/exec-format-error-32-bit-executable-windows-subsystem-for-linux you know... just in case i find a good tool but it only comes in a 32-bit package, without a 64-bit version available... [06:47] which instructions specifically? [06:48] sudo apt install qemu-user-static [06:48] sudo update-binfmts --install i386 /usr/bin/qemu-i386-static --magic '\x7fELF\x01\x01\x01\x03\x00\x00\x00\x00\x00\x00\x00\x00\x03\x00\x03\x00\x01\x00\x00\x00' --mask '\xff\xff\xff\xff\xff\xff\xff\xfc\xff\xff\xff\xff\xff\xff\xff\xff\xf8\xff\xff\xff\xff\xff\xff\xff' [06:48] eh, I don't see how it could hurt [06:48] You'll need to reactivate binfmt support every time you start WSL: [06:48] sudo service binfmt-support start [06:48] if that's the case, i'd like it to be automatic, so i don't have to worry about forgetting something like that [06:49] I don't know how WSL works; doesn't it start services on startup? would systemctl enable binfmt-support suffice? [06:50] running that as sudo works :D [07:30] hello, how can I have everything in englishon my system, and just the number formatting and times european? [07:31] in my regional settings I have american english as the default, and in formats I have region s en_US and the numbering etc. in de_DE, but still some applications (apt, and some programs) are coming up in German... [07:47] https://p.mort.coffee/F5m.png Ubuntu needs an easier way to let people choose between duplicate ubuntu software entries [07:50] Hi, I have a ryzen 3700X + Radeon 5600XT system, but booting the ubuntu desktop 21.04 installer panics during boot on amdgpu. I have 1 gpu, 2 monitors. I'm not sure if https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1926792 is related or not. Does anyone know more about this? [07:50] Launchpad bug 1926792 in linux-oem-5.10 (Ubuntu Focal) "Fix kernel panic at boot on dual GFX systems" [Critical,Confirmed] [07:51] mort: Haven't checked, but I'm guessing one of those is a snap and the other is from apt [07:52] yeah [07:52] the entries should probably say something about that though [07:52] (the snap listing is also wrong, it claims to be 0.18 in the description but has version 0.19) [07:53] (oh, and the apt listing is wrong, it claims to be proprietary and never updated) [08:36] do you know if there is a way to force sound from speakers even when the headphone jack is plugged in? [08:38] yes: open sound preferences, select output device [08:39] ... I think, it's been a long time since I used wired headphones on my laptop [08:39] if you can't switch between headphones and speakers there, there's still a way with pactl from the command line [08:39] but pactl is a terribly inconvenient tool [08:49] switching output device does not work for me indeed [08:55] How long does it usually take for the first LTS point release to come out? [08:57] mgedmin, pulse volume shows the line output (as opposed to headphones) as unplugged even if the cable is still plugged in [08:58] huh [09:06] !release | txtsd [09:06] txtsd: Ubuntu releases a new version every 6 months. Each version is supported for 9 months (non-LTS) or 5 years (LTS). More info at https://wiki.ubuntu.com/Releases and https://wiki.ubuntu.com/TimeBasedReleases === kedar_apte_ is now known as kedar_apte [10:34] lotuspsychje: point release, not a full release [10:35] txtsd: did you click the first wiki to see the . releases list? [10:35] Oh I see it now [10:35] Thanks [10:35] generally when there's a new non-LTS release, there's also a point release for the previous LTS at about the same time [10:36] txtsd: the first point release of a LTS comes about 3 months after the first LTS release [10:36] it's in the release schedule [10:45] Thanks [12:16] So, is it recommended to update from 20.10 to 21.04 yet ? (Xfce/Xubuntu desktop) [12:16] Have Btrfs apt-btrfs-snapshots on package install, so I can go back) [12:18] https://bugs.launchpad.net/ubuntu/+source/shim/+bug/1925010 is still not fixed, and 20.10 -> 21.04 release upgrades remain disabled for now [12:18] Launchpad bug 1925010 in shim (Ubuntu Hirsute) "shim-signed 15.4 does not boot on EFI 1.10 systems" [High,In progress] [12:19] thanks mgedmin [12:21] Hi folks [12:21] hey [12:52] hello, i did setup the default ubuntu hotspot and it takes WPA by default how can i switch it to WPA2 ? [13:03] pagios: Should be able to edit the connection to change it [13:05] jeremy31, issue is windows machines refuse to connect [13:05] i have wpa3 does not work with windows too [13:09] pagios: Surprised that windows refuses because of WPA [13:16] pagios: you're using hostapd? check its logs [13:17] TJ-, not sure what it is using [13:17] not hostapd as i dont see it in the p-s -ef [13:19] pagios: hostpad is the parent (project) of wpa_supplicant [13:19] TJ-, yea i do havethat process /sbin/wpa_supplicant -u -s -O /run/wpa_supplicant [13:20] pagios: are you using NetworkManager to configure the local AP, or something else? [13:20] TJ-, i am using the graphical interface inside gnome, the one in the sidebar [13:21] pagios: I don't use gnome so don't know what it uses [13:24] gnome-network-manager [13:28] so any idea? [13:34] Hello! A couple of years ago the Ubuntu shop where you could buy stuff like hats/bags/whatever got shut down. Anyone know if Canonical is planning on bringing it back? === ace_me1 is now known as ace_me [13:36] Is there any way to retrieve older deb files for a package that's been updated in the primary package archives? I'm specifically looking for older versions of openjdk-8-jdk. [13:38] !discuss | JonJ [13:38] JonJ: Want to talk about Ubuntu, but don't have a support question? /join #ubuntu-discuss for non-support Ubuntu discussion, or try #ubuntu-offtopic for general chat. Thanks! [13:39] Ah, okay [13:42] timvisher, go wild on http://ftp.ubuntu.com/ubuntu/pool/universe/o/openjdk-8/ [13:42] no support [13:44] oerheks: Obviously. :) === dob1_ is now known as dob1 [14:48] Hi! I have an issue in 21.04 with Ethernet interface names changing every reboot, making networking quite unreliable. I've tried to configure systemd to use 'path' based names, but still end up with 'eno0/1 and eth0/1' duking it out. I've removed netplan to go back to 'interfaces', with no improvement. What are the various parts of the kernel, systemd or elsewhere that control this naming, and how could [14:49] one figure out which is doing these things? I'd like to have 'stable' names like enp3s0f0. [14:51] Peanut: my guess is udev rules, there (was? is?) a file like 70-persistent-net-names or something similar that usually had macs and names in them [14:52] sarnold: Thanks, but that seems to have long ago been replaced by systemd, even my few remaining 18.04 systems don't have that file any more. [14:53] but udev is part of systemd.. [14:53] Peanut: You have to create that file if you want it to work... [14:54] Peanut: 'systemd' has its own variant of 'udevd' but it uses the same configuration files. 'man 8 systemd-udevd' [14:58] Walex2: The scheme we've had since 18.04 was names like 'enp4s0f0', which requires no further configuration or handcrafting of configuration files. Is there a way to enable that again without having to generate the old 70-persistent-net-names again? [15:02] Peanut: see "man systemd.net-naming-scheme" [15:07] TJ-: Going through that one now. The file /lib/systemd/network/99-default.link is the only one that seems to be in effect. Copied it to /etc/systemd, and changed 'NamePolicy' to only include 'path'. That seems to have given me fixed names again, but that file hasn't changed between 20.04 and 21.04. [15:07] Peanut: that has a link to https://systemd.io/PREDICTABLE_INTERFACE_NAMES/ where it describes the algoorthim for choosing, and where it shows that eno1 form is the preferred since systemd v197 *if firmware/BIOS provides it* [15:08] Peanut: in the web-link read the section "What precisely has changed in v197?" and the list 1 - 5 [15:08] Peanut: my guess is the newer kernel now extracts the info required by (1) and therefore it is being used [15:10] Peanut: if you want totally stable naming the only way is to associated the name with a unique id like Ethernet addreess rather than hardware path, which *may change* (even if quite rarely). [15:10] TJ-: Unfortunately, it seems to have brought us right back to where we started: interface names changing upon reboot. I have two on-board ports, and they randomly get eth0/eth1/eno0/eno1 [15:10] Peanut: then you have conflicting naming schemes. [15:11] Walex2: Clearly - or rather, this is a brand-new 21.04 install, so I would sayt that Ubuntu may have a conflicting naming scheme in 21.04. [15:11] Peanut: have you examined the udevd logs, afte renabling debug logging [15:12] Peanut: because eth0, eth1 vs. eno0, eno1, is a different problem from eno0, eno1 vs. eno3, eno4. [15:12] the case of different numbers within the same naming scheme can happen if the hw paths are enumerated differently, but that cannot happen if the naming schemes changes randomly. [15:13] Peanut: try adding "udev.log_priority=debug" to the kernel command line [15:13] TJ-: done, rebooting === Scotty_Trees3 is now known as Scotty_Trees [15:16] TJ-: Wowk, that generates a lot of scrolling on the console! (Logged in over IPMI at the moment, due to lack of stable networking) [15:17] Peanut: ahh, yes, well "debug" [15:18] Peanut: "journalctl -b 0 -u systemd-udevd.service" when you have good access [15:23] TJ-: Ok, got there (didn't take quite 5 minutes, took a quick break) === ttyS2 is now known as jonvonb [15:34] On this boot, it seems we got eno1 and eth1. For enp3s0f0 and enp3s0f1, two posts on an on-board dual-port 10G X540-AT2. How would one find the original kernel name? [15:37] Peanut, did you try dmesg|grep 'X540-AT2' or else hardware name? [15:39] original kernel names would be eth0 and eth1 [15:39] vlm: Good one. I get 'eno1: renamed from eth0' (but never eth0) in dmesg, the other one seems to stay as eth1. [15:39] Peanut: my guess is eth0 -> en1 then attempts eth1 -> en1 which is taken [15:39] The dmesg doesn't show the original kernel names, only when they happen to get renamed. [15:40] Peanut: the udev log should show what happened during renaming, in detail [15:42] TJ-: 32252 lines of detail, working through that at the moment. === vlm_ is now known as vlm [15:45] Peanut: search for "net_id" the builtin that handles it [15:45] Curiously, the 'eno1: renamed from eth0' does not seem to have a corresponding entry in the udev log at all, so that may happen before udev? [15:45] Peanut: or the first instance of "eth0" [15:45] There's no instance of the string 'eth0' in the udev log, but there is in dmesg. [15:47] In dmesg, we get "ixgbe 0000:03:00.0 eno1: renamed from eth0", so I wonder if that's due to the ixgbe driver itself? [15:47] Peanut: does the systemd-udevd log have entries such as "Using default interface naming scheme 'v245' " [15:48] Yes, v247 [15:50] Peanut: what does this report: "sudo udevadm test-builtin net_id /sys/class/net/eth1" [15:52] 'No such device' but that's because I have for now configured systemd to use the 'path' naming convention. When I do it for enp3s0f0, and for enp3s0f1, they both report 'ID_NET_NAME_ONBOARD=eno1' [15:53] aha [15:53] So that seems to originate from the firmware. [15:53] there is your problem then. because both interfaces are on the same slot [15:53] That's expected for a dual port card, innit? [15:54] well it ought not; it isn't like dual/quad port adapters aren't common [15:55] These cards (and most dual/quad cards I've seen) are the same slot, but not the same function. That's why I get enp3s0f0 and enp3s0f1. [15:59] TJ-: everyone - thanks very much for your help so far. I have to leave the office now (lockdown rules), back in an hour or so. === MIF is now known as DarthMIF [16:02] Peanut: looking at the source-code for udev-builtin-net_id.c it gets the name from the system's ACPI DSDT, specifically the _DSM (device specific method) [16:09] Is there some way to tell `apt-get install =` to install the package's dependencies at the correct version? I'm atteming to run `apt-get install openjdk-8-jdk=8u77-b03-3ubuntu3` and it's complaining that the wrong version of its dependencies are going to be installed but the correct versions are available if I run `apt-cache policy openjdk-8-jre`, for instance. [16:16] timvisher: possibly adding --print-uris and --allow-downgrades and see what versions are revealed in the printed URIs [16:17] TJ-: Thanks. I'll give that a try. [16:20] TJ-: `sudo apt-get install --print-uris --allow-downgrades openjdk-8-jdk=8u162-b12-1 [16:20] … [16:20] E: Unable to correct problems, you have held broken packages.` and I don't see any obvious URIs being printed. :\ [16:21] What appears to work is `apt-get install openjdk-8-jdk=8u162-b12-1 openjdk-8-jre=8u162-b12-1 openjdk-8-jdk-headless=8u162-b12-1 openjdk-8-jre-headless=8u162-b12-1` but obviously I'd like it to just select the proper version of the packages. [16:32] timvisher: I think --print-uris failed because you'd previously had a failure to install [16:33] TJ-: That makes sense. [16:35] timvisher: as it stands apt doesn't have a way to do what you want with dependencies, but it is a valid use-case, so I reccommend opening a bug against apt.juliank has been doing a lot of improvements to apt so it may get on his radae [16:36] TJ-: Neat! Thanks for helping me out. What I have isn't the worst work around. :) [16:42] uhm a friend gave me their laptop to fix… it's _not_ ubuntu, but seemingly freezes during decryption of luks disks. any clue where to go (their distro support don't seem strong with the luks-power… happy may4 btw) [16:43] nuala: try asking in ##linux [17:02] ty! [18:05] might be a bit of an odd question, but does anyone know of a theme for cinnamon and an icon pack to make my desktop look like older versions of ubuntu (such as ubuntu 8 or 10)? [18:08] j5v1: Ubuntu Mate would have been a better option than installing cinnamon on top of Ubuntu. Ubuntu MATE is easier to let it look like Ubuntu 8.04 or 10.04 [18:08] Hello, I'm looking to do `tail -f file.log | jq .` in a tmux session but scrolling in tmux is painful. Any suggestion on how I can get a tail of the log file with some good scrolling abilities? [18:09] Maik, good point, may have to look into using MATE [18:09] j5v1: here's mine from a while ago: https://ubuntu-mate.community/uploads/default/original/3X/e/5/e5fff2e827d074bc3eccf7f809683ddbf3474283.jpeg [18:34] !ubuntu releases [18:34] In year 2003, which Ubuntu release was available? [18:34] I am NOT a docker user and do not have it on my servers. I have a client that wats us to allow docker. I created adocker container that was JUST Ubuntu, on a Ubuntu machine. When I use that container on another machine with the docker daemon it can bypass file permissions because the dameon runs as the root, from what O can see. Is this true? === grumble is now known as Guest31287 === gurmble is now known as grumble [18:35] jason1234, none. The first release was 2004. === veegee_ is now known as veegee [18:36] jpmh, if the container is running in priviledged mode, it can break out. But unprivileged is the default. [18:38] lordcirth: you say "the container" - If I pull the container from another test server when running as an unpriv user how does that allow the conatiner to run priv, as it seems to? So, clearly I'm missing soething crucial here [18:38] lordcirth: I would add that I literally just installed docker using apt so on both test machines it is set however the defaukt it [18:39] jpmh, I'm not very familiar with docker, but perhaps the container was configured to run priv, and that was copied. https://docs.docker.com/engine/security/userns-remap/ [18:40] You may need to create /etc/sub{g,u}id [18:41] lordcirth: I'm sure that is the case. But that sure seems a problem. If I create sucha container on MY server then go to a server that I do not have privs on and bring in that container that should notallow meto break out [18:43] lordcirth: realistically it is HORRENDUS that the defaul docker setup has this hole. Or, am I missing something? [18:44] jpmh, the default docker setup presumably does not assume an untrusted user being able to run arbitrary docker commands on the host. [18:44] How are you allowed to spawn containers if you are not trusted? [18:45] lordcirth: yes - but that BREAKS the whole *nix philosophy [18:45] jpmh, You should ask on #docker [18:50] lordcirth: I lost connectin - if you suggested anything ghen please re-send [18:50] jpmh: there's a difference between the permissions of docker daemon and the container itself [18:51] lordcirth: so, the probem would seemtobe that if I allow a user ANY access to docker I am giving hom complete accessto the machine. My cliet wants to be able to run a simple docker container [18:52] TJ-: OK - so, the daemon is running the default way the install set it.It seems therefore that any container that is run has complee acces to the entre machine. What am I missing? [18:52] TJ-: indeed the daemon is running as the root - that's how the defaut install goes [18:53] jpmh: docker-daemon is the supervisor, not the container. It takes the image, creates the container, sets the cgroup/namespace limitations, for unprivileged containers it alters the UIDs/GIDs based on subuid/subgid and starts the init process inside the container [18:54] jpmh: in the same way that logind, running as root, allows you to log-in and create a user session [18:54] jpmh, If you want the client to have a container, but not any priviledges outside of it, then *you* make the container and add his ssh keys or whatever. Do not give their user permissions to manage docker. [18:54] your user session has your UID/GID not root [18:55] jpmh: if you want a daemonless alternative see podman and crun and friends [18:55] lordcirth: the problem is that the client is a Starbucks franchise and wans to run thecontainer that Starbucks provide. So, making the container is not achoice [18:56] jpmh: so just make the container unprivileged [18:56] jpmh, what do you mean? you download and run the container. [18:56] TJ-: what I am missing here is that if I give a user acces to docker and he then choses to bring in a container that is privilged then he seems to get the priv - [18:56] jpmh: you can also run the docker-daemon 'rootless' [18:56] jpmh, yes, if you give a user the ability to give orders to a daemon running as root, they have root. [18:56] jpmh: you don't give the user access to docker, only to the container [18:57] Last I checked, rootless docker was a pain [18:57] makes sense, if it ain't root ! [18:57] lordcirth: are you suggesting that I do not grant im a limited shell whth docker, bt that I just boot him right nto the container? Actually, tat would work [18:58] jmcgnh: https://docs.docker.com/engine/security/rootless/ [18:58] TJ-: our messages crossed - YEP - that makes sense [18:58] jpmh, there is no need for them to have any shell on the host. [18:58] They want a container, not a shell that can start containers [18:58] lordcirth: YEP - that's the solution [18:58] jmcgnh: think of it like operating a hotel. You operate the hotel, manage the kichen, serve the food... but you only allow your guests to sit at the table and eat what you serve them [19:00] lordcirth: and TJ- wht I do not like about this is that: 1) I did bother to test and check, and you guys helpedme gain clarity. 2) many users will not think this through and the default is HORRIBLE. Unde *nix I shouldbe ableto give a user limited shellaccess and rely on the OS to LIMIT him [19:00] jpmh, by default, only root and users in the 'docker' group can manage the docker daemon. [19:01] So the default is correct. [19:01] TJ-: the hotel anaology does not work for me - if the hotel gives me access to a phone I do not expect full access to the PHONE system [19:01] lordcirth: and TJ - so does this sound a reasonable solution: [19:02] set up a new account on the server for the user. Set that account to start directy into his docker container and so be llimited. And of course that user would needto be part of the group "docker" [19:03] jpmh, no. They do not need any user on the host, and certainly not one in the privileged "docker" group [19:03] lordcirth: OK, than how do I allow them access to the comtainer? [19:03] jpmh, ssh, usually [19:04] lordcirth: that is what I was suggesting. Set him up with ssh access to an account that IMMEDIATELY syatys then container instead of bash [19:04] jpmh, no, they ssh into *the container*. [19:05] lordcirth: so you wnat the container already running? Right? [19:06] jpmh, yes, just have the container configured to start on host boot. [19:07] lordcirth: I'm not thinking this well. Given that the container assumes that he has shell access and that it was started as an interactive terminal, how do I set that to be ssh accessible to him [19:07] it is expecting tty not an ssh connection [19:07] Ah, I see. [19:08] A docker container that's only supposed to be run locally? That's... whyyyy. [19:08] lordcirth: doyou seeanything wrong with my Kludge of an account that uses a startup of the container rather than bash? [19:09] lordcirth: correct - itis HORRIBLE [19:09] jpmh, I guess it's ok, if you change their shell? [19:09] Or, actually, you could use sudo. [19:10] You could give them access to use sudo for the *one* command "docker run " [19:10] lordcirth: the only reason I am even CONSIDERING this is thta the client has 200 coffee shops that are using my POS system and he wants to add this feature - and 200+ is a significant proprtion of my 1200_ installations [19:10] lordcirth: what is the advantage to the sudo compared to just a login-shell that is the docker container? [19:11] Alternatively, give up and give them a VM [19:11] A VM with a real OS with ssh. [19:11] jpmh: look into lxd maybe? [19:11] the provider of the ontainer is assuming that the users will be using docker on their own machines, not a shared server I suspect [19:11] You can't launch a docker container in lxd without the LXD container being priv, I think [19:11] lordcirth: I don't understand your last comment [19:12] jpmh: your docker questions should really be directed at #docker btw [19:12] leftyfb: what are oyu suggesting with lxd [19:12] jpmh: lxd as opposed to docker. If it's an option [19:12] jpmh, The easy solution is to create an Ubuntu virtual machine (with libvirt) and give them ssh access to that. Then you don't have to worry about permissions. [19:13] Then they can be in the docker group and start their wierd local docker container in their own sandbox. [19:13] leftyfb: but will lxdrun docker containers - remember I am NOT the creator of the container? [19:14] No, LXD is not a solution for a vendor-provided docker container [19:14] lordcirth: what does that hive me that just setting their shell to the coeker container does not give me - TW, I am testing that idea as we speak and it seems clean - fast etc. And when he exits the container he is disconneced [19:16] jpmh, Less ways for a mistake to happen. I don't know the security properties of hijacking $SHELL and trusting that to be secure. [19:18] lordcirth: my understanding ofthe OS is that an ssh login starts the specified shell and when that exits the user is disconnected. But that s a goodquestion - is there a way past that [19:20] jpmh, try ssh -t "bash --noprofile" [19:22] lordcirth: I'm missing something there [19:22] jpmh, supposedly that bypasses a modified shell [19:23] try it as your restricted user [19:24] lordcirth: I'm trying it - I can do the -t, but I do not see the -t taking a parameter YET [19:25] It's the command, not a parameter to -t, I believe [19:26] lordcirth: I trie: ssh -p 2323 test@testmachine.com - all works as exected I get my container [19:26] then I tried ssh -p 2323 -t .... - again- all as expected [19:26] what I do notsee is how topass "what to do" to the ssh daemon on the serrver [19:27] in fact, if there wa a way to do that, wouldn't that be a horriblehole tat a user with a restricted shell ocpuld just use a NON-restcited shell by specifying what to do [19:28] lordcirth: what are you suggestingmy ssh command should be to do that bypass [19:29] And "ssh -p 2323 test@testmachine.com -t "bash --noprofile" does what? [19:30] if you are just suggesting that I have the command - then no - this is NOT a bypass since the command is executed by the shell that has been created per the etc/passwd file - and it is my container, and it does not know what to do with the command [19:30] lordcirth: it just brings uo the cotainer - sI would hope [19:31] Ok. [19:31] I think/believe that the command is apssed to the login shell, which in my case is the container [19:32] if you think about it any other methd would mean that people could get past the use of rbash as a loginshell [19:58] leftyfb: lordcirth TJ - thanks for the help and patience - I'm going to confirm in the docker groupl ut I think we have a solution [20:19] shush: more a workaround but: open a new tmux-window and have `less logfile` or `tail logfile -n99999|less` ready to use? === ghostcube_ is now known as ghostcube [20:35] I don't use gnome as desktop manager but just openbox. The problem is that every ubuntu related software (store and upgrade) doesn't work while am I using openbox. any help for this? the softwares load but when there are some administrative task to execute (like instlaling/upgrading software) it do nothing. [20:36] dob1: you'll probably have to be more specific [20:36] dob1: I run apt upgrade and apt install things all the time in i3 and never noticed any problems [20:38] sarnold, apt and apt dist-upgrade are not a problem. it's for example the store the problem. when I click install on a software nothing happen. imho it doesn't prompt for password authentication needed for instlalation [20:38] it miss that dialog, I don't know why [20:39] and some software are on snap packages so the only way to install them is from the store [20:40] dob1: sudo snap install [20:40] dob1: there is no package that can be installed through the "store" that you can't install using apt or snap [20:41] leftyfb, ok I can use this way [20:41] dob1: oh, so perhaps you don't have a policykit thing installed? I wonder if there's a favourite in the openbox community [20:42] sarnold, I have policykit-1 and policykit-desktop-privileges [20:42] dob1: 'apt-cache search policy kit agent' will show you some package names for one from kde, gnome, lxde, and ukuik [20:42] dob1: any agents? [20:42] sarnold, no [20:43] which one to install? [20:43] I don't know what ukuik is [20:44] dob1: well, it's mostly a typo, hehe, it's 'ukui' :) I also haven't got a clue what it is. [20:44] dob1: I'm still not great with this keyboard, hehe [20:44] sarnold, no problem :) [20:46] dob1: try running 'apt-get -s install lxpolkit ; apt-get -s install lxqt-policykit ; apt-get -s install mate-polkit ; apt-get install -s policykit-1-gnome ; apt-get -s install polkit-kde-agent-1' and compare the list of packages that will be installed; perhaps one will only require four or five packages, perhaps one will require a hundred [20:46] dob1: without having a clear reason to pick one or another, I'd pick the one with the fewest deps :) [20:47] sarnold, I give it a try thanks [21:06] Hi, i'm running 3955WX on an GA-WRX80-SU8-IPMI motherboard, ubuntu-server kernel 5.11. I would like to have more control over my fans because of noise issues. In the bios of this motherboard you can enable "automatic mode", or 3 modes with no knowledge of the setpoints. I do not like that.... Running sensors-detect gives me "Found `Nuvoton NCT6683D eSIO' (but not activated)". I tried modprobe [21:06] nct6683 force=1, didnt work. Also i enabled the kernel driver aspeed-pwm-tacho , but i have no idea how to interface with it. Looking for some idea's / help. [21:12] unloading: you didn't mention the ubuntu release [21:12] nuala: You're saying to use less? [21:13] What does -n99999 do? [21:14] I tried less, but I don't see the coloring and I think less will cut off text after a certain point [21:14] Is there a way to get scrolling in tmux? [21:15] shush: https://superuser.com/a/209608 # first result on google for "tmux scroll" [21:15] tomreyn: 21.04 [21:19] unloading: hmm, ok, i came across bug 1858369 but i guess you foudn this one already, since you say you already tried modprobe nct6683 force=1 [21:19] bug 1858369 in lm-sensors (Ubuntu) "nct6683 not working" [Undecided,Invalid] https://launchpad.net/bugs/1858369 [21:19] tomreyn: yep :) dmesg returns: nct6683: EC base I/O port unconfigured [21:21] unloading: maybe you need to scan more areas with sensors-detect then [21:22] or just update the bios? [21:22] https://github.com/torvalds/linux/blob/e4adffb8daf476a01e7b4a55f586dc8c26e81392/drivers/hwmon/nct6683.c#L1370 [21:23] tomreyn: i have the latest version. [21:23] about aspeed-pwm-tacho, you probably found https://www.kernel.org/doc/html/latest/hwmon/aspeed-pwm-tacho.html ? [21:23] tomreyn: yes [21:24] so you should see the pwmX FSO in /sys/module/aspeed_pwm_tacho/ [21:25] and you should be able to echo integer values to it [21:25] tomreyn: Ye thats also not the case [21:26] so /sys/module/aspeed_pwm_tacho/ does not exist, or pwm* doesn't exist there, or...? [21:27] tomreyn: the dir exists. But pwm* doesn't [21:28] tomreyn: https://paste.ubuntu.com/p/jsFgZt9SyW/ [21:32] unloading: there's a 5.12 pre change to this module: https://github.com/torvalds/linux/commit/da75b2245281ec28b74117f6da219405464928be [21:33] i'm not sure it's relevant, though [21:34] tomreyn: is there a way to use this, and not upgrading to kernel 5.12 ? [21:35] tomreyn: Because i can't upgrade to 5.12 because of openzfs support. [21:35] you could rebuild the module with the patch applied to it. [21:36] but i'm not even sure that you have pwm control done by the AST 2500 on your system. are you? [21:37] tomreyn: Atm its not controlled by ast2500. But i thought it could be controlled by the ast2500. [21:38] if that's switchable it's most certainly switchable in bios [21:40] tomreyn: Well in bios there is only the option to switch fancontrol to automatic. Nothing more is given, just automatic mode. Or manual, than you can set 3 setpoints for low,medium,high fan rpm. [21:41] and there are no fan control options in the bmc, i assume? [21:41] tomreyn: Yes [21:42] then i wouldn't expect the fans tto be controlled by the ast2500 on this system [21:42] maybe the folks in ##hardware would know better, though [21:42] tomreyn: k maybe i can ask there [21:43] tomreyn: thanks for helping me [21:43] i'd also check lm-sensors for updates after the version you have now [21:44] i.e. check git commits, maybe there's something about the nct6683 that was only added recently [21:45] or just get the latest sensors-detect first of all [21:45] tomreyn: k [21:46] Depends: grub2-common (>= 2.02~beta2-36ubuntu3.31) but 2.04-1ubuntu26.11 is to be installed <------ how do I resolve that properly? [21:46] hey I'm expanding an LVM on an ubuntu 18.04 server and for some reason it was created on a logical partition, on an extended partition. never seen this setup before. https://bpa.st/XHVA here's how it looks. the start sector is slightly different on the extended partition but the logical one with the LVM signature is the same. so I guess that's fine right? [21:47] fdisk did find the LVM signature and kept it. [21:49] jjbuggle: which ubuntu release is this? you seem to be mixing packages from different releases [21:50] tomreyn: I'm on xubuntu 20.04, an upgrade from 18.04. Clean install of 18.04, with 10+ year old /home. That's it [21:50] jjbuggle: how did you upgrade? [21:51] tomreyn: hmmm, I don't remember. But I usually follow the release notes instructions. Probably used the graphical upgrade tool. I think I did do that [21:52] I think the only funny thing I did, was flip a setting, whatever, that made it do the upgrade when the release came out, rather than waiting for the point release which is when LTS usually upgrades [21:52] jjbuggle: if running this seems safe to you, please do: sudo /bin/true && cat &>/tmp/aptlog < <(sudo grep -hEv '^([ ]*#.*)?$' /etc/apt/sources.list{,.d/*.list} 2>&1; sudo apt-get -y update 2>&1; apt-cache policy 2>&1; sudo apt-get -syV full-upgrade 2>&1;); nc termbin.com 9999 jjbuggle: so you did an unsupported upgrade, i see. [21:54] I mean, unsupported, but, still following the official release notes, so.... [21:55] if the above commands seem scary, try running those that seem safe one by one, and report both the full command you ran, and it's full output, incl. watrnings / errors, on a pastebin [21:56] https://termbin.com/lxc8 [21:56] it did seem scary, but I looked through it. [21:57] stemid: your paste says "Before delete/create" and "After", but you're not telling what you changed exactly. [21:58] jjbuggle: what does this report? apt list --installed | grep ',local\]$' [21:58] (on a pastebin) [21:58] damn, I have to run actually. my current work around was to just uncheck the grub stuff [22:00] tomreyn: nevermind, it worked. and also there were fs errors so had to run fsck -yf which is probably why the fs was remounted as ro in the first place. solved now. [22:00] tomreyn: fwiw: https://termbin.com/q3gf [22:01] ok, I really have to go. Thanks for your help! [22:02] you're welcome [22:08] stemid: the partitioning tool you used there seems to have moved the start of the extended area to the front, which could be fine, since it does not overlap with the regular / primary partition area. it also seems to have extended the extended area to towards the end. it also increased the extended partion which contains your LVM PV, but did not move this partition within the extended area, so that you now have a bit of slack space at the [22:08] beginning of the xtended area. [22:08] (but so little it probably won't do harm) [22:09] stemid: whether or not the LVM PV was also grown can't be told based on the output you provided so far. [22:09] ("sudo pvs" could tell) [22:24] well it did grow. it's solvd now. [22:24] I just wasn't used to the setup of having a logical partition in an extended one. and the start sector changing made me concerned. [22:24] and the paste was pretty clear, it goes from one size to another. [22:42] in debian, you install zram-tools but in ubuntu you install zram-config - debian is under /etc/default/zram-tools but I can't find it under ubuntu? [22:43] brb, gonna google. [22:43] Deano59: they're both in universe, why prefer one over the other? [22:45] brb [22:47] thanks sarnold, forgot about universe. :) [22:48] sarnold: another happy customer [22:48] :) [22:50] :D [22:50] o/ === ghostcube_ is now known as ghostcube [23:09] shush: "and I think less will cut off text after a certain point" i dont think i have experienced this. do you mean horizontally? have you tried cursor left and right keys? [23:11] tbh: i think tmux cuts of scrollback (or terminal emulator, can't tell) point is: given enough noise in between i cant scroll further back up. less is more and trusty tool to examine even bigger files... since... way before i head about it ^^; === tripelb is now known as lollypop === lollypop is now known as lollymom === lollymom is now known as tripleb === tripleb is now known as tripelb