Monday, December 14, 2020

Bypass Windows 10 Password

Through recovery or usb linux
System32 folder
Rename Utilman.exe to Utilman1 then cmd to Utilman
If Utilman not there
Rename Magnify to Magnify1 then cmd to Magnify
Reboot
net user
net user george * (if space use quotes)
When asked for password just press enter
Through recovery or usb Linux
Reverse renaming to original

If Microsoft account
Add Admin account
net user Newname /add
net localgroup Administrators Newname /add

download this iso
cd140201.zip (~18MB) - Bootable CD image
press enter to boot to default settings
should see your windows
1 enter
1 enter
1 enter
You likely want to only clear pswd for user admin
You could unlock and enable built in admin
Clear password
q = quit editing user
be sure to write the file "y" before closing program

Full command prompt syntax - check drive letter
move X:\windows\system32\utilman.exe X:\windows\system32\utilman.exe.bak
copy X:\windows\system32\cmd.exe X:\windows\system32\utilman.exe
reboot (will reboot pc from command prompt)

Thursday, November 12, 2020

Windows Registry Settings and Hacks

RemoveBandwidthLimit
Do this to keep Windows from reserving 20% internet bandwidth
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Psched
Give it Value Data 0
It will look like this . ..

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Psched]
"NonBestEffortLimit"=dword:00000000

Target Version Update
Use following to make .reg file
You need to change the version "2004" to desired. Current now is 21H2
I still have some mission critical on 1909
<Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate]
"TargetReleaseVersion"=dword:00000001
"TargetReleaseVersionInfo"="21H2">


TargetReleaseVersion
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate]
"TargetReleaseVersion"=dword:00000001
"TargetReleaseVersionInfo"="2004"

Remove Shortcut Text
Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer]
"link"=hex:00,00,00,00

Thursday, October 22, 2020

Delay Windows Feature Update With One Click

 Making the registry changes with one click . . .

- Enter the following in a NotePad and save as "somename.reg"

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate]
"TargetReleaseVersion"=dword:00000001
"TargetReleaseVersionInfo"="2004"

Sunday, October 4, 2020

Hotel Wifi Accessing Splash Page

DNS may not be the problem but worth a try. Go to bottom of this page for the simplest answer.
I have often had problems accessing the hotel splash pages. I think I have found one of my problems. I always set my PC's DNS to Cloudflair or Google. Setting the DNS for the IPv4 to "Automatic" seems to fix the problem. Other issues may exist but this may be the main one,
Bonus hint:
If none of the broadcasted SIDs are showing check services. Check that the WLAN AutoConfig is running. Maybe set to autostart.

You need to find the IP of the hotel's router and enter the IP address
It's the Default Gateway
Open Command Prompt
type ipconfig /all

Android Streaming box or stick can be a challenge.
I tried the DNS server IP numbers in TVBro but no luck.
When I deleted the entire address bar (http etc) and entered google.com the splash page came up.







Tuesday, September 22, 2020

Verizon Hotspot - TTL Setting

2020-10-15 New command to try
netsh int ipv4 set glob defaultcurhoplimit=65
netsh int ipv4 set glob defaultcurhoplimit=128
ping -4 localhost

I don't know how long it takes to register the usage but I used the hotspot 10 hours ago and this is the result now:
Next morning the data usage was registered . . . So it didn't work
I'm trying 64 to compensate for the hop from phone to pc

This does not work for me any more.
This seems too simple. 
Verizon checks / verifies a connected device's TTL setting to determine if a hotspot is being used.
Window's default TTL IS 120. Changing to 60 seems to work.

