This commit is contained in:
2023-07-27 12:37:24 -07:00
parent 0111a25e69
commit 9717fcb3bf
37 changed files with 425 additions and 43 deletions

View File

@ -19,23 +19,24 @@ dateFormat: mm/dd
## In Progress
- [post-only-once](tasks/post-only-once.md)
- [publish](tasks/publish.md)
- [roll-out](tasks/roll-out.md)
- [self-signed-certificate](tasks/self-signed-certificate.md)
- [azure-pipeline](tasks/azure-pipeline.md)
- [update-os](tasks/update-os.md)
- [self-signed-certificate](tasks/self-signed-certificate.md)
- [roll-out](tasks/roll-out.md)
- [publish](tasks/publish.md)
- [post-only-once](tasks/post-only-once.md)
## Done
- [configure-ufw](tasks/configure-ufw.md)
- [create-as-service](tasks/create-as-service.md)
- [install-net-7-0](tasks/install-net-7-0.md)
- [install-ubuntu-frame](tasks/install-ubuntu-frame.md)
- [install-vscode-extensions](tasks/install-vscode-extensions.md)
- [pull-repo](tasks/pull-repo.md)
- [run-secrets-task](tasks/run-secrets-task.md)
- [run-test-ports](tasks/run-test-ports.md)
- [setup-nginx](tasks/setup-nginx.md)
- [run-test-ports](tasks/run-test-ports.md)
- [run-secrets-task](tasks/run-secrets-task.md)
- [pull-repo](tasks/pull-repo.md)
- [install-vscode-extensions](tasks/install-vscode-extensions.md)
- [install-ubuntu-frame](tasks/install-ubuntu-frame.md)
- [install-net-7-0](tasks/install-net-7-0.md)
- [create-as-service](tasks/create-as-service.md)
- [configure-ufw](tasks/configure-ufw.md)
## Archive

View File

@ -1,4 +1,8 @@
---
status: "1-Backlog"
created: "2023-06-23T22:41:35.812Z"
updated: "2023-07-27T18:05:52.706Z"
type: "kanbn"
---
# apt-get-install

View File

@ -0,0 +1,55 @@
---
created: "2023-07-27T18:04:46.640Z"
updated: "2023-07-27T18:05:52.731Z"
assigned: ""
progress: 0
started: "2023-07-27T18:04:48.076Z"
status: "3-In Progress"
type: "kanbn"
---
# Azure Pipeline
```bash
pscp D:/Tmp/phares/ag/vsts-agent-linux-x64-2.210.1.tar.gz unity4@unity4:/home/unity4/vsts-agent-linux-x64-2.210.1.tar.gz
pscp D:/Tmp/phares/ag/vsts-agent-linux-x64-2.210.1.tar.gz unity5@unity5:/home/unity5/vsts-agent-linux-x64-2.210.1.tar.gz
```
```bash
mv vsts-agent-linux-x64-2.210.1.tar.gz vsts-agent-linux-x64-2.210.1-unity4
cd vsts-agent-linux-x64-2.210.1-unity4
tar xvzf vsts-agent-linux-x64-2.210.1.tar.gz
chown unity4 /home/unity4/vsts-agent-linux-x64-2.210.1-unity4 -R
chgrp unity4 /home/unity4/vsts-agent-linux-x64-2.210.1-unity4 -R
./config.sh --url https://tfs.intra.infineon.com/tfs/manufacturingit --pool Mesa-Linux --auth negotiate --userName infineon@phares
./config.sh --url https://tfs.intra.infineon.com/tfs/manufacturingit --pool Mesa-Linux --auth pat --token asdf
```
```bash
sudo -i
echo >/etc/systemd/system/vsts-agent-linux.service && nano /etc/systemd/system/vsts-agent-linux.service
```
```conf
[Unit]
Description=vsts-agent-linux
After=multi-user.target
[Service]
User=unity4
WorkingDirectory= /home/unity4/vsts-agent-linux-x64-2.210.1-unity4
ExecStart=/home/unity4/vsts-agent-linux-x64-2.210.1-unity4/run.sh
Restart=always
[Install]
WantedBy=multi-user.target
```
```bash
systemctl daemon-reload
systemctl enable vsts-agent-linux.service
systemctl start vsts-agent-linux.service
systemctl status vsts-agent-linux.service
systemctl stop vsts-agent-linux.service
journalctl -fu vsts-agent-linux.service
journalctl --rotate
journalctl --vacuum-time=1s
```

View File

@ -1,4 +1,8 @@
---
status: "4-Done"
created: "2023-07-25T17:31:10.375Z"
updated: "2023-07-27T18:05:52.733Z"
type: "kanbn"
---
# configure-ufw
@ -36,6 +40,7 @@ ufw enable
ufw status numbered
ufw disable
```
```conf
Status: active

View File

@ -1,4 +1,8 @@
---
status: "4-Done"
created: "2023-06-06T02:52:34.344Z"
updated: "2023-07-27T18:05:52.738Z"
type: "kanbn"
---
# Create as Service
@ -7,6 +11,7 @@
sudo -i
echo >/etc/systemd/system/barcode-host.service && nano /etc/systemd/system/barcode-host.service
```
```conf
[Unit]
Description=Barcode Server
@ -22,6 +27,7 @@ Environment=ASPNETCORE_ENVIRONMENT=Production
[Install]
WantedBy=multi-user.target
```
```bash
systemctl daemon-reload
systemctl enable barcode-host.service

View File

@ -1,9 +1,14 @@
---
status: "2-Todo"
created: "2023-07-25T17:33:20.243Z"
updated: "2023-07-27T18:05:52.708Z"
type: "kanbn"
---
# epi-pro-scan
```bash
```
## Sub-tasks

View File

@ -1,4 +1,8 @@
---
status: "4-Done"
created: "2023-06-06T02:52:34.346Z"
updated: "2023-07-27T18:05:52.739Z"
type: "kanbn"
---
# Install .net 7.0

View File

@ -1,4 +1,8 @@
---
status: "4-Done"
created: "2023-06-06T02:52:34.347Z"
updated: "2023-07-27T18:05:52.740Z"
type: "kanbn"
---
# install-ubuntu-frame

View File

@ -1,4 +1,8 @@
---
status: "4-Done"
created: "2023-06-06T02:52:34.348Z"
updated: "2023-07-27T18:05:52.741Z"
type: "kanbn"
---
# install-vscode-extensions

View File

@ -1,4 +1,8 @@
---
status: "1-Backlog"
created: "2023-06-23T22:41:35.814Z"
updated: "2023-07-27T18:05:52.707Z"
type: "kanbn"
---
# netplan
@ -6,6 +10,7 @@
```bash
ip link
```
```echo
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
@ -13,12 +18,14 @@ ip link
link/ether 6c:0b:84:e3:94:11 brd ff:ff:ff:ff:ff:ff
altname enp0s31f6
```
```bash
https://ubuntu.com/server/docs/network-configuration
ip a
ip address show eno1
echo >/etc/netplan/99_config.yaml && nano /etc/netplan/99_config.yaml
```
```bash
network:
version: 2
@ -33,6 +40,7 @@ network:
nameservers:
addresses: [192.168.0.1, 8.8.8.8, 4.4.4.4]
```
```bash
network:
version: 2
@ -47,11 +55,13 @@ network:
nameservers:
addresses: [192.168.0.1, 8.8.8.8, 4.4.4.4]
```
```bash
netplan apply
ip addr flush eno1
# soft reset
```
```bash
network:
version: 2
@ -66,6 +76,7 @@ network:
nameservers:
addresses: [10.95.128.11, 10.64.152.171, 8.8.8.8, 4.4.4.4]
```
```bash
network:
version: 2

View File

@ -1,4 +1,8 @@
---
status: "3-In Progress"
created: "2023-07-25T17:33:20.245Z"
updated: "2023-07-27T18:05:52.709Z"
type: "kanbn"
---
# post-only-once

View File

@ -1,4 +1,8 @@
---
status: "3-In Progress"
created: "2023-07-25T17:31:10.379Z"
updated: "2023-07-27T18:05:52.711Z"
type: "kanbn"
---
# publish

View File

@ -1,4 +1,8 @@
---
status: "4-Done"
created: "2023-06-06T02:52:34.351Z"
updated: "2023-07-27T18:05:52.742Z"
type: "kanbn"
---
# Pull Repo

View File

@ -1,4 +1,8 @@
---
status: "3-In Progress"
created: "2023-06-08T20:40:12.526Z"
updated: "2023-07-27T18:05:52.712Z"
type: "kanbn"
---
# roll-out

View File

@ -1,4 +1,8 @@
---
status: "4-Done"
created: "2023-07-25T18:25:05.485Z"
updated: "2023-07-27T18:05:52.743Z"
type: "kanbn"
---
# run-secrets-task

View File

@ -1,4 +1,8 @@
---
status: "4-Done"
created: "2023-06-06T02:52:34.353Z"
updated: "2023-07-27T18:05:52.744Z"
type: "kanbn"
---
# run-test-ports
@ -6,9 +10,11 @@
```bash
ls -l /dev/ttyUSB*
```
```echo
# crw-rw---- 1 root dialout 188, 0 Jun 3 14:54 /dev/ttyUSB0
```
```bash
sudo -i
adduser unity4 dialout

