Friday, 26 March 2021

Changing Git Remote Urls

I recently switched network settings, and now my IPs have changed, and my remotes no longer match.

A quick google1 for the right syntax is all I needed.

mrbear@labtop mygitrepository % git remote -v
origin ssh://mrbear@10.0.0.1:/home/mrbear/mygitrepository (fetch)
origin ssh://mrbear@10.0.0.1:/home/mrbear/mygitrepository (push)

So my setup changed ips from 10.0.0.0 network to 192.168.2.0 network.

% git remote set-url origin ssh://mrbear@192.168.2.1:/home/mrbear/mygitrepository
mrbear@labtop mygitrepository % git remote -v
origin ssh://mrbear@192.168.2.1:/home/mrbear/mygitrepository (fetch)
origin ssh://mrbear@192.168.2.1:/home/mrbear/mygitrepository (push)

Verification is always a good thing.

% git pull
mrbear@192.168.2.1's password:
remote: Enumerating objects: 19, done.
remote: Counting objects: 100% (19/19), done.
remote: Compressing objects: 100% (16/16), done.
remote: Total 16 (delta 8), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (16/16), 93.48 KiB | 3.89 MiB/s, done.
From ssh://192.168.2.1:/home/mrbear/mygitrepository
7f41ba8..e7de4cf master -> origin/master
Updating 7f41ba8..e7de4cf
Fast-forward

References

[1] Managing remote repositories
https://docs.github.com/en/github/getting-started-with-github/managing-remote-repositories

Thursday, 4 March 2021

Installing Printer Driver in Fedora for Epson ET-3750

Just some information in case I need to reinstall the drivers sometime in the future.

The following is in my log:

[ 650.114340] usb 2-1.8: new high-speed USB device number 5 using ehci-pci
[ 650.196888] usb 2-1.8: New USB device found, idVendor=04b8, idProduct=1130, bcdDevice= 1.00
[ 650.196896] usb 2-1.8: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 650.196900] usb 2-1.8: Product: ET-3750 Series
[ 650.196903] usb 2-1.8: Manufacturer: EPSON
[ 650.196907] usb 2-1.8: SerialNumber: 583445553036353185
[ 650.245866] usblp 2-1.8:1.1: usblp0: USB Bidirectional printer dev 5 if 1 alt 0 proto 2 vid 0x04B8 pid 0x1130
[ 650.245915] usbcore: registered new interface driver usblp

I found some information at [1].

[root@mrbear Downloads]# dnf install lsb

Lsb is required, or it starts complaining when trying to install the rpm packages.

rpm -i epson-inkjet-printer-escpr2-1.1.25-1lsb3.2.x86_64.rpm
rpm -i epson-printer-utility-1.1.1-1lsb3.2.x86_64.rpm

Via LPADMIN

# lpadmin -p [PRINTER_NAME] -v [DEVICE_URI] -P [PPD_FILE] -E
# lpadmin -p et3750 -v "usb://EPSON/ET-3750%20Series?serial=583445553036353185&interface=1" -P /opt/epson-stuff-this-and-that-en.ppd.gz -E

Via Webbrowser

This works if you have attached the printer via USB cable.

You can access CUPS via a webbrowser at http://localhost:631.

As administrator ask for "Add printer".

The list shows EPSON ET-3750 Series (EPSON ET-3750 Series).

Name: EPSON_ET-3750_Series
Description: EPSON ET-3750 Series
Location:
Connection: usb://EPSON/ET-3750%20Series?serial=583445553036353185&interface=1
Sharing: Do Not Share This Printer
Make: Epson
Model: (lsb/usr/epson-inkjet-printer-escpr2/Epson/Epson-ET-3750_Series-epson-inkjet-printer-escpr2.ppd.gz)
Epson ET-3750 Series - epson-inkjet-printer-escpr2 1.1.25-1lsb3.2 (Seiko Epson Corporation LSB 3.2) (en, nl, fr, de, it, ja, pt, es, ko, ru, zh_TW, zh_CN)
Or Provide a PPD File:

References

[1] Epson - Epson ET-3750
https://epson.com/Support/Printers/All-In-Ones/ET-Series/Epson-ET-3750/s/SPT_C11CG20201?review-filter=Linux