Illecors

@Illecors@lemmy.cafe

This profile is from a federated server and may be incomplete. Browse more on the original instance.

Illecors, (edited )

I’m lucky enough to be in a company where Windows is banned by the CEO. Granted, there are 4 (I believe) exceptions, but the vast majority of employees have an Ubuntu workstation and everyone has a macbook. A bit of a shame this macbook thing, really. A 2 grand thin client to ssh into my desktop when working remotely :D

The exceptions being client testing envs.

Illecors,

Just in case you’re not a troll - host it yourself. It’s federated, like lemmy. You don’t need to be able to program.

What non-SMS non-Apple app can I use to "text" my younger kid on their iPad

Hi! My less-than-10-year-old has their own iPad (registered under my apple id) and wants to be able to “text” with the rest of the family. Most of us are not Apple people though: Android phones, using some combo of SMS, Discord, and Signal. The little one doesn’t have a phone, so I think that prevents us from signing them...

Is it actually dangerous to run Firefox as root?

I have a few Linux servers at home that I regularly remote into in order to manage, usually logged into KDE Plasma as root. Usually they just have several command line windows and a file manager open (I personally just find it more convenient to use the command line from a remote desktop instead of directly SSH-ing into the...

Illecors,

Is it actually dangerous to run Firefox as root?

Yes, very. This is not specific to Firefox, but anything running as root gets access to everything. Only one thing has to go wrong for the whole system to get busted.

usually logged into KDE Plasma as root.

Please don’t do this! DEs are not tested to be run as root! Millions of lines of code are expected to not have access to anything they shouldn’t have and as such might be built to fail quietly if accessing something they shouldn’t in the first place. Same thing applies to Firefox, really.

Illecors, (edited )

I don’t know the specifics on Fedora’s installer, but normally that question is about disabling root account, not logging into a DE.

Not sure what else to elaborate here. There’s a bunch of code that is not tested to be run as root. A whole class of exploits becomes unavailable, if you stick to an unprivileged user.

Say there’s some exploit that allows some component of KDE to be used to read a file. If it’s running under an unprivileged user - it sucks. Everything in user’s homedir becomes fair game. But if it runs as root - it’s simply game over. Everything on the system is accessible. All config, all bad config, files of all applications (databases come to mind). Everything.

Illecors, (edited )

Sorry, this is very much a PEBKAC issue. This is a excerpt from my tmux config:


<span style="color:#323232;"># Start windows and panes at 1, not 0
</span><span style="color:#323232;">set -g base-index 1
</span><span style="color:#323232;">setw -g pane-base-index 1
</span><span style="color:#323232;">
</span><span style="color:#323232;"># Use Alt-arrow keys without prefix key to switch panes
</span><span style="color:#323232;">bind -n M-Left select-pane -L
</span><span style="color:#323232;">bind -n M-Right select-pane -R
</span><span style="color:#323232;">bind -n M-Up select-pane -U
</span><span style="color:#323232;">bind -n M-Down select-pane -D
</span><span style="color:#323232;">
</span><span style="color:#323232;"># Shift arrow to switch windows
</span><span style="color:#323232;">bind -n S-Left  previous-window
</span><span style="color:#323232;">bind -n S-Right next-window
</span><span style="color:#323232;">
</span><span style="color:#323232;"># No delay for escape key press
</span><span style="color:#323232;">set -sg escape-time 0
</span><span style="color:#323232;">
</span><span style="color:#323232;"># Increase scrollback buffer size from 2000 to 50000 lines
</span><span style="color:#323232;">set -g history-limit 50000
</span><span style="color:#323232;">
</span><span style="color:#323232;"># Increase tmux messages display duration from 750ms to 4s
</span><span style="color:#323232;">set -g display-time 4000
</span><span style="color:#323232;">
</span><span style="color:#323232;"># Bind pane creation keys to reuse current directory
</span><span style="color:#323232;">bind % split-window -h -c "#{pane_current_path}"
</span><span style="color:#323232;">bind '"' split-window -v -c "#{pane_current_path}"
</span>

I hope the comments are self explanatory.

Scrolling works with Ctrl+b Page Up/Down. There are other shortcuts, but this is probably the most obvious. q to quit scrolling.

Ctrl+b d to detach from a session. tmux a to attach. As always, many options are available to have many named sessions running simultaneously, but that is for a later time.

Illecors,

Do I need to disable compression on my swap subvolume?

wiki.archlinux.org/title/Btrfs#Swap_file

Is there anything else I should keep in mind for fstab if I want to, say, not keep track of my Downloads folder when snapshotting?

Just create a separate subvolume for it. Snapshots do not work recursively, so it will be left alone.


Mount options also only take effect on the first mount of the device. Since it looks like you only have 1 btrfs device - only / needs the options, really.

Illecors,

Glad I could help! Just to make things a bit clearer - this is a btrfs thing. Other FSes behave differently.

Illecors,

This is really cool! Thanks for sharing!

Good luck web devs (lemmy.world)

Alt text:Twitter post by Daniel Feldman (@d_feldman): Linux is the only major operating system to support diagonal mode (credit [Twitter] @xssfox). Image shows an untrawide monitor rotated about 45 degrees, with a horizontal IDE window taking up a bottom triangle. A web browser and settings menu above it are organized creating a...

Illecors,

I remember seeing the video of this. The guy was doing it for shits and giggles, but it ended up looking great!

Illecors,

No idea what it was, sorry. One of the youtube recommendations at the time.

Illecors, (edited )

Do yourself a favour and don’t host it, yet. Lemmy is not quality software. You have 3 options here:

  • pay someone to take care of it for you
  • learn more about computer management and computers in general, first; then host it
  • ignore the first two options, which will inevitably lead to your instance crashing and burning

Best of luck!

Illecors, (edited )

Most of them.

  • Debian world - apt sucks. For something with a sole purpose of resolving a dependency tree, it’s surprisingly bad at that.
  • Redhat world - everything is soooo old. I can see why business people like it, buy I rarely, if ever, agree with business people.
  • Opensuse world - I’ve only tried it once, probably 15 years ago. Didn’t really know my way around computers all that much at the time, but it didn’t click and I’ve left it. Later on I found out about their selling out to Microsoft and never bothered touching it again.
  • Arch - it was my daily for a year or two. Big fan. It still runs my email. At some point the size of packages started to annoy me, though. Still has the best wiki. I’ve never really bothered with the spinoffs, as the model of Arch makes them useless and more problematic to deal with.

I’ve got the Gentoo bug now. For the first time I genuinely feel ~/. A lean, mean system of machines :)

