Oh no, you!

  • 1 Post
  • 60 Comments
Joined 11 months ago
cake
Cake day: November 3rd, 2024

help-circle
  • Are you able to ask your ISP customer service to set up port forwarding for you?

    At minimal you want HTTP (Port 80) but you probably want HTTPS (443) as well. If you’re hosting DNS as well you will need port 53 too.

    Have those ports routed to the “inside” IP of the machine you want to use, and the rest of it is basically just setting up the webserver (and possibly DNS) to serve your domain.

    NB: While on the phone with your ISP, ask them what the DHCP lease time is. Ideally you want a static IP for your setup.



  • They can be. Some motherboards come with one built in. But in most cases it refers to its own PCIe card, such as one of the many models from LSI Megaraid.

    The advantage of this is that it can have a small capacitor bank (or a proper battery) to provide emergency power so that if something stupid happens such as motherboard failure, the raid controller will use this power to cleanly write to the disks.

    EDIT: I just remembered one such stupid situation at work where a motherboard died and then the entire system blacked out, including power to the drives. I spoke with my vendor since data loss and corruption carries a hefty price tag in my field. They told me not to worry - The data could sit in the buffer for ages, as the capacitor bank was there to handle things like this. Turned out that upon restoring power, once the array was online again, the write buffer will be written to disk. No CPU or motherboard required - the controller took care of it. This was especially handy since it took a little longer to find a replacement board.


  • Ooh, I did this a while back, except it was hardware Raid5 to Raid6. Turns out one of the servers in a cluster were, for some reason, set up with 11 disks in raid5 + hot spare, except for raid 6 on all raids on all servers. Took me embarrassingly long to realize why storage space was as expected despite one disk being reported as not in an array.

    Storcli and a nice raid controller makes thinks like this easy, as long as you grab enough coffee and read the storcli syntax while taking notes to build the full command string.





  • neidu3@sh.itjust.workstoMildly Infuriating@lemmy.worldEspecially the Ø...
    link
    fedilink
    English
    arrow-up
    14
    arrow-down
    2
    ·
    edit-2
    2 months ago

    Æ = Like the A in (American) “asshole”
    Å = Like the A in (British) “awful”.
    Ø = Like the U in (American) “Ugly”.

    As a Scandinavian, one of my biggest pet peeves is when someone uses Ø instead of O because they think it looks cool. Sure, whatever, but it makes reading it really insufferable. Imagine if someone typed your name as UnduBrani and expected you to pronounce it the same while not tripping over decades of reading practice.




  • bash setup/config/PS1 is your friend here. I frequently find myself with a myriad of terminals between a bunch of usernames and servers at work, and setting up a proper prompt is key to help you keep track.

    My bashrc makes my prompt look like this:

    username@hostname:/absolute/path
    $ inputgoeshere

    … with color coding, of course. Yes, I use a multiline prompt. I somehow never saw that before using ParrotSec despite being a bash user for 25 years. I modified the ParrotSec default to suit my needs better, and I like it:

    • Obvious which user I am.
    • Obvious which host I’m on.
    • Obvious which path I’m in.
    • It’s easy to copy and paste a complete source/destination for pasting into, for example, an rsync comman

    I pasted my PS1 config here: https://pastebin.com/ZcYwabfB

    Stick that line near the bottom of your ~/.bashrc file if you want to try it out.




  • It’s way too late at night for me to give an in-depth answer, but I just wanted to let you know that if you plan on adding drives over time, you might want to check out running the disks in JBOD instead of RAID and the use ZFS to create the storage volume. Redundancy supported, and you can add disks whenever you need more space. The disks don’t even have to be the same size.



  • I was considering something similar for my Volvo 940 about around 2010. The idea was that I’d install a touch screen as an infotainment system where I could see stuff like OBD2 data and navigation.

    While not having a functioning speedometer for a little bit (later fixed), I used my phone to see the GPS speed with the screen flipped so I could get the speed on the windshield like a HUD in some modern cars. The plan was to do something similar integrated with the home brewed infotainment.

    It annoys me that I never went through with it, because so much stuff of what I’d drawn up became standard for “fancy” cars later.




  • Anything that does the job is good enough. At its core a server is just a regular PC with a dedicated purpose and software. Sure, there are specialized hardware better suitable and purpose built, but it’s not a requirement.

    I for one prefer 19" rackmount stuff with disk bays in the front, but that’s more of a convenience than anything.

    UPS is nice, but it’ll work without it.

    I’ve had to deal with the Brazilian computer market and how it’s ridiculously overpriced due to import fees, so in your situation I’d just get any hand-me-down computer. Servers generally don’t require much unless you’re doing something special or intensive.

    Get your hands on whatever you can find for free or dirt cheap (laptop or desktop doesn’tmatter), install linux, and you have a basic setup that you can work with. If your use case requires more, then that’s something you can accommodate in the next iteration of your server.