Hexo

https://hexo.io/docs/#Installation npm install -g hexo-cli $ hexo help Usage: hexo <command> Commands: help Get help on a command. init Create a new Hexo folder. version Display version information. Global Options: --config Specify config file instead of using _config.yml --cwd Specify the CWD --debug Display all verbose messages in the terminal --draft Display draft posts --safe Disable all plugins and scripts --silent Hide output on console For more help, you can use 'hexo help [command]' for the detailed information or you can check the docs: http://hexo.io/docs/ hexo init <folder>は空のディレクトリに対して実行する必要がある。 いったん仮のディレクトリを作ってからコピーする。.github、.gitignoreファイルがあるのでコピー忘れに注意。 ...

2021年11月17日 · aoirint

GNOME Shell Extension おすすめ

Pixel Saver ウインドウを最大化したとき、macOSのようにタイトルバーをタスクバーに統合。 https://extensions.gnome.org/extension/723/pixel-saver/ https://github.com/pixel-saver/pixel-saver sudo apt install gnome-shell-extension-pixelsaver gTile 画面にウインドウを割り付けるメニュー。 https://extensions.gnome.org/extension/28/gtile/ https://github.com/gTile/gTile Add to Desktop デスクトップにショートカット(*.desktopファイル)を作成するメニュー。 https://extensions.gnome.org/extension/3240/add-to-desktop/ https://github.com/Tommimon/add-to-desktop Screenshot Locations スクリーンショットの保存先ディレクトリを変更するメニュー(GNOME Tweaksから設定)。 https://extensions.gnome.org/extension/1179/screenshot-locations/ https://codeberg.org/kiyui/gnome-shell-screenshotlocations-extension Sound input & output device chooser 電源メニューに音声デバイス選択を追加。 https://extensions.gnome.org/extension/906/sound-output-device-chooser/ https://github.com/kgshank/gse-sound-output-device-chooser

2021年11月14日 · aoirint

editorコマンドで起動するエディタを変更する(Ubuntu)

https://unix.stackexchange.com/a/204896 sudo update-alternatives --config editor

2021年11月13日 · aoirint

Ubuntu 20.04, 自動ログイン+Chrome Remote Desktopの起動時に繰り返し認証を求められる

Chrome Remote Desktopを導入したUbuntu 20.04に自動ログインを設定すると、 初回の認証はkeyringのロックを解除する認証だが、ほかにも5回程度繰り返し認証を求められる。 以下のようなメッセージが表示される。 Authentication is required to create a color managed device 以下のファイルのうち、いずれかを作成することで、追加の認証をスキップできる。 /etc/polkit-1/localauthority.conf.d/02-allow-colord.conf https://god-support.blogspot.com/2019/11/ubuntu1804-xrdp-authentication-is.html polkit.addRule(function(action, subject) { if (( action.id == "org.freedesktop.color-manager.create-device" || action.id == "org.freedesktop.color-manager.create-profile" || action.id == "org.freedesktop.color-manager.delete-device" || action.id == "org.freedesktop.color-manager.delete-profile" || action.id == "org.freedesktop.color-manager.modify-device" || action.id == "org.freedesktop.color-manager.modify-profile" ) && subject.isInGroup("{users}") ) { return polkit.Result.YES; } }); /etc/polkit-1/localauthority/50-local.d/45-allow-colord.pkla https://www.cagylogic.com/archives/2021/03/23145121/11743.php [Allow Colord all Users] Identity=unix-user:* Action=org.freedesktop.color-manager.create-device;org.freedesktop.color-manager.create-profile;org.freedesktop.color-manager.delete-device;org.freedesktop.color-manager.delete-profile;org.freedesktop.color-manager.modify-device;org.freedesktop.color-manager.modify-profile ResultAny=no ResultInactive=no ResultActive=yes

2021年11月13日 · aoirint

Chrome Remote Desktop (Ubuntu)

