Eskuero

I like sysadmin, scripting, manga and football.

  • 58 Posts
  • 215 Comments
Joined 2 years ago
cake
Cake day: June 13th, 2023

help-circle








  • EskueroAtoSelfhosted@lemmy.worldSelfhosting wikipedia
    link
    fedilink
    English
    arrow-up
    1
    ·
    13 days ago

    The easiest way by far is downloading an existing dump from kiwix

    Per example wikipedia_en_all_nopic_2024-06.zim is only 54GB since it only contains text. Then via docker you could use this compose file where you have your .zim files in the wikis volume:

    services:
      kiwix:
        image: ghcr.io/kiwix/kiwix-serve
        container_name: kiwix_app
        command: '*'
        ports:
          - '8080:8080'
        volumes:
          - "/wikis:/data"
        restart: always
    

    Theorically you can actually one of the wikipedia database dumps with mediawiki but I don’t known of any easy plug and play guide











  • EskueroAtoLinux@lemmy.mlNew SSD requires password to mount
    link
    fedilink
    arrow-up
    5
    ·
    edit-2
    2 months ago

    For automatically you need to add a keyfile to a slot in the luks device

    # openssl genrsa -out /root/keyfile.bin 4096

    # cryptsetup luksAddKey /dev/mapper/extra /root/keyfile.bin

    The entry in the crypttab would be like this

    extra UUID=XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX /root/keyfile.bin luks