added .gitignore
This commit is contained in:
		
							parent
							
								
									1b1cd2e064
								
							
						
					
					
						commit
						05745ecde6
					
				
					 7 changed files with 139 additions and 25 deletions
				
			
		
							
								
								
									
										114
									
								
								extra/lxc.txt
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										114
									
								
								extra/lxc.txt
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,114 @@ | |||
| multipass launch --name ubuntuvm --memory 8G --disk 100G 23.04 | ||||
| multipass launch -c 2 -m 4g -d 50g -n lxc | ||||
| lxc launch ubuntu-minimal:23.04 c1 | ||||
| 
 | ||||
| multipass exec ubuntuvm -- sudo ufw allow in on ens3 | ||||
| multipass exec ubuntuvm -- sudo ufw allow in on lxdbr0 | ||||
| multipass exec ubuntuvm -- sudo ufw enable | ||||
| 
 | ||||
| multipass transfer -r primary:/home/ubuntu/images /Users/aok/images | ||||
| multipass transfer -r /Users/aok/images/images ubuntuvm:/home/ubuntu | ||||
| 
 | ||||
| multipass info ubuntuvm | ||||
| ping 192.168.64.10 | ||||
| lxc remote switch primary | ||||
| lxc remote remove ubuntuvm | ||||
| multipass shell ubuntuvm | ||||
| sudo passwd ubuntu | ||||
| lxd init | ||||
| lxc config set core.trust_password | ||||
| lxc remote add ubuntuvm 192.168.64.10 | ||||
| lxc remote switch ubuntuvm | ||||
| lxc config trust add ubuntuvm | ||||
| multipass transfer -r primary:/home/ubuntu/images /Users/aok/images | ||||
| multipass transfer -r /Users/aok/images/images ubuntuvm:/home/ubuntu | ||||
| lxc image import meta-fe114071f31682de89c3a5d7573f50c4c3470ea76dead55ff8e507301a80503e.tar.xz fe114071f31682de89c3a5d7573f50c4c3470ea76dead55ff8e507301a80503e.squashfs --alias ubuntu23.04 | ||||
| lxc image ls | ||||
| lxc launch ubuntu23.04 dev | ||||
| curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh | ||||
| 
 | ||||
| cargo install --git https://github.com/bytebeamio/rumqtt rumqttd | ||||
| or | ||||
| wget https://github.com/bytebeamio/rumqtt/releases/download/rumqttd-0.18.0/rumqttd-0.18.0-linux-gnu | ||||
| chmod +x rumqttd-0.18.0-linux-gnu | ||||
| /rumqttd-0.18.0-linux-gnu --help | ||||
| mv rumqttd-0.18.0-linux-gnu rumqttd | ||||
| curl --proto '=https' --tlsv1.2 -sSf https://raw.githubusercontent.com/bytebeamio/rumqtt/main/rumqttd/rumqttd.toml > rumqttd.toml | ||||
| rumqttd --config rumqttd.toml | ||||
| 
 | ||||
| 
 | ||||
| curl -sSf https://install.surrealdb.com | sh | ||||
| 
 | ||||
| sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https | ||||
| curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg | ||||
| curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.list | ||||
| sudo apt update | ||||
| sudo apt install caddy | ||||
| 
 | ||||
| multipass exec ubuntuvm -- lxc list | ||||
| curl http://CONTAINER_IP_ADDRESS | ||||
| 
 | ||||
| 
 | ||||
| cargo tauri android init  | ||||
| caro tauri build | ||||
| caro tauri dev | ||||
| cargo tauri android dev | ||||
| 
 | ||||
| cargo watch -x run  | ||||
| cargo watch -x "build --all"  | ||||
| cargo watch -x "run -p nigig"  | ||||
| cargo watch -x "r --no-default-features --bin nigig"  | ||||
| cargo r --no-default-features --bin nigig | ||||
| 
 | ||||
| cargo tauri android build --split-per-abi --target aarch64 | ||||
| cargo tauri android init | ||||
| adb install /home/ubuntu/Projects/rustdev/testalpha/src-tauri/gen/android/app/build/outputs | ||||
| /apk/arm64/release/app-arm64-release.apk | ||||
| 
 | ||||
| # Host Commands | ||||
| sudo lxc query /1.0/metrics | ||||
| 1. sudo lxc launch ubuntu:23.04 metrics | ||||
| 2. sudo lxc exec metrics -- sudo --login --user ubuntu | ||||
| 
 | ||||
| #Container Commands | ||||
| 3. sudo snap install prometheus | ||||
| 4. openssl req -x509 -newkey ec -pkeyopt ec_paramgen_curve:secp384r1 -sha384 -keyout metrics.key -nodes -out metrics.crt -days 3650 -subj "/CN=metrics.local" | ||||
| 
 | ||||
| # Host Commands | ||||
| 5. sudo lxc file pull metrics/home/ubuntu/metrics.crt - | sudo lxc config trust add --type metrics --name prometheus - | ||||
|    sudo lxc file pull metrics/var/snap/prometheus/current/tls/metrics.crt - | sudo lxc config trust add --type metrics --name prometheus - | ||||
| 6. sudo lxc config trust list | ||||
| 7. cat /var/snap/lxd/common/lxd/server.crt | ||||
| 8. sudo lxc config set core.metrics_address :8444 | ||||
| sudo lxc config set core.metrics_address ":8444" | ||||
| 
 | ||||
| 9. ip -4 a | ||||
| 
 | ||||
| #Container Commands | ||||
| 10. sudo lxc launch ubuntu:23.04 metrics | ||||
| 11. nc -v 10.32.7.1 8444 | ||||
| 12. vi server.crt # paste host result from #7 | ||||
| 13. ls -lh | ||||
| 14. cd /var/snap/prometheus/current | ||||
| 15. sudo mkdir tls | ||||
| 16. sudo mv /home/ubuntu/metrics.* /home/ubuntu/server.crt tls | ||||
| 17. sudo vi prometheus.yml #paste sample from https://documentation.ubuntu.com/lxd/en/latest/metrics/ | ||||
| 18. hostname && host #results | ||||
| 19. sudo snap restart prometheus | ||||
| 20. ip -4 a #Ip addr | ||||
| 21. 10.32.7.147:9090 | ||||
| #https://grafana.com/grafana/download?pg=get&plcmt=selfmanaged-box1-cta1 | ||||
| 22. sudo apt-get install -y adduser libfontconfig1 | ||||
| wget https://dl.grafana.com/oss/release/grafana_10.0.3_amd64.deb | ||||
| sudo dpkg -i grafana_10.0.3_amd64.deb | ||||
| sudo /bin/systemctl daemon-reload | ||||
| sudo /bin/systemctl enable grafana-server | ||||
| sudo /bin/systemctl start grafana-server | ||||
| 
 | ||||
| https://grafana.com/grafana/dashboards/19131-lxd/ | ||||
| https://grafana.com/grafana/dashboards/6963-lxd-prometheus-container-dashboard/ | ||||
| 
 | ||||
| 
 | ||||
| https://www.scylladb.com/download/?platform=ubuntu-22.04&version=scylla-5.2#open-source | ||||
| 
 | ||||
| SCYLLA_ARGS="--log-to-syslog 1 --log-to-stdout 0 --default-log-level info --network-stack posix" --smp 1 --memory=750M --overprovisioned 1 | ||||
							
								
								
									
										3
									
								
								extra/surreal.txt
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								extra/surreal.txt
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,3 @@ | |||
| surreal version | ||||
| surreal start --strict --log debug memory | ||||
| surreal start --help | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue