Trying MinIO, an Amazon S3 Compatible Object Storage, on Docker

testing minio on docker

minio is an Amazon S3 compatible object storage

It is provided for platforms such as Mac/Windows/Linux as well, but Docker is handy when you just want to try it out a little, so I will build it with docker-compose

Once you have started it with docker-compose up -d,

  1. Connect to http://localhost:9000 in a browser
  2. Log in with admin/password
  3. Create a bucket with Create Bucket
  4. Upload files and folders

The interface is exactly the same as Amazon S3, so AWS-CLI can be used too, but in order to connect to minio you need to specify --endpoint-url .
Amazon S3 is charged by usage, so if you self-host minio you can use it for free.

Extracting IP Addresses from a Log File with grep and sort

Find ip address in logfile.

Log files come in all kinds of formats, so you will not necessarily get the same result; treat this as a rough reference only. This time I extract the IP addresses of my own subnet from a dnsmasq log file The dnsmasq log Copy Jan 25 05:45:04 dnsmasq[1]: query[A] firestore.googleapis.com from 192.168.1.43 Jan 25 05:45:04 dnsmasq[1]: cached firestore.googleapis.com is 142.250.196.106 Jan 25 05:45:04 dnsmasq[1]: query[AAAA] firestore.googleapis.com from 192.168.1.43 Jan 25 05:45:04 dnsmasq[1]: cached firestore.googleapis.com is 2404:6800:4004:827::200a Jan 25 05:45:04 dnsmasq[1]: reply easylist-downloads.adblockplus.org is 65.21.35.75 Jan 25 05:45:04 dnsmasq[1]: reply easylist-downloads.adblockplus.org is 136.243.9.187 Jan 25 05:45:04 dnsmasq[1]: reply easylist-downloads.adblockplus.org is 141.95.40.123 Jan 25 05:45:04 dnsmasq[1]: reply easylist-downloads.adblockplus.org is 51.255.232.90 Jan 25 05:45:04 dnsmasq[1]: reply easylist-downloads.adblockplus.org is 95.216.77.130 Jan 25 05:45:04 dnsmasq[1]: reply easylist-downloads.adblockplus.org is 95.217.32.92 Jan 25 05:45:05 dnsmasq[1]: query[A] firestore.googleapis.com from 192.168.1.43 Jan 25 05:45:05 dnsmasq[1]: cached firestore.googleapis.com is 142.250.196.106 Jan 25 05:45:05 dnsmasq[1]: query[AAAA] firestore.googleapis.com from 192.168.1.43 - Extracting only the IP addresses From all of this, extract only the IP addresses in the form 192.168.1.* [Read More]

Key Repeat Does Not Work on Mac

Enable Key Repeating on MacOS

A note on fixing key repeat (holding a key) when it does not work with a U.S. keyboard on a Mac. Environment MacBook Pro (M1) macOS Monterey KeyChron K2 Symptoms Key repeat works fine in iTerm and Terminal hjkl key repeat also works in Vim Arrow-key repeat works In Growi’s Vim editor and in web form fields, key repeat does not work and a candidate list appears instead [Read More]

Rebuilding My Zsh and Neovim Setup from Scratch in 2022

Zsh+zinit and NeoVim+vim-plug

I have been a fan of the Zsh shell on Linux and elsewhere for a long time, and lately I have even flirted with fish, but I took another look at my configuration files for the first time in ages. I had been managing my shared configuration files (dotfiles) on GitHub, and to my surprise the last update turned out to be about 10 years ago. (@_@) The configuration files were quite old too, and various helper tools and plugins have changed, so I reviewed everything from scratch. [Read More]

Running the Open Source IT Asset Manager Snipe-IT on Docker

How to Get Up and Running snipe-it on Docker

I wanted to manage software licences as well as the appliances and assets in my home, so I looked around for a good open source option, found the IT asset management system Snipe-IT, and set it up right away. This is how to install it with Docker Installation and configuration Copy $ git clone https://github.com/snipe/snipe-it.git Edit .env.docker Copy APP_DEBUG=false # please regenerate the APP_KEY value by calling `docker-compose run --rm snipeit bash` and then `php artisan key:generate --show` and then copy paste the value here APP_KEY=base64:3ilviXqB9u6DX1NRcyWGJ+sjySF+H18CPDGb3+IVwMQ= APP_URL=http://localhost:8000 -APP_TIMEZONE='UTC' -APP_LOCALE=en +APP_TIMEZONE='Asia/Tokyo' +APP_LOCALE=ja Port 8000 is used by default, so if you want to change it, change ports in docker-compose.yml [Read More]

Upgrading Debian 10 buster to Debian 11 bullseye

How to upgrade Debian 10 to 11

I have written about Debian upgrades several times, but the update procedure differs subtly from version to version, so it ends up being a separate article every time. This time it is the update procedure from Debian10 (buster) to 11 (bullseye). Checking Copy $ cat /etc/debian_version 10.11 Updating packages Copy $ sudo apt update $ sudo apt upgrade $ sudo apt dist-upgrade $ sudo apt autoremove Updating the source list (from buster to bullseye) There are changes, so be careful: it will not go well if you only change sources.list from buster to bullseye the way you used to. [Read More]

Installing Zsh 5.9 from Source on CentOS 7 and 8

zsh 5.9 manual install on CentOS

zsh5.9 is the latest right now, so I have updated this article The zsh on CentOS7/8 is old, so I installed the latest version at this point, 5.9, by hand Preparation Since we use commands such as wget and make, install the developer tools first Copy $ export LANG=C $ sudo yum groupinstall "Development Tools" $ sudo yum install ncurses-devel Downloading and installing /usr/bin/zsh and /bin/zsh already exist, so install into /usr/local [Read More]

Overriding the LDAP Login Shell on Debian and CentOS Clients

override LDAP login shell

There are cases where, on a particular LDAP client machine, you want to use a different shell rather than the one defined on the LDAP server (bash) This is possible by configuring the Linux (Debian/CentOS) client to override the shell Debian11(bullseye) Add the following to /etc/libnss-ldap.conf (look up the path to the shell beforehand) Copy nss_override_attribute_value loginShell /usr/bin/zsh Flush the nscd cache Copy # nscd -i passwd nscd CentOS8 Add the following to /etc/nslcd.conf [Read More]

Getting Started with Datadog and Moving Off a Zabbix Server

Trying the SaaS monitoring service as a replacement for a self-hosted Zabbix

It is what you would call a SaaS style operations monitoring service I now have an environment where I can use Datadog, so I am thinking of migrating from my Zabbix server. Since it is just the Zabbix server being replaced by Datadog’s service and zabbix-agent being replaced by datadog-agent, anyone who uses Zabbix should be able to grasp how it works. Once you register an account on the Datagog side so that you can use it, install Datadog-agent on the machines of each platform and start it, you will be able to view beautiful visualized graphs in no time at all. As for installing datadog-agent, various platforms are provided, but most people probably run it on CentOS or Debian Linux. Installation is easy too, with what is pretty much a one-liner command [Read More]

Converting a docker run Command into docker-compose Format

docker command convert to docker-compose format

When you use DockerHub , you see instructions written in the style of “run docker run … to start it”, don’t you. And then there are many occasions where you want to fold that docker run … into docker-compose. If you are used to YAML or TOML in the docker-compose format, you can simply write the version, put down the service name and then fill in the contents of the service, but lining up the indentation and so on really is a hassle. [Read More]