てきとうにだらだら書いていくと思う
[PR]上記の広告は3ヶ月以上新規記事投稿のないブログに表示されています。新しい記事を書く事で広告が消えます。
$ sudo yum install docker
$ sudo docker pull arm64v8/alpine
$ sudo docker run -i -t --privileged --name dind -d arm64v8/alpine
$ sudo docker exec -it dind /bin/sh※普通はDockerfile使うんだろうけどとりあえずこれで
# apk add --no-cache openrc# apk add docker
# rc-service docker start+ rc-service docker start* Caching service dependencies ...Service `hwdrivers' needs non existent service `dev'Service `machine-id' needs non existent service `dev' [ ok ]* /var/log/docker.log: creating file* /var/log/docker.log: correcting owner* Starting Docker Daemon ... [ ok ]
# rc-update add docker+ rc-update add docker* service docker added to runlevel sysinit# service docker start+ service docker start
* WARNING: docker has already been started
# service docker status
+ service docker status
* status: started
# docker pull arm64v8/alpine+ docker pull arm64v8/alpineUsing default tag: latestlatest: Pulling from arm64v8/alpine58ab47519297: Pull completeDigest: sha256:53b74ddfc6225e3c8cc84d7985d0f34666e4e8b0b6892a9b2ad1f7516bc21b54Status: Downloaded newer image for arm64v8/alpine:latest
docker.io/arm64v8/alpine:latest
# docker run -i -t --name hoge_server -d arm64v8/alpine+ docker run -i -t --name hoge_server -d arm64v8/alpine9664756e333e1eae40ebbacddf2a48437fe23913eb704c6a2ca1f2c09ef8843a
sudo apt-get updateこれでjfbtermと入力することで日本語の表示が可能になる
sudo apt-get install jfbterm
sudo apt-get install uim-anthyのあと
sudo nano /user/share/uim/generic-key-custom.scmで設定ファイルを編集
(define-custom 'generic-on-key '("zenkaku-hankaku" "のShiftをControlに変更")
(define-custom 'generic-off-key '("zenkaku-hankaku" "")
(define-custom 'generic-on-key '("zenkaku-hankaku" "あとは")
(define-custom 'generic-off-key '("zenkaku-hankaku" "")
sudo apt-get install lynx起動は普通に
lynxで可能
tar xvf LCD-show-YYMMDD.tar.gzLCD-showフォルダができるので移動
cd LCD-show/LCD-hdmiを実行
./LCD-hdmi・・・ん
./LCD32-showそして再び再起動を挟む
./LCD32-show 180じゃああとはGUI気になってるから
sudo apt-get install lightdmとかしてたら動いた
sudo chmod -R 755 /media/mount次に
sudo chown -R www-data:www-data /media/mount/
cd /etc/apache2(・∀・)?
sudo apt-get updateとりあえずWevDavモジュールの起動とか
sudo apt-get install apache2
sudo a2enmod davもしraspbianで上のコマンドが使えない場合はapache2をインストールしたらモジュールも入る
sudo a2enmod dav_fs
sudo nano /etc/ssl/openssl.cnf次は証明書保存する場所を作る&移動する
# This is OK for an SSL server.
# nsCertType = server
↓
# This is OK for an SSL server.
nsCertType = server# Some might want this also# nsCertType = sslCA, emailCA↓# Some might want this alsonsCertType = sslCA, emailCA
sudo mkdir /usr/local/certs認証局の生成
cd /usr/local/certs
sudo /usr/lib/ssl/misc/CA.pl -newca
※:のあと何も書いてないのは何も入力せずEnterCA certificate filename (or enter to create)Making CA certificate ...Generating a 2048 bit RSA private key..............................................................................................................+++......................................................+++writing new private key to './demoCA/private/cakey.pem'Enter PEM pass phrase:Verifying - Enter PEM pass phrase:-----You are about to be asked to enter information that will be incorporatedinto your certificate request.What you are about to enter is what is called a Distinguished Name or a DN.There are quite a few fields but you can leave some blankFor some fields there will be a default value,If you enter '.', the field will be left blank.-----Country Name (2 letter code) [AU]:JPState or Province Name (full name) [Some-State]:TottoriLocality Name (eg, city) []:TottoriOrganization Name (eg, company) [Internet Widgits Pty Ltd]:Private_CAOrganizational Unit Name (eg, section) []:Common Name (e.g. server FQDN or YOUR name) []:satsuki.blog-sim.comEmail Address []:Please enter the following 'extra' attributesto be sent with your certificate requestA challenge password []:An optional company name []:Using configuration from /usr/lib/ssl/openssl.cnfEnter pass phrase for ./demoCA/private/cakey.pem:Check that the request matches the signatureSignature ok中略Write out database with 1 new entriesData Base Updated
sudo nano demoCA/ca-cert.srl証明書を生成する
sudo openssl x509 -CA ./demoCA/cacert.pem -CAkey ./demoCA/private/cakey.pem -CAserial ./demoCA/ca-cert.srl -req -days 3650 -in server.csr -out server.crtとりあえずこれで証明書などは完了
cd /etc/apache2/設定ファイルをいじる
sudo a2ensite default-ssl
sudo a2enmod ssl
sudo nano /etc/apache2/sites-enabled/default-ssl.confSSLCertificateFile
はじめAllow from allと書いていたのだがブラウザで権限がない的なエラーが出てしまったAlias /dav "/media/mount"<IfModule mod_dav.c>DAVMinTimeout 600<Location /dav>DAV OnOptions None Indexes#Allow from allRequire all granted</Location></IfModule>
sudo service apache2 restartにてapache2を再起動して完了
lsusbする(USBに刺さっているのも一覧の表示)
PNY FD Deviceが今回のUSBメモリBus 001 Device 007: ID 154b:6545 PNY FD DeviceBus 001 Device 006: ID 0789:0164 Logitec Corp. LAN-W150/U2M Wireless LAN AdapterBus 001 Device 005: ID 03eb:3301 Atmel Corp. at43301 4-Port HubBus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
sudo fdisk -l平たく言うとディスク一覧
sda1ねおkDevice Boot Start End Sectors Size Id Type/dev/sda1 44 15679439 15679396 7.5G 7 HPFS/NTFS/exFAT
sudo blkid /dev/sda1で
/dev/sda1: UUID="42F4E534F4E52ABD" TYPE="ntfs"このUUIDをメモ
sudo mkdir /media/mount
sudo nano /etc/fstabで開いて
こんな感じに書き込みproc /proc proc defaults 0 0/dev/mmcblk0p1 /boot vfat defaults 0 2/dev/mmcblk0p2 / ext4 defaults,noatime 0 1UUID="42F4E534F4E52ABD" /media/mount ntfs-3g 0 2# a swapfile is not a swap partition, no line here# use dphys-swapfile swap[on|off] for thattmpfs /tmp tmpfs defaults,size=32m,noatime,mode=1777 0 0tmpfs /var/tmp tmpfs defaults,size=16m,noatime,mode=1777 0 0
sudo reboot完了
03 | 2025/04 | 05 |
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |