There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

linux

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

nottheengineer , in IDE Floppy Disk + Debian: anything to consider?

No idea how to do this properly, but it’s definitely possible. Maybe a USB to IDE adapter makes more sense than going through SATA as it can just expose the floppy drive as a USB stick.

But then again CD drives have been around for ages as well and work properly on linux, so do your research.

The steps will probably look like this:

  • Autodetect when a floppy is inserted
  • mount it (possibly combined with the first step)
  • automatically run a script after mounting
  • writing the script, which will read the contents of the drive and control your player (chatGPT should be able to do that for you with a bit of trial&error)
SSUPII , in IDE Floppy Disk + Debian: anything to consider?

The floppy drive is seen automatically and still fully supported in Debian 12 x86_64. You might have to mount the diskette to actually read it, but you can do that in fstab to do it on boot or ondemand or mount it manually.

TCB13 ,
@TCB13@lemmy.world avatar

What interface are you using? USB or FDD?

SSUPII ,

FDD

cmnybo , in IDE Floppy Disk + Debian: anything to consider?

You should be able to get it to automount with autofs and unmount when it hasn’t been read for a certain amount of time. I would suggest mounting the disks read only so they don’t get corrupted it they are removed without unmounting them though.

mintycactus , in Vanilla OS 2 Orchid—Alpha #82 Released
@mintycactus@lemmy.world avatar

deleted_by_author

  • Loading...
  • humanplayer2 ,
    @humanplayer2@lemmy.ml avatar

    Why over-complicated? I’m genuinely curious, as I think it sounds pretty cool that you can install apps from different package managers in containers, but export them to use them in your main environment.

    mintycactus ,
    @mintycactus@lemmy.world avatar

    deleted_by_author

  • Loading...
  • rush , (edited )

    Technically, only apt exists, as per Debian. The filesystem is ext4 but with two system partitions, so that you:

    • have one backup partition
    • can install updates to the unused partition for seemless and atomic updates
    • Be immutable whilst offering easy updates

    It gets compared to NixOS because NixOS is also an immutable distribution and the package manager is equally as flexible as apx (even tho apx also allows you to use nix)

    Multiple package managers outside of apt/dpkg from Debian get managed automatically using the apx tool, only if you wish to use it. Otherwise, for the desktop they promote the use of Flatpaks or AppImages.

    mintycactus ,
    @mintycactus@lemmy.world avatar

    deleted_by_author

  • Loading...
  • rush ,

    When you’re on A, updates go to B. When you’re on B, updates go to A.

    After an update, a reboot will switch slots.

    gnumdk ,
    @gnumdk@lemmy.ml avatar

    Looks bad in comparison with Silverblue where I can pin many previous version. Thanks to OSTree, you can downgrade to any point in the history or even switch back to an older release.

    rush ,

    If OSTree suits you better, that’s fine!

    The A/B Partition method and OSTree are both great, but have different strengths

    VanillaOS described it in their FAQ once:

    Vanilla OS uses an A/B structure (ABRoot), which transacts updates atomically between two root micro partitions. The benefits of this system are the guarantee that the system is altered only when the entire transaction is successful (concept of atomicity), furthermore, the double root partition structure allows you to roll back to the previous state, directly from your boot, you will always have a home to come back to.

    This structure, unlike others, is compatible with already existing distributions and does not require a complex setup and allows easy re-initialization of the system without data loss.

    mintycactus ,
    @mintycactus@lemmy.world avatar

    deleted_by_author

  • Loading...
  • rush ,

    The 40gb total are both already reserved, and a normal user isn’t supposed to modify it so it shouldn’t fill up.

    For desktop apps, Vanilla will primarily stick to Flatpaks, so Firefox will also be a Flatpak.

    VanillaOS already has a custom boot menu that can be used to switch slots in case an update went wrong, so that you can go back to your older, but working system.

    The partitions are also not synced.

    If you install something using abroot (e.g an update) it will only be installed to the unused slot. So if you run abroot --update or use the included updater, and you’re in Slot A, it’ll modify Slot B, and vice versa.

    Pantherina , in need some help adding this to autostart for arch kde
    1. You shouldnt constantly check if that app is installed, especially not using package manager testing. Do it once.
    2. You forgot some argument to run the settings from CLI, it seems to try to launch a GUI
    robzombie91 OP ,

    the reason for more than one elif is for different package managers like apt, yum and dnf, other than that it just skips it if the package is detected.

    Afaik it uses cli to find the temperature. i couldnt set the temperature with nvidia-smi so i had to use nvidia-settings

    gpuTemp=$(nvidia-settings -q gpucoretemp | grep ‘^ Attribute’ |
    head -n 1 | perl -pe ‘s/^.?(\d+).\s$/\1/;’) echo -en "Current GPU temperature: $gpuTemp \r"

    Pantherina ,

    Yes the loop is nice, but you know your packagemanager and that this package will not disappear randomly, so keep it out of this service script, its just an extra break point and wastes resources :D

    The rest, idk

    robzombie91 OP , in need some help adding this to autostart for arch kde
    
    <span style="color:#323232;">● fan.service - NVIDIA Fan Control on Wayland Arch
    </span><span style="color:#323232;">     Loaded: loaded (/etc/systemd/system/fan.service; enabled; preset: disabled)
    </span><span style="color:#323232;">     Active: active (running) since Tue 2023-10-17 18:29:39 EDT; 4s ago
    </span><span style="color:#323232;">   Main PID: 2691 (sudo)
    </span><span style="color:#323232;">      Tasks: 3 (limit: 38401)
    </span><span style="color:#323232;">     Memory: 5.9M
    </span><span style="color:#323232;">        CPU: 39ms
    </span><span style="color:#323232;">     CGroup: /system.slice/fan.service
    </span><span style="color:#323232;">             ├─2691 sudo /home/rob/Documents/fan.sh
    </span><span style="color:#323232;">             ├─2692 /bin/bash /home/rob/Documents/fan.sh
    </span><span style="color:#323232;">             └─2699 sleep 5
    </span><span style="color:#323232;">
    </span><span style="color:#323232;">Oct 17 18:29:39 robpc systemd[1]: Started NVIDIA Fan Control on Wayland Arch.
    </span><span style="color:#323232;">Oct 17 18:29:39 robpc sudo[2691]:     root : PWD=/ ; USER=root ; COMMAND=/home/rob/Documents/fan.sh
    </span><span style="color:#323232;">Oct 17 18:29:39 robpc sudo[2691]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=0)
    </span><span style="color:#323232;">Oct 17 18:29:39 robpc sudo[2694]: ERROR: The control display is undefined; please run `nvidia-settings --help` for usage information.
    </span><span style="color:#323232;">Oct 17 18:29:39 robpc sudo[2692]: Current GPU temperature: 0
    </span><span style="color:#323232;">Oct 17 18:29:39 robpc sudo[2698]: ERROR: The control display is undefined; please run `nvidia-settings --help` for usage information.
    </span><span style="color:#323232;">
    </span>
    
    aebletrae ,
    @aebletrae@hexbear.net avatar

    The output here lets us know that systemd is running the service file and starting the script just fine. The echoed GPU temperature is making it to the journal, but the gpuTemp variable isn’t being updated (staying at 0) because of a problem executing nvidia-settings. Specifically, it wants a display: “The control display is undefined”.

    You could add a line to the service file:—

    Environment = DISPLAY=:0

    Although if echo DISPLAY in your terminal gives you a different value, use that. There’s a possibility that that will just push one error further down the line, but it’s something to try.

    Alternatively/additionally, you could try changing the User= line to your own username to see if it picks up the environment your manual executions work with.

    You aren’t the only one to run into problems trying to automate nvidia-settings. You might end up needing to track down an or use the display manager’s initialisation options.

    craigevil , in Who here uses a less popular Linux distribution? What made you choose it?
    @craigevil@lemmy.ml avatar

    raspberry pi os + Debian Sid. Been using the same install with daily updates for 3 yrs.

    datavoid , (edited ) in Question about dual booting Linux + Windows on different SSDs

    Personally I would make sure you’re backed up, then try something like this:

    superuser.com/…/move-efi-system-partition-to-anot…

    Edit - after reading the other comments, definitely don’t do this

    robzombie91 OP , (edited ) in need some help adding this to autostart for arch kde

    As soon as I get home I’ll do it. Afaik if you try to run it normally without root access it spits out errors about not being able to set the fan speed because it uses nvidia-settings as a dependancy. Also failed to mention this is a Wayland script, not xorg

    GustavoM , in Which version of a distro to install?
    @GustavoM@lemmy.world avatar

    It seems that Debian-rock64.img is an armhf image (i.e 32 bits) and Debian-arm64.img is (obviously) an 64 bit image… so go for the latter if your board has 8 GiB ram and up and the former if 4 GiB ram and under.

    syaochan ,

    Rock64 had 4GB max

    aebletrae , in need some help adding this to autostart for arch kde
    @aebletrae@hexbear.net avatar

    If it works when run manually, but fails via systemd, then you should post your service file.

    kugmo , in Does Pi-Hole disrupt anything important?
    @kugmo@sh.itjust.works avatar

    You’ll have to whitelist some Microsoft domains if you want to get achievements working for games that use a Microsoft account.

    GustavoM , in How to make money with Linux (non coder)
    @GustavoM@lemmy.world avatar

    Buy a rpi 4 and use it to do a livestream of (pretty much anything you want).

    mfat OP ,

    Thanks but not sure what you mean. Livestream what? Any examples?

    GustavoM ,
    @GustavoM@lemmy.world avatar

    Like I said, anything you want. Just get creative.

    TeryVeneno ,

    I think OP is saying become a streamer but use Linux instead of windows or mac.

    d_k_bo , in Problem with CD audio

    Did you try playing the files on a different device to sort out playback issues?

    banazir OP ,
    @banazir@lemmy.ml avatar

    Not sure what you mean. This issue only affects rips made after the hardware upgrade. Rips made prior (with the same DVD drive and from the same CDs) play perfectly fine. I doubt transferring the files to a different device changes anything.

    TenTypekMatus , in Resources to learn about history of linux
    @TenTypekMatus@lemmy.world avatar

    The Wikipedia article has pretty good information about Linux history.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines