Linux

49565 readers
1104 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 5 years ago
MODERATORS
2301
81
submitted 8 months ago* (last edited 8 months ago) by mfat@lemdro.id to c/linux@lemmy.ml
 
 

And why do you use them?

2302
 
 

It seems like yesterday when we released the Megarelease with apps included in Gear 24.02. But, if you check your (Merkuro) calendars, you'll notice that KDE developers have already put in three more months of intense work to bring you a whole new set of improved versions of your favorite KDE applications.

Read on to discover what's new in the Dolphin file manager, Kdenlive video editor, Itinerary travel assistant, Elisa music player, Kate text editor, and many more programs and utilities.

2303
 
 

I have a raspberry Pi 4B that is connected to a CRT TV via Composite and controlled with a PS4 controller. I'd like to use the Pi for Netflix, Plex client, and playing DVDs from an ext drive. What distro would be best for this?

I tossed Retro Pi onto it and the controls work great but I can't figure out how to install the media apps.

2304
 
 

I had personally been looking for a way to control my Logitech C930e Camera on Linux, but was struggeling to find something that would actually connect to the camera AND be able to adjust the levels of zoom and focus. Fortunatly I was able to stumble upon this project called Cameractrls! It's a very simple and straight to the point software writtin in Python. If there are any additional good software like this please feel free to share below!

Edit; I tried installing LogiTunes via Bottles but it kept failing during install - glad i could find a replacement!

2305
2306
 
 

It installs but when i try to boot it wont. When i select the hdd in the boot menu it does nothing. Ubuntu server and fedora works but i woud like debian

2307
 
 

I just had extreme pain with this.

Apart from broken PDF tools, GIMP 2.99.x is already really nice. I recommend the Flatpak from flathub-beta.

The 2 big browsers dont seem to support arithmetic coded JPEG at least in PDF!

They will simply display blank pages!

Example PDF

Lets do a list

Tools that are broken

Linux

  • Firefox / Librewolf (RPM)
  • likely Chromium (see below)
  • Scrivano (Flatpak)
  • QPDF Tools (Flatpak) (and I suppose qpdf too)
  • Rescribe OCR (Flatpak)
  • JPEG2PDF (Flatpak, displays correctly but broken image pipe)
  • Arianna (Flatpak, not sure if supports PDF)
  • NightPDF (Electron/Chromium, Flatpak)

(I dont recommend that software but it works for that purpose. See my list of recommended Flatpak apps here)

Android

  • Mull (Firefox Android)
  • GrapheneOS PDF, Cuprum PDF, MJ PDF (Chromium Webview)
  • SavPDF (maybe also Webview)

Web

  • pdf24.org (webservice)
  • StirlingPDF (Docker/Podman container)

IOS

  • Safari PDF viewer (iOs 16.7.2)

Software that works

Linux, Flatpak (likely also native package)

  • KDE Okular
  • GNOME Evince (Document Viewer)
  • Inkscape
  • Libreoffice Draw
  • PDF Arranger (libqpdf 11.9.0, pikepdf 8.15.1)
  • Bookworm 1.1.2
  • KOReader
  • Sioyek
  • CorePDF
  • gImageReader

Android

  • muPDF
  • Collabora Office
  • KOReader, Librera, Orion Viewer (all dont support modern filesystem permissions)

Lets report some issues?

2308
 
 

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

Transparent compression layer on Linux?

My use-case: streaming video to a Linux mount and want compression of said video files on the fly.

Rclone has an experimental remote for compression but this stuff is important to me so that's no good. I know rsync can do it but will it work for video files, and how I get rsync to warch the virtual mount-point and automatically compress and move over each individual file to rclone for upload to the Cloud? This is mostly to save on upload bandwidth and storage costs.

Thanks!

2309
60
submitted 8 months ago* (last edited 8 months ago) by fool@programming.dev to c/linux@lemmy.ml
 
 

I have a little helper command in ~/.zshrc called stfu.

stfu() {
    if [ -z "$1" ]; then
        echo "Usage: stfu <program> [arguments...]"
        return 1
    fi

    nohup "$@" &>/dev/null &
    disown
}
complete -W "$(ls /usr/bin)" stfu

stfu will run some other command but also detach it from the terminal and make any output shut up. I use it for things such as starting a browser from the terminal without worrying about CTRL+Z, bg, and disown.

$ stfu firefox -safe-mode
# Will not output stuff to the terminal, and
# I can close the terminal too.

Here’s my issue:

On the second argument and above, when I hit tab, how do I let autocomplete suggest me the arguments and command line switches for the command I’m passing in?

e.g. stfu ls -<tab> should show me whatever ls’s completion function is, rather than listing every /usr/bin command again.

# Intended completion
$ stfu cat -<TAB>
-e                      -- equivalent to -vE                                                                                                                                                     
--help                  -- display help and exit                                                                                                                                                 
--number            -n  -- number all output lines                                                                                                                                               
--number-nonblank   -b  -- number nonempty output lines, overrides -n                                                                                                                            
--show-all          -A  -- equivalent to -vET                                                                                                                                                    
--show-ends         -E  -- display $ at end of each line                                                                                                                                         
--show-nonprinting  -v  -- use ^ and M- notation, except for LFD and TAB                                                                                                                         
--show-tabs         -T  -- display TAB characters as ^I                                                                                                                                          
--squeeze-blank     -s  -- suppress repeated empty output lines                                                                                                                                  
-t                      -- equivalent to -vT                                                                                                                                                     
-u                      -- ignored  

# Actual completion
$ stfu cat <tab>
...a list of all /usr/bin commands
$ stfu cat -<tab>
...nothing, since no /usr/bin commands start with -

(repost, prev was removed)

EDIT: Solved.

I needed to set the curcontext to the second word. Below is my (iffily annotated) zsh implementation, enjoy >:)

stfu() {
  if [ -z "$1" ]; then
    echo "Usage: stfu <program> [arguments...]"
    return 1
  fi

  nohup "$@" &>/dev/null &
  disown
}
#complete -W "$(ls /usr/bin)" stfu
_stfu() {
  # Curcontext looks like this:
  #   $ stfu <tab>
  #   :complete:stfu:
  local curcontext="$curcontext" 
  #typeset -A opt_args # idk what this does, i removed it

  _arguments \
    '1: :_command_names -e' \
    '*::args:->args'

  case $state in
    args)
      # idk where CURRENT came from
      if (( CURRENT > 1 )); then
        # $words is magic that splits up the "words" in a shell command.
        #   1. stfu
        #   2. yourSubCommand
        #   3. argument 1 to that subcommand
        local cmd=${words[2]}
        # We update the autocompletion curcontext to
        # pay attention to your subcommand instead
        curcontext="$cmd"

        # Call completion function
        _normal
      fi
      ;;
  esac
}
compdef _stfu stfu

Deduced via docs (look for The Dispatcher), this dude's docs, stackoverflow and overreliance on ChatGPT.

EDIT: Best solution (Andy)

stfu() {
  if [ -z "$1" ]; then
    echo "Usage: stfu <program> [arguments...]"
    return 1
  fi

  nohup "$@" &>/dev/null &
  disown
}
_stfu () {
  # shift autocomplete to right
  shift words
  (( CURRENT-=1 ))
  _normal
}
compdef _stfu stfu
2310
41
submitted 8 months ago* (last edited 8 months ago) by James_Ryan@discuss.tchncs.de to c/linux@lemmy.ml
 
 

Since this evening I have some problems with my OpenSuse Tumbleweed installation. I'm kind of a noob and everything I tried didn't work out.

When I try to update my system with "zypper dup" I get an error that the signature-check failed and if I still want to proceed:

>Signaturecheck for file "repomd.xml" from repository "repo-oss" failed<

I downloaded the GPG-Key from the OpenSuse Website, deleted and reimported the new key. This didnt help.

When I deleted the key and didnt import a new one the system imported it itself when running zypper dup. Fingerprint was the same as before.

I had the same problem with an other repository but reimporting the key worked for now.

Can someone help me on this? Can this be some kind if temporary problem?

--- Update ---

I tried everthing for 2 hours.

Now the error isn't there anymore and I can update without problems

2311
 
 

Hello everyone!

My manager just brought to my attention that this organization has a CentOS 6.3 server - he didn't specify what it's hosting just yet but asked that I find a solution to do a full backup so that we may restore later onto bare metal with the option to migrate from CentOS to another Linux distro.

Has anyone had experience with backing up / restoring CentOS 6? And if you know what would be the best Linux distro to replace CentOS 6? Or even a step by step guide for both or either one?

Please and thanks in advance!

2312
2313
2314
 
 

Hi! I'm getting a new laptop any day now and I plan on going back to Linux after maybe a decade on Windows. What works best for gaming nowadays? Is manjaro good for that? I prefer a distro with a nice name but of course that's not the central thing. I'll also do some book keeping, writing et cetera but I don't think it's much to worry about. I also hope to use my Valve Index on it.

2315
2316
 
 

