/srv/irclogs.ubuntu.com/2021/09/05/#ubuntu.txt

=== Guest8607 is now known as westor
QuickBASIC_Ubuntu 20.04 on a VPS. Where is an appropriate place to put self-compiled binaries that act as daemons (recieve connections from the internet). These programs don't require root, so I'd prefer to run them as their own user, but I'd like them to be able to be automatically started if the server reboots or goes down. What's the best way to go about accomplishing this for a complete noob?00:13
tsapien /usr/local/bin is the traditional place for user complied stuff not managed by package distributions00:18
QuickBASIC_tsapien perfect thank you. What's the best way to re-run them on server restart? Can I just 'sudo adduser --disabled-password --home /home/username username' then 'sudo su username' then 'crontab -e' and add the process I'd like to run as that user with @restart and it will start as that user after a reboot?00:42
leftyfbQuickBASIC_: create a systemd unit00:42
leftyfb( .service file)00:42
QuickBASIC_leftyfb Ah, thank you. I was struggling with search terms, so you've likely pointed me in the right direction. Can a systemd service start a .sh so I can pass parameters or can I include them in the 'ExecStart=' line?00:45
leftyfbyes00:45
leftyfbyou pass the parameters in the ExecStart00:46
QuickBASIC_Ah makes so much sense. Are systemd services running as root though?00:46
leftyfbQuickBASIC_: they can be, or you can run them as a user00:47
QuickBASICCool. Thank you so much. Now that I have some search terms I think I can figure out what I'm doing.00:49
=== keypushe- is now known as keypusher
Swift110-mobilehey all01:07
fmlatghorhi fella01:35
noarbWhen installing ubuntu on a 2 monitor setup, is there a way to tell ubuntu to prefer a monitor and to rotate it? I have the same issues with grub details on boot when all the userland settings are correct01:41
=== [_] is now known as [itchyjunk]
mov_eax@noarb have you messed with the Display settings already?01:51
noarbI haven't done anything before editing userland display settings after the machine has booted. Do I need to pass a boot param or something to get grub2 boot info on the right monitor and rotated correctly? I have a 2 monitor setup, 1 horizontal 1 vertical. Right now grub and installation are on the wrong monitor and rotated incorrectly01:57
mov_eax@noarb: go in `etc/default/grub`, check your resolution settings. comment out and/or edit what you need and then run `sudo update-grub` when you're done02:05
fmlatghortomreyn: things are back to being screwy03:31
fmlatghorthe resolv.conf got overwritten03:31
fmlatghormaybe there was another systemd thing I had to disable03:32
fmlatghorwell anyhow it turned back into a symlink03:32
* fmlatghor sighs03:32
fmlatghormaybe I should just learn how to use systemd-resolved03:32
SJrXWhat is cloud init and should I just disable it?03:33
webchat60I am trying to build my own .deb packages for plymouth. So I downloaded the source (plymouth_0.9.4git20200323.orig.tar.xz and plymouth_0.9.4git20200323-0ubuntu6.debian.tar.xz) from packages.ubuntu.com. Then extracted plymouth_0.9.4git20200323-0ubuntu6.debian to ~/pbuilder and copied the other to ~/pbuilder. After that I ran `debuild -S -d -us -uc`04:27
webchat60and `pbuilder-dist focal build ../plymouth_0.9.4git20200323-0ubuntu6.dsc`. But it is not generating any deb file. The first command generated lots of `ignored for deletion` warning. and the second one generated `pbuilder dependency error`. I am where I went wrong.04:27
webchat60*correction I am unsure where I went wrong04:28
webchat60Also If this is not the correct place to place this question, please refer me the correct channel.04:31
seifeslimeneHey Guys!04:50
lotuspsychjewebchat60: are you trying to contribute to ubuntu, or whats your endgoal?05:31
Croranwebchat60: can't you just use checkinstall?05:47
sniffablehi. i am the budweiser official monkey man of nigeria06:45
sniffablei selling beers06:45
sniffablepertho: welcome to FartLand06:45
pasizi sell bears06:46
sniffableyour mother has fungus in her cooch06:46
sniffablemuch diseased06:47
sniffablevery smelly vagina06:47
webchat60lotuspsychje Sorry for the delayed response. I am trying to make a customized ubuntu for persoanl use06:48
webchat60Croran Can you please tell me the command06:49
webchat60?06:49
perthoI got an old Ivy Bridge laptop with a discrete Nvidia GeForce GT 650M card. In the old days, I used bumblebee/optirun (primus?) to use it. However it seems now you have to use prime-switch and a new nvidia driver. Only that it doesn't work on my old card. Any ideas? Is bumblebee still available?06:50
lotuspsychje!ops | sniffable bad news06:51
ubottusniffable bad news: Help! Channel emergency! (ONLY use this trigger in emergencies) - Pici, Myrtti, jrib, Amaranth, tonyyarusso, Nalioth, lamont, CarlK, elky, mneptok, Tm_T, jpds, ikonia, Flannel, wgrant, stdin, h00k, IdleOne, Jordan_U, popey, Corey, ocean, cprofitt, djones, Madpilot, gnomefreak, lhavelund, phunyguy, chu06:51
sniffableThe Holocaust is hoax06:52
lotuspsychjetnx06:52
lotuspsychjepertho: these these its nvidia-prime taking care of optimus cards, ubuntu-drivers list to see the drivers for your card06:53
perthothanks lotuspsychje. Where's that list to be found?06:54
lotuspsychjepertho: in your terminal; ubuntu-drivers list06:54
perthoit's an older card and prime-switch nvidia makes the screen just go completely black when it boots.. I have to use the built-in intel chipset but the nvidia just for off rendering?06:54
perthoprime-select on-demand is useless.. nvidia-smi just says "not supported"06:55
lotuspsychjepertho: can you pastebin; sudo lshw -C video please?06:55
perthosure hang on06:56
pertholotuspsychje: https://pertho.net/pb/fDC5lfmo06:57
lotuspsychje40406:58
perthosorry .. one sec06:59
perthohttps://pertho.net/pb/avjxTDZ307:00
lotuspsychjepertho: yeah unclaimed means driver failed to load, lets have a look in your dmesg please?07:01
perthowhen I 'modprobe nvidia' I get: modprobe: ERROR: ../libkmod/libkmod-module.c:838 kmod_module_insert_module() could not find module by name='off'07:02
perthoah.. prime-select query is set to 'intel'07:03
perthoif I set it to 'nvidia' I get a black screen when I boot.. only way to fix is to ssh in and set it back to intel as root07:03
perthoon-demand does work though.. I think07:03
perthowhen it creates the new initram disk, I see lots of these messages: W: Possible missing firmware /lib/firmware/i915/skl_guc_49.0.1.bin for module i91507:05
perthoI'm guessing that's a linux-firmware packaging problem or something07:05
bobdobbsIs there a GUI application that I can use to burn a windows ISO to USB? Googling lead me to WoeUSB, but I can't get it to run.07:05
lotuspsychjepertho: your intel graphics do get loaded, its only your nvidia module failing07:05
lotuspsychjepertho: more clues in your dmesg07:06
bobdobbsI used to use an app called 'toaster', I think. But it isn't in the repos anymore. Maybe it doesn't exist anymore.07:06
pertholotuspsychje: if I use prime-select on-demand and reboot, the nvidia module does load then07:06
bobdobbsgparted is another option. But it's just overkill and too complicated07:06
lotuspsychjebobdobbs: woeusb07:06
bobdobbslotuspsychje: it won't run on my setup. I've tried to install it, but can't find the binary. If it installed, it didn't install in my PATH.07:07
lotuspsychjebobdobbs: try the snap woeusb07:07
bobdobbsah, ok07:08
bobdobbslotuspsychje: cool! snap search found it. I'll install it from there.07:08
pertholotuspsychje: lshw output with 'prime-select on-demand' (after rebooting) https://pertho.net/pb/3sxQ3bfm    and here's the dmesg of prime-select ondemand: https://pertho.net/pb/04KVCJqm07:08
bobdobbslotuspsychje: installing it from it's own repo is annoying. I couldn't find the command for it, and couldn't find the command to start it by googling. So frustrating!07:09
lotuspsychjepertho: ubuntu-drivers list please too?07:09
pertholotuspsychje: https://pertho.net/pb/QYBf7i5b07:11
perthonvidia-390 is what's installed07:12
Croranwebchat60: well do everything to the normal build process except don't run make install07:13
Croranwebchat60: run `sudo checkinstall` instead07:13
Croranwebchat60: of course you need to install checkinstall itself first. it's in the ubuntu repos.07:13
pertholotuspsychje: here's output of nvidia-smi: https://pertho.net/pb/BDRqiysN07:18
webchat60Croran I already ran `dpkg-checkbuilddeps` and it returned `NULL`.07:19
CroranSeriously how do i get rid of these stupid pop-ups in Ubuntu. "! Software Updates Available"  "Important OS and application updates are ready to be installed" "[Not Now] [View] [Cancel] [OK]"07:19
Croranwebchat60: i don't know what that's supposed to do, and that's not part of the process as far as I'm aware.07:20
perthohmm I wonder if I need to toggle on persistence mode07:21
lotuspsychjepertho: do you still have a previous non 5.11 kernel in your booting list?07:21
pertholotuspsychje: I have a 5.8.0-43-generic07:22
lotuspsychjelets try that pertho07:22
perthook I'll try booting that up.. what should I look for afterwards?07:23
bobdobbsok, now that I'm running woe-usb, I'm not liking it. What alternatives are there?07:23
lotuspsychjepertho: that your 390 module is loaded correctly, sudo lshw -C video07:23
EriC^^bobdobbs: rufus07:24
Croranwebchat60: do the recommended build process for your software. look at the README included with the tarfile. The last step described there is probably to do a 'sudo make install'. Instead of that do a 'sudo checkinstall'. You should end up with a .deb file.07:24
webchat60Croran When I ran `dpkg-buildpackage -b -nc -tc` i am getting the following outputs https://termbin.com/mnkj07:24
bobdobbsEriC^^: thanks! I'll check that out,07:24
Croranwebchat60: I told you to use checkinstall, not dpkg-buildpackage.07:24
EriC^^bobdobbs: no problem07:25
bobdobbsEriC^^: oh, it looks like rufus is a windows application. I'm looking for an app that runs on ubuntu.07:26
pertholotuspsychje: https://pertho.net/pb/zxh6pHvn (5.8 kernel lshw -C video)07:26
lotuspsychjeyeah seems like its working there pertho07:26
bobdobbsEriC^^: like, I've downloaded a windows iso to my ubuntu machine, and I want to turn it into a bootable USB07:26
pertholotuspsychje: in 5.11, nvidia-smi produced output, in 5.8, it gives an error: Failed to initialize NVML: Driver/library version mismatch07:27
EriC^^bobdobbs: i see, are you going to use it for UEFI or legacy MBR booting?07:27
webchat60The ubuntu tarfile does not come with a readme.07:28
bobdobbsuhm, I actually don't know. I guess it's been a while since I've done this.07:28
perthoNVRM: API mismatch: the client has the version 390.144, but this kernel module has the version 390.141. (on 5.8 kernel).. 5.11 does not produce this error07:28
EriC^^bobdobbs: will you be using it on your current pc?07:28
lotuspsychjepertho: could be due, your latest 390 mismatches and older kernel07:29
bobdobbsEriC^^: ah, I see what you mean, I think. I want to make the USB so I can install windows on another machine07:29
pertholotuspsychje: I'll boot back into 5.11.. the nvidia driver did load then07:29
lotuspsychjepertho: what i assume is your issue, we notice a lot of 5.11 bugs recently, might be a fault there07:29
perthois there a way to fix the driver so it matches properly on 5.8? I'm just not sure how to tell whether it's actually using the nvidia discrete GPU07:30
EriC^^bobdobbs: how old is the hardware roughly? like 2010+ ?07:30
pertho(brb 10-15 min)07:30
bobdobbsEriC^^: that I'm installing to? maybe about 2015. Relatively recent.07:31
lotuspsychjepertho: booting an older kernel was just for testing purposes, not adviced to daily driver anymore07:32
EriC^^bobdobbs: ah great, it should have UEFI support, what you want to do is create a fresh GPT partition table on the usb, and create a single FAT32 partition, mount it, then double click on the iso so the contents show, and copy the files to the FAT32 partition, it'll be bootable on UEFI, you'll have to enter the BIOS and switch the booting to UEFI enabled, or CSM legacy disabled07:33
bobdobbsEriC^^: kk. From memory I can do that partitioning with gparted?07:33
EriC^^correct07:33
bobdobbs:D07:33
webchat60Croran With `sudo checkinstall` i got this07:34
webchat60========================= Installation results ===========================07:34
webchat60make: *** No rule to make target 'install'.  Stop.07:34
webchat60****  Installation failed. Aborting package creation.07:34
Croranwebchat60: what happens if you run 'sudo make install' instead?07:36
Croranwebchat60: read the 'INSTALL' file that comes with plymouth. excerpt: "Plymouth isn't really designed to be built from source and get installed by end users.  For it to work correctly, it needs integration with the distribution.  Because it starts so early, it needs to be packed into the distribution's initial ram disk, and the distribution needs to poke plymouth to tell it how boot is progressing."07:42
Croranso probably no point in making a .deb file regardless.07:42
webchat60I have read this. But my question is how Ubuntu creates the deb packages for plymouth and related?07:45
pertholotuspsychje: will nvidia-prime work with my card or will I have to install bumblebee to get it working?07:47
perthoit is an older card/intel chipset (circa 2012).. laptop got a new lease on life when I installed a new SSD on it :)07:47
bobdobbsEriC^^:  oh crap. I think I did something to my main HDD07:47
lotuspsychjepertho: bumblebee is a depraced method, its nvidia-prime these days07:48
EriC^^bobdobbs: can you pastebin the output of "sudo parted -ls" ?07:48
bobdobbsI closed gparted, but just before I closed it, I noticed that I was operating on a drive that isn't the USB07:48
bobdobbshttp://pastie.org/p/49RlfxDLvqIt4GPsVVxiMx07:48
pertholotuspsychje: ok well, prime-select on-demand is the config that seems to enable both cards (prime-select intel just enables the intel chipset only, and prime-select nvidia just gives me a black screen)07:49
perthobut I have no way to know whether if I run, say, glxgears whether it's actually using the nvidia gpu07:49
=== cacti is now known as ice
EriC^^bobdobbs: the 2000gb one looks good, the 500gb one is empty, did you have stuff on it?07:50
perthowith bumblebee, at least I could do: optirun glxgears and it would run on the nvidia discreete graphics card07:50
lotuspsychjepertho: you need nvidia-settings to pick performance mode or powersaving mode07:50
bobdobbsEriC^^: Yes, I did. I think I just accidently nuked it. However, that's ok. That was just a media bucket07:51
bobdobbsEriC^^: serves me right for not taking a breath and being careful07:51
bobdobbsEriC^^: I think I got off really lucky07:51
bobdobbsI'd forgotten how risky this stuff was07:51
bobdobbsI used to use an app called "toaster" it's main purpose was burning to CD and DVD's. I guess it doesn't exist anymore, cos nobody uses that old tech. But it was so easy to make bootable usb's with it.07:52
tsapienyou could probably track it down somewhere07:53
EriC^^bobdobbs: hmm so you have backups of the stuff, no problem?07:54
bobdobbsEriC^^: yeah, it's no problem. Nothing really important there.07:54
EriC^^bobdobbs: actually it doesn't look like anything was formatted, you could probably get it right back to where it was at as if nothing happened easily07:55
EriC^^bobdobbs: do you happen to have an older pastebin of parted's output or fdisk/gdisk?07:55
pertholotuspsychje: nvidia-settings can't save my settings.. if I select one, it prompts for authentication.. I put in my password and it fails07:55
perthowhat is prime-offload?07:56
bobdobbsEriC^^: I'm probably being a bit irrational, but I don't care abot that nuked data. I get fixated on stuff. Right now I'm fixated on making the bootable/installable USB.  Probably because I remember that this used to be easy for me, and now I feel like I'm unfamiliar territory, so I feel like a clueless idiot.07:57
bobdobbsNo, unfortunately I didn't save a copy of the formatting information.07:57
EriC^^bobdobbs: ok, if you want let's get the USB ready, then restore the partitions on the 500gb07:59
bobdobbs:)08:00
EriC^^bobdobbs: first, type "sudo gdisk /dev/sdc"08:00
EriC^^you have to recreate the partition table as GPT since it's msdos right now, and windows has a problem booting uefi if it's not GPT08:01
bobdobbshttp://pastie.org/p/6MN2VWLLsaOT2mqd52420X08:01
EriC^^bobdobbs: ok, type "o" and press enter08:01
pertholotuspsychje: is /sbin/prime-offload meant to run when X starts? I see a script in /usr/lib/ubiquity/dm-scripts/oem/00-prime-offload and also /usr/share/lightdm/lightdm.conf.d/90-nvidia.conf .. so it seems to try to run prime-offload, but when I run it by hand I get: https://pertho.net/pb/rMFG9kd208:01
EriC^^bobdobbs: that should create a fresh gpt partition table08:01
bobdobbsEriC^^: ok, 'p' now produces this: http://pastie.org/p/0qUQBzMAcp8oiec1eHpbB008:02
EriC^^bobdobbs: great, type "n" to make a new partition08:03
bobdobbs"partition number" I guess I accept the default? 1?08:03
EriC^^yup08:03
EriC^^same for first sector and last so it uses all the space08:04
bobdobbsEriC^^: ah, I was just about to ask that08:04
EriC^^bobdobbs: when it asks for the hexcode, put "ef00"08:04
bobdobbswhat does that mean? Is that an address?08:04
EriC^^bobdobbs: it's the partition type, in this case ef00 is for efi partitions08:05
bobdobbsah, I see.08:05
bobdobbsthis is the output of 'p': http://pastie.org/p/1CtPSfFA6ToTZ991lMPVmy08:05
EriC^^bobdobbs: great, type "w" to write it08:05
bobdobbscool. that's done08:06
EriC^^bobdobbs: ok exit the program with "q" iirc08:06
EriC^^then type "sudo partprobe /dev/sdc" so that the kernel reloads the new partition table08:07
bobdobbsIt dumped me out automatically after 'w'. The exit message: http://pastie.org/p/5Fh5nZYZZz5PXOqlUirDXR08:07
EriC^^looks good08:07
bobdobbsso that's interesting: the kernal will still remember the previous data describing this drive?08:08
EriC^^yeah i guess it loads the partition table earlier, and after writing the new one to disk it has to re-read it08:09
bobdobbsgoogle tells me that partprobe informs the kernel of updates. Should I run partprobe?08:09
EriC^^yeah08:09
bobdobbshttp://pastie.org/p/6LGntkw3h4RP4raTqACkFS08:10
bobdobbsthat's the output from partprobe08:10
bobdobbsI wonder if it would help if I just ejected the drive08:10
EriC^^bobdobbs: ah, it might be mounted, try "sudo umount /dev/sdc1"08:10
bobdobbsfrom 'mount': "/dev/sdc1 on /media/mantis/7022-B1F2 type vfat"08:11
bobdobbsso yeah, unmounting...08:11
EriC^^ok, try partprobe again08:11
bobdobbsI also pulled the drive and and stuck it back in08:11
bobdobbsk, partprobe returns with no message08:12
EriC^^bobdobbs: ok, type 'sudo mkfs.fat /dev/sdc1'08:13
bobdobbsAfter re-inserting, my os makes a noise. But 'mount | grep sd ' doesn't show sdc*08:13
bobdobbsand I can't see the drive in the GUI file manager08:13
bobdobbsoh wait... but fdisk can see it08:14
EriC^^bobdobbs: what's the output of "lsblk"?08:14
bobdobbsthat mkfs command returned without error.08:14
bobdobbslsblk shows sdc/sdc108:15
EriC^^great, mount it and double click on the windows iso, and copy all the files to it08:15
EriC^^there should be a dir called 'efi' there so you know it supports uefi booting08:16
bobdobbssorry, silly question... where should I mount it to/08:16
bobdobbsanywhere?08:16
EriC^^bobdobbs: any place will do, i'd just click on the filemanager08:16
bobdobbskewl kewl08:16
bobdobbsreally appreciate this, btw08:16
EriC^^no problem08:16
bobdobbsgaaaaah!08:18
EriC^^?08:18
bobdobbsEriC^^: As root, I mounted it at '/media/mantis'. Mantis is my username when I'm not root. Then I did 'chown -R /media/mantis'...08:19
bobdobbsI did this as root. But the return from chown is "chown: changing ownership of 'mantis/': Operation not permitted"08:19
EriC^^bobdobbs: you don't want to change the permission of /media/user cause it has extra acl's there and stuff08:20
bobdobbsoh. acl's. I've heard of those08:21
bobdobbsaccess control lists?08:21
EriC^^bobdobbs: you dont need to chown anything, fat32 won't save the permissions anyways08:21
EriC^^yeah08:21
bobdobbsah, ok08:21
bobdobbslol. now I have to remember where I downloaded Windows to08:22
bobdobbsah, found it :)08:22
EriC^^:)08:23
bobdobbsEriC^^: ok, as root I'm now copying windows to the device at the mount point.08:23
bobdobbsnow... inhaaaaaaaaaaaaling08:23
bobdobbsbreath bob. breath.08:24
bobdobbsk, now what were you saying about enabling certain boot options on the target lappy?08:24
EriC^^yeah, enter the bios, set it to use UEFI and/or disable CSM legacy08:25
EriC^^bobdobbs: what kind of laptop is it, which brand?08:26
bobdobbsIt's an Asus. I'm hunting around for the model, but the light is kinda crappy in the zone it's in.08:29
EriC^^bobdobbs: my electricity just went out, running on the UPS currently so if i stop responding it's cause i disconnected, my nick won't though cause i'm using a bouncer, if it's an hp when the pc boots hit "f9" to get the boot options and choose UEFI usb, lenovo is f1208:29
EriC^^bobdobbs: use f8 for asus08:29
bobdobbsyou really know your stuff08:29
EriC^^nah i googled asus :D08:30
bobdobbsoh no! USB not big enough! That's weird: the file is 5.4G and I'm sure the USB is over 7G08:30
bobdobbsdoh08:30
EriC^^odd08:31
bobdobbsI do have another unopened USB though. And I think I've got enough of a handle on the process to step though it myself08:31
EriC^^what's the output of 'df -h /dev/sdc1' ?08:31
bobdobbshttp://pastie.org/p/7CFYLM4GTXGaD9Ys1ihTYS08:32
bobdobbsls -alh says that the windows file is 5.5G08:32
EriC^^looks good it's just half full08:32
EriC^^hmm, that's odd08:33
bobdobbsthe cp operation errored out, saying "File too large". That is odd08:33
EriC^^bobdobbs: oh i see, you need to double click the windows iso to show its contents and then copy the individual files08:34
EriC^^the error is cause fat32 only supports 4gb max individual files08:34
bobdobbsdf -h   returns   http://pastie.org/p/758RPl0dzPDRvcrhmozYOt08:34
bobdobbshey, isn't there a block copy operation I can use?08:35
bobdobbsis this a job for dd ?08:35
EriC^^bobdobbs: i'd erase the contents of /media/mantis first then copy the iso contents08:35
bobdobbsok08:35
EriC^^bobdobbs: no08:35
bobdobbsok08:35
bobdobbsk, I've cleared out that USB08:36
bobdobbscopy the contents of the iso?08:36
EriC^^you might need to open the filemanager with root permission to be able to copy/paste the contents08:36
EriC^^yeah08:36
EriC^^sudo -H <filemanager> should do the job08:36
bobdobbsok. lets give this a shot...08:37
EriC^^as for the 500gb lost partitions, it can be recovered pretty easily using testdisk, hopefully the electricity comes back in a few and we could do that if you want08:38
bobdobbsthat could be good :)08:38
bobdobbsjust for the learning in it08:38
EriC^^yup08:38
bobdobbsEriC^^: ok, coping that iso file to /media/mantis now08:41
EriC^^sounds good08:41
bobdobbsEriC^^:  where are you at anyway? why is your power failing?08:41
bobdobbsgah. The file manager is giving me the same error as cp did: "file too large".08:43
bobdobbsI think nautilus must be using cp under the hood anyway08:44
EriC^^bobdobbs: electricity is back, im from lebanon08:45
EriC^^bobdobbs: did you double click the iso and show its individual files?08:46
bobdobbsah, no08:46
bobdobbsdoh!08:46
bobdobbsok, I'm gonna rm the usb contents and copy the iso contents08:47
bobdobbsgeez, I'm bumbling cos I'm so impatient tonight08:47
bobdobbstoo much coffee mayb08:47
EriC^^xD08:47
bobdobbsuhm, I think I might have found the gui that makes this easy...08:49
bobdobbsI right-clicked on the iso and the list of apps included something called 'brasero'08:50
bobdobbsfrom memory, brasero is a tool that might be able to make bootable usb's08:50
bobdobbsbut I'm going ahead just copying the iso files anyway08:50
bobdobbsEriC^^: I'm having trouble opening the iso. If I extract the file, only two files are extracted: a readme.txt and an empty folder08:55
EriC^^bobdobbs: i think it's for burning iso's to cds and stuff08:55
bobdobbsI mean - I'm trying to extract the files using the file manager08:56
EriC^^bobdobbs: i think double clicking should mount it for you and you can open it as if it were the usb08:57
EriC^^should appear at the left of the file manager08:57
bobdobbsdouble-clicking just opens up a new nautilus window showing the readme and the empty folder08:57
bobdobbsok, right-click gives me the option of opening the iso in the "disk image mounter". lets see what that does...08:58
bobdobbsabsolutely nothing08:59
EriC^^bobdobbs: ok, open a terminal and type "sudo losetup -f /path/to/windows.iso"09:00
bobdobbsthat command returns without errors or messages09:01
EriC^^bobdobbs: type "lsblk" you should see a loop<number> at the bottom that has the same size as the iso09:01
bobdobbshuh. I see three09:02
bobdobbsloops 32, 33, 3409:02
EriC^^bobdobbs: ok type 'sudo mount /dev/loop34 /cdrom'09:03
bobdobbsdone. returned without errors09:03
bobdobbscool!09:04
EriC^^try 'ls /cdrom' does it look like the windows iso?09:04
bobdobbsI can see the files!09:04
bobdobbsyep!09:04
EriC^^efi.. etc?09:04
bobdobbsyes09:04
EriC^^ok great, type 'sudo rsync -av /cdrom /media/mantis/'09:04
bobdobbskewl09:05
bobdobbsok! copying in progress!09:06
bobdobbs#feelsgoodman09:06
EriC^^:D09:06
bobdobbswhat a journey09:07
bobdobbsstill copying...09:09
EriC^^bobdobbs: after it's done, type 'sync' so it writes everything in cache to the usb then unmount and unplug the usb if you want09:11
bobdobbskewl. will do09:12
sapphirehi09:12
sapphireWhat is this?09:12
sapphireI'm new to the whole linux thing09:12
zulsramnoirc chat09:12
EriC^^ubuntu support channel on irc09:12
sapphireAwesome09:13
pertholoop34 o_O09:14
EriC^^lots of snaps i guess :D09:14
sapphireWhat are tar.gz files?09:15
tomreynsapphire: compressed file archives. you're welcome to ask anywuestions here which a simple web search doesn't answer.09:17
bobdobbsEriC^^: lol. rsync errored out with "file too large". lolololol09:18
bobdobbsEriC^^: I've got a fresh usb in my drawer that is 16G. I'll just use that09:18
EriC^^bobdobbs: something's amiss09:19
EriC^^bobdobbs: type "ls -l /cdrom /media/mantis"09:19
bobdobbsyeah?09:19
bobdobbsthe first fear that comes to mind: eroding hardware09:19
EriC^^nah earlier it was due to copying a single file, the error sounds like it, nothing about out of space09:20
bobdobbshttp://pastie.org/p/5v59M805kyUfZ7h2OnL99909:21
pertholotuspsychje: NVIDIA (Performance Mode) gives me a black screen when I boot up, Intel (Power Saving Mode) disables the nvidia driver.. the only time both GPUs are enabled is NVIDIA On-Demand09:21
EriC^^bobdobbs: try 'sudo cp -a /cdrom/!(sources) /media/mantis'09:22
bobdobbsEriC^^: I've already put the new USB in09:22
EriC^^wait..09:23
bobdobbsok09:23
bobdobbsIf I put the original one it, it will probably mount automatically09:23
EriC^^yeah09:24
EriC^^clicking in the filemanager and then lsblk should show the new mountpoint09:24
pertholotuspsychje: something got kinda messed up.. glxgears now gives: Error: couldn't get an RGB, Double-buffered visual09:28
bobdobbslsblk shows those loops again09:29
bobdobbsbut the file manager isn't showing the USB. looks like it didnt mount automatically09:29
bobdobbsI'll mount it manually09:30
EriC^^ok09:30
bobdobbsoh no! sdc isn's showing under /dev09:30
bobdobbsdarnit, my os can't see either of the USB drives now09:40
bobdobbsand gparted can only see the drive that we nuked earlier. It can't see anything else.09:42
KolusionHey all09:45
KolusionDoes anyone know to backup a directory from the command line in a way that does a snapshot? So like, I start backing up a directory that contains a database, and the database is being to written to while I am backing it up, but the backup I receive is the snapshot from when I started doing the backup.09:46
tomreynKolusion: you'll need a special file system (zfs, btrfs, others) or block device layer (LVM) to do this.09:52
KolusionHow is it done from there on?09:53
KolusionLVM rings a bell09:53
KolusionI read it is done with rsync09:54
KolusionMy understanding is rsync does not protect the files from being written to during backup.09:54
KolusionI need something like shadow copy09:55
TJ-Kolusion: even with a block-level snapshot, there is no guarantee the file-system is in a consistent state if there is active writing to open files at the same time09:58
KolusionTJ: That's not true, such technology exists, on Windows at least.09:58
KolusionBasically I just need to make a snapshot copy of a few directories while they are being written to during the backup process.10:01
KolusionI checked out LVM, it doesn't seem to be the solution. From what I have so far read, it's for backing up entire volumes. I only need to backup a few directories.10:02
TJ-Kolusion: Microsoft's VSS requires all applications to use the VSS APIs to achieve that; it isn't 'just' a block device level tool10:03
TJ-ZFS or BTRFS are the prime candidates for file-level snapshots10:03
KolusionDamn10:04
KolusionThat means needing to reinstall Ubuntu10:04
KolusionThat is not an option.10:04
KolusionI take it then it's not possible on an default Ubuntu install?10:04
TJ-you can create a BTRFS file-system inside a file via loopdev if it really is necessary. For databases though we usually run master/slave replicas (we use Postgresql with streaming WAL) to the secondary10:07
KolusionTJ: That is too much effort for me. Yes, I am doing the same backup for my PostgreSQL as well. WAL allows for this. But I need a solution for my web and mail server files.10:18
KolusionI want to snap all three at the same time.10:18
KolusionWell no, with the database I am simply going to copy over the database directory. Not sure if this is a great idea.10:18
tomreynstop the service, or make it stop writes, snapshot, restart the service / make it write again.10:18
KolusionExactly.10:18
Kolusionhttps://www.postgresql.org/docs/12/backup-file.html10:18
tomreyni was speaking generally, not postgresql10:18
KolusionWas hoping for a live way using some snapshot technology that isn't too hard for me to use.10:18
TJ-yes; flush and freeze writes10:18
KolusionYes, generally as well.10:18
KolusionTJ: What is flush freeze writes?10:18
TJ-Kolusion: the actions required to safely snapshot the underlying files/block device10:18
KolusionTJ: Yeah I get you. Kind of like that 'sync' tool yeah?10:18
TJ-Kolusion: Flush all pending writes and finalise metadata, freeze any further writes until the snapshot is taken10:18
KolusionYes!10:18
TJ-but in DB cases the DBMS needs to be told to do that10:18
KolusionWhat is a DBMS?10:18
TJ-DataBase Management System10:18
Kolusionhttps://www.postgresql.org/docs/12/server-shutdown.html10:18
TJ-as in Postgresql10:18
KolusionWhat is your opinion of the pg_dump tool?10:18
TJ-that's the preferred method for single databases10:18
KolusionYes10:18
KolusionThing is, I want the time exact for the web and mail server as well.10:18
TJ-mail shouldn't be a big issue, if the SMTP process creates 1 file per email10:18
KolusionYes, I will get big though one day. I want to be ready for it now. :)10:18
TJ-and web-servers generally are read-only, leaving data storage to a database via whatever web application is in use10:18
KolusionYep10:18
=== Exagone313 is now known as Exa
=== Nebraskka_ is now known as Nebraskka
TJ-we use things like DRBD to have real-time cross-network RAID mirrors for vital file-systems, Ceph is another choice there10:18
KolusionIt all sounds great, thing is it's too complicated for me and I don't have the time to learn it.10:18
KolusionI was hoping rsync could do it but it can't,10:19
Kolusionrsync is a piece of cake10:19
tomreynfor mysql, there's innobackupex which you can use to reate hot backups using binary logs, then do PIT recovery from those (to the same mysqld version only)10:21
tomreyni assume something similar will exist for postgresql10:21
KolusionPostgreSQL pg_dump can do this, but the problem is I want to backup file directories of web and mails at the same exact time.10:22
KolusionSo I need something that executes outside of it so it can snap all of them together.10:22
tomreynbut for anything serious you'd want a cluster, of course, and then you can have a read replica which you can take the backup from.10:22
KolusionI don't have the infrastructure for that.10:22
KolusionThe server will be a desktop10:23
Kolusionlaptop even10:23
tomreynthen why do you have this need for same-timed backups?10:23
KolusionIt's just better.10:24
tomreynand why is stopping services a problem then?10:24
KolusionEverything on the same level.10:24
KolusionI will be running a website. It's going to look so shit if I have to stop everything every 24 hours lol10:24
tomreynwell either it's an important website, then you'll have proper infr, or it isnt, then it doesn't matter at all10:25
KolusionThat is a flawed outlook.10:25
KolusionAlso, having everything backed up at the same time makes backing up cleaner.10:26
KolusionI mean restoring10:26
KolusionThere has got to be something that we don't know about.10:27
KolusionI will go looking10:27
tomreyni don't think you'll be able to combine "serious project, serious requirements" and "server runs on a (single) laptop".10:27
KolusionA serious project can run on a laptop.10:28
KolusionThe laptop has nothing to do with this issue.10:28
KolusionThis is operating system level10:28
tomreyngood luck!10:29
KolusionMaybe I could create two virtual machines and have them replicated, then when I need to do the backup, take one offline and do the backup there.10:29
KolusionWhat do you think?10:31
=== Andrew is now known as CoHaxPenguino
=== CoHaxPenguino is now known as HaxPenguino
KolusionAnyone ever used lsyncd?10:45
KolusionOk, what do others reckon about this live server backup method. I am running a web server, mail server and database, each in their own virtual machine. To back them up live, I will create a fourth virtual machine and run the same web, mail and database in it, and use lsyncd to syncronise the files. Then when I want to back the files up, I shut down10:53
Kolusionthe web, mail and database services...10:53
Kolusionin the second virtual machine, and do a backup on them.10:53
aliselamlar10:53
aliturk varmi10:53
KolusionLoving with community support the FOSS community rages on about...11:02
=== HaxPenguino is now known as CoCoHaxPenguin
lotuspsychjepertho: thats a weird behaviour indeed11:28
pertholotuspsychje: if I run prime-select intel, can do 3D stuff just fine.. but can't use the nvidia gpu discrete11:40
lotuspsychjepertho: you dont use like cuda or something right?11:42
perthono11:44
perthomy problem is similar to this person's: https://askubuntu.com/questions/1188458/how-to-use-prime-select-on-demand-in-latest-kubuntu-19-1011:44
pertho(but I'm on 20.04)11:45
lotuspsychjeyeah im just seeing bug #182428211:45
ubottuBug 1824282 in nvidia-prime (Ubuntu) "Add a mode that load nvidia.ko only so that we display on intel and do cuda deep learning in NV GPU" [Undecided, Fix Released] https://launchpad.net/bugs/182428211:45
perthohttps://download.nvidia.com/XFree86/Linux-x86_64/390.144/README/randr14.html talks about using xrandr.. but if I add those bits to /etc/X11/xorg.conf, X won't start11:46
lotuspsychjepertho: in a normal case scenario, optimus intel/nvidia would just load their modules and you be able to switch between them with performance mode/powersaving mode11:48
pertho"there are changes in ubuntu-drivers-common and in nvidia-prime that will make on-demand mode work for you. This work will land soon." .. on-demand mode does load both GPUs (because the nvidia driver loads as well), but 3D stuff seems disabled11:48
pertholotuspsychje: the way my optimus is designed.. the nvidia GPU cannot be set as the 'main GPU'. It still has to use the Intel GPU for displaying things, but the idea was using the Nvidia GPU for rendering offscreen11:50
lotuspsychjepertho: that sounds like the way intel/AMD hybrid cards would behave11:50
perthowhat is prime-offload?11:52
perthothese utils seem to be very poorly documented (nvidia-prime package)11:52
lotuspsychjepertho: PRIME render offload is the ability to have an X screen rendered by one GPU, but choose certain applications within that X screen to be rendered on a different GPU. This is particularly useful in combination with dynamic power management to leave an NVIDIA GPU powered off, except when it is needed to render select performance-sensitive applications.11:53
perthoright.. and you'd expect it to work in on-demand mode, right? except that it doesn't'11:53
lotuspsychjepertho: wich option is enabled right now performance mode or powersaving?11:54
perthoI don't know what to do with this. Would be nice to have nvidia GPU rendering things... it'd take a load off the intel chipset/cpu11:54
perthoright now.. powersaving (intel)11:55
perthomesa/libGL seems to only work on powersaving (intel)11:55
perthoif I switch to performance mode, X won't load (black screen, no screen output anywhere)11:55
lotuspsychjethats pretty weird11:55
pertho(I have to ssh into the machine and run 'prime-select intel' or 'prime-select on-demand' and reboot to get any screen display)11:56
lotuspsychjei do recall there were passed bugs about that on-demand thing11:56
perthowere those bugs fixed in 20.04 or later?11:56
lotuspsychje!20.0411:56
ubottuUbuntu 20.04 (Focal Fossa) is the 32nd release of Ubuntu and is the current !LTS release. Download at https://ubuntu.com/download - Release notes at https://wiki.ubuntu.com/FocalFossa/ReleaseNotes11:56
lotuspsychjelemme check rlsnotes11:56
perthowould have thought fixes would be backported to LTS?11:57
TJ-pertho: long time since I messed with prime, but as you said the PC is circa-2012 I wonder if it is one of the early dual GPU systems that actually have a hardware multiplexer, rather than it done in software, in which case the current tools may indeed have a problem11:57
perthoTJ-: yeah it's circa 2012.. Ivy Bridge (Intel Graphics 4000) + Nvidia GeForce GT 650M11:57
perthothere is no BIOS switch for optimus.. at all11:58
perthoI ran bumblebee on it years ago and running apps with 'optirun' worked fine11:58
TJ-the hardware multiplexer as I recall can only switch which GPU writes to output, whereas with the so-called 'muxless' (no multiplexer) one GPU is responsible for the output but the other can do off-screen rendering and pass it through to the other GPU11:58
pertholike, optirun glxinfo -B would tell me Nvidia was handling things11:58
lotuspsychjeTJ-: his dmesg from earlier; https://pertho.net/pb/04KVCJqm11:59
TJ-http://download.nvidia.com/XFree86/Linux-x86_64/460.84/README/optimus.html11:59
TJ-there's a summary there about mux vs muxless11:59
perthov460.84? I'm on 390.14412:00
perthoI think 418 is the highest driver version from nvidia that supports my nvidia chipset12:01
lotuspsychjepertho: yeah but your ubuntu-drivers showed only 390 for your card12:01
perthoinstructions say: # NVIDIA-Linux-x86_64-390.144.run --no-opengl-files12:02
perthobut I'm betting the ubuntu package doesn't do that12:02
aresdeath666i need a copy of debian that will work without me having to download drivers for my hp12:13
lotuspsychjearesdeath666: this is ubuntu support, try #debian12:14
perthoTJ-: prime-select intel == 3D works but only uses Intel chipset, prime-select ondemand == both cards enabled in 'lshw -C video' (and nvidia module is loaded).. however I get: Error: couldn't get an RGB, Double-buffered visual .. prime-select nvidia and a reboot means I just get a black screen (nothing will display anywhere) and I have to ssh in and run 'prime-select intel' and reboot to get my display back12:17
pertho(intel = powersaving, nvidia = performance in this case)12:18
perthoI think 'nvidia-prime' package assumes you have a 'newer' or muxless optimus?12:18
TJ-pertho: right; I dumped NVidia a long time ago due to their making it all messy and the drivers out of mainline12:18
perthoyeah my newer laptop I bought I avoided Nvidia.. but my older laptop only needed a new hard disk so I slapped a 256 GB SSD in and it all works.. except optimus :)12:19
perthothing is, bumblebee worked great!12:19
lotuspsychjepertho: the ubuntu graphics ppa also provides 390.144 so we cant try that neither12:19
pertholotuspsychje: I'm on 390.14412:20
lotuspsychjepertho: is what i meant yeah12:20
lotuspsychje!nvidia12:20
ubottuFor nvidia and matrox graphics cards, see https://help.ubuntu.com/community/VideoDriverHowto . For AMD/ATI graphics cards, see « /msg ubottu ati » and « /msg ubottu fglrxmissing » For the latest Nvidia drivers see https://launchpad.net/~graphics-drivers/+archive/ubuntu/ppa12:20
perthoand the highest version nvidia driver that supports my card is 41812:20
lotuspsychjepertho: another shot worth might be checking latest firmware for your clevo12:20
lotuspsychjehttps://my.hidrive.com/share/yze8mg-wf8#$/BIOS%20and%20EC%20Firmware/CLEVO/W_Series/W1_Series/W1x0ERx/W110ER/W110ER-Bios-R1.00.04-EC-R1.00.0312:20
lotuspsychjepertho: i wonder, did you have previous ubuntu release(s) where your model did work properly?12:23
CanisElSavioreHey.  I was trying to get skins on vlc to work.  pointed it to the skins2.so file, and now vlc will not load.  even when uninstall and run from the terminal I keep getting this message...12:24
CanisElSavioreTheme parsing error: main-dark.css:2470:0: Expected a valid selector12:24
CanisElSaviore[000055b05cabf6f0] skins2 interface error: unable to attach stream_directory, treat as XML!12:24
CanisElSaviore[000055b05cabf6f0] skins2 interface error: no XML found in theme /usr/lib/x86_64-linux-gnu/vlc/plugins/gui/libskins2_plugin.so12:24
CanisElSaviore[00007f3488c53690] xml xml reader error: XML parser error (line 1) : Document is empty12:24
CanisElSaviore[000055b05cabf6f0] skins2 interface error: no skins found : exiting12:24
tomreyn!paste | CanisElSaviore12:25
ubottuCanisElSaviore: For posting multi-line texts into the channel, please use https://paste.ubuntu.com | To post !screenshots use https://imgur.com/ !pastebinit to paste directly from command line | Make sure you give us the URL for your paste - see also the channel topic.12:25
CanisElSavioreapt purging doesn't clear it.  Logging out, then in again doesn't clear it.  I may be doing steps out of order.12:25
CanisElSavioreSorry12:25
lotuspsychjeioria: just on time for a weird issue!12:25
iorialotuspsychje, really ? :þ12:26
pertholotuspsychje: my W110ER is on 1.02.0912:26
lotuspsychjeioria: pertho here has a 20.04 on 5.11 with an optimus card on a clevo where the nvidia doesnt like to work https://pertho.net/pb/04KVCJqm12:27
pertholotuspsychje: yeah I think it worked on 14.0412:27
CanisElSaviorehttps://paste.ubuntu.com/p/MgXYYhYmNX/12:27
perthoI had 14.04 on this laptop back in the day12:27
lotuspsychjepertho: thats long time ago heh12:27
perthoioria: yeah, worked back in 14.04 with bumblebee, optirun, etc.. but with these new-fangled nvidia drivers.. doesn't work12:28
lotuspsychjeioria: powersaving mode works, but the switch to performance mode gives black screen12:28
tomreynCanisElSaviore: i'm not sure what exactly you did - this might be good to know. the messages seem to tell us that the vlc skin2 code tried to interpret the (shared library) file /usr/lib/x86_64-linux-gnu/vlc/plugins/gui/libskins2_plugin.so as (text based format) XML.12:28
iorialotuspsychje, i see12:28
BluesKajHi folks12:28
tomreynCanisElSaviore: that could only fails since shared library files are compiled bytecode12:32
CanisElSavioreI pointed it there thinking there were skins in that file.12:32
tomreynCanisElSaviore: you probably followed some guide / how-to, and if so, should tell us which12:33
ioriapertho, what you have installed ? 390 ?12:33
CanisElSaviorenow, whatever is in my system making it go there will not purge.12:33
CanisElSavioreI just did what i do in windows...I thought.12:33
tomreynCanisElSaviore: thinking is good. :) but you must have made some changes as well, which now makes your vlc try to load skins from /usr/lib/x86_64-linux-gnu/vlc/plugins/gui/libskins2_plugin.so - probably something in your home directory12:34
CanisElSaviorevlc is not currently installed, and I still get the same message.12:34
CanisElSavioreyes i did12:34
lotuspsychjeioria: yeah he's on 390.14412:35
perthoioria: 390.144 yes12:35
CanisElSavioreI used preferences instead of the vlc skin search, and install from the plugins menu that I din't realize was there untill a few minutes ago.12:35
tomreynCanisElSaviore: so what did you change in your home directory? and what is it that you do that now triggers this message, with vlc uninstalled?12:35
ioriapertho, a bit old... what does 'ubuntu-drivers list' show ?12:36
perthoioria: https://pertho.net/pb/QYBf7i5b12:36
CanisElSavioreI'm pretty sure it's that I pointed the "use custom interface" option in the preferences menu to try getting a skin, and pointed it to that skins2.so file, and I shouldn't have.12:37
ioriapertho, dpkg -l | grep nvidia | nc termbin.com 999912:37
CanisElSavioreThat's the only actual change I made12:37
tomreynCanisElSaviore: vlc configuration file for your user are likely stored in ~/.config/vlc/12:38
tomreynif you'll remove them or edit them to remove the reference to the sharede library, this will probably solve the problem12:38
CanisElSavioreis there a way I can get a more verbose output when vlc is run from the terminal so I can find which file is being referenced, and I can clear that particular path from it?12:39
CanisElSaviorehmmm ok12:39
perthoioria: https://termbin.com/l8x112:39
ioriapertho, lspci -nnk | nc termbin.com 999912:40
tomreynCanisElSaviore: there's cvlc, a command line interface variant of vlc which may provide more output on a temrinal by default. there may be ways of making vlc (and cvlc) log more verbosely, and there is strace which you can use to check which files a software is accessing.12:40
perthoioria: https://termbin.com/j6ea12:41
tomreynbut i think just fixing/removing/moving/renaming the configuration files will likely be sufficient12:41
=== CoCoHaxPenguin is now known as \[
perthoioria: right now prime-select is in on-demand mode12:41
perthowhich is why the nvidia and i915 are both loaded12:41
=== \[ is now known as \}
=== \} is now known as a_
=== a_ is now known as Andrew
ioriapertho, dpkg -l | grep linux-generic | nc termbin.com 999912:42
tomreynAndrew: please limit your nickname changes while on this channel12:43
perthoioria: that's just a one-liner: ii  linux-generic-hwe-20.04                    5.11.0.27.29~20.04.11                 amd64        Complete Generic Linux kernel and headers12:43
CanisElSavioreI12:44
CanisElSaviorem using whereis to delete all vlc folders first12:44
ioriapertho, sorry,  dpkg -l | grep linux-iamge | nc termbin.com 999912:44
ioriapertho, sorry,  dpkg -l | grep linux-image | nc termbin.com 999912:44
perthoioria: https://termbin.com/67lyq12:45
pertho(BTW I checked booting into 5.8.. mismatched nvidia driver or something)12:46
ioriai was asking you to reboot with that12:46
perthoioria: 08:27 | pertho > lotuspsychje: in 5.11, nvidia-smi produced output, in 5.8, it gives an error: Failed to initialize NVML: Driver/library version mismatch12:47
tomreynCanisElSaviore: you should not delete files which belong to packages that are still installed.     apt list --names-only *vlc*   would tell you what potentially vlc-related packages apt thinks are still installed. and there could be snaps as well:   snap list *vlc*12:47
KolusionDoes anyone know if Ubuntu 20.04 LTS has a way to freeze a directory for copying, copy the directory, which then gets released after copying is complete?12:47
ioriapertho, have you tried to purge nvidia , reboot and reinstall it ?12:48
perthoreboot into 5.8 and reinstall?12:48
perthopurge nvidia* ?12:48
ioriapertho, nope;  purge nvidia , reboot and reinstall it with the 5.11 kernel12:48
tomreynKolusion: you could place that directory on separate file system and then remount that file-system in read-only mode.12:48
perthoOK will do12:49
ioriapertho, you know how ?12:49
tomreynKolusion: or you could recursively mark files as immutable, but that's probably not what you want.12:49
perthowhat is it, just apt install nvidia-390 ?12:49
tomreynKolusion: why are you asking this?12:49
Kolusiontomreyn: I can't because the files will still need to be used during that process.12:49
Kolusiontomreyn: I need to backup a live database.12:50
ioriapertho, sudo apt purge nvidia-driver-39012:50
perthoKolusion: mysql? postgresql?12:50
Kolusionpertho: PostgreSQL12:50
perthoKolusion: pg_dumpall will do what you want I believe12:50
tomreynKolusion: oh this is still about the 'snapshot backup', i told you what i think i know there already.12:50
perthoor if you use zfs you can stop postgresql, take a zfs snapshot, then start it back up12:51
Kolusionpertho: Yes, but I need the snapshot of the database at the same time of my web server files and mail server files.12:51
Kolusionpertho: Server can't be taken offline.12:51
perthothen you'll have to do pg_dumpall, and rsync the web/mail server files somewhere12:51
perthoioria: OK gonna reboot brb :)12:52
ioriapertho, wait12:52
ioriapertho, sudo apt autopurge12:52
CanisElSaviorehmm.  I'm installing the newer vlc v4  I worked too long today to get my huion tablet just the way I want it on a multo monitor setup to let stupid vlc video window glitches stop me.12:52
Kolusionpertho: rsync doesn't freeze the source.12:52
perthozfs snapshot would12:53
Kolusionpertho: rsync would also not be used at the same atomic time with pg_dumpall.12:53
Kolusionpertho: I don't have time to learn ZFS.12:53
perthoKolusion: does the website change that frequently?12:54
Kolusionpertho: Not now it doesn't, but it may in future.12:54
perthotime to learn zfs then :) it's really handy12:54
Kolusionhahahahahaha12:54
KolusionI'm sure it is.12:54
perthoif you want snapshots of the filesystem in time, zfs is the answer12:54
KolusionI have a solution already, but was hoping for something easier than doing it.12:54
perthoI believe LVM does snapshotting too12:55
perthobut you need free space left over in the PE for it12:55
Kolusionpertho: Yeah, but I know a file volume method, but I only need a few directories and not the entire volume.12:55
Kolusionpertho: Yes, LVM is what I was talking about.12:55
Kolusionpertho: I will tell you the solution I already have. One moment while I find the tool name I need to explain it...12:56
perthoioria: hmm ok I reinstalled nvidia-driver-39012:56
ioriapertho, dpkg -l | grep nvidia | nc termbin.com 999912:56
perthoright now it's set to 'nvidia' for prime-select query .. I dunno what'll happen if I reboot (may lose display)12:57
perthoioria: https://termbin.com/cmi812:57
Kolusionpertho: Fuckin hell, I can't find the name of the app!12:57
ioriapertho, ok12:58
perthoioria: be back in a bit need to eat .. thanks for your help so far and thanks to lotuspsychje too :)12:58
ioriaok, me too12:59
lotuspsychjegood luck!12:59
KolusionFuckin hell!!113:00
KolusionDoes anyone know the name of that tool like rsync that can copy files and keep them synced on the fly?13:00
KolusionIt's a replication tool.13:01
lotuspsychjeplease keep the language family friendly in support Kolusion13:01
Kolusionlotuspsychje: There are no families in here.13:01
KolusionALRIGHT! I FOUND IT!13:02
KolusionIt's called lsyncd!13:02
KolusionWhat I plan on doing is making a virtual machine with a database running, using lsyncd to keep the database files synced in real time, then I can shut down the database server in the virtual machine and backup the database there while the live server stays running. What do others think? Clunky? Effective?13:04
=== westor is now known as Guest8655
Kolusiontomreyn: I see you have some dungeons and dragons pic on your github account. You sound like one of those womanless loser Linux users that has been to a party like 3 times in your life. Please confirm.13:08
KolusionLMFAO13:08
ravageBye bye 👋13:08
KolusionOh no!!13:08
krytarikWay to never get helped again.. O_o13:12
ravageHe never wanted help. Just attention13:12
krytarikWell, I didn't read a whole lot of the relevant scrollback..13:14
perthomaking a vm and use lsyncd.. sounds overengineered anyway13:24
perthosometimes the simplest solution is the most effective, but oh well13:24
perthoioria: I am going to reboot and see if I get a black screen (prime-select query shows 'nvidia')13:25
perthoioria: holy smokes.. it works! https://pertho.net/pb/q9Ok4UDX14:21
perthoI guess something got out of kilter with the nvidia driver.. purging and reinstalling seems to have sorted it14:21
perthothere's only one problem though.. was testing using steam/portal 2.. and got: traps: portal2_linux[23375] general protection fault ip:f2255a49 sp:ffa3c39c error:0 in engine.so[f2019000+8d4000]  so I'm going to swap back over to the intel gpu and see if those errors stop14:31
perthoOK all works now15:22
perthoamazing to breathe new life into the old laptop.. thanks lotuspsychje and ioria for all your help!15:22
ioriapertho, no problem15:22
uchihahello15:25
lotuspsychjeioria pertho hehe i should not have skipped the good old purge/reinstall trick lol15:45
lotuspsychjenice find :p15:45
SimplarI'm from Windows, and trying to get rid of old ubuntu's GPT record. How to do it without losing Windows?16:00
SimplarI intend on installing another version of Ubuntu and don't want the old one to mess around16:00
gurkishould i expect msbc to work with my bt headset when using the latest version coming from the ubuntu 21.04 repo?16:45
gurkii swapped to pipewire and enabled it as described in https://www.redpill-linpro.com/techblog/2021/05/31/better-bluetooth-headset-audio-with-msbc.html16:46
gurkii cannot select a codec for my input16:47
gurkithere seem to have been some recent changes as suggested in https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/1006 but im not quite sure what is to be expected with the version shipped with current ubuntu, hence the kinda specific question in here16:47
ubottuIssue 1006 in pipewire/pipewire "Regression in mSBC support?" [Closed]16:47
i-garrisongurki: this may depend on kernel version16:47
gurki5.11.0-31-generic #33-Ubuntu SMP Wed Aug 11 13:19:04 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux16:48
gurkifeel free to ask for anything else that might be relevant, im a bit puzzled at this point16:48
gurki... possibly the headset, its a sony wh-1000xm416:51
gurkithey dropped apt(x) going from xm3 to xm4, might that stop me from using msbc?16:52
i-garrisongurki: no, xm4 was reported to work at least once16:55
i-garrisongurki: msbc should work with linux-modules 5.11.0-11 or later16:57
SimplarI am very surprised16:58
i-garrisongurki: but not sure about 21.04 pipewire; with impish at least pulseaudio should work with msbc and maybe pipewire as well16:58
SimplarMy nVidia GeForce GTX 1650 Ti is correctly recognized at system information, but when I do lspci | grep VGA, I get VGA compatible controller: NVIDIA Corporation Device 1f95 (rev a1)16:59
Simplarwhy is that?16:59
gurkiis there a reasonable way to determine where this goes wrong?17:00
=== lordrishav_ is now known as LordRishav
gurkioh my pw-cli output seems broken17:02
gurkibut this might be a mere linebreak17:02
khushanthello17:05
gurkihttps://pastebin.com/ajfSbqPq17:05
gurkijumping to a daily-builds thing isnt really an option on this machine17:06
khushanti have an issue in update command17:06
i-garrisongurki: mind sharing 'pactl list cards' ?17:07
khushanthttps://pastebin.com/TjpaBmC417:07
tomreynkhushant: can you post this?   grep -hEv '^([ ]*#.*)?$' /etc/apt/sources.list{,.d/*.list} 2>&1 | nc termbin.com 999917:10
khushantneed to type that command in terminal ?17:11
gurkihttps://pastebin.com/ipmd4ajL17:11
gurkii-garrison:17:11
tomreynkhushant: you could copy and paste it there, if you dare to. otherwise we can do it manually17:12
khushantokay17:12
i-garrisongurki: did you tried changing profile to headset-head-unit17:12
tomreynkhushant: the idea there is to get the content of your apt repository configurations17:12
khushanthttps://termbin.com/jpqr17:12
gurkiyes, that will leave me with the cvsd codec and no option to change it to another one17:13
gurki(to be more precise: i only get to select /headset audio (hsp/hfp)/ , there are no other options)17:14
SimplarNah, um17:15
Simplarlspci | grep vga doesn't show me 1650 Ti, instead I still see NVIDIA Corporation Device 1f9517:15
Simplarin 20.10, it's displaying fine17:15
tomreynkhushant: remove the "universe" in the line which currently says "deb http://archive.canonical.com/ubuntu hirsute partner universe"17:16
Simplarbut idk how to make 20.04 to display it17:16
khushanthow to do that ?17:16
tomreynkhushant: use the activities menu to look for the "Software & Updates" application17:17
tomreynclick on "other software"17:17
oerheks_maybe the .in mirror is on holliday?17:18
oerheks_happened before, no updates17:18
tomreynoerheks_: in this case it's because canonicval partner repository has no "universe" section, just "partner"17:18
khushantthank you so much17:18
khushantnow its fine17:18
oerheks_oh good spot17:19
tomreynkhushant: you're welcome. maybe you can tell whoever you copied this from (if you remember) that it's an incorrect configuration17:19
i-garrisongurki: you have 0.3.24, and setting 'bluez5.msbc-support = true' should enable msbc; you probably want to ask on #pipewire at oftc for more details17:20
i-garrisongurki: I can only debug pulseaudio and you need 15.0 (e.g. in impish) to test mSBC17:21
khushantcan i make my files app semi- transparent ?17:21
gurkiguess ill do that, the # on this network doesnt seem to be very active17:23
gurki*the pipewire #17:23
khushantcan i use android apps in linux17:34
tomreynkhushant: there are emulators and virtualizations. the easiest way to set it up may be anbox and google's android studio17:37
khushantthan 1st i go for anbox, i try to do it my self if i need help, will come back :)17:38
tomreynmake sure you read their faq first so you'll know what to expect. i don't think it comes with most applications, such as the play store, by default.17:39
khushant[ 2021-09-05 17:40:56] [session_manager.cpp:146@operator()] Failed to start as either binder or ashmem kernel drivers are not loaded17:41
=== oerheks_ is now known as oerheks
privato89Salve a tutti17:55
privato89Ho bisogno di aggiornare 3 pacchetti che non vogliono proprio aggiornarsi17:55
privato89vi allego lo screen così che possiate capire17:55
privato89Uploaded file: https://uploads.kiwiirc.com/files/6d1d3c70265795415d39f41eec2558d5/Schermata%20del%202021-09-05%2018-34-13.png17:55
privato89Non mi permette in alcun modo di aggiornarli17:55
seereprivato89: chances are higher someone answers if asking in english I guess17:58
ledeniprivato89, or check #ubuntu-it17:59
privato89Sorry, I tought it was the italian channel18:00
privato89I can't upgrade the packages on my system18:00
polveI tried to help him in #ubuntu-it, but was unable to solve his problem, so I sent him here18:01
polveit didn't occurred to me to specify it is an english speaking channel18:02
i-garrisongurki: their official channel is at oftc18:02
privato89I need to upgrade 3 packages, but I cant cause there are issues that I cant solve.18:04
polveapt upgrade: https://bpa.st/5ISA apt list --upgradable: https://bpa.st/2HZQ cat /etc/apt/sources.list https://bpa.st/KJFQ18:04
zteamHi, I'm having a very slow connection from a wireless usb-dongle with Ubuntu 21.04 (I'm lucky if it can reach 2 Mb) other devices in the same area can reach over 100 Mbit, and the dongle itself is rated as 54 Mbps18:18
lotuspsychjezteam: can you mention the chipset of the dongle and the kernel version too please, so volunteers can think along with you18:22
zteamlotuspsychje, how do I find out the chipset of the dongle?, kernel version is 5.11.0-31-generic #33-Ubuntu SMP Wed Aug 11 13:19:04 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux18:25
lotuspsychjezteam: sudo lshw -C network18:26
=== Roedy is now known as Guest4857
=== Guest4857 is now known as Roedy
zteamsorry for the delay, this wifi is lika a rollercoaster18:39
zteam:P18:39
zteamlotuspsychje, https://paste.ubuntu.com/p/TW7vjK7sr3/18:40
zteamSeriously, they require login to view paste.ubuntu.com nowadays? *sigh*18:42
zteamlotuspsychje, new output pasted here instead, https://pastebin.com/wtF1wvYG18:46
lotuspsychjezteam: says disabled, you might wanna take a look into dmesg what happened18:47
DexelHuh what's the reason they require you to log in18:48
ravageprobably spam protection in some way18:49
zteamlotuspsychje, you are right, that's a silly mistake from me, I use my cellphone now to connect to IRC and since, my wifi connection was unstable I did choose "turn off" instead of disconnecting from the wifi network18:52
zteamlotuspsychje, this one is corrected https://pastebin.com/qQ5mj3Mm18:53
zteamravage, I could buy this, but they clearly says you need to login to view the paste to, that kinda defeats the whole purpose of it18:55
jeremy31zteam: does iwconfig in terminal show power  management enabled?18:56
zteamjeremy31, yes, and dmesg does show lots of complains about that too, but disabling it doesn't result in any increase in connection speed18:58
jeremy31zteam: did you change the conf file in /etc/NetworkManager?19:02
zteamoutput from dmesg | tail https://pastebin.com/VPE5ahX519:03
zteamjeremy31, no I only tried to disable it temporarily with iwconfig19:04
jeremy31zteam: This command will disconnect you for a few seconds but it might help>  sudo sed -i 's/wifi.powersave = 3/wifi.powersave = 2/' /etc/NetworkManager/conf.d/default-wifi-powersave-on.conf && systemctl restart network-manager.service19:08
zteamjeremy31, it replied: "Failed to restart network-manager.service: Unit network-manager.service not found."19:12
jeremy31zteam: try a reboot then19:12
zteamjeremy31, will do19:12
zteamjeremy31, I'm back, unfortunetly it didn't improve the connection19:17
jeremy31Zteam run the 2 commands at https://gist.github.com/jeremyb31/a2bee9856d8c13f42f1835bc31bf9480 in terminal and post the termbin URL here19:18
zteamjeremy31, here we go https://termbin.com/ijcq19:23
jeremy31Zteam, you have a strange error but I don't know what the fix might be, it is in the last line of the script results19:29
zteamjeremy31, yes I have seen it too19:35
=== erica is now known as birb
=== bugsniper_ is now known as bug_sniper
bestsec/join #grapheneos and meet the most secure mobile OS ever existed. Its developer strcat aka Daniel Micay is the best hacker ever existed challenges Linus Torvalds himself for linux kernel security debate.20:32
mauhello20:33
mauis anyone here?20:34
ThinkT510many are here20:34
maugood20:34
=== birb is now known as erica
mauwhat's the purpose of the channel?20:35
jeremy31Ubuntu Support chat20:35
ThinkT510this is a support channel for getting help with using ubuntu20:35
oerheksalways read the topic20:35
mauyes thanks to everyone. I am new, i will read it20:36
=== beaver is now known as pong
privato89Hi21:32
privato89I cant upgrade 2 packages on Focal21:32
tomreynprivato89: that's a bummer. are you looking for help with it? then we'd need more info.21:37
tomreynyou could post a screenshot to imgur.com and link it here, or, better yet, use apt and share the command you ran and its output on a pastebin.21:39
privato89Hi21:45
privato89I post my issue21:45
privato89https://bpa.st/4RUA21:46
privato89can't upgrade these 2 packages: gnome-shell-extension-prefs libgcc121:46
tomreynprivato89: are you familiar with both "apt-get upgrade" and "apt-get dist-upgrade", and the difference between them?21:48
tomreynalso note that you could add -V to learn which versions those would be upgraded to (with dist-upgrade)21:49
tomreynlibgcc1 getting upgraded this way could be a problem, if it's not just a bug/security fix.21:50
tomreyn(i'm wondering whether you may have a third party package repository configured which provides a version of libgcc1 that's newer than what's in Ubuntu 20.04 LTS)21:51
privato89Yes I do21:53
privato89I can't get something21:54
privato89If I give the command: $ sudo apt-get dist-upgrade21:55
privato89it give me this output21:55
privato89https://bpa.st/HXGA21:55
tomreynprivato89: if you understand these commands and it seems safe to run them, 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 </tmp/aptlog && rm /tmp/aptlog21:59
tomreynthis gathers more info on your apt configuration without actually changing anything.21:59
tomreynif it doesn't feel safe, then please start by sharing the output of your apt sources configurations, e.g.    grep -hEv '^([ ]*#.*)?$' /etc/apt/sources.list{,.d/*.list}22:00
privato89https://termbin.com/okno22:00
tomreynprivato89: side note: security updates should be taken directly from security.ubuntu.com to prevent delays due to mirroring.22:02
privato89oh thanks for the tip22:03
tomreynprivato89: are you cross compiling to arm, or why would you have that configured?22:03
ravageI use my own security mirror too. I make sure it's up to date. I don't see any  general disadvantage here22:04
tomreynig uess if you make sure it's up to date that's fine22:05
ravageAnd this looks like the mirror his server Provider chose maybe22:05
privato89tomreyn no I don't22:06
tomreynprivato89: what about    apt policy gnome-shell-extension-prefs libgcc1 2>&1 | nc termbin.com 999922:06
privato89https://termbin.com/2taf22:06
tomreynprivato89: hmm, so it's weird that    apt-get upgrade shows that these packages will not be held back (that alone would be fine) AND   apt-get full-ugrade   does not even consider upgrading them.22:09
tomreynnewer versions are available for either package, so they should get upgraded unless some dependency could not be fullfilled that way22:10
privato89Yeah, that is so weird22:11
tomreynyou can get more verbose info on the decisions the dependency solver takes if you like22:11
privato89sure, why not22:11
privato89we could try22:11
tomreynbut i bet you would solve this issue by just moving to security.ubuntu.com mirrors22:11
privato89what will happen if I try to remove them and to re-install them again?22:12
tomreynthere are "-o 'Debug::pkgProblemResolver = 1'" and "-o 'Debug::pkgProblemResolver::ShowScores = 1'" according to the bottom of apt.conf(5)22:13
tomreyni don't know what will happen if you remove and reinstall them. but you probably just need to wait until dependencies can be resolved for these new updates22:14
privato89So you think it doesn't depends about me?22:15
tomreynone of the cogent mirrors is probably not up to date and that's why you see this22:15
tomreyni do not understand this question, sorry, can you rephrase it? <privato89> So you think it doesn't depends about me?22:16
privato89Sorry, I meant if I should wait that someone solve that dependencies for that new update or can I do something to solve it?22:18
privato89Cause I need to upgrade dist and with those packages I can't upgrade it22:19
privato89sorry I meant that I need to upgrade do-release and those packages doesn't permise me to do it22:20
tomreynprivato89: try replacing the security mirror, see whether this solves it. come back if it doesn't.22:21
tomreynapt list --installed | grep ',local\]$' | nc termbin.com 9999      is another output that could be interesting in this context. but i don't think that's the cause. you should look through those packages before release upgrading, though. and remove any ppa's and packages + package versions obtained from those PPAs, though.22:23
privato89tomreyn: a little question: How do I replace the security mirror?22:24
privato89https://termbin.com/imzx22:25
tomreynprivato89: run    software-properties-gtk --open-tab=1 &    and remove all lines saying      focal-security     there, then click on the "Updates" tab and untick (if ticked), then tick, the first two boxes.22:27
tomreynoh my, what is this22:28
tomreynsomehow the system lost track of where these packages are from, but they are proper focal packages22:29
tomreyn(at least those i looked at)22:30
privato89There is no one line with focal-security22:30
privato89Uploaded file: https://uploads.kiwiirc.com/files/51877e084e3c5763aacb5276079f79dc/Screenshot%20from%202021-09-06%2000-29-33.png22:30
tomreynhmm then just untick the upper two boxes on the next tab, and close the window, then open it again, and tick the boxes again, then close the window again. if ti asks about updating apt sources / package cache, let it do so22:31
tomreyndid you try running do-release-upgrade after you posted the output of the lentghy command i provided above?22:32
tomreyn(the one where the output was https://termbin.com/okno )22:32
privato89maybe you mean on the previous tab?22:33
tomreynravage: is there a way for an isp to override which apt sources will be used for "$release-security" that you know of?22:34
ravageYou can modify the DNS records22:34
privato89Sure, I tried but it sais I have to update first all packages22:34
ravageBut other than that not really22:35
tomreynprivato89: hmm, actually the looks may have changed for focal, i'm looking at the software-properties-gtk version of ubuntu 18.0422:35
tomreynprivato89: you tried what exactly and what said you need to update all packages first of all?22:36
ravageMaybe he can use the default sources file for focal22:36
tomreynravage: does that exist on the file system?22:36
privato89tomreyn: Yes I tried already22:37
tomreynor did you think of unpacking this from some package (not sure which)22:37
ravagehttps://gist.githubusercontent.com/ishad0w/788555191c7037e249a439542c53e170/raw/3822ba49241e6fd851ca1c1cbcc4d7e87382f484/sources.list22:37
ravageThis looks pretty clean to me22:37
tomreynpoints to archive.ubuntu.com for security, which i guess is wrong22:38
tomreynbut other than that it could be fine22:38
ravageLast Update there is a few hours old22:39
ravageSo it should be fine22:39
tomreynprivato89: can you show this again:    sudo grep -Ev '^([ ]*#.*)?$' /etc/apt/sources.list{,.d/*.list} 2>&1 | nc termbin.com 999922:41
privato89https://termbin.com/s3o1w22:41
tomreynravage: i think the other reason no to use archive.ubuntu.com for security was to not get "staged updates" (if that'S the right term), where updates are only distributed to some users intially, then mroe and more after a while22:42
ravagehttps://dannyda.com/2020/10/03/default-contents-of-sources-list-in-ubuntu-20-04-1-lts-desktop-server/22:44
ravageUsed the us mirror22:44
ravageSo maybe change that22:44
tomreynprivato89: is the system you're working on located in italy?22:46
privato89yes22:46
tomreyni'm asking to understand which mirror is best for you.22:46
tomreyndo you know why you're using this cogent mirror?22:46
privato89sure, no problem22:46
privato89No, I don't22:47
ravagebut http://security.ubuntu.com/ubuntu/dists/focal-security/ and http://archive.ubuntu.com/ubuntu/dists/focal-security/ are really identical22:47
tomreynright now :)22:47
tomreyndid you check response headers, too?22:47
privato89no, what should I do for that?22:48
tomreynprivato89: not you, sorry, that was to ravage22:48
privato89haha ok XD22:48
tomreynravage: this is what i was refering to https://wiki.ubuntu.com/PhasedUpdates22:48
tomreynprivato89: wait a second, i'll get you a copy of /etc/apt/sources.list which you can use as a drop-in replacement22:49
privato89ok I wait, thanks22:49
ravagefrom what i read there the only staged=updates are in the updated repo22:50
ravage*updates22:50
tomreynravage: that is probably correct then, i didn't read it in a while.22:51
tomreynprivato89: close all the graphical frontends for package management / configurations that may be open, then:   sudo mv /etc/apt/sources.list{,_old_ubuntuirc} && wget -O /tmp/sources.list && cat /tmp/sources.list | sudo tee /etc/sources.list22:58
tomreynprivato89: sorry trhats incomplete22:58
privato89ok, I wait, no problem22:59
tomreynprivato89: close all the graphical frontends for package management / configurations that may be open, then:   sudo mv /etc/apt/sources.list{,_old_ubuntuirc} && wget -O /tmp/sources.list https://termbin.com/pzi9 && cat /tmp/sources.list | sudo tee /etc/sources.list22:59
tomreynprivato89: close all the graphical frontends for package management / configurations that may be open, then:   sudo mv /etc/apt/sources.list{,_old_ubuntuirc} && wget -O /tmp/sources.list https://termbin.com/pzi9 && cat /tmp/sources.list | sudo tee /etc/apt/sources.list22:59
tomreynprivato89: hopefully this time ;)22:59
tomreynprivato89: did you run it, yet?23:00
privato89Ok, now?23:00
tomreynyes23:00
privato89Yes, I did23:00
tomreynso you ran it more than once?23:00
tomreynthen we'd need to clean up23:00
privato89No, just one time23:01
privato89do I run it again?23:01
tomreynno no23:01
tomreynjust run the third variant23:01
privato89what do you mean exactly, sorry?23:02
tomreynprivato89: please run this:23:02
tomreynsudo mv /etc/apt/sources.list{,_old_ubuntuirc} && wget -O /tmp/sources.list https://termbin.com/pzi9 && cat /tmp/sources.list | sudo tee /etc/apt/sources.list23:02
tomreynonce only23:02
tomreynnone of the earlier versions23:02
tomreynthose were bad23:03
privato89this come out23:03
tomreyn!paste23:03
ubottuFor posting multi-line texts into the channel, please use https://paste.ubuntu.com | To post !screenshots use https://imgur.com/ !pastebinit to paste directly from command line | Make sure you give us the URL for your paste - see also the channel topic.23:03
privato89https://bpa.st/V7WQ23:03
tomreynso  you must have run one of the others, too23:04
tomreynprivato89: just do this now:    wget -O /tmp/sources.list https://termbin.com/pzi9 && cat /tmp/sources.list | sudo tee /etc/apt/sources.list23:05
privato89I ran only this before: https://bpa.st/NPHA23:05
tomreynok23:05
privato89https://bpa.st/PU7Q23:06
tomreynprivato89: okay, so the contents of the file    /etc/apt/sources.list   should now look the same as https://termbin.com/pzi923:07
tomreyncan you confirm this? a cursory check is sufficient23:07
tomreynit should start with a "#deb cdrom:" line23:08
privato89yes it is23:08
tomreynokay now:  sudo apt update && sudo apt full-upgrade -V23:08
tomreynthis should at most install two packages23:09
privato89I think you did it! 😍23:10
privato89Wait23:10
privato89please23:10
tomreynyes, we're not fully done, yet23:10
privato89it is still downloading and installing23:10
tomreynso it's downloading much?!23:11
privato89yes23:11
privato89a lot23:11
tomreynhmm, i'm not sure why it would do that23:11
tomreynmaybe the cogent mirrors are really outdated, or you were missing something23:12
privato89I hope the first one 😅23:12
privato89not done yet23:13
tomreynplease run   cat /var/log/apt/history.log | nc termbin.com 9999     once it's complete (not before)23:14
privato89sure, I will23:14
tomreynoooh, you had "main" missing from sources.list. i don't know why i missed that23:16
tomreynwhatever you previously did tro your apt source configuration, it was not healthy23:17
tomreynwhatever you previously did to your apt source configuration, it was not healthy. but we should have fixed this now.23:17
privato89Is that the reason why it is taken a lot of time ?23:18
tomreynyes, that's why it's downloading a lot now23:18
tomreynand this mirror should be a lot faster for you too, now, since previously you've been loading all updates from the U.S.A.23:19
tomreynthat's where the cogent mirror is23:19
privato89We got it! 🤩🤩🤩23:21
privato89I think23:21
tomreynlet's see that command output before i join the party23:22
privato89https://termbin.com/3dku23:22
tomreynprivato89: so... you actually got security updates now23:25
tomreynprivato89: first time since you installed, i assume23:25
tomreynor since you configured this cogent mirror rather23:25
privato89it should be like you say, but I dont remeber that I changed the mirror23:26
tomreynprivato89: how did you install this system initially?23:27
privato89do you mean Ubuntu?23:27
tomreynyes23:28
privato89with pendrive, with a normal installation23:28
tomreynokay, then i guess you did something to change /etc/apt/sources.list at some point. if you run   ls -l /etc/apt/sources.list_old_ubuntuirc   this may tell when this change occurred23:30
privato89Yes, today23:31
tomreynhmm, no, then that23:31
tomreynis incorrect ;)23:31
privato89Bot I added a line today at 16.00 pm23:31
tomreynanyways, i think you're done23:31
tomreynyou should reboot soon23:32
privato89I will read the file you told me to check the issue23:32
tomreynand    apt list --installed | grep ',local\]$' | nc termbin.com 9999     should be a lot shorter now?23:32
tomreyni'm not sure which file you are referring to23:33
privato89https://termbin.com/ki8dh23:33
privato89this one: sources.list_old_ubuntuirc23:33
tomreynthe file /etc/apt/sources.list_old_ubuntuirc is now either identical with your newly configured /etc/apt/sources.list or, ideally, it contains what used to be /etc/apt/sources.list23:34
privato89oh ok, I have missunderstood then23:34
privato89well, I try to reboot now23:35
privato89We solved it23:35
privato89You specially23:36
tomreynhttps://termbin.com/ki8dh lists packages which you seem to have manually installed at some point. those are packages or package versions which are not available from any of the apt repositories you have configured. this means, these packages may be outdated, will never get security updates, and they may get in the way of resolving package dependencies23:36
privato89I dont know how to thank you, would like to give you a cup of coffee if you like :D23:36
tomreynyou should carefully review this list and uninstall the packages you don't need. and for those you still need, you should fine an apt repository (or snap) providing updated versions of it23:36
privato89ok I will23:37
tomreynhehe, that's kind, proper italian coffee. i'll rather need to sleep, though23:37
tomreynso, i'll be gone unless you prefer me to wait until you rebooted?23:37
privato89haha ok I reboot and tell you23:38
privato89just 1 moment23:38
privato89really thanks23:38
tomreynyou're welcome23:38
privato89hi, so I'm sure it works23:40
privato89Which command has I to run to prove it23:40
privato89tomreyn23:41
tomreynprivato89: welcome back. :) what do you mean, what are you meaning to prove?23:41
privato89that I don't have anymore packages to update23:42
privato89There is a command to prove it23:42
tomreyn!uptodate23:42
ubottuTo ensure you have all the latest known patches and security updates for your ubuntu installation, please update with the following command: `sudo apt update && sudo apt upgrade`. See also !upgrades and !security; you may also need to run `apt full-upgrade`.23:42
tomreynso it really is     sudo apt update && sudo apt full-upgrade23:43
tomreynand neither should report any errors or warnings23:43
tomreyn(errors may be indicated by "E:", warnings by "W:")23:43
privato89https://bpa.st/X3AA23:43
privato89that is the output23:44
tomreynprivato89: this looks fine. you can remove those packages, if you like:  sudo apt --purge autoremove23:44
privato89Yes, I did23:45
privato89Finally I can to upgrade the release23:45
privato89I have 20.04 LTS and wanna update to 21.1023:45
privato89the command was: sudo apt do-release-upgrade23:46
leftyfbprivato89: 21.10 is not released yet23:46
privato89the last one after focal23:47
leftyfbprivato89: is there a reason you need to update?23:47
privato89No, I just wanted to have the last one release23:48
tomreynprivato89: right, before you upgrade, go over the https://termbin.com/ki8dh list first. also, for reference, this was probably your old /etc/apt/sources.list )note how it lacks the word "main", which is the very basic ubuntu repository you definitley need): https://termbin.com/uyiv23:48
tomreynprivato89: if you don't strictly need newer software versions - personally i prefer to stay on LTS releases.23:49
leftyfbprivato89: Ubuntu 20.04 is the latest LTS release. It'll be supported for another 4 years. 21.04 will be unsupported next month23:49
privato89oh I idn't know that23:49
tomreynyes, you'd have to upgrade again next month then23:50
privato89didn't*23:50
tomreyn!LTS23:50
ubottuLTS means Long Term Support. LTS versions are supported for 5 years on the desktop and server. The latest LTS version of Ubuntu is !Focal (Focal Fossa 20.04). Ubuntu !flavors may have different support durations, check their release notes for information.23:50
privato89ok, Thanks for the info23:50
privato89Now that I know it I think I stay with Focal23:51
tomreynsomeone wrote up a longer story on this here https://gist.github.com/tomreyn/8d7675840d7bc7389b32e4d8887ca44923:51
tomreyn(though that's mostly about HWE vs GA)23:51
tomreynso, off to bed, see you, privato8923:51
privato89Does the termbin files delete after a while? Or can I save it on my23:51
privato89bookmarks23:52
tomreynthey'll be removed after a while, a month i think23:52
privato89ok, thank you so much Tom23:52
privato89Have a good night23:52
privato89see you soon I hope, saluti dall'Italia :D23:52
tomreyn"Life span of single paste is one month. Older pastes are deleted." (Source: https://termbin.com/ )23:53
srvisnt 21.04 the latest LTS23:53
tomreyn:)23:53
tomreynsrv: no23:53
tomreyn21.04 is not an LTS23:53
tomreynthose release every two years, in even years23:53
* tomreyn afk23:54

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