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

Powered by : @r_channels
Download Telegram
Expanding a Volume



Hello all, I'm back for a second round of Ubuntu help.

I have acquired a HyperV VM and it's run out of space. I need to maintain the data within the VM so I simply expanded the .vhd size in Hyper-V Manager. I've done this hundreds of times for Windows OS VM's but never had a Linux based VM.

How would I go about expanding this volume? I've tried to do some research and have found several articles that almost get me there but then a step in the process doesn't make any sense based on the options in front of me.

Any help in accomplishing this would be much appreciated!

So far I have ran cfdisk and I can see sda5, my full volume listed as an LV2M_member, and right below it I see the expansion amount listed as Free Space.

I was following these steps, but when I got to the part involving the start and end blocks the numbers weren't lining up so I q'd out there.

https://redd.it/l2c2mx
@r_linux
Best practice for executable location?

Forgive me for I am still learning Linux, but one of the things I'm big into are best practices and security. I'm learning slower since I'm trying to understand things, but I'm hopeful that it will help me in the long run.

That being said, for this particular instance I am creating a Call of Duty server. The server is fairly basic: there is a main folder which contains the server files. Outside of the main folder is the cod_lnxded executable which runs the server. Many tutorials online that I see are copying these to the /home/user/.callofduty directory and running the server from /home/user/.callofduty/cod_lnxded. I've also seen one guide put the .callofduty folder in /bin/.callofduty.

My question here is why is it being done this way? Since the server is running in a Docker container, I am creating the user, assigning the user's permissions to the files, and running the server as the user so that it doesn't run as root. Is this the reason that the user directory is being used? Should this server be located in the /srv folder instead, or is there a more appropriate location for it?

Just trying to understand why things are being done the way they are. Thanks for the help!

https://redd.it/l216n3
@r_linux
Anything to 'contains' package, a little bit Docker-style but more relax ?

Hello everyone,

I'm looking for something that allows to package a development environment.
Something like this:

- I need package A, B, C
- then on another project I need package D which conflicts C
- So I need something that allows me to plug in A, B, C and take it out when I don't need, then plug in D, back and forth, in a simple way

It's not only about convenience but if ever some packages mess up the system, I can just take it out and get back my fresh new system. So theses must be in a container of some kind.

I've been using Docker before for this purpose but it's too much of tweaks, since Docker is really meant for complete isolation.

I've heard about Singularity, is it something for this use case ? Otherwise anything else ? I've also heard of Bedrock but not sure what is it.

Thank you for the suggestions !

https://redd.it/l2evy3
@r_linux
I want to start using linux

I want to start using linux (rn I use windows) but I don’t know what linux to start with, and I don’t know if I will be able to familiarize myself with it. Should I switch or no?

also, if anyone has any important things I should know before switching, please tell me! :)

https://redd.it/l2gxa9
@r_linux
State of "modern" local storage (btrfs, bcachefs, Stratis, VDO, ZFS, dm-integrity, etc.)

I can't be the only one that is... perplexed by the state of modern local storage on Linux. The documentation for a lot of these, especially Stratis, VDO and dm-integrity seems to be sparse, and no one but Red Hat really seems to be embracing the first two. It's hard to even find out if Stratis properly supports RAID yet. dm-integrity seems like it could be a huge deal, and yet it's mostly utilized in blog posts, combined with md-raid. btrfs has been cyclically shunned and embraced over the years, with the latest being Fedora 33 now utilizing it as the default supposedly. XFS is apparently having CoW support hacked on. bcachefs was up for mainlining recently, or the beginnings of it, though no new news has come in some months, and the actual status of where the FS is at feature wise is pretty inconsistent. ZFS, as usual, is well documented and battle tested, but has the horrible annoyances with licensing issues.

So what is the actual state of Stratis, VDO, dm-integrity? Will other distros embrace it? Is btrfs finally reaching some sort of trust? Will bcachefs be what everything moves to in the end? Documentation is contradictory and inconsistent almost across the board for all these competing solutions.

https://redd.it/l2i0vi
@r_linux
PSA: If your system freezes randomly and you have a Nvidia GPU w/ proprietary drivers, it's a driver bug

Nvidia driver version 455 or newer has a bug that causes the system to freeze randomly. I have seen reports that this issue occurs on Arch and Arch-based distros (such as Manjaro). If you have this problem, downgrade the driver to version 450 until a fix becomes available.

https://redd.it/l2j8kk
@r_linux
mnm, an open source project to replace SMTP/email

