diff --git a/Apps/AMP/Commands.md b/Apps/AMP/Commands.md new file mode 100644 index 0000000..4b2629e --- /dev/null +++ b/Apps/AMP/Commands.md @@ -0,0 +1,67 @@ +This is a list of commonly used commands used to manage AMP trough the command line. + +```bash +ampinstmgr --help +``` + +--- + +## Power state + +Start a specifik instance + +```bash +ampinstmgr -s InstanceName +``` + +Start all instances + +```bash +ampinstmgr -a +``` + +Restart a specifik instance + +```bash +ampinstmgr -r InstanceName +``` + +Restart all instances + +```bash +ampinstmgr --RestartAllInstances +``` + +Stop a specifik instance + +```bash +ampinstmgr -q InstanceName +``` + +Stop all instances + +```bash +ampinstmgr -o +``` + +--- +## Update + +Update a specifik instance +```bash +ampinstmgr -u InstanceName +``` + +Update all instances + +```bash +ampinstmgr -p +``` + +Show AMP version + +```bash +ampinstmgr --Version +``` + +--- diff --git a/Apps/AMP/Setup.md b/Apps/AMP/Setup.md new file mode 100644 index 0000000..e69de29 diff --git a/Apps/Ansible.md b/Apps/Ansible.md new file mode 100644 index 0000000..555be48 --- /dev/null +++ b/Apps/Ansible.md @@ -0,0 +1,12 @@ +## Installation +`sudo apt update` +`sudo apt install ansible` +`sudo apt install sshpass` + +## Commands +`ansible -i ./inventory/hosts ubuntu -m ping --user someuser --ask-pass` +`ansible-playbook ./playbooks/apt.yml --user someuser --ask-pass --ask-become-pass -i ./inventory/hosts` + + + + diff --git a/Apps/Git.md b/Apps/Git.md new file mode 100644 index 0000000..940bf2f --- /dev/null +++ b/Apps/Git.md @@ -0,0 +1,8 @@ +# Git +Git cheatsheet for command line + +`git init` + +`git pull` + +`git push` \ No newline at end of file diff --git a/Apps/Node exporter.md b/Apps/Node exporter.md new file mode 100644 index 0000000..8cacda6 --- /dev/null +++ b/Apps/Node exporter.md @@ -0,0 +1,68 @@ +# Node exporter +Node exporter is a compnantent used by prometheus to get server matrics. + +## Local installation + +**Download the script from github:** +`wget https://github.com/prometheus/node_exporter/releases/download/v1.3.1/node_exporter-1.3.1.linux-amd64.tar.gz` + +**Extract the tar file:** +`tar xzf node_exporter-1.3.1.linux-amd64.tar.gz` + +**Move file to command folder:** +`sudo mv -v node_exporter-1.1.2.linux-amd64/node_exporter /usr/local/bin/` + +**Set correct persmission in command file:** +`sudo chown root:root /usr/local/bin/node_exporter` + +**Test the command:** +`node_exporter --version` + +**Create a systemd service:** +`sudo nano /etc/systemd/system/node-exporter.service` + +**File shall containe this information:** +``` +[Unit] +Description=Prometheus exporter for machine metrics + +[Service] +Restart=always +User=root +ExecStart=/usr/local/bin/node_exporter +ExecReload=/bin/kill -HUP $MAINPID +TimeoutStopSec=20s +SendSIGKILL=no + +[Install] +WantedBy=multi-user.target` +``` +**Reload the services:** +`sudo systemctl daemon-reload` + +**Start and active the service:** +*Start:* `sudo systemctl start node-exporter.service` +*Activate:* `sudo systemctl enable node-exporter.service` + + + +## Docker installation + +``` +version: '3.3' +services: + node-exporter: + network_mode: host + pid: host + volumes: + - '/:/host:ro,rslave' + image: 'quay.io/prometheus/node-exporter:latest' + + prometheus: + container_name: prometheus + ports: + - '9090:9090' + volumes: + - '/srv/dev-disk-by-uuid-82a4b0b6-2dc5-47df-b93f-d8e213f2f641/config/prometheus/prometheus.yml:/etc/prometheus/prometheus.yml' + image: prom/prometheus:latest +``` \ No newline at end of file diff --git a/Apps/readme.md b/Apps/readme.md new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/Apps/readme.md @@ -0,0 +1 @@ + diff --git a/Attachments/bt-icon-logo.png b/Attachments/bt-icon-logo.png new file mode 100644 index 0000000..3ffab62 Binary files /dev/null and b/Attachments/bt-icon-logo.png differ diff --git a/Attachments/readme.md b/Attachments/readme.md new file mode 100644 index 0000000..5c6352d --- /dev/null +++ b/Attachments/readme.md @@ -0,0 +1 @@ +[bobbantech-logo](/bt-icon-logo.png) \ No newline at end of file diff --git a/Cloud/Azure/Azure AD/Conditional access.md b/Cloud/Azure/Azure AD/Conditional access.md new file mode 100644 index 0000000..e69de29 diff --git a/Cloud/Azure/Storage accounts/Block public access.md b/Cloud/Azure/Storage accounts/Block public access.md new file mode 100644 index 0000000..e69de29 diff --git a/Cloud/Microsoft 365/Endpoint/Windows device registration.md b/Cloud/Microsoft 365/Endpoint/Windows device registration.md new file mode 100644 index 0000000..a2424e0 --- /dev/null +++ b/Cloud/Microsoft 365/Endpoint/Windows device registration.md @@ -0,0 +1,51 @@ + + + +## Test deployment + +Manuelly register computer for Auto pilot + + + +On the langueage slection screen, press Shift + F10 to open cmd + + + +``` cmd + +Powershell + +``` + + + +``` cmd + +Powershell + +``` + + + +``` Powershell + +Install-Script -Name Get-WindowsAutopilotInfo + +``` + + + +``` Powershell + +Powershell.exe -ExecutionPolicy RemoteSigned Get-WindowsAutopilotInfo.ps1 -Online -Assign + +``` + + + + +Sign in with Global admin or Intune Admin + + + +When the registration is done, restart the computer \ No newline at end of file diff --git a/Cloud/Microsoft 365/Exchange/mailbox permissions.md b/Cloud/Microsoft 365/Exchange/mailbox permissions.md new file mode 100644 index 0000000..e69de29 diff --git a/Cloud/Microsoft 365/Licensing.md b/Cloud/Microsoft 365/Licensing.md new file mode 100644 index 0000000..d3deb9f --- /dev/null +++ b/Cloud/Microsoft 365/Licensing.md @@ -0,0 +1 @@ +If a e-mail account don't have the Office Applikations included in thier license you can addit as a shared mailbox to another account. \ No newline at end of file diff --git a/Linux/Commands.md b/Linux/Commands.md new file mode 100644 index 0000000..a6b8cce --- /dev/null +++ b/Linux/Commands.md @@ -0,0 +1,100 @@ +A list of good to know commands in debian terminal + + +--- +## File managment + +Print content to the terminal from a file +``` Bash +cat "file" +``` + +Edit a file in the terminal +``` Bash +Nano "file" +``` + +Copy folder/file +``` Bash +cp "source" "destionation" +``` + +Move folder/file +``` Bash +mv "source" "destionation" +``` + +--- + +## Navigation + +Navigiate into a subfolder +``` Bash +cd folder +``` + +Navigate to the previoes folder +``` Bash +cd .. +``` + +Navigate to the root folder of the system +``` Bash +cd / +``` + +Shows the current filepath you are in +``` Bash +pwd +``` + +--- +## Networking + +``` Bash +ipconfig +``` + +``` Bash +ip addr shpw +``` + +``` Bash +Ping "domain" +``` + +``` Bash +Hostname +``` + + + +--- +## Package managment + +``` Bash +sudo apt autoremove +``` + +``` Bash +sudo apt install "Package" +``` + +``` Bash +sudo apt remove "Package" +``` + +``` Bash +sudo apt update +``` + +``` Bash +sudo apt upgrade +``` + + + + + + + diff --git a/Linux/Nano shortcuts.md b/Linux/Nano shortcuts.md new file mode 100644 index 0000000..6e99afe --- /dev/null +++ b/Linux/Nano shortcuts.md @@ -0,0 +1,3 @@ + +ctrl + O = Save document +ctrl + X = Save and exit the document \ No newline at end of file diff --git a/Linux/User Management.md b/Linux/User Management.md new file mode 100644 index 0000000..06f0cd5 --- /dev/null +++ b/Linux/User Management.md @@ -0,0 +1,20 @@ +# User Managment +To create, modify and delete user accounts require sudo privilages. + +## Create users +``` Bash +Sudo adduser [username] +``` + +## Change password + +``` bash +Sudo passwd [username] +``` + + +## Add user to group + +``` Bash +sudo usermod -aG [group] [username] +``` diff --git a/Network/PI-Hole/Commands.md b/Network/PI-Hole/Commands.md new file mode 100644 index 0000000..114a322 --- /dev/null +++ b/Network/PI-Hole/Commands.md @@ -0,0 +1,2 @@ +# PI-Hole common commands + diff --git a/Network/Pfsense/Create a new VLAN.md b/Network/Pfsense/Create a new VLAN.md new file mode 100644 index 0000000..e69de29 diff --git a/Network/Pfsense/Setup OpenVPN server.md b/Network/Pfsense/Setup OpenVPN server.md new file mode 100644 index 0000000..e69de29 diff --git a/Network/Unifi/Add network for VLAN.md b/Network/Unifi/Add network for VLAN.md new file mode 100644 index 0000000..e69de29 diff --git a/Virtualization/Hyper V/Change locations.md b/Virtualization/Hyper V/Change locations.md new file mode 100644 index 0000000..e69de29 diff --git a/Virtualization/Proxmox/Install discord darkmode theme.md b/Virtualization/Proxmox/Install discord darkmode theme.md new file mode 100644 index 0000000..b861094 --- /dev/null +++ b/Virtualization/Proxmox/Install discord darkmode theme.md @@ -0,0 +1,10 @@ +# Install discord darkmode theme + + +1. Open a terminal for the Proxmox host and enter the following command. + +``` +bash <(curl -s https://raw.githubusercontent.com/Weilbyte/PVEDiscordDark/master/PVEDiscordDark.sh ) install +``` + +2. Reload the page with ctrl + F5. \ No newline at end of file diff --git a/Windows/Powershell.md b/Windows/Powershell.md new file mode 100644 index 0000000..e69de29 diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..8523bc2 --- /dev/null +++ b/readme.md @@ -0,0 +1,22 @@ +# Welcome to Bobbantech Cheat Sheet +![Image](Attachments/bt-icon-logo.png) + + +Here will i save code-snippets, technical documentation, and command reference for various tools, and technologies. + + + +--- + +[Apps](/Apps/AMP/Commands) + [Cloud](/Cloud/) + [Linux](/Linux) + + +--- + + +[Instagram] (https://instagram.com/bobbantech) +[Littlelinks] (https://links.bobbantech.com) +[Twitter] (https://twitter.com/bobbantech) +[Website] (https://bobbantech.com)