this post was submitted on 09 Apr 2024
314 points (98.8% liked)

Linux

54013 readers
1132 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS
 

I thought I'll make this thread for all of you out there who have questions but are afraid to ask them. This is your chance!

I'll try my best to answer any questions here, but I hope others in the community will contribute too!

top 50 comments
sorted by: hot top controversial new old
[–] [email protected] 1 points 1 year ago (2 children)

How can I hide a pinned post without blocking the poster? It bothers me having this at the top of my list all the time, like some reminder on my phone I can't ack and make go away.

[–] [email protected] 2 points 1 year ago

Most third-party Lemmy clients should support this. For instance, if you're on Sync, you can just swipe it hide the post (assuming you've configured it that way).

[–] [email protected] 2 points 1 year ago (1 children)

I'm sorry I don't know of any way to do that :( does it appear even when you're browsing your main feed??

[–] [email protected] 1 points 1 year ago (1 children)

No, just at the top of the Linux community. I sort on New by default, looking for anything new Linux related... it's been slow news in there of late. I'll check if Voyager supports a method of doing it. Another user suggested Sync client. I'm usually on my desktop browser, though.

Thanks for checking. :)

[–] [email protected] 1 points 1 year ago (1 children)

I just unpinned the post. I figured there may be others bothered by this, and plus its been enough weeks at this point. Thanks for voicing this to me :)

[–] [email protected] 1 points 1 year ago

Shoot, I'm sorry. Thank you for doing that for me (and us, if there happen to be others). I do feel bad you felt forced to do that, though. :( I should just accept it is how it is until Lemmy devs a way. I'm sorry.

[–] [email protected] 1 points 1 year ago (1 children)

Is there any performance difference between KDE and GNOME?

[–] [email protected] 1 points 1 year ago
[–] [email protected] 2 points 1 year ago (1 children)

I want to turn a Microsoft surface go 2 into a kali linux machine. I would appreciate any guidance pulling this off. I want use it for learning it security stuff, partly for work but mostly for curiosity. Occasionally I run across malware, trojans, and I want to look under the hood to see how they work. I'm assuming Kali is the best tool for the job and that Lemmy is the place to go for tooling around with tools.

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago) (1 children)

Kali is a pentesting distro, it's not designed for malware analysis. The distro you'd want to use for malware analysis is REMnux, but it's mostly meant for static analysis. Static analysis is fine, but you may not be able to dig deep unless you're familiar with decrypting code and using tools like Cutter, Ghidra, EDB etc for debugging. Naturally you'd also need intimate low-level coding experience, familiarity with assembly language and/or Win32 APIs (or whatever APIs the malware is using). So this isn't an area a casual security researcher can just get into, without some low-level coding experience. But you can at least do some beginner-level analysis like analysing the PE headers and using some automated tools which employ signature-based detection, or you could analyse strings and URLs embedded in the malware; stuff like that.

Dynamic analysis is far more easier to get into and more "fun", but the problem is of course, with most malware being made for Windows, Linux is kinda irrelevant in this scenario. But you could still run Linux as a VM host and run the malware inside a Windows VM. The problem with running malware in VMs though is that these days any half-decent malware would be VM/context aware and may evade detection, so for accurate results you'd really want to run the malware on a real machine, and use tools like procmon, IDA, wireshark etc for analysis. But again, decent malware may be able to evade tools like procmon, so it can get quite tricky depending on how clever your malware is. You'd normally employ a combination of both static and dynamic analysis.

Industry pros these days often use cloud-based analysis systems which can account for many such scenarios, such as Joe Sandbox, Any.Run, Cuckoo etc. These offer a mix of both VM and physical machine based analysis. You can use these services for free, but there are some limitations of course. If you're doing this for furthering your career, then it's worth getting a paid subscription to these services.

Coming back to Kali Linux - it's not something you'd want to install permanently on physical machine, as its meant to be an ephemeral thing - you spin it up, do your pentesting, and then wipe it. So most folks would use it inside a VM, or run Kali from a Live USB without installing it.

There are also alternatives to Kali, such as ParrotSec and BlackArch, but really from a pentesting toolbox point of view, there's not much of a difference between them, and it doesn't really matter (unless you're a Linux nerd and like the flexibility Arch offers). Most industry folks use Kali mainly, so might as well just stick to it if you want to build up familiarity in terms of your career.

As for your Surface Go - you could install a normal daily-driver Linux distro on your Surface if you really want to, and then run Kali under KVM - which is personally how I'd do it. Running Linux on Linux (KVM) is pretty convenient has a very low performance overhead. You can also employ technologies like ballooning and KSM to save RAM, if your system has low RAM.

[–] [email protected] 2 points 1 year ago

Thank you for such an amazing response. You've given me so many great threads to pull on. I'm going to have a great time diving into all this. Sincere thank you.

[–] [email protected] 1 points 1 year ago (1 children)

Is explicit sync a good enough solution to make wayland gaming with nvidia a reality(+ remove window flickering like some people claim it will)? It's the last obstacle I find now trying to move my main pc to linux, and I don't really want to use x11.

Pd. Lesson learned, next time I'll get an AMD gpu.

[–] [email protected] 1 points 1 year ago

If you really want to switch there isn't really any reason to not use X.

If you really want to use Wayland I guess it will take a while longer. It's not really 100% foolproof even if you get AMD. The vast majority of apps on Linux are designed for X and XWayland isn't completely ready either.

[–] [email protected] 2 points 1 year ago (4 children)

Question about moving from Ubuntu to Debian - Package updates and security updates...

On Ubuntu, I seem to get notifications almost every week about new package updates. (Through the apt UI)

On Debian, I don't see this.

I can run apt update and apt upgrade

On Ubuntu, I see this pull a bunch of package data from various package repo URLs.

On Debian, I only see this pulling package data from two or three repo URLs at debian.org

Mainly I am concerned about security updates and bug fixes. Do I need to manually add other repo sources to the apt config files? Or does debian update those repos regularly?

[–] [email protected] 1 points 1 year ago

Are you using Ubuntu Long Term Release or not ?

  • I'm subscribed to Ubuntu and Debian announcements via email, and I see much more often Linux kernel updates for Ubuntu than for Debian. It makes me wonder whether the Debian kernel is slimmed down, and that Ubuntu is focused on Enterprises with their kernel.
[–] [email protected] 1 points 1 year ago* (last edited 1 year ago)

I wonder, if you are asking two different questions:

  1. Why don't you receive notifications about updated packages?
  2. Two: Security and bugfixes

For 1. it depends which desktop environment you use, Gnome/KDE have this update notifications out of the box, for other DEs (Xfce, LXDE, etc.) you might need to enable this with the installation of synaptic or similar.

For 2. Debian stable does not ship bugfixes but Debian stable ships security fixes. I highly recommend to subscribe to Debians Security mailing list, especially for security fixes concerning browsers and other stuff.

Edit: I have enabled automatic updates and I still receive regular notifications via Gnome Software, at least once per week.

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago)

Debian favors stability over anything else so the packages are thoroughly tested before release and then only upgraded for security issues, until the next release 2 years later when everything gets an update.

Ubuntu favors releasing more recent package versions constantly throughout the period between major releases.

You can install packages on Debian from the backports repo if you occasionally need an package to be a more recent version.

Another option is to install apps from Flatpak. The apps in Flatpak have their own separate dependency system and can be used on any distro.

If neither of these works for you and you find yourself constantly wishing packages were newer you may want to consider a different distro.

Some people switch their Debian from stable to testing to get similar updates to Ubuntu. You can try that but please understand you may experience the occasional issues.

Be wary of adding external repos (that don't point to debian. org) because they can mess with the package dependencies and prevent you from upgrading to the next version when it comes out. (This also applies to Ubuntu.)

[–] [email protected] 1 points 1 year ago

They’re updated regularly. Take a look at your etc/apt/sources on both. Debian has everything coming from their servers, Ubuntu has a bunch more.

If you’re going Ubuntu -> Debian be prepared to switch to testing or enable some packages from testing or even use an alternate install method for some software (yt-dlp).

[–] [email protected] 3 points 1 year ago (1 children)

How do I enable DNS over HTTPS or DNS over TLS for all connections in NetworkManager in Debian 12?

It is easy to configure custom DNS servers for all connections via a new .conf file in /etc/NetworkManager/conf.d with a servers=8.8.8.8 entry in the [global-dns-domain-*] section.

How can I configure NetworkManager to use DNS over HTTPS or DNS over TLS via a conf file?

[–] [email protected] 3 points 1 year ago* (last edited 1 year ago) (1 children)

NetworkManager doesn't support DoH, DoT or other recent protocols like DoQ and DoH3. You'll need to set up a local DNS resolver / proxy which can handle those protocols. You could use dnsproxy for this. Once you set it up, you can just use "127.0.0.1" as your DNS server in NetworkManager.

Btw, if possible I'd recommend sticking to DoH3 (DNS-over-HTTP/3) or DoQ (DNS-over-QUIC) - they perform better than DoT and vanilla DoH, and are more reliable as well.

[–] [email protected] 1 points 1 year ago

Thanks a lot for your answer! :-)

[–] [email protected] 1 points 1 year ago (2 children)

what is the difference between Wayland and xorg, why would you choose one over the other?

[–] [email protected] 1 points 1 year ago

This was answered previously in this thread: https://lemmy.ml/comment/10140174

[–] [email protected] 0 points 1 year ago* (last edited 1 year ago)

I use xorg on my desktop, because nvidia card don't have good support for my applications on wayland. Specifically, typing in electron app will jitter. I will be switching to wayland if this problem is solved.

I use wayland on my laptop because it is more secure and supports one-to-one gesture, which is crucial for trackpad.

[–] [email protected] 1 points 1 year ago (3 children)

[interview question]

Assuming a user is a root, can this user create a file that couldn't be read or deleted by other roots? ....by the same user?

[–] [email protected] 2 points 1 year ago

There is only one root user. Other users may have root access though. Any user can create files only readable by them, but root user can override all of them, change password of any user etc. For a user having root access, they can do all sorts of things root user does

[–] [email protected] 4 points 1 year ago* (last edited 1 year ago)

I think the POSIX standard only has one root user, however many users can have root privileges.

So it's probably a trick question, however any user even without privilege can make create a file which others can't, read even the root itself I think not sure though.

[–] [email protected] 3 points 1 year ago

What do you mean by other roots? Isn't root only one?

[–] [email protected] 2 points 1 year ago (2 children)

I feel like I'm getting performance below what I've been getting on windows for the same games when I'm booting in Linux. Top of the head example is COD WWII, the gameplay and cutscenes stagger a lot but runs fine on windows with the same hardware. I've checked that my graphics card is being used by Linux but I just feel like I'm missing some settings that would optimise it.

I'm running Linux mint with a NVIDIA GTX1070. I know there's some issues with NVIDIA and Linux but would that be the full reason?

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago)

I do not have a lot of knowledge on this, but I suspect that nvidia does not support the GTX1070 that well on Linux.

AND supports Linux better. As for nvidia, newer cards have a bit better support but I bet there's still some disparity.

[–] [email protected] 3 points 1 year ago* (last edited 1 year ago) (2 children)

I’m running Linux mint

I'd say that's your main issue. Mint isn't really optimised for gaming, as it uses an old and non-gaming optimised kernel, and most packages in general are pretty old. When it comes to Linux and gaming, the #1 rule is to try to get the latest kernel and graphics drivers. You could install a more recent and optimised kernel on Mint, but if you do that you risk breaking things, which may especially happen when you do your next OS upgrade. So I'd recommend switching to either a gaming-optimised distro such as Bazzite, or a distro which has the latest packages and is optimised for performance, such as CachyOS (although I wouldn't recommend it if you're still very new to Linux, since it's based on Arch - if you're new to Linux then Bazzite would be a better option).

The second issue is - which version of Proton are you using? If you're using the official Proton, I'd recommend using Proton-GE instead, as it includes a lot of extra patches and tweaks not present in the official Proton + uses more up-to-date components like DXVK. You can install Proton-GE easily using ProtonUp-Qt. Once you've installed Proton-GE, go to the game's property in Steam and change the compatibility tool to Proton-GE.

[–] [email protected] 2 points 1 year ago (1 children)

I'm also currently running Linux Mint but want to start gaming on Linux as well. Given what you've said it would seem that I need to consider distro hopping.

I have a "working" knowledge of Arch, I say working loosely as I have a home server running Manjaro and kinda maybe know what I'm doing with it and I'm comfortable following guides etc.

Which of the 2 distros you mentioned would you recommend? CachyOS looks great on the surface but Bazzite definitely seems to cater to gaming and it's website heavily leans that way

[–] [email protected] 3 points 1 year ago (1 children)

I think you'd be fine with either, but in the end it comes down to how "hands-off" you want to be, or how much customisability, flexibility and performance you're after. Unlike Manjaro, Cachy is closer to Arch, which means things may on rare occasions break or may require manual intervention (you'll need to keep up with the Arch news). Bazzite on the other hand is the polar opposite, being an immutable distro - updates are atomic (they either work or don't, and in case an update is no good, you can easily rollback to a previous version from GRUB); but this also means you lose some customisability and flexibility - like you can't run a custom kernel or mess with the display manager (logon screen) etc, and you'll need to mostly stick to installing apps via Flatpak or Distrobox.

Overall, if you're after a console-like experience that just works™, then choose Bazzite. On the other hand, if you're a hands-on type of person who likes to fine-tune things and is after the best possible performance, choose CachyOS.

[–] [email protected] 2 points 1 year ago

Thanks for the detailed response! I think CachyOS is the way to go for me. I like to be more hands on and have more flexibility

[–] [email protected] 2 points 1 year ago

Thanks for the recommendations! I was already kind of considering switching to Fedora so Bazzite sounds good, although CachyOS sounds interesting too.

load more comments
view more: next ›