Also try VPN to see if makes a difference
netsh int ipv4 set glob defaultcurhoplimit=65
netsh int ipv6 set glob defaultcurhoplimit=65
(60 didn't work for me this time. Trying 65 because 64 is phone so 65-1=64.)



netsh int ipv4 set glob defaultcurhoplimit=120

open a command prompt as admin
paste the 65 string for Verizon Hotspot
Paste the 120 to restore default

Test the setting 

ping -4 localhost



Sunday, September 20, 2020

Pendrive Icon

 Place a bitmap on the pendrive

Then create this

[autorun]
icon=picture.bmp

#save as autorun.inf

Saturday, September 19, 2020

Ventoy Multiboot USB

VentoyPlugson (GUI for creating json file)

The directory needs to be this


The json file needs to be this
{
    "control": [
        { "VTOY_DEFAULT_MENU_MODE": "1" },
        { "VTOY_FILT_DOT_UNDERSCORE_FILE": "1" }
    ],
    
    "theme": {
        "file": "/ventoy/theme/unicorn/theme.txt",
        "gfxmode": "1920x1080"
    }
    } 

Change the "Robo" to match theme name (I have no clue what I meant by this)

You can get themes from this guy's link
Change the "file": "/ventoy/theme/unicorn/theme.txt" string to the theme folder you desire. In this case it is "unicorn".
Then go to the /ventoy/theme/unicorn folder and replace the "background.jpg" with your image.

I know jpg or png work

The file size in MB is limited but don't know max. I had to use the "for internet" function in irfanview to get the size reduced properly, resulting in 1200x732 & 97.26s kb

I used the unicorn theme and replaced the "background.jpg" with this. How wonderful is that :)

Ventoy Persistence
create a persistence folder on the Ventoy disk
go here and get the .dat zip files
unzip the .dat file that matches the release you want and place in persistence  folder
eg. persistence_xfs_4GB_MX-Persist
start the VentoyPlugson.exe in the Ventoy program. It is not on the Ventoy disk
add paths - enter the paths to the ISO file and the .dat file
**I got it to works with MX Linux. Most of the confusion was due to all the MX prompts to set up persistence. Seems to be prompts each time persistence is loaded. Irritating but it does work.

I did it again successfully. Answer the MX prompts with default "enter" and number 1 when necessary.



Saturday, September 12, 2020

Virtualbox Has Been Nuked By Windows 10 V2004

 After updating to 2004 my Virtualbox can not create a VB. It errors out while trying to write the system.

2020-09-20 OK - I got VB working again - See Below

This could be good news in a way.

I have never wanted to take the time to try VMware Player. It works well and in some ways feels better than VB. I already have a love-hate relationship the the VM bar on the top.

Don't be intimidated by VMware . . .
- It may be easier to set up than VB in some ways
On some PCs when installing VB itself, it appears to be installing and then asks for reboot. Not sure what it has done but upon reboot and running installer again, the install will succeed.

After choosing "create new" this is the first screen . . .

Everything is intuitive - this screen might scare you but buck up . . .

The only thing different here is choosing NAT instead of Bridged

Installing VMware Tools is a session 
You may not need to bother with the installation VMware offers.
Just do this:
sudo apt-get install open-vm-tools open-vm-tools-desktop
Here is what worked for VB on one PC so far









Friday, September 11, 2020

Linux - My Favorite Today

2021-07-13

My first choice is

Manjaro (what is up with this not available stuff?)
You can get it here

MX or PopOS
. . . The more I use it the better I like all the easy tweaking options. 
MX default boots to init and most command line examples these days is systemd so that can be confusing for less frequent Linux users. MX can boot to systemd but I haven't done it. Not sure wat happens after using init for awhile and then booting to systemd.
Memory Usage is impressive

Mint

Bohdi (if you need small footprint)

I can see why MXLinux is popular
... no systemd so use service like this "sudo service smbd status"
FYI ssh needs to be installed like any Debian
This will also tell you if it is running 
ps aux | grep sshd
Here is a cheat cheat for reference
MX has firewall installed but not turned on. 

Tuesday, September 8, 2020

Gimp On 4K Screen

 I have a 4k Dell XPS 13 and Gimp has been miserable to use. 
All the controls have been so small as to make clicking on them almost impossible. 
I've tried different themes within Gimp and adjusting setting. Nothing helped much.

Then I adjusted the Dell resolution to 1920x1080 and Gimp looked normal.
... I adjusted Dell back to recommended 4k
...... Closed Gimp
......... Opened Gimp again
............ And got this
Looks normal to me. Hope is sticks
***Caution - I am positive I tried this before with no positive result but wouldn't swear to it. So give it a few tries.

 

