/srv/irclogs.ubuntu.com/2024/05/31/#ubuntu.txt

Peppihello01:00
semI think my Linux computer has crashed :(01:03
semThe screen is frozen01:04
semWhat do I do01:04
sarnoldhi Peppi01:04
semI was apt getting software01:04
sarnoldsem: ssh in from another computer and see what's in the logs01:04
semOh good idea I'll try01:04
=== chris14_ is now known as chris14
Peppihmmm I had jdk 17 and I thought I uninstalled it and installed 2101:07
Peppiyet when I go java --version I see 1701:08
Peppiso the path01:08
PeppiI got to /etc/profile.d and look ad jdk.csh and jdk.sh and it's all pointing to 17???01:08
Peppiwhat's going on?01:08
rboxsounds like you didn't uninstall it01:09
Peppihow would I unistall it?01:09
oerhekson what ubuntu version?01:10
semIt looks like it is not connected to the router anymore sarnold01:11
rboxPeppi: how did you instlal it01:11
semI could hold down the power button. Or is there a series of sysreq keystrokes to try ?01:12
Peppioerheks, https://paste.centos.org/view/a2a1ad8701:12
sarnoldsem: oh :( bummer, that's a very unhappycomputer :( maybe sysrq s, r, b  -- but iirc the defaults don't let those work any more01:13
oerheksoh mint. they are on OFTC ?01:13
Peppioftc?01:13
Unit193I thought they were on some small noname server.01:13
Unit193!mint01:13
ubottuThe 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
Unit193spotchat, that's it.01:13
Peppik01:13
semYeah it is very unhappy01:14
sarnoldoh dang, I forgot about that, I thought they weren't online at all01:14
oerheksbut to help, did you select java right? https://help.ubuntu.com/community/Java#Choosing_the_default_Java_to_use01:14
Peppirbox sudo apt install openjdk-21-jdk01:14
rboxi thought we were tlaking about 1701:15
Peppirbox, didn't you ask how I installed it? I assume how I installed 21.01:16
rboxyou're complainign about 1701:16
rboxso... why would i ask about 2101:16
Peppirbox, correct01:17
PeppiI installed 17 a while back and don't remember how I installed it01:17
oerhekstime to reinstall ubuntu01:17
oerheks🤪01:18
semsarnold: yeah it didn't work :( I Guess I'll have to hold the power button01:18
semMaybe I should do a memtest86(+)01:18
sarnoldsem: often a good idea, yeah01:18
semWhen in doubt, memtest86+ it out01:20
ozzloytomreyn, 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 out01:21
ozzloywhile this is a kink, it is not a huge deal because i use keyboard navigation mostly01:22
ozzloyi have switched between the snap and deb and building from source my emacs.  right now i'm using the deb01:24
ozzloyyep, still have the issue.  i clicked on the emacs window, and got this terminal instead01:25
ozzloymight have something to do with multiple monitors01:27
ozzloyi tried changing to fractional scaling, that went south01:27
hwpplayer1Will Ubuntu leave GNOME ?01:31
rboxlike take the kids and move in with their mother?01:31
sarnoldCDE 4 EVER01:31
hwpplayer1cylater01:32
arraybolt3sarnold: s/C/K/01:32
sarnoldarraybolt3: lol01:32
arraybolt3sorry, I couldn't resist :P01:33
theZoMBiEhow often will this crontab run: * * * * * if [ $(($RANDOM%10)) -eq 0 ]; then /usr/bin/python /home/user/script.py02:02
rboxevery minute02:03
theZoMBiEis the random - selecting once every hour02:03
theZoMBiEi mean randomly every hour?02:03
theZoMBiEfor 10h02:03
rboxwhat the comamnd is is irrelvent, the crontab is going to run every minute02:03
oerhekssure you can find a cron calculator02:04
theZoMBiEso this never ran for me..02:04
rboxhwo do you know it dindt run?02:04
theZoMBiEdo i need quotes around my command ?02:04
rboxwel lits expecting a command, thats not really a command02:04
sarnoldit's way easier to put your shell script in a file. crontab is horrible to debug.02:05
sarnoldjust save it in a file and execute that.02:05
theZoMBiEso slap my python in bash?02:05
theZoMBiEin a bash script02:05
sarnoldor get your python script to do the non-determinism directly02:05
theZoMBiElet me try02:07
theZoMBiEand how can i change that to randomly send a message once within an hour02:08
theZoMBiEinstead of a minute02:09
rboxcron doesnt do random02:09
theZoMBiE* * * * * if [ $(($RANDOM%10)) -eq 0 ]; then /usr/bin/python /home/user/script.sh; fi <-- but this will run every minute?02:11
theZoMBiEim confused02:11
ravagehttps://p.haxxors.com/hourprint.txt02:12
ravagerun this every minute in your cron and it will print a message once per hour02:12
ravagelike sarnold said. move the logic to your script02:13
theZoMBiEso in my bash script i am running my python.py02:14
theZoMBiEbut can i randomly run that python.py maybe with the sleep command or something02:14
ravageif your python script handles everything you can just run that every minute like * * * * * /usr/bin/python3 /path/to/hourly_message.py02:16
semYou could have it roll a random number out of 6002:16
semAnd send the message on that minute02:16
theZoMBiEravage: 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 python02:18
theZoMBiEsem but how can i roll a random number in my bash script to execute my python.py02:18
semI don't know how to speak Python, sorry :/02:19
pragmaticenigmaThis 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
pragmaticenigmaSimply choose a minute of the hour you want it to run every hour, and schedule it that way.02:19
theZoMBiEi want it to run once every hour.. at a random minute02:19
pragmaticenigmatheZoMBiE, The assignment cannot be accomplished02:20
semMaybe chatgpt can write some almost-correct sample code you could learn from02:21
ravagethere are rooms here for both bash and python. choose the one you need help with do build your script02:21
oerhekssystemd timers can do seconds and got build in random delay02:22
oerhekshttps://unix.stackexchange.com/a/68882802:22
semoerheks: yeah! I was just thinking about that02:22
semThis way it will be still spaced out nearly by an hour02:22
semBut not all at once02:22
pragmaticenigmatheZoMBiE, What ravage just said... this is a programming problem, choose the language and find the correct channel to ask your question in.02:22
theZoMBiEi think i figured it out02:22
oerheksso detection at exactly the minute is harder to do ..02:23
oerheksoops02:23
semtheZoMBiE: can you join me in #python? I'm curious to see it02:24
=== toolz is now known as Daniel
=== travisghansen2 is now known as travisghansen
Guest59how do I encrypt an ubuntu server that has already been setup ?09:33
CosmicDJGuest59: full disk encryption? or just certain mountpoints/directories?09:34
Guest59im using zfsbootmenu I would like to encrypt the full ubuntu server on the bootmenu09:37
Guest59for full disk what do you recommend ?09:38
CosmicDJI've only ever encrpyted my /home, no idea about FDE09:39
CosmicDJbut it sounds like you have to reinstall to get that09:39
=== ahmed is now known as Guest8096
Guest8096hello guys09:45
Guest8096how are you guys09:47
=== gaelheart-away is now known as gaelheart
Guest8096hi10:09
ahmed_hi10:31
BluesKajHi all11:09
khanhhi11:29
=== guiverc2 is now known as guiverc
=== esv_ is now known as esv
=== rud0lf_ is now known as rud0lf
roothi12:42
=== root is now known as Guest7089
tuxickho13:57
=== ongolabo1 is now known as ongolaboy
ollefuck why isn't it possible to kill some processes  phewww14:26
olleannoying every time14:26
olleok got it14:27
ollefinally, had to kill them in the right order14:27
=== pah_ is now known as pa
=== Polochon_street_ is now known as Polochon_street
=== wdb1 is now known as wdb
neoliif I change the partition tables of a device (ssd), will I delete saved data?15:33
neoliI mean if changing partition tables equals deleting data15:34
leftyfbneoli: why do you need to "change partition tables"?15:34
Abodyارحبوو15:44
geniineoli: The short answer is yes. The longer answer is that it's complicated.15:45
Abodyوش وقعكم15:47
Abodyسكارى15:48
neoliI mean if changing partition tables equals deleting dataarabic, bautiful15:51
leftyfbneoli: why do you need to "change partition tables"?15:51
leftyfbI'm thinking neoli has me on ignore15:53
Abodyكيف حالوا15:54
genii!sa | Abody15:55
Abody*حالكم15:55
ubottuAbody: For the Saudi Arabia team : /join #ubuntu-sa : للانظمام الى قناة الفريق السعودي - For Arabic language support, please : /join #ubuntu-arabic : للحصول على الدعم باللغة العربية15:55
AHemlocksLieI 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 seem16:38
AHemlocksLieto be enabled according to ufw. Is there anything in particular I should be checking?16:38
AHemlocksLieI'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 moment16:41
AHemlocksLieThe 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 router16:43
ravagesounds like only your port forwarding is broken. maybe the IP changed?16:43
AHemlocksLieLooks like that is not the case, still same IP listed when I run ifconfig16:44
AHemlocksLieAnd I can see other devices on the network using UPnP to forward ports on the router, but transmission's port never triggers16:45
oerhekshttps://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/205501216: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
oerhekssee #916:48
oerheksalso appstore problems could be solved with that, #20 sudo snap refresh snap-store16:49
cocomohow 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 change16:49
oerhekscocomo, maybe your help too; https://ubuntuhandbook.org/index.php/2023/06/brightness-slider-external-monitor-ubuntu/16:51
oerheks!info ddcutil noble16:51
ubottuddcutil (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 kB16:51
pratsonaHi. 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:51
pratsonaFailed to initialize NVML: Driver/library version mismatch16:52
pratsonaNVML library version: 550.6716:52
cocomooerheks: thanks a lot16:52
AHemlocksLieoerheks, #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 store16:53
oerheksAHemlocksLie, due to no dns, i guess16:54
AHemlocksLieSo maybe some sort of DNS issue is related... Might explain the delays to start updating package list...16:54
Enissayomg, 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:54
AHemlocksLieBut /etc/resolv.conf has like 8 nameserver entries, so I feel like it should be able to figure something out16:55
oerhekslimit them to 8888 and 8844 ?16:55
EnissayI read some comments about people suggestion to skip this version or at least wait for the .1 fix... This really sucks for an LTS16:55
ravagepratsona: 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 driver16:55
EnissayIn 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:57
ravageEnissay: 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 boot16:58
AHemlocksLieoerheks, 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 not16:58
pratsonaravage: 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/206183017: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:04
pratsonafor the record it's RTX 307017:05
ravagei currently run the nvidia-driver-550 package from the noble repos17:07
ravageso it should be fine to just install that after purging any existing nvidia apackages17:07
pratsonai run the 550 as well but nvidia-smi just doesn't run.. okay i retry it17:07
AHemlocksLie...I ended up on 23.10? Starting to wonder if I should just wipe and restart...17:09
pratsonarunning the commands you gave it installed 535.. guess it's safer to keep them then17:09
Enissayravage: I've got a picture, where to share ?17:11
pratsonaravage: and can confirm the 535 is working now after a reboot17:12
ravagepratsona: great. maybe use 535 then if you dont run in any problems that need a newer version17:12
ravageEnissay: any public image pastebin17:13
Enissayravage: https://gcdnb.pbrd.co/images/m4DUN9gVNh51.png17:16
Enissayworth noting I had dual boot before with Win10, now I formatted the whole disk, there's nothing anymore, still I get this error17:17
ravagetry to wipe the whole disk then from the live session. i usually use wipefs17:19
ravageexample would be:" wipefs -a /dev/sda " but make sure to use the correct disk17:20
ravage( with sudo or in a sudo session )17:20
ravagemaybe you need to install the wipefs package first17:21
ravageafter wiping everything reboot and try again17:21
ravageanother thing to check is if fastboot is enabled in your BIOS17:22
ravageif it is disable that too17:23
Enissaynoted17:24
babulais there a specific vhannel for problems compiling programs?18:13
babula-channel18:13
pragmaticenigma!alis | babula18:16
ubottubabula: 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
oerheks#programming i guess18:16
oerheks#ubuntu-packaging #gcc18:17
babula!alis build18:17
babulaarf...18:18
oerheks /msg Alis something18:18
oerheksand some channels require registration to join18:18
oerheks!register18:19
ubottuFor information on registering your IRC nick, see https://libera.chat/guides/registration - For any further help, ask in #libera18:19
babulayes, i already looked at the channel list /list on hexchat gui18:20
gaelhearti want to set a video as my wallpaper gnome. anybody ever do that?18:37
gaelheartbrb18:39
oerhekssome tried, poorly https://www.linuxuprising.com/2023/04/hanabi-is-live-wallpaper-for-gnome.html18:40
=== Crass is now known as Parsnipes
Enissayravage: 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:43
ravageand you tried the server installer too?18:44
EnissayI 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
ravagethe loop devices are from snapd18:44
ravagethats fine18:44
EnissayNow it is fine, I can select disks and such, just one more question please18:44
EnissaySince 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
EnissayI was thinking about using LVM at install, but that doesnt give me any control, it just uses the whole drive...18:46
Enissaywhat's the diffrent between selecting LVM at install and installing it later ? would / be on LVM in the first case ?18:47
ravageAnd why do you need a separate home?18:47
Enissayravage: Good question, just an old habit, normally makes it easier to upgrade, which I never did, I always format everything18:48
ravageI usually backup my whole system from time to time and my files in home with borg backup 18:48
ravage!backup18:48
ubottuThere 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 !cloning18:48
ravageFor the full backup I use clonezilla18:49
=== Crass is now known as Parsnipes
EnissayYes, I am using restic/rclone, then before format I also making a copy of important files... Clonezilla is new to me, will have a look18:50
ravageThen you should be able to restore your system pretty quick 18:50
ravageEven without a separate home partition 18:50
EnissayOne 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 512MB18:51
CosmicDJEnissay: IIRC you need one when using LVM18:51
ravageYou do not need it if grub can handle your filesystem18:51
oerheksare you pointing to UEFI?18:52
ravageSo if you use ext4 and no lvm you don't need boot18:52
ravageWith UEFI you need a partition for that of course 18:52
ravageBut the defaults of the installer should be fine18:52
EnissayNo need for lvm since I will not more have a separate /home18:52
ravageJust select whole disk and let it do its thing18:53
EnissayGreat, thanks, finally I will launch the darn installation18:53
oerheksubuntu uses 1 partition, including swapfile18:53
=== Crass is now known as Parsnipes
=== Parsnipes is now known as Crass
=== Crass is now known as Parsnipes
babulaargh, i lost the bash scrollback as it was limited to 10000 lines, can i get it back somehow?-)19:01
babulathe lines that went away19:01
stennodon't think so19:01
stennoimagine logrotating your bash_history19:01
stennoi guess there is just infinite scroll too19:02
=== Crass is now known as Parsnipes
oerheksyes19:03
oerheks!logs19:03
ubottuOfficial 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
oerheksthey will be pushed every our, be patient19:03
ravageI hope we don't log his terminal history there19:04
stennoi thought we were talking about the bash history, not the channel log lol19:04
babulastenno: yes, i just configured it. i was just hoping that it would save the texts somewhere.19:06
stennoif it would, you wouldn't need to configure it :)19:06
babulayes, this irc clients saves the text somewhere, even i don't command it! yay!19:08
PeGaSuSI've typed `sudo apt-add-repository ppa:longsleep/golang-backports` and it is kinda hanging there, without proceeding19:22
oerheksnothing weird going on on the servers https://status.canonical.com/19:35
oerheksstop the action and try again?19:35
PeGaSuSI've tried several times. it errors with "TimeoutError: [Errno 110] Connection timed out".19:41
PeGaSuSweirdly it doesn't seem to work on any PPA i try to add. I'll reboot the machine and see19:46
=== 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
tom`_hello every120:21
ravagehi tom20:21
tom`_can some1 help me archiving a simple bash script?20:22
tom`_:P20:22
ravagetry #bash maybe?20:22
tom`_ok20:22
mutantearchiving?20:24
=== docmax is now known as Guest5806
=== kostkon_ is now known as kostkon
=== rosalind is now known as lys
PeGaSuSI eventually narrowed the problem to a netplan misconfiguration. all working as expected now21:01
oerheksgolang!21:02
oerheksgrinn21:02
rud0lfgo go gadget lang21:02
Guest18i 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:35
Guest18I can curl the user-data and see the script I want it to run on initial boot, but it doesn't seem to run it22:36
=== iconoclast_hero is now known as iconoclasthero
=== wdb8 is now known as wdb

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