Monday, July 27, 2020

Private Internet Access

Something has changed with PIA.
. . . It wouldn't connect with Chicago for several days
. . . Now it connects but no access anywhere
. . . Support said to connect to WirGuard instead of OpenVPN
It works
Proxy




Thursday, July 23, 2020

Notepad++

Remove beginning spaces. Take multiple hits of "replace"
find ^( *)[ ]
replace \1


Chocolatey Installer (Setting Up A Windows PC)

I am liking winget more as I use it. 
It finds install not on C but won't update them. (I think)
It finds installed files not installed by winget
Choco only sees installs from Choco but the selections from Choco is more numerous.
"winget upgrade" shows all the installs with upgrades 
"winget upgrade name" won't install if not on C:
winget export -o .\winget-export.json
winget import -i .\winget-export.json --accept-package-agreements
winget upgrade --all works great
*see winget json and bat examples at the bottom

choco outdated
choco list --local-only
choco upgrade all

I'm a D drive guy but this is so handy I'm using it more all the time.
. . . This is turning into Windows setup after install
To list files in a directory through CMD dir /b >filelist.txt

https://chocolatey.org/
Stuff I use
May be best to find first to get the version/offering you want but I just go for it.
choco find
7zip
anydesk
as ssd
audacity
autohotkey
backupper-standard
brave
calibre
chocolateygui
cpu-z
eartrumpet (may increase volume)
everything
f.lux
firefox
foxitreader
googlechrome
hasleo backup suite (try for cloning if aomei does not work) or haslo disk clone
hdtune
hexchat
hwinfo
imdisk
irfanview
kodi (seldom used at this point)
notepadplusplus
onionshare
partitionwizard
private internet access pia
patch my pc
qbittorrent
reflect-free (Macrium Reflect in case AOMEI Backupper does not work)
sharex
shutup10 (downloads to C:\ProgramData\chocolatey\lib) (Portables are stored here)
streamwhatyouhear
syncbackfree
synctrayzor
taskbarx
ventoy (seems to have problems)
veracrypt
virtualbox
vlc
whocrashed
winaero-tweaker
winscp