View File

@ -1,4 +1,8 @@
---
status: "3-In Progress"
created: "2023-07-25T17:31:10.382Z"
updated: "2023-07-27T18:05:52.713Z"
type: "kanbn"
---
# self-signed-certificate
@ -7,6 +11,7 @@
sudo -i
echo >/etc/hosts && nano /etc/hosts
```
```conf
127.0.0.1 localhost
127.0.1.1 unity4
@ -17,6 +22,7 @@ echo >/etc/hosts && nano /etc/hosts
10.95.176.46 eaf-dev.mes.infineon.com
10.95.128.35 eaf-prod.mes.infineon.com
10.95.128.34 eaf-staging.mes.infineon.com
10.95.128.122 oi-prod-ec-api.mes.infineon.com
10.95.176.124 eaf-dev-reporting.mes.infineon.com
10.95.128.37 oi-metrology-viewer-prod.mes.infineon.com
# The following lines are desirable for IPv6 capable hosts
@ -26,6 +32,7 @@ ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
```
```bash
sudo -i
apt-get install -y ca-certificates

View File

@ -1,4 +1,8 @@
---
status: "4-Done"
created: "2023-06-08T20:40:12.528Z"
updated: "2023-07-27T18:05:52.745Z"
type: "kanbn"
---
# setup-nginx
@ -6,6 +10,7 @@
```bash
echo >/etc/nginx/sites-available/default && nano /etc/nginx/sites-available/default
```
```conf
server {
listen 80 default_server;
@ -18,6 +23,7 @@ server {
}
}
```
```bash
systemctl restart nginx
lsof -i -P -n | grep LISTEN
@ -26,6 +32,7 @@ nginx -t
nginx -s reload
echo >/etc/nginx/sites-available/Barcode-Host-Server && nano /etc/nginx/sites-available/Barcode-Host-Server
```
```conf
server {
listen 80 default_server;
@ -38,9 +45,11 @@ server {
}
}
```
```bash
echo >/home/unity4/localhost.conf && nano /home/unity4/localhost.conf
```
```conf
[req]
default_bits = 2048
@ -75,11 +84,13 @@ DNS.1 = unity4
DNS.2 = localhost
DNS.3 = 127.0.0.1
```
```bash
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout /etc/nginx/localhost.key -out /etc/nginx/localhost.crt -config /home/unity4/localhost.conf
ls /etc/nginx
echo >/etc/nginx/sites-available/Barcode-Host-Server && nano /etc/nginx/sites-available/Barcode-Host-Server
```
```conf
server {
server_name _;
@ -99,6 +110,7 @@ server {
}
}
```
```bash
ln -s /etc/nginx/sites-available/Barcode-Host-Server /etc/nginx/sites-enabled/Barcode-Host-Server
nginx -t
@ -106,6 +118,7 @@ nginx -s reload
links https://localhost/api/lastscan
links https://unity4/api/lastscan
```
```conf
# C:\Windows\System32\drivers\etc\hosts
192.168.0.204 unity4

View File

@ -1,4 +1,8 @@
---
status: "5-Archive"
created: "2023-06-08T20:40:12.529Z"
updated: "2023-07-27T18:05:52.746Z"
type: "kanbn"
---
# signalr

View File

@ -1,4 +1,8 @@
---
status: "3-In Progress"
created: "2023-07-25T17:31:10.383Z"
updated: "2023-07-27T18:05:52.714Z"
type: "kanbn"
---
# update-os