Linux

47948 readers
1748 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
1576
106
submitted 5 months ago* (last edited 5 months ago) by Sunny to c/linux@lemmy.ml
 
 

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!

1577
1578
 
 

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

1579
 
 

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?

1580
 
 

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!

1581
60
submitted 5 months ago* (last edited 4 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
1582
40
submitted 5 months ago* (last edited 5 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

1583
 
 

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!

1584
1585
1586
 
 

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.

1587
1588
 
 

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.

1589
 
 

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.

1590
 
 

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

1591
25
submitted 5 months ago* (last edited 5 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.

1592
1593
1594
1595
 
 

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!

1596
 
 

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.

1597
1598
1599
 
 

Ive just installed Linux (Fedora 40 KDE) on my main PC over the weekend, so im a complete newbie and i apologize if some of my questions are nonsensical 😅. Yesterday evening the system seemed to completely lock up at a certain point while playing Red Dead Redemption 2 for the first time (installed & run via steam using proton experimental). Id love to know if i handled this situation correctly and how to avoid this or handle it more gracefully in the future. Ill begin by recounting what happened and then ask my questions:

The game froze during a cutscene and continued to play audio for a bit after it froze visually but then that stopped too. I have two monitors, the second completely black screened and the first one was frozen on the last frame of the game. As far as i could tell nothing in KDE was still responding to normal key presses or the mouse.

After a some searching online i decided to try through the ctrl + alt + (f2, f3, ... , f6) key combinations to get into a console, that didnt work. As a last resort i tried alt + sysreq (print screen) + REISUB to safely reboot it. That ALSO didnt work, it was p. damn late in the day so i just decided to risk it and use the power button on my pc.

I was prepared for it not to boot anymore due to data corruption or sth, but it seemed mostly fine? My KDE panels were slightly messed up (but that took like 10 sec to fix) and besides that the only odd thing i've found so far is that steam refused to start properly and i had to reinstall it.

So did i handle this situation correctly? Specifically:

  • did alt + printscreen + REISUB save my system or do nothing? As i said it didn't reboot when i did it so i thought it was useless. But after i forcibly restarted my pc and looked it up some more it seems all but alt + printscreen + S may have been disabled, so was alt + printscreen + S responsible for my system still starting without too many problems after i forcibly shut it down?

  • why did this happen & how to prevent it? My system should b powerful enough to run RDR2 (Radeon RX 6800, Ryzen 5 5600X, 32GB ram) and i had nearly no problems up until the crash. So whats at fault? On protondb RDR2 has p. good ratings, did i just get unlucky and found one of the few edge cases where it breaks? But even then, why would a proton/game crash take seemingly the whole OS with it?

  • is it a bad or a good idea to try and trigger this again on purpose? Id really like to know if this was a freak accident or a consistent problem (and if its consistent if eg. switching to proton 9.0.1 alleviates it). So was i lucky that nothing on my PC got badly damaged from this incident and i shouldn't try to trigger it again for fear of permanent damage? Or can i expect that having to reinstall Steam everytime it crashes is the worst that could happen while testing this?

UPDATE: I went back and did the same part of the game again but this time running it with proton 9.0.1 and the crash still occurred and in the exact same spot in the cut scene too. For reference, it crashed both times during this cutscene: https://www.youtube.com/watch?v=7UHv0SiVhWY @ around 1:23 when the explosion goes off (i only get to hear it briefly the visuals freeze seemingly just before it explodes).

Trying ctrl + alt + f keys didn't seem to do anything again. I had at least enabled the sysreq keys and REISUB appeared to work and got me back into the system this time without having to adjust KDE panels or reinstalling Steam. Visually the crash was a little different this time, i hit win/meta soon after it happened which after a second or two exchanged the stuck game visuals for a half cutoff browser window on my main monitor (and black otherwise) and my secondary monitor was filled with black and white noise with a bit of color in between.

UPDATE 2 (17/06/2024): I tried it again for the first time since the original post, im now on Kernel 6.9.4 and the crash occured in the exact same spot and looking more or less as described in the previous instances. I managed to get back into a normal state due to alt + sysreq + i (alt + sysreq + k didnt seem to have had any effect).

UPDATE 3 (16/09/2024): I've tried it again, proton 9.0-2 and kernel 6.10.9 and its still crashing at the exact same pont as usual. Only difference is that this time alt + sysreq + REIB didnt seem to have any effect. Tho i might have forgotten "I" now that i think about it again. I had to do a hard restart using the power button, but it doesnt seem like anything broke.

UPDATE 3.5 (16/09/2024): Tried the next newest proton version steam has (experimental). Now the dialogue during the gameplay bit just before the cutscene doesnt trigger, then the game goes into "cutscene mode" (i think, i get black bars top and bottom and the menu becomes unavailable) but no cutscene plays and i (presumably) get softlocked. I tried waiting in case it was playing but i didnt see, i waited 5 min or so and it never ended.

1600
 
 
bindntr=CTRL,C,exec,hyprctl dispatch closewindow alacrittyclipboard & hyprctl activewindow | rg -q "class: Wfica" && alacritty -qq --config-file ~/.config/alacritty/alacrittyclipboard.toml --class 'alacrittyclipboard' --title 'Office365 Desktop - Nexus (SSL/TLS Secured, 256 bit)' -e sh -c 'sleep .03 && xclip -o | wl-copy'
windowrulev2 = float,class:(alacrittyclipboard)
windowrulev2 = stayfocused,class:(alacrittyclipboard)
windowrulev2 = noborder,class:(alacrittyclipboard)
windowrulev2 = noanim,class:(alacrittyclipboard)
windowrulev2 = noblur,class:(alacrittyclipboard)
windowrulev2 = opacity 0,class:(alacrittyclipboard)
windowrulev2 = maxsize 1 1,class:(alacrittyclipboard)

i've done it, I've finally figured out a workaround for this stupid bug that has existed on my system for the last 10 years. the citrix clipboard now works properly, this is the glueyest dumbest thing i've ever had to do and i've spent literally years trying to figure it out, turns out the wayland protocol forbids windows that don't have focus from accessing the clipboard, so, i had to make a window, it had to be focused for enough time for it to be recognized and it was a whole thing. Here you go for anybody that needs it, should be relatively easy to adapt from hyprland over to whatever. Fuck.

view more: ‹ prev next ›