Saturday, September 5, 2020

New Blogger Interface

 I Pretty Much Hate It

And what's up with the default Paragraph mode. Who thought that up?

Ok, I'm getting used to it but still want to change the default Paragraph mode.


Friday, September 4, 2020

Samba Trying To Find The Perfect Simple Setup (It Works)

When logging on from Windows to Linux 
Try this . . . If Windows rejects credentials
Use your Microsoft email address
User:MicrosoftAccount\me@email.com
Example: you are Bob and your Microsoft email is BobBarker@live.com and your local PC password is 1234
Enter Bob/BobBarker@live.com - 1234
It works even if you are running Windows with local account.
I know - It's crazy
Permissions to do anything is another subject but at lease you can see stuff.



Let's be honest . . . If you are setting up Samba like this you only want to share a file or two. 
... A better option might be NitroShare but . . . it can be a challenge to install on some distros and it is out of development.
...... Why not use ssh . . . with Putty and WinSCP (both available with Symenu)

But if you just want this dang thing to work . . . Try this:
*Hint for editing smb.conf
... Nano works fine but running Thunar as root (sudo thunar) works better.

Mint installs a Samba folder containing smb.conf but Samba is not installed out of the box.
This differs with the distributions. Manjaro has Samba installed but no smb.conf. MX has Samba installed and a GUI setup.

Install Samba (sudo apt-get install samba)

Existing smb.conf  [global] settings may need no alterations unless you have long netbios name. 
(Some day I want to figure out what are bare bones essentials in [global] )

Maybe this:
[global]
server string = My Server
workgroup = WORKGROUP
security = user
map to guest = Bad User
name resolve order = bcast host

Just add this to bottom of smb.conf

[share]
path = /home/share
#case sensitive, choose any directory
hosts allow = 192.168.1.0/24
hosts deny = 0.0.0.0/0
browseable = yes 
guest ok = yes 
guest only = yes
read only = no

#the following is not necessary. Permissions on the folder overrides the following anyway.
force user = nobody
force create mode = 0777
force directory mode = 0777

(fyi - I think "guest ok = yes" and "chmod -R 0777" the share folder is the key)

sudo systemctl restart smbd
sudo systemctl restart nmbd
sudo service smbd restart
sudo service nmbd restart
(nmbd will broadcast to the Windows network)

testparm to check for errors

sudo mkdir -p /home/share   (matches choice above)

sudo chmod -R 0777 /home/share

sudo chown -R yourname /home/share

Check Shares    sudo smbstatus --shares

Running smb allows access to share by ip address
Running nmb allows netbios to find and show share in Windows file manager
Starting smb and nmb will not make smb/nmb available on reboot
... Use also "sudo systemctl enable smb" - likewise nmb
...

For Manjaro I copied the Mint smb.conf used above and did the same steps.
I think the Mint smb.conf is the default smb.conf file for Samba in most distributions.
In Manjaro Samba is already installed but not the smb.conf so create one.
You can get the Manjaro smb.conf here if needed but it is not the standard one.
Everything worked. 
Drop Dead Simple
Remember Debian & Arch have different syntax - Deb = systemctl start smbd vx Arch = smb
Remember to sudo systemctl enable smb

...

For PopOS nothing has worked yet. I still always get this . . .
- And yes, this is why I hate Samba


Ok - I got it. I had added a  ;comment in a command line but it didn't show a problem in testparm. You can add a ;comment but on its own line.

I am leaving this link for info but found better way
https://www.youtube.com/watch?v=7Q0mnAT1MRg&t=126s

Caveat = Changes keep happening in Operating Systems. What works today may work tomorrow.
Caveat #2 = Windows 10 likes to add this connection to your "Quick Access" file. If your windows folders don't refresh properly just delete 
%AppData%\Microsoft\windows\recent\automaticdestinations
or try doing standard clear . . .



Additional thoughts -
Permissions and Ownership are critical so chown and chmod familiarity is essential and easy after a few rounds and battles.



