Comment on
China launches test runs for world’s largest plant that can convert coal to ethanol
Reply in thread
It’s not efficiency that makes people prefer democracy.
Comment on
China launches test runs for world’s largest plant that can convert coal to ethanol
Reply in thread
It’s not efficiency that makes people prefer democracy.
Comment on
/run/user/1000: What to do with it?
Something to realise when starting with Linux is that everything is a ‘file’. Sockets, processes, input, output etc. That’s very different from Windows and part of why scripting on Linux is so powerful. You can interact with anything.
So some directories are filled with things that aren’t necessarily files but look like it. Someone else posted a whole list, just realise that under those directories/paths shouldn’t be messed with unless you know what it’s for.
Generally when you’re getting used to Linux, /home/$user (aka ~) is where you put personal things. The rest is managed by OS and applications, don’t worry about it.
Edit: spelling
Comment on
I created a shitty Python script to manage multiple SSH connections because I couldnt find a decent one
Reply in thread
Great attempt on making a tool, I think your usecase might not be as appealing to others. If I need to list the hosts I have config for I would use: grep Host ~/.ssh/config If your list of servers is too long to remember, you might want to look at Ansible for configuration. But whatever works for you :)
Comment on
Leap Day – The Jenkins
Reply in thread
Why is he in bed saying “it’s the middle of the night” then.
Your explanation does not fit with the comic.
If Jenkins would have said “but i don’t work on Wednesday” and his boss said “it’s Thursday “. That would have fit your scenario.
Comment on
*Permanently Deleted*
My 2c, buy RPi’s because what makes them so great is the availability of drivers and information. You will end up paying with your time if you try to save some money up front. I had several OPi, one randomly started throwing errors. After several reinstalls with various sd card, the information I could find was that the SoC itself was causing the errors. Also getting any hardware to work with it is just a major pain, driver support is severely lacking. Support for the Linux versions is community driven, so you’re dependent on Armbian maintainers. If you have a very new or an older board, you’re probably out of luck when you want to do anything outside of Linux. Example, I could not get a camera and BT module working. I later bought a RPi4 and had the same hardware working within hours.
Comment on
Apple to Limit iPhone 15 USB-C Cables to USB 2.0 Speeds: Report
Reply in thread
The article states that the iPhone (the device itself) will be limited to USB 2.0 speed. Do you have information otherwise? Also limiting the speed does not mean it will not support the additional protocols that USB-C would allow for. I believe why people are making a fuzz over this is that people with iPhones want to be able to do large exports/backups/imports. Specifically those that use the devices professionally. In those cases you would want all the speed you can have, and this feels like an arbitrary limit set by Apple because they don’t want to fully comply. Perhaps there are good reasons due to heat issues in the storage controller.
Comment on
Dee Oh Double Gee
Yodawg
Comment on
Why should I run sudo apt update before installing a package? Why!?
It updates the package lists APT uses. You don’t have to run update before installing. But you could be installing the previous version of the application. For instance if you never run update, the upgrade command won’t do anything.
Edit: spelling
Comment on
Why should I run sudo apt update before installing a package? Why!?
Reply in thread
You don’t have to do this. Run something like apticron if you want to make sure you don’t miss security updates or want everything on the latest version all the time.
Comment on
Teslas Can Be Stolen by Hijacking WiFi at Charging Stations, Researchers Find
Reply in thread
That’s not what ‘keyless entry’ means. You still have to open your door, you just don’t need to press a button to unlock it first.
Comment on
I wish :q!
Reply in thread
:x also writes (same as :wq). :q! is force quit. If you accidentally made changes then :q will give an error and :x will write those changes. So :q! Is you safest bet if you need to gtfo.
Comment on
Kubernetes? docker-compose? How should I organize my container services in 2024?
Portainer + caddy + watchtower, this will give you the benefits of containers without the complexity of Kubernetes. As someone who professionally works with Kubernetes, I agree with what other people have said here: “only run it if you want to learn it for professional use”.
Portainer is a friendly UI for running containers. It supports docker compose as well. It helps with observability and ops.
Caddy is an easy proxy with automatic Let’s Encrypt support.
Watchtower will update and restart your containers if there’s an update.
(Edit: formatting)
Comment on
Mapping ports to domain URI [Solved]
I would suggest using Caddy. I think it’s a little simpler than Traefik and can automatically handle LetsEncrypt SSL/TLS certificates for you
Comment on
overcome limited RAM on VPS
Reply in thread
Yeah the 300meg isn’t going to get much less. Switching to Debian won’t change much there. Perhaps you can look into running a minimalist container distro if you are just using the machine for that. I personally want to check out Talos, there’s also RKE and Burmilla. No experience with them, to me the memory doesn’t matter much because I run a homelab. So I currently just run Debian and k3s. On my systems the containers are actually what gobbles up all the memory. If you’re using public container images, there’s a good chance the memory configuration on them isn’t optimal. Especially JVM services are a lot of the time configured to just use whatever is available. If you give them less memory they will do more garbage collection. So if CPU is less an issue then mem, that could be worth looking into (it’s just parameters you can pass on startup). Hopefully any of this is of use. Good luck :)
Comment on
overcome limited RAM on VPS
In my experience kernel tweaks aren’t going to be a major change on memory usage. Most distros are meant to be full featured and not necessarily lightweight. So unless you are already running a minimalist distro, make sure you don’t have bunch of background services running you don’t need. I can recommend using Debian Minimal iso’s, they require 256MB of mem. Depending on what features you enable you could use a lot more.
Comment on
Pro-Russia hackers target critical infrastructure in North America and Europe
“Pro-russia hacktivists” that’s a weird way to say “state sponsored hackers”. Also they are using open VNC and default passwords? Really? The parties responsible for that infrastructure should be ashamed.
Comment on
Apple to Limit iPhone 15 USB-C Cables to USB 2.0 Speeds: Report
Reply in thread
If this is all based on just the teardown of a cable than the article is just speculation. If it really lacks all additional pins this is just malicious compliance on Apple’s part. “Oh you asked for a usb-c connector EU Commission? Here it is”.
Comment on
Dee Oh Double Gee
Reply in thread
Yodawgg
Comment on
Is There Any Benefit to Multivitamins?
Reply in thread
Exactly this. The outcome of these studies/articles is always: you don’t need it… if you eat healthy.
Now look at obesity rates etc, do you think most people eat healthy? Now would these people benefit from multivitamins?
Comment on
/run/user/1000: What to do with it?
Reply in thread
Something like that indeed.
Every active network connection, every process, every piece of hardware and others are in your file system.
Then there’s also the possibility for linking to a file and links take up no space, but can show up like files.
You can use a command like ‘stat’ to get more information about a file (or directory).