Skip Navigation
Posts
29
Comments
47
Joined
2 yr. ago
  • I have one additional question. Sorry. According to the wiki I should use grub-mkconfig -o /boot/grub/grub.cfg to generate a new menu after removing or installing other kernels. But obviously /boot/grub/grub.cfg is wrong, at least for me (the subdir grub doesnt exist here). In my case the file is under /efi/grub/grub.cfg. Is that also OK? When mounting ESP I followed https://wiki.archlinux.org/title/EFI_system_partition#Mount_the_partition#Typical_mount_points and chose the 2nd variant.

  • Many thx. Worked fine.

    If I install a new kernel, I have to recreate the entries with grub-mkconfig -o /boot/grub/grub.cfg. But do I have to do that also for kernel updates?

    I don't think so, because the filename should not change, if I'm right?

  • Arch Linux @lemmy.ml
    MoLoPoLY @discuss.tchncs.de

    Howto Install bootloader afterwards?

    Coming from Manjaro, I had Manjaro in dual boot with Windows for a few years now. I have now also installed Arch Linux. During the Arch installation, I skipped the part with the boot partition and the bootloader. I have been using the bootloader/grub from Manjaro. That works quite well.

    But now I want to switch to a bootloader from Arch. With the Arch bootloader I would like to continue to have the choice between Arch, Manjaro and Windows.

    I assume that I have to install a corresponding bootloader for Arch in the EFI parallel to the others. But how should I proceed in detail? I have not yet been able to find any corresponding howtos. Which bootloader would you recommend?

  • Ahh ok. Since in this case the script should only run at start and then exit, I use oneshot. Many thx.

  • Yep, I know. But when I only depend on

     undefined
        
    After=network-online.target
    Wants=network-online.target
    
    
      

    this doesn't mean, I have a working internet connection. That's why the loop.

    Or is that wrong?

  • What's the difference between oneshot and simple?

  • Nice. I will try the systemd unit. Meanwhile, i have added a loop in the script, which helps a little bit:

     undefined
        
    maxwait=15
    if [[ $(nm-online -x) != *"online"* ]]; then
        echo "missing internet connection, waiting..."
        for (( i = 1; i <= maxwait; ++i )); do
            sleep 1 &
            echo $i
            if [[ $(nm-online -x) == *"online"* ]]; then
                break
            fi
    
            if [[ $i -eq $maxwait ]]; then
                echo "No internet connection"
                exit 1
            fi
            wait
        done 
    fi
    
      

    In my test, this exits the script after 15 seconds without connection, but continues, when the connection is available or is established within this time.

    But i think, its a nice idea, to add this to the script AND use the systemd unit together.

  • Arch Linux @lemmy.ml
    MoLoPoLY @discuss.tchncs.de

    How to start a script after logging in AND WiFi is ready?

    I try to download a file with curl directly after logging into Gnome. This usually fails because mostly the WiFi connection is only established after login. If I wait long enough in the login screen before logging in, the connection is already established and the download works.

    So far I have used Manjaro. WiFi was already active long before the login screen of GDM was even displayed. The download therefore always worked.

    The download is initiated with a *.desktop file in ~/.config/autostart.

    Is there another way to start the download after the user is logged in and the WiFi connection is really ready?

  • Many thx. I hadn't referred to groups, but at least that's how it makes sense.

  • I uninstalled Steam with pacman -Runs steam. After that there were still several folders within my home. I removed these and then installed steam with pacman -Syu steam aga in. Luckily I didn't need to reinstall the games as they are installed on a separate partition. I simply remounted the library and can now start the games without any error messages. Thanks for your help.

    BTW: Whats the difference between pacman -Rns and pacman -Runs? What does u mean?

  • Do you know which locations, i have to remove?

  • Arch Linux @lemmy.ml
    MoLoPoLY @discuss.tchncs.de

    Games no longer start under steam

    Since I no longer had an icon for Steam in Gnome, I tried to reinstall Steam via pacman -S steam. That didn't bring me an icon in the Gnome overview either, but that was because I had created a separate *.desktop file in ~/.local/share/applications. I removed this and the icon in the overview came back. But now I have the problem that the games I call up via Steam no longer start. For one game, the launcher starts, but then displays the message “Please start Steam first” (Steam is already running, otherwise I wouldn't be able to start the game). Other games bring up the message that no wine-mono is supposedly installed. But it is installed.

    A reinstallation of Steam has not changed anything. What can I do?

  • Cromite, KeepassDX, Moshidon, Phone, K9

  • Unfortunately, logrotate does not work the way I would like it to. I have now created a bash script, which hopefully does what it is supposed to do:

     undefined
        
    #!/bin/bash
    keepCount=30
    
    files=($(ls *.db))
    fileCount=${#files[@]}
    
    for (( i=0; i<$fileCount; i++ )); do
        database="${files[$i]}"
        dbarr=($(ls -t $database.*))
    
        for index in "${!dbarr[@]}"; do
            p=$((index+1))
            if [ $p -gt $keepCount ]; then
                rm ${dbarr[$index]}
            fi
        done
    done
    
      

    Invoked in the respective directory, all *.db files are read into an array, as there can be different DBs per user. The array is then processed in a loop. First, the backup files for the respective DB are read into the array again, sorted by age. This array is then processed and all files whose index +1 is greater than keepCount are removed. This means that the oldest files are always removed and only those that are defined in the keepCount are kept.

    Its a little bit more complicated, but it seems to do the job.

  • Linux @discuss.tchncs.de
    MoLoPoLY @discuss.tchncs.de

    cp with backup, limit count

    If I copy files with backup (cp --backup=numbered), the old file is renamed to something like oldfile.ext.1. I get my old files. Can this be limited to a certain number of old files, for example 30? I don't want to have keep more than that...

    Jerboa @lemmy.ml
    MoLoPoLY @discuss.tchncs.de

    Bigger thumbnails?

    I have searched the settings in the app, but didn't found such a setting. I want to have bigger thumbnails for posts with images and link previews. Is that available or if not can this be implemented? I have added a screenshot from "Thunder" with exact such bigger thumbnails. Can this be done?

    Linux Questions @lemmy.zip
    MoLoPoLY @discuss.tchncs.de

    How to find the name for Icon in *.desktop file?

    Creating *.desktop files for WIndows/Wine applications, specify sometimes a Icon like this:

     undefined
        
    [Desktop Entry]
    Name=Game to start
    Comment=Play this game on Steam
    Exec=steam steam://rungameid/738520
    Icon=steam_icon_738520
    Terminal=false
    Type=Application
    Categories=Game;
    
      

    with Icon=steam_icon_738520. Is this extracted from the *.exe file and how do i get the name mentioned here? I know, that i can use the path to a *.png, but i would prefer to use the *.exe file itself.

    Raspberry Pi @feddit.org
    MoLoPoLY @discuss.tchncs.de

    ffmpeg Hardware encoding Auflösung

    In einem Projekt schiebe ich Video von meinen Kameras in ein Verzeichnis auf den Rasperry Pi4. Ein Cronjob geht dieses Verzeichnis dann durch und konvertiert diese Videos mit ffmpeg. Seit letzter Woche schlägt dies fehl. Folgendes Kommando wird dabei benutzt: ffmpeg -y -i "/tmp/4B9A9487.MP4" -vf format=yuv420p -c:v h264_v4l2m2m -b:v 8M -c:a aac -movflags +faststart "/tmp/4B9A9487_cv.mp4". Für einige Video klapp dies, für andere erhalte ich die Fehlermeldung: [h264_v4l2m2m @ 0x558fae9600] Could not find a valid device.

    Das es aber für einige funktioniert, für andere nicht, glaube ich nicht, das dies am fehlenden device liegt. Denn wenn ich die Auflösung des Videos reduziere, funktioniert es durchaus. So klappt folgender Befehl mit den bisher fehlgeschlagenen Videos problemlos: ffmpeg -y -i "/tmp/4B9A9487.MP4" -vf format=yuv420p -c:v h264_v4l2m2m -b:v 8M -s 1280x720 -c:a aac -movflags +faststart "/tmp/4B9A9487_cv.mp4".

    Geändert hat sich nur die Angabe der Auflösung mit `-s 1280x

    Darktable @lemmy.world
    MoLoPoLY @discuss.tchncs.de

    Filter in lighttable not working

    I use Darktable 5.0.1. I don't know if this is a bug or just a user error on my part. But I can remember that it worked differently in 4.8.x.

    When I am in the lighttable module, I can select “rejected only” in the filter. I would now expect to see all rejected images. However, the opposite is the case. I now see all images that have not been rejected. However, if I select “all except rejected”, I see the rejected images.

    Why is the filter effect reversed?

  • USB Debugging is disabled, when im travelling. I had two such situations last week. At the first, i had enough time to shutdown and lock the device, before that. But the second time, they asked to unlock the device. I have no idea, if they can force me to do that, when a password is set, instead of only a fingerprint. But i don't want to risk anything. Its not that i have to hide something. There is nothing on the phone what is not allowed. Only 2 VPN connections, which is not that good in China and some other countries. One for access to my home network and the other which i use in public networks.

    I don't want to have any problems with the authorities (in any country). As long as I don't have to hand over the device, they can have a look at what's on the phone. But I also don't want anything to be installed that doesn't belong there and I want to use my VPN the way I want to.

    The second situation, was the first time in my travelling, when someone asked me to unlock the device. They didn't take it with them after unlocking it (unlike the situation where it wasn't unlocked) but I don't see what could stop them from doing so.

  • That's not the point. I travel a lot and here the phone is occasionally checked by the local authorities. I have no control over what the Chinese authorities do with the phone when they take it with them. Needless to say, I don't plug the phone into any USB ports myself. The fact that apps from the Playstore are not affected by this is also OK, but I have installed very few apps via the Playstore, most of them are from F-Droid.

    To make a long story short: There were several such situations on my last trip and I was happy that I had this “Auto Blocker” active. But it's not a permanent solution.

  • F-Droid @lemmy.ml
    MoLoPoLY @discuss.tchncs.de

    F-Droid and Samsung "Auto Blocker"

    On Samsung Phones. there is a function called "Auto Blocker". If this is enabled, this blocks installing apps from unknown sources and via USB and ADB. In principle, this is a useful feature, but it also prevents the installation of updates via F-Droid. Even if F-Droid is classified as trustworthy in general and can therefore theoretically install apps and updates automatically, activating this function prevents automatic updates. If this function is deactivated, new apps and updates are installed automatically on request.

    Is there a way to activate this function and still receive automatic updates via F-Droid? Does the installation of the F-Droid.apk via ADB/USB change anything in this constellation?

  • Many thx. This is exactly what I want. Will try that when I'm batch from vacation.

  • Linux @lemmy.ml
    MoLoPoLY @discuss.tchncs.de

    Autocomplete custom scripts?

    As my time with linux, I created a lot of scripts. Some of them have input parameters and sometimes I just forget this parameters.

    So I wonder if there is some way to create autocomplete parameters, like i autocomplete a path by pressing the tab key?

    For example a script. ./test.sh can be completed with parameter-one, eg. ./test.sh parameter-one or ./test.sh parameter-two. If i type now ./test.sh followed by tab it should add parameter-one if i press tab again it should change to parameter-two.

    How can I do that? I'm on bash…

    Linux Questions @lemmy.zip
    MoLoPoLY @discuss.tchncs.de

    Icon with Desktop Notifications

    When I send a notification with notify-send -i /path/to/my/icon.png "title" "message" , it appears wonderfully in Gnome 47.4. However, the icon is very tiny. According to the screenshots I saw, the icon can be very large. It is also obviously displayed in addition to the app icon. Is there a way to send such an icon in the message or another way to create desktop notifications?

    Arch Linux @discuss.tchncs.de
    MoLoPoLY @discuss.tchncs.de

    Remove Gnome with its settings?

    I'm using Gnome as DE and was really happy with it until my last update. I would like to re-install Gnome, but want to remove before that all Gnome stuff, settings and dependencies. This is no problem for the packages installed via pacman and also it's dependencies. But I fear that I don't know how to remove all relevant settings. Is there some special folder or set of files to remove, before I can start from scratch?

    Free and Open Source Software @beehaw.org
    MoLoPoLY @discuss.tchncs.de

    Roundcube Photos 1.5.6

    A new version of Roundcube Photos has been released. New in 1.5.6 is the feature to share images with Mastodon, including multiple images. The manual generation of tokens has been removed, as the plugin now logs on to a Mastodon or Pixelfed instance as an autonomous app. The Timeline view and various internal improvements and bug fixes are also new. You can find the new version, as usual, on https://codeberg.org/Offerel/Roundcube_Pictures

    Firefox @lemmy.ml
    MoLoPoLY @discuss.tchncs.de

    Saving Formdata is not working

    I have problems with Formfill and i don't understand how Firefox works here. Obviously, no form data is saved for me. The saving of form data is activated in the settings under Security, in the History section. No data is deleted when closing the application. Even in a freshly created profile, without special settings and plugins, the saving of form data no longer works.

    I have also tried to fill out the form at https://www.roboform.com/filling-test-all-fields. No data is saved. With Chrome, however, this is not a problem. Is there a hidden setting or is this a bug?

    Darktable @lemmy.world
    MoLoPoLY @discuss.tchncs.de

    What to backup before update to 5.0.x?

    If i get it right, the database and some other things are modified, when updating from 4.8.x to 5.0.x. That's why I think its a good idea, to backup old Darktable data. The question is, should I only backup the sqlite database or also the sidecar files?

  • On mobile im using Cromite. At least for me very useful. I haven't tested it fully for privacy, but I don't see any unexpected http requests to spooky Google services or similar thing's.

  • I don't care much regarding new features as the latest security patches are included.

  • Privacy @lemmy.ml
    MoLoPoLY @discuss.tchncs.de

    Is Midori worth recommending?

    For me, the browser is by far the most important software on my computer. After all, I use it about 80% of the time on my PC. At the moment, it's more difficult than ever to find the right browser, at least for me. Until about a year ago, it was usually using Firefox. But for some time now I have lost all trust in Firefox. What the vendor promises is in complete contrast to what the software does by default. User tracking in various forms, unsolicited telemetry, remote installation of add-ons are just the very top reasons why I no longer want to use Firefox. Brave is an alternative, but I don't feel very comfortable with it. The default settings are not ideal here either. What's more, it's packed with extras that nobody needs. In the end, I currently use Ungoogled Chromium, fully aware that I don't always have the latest version installed.

    Now there's also Midori. I can't figure it out. What should I make of it? To me it looks like a forked Firefox that lags far behind the current ve

    PixelFed: A free and ethical photo sharing platform. @lemmy.ml
    MoLoPoLY @discuss.tchncs.de

    Search for hashtags broken?

    Somehow I still seem to have a hard time dealing with Fediverse and Co. Currently with Pixelfed. I'm looking for hashtags like #eosr7 or #irishwolfhound on my instance, but no results will be found. But I created such posts myself with these hashtags. If you can't find results through the search, you can't add the hashtag to the "followed hashtags". If I click on such a hashtag in my posts, I can subscribe to it.

    Why can't I find posts via the search forhashtags?

    PixelFed @discuss.tchncs.de
    MoLoPoLY @discuss.tchncs.de

    Search for Hastags

    Somehow I still seem to have a hard time dealing with Fediverse and Co. Currently with Pixelfed. I'm looking for hashtags like #eosr7 or #irishwolfhound, but no results will be found. But I created such posts myself. If you can't find results through the search, you can't add the hashtag to the following hashtags. If I click on such a hashtag in my posts, I can subscribe to it.

    Why can't I find posts about the search?

  • If you have access to a Roundcube instance, you can try my PrimitiveNotes plug-in, if you want. You can find it at https://codeberg.org/Offerel/Roundcube_Primitivenotes. Maybe this helps to understand, for what and how i use markdown notes. I have absolutely no knowledge about flutter or Android coding, so I can't help that much.

    But I can test and send you a little bit feedback for your app, because I really like your concept so far.

  • This looks like something usefull. Some observations after first start...

    • why does the app requests full file rights, after I selected my local notes folder? If the app has access to that folder (and subfolders), this should be enough.
    • for code, examples a code font should be used and not the same font as article text
    • i use markdown a lot for code. With this it should be possible to select the whole code block by single click. When using css, this should be possible with > user-select:all
    • auto line break should be disabled in the same context. This seems to be already the case for code block but not for single line code
    • i would love to see support for yaml. But in the form that i can hide the yaml block
    • i think the search feature doesn't work yet. If I have for example a note with the title Manjaro.md and I type "manjaro", it isn't found. The search should also search the text inside the notes or at least the yaml tags (if supported)
    • please keep the local folder and don't invest your resources in a sync mechanism. There are so much possibilities like WebDAV, rsync, SFTP and a lot of clouds. To much to make anyone happy. There are some Android apps which sync such things with an ease.
    • I keep my rare images in a hidden subfolder of the notes folder like ".media". Not only images, also linked PDF and so on. Such images are not displayed. They seems to be not found

    I really like the idea of your app. Could be a good companion for my PrimitiveNotes plug-in for Roundcube. Hopefully you find the time to develop it further.

  • Permanently Deleted

  • Unfortunately, this version violates the DSGVO by sending telemetry without being asked. This shoots the app directly into out. I hope that the developers have an insight here and remove this function as soon as possible.

  • Gnome @discuss.tchncs.de
    MoLoPoLY @discuss.tchncs.de

    Loupe or other image viewer?

    I'm using Gnome 46 with Loupe as an image viewer. Can this tool perform simple functions like rotating, resizing, or cropping? I haven't been able to find a way to do this yet. Or should I use something else?

    Darktable @lemmy.world
    MoLoPoLY @discuss.tchncs.de

    MilkyWay Imagestacking Linux

    Hi there. I know that Darktable can't do Imagestacking for photos of the MilkyWay. I have searched now for some time, but could find only Siril as Linux Alternative. But in most descriptions, it is stated, that Siril is not the best, when I have parts of the landscape on the horizon and i should only use it, when i have photos from the sky only.

    Can someone recommend me a Linux native Imagestacking tool, which I can use also on photos with landscapes on the horizon?