Moved Content
This commit is contained in:
67
Apps/AMP/Commands.md
Normal file
67
Apps/AMP/Commands.md
Normal file
@@ -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
|
||||
```
|
||||
|
||||
---
|
||||
0
Apps/AMP/Setup.md
Normal file
0
Apps/AMP/Setup.md
Normal file
12
Apps/Ansible.md
Normal file
12
Apps/Ansible.md
Normal file
@@ -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`
|
||||
|
||||
|
||||
|
||||
|
||||
8
Apps/Git.md
Normal file
8
Apps/Git.md
Normal file
@@ -0,0 +1,8 @@
|
||||
# Git
|
||||
Git cheatsheet for command line
|
||||
|
||||
`git init`
|
||||
|
||||
`git pull`
|
||||
|
||||
`git push`
|
||||
68
Apps/Node exporter.md
Normal file
68
Apps/Node exporter.md
Normal file
@@ -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
|
||||
```
|
||||
1
Apps/readme.md
Normal file
1
Apps/readme.md
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
BIN
Attachments/bt-icon-logo.png
Normal file
BIN
Attachments/bt-icon-logo.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 14 KiB |
1
Attachments/readme.md
Normal file
1
Attachments/readme.md
Normal file
@@ -0,0 +1 @@
|
||||
[bobbantech-logo](/bt-icon-logo.png)
|
||||
0
Cloud/Azure/Azure AD/Conditional access.md
Normal file
0
Cloud/Azure/Azure AD/Conditional access.md
Normal file
0
Cloud/Azure/Storage accounts/Block public access.md
Normal file
0
Cloud/Azure/Storage accounts/Block public access.md
Normal file
51
Cloud/Microsoft 365/Endpoint/Windows device registration.md
Normal file
51
Cloud/Microsoft 365/Endpoint/Windows device registration.md
Normal file
@@ -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
|
||||
0
Cloud/Microsoft 365/Exchange/mailbox permissions.md
Normal file
0
Cloud/Microsoft 365/Exchange/mailbox permissions.md
Normal file
1
Cloud/Microsoft 365/Licensing.md
Normal file
1
Cloud/Microsoft 365/Licensing.md
Normal file
@@ -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.
|
||||
100
Linux/Commands.md
Normal file
100
Linux/Commands.md
Normal file
@@ -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
|
||||
```
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
3
Linux/Nano shortcuts.md
Normal file
3
Linux/Nano shortcuts.md
Normal file
@@ -0,0 +1,3 @@
|
||||
|
||||
ctrl + O = Save document
|
||||
ctrl + X = Save and exit the document
|
||||
20
Linux/User Management.md
Normal file
20
Linux/User Management.md
Normal file
@@ -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]
|
||||
```
|
||||
2
Network/PI-Hole/Commands.md
Normal file
2
Network/PI-Hole/Commands.md
Normal file
@@ -0,0 +1,2 @@
|
||||
# PI-Hole common commands
|
||||
|
||||
0
Network/Pfsense/Create a new VLAN.md
Normal file
0
Network/Pfsense/Create a new VLAN.md
Normal file
0
Network/Pfsense/Setup OpenVPN server.md
Normal file
0
Network/Pfsense/Setup OpenVPN server.md
Normal file
0
Network/Unifi/Add network for VLAN.md
Normal file
0
Network/Unifi/Add network for VLAN.md
Normal file
0
Virtualization/Hyper V/Change locations.md
Normal file
0
Virtualization/Hyper V/Change locations.md
Normal file
10
Virtualization/Proxmox/Install discord darkmode theme.md
Normal file
10
Virtualization/Proxmox/Install discord darkmode theme.md
Normal file
@@ -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.
|
||||
0
Windows/Powershell.md
Normal file
0
Windows/Powershell.md
Normal file
22
readme.md
Normal file
22
readme.md
Normal file
@@ -0,0 +1,22 @@
|
||||
# Welcome to Bobbantech Cheat Sheet
|
||||

|
||||
|
||||
|
||||
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)
|
||||
Reference in New Issue
Block a user