[01:01] <marcoceppi> stub: you about?
[01:01] <blahdeblah> marcoceppi: Bit early in the day for him
[01:01] <marcoceppi> blahdeblah: he seems to always be around when I need him :)
[01:01] <blahdeblah> Well, don't let me stand in the way, then. :-)
[01:02] <marcoceppi> blahdeblah: haha, I'll just leave a question for him ;)
[01:03] <marcoceppi> stub: I want to store about 8,000 lines of text in a single column in psql. What's the best data type for that?
[03:09] <cholcombe> is juju going to support instance-type i3.large?  it says it's not valid as of juju: 2.1.0
[04:05] <stub> marcoceppi: 'text'
[04:08] <stub> marcoceppi: That will keep you happy until you approach 1GB. The json type may also be interesting if you have json or something that serializes well to json.
[07:53] <kjackal> Good morning Juju world!
[08:35] <anrah_> Newbie question about actions.. I have difficulties implementing action in a way that I have one actions.py and then just "dummy" action executables under actions-folder
[08:35] <anrah_> which just say "actions.py"
[08:36] <anrah_> output of the action says: message: 'fork/exec /var/lib/juju/agents/unit-my-charm-0/charm/actions/do-stuff: exec format error'
[08:45] <kjackal> anrah_: I am going to need moreinfo on this. Do you have your code somewhere public so I can take a look?
[08:47] <anrah_> Just a sec
[09:15] <kklimonda> should juju create bridge interfaces for all physical ones on the host?
[09:16] <kklimonda> or is there some logic behind it?
[09:17] <kklimonda> my controller is 2.0.2
[09:19] <kklimonda> (I'll try with 2.1.1 in the meantime)
[09:23] <anrah_> kjackal: got it solved, thanks anyway :) I was missing the obvious symlinks between <action> and actions.py :/
[09:24] <kjackal> cool anrah_
[09:29] <cnf> morning
[09:33]  * cnf sighs
[09:33] <cnf> error: failed install
[09:33] <cnf> any more info, juju?
[09:35] <kjackal> cnf: have you tried asking in the juju list?
[09:36] <cnf> juju list?
[09:36] <kjackal> there might have been some one with similar setup as yours
[09:36] <cnf> oh, mailing list?
[09:36] <kjackal> yes, wait
[09:36] <cnf> those tend to be my very last resort
[09:36] <kjackal> cnf<EMAIL_ADDRESS>[09:37] <cnf> hmm...
[09:37] <kjackal> cnf: agreed but i see you stuck for too long, and i cannot help
[09:37] <cnf> well, i appreciate that you care :P
[09:40] <cnf> kjackal: problem with mailing lists is that the feedback is so slow
[09:41] <cnf> and i am going forward, just step by step
[09:41] <cnf> by the time someone responds on a list, i'm generally on the next problem
[09:42] <kjackal> cnf: I see. In any case if you you find yourself stuck for too long, remember there is always the list
[09:42] <cnf> yeah, thanks
[09:43] <cnf> maybe i am trying to use broken bundles...
[09:45] <cnf> kjackal: one of my big problems is that the debug info isn't very informative, and the documentation is hard to use
[09:45] <cnf> doesn't make things easier :P
[09:46] <cnf> so i got that little part solved, i think
[09:47] <cnf> i'm watching juju debug-log
[09:47] <cnf> any way to kick a node to retry installing stuff?
[09:51] <cnf> do juju charms often use ansible? or is that just randomly this one?
[09:52] <kklimonda> 2.1 created two bridges for defined networks, but not bridge for the "management" network, and container can't reach controller
[09:58] <kklimonda> I wonder if that's what "empty" binding is for
[10:05] <kjackal> cnf: juju charms can be written in whatever language you want. You can use ansible, puppet, whatever you know best
[10:06] <kjackal> cnf: I usually login to the unit I want to check and look at the logs under /var/logs/juju/
[10:10] <cnf> kjackal: uhu, that looks to be about the same as juju debug-log
[10:10] <cnf> atm it's the only thing on my juju, so that makes it easy :P
[10:11] <cnf> I _think_ it's the ansible playbook not having the proxy set
[10:11] <cnf> i think...
[10:13] <cnf> kjackal: yep, https://bugs.launchpad.net/charms/+source/elasticsearch/+bug/1665623 already has a bug for it
[10:13] <mup> Bug #1665623: Does not install behind a proxy <landscape> <elasticsearch (Juju Charms Collection):New> <https://launchpad.net/bugs/1665623>
[10:14] <cnf> balls, ok i'll try a different bundle
[10:15] <kjackal> cnf: if I may ask, what are you interested in?
[10:16] <cnf> i am evaluating juju/maas as a means to install / manage openstack
[10:16] <cnf> but the openstack bundle is a bit complex to learn how juju works, so i picked something simple with 2 nodes
[10:17] <cnf> the openstack bundle needs 4 machines, i only have 3 for my test
[10:18] <kjackal> ah openstack is in a pretty good shape, we have a number of customers using them those bundles. You are aware of the #openstack-charms channel, right?
[10:18] <cnf> i am now :P
[10:19] <cnf> (openstack has too many channels :P )
[10:19] <cnf> joined
[10:19] <cnf> i do want to get a hang of juju a bit more, though
[10:19] <cnf> do you know of a bundle that runs on 2 or 3 machines that i can poke around in?
[10:20] <cnf> i just want to get something that i know works, and then poke around in it
[10:22] <kjackal> kubernetes-core should be small enough
[10:22] <kjackal> or spark processing
[10:25] <cnf> hmm, can't remove units / applications in error?
[10:27] <kjackal> juju remove-machne --force and then remove-appliaction
[10:27] <kjackal> cnf: or remove the model and add a new one?
[10:27] <cnf> yeah, i was considering removing the model
[10:28] <cnf> remove machine --force also worked, it seems
[10:28] <cnf> cool
[10:29] <cnf> k, lets try kubernetes core
[10:29] <cnf> and i should go for drinks
[10:29] <cnf> those HP machines take a while to boot :P
[10:31] <cnf> kjackal: great, that charm seems to have the exact same problem
[10:31] <cnf> >,<
[10:32] <kjackal> can you please file a bug?
[10:32] <cnf>  https://bugs.launchpad.net/charms/+source/elasticsearch/+bug/1665623 already exists
[10:32] <mup> Bug #1665623: Does not install behind a proxy <landscape> <elasticsearch (Juju Charms Collection):New> <https://launchpad.net/bugs/1665623>
[10:32] <cnf> i'll see what it is for this one
[10:32] <cnf> ah, nm
[10:32] <cnf> i was too quick
[10:33] <cnf> kjackal: i was looking at the old logs, the HP machines really ARE slow
[10:49] <cnf> kjackal: ok, looking good so far
[10:51] <cnf> ok, all green \o/
[10:53] <kjackal> :)
[10:54] <cnf> now lets see how to use that
[11:43] <psarwa> Hi folks. Have a question regarding relation hooks.
[11:43] <psarwa> I have two db relations with mysql and I need db-admin to execute only after shared-db has executed. Any way to do this?
[11:58] <cnf> hmm
[11:58] <cnf> the k8s core is up
[11:58] <cnf> the dashboards are not working,  it seems
[12:03] <cnf> kjackal: everything seems to work, except the dashboards :P
[12:04] <kjackal> cnf: is it because of proxy issues or because something is wrong in the bundle?
[12:04] <cnf> kjackal: the API responds, but /ui/ gives me an error
[12:04] <kjackal> which bundle did you endup deplying?
[12:05] <cnf> https://jujucharms.com/kubernetes-core/
[12:06] <cnf> so i can connect to https://ip:6443/ui/ which forwards me to /api/v1/proxy/namespaces/kube-system/services/kubernetes-dashboard
[12:06] <cnf> which tells me service unavailable
[12:06] <cnf> and i did do `juju config kubernetes-master enable-dashboard-addons=true`
[12:07] <cnf> and my kubectl command works, as well
[12:14] <cnf> hmm, and a  juju add-unit kubernetes-worker isn't working...
[12:14] <cnf> but maybe that's a maas issue >,<
[12:21] <cnf> hmm
[12:21] <cnf> no error, just not not making the maas node
[12:21] <cnf> o,O
[12:28] <cnf> hmz
[12:28] <cnf> tireing :P
[13:57] <cnf> can juju configure network settings on different interfaces separate from maas? or does maas need to be aware of it?
[14:00] <cnf> so all my machines have a 2 x 10G LAG
[14:27] <ahasenack> lazyPower: do you have something new in the elasticsearch/kibana front?
[14:28] <cnf> ahasenack: did that break for you as well? :P
[14:28] <cnf> (it doesn't respect http_proxy settings)
[14:29] <ahasenack> cnf: I filed a bug about e/s not respecting http_proxy iirc
[14:29] <cnf> ah, was that your bug
[14:29] <cnf> i clicked the "affects me too" button
[14:29] <ahasenack> what broke for me here is kibana actually, both firefox and chrome/chromium can't type in search queries anymore
[14:29] <ahasenack> backspace doesn't work, delete doesn't work, it keeps trying to find a previous search in the history
[14:29] <cnf> weird
[14:29] <ahasenack> I think it was a browser upgrade, because it started happening with a long-lived elk deployment I have which was not updated
[14:46] <jamespage> cory_fu, tinwood_swap: what did we decide the best way todo a 'run-at-end-of-execution' type thing was in reactive?
[14:47] <jamespage> I'm experimenting with a partial step towards reactive for our legacy charm codebase and need to ensure that 'assess_status' is executed at the end of each hook exec
[14:48] <tinwood_swap> jamespage, I wrote an at_exit type thing during my testing of reactive for a blog post: http://blog.ajkavanagh.me/2016/12/30/better-charm-interfaces/
[14:49] <tinwood_swap> Basically, I used hookenv.atexit(function) to run at the end after reactive had finished calling handlers.
[14:49] <tinwood_swap> But the set_state, etc. still works without invoking new handler runs.
[14:50] <jamespage> tinwood_swap: right
[14:50] <jamespage> tinwood_swap: if you're interested - https://review.openstack.org/#/c/444318
[14:50] <jamespage> it's not passing unit or lint atm - but the charm is functional
[14:51] <jamespage> tinwood_swap: one of the challenges i had was that reactive always tries to load the interface provides.py - I mocked those out for now
[14:51] <jamespage> but I feel a base-reactive-stepping-stone layer coming on
[14:51] <jamespage> that does that as part of a tactic
[14:51] <jamespage> tinwood_swap: I quite like the idea of taking 29k lines of code out of ceph-mon :-)
[14:53] <jamespage> cory_fu - or maybe that might be better in the base layer as a layer option
[14:54] <tinwood_swap> jamespage, interesting :)  I'll take a quick look as all I'm doing is scanning old invoices so I can shred them (going back 10 years)
[14:55] <tinwood_swap> jamespage, so many files deleted! :)
[14:55] <jamespage> tinwood_swap: charmhelpers gets consumed via wheelhouse.txt so no need to hold the synced copy...
[14:56] <tinwood_swap> yeah, and the review looks *huge* :)
[14:59] <magicaltrout> your life is so rock and roll tinwood_swap
[14:59] <magicaltrout> \o/
[14:59] <skayskay> stub: hi, I notice the snap-layer checks the version during install
[14:59]  * tinwood_swap smiles
[15:00] <skayskay> stub: I think juju 2.1 should also be okay with resources, but it's checking for 2.0
[15:07] <cnf> what does a blue ball mean next to an application in the GUI ?
[15:08] <magicaltrout> it means your $hit is building okay
[15:08] <magicaltrout> https://jenkins.io/blog/2012/03/13/why-does-jenkins-have-blue-balls/
[15:08] <magicaltrout> japanese traffic lights! :)
[15:09] <skayskay> stub: oh! I just checked the hookenv call. it's checking >= and I didn't realize that at first. all good
[15:09] <cnf> hmm
[15:09] <cnf>  either the GUI broke again
[15:09] <cnf> or my deploy is completely broken
[15:09] <cnf> i have no idea which one it is
[15:11] <cnf> no, it's not the gui
[15:12] <cnf> the openstack deploy is completely fucked
[15:12] <magicaltrout> they're the best types of deployment
[15:13] <cnf> no machines come up etc
[15:13] <cnf> but no units
[15:13] <cnf> none
[15:13] <cory_fu> jamespage: Instead of saying that you need assess_status to run "at the end of each hook context" it would be better to think of it as needing to run after any handler that might mutate the state. In that case, it would be better to be explicit and have those handlers end with a set_state('assess_status') and the assess_status handler remove that state when it has run.
[15:29] <cnf> hmm, what would cause me to end up with http://termbin.com/fyzz ?
[15:33] <magicaltrout> marcoceppi: i'm in DC the last week in March if you're around
[15:55] <marcoceppi> magicaltrout: isn't that the week of kubecon berlin?
[15:55] <magicaltrout> duno i'm not hip enough for such events
[15:55] <magicaltrout> yeah seems so
[15:55] <magicaltrout> oh well
[15:56] <magicaltrout> I'll just swing by The Donald instead then
[15:56] <magicaltrout> see if he wants a round of golf
[15:57] <jamespage> cory_fu: yeah thats an approach
[16:12] <cmagina> huh, so with juju 2.1.0 for xenial on arm64, action-get of an integer of size 1000000, results in a scientific notation return: 1e+06 while 1000 returns 1000. is that expected behavior?
[16:12] <marcoceppi> cmagina: this has been a problem for quite a while
[16:13] <marcoceppi> cmagina: use --string-args when running an action to make sure it doesn't reduce down
[16:13] <cmagina> marcoceppi: ok, thanks. not sure why i hadn't seen it before
[16:14] <marcoceppi> cmagina: let me see if I can find you the bug
[16:48] <marcoceppi> stub: thanks
[18:29] <stormmore> o/ Juju world


