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/

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