linux

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

Crozekiel, in What are people daily driving these days?

Garuda on my gaming desktop, fedora bazzite on my gaming laptop. Loving both to be honest.

Crabhands, in what caused you to get into Linux?
@Crabhands@lemmy.ml avatar

Windows

tvcvt, in How to keep all email locally in a useful format that can be searched across devices?

So I think the way I would want to do this is with something like mailpiler (www.mailpiler.org). It’s been on my long list of things to dive into for a while.

crank, (edited )
@crank@beehaw.org avatar

Well it is literally exactly what I was asking for. :) But as you allude to the setup is not trivial and would be a bit of a project. It is useful to know about because it could help find a somewhat simpler alternative. And I will add it to my own list in case I find none.

edit:

Led me to https://github.com/polo2ro/imapbox. Which is a different take on the same problem. I am not sure if I like the email all being converted to html like this. It could be a really nice addition but somehow I feel that keeping more original-formatted emails would be wise too. It does also create for each message “A gziped version of the email in .eml format” alongside the html but I would have to look more into what can be done with that.

tvcvt,

Yeah, I started working on it once a couple years ago and getting it spun up was a chore. Life got busy and I never finished.

That imapbox looks pretty interesting. Thanks for tracking that one down.

crank,
@crank@beehaw.org avatar

If you didnt already, see rest of comments on this thread.

zzzzzz,

I am currently working on this. Finally got the Docker working and am importing my 15GB mbox as we speak! I’ll post back here about how it works out.

tvcvt,

That’s awesome, I’ll definitely be interested to see how it all works out.

crank,
@crank@beehaw.org avatar

Did it work?

zzzzzz,

Alas, no! Things seemed to be going well: I got >90k messages imported from my Google Takeout mbox file before the import was interrupted (not mailpiler’s fault). At this point, I logged into the “auditor” account and was able to see my emails and search them. But, then I resumed the import. By the end of today, the import was finished (~150k messages total). When I logged in with the auditor account, I got some error “No search results” and nothing I could do about it. This is actually what happened last time I tried mailpiler, too, now that I recall. All seemed fine, but, it seems, the database got corrupted or something along the way… So, now it’s useless. I might try it one more time over the next few days. I’ll keep y’all posted.

crank,
@crank@beehaw.org avatar

Oh no!

This kind of tool needs to be something you can rely on if it’s to be used in the way I am intending. If there is a master copy of the mail (as it sounds like you are working from) it’s not as big a deal as you can always go back to that. But if the application is relied upon to be doing its job, possibly in silence for long stretches, it can’t just combust.

I am not sure I really like the word “database” in this context. I don’t understand them and I can’t fix them. Am feeling that maildir, where each email is simply a text file, should be the primary storage. If there is another tool that can index or interact with the maildir then that’s handy, but the mail itself should stay in a plain, interoperable filetype. (Unless that is how mailpiler works? I might be mis understanding.)

I also see that mailpiler encrypts everything. I do not love that. My hdd is already encrypted. I do not want things further encrypted because it also means I am unlikely to be be able to fix any problems.

I think this application is too complex for me. I need something that I can easily administer. Hopefully set up and leave it to be for a long time and not have too much to relearn if something needs to be fixed. It is perhaps suitable for a more advanced user/admin.

zzzzzz, (edited )

Yes, I’m coming to similar conclusions myself. To be fair, encryption is a configurable option with Mailpiler. But, yes, it is all digested and stored in a mysql database, which is definitely more opaque than plaintext in the filesystem. I might try the mutt + notmuch solution described by @marty_relaxes below. Sounds like it might be a challenge to set up but would work great forever after. I’ll need to figure out how to convert my mbox files to maildir, but Google suggests there are tools for that. Good luck to you, let us know what you ultimately figure out! I’ve been working on this off-and-on for a few months now without figuring our a good solution!

Edit: I guess, if you want fast full-text search, a database will have to enter the equation somewhere, though.

crank,
@crank@beehaw.org avatar

Honestly i could live without fast. If its a text file there is always grep, ripgrep, silver searcher etc. But there is nothing in my deleted email demanding immediate attention. Any situation i forsee would accommodate waiting hours or days. I was kind of hoping to continue interacting with it in a webmail kind if way because piling up too many new things for something i wont be working on regularly is just asking for a mess.

The mutt/notmuch proposal is a solid solution for the right person. To me, learning like 5 new major tools just for one project is a big risk. I played around with this stuff a couple years ago and failed at creating even a simple setup to do regular mail stuff. It is absolutely not clear.

So i might try one if the intermediate solutions mentioned elsewhere. A solution that digests mail be acceptable as an addon extra.

zzzzzz,

Well, I’ve solved it! I now have a web interface (accessible via VPN, although, in principle, I could expose it to the internet) that allows fast, full-text search of all my old emails. Here is the recipe:

  1. Maildir: I converted all my mbox files to maildir using this python script: superuser.com/…/how-to-convert-mbox-mail-files-as…
  2. Installed notmuch via my distro’s repository and set it up (notmuch setup & notmuch new). This creates a new folder in your maildir directory containing full-text search info.
  3. Installed netviel via python3 -m pip install netviel and then ran it via python3 -m netviel

That’s it! This let’s you search locally. I actually did a few more steps because I wanted to containerize this thing so I could run it on my NAS. I’d be happy to go into detail about that too, if you’re interested. One hiccup was that, for some reason, netviel binds to 127.0.0.1 instead of 0.0.0.0, and there is no way to change that without compiling the project yourself. But, I found a workaround for my Docker container where you can use socat bound to 0.0.0.0 to redirect requests to netviel, so that requests from other computers appear local to netviel.

