Friday, July 23, 2021

Arch Install

In case I install something other than Manjaro

vset (if in terminal only)
free -h
lsblk
sudo packman -Syy

Install yay
sudo pacman -S --needed base-devel git
$ git clone https://aur.archlinux.org/yay.git
$ cd yay
$ makepkg -si
cd ..
rm -rf yay

paru is available through yay
htop
neofetch
alias
sudo nano ~/.bashrc
alias ll="ls -la"
alias cls="clear"
restart terminal 

Saturday, July 17, 2021

Windows 10 SSH Server (Dead To Me)

First PC was flawless but as usual this can be a pain . . . second machine did not accept password. Can't find a fix but . . . 
Good new is on Windows there are so many easy file sharing options you do not need a local Windows SSH Server.

Add the feature then start the service and set a firewall rule.

win+i > apps > apps&features > optional features > openssh server

Open Powershell command as Administrator
Type the following command to start the Service of the OpenSSH Server
Start-service sshd

I would leave as default service manual start but you can . . .
Type the following command to add Automatic Startup in Service
Set-Service -Name sshd -StartupType 'Automatic'

Type the following command to find the Rule for OpenSSH Server in Windows Firewall and verify that is Allow

Get-NetFirewallRule -Name *ssh*

I think this happens when ssh server is installed.
win > firewall & network protection > advanced settings

inbound rules > new rule > 
name = OpenSSH SSH Server (sshd)
description = Inbound rule for OpenSSH SSH Server (sshd)
Enabled
Allow the connection
Properties further allows settings restrictions but on a local network for simple files transfers and manual server on/off probably not needed

Wednesday, July 14, 2021

Pop OS Linux

General
Ctl + Alt + Backspace instant log out
Ctrl + Alt + Delete instant reboot
 
Things to do in the terminal
sudo apt update
sudo apt upgrade
or sudo apt update && apt upgrade
sudo apt dist-upgrade
sudo systemctl enable fstrim.timer
super key type firmware update
sudo apt install neofetch
sudo apt install gnome-tweaks
sudo apt install openssh-server -y
sudo systemctl is-enabled ssh (checks)
sudo nano /etc/ssh/ssh_config
sudo systemctl restart ssh
(sudo service ssh restart) for system5 init
(sudo systemctl restart sshd) for arch
ip a
Set Keyboard Shortcuts
(still trying to decide)
super+e open home (file browser)
super+f open firefox
super+c close window
super+enter open terminal
Alias Commands
type alias shows existing aliases
sudo nano ~/.bashrc
alias cls="clear"
 
MX Linux
~/.conky/MX-KoO/MX-Full is full sysinfo 
F4 drop down terminal

Manjaro
Catfish file search is awesome but slow if the search is deep and only searches down.
I can't change the close window hotkey so stuck with Alt+F4 for now
sudo systemctl start sshd

EndeavorOS

EndeavorOS
A miserable experience so far :)

ls -l shows permissions

https://aur.archlinux.org/xfce4-whiskermenu-plugin-git.git

Install git and yay
sudo pacman -S git
cd /opt
sudo git clone https://aur.archlinux.org/yay-git
sudo chown -R george:george ./yay-git
cd yay-git
makepkg -si
(even though I received errors yay installed unless it was already installed in EndeavorOS)

yay uses same as pacman
-S is install
-Rns is uninstall

Holy Hanna this is wild
yay -S pamac-all
In the end it didn't work
 
good grief installed gimp and wouldn't start.

Found this for yay install. Interesting to put it all in one syntax string.
cd /tmp && git clone 'https://aur.archlinux.org/yay.git' && cd /tmp/yay && makepkg -si && cd ~ && rm -rf /tmp/yay/

Tuesday, July 13, 2021

Just trying

As usual I haven't set up Samba for awhile an can't get it to work. 

lsb_release -a
sudo apt install samba
whereis samba
mkdir /home/george/sambashare
nano /etc/samba/smb.conf
[sambashare]
comment = Samba on 
path = /home/george/sambashare
writeable = yes
browseable = yes
public = yes or no
create mask = 0664
directory mask = 0755
force user = george

adduser --system george 
chown -R george /home/george/sambashare
smbpasswd -a george

sudo smbd restart

chmod 777 may not need is above done

Sunday, July 4, 2021

File Sharing Updated

Have you ever said, "I can see the PC on the network but I can't access it"?

On Same Network Cross Platform
LocalSend (my new favorite) winget install -e --id LocalSend.LocalSend
ShareDrop works well. It's a web platform. Not sure of limitations.
Send seems to work also.

*These have gone off the rails so just set up ssh, ftp or web server and get on with life.
Servers
HFS web server, Xlight ftp server
Clients

Not On Same Network
Large Files and Auto Delete
... Wormhole (10gb self delete encrypted)

Small Files and Auto Delete (pain on Android phone)
... Sendanywhere

Large Files
... pCloud (May be best right now)

Large Files and Manual Delete
... Mega

Onionshare (Slow and may choke on large files but I like the concept.)
Receiving end needs to use Tor for the onion share address.

. . . Or Better yet SSH (Look Here)

Monday, June 28, 2021

Filezilla Server

 Filezilla Server notes

Why am I fooling around with FTP? I've never bothered before.
This is still a bit slippery because and I doubt I will improve because too many good alternatives exist for my needs.

Most of the defaults seem good.
I set myself as a user and do use a password whenever asked.

During setup choose start service manually and manually start by current user. Two different steps.
You can always change the Filezilla service to manual in Windows Services.

Change port 21 to some other 5 figure port. This is probably unnecessary when using on a local network and not open to the outside.

In the allow/disallow IP section disallow * meaning all
Then allow the specific IPs or range of IPs 192.168.1.1/24 (It has to be in CIDR format which I do not pretend to understand) Use a calculator like this.

Configure passive port range and Windows firewall. Filezilla will warn of being behind NAT. 
I'm not sure the connection worked because of firewall or passive port settings because I did both.
Port
  1. Open up the FileZilla GUI on your server.
  2. Click on the top menu Edit → Settings.
  3. From the tree menu click on Passive mode settings.
  4. Now make sure the checkbox Use custom port range is checked and enter 50100 in the first box a and 51100 in the second.
  5. Click OK
Firewall
firewall.cpl
  1. From the tree, select Inbound Rules.
  2. In the right panel, click New Rule.
  3. A windows pops up, select Port and click next.
  4. Make sure TCP is selected, and enter 50100-51100 in the Specific local ports field.
  5. Hit Next and make sure the Allow connection option is selected. Then hit Next again.
  6. Select the zones where this rule need to be applied (in my case I have selected all the zones).
  7. Click Next and give this rule a recognizable name: Passive FTP Ports - FileZilla.
  8. Click on Finish, and your done.
Filezilla Client worked but WinSCP connected but would not retrieve the directory.
WinSCP works well with SSH

Included in the Windows start menu are Filezilla shortcuts for starting and stopping the server. This is why I do not set up to start the server when Windows starts.

On reason would be Linux to Windows sharing. Another reason to use this would be if Windows networking is being difficult or if you do not want to Windows share a folder but you want or need access to a folder on the network for a specific PC.
But for simple file transfer over a local network Nitroshare is hard to beat for speed and handling large files.  Lanshare is sometimes workable. And I need to remember SendAnywhere 

Reference:
https://johandorper.com/log/filezilla-server-passive-ports

Sunday, June 27, 2021

Can You Run Windows 11

 Download and run this

https://github.com/mq1n/Win11SysCheck/releases/tag/6

No doesn't mean "no" . . . it just means you need to do extra crap to get it working.
Ain't Windows grand?

Friday, June 25, 2021

Firestick New Hidden Developer's Menu

 I hate when they do non-standard Android.

This did not work for new interface. Can't get to all the options . . . yet
hold buttons DOWN and CENTER for five seconds. Then, release the buttons. After that, press the button MENU.


Ventoy On Secure Boot

I turn of secure boot in every BIOS. However, some do not show that setting. Here is an option that has worked for me. Boot the PC and launc...