Linux

55953 readers
462 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
151
 
 

Helloo, firstly this might be long post about people talking void linux hasnt much packages in opposite of arch which has aur, so i will try conveince some people to void linux and will tell also something about package managers.

Package manager is a thing that keeps organized all programs on your pc, normally you would have to go to site, download .deb or .tar.xz and etc. package manager takes cares of doing that and manager also integrates this package with system, so when theres update and something is added or deleted, package manager will take care of all.

Okay, so if its only downloading then why AUR has 97587 packages, and XBPS-SRC (void linux - aur alternative kinda) has much less? It's because AUR is community, anyone can maintain some package, XBPS-SRC also has community but by pulling requests to merge TEMPLATES, but that doesn't mean u can't add your own TEMPLATES.

Wait, wait, wait, what are TEMPLATES?

Its kind of script which makes Package manager do its thing. Templates in XBPS-src and "PKGBUILD?" in AUR are similar.

We have to tell in this script: what package, what version, give link to download and etc.

Example of TEMPLATE in XBPS-SRC for DISCORD:

# Template file for 'discord'
pkgname=discord
version=0.0.96
revision=1
archs="x86_64"
depends="alsa-lib dbus-glib gtk+3 libnotify nss libXtst libcxx libatomic
 xdg-utils webrtc-audio-processing libXScrnSaver"
short_desc="Chat and VOIP application"
maintainer="Ryan Conwell <ryanconwell@protonmail.com>"
license="custom:Proprietary"
homepage="https://discord.com/"
distfiles="https://dl.discordapp.net/apps/linux/$%7Bversion%7D/discord-$%7Bversion%7D.tar.gz"
checksum=2b885df8aa69310726f46149e39c42d48eda8f14b53aae605b5d7fa6410c4c0c
repository=nonfree
restricted=yes
nopie=yes
nostrip=yes

do_install() {
	local package_location="usr/lib/$pkgname" item
	vmkdir usr/share/pixmaps
	vcopy discord.png /usr/share/pixmaps/
	vmkdir usr/share/applications
	vcopy discord.desktop /usr/share/applications/
	vmkdir ${package_location}
	chmod +x Discord
	for item in \
		locales \
		resources \
		Discord \
		libffmpeg.so \
		snapshot_blob.bin \
		discord.png \
		icudtl.dat \
		libEGL.so \
		libGLESv2.so \
		chrome_100_percent.pak \
		chrome_200_percent.pak \
		chrome-sandbox \
		chrome_crashpad_handler \
		resources.pak \
		libvulkan.so.1 \
		v8_context_snapshot.bin \
		postinst.sh \
		libvk_swiftshader.so \
		vk_swiftshader_icd.json
	do
		vcopy "${item}" "${package_location}"
	done
	vmkdir usr/bin
	ln -sfr $DESTDIR/${package_location}/Discord $DESTDIR/usr/bin/Discord
}

post_install() {
	vlicense $FILESDIR/LICENSE
}

Okay, but still AUR has much much more packages than xbps-src, why should i use it then? Why should i learn how to make templates?

I hope you don't use AUR blindly and just do yay -S something without looking what pkgbuild is doing, it might be dangerous not knowing what program can do and what script that is downloading it too right? XBPS-SRC learns you how to maintain packages.

Also theres way to share Templates with other by importing REPO of some templates, like librewolf-void repo and etc. So there's way to share packages.

So this is my way to conveince you to use void linux :). IN MY OPINION, void is what people think arch is. A diy distro with learning curve to understand how OS works. ARCH is great!, but void gives you more knowledge of what things systemd takes care.

To make thing little bit funnier theres easy and really nice (experimental and not official) script of installing void :

https://github.com/kkrruumm/void-install-script

THANK YOU FOR READING! I might not be clear or right in some things so tell me about that in comment, i will read everything.

SOURCES:

https://xbps-src-tutorials.github.io/packaging/j4-dmenu-desktop.html
https://github.com/void-linux/void-packages
152
153
 
 

