Ethernet with Router
Connect the Banana Pi and a router port with an Ethernet cable. Connect your PC to the same router, either with another ethernet cable or through Wifi.
Find the IP address that was assigned to the Banana Pi. Now you can connect to the BPi.
Ethernet without router
Banana Pi:
Edit the file
nano /etc/network/interfaces
and add
auto eth0Edit the file
nano /etc/network/interfaces
and add
iface eth0 inet static
address 192.168.2.10
netmask 255.255.255.0
broadcast 192.168.2.255
The auto is so that this connection is created automatically. If you left it out, you could bring it up by running
ifup eth0
but how are you going to do that if eth0 is your only connection to the Banana Pi and it's not up yet?
Ubuntu:
network manager -> edit connections
wired connection
click on routes
Terminal
If the Banana Pi is connected to a network, you are on the same network, and you know the IP of the Banana Pi then you can log on to the Banana Pi in a terminal session via SSH:
ssh bananapi@10.0.0.6
password: bananapi
This will give you a terminal session that runs on the Banana Pi.
Remote Desktop
This is for Lubuntu (and probably everything Debian based).
- Install VNC on the Banana Pi:
Connect the Banana Pi to the Internet.
Open a terminal session.
On the Banana Pi,
sudo apt-get install x11vnc
- Start the VNC service on the Banana Pi.
For some reason, you have to restart the LightDM display manager first.
sudo service lightdm restart
On the PC, open Remote Desktop Viewer.
click on connect
To run this automatically when the beaglebone reboots, put the above command in to a script file and save it as vncstart.sh
sudo -i
cd /
sudo nano vncstart.sh
Make the file executable.
chmod +x vncstart.sh
Then run
crontab -e
This will open an editor where you can edit crontab jobs.
At the end of the file, add the line
@reboot /vncstart.sh &
(In this example, the file is located at / You can put it somewhere else but make sure to add the path to the file)
Hit CTRL-O to save the file, then enter, then CTRL-X to exit the editor.
Automatic Login with Lubuntu 14.04
Perhaps you don't want to enter the login credentials every time and security is not yet a concern?Call the editor
sudo nano /etc/lightdm/lightdm.conf
enter
[SeatDefaults]
autologin-user=bananapi
autologin-user-timeout=0
# Check https://bugs.launchpad.net/lightdm/+bug/854261 before setting a timeout
user-session=Lubuntu
greeter-session=lightdm-gtk-greeter
FTP
Serial to USB cable
red: power
black: ground
white: RX
green: TX
No comments:
Post a Comment