4.18 have no hdmi…i have merged it into 4.14, 4.16 and 4.19 is prepared (not yet merged)
Permitrootlogin is set to yes…so you can login as root,but you should change this if you add additional users for ssh
4.18 have no hdmi…i have merged it into 4.14, 4.16 and 4.19 is prepared (not yet merged)
Permitrootlogin is set to yes…so you can login as root,but you should change this if you add additional users for ssh
Am I the fisrt user for the deb_stretch_4.14.13_SD.img ? Nobody have see the problem with the /dev/mmcblk1* ? Or the user have do 2 partition in the emmc ?
Before I have try it :
root@bpi-r2:/home/test# cat /etc/crontab
# /etc/crontab: system-wide crontab
# Unlike any other crontab you don't have to run the `crontab'
# command to install the new version when you edit this file
# and files in /etc/cron.d. These files also have username fields,
# that none of the other crontabs do.
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# m h dom mon dow user command
17 * * * * root cd / && run-parts --report /etc/cron.hourly
25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily )
47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly )
52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )
* * * * * root /home/test/ssh.sh >> /home/test/ssh.test;sync
and the file /home/test/ssh.sh
if [ `systemctl status sshd | grep \ active | wc -l` = "1" ];
then
if [ `ifconfig lan0 | grep 192.168.1.1 | wc -l` = "1" ];
then
echo "lan0 OK, SSH marche"
else
echo "lan0 non OK, SSH marche"
fi
else
if [ `ifconfig enp4s0 | grep 192.168.1.1 | wc -l` = "1" ];
then
echo "lan0 OK, SSH ne marche pas"
systemctl restart sshd;
else
echo "lan0 non OK, SSH ne marche pas"
fi
fi
And nothing was become in /home/test… Now I have :
lan0 non OK, SSH marche
i don’t know how many users tried my image…imho one reported problems on mounting…but imho he fixed it herself over debug-uart. had no time to change the image because i’m busy with creating the kernel, uboot, wiki, …
i don’t know what you want to do with your script…ssh works, right? then create a user for it, test it and then disable root-login
Btw. Ifupdown should be used no more…i only have it installed for interfaces-file,cause i don’t know how to bring up cpu-ports in new framework
I have do my script because I don’t know why the ssh don’t run before testing tour idea about problems on mounting.
you can work now with the debian-image or other problems?
I have play Donjon ans dragon with my son this afternoon and a friend… I try to configure the network, but I don’t have anought time. It’s not easy because when it’s don’t work (make a error it’s easy), I can’t acces to my config with the BPI-R2. I modifiy my cd-card with my computer.
You can first configure a Management-vlan and the do the other config. If you make an error on real config you can access via vlan
I am trying to configure wan the first output in dhcp. You said it’s wan.
auto wan
iface wan inet dhcp
It’s not good… And I have only this in the file interface.
for dhcp don’t use auto…use allow-hotplug
https://www.fw-web.de/dokuwiki/doku.php?id=en:bpi-r2:network:start#dhcp
Else system waits for interface
Don’t forget the eth0 and eth1 (if using 4.14.53+).without it wan wont work
Now, I have dhcp in lan0 :
auto lan0
allow-hotplug lan0
iface lan0 inet dhcp
pre-up ip link set $IFACE address 02:01:02:03:04:00 up
post-down ip link set $IFACE down
I nead “auto lan0” . But I can’t have dhcp in wan…
I have 4 questions :
You cannot bridge ap0
auto interface means that system waits you only nee hotplug-option,i dont knoe if you can set here mac…
For my question 4), I can do
man interfaces
For eth0 and eth1 just copy the block and work only on lanx and wan. DHCP-Client allow-hotplug,all other auto
For the question 1)
I have try
dpkg -i bananapi-r2-image-4.14-main_4.14.79-1_armhf.deb
I was very afraid… Only the red LED…
A ping and after a ssh : it’s good !
root@bpi-r2:~# uname -r
4.14.79-bpi-r2-main
Have you a file interfaces example for dhcp in wan and bridge with 192.168.2.1 adress in lan0-4 ?
Now, I wan’t try the Wifi. I see http://www.fw-web.de/dokuwiki/doku.php?id=en:bpi-r2:wlan. I have a problem :
root@bpi-r2:~# ifconfig -a
Device “-a” does not exist.
I don’t understand why ifconfig -a is a problem…
Try
ip a
Internal wifi needs creation of ap0 via wmt-tools and echo
About ifconfig -a : I think it’s a bug of ifconfig.
The wifi can not have a automatique creation ?
you can call my wifi.sh in autorun (e.g. rc.local), activate/change ip-config in it and try it this is how i do it
for ifconfig: imho ifconfig was an alias for ip-command, because ifconfig is old tool and should not be called
type ifconfig
Yes :
ifconfig is aliased to
ip addr show’`
There si not driver for my ssd in the kernel : I can’t mount this partition auto with the fstab, but after, I can mount this partition.
if driver is not included in kernel you can’t also mount it later
mostly you don’t need driver for ssd/hdd…more you need sata-support for chipset (and on r2 it depends on pcie-driver)…both should be included in my (newer) main-kernels. If you still use 4.14.79 it should be included…have also a ssd on my r2 running with 4.14.32+ (actual running 4.14.52 on main router). also last 4.19.1-main should work