Eskuero

I like sysadmin, scripting, manga and football.

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

help-circle
  • EskueroAtoSelfhosted@lemmy.worldSelfhosting wikipedia
    link
    fedilink
    English
    arrow-up
    1
    ·
    5 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




  • EskueroAtoLinux@lemmy.mlI freed 30GB using Filelight
    link
    fedilink
    arrow-up
    67
    ·
    edit-2
    2 months ago

    Clean all the cache downloads of Arch Linux Packages

    pacman -Scc

    Remove unused docker networks and images

    docker system prune --all

    Cleanup untracked git files that might be in .gitignore such as build and out directories (beware of losing data, use “n” instead of “f” for a dry run)

    git clean -xdf

    Do an aggresive pruning of objects in git (MIGHT BE VERY SLOW)

    git gc --aggressive --prune=now

    Remove old journal logs, keeping last seven days

    journalctl --vacuum-time 7days

    Remove pip cache

    pip cache purge