Connecting internet to Raspbery Pi board - linux

I have successfully ported Linux kernel to Raspberry Pi board.
But now i need to have Internet connection into it.
And my internet connection is like, it needs a user name and password to login then only we can access Internet(wired internet through LAN or RJ 45 connector). And this interface for entering username and password comes in a browser.
But now in case of Raspberry pi , its just a kernel so , i do not have a browser in it.
So how to connect this internet connection in Board.
Thanks

The hardware solution is to use a home router that does the logging-in for you, and then acts as a gateway between your local LAN and the Internet. You would connect the Raspberry Pi to one of the router's LAN ports, and use either DHCP or static IPs on that local net.
A software solution might be using e.g. curl to implement some kind of login-script that fakes the accesses to the web page.

If you could connect it (temporarily) to an Internet connection that doesn't require a login/password, you could install a command line based browser. I would suggest looking into Lynx, if you choose to do it this way. http://en.wikipedia.org/wiki/Lynx_%28web_browser%29

Related

how to connect flutter app with nodejs locally with real device

I want to connect my flutter app to node server locally through my real device.I have seen many solution but still didn't get any clear picture.can anyone elaborate the steps to connect
you have two ways to do that:
1- if your mobile and computer - which contain (node.ja and database) - connected at same wifi, so, you should just go to CMD in your computer and type (ipconfig) and try to find the ipv4 for (wireless) or wifi, after that just in your mobile you can access the api by just replace (localhost) or (127.0.0.1) with your local ip which your found in cmd.....
or if you don't using wifi, you can just run your mobile hotspot, and connect your laptop with it by wifi, and also follow same steps as above...
Device must be able to connect to localhost:<port> but to make this happen connect your mobile to computer via usb or connect over same wifi connection.
After this hit chrome://inspect/#devices and port forward localhost: to so now you can easily connect to localhost:<port> on your mobile phone.
Refer to image below and for more details check out the insightful medium blog by Neeraj Moudgil
https://medium.com/#neerajmoudgil/how-to-test-localhost-node-apis-on-android-device-253fcdd32c18

Why volumio.local was able to access the raspberry since it connected to local network

After setting up volumio on raspberry, an interest feature was that you can use 'volumio.local' as the address to access the webpage hosted by raspberry, and there was not much to worry whether the ip address changed every time the raspberry connected to the local network. I was wondering how did volumio do that and how to setup an custom address for an raspberry to do the same.
It uses a system called Bonjour, which can locate devices and services on a local network using multicast Domain Name System (mDNS). See this Wikipedia article.

Javascript SPA vuejs socket.io connection

I’m broadly new to vuejs and socket.io and nodejs.
I wrote an single page application to communicate between a nodejs server (running on an Raspberry pi) and a Siemens S7-1500 PLC. Those ones are connected over ethernet and the raspi is getting me an wifi access point for control the PLC with a smartphone, tablet or Desktop.
I’m almost done, but I struggled at that point. I am using socket.io to send events to the client an back. For that i need to know the ip address of my sever inside my vuejs application with is bundled with webpack.
As I get to the point as I was trying to deploy my App onto the Rapberry Pi I didn't found a way to set the IP address dynamically inside my application.
Perhaps some of you guys could open my eyes and give me a Tipp for the solution.
How it's possible to send the IP Address to the client? My Application is running locally and there is no need to do not so.
In my mind it should be possible to send the server ip to the client.
Thank you for your Answers :)
Greetings Denis
You can use linux ifconfig command in order to get your IP from command line of the host application is hosted on. IP is not sth that you set on application level, but ussually is automatically asigned for the given host. So it depends on how your network is set up.
Look for sth like "How to give your Raspberry Pi a Static IP Address".

Passing on IP camera through raspberry pi

I've been having problems with a project of mine. I had a raspberry pi connected to webcams but I found that this was too much load for the RPI. This is why I decided to purchase and use an IP camera. The only problem though, is that the IP camera does not get wifi reception where the it should be placed but I have a powerful Directional antenna which I can attach to the RPI. I want the RPI to route internet traffic from the camera plugged into ethernet, over the wifi. I'm not one hundred percent sure how to do this but so far I have giving the wifi priority over the Ethernet and set up a dhcp server so that the camera gets an ip address.
In my current setup, when I am hard-wired into the Raspberry pi, I can connect to the camera (on 192.168.2.10) but outside, I can only connect to the web server which is also running on on the RPI. I'm not sure if the port forwarding of the camera works but I want to be able to access the webserver on 192.168.1.117 (this works) and I want to see the camera on 192.168.1.117:10 (this does not work). To try to do this, I followed this tutorial but I cant seem to get any results after finishing it.
Any help is greatly appreciated! thanks.
You may want to try UV4L with the mjpegstream driver. It turns your IP camera into a (virtual) Video device available on your RPi. An example is here (in step 3 pass the URL of your IP camera stream).

J2ME access filesystem on network computer

I am trying to access files on a network computer via a J2ME MIDlet. This MIDlet runs on a device that is connected to the network via a WI-FI router. The MIDlet can see the other devices (that is, it has visibility to the other devices's IP on the network).
Has anyone done this successfully? If yes, what connection API have you used and if you could share some code?
I have tried using the FileConnection API, but passing the following results in connection error:
conn = (FileConnection)Connector.open("file://IP_OF_COMPUTER_ON_SAME_NETWORK/");
As per the FileConnection API, you should be able to connect to devices on the network as it allows hostname access.
I am unable to run a web server on the designated computer otherwise I would just write a simple web script (and run a web server).
Thanks in advance,
Vikram
AFAIK, you can not access File from remote Computer directly. And if you still want to do it , your mobile must be connected with the remote computer by WiFi or GPRS.
Install apache on the remote computer and set it up as a server (localhost). You can then view the file folders via the phone browser.

Resources