Skip to content

u/Spivak

In this archive from Mar 2013 to Aug 2023

1
posts
65
comments
0
media
320
score

I mean I worked at a company that ran our prod workloads from RBD and the only time we ever needed to move to our "fast tier" was for things that pounded the disk constantly. LXC had no issues with it as far as I can remember, haven't used it in a while on my own stuff though.

2 points

I want to love GNOME boxes but they use QEMU's user-mode networking and don't expose the QEMU options that allow for forwarding traffic to the VM.

​

Now, TBF virt-manager doesn't expose those options either but you can at least set up bridge mode without having to edit the VM with virsh.

4 points

Friendly neighborhood Linuxadmin here. Here is how I direct my developers.

  • Do not depend at all on the system Python. That python is intended for use by the OS and only the OS. You don't know what options it was built with, you don't know what packages come with it, you don't know what patches your distro has backported. Now you could find all this out if you wanted but since you don't control anything about the system Python you aren't guaranteed that it will stay that way. And for that matter you aren't even guaranteed that any system in particular will have Python installed.
  • Don't compile your Python from source yourself. If you really want to just make sure to set --prefix to ~/.local but you're better off using pyenv (or asdf if you want other languages too) so you don't lose your sanity dealing with different versions.
  • Great! Now you have the version of Python you want installed in your home directory. I'm sure you have some cool CLI tools that say to install with pip install. Stop. Do not do this. No packages get installed into your installation of Python. It's a nightmare to debug. All packages are installed in a virtualenv only! Use pipx to manage your CLI tools (like Ansible).
  • Okay so you want to work on a Python project? More virtualenvs! This is the annoying but because I'm not going to recommend conda to you because it's bloated but it 1000% handles virtualenvs the right way and no other tool does it quite the same. But the short of it is use a virtualenv manager and DO NOT STORE YOUR VIRTUALENVS IN YOUR PROJECT. Please. You'll never find them again.
    • If you went with pyenv then use pyenv-virutalenv.
    • If you went with asdf then use virtualenvwrapper.
    • You can also manage them manually with vanilla virtualenv commands but it's more work.
  • Dependencies in your project? That one is up to you. Pipenv is the new kid on the block, requirements.txt is older, clunky, but is well supported.

In summary:

  • You have a version of Python that is fixed and you control.
  • You have all of your personal Python programs and their dependencies isolated from your development environment(s).
  • You have your development environment(s) isolated from each other.
  • You have the packages in each environment recorded in a your project.
1 points

Make sure to take resolve out of your /etc/nsswitch.conf if it's still there.

Despite the fact that this problem can be fixed by removing systemd-resolved it's not really its fault -- OpenVPN isn't aware of the existence of systemd-resolved (or any module providing entries to the hosts database) assumes that updating /etc/resolv.conf is enough to change the system's DNS servers.

This is something that a bunch of VPN software assumes but has only ever been true by accident. When your system looks up a name it uses the Name Switch Service which loads a list of modules to provide names. /etc/resolv.conf only governs the dns module so anything providing names before this module, like mdns or resolve isn't affected by the VPN.

5 points

Not sure why you're being so viscerally downvoted, this is right. There are times where tmpfs will improve performance but Linux is already using your spare memory to buffer IO system wide. So putting /tmp in RAM will increase the performance of /tmp but not necessarily your system overall.

The general advice is unless you have specific applications you want to increase the performance of at the cost of slowing other things down you should just let Linux do it's thing. For general purpose desktops it's probably going to do better than you.

Source: I do a lot of HPC.

2 points

It's secure. There is no known method to crack the encryption Libreoffice uses without supplying the correct password. Make sure to chose a strong master password though.

The main advantage of a password manager in this case is ease of use.

1 points

If you're serious you should look into a password manager.

  • KeePass The standard. Trusted by just about everyone to get the security right. Free as in Freedom. Slightly cumbersome to use.
  • LastPass Password manager as a service. Passwords are encrypted securely locally, it has good browser integration and mobile apps.
  • 1Password Similar to LastPass and has some cool password sharing features.
  • pass Hardcore GPG based password manager for you Linux users.
14 points

Universities also have secure internal email. They should still make students change the password on the next login though but it's not nearly as egregious as some other practices here. The person who can read your email likely also has admin access to your account anyway.

18 points

The thing you're about to paste has a newline, would you like to omit it

For a more general solution you're looking for 'bracketed paste mode' which let's the receiving application (zsh, vim, emacs) know when entered text was typed vs. pasted and do more general/useful things like sanitizing the input, turning on paste mode, etc..

1 points

whole point of Arch is to be a DIY distribution

We really shouldn't be bothered by distributions that choose to be based on Arch for the purpose of adding or pre-configuring software for a specific use case.

There's no reason that Linux users can't have the best of both worlds: a nice package manager, bleeding edge software, access to the AUR, easier use of the Wiki while some other developers 'hold their hands' and curate their software and experience.

We shouldn't project our views about our distribution and claim that others are somehow betraying the Arch-way just because they want something different. The highest aspiration for any distribution isn't to push a lifestyle of minimalism, self-reliance, or being hard-core, it's ultimately to be useful.

9 points

Secure Boot, if your system supports it, is how you make your system not vulnerable to this kind of attack. Your computer will refuse to run any code which you haven't signed and will also refuse to run if the hardware changes. If done correctly you're firmly in the realm where your only real adversaries are state level actors.

It's a shame that Secure Boot and TPM get a bad rap because MS and hardware vendors use them to lock people out of their devices, because they're incredibly powerful security tools when you can actually use them.

1 points

This would likely solve the problem because it would leverage NM's higher privileges but it doesn't explain why the OP needed such privileges in the first place.

Also, just as a point of culture, I imagine the number of people who are simultaneously running i3 and NetworkManager are fairly small.

3 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.