aizu's Knowledge Base
    • Go to: aizu.my Homepage
    • Recent
    • Tags
    • Register
    • Login
    1. Home
    2. Linux
    Log in to post
    Load new posts
    • Recently Replied
    • Recently Created
    • Most Posts
    • Most Votes
    • Most Views
    • A

      Convert ssh key ppk to pem

      • • aizu
      1
      0
      Votes
      1
      Posts
      248
      Views

      No one has replied

    • A

      Sample bitbucket pipeline for deploy to Linux

      • • aizu
      1
      0
      Votes
      1
      Posts
      220
      Views

      No one has replied

    • A

      PM2 - Sveltekit ecosystem

      • • aizu
      2
      0
      Votes
      2
      Posts
      456
      Views

      A

      NodeJS Build

      npm i -D @sveltejs/adapter-node

      File: svelte.config.js

      import adapter from '@sveltejs/adapter-node';

      Then

      # npm run build

      The output files will in "./build" directory.

      Ref: https://kit.svelte.dev/docs/adapter-node

    • A

      pull.sh script

      • • aizu
      1
      0
      Votes
      1
      Posts
      146
      Views

      No one has replied

    • A

      NextJS 14.0.2 - package.json

      • • aizu
      1
      0
      Votes
      1
      Posts
      216
      Views

      No one has replied

    • A

      mongodb backup & restore

      • • aizu
      1
      0
      Votes
      1
      Posts
      120
      Views

      No one has replied

    • A

      grep - find files

      • • aizu
      1
      0
      Votes
      1
      Posts
      150
      Views

      No one has replied

    • A

      Generate SSL cert Let's Encrypt - certbot

      • • aizu
      1
      0
      Votes
      1
      Posts
      162
      Views

      No one has replied

    • A

      nginx conf - cloudflare - get real IP

      • • aizu
      1
      0
      Votes
      1
      Posts
      202
      Views

      No one has replied

    • A

      Multiple PHP version

      • • aizu
      1
      0
      Votes
      1
      Posts
      141
      Views

      No one has replied

    • A

      Varnish in Ubuntu 22.04

      • • aizu
      1
      0
      Votes
      1
      Posts
      225
      Views

      No one has replied

    • A

      Reverse proxy using SSH

      • • aizu
      1
      0
      Votes
      1
      Posts
      145
      Views

      No one has replied

    • A

      Docker - Cheat sheet

      • • aizu
      3
      0
      Votes
      3
      Posts
      415
      Views

      A

      The command

      docker

      Output

      attach Attach local standard input, output, and error streams to a running container build Build an image from a Dockerfile commit Create a new image from a container's changes cp Copy files/folders between a container and the local filesystem create Create a new container diff Inspect changes to files or directories on a container's filesystem events Get real time events from the server exec Run a command in a running container export Export a container's filesystem as a tar archive history Show the history of an image images List images import Import the contents from a tarball to create a filesystem image info Display system-wide information inspect Return low-level information on Docker objects kill Kill one or more running containers load Load an image from a tar archive or STDIN login Log in to a Docker registry logout Log out from a Docker registry logs Fetch the logs of a container pause Pause all processes within one or more containers port List port mappings or a specific mapping for the container ps List containers pull Pull an image or a repository from a registry push Push an image or a repository to a registry rename Rename a container restart Restart one or more containers rm Remove one or more containers rmi Remove one or more images run Run a command in a new container save Save one or more images to a tar archive (streamed to STDOUT by default) search Search the Docker Hub for images start Start one or more stopped containers stats Display a live stream of container(s) resource usage statistics stop Stop one or more running containers tag Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE top Display the running processes of a container unpause Unpause all processes within one or more containers update Update configuration of one or more containers version Show the Docker version information wait Block until one or more containers stop, then print their exit codes

      Ref: https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-20-04

    • A

      Docker - install ghost & mariadb

      • • aizu
      1
      0
      Votes
      1
      Posts
      154
      Views

      No one has replied

    • A

      nginx conf for PHP-FPM

      • • aizu
      1
      0
      Votes
      1
      Posts
      199
      Views

      No one has replied

    • A

      Linode - view disk img file

      • • aizu
      1
      0
      Votes
      1
      Posts
      163
      Views

      No one has replied

    • A

      Run MT4 in Alpine Linux 3.17 - Linode 1GB

      • • aizu
      1
      0
      Votes
      1
      Posts
      262
      Views

      No one has replied

    • A

      Server prep - Alpine 3.15 - NodeJS, MongoDB

      • • aizu
      3
      0
      Votes
      3
      Posts
      330
      Views

      A

      MongoDB

      Ref: https://linux.how2shout.com/how-to-install-mongodb-server-on-alpine-linux/

      # echo 'http://dl-cdn.alpinelinux.org/alpine/v3.9/main' >> /etc/apk/repositories # echo 'http://dl-cdn.alpinelinux.org/alpine/v3.9/community' >> /etc/apk/repositories # apk update # apk add mongodb # apk add mongodb-tools # mkdir -p /data/db/ # chown 'root' /data/db # rc-update add mongodb default # rc-service mongodb start
    • A

      New server prep - Ubuntu 20.24 LTS - Nodejs 18

      • • aizu
      3
      0
      Votes
      3
      Posts
      314
      Views

      A

      rewrite ^/(.*)$ https://destination.domain.com/$1 permanent;