[08:54] <astronouth7303> what is the correct way of starting a task (specified by respawn) with arguments?
[08:54] <astronouth7303> just put them in the respawn line?
[08:54] <_ion> respawn program arg0 arg1
[08:54] <_ion> is an alias for
[08:54] <_ion> exec program arg0 arg1
[08:54] <_ion> respawn
[08:55] <_ion> IIRC. :-)
[08:55] <astronouth7303> and what would be the correct way to tell upstart to start the command as a different user?
[08:56] <astronouth7303> place su in the start script?
[08:56] <_ion> Unless i remember wrong, upstart doesn't yet support that directly  you might use e.g. "exec start-stop-daemon ... --chuid foo:bar program -- arg0 arg1"
[08:57] <astronouth7303> ug
[08:58] <astronouth7303> how many deamons have upstart files?
[09:38] <cortana> the problem with start-stop-daemon is that it does not create a PAM session, so things like libpam-tmpdir will break the daemon
[09:42] <Solaris> hi fellas.
[09:42] <Solaris> I was wondering what kind of boot time improvement upstart gives.
[09:42] <Solaris> How much are we talking?
[09:42] <Solaris> 50% reduction? 10% reduction?
[09:44] <_ion> Ask again when we have reached the state where an OS is booted entirely by upstart jobs. :-)
[09:46] <_ion> The point of upstart isn't boot time improvement, although that may be a side effect because of parallel startup etc.
[09:47] <Solaris> Ah i see _ion
[09:48] <Solaris> I just noticed ubuntu is busy telling everyone.
[09:48] <Solaris> So I figured I would ask after them.
[09:49] <_ion> The latest Ubuntu release is still using upstart's sysv compatibility layer. The next release's boot process might be completely based on upstart.
[09:49] <Solaris> interesting.  So what IS the main goal of upstart?
[09:51] <_ion> See http://www.netsplit.com/blog/articles/2006/08/26/upstart-in-universe , title "Why change it?"
[09:52] <_ion> That page, as well as other interesting pages, are linked from http://upstart.ubuntu.com/ (which is in the topic).
[09:52] <Solaris> thanks
[09:54] <Solaris> Oh right.  Yes, I see the problem.  When you look at it that way something really does need to be done.
[09:54] <_ion> cortana: I believe upstart is going to support PAM sessions for stuff started as a non-root user in the future.
[09:55] <cortana> yay
[09:56] <_ion>  * Per-user services; will need to use PAM to set up the session.
[09:56] <_ion>    We want to do this for "root-user services" but not for jobs/tasks
[09:56] <_ion> (from TODO)
[09:56] <Solaris> So how long until you have something that would make a stable, complete replacement for the init system?
[09:59] <_ion> That would probably be possible right now (assuming you mean init plus the startup scripts), but there are some planned design changes that are going to be implemented before that effort.
[10:00] <Solaris> right right.
[10:00] <Solaris> Well, looking forward to seeing it.
[10:00] <Solaris> Do you know which distros are going to adopt your system?
[10:02] <_ion> (Disclaimer: i'm mostly a enthusiastic bystander, Keybuk has done pretty much all the actual work.)
[10:02] <_ion> AFAIK many distros have shown interest, but probably no distribution is going to make the decision before Ubuntu's startup is running entirely based on upstart.
[10:03] <Solaris> haha!
[10:03] <Solaris> fair enough at this point I suppose.
[10:04] <Solaris> Gotta love the cross-polination possible with open-source.
[10:48] <trivash> ok can someone answer a question for me?
[10:59] <_ion> That would be quite difficult, because you left.


[00:02] <RikMills> I'm doing it in a PPA, but yes the latest git builds
[00:04] <f_ayx> does it make a different that I am on zsh instead of bash?
[00:29] <cluelessperson> I'm using dd to flash a micro sd card
[00:29] <cluelessperson> according to ubuntu, there's no medium on the sd card afterward.
[00:29] <cluelessperson> So either ubuntu isn't seeing the changes
[00:30] <cluelessperson> or ubuntu isn't writing the changes.
[00:30] <cluelessperson> f_ayx, it's just a different shell, use whatever you're familiar with.
[00:30] <cluelessperson> ---
[00:30] <cluelessperson> also, my raspberry pi isn't booting, so I suspect ubuntu isn't writing correctly
[00:36] <Maik> cluelessperson: download the raspberry pi imager and flahs the sd card with that
[00:37] <leftyfb> cluelessperson: are you sure the existing filesystem(s) on the sd card are unmounted before using dd?
[00:46] <cluelessperson> Maik, no, I'm not installing random software on my computer.
[00:46] <cluelessperson> leftyfb, yes.
[00:47]  * Maik shrugs
[00:47] <cws> you're trying to run something on an rpi, but somehow the rpi imager is random software
[00:47] <leftyfb> cluelessperson: are you using the correct /dev/location for your microsd card? ( use lsblk)
[00:47] <cluelessperson> using the option   dd conf=fsync caused it to say 500+MB/s,  and now it works.  wtf
[00:48]  * cluelessperson tries other microsd card that also exhibited the same symptoms and tries it with the original options
[00:48] <cluelessperson> leftyfb, yes, I verify by watching syslog as I insert usb drive
[00:48] <cws> cluelessperson: The RPi Imager is made by the people who make the RPi. If you use their hardware, their software shouldn't be a concern. It has a built-in option to flash various Ubuntu releases.
[00:48] <cws> cluelessperson: https://www.raspberrypi.org/software/
[00:49] <cws> So don't be rude to someone that's giving you a VERY good solution.
[00:50] <cluelessperson> cws, A.  I wasn't being rude.  B.  There's a difference between external hardware with nothing I value on it, vs a personal machine that handles funds or potentially secrets.   C.  None of that is a good rationale to install clutter on my personal machine, which shouldn't even remotely be required for any of this to work.
[00:51] <cluelessperson> cws, You don't need some "imaging software"  when literally   `cat image > /dev/sda`  generally does the job.
[00:51] <Maik> lol... clutter... a small program is clutter
[00:52] <cws> Maik: Some people will pull out any asinine excuse to justify doing things the hard way. Let 'em.
[00:52] <Maik> probably the best
[00:53] <cluelessperson> Maik, yes, random little programs where random developers often don't know so much as how to store things in proper places, is how things like your ~/.config or home directory get completely f'ed up and unmanagable.    They also increase attack surface area.  Potentials for malware, entry points to systems, and having to trust more and more developers and their software on your computer.
[00:53] <leftyfb> cluelessperson: cat is not the right tool for the job, regardless if it works for your case
[00:53] <cluelessperson> Maik, again, there are countless reasons why installing it is dumb, and like I said, when  `cat image > /dev/sda` should generally work.
[00:54] <Maik> do as you please, everybody his or hers. I use it and don't have a issue doing so. Have a good one.
[00:55] <cws> Maik: Bet they'd be done and on their way if they just used the imager.
[00:56] <cluelessperson> Maik, cws   This is why some of my cryptocurrency forums are filled with "I don't know how malware would get on my computer"
[00:57] <leftyfb> cluelessperson: lets not exaggerate. You were recommended a very simple, light and very reputable application purpose-built for your exact scenario. No reason to keep going on about it. Glad you got dd working
[00:58] <cluelessperson> You know what's reputable?   dd   purpose built for byte for byte copying images to block devices.
[00:59] <cluelessperson> and that little imager program might even use it internally.
[01:00] <leftyfb> cluelessperson: all true statements. good luck with your project. Let us know if there's anything else you need help with
[01:05] <cluelessperson> The other microsd card that was exhibiting the same symptoms, now shows up normally, without having changed the dd options
[01:05] <terminhell> hi
[01:05] <cluelessperson> So, considering I didn't change anything, this implies ubuntu / kernel is caching block device configuration perhaps.
[01:05] <cluelessperson> terminhell, sup
[01:06] <terminhell> thankfully, nadda now. done adulting for the day XD
[01:06] <terminhell> you?
[01:06] <leftyfb> terminhell: this is a support channel. Free free to chat in #ubuntu-offtopic
[01:06] <cluelessperson> I did try partprobe ,  and fdisk /dev/sda   showed "no medium found"
[01:07] <cluelessperson> suspect kernel block device config caching, or possibly a bad reader connection (despite trying >3 times)
[01:07] <leftyfb> cluelessperson: nothing as far as the sd card is being cached. I literally just dd'd the latest raspiOS and then ubuntu 20.04 server to an sd card a couple hours ago without issue
[01:07] <cluelessperson> the fact it shows up now proves it was written originally by dd.
[01:09] <terminhell> Would it be a good idea to move and increase my swap to another drive? the server i have now only gave me like an 8gig swap. But i have 128gigs of ram
[01:09] <leftyfb> terminhell: with 128G of memory, you need exactly zero swap
[01:09] <cluelessperson> sanity check my process?:   tail -f /var/log/syslog   to confirm device (/dev/sda),   dd if=image of=/dev/sda bs=4M status=progress  , sync  , eject /dev/sda
[01:10] <cluelessperson> I'm wondering if there's some kernel level usb caching/buffering going on and maybe eject interrupts it.
[01:10] <leftyfb> cluelessperson: use dmesg -Tw # over syslog, also I see no umount command in there
[01:10] <terminhell> leftyfb: so i should probably just reclaim the partition and not worry about it?
[01:10] <leftyfb> terminhell: I would
[01:10] <cluelessperson> leftyfb, I'd use  umount -lf   if I had mounted it, and I don't have the system configured to mount by default.
[01:11] <cluelessperson> (I could be mistaken, but I don't think ubuntu mounts unless I actually click something and cause it to mount)
[01:11] <leftyfb> cluelessperson: you are mistaken
[01:11] <cluelessperson> (and  mount doesn't show anything mounted as far as I've checked in the past)
[01:11] <cluelessperson> I'll double check then.
[01:12] <leftyfb> cluelessperson: I can almost guarantee you it's being mounted and this is your issue .... as I said originally
[01:12] <leftyfb> cluelessperson: plus in the SD card and : ls -l /media/$USER/
[01:13] <cluelessperson> leftyfb, yup, it is being mounted.   However I'm confused, even if I don't unmount it correctly, I'd expect the /dev/sda partitions to show up correctly later, as they are lower level.
[01:13] <leftyfb> cluelessperson: your expectations are wrong
[01:14]  * cluelessperson tests
[01:15] <leftyfb> cluelessperson: watch dmesg -Tw # in a terminal ;  # plug in sd card  ; sudo umount /media/$USER/* ; confirm sd card location with lsblk ; then dd , then just yank it out since it's not mounted. You do not need to "eject"
[01:16] <cluelessperson> leftyfb, mounting the filesystem is completely separate from the kernel not seeing the partitions though.
[01:17] <cluelessperson> so even though it was being mounted after dd, it's not that I was editing files on it, nothing to corrupt.
[01:17] <leftyfb> cluelessperson: lets keep this simple. You cannot dd an image to a storage device when there are filesytems from said storage device mounted.
[01:17] <cluelessperson> I think the original problem is  /dev/sda  showing up, but not /dev/sda{1,2}
[01:26] <leftyfb> cluelessperson: I take it unmounting and imaging solved your problem?
[01:27] <cluelessperson> leftyfb, testing now, as expected, when I reflash the block device, the partitions are just remounted.
[01:27] <leftyfb> cluelessperson: they shouldn't be
[01:27] <cluelessperson> I think this is an intermittent issue with ubuntu or the kernel.
[01:27] <leftyfb> it's not
[01:27] <cluelessperson> the issue is not occuring now, but before it absolutely was only showing /dev/sda connected on the system.   not the partitions.
[01:28] <cluelessperson> leftyfb, Why would unmounting have anything to do with whether or not you can overwrite the block device at a lower level?
[01:29] <leftyfb> cluelessperson: I don't know the specifics of it. I just know it does not and will never work unless you unmount the filesystems.
[01:30] <cluelessperson> I can understand the mounts perhaps not refreshing, or the files within the mounts.
[01:30] <cluelessperson> I don't expect the kernel to care about mounts when refreshing plugged in block devices, and scanning for partitions though.
[01:31] <cluelessperson> more reading to do! :P
[01:31] <leftyfb> cluelessperson: I don't argue with how it works, I just accept that it does and take actions accordingly
[01:33] <cluelessperson> I don't know how the kernel typically handles it, but I'm pretty certain they're at different layers of abstraction.
[01:35] <cluelessperson> I think other distributed block devices and file systems, like CEPH, gluster, and ZFS allow you to modify the block device (or sync between servers) apart from modifying files within mounts.
[01:35] <cluelessperson> but then again, they tend to have more custom/dedicated kernel modules I think?  dunno.
[01:35] <oerheks> hint: 'low level'
[01:36] <oerheks> one can grow an ext4 partition, mounted. but serious tasks as an iso image need more freedom.
[01:38] <cluelessperson> yeah,   makes sense.   I figure the kernel handles  fat and such common filesystems at a much lower level,  even built in, because it needs to be able to load the kernel image and then the root FS.   distributed filesystems are probably another story entirely.
[01:41] <cluelessperson> leftyfb, thanks for your run through.  I didn't realize ubuntu was automatically mounting.  That might have been doing something to interfere with or lock the block device
[01:42] <cluelessperson> I'll play with it to get a better sense of it and try to find documentation on it.
[02:48] <pikapika> Is ubuntu or xubuntu planning to switch to the gtk version with the copyless file chooser?
[02:51] <matsaman> pikapika: if it's the default in GNOME, they will probably automatically "switch" to it
[02:51] <matsaman> s/GNOME/GTK/
[02:51] <pikapika> matsaman, the one I have in xubuntu now has a fully functioning copy paste gtk file chooser
[02:51] <pikapika> I have heard from (a Debian person) that a newer gtk removed/reduced the copy feature
[02:51] <pikapika> (18.04 lat
[02:52] <pikapika> (I am on 18.04 lts for the record)
[02:52] <cluelessperson> Yeah, so I'm being very careful about mounting and such
[02:52] <cluelessperson> ubuntu seems to be finicky about detecting partitions of block devices
[02:53] <matsaman> GTK is open source, you can modify it however you please
[02:53] <cluelessperson> fdisk -l /dev/sda  shows the expected partitions
[02:53] <matsaman> that doesn't mean its developers aren't subject to stupid choices made out of boredom, however
[02:53] <cluelessperson> but `ls /dev/sda*` only shows /dev/sda
[02:53] <matsaman> anybody who remembers the changeover from 2 to 3 should already know that GTK can make silly changes
[02:53] <matsaman> and that GNOME, which influences GTK a lot, has done the same
[02:54] <matsaman> cluelessperson: what's the problem?
[02:54] <pikapika> matsaman, maintaining a personal fork is always painful
[02:54] <matsaman> yes it is
[02:54] <matsaman> but not as painful as replacing a software entirely
[02:54] <pikapika> Certainly
[02:54] <cluelessperson> matsaman,   I plug in a micro sd card reader.   the system shows /dev/sda     it should be   /dev/sda{,1,2}
[02:54] <pikapika> I'll have to figure out how to fit my custom gtk build into the apt
[02:55] <matsaman> cluelessperson: it should probably not be sda, but sdb or something
[02:55] <pikapika> yeah bro
[02:55] <pikapika> sda is probably your system disk
[02:55] <pikapika> don't touch that shit
[02:55] <matsaman> pikapika: I think the greater lesson here is to avoid software that has anything to do with GNOME
[02:55] <cluelessperson> definitely 100% not my system disk.  My system disk is /dev/nvme0n1
[02:55] <matsaman> that project is big on betrayal
[02:56] <matsaman> perhaps even moreso than KDE at this point
[02:56] <pikapika> The problem is I think xfce have to sort of follow its footsteps due to gtk
[02:56] <matsaman> cluelessperson: is there something wrong with your partitions?
[02:56] <pikapika> hands are tied
[02:56] <cluelessperson> matsaman, only /dev/sda is showing, but the kernel is not detecting the partitions.
[02:56] <cluelessperson> matsaman, something's wrong with the kernel not showing partitions, maybe
[02:56] <matsaman> pikapika: I do think it unlikely Xfce will leave GTK anytime soon
[02:57] <pikapika> I meant
[02:57] <pikapika> xfce is forced to follow gnome to a degree because of gtk
[02:57] <matsaman> cluelessperson: you can't mount your partitions?
[02:57] <matsaman> pikapika: that's what I thought you meant yes
[02:58] <cluelessperson> matsaman, the system doesn't detect the partitions
[02:59] <matsaman> cluelessperson: you said fdisk does, didn't you?
[02:59] <cluelessperson> matsaman, yes,  fdisk literally reads the /dev/sda that does show up, and detects the partition structure on it
[03:00] <matsaman> cluelessperson: so what's the problem? You can't mount the partitions?
[03:00] <cluelessperson> matsaman, I'm not sure if you're reading what I'm writing
[03:00] <cluelessperson> the system doesn't detect the partitions
[03:00] <cluelessperson> ls /dev/sd*  only shows    /dev/sda
[03:01] <cluelessperson> no sda1, sda2,  when they should be there.
[03:01] <matsaman> "fdisk ... reads ... and detecs the partition structure on it"
[03:01] <matsaman> s/detecs/detects/
[03:01] <cluelessperson> fdisk is just a utility for interacting with disks directly
[03:01] <matsaman> is 'ls /dev/sd*' crucial to your process somehow?
[03:01] <cluelessperson> fdisk is not the system
[03:02] <cluelessperson> when the microsd card is plugged in, the system detects it, creates a device file at  /dev/sda,   should scan it and also make  sda1, sda2 for each partition it finds, it does not
[03:03] <matsaman> why should it do that?
[03:04] <cluelessperson> because it typically does that for any device you plug in
[03:05] <matsaman> sounds like a real horrible problem
[03:45] <cluelessperson> now wpa_supplicant won't connect to wifi
[03:45] <cluelessperson> it's just reading disconnected
[04:11] <spandex> Hello
[04:11] <isapgswell> hi
[04:12] <isapgswell> anyone know about nvidiadrmfb ?
[04:12] <isapgswell> like radeondrmfb
[04:13] <spandex> Does anybody know how to stop unattended-upgrade?
[04:13] <cws> spandex: Why would you want to?
[04:13] <spandex> Cause it does not allow me to install other packages.
[04:14] <spandex> Do you know any work around for that?
[04:14] <cws> Then it is in the process of installing something, and you shouldn't try to stop it. Let it finish.
[04:15] <spandex> Can I disable it temporarily?
[04:15] <cws> No, because its already running. Let it finish.
[05:46] <sub526> Hi all, I'm having Ubuntu 18.04.5 LTS PC. In my PC I see that kernel auto updates and I want to prevent kernel auto update feature.. Can someone help me on this?
[05:47] <sub526> Right now 5 different kernels are installed : https://pastebin.ubuntu.com/p/rFKbKRKYgW/
[08:04] <benoliver999> I'm getting 'cups pki expired' when I try to print, anyone seeing this?
[08:04] <benoliver999> I've googled it, bit of a dead end
[08:07] <benoliver999> Ah interesting,  one machine that did do-release-upgrade works fine
[08:07] <benoliver999> Two fresh installs, not so much
[08:08] <benoliver999> Printers...
[08:26] <k3tan> i'm getting some serious "FAILED" notifications during the bootup of my ubuntu servers on virtualbox. I have a video here: https://www.youtube.com/watch?v=s5BWy7kTxxQ if anyone wants to take a look at it at advise what could fix this?
[08:29] <sabasedigh> Does anyone know what the font is this? http://transfer.sh/NZBTl/Screenshot%20from%202021-03-29%2012:53:36.png
[08:40] <osse> https://www.myfonts.com/WhatTheFont/
[08:47] <superschnell> Hi all. I've noticed that a php module I use (blackfire) saves itself in /etc/php/7.4/{cli,fpm}/conf.d/ as 99-blackfire.ini, a regular file, not a symlink to /etc/php/7.4/mods-available/blackfire.ini. I've modified this to be the case. However, using phpenmod and phpdismod doesn't "remember" this 99 sequence number, and when re-enabled, uses 20. Is there no mechanism to have this sequence number
[08:47] <superschnell> persist across a disable/enable? Note that this isn't a module-specific issue - phpenmod and phpdismod do not appear to have any mechanism to restore the sequence number for any module.
[09:34] <benoliver999> Ignore my previous message, it was an expired cert on the printer. tbh I thought that was just for the webgui
[09:48] <imrjd> hi folks
[09:49] <Maik> hello imrjd
[09:50] <imrjd> whts the channel for chit chat?
[09:51] <Maik> offtopic whic you schould know
[09:51] <Maik> !discuss
[10:47] <f_ayx> Hi channel I am on Ubuntu 20.04 and I've installed KDE Plasma Desktop how do I upgrade to KF5 to 5.7* I'm currently on v5.69. thanks
[10:54] <ThinkT510> f_ayx: how did you install plasma?
[10:57] <ThinkT510> if it was through the default repositories then the short answer is there won't be an upgrade. if it is through a ppa then you'll need to contact the ppa maintainer to see if they will upgrade their packages.
[10:57] <f_ayx> via terminal
[11:13] <f_ayx> ThinkT510: Ah default repo :-/
[11:36] <golliver> Hi. Could anyone help me using the e2undo command with /media/ubuntu/d5c220f8-bd51-4075-a8a6-e292e864572e/sda1_fsck/e2fsck-sda1_resize.e2undo ?
[12:43] <BluesKaj> Hi folks
[12:43] <VMGuy23> Hello, of you have a support question, say it here, if not, join #ubuntu-offtopic for offtopic discussion.
[12:43] <VMGuy23> *if
[13:10] <isapgswell> hey
[13:10] <isapgswell> look my /dev/input
[13:11] <isapgswell> by-id    event0  event10  event12  event14  event16  event18  event2   event21  event23  event25  event27  event3  event5  event7  event9  mouse0
[13:11] <isapgswell> by-path  event1  event11  event13  event15  event17  event19  event20  event22  event24  event26  event28  event4  event6  event8  mice    mouse1
[13:11] <isapgswell> i have only 1 mouse
[13:11] <isapgswell> usb mouse
[13:14] <jatt> !pastebin
[14:26] <Dro> Hello
[14:27] <Dro> What sizes do you recommad for / and /home ? (ubuntu 20.04) ?
[14:28] <Dro> I guess I need at least 100 GB for /home but not sure about "/"
[14:28] <VMGuy23> geez, I have less than 100GB for ubuntu in total!
[14:29] <jatt> 10GB for / should be enough
[14:29] <Dro> VMGuy23: it maybe depends of use.. Personnaly I use ubuntu for almost everything
[14:29] <cws> Dro: How much space do you have in total?
[14:29] <Dro> cws: 1TO
[14:30] <cws> You could easily give 50GB to /, including a swap file, and not even feel it.
[14:30] <Dro> jatt: I'm not sure 10GB will be enough, in my current system I have 27GB and its fully used
[14:30] <Dro> /dev/sdb5        27G   26G  132M 100% /
[14:30] <Dro> /dev/sdb3        64G   54G  7.1G  89% /home
[14:31] <cws> The other question is, on a single disk, why bother splitting them at all?
[14:31] <jatt> yes it depends on your needs, for me I've:
[14:31] <jatt> /dev/nvme0n1p5   63G  7,7G   52G  13% /
[14:31] <jatt> with full xfce
[14:32] <Dro> cws: to make it easy when formating later (you can always have your //home data separated of the system)
[14:32] <jelly> Dro, use LVM instead of putting filesystems on partitions, keep most space unallocated, and resize LVs with filesystems when needed
[14:33] <jelly> extending LVs and most filesystems can be done online without downtime
[14:33] <Dro> jelly: the default ubuntu installation use LVM?
[14:33] <jelly> I don't remember
[14:33] <cws> It's a checkbox.
[14:33] <jelly> but then you don't have to think about sizing in advance
[14:34] <Dro> jelly: but even when putting partitions, we can always remove a partition and add its space to ubuntu.. no need for unallocated space
[14:37] <cws> Dro: Which is far more complicated than leaving unallocated space and being able to extend a logical volume with a single command.
[14:37] <Dro> cws: right!
[14:38] <cws> So use LVMs, leave most of your space unallocated until you need to.
[14:38] <jelly> Dro, unless the geometry is _just right_ that might require downtime and moving things around
[14:46] <leftyfb> Dro: unless you have a specific need, you do not need separate partitions for anything, including swap if you have at least 16G of memory
[14:46] <leftyfb> Dro: anything else is personal preference for specific purposes or "just because" and isn't really useful
[14:58] <jil> hello
[14:58] <jil> when using snap where does the bin goes ?
[14:59] <jil> I have vlc 3.0.8 installed with apt-get, I install vlc 3.0.12 with snap but vlc -V is still 3.08
[14:59] <adm001mi> hi all, got a question about ubuntu 20.04... I disabled the gui with systemctl disable gdm3. On reboot it's still on tt7, but I want it to go to tty1... is this possible? So yes, how?
[14:59] <jil> Where did the snap vlc go ?  I see it in snap list
[15:00] <leftyfb> jil: remove the apt package if you want to use the snap
[15:00] <jil> ok, I did  apt-get remove vlc.  Strangely vlc 3.0.8 is still there.
[15:00] <leftyfb> adm001mi: https://ubuntuhandbook.org/index.php/2020/05/boot-ubuntu-20-04-command-console/
[15:01] <jil> I did not dare do a apt-get remove vlc-* because to many package were going to be removed.
[15:01] <adm001mi> thx leftyfb
[15:01] <jil> how safe do you think it is  to do apt-get remove vlc-* ?
[15:02] <jil> leftyfb: still I would like to understand where does snap install binaries ?
[15:02] <leftyfb> jil: /snap/bin/vlc
[15:05] <imbezol> anyone have a link to the proper instructions on how to disable systemd-resolved?
[15:12] <leftyfb> imbezol: why do you want to disable systemd-resolved?
[15:14] <imbezol> leftyfb: it has a bug that is breaking a lot of websites for me and until it's fixed i need to have DHCP set my DNS server directly in /etc/resolv.conf
[15:15] <leftyfb> imbezol: what bug?
[15:15] <imbezol> or run dnsmasq, or whatever... just need to remove resolved
[15:16] <imbezol> https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1921636
[15:16] <imbezol> affects linkedin, google, hotmail, redhat, etc.
[15:18] <van777> imbezol: I'd fix that installing dnscrypt-proxy
[15:20] <imbezol> i have a cacheing DNS server 15 feet from me and i'm connected to it via 10 gig
[15:21] <imbezol> putting another cache on my desktop is possible.. but really this is a temp fix and i'd like to be able to switch back and forth...
[15:21] <imbezol> disable / enable systemd-resolved, so i can work this bug
[15:21] <imbezol> really all i want to know is how to remove the cache
[15:22] <imbezol> i can disable systemd-resolved easily enough... but how do i tell it to update /etc/resolv.conf normally with the DNS server given by DHCP?
[15:24] <jil> leftyfb: thank you
[15:28] <Muligan> I think I screwed up
[15:29] <Muligan> running an Ubuntu 16.04LTS guest within esxi, I've increased the virtual disk, then ran gparted live iso, expanded it there, however now to get LVM to expand
[15:29] <Muligan> I didn't realize it was an LVM
[15:30] <Muligan> https://pastebin.com/mGD1Piup
[15:33] <Muligan> bah
[15:33] <Muligan> got it
[16:02] <jelly> Muligan, at work we setup VMs with a tiny 500MB or 1GB disk just for /boot, and second disk for everything else with LVM _without partitions_, that way we can grow the disk and PV and whichever LV without any downtime to resize partitions or having to reboot to make the kernel acknowledge new partition sizes
[16:08] <Muligan> jelly, yep, I did that, and got it working
[16:09] <Muligan> forgot about pv and lv resizing
[16:09] <Muligan> usually w/lvm volumes, i just drop in another vmdk, and expand over to it
[16:14] <jelly> aye
[16:14] <kilde> Help! When I print from a PDF, it only prints on a corner of the page. How to fix this? Ubuntu Studio
[16:26] <narbeh> hello everyone, I want to compile openssl 1.1.1k (latest) on ubuntu 16.04, over (OpenSSL 1.0.2g  1 Mar 2016), will it break anything?
[16:28] <leftyfb> narbeh: I would not do that. Your better solution would be to upgrade Ubuntu to a release that isn't going to be EOL next month
[16:31] <narbeh> leftyfb: I see, thanks, and if there is no way to upgrade at the moment?
[16:36] <lotuspsychje> narbeh: there is a !pinning method but not sure thats adviced to do on openssl
[16:36] <lotuspsychje> narbeh: i would also go the route leftyfb said, mount higher ubuntu release with a higher package version
[17:53] <munsking> hello, i'd like to be able to open ssh connections by clicking on a link on a website, if i click a link that starts with ssh:// i can choose a terminal to open it with but the terminal window doesn't open. does it need a certain syntax or something?
[18:11] <van777> munsking: try https://chrome.google.com/webstore/detail/secure-shell-app/pnhechapfaindjhompbnflcldabbghjo
[18:11] <munsking> van777: i'd like to open the link with whatever program the user wants to, since it needs to work on windows and linux
[18:12] <van777> As I've read, ssh:// is not supported mime type..
[18:13] <irgendwer4711> hi, so when will Thunderbird 78.8 Update will be ready?
[18:19] <leftyfb> !latest | irgendwer4711
[18:21] <irgendwer4711> the is a big bug in 78.7
[18:22] <irgendwer4711> updats is in testing ppa for weeks...
[18:23] <Ditiris> when i try to delete a download with the same name and thus a (1) i get an error? bash: syntax error near unexpected token `('
[18:24] <Ditiris> but then i can use sudo rm *.zip and everything works fine. why is that?
[18:25] <tomreyn> whats the command you run, which provides this bash error message?
[18:25] <tomreyn> and which ubuntu version are you running?
[18:26] <Ditiris> rm *.zip, 20.04 LTS
[18:27] <tomreyn> but didnt you just say that'erverything works fine' when you run 'rm *.zip'?
[18:27] <Ditiris> sorry, only when i do sudo rm *.zip
[18:28] <Ditiris> if i just do 'rm *.zip' then it will delete artifacts.zip but not the others
[18:28] <Ditiris> and i get the error message
[18:29] <tomreyn> you must have passed some argument containing the character'(' to get an error message of "bash: syntax error near unexpected token `('", though.
[18:31] <Dro> Hello
[18:31] <Dro> Do you think this partitions config will be good : 100 GB for / and 150 GB for /home ?
[18:32] <Dro> (for Ubuntu 20.04)
[18:32] <cws> Dro: Just use LVM and leave space unallocated as what suggested previously.
[18:32] <mtc> Ditiris do you know that you can prefix special characters with a backslash "\" ?
[18:32] <cws> Dro: There's no need to allocate that much space to the root.
[18:33] <Ditiris> these are downloads from firefox
[18:33] <Ditiris> but it happens even if i just create two files using touch
[18:33] <Dro> cws: the problem is that I don't have any idea about LVM.. I usually prefer the sure path :D (something that I already tried)
[18:33] <Dro> cws: for the root space, I found out that Docker containers uses too much space
[18:33] <cws> LVM is a sure path. Now would be a great time to learn.
[18:34] <Dro> for my current system
[18:34] <Dro> and I have everytime to liberate space in / while I have 30GB currently
[18:37] <Ditiris> https://paste.ubuntu.com/p/W8QPssnGkZ
[18:38] <leftyfb> Ditiris: find ~/Downloads -name *.zip -exec rm {} \;
[18:40] <Ditiris> leftyfb: any idea why just 'rm *.zip' doesn't work?
[18:40] <leftyfb> Dimitris: globs
[18:41] <leftyfb> sorry, busy at the moment to get into more details
[18:41] <summonner> if you have too many files to delete, the * expansion will fail
[18:41] <tomreyn> Ditiris: it normally would, something must be special about your shell
[18:41] <tomreyn> simple test case, no error messages: mkdir -p /tmp/test; cd /tmp/test; touch 'file1.zip' 'file2.zip' 'file(3).zip' 'file(4).zip' '(f)ile(5).zip'; echo 'before rm:'; ls -1; rm *.zip; echo; echo 'after rm:'; ls -1
[18:42] <tomreyn> (and deletion succeeds)
[18:42] <summonner> find will fork the rm, so infinite zip files won't break the request to delete them... also:   find ~/Downloads -iname \*.zip -delete    is a better version
[19:09] <PeGaSuS> so, I installed Ubuntu on a laptop with a broken screen, attached to an external monitor
[19:09] <PeGaSuS> now, I can't see the login screen anywhere
[19:10] <PeGaSuS> it's supposedly hidden at the left. is there any way to bring to the front on the external monitor (I don't have the normal monitor attached)
[19:25] <superleaf1995> hi
[19:25] <superleaf1995> so my intel i7 laptop
[19:25] <superleaf1995> i put ubuntu liveiso
[19:25] <superleaf1995> accidentally disconnect usb
[19:25] <superleaf1995> screen goes black
[19:26] <superleaf1995> i try to turn it off but IT WONT TURN OFF
[19:26] <superleaf1995> please help
[19:26] <superleaf1995> and it seems to NOT want to turn off
[19:26] <superleaf1995> and makes some fan noises
[19:26] <leftyfb> superleaf1995: hold down the power button until it turns off
[19:26] <superleaf1995> wont work
[19:27] <leftyfb> superleaf1995: it will, hold it longer
[19:27] <superleaf1995> ok
[19:27] <leftyfb> superleaf1995: or unplug the power and battery(if accessible)
[19:27] <superleaf1995> nope
[19:28] <superleaf1995> cant deattach battery either
[19:30] <superleaf1995> the laptop is an
[19:30] <superleaf1995> intel i7 with nvidia geforce mx250 and u can touch the screen
[19:35] <leftyfb> superleaf1995: contact the manufacturer for help. This is not an ubuntu issue at this point
[19:51] <erle64-> .
[19:55] <PeGaSuS> I eventually fixed my issue
[19:56] <PeGaSuS> it's amazing how there's always something online to solve small things on Ubuntu
[19:56] <van777> PeGaSuS: true
[19:59] <PeGaSuS> took me a while to bypass the issue, but now all works as expected
[20:00] <superleaf1995> uh
[20:08] <today911> hey! does ubuntu keep track of commands run from the terminal? and does it do some automatic adjustments? I mean, I ran my program that does some search on a drive and printfs some progress alog with some debug info... and after a while, I can no longer see the printfs that are part of the search, until after I press CTRL+C ?
[20:08] <superleaf1995> OK
[20:08] <superleaf1995> so i waiteed for it to drain battery
[20:08] <superleaf1995> guys i hope it turns on normally now :((((
[20:08] <superleaf1995> if not i will commit the scream
[20:11] <superleaf1995> no way
[20:11] <superleaf1995> it does not turn on normally
[20:14] <leftyfb> superleaf1995: you'll have to contact the manufacturer of the laptop. This is no longer an Ubuntu support issue
[20:15] <superleaf1995> ok
[20:15] <leftyfb> today911: no, nothing gets recorded as far as what a script is doing unless you install something to do so
[20:17] <today911> leftyfb: thank you!
[20:18] <today911> I just do not understand what could have happened then? I even put a fflush(stdout) in my while loop, doe not help; then I printf("press any key..."); getchar(); still I can not see the previously printed printfs?
[20:21] <today911> I got it! I resized the terminal... and so, somehow it kept buffering stuff?
[20:23] <today911> Is this a normal behaviour?
[23:04] <ELFrederich> I'm running a 20.04.2 on my desktop and also have a server on AWS.  Why do I get different formats for this command:  /usr/bin/date -d '-2 days'
[23:04] <ELFrederich> Locally I get ... Sat 27 Mar 2021 07:03:34 PM EDT
[23:05] <ELFrederich> On server I get ... Sat Mar 27 23:05:48 UTC 2021
[23:05] <cws> ELFrederich: Check your $LANG or $LC_TIME variables.
[23:06] <ELFrederich> LANG=en_US.UTF-8 vs LANG=C.UTF-8
[23:07] <cws> And there you go.
[23:07] <ELFrederich> I'm trying to create a date that curl will accept with --time-cond
[23:07] <cws> If you set LC_TIME to something before running date, you can ensure a common format.
[23:07] <ELFrederich> will this always work?  LANG=C.UTF-8 /usr/bin/date -d '-2 days'
[23:07] <cws> Yup.
[23:08] <ELFrederich> ideally I'd get a UTC time
[23:09] <ELFrederich> LANG=C.UTF-8 /usr/bin/date -u -d '-2 days'
[23:09] <cws> LANG=C.UTF-8 TZ=UTC /usr/bin/date -d '-2 days'
[23:09] <cws> ELFrederich: That SHOULD do what you need.
[23:10] <ELFrederich> man... this AWS instance has some serious drift... it's in the future
[23:10] <ELFrederich> Sat Mar 27 23:12:08 UTC 2021
[23:10] <cws> lolwat
[23:10] <cws> That's two days ago, sure.
[23:10] <ELFrederich> the minutes
[23:11] <cws> Sure, its two days ago, UTC.
[23:11] <cws> Not that far off.
[23:11] <cws> I get what you mean, though.
[23:12] <ELFrederich> I'd think anything more than a 5 seconds would be serious
[23:13] <cws> The amount of clock skew that you can tolerate is determined entirely by what the server is doing.
[23:13] <cws> Or if you have any kind of time-dependent crypto operations going on, like TOTPs.
[23:14] <ELFrederich> hmmm, why doesn't this work?  ssh my-server "bash -c LANG=C.UTF-8 TZ=UTC /usr/bin/date"
[23:14] <ELFrederich> it works without setting the environment variables.
[23:15] <ELFrederich> I put it before the bash and now it works.  I wanted to get the dates right next to each other
[23:16] <ELFrederich> ssh my-server 'LANG=C.UTF-8 TZ=UTC bash -c /usr/bin/date' && LANG=C.UTF-8 TZ=UTC bash -c /usr/bin/date
[23:16] <ELFrederich> Mon Mar 29 23:18:11 UTC 2021
[23:16] <ELFrederich> Mon Mar 29 23:16:01 UTC 2021
[23:16] <ELFrederich> oh well... now I'm getting side tracked.     I stand corrected
[23:47] <jess> aint she lovely
[23:55] <frad> what app could I use to convert a x264 mkv into x265? Aim it to reduce size without losing quality
[23:55] <frad> and, can I bulk convert?
[23:56] <matsaman> frad: ffmpeg
[23:57] <frad> ffmpeg seems to be awfully versatile...
[23:57] <matsaman> ffmpeg -i foo.mkv -c:v libx265 bar.mp4
[23:57] <matsaman> yup, it's amazeballs
[23:57] <matsaman> https://trac.ffmpeg.org/wiki/Encode/H.265
[23:57] <frad> wow
[23:57] <frad> ffmpeg -i foo.mkv -c:v libx265 bar.mkv, where 'foo.mkv' is the output and 'bar.mkv' the input, correct?
[23:58] <matsaman> no first the input, then the output
[23:58] <matsaman> and there's not likely any reason to stick with mkv, I would just use mp4
[23:58] <frad> why would I want the output to be mp4?
[23:58] <matsaman> the only reason to stick with MKV would be ... certain subtitle formats, I think
[23:59] <frad> is mp4 with x265 smaller that mkv with also x265?
[23:59] <matsaman> no, they're just container formats
[23:59] <matsaman> h.265 is h.265 is h.265