全文検索:
- 06 WireGuard @01_linux:10_network
- === 環境 === Ubuntu 22.04 ===== 1.インストール ===== <code> # apt install wireguard </code> ===== 2.鍵作成 ===== ==== サーバ用 ==== 秘密鍵:privkey 公開鍵:pubkey <code> # mkdir -p ~/server && cd ~/server # wg genkey >... YYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYSUQ= </code> ==== クライアント用 ==== 秘密鍵:privkey 公開鍵:pubkey 事前共有キ
- 08 Ubuntu Nat iptables直 @01_linux:30_ubuntu
- .ipv4.ip_forward設定までは同じ ===== ufw enable ===== <code> # ufw enable Command may disrupt existing ssh co... irewall is active and enabled on system startup </code> ===== allow ssh ===== 現状の接続が切れるとSSHできなくなるので、すぐにSSHをEnableへ <code> # ufw allow ssh Rule added Rule added (v6) </code> ===== Nat設定 ===== <code> # vi /etc/ufw/before.rul
- 06 Ubuntu Network設定 @01_linux:30_ubuntu
- ntu Network設定 ====== ===== bond + bridge ===== <code> root@dadmhv03:~# cat /etc/netplan/00-installer-c... : interfaces: - bond2 version: 2 </code> ===== ethernetsのみ ===== <code> # cat /etc/netplan/00-installer-config.yaml network: ethernets: ... addresses: - 8.8.8.8 version: 2 </code> ===== bridgeのみ ===== <code> # cat /etc/netplan/
- 17 ffmpeg @01_linux:30_ubuntu
- て、1秒間に60枚(60fps)になる。 180枚の画像があった場合は、6秒の動画作成される。 <code> $ ffmpeg -r 30 -i %05d.jpg -vcodec libx264 -pix_fmt yuv420p -r 60 movie.mp4 </code> 1秒間に1枚(1fps)の画像をそのまま繋げる <code> $ ffmpeg -r 1 -i %05d.jpg -vcodec libx264 -pix_fmt yuv420p -r 1 movie.mp4 </code> ====== 連番にするプログラム ====== <code> #!/bin/bash F
- 23 Apache vhost一覧 @01_linux:02_www
- ====== 23 Apache vhost一覧 ====== <code> # apachectl -S VirtualHost configuration: 127.0.0.1:8443 ... S Define: DUMP_RUN_CFG User: name="daemon" id=1 Group: name="daemon" id=1 </code> {{tag>Apache vhost}}