[13:46] <GridCube> hi
[14:15] <sublevel> hi GridCube .  on IRC you can just start speaking/asking questions, no need to wait for someone to say hello
[14:17] <GridCube> :) thanks sublevel, i just missed that this is not the -offtopic channel, :P was just saying hi
[14:17] <sublevel> hi :)
[14:48] <Supa> Hi guys. How do I set up "Preferred Applications" to use a specific text editor for *.txt files? https://docs.xfce.org/xfce/exo/preferred-applications
[14:50] <sublevel> if you right click a .txt in the file manager -> open with other application -> is there a tickbox to set as default?
[14:51] <Supa> Yeah I did that, but sometimes it reverts to another text editor like Mousepad rather than Sublime Text.
[14:52] <sublevel> are they being detected as a different filetype in the Type column in the filemanager?
[14:52] <sublevel> linux doesn't pay much attention to file extensions, as I understand it
[14:53] <Supa> I don't use Thunar as I replaced it with Caja, so maybe I have to install the Mate preferred applications tool?
[14:53] <Supa> or install it?
[14:55] <akxwi-dave_> using thunar to set the defaults works for me, so it maybe a caja thing while they are not staying as selected
[14:55] <Supa> maybe
[14:56] <Supa> I moved from Ubuntu MATE to Xubuntu as I prefer the Xfce desktop, but there are certain things I like from MATE like Caja. It may be because I have a bit of a "Frankenbuntu" setup as to why things are not working right.
[14:58] <Supa> I did notice that the MATE Preferred Applications does have more options that the Xubuntu one. This was why I was wondering if I could add custom options to that.
[14:58] <akxwi-dave_>  I used to be the same, I used to prefer gnome files until I started to use Thunar more, and now wouldn't go back
[14:58] <akxwi-dave_> worth a try
[14:59] <Supa> Yeah I do like Thunar I have no isses with it. I've even written some custom scripts for it, it's just I've used Caja for so long that its part of my workflow. Especially with the "Split view".
[15:00] <akxwi-dave_>  Give the custom options a try and see if that fixes it for you
[15:00] <sublevel> uh-oh,  now you're tempting me to go frankenbuntu
[15:00] <Supa> I'll have a play with it. At present the only solution I've found is to uninstall any and all other text editors other than the one I specifically wish to use.
[15:01] <Supa> hehe sublevel
[15:01] <sublevel> I just went lubuntu 16.04 -> xubuntu 18.04 and am trying not to get too distracted by tweaking everything :)
[15:02] <Supa> The beauty of Linux is that the OS lets you do this stuff.
[15:03] <akxwi-dave_> true, but it may be worth installing thunar along side caja
[15:03] <Supa> I do still have Thunar installed.
[15:03] <akxwi-dave_> for me the right click oipen terminaal here is a god send
[15:04] <akxwi-dave_> try using that to change the default text editor and see it that causes problems
[15:04] <Supa> yeah I have that in Caja too
[15:07] <remline> In Xubuntu 19.04, evidently F4 (in Thunar) will open a terminal in the current path. (cf. https://wiki.xubuntu.org/releases/19.04/release-notes)
[15:10] <remline> Unfortunately, the new Thunar keyboard shortcuts do not work for me. Perhaps it is because I upgrade to 19.04 from 18.04?
[15:11] <Supa> ok I solved it. When I export code from the application it makes a file in /tmp so I right clikce don the temp file and set it to use the preferred Text Editor from there. Problem solved, thanks guys.
[15:11] <Supa> clicked
[15:30] <akxwi-dave_> remline, just checked the F4 option in Thunar is working fine for me.. it maybe a setting thats been brought over during the upgrade thats stopping  it
[15:32] <remline> akxwi-dave_, thanks, that sounds like a useful shortcut! I'll hunt for the proper config file.
[15:32] <sublevel> ~/.config/Thunar/accels.scm  possibly
[16:16] <remline> sublevel, thanks, modifying accels.scm worked great. The only trick was I had to look up the unique IDs in uca.xml.
[16:17] <sublevel> oh good, what did you end up putting in there? I wonder if it could work on 18.04 as well
[16:18] <sublevel> oh you can just pop the id into a <Actions>/ThunarActions/uca-action-  ?
[16:20] <remline> Hmm, I bet so. Here is what I did: https://paste.ubuntu.com/p/jCGR7dCrhg/
[16:21] <remline> I didn't modify uca.xml at all, but note that it defines the two custom uca-actions that I added to accels.scm.
[16:26] <sublevel> thanks,  ah I see -  I have two actions in uca, the one with %d  doesn't work but the %f  one does
[16:26] <sublevel> ...when called from the shortcut key
[16:32] <remline> sublevel, ah, what does %d represent (vs. %f)?
[16:36] <sublevel> the containing directory of the selected file   https://www.linux.com/tutorials/extend-xfces-thunar-file-manager-custom-actions/
[16:38] <sublevel> e.g. if I'm in my home directory and downloads is selected, I'd prefer the shortcut to open a terminal in ~ rather than ~/downloads
[16:41] <remline> sublevel, here are my three cases: If I select nothing, F4 opens the visible directory. If I select a folder, F4 opens in that folder (which I think is part of what you want). If I select a file, F4 does nothing (not so useful...).
[16:43] <sublevel> oh of couse, I can just click to deselect everything first - yep that's good
[16:44] <sublevel> ...but only if there's some blank space beneath the file list
[16:44] <remline> Still, that is curious that %d doesn't work. I can't think of why that would be.
[16:48] <sublevel> huh, if I change %f to %d  in uca.xml it does work, it's the other action that was already %d that is doing nothing.  weird.  not going to play with it further
[16:49] <sublevel> oh it's because the first action is tagged  <directories/>   and the second is tagged with various file types
[20:54] <xubuntu9w> Hello, I have a question. How can I install 18.04 lts on my laptop with 2 drives? Need raid1 (mdadm) encryption and efi support
[20:57] <xubuntu9w> I have tried installing mdadm on the live installer, creating the raid and installing the system with automatic partitioning on the raid but grub was unable to install
[21:12] <tomreyn> xubuntu9w: you could use the default server installer. but in the end, the easiest approach may be to manually partition, then use debootstrap
[21:19] <tomreyn> i have a VM setup here which is a software raid-1 with dm-crypt-luks encrypted / (incl. /boot), booting in UEFI mode. so pretty close to what you were looking for. back then, when you hadn't forgotten about this chat you had logged into on browser tab 34.
[21:20] <xubuntu9w> Still here, downloading server image and looking for documentation. Thank you for replying
[21:23] <tomreyn> great, you're an exception to the rule :)
[21:27] <xubuntu9w> Nice to hear :) Burning the server iso into an usb key right now. So I'll make a raid of the drives then manually create the partitions right?
[21:30] <tomreyn> if you'll want the setup i described you won't be able to use the installer. if you don't mind having /boot unencrypted, using the installer may work.
[21:33] <tomreyn> you'd want partitions esp, boot, raid on both drives (esp and boot only on one), then raid-1 the two raid partitions, then dmcrypt-luks on top of the raid, then LVM on top of that, then the file systems on those LVs on top
[21:34] <tomreyn> actually you could make /boot a raid, too, but you'll need to do this post installation, i dont think the installer likes that.
[21:35] <tomreyn> esp must be a simple partition and vfat file system (non raid) or your bios may run into troubles.
[21:35] <xubuntu9w> having /boot redundant would be great, so the machine would boot even if one drive breaks
[21:35] <tomreyn> s/bios/uefi/
[21:36] <tomreyn> it wont unless you have a mechanism which manually mirrors esp
[21:37] <xubuntu9w> Got it, might make a script for that that keeps efi partition syncd between the disks
[21:37] <xubuntu9w> But can't find how to use debootstrap
[21:40] <tomreyn> debootstrap you'd use from a usb (but uefi) booted live system (such as the desktop installer) after partitioning, after creating the raid and encryption layer and lvm and file systemas and mounting them. but before chrooting, installing kernel image, update-inintramfs, update-grub, grub-install
[21:42] <tomreyn> it's just a small script for just installing a simple (originally debian but also) ubuntu system.
[21:47] <xubuntu9w> So I'll make partitions, raid and configure lvm, make filesystems. After I mount them i run debootstrap?
[21:54] <tomreyn> xubuntu9w: if you'll use deboostrap rather than the installer, yes, that's right.
[21:54] <tomreyn> you forgot dmcrypt-luks though
[21:54] <tomreyn> that's be between raid and lvm probably
[21:54] <tomreyn> *that'D be
[21:59] <xubuntu9w> Ok, I'm going to try that out. Thank you very much!
[22:02] <tomreyn> you're welcome, good luck.