• 7 Posts
  • 36 Comments
Joined 1 year ago
cake
Cake day: June 17th, 2023

help-circle

  • Pete90@feddit.deOPtoich_iel@feddit.deFeddit Daten Export
    link
    fedilink
    Deutsch
    arrow-up
    14
    ·
    edit-2
    11 days ago

    EDIT: Ich hab folgendes gefunden und das funktioniert, danke an alle und danke an den Verfasser!


    Für die Leute, die keine offene Browser Session haben, hier ein kleines, aber funktionales Bash Script, welches im Ausführungsverzeichnis eine myFedditUserData.json erstellt, welche bei anderen Instanzen importiert werden kann.

    Anforderungen:

    • Linux/Mac OS X Installation
    • jq installiert (Unter Ubuntu/Debian/Mint z.B. per sudo apt install -y jq

    Anleitung:

    • Folgendes Script unter einem beliebigen Namen mit .sh Endung abspeichern, z.B. getMyFedditUsserData.sh
    • Script in beliebigen Textprogramm öffnen, Username/Mail und Passwort ausfüllen (optional Instanz ändern)
    • Terminal im Ordner des Scripts öffnen und chmod +x getMyFedditUsserData.sh ausführen (Namen eventuell anpassen)
    • ./getMyFedditUsserData.sh
    • Nun liegt im Ordner neben dem Script eine frische myFedditUserData.json

    Anmerkung: Das Script ist recht simpel, es wird ein JWT Bearer Token angefragt und als Header bei dem GET Aufruf von https://feddit.de/api/v3/user/export_settings mitgegeben. Wer kein Linux/Mac OS X zur Verfügung hat, kann den Ablauf mit anderen Mitteln nachstellen.

    Das Script:

    #!/bin/bash
    
    # Basic login script for Lemmy API
    
    # CHANGE THESE VALUES
    my_instance="https://feddit.de"			# e.g. https://feddit.nl
    my_username=""			# e.g. freamon
    my_password=""			# e.g. hunter2
    
    ########################################################
    
    # Lemmy API version
    API="api/v3"
    
    ########################################################
    
    # Turn off history substitution (avoid errors with ! usage)
    set +H
    
    ########################################################
    
    # Login
    login() {
    	end_point="user/login"
    	json_data="{\"username_or_email\":\"$my_username\",\"password\":\"$my_password\"}"
    
    	url="$my_instance/$API/$end_point"
    
    	curl -H "Content-Type: application/json" -d "$json_data" "$url"
    }
    
    # Get userdata as JSON
    getUserData() {
    	end_point="user/export_settings"
    
    	url="$my_instance/$API/$end_point"
    
    	curl -H "Authorization: Bearer ${JWT}" "$url"
    }
    
    JWT=$(login | jq -r '.jwt')
    
    printf 'JWT Token: %s\n' "$JWT"
    
    getUserData | jq > myFedditUserData.json
    




  • Pete90@feddit.detoSelfhosted@lemmy.worldWhat's your server wattage?
    link
    fedilink
    English
    arrow-up
    9
    ·
    edit-2
    1 month ago

    You most likely won’t utilize these speeds in a home lab, but I understand why you want them. I do too. I settled for 2.5GBit because that was a sweet spot in terms of speed, cost and power draw. In total, I idle at about 60W for following systems:

    • Lenovo M90q (i7 10700, 32GB, 3 x 1 TB SSD) running Proxmox, 15W idle
    • Custom NAS (Ryzen 2400G, 16GB, 4x12TB HDD)v running Truenas (30W idle)
    • Firewall (N5105, 8GB) running OPNsense (8W idle)
    • FritzBox 6660 Cable, which functions as a glorified access point, 10W idle

  • Pete90@feddit.detoich_iel@feddit.deich♹♷♺iel
    link
    fedilink
    Deutsch
    arrow-up
    9
    ·
    1 month ago

    Ich nehme an, dass hier physische Hardware vermietet wird. Häufig ist es aber günstiger, virtuelle Hardware (z.B. CPU Kerne) zu nutzen - man teilt sich dann die CPU mit anderen, während bei ersterem nur du darauf Zugriff hast. Ist vereinfacht, aber so mehr oder weniger…


  • I’d be very careful to publicly host Jellyfin. Although not necessarily true, it basically advertises that you’re pirating content while also giving out your IP. Even if you rip your own media, this can still be illegal. Please be careful.

    Maybe you can put it behind some authentication or, even better, a VPN.













  • Pete90@feddit.detoich_iel@feddit.deich🤮iel
    link
    fedilink
    Deutsch
    arrow-up
    12
    ·
    3 months ago

    Reha und Rentenantrag bei mir. Musste drei mal Widerspruch einlegen, weil immer was falsch war. Morgen geht’s zur Reha, immer noch die falsche Klinik. Ich hab dann gefragt, ob man meine Briefe nicht beachten würde. Antwort: nein, grundsätzlich werden nur die ärztlichen Stellungnahmen beachtet. Jetzt koste ich mehrere tausend Euro, weil ich eine Reha bekomme, die nichts ändern wird. Saftladen!


  • Let me know if you need any help with that. I’m still a beginner, but have used the last few months to learn about cyber security. It can be a daunting subject, but if you get the basics right, you’re probably good. I also hosted without a care for years and was never hacked, but it can/will happen. Here are some pointers!

    Get or use a firewall. Iptables, UFW and such are probably good enough. I myself use OPNsense. It can be integrated with Crowdsec, a popular intrusion prevention system. This can be quite a rabbit whole. In the end, you should be able to control who goes where in your network.

    Restrict ssh access or don’t allow it at all via internet. Close port 22 and use a VPN, if needed. Don’t allow root access via Ssh, use sudo. Use keys and passphrase login for best security.

    Update your stuff regularly. Weekly or bi-weekly, if you can.

    Use two factor authentication, where possible. It can be a bit annoying, but improves things dramatically. Long passwords help to, I use random-word-other-word combinations.

    If you haven’t, think of a backup strategy. 3 redundant copys on 2 media, one off site.