• Activity
  • Votes
  • Comments
  • New
  • All activity
  • Showing only topics with the tag "linux". Back to normal view
    1. What do you do to secure your Linux server when exposing ports to the internet?

      I've been self-hosting for a few years. However, now I have a single server hosting all of my things whereas, before, I had multiple old machines physically isolating services. I'm getting ready...

      I've been self-hosting for a few years. However, now I have a single server hosting all of my things whereas, before, I had multiple old machines physically isolating services. I'm getting ready to host a game server or few (at least one for Tilde) on this machine.

      While I'm not a neophyte to Linux, I'm not a guru and definitely not an infosec expert.

      Given that, what steps do you take to secure a Linux server, LXCs, and docker containers that are receiving port-forwarded internet traffic?

      FWIW, I expect I'll have an LXC running docker containers. I can instead run a VM doing same.

      Advice welcome!

      35 votes
    2. Crashing a server by charging a vape battery

      While I consider this resolved at time of posting, this is one of my weirder, more unexpected tech issues I've run into and I thought y'all might enjoy it. I'd been having issues with my (Ubuntu)...

      While I consider this resolved at time of posting, this is one of my weirder, more unexpected tech issues I've run into and I thought y'all might enjoy it.

      I'd been having issues with my (Ubuntu) server where its services were unavailable, I couldn't SSH in, and USB devices plugged in after the issues started weren't connecting (mouse LED would light up, couldn't toggle keyboard locks or interface computer with the devices). These issues were becoming a near daily occurrence.

      So after the most recent incident I decided to watch it boot. After grub, it would just hang at a black screen. So I opted for the recovery mode and after waiting some minutes for services to time out, I was given a terminal and used that to check my devices, sensors, etc and all were reading fine.

      Frustrated, I started reviewing what else could have possibly changed with my setup, and I found that change in my hand. I use my server's front USBs as a low current charger and had recently got a new vape battery that was charging at that moment.

      I unplugged the battery, rebooted, everything was fine. Plugged the battery in, everything locked up again immediately.

      I had been using a spare cable, it had data wired. Swapping for the included power only cable, and no issues.

      While I'm curious as to what exactly is happening and why, I'm satisfied enough concluding it is a cheap vape (I mean, I'm having to charge the sucker near daily after all) that is transmitting junk over data and the OS doesn't handle it appropriately. I'll pull logs or do another couple tests if other folks are curious as well though.

      Oh, and the battery is a Bear Rootz Sol. Come to think of it, my other worst battery at holding a charge was also a Bear Rootz.

      7 votes
    3. Daily driving linux (Fedora KDE) - My experiences after a week

      I thought I would share my thoughts and experiences daily driving Linux (Fedora KDE Plasma) for the past week. Why did I switch from Windows to Linux? My plan was to switch to Linux once Windows...

      I thought I would share my thoughts and experiences daily driving Linux (Fedora KDE Plasma) for the past week.

      Why did I switch from Windows to Linux?

      My plan was to switch to Linux once Windows 10 hit EoL in Fall 2025. This was due to my computer not supporting Windows 11. This past September, my computer broke (probably MoBo), and so I swapped out my CPU and MoBo, which probably can support Windows 11. However, this hardware swap unactivated my Windows, Microsoft support was not helpful, and I am not a fan of the direction Windows is heading in (removing local accounts, Recall, and a general vibe I get from Microsoft of removing control from end users). So, I decided to make the jump to Linux a year sooner than expected.

      My Previous Experience with Linux

      So I would say I am moderately experienced with Linux before this. Personally, I have setup a Proxmox server, in which I setup an openmediavault NAS, and played around with various desktop distros for personal curiosity. I also switched my old laptop over to Linux a few years back, but had very low requirements of the tasks that laptop had to perform. I also took a post secondary class on Linux, primarily covering system administration tasks like BASH/PERL scripting, Apache server admin, LDAP, and file sharing all using Ubuntu. So going into this I had a moderate amount of experience, all within Debian based distros. The bigger change with switching my desktop is that it is my primary computer, so the expectations of what it needed to run was higher.

      Why I chose Fedora KDE Plasma

      I did a post about a month ago asking for recommendations to look into: https://tildes.net/~tech/1ji6/switching_to_linux_looking_for_distro_recommendations
      I settled on Fedora KDE Plasma for a few reasons:

      • I appreciate the philosophy of not being rolling release like Arch, but also a quicker release cycle than Ubuntu and its forks. I felt this was a good middle ground where I get newer advances without dealing with stuff breaking frequently when there was a new update.
      • It can handle most tasks graphically, without having to dig into the console often (more on this later).
      • I appreciate the Windows-esque styling of KDE Plasma. I got used to Windows so didn't want a radical shake up. However, it feels to me like a better version of Windows (or maybe just not touch screen oriented and ad bloated).

      Headaches/glitches

      Some of these are ongoing, while others were issues that I have worked through

      • FIXED: Installing nvidia drivers via RPM Fusion. Before installing drivers, the computer was unstable and frequently froze. I ended up just loading a command line only interface and manually typing in the commands to install RPM Fusion and the nvidia drivers. I was planning on installing it via command line anyway, so the main headache here was typing it out instead of copy and pasting the commands in. I also had an issue where I initially installed the wrong drivers.
      • ONGOING/INFREQUENT: Occasionally when I wake the computer from sleep, at the lock screen, my mouse is responsive, but my keyboard is not. Also, selecting the virtual keyboard does not work, as the virtual keyboard does not load. I tried waiting for the computer to go back to sleep, and then wake it from sleep to see if it reloads things properly. The computer does not go to sleep normally, so the solution right now is to just shut down the computer and then it is solved.
      • FIXED: Steam launched games not closing properly. Specifically Far Cry 5, which runs properly, when I exit the game, the process does not fully close down. From my perspective, it seems like it has, but Steam indicates that it is still running. The solution is to go into System Monitor and close down the Steam application with high resource usage, as that is actually the game still running in the background.
      • ONGOING/INFREQUENT/PARTIALLY FIXED: When I wake the computer from sleep, and login, there is a large amount of visual glitches and artifacts on my desktop environment. It is both in applications and especially on the Panel. The current solution is to run the command systemctl restart --user plasma-plasmashell which drastically improves the situation, but the glitches are still partially there. This has just started last night, so probably a computer restart may solve the problem, but I am trying to avoid having to constantly restart the computer.
      • FIXED: As Far Cry 5 was a brand new game, when launching it from Steam for the first time, Ubisoft's software wanted me to enter a CD Key, but Steam was not giving me one. Thinking this was a Linux related issue, I switched to my Windows install, and had the same issue. Turns out it is a Ubisoft bug in their software that also impacted Windows. I found a solution online on how to solve it for Windows, did that and authenticated the game. Then I switched over to Linux and the game ran well.
      • FIXED: KDE Wallet Service was doing an excessive amount of prompts. I uninstalled the software, but the prompts continued. Turns out it needs to be disabled before being uninstalled, or the prompts continue. So I had to reinstall it, disable it, then uninstall it. Annoying but minor and it is fixed now.
      • ONGOING/INFREQUENT/PARTIALLY SOLVED: When waking from sleep, sometimes my background image on my primary display does not fully cover the desktop. This is most likely due to my primary display being 1920x1080, and my secondary display being 1600x900, so the image is not being scaled independently for both displays. The solution right now is to open the settings to change background, and load any image, but not save changes, as this causes my original image to be reloaded properly

      Installing/Running Applications

      I have been primarily using Flatpaks to install applications. Overall it has been a smooth process. One pain point I have is it seems that the Minecraft Official Launcher for non-Debian systems is kind of clunky requiring me to login to my Microsoft account every time I open the game. This will probably be solved by switching to a third party launcher in the near future. The one software that I haven't gotten around to installing yet is DaVinci Resolve.

      What Surprised Me so Far?

      There are a few things that have been a pleasant surprise:

      • I use the console more than I expected going into it. For flatpaks, I tend to just copy and paste the commands into console. RPM Fusion also had a GUI based install option but I preferred the console option instead. I also have VIM installed, and use that as my digital notepad, just doing simple console commands of vi fileName in my home directory. I was not expecting to use the console as much as I have been, and I think that is partially due to now being more experienced with it, I gravitate towards using the console which I know how to use instead of learning how to do some tasks via a GUI..
      • Most things are running better than expected. I haven't touched many games yet, but I haven't had an issue with it yet. It is worth noting that I do not play competitive shooters, so anti-cheat is not something I will have to fight with.
      • Libre Office can open my .docx files. I was concerned I may have to convert my existing files to .odt before I can use them, but that does not appear to be the case. I will probably use .odt for new files going forward. It is also worth noting that I haven't worked extensively with my .docx files yet, so there may be some incompatibilities I have yet to encounter.

      Overall Thoughts:

      Overall I have quite enjoyed running Linux. It does require some tinkering as glitches appear, which currently I am fine with. If I had less free time to tinker and solve the issues, I would probably find Linux to be less viable and more frustrating. Also, most of my glitches can be solved by restarting the computer, although I am trying to find solutions that do not require that. I find it allows me to use the computer and change it to how I want it to be, which I have felt like Windows has gotten increasingly hostile towards the user. A good comparison on this is how the default applications that KDE has included are easy to remove, whereas Windows used to (not sure if it still does) reinstall Microsoft Teams when you uninstalled it.

      Edits:

      • Added the glitch with background image
      • Added more information on my background with Linux, including using it on my laptop
      47 votes
    4. Auto-mute mode in ALSA might be the reason you can't use your speakers with headphones plugged in

      Problem: I recently switched back to a desktop as my main computer, and was surprised to learn I couldn't use my speakers if my headphones were plugged in. I don't use a desktop environment (just...

      Problem:

      I recently switched back to a desktop as my main computer, and was surprised to learn I couldn't use my speakers if my headphones were plugged in.

      I don't use a desktop environment (just Sway), so I rely on pavucontrol as a GUI to control my audio.

      I could use my headphones just fine while my speakers were plugged in, but when I switched to my speakers in pavucontrol's interface, they would not output audio. My headphones would stop playing (as expected), and pavucontrol's little "dancing bar" would indicate that the speaker's port was processing an audio signal (as expected), but no sound was actually being produced.


      Solution:

      The culprit ended up being something called "Auto-Mute" in ALSA. To disable auto-mute mode, you can either:

      1. Run the command amixer sset "Auto-Mute" unmute in a terminal
      2. Run the command alsamixer in a terminal
        2.1 Press F6 and select your sound card
        2.2 Ensure you're viewing playback settings by pressing F3
        2.3 Move the item selection over until you've selected auto-mute mode
        2.4 Press the down arrow key to switch it to "Disabled"

      That fixed my issue.

      For me, auto-mute mode stayed disabled after a reboot. You might need to run the command alsactl store to make the configuration persistent though. The Arch Linux Wiki article on ALSA has a "tips and tricks" section that goes into more detail:

      https://wiki.archlinux.org/title/Advanced_Linux_Sound_Architecture#Tips_and_tricks

      17 votes
    5. What is the best or recommended way to integrate my Windows 10 and Linux computers through the local network?

      There are currently four computers in my household: a Windows 10 desktop, a Windows 11 laptop, and two additional Linux laptops (those are "mine"). One is a very weak but new machine, basically...

      There are currently four computers in my household: a Windows 10 desktop, a Windows 11 laptop, and two additional Linux laptops (those are "mine"). One is a very weak but new machine, basically the cheapest laptop I could buy that was neither Android nor literally a toy. It is running Lubuntu 24.04, and is used largely for writing and light browsing. The other is an older machine running MX Linux. Right now it's single purpose is running my Plex server. Given that setup, transferring files between machines is often a necessity.

      Both my desktop computer and my Plex server are connected via Ethernet directly to the router. The other two laptops are connected largely via WIFI, although I do connect my writing laptop via an USB/Ethernet adapter for updates/upgrades and larger downloads when necessary.

      Among other things, I often download movies on my Windows 10 desktop computer and then manually transfer them in batches to my Plex external hard-drive, and then to my Plex laptop (when it has enough space, otherwise I just keep the movies on the hard-drive). That is because it is way more convenient for me to (re)search what I wish to wwatch, find and download it to my desktop than it would be the case for my Plex laptop. The laptop is not only in a position that makes it uncomfortable to use but is also very slow even for basic things such as firing up Firefox. I also prefer to do the scraping using MediaElch and while it is a fairly heavy (probably Electron) application, my desktop is powerful enought that it doesn't make any diference. I also use Subsync sometimes, which is, as far a I know, only available as a GUI application on Windows.

      Most content I find online is very practical, teaching me how to follow concrete steps to make things work, but I haven't found much advice on which programs or tech "stack" would be adequate for a specific situation such as my own. I just want a robust way to seamlessly transfer file between all the machines on my home without having to plug and unplug hard-disks and flash drives.

      Any suggestion? Thanks!

      13 votes
    6. Tried switching to Fedora KDE Plasma, have issues with nvidia driver

      Solved I was idiotically installing a legacy driver instead of the current driver. I installed the current one and it is now working. Background on Tildes For background I posted about distro...

      Solved

      I was idiotically installing a legacy driver instead of the current driver. I installed the current one and it is now working.

      Background on Tildes

      For background I posted about distro recommendations a few weeks ago: https://tildes.net/~tech/1ji6/switching_to_linux_looking_for_distro_recommendations. I settled on Fedora KDE Plasma.

      Steps taken before the problem

      I installed Fedora onto an unallocated space on my SSD, alongside Windows 10. I have tested that Windows 10 is currently working, and that Fedora starts normally. I have also used the boot media to install onto my laptop with no issues. However, on my desktop before installing GPU drivers for my GTX 970, I found Fedora to be quite buggy. This would include the session freezing and needing to be restarted , or my screen would go black with text saying something along the lines "desktop session cannot be unlocked, press ctrl + alt + f3 and login and run a command (I cannot remember the command)" and then I could switch back to my previous session. Overall, it was a buggy mess. My thought process was that it may be a GPU driver issue, and so I started the process of installing RPM fusion and installing the driver from there. I have a GTX 970, so I followed the section titled "Legacy GeForce 8/9/200/300" on this page: https://rpmfusion.org/Howto/NVIDIA?highlight=%28%5CbCategoryHowto%5Cb%29. The commands I ran after installing RPM were: sudo dnf update -y and sudo dnf install xorg-x11-drv-nvidia-340xx akmod-nvidia-340xx and followed all the prompts provided as necessary. I would then leave my computer for about 30min, before returning and restarting (thinking that a restart may be necessary to be fully using the drivers).

      Current Situation

      After going through the process listed above, I turned my computer on and booted into Fedora. My screen would hang on a black screen with a flashing white underscore at the top left corner. The computer would not get past this point, no matter how long it was left. Hitting "ctrl + alt + f2" would give me a working terminal that I could interact with, showing the basic CLI of Linux working. I did not play around much with the commands, but I do know the basic shutdown now command was working.

      Troubleshooting Steps Tried

      I was thinking that it may be due to the driver being X11 and I am running Wayland. I searched online and results seemed to indicate that this would not cause an issue
      (I will add more steps here when people recommend them)

      9 votes
    7. Linux Mint desktop environment recommendations?

      I am planning on switching to Linux Mint as my first Linux daily driver. I know someone who's used Cinnamon (the default) and it works fine, but I was wondering if the other options officially...

      I am planning on switching to Linux Mint as my first Linux daily driver. I know someone who's used Cinnamon (the default) and it works fine, but I was wondering if the other options officially provided (Xfce and MATE) are any better? I have a little bit of (pretty trivial) GNOME experience on Ubuntu, but I don't really understand the pros and cons of different DEs. I've used KDE on the Steam Deck, and I hear that's a popular one, but can I get that on Mint?

      12 votes
    8. Switching to Linux, looking for distro recommendations

      Overview When I swapped the motherboard on my computer, I lost my Windows license and Microsoft support was useless. So I am switching my desktop over to Linux. I am planning on setting up dual...

      Overview

      When I swapped the motherboard on my computer, I lost my Windows license and Microsoft support was useless. So I am switching my desktop over to Linux. I am planning on setting up dual boot, so that I still have Windows 10 with the watermark for certain use cases, but hoping I can run primarily Linux.

      Previous Linux Experience

      I have swapped an old laptop to Linux (elementaryOS) before and was able to have it do the simple tasks I required of that computer. I also have an old desktop running proxmox, with various VMs, primarily a NAS running openmediavault. Also, I took a college class on Linux system admin, which focused on various tasks on ubuntu. So overall, I am pretty familiar with Debian-based Linux and doing stuff in the terminal, but I would prefer to not have to use the terminal often.

      Workload

      So I use my computer for fairly normal use cases that should not be too problematic for Linux. Things I plan to do are:

      • Non-competitive gaming (Minecraft, Civilization V and VI, occassionally single player FPS games)
      • Video editing via DaVinci Resolve
      • General web browsing
      • Libre Office is what I plan to switch to from MS Office

      Plans for testing

      I am going to setup a VM on my hypervisor to try out the basic interface of each distro, and try basic tasks. Testing will probably not involve running the heavier applications such as DaVinci Resolve or games. However, I will look into the install process of some of these. For games, I am just going to rely on the work Steam has done for Linux gaming recently.

      Things I am looking for in a distro

      The things I want in a distro are:

      • Debian based preferable, but am considering others
      • Simple tasks can be done graphically, instead of via terminal
      • Upgrade in place is preferable (I believe similar to how ubuntu now allows for upgrades to the next LTS does not require a reinstall)
      • Similar UI to Windows 10 is preferable

      Planned distros to test

      Distros I wanted to try before posting

      • popOS
      • Mint

      Distros I am considering testing after being recommended them:

      • Arch
      • Fedora (I am strongly leaning towards this one, but want to do more testing)
      48 votes
    9. Best way to voice call and screenshare with audio on Linux?

      One thing I really enjoy is being able to share my screen with family and friends to watch movies together or share gameplay. On Windows, you can do this trivially with Discord. On Mac, you can do...

      One thing I really enjoy is being able to share my screen with family and friends to watch movies together or share gameplay. On Windows, you can do this trivially with Discord. On Mac, you can do this on Discord if you install some software they recommend. On Linux, I believe it's impossible with Discord unless you use a third party front end, which I'd rather not do. Zoom has screenshare with sound, but I don't know what the Linux support is like, and it's capped at 40 minutes unless you pay.

      Are there other messaging services that have voice call and audio screenshare support on Linux, no unofficial front end necessary, that's also available on Windows and Mac? It's ok if it requires some setup. Ideally it would be a group chat as opposed to streamed publicly on a site like Twitch.

      11 votes