Linux - Reddit – Telegram
Linux - Reddit
775 subscribers
4.19K photos
207 videos
40K links
Stay up-to-date with everything Linux!
Content directly fetched from the subreddit just for you.

Powered by : @r_channels
Download Telegram
Best way to encrypt a single partition ?

Hi all,

I'm currently dual-booting Debian and Arch on my laptop, and I was wondering what is the best way to achieve this before experimenting stuff and making my partition unusable.

[here's what I found in the Arch Wiki](https://wiki.archlinux.org/index.php/Dm-crypt/Encrypting_an_entire_system#LUKS_on_a_partition), but I'm not sure it's the right approach.

Any help will be gladly accepted.

EDIT: [LUKSIPC](https://www.johannes-bauer.com/linux/luksipc/) seems to be what I need, any comments on it ?
EDIT2: [cryptsetup-reencrypt](https://wiki.archlinux.org/index.php/Dm-crypt/Device_encryption#Encrypt_an_unencrypted_filesystem) is apparently more recent, should I prefer this method ?

https://redd.it/etbgod
@r_linux
How many of you maintain a separate machine exclusively for running PFsense ?

I will be changing ISP soon so I will have to decide if I need a dedicated machine to run PFsense.

https://redd.it/etclvl
@r_linux
Weekend Fluff / Linux in the Wild Thread - January 24, 2020

Welcome to the weekend! This stickied thread is for you to post pictures of your ubuntu 2006 install disk, slackware floppies, on-topic memes or more.

When it's not the weekend, be sure to check out r/WildLinuxAppears or r/linuxmemes!

https://redd.it/etd80l
@r_linux
Script for creating encrypted container

I wanted an easy solution to mount and unmount an encrypted container on my installation. I couldn't find anything so I made a noscript that does it. Posting it here in case it could be of use for anyone else.

On the first run it uses cryptsetup to create a luksFS container and mount path as specified by the user (creates config file in \~/.config/) before verifying that it can mount and unmount it. On subsequent runs it checks for the config file and by menu selection mount or unmounts the volume.

The code is a bit "hacky", but it does what it is supposed to on my arch installation

[https://github.com/henrikeri/container-crypt](https://github.com/henrikeri/container-crypt)

https://redd.it/etd92n
@r_linux
Refreshing to see 'Linux Support' advertised on the box
https://redd.it/eq3pcr
@r_linux
I bit the bullet and swapped to linux. This is crazy!
https://redd.it/etg6go
@r_linux
Hi guys! My gf made it for me for our 5th anniversary. Opinions are welcomed.
https://redd.it/ethtxz
@r_linux
[radical idea] Open-Source / Open Internet whitelist extension

I had the idea that a great way to promote open source, Linux, and open projects (like Wikipedia) as well as privacy rights would be to create a browser extension that blocks all sites not whitelisted for being part of that community. There are times where I want to browse a "clean" internet, rather than having to worry about being constantly linked or pushed on to the "commercial" internet, with its cancerous web pages, trackers, commercialism, and surveillance capitalistic nastiness in general.

So the extension would act basically like your typical piHole/uMatrix/etc domain blacklist, but as a whitelist for FOSS/privacy instead, and of course could be easily toggled on and off (since we do need the "regular" net sometimes... for now).

Whitelist selection would be up to the end user, and any person or group could create a list and offer it in the extension UI. It would be nice to have a simple UI where clicking its icon (or context menu options) would allow you to turn it on/off and select your "favorites" lists in case you had more than one you wanted on for quick switching *when you just gotta see that link*.

I would suggest one that only included public sites (.govs), open source websites (like Linux distros and the surrounding community eg askubuntu.com, plus FOSS software sites in general), open/non-profit internet sites (wikipedia, activists), and github/etc. Obviously, there would be some "impurities" in there, and ultimately it's up to the end user to choose my "proprietary" whitelist over a more "purist" one, but just to give you an idea of what I had in mind (this whitelist system will be evolutionary, just as the Linux software system is, of course, being designed on the same powerful principles).

The point isn't just for my own personal obsessive ~~dis~~order to be satisfied, but I think it would really help to grow the community. I think for many, myself included, the open internet is just "a nice place to go in the mix of things" and ultimately less valued *in actual use* than more closed sites (like this one). Because we have that "easy fix", we don't really push ourselves to engage with the sometimes messier fix of platforms like Mastodon (I mean, we're all here, aren't we). This keeps the communities even smaller than they could be, and keeps us from really pushing to evolve the open source/NIX software and social media into something more hospitable

(Mastodon/RIOT are not as straightforward as Reddit/Discord I'm afraid, and not only does it put off a lot of non-FOSS people, it legitimately puts off a lot of us as well, if not from joining outright then from partaking more regularly).

And in turn the "impurity" of some lists will create a lot of marginal customers for sites/apps - if they can improve in X way on privacy for instance, they can be added to Y whitelist, increasing page views/users) - that can drive the adoption of better practices throughout digital society via rules of economic demand (hijacking capitalism can be fun as a cherry on top).

I suppose Reddit wouldn't be whitelisted... oh well. I could probably use less time on here anyway :)

^^^^PS ^^^^sorry ^^^^if ^^^^I ^^^^use ^^^^"too ^^^^many" ^^^^bequotationed ^^^^phrases. ^^^^I ^^^^suppose ^^^^that ^^^^could ^^^^annoy ^^^^some ^^^^people.

^^^^Also ^^^^the ^^^^idea ^^^^is ^^^^both ^^^^radical ^^^^in ^^^^the ^^^^political ^^^^sense ^^^^as ^^^^well ^^^^as ^^^^the ^^^^tubular/awesome ^^^^dude ^^^^sense; ^^^^two ^^^^for ^^^^one, ^^^^look ^^^^at ^^^^the ^^^^deal ^^^^you're ^^^^getting ^^^^this ^^^^Friday ^^^^night.

https://redd.it/etir6h
@r_linux
Easiest way to run an interactive console for C++ coding?

I've been playing with Linux on and off for years now, but am going full Ubuntu.
I'm using Atom to code in C++, but what I really miss from Visual Studio is hitting "F5" and getting a live, interactable CMD windows where I can test the code directly.

Is there anything similar to this in Ubuntu? Would be great if I can get it working in Atom. I tried a few packages but they are too complicated for me to set up. I just want to be able to hit a few keys and get the code to compile and run. I don't want to manually browse for the source file each time.

Thanks

https://redd.it/etm0gi
@r_linux
Using bcache to save battery power (ssd+hdd)

So i had a simple idea to combine my ssd and hdd in my laptop to a single block device to minimize read access to the hdd and thus reduce the battery drain. simple right? yeah too bad there is literally no documentation (except the kernel docs) or seemingly anyone else in the internet trying the above.

the issue that arised was a random spin up to the hdd periodically that was not fixed with the usual methods (noatime, commit=120 etc) that was happening randomly almost twice a minute. through a combination of iotop and dtrace (? iirc will edit with name) i finally found that it was the actual kernel module accessing the spun down disk.

anyways, basically writeback_delay (in the sysfs bcache folder) needs a large value to prevent the constant writeback of dirty - not really dirty as it exists in the ssd - data back to the hdd, a good value is 600 (10mins) - default is 30 secs.

this made the laptop spin up the hdd basically every 10 mins on a ext4 root resulting on an additional hour of battery life.

tl;dr: do you a laptop with a ssd and a hdd? use bcache, follow the arch wiki and up the writeback_delay

https://redd.it/etngnt
@r_linux
Linux Manjaro Vram Crash

Hello everyone,

I am running Linux Manjaro XFCE on my Virtual Box machine on my macbook pro and it will always crash if I have over 128mb of Vram selected (log file and screenshots included). I tried to go to 256mb so all the animations and stuff run smoothly. I have allocated 8 virtual processors (4 cores), 16 gigs of ram and 40 gigs of storage (I am running an ssd).

Link to the Log and Screenshots.

[https://drive.google.com/drive/folders/1hrZI3BzyjZAMWBNGwwpd3zlpDtgicZX0?usp=sharing](https://drive.google.com/drive/folders/1hrZI3BzyjZAMWBNGwwpd3zlpDtgicZX0?usp=sharing)

P.S Sorry for the flair I didn't know which to pick.

Thanks in advance.

https://redd.it/eto6sk
@r_linux
ditty - Terminal-based audio player - Now with playable demo via ssh stderr> aplay
https://gitlab.com/tslocum/ditty

https://redd.it/etnf7b
@r_linux