Anyway, that makes it all sound more complicated than it is. I am super-pleased to have solved this problem at last!

furycd001, in what caused you to get into Linux?
@furycd001@lemmy.ml avatar

The year was 2002 & I was fed up with windows for various reasons. Connected to the internet looking for a windows alternative & ended up finding slackware. Installed slackware & got it somewhat working. Happily used it for a short while, before moving on to Fedora Core when it was released…

MXX53, in What are people daily driving these days?

Had been on pop for a while. But lately gnome shell was using a ton of ram and performance was trash, so I moved to fedora with KDE. Been great so far.

Astaroth, in What are people daily driving these days?

Arch Linux with i3wm

Fish, Alacritty, Rofi (dmenu replacement)

addie, in PipeWire 1.0 - An interview with PipeWire creator Wim Taymans - Fedora Magazine
@addie@feddit.uk avatar

Humble guy, but that list of features that they’re working on is really impressive. Got a wee DragonFly Black USB audio thing that just never worked quite right with PulseAudio - install PipeWire instead, and it just does all its tricks. Great work team, keep it up.

bolapara, in Non-root user that (suddenly) has elevated privileges in a specific command (only). [Have I been hacked?]

Can you be more specific about what you mean by this: “gives (the file) elevated privileges”?

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

i.e file is created (as non-root), trying to remove the file (once again, as non-root) gives me a “rm: cannot remove ‘dir/file.name’: Permission denied” error message.

bolapara,

OK I see. Can you create a new file with nano and then do an “ls -l” so we can see the permissions it’s given? Also provide the output of the command “umask” as the user you’re working with.

GustavoM,
@GustavoM@lemmy.world avatar

Just did it, and it shows my sudoer username with ownership of the created file. umask returns me 0002.

bolapara,

Can you paste the line from ls -l? Sanitize the username/date/time if you need to. Example:

-rw-r–r-- 1 bolapara users 0 Nov 21 17:19 asdf

GustavoM,
@GustavoM@lemmy.world avatar

-rw-rw-r-- 1 $sudoer $sudoer $date $createdfilename.

Nibodhika,

That is not an elevated permission, your user should be able to delete that file, do the same in another directory if it works it might be a permission, or more likely an attribute, problem on the directory itself or something on the path to it.

bizdelnick, (edited )

You cannot say if user able do delete the file or not. It depends on the directory permissions (deleting a file is modifying a directory).

gedhrel,

What are the permissions on the directory? What is command are you running to edit the file? What command are you running to delete it? (Have you got selinux turned on? What filesystem is this directory on?)

hedgehog,

Do you have write permissions on the directory?

Vorthas, in what caused you to get into Linux?
@Vorthas@lemmy.ml avatar

Once Windows got rid of the gorgeous Aero theme starting in Windows 8, plus the shitty UI/UX that Windows got again starting in Windows 8, pushed me to Linux.

RatsOffToYa, in Non-root user that (suddenly) has elevated privileges in a specific command (only). [Have I been hacked?]

What are the permissions on the directory the file resides in?

GustavoM,
@GustavoM@lemmy.world avatar

I already talked about it in this thread – it shows my sudoer username on both columns.

bizdelnick, (edited )

Show the full output of ls -ld directory (replace “directory” with real directory path).

lurch, in how can I customise my Ubuntu theme without breaking anything??

As long as you do not use root privileges (indicated by sudo or that password promt pkexec) you cannot destroy the system in a way that can’t be fixed by deleting a few files in the users home directory.

Reil, in what caused you to get into Linux?

Despite being an ECE major, I didn’t really bother doing anything with Linux until two things happened at the same time:

  1. I started having to work in several different build environments that were just easier to set up in Linux
  2. I started running Minecraft servers/doing server modding (starting back in the days of Hey0’s server mod and carrying up through Bukkit).

I wouldn’t call myself an evangelist at all. If you’re doing something that I think will be specifically easier to do in Linux (mostly servers and specific kinds of software development), I’ll point out how… but I find that a lot of people’s advice on “use Linux and X FOSS tool” ends up being akin to giving someone bike shopping advice on which welding torch to use to construct their bicycle frame.

PlexSheep, in what caused you to get into Linux?

Had an old laptop which ran horribly slow on windows. Put Ubuntu on it without knowing anything about that stuff. Years later, I got interested in computer science and Cybersecurity, made some experiences with Kali Linux. Eventually switched my desktop to Linux mint iirc. My servers tun Debian

That old laptop? I used it for the first months of Cybersecurity lectures, until I bought a new laptop with my first salary. This weekend I put LMDE 6 on it. Debian is home.

bitwolf, in I Made Screen Brightness Control on Gnome Much Better

I can see you’ve gotten some code review so I will just eagerly watch as this gets worked out and eventually merged.

I never had an issue with the backlight curve or lack thereof however a friend recently demoed a similar impl they put together for hyprland and it is a very nice change.

Looking forward to seeing it in the next Gnome release 🤞

luthis, (edited ) in FOUND file in device by hex content using wxHexEditor

Tried a different way:


<span style="color:#323232;"> filefrag -v testfile 
</span><span style="color:#323232;">Filesystem type is: ef53
</span><span style="color:#323232;">File size of testfile is 6 (1 block of 4096 bytes)
</span><span style="color:#323232;"> ext:     logical_offset:        physical_offset: length:   expected: flags:
</span><span style="color:#323232;">   0:        0..       0:    4660742..   4660742:      1:             last,eof
</span>

Went to offset 4660742 in wxhexeditor, but still when I copy out the hex and convert to ascii, it’s nonsense

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