https://remotedesktop.google.com/access https://qiita.com/ninose14/items/473369d76814174dd58f インストール https://remotedesktop.google.com/headless rm -f ~/.chrome-remote-desktop-session スクリプトの改変 cd /opt/google/chrome-remote-desktop cp chrome-remote-desktop chrome-remote-desktop.bak /opt/google/chrome-remote-desktop/chrome-remote-desktop chrome-remote-desktop 106.0.5249.37 #FIRST_X_DISPLAY_NUMBER = 20 FIRST_X_DISPLAY_NUMBER = 0 ※ 0の部分には、デスクトップ環境でターミナルを開き、echo $DISPLAYで表示される値を入れる。 def launch_session(self, server_args, backoff_time): """Launches process required for session and records the backoff time for inhibitors so that process restarts are not attempted again until that time has passed.""" logging.info("Setting up and launching session") self._init_child_env() self.setup_audio() self._setup_gnubby() #self._launch_server(server_args) #if not self._launch_pre_session(): # # If there was no pre-session script, launch the session immediately. # self.launch_desktop_session() display = self.get_unused_display_number() self.child_env['DISPLAY'] = f':{display}' self.server_inhibitor.record_started(MINIMUM_PROCESS_LIFETIME, backoff_time) self.session_inhibitor.record_started(MINIMUM_PROCESS_LIFETIME, backoff_time) sudo systemctl restart chrome-remote-desktop@${USER}.service

2021年11月13日 · aoirint

Nextcloud davfs2 マウント設定(Ubuntu)

https://wiki.archlinux.jp/index.php/Davfs2 /etc/fstab https://nextcloud.example.com/remote.php/dav/files/myuser/ /mnt/nextcloud davfs rw,nofail,user,uid=myuser 0 0 /etc/davfs2/secrets https://nextcloud.example.com/remote.php/dav/files/myuser/ myuser APP_PASSWORD

2021年11月13日 · aoirint

Nextcloud Desktop Client PPA (Ubuntu)

https://launchpad.net/~nextcloud-devs/+archive/ubuntu/client sudo apt install software-properties-common sudo add-apt-repository ppa:nextcloud-devs/client sudo apt update sudo apt install nextcloud-desktop nautilus-nextcloud

2021年11月13日 · aoirint

WordPress

https://hub.docker.com/_/wordpress docker-compose.yml version: "3.9" services: wordpress: image: wordpress:5.8.2-apache restart: always ports: - "${SERVER_PORT}:80" environment: WORDPRESS_DB_HOST: db WORDPRESS_DB_USER: wordpress WORDPRESS_DB_PASSWORD: wordpress WORDPRESS_DB_NAME: wordpress volumes: - wordpress:/var/www/html db: image: mariadb:10.7 restart: always environment: MYSQL_DATABASE: wordpress MYSQL_USER: wordpress MYSQL_PASSWORD: wordpress MYSQL_RANDOM_ROOT_PASSWORD: '1' volumes: - db:/var/lib/mysql volumes: wordpress: db: .env SERVER_PORT=127.0.0.1:8000

2021年11月13日 · aoirint

docker-composeでBuildKitを使う

ビルドコマンド https://stackoverflow.com/questions/58592259/how-do-you-enable-buildkit-with-docker-compose DOCKER_BUILDKIT=1 COMPOSE_DOCKER_CLI_BUILD=1 docker-compose build Dockerfile https://www.docker.com/blog/introduction-to-heredocs-in-dockerfiles/ # syntax=docker/dockerfile:1.3-labs

2021年11月8日 · aoirint

Ubuntu 20.04, Unattended Upgradesを停止

https://unix.stackexchange.com/questions/470709/how-do-i-stop-disable-unattended-upgrades-from-being-launched-automatically 勝手にnvidia driverの更新が走って、 カーネルに読み込まれているdriverバージョンと、 ディスク上にあるdriverバージョンが一致しなくなって、 デスクトップアプリが起動しなくなったりする。 どうせ結構な頻度でapt upgradeするし、 再起動が保証されないタイミングで更新されて、 不安定になるのはいただけない。 sudo dpkg-reconfigure -plow unattended-upgrades これでTUIが起動するので、<No>を選ぶ。

2021年11月8日 · aoirint