Getting Started Stable Diffusion with LoRA models
1. About Stable Diffusion
I set up Ubuntu for the 1st time since several years ago.
Open Show Applications > Settings and set each configuration.
I ended up to set 1920x1080.
Change the scroll direction on the middle button of a mouse by turning on Mouse > Natural Scrolling.
Note that most of gestures still doesn’t work.
Folllow this article to set up this. Install Gestures and its dependencies.
> sudo apt install python3 python3-gi meson xdotool libinput-tools gettext
Then install libinput-gestures.
sudo gpasswd -a $USER input
ghq get github.com/bulletmark/libinput-gestures
cd /path/to/libinput-gestures
sudo make install
libinput-gestures-setup autostart start
Next, install a flatpak to download Gestures.
sudo apt install flatpak gnome-software-plugin-flatpak
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
Before next step, restart your computer for the flatpak setup.
Then download Gestures from FLATHUB.
No module named 'packaging
I got an error No module named 'packaging
when I ran libinput-gestures-setup autostart start
for some reasons.
Following this stackdriver question, I ran sudo apt install python3-packaging
and restarted my desktop, and then it started successfully.
I haven’t been able to solve it yet. The configuration uses xdotool, but it looks it has an issue to get a window on the tool. I couldn’t even get an active window on the CLI.
> xdotool getactivewindow
XGetWindowProperty[_NET_ACTIVE_WINDOW] failed (code=1)
xdo_get_active_window reported an error
Before setting a keyboard, install Gnome tweaks by next command.
sudo apt install gnome-tweaks
gnome-tweaks
gnome-tweaks
See this page for more details.
In order install a language other than English, go to Manage Installed Languages > Install/Remove Languages and choose a language you wanna install. Then restart a computer
Follow this article.
sudo apt install gnome-shell-extension-gpaste
Also, to manage extensions, install next tool if you haven’t installed it yet.
sudo apt install gnome-shell-extension-prefs
Once you restart your GNOME shell, you can use them.
There are shortcut keys for this tool to use this clipboard more efficiently. See the full list in this article
From this article.
First of all, GNOME shell extension and “chrome-gnome-shell” need to be installed, following this document.
Then run gnome-tweaks
and see there is Extensions > User themes.
If not, restart a computer and check it again.
Then install a browser extension for gnome extension and install Night Theme Switcher.
Run next commands to install git, emacs, and tmux
sudo apt git emacs tmux fish
Note that it’s not recommended to install it via snap according to this comment I also got the issue on the above. So, follow an official document to install this cli.
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo gpg --dearmor -o /usr/share/keyrings/githubcli-archive-keyring.gpg
echo deb [arch=(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null
sudo apt update
sudo apt install gh
First, install docker. I forgot how I did, so please check the Internet.
Then in order to run docker commands without sudo
, add your user into docker group, by following this article
sudo usermod -aG docker $USER
Then restart your machine.
Follow official documents to install them
To set up CLI, run the next command at first
> op signin my.1password.com example@example.com
I installed ULauncher as a launcher in Ubuntu. To download it, run next command.
sudo add-apt-repository ppa:agornostal/ulauncher && sudo apt update && sudo apt install ulauncher
But it didn’t work as expected. In order to make it work, I have to update a few things by following this document
In order to play live streaming videos on Firefox, we need to install “ffmpeg” by sudo apt install ffmpeg
and restart Firefox.
I found this on this page.
Set up Google account on online accounts at first.
Then run next commands to install, make a mounted directory, and mount a Google Drive to the directory.
sudo add-apt-repository ppa:alessandro-strada/ppa
sudo apt update && sudo apt install google-drive-ocamlfuse
google-drive-ocamlfuse
mkdir ~/GoogleDrive
google-drive-ocamlfuse ~/GoogleDrive
This is from this page.
However, this mount is only active until I shutdown a computer.
In order to keep mounting even after shutdown, the command google-drive-ocamlfuse /home/username/GoogleDrive
to be added on Startup Applications.
This page describes about Startup Applications on Ubuntu.
/etc/default/grub
and set GRUB_DEFAULT=saved
and GRUB_SAVEDEFAULT=true
.
In order to fix grub boot errors, boot-repair may be helpful to install and use it, run
sudo add-apt-repository ppa:yannubuntu/boot-repair && sudo apt update
sudo apt install -y boot-repair && boot-repair
According to this question, “ttf-ubuntu-font-family” is required.
Install it by sudo apt ttf-ubuntu-font-family
.
Install gdebi by next command and open .deb file using GDebi Package Instaler.
sudo apt install gdebi
I followed this question and answers.
1. About Stable Diffusion
Basic commands
Template package
This article was written by just following Kelsey Hightower’s Kubernetes Hardway document to understand Kubernetes internal architecture.
There are a few documents to manage billing data in BigQuery Attribution of committed use discount fees and credits How to export to BigQuery Structur...
Operations
Architecture
Following videos are helpful to understand the overview of Elasticsearch more.
In this post, some variables defined in Grafana are used for Prometheus metrics, including $__rate_interval: This article describes the benefit of this va...
Follow this document mainly.
There are an awesome article about the options to use the Google Secret Manager and their pros and cons. In this article, use Secrets Store CSI Driver by fol...
To figure out which kubernetes objects are how much resource, a vertical pod autoscaler might be useful. It has a feature to either automatically update valu...
This document is written by following this document.
Basically, follow this document
There is a good video to describe a algorithms of TiDB:
TiDB data is split into multiple nodes and they’re called the name as a region.
Install go install cuelang.org/go/cmd/cue@latest
This document just follows a quick tutorial for kubebuilder and learn its behavior.
There are multiple documents about innodb locks on MySQL 5.7: InnoDB locking Locks Set by Different SQL Statements in InnoDB Using InnoDB Transaction ...
I used to use Windows 11, but for some reasons, the OS stopped working and I needed to clean-install it from Windows 10 from windows recovery environment.
See another post also to set up a TiDB on minikube.
Overview
Follow an official article for this document when the version of Kubernetes was 1.26 and set up VMs on GCP.
SSH configuration
SSH configuration
The official document: Docker image and initial configuration
There are fewer lock contentions to worry about, replication is a lot happier, production impact of outages become smaller, backups and restores run faster, ...
Getting Started Use minikube by following this document
In this article, explain how to backup MySQL database using Percona Xtrabackup. There are two binaries, innobackupex and xtrabackup. innobackupex is a wrappe...
Set up TypeScript Next.js with Material UI
Basic configuration
Orchestrator is a tool for MySQL HA and replication management.
Consul is developed by Hashicorp to provide a few features like a service discovery.
This configuration is for the version 5.7 and it’s minimum configuration in the official document.
gh-ost
I set up Ubuntu for the 1st time since several years ago.
Apache Cassandra
Getting started
jq is used to parse JSON result, format and output on the cli.
MySQL connections
This is written on March 2021.
I mostly followed this article to update a WSL version, except that I didn’t enable Hyper-V until then and got an error Please enable the Virtual Machine Pla...
There are many web sites to compare static site generator, but they miss some explanations that require to me. For some people, these features are important ...
PHPBench framework
Command list
The deployment is many use cases and in this page, they’re not described. For the details for those use cases or the concept of deployment, see official page.
Configurations
This document is written for MySQL 5.7, so these contents may be not correct for other versions.
This document is written for MySQL 5.7, so these contents may be not correct for other versions. In this page, performance_schema is mainly discussed.
Configurations
There are some cases that we wanna fetch all records that are matching with a certain condition from an other gRPC server. In these cases, there are at least...
Written in March, 2020.
Functions
The configuration to enable comments is described in the official page.
Getting Started See Official tutorial for detail steps.
Configuration The detail for gitconfig is written in official page.
Written in March 2020.
This page explains how to enable searching non-posts pages for Minimal mistakes by Lunr.js for someone who does not know jekyll at all. Lunr.js is the defaul...
This document is described based on MySQL 5.6.
Performance
MySQL Tuner tool This is a tool to review a configuration for MySQL server.
Collect recent error logs If the logs are outputted by zap, error messages are aggregated by checking level = error. This log does not work very well if the ...
The Cloud endpoint is actually the NGINX proxy which offers the following features on GCP. Authentication and validation Logging and monitoring in GCP
http package in golang supports HTTP/2 protocols. It’s automatically configured.
Basic concepts There are some basic components for terraform.
Troubleshootings
gogo/protobuf is the library to store some extensions from golang/protobuf in this repository. There are some useful packages that golang/protobuf does not p...
Target upstream services Cloud CDN can have only GCP load balancer as the upstream services. And GCP load balancer can configure one of followings for backen...
Some JavaScript library depends on Google Closure. If you need to understand the behavior of such a library, you have to know closure. The official document ...