Monday, August 24, 2020

Linux Chrome Remote Desktop

 In Manjaro Arch it was easy . . .

1. Search for Chrome Remote Desktop in Software and install

2. Run crd -setup

nano will open up so remove comment for the desktop you want

save and exit

3. Nano will open up again

choose the resolution

save and exit.

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

Monday, June 22, 2020

Arch From Scratch Notes

The only good reason to do this is to become familiar with the Arch system. It is very good for that, indeed. And then just install Manjaro 😎😎😎

https://averagelinuxuser.com/a-step-by-step-arch-linux-installation-guide/
mkfs.ext4 /dev/sda1
mount /dev/sda1 /mnt
pacstrap -i /mnt base linux linux-firmware sudo nano
genfstab -U -p /mnt >> /mnt/etc/fstab
arch-chroot /mnt /bin/bash
nano /etc/locale.gen
...you should jump to the line #en_US.UTF-8 UTF-8
Uncomment it by removing the # sign. Press Ctrl+O Enter to save and Ctrl+X Enter to exit the editor.
locale-gen
echo "LANG=en_US.UTF-8" > /etc/locale.conf

keyboard for US no need to change
ip a check internet (or wifi-menu)
timedatectl set-ntp true (sets time)
pacman -Syyy
pacman -S reflector
reflector -c US -a 6 --sort rate --save /etc/pacman.d/mirrorlist
pacman -Syyu
lsblk
fdisk /dev/sda1 (or whatever)
n, p, (if want swap of 4 type +4G), type t for type to get number and enter it
do same for main partition and accept defaults
w to write
mkswap /dev/sda?
swapon /dev/sda?
... make 128-512 boot partition on SDA1 and second partition full disk)
mkfs.ext4 /dev/sda?
mount /dev/sda? /mnt
... mount /dev/sda2 /mnt
... mkdir /mnt/boot
... mount /dev/sda1 /mnt/boot
pacstrap /mnt base base-devel linux linux-firmware nano (intel-ucode or amd-ucode) none for vb
genfstab -U /mnt >> /mnt/etc/fstab
cat /mnt/etc/fstab
---
arch-chroot /mnt
timedatectl list-timezones | grep US
ln -sf /usr/share/zoneinfo/US/Central /etc/localtime
hwclock --systohc
nano /etc/locale.gen
...you should jump to the line #en_US.UTF-8 UTF-8 (both lines)
Uncomment it by removing the # (not the example one)
locale-gen
echo "LANG=en_US.UTF-8" > /etc/locale.conf
nano /etc/hostname (name your PC)
nano /etc/hosts
127.0.0.1 localhost
::1 localhost
127.0.1.1 arch.localdomain arch
passwd (root password
pacman -S grub networkmanager network-manager-applet wireless_tools wpa_supplicant dialog os-prober mtools dosfstools base-devel linux-headers git reflector bluez bluez-utils cups pulseaudio pulseaudio-bluetooth pulseaudio-equalizer pulseaudio-jack xdg-utils xdg-user-dirs openssh
grub-install /dev/sda (disk name not partition)
grub-mkconfig -o /boot/grub/grub.cfg
systemctl enable NetworkManager
systemctl enable bluetooth
systemctl enable org.cups.cupsd
systemctl enable sshd
useradd -mG  wheel george
passwd george
EDITOR=nano visudo (all=all all)
exit
umount -a
reboot

install xfce4 https://www.maketecheasier.com/set-up-xfce-arch-linux/

Monday, June 15, 2020

Remove EFI Dual Boot

The only reason to bother with dual boot is if you can not fit an additional drive into the PC.
Pull the other drives > install Linux to the new drive > hook up the other drives and use the bios boot menu to boot the Linux drive.

https://www.youtube.com/watch?v=sgMu3DYuVYY
This is a video
11:30 is start of remove dual boot entries
Find open drive letter
diskpart
list volume
see fat32
select vol #
assing letter=x
open Task Manager
>file>run.run new task
open drive X
open efi
delete the linux folder
check boot folder for any linux entry
diskpart
remove letter=X
exit

Wednesday, May 27, 2020

VLC - YouTube Stream

Go here and download LUA file
https://addons.videolan.org/p/1154080/

USAGE:
- Copy the URL of the youtube video or playlist (must contain "list=PL...")
- Start VLC, press Ctrl+N, paste the url then click on "Play" (or Alt+P then Enter), the video /playlist should start

Install here:
Just paste it
C:\Program Files\VideoLAN\VLC\lua\playlist

Tuesday, May 26, 2020

Linux - Windows Share

Networking between Windows and Linux can be a pain.
For quick file share use NitroShare
https://nitroshare.net/
For Arch Linux is available on AUR
For Debian it is impossible to find currently 2021-07-10

Maybe better just use ssh and WinSCR FTP (get in Symenu)
Or Filezilla

Sunday, May 24, 2020

Brother Printer Setup Manjaro Arch

On my second setup with and old Brother HL-5250DN things went well without installing anything
Go to Manage Printing > Administration (the online cups setup)
Then the find printers, etc.
Worked flawlessly (sending job to printer takes forever :))

