[01:00] hello [01:03] I think my Linux computer has crashed :( [01:04] The screen is frozen [01:04] What do I do [01:04] hi Peppi [01:04] I was apt getting software [01:04] sem: ssh in from another computer and see what's in the logs [01:04] Oh good idea I'll try === chris14_ is now known as chris14 [01:07] hmmm I had jdk 17 and I thought I uninstalled it and installed 21 [01:08] yet when I go java --version I see 17 [01:08] so the path [01:08] I got to /etc/profile.d and look ad jdk.csh and jdk.sh and it's all pointing to 17??? [01:08] what's going on? [01:09] sounds like you didn't uninstall it [01:09] how would I unistall it? [01:10] on what ubuntu version? [01:11] It looks like it is not connected to the router anymore sarnold [01:11] Peppi: how did you instlal it [01:12] I could hold down the power button. Or is there a series of sysreq keystrokes to try ? [01:12] oerheks, https://paste.centos.org/view/a2a1ad87 [01:13] sem: oh :( bummer, that's a very unhappycomputer :( maybe sysrq s, r, b -- but iirc the defaults don't let those work any more [01:13] oh mint. they are on OFTC ? [01:13] oftc? [01:13] I thought they were on some small noname server. [01:13] !mint [01:13] The Ubuntu channels can only provide support for Ubuntu and its official !flavors. Derivatives and other distributions use different software repositories and other software. Please use their dedicated support venues, such as: Linux Mint: #linuxmint-help on irc.spotchat.org, Pop!_OS: https://support.system76.com/ , Kali Linux: #kali-linux on irc.oftc.net, LXLE: https://lxle.net/support-options/ [01:13] spotchat, that's it. [01:13] k [01:14] Yeah it is very unhappy [01:14] oh dang, I forgot about that, I thought they weren't online at all [01:14] but to help, did you select java right? https://help.ubuntu.com/community/Java#Choosing_the_default_Java_to_use [01:14] rbox sudo apt install openjdk-21-jdk [01:15] i thought we were tlaking about 17 [01:16] rbox, didn't you ask how I installed it? I assume how I installed 21. [01:16] you're complainign about 17 [01:16] so... why would i ask about 21 [01:17] rbox, correct [01:17] I installed 17 a while back and don't remember how I installed it [01:17] time to reinstall ubuntu [01:18] 🤪 [01:18] sarnold: yeah it didn't work :( I Guess I'll have to hold the power button [01:18] Maybe I should do a memtest86(+) [01:18] sem: often a good idea, yeah [01:20] When in doubt, memtest86+ it out [01:21] tomreyn, i upgraded from (i think?) 23.10 to 24.04 when the update notice showed up. waited for it to show up rather than doing it immediately so that kinks would be worked out [01:22] while this is a kink, it is not a huge deal because i use keyboard navigation mostly [01:24] i have switched between the snap and deb and building from source my emacs. right now i'm using the deb [01:25] yep, still have the issue. i clicked on the emacs window, and got this terminal instead [01:27] might have something to do with multiple monitors [01:27] i tried changing to fractional scaling, that went south [01:31] Will Ubuntu leave GNOME ? [01:31] like take the kids and move in with their mother? [01:31] CDE 4 EVER [01:32] cylater [01:32] sarnold: s/C/K/ [01:32] arraybolt3: lol [01:33] sorry, I couldn't resist :P [02:02] how often will this crontab run: * * * * * if [ $(($RANDOM%10)) -eq 0 ]; then /usr/bin/python /home/user/script.py [02:03] every minute [02:03] is the random - selecting once every hour [02:03] i mean randomly every hour? [02:03] for 10h [02:03] what the comamnd is is irrelvent, the crontab is going to run every minute [02:04] sure you can find a cron calculator [02:04] so this never ran for me.. [02:04] hwo do you know it dindt run? [02:04] do i need quotes around my command ? [02:04] wel lits expecting a command, thats not really a command [02:05] it's way easier to put your shell script in a file. crontab is horrible to debug. [02:05] just save it in a file and execute that. [02:05] so slap my python in bash? [02:05] in a bash script [02:05] or get your python script to do the non-determinism directly [02:07] let me try [02:08] and how can i change that to randomly send a message once within an hour [02:09] instead of a minute [02:09] cron doesnt do random [02:11] * * * * * if [ $(($RANDOM%10)) -eq 0 ]; then /usr/bin/python /home/user/script.sh; fi <-- but this will run every minute? [02:11] im confused [02:12] https://p.haxxors.com/hourprint.txt [02:12] run this every minute in your cron and it will print a message once per hour [02:13] like sarnold said. move the logic to your script [02:14] so in my bash script i am running my python.py [02:14] but can i randomly run that python.py maybe with the sleep command or something [02:16] if your python script handles everything you can just run that every minute like * * * * * /usr/bin/python3 /path/to/hourly_message.py [02:16] You could have it roll a random number out of 60 [02:16] And send the message on that minute [02:18] ravage: my python will just run every minute.. because therei s nothing "random" in my python script and i do not know how to code in python [02:18] sem but how can i roll a random number in my bash script to execute my python.py [02:19] I don't know how to speak Python, sorry :/ [02:19] This is pointless to support... saying I'm doing X so that will run randomly within an hour... then complaining it doesn't run. Is because you're creating a moving target... you are mever gaurenteed for the 60 times this runs within the hour that any random value generated is going to be evenly divisable by 10. [02:19] Simply choose a minute of the hour you want it to run every hour, and schedule it that way. [02:19] i want it to run once every hour.. at a random minute [02:20] theZoMBiE, The assignment cannot be accomplished [02:21] Maybe chatgpt can write some almost-correct sample code you could learn from [02:21] there are rooms here for both bash and python. choose the one you need help with do build your script [02:22] systemd timers can do seconds and got build in random delay [02:22] https://unix.stackexchange.com/a/688828 [02:22] oerheks: yeah! I was just thinking about that [02:22] This way it will be still spaced out nearly by an hour [02:22] But not all at once [02:22] theZoMBiE, What ravage just said... this is a programming problem, choose the language and find the correct channel to ask your question in. [02:22] i think i figured it out [02:23] so detection at exactly the minute is harder to do .. [02:23] oops [02:24] theZoMBiE: can you join me in #python? I'm curious to see it === toolz is now known as Daniel === travisghansen2 is now known as travisghansen [09:33] how do I encrypt an ubuntu server that has already been setup ? [09:34] Guest59: full disk encryption? or just certain mountpoints/directories? [09:37] im using zfsbootmenu I would like to encrypt the full ubuntu server on the bootmenu [09:38] for full disk what do you recommend ? [09:39] I've only ever encrpyted my /home, no idea about FDE [09:39] but it sounds like you have to reinstall to get that === ahmed is now known as Guest8096 [09:45] hello guys [09:47] how are you guys === gaelheart-away is now known as gaelheart [10:09] hi [10:31] hi [11:09] Hi all [11:29] hi === guiverc2 is now known as guiverc === esv_ is now known as esv === rud0lf_ is now known as rud0lf [12:42] hi === root is now known as Guest7089 [13:57] ho === ongolabo1 is now known as ongolaboy [14:26] fuck why isn't it possible to kill some processes phewww [14:26] annoying every time [14:27] ok got it [14:27] finally, had to kill them in the right order === pah_ is now known as pa === Polochon_street_ is now known as Polochon_street === wdb1 is now known as wdb [15:33] if I change the partition tables of a device (ssd), will I delete saved data? [15:34] I mean if changing partition tables equals deleting data [15:34] neoli: why do you need to "change partition tables"? [15:44] ارحبوو [15:45] neoli: The short answer is yes. The longer answer is that it's complicated. [15:47] وش وقعكم [15:48] سكارى [15:51] I mean if changing partition tables equals deleting dataarabic, bautiful [15:51] neoli: why do you need to "change partition tables"? [15:53] I'm thinking neoli has me on ignore [15:54] كيف حالوا [15:55] !sa | Abody [15:55] *حالكم [15:55] Abody: For the Saudi Arabia team : /join #ubuntu-sa : للانظمام الى قناة الفريق السعودي - For Arabic language support, please : /join #ubuntu-arabic : للحصول على الدعم باللغة العربية [16:38] I recently updated my home server from 22.04 LTS to 24.04 LTS. I've been having some weird networking issues ever since, like SSH only works inside the home network despite router's port forwarding previously working, transmission-daemon insisting its port is always closed even if port forward in the router or enable UPnP in transmission, and sabNZBd being unable to find a route to the usenet provider. Firewalls do not seem [16:38] to be enabled according to ufw. Is there anything in particular I should be checking? [16:41] I'm also seeing it take several seconds to make connections to update package lists with sudo apt update, but that does still seem to be working after a moment [16:43] The transmission and sabNZBd behavior seems to suggest an issue with firewalls, either at the server or the router, but the SSH connection was working before, so it seems odd that the router would just coincidentally at the same time run into issues that don't show any sign on the router [16:43] sounds like only your port forwarding is broken. maybe the IP changed? [16:44] Looks like that is not the case, still same IP listed when I run ifconfig [16:45] And I can see other devices on the network using UPnP to forward ports on the router, but transmission's port never triggers [16:48] https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/2055012 [16:48] -ubottu:#ubuntu- Launchpad bug 2054761 in systemd (Ubuntu Noble) "Dist upgrades from Jammy to Noble crash [Oh no! Something has gone wrong.]" [High, Fix Committed] [duplicate: 2055012] [16:48] see #9 [16:49] also appstore problems could be solved with that, #20 sudo snap refresh snap-store [16:49] how can i effect the brightness on all screens? it seems it only effects one of the screen the other one (using displaylink port) brightness doesn't change [16:51] cocomo, maybe your help too; https://ubuntuhandbook.org/index.php/2023/06/brightness-slider-external-monitor-ubuntu/ [16:51] !info ddcutil noble [16:51] ddcutil (1.4.1-1build2, noble): Control monitor settings - Standalone command line application. In component universe, is optional. Built by ddcutil. Size 355 kB / 1,029 kB [16:51] Hi. I got the release popup for 23.10 -> 24.04. It also updated nvidia drivers from 535 to 550 and now nvidia-smi doesn't work anymore. Is this known issue? [16:52] Failed to initialize NVML: Driver/library version mismatch [16:52] NVML library version: 550.67 [16:52] oerheks: thanks a lot [16:53] oerheks, #9 mentions installing systemd-resolved, but that seems to already be installed. #20 suggests a snap store refresh, but 'sudo snap refresh snap-store' fails and claims it's unable to contact snap store [16:54] AHemlocksLie, due to no dns, i guess [16:54] So maybe some sort of DNS issue is related... Might explain the delays to start updating package list... [16:54] omg, what is happening with the new 24.04 installer ? I formatted my computer and been trying to install it but it keeps getting stuck at disk selection, restarted many many times in vain... [16:55] But /etc/resolv.conf has like 8 nameserver entries, so I feel like it should be able to figure something out [16:55] limit them to 8888 and 8844 ? [16:55] I read some comments about people suggestion to skip this version or at least wait for the .1 fix... This really sucks for an LTS [16:55] pratsona: i would try "apt-get remove --purge '^nvidia-.*'" to remove all nvidia stuff from the system and then do a "sudo ubuntu-drivers install" to reinstall the driver [16:57] In the meantime I am without OS... Gosh, this was supposed to be flawless... I just launch the install and go get a coffee, once back I can copy my data back a resume my life... :'< [16:58] Enissay: anything substantial you can add to your story? any logs? you could also try the server ISO and install the ubuntu-package after the first boot [16:58] oerheks, adding those to /etc/resolv.conf and commenting out the others doesn't seem to be helping. Is there some other way I'm supposed to do this or a way to reload resolv.conf? I feel like I'm forgetting a step I've done before, but maybe not [17:04] ravage: ubuntu-drivers only reports 535 as available. I think the driver is disabled for now, just found this: https://bugs.launchpad.net/ubuntu/+source/nvidia-graphics-drivers-550/+bug/2061830 [17:04] -ubottu:#ubuntu- Launchpad bug 2061830 in nvidia-graphics-drivers-550-server (Ubuntu Noble) "Limit supported pci-id's to the new ones added by 550" [Undecided, Fix Released] [17:05] for the record it's RTX 3070 [17:07] i currently run the nvidia-driver-550 package from the noble repos [17:07] so it should be fine to just install that after purging any existing nvidia apackages [17:07] i run the 550 as well but nvidia-smi just doesn't run.. okay i retry it [17:09] ...I ended up on 23.10? Starting to wonder if I should just wipe and restart... [17:09] running the commands you gave it installed 535.. guess it's safer to keep them then [17:11] ravage: I've got a picture, where to share ? [17:12] ravage: and can confirm the 535 is working now after a reboot [17:12] pratsona: great. maybe use 535 then if you dont run in any problems that need a newer version [17:13] Enissay: any public image pastebin [17:16] ravage: https://gcdnb.pbrd.co/images/m4DUN9gVNh51.png [17:17] worth noting I had dual boot before with Win10, now I formatted the whole disk, there's nothing anymore, still I get this error [17:19] try to wipe the whole disk then from the live session. i usually use wipefs [17:20] example would be:" wipefs -a /dev/sda " but make sure to use the correct disk [17:20] ( with sudo or in a sudo session ) [17:21] maybe you need to install the wipefs package first [17:21] after wiping everything reboot and try again [17:22] another thing to check is if fastboot is enabled in your BIOS [17:23] if it is disable that too [17:24] noted [18:13] is there a specific vhannel for problems compiling programs? [18:13] -channel [18:16] !alis | babula [18:16] babula: Alis is an IRC service to help you find channels. For help on using it, see «/msg Alis help list» or ask in #libera - Example usage: «/msg Alis list http» [18:16] #programming i guess [18:17] #ubuntu-packaging #gcc [18:17] !alis build [18:18] arf... [18:18] /msg Alis something [18:18] and some channels require registration to join [18:19] !register [18:19] For information on registering your IRC nick, see https://libera.chat/guides/registration - For any further help, ask in #libera [18:20] yes, i already looked at the channel list /list on hexchat gui [18:37] i want to set a video as my wallpaper gnome. anybody ever do that? [18:39] brb [18:40] some tried, poorly https://www.linuxuprising.com/2023/04/hanabi-is-live-wallpaper-for-gnome.html === Crass is now known as Parsnipes [18:43] ravage: It didnt work, been roaming internet since... Desperately, until I thought of unplugging many drives I am not using anyway, then it passed through... [18:44] and you tried the server installer too? [18:44] I have noticed also using fdisk -l that many /dev/loopx (15 of them) were detected, I wonder how comes since the OS disk was completely wiped out >_> [18:44] the loop devices are from snapd [18:44] thats fine [18:44] Now it is fine, I can select disks and such, just one more question please [18:46] Since I was only making / and /home, I am hesitating about the share of each, last time I had 90GB for / and still ran out of space (got many apps/projects that are not easy to customize path for). [18:46] I was thinking about using LVM at install, but that doesnt give me any control, it just uses the whole drive... [18:47] what's the diffrent between selecting LVM at install and installing it later ? would / be on LVM in the first case ? [18:47] And why do you need a separate home? [18:48] ravage: Good question, just an old habit, normally makes it easier to upgrade, which I never did, I always format everything [18:48] I usually backup my whole system from time to time and my files in home with borg backup  [18:48] !backup [18:48] There are many ways to back your system up. Here's a few: https://help.ubuntu.com/community/BackupYourSystem , https://help.ubuntu.com/community/DuplicityBackupHowto , https://wiki.ubuntu.com/HomeUserBackup , https://help.ubuntu.com/community/MondoMindi - See also !sbackup, !borg, and !cloning [18:49] For the full backup I use clonezilla === Crass is now known as Parsnipes [18:50] Yes, I am using restic/rclone, then before format I also making a copy of important files... Clonezilla is new to me, will have a look [18:50] Then you should be able to restore your system pretty quick  [18:50] Even without a separate home partition  [18:51] One last point: boot partition, is it still needed even for new hardware ? I have read somewhere it is not needed for new devices... last time I sat it up at 512MB [18:51] Enissay: IIRC you need one when using LVM [18:51] You do not need it if grub can handle your filesystem [18:52] are you pointing to UEFI? [18:52] So if you use ext4 and no lvm you don't need boot [18:52] With UEFI you need a partition for that of course  [18:52] But the defaults of the installer should be fine [18:52] No need for lvm since I will not more have a separate /home [18:53] Just select whole disk and let it do its thing [18:53] Great, thanks, finally I will launch the darn installation [18:53] ubuntu uses 1 partition, including swapfile === Crass is now known as Parsnipes === Parsnipes is now known as Crass === Crass is now known as Parsnipes [19:01] argh, i lost the bash scrollback as it was limited to 10000 lines, can i get it back somehow?-) [19:01] the lines that went away [19:01] don't think so [19:01] imagine logrotating your bash_history [19:02] i guess there is just infinite scroll too === Crass is now known as Parsnipes [19:03] yes [19:03] !logs [19:03] Official channel logs can be found at https://irclogs.ubuntu.com/ . LoCo channels are now logged there too. Meetingology logs at https://ubottu.com/meetingology/logs/ [19:03] they will be pushed every our, be patient [19:04] I hope we don't log his terminal history there [19:04] i thought we were talking about the bash history, not the channel log lol [19:06] stenno: yes, i just configured it. i was just hoping that it would save the texts somewhere. [19:06] if it would, you wouldn't need to configure it :) [19:08] yes, this irc clients saves the text somewhere, even i don't command it! yay! [19:22] I've typed `sudo apt-add-repository ppa:longsleep/golang-backports` and it is kinda hanging there, without proceeding [19:35] nothing weird going on on the servers https://status.canonical.com/ [19:35] stop the action and try again? [19:41] I've tried several times. it errors with "TimeoutError: [Errno 110] Connection timed out". [19:46] weirdly it doesn't seem to work on any PPA i try to add. I'll reboot the machine and see === topology7 is now known as user === user is now known as Guest6996 === Guest6996 is now known as topology7 === Alpha is now known as Abhay === Abhay is now known as Alpha [20:21] hello every1 [20:21] hi tom [20:22] can some1 help me archiving a simple bash script? [20:22] :P [20:22] try #bash maybe? [20:22] ok [20:24] archiving? === docmax is now known as Guest5806 === kostkon_ is now known as kostkon === rosalind is now known as lys [21:01] I eventually narrowed the problem to a netplan misconfiguration. all working as expected now [21:02] golang! [21:02] grinn [21:02] go go gadget lang [22:35] i created a custom ubuntu AMI based on ubuntu 20.04.. the issue is, when I launch in AWS it doesn't seem to run the userdata at all. The user data is correct and I can see it set in the aws console.. [22:36] I can curl the user-data and see the script I want it to run on initial boot, but it doesn't seem to run it === iconoclast_hero is now known as iconoclasthero === wdb8 is now known as wdb