Are there any good resources for helping someone getting into Linux? One of my friends I never thought would get into Linux is asking me for help. He specifically is an advanced Windows power user. I also had someone who was a complete noob, even to Windows.

For the noob, I suggested LMDE and Kubuntu and they've been having some issues installing LMDE.

For the power user, I suggested the easy distros such as lmde, kubuntu, nobara but also told them if they wanted to jump into the deep end, arch is cool.

However, my suggestions don't even cover DEs, WMs or what they even are. I just wish there was a good guide out there. I think that's the biggest hurdle, so many options and not knowing what to pick.

2317
 
 

I have wasted the last 2.5 hours trying to see where I went wrong with my configuration and I just can't.

For the record, I am running OpenSuse Tumbleweed with Gnome, latest update for everything. Up to now I have been using AdGuard as my DNS resolver, but am now trying to switch to Mullvad but at this point I think I probably don't want to anymore. Reason being, I just can not get it to work for the life of me.

My system has NetworkManager installed so I go there, select my connected Wifi, and enter Mullvad's DNS address 194.242.2.4 in thr IPv4 section, then I go to check to see if it shows I am using their DNS and it Firefox AND Vivaldi give no internet connection errors. I go back to Adguard DNS and my internet is back working again. I go back to Mullvad, you guessed it, no internet once again. I even tried Cloudflare and Quad 9's DNS addresses and both of those worked as well but Mullvad's just does not want to work and I am going insane over it.

And no I can not edit resolv.conf through the terminal because NetworkManager will override it and no I don't want to delete NetworkManager. Any feedback would be appreciated.

Edit: I have Mullvad DNS on my phone and got it running with zero issues so this is more of a Linux problem than a Mullvad DNS problem I think.

Solution:

Open terminal and follow through

sudo zypper install systemd-network

sudo nano /etc/systemd/resolved.conf

Copy paste this into the file that you just opened and change the DNS to whichever DNS provider you are using.

[Resolve]

DNS=194.242.2.4 2a07:e340::4

FallbackDNS=194.242.2.2 2a07:e340::2

Domains=~.

DNSSEC=yes

DNSOverTLS=opportunistic

#MulticastDNS=no

#LLMNR=no

#Cache=yes #CacheFromLocalhost=no

#DNSStubListener=no

#DNSStubListenerExtra=

#ReadEtcHosts=yes

#ResolveUnicastSingleLabel=no

Ctrl + O to write out and Ctrl + X to exit back to the terminal main page.

ln -sf ../run/systemd/resolve/stub-resolv.conf /etc/resolv.conf

sudo systemctl start systemd-resolved

sudo systemctl enable systemd-resolved

sudo systemctl restart NetworkManager

Boom it should be working now.

2318
 
 

Within the GNU/Linux ecosystem there are all kinds of tools to diagnose the system, or rather, to check the state of the hardware, but there are few distributions specifically designed to perform this task, or at least that I know of, because the only distribution I know that is intended to diagnose the computer, (Or ​​at least one of the components), is memtest86+, so I would like to know what other distributions exist in addition to the one mentioned above

2319
27
submitted 8 months ago* (last edited 8 months ago) by kurumin@linux.community to c/linux@lemmy.ml
 
 

cross-posted from: https://linux.community/post/932225

So I want to get rid of these grey boxes that got added to everything in the overview. They are in the bar as shown in the image, they are in every text in the overview search as well.

For my taste it is disgustingly ugly. And I can't find where I can make it go back to normal.

2320
2321
2322
2323
 
 

Thank you all who reached out, it really was awesome.

Was super easy, even my Nvidia cards driver was basically automated. Haven't played anything yet but I'm sure I'll be fine.

I opened up the command thingy a couple of times just to get some settings how I wanted them, but could have gotten by without it.

The biggest stumbling block for me personally was getting the thumb drive in order, then the hardware to boot from it. First you gotta use a thing called Rufus to format the drive correctly, not sure how or why, but you do.

And then I couldn't get my laptop to load bios no matter what key/s I mashed at restart, but searching " advanced startup options" in settings brought me to a menu to reboot from my (now correctly formatted) USB drive.

The rest drove itself. Still some stuff to figure out with it but it's doable. Very polished and user friendly.Thank you all again so much!

2324
 
 

ytdl is a small script for Linux as an alternative interface to yt-dlp (which itself is a fork from youtube-dl, to download YouTube videos). My goal is to make some of its functionality a bit more accessible for the daily usage. This includes predefined settings and narrowing it down to options I care most about.

2325
view more: ‹ prev next ›