First setup was not so smooth.
You may need to install cups, etc but in the end . . . I needed this
... Get it from pamac with aur support
This will allow printing but only through this app
I can set up the printer but it will not connect.
I suspect I do not yet have the correct driver.
I can not get yay installed to find the driver

... a work in progress
I did uses these commands:
sudo pacman -S cups manjaro-printer sudo systemctl enable org.cups.cupsd.service sudo systemctl start org.cups.cupsd.service sudo pacman -S system-config-printer

There are multiple ways to find the IP of the printer.
The Brother app installed above is one.
Another is nmap
example sudo nmap -sP 192.168.1.0/24
You would need to find your own IP first to know the range to enter
example: ip addr show



This gets a little crazy.
But installing printers, even on Windows, can get crazy.
As usual, I didn't document every rabbit trail so not sure what was all necessary.
In the end . . . it may have been this that actually worked.
Notice that the Brother MFC printer always showed but when I chose it, and it appeared to be installed, it would always show no connection.
... When I chose the Internet Printing Protocol IPP method and manually entered the ip address, everything worked.
... I did install yay and tried to install the proper driver. It may have installed but that part was mysterious. The PKGBUILD of yay was even more mysterious but yay is available to me now.

Wednesday, May 20, 2020

Linux GUI Apps - SSH - Commands

#1. Find out which init system your Linux uses
init --version
#2. Find out your IP on the local network. You will need IP, user name, and password.
ifconfig (depricated and may not work because "net-tools" is not installed)
 use this instead
> > > ip a
On Windows use WinSCP to access the Linux server (I use portables via Symenu)

Terminal commands vary depending on if systemd or SysVinit. (Or some variation thereof)
Most all Linux versions have ssh service included. Verify by doing this.
ssh -V (check if installed)
The server is likely not installed so install it.
sudo apt install openssh-server -y

Verify if the service is running
sudo service ssh status
This is how to start the service
sudo service ssh start
or
sudo service ssh restart
Edit sudo nano /etc/ssh/ssh_config file and not the sshd_config (if it exists)
remove # on port 22
remove # on PasswordAuthentication yes
Check if server is running
ps aux | grep sshd
Check is server is listening on port 22
telnet localhost 22

***From here down needs editing. Maybe next time I set up a systemd.

... Start SSH
- In systemd
sudo systemctl start ssh
sudo systemctl start sshd (In arch)
... Check to see if enabled
sudo systemctl is-enabled ssh
sudo systemctl is-enabled sshd (In arch)
or
- In SysVinit (SystemV)

(check linux ip ifconfig)
Edit sudo nano /etc/ssh/ssh_config file and not the sshd_config
remove # on port 22
remove # on PasswordAuthentication yes
sudo systemctl restart sshd
sudo systemctl status sshd
use Putty and/or WinSCP 
ssh_config should look like this
check ip a
In WinSCP the connection is SCP not SSH

Obviously you use keys outside a closed network.


Should be able to install through apt-get
eg. sudo apt-get install hardinfo

Notes:
Update
sudo pacman -Syysudo
sudo pacman -Su

Find ip use "ip a"
ip route list
or install Nutty

Root file access in Manjaro
sudo thunar

OpenSSH on Arch
(Why care? Setting up VB using SSH in Windows for ease copy paste commands.)
sudo pacman -S openssh
sudo systemctl status sshd.service
sudo nano /etc/ssh/sshd.config
sudo systemctl enable sshd.service
sudo systemctl start sshd.service
(stop, restart, etc.)
On VM use bridged adapter for useful IP

... Then Putty on Windows should have access to (user-name@IP)

Good Links for ssh
https://linuxhint.com/ssh_virtualbox_guest/
http://www.tuxfixer.com/configure-ssh-service-in-manjaro-linux/
https://www.christitus.com/ssh-guide/

MX Linux does not use systemd so the systemctl commands don't work.
I have no idea how to restart ssd or do commands that use systemctl.
Commands
...This is one of the irritating things about Linux. Answers found online are often for a version you are not using. For instance alias
HowToGeek explains alias cls=clear
This is great but to make it survive a closed terminal he says add the command to the
... .bash_aliases file
,,,  but in Mint the file is /home/george/.bashrc
The List
alias
ps

Saturday, May 16, 2020

Run Box Commands I Want To Remember

netplwiz (user accounts)
wf.msc (firewall)
ncpa.cpl (network connections)
apwiz.cpl (programs and features)
inetcpl.cpl (internet properties)
hdwwiz.cpl
control (printers, folders, mouse, etc)
winver
compmgmt.msc (computer management)
regedit
msconfig
services
shell:startup
sysdm.cpl

Full List Here
https://www.pcsteps.com/1675-run-command-complete-list-windows/

Monday, April 13, 2020

Android On PC

nomodeset xforcevesa
(I don't know how to make this stick)

Network settings


Saturday, January 11, 2020

Context Menu Add Remove

Get it here
https://cresstone.com/apps/shellNewSettings/

Clear Print Spooler - Buffer

Oddly I have had to do this a couple times lately. Easy to find when searching but documenting it anyway.
net stop spooler
del %systemroot%\System32\spool\printers\* /Q /F /S
net start spooler

Thursday, January 9, 2020

Excel Hide or display the Paste Options button

This little thing drove me crazy. It was often in the way Please don't help.
Go to File > Options > Advance and uncheck the boxes

Thursday, January 2, 2020

Syncthing - A Try Explaining Setup -

* If I have 2 or more drives, I put the Syncthing folder on C and auto backup to D.
The folder contains files I want to access from or transfer to the Mother Ship.

SyncTrayzor is the download to grab for Windows.
... Install it.

(I'm no expert but I get it working.)
If you run multiple PCs, this is a great way to move files back and forth or make files available to all devices. I still use Mega, Dropbox, etc for a few regular items but Syncthing is awesome and under your complete control.

(Very little seems intuitive for a Syncthing novice. Don't worry because everything can be changed)

1. A default folder will be created, probably inside your user folder. You will likely end up deleting this folder.
... Two items are called folders. One is the actual folder within the Windows file structure. This we are accustomed to seeing and using. The other is the folder designation within the Syncthing interface which contains the path to the folder within Windows, the folder ID#, and folder name. The Syncthing folder designation's name can be the same name as the Windows folder or not. Syncthing does not actually use the name to identify the folder nor does the remote device care about the name. Syncthing devices use the path and the folder ID#. This number must be the same as the folder number on the remote or base devices syncing files. Syncthing remote devices do not care about the path on the local device. The local device handles the path. (Wow - That was a mouth full.)
2. Add a folder and call it Syncthing (or whatever). I see no reason to name the folder within the Syncthing interface differently than the actual folder name in the operating system. You could leave the default but I don't want the folder in my user folder and being backed up. I use D:\Syncthing
3. Use this same procedure on each computer all with the same folder name. Unless some special case you will have only one folder on each PC. Be careful to note the original folder ID# when setting up the base device because the remote folders need to be the same number. You can insert this number when setting up a folder but not change it after setup (that I can find). You can always delete the folder and set up a new one. Remember, I'm talking two setups. One, you make an actual Windows folder and . . . Two, setting up that folder withing Syncthing.
... It may sound like I am being too paranoid about the folder thing but it is the trickiest part of setting up Syncthing. Like most things, after doing it a few time there is no mystery to it.
4. Name the device something descriptive for PC.
... This device has a name entry on the remote machine also. The name has nothing to do with the connection. I keep the names consistent but it's not required. Like folder names, device names are cosmetic conveniences for the user and Syncthing ignores them.
... Example: Let's say one PC's device name is MotherShip and two remote PC's are named UFO1 and UFO2. MotherShip will add two devices named UFO1 and 2 respectively. MotherShip will have 2 added devices but UFO1 and 2 will only have MotherShip as an added device.
5. Access the ID# to add  devices to the PCs . . . The names mean nothing. The ID is the important thing.
... Show ID will give you the address of the machine you are setting up.
... This needs to be entered into the remote PC.
... You need the remote PC's ID# entered into base PC.
... The folders all need to have the same ID#


6. Edit the device and folder. You will see a share tab. Activate the folder share.
... It is now you will see the original folder and the new one you made. Verify where the original fold resides. Delete it if you wish.

This may get confusing but . . .
... I use a Base PC with one Syncthing folder.
... Each remote PC has only one Syncthing folder
... Each remote PC links only to the Base PC but the Base links to all the others.
Entering or removing anything from any syncthing folder adds or deletes it from all folders.

The easiest way to handle this is . . .
. . . Install Anydesk on the MotherShip (which may usually be always turned on)
. . . Enter MotherShip ID as added device on UFO1
. . . Log on to MotherShip and accept device request and share Syncthing folder.
. . . On UFO1 reject offer to add share folder because you are going to direct to Syncthing folder.
. . . Syncing may not start immediately for some reason but it should fire up eventually.

If you want to sync a second folder from any PC to the Base just create a second folder (Syncthing_Accounting) on the Base and share it with the Remote PC. The same will need to be done on the remote. Just make sure the folder and files on the Remote are not originals with no backup. If you remove the files from the Base the Remote will lose the files. For instance, if the remote has accounting files the originals must be backup up into a sync folder share.

* * * I had one remote PC (ie not base MotherShip) that I hadn't used for awhile. I didn't like the share folder name and where it was located. I changed it. It wouldn't sync. The problem was the folder ID#. The folder ID must be the same on both PCs. You would not want to change the MotherShip folder ID because it shares with other computers. And I find no way to change an existing folder's ID. So delete the remote folder. When creating the new folder, the ID# from the MotherShip folder can be entered into the remote PC's folder.
... I must say, this is a relief. I'm quite taken with Syncthing and it had me totally stumped for a few hours.

My Attempt At Simplifying My Folder Explanation
SyncTrayzor is the download to grab for Windows.
... Don't install it yet.
... Think of where you want the share folder and what to call it.
I call mine "Syncthing" and put it in C:\Syncthing or D:\Syncthing
... Now install SyncTrayzor
A folder will be automatically created in the Windows user folder.
The folder will be named with it's Syncthing folder ID#. Something like 3q76f-f7lkk
... Feel free to delete the folder because we will add a folder in Syncthing and point to the one you made in Windows. Add the correct path and enter a name "Syncthing" maybe
... If this is the base machine, remember the folder ID#. All the shared folders need the same ID# to link the folders on different devices. ...
Hint: After you create a folder on the Base PC and share with the remote, the remote PC will show an offer from the Base PC to make and keep that folder. Before you reject the offer, copy the folder ID#. When you make the folder where you want it,  paste in the ID, create the path to the pre-made folder and name it appropriately.

(Yet to get a handle on - I have done the above procedure and not had to worry about the folder ID#. One would think the folder ID would always require manual entry into the remote new folder to match the base PC's folder. Happily, once Syncthing is set up, no changes need to me made so this will remain a mystery until a future setup.)

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...