Monday, November 16, 2020

How I gave wireless connectivity to my old printer

 Hi, Today I had to move the home printer to a new location, and I was thinking of connecting remotely to the “dumb” printer.

I had a spare RPi lying near me, so thought of giving a try.
Since I had formatted my PC, I had to start from scratch to set up the pi-pc/network communication.

How to connect Pi to PC for configuration?
I had to heedlessly connect (without knowing Pi’s IP address) to pi and I also want it to talk to my computer through the home router.
(Then I can take print-out from my phone/laptop/ or even remotely)( For remotely, you can create a VNC account and control the Pi through it if you are outside your home network.)

  1. Instal putty, VNC and bonjour print service.
  2. Back up my Pi’s SD card previous data using ext2explore utility. (Not needed, but recommended).
  3. To connect headlessly:
    Open notepad.
    save it into sd card with name ssh and select all files option. (make sure file is empty)
    Close notepad, then again open notepad type the following.
    (this will save your router info so that pi will automatically connect to your network when it boots up).

country=US
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
scan_ssid=1
ssid=”your_wifi_ssid”
psk=”your_wifi_password” }

save the file with the name wpa_supplicant.conf and again select all files option and save it to Pi’s SD card.

You can follow this for further ref: https://www.tomshardware.com/reviews/raspberry-pi-headless-setup-how-to,6028.html

Voila! Restart and now your Pi will be try to automatically connect to the saved Wifi access point. (unless your pi doesn’t have wifi problems or you previously played with it’s connectivity settings.) (at least mine did work.)

Start putty and enter raspberrypi in the address bar (port remains same as 22) and connect.
It should ask for username and password.

How to setup printing service?

Here I used CUPS.

  1. Install Common Unix Print System software
    sudo apt install cups
    After installing, follow the steps as discussed in
    https://www.tomshardware.com/how-to/raspberry-pi-print-server
    Go to raspberrypi:631 from any device in your network, preferably your pc and verify if you see the cups startup page.

Additional help:
You can see connection details using the command - ip link show
(see this: https://www.cyberciti.biz/faq/linux-list-network-interfaces-names-command/)

I would suggest to turn on Rpi Automatic login.
https://raspberrypi.stackexchange.com/questions/40415/how-to-enable-auto-login#:~:text=4%20Answers&text=To%20enable%20Auto%2Dlogin%20with,then%20log%20you%20in%20automatically

If in windows Printers & Scanners settings, if printer is not found, then click the printer I want is not listed option and in the select a shared printer by name field, enter this:
http://192.168.1.99:631/printers/EPSON_L210_Series
(This is your printer admin page in CUPS, change the IP and name accordingly, mine is given for ref.)
Here, my Pi’s IP is 192.168.1.99, which also has the alias “raspberrypi”.
(If you have connected Pi using LAN, then try “raspberrypi.local”).
So the Login/ management page: http://192.168.1.99:631/ is equivalent to http://raspberrypi:631/

If any of the website’s link is unavailable, try using wayback machine archive to find it’s old snapshot.

I tried printing from phone using xodo (uses Android print spooler service) and succeeded. So I think it should work on yours too.

I am also planning to do a button – ON and OFF for Pi, inspired from: https://www.makeuseof.com/tag/add-power-button-raspberry-pi/
https://howchoo.com/g/mwnlytk3zmm/how-to-add-a-power-button-to-your-raspberry-pi

Thanks

Monday, June 29, 2020

Fallacy of Knowledge

 The fallacy of knowledge aka “under” standing

Today I was watching a video by 3BlueBrown describing how something with probability zero need not be an impossible event.
While watching the video, I “understood” things quite well, but when I tried to explain the same to my friend, I wasn’t able to do so and I ran into much confusion.
Then I remembered what Einstein used to say, if you can’t explain something to a 6 year old kid and make him understand it, then you have not really understood that topic !


Monday, June 1, 2020

Bridge, Well and Lake - Find connection ?

 Bridge, Well and Lake. They are the common word endings of Intel series of SOC s. First few generations of their IC s Intel christened them to end with Bridge. Then few other series ended with well in their name. And now they are naming SoC s ending with Lake.

Let us see what will they come up with next !


Sunday, May 17, 2020

Future of AIOT - Artifical Intelligence of Things ?

 Tech is going at an amazing speed. AI is everywhere. IOT is everywhere. Now AI and IOT has shaken hands to create a new interesting tech genre of AIOT, which is artifical intelligence of things.

Now in the years to come, Earth life is going to be greatly influenced by these human-created beings, which who knows when will take over the world control from humans?


Git of Life

 Life is like a github commit chart, you have seen.

White part is like the void or inactive period that did not contribute to the now person in you.
Green part is what made the present you.

Image from commitart by jbranchaud


Noobies who have this question in mind, well.. I do not know what to say..

Tuesday, May 12, 2020

Fallacy of Knowledge

 See 1 major point: our life is a mixture of assets and liabilities. Assets on one side and Liability on the other side. We are walking through a very narrow bridge separating the two. It’s us who should determine whether to move to asset’s side or liability side. Moving towards liability side is much easier, thanks to human nature of lazyness and greed.

Moving towards assets side require patience, perseverance and hardwork. Hey that’s all are my observations.. allathe verevdenelm vayichit kond vann thalliyathalla…
If one doesnt get jealous with others success and content with whar he/she have, then that person can easily be happy throughout their life and then You will be an angel from every angle. 😋

Peace out✌


Saturday, February 29, 2020

Coorg Trip

This weekend, and coincidently on the very rare 29th of February, we started off to Coorg, which is again 250ish km from Banglore. We started from morning 4 and reached Coorg by around 12 noon after taking small halts in Mandya and Mysore. I’ll update the trip summary soon.. Gracias!


Whom should we listen to? - heart or head

This is a common question we all come across: there is often a deep clash between the thoughts from the head and the feelings from the heart...