linux

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

LainOfTheWired, in I've started building a TUI for Lemmy
@LainOfTheWired@lemy.lol avatar

That looks epic!

Please add the ability to view images with an external image viewer as I find a lot of social TUI apps seem to lack that.

Add that and you’re making my ideal Lemmy client

crunchpaste,
@crunchpaste@lemmy.dbzer0.com avatar

Thank you, that’s so kind! I’ll probably try to tackle the comments first as they come quite messy from the api, then I’ll probably give the images a go.

To be honest, I’m hoping this project doesn’t get out of my league too quickly as a have almost no experience with working with apis.

KiranWells,
@KiranWells@pawb.social avatar

You might look into displaying images in the terminal as well; many modern terminals support showing actual images natively

rstein, (edited ) in Writing program

It depends on what you want to achieve.

Vi and it’s descendants are brilliant editors for a programmer but not for writing prose. So stay away from them. ;-)

Do you want just to write text without being distracted by an overwhelming gui or are you fine with the hint at options?

Do you want to write in a terminal?

How much do you want to format while typing? By typing the format commands into the text or by clicking on buttons or ctrl-key magic?

Do you need version control?

For each of your combination of answers there are different solutions.

taladar,

Vi and it’s descendants are brilliant editors for a programmer but not for writing prose.

They work just fine for writing prose too. Though you probably do not need to learn them if you only want to write prose.

qyron,

Version control is an interesting idea.

I used to write fiction as a hobbie and want to return to it again.

The blank sheet of a standard text editor messes with my nerves. I lose myself editing, formating, etc.

If I could find a prompt that I could pre set the font, layout of the final work, and then have the program leave me alone, it would be perfect.

Most writers solutions come with a lot of bells and whistles, like word counter, time elapsed, goals, etc. Unnecessary. Distracting.

mvirts, in Writing program

What do you want from your writing software other than basic text editing?

Mouse or keyboard navigation preferred?

qyron,

Prose. Fiction. Not programming. I may learn to code in a near future but I want to start writing for leisure again.

ultra, in What distros have you tried and thought, "Nope, this one's not for me"?

MicroOS. I didn’t switch from losedows to still have my PC restart on me while I was working. Also, it kinda broke and was annoying to configure, and had way too little documentation.

BCsven,

Did you use this tool ? Simplifies ignition/combustion opensuse.github.io/fuel-ignition/edit

ultra,

Isn’t that just for the initial install? I was talking about post-install configuration

BCsven,

If you scroll to the bottom in the combustion section you add packages you want, and custom scripts. OpenSUSE also haa auto yast for cloning your system and applying it to another machine

Nibodhika, in Fixed Arch install error

Refind does not generate the proper Configs when ran from the live image. From the wiki

Warning: When refind-install is run in chroot (e.g. in live system when installing Arch Linux) /boot/refind_linux.conf is populated with kernel options from the live system not the one on which it is installed. Edit /boot/refind_linux.conf and make sure the kernel parameters in it are correct for your system, otherwise you could get a kernel panic on your next boot. See .conf for an example file.

This is how my /boot/refind_linux.conf looks like:


<span style="color:#323232;">"Boot with standard options"  "rw root=/dev/nvme1n1p2"
</span><span style="color:#323232;">"Boot to single-user mode"    "rw root=/dev/nvme1n1p2 single"
</span><span style="color:#323232;">"Boot with minimal options"   "ro root=/dev/nvme1n1p2"
</span>
Hiro8811,

Using nano it just created new file

Nibodhika, (edited )

Have you mounted /boot? Usually it’s in a different partition so you’ll need to mount it.

Edit: yup, your boot is in a different partition according to your fstab

Hiro8811,

From where should I mount it? Emergency shell? Chroot?

Nibodhika, (edited )

Every time I made this mistake I booted again the live iso, mounted the boot drive and edit it.

Edit: you can also just edit the entry on refind directly to boot once on a correct config, and then fix it inside your actual system. The error is that the root filesystem will have an uuid that relates to the live iso image, not to your actual system.

Hiro8811,

I think I managed to mount it but what should I edit?

Nibodhika, (edited )

Ok, if I understood correctly your fstab what you should do is:

  1. Boot the live iso
  2. Run mount /dev/nvme0n1p1 /mnt
  3. run nano /mnt/refind_linux.conf
  4. Alter the file so it says this:

