Linux

55874 readers
473 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
76
15
submitted 1 week ago* (last edited 6 days ago) by d00phy@lemmy.world to c/linux@lemmy.ml
 
 

I'm trying to boot some VMs using a script w/ a kickstart file. I'm using the following script that I found online and modified:

#!/usr/bin/env bash
#set -x
## Define variables
MEM_SIZE="8192"      # Memory setting in MiB
VCPUS="2"             # CPU Cores count
#OS_VARIANT="rocky9"   # List with osinfo-query  os
OS_VARIANT="rhel7.9"   # List with osinfo-query  os
ISO_FILE="~/Documents/software/os/RHEL-7.9-20200917.0-Server-x86_64-dvd1.iso" # Path to ISO file

case $OS_VARIANT in
        rhel7.9)
                KS=ks7.cfg;;
        rocky9)
                KS=ks9.cfg;;
esac

echo -en "Enter vm name: "
read VM_NAME
OS_TYPE="linux"
echo -en "Enter virtual disk size : "
read DISK_SIZE

DISK=~/.local/share/libvirt/images/${VM_NAME}.qcow2

echo "Creating disk"
sudo virt-install \
     --name ${VM_NAME} \
     --memory=${MEM_SIZE} \
     --vcpus=${VCPUS} \
     --location ${ISO_FILE} \
     --network network=default \
     --disk path=${DISK},size=${DISK_SIZE} \
     --graphics=none \
     --os-variant=${OS_VARIANT} \
     --console pty,target_type=serial \
     --initrd-inject ~/virt/${KS} --extra-args "inst.ks=file:/${KS} console=tty0 console=ttyS0,115200n8"

I've obfuscated the directory paths, but they're all full paths and the script will build a VM. So basically just setting up a basic system, using the default network. Here's the config for that:

<network connections='3'>
  <name>default</name>
  <uuid>61afc7f1-9c5e-4cra-8d18-e3cf4f9358e9</uuid>
  <forward mode='nat'>
    <nat>
      <port start='1024' end='65535'/>
    </nat>
  </forward>
  <bridge name='virbr0' stp='on' delay='0'/>
  <mac address='52:54:00:7c:32:9b'/>
  <ip address='192.168.122.1' netmask='255.255.255.0'>
    <dhcp>
      <range start='192.168.122.2' end='192.168.122.254'/>
    </dhcp>
  </ip>
</network>

Looking at the XML for the VM, I see the following for the network:

<interface type='network'>
      <mac address='52:54:00:07:82:78'/>
      <source network='default' portid='800dfd67-d90a-42te-a0b7-c4c78cdae481' bridge='virbr0'/>
      <target dev='vnet7'/>
      <model type='virtio'/>
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
    </interface>

When this VM is installing, and when it's booted, it does not have an IP. Meanwhile, if I go through virt-manager and select the default network, it gets an IP just fine. I've tried running the virt-install command w/ and w/o sudo (I run virt-manager as me - I'm in the libvirt group). Looking at the virt-manager built VM:

    <interface type='network'>
      <mac address='52:54:00:5e:f5:05'/>
      <source network='default' portid='d57dbc56-759e-40f9-856f-9623f4801a93' bridge='virbr0'/>
      <target dev='vnet8'/>
      <model type='virtio'/>
      <alias name='net0'/>
      <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
    </interface>

Looking at virbr0:

$ ip link show master virbr0
11: vnet7: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master virbr0 state UNKNOWN mode DEFAULT group default qlen 1000
    link/ether fe:54:00:07:82:78 brd ff:ff:ff:ff:ff:ff
12: vnet8: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue master virbr0 state UNKNOWN mode DEFAULT group default qlen 1000
    link/ether fe:54:00:5e:f5:05 brd ff:ff:ff:ff:ff:ff

Only difference I can see is one is created using virt-install and the other using virt-manager (which calls to virt-install, no?). I thought there was a way to see the actual virt-install command virt-manager was about to use when creating a VM, but I can't find it. Also can't find any logs to give me an idea why the VM isn't getting an IP. Running ethtool on the VM interface shows a link. I've wasted too much time getting this to work, and all the documentation suggests it should "just work!"

ETA: PEBKAC! Remember where I said I was using kickstart? Yeah, well it helps to actually include a network configuration, even if it is just DHCP! Feeling stupid, but it's working.

77
44
submitted 1 week ago* (last edited 1 week ago) by OhVenus_Baby@lemmy.ml to c/linux@lemmy.ml
 
 

I have been tossing around the idea of a little distro hopping. I'm an avid mint fan. It was my first jump from windows. I became quite familiar with mint but felt the want to branch out and went down the rabbit hole (oh my lanta). I like stability and cleanliness. Security by default. Least mental load possible long-term.

I'm currently testing out NIXos. Next will be VanillaOS, 3rd will be Fedora Silverblue. Anyone have good recommendations? Easy backups, stability, security first posture, least maintenance and memory load. I hate getting scattered in symlinks, scripts, and filesystem placing.

I've tried going full custom Linux mint. But app armour and Firejail constantly conflict or require manual updating and tweaking to keep up to date with app installs, or general life cycle updates.

The most intriguing aspect if NIXos was that basically the entire configurable system was confined to two files. Infinitely reproducable. I tend to swap laptops or hardware relatively often being on the go or getting good tech deals. Having your entire system in two files essentially is awesome.

What are some pros and cons of different distros? What do you daily drive as a power user? Give me your thoughts and recommendations! Thanks.

78
 
 

I recently figured out how nice Wine works for running old Windows games. However, many of them are fixed at 800x600 or another similarly low resolution. No big deal under X11 or Windows since the game will just stretch to fill the screen. But on KDE Wayland, the game just runs unscaled with black bars all around and none of the display settings seem to help. Is there an accepted way of setting the screen to a lower resolution but stretching it to fit the full display on Wayland sessions?

79
 
 

Had to deal with this recently. The cause is openSUSE's move to SELinux on new installs, which by default blocks the required permissions for the RPM version of Steam. You can correct this with these commands: ausearch -c 'steam' --raw | audit2allow -a -M my-steam to create the permissions file and semodule -X 300 -i my-steam.pp to apply it. Hopefully this saves someone else from the wild goose chase I went on earlier.

80
 
 

Hiya!

I have a Raspberry Pi 4B set up as a print server, so it has to run 24/7. But it irks me that it's mostly idling.

I'd move my website to it, but I don't want to deal with it being open to the internet. The same goes for an e-mail server.

I was also thinking of running a Minecraft server on it. (Being able to play on the same world from different devices is kinda cool.) Alas, my RPi only has 4 GiBs of RAM. I worry that such a load would interfere with the print server.

Any ideas what I could run on it?

81
82
 
 

So I jumped from Windows to Linux, endeavouros btw, and would like to know:

how you keep your system clean? If you are infected how do you find out? What do you do about it then?

83
 
 

This blog post is already quite long, so it will omit changes merged for Plasma 6.5 (releasing in October, to be announced in a future post).

With the Plasma 6.2 release, we moved Plasma Dialer and Spacebar to the Plasma release cycle, allowing us to have consistent releases of the two apps. This completes our year long move to having all Plasma Mobile related projects released as part of wider KDE releases, streamlining the work for distributions and taking a load off us on having to maintain a separate release cycle!

In other news, a Fedora spin for Plasma Mobile was released! It will only be targeting devices that can currently boot Fedora (i.e. not ARM phones), but is very exciting nonetheless!

84
85
 
 

Regular call to fzf, but output the index number of the selected entry, instead the text itself. It's a pretty niche use case, but there was a few times in the past when I needed it. You can use options for fzf just normally too.

fzn() {
    nl | fzf --with-nth 2.. "${@}" | awk '{print $1}'
}

Usage:

find . -maxdepth 1 -type d | fzn -e -m

I always forget how to do this manually, so I made this simple function for Bash. Just copy this like an alias into your .bashrc and use it like any other command in a pipe.

86
 
 

Thank you everyone for your insight, comments, and help with the process! I'm started with Fedora, and after some brief confusion between Gnome and Plasma, I'm off! :D

Special thanks to all of you cool dudes: [@xylogx@lemmy.world] [@bell@lemmy.world] [@niucllos@lemm.ee] [@Archr@lemmy.world] [@bacon_pdp@lemmy.world] [@Gabadabs@lemmy.blahaj.zone] [@CoyoteFacts@lemmy.ca] [@paequ2@lemmy.today] [@SnotFlickman@lemmy.blahaj.zone] [@data1701d@startrek.website] [@swelter_spark@redhat.com] [@Crazyslinkz@lemmy.world] [@Kirk@startrek.website] [@spv.sh@lemmy.spv.sh] [@secret300@lemmy.sdf.org] [@enemenemu@lemm.ee] [@UNYON@linux.community] [@OldFartPhil@lemmy.world] [@Communist@lemmy.frozeninferno.xyz] [@Wolfie@lemm.ee] [@beagle@discuss.tchncs.de] [@octobob@lemmy.ml] [@teawrecks@sopuli.xyz] [@some_guy@lemmy.sdf.org]

5/5 stars, would upgrade again!

87
88
 
 

What's the future of screen capture on Linux? What's holding it back? What's pushing it forward?

A version of this question that might be more accurate/holistic: Do you think there'll be a standard, high-performance desktop API in our lifetimes?

It feels like there isn't the same market pressure like there is for Valve and Proton that'll make a good capture protocol appear. I'd love to eat my words, but I'd also easily bet one trillion dollars^fn1 that I'll be dead before anything dethrones GPU vendor extensions.


tangential additions / context for the terminally bored:

For example, Nvfbc+Nvenc is a must-have for game streaming with Moonlight and ALVR (not sure if AMD has anything like that), but it's my poor understanding that this type of GPU-only framebuffer capture isn't possible on Wayland for security or other reasons, which is sadly keeping me on X11.

Windows probably has awesome screencapture APIs given that the NVIDIA Capture SDK documentation cites it as why they removed Nvfbc from their Window's drivers but not their Linux drivers.

The proof that Windows reaped the rewards of unifying all their stuff can be seen in the Lossless Scaling-likes that are on the market (Magpie, Integer Scaling, etc.) while all Linux has is like Gamescope and vkbasalt [^fn2], so apples and oranges.

[^fn2]: super-tangential: I tried to ducttape a Lossless Scaling-like out of nvfbc, using a shader to do closest neighbor scaling. But once I had to truly delve into Xorg, I gave up, as playing Maple Legends was not worth all that effort.

89
 
 

I know this probably comes up a lot and is liable to spark some debate, but I'm curious what the good options are for terminals. I've skimmed some reddit/lemmy posts about it and looked at a few options and I dunno how to decide between them because they all seem like they're too narrowly focused on some particular use case. I'm just using it for general terminal stuff, nothing terribly fancy. I'm aware that there's not one terminal to rule them all or anything, so I'm curious: what do you folks use, and more importantly, why do you use that over the (many) other options available?

Personally I've just been using konsole since it's what came with kde and it seems nice and all, but I feel like I'm missing out on features I don't even know about. One feature that might be nice is some kind of local LLM integration so I can get help on how to tinker with settings and such where i'm doing the tinkering instead of constantly tabbing out to duck.ai or w/e.

90
91
 
 

Hi,

I'm looking for a soft to create ASCII diagram like (or better) https://asciiflow.com/

ideally:

  • FLOSS
  • for linux
  • offline
  • no javascript.

I've found a candidate ascii-draw and it's write in Python ❤️ 🐍, but it's only available as flatpack.. :/

92
 
 

The KDE community today announced the latest release: Plasma 6.4. This fresh new release improves on nearly every front, with progress being made in accessibility, color rendering, tablet support, window management, and more.

Plasma already offered virtual desktops and customizable tiles to help organize your windows and activities, and now it lets you choose a different configuration of tiles on each virtual desktop. The Wayland session brings some new accessibility features: you can now move the pointer using your keyboard’s number pad keys, or use a three-finger touchpad pinch gesture to zoom in or out. Plasma file transfer notification now shows a speed graph, giving you a more visual idea of how fast the transfer is going, and how long it will take to complete. When any applications are in full screen mode Plasma will now enter Do Not Disturb mode and only show urgent notifications, and when you exit full screen mode, you’ll see a summary of any notifications you missed. Now when an application tries to access the microphone and finds it muted, a notification will pop up. A new feature in the Application Launcher widget will place a green New! tag next to newly installed apps, so you can easily find where something you just installed lives in the menu. The Display and Monitor page in System Settings comes with a brand new HDR calibration wizard, and support for Extended Dynamic Range (a different kind of HDR) and P010 video color format has been added. System Monitor now supports usage monitoring for AMD and Intel graphic cards, it can even show the GPU usage on a per-process basis. Spectacle, the built-in app for taking screenshots and screen recordings, has much improved design and more streamlined functionality. The background of the desktop or window now darkens when an authentication dialog shows up, helping you locate and focus on the window asking for your password. There’s a brand-new Animations page in System Settings that groups all the settings for purely visual animated effects into one place, making it easier to find and configure them. Aurorae is a newly added SVG vector graphics theme engine for KWin window decorations.

You can read more about these and many other other features in the Plasma 6.4 anounncement and complete changelog.

93
25
submitted 2 weeks ago* (last edited 2 weeks ago) by BurntWits@sh.itjust.works to c/linux@lemmy.ml
 
 

Hello there.

I’m a newbie to Linux and am still figuring everything out. I posted here a few days ago and you fine folks helped me with a problem. Now I’m in need again.

I decided to distro hop a little bit just to see what I like best, and am currently testing out Bazzite since I mostly use my PC for gaming at the moment and heard that one’s a good one for gaming. I’m using a laptop hooked up to an external monitor right now. After installing Bazzite I was asked what I wanted to do with the external monitor. Since I never use my laptop screen, I chose the option to only display on the external monitor. Unfortunately that didn’t seem to play nice, and now my laptop screen is black (obviously) but the external monitor is saying no input anymore. It accepted the input up until making that choice. Now I can unplug the monitor and use the laptop screen just fine, but my setup makes that quite annoying, plus I want to use my monitor obviously. The biggest problem is I can’t adjust the monitor settings without the monitor plugged in, and I can’t see anything with the monitor plugged in. Does anyone know of a solution to this problem? I’ve never faced it before in my years of using windows, and I didn’t have this problem in Mint either. I don’t really want to reinstall, but I will if I have to. If anyone knows of a solution without reinstalling I’d appreciate it. Thanks in advance.

94
 
 

I'm looking for a package that will let me use a gamepad as a mouse for a PC getting hooked up to a tv. Does anyone have any good recommendations?

95
 
 

Hello, I yet again come, hat in hand, for assistance from those wiser in the ways of the Linux. I’m having a bit of an issue downloading Jellyfin on my ElementaryOS laptop. I’ve tried all the guide on the first few pages of ddg only to receive errors after entering the comman “ sudo apt-get update “. I get ERR:3 https//repo.jellyfin.org/debian circle Release 404 Not found.

If someone can point me the way I’d be most appreciative

96
 
 

Hey everyone,

When I was previously on windows I had a lot of fun doing music production. My workflow took place in FL studio and used a lot of software synthesizers (VST files mainly).

After my switch to Linux, I am 95% better off. Everything is great except I have to rediscover a music workflow.

It's quite painful because I had licenses to some very expensive software synth libraries (The Arturia V collection for example). I have done some reading and have found that while it is possible to get FL studio working in Linux, it still doesn't have the greatest of results.

As far as that goes, I am not terribly concerned - Reaper, Bitwig, and other Linux DAW's exist and I am fine using those instead even if it means purchasing a license for the paid ones.

But the real problem is the software centers/Licenses/installations for my software synths. It would be such a shame and a waste of money if I couldn't get these working, but I don't know much about dealing with this on Linux, so I am appealing to your collective knowledge.

I wanted to ask if anyone has successfully installed the Arturia V collection on Linux for use in a DAW, and if so, what you think I should know about it. I thought I read somewhere about some software these could be emulated/installed through (not wine), but I'm just really open to hearing about recommended options for something like this if anyone knows.

Otherwise, I wanted to ask my musical Linux friends here what they have for VST's and what their workflow is on Linux, because it's always fun to develop new work flows.

Thanks

97
 
 

I've found this to be pretty useful when needing to do recursive / multi-file search and replace. Also has bindings to work within terminal text editors like vim and helix.

Uses rust and ripgrep under the hood for speed.

98
99
 
 

Since Gnome 44 there is a new UI to show apps (i.e. messengers, sync clients, ...) that run in the background. It is supposed to take the place of the tray icons. In my experience it's basically not working, though.

The only app I use that uses the UI is the nextcloud client. But that thing's autostart seems to be very unreliable and most of the time I have to start it manually after booting. Could be an issue with the app and not with Gnome, but I don't know.

I also use Telegram and Element, but both still seem to use the old tray icons that you now need to install an extension for to work. Meaning that with vanilla Gnome when you close the Telegram window, the app is stopped and can't receive massages in the background.

Is the new UI broken or are app developers just not implementing it into their apps or what's wrong with the current situaltion?

100
 
 

I'm in need of a CAD program with an easy aproach for someone with zero experience on this type of software.

3D printing is not a concern

I intend to draw the blueprints for my house. The building is old, no blueprints exist for it, and I intend to make renovations to it, so having blueprints to work on to plan the renovations will be a huge help.

view more: ‹ prev next ›