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

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.



NovaBenchmark

 On my old Predator 17                                 My Ryzen 5 at the office