commit b0c3f810d10e13f8635b7e871b48abfa7faf9745
parent 01f0e7ab2a63cb70af2a49b39687379d30dbc475
Author: minerva-juppiter <ryouturn@gmail.com>
Date: Wed, 30 Apr 2025 07:33:03 +0900
move old document to root
Diffstat:
8 files changed, 480 insertions(+), 1 deletion(-)
diff --git a/Gitea/references.md b/Gitea/references.md
@@ -0,0 +1 @@
+https://zenn.dev/nazo6/articles/docker-compose-gitea-setup+
\ No newline at end of file
diff --git a/Lubuntu/mozc.md b/Lubuntu/mozc.md
@@ -0,0 +1 @@
+https://qiita.com/FuRuYa7/items/858dcc7787d2d268c3d6+
\ No newline at end of file
diff --git a/UbuntuServer.md b/UbuntuServer.md
@@ -0,0 +1,27 @@
+# 経緯
+Gentoo OSなどのインストールに挑戦した私であったが、xtermがインストールされない等々の問題があったので、結局のところUbuntuに戻って来ることにした。
+けれども、GNOMEが入っているUbuntuを私などが好くわけがないので、今回はGUI系統の一切入っていないUbuntuとして、UbuntuServerをインストールして、好き勝手にアプリケーションを入れていってしまおうという魂胆である。
+# UbuntuServerのインストール
+とりあえずインストールする。
+UbuntuServerのサイトからisoをダウンロードしてきて、rufusで焼いて、インストール。
+GUIでとっても簡単。wifiの設定すらできてしまう。
+Gentooから来た人からすると、非常に早くて快適。中で何をやっているのか見ることができないので、ちょっと残念な気もするが。
+# 使うアプリをインストール
+## i3関連
+`xserver-xorg xinit xterm i3`
+ターミナルはxtermじゃなくていいと思うけど、選定がめんどくさかったので、xのデフォルトのxtermを使ってるだけ。
+configファイルは私のgitに保存してるのを持ってきます。
+## Font
+私はプログラマ用のフォントの可視性が非常に好きなので`MoralerspaceNeonNF-Regular`を使用します。
+インストールは.ttfファイルを~/.fontsフォルダーに入れるだけ。
+## IME
+`fcitx-mozc`
+## apt mirror
+`sudo sed -i.bak -r 's@http://(jp\.)?archive\.ubuntu\.com/ubuntu/?@https://ftp.udx.icscoe.jp/Linux/ubuntu/@g' /etc/apt/sources.list.d/ubuntu.sources`
+## Audio
+音声出力に関係した部分を設定する。
+`sudo apt install alsa-base`
+`sudo adduser <username> audio`
+再起動したら、音が出るようになってるはず。
+## themeの設定
+なんか一括で変更できる`system theme`なるものは存在せず、そこから取得してくる系はデフォのlightテーマになりやがるので、edgeとxtermは強制でテーマを変えた。+
\ No newline at end of file
diff --git a/coop.md b/coop.md
@@ -0,0 +1,2 @@
+# Coopとはなにか
+## coopの歴史
diff --git a/gentoo/gentoo.md b/gentoo/gentoo.md
@@ -0,0 +1,199 @@
+# Gentoo OSをインストールしてみた
+## まずはインストーラUSBを作る
+https://www.gentoo.org/downloads/
+から、 Minimal Installation CDのisoをDLする。
+DLしたisoをRufusを使って書き込む。
+## LiveUSBを起動
+私のPCはUEFIの黎明期に作られたもので、特殊仕様な可能性があったので、LegacyBIOSモードに切り替えて、LiveUSBを起動。
+
+## パスワード設定
+sshでシェルに入る前にパスワードを設定する。
+`passwd`
+
+## DNS構成
+`nano /etc/resolv.conf`
+```
+nameserver 1.1.1.1
+nameserver 1.0.0.1
+```
+
+## パーティショニング
+`fdisk /dev/sda`
+説明、いらんよね。
+
+フォーマットしまする。
+SSDなので、/dev/sda3は`mkfs.f2fs /dev/sda3`
+LegacyBIOSでブートするので/dev/sda1は`mkfs.xfs /dev/sda1`
+スワップは`mkswap /dev/sda2`と`swapon /dev/sda2`
+
+んで、マウントする。
+事前に`/mnt/gentoo`は作っておいて
+`mount /dev/sda3 /mnt/gentoo`
+
+## Stageファイル
+
+`wget`でダウンロードして、
+`tar xpvf <stageファイル名> --xattrs-include='*.*' --numeric-owner -C /mnt/gentoo`で展開。
+
+## chroot
+
+chrootの準備。
+DNS情報のコピー`cp --dereference /etc/resolv.conf /mnt/gentoo/etc/`
+ファイルシステムのマウント`mount --types proc /proc /mnt/gentoo/proc && mount --rbind /sys /mnt/gentoo/sys && mount --make-rslave /mnt/gentoo/sys && mount --rbind /dev /mnt/gentoo/dev && mount --make-rslave /mnt/gentoo/dev && mount --bind /run /mnt/gentoo/run && mount --make-slave /mnt/gentoo/run`
+
+んで、chroot
+```
+chroot /mnt/gentoo /bin/bash
+source /etc/profile
+export PS1="(chroot) ${PS1}"
+```
+
+## OSの設定
+/bootをマウント`mount /dev/sda1 /boot`
+
+### portageの設定
+
+#### スナップショットの更新
+`emerge-webrsync`
+#### ミラーサーバの選択
+ツールをインストール`emerge --verbose --oneshot app-portage/mirrorselect`
+実行`mirrorselect -i -o >> /etc/portage/make.conf`
+
+#### バイナリパッケージホストの追加
+ファイル`/etc/portage/binrepos.conf/gentoobinhost.conf`に
+```
+[binhost]
+priority = 9999
+sync-uri = https://distfiles.gentoo.org/releases/<arch>/binpackages/<profile>/x86-64/
+```
+とか書き、
+ファイル`/etc/portage/make.conf`に
+```
+# FEATURES 変数内の値のリストに getbinpkg を追加してください
+FEATURES="${FEATURES} getbinpkg"
+# 署名を要求する
+FEATURES="${FEATURES} binpkg-request-signature"
+```
+と書く
+
+んで、`getuto`でキーリングのセットアップ。
+#### vimのインストール
+私は思想が強いので、nanoなんて嫌です。vimを使います。ということで、インストール。
+`emerge app-editors/vim`
+
+#### CPU_FLAGSの設定
+`emerge --oneshot app-portage/cpuid2cpuflags`でツールを入れて、
+`echo "*/* $(cpuid2cpuflags)" > /etc/portage/package.use/00cpu-flags`で出力をカキコ。
+
+#### VIDEO_CARDの設定
+`/etc/portage/package.use/00video_cards`に
+`*/* VIDEO_CARDS: nvidia intel`って書いとく
+
+#### 古いパッケージの削除(終わった後も使う)
+`emerge --pretend --depclean`
+
+### timezone設定
+`ln -sf ../usr/share/zoneinfo/Japan /etc/localtime`
+localeは設定して、logがバグるとかいう悲惨なことになったので、私は英語で対応します。
+
+### ファームウェアを入れとく
+後でどーせ使うので。
+`sys-kernel/linux-firmware`
+
+### ブートローダー
+私はなんもわからんからGRUB
+`/etc/portage/package.use/installkernel`に`sys-kernel/installkernel grub`って書いて、
+`emerge sys-kernel/installkernel`
+そのほかのukiとか設定しない。セキュアブートなんてしねえよ!
+
+### ディストロカーネルのサイン
+ファイル`/etc/portage/make.conf`に
+```
+USE="modules-sign"
+
+# Optionally, to use custom signing keys.
+MODULES_SIGN_KEY="/kernel_key.pem"
+MODULES_SIGN_CERT="/kernel_key.pem" # Only required if the MODULES_SIGN_KEY does not also contain the certificate.
+MODULES_SIGN_HASH="sha512" # Defaults to sha512.
+```
+しておいて、/フォルダ内で`openssl req -new -noenc -utf8 -sha256 -x509 -outform PEM -out kernel_key.pem -keyout kernel_key.pem`
+`chown root:root kernel_key.pem && chmod 400 kernel_key.pem`する。
+
+## ディストリビューションカーネルのインストール
+
+`emerge sys-kernel/gentoo-kernel-bin`
+`-bin`がついているので、ビルドは実行せず、ビルド済のパッケージを引っ張ってくるので、速度が上がる。
+
+だけれども、logに/etc/portage/make.conf/00video_cardにアップデートが必要って言われました。
+これ、ハンドブックの別のページに書いてあるのですが、数回インストールしてますが、毎回聞かれるので、書いとけよとは思います。
+`dispatch-conf`これだけでいいです。
+これで、無事、インストールが開始します。素晴らしいですね。
+
+## お掃除
+`emerge --depclean`
+`emerge --prune sys-kernel/gentoo-kernel sys-kernel/gentoo-kernel-bin`
+
+## インストールとアップデートをやるやる
+`/etc/portage/make.conf`に`USE="dist-kernel"`を追記
+
+# システムの設定
+## fstabの作成
+`/etc/fstab`に
+```
+# 整形上の差異や、「ディスクの準備」ステップで作成する追加のパーティションについては、適宜修正してください
+/dev/sda1 /boot xfs defaults 0 2
+/dev/sda2 none swap sw 0 0
+/dev/sda3 / xfs defaults,noatime 0 1
+
+/dev/cdrom /mnt/cdrom auto noauto,user 0 0
+```
+
+## ホスト名の設定
+`echo tux > /etc/hostname`
+## パスワードの設定
+`passwd`
+## initとboot設定
+`vi /etc/conf.d/keymaps`
+`/etc/conf.d/hwclock` UTC -> local
+
+## ツール設定
+### システムロガー
+`emerge app-admin/sysklogd && rc-update add sysklogd default`
+### クーロン
+`emerge sys-process/cronie && rc-update add cronie default`
+### ファイルインデックス、SSHD
+`emerge sys-apps/mlocate && rc-update add sshd default`
+### シェル補完、時刻同期
+`emerge app-shells/bash-completion net-misc/chrony && rc-update add net-misc/chrony`
+### DHCP
+`emerge net-misc/dhcpcd`
+# ブートローダの設定
+
+`emerge --verbose sys-boot/grub && grub-install /dev/sda`
+`grub-mkconfig -o /boot/grub/grub.cfg`
+
+# お疲れ様でした。
+chroot環境を出て、全てのパーティションをアンマウント。
+`exit`
+`cd`
+`umount -l /mnt/gentoo/dev{/shm,/pts,}`
+`umount -R /mnt/gentoo`
+USBメモリを抜く準備をしておいて
+`reboot`
+画面が消えた瞬間に抜く!
+
+# 仕上げに
+私は権限周りにsudoを使いたいので、
+`emerge app-admin/sudo`
+visudoを使うためにnanoが必要とかいう屈辱なのだが、しょうがないので`emerge app-editors/nano`
+
+んでsshするようなアカウントを作成する。
+`useradd -m -G users,wheel,audio -s /bin/bash tetsu`
+パスワードを設定して
+`passwd tetsu`
+
+# fluxboxを入れる
+## Xorgの設定
+ここで、X-base/xtermだったかが入らない問題が発生。ログを読んだ感じ、そのアプリのebuildが壊れてて、入れられませんって言われた。
+つまりxを使う夢は完全に削がれました。waylandを使おうとも思ったけれど、waylandがいいならubuntuで良くねって思ったので、ubuntu環境に戻ります。さようなら。
+`emerge x11-wm/fluxbox`+
\ No newline at end of file
diff --git a/i3config b/i3config
@@ -0,0 +1,218 @@
+# This file has been auto-generated by i3-config-wizard(1).
+# It will not be overwritten, so edit it as you like.
+#
+# Should you change your keyboard layout some time, delete
+# this file and re-run i3-config-wizard(1).
+#
+
+# i3 config file (v4)
+#
+# Please see https://i3wm.org/docs/userguide.html for a complete reference!
+
+set $mod Mod1
+set $win Mod4
+# Font for window titles. Will also be used by the bar unless a different font
+# is used in the bar {} block below.
+font pango: MoralerspaceNeonNF-Regular
+
+# This font is widely installed, provides lots of unicode glyphs, right-to-left
+# text rendering and scalability on retina/hidpi displays (thanks to pango).
+#font pango:DejaVu Sans Mono 8
+
+# Start XDG autostart .desktop files using dex. See also
+# https://wiki.archlinux.org/index.php/XDG_Autostart
+exec --no-startup-id dex --autostart --environment i3
+
+# The combination of xss-lock, nm-applet and pactl is a popular choice, so
+# they are included here as an example. Modify as you see fit.
+
+# xss-lock grabs a logind suspend inhibit lock and will use i3lock to lock the
+# screen before suspend. Use loginctl lock-session to lock your screen.
+exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork
+
+# NetworkManager is the most popular way to manage wireless networks on Linux,
+# and nm-applet is a desktop environment-independent system tray GUI for it.
+exec --no-startup-id nm-applet
+
+# Use pactl to adjust volume in PulseAudio.
+set $refresh_i3status killall -SIGUSR1 i3status
+bindsym XF86AudioRaiseVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ +10% && $refresh_i3status
+bindsym XF86AudioLowerVolume exec --no-startup-id pactl set-sink-volume @DEFAULT_SINK@ -10% && $refresh_i3status
+bindsym XF86AudioMute exec --no-startup-id pactl set-sink-mute @DEFAULT_SINK@ toggle && $refresh_i3status
+bindsym XF86AudioMicMute exec --no-startup-id pactl set-source-mute @DEFAULT_SOURCE@ toggle && $refresh_i3status
+
+# Use Mouse+$mod to drag floating windows to their wanted position
+floating_modifier $mod
+
+# move tiling windows via drag & drop by left-clicking into the title bar,
+# or left-clicking anywhere into the window while holding the floating modifier.
+tiling_drag modifier titlebar
+
+# start a terminal
+bindsym $mod+Return exec i3-sensible-terminal
+
+# kill focused window
+bindsym $mod+F4 kill
+
+# start dmenu (a program launcher)
+bindsym $win+r exec --no-startup-id dmenu_run
+bindsym $mod+d exec --no-startup-id dmenu_run
+# A more modern dmenu replacement is rofi:
+# bindcode $mod+40 exec "rofi -modi drun,run -show drun"
+# There also is i3-dmenu-desktop which only displays applications shipping a
+# .desktop file. It is a wrapper around dmenu, so you need that installed.
+# bindcode $mod+40 exec --no-startup-id i3-dmenu-desktop
+
+# change focus
+bindsym $mod+j focus left
+bindsym $mod+k focus down
+bindsym $mod+l focus up
+bindsym $mod+semicolon focus right
+
+# alternatively, you can use the cursor keys:
+bindsym $mod+Left focus left
+bindsym $mod+Down focus down
+bindsym $mod+Up focus up
+bindsym $mod+Right focus right
+
+# move focused window
+bindsym $mod+Shift+j move left
+bindsym $mod+Shift+k move down
+bindsym $mod+Shift+l move up
+bindsym $mod+Shift+semicolon move right
+
+# alternatively, you can use the cursor keys:
+bindsym $mod+Shift+Left move left
+bindsym $mod+Shift+Down move down
+bindsym $mod+Shift+Up move up
+bindsym $mod+Shift+Right move right
+
+# split in horizontal orientation
+bindsym $mod+h split h
+
+# split in vertical orientation
+bindsym $mod+v split v
+
+# enter fullscreen mode for the focused container
+bindsym $mod+f fullscreen toggle
+
+# change container layout (stacked, tabbed, toggle split)
+bindsym $mod+s layout stacking
+bindsym $mod+w layout tabbed
+bindsym $mod+e layout toggle split
+
+# toggle tiling / floating
+bindsym $mod+Shift+space floating toggle
+
+# change focus between tiling / floating windows
+bindsym $mod+space focus mode_toggle
+
+# focus the parent container
+bindsym $mod+a focus parent
+
+# focus the child container
+#bindsym $mod+d focus child
+
+# Define names for default workspaces for which we configure key bindings later on.
+# We use variables to avoid repeating the names in multiple places.
+set $ws1 "1"
+set $ws2 "2"
+set $ws3 "3"
+set $ws4 "4"
+set $ws5 "5"
+set $ws6 "6"
+set $ws7 "7"
+set $ws8 "8"
+set $ws9 "9"
+set $ws10 "10"
+
+# switch to workspace
+bindsym $win+1 workspace number $ws1
+bindsym $win+2 workspace number $ws2
+bindsym $win+3 workspace number $ws3
+bindsym $win+4 workspace number $ws4
+bindsym $win+5 workspace number $ws5
+bindsym $win+6 workspace number $ws6
+bindsym $win+7 workspace number $ws7
+bindsym $win+8 workspace number $ws8
+bindsym $win+9 workspace number $ws9
+bindsym $win+0 workspace number $ws10
+
+# move focused container to workspace
+bindsym $win+Shift+1 move container to workspace number $ws1
+bindsym $win+Shift+2 move container to workspace number $ws2
+bindsym $win+Shift+3 move container to workspace number $ws3
+bindsym $win+Shift+4 move container to workspace number $ws4
+bindsym $win+Shift+5 move container to workspace number $ws5
+bindsym $win+Shift+6 move container to workspace number $ws6
+bindsym $win+Shift+7 move container to workspace number $ws7
+bindsym $win+Shift+8 move container to workspace number $ws8
+bindsym $win+Shift+9 move container to workspace number $ws9
+bindsym $win+Shift+0 move container to workspace number $ws10
+
+# reload the configuration file
+bindsym $mod+Shift+c reload
+# restart i3 inplace (preserves your layout/session, can be used to upgrade i3)
+bindsym $mod+Shift+r restart
+# exit i3 (logs you out of your X session)
+bindsym $mod+Shift+F4 exec "i3-nagbar -t warning -m 'You pressed the exit shortcut. Do you really want to exit i3? This will end your X session.' -B 'Yes, exit i3' 'i3-msg exit'"
+
+# resize window (you can also use the mouse for that)
+mode "resize" {
+ # These bindings trigger as soon as you enter the resize mode
+
+ # Pressing left will shrink the window’s width.
+ # Pressing right will grow the window’s width.
+ # Pressing up will shrink the window’s height.
+ # Pressing down will grow the window’s height.
+ bindsym j resize shrink width 10 px or 10 ppt
+ bindsym k resize grow height 10 px or 10 ppt
+ bindsym l resize shrink height 10 px or 10 ppt
+ bindsym semicolon resize grow width 10 px or 10 ppt
+
+ # same bindings, but for the arrow keys
+ bindsym Left resize shrink width 10 px or 10 ppt
+ bindsym Down resize grow height 10 px or 10 ppt
+ bindsym Up resize shrink height 10 px or 10 ppt
+ bindsym Right resize grow width 10 px or 10 ppt
+
+ # back to normal: Enter or Escape or $mod+r
+ bindsym Return mode "default"
+ bindsym Escape mode "default"
+ bindsym $mod+r mode "default"
+}
+
+bindsym $mod+r mode "resize"
+
+# Start i3bar to display a workspace bar (plus the system information i3status
+# finds out, if available)
+# theme color import from https://github.com/dracula/i3/blob/master/.config/i3/config
+# class border bground text indicator child_border
+client.focused #6272A4 #6272A4 #F8F8F2 #6272A4 #6272A4
+client.focused_inactive #44475A #44475A #F8F8F2 #44475A #44475A
+client.unfocused #282A36 #282A36 #BFBFBF #282A36 #282A36
+client.urgent #44475A #FF5555 #F8F8F2 #FF5555 #FF5555
+client.placeholder #282A36 #282A36 #F8F8F2 #282A36 #282A36
+
+client.background #F8F8F2
+
+
+bar {
+ status_command i3status
+ colors {
+ background #282A36
+ statusline #F8F8F2
+ separator #44475A
+
+ focused_workspace #44475A #44475A #F8F8F2
+ active_workspace #282A36 #44475A #F8F8F2
+ inactive_workspace #282A36 #282A36 #BFBFBF
+ urgent_workspace #FF5555 #FF5555 #F8F8F2
+ binding_mode #FF5555 #FF5555 #F8F8F2
+ }
+}
+exec --no-startup-id feh --bg-fill ~/Pictures/Wallpapers/
+exec --no-startup-id /usr/libexec/gsd-xsettings
+exec --no-startup-id fcitx
+bindsym XF86MonBrightnessUp exec --no-startup-id brightnessctl set +5%
+bindsym XF86MonBrightnessDown exec --no-startup-id brightnessctl set 5%-
diff --git a/olddocuments b/olddocuments
@@ -1 +0,0 @@
-Subproject commit a5174b26fc448d748862bef6e6f4b40a7ae95fae
diff --git a/wpa_supplicant-wlp2s0.conf b/wpa_supplicant-wlp2s0.conf
@@ -0,0 +1,28 @@
+network={
+ ssid="Minerva_Juppiter"
+ psk="kikUUiki2012"
+}
+
+
+
+network={
+ ssid="shimane-u-wl"
+ key_mgmt=WPA-EAP
+ eap=PEAP
+ phase1="peaplabel=0"
+ phase2="auth=MSCHAPV2"
+ identity="s241033"
+ password="P@85FyZ@tZ"
+ priority=10
+}
+network={
+ ssid="shimane-u-matsue"
+ key_mgmt=WPA-EAP
+ eap=PEAP
+ phase1="peaplabel=0"
+ phase2="auth=MSCHAPV2"
+ identity="s241033"
+ password="P@85FyZ@tZ"
+ priority=10
+}
+