Illecors,

No, it was the “don’t sue us and we’ll testify in your favour while you’re suing our competition”.

Illecors,

Whoosh.

Illecors,

While debian is the least offensive, I did explicitly say world. Add your buntus, mints, whathaveyou into the mix and shit hits the fan very quickly. Yes, real world runs that bollocks in prod. No, I do not agree with it.

Illecors,

There is no installer as such. You copy an archive, extract it and rebuild @world. Anything beyond that is up to you. I’m sticking to openrc - haven’t had any issues since libxcrypt news item. Can’t even recall what it was.

Illecors,

It does, but apt is the only package manager on Debian.

Illecors,

I’ve only got a few years on Gentoo - how has your journey been? You must’ve started with stage 1!

Illecors,

Yes, it can be done. Not to the point of deleting your key (that makes no sense - you need the key), but ssh-agent is what you want. Add it to your shell config and it will only ask to be unlocked once per however often you define.

I have this function defined and called:


<span style="color:#323232;">function ssh-agent-setup() {
</span><span style="color:#323232;">    # SSH agent
</span><span style="color:#323232;">    pid_file="$HOME/.ssh/ssh-agent.pid"
</span><span style="color:#323232;">    SSH_AUTH_SOCK="$HOME/.ssh/ssh-agent.sock"
</span><span style="color:#323232;">    if [ -z "$SSH_AGENT_PID" ]
</span><span style="color:#323232;">    then
</span><span style="color:#323232;">      # no PID exported, try to get it from pidfile
</span><span style="color:#323232;">      SSH_AGENT_PID=$(cat "$pid_file")
</span><span style="color:#323232;">    fi
</span><span style="color:#323232;">
</span><span style="color:#323232;">    if ! kill -0 "$SSH_AGENT_PID" &> /dev/null
</span><span style="color:#323232;">    then
</span><span style="color:#323232;">      # the agent is not running, start it
</span><span style="color:#323232;">      rm "$SSH_AUTH_SOCK" &> /dev/null
</span><span style="color:#323232;">      >&2 echo "Starting SSH agent, since it's not running; this can take a moment"
</span><span style="color:#323232;">      eval "$(ssh-agent -s -a "$SSH_AUTH_SOCK")"
</span><span style="color:#323232;">      echo "$SSH_AGENT_PID" > "$pid_file"
</span><span style="color:#323232;">
</span><span style="color:#323232;">      >&2 echo "Started ssh-agent with '$SSH_AUTH_SOCK'"
</span><span style="color:#323232;">    fi
</span><span style="color:#323232;">    export SSH_AGENT_PID
</span><span style="color:#323232;">    export SSH_AUTH_SOCK
</span><span style="color:#323232;">}
</span><span style="color:#323232;">
</span><span style="color:#323232;">ssh-agent-setup
</span>

This way it stores the unlocked key in memory until the end of the session.

Illecors,

I don’t like what you’re trying to do, but I think gnome-keyring would do this for you. Seahorse is the gui for it

How to make sure transmission is using my vpn?

I have transmission running on my server in a docker container that is supposed to go through gluetun. If I run test with ipleak and other torrent ip testers it shows my vpn’s ip address. However transmission is running way faster download speeds than deluge or qbit were with the same configuration. It makes me wonder if all...

Illecors,

That’s what I do on the desktop, but on mobile there’s no quick way to open a new tab.

Illecors,

While this is not a bad shout, I hate that this rearranging logic has made it to production in the first place. Ddg should really know better.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #