Linux

54322 readers
322 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
1
 
 

I installed Windows 11 in Virtual Box in case I need it for school but it keeps crashing. My laptop is 12gb RAM and I gave the VM 8gb RAM.

If I upgrade my laptop RAM to maybe 16gb and give the VM 12gb RAM would that help? Thanks I'm a newb

2
 
 

I always hear that a normal computer user would never install an OS and that is the main reason Linux has not a higher market share. But I guess what we mean by that is that a user would never create a live usb, access the boot options and boot from there to install the new OS.

Is there a hard technical limitation when it comes to create a tool that installs a linux distro from a "normal" windows exe file, provided that the user first disables secure boot and fast boot (which are things a tool with admin privileges should also be able do on first run)?

Does such a tool already exist?

I feel like there's something I'm missing, forgive my ignorance

3
4
5
 
 

Conceptually I can understand that Termux cant take a photo or video from a camera device because it doesnt have access to the camera drivers that Android has....

...except that the Termux API does allow you to take a photo. So why is video off limits?

6
21
submitted 1 day ago* (last edited 1 day ago) by Libra@lemmy.ml to c/linux@lemmy.ml
 
 

The full error for anyone having issues with the screenshot is: Installation Failed Bootloader installation error The bootloader could not be installed. The installationc ommand grub2-install -target=i386-pc -recheck -force /dev/nvme0n1 returned error code 1.

Context: I've had a hell of a rough time trying to install linux on my system, I've tried Pop, 2 versions of Ubuntu, Mint, and now I'm trying Nobara, and it's the first one that failed to install (I've mostly had video driver issues with the others.) My current disk situation is kind of a mess, I have 4 in the system:

  1. ~15 year old OCZ SATA 128GB SSD (windows/boot)
  2. ~10 year old WD SATA 512GB SSD (windows libraries like pictures, documents, downloads, etc)
  3. ~6 month old Samsung 990 EVO 2TB M.2 NVMe SSD (games installed from windows)
  4. ~5 year old BPXPro 1TB M.2 NVMe SSD (previous Ubuntu install that I had other issues with)

#1 is my boot drive and has the bootloader on it (when I want to boot ubuntu I hit F11 and select the second entry for that drive in the menu.) Previous distro installs have had no problem installing right over top of that and disk #4, but for whatever reason Nobara has failed to install the boot loader and I have no idea how to even begin to resolve this. I've done some searching and only found results with similar situations that aren't quite the same, it seems this is commonly an issue with linux installs into partitions of a drive that is shared with windows, but that's not what I'm doing (at least not for the main install, I guess that is kind of what it's doing with the bootloader?)

I can manually erase disk #4 if that would help, but is there some way I can manually go in and clear out the old bootloader (without messing up the windows install/boot)?

Other specs in case it's relevant:

  • Ryzen 7 3800X 3.9GHz 8-core CPU
  • 32GB DDR4-3200 RAM
  • Gigabite Vision OC 12 RTX3060 GPU
7
 
 

On discord using fedora linux, when screensharing, it works, but my cursor doesn't show(so it shows the screen, but not cursor), does anyone else have the same problem as me? and if you know, how can i solve it?

8
 
 

Howdy,

Just installed Nobara again and am trying to figure out why this is happening. I think it's a firefox thing since I haven't seen it happen in any other application; basically anytime I do a lot of scrolling, the firefox window breaks down and I can see my desktop background behind it. It always happens in the bottom right cornerish part of the window. I'm up to date on all updates as far as I'm aware. I did some googling and checking out the nobara discord but I couldn't find anything related. I tried recording my screen via spectacle to show the issue, but it wouldn't capture the issue.

Any help would be appreciated; I am a linux beginner so dumbing down any info you have would be nice. Thanks!

9
21
submitted 2 days ago* (last edited 19 hours ago) by Telorand@reddthat.com to c/linux@lemmy.ml
 
 

I recently wiped Windows in favor of CachyOS, and it's been lovely! However, I have one outstanding issue that I can't seem to figure out.

To start, I have a Gigabyte B550I Aorus Pro AX motherboard. I followed the guide on the Arch Wiki for my particular chipset.

I still can't seem to control my cooling fans.

  • I have lm_sensors installed
  • I installed CoolerControl
  • I used modprobe it87 force_id=0x8628
  • I tried adding the .conf files to /etc/modprobe.d/ and /etc/modules-load.d/
  • When the steps above didn't work, I installed the it87-dkms-git package

No matter what I've tried, the only time the fan sensors get detected is when I also specify acpi_enforce_resources=lax in GRUB. From what I barely understand, that's not an option you want to leave on permanently, but perhaps y'all know better or have other ideas.

If it helps:

  • Motherboard: Gigabyte B550I Aorus Pro AX
  • Latest CachyOS kernel
  • Boot: GRUB

Edit: I have a semi-solution.

sudo modprobe it87 force_id=0x8688 ignore_resource_conflict=1

...allows the module to load without completely changing the acpi policy. I still don't know how to make it cleanly permanent or automated, but this is significant progress.

Also note that it should have been 0x8688 in my case, as revealed by sensors-detect.

Edit 2: Added

/etc/modules-load.d/it87.conf
it87

And

/etc/modprobe.d/it87.conf
options it87 force_id=0x8688 ignore_resource_conflict=1

And everything loads automatically! Thanks everyone!

10
44
submitted 2 days ago* (last edited 15 hours ago) by suzucappo@lemmy.world to c/linux@lemmy.ml
 
 

As the title says I am trying to get my handbrake to recognize as a joystick so I can use it.

Running Arch.

This is the device in question. https://www.amazon.com/dp/B07SPVY2WL

It shows up with lsusb as the following. Bus 001 Device 006: ID 1021:1888 ZSC ODDOR-HANDBRAKE

Device info from cat /sys/kernel/debug/usb/devices T: Bus=01 Lev=01 Prnt=01 Port=04 Cnt=04 Dev#= 6 Spd=12 MxCh= 0 D: Ver= 2.00 Cls=ff(vend.) Sub=ff Prot=ff MxPS=64 #Cfgs= 1 P: Vendor=1021 ProdID=1888 Rev= 1.14 S: Manufacturer=ZSC S: Product=ODDOR-HANDBRAKE C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=500mA I:* If#= 0 Alt= 0 #EPs= 2 Cls=03(HID ) Sub=01 Prot=05 Driver=(none) E: Ad=81(I) Atr=03(Int.) MxPS= 64 Ivl=10ms E: Ad=01(O) Atr=03(Int.) MxPS= 64 Ivl=10ms

I found this bit of information but it's related to openSUSE and is quite old but I'm hoping it might help. https://www.spinics.net/lists//linux-input/msg88778.html

It doesn't show up in /dev/input/...

Any ideas on how I could get this thing recognized so I can use it?

Edit:

I got connected with someone at the Simracing space on matrix per the advice from @lemonuri@lemmy.ml and they helped me to get it working. Here is what we did.

Create the file 99-handbrake.rules in /etc/udev/rules.d and add the two following lines to it.

SUBSYSTEM=="usb", ENV{ID_VENDOR_ID}=="1021", ENV{ID_MODEL_ID}=="1888", RUN+="/bin/sh -c 'echo 1021 1888 > /sys/bus/usb/drivers/usbhid/new_id'"

SUBSYSTEM=="input", ATTRS{idVendor}=="1021", ATTRS{idProduct}=="1888", ENV{ID_INPUT_JOYSTICK}="1"

This forces the device to usbhid as a joystick whenever it is plugged in and recognized.

Run the following command to reload the device rules if you don't want to reboot. Otherwise you can omit the command and reboot.

sudo udevadm control --reload

It now shows up and is working.

So the device was registering a button at the end of the pull and showing up as an Xbox controller while not recognizing the axis being moved so it was all or nothing.

I installed protopedal and following advice created a dummy device which remapped the inputs so that it registers the analog input only which worked.

protopedal --name "handbrake" -b JOYSTICK -a THROTTLE -s 0:THROTTLE -a Y --no-auto-buttons --no-auto-axes /dev/input/by-id/usb-ZSC_ODDOR-HANDBRAKE-event-joystick

Making a final update for this.

All credit goes to JacKeTUs for his work on helping me out. He is making/made the driver for this. It may go into AUR for Arch users, so if anyone ends up looking for support for this handbrake you can find the source at the below link.

https://github.com/JacKeTUs/hid-oddor-handbrake

This will install the driver (currently it needs to be loaded after running sudo make) and the udev rule. It eliminates the need for protopedal but does require launch options to be set.

SDL_JOYSTICK_WHEEL_DEVICES=0x1021/0x1888 %command%

11
 
 

RHEL 10 announced that RDP would be the preferred alternative to VNC. Red Hat replaced Spice with VNC in Red Hat 8 due to licensing issues with h.246. VNC is under featured and basic compared to both alternatives. Spice uses proprietary h.246 which caused disputes with licenses. RDP is proprietary to microsoft but has a few foss implementations.

12
13
14
15
37
submitted 3 days ago* (last edited 3 days ago) by sp3ctre@feddit.org to c/linux@lemmy.ml
 
 

Hi everyone,

as my thread from yesterday about shredding SSD's the right way already was very helpful, another follow-up topic came to my mind, which may also be interesting for me and maybe others too.

Since many PC's often use SSD's and less harddrives nowadays it may be interesting to discuss the full-disk encryption of it.

First of all some questions, which came to my mind:

  • Does the encryption of a SSD decrease its performance (read/write-speed) significantly?
  • How does the encryption affect the wear-leveling of the SSD and what should be considered to ensure a safe encryption?
  • Will functionalities like hibernation still work? Are maybe other functionalities affected in a negative way?

I already successfully full-disk encrypted my old laptop (harddrive) with the instructions from StackExchange. My computer has a 1TB SSD + 1TB harddrive and I wish to encrypt completely everything, that's not technically necessary. I want to use Debian as my distro. Could this instruction work the same way as with harddrives?

I'm interested in your knowledge about this.

~sp3ctre

16
 
 

cross-posted from: https://lemmy.world/post/29911877

Everything seems fine, but I have no network access 😅 happened after I restarted for a System update. Can't figure out what is wrong - help please 😊 Wired connection.

Enabled Wifi, but same problem; connect but cannot reach gateway. (other computers and pads are connected, and they work fine).

17
 
 

Hey guys,

I want to shred/sanitize my SSDs. If it was a normal harddrive I would stick to ShredOS / nwipe, but since SSD's seem to be a little more complicated, I need your advice.

When reading through some posts in the internet, many people recommend using the software from the manufacturer for sanitizing. Currently I am using the SSD SN850X from Western digital, but I also have a SSD 990 PRO from Samsung. Both manufacturers don't seem to have a specialized linux-compatible software to perform this kind of action.

How would be your approach to shred your SSD (without physically destroying it)?

~sp3ctre

18
46
submitted 4 days ago* (last edited 4 days ago) by JovialSodium to c/linux@lemmy.ml
 
 

I'd been using ZFS with Void linux on both my laptop and desktop for a couple of months. And ZFS is cool! But I'm thinking not great for my use case, especially for my laptop with it's more constrained resources. Memory usage was a real problem, even after imposing low ARC limits. And the kernel module compile time was long enough to be a bit annoying, especially for a few kernels (I like to keep the last few around, to be safe) as it happens fairly often on a rolling release.

I switched the laptop to LUKS/btrfs a couple of days ago. And I'm thinking that was the correct choice for that. And now I'm considering doing the same for my desktop. As they seem comparable but btrfs is in-kernel and seemingly more system resource friendly. But before doing so I figured I'd ask the community about it. Maybe some important factors or features for either setup that I might not be considering.

Here's the stuff I care about. All of which both offer, but I'm not an expert at either and I don't know how equal they are.

  • Disk encryption. For ZFS everything (except the EFI partition) is encrypted. I use ZFSBootMenu in this scenario. For the btrfs setup I have the kernel/initramfs on an ext2 partition. I do not store any decryption keys in the initramfs. I know grub can decrypt LUKS with limitations, but I prefer this setup. And it feels secure enough to me. Any pitfalls I'm missing?
  • Pools/subvolumes
  • Snapshots. ZFSBootmenu has an option to load a snapshot. For btrfs it looks like I'd need to create a subvolume from a snapshot, which in a recovery situation might mean doing this from recovery media. That's ok, given this is an unlikely thing to encounter. But if anyone knows of an easier way, I'd love to hear it.
  • CoW
  • RAID 1
  • Compression is nice, especially for the laptop

Edit: typo in title.

19
 
 

If I install software from .deb file, do I still get the updates & upgrades when I run sudo apt update / upgrade ? Or is flatpak the way to go? I'm not very familiar with flatpak, so I'm trying to avoid, but it seems that cons are limited. I'm currently running mint cinnamon (how original, I know), and asking because i can't seem to add mullvad-vpn stable repo. Thank you for your help,

20
 
 

So Ive been using linux for a long time and mostly with gnome. I know about window managers and how using them will reduce the memory usage by system a lot because they are less bloated etc. I want to try a window manager on my nixos machine - this will be my first time trying one, I have good knowledge in programming so technical stuff wont bother me that much. Which window manager do you suggest? Customization is my priority.

21
22
23
 
 

Title, I am unsure if games are using my GPU or if using my CPU, or maybe my GPU through my CPU, I do not know, something is using my GPU, but I think its just KDE plasma, and I would like to know definitively how to find out

24
 
 

Hi everyone! I know im not good with technology. I brought a surface pro 8, 3 years ago. I obviously understand that was a mistake and i should have listened to programmer cousin. Its gonna be slighty difficult to install linux on it.

I've researched several youtube videos, but i was wondering if anyone had any tips?Obviously the attachable keyboard has to work and i want the touch screen to work. The surface appealed to me when i brought for those features.

With all the privacy concerns of windows, i want to commit to switching my operating system! Thank you everyone for their help with all my privacy questions. Ive been getting into foss and learning kotlin.

25
30
scanner (szmer.info)
submitted 4 days ago by chlorofil@szmer.info to c/linux@lemmy.ml
 
 

Hello, what's the best way to deal with the lack of the drivers for scanners on the original website? I mean specifically Canon Pixma. Thanks in advance.

view more: next ›