linux

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

pepperonisalami, in Happy new year of the Linux Desktop!

This is for real the Linux desktop year for me, went through the switch just before the new year. Had to reinstall a couple times but no big deal, and I get to learn as well.

Not sure if out-of-the-box distros are now that user friendly yet or not, but I remember getting Ubuntu running several years ago was frustrating (no sound, bad sound quality etc) and now running EOS was pretty smooth. Pretty sure something like Mint will be user friendly enough for the general population.

penquin, in Mobile App, redesign, new dev, promotion… let’s build a bright future for PeerTube!

I want to use it but I don’t fully understand how it works. Does it use my device a storage for videos? Or does it only use it as a sharing device without storing the video on it? Does it only use the bandwidth on my device? Could someone please explain? I already read about it, but I’m still lost

utopiah,

I’ve been running my PeerTube instance for more than a year now so hopefully I can help :

  • if you only watch, it doesn’t use your device for storage, only some of your bandwidth if P2P is enabled. If you want to host content, e.g a video of yourself explaining how to design your own smart speaker using only FOSS, then you should setup a server which will need storage for your videos.

Happy to clarify more if you need. Overall you can watch content from video.benetou.fr and most likely all bandwidth will come from my server. You can not upload your videos there though (unless if I accept making an account for you, which I won’t). There are other servers though, public ones, which allow registration and where you can thus upload your content too.

penquin,

Thank you. I just want to watch, no more no less and I’m ok with using my bandwidth to push the video around if that helps, since my ISP doesn’t have that bullshit cap. And by bandwidth we are talking Internet, right?

MaxVoltage,
@MaxVoltage@lemmy.world avatar

i am lighting the beacon

smileyhead,

It is part od the Fediverse, so commenting, likes, following, etc. should regarless of what ActivityPub-enabled service you use for interactions (for example can comment from Mastodon account).

The “Peer” part of “PeerTube” means that the video player itself is based on torrent technology. It is not saved on your device (unless you decide to), just when you watch you also send the video to cut off some of the server’s bandwidth. Videos are not shared between servers, only the information that they exists, only on uploader’s server and between user’s devices.

It is not to preserve videos online, for that we have other tools like proper torrents, this is ment to be alternative to YouTube. TLDR Here ActivityPub is for statuses, Torrent is for helping the servers.

penquin,

So, my device/bandwidth is basically a tunnel so to speak that helps push the video (that is saved on the uploader’s server" to others? So peertube only uses my Internet and my device’s CPU?

conciselyverbose, (edited )

No. [I was wrong. In addition to being distributed between servers like I said, you can also enable P2P sharing to distribute the bandwidth even further.]

If you have a server that allows users to sign up, the stuff they follow/watch (you'd have to look at details if you want to host to see exactly how it's distributed) goes through your server.

The flip side to this is that, when your user uploads an extremely popular video (or you personally do if you don't allow signups), you don't have to stream every video to every individual user. You send it on to other federated instances that those users are signed up to, but if one instance has 100 users view your video, you don't have to send it 100 times. (This is likely less efficient than YouTube, because they can control exactly how load is spread between their delivery network with a comprehensive view of everything, but it dramatically lowers the barrier to entry for an individual to get involved or handle the distribution demand of a popular video.)

Just as a client, you don't serve anyone else. It's a website (or app) that works much like YouTube does. It's on the server side where the load is distributed.

smileyhead,

It uses just the same as other video sites plus some upload bandwidth that is usually unused anyway. Also there is an option to download the video purely by HTTP without torrenting if someone wants to.

canadaduane, in Is there such a thing as split-screen grep?
@canadaduane@lemmy.ca avatar

Given encouragement to try tmux, here is what I’ve come up with as a “one-liner” (script) that does what I was originally looking for:


<span style="color:#323232;">#!/bin/sh
</span><span style="color:#323232;">
</span><span style="color:#323232;">tmux new-session -d -s split_screen_grep ; 
</span><span style="color:#323232;">  send-keys "/bin/sh -c '$1' | tee /tmp/split_screen_grep.txt" C-m ; 
</span><span style="color:#323232;">  split-window -h ; 
</span><span style="color:#323232;">  select-pane -t 1 ; 
</span><span style="color:#323232;">  send-keys "tail -f /tmp/split_screen_grep.txt | grep '$2'" C-m ;
</span><span style="color:#323232;">
</span><span style="color:#323232;">tmux attach-session -t split_screen_grep
</span>

I use it as follows, first arg is a command, second arg is a pattern to search for:


<span style="color:#323232;">$ ./split-grep "cat big_file.txt" "tmux"
</span>
EponymousBosh, in What distros have you tried and thought, "Nope, this one's not for me"?
@EponymousBosh@beehaw.org avatar

I’m currently using Linux Mint as well. I tried Garuda out and I did really like it, but the rolling release kept breaking NVIDIA.

I used Ubuntu back in the day but it sucks now. Snaps are the devil’s work.

sibloure, in I have started using fedora silverblue

I’ve been using Silverblue as my main computer for a couple years now and love it. It just always works and is super solid. I layered on distrobox for any other software so I can pretty much run any Linux software ever needed and it’s cleanly organized in containers.

Penguincoder, (edited ) in Is there such a thing as split-screen grep?

Your request goes against the unix philosophy. Grep does one thing and does it well. If you desire additional functionality, you should add another utility to accomplish what you want.

rsync -naP --exclude-from=rsync-homedir-local.txt /home/$USER/ $BACKUPDIR/ | grep denied

In your specific task, utilize bashims to do (what I think) you want:

rsync -naP --exclude-from=rsync-homedir-local.txt /home/$USER/ $BACKUPDIR/ || echo “task failed”

Opisek, (edited ) in Terminal Utility Mega list!

I’d like to suggest:

pastermil, in What are you most excited when it comes to linux in 2024?

SDDM Wayland Greeter, to have 100% wayland on KDE

gnuplusmatt,

Fedora 39 KDE/Kinoite already has this

pastermil,

SDDM with Wayland greeter? AFAIK It’s not even finished on the git master branch…

gnuplusmatt,

its not in any stable release of sddm, but its one of the exceptions Fedora makes for git releases in its stable branch. KDESIG devs were desperate to get an end to end wayland experience happening for the KDE spin.

fedoraproject.org/wiki/…/WaylandByDefaultForSDDM

priapus,

It’s not finished, but it works on the current release. wiki.archlinux.org/title/SDDM#Running_under_Wayla…

iloverocks,

I’m currently using greetd-tui but I would instantly switch over to sddm if the Wayland session actually works. (I use hyprland as my window manager )

kugmo, in Is DNS Bloat too?
@kugmo@sh.itjust.works avatar

Embrace GNS.

Alborlin, in New Linux user here. Is this really how I'm supposed to install apps on Linux?

My advice is get zorin or popos and see if there is installer in their software store. I am a new user like you are well and this sense to be common, i resroted to keep it on old laptop ,as server so in install and thin necessary things and then dinner user it at all. Linux Community on Lemmy is humbug, they will downvote as soon as you say Linux is not for regular person

callyral, (edited ) in Can anyone tell me what format this uh.. nested dictionary is?
@callyral@pawb.social avatar

Lua function “item” called with argument of type table

The function is the outer part with the parentheses, the table is the inner part with the curly braces. [“attr”] is a table inside the table.

For example, to access (table)>attr>size you would write: table[“attr”][“size”] (assuming the table is named, that is, assigned to a variable called “table”)

moomoomoo309,
@moomoomoo309@programming.dev avatar

This is correct. You can also omit the parentheses on the function call in Lua if the only argument is a table or string literal.

StrangeAstronomer, in Is there such a thing as split-screen grep?

I daresay there’s a way to do something like this with fzf

bfg9k, (edited ) in Is there such a thing as split-screen grep?
@bfg9k@lemmy.world avatar

Funnily enough Astrogrep on Windows is great for this

ikidd, in Terminal Utility Mega list!
@ikidd@lemmy.world avatar

I’ve been playing with SSHwifty for a centralized browser based terminal gateway. You set up the docker and can then use it as a central gateway for ssh servers in your networks.

The setup is a bit opaque but the maintainer looks really helpful in the Issues pages.

flashgnash, in Terminal Utility Mega list!

I love that the terminal based browser depends on firefox

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