The mnm project is building a legitimate email replacement: a client[1\], a server[2\], and a simple protocol (TMTP)[3\] between them. (Legitimate, i.e. n-identity, decentralized, store-and-forward, open source.)

mnmnotmail.org
twitter.com/mnmnotmail

Both client and server are tested on Linux (amd64 binaries). The client UI runs in a localhost browser tab, rendered by Vue.js. The project has had nine preview releases since Spring 2019.

Contributors welcome!

[1\] github.com/networkimprov/mnm-hammer
[2\] github.com/networkimprov/mnm
[3\] github.com/networkimprov/mnm/blob/master/Protocol.md

https://redd.it/l26n8w
@r_linux
Free software vs propertiery

Heyo!

I just wondered how you guys see software. I completely switched to linux in June 2020 after realizing everything i do on the computer is not necessarily windows exclusive (Well, for the most part - some games don't work due to Kernel-Level Anticheats and stuff).

Now, as a software developer in the .NET world i really like how things are working out right now. And i really would like to sell software (or make money with software) at some point. But, i also really like the idea of free software.
I guess, if i ever do something like that, i would just make a donation option - but that wont ever be enough to make a living of it probably.

I do not have any specific product i am planning to sell, i just wonder how you guys think about the free- vs propertiery software aspects.

https://redd.it/l1wrdy
@r_linux
What does the general Linux community think about distros like Android and Chromium/ChromeOS?

The reason why I'm asking this is that I rarely see Android and Chromium/ChromeOS referred at all when talking more in depth about the history of Linux, etc. They are distros of Linux and if you were to count all devices running linux(Computers and Smartphones) in a graph including computers of all kinds(Desktops, Mobile Computers, Laptops, Servers, etc), Linux may be the most used kernel out there, if not, then only behind by a few percentiles.


Is it that the community just overall sees it as too different and doesn't care much about it, or is that most of the community didn't know it was actually Linux.

https://redd.it/l2ak53
@r_linux
Archbox, an easy to use Arch Linux chroot enviroment with some functionalities to integrate it with your existing Linux installation.

Hi r/linux! I love doing things in GNU/Linux (and i love breaking it). Ever since i start using it, i was surprised how capable and flexible it is compared to other operating system, and then i got to know chroot.

Then, I created Archbox! a Bash noscript that automates (probably) everything you need to do to setup a chroot, opening a shell in chroot, running a web browser in chroot, playing games in chroot, running glibc exclusive softwares in musl Linux distros, and anything you would do in Linux.

Ever since I'm running some niche distros like Void, Solus, I had a problem finding softwares I need in their not-so-large repositories, also I don't like how flatpak and snap works (sandboxing, lower performance, squashfs image for every piece of software, talking to desktop portals, and etc). so i decided to create an Arch Linux chroot enviroment. Why Arch Linux? They have a really, really good repositories, oh and don't mention how big AUR is.

To enter shell, just do :

archbox --enter

To execute commands without entering shell, do :

archbox <command>

You can read the README for more detailed guides :)

>Why chroot? why don't you use <insert infamous container here> instead?

The idea of a container is to isolate it from the host system, sure you could bind mount everything, but why use a container in the first place if you do that? Also there's no overhead by using chroot, and even chroot is available in many insecure linux distros.

>Any known issues?

Here

>How about systemd services? systemd doesn't work in chroot.

You can use Archboxctl to parse a systemd .service file and executes it, if you want to start them on boot, refer to this. You can install a LAMP stack in Archbox with this.

>Can it install the desktop entries too?

Yes, but manually :p, and some icons may be missing, a workaround for this is to use a rich icon pack, I recommend Papirus!

>Does it works in Nix OS?

Yes, but with some hacky workarounds.

And that's it! the GitHub repo is here :

https://github.com/lemniskett/archbox

https://redd.it/l2ojh1
@r_linux
Simple daemon to handle Media buttons

For me and my WM configuring multimedia keys always have been pain to get to work properly, so I created a simple but effective application which just does that for you. I just wanted to share it with people could be looking for something like this. You can find it here.

https://redd.it/l2qnih
@r_linux
How's HiDPI on linux these days

Alright, so, I've used linux for a long time, but now, for the first time, I've got a hidpi 4K display.

Now, the system's running Windows, and windows can scale apps itself so older apps look alright even if they don't natively support hidpi scaling.

So, since I've never used Linux on a hidpi display, I was wondering: which DE plays best with such scenarios? Do any DE support scaling apps like windows does?

I'm mostly looking for tips and tricks I should know before installing linux and seeing what happens. Also, not quite sure if this is right sub for this.

https://redd.it/l2uv2o
@r_linux