...and it's a bit, well... Shit. Ah well, good fun getting it up and running anyways, and at least the tablet is now jailbroken.

So, while there are loads of tutorials to install Ubuntu Touch, there are very few that I can see on how to revert the changes, or go to LineageOS or similar. Any pointers?!

154
 
 

Got old x86 10.1’’ tablet for free, with one “small” caveat - 1 Gb of DDR3 RAM and 16 Gb of internal storage. It had Win 10 Home from factory, version from 2018 - which was able to squeeze into 600-700 Mb of RAM, leaving 300 to user.

Well, Antix works kinda decent, consuming 200 Mb when idle. MX Linux (xfce version) looks good but eats the same 700 Mb…

But the real depths of pain were making touchscreen work… spent 8 hours just on that and failed miserably. Tomorrow will go for a cheap android tablet…

The only thing it needs to provide - working flowkey app.

155
 
 

Hi Lemmy!

This post is a way for me to announce one of my apps that I made for my personal usage.

Azul box

It is a front end for yt-dlp and ffmpeg. It isn't just a yt-dlp downloader; it's more like a utility app that does anything that I need. The "special" part about this software is probably the ability to download YouTube subtitles and then embed them into the audio file as synced lyrics. Well, that is the only "unique" thing about it. As I’m still quite new to programming, there may be some bugs, and I appreciate your understanding. I’m also learning how to package it as a deb/rpm and plan to dedicate time to this during the summer. For now, the only way to download it will be to build from source with the bash install script in my repo.

If you have some time to try the app, I would love to hear your thoughts. Thank you for taking the time to read this! :)

156
 
 

this also doubles as a please help me out on this post, the dock doesn't work

157
 
 

I've been on the fence since I've been trying Hyprland. What I want out of a window manager / DE is lots of window customization settings (borders, animations, etc.), & having configuration inside one file or one directory with hot-reloading (I'm switching from KDE since its config files all over the place). Hyprland is very popular among WM users with a large ecosystem, though I prefer stacking rather than tiling. I can make it work with some window rules, and shell scripts using hyprctl & jq.

I'm wondering how many little things I will need to fix / figure out. For instance, when I open the firefox bookmarks library with CTRL SHIFT O. When that window is open but not focused, and not on top, if I press CTRL SHIFT O again on a DE it comes back to the top, but not on Hyprland. I could probably find a fix for that?

I might be answering my own question but I really want to hear thoughts.

158
159
 
 

Hello, cant attach image cause of file size, i have fresh void linux base install in tty and btop tells me i use 500-600MiB of ram but my top 3 services uses 7-25M and rest are 5>, free -m also tells me 600M but why this much with not much services?

160
 
 

cross-posted from: https://programming.dev/post/31833654

Hi,

I would like to found a regex match in a stdout

stdout

 /dev/loop0: [2081]:64 (/a/path/to/afile.dat)

I would like to match

/dev\/loop\d/

and return /dev/loop0

but the \d seem not working with awk ... ?

How to achieve this ? ( awk is not mandatory )

161
 
 

From both a technical perspective and if the maintainers of these anti-cheat will consider porting or re-writing kernel level anti-cheat to work on linux, is it possible? Do you think that the maintainers of kernel level anti-cheat will be adamant in not doing it, or that the kernel even supports it or will support it. I think that if it ever happens, there will be a influx of people moving to linux, or abandoning their duelboots, and that alot of people will hate that such a thing is available on linux.

162
34
submitted 3 weeks ago* (last edited 3 weeks ago) by joeldebruijn@lemmy.ml to c/linux@lemmy.ml
 
 

Background:

I think I messed up ... Wanted to get a lot of files out of a nested folderstructure 3 levels deep and used mv /*/*/* ./ somewhere deep in my personal folders. I got a lot of errors and quick as I could stopped it. Now that folder is is messed up with a lot of stuff (see below) which I dont know the origin of. The good news: I have fairly recent backups

Questions:

  • Could they be from subdirectories in my home folder?
  • Could they be from subdirectories outside my home folder? Especially grubenv caught my eye.
  • Could it be potentially dangerous to reboot? I leave my PC on untill I know more.
  • Would it be possible to reverse the moving in some way, to put them back where they belong, even manually?

Any help greatly appreciated.

Files:

Sorry for the long list

0 1 10 10:1 10:125 10:126 10:127 10:130 10:183 10:224 10:228 10:229 10:231 ... 116:8 116:9 ... 13:81 ... 8 81:0 81:1 81:2 81:3 9 arch_status attr autogroup by-diskseq by-id by-label by-partlabel by-partuuid by-path by-uuid cgroup cmdline comm coredump_filter cpu_resctrl_groups cpuset fd fdinfo fonts gid_map grubenv limits list.txt locale loginuid map_files maps mountinfo mounts net ns numa_maps nvme0n1p8_crypt oom_adj oom_score oom_score_adj projid_map sched schedstat sessionid setgroups smaps smaps_rollup stat statm status task timens_offsets timers timerslack_ns uid_map unicode.pf2 usb wchan x86_64-efi

163
164
 
 

I've been testing this OS for a bit, but I'm having trouble where drives are shutting down prematurely, as if the power management is too aggressive when it comes to external USB drives.

My USB hard drive will shut down on whatever timer Linux is using, despite my VirtualBox machine actively using it via Shared Folders. I have to use the Linux host and Caja to wake the drive back up. Like what the hell?

My USB DVD drive will spin up stupid fast to buffer a lot of DVD video, then Linux spins the drive down and turns it off. Then the next time it needs data, the drive has to spin up stupid high speed again, causing the video to freeze frequently while the drive spins back up, way too fast no less for the task. Why not a simple consistent speed and keep the drive running while watching a movie? VLC if that matters, on the host Linux.

Is this a power management configuration issue? Are these somehow the same issue, or are they two separate issues?

What should I do to resolve/reconfigure?

165
46
submitted 3 weeks ago* (last edited 3 weeks ago) by Rubanski@lemm.ee to c/linux@lemmy.ml
 
 

I am a Linux beginner but I really enjoyed it so far. So far. Since yesterday, my Linux (pop OS) only wants to boot into emergency mode. I have a suspicion, even though my Linux and Windows are located on different physical disks, somehow Windows does it's toxic ex lover things and somehow broke my Linux I assume. It's there a terminal command to somehow reorganise my boot files?

166
167
 
 

i have tried everything i could possibly think of, but Linux will not connect to the internet until i restart it. it doesn't matter what distro i use, it won't connect. on windows, it connects immediately, but only with fast start enabled. i have reset the router, the BIOS is up to date, and I've tried pretty much every solution i could find online. at this point i think it's a hardware issue, but I'd like to know if there's anything i can try before giving up on Linux until i get a new PC. any help is greatly appreciated!

168
 
 

Has anyone successfully set up a live boot of Linux Mint with persistence on a USB drive, similar to how Tails OS operates? I'm looking to save files and installed applications across reboots. If so, could you share your method or any guides you found helpful? Thanks!

169
 
 

In response to community feedback, Liberux is adding a cheaper, entry level option to it's crowfunding campaign

Source: https://mastodon.social/@Liberux/114637474399857143

170
 
 

Hi everyone, I'm planning on moving from w11 to kubuntu (lts release - 24.04). I'm a gamer at heart, a game designer by education, and wanting to get away from Windows. I could really use some top tips, best practices, and things to look out for. I have run Linux on a Chromebook, but never as my primary PC.

I'm preparing by copying tax info, critical documents, game prototypes, and D&D documents to a USB.

Then run Linus from a different USB on restart?

Thank you for your help, and any references to specific how-to's 😅.

171
 
 

So I have been getting green screen of death on this new computer build of mine. This new computer is the first time I have run linux as I am NOT paying Microsoft any more of my money. The green screens started happening immediately I had originally thought it was due to old drivers at first but I updated every last thing I could find and it is still happening. AI told me that it could be a corrupted file system and suggested a command but it did not seem to do anything and I do not know why. Please help with this and any other suggestions on why I may be greenscreening. It is very intermittent, if I am online for 17 hours it will happen once or twice. Anyway, here is the command the AI gave me and its results...

fsck / btrfs --check --repair fsck from util-linux 2.40.4 If you wish to check the consistency of a BTRFS filesystem or repair a damaged filesystem, see btrfs(8) subcommand 'check'.

Probably a super newb question but I am a super newb here in Linux lol

X870 RX9070 XT Ryzen 9800X3D

Thanks in advance

172
 
 

I've had two server oses here: alma linux and debian(currently). On both of them, they will hang when I shut them down from cockpit, and they hang at the end of the shutdown.

Also, it takes an hour to a day to have this issue start. if it's restarted two times in a row quickly, it works perfectly fine for some reason.

What I've tried:

  • setting "acpi=off" and "acpi=force" kernel parameters in grub
  • removing my nvidia gpu(i was using nouveau drivers)
  • changing distros

nothing worked. here are some things that both distros had in common with eachother:

  • systemd
  • cockpit
  • libvirt & qemu
  • docker

does anyone have advice? nothing i've seen online has worked. thank you for suggestions

173
 
 

I have a Windows 11 laptop and recently gotten excited to try Linux. I read good things about Mint being pretty good to go out of the box, and while I can be a fast learner I'm also tired and don't have a tremendous amount of bandwidth.

So I followed all the installation instructions, verified, flashed a USB, booted into it and started to install a dual boot of it. Made it through installation until it told me my computer had BitLocker on, and I'd need to go turn it off and try again. Fair enough.

Went back into my Windows OS (after booting it went to "diagnosing your PC"). I don't seem to have bitlocker installed - looks like a Pro version thing which I don't have. It did show that encryption was enabled, so I turned it off.

Restarted to boot to USB. Nope, "mmx64.efi - Not Found" error.

OK, googled it, renamed it, let's go.

error: shim_lock protocol not found error: you need to load kernel first

OK... I googled it just enough to see this is going to be a pain.

I tried remaking my USB just in case, didn't help. It's extra frustrating because my first attempt to boot into Linux went so well! How did it go from booting into it flawlessly to giving me a series of errors?

Did I anger the Microsoft gods and now they're blocking my path? Is this a bad omen that Linux is going to be a problem on my laptop in general?

174
 
 

Every time when I opens Ungoogled Chromium I gets this:

How can I solve this issue?

175
35
submitted 4 weeks ago* (last edited 4 weeks ago) by sp3ctre@feddit.org to c/linux@lemmy.ml
 
 

Hey magical linux-oracle,

I recently made a full disk encryption on my computer via the debian installer.

I partitioned it like this:

SSD:

-- unencrypted part --

Boot - 1GB space, mounting point: /boot

EFI - 512MB space, mounting point: ESP, bootable flag: on

-- encrypted part --

Encrypted container with a volume group (vg-1) containing 3 logical volumes:

Root - 50GB space, mounting point: /

Swap - 30GB space, mounting point: swap

Home - Rest of space, mounting point: /home

& Second harddrive fully encrypted with one logical volume and mounting point /mnt/data


The install of linux worked pretty well.

Unfortunately, the hibernation part doesn't work out of the box. When I press hibernate (or standby), it only goes to the lock screen. How can I solve that issue? (Is it even a good idea to use hibernation on encrypted devices?)

Second thing: As you can see from my setup, I use 2 disks. When I start up my system, I only need to enter my decryption password once (not twice for the 2nd HD) and I see, that my second hard disk seems to be mounted already. It seems that people usually struggle with typing in their passwords twice and want a solution for that. Is it possible, that debian automatically fixed this for me (It's the same pw for both)?

Thanks!

~sp3ctre

view more: ‹ prev next ›