Tool/software: Linux
Hello,
I am trying to setup Mosquitto on my BBB. But I can not go to the internet so; I can not accomplish these steps to install mosquito.
- 1.1 Run "apt-get update" and "apt-get install mosquitto" to install Mosquitto server.
- 2.2 Run "apt-get install mosquitto-clients" to install mosquitto_sub and mosquitto_pub.
In the network which I am connected, we don't have DHCP. I followed the following steps. I downloaded mosquito on my linux32bit which is on virtual box. I was thinking maybe I can send the mosquitto files with scp or (ftp) but I couldn't find-see any file related with mosquitto. How can I install mosquitto on my BBB in this situation? Please help me!
>ifconfig eth0 192.168.4.150 netmask 255.255.255.0 broadcast 192.168.4.255
>route add –net 192.168.4.0 netmask 255.255.255.0 gw 192.168.4.1 (I tried all these steps like 2 weeks ago. Also I tried this comment before but today When I used this command I lost Ssh connection, so for today I couldn't use this line.)
>nano /etc/network/interfaces
# The primary network interface
auto eth0
iface eth0 inet static
address 192.168.4.150
netmask 255.255.255.0
gateway 192.168.4.1
…
# Ethernet/RNDIS gadget (g_ether)
iface usb0 inet static
address 192.168.7.2
netmask 255.255.255.0
network 192.168.7.0
gateway 192.168.7.1
>nano /etc/resolv.conf
nameserver 8.8.8.8
> /etc/init.d/networking restart
*** I powered BBB with an external adapter so USB cable doesn't go to the computer!