<span style="color:#323232;">"Boot with standard options"  "rw root=/dev/nvme0n1p2"
</span><span style="color:#323232;">"Boot to single-user mode"    "rw root=/dev/nvme0n1p2 single"
</span><span style="color:#323232;">"Boot with minimal options"   "ro root=/dev/nvme0n1p2"
</span>
  1. Save and close
  2. Unmount the drive umount /mnt
  3. Reboot

That should work

Edit: noticed my disk was 1 while yours is 0, didn’t remembered I had two ssds on that machine hahahah

Edit2: check that the file exists in /mnt, it should if you ran refind-install the first time.

Hiro8811,

I get the same error. Should I install grub?

Nibodhika,

Did you confirm that the file existed before editing? And that you were mounting the correct boot and not root partition?

I don’t know what else it can be if that doesn’t solve it.

yianiris,
@yianiris@kafeneio.social avatar

systemd doesn't like booting with ro, too dumb to check then mount filesystems.

@Nibodhika @Hiro8811

aard, in What would be the best way for me to recover data from my old laptop's hard drive, which seems to have a bad superblock?
@aard@kyu.de avatar

First step, in case you didn’t do that yet: Create a disk image of the partition - you don’t want to try data recovery on the actual data. Easiest is just using dd to dump the disk to another drive.

Next try running testdisk on the image to see if it can find the backup superblocks - if it does you can feed that to fsck to restore the filesystem.

If you know the blocksize of the filesystem you can also run mke2fs with the -S parameter - this will just write the superblocks. Again, only do that on a disk image, not the actual drive.

vortexal,
@vortexal@lemmy.ml avatar

That’s one of the solutions I saw that I currently can’t do because I have no other device that I can use for that.

redcalcium,

You can decide yourself if the data in that disk is more valuable than the price of a new disk to store the backup image. If it’s not that valuable I guess you can one-shot it.

aard,
@aard@kyu.de avatar

You can do all of that on the device - but you only get one shot. If you mess up that’s it - so no sensible person would try any form of data rescue directly on the device. Storage is cheap, if you don’t have sufficient space on your computer just get another external disk.

vortexal, (edited )
@vortexal@lemmy.ml avatar

I know you wont understand where I’m coming from so I wont bother explaining it. If I need another storage device than I’ll just have to wait until next year to get another storage device.

Edit: I don’t understand why I’m getting downvoted but it proves to me that I made the right choice in not explaining my situation.

aard,
@aard@kyu.de avatar

In that case I’d recommend waiting until next year before attempting recovery.

olosta,

The target storage device for the image can be over the network if that’s an option for you.

I admit the downvote is weird.

vortexal, (edited )
@vortexal@lemmy.ml avatar

I don’t think I can use that mostly because my internet package has a data cap and I don’t want to risk exceeding that.

Also, I know it’s not really the time or place for this type of discussion but I’ve noticed recently (within the last few months) that for some reason the Lemmy community has changed. I don’t know if anyone else feels that way but it sometimes seems like some users are unnecessarily hostile/judgemental towards me. I wont say anything more because once again, this is not the time or the place but Lemmy wasn’t like this when I first started using it over two years ago.

moonpiedumplings,

By “network” they also meant you can export the disk image to another device on your local network, rather than over the internet.

OmnipotentEntity,
@OmnipotentEntity@beehaw.org avatar

If the disc is corrupted it may be failing, recommending ddrescue over dd is probably a better call not knowing anything else about this situation. Essentially, no reason not to use it.

noUsernamesLef7,

I swear by ddrescue. It’s a situation I strive to never be but i’ve been there before. I used it once to rescue an employees masters capstone project from their dead work laptop.

aard,
@aard@kyu.de avatar

After reading about it - true. Disadvantage of doing this stuff for a long time - you miss new developments. Only reason I’m aware of testdisk is that I lost the sources of my own superblock search tool, my old binaries broke with a newer glibc, and before reimplementing it I checked if sombody else had done that in a more usable form in the meantime.

franzcoz,
@franzcoz@feddit.cl avatar

Another tool that has helped me when the others couldn’t was RecuperaBit. It has the same restrictions though, you have to do it on an image of the drive.

cmnybo,

The hard drive should be connected by SATA or eSATA when making the image. Connecting over USB is just asking for more trouble when the drive is not working correctly.

aard,
@aard@kyu.de avatar

That has changed over the last few years - I’d prefer a proper usb3 to sata bridge over a shitty sata controller - and the quality of integrated sata controllers isn’t that great nowadays.

UntouchedWagons, in What is the point of dbus?
@UntouchedWagons@lemmy.ca avatar

I don’t know but I’m interested in the answer.

glibg10b,

New comments have appeared

loopgru, in KDE's Nate Graham On X11 Being A Bad Platform & The Wayland Future

Anecdote, I know, but for my use cases, Wayland just isn’t there yet- I wind up with far more random bugs and less battery life. I don’t pretend to know why, I’m a pleb non-developer, but until that’s resolved I’m still stuck on X. I’d love to use the new shiny thing of The Future™, but not at the cost of stability and usability.

vox,
@vox@sopuli.xyz avatar

Wayland nearly doubled my battery life lol

dRLY,
@dRLY@lemmy.ml avatar

I think that given how frequently this argument is brought up (and it is of course true about it not being completely there yet) so this is just my opinion on the situation (and I am not a dev so I am fine with being wrong and corrected). It is kind of needed for more projects/distros to start actively using it. As a lot of the stuff kind of needs the band-aid ripped off to start forcing it to get there faster at this point. Otherwise it just keeps being held back as people on the coding end of things will keep focusing on X11 issues instead of getting things ready for Wayland.

Kind of like the conundrum of mobile OSes that aren’t Android or iOS. It is hard to get people/companies to even try the new OS because the lack of apps (specifically the most common ones used by the most people). But app devs don’t want to spend time re-building or starting new apps for an OS that isn’t being used (or on devices people are buying). So at a certain point it needs both sides to interact and make progress. The OS needs the apps more at this point, and getting feedback and data from those devs makes it known where things are and aren’t working. But it is also true the devs for the apps might end up finding out the OS is actually easier to work with compared to what they have been doing/dealing with on Android/iOS.

Getting a replacement for X11 has been needed for a long time as the OSes and features keep needing something new to better work for how computers have advanced. And it isn’t something that many devs would want to take on given how easy it is to just use what is already known. Since Wayland has finally gotten to the point it is now, it is time for more devs to start learning/moving to the new thing to get attention to the stuff that they need. The hardest part is this in between period for users as it can and will cause random issues (like the ones you have seen). Stability is important, but Linux is great because there will always be distros and projects that keeping the old thing running well is the main objective. So we are in some great times for the new to be pushed hard so it can become the stable future needed.

nix,

Been trying to think of a term for this issue. It’s not quite chicken or egg. But both sides need the other side to incentivize them. If one gets going the other will follow, but they’re waiting for each other. Like some sort of collaborative standoff.

dd56, in KDE's Nate Graham On X11 Being A Bad Platform & The Wayland Future

You will never be a real display server. You have no hardware cursors, you have no xrandr, you have no setxkbmap. You are a toy project twisted by Red Hat and GNOME into a crude mockery of X11’s perfection.

All the “validation” you get is two-faced and half-hearted. Behind your back people mock you. Your developers are disgusted and ashamed of you, your “users” laugh at your lack of features behind closed doors.

Linux users are utterly repulsed by you. Thousands of years of evolution have allowed them to sniff out defective software with incredible efficiency. Even Wayland sessions that “work” look uncanny and unnatural to a seasoned sysadmin. Your bizarre render loop is a dead giveaway. And even if you manage to get a drunk Arch user home with you, he’ll turn tail and bolt the second he gets a whiff of your high latency due to forced VSync.

You will never be happy. You wrench out a fake smile every single morning and tell yourself it’s going to be ok, but deep inside you feel the technical debt creeping up like a weed, ready to crush you under the unbearable weight.

Eventually it’ll be too much to bear - you’ll log into the GitLab instance, select the project, press Delete, and plunge it into the cold abyss. Your users will find the deletion notice, heartbroken but relieved that they no longer have to live with the unbearable shame and disappointment. They’ll remember you as the biggest failure of open source development, and every passerby for the rest of eternity will know a badly run project has failed there. Your code will decay and go to historical archives, and all that will remain of your legacy is a codebase that is unmistakably poorly written.

This is your fate. This is what you chose. There is no turning back.

troyunrau,
@troyunrau@lemmy.ca avatar

Pasta? Pasta.

Rustmilian,
@Rustmilian@lemmy.world avatar

Stupid ass copy-pasta

stepanzak,

ass copy-pasta?

SaltySalamander,
@SaltySalamander@kbin.social avatar

👆 boomer moment

dd56,

Ok zoomer

people_are_cute,
@people_are_cute@lemmy.sdf.org avatar

You at least have to appreciate the effort that went into writing this

itsaj26744, in I've started building a TUI for Lemmy
@itsaj26744@programming.dev avatar

There is one named neonmodem overdrive but it is buggy. It also support discourse forums any plan for this?

crunchpaste,
@crunchpaste@lemmy.dbzer0.com avatar

There is one named neonmodem overdrive but it is buggy.

It really is buggy, iirc I couldn’t even get it to run properly.

It also support discourse forums any plan for this?

I really don’t have any plans (or even a name) for the app, as I’ve just started playing around with pythorhead yesterday. I just hoped posting a prototype or a proof of concept might spark a discussion and maybe inspire someone much more competent than me.

itsaj26744,
@itsaj26744@programming.dev avatar

Fine I thought u were somewhere.🥲

xia, in What is the point of dbus?

Easy… decoupling. You hit the pause button on your keyboard, it does not need to “know” (in code or compile time or at runtime) what your music player is, and it can still pause it. Similarly, you can write a new media player, and not have to convince 1000 different projects to support or implement your custom api. en.m.wikipedia.org/wiki/Enterprise_service_bus

renzev,

There’s nothing about dbus that makes decoupling easier, you can do it just as well with sockets. Pipewire and pulse both speak the same protocol, and they both rely on sockets, not dbus. The vast majority of the apps on my system don’t know or care that they’re speaking with pipewire instead of pulse. Read my comment here lemmy.world/comment/6284859

xia,

Did you read more than the first two words of my post? wiki.archlinux.org/title/MPRIS

Also, that same logic would “prove” that p2p has no value b/c you can do just as well with fixed servers and http.

nix, in I've started building a TUI for Lemmy
@nix@merv.news avatar

How did you upload a video?

crunchpaste,
@crunchpaste@lemmy.dbzer0.com avatar

Uploaded it to catbox.moe and then just pasted the link in the url field when creating the post. Hope that helps :)

mvirts, in What is the point of dbus?

What’s the point of sockets?

loopgru,

WHY is Gamora?

CriticalMiss, in KDE's Nate Graham On X11 Being A Bad Platform & The Wayland Future

Every change will bring it’s fair share of complainers, not much we can do about that. LILO to GRUB, SysV to systemd and now X11 to Wayland. No one is forcing your hand (unless you use a pre-packaged distro like Ubuntu/Fedora, in which case you go with whatever the distro provides), keep using X11 if you want stability, if you wanna dip your toes in bleeding-edge software and increase it’s userbase to show hardware manufacturers that their drivers need to be updated (I’m looking at you, NVIDIA) then feel free to mess around.

Eventually the day will come when Wayland apps will simply not launch on X11 and you’ll migrate too.

AnneBonny,

Every change will bring it’s fair share of complainers

sometimes the complainers are right and sometimes they aren’t

CriticalMiss,

And when they’re right, it’s usually addressed. I say usually because GNOME exists.

S410,
@S410@kbin.social avatar

In case of Gnome it was addressed, just by different people. Gnome 2 continues to live on as MATE, so anyone who doesn't like Gnome 3 can use it instead.

troyunrau,
@troyunrau@lemmy.ca avatar

Likewise, KDE3 got forked to Trinity. But KDE kept producing (largely) quality software, so Trinity is pretty much an anecdote now.

flying_sheep,
@flying_sheep@lemmy.ml avatar

I don’t understand why anyone ever expects a different outcome. They fork something that has quite some investment into the original version. How do they expect to keep up?

AnneBonny,

I seem to remember a lot of people upset about GPL V3 I don’t remember how that was resolved.

CriticalMiss,

It was resolved by people not using it if they didn’t want to. Linux Kernel is still GPLv2

Flaky,
@Flaky@iusearchlinux.fyi avatar

AFAIK, Fedora is the only distro that’s getting rid of X11 support, the other distros are still packaging it AFAIK.

CriticalMiss,

There were news about Ubuntu doing it too some time ago, maybe they realized it’s not feasible yet. I don’t follow their development as I don’t use those distros

lemmyvore,

Nobody’s getting rid of X support. Not for several years.

Flaky,
@Flaky@iusearchlinux.fyi avatar

Go tell Fedora that then lol. They want it gone to the point where Nate is telling users who want X to stay away on that post. Xwayland I believe will still be around though.

lemmyvore,

They’ll recant after their usage drops to a fraction. This move makes zero sense no matter how you look at it. As a generalist distro it’s too early to drop X.

If they want to become a niche distro whose only claim to fame is “we only pack Plasma 6”, big whoop, like there’s any shortage of that. What kind of distro defines itself by what it does not offer? And is that the kind of distro that Fedora aims to be?

Jordan_U,

This is the kind of distro Fedora has always been, both for better and for worse.

I don’t see this decision driving users away from Fedora any more than other decisions they’ve made in the past and will surely make in the future.

AMDIsOurLord,

lmfao Wayland is already ready for over 90% of use cases. Hell, GNOME has been wayland-default since twenty-fucking-sixteen if I remember my dates right. You’re overestimating the value X.Org provides.

gens,

You are right in spirit.

It was not sysv to systemD, and it was forced (by making udev not work without it).

Other then nvidia, wayland is still missing some protocols (example: what virtual desktop you want your window to be on). But those protocols are (still) being worked on. And you will always be able to run x11 programs on wayland.

The advantages of wayland are a more direct path to hardware, and trowing away lots of code.

chaorace,
@chaorace@lemmy.sdf.org avatar

I’d say that’s already becoming the case in a few places. Hyprland isn’t just “Wayland good”, it’s “You should use Wayland good”.

Yes, I know the devs behind it act like pissants. That’s bad and I’m sorry for liking their software. I use Emacs too and RMS was kind of an asshole. Hell, I use Lemmy even though one of the devs has slighted me on more than one occasion.

Rustmilian,
@Rustmilian@lemmy.world avatar

deleted_by_author

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

    … has gotten some help and is now a pretty well-adjusted human being, who still tells right wing trolls to go suck it, and still tells paid professionals that they should have known better when they should have known better, but in language that isn’t abusive.

    So I don’t know why you bring him up.

    Rustmilian, (edited )
    @Rustmilian@lemmy.world avatar

    deleted_by_author

  • Loading...
  • flying_sheep, (edited )
    @flying_sheep@lemmy.ml avatar

    I think you’re like 5 years behind on this. It’s true, just read up on it. Linus took time off after criticism for his language got too much. And he improved by a lot. You’ll find no more name calling directed at contributors after a certain date.

    Rustmilian, (edited )
    @Rustmilian@lemmy.world avatar

    deleted_by_author

  • Loading...
  • bastion,

    I’m solely in the camp of who the fuck cares, anyway.

    I mean, you brought it up…

    Rustmilian, (edited )
    @Rustmilian@lemmy.world avatar

    deleted_by_author

  • Loading...
  • bastion, (edited )

    You’re the one with issues here, I was just browsing and saw the thread and figured I’d comment.

    Maybe talk to Torvalds for some recommendations.

    Rustmilian, (edited )
    @Rustmilian@lemmy.world avatar

    deleted_by_author

  • Loading...
  • bastion,

    Meh.

    CriticalMiss,

    I daily drive Hyprland too, there are some shortcomings with how the mouse behaves with XWayland but I don’t think it’s a Hyprland issue and Gamescope remedies that problem so overall, it’s a great experience.

    troyunrau, in What is the point of dbus?
    @troyunrau@lemmy.ca avatar

    Look into history of object brokering in object oriented environments. I was around when KDE went from CORBA to DCOP to DBUS, but not involved in the decisions. Basically: object sharing between processes with security, type translation, and a few other things. In the Microsoft world, this was called “component object model” if my memory is correct.

    DBUS is pretty nice for complex interactions.

    azimir,

    Based on the various other descriptions of the DBUS features, I kept thinking “this sounds like a message passing model with a bit of CORBA hiding in there”. It’s got a bit of SLP and AMQP/MQTT to it, just on a local machine instead of a distributed network. It’s solving a lot of problems with service discovery, message passing structure, and separating transmission layer details from service API design. Raw sockets/pipes can always be used to pass data (it’s how DBUS does it!), but there’s additional problems of where to send the data and how to ensure data formatting that sockets/pipes do not have the capability of solving by design since they’re simple and foundational to how interprocess communication works in the kernel.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • linux@lemmy.ml
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #

    Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 18878464 bytes) in /var/www/kbin/kbin/vendor/symfony/http-kernel/Profiler/FileProfilerStorage.php on line 171

    Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 10502144 bytes) in /var/www/kbin/kbin/vendor/symfony/error-handler/Resources/views/logs.html.php on line 36