1 Commits

Author SHA1 Message Date
e87e854cf8 editorconfig draft 2024-04-17 09:40:50 -07:00
2 changed files with 82 additions and 16 deletions

View File

@ -8,30 +8,32 @@ updated: 2023-11-10T16:14:48.030Z
I have determined a useful method to provisioning and managing fab display clients(slideshows). I have determined a useful method to provisioning and managing fab display clients(slideshows).
One of the main struggles here is maintenance of the device. Such as remote access. For a non fab client, by default the logged in user has to verify connections. The second struggle is that the display turns off after a period of time. One of the main struggles here is maintenance of the device. Such as remote access. For a non fab client, by default the logged in user has to verify connections. The second struggle is that the display turns off after a period of time.
## Configuring Auto Logon ## Configuring Auto Logon
<ul>
I have had an account setup in the INFINEON domain. This account can be used as it has a password that never expires. The password is stored in the Mesa FI password manager on IShare. [Available here](https://ishare.na.infineon.com/sites/MesaFI/FI%20Internal/KeePass/FICredentials.kdbx) I have had an account setup in the INFINEON domain. This account can be used as it has a password that never expires. The password is stored in the Mesa FI password manager on IShare. [Available here](https://ishare.na.infineon.com/sites/MesaFI/FI%20Internal/KeePass/FICredentials.kdbx)</li>
<li>We need to configure auto logon. So using an account with admin rights we need to open Regedit. </li>
- We need to configure auto logon. So using an account with admin rights we need to open Regedit. <li>Once we are in regedit we navigate to: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon</li>
- Once we are in regedit we navigate to: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon <li>
- Then we need to create and set three keys and their respective string values. Then we need to create and set three keys and their respective string values.
- AutoAdminLogon - 1 <ul>
- DefaultUserName - MesaDisplay <li>AutoAdminLogon - 1
- DefaultPassword - See FI Keepass file. <li>DefaultUserName - MesaDisplay
<li>DefaultPassword - See FI Keepass file.
</ul>
</li>
<li></li>
</ul>
##Configuring SlideShow at Startup ##Configuring SlideShow at Startup
The slideshow I was wishing to display was on a website. So what I did was create a batch script that opened edge with the url to the slideshow as an argument. The slideshow I was wishing to display was on a website. So what I did was create a batch script that opened edge with the url to the slideshow as an argument.
See the batch script in the code block below. I then created a task to run at logon of any user to execute this script. Important to note. The default setting pushed via Group Policy will set the screen timeout. At the direction of local IT have decided to use an application called MouseJiggle to keep the screen on. That will need to be set in the batch script as well. The switches -j -z -m will ensure the application starts hidden. See the batch script in the code block below. I then created a task to run at logon of any user to execute this script. Important to note. The default setting pushed via Group Policy will set the screen timeout. At the direction of local IT have decided to use an application called MouseJiggle to keep the screen on. That will need to be set in the batch script as well. The switches -j -z -m will ensure the application starts hidden.
```
```bash start "edge" "c:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" "https://messa004.infineon.com/fabtime717/Home.html?SlideShowView=1&HomePageTab=Cleanroom_Slide_Show&HomePageUserID=3443&LinkerUserID=&CurrentChart=5&Width=1150&Height=620&CurrentChart=4&AutoPlay=30" --start-fullscreen
start "edge" "C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" "https://messa004.infineon.com/fabtime717/Home.html?SlideShowView=1&HomePageTab=Cleanroom_Slide_Show&HomePageUserID=3443&LinkerUserID=&CurrentChart=5&Width=1150&Height=620&CurrentChart=4&AutoPlay=30" --start-fullscreen start C:\users\%USERNAME%\Desktop\MouseJiggle.exe -j -z -m
start "C:\users\%USERNAME%\Desktop\MouseJiggle.exe" -j -z -m
exit exit
``` ```
## Configuring VNC for remote management ## Configuring VNC for remote management
This is a bit of a workaround because again the VNC settings are pushed via Group policy. This is a bit of a workaround because again the VNC settings are pushed via Group policy.
1. First request and install RealVNC server to be installed via the IFX AppStore. 1. First request and install RealVNC server to be installed via the IFX AppStore.
@ -43,6 +45,7 @@ Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\RealVNC\vncserver] [HKEY_LOCAL_MACHINE\SOFTWARE\Policies\RealVNC\vncserver]
"QueryConnect"="0" "QueryConnect"="0"
``` ```
4. I then create a task to run immediately at logon and repeating every 30 minutes that runs the regedit.exe file. This must be run with highest permissions and with the local SYSTEM account. 4. I then create a task to run immediately at logon and repeating every 30 minutes that runs the regedit.exe file. This must be run with highest permissions and with the local SYSTEM account.

63
Fab/editorconfig.md Normal file
View File

@ -0,0 +1,63 @@
---
type: "note"
created: "2024-04-16T19:09:30.884Z"
updated: "2024-04-17T09:09:36.234Z"
---
# editorconfig
- [editorconfig](https://editorconfig.org/)
- [editorconfig-how-to-autofix-all-files-in-a-project](https://stackoverflow.com/questions/39343031/editorconfig-how-to-autofix-all-files-in-a-project)
- [eclint-npmjs](https://www.npmjs.com/package/eclint)
- [eclint-github](https://github.com/jednano/eclint)
## eclint
```bash
l:
cd "L:\DevOps\Mesa_FI\OpenInsight"
echo node_modules >> .gitignore
echo [*] > .editorconfig
echo charset = utf-8 >> .editorconfig
echo end_of_line = crlf >> .editorconfig
echo indent_size = 4 >> .editorconfig
echo indent_style = space >> .editorconfig
echo insert_final_newline = true >> .editorconfig
echo tab_width = 4 >> .editorconfig
npm i -D prettier
npx prettier LSL2/STPROC/AC*.txt --check
# npx prettier fix **/*.txt --check
cls
npm i -D eclint
npx eclint fix LSL2/STPROC/AC*.txt
# npx eclint fix **/*.txt
REM
```
## dotnet
```bash
l:
cd "L:\DevOps\Mesa_FI\OI-Metrology\Server"
dotnet build
echo [*] > .editorconfig
echo end_of_line = crlf >> .editorconfig
echo indent_size = 4 >> .editorconfig
echo indent_style = space >> .editorconfig
echo insert_final_newline = false >> .editorconfig
echo tab_width = 4 >> .editorconfig
dotnet format whitespace
REM
```
- [dotnet-format](https://learn.microsoft.com/en-us/dotnet/core/tools/dotnet-format)
```bash
l:
cd "L:\DevOps\Mesa_FI\OI-Metrology\Server"
dotnet build
del .editorconfig
notepad ../.editorconfig
dotnet format format --report .vscode --verbosity detailed --severity warn
REM
```