Get From Elsewhere
Aomei Backupper Standard (Best free clone to SSD tool)
FC Portables (an interesting source of portable software)
Gimp Portable Partha (Start once to create folders then copy fonts, etc.)
Gimp Portable Samj (Can be harder to find most recent. Folders already exist)
Gsplit (Symenu)
hitman pro (malware removal)
lanshare    (another no go Linux now)
nitroshare (for quick windows file share locally. It adds to context menu & must be disabled or right .         click in file explorer crashes explorer)
PatchMyPC  (Great updater for installed programs.) Choco chokes on this. Also in Symenu.
Rainmeter (get this from Symenu) (or here for install) (Enigma skin) (Predone here)
RocketDock (Preset w/icons) (Icons only) Or just do Symenu
Winaero Tweaker (Choco is choking on this)
Windows Update Assistant (Sometimes you need to use this if update doesn't work)

Chocolatey portable apps.
I put portable apps in one folder so easy to access with RocketDock or Launchy
Choco puts portable apps in C:\ProgramData\chocolatey\lib so now I make a .Links folder in the portable folder with shortcuts for both portable folders in RocketDock. Launchy scans C:\ProgramData\chocolatey\lib

Startup Folder (for placing shortcuts you want to start with Windows boot)
C:\Users\User Name\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
find the path Win+R shell:startup

2020-12-10
Chocolatey Install go here and get the cmd script
This works now but could change
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"

If winget is used then
choco install chocolateygui as-ssd shutup10 taskbarx gimp -y
(winget installs gimp to appdata - what's up with that?

#1 Here is a standard program install for every PC. These are mostly small and having them on C is no biggie.

choco install chocolateygui backupper-standard 7zip as-ssd anydesk brave cpu-z everything foxitreader googlechrome hwinfo irfanview nitroshare notepadplusplus rocketdock sharex shutup10 -y

choco install autohotkey scite4autohotkey qbittorrent taskbarx -y

choco install translucenttb -y (if Windows 11)

#2 And I may need . . .
choco install virtualbox imdisk ventoy pia f.lux veracrypt -y

#3 Other Interesting
choco install hexchat calibre volumouse.install audacity streamwhatyouhear mobalivecd synctrayzor powertoys telegram veracrypt -y

***In case backupper is a pain
#4 choco install reflect-free
end with space -y to bypass prompts

to update choco upgrade all -y
to uninstall choco uninstall 7zip -y

The GUI
choco install ChocolateyGUI
.to run
ChocolateyGUI

choco search or find
choco info
choco install
choco upgrade chocolately
choco list --local-only


Here is a sample .json file for winget. I would add a few things like gimp.
{
"$schema" : "https://aka.ms/winget-packages.schema.2.0.json",
"CreationDate" : "2022-06-23T12:09:22.711-00:00",
"Sources" : 
[
{
"Packages" : 
[
{
"PackageIdentifier" : "7zip.7zip"
},
{
"PackageIdentifier" : "ShareX.ShareX"
},
{
"PackageIdentifier" : "Lexikos.AutoHotkey"
},
{
"PackageIdentifier" : "BraveSoftware.BraveBrowser"
},
{
"PackageIdentifier" : "Google.Chrome"
},
{
"PackageIdentifier" : "HexChat.HexChat"
},
{
"PackageIdentifier" : "IrfanSkiljan.IrfanView"
},
{
"PackageIdentifier" : "Microsoft.WindowsTerminal"
},
{
"PackageIdentifier" : "Notepad++.Notepad++"
},
{
"PackageIdentifier" : "VideoLAN.VLC"
},
{
"PackageIdentifier" : "qBittorrent.qBittorrent"
},
{
"PackageIdentifier" : "JavadMotallebi.NeatDownloadManager"
},
{
"PackageIdentifier" : "NathanOsman.NitroShare"
},
{
"PackageIdentifier" : "Oracle.VirtualBox"
}
],
"SourceDetails" : 
{
"Argument" : "https://winget.azureedge.net/cache",
"Identifier" : "Microsoft.Winget.Source_8wekyb3d8bbwe",
"Name" : "winget",
"Type" : "Microsoft.PreIndexed.Package"
}
}
],
"WinGetVersion" : "1.2.10941"
}

Here is an example batch file for winget install
On every PC
winget install --id=7zip.7zip -e  && winget install --id=Notepad++.Notepad++ -e  && winget install --id=ShareX.ShareX -e  && winget install --id=Lexikos.AutoHotkey -e  && winget install --id=Google.Chrome -e  && winget install --id=IrfanSkiljan.IrfanView -e  && winget install --id=REALiX.HWiNFO -e  && winget install --id=Microsoft.WindowsTerminal -e  && winget install --id=VideoLAN.VLC -e  && winget install --id=qBittorrent.qBittorrent -e  && winget install --id=JavadMotallebi.NeatDownloadManager -e  && winget install --id=AOMEI.Backupper -e  && winget install --id=Microsoft.VisualStudioCode -e  winget install -id=voidtools.Everything -e  && winget install --id= Foxit.FoxitReader -e  && winget install -id=PunkLabs.RocketDock -e

I want to check if the bat file will work like this.

winget install --id=GIMP.GIMP -e
&& winget install --id=7zip.7zip -e
&& winget install --id=Notepad++.Notepad++ -e
&& winget install --id=ShareX.ShareX -e  
&& winget install --id=Lexikos.AutoHotkey -e  
&& winget install --id=Google.Chrome -e  
&& winget install --id=IrfanSkiljan.IrfanView -e  
&& winget install --id=REALiX.HWiNFO -e  
&& winget install --id=Microsoft.WindowsTerminal -e  
&& winget install --id=VideoLAN.VLC -e  
&& winget install --id=qBittorrent.qBittorrent -e  
&& winget install --id=JavadMotallebi.NeatDownloadManager -e  
&& winget install --id=AOMEI.Backupper -e  
&& winget install --id=Microsoft.VisualStudioCode -e  
&& winget install -id=voidtools.Everything -e  
&& winget install --id= Foxit.FoxitReader -e  
&& winget install -id=PunkLabs.RocketDock -e

Friday, July 17, 2020

Linux SSH

*Be sure to turn off firewall or configure 22 to ssh on Linux.
SSH should be easy to set up but sometimes it is a pain.
 More Detail Here
Here is a bunch of good commands.
https://devconnected.com/how-to-install-and-enable-ssh-server-on-debian-10/

sudo apt-get install openssh-server


Now use 
... Putty
...... WinSCP
......... Or Windows 10 terminal "ssh ip address of Linux" I know, it's crazy.


/etc/init.d/ssh start
/etc/init.d/ssh stop
/etc/init.d/ssh restart

service ssh start
service ssh stop
service ssh restart

systemd
systemctl start ssh
systemctl stop ssh
systemctl restart ssh
systemctl enable ssh

Saturday, July 4, 2020

Simple Samba Conf File

2020-09-05 See This

What a pain in the butt -
 . . . good old reliable twins work
. . . ssh & WinSCP
Unless you are in Mint, etc where setting up a share is easy.
Not sure if Nautlis Share can be used on the others.

Worked fine in Bohdi but not PopOS
...Suggestion - add to the bottom of existion smb.conf instead of replacing smb.conf totally
smb.conf file
[global]
server role = standalone server
map to guest = Bad User
usershare allow guests = guest
hosts allow = 192.168.0.0/16 (basic security but not needed) (192.168.1.0/16 be specific?)
hosts deny = 0.0.0.0/0 (basic security but not needed)

[testfolder]
comment = test folder
path = /home/george/testfolder
read only = no
guest ok = yes
force user = george (not sure needed)
force group = george (not sure needed)

Be sure Windows has smb1 active in features

Pin Not Available

Crazy Error I had not seen before. Pin not available blah blah. I restarted a few times and it finally worked. If it doesn't some say to...