I don’t expect much but I found an old pi I bought probably 2016(may of been 2017). It was supposed to be a pi-hole but was never able to get the dns forwarding to work on my modem. It still works but wanted to somehow convert it to a regular distro(it’s based on a micro-SD and I don’t have any more microsd readers). I wanted to set it up as a basic system I could ssh into a terminal. Not expecting anything fancy or even graphic based. A lot of stuff I want to learn/practice “work” on windows but are native to Linux, like vim/neovim nmap gcc etc. Is this feasible? Am I under estimating what’s possible with it?

  • erebion@news.erebion.eu
    link
    fedilink
    English
    arrow-up
    2
    ·
    1 day ago

    XMPP server, do some decentralised communication under your control. It will federate to other servers, allowing you to speak to other people and join public chats. An old Raspberry Pi should easily be able to server 100 or 200 users. Try Prosody for that or Snikket if you prefer containers and everything working out of the box.

    You could also use it as a NAS, if you don’t need a fast NAS. It will probably be enough to stream HD media using VLC on a cheap Android TV device/dongle.

  • Sophienomenal@lemmy.blahaj.zone
    link
    fedilink
    English
    arrow-up
    21
    ·
    3 days ago

    I have an entire home server running on my pi; it’s just going to depend on what model you have and what you want to do with it. Personally, I run my pi from an SSD kept in a USB drive enclosure because microSD cards suck and I want my system to be responsive. I host websites and ssh into it all the time for a great number of random tasks. I have a custom Fedora install, but Raspberry Pi OS or whatever they switched the name to after Raspbian is probably fine for most people. It’s based on Debian, or at least is was many years ago when I last saw anything about it.

    • Limerance@piefed.social
      link
      fedilink
      English
      arrow-up
      6
      ·
      3 days ago

      Depending on the Pi, you are limited to USB 2 speeds for the external drive. That’s enough for many things, like streaming video, but doesn’t cut it for regular transfer of large files.

      • Sophienomenal@lemmy.blahaj.zone
        link
        fedilink
        English
        arrow-up
        2
        ·
        edit-2
        3 days ago

        I’ve got a Raspberry Pi 4B 8GB, and I’ve never had a problem with speed, really. The only issues I have with speed are when I do things from outside my home network, which is a limitation from my ISP, not my hardware.

        EDIT: Just checked with a quick dd and it seems my drive’s sequential write speed is about 250MB/s, far exceeding USB 2.0. It’s not a great SSD, so that’s a pretty expected value, tbh.

    • vrek@programming.devOP
      link
      fedilink
      English
      arrow-up
      3
      ·
      3 days ago

      Pretty sure it’s rasp2b but maybe a rasp3… Its in a case so I have to open it and look at the markings

      • Sophienomenal@lemmy.blahaj.zone
        link
        fedilink
        English
        arrow-up
        5
        ·
        3 days ago

        Someone more knowledgeable about the older gen Pis could probably help you a lot more than I could. I have a Pi 4b 8GB for my server, so that’s gonna be a bit more capable than what you’ve got, but I imagine you can probably still find lots to do with it! Setting up a basic headless server should be no problem at all.

      • azimir@lemmy.ml
        link
        fedilink
        arrow-up
        3
        ·
        3 days ago

        The biggest limitation on the older models is RAM. There’s other issues with network contention (the Ethernet is actually a USB device on the board), raw CPU (especially gen 1 boards), but really it’s all about the RAM.

        I use these kinds of boards for more hardware/embedded kinds of situations. No GUI Linux machines will easily run in 200-400MB of RAM before you start spinning up additional services or tools.

        If you’re really RAM blocked you can use a more stripped down Linux install or even hop to BSD and run real lean on resources for the OS. All of these options can still run most network services or simple build/dev kinds of support systems. They could be message queue servers, run GPIO-driven hardware systems, be sensor platforms, run DNS/DHCP/PiHole kinds of systems, be a speaker driver endpoint for a larger system, bong a clock sound every hour, or whatever. That’s just what I could come up with while typing on the fly. If you start adding hardware to the IO ports it just goes nuts what even the older boards are capable of.

  • user28282912@piefed.social
    link
    fedilink
    English
    arrow-up
    13
    ·
    3 days ago

    Raspberry Pi’s are full of possibilities, even old ones. Here is what I’d do.

    It was supposed to be a pi-hole but was never able to get the dns forwarding to work on my modem.

    Not sure what you mean here but there is no reason that any modem or WAN box ever really needs to involved with a pi-hole. You can set the IP to use for DNS lookups on each host by hand… OR you can turn off DHCP services on the modem run that off of the PI, which then sends the IP of the PI/PiHole for DNS as part of the DHCP lease to each client.

    At any rate, ideas for it:

    • PiHole with encrypted DNS service out to the internet and past your ISP’s snooping modem.
    • a Wireguard VPN server. This would allow for things like your phone to tunnel home use your fancy pi-hole to block all ads on your phone, privately. You’d also then have access to anything else hosted on your home network like Music/Movies/etc. Setup a samba share for that stuff somewhere. This raspberry pi can also pass your VPN client traffic back out to the internet if you setup (ip forwarding)[https://rob-ferguson.me/how-to-use-your-rpi-as-a-router/]. It’s an old pi, so it won’t be faster than 100Mbps, but for a phone/tablet that is likely fine.
    • as a motion-activated camera or some other temperature monitoring box. You can setup a cronjob to archive the videos or send the collected temp readings to some database backend and use Grafana for a visualization front-end.
    • setup a netflow collector/forwarder for your LAN using fprobe. If you network is flat and I guessing that it is, as long as you have a single network switch for both your wired and wireless clients (and a single subnet aka 192.168.0.x for all) then you can monitor the whole broadcast domain with one box. You can send/forward the captured netflow to something like Security Onion and really start to understand what’s happening on your network. : )

    There are so many more ideas like weather stations, news feeds, little web services for whatever.

  • a_non_monotonic_function@lemmy.world
    link
    fedilink
    arrow-up
    4
    ·
    3 days ago

    If you want to tinker with a terminal it should do it just fine.

    The Pi Hole part is still possible, though. If it is a crappy ISP router then it into a gateway and grab a cheap router on marketplace to do the real work.

    Actually, if you are just planning to figure out the basics and not do heavy lifting with it, it would do both just fine. You could learn a bit by getting it configured and keeping it up.

  • doodoo_wizard@lemmy.ml
    link
    fedilink
    arrow-up
    6
    ·
    3 days ago

    You need an sd card adapter that lets you read and write the sd card from your pc to put an image the pi can boot onto the sd card.

    You will need this anyway when you eventually run into the sd card having a bunch of of bad blocks or unreadable sectors.

    It will work ”fine” for what you’re describing but consider getting one of those sata/m2 adapter boards so your root filesystem isn’t based on the media explicitly designed for temporarily holding information until the user can get back to a computer.

    If you already have a computer, just set up a vm.

  • pinball_wizard@lemmy.zip
    link
    fedilink
    arrow-up
    3
    ·
    3 days ago

    If you need to reimage it, it sounds like you’re looking for “Headless Rasbian”. As others have said, it is based on Debian.

    A lot of stuff I want to learn/practice “work” on windows but are native to Linux, like vim/neovim nmap gcc etc. Is this feasible?

    Absolutely. And it’s fun.

    Am I under estimating what’s possible with it?

    Haha. Yeah. I read somewhere that the Pi3 is the most capable budget PC ever produced, and I have no reason to doubt that claim.

    But you can always do more with it later. May as well start with trying what you’re interested in now.

    • vrek@programming.devOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      3 days ago

      Yeah the problem is I don’t have a card reader on my main desktop and I tried a bunch of my old passwords and none worked so I was just going to reimage it.

  • spaghettiwestern@sh.itjust.works
    link
    fedilink
    arrow-up
    5
    ·
    edit-2
    3 days ago

    Raspberry Pi OS is based on Debian. You should be able to do what you’re describing and more by enabling SSH even without changing the OS.

    Assuming it’s a Pi 3, Wireguard will work on it, as will Syncthing (useful if you add an SSD) but the interface bandwidth is limited so it can be a bit slow. That may not be too much of a problem though. My cable Internet’s upload speed is limited to 20Mbps, and despite the limited bandwidth both Wireguard and Syncthing are surprisingly useful.

  • fubarx@lemmy.world
    link
    fedilink
    arrow-up
    3
    ·
    3 days ago

    I helped set up many households with kids on Pi-2s and 3s, running Raspbian and Kano. All you needed was a keyboard, mouse, and a monitor. It all worked fine with Scratch, Minecraft, LibreOffice, Web, and email.

    At least, until the kids outgrew them.

    • vrek@programming.devOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 days ago

      Yeah I’m thinking my SD card is failing… I know it’s slow but I tried to do a fresh install in recovery 7 hours ago and it’s still initialing the “noob” installer.

      Supposedly I was thinking to small, I was thinking like trying to use nmap to discover all ip addresses on my lan or load vim to practice vim motions (I get the idea but I’m still too slow put in alot of commands cause I’m like ok… Up 10 lines, ok, up is… Look on cheat sheet… I… then number of lines… That was 10…look on cheat sheet… Oh just enter 10…it didn’t work… Figure out because it’s not ingrained in my head the time looking at a cheat sheet is making commands time out).

      • pinball_wizard@lemmy.zip
        link
        fedilink
        arrow-up
        3
        ·
        3 days ago

        or load vim to practice vim motions

        Because I sometimes forget, here’s your reminder that vim has a built in :vimtutor command which I have found surpringly good for a few minutes of guided practice now and then.

  • Clay_pidgin@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    3
    ·
    3 days ago

    My 2b+ is still chugging along running my webserver, hosting some scripts run by CRON, and a badly configured pi-hole. No complaints!

  • atzanteol@sh.itjust.works
    link
    fedilink
    English
    arrow-up
    1
    ·
    3 days ago

    You have the pi. Install Linux and find out? It takes like 10 mins… Otherwise it really depends on what you want to do and your expectations.

    I’ve got a raspberry pi 1 (didn’t even have on-board wifi) that I just fired up the other day. It’s pretty slow but if you just wanted to do some simple python development it might be fine (depending on your patience for installing dependencies).

  • BananaTrifleViolin@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    3 days ago

    Yes you can do loads with your Raspberry Pi. Certainly you can install ARM based linux distros onto it, but with an older model you’re best using a Pi specific linux distro.

    The official Raspberry Pi OS is linux and is compatible with all Raspberry Pi models - there is a universal 32bit version and a 64bit version for newer models 3+.

    There is also Dietpi which tries to be more lightweight and optimised.

    You can image either distro onto an SD card and run it on the Pi. If you connect the pi to your network you can run it headless and access it via SSH on your PC.

    However, if you main aim is to learn and play with Linux, then it is worth considering alternatives. For example, you could install VirtualBox on your Windows PC, and create a virtual PC to run any X86 linux distro you’d like on it. That can include small systems with command line only or a full desktop environment of your choice. That would likely give you much higher performance and options than a 10 year old raspberry pi can offer.

    The Pi is good if you want an always on server device to play with Linux on. The Virtual machine route is good if you want a more powerful system to play with occasionally when you feel like it.

    • vrek@programming.devOP
      link
      fedilink
      English
      arrow-up
      1
      ·
      3 days ago

      Yeah, I tried virtual box on my main system and kept running into odd problems with every distro. For example Debian had a full second of input lag, with 2 cores of a 13th Gen i5 and 16 gb of ram dedicated to it. Kali would install and I ejected the “installation medium” aka the iso and reboot and the virtual box couldn’t see any bootable drive. I tried fedora and it kept freezing on installing(sat at like 35% for over 3 hours)