/srv/irclogs.ubuntu.com/2024/04/04/#ubuntu.txt

JosephurDoes ufw allow for CIDR, I want to allow only certain IPs access to a port00:33
JosephurLooks like it does.. but I want certain URLs also, may have to brush up on htaccess :D00:34
sarnoldufw won't do urls00:46
=== JoeBk_ is now known as JoeBk
JoeBkI broke something and need help.01:41
JoeBkI did software update and now Ubuntu Software won't work01:42
sarnoldpastebin the command and output?01:46
Zedis there a reason apt does not install vim 9.1?03:22
rboxapt installs whatever pacakges are in the repo03:23
Zedummmm03:25
ZedIs there a reason the latest version of vim is not in the repo...03:25
Zedits pretty old now03:25
xanguaUbuntu is not a rolling release distro, that would be one reason03:26
rbox9.1 waas JUST released03:26
Zedin January03:27
rboxwell if yo uwant a package thats not in the repos, you can compile it yoruself03:27
ZedI know...03:27
rboxit looks liek 9.1 is supposed to be in 24.04 though03:28
Zedwas wondering because it is perhaps the most common bit of software...03:28
rbox"most common"03:29
rboxrofl03:29
Bashing-om!latest | Zed03:29
ubottuZed: Packages in Ubuntu may not be the latest. Ubuntu aims for stability, so "latest" may not be a good idea. Post-release updates are only considered if they are fixes for security vulnerabilities, high impact bug fixes, or unintrusive bug fixes with substantial benefit. See also !backports, !sru, and !ppa.03:29
rboxits not any more special than any other package03:29
Zedthanks Bashing-om  -03:30
Bashing-omZed: :)03:30
ZedI suppose it was a silly question... and I guess I deserved that..03:31
=== realivanjx8 is now known as realivanjx
=== Guest1 is now known as Guest322
=== pushkarnk1 is now known as pushkarnk
=== Guest95 is now known as yaman
=== yaman is now known as nahman
=== Xard1 is now known as Xard
=== JanC_ is now known as JanC
ice9on 23.10 with nvidia driver 545; the nvidia-settings profiles has "intel power saving mode" disabled; only can choose between performance and on-demand modes; how can I enable the power saving  one?06:58
lotuspsychjeice9: nvidia-settings06:59
lotuspsychjeyou can switch between powersaving vs high performance there07:00
ice9lotuspsychje, ok so how can I enable thw power saving mode at all?07:03
lotuspsychjeice9: sudo lshw -C video, driver loaded correctly?07:04
ice9lotuspsychje, https://pastebin.mozilla.org/MVEQyL9g07:04
lotuspsychjelooks good there ice907:05
lotuspsychjei wonder if its a 545 bug07:06
lotuspsychjetry switching to your reccomended driver ice9 ?07:06
=== Guest17 is now known as nahman
=== alucardromero4 is now known as alucardromero
=== julian is now known as Guest8720
=== tom is now known as Guest7569
aliali10:12
=== TomTom_ is now known as TomTom
=== kaj is now known as BluesKaj
=== pushkarnk1 is now known as pushkarnk
tuxinatorothers also having big trouble with flatpaks and snaps since some days/since some updates of Kubuntu?12:14
tuxinator using 23.1012:14
tuxinatoralso why the hell is 4.0.0~alpha2-0ubuntu5 in Ubuntu 23.10 Mantic Stable? It seems to be an Alpha Versoin12:26
tuxinatorVersion12:26
ogra_tuxinator, alpha of what exactly ?12:35
ogra_just dumping a version number in here doesnt really tell us anything12:36
tuxinatorogra_: thx for the remark, wanted to copy more :D12:38
tuxinatorit is apparmor 4.0.0~alpha2-0ubuntu512:38
ogra_well, its just a version number after all ... noble (24.04) will have beta3 ...12:41
ogra_https://launchpad.net/ubuntu/+source/apparmor12:41
ogra_especially in apparmor that doesnt tell anything about the stability ... more likely refers to upstreaming into the kernel or so12:42
ogra_(and wont have any impact on snaps anyway, snapd ships its own apparmor userspace inside the snapd snap nowadays)12:43
tuxinatorok thx12:44
tuxinatoranyway will now just reinstall my machine with conserving /home12:44
tuxinatorand see if everything works again then12:44
=== pushkarnk1 is now known as pushkarnk
=== Bencraft424037 is now known as Bencraft42403
maelcumhello! i'm getting a lot of "inconsistent package combinations"  from the noble repository in the last couple of days. e.g. plasma-desktop depending on an exact version of plasma-desktop-data that isn't in the repository. i don't recall such things in the past.15:13
=== sotaoverride is now known as Guest9375
maelcumis that normal during big changes leading up to the release or is it really particularly broken right now?15:14
maelcumAnother one is network-manager and libnm0 package versions being incompatible, i.e. it's not limited to kde packages.15:15
tsimpsonthe current development release is having most of its packages deleted and rebuilt, due to xz15:17
dob1hi, firefox on ubuntu xorg doesn't work well after the last update, try to write a gmail message, keep a key pressed and it's very very slow15:20
maelcumtsimpson: ah cool, thanks! good to know. i had a suspicion but didn't find information about it and didn't know that it has such a big "blast radius".15:23
tsimpsonit's not that all the packages are truly effected, but package dependencies are complex and better safe than sorry in this case15:27
oneciao15:35
bn_workis `sudo apt install openjdk-11-jre-headless adduser python3>=3.6 procps` correct apt syntax?  I executed but it seems to just print `WARNING: apt does not have a stable CLI interface. Use with caution in scripts.` and then not do anything for a long time (ie: no CPU usage) and then after 10 mins exit with RC=0?15:39
leftyfbbn_work: that warning message is exactly that15:40
leftyfbleave out the >15:40
leftyfbthough I don't think that's right either15:41
leftyfbbn_work: why do you think you need python 3.6?15:41
leftyfbbn_work: you should really look into ansible if you're going to be automating this much15:42
leftyfband adduser is already part of the default install of ubuntu server and desktop15:43
leftyfbas is procps15:43
=== gschanuel5 is now known as gschanuel
bn_workleftyfb: I need python >= 3.615:45
leftyfbwhich includes python python3.10 which is installed by default15:46
bn_workleftyfb:  you're making too many assumptions, I'm not "automating" it, I just ran it from the CLI, lol15:46
bn_workI'm just puzzled by the lack of other output too, but it returned RC=0, so presumably it installed it?  ðŸ¤·15:47
leftyfbbn_work: bn_work the only package you've specified that isn't installed by default is openjdk-11-jre-headless15:47
bn_workok, but is this normal output for apt?  typically I always see many lines of activity15:50
leftyfbcan you pastebin "this"?15:50
bn_workRe. python:  wasn't there a way to specify to apt a >= version req?  or does it only support foo=version?15:51
tsimpsonthe ">" in your original command redirected all the output to the file "3.6"15:51
tsimpsonthat's why you didn't see it asking for your password15:51
leftyfbbn_work: > is not valid when specifying versions of packages15:51
leftyfbbn_work: but again, you do not need to install pythin >= 3.6 since 3.10 is installed by default15:52
bn_workleftyfb: there's nothing to see, I ran `sudo apt install openjdk-11-jre-headless adduser python3>=3.6 procps` and it literally only printed `WARNING: apt does not have a stable CLI interface. Use with caution in scripts.` then returned to prompt after 10 mins (with RC=0, when I checked $? in bash)15:52
bn_worktsimpson: ah, you're probably right15:52
leftyfbyou said "RC=0"  that is not a valid output of any commands I know which is why I asked to see the actual messages15:53
bn_worktsimpson: thanks for pointing that out, yeah, it outputted it fine, and just logged it to a file named `=3.6` (that was my fault)15:56
leftyfbbn_work: the only command you need to run is sudo apt install openjdk-11-jre-headless15:56
leftyfbthe rest of your command is pointless and won't actually do anything15:56
ogra_there is indeed nothing to see because you redirected stdout to =3.6 ... look for a =3.6 file in your current dir, that should have the output16:07
onecia16:21
oneciao16:21
onehelp!16:22
leftyfbone: hello. What is your Ubuntu support question?16:22
onewi-fi16:22
ogra_thats a technology, not a question 🙂16:23
leftyfbthey left16:23
plastikmanmaybe their wifi died16:24
eneschi ubuntuers16:29
=== enesc is now known as enestekin2
=== ben_ is now known as ben_r
=== sonOfRa_ is now known as sonOfRa
=== Quark is now known as Fastidious
fwehtsorry can i install ubuntu (server) without changing my efi?17:41
fwehti mean without adding boot entries17:42
bpromptfweht: without changing the EFI partition? sure17:42
xypronfweht: The installer will add boot entries. To run the image just go to the UEFI boot manager.17:43
fwehtbprompt: nono i want to install it to an external drive it can wipe the whole drive i just want to make sure i can boot the internal drive like before17:43
xypronfweht: You can have multiple disk, where each disk has an ESP.17:44
fwehtxypron: ok but cant i just tell the installer dont touch my efi?17:44
bpromptfweht: hmmm do a manual install, as opposed to an automatic, and from there specify where will the boot be, and the partition for root17:44
fwehtmaybe i misunderstand something but i could manually boot from an external drive without the boot entry right?  just like i can boot from the live usb without a corresponding boot entry?17:46
bpromptfweht: if the HD is bootable, yes, UEFI wise, I'd think it'd show up in the menu as an option for booting, you may have to first plug it in, then boot and go into UEFI/BIOS and pick the device from the boot sequence17:49
fwehtexactly thats what i want for now17:50
bpromptfweht: that's how I boot in UEFI with my LiveUSB, boot, go to UEFI/BIOS boot sequence, it shows up, pick it, save and reboot17:57
=== V1A52 is now known as V1A
fwehti think ill just delete the boot entry afterwards...  then everything should be as before (uefi wise), no?18:04
=== Guest91 is now known as nahman
=== sem is now known as Guest8849
Haris_hello all18:44
Haris_how to enable mod rewrite for nginx on 22.x LTS? dumb Q. still asking18:44
Haris_does it come as a separate pkg? its not installed by default I think18:44
leftyfbHaris_: https://tech.sadaalomma.com/ubuntu/how-to-enable-rewrite-module-in-nginx-ubuntu/18:46
leftyfbHaris_: first result on google when searching for "enable mod rewrite on nginx"18:46
bpromptHaris_: ahemm, there's an #ngix channel btw18:51
bpromptwell, #nginx for that matter18:51
Haris_thanks!18:51
leftyfbor you could just read the link I provided which tells you how to rewrite URL's18:52
Haris_yes. already done =)19:01
Haris_nginx comes pre-loaded with its mod rewrite19:01
leftyfbit's not a module19:01
Haris_thye just needed a different try_files line in location / {} section for rewritten URLs to work19:01
Haris_all done =)19:01
Haris_yep. its not a mod that gets added separately. its already pre-loaded in core19:02
Haris_in or as19:02
Haris_thank you all19:03
ElliriaDo we have reason for concern about the backdoor that was just found in xz? The xz-utils package is installed.19:05
leftyfbElliria: did you install the daily image of the unreleased ubuntu 24.04 or enable proposed on 24.04 and update packages from it last week?19:06
ElliriaI'm using Kubuntu 22.04 LTS and it's up-to-date.19:06
leftyfbthen no19:06
ElliriaSo all is well?19:07
leftyfbyes19:07
ElliriaThank you.19:08
deadromGreetings. 20.04 in WSL2, $ sudo apt update or # apt update  give me: W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: http://archive.ubuntu.com/ubuntu focal InRelease: Couldn't create temporary file /tmp/apt.conf.HqmdO4 for passing config to apt-key19:28
deadrom /tmp has 755 perms, belongs to root:root. so what's wrong there?19:29
CosmicDJdeadrom: /tmp should be 177719:30
geirhadid you run out of space, perhaps?19:31
deadromgeirha, thought crossed me, too, but nah19:33
geirhaoh yeah, probably what CosmicDJ pointed out. It probably tries to create that tmp file as a non-root user19:33
deadromCosmicDJ, the 1 worries me. It's like proto-matter, it quickly solves certain problems but ultimately becomes unstable19:34
deadromthe interblogs pointed out 777 might do, lemme try...19:35
geirhano, never 77719:36
deadromyup, 0777 worked just as well. It shouldn't have, though, I'd say whan I sudo -i or sudo bash the 7 in 755 should grant me write access for my root-y tasks19:36
geirha177719:36
deadromgeirha, why?19:37
CosmicDJdeadrom: https://en.wikipedia.org/wiki/Sticky_bit19:38
geirhaIt's called the sticky bit, and it's very important that you include it on /tmp   https://mywiki.wooledge.org/Permissions#Sticky.2C_setuid_and_setgid_bits19:38
deadromeh, come to think: sudo bash might need more params to actually spawn a root shell, not just run bash in a root context19:38
deadrom"...sticky bit on /tmp. This is important, because we don't want users to be able to delete other people's temporary files and screw up their programs that need to use them." Makes sense.19:41
=== pushkarnk1 is now known as pushkarnk
plastikmanLOL people need to not use /tmp for anything that needs to be kept around20:05
luksiis it good idea to use new ubuntu version on laptop with 4 GB of RAM20:42
akiki made this bug report last year (i provided the solution) but it hasn't been fixed https://bugs.launchpad.net/ubuntu/+source/glmark2/+bug/202568420:43
-ubottu:#ubuntu- Launchpad bug 2025684 in glmark2 (Ubuntu) "glmark2 packages are missing dependencies on GL libraries" [Low, Triaged]20:43
leftyfbluksi: try it and decide if it works for you. Maybe try lubuntu20:43
luksigood idea20:43
=== jfsimon1981_c is now known as jfsimon
=== Guest91 is now known as nahman
=== paulo is now known as Guest4406
=== paulo is now known as Guest1847
plastikmanakik: I would always use the latest version.....but 4 GB is not much memory21:29
akikplastikman: i didn't understand21:30
plastikmanakik: sorry wrong person21:30
plastikmanakik: i read your post as from luksi.  I have no idea on your post21:32
akikplastikman: it's just about missing dependencies for glmark2 and glmark2-wayland21:33
akikonce you install both libgl1 and libegl1 in wsl 2, both of them start working21:41
JosephurI actually rather like WSL2 :/21:41
akikwhy the :/ ?21:42
JosephurSome people tend to frown upon it, LOL21:42
JosephurStill has some networking bandwidth issues for me, got better from WSL 1 though21:42
akikyea it's amazing21:43
akikif you only have windows21:43
JosephurOr its a secondary machine you still need to compile and test simple apps on :)21:43
JosephurI'm bummed they are removing Android app support... I use it for a few apps that are only available to mobile/tablets.  Now I'll have to make my own VM for that lol21:43
JosephurBut anyhow enough Windows talk ;)21:44
akikit's 100% ubuntu user land21:44
akikand even the linux kernel with wsl 221:46
=== ancientz3 is now known as ancientz
papaguten morgen22:37
webchat18is this a correct outlet to ask for a feature for Ubuntu? (I don't think it's a bug). If not, a suggested outlet would be most appreciated. Cheers22:51
jeremy31webchat18: Use ubuntu bug reports for that and label it as a feature request22:57
`rybanGreetings!22:58
calamariIs there a way to force snap to uninstall docker? It keeps giving excuses like "INFO Waiting for "snap.docker.dockerd.service" to stop.", but I don't care whether it's stopped or not, I just want it to uninstall.23:12
cbreakcalamari: can't you just stop it?23:13
bn_workis there a way to find out where an environment variable was getting set from?  ex:  apparently $JAVA_HOME is defined but it's not coming from ~/.profile, nor ~/.bashrc, nor /etc/profile, nor /etc/bash.bashrc.  Currently running `sudo grep -IRwins 'export JAVA_HOME' / | egrep -v ".log"` but it's been running now for ~24 mins and not finding anything (on a 194/237GB drive)23:13
bn_works/defined/set when I echo $JAVA_HOME/23:13
calamaricbreak: I think I might have finally managed to do it. Now the next excuse is "Save data of snap "docker" in automatic snapshot set #13"23:14
calamarisolved it... have to add --purge .. because snapcrap, I guess.. sudo snap remove docker --purge23:16
cbreakyes, --purge, because of data persistence23:17
bn_workhmm, I did find `/var/lib/dpkg/info/ca-certificates-java.postinst:37:                export JAVA_HOME=/usr/lib/jvm/$jvm` but wouldn't that be a one-time thing?23:17
paperinHello. Is it possible to run wayland with nvidia proprietary drivers?23:20
JanCthat script only runs on install indeed23:20
paperini've found this but it's for arch https://forum.manjaro.org/t/howto-use-wayland-with-proprietary-nvidia-drivers/3613023:22
cbreakpaperin: it is, it's just not working that great23:23
JanCmight also depend on the wayland implementation...23:24
cbreakwith ubuntu 23.10, you can select between X11 and Wayland based desktop environments on your login screen, if your system supports multiple23:24
cbreakI think that was also possible with 22.0423:24
paperinim asking this because i noticed lags in gnome-terminal when typing. i thought was my liquorix kernel but it's happening in stock kernel too. i thought running wayland may fix23:25
paperin(running already nvidia beta drivers)23:25
cbreakI have worse performance with wayland, and some other bugs23:26
JanCbn_work: is it important to know where that gets defined?  you can easily override it if you want to...23:26
cbreakhoping 24.04 fixes that23:26
paperin:(23:26
bn_workJanC: I can right now, but worried it will get set again upon reboot23:26
bn_workfrom ... somewhere23:26
cbreakI'm using KDE Plasma, your DE might work better with wayland23:27
paperinchanging DE may work? im using gnome23:27
bn_workJanC: it's clearly wrong and pointing to an old version, so want to resolve it at the source23:27
cbreakpaperin: you can install multiple of those if you have space23:28
JanCbn_work: is that old version still installed or not?23:28
bn_workyes23:28
paperinwhat's good beside gnome and kde?23:28
cbreakapparently some people like tiling window managers like i3 or hyperland. I'm not a fan of those.23:29
cbreakbut I don't know if ubuntu already has any of the wayland ones23:29
paperini was checking hyprland but it's for wayland23:30
paperini used wayland on the login page in gdm, but it's using cpu's integraded gpu, not the nvidia one23:31
cbreakhmm, you have a multi-gpu setup23:32
JanCif you have multiple versions installed from the repositories, you can almost certainly switch what is the default one using 'update-alternatives'...23:32
JanCmaybe that will also set the right $JAVA_HOME then...23:32
paperincbreak, yes and no, i have 13700k, it's the intel gpu embedded in the cpu23:33
cbreakyou should have display ports on your GPU, and on the mainboard. The GPU ones should use the GPU, the mainboard ones should use the built-in23:33
cbreakif you have a laptop, then I don't know how the switching works23:34
paperinhold on23:34
paperinbrb23:35
JanCbn_work: did you check in /etc/profile.d/ if there is a Java-related fragment there?23:37
bn_workJanC: oh!  there is an /etc/profile.d/jdk.sh, so I guess rename to jdk.sh.disabled or so?23:38
JanCit's possible update-alternatives links the right one there, so still useful to look into that23:39
bn_workJanC: (inside it it is setting 4 Java-related env vars + PATH)23:39
sarnoldpaperin: I'm normally not a fan of webforums .. but this one https://ubuntuforums.org/showthread.php?t=2490293 says to install libnvidia-egl-wayland1 and see what happens23:39
paperinsee? https://imgur.com/a/vlzYgyb if i use xorg, it uses the nvidia card, with wayland it uses intel one23:39
JanCbn_work: if you rename it it will almost certainly just come back on the next package upgrade...23:41
bn_workJanC: how to see what put that there?  I'm guessing the java8 package?23:41
paperinsarnold: ty! let's try23:42
JanCif this is a symlink (which I assume it is), you should almost certainly use update-alternatives to change the default to the one you want...23:42
paperinsarnold: ty settings now say nvidia23:46
JanCbn_work: also, "dpkg -S /etc/profile.d/jdk.sh" should tell you which package placed it there, but that will not work if it is managed by the "alternatives" system23:47
paperinhttps://imgur.com/a/GvVq5uZ should be running now, yes?23:50
bn_workJanC: looks like it's from `oracle-java8-set-default`23:50
JanCsounds like that is some third party package?23:51
bn_workJanC: so just remove that package?  or replace it with the equivalent for v11?23:51
JanCif you don't need it, just remove it, I guess23:51
bn_workJanC: hmm, not finding an equivalent for 1123:52
JanC?23:53
JanCwhy would you need that?23:53
bn_worknot sure23:53
JanCare you using openjdk 11?23:53
bn_workyes, but good to have 8 as a fallback on the system23:54
bn_works/have/still have/23:54
JanCopenjdk-8 is available in the Ubuntu repositories too23:55
bn_workseems it sets things like the following https://www.irccloud.com/pastebin/eDYoSAeP/%2Fetc%2Fprofile.d%2Fjdk.sh23:55
bn_workbut maybe it's unneeded since java gets symlinked from /usr/bin or so23:55
sarnoldpaperin: awesome! thanks for reporting back :D23:56
JanCbn_work: you had Oracle Java 8 installed, it seems; for most things OpenJDK would be fine too I think23:58
bn_worklong ago23:59
bn_workswitched to openjdk23:59

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