This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## list all network connections / ip a | |
$ sudo nmcli connection show | |
## Set static network | |
$ sudo nmcli con mod "Network Name" \ | |
ipv4.method manual \ | |
ipv4.addresses 192.168.15.14/24 \ | |
ipv4.gateway 192.168.15.1 \ | |
ipv4.dns 8.8.8.8 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off & setlocal enableextensions | |
title Reset AnyDesk | |
reg query HKEY_USERS\S-1-5-19 >NUL || (echo Please Run as administrator.& pause >NUL&exit) | |
chcp 437 | |
call :stop_any | |
del /f "%ALLUSERSPROFILE%\AnyDesk\service.conf" | |
del /f "%APPDATA%\AnyDesk\service.conf" | |
copy /y "%APPDATA%\AnyDesk\user.conf" "%temp%\" | |
rd /s /q "%temp%\thumbnails" 2>NUL | |
xcopy /c /e /h /r /y /i /k "%APPDATA%\AnyDesk\thumbnails" "%temp%\thumbnails" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Don't forget to add the SSH key to all remote server | |
### Verify that the naming has already been created at /etc/host. | |
## install Microcloud to all remote server | |
[ridwan@WarMachine]$ | |
for i in {01,02,03}; do ssh-copy-id root@MicroCloud-${i};done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Don't forget to add the SSH key to all remote server | |
### Verify that the naming has already been created at /etc/host. | |
## install Microcloud to all remote server | |
[ridwan@WarMachine]$ | |
for i in {01,02,03}; do ssh root@MicroCloud-${i} "hostname && \ | |
apt update && apt upgrade -y && \ | |
snap install lxd microceph microovn microcloud";done | |
## check installed version |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ridwan@WarMachine]$ | |
for i in {01,02,03}; do ssh root@MicroCloud-${i} "hostname && lsb_release -d && \ | |
cat <<'EOF' | tee /etc/hosts | |
# Server MicroCloud | |
127.0.0.1 localhost | |
192.168.100.101 MicroCloud-01 | |
192.168.100.102 MicroCloud-02 | |
192.168.100.103 MicroCloud-03 | |
EOF";done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
network: | |
version: 2 | |
renderer: networkd | |
ethernets: | |
# Interface untuk Internet (Default Route) | |
internet_if: | |
match: | |
macaddress: # 52:54:00:f3:45:f2# ## Masukan alamat Mac Addr sesuai dengan devices | |
addresses: | |
- # 192.168.124.101/24 # Static IP |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######## | |
# git & install plugins via ssh loop | |
[stack@openstack-director]$ | |
for i in {0,1,2}; do ssh tripleo-admin@controller-${i}.ctlplane "hostname && \ | |
sudo podman exec -it horizon bash -c \"git clone https://github.com/Storware/openstack-horizon-ui-vprotect-extensions && \ | |
cd /openstack-horizon-ui-vprotect-extensions/ && \ | |
python3 install.py https://192.168.1.214:8181/api useradmin ridwan 7.0.0-3\""; done | |
######## |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Local_Ridwan_BaseOS] | |
name=Local_Ridwan_BaseOS | |
metadata_expire=-1 | |
enabled=1 | |
gpgcheck=1 | |
baseurl=http://192.168.124.XXX/rhel8/BaseOS/ | |
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release | |
[Local_Ridwan_AppStream] | |
name=Local_Ridwan_AppStream |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Local_Ridwan_BaseOS] | |
name=Local_Ridwan_BaseOS | |
metadata_expire=-1 | |
enabled=1 | |
gpgcheck=1 | |
baseurl=file:///var/www/html/rhel8/BaseOS/ | |
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release | |
[LocalRepo_AppStream] | |
name=Local_Ridwan_AppStream |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
### Hystax Accura - Clean up resources in the target cloud after a successful migration. | |
### https://support.hystax.com/portal/en/kb/articles/how-to-clean-up-resources-in-the-target-cloud-after-a-successful-migration | |
## Pastikan file "volume_ids.txt" sudah terisi list volume id. | |
VOLUME_FILE="volume_ids.txt" | |
if [[ ! -f "$VOLUME_FILE" ]]; then | |
echo "File $VOLUME_FILE tidak ditemukan!" |
NewerOlder