CHIP – POCKETCHIP : améliorer la base

Configurer le wifi en ligne de commande

nmtui

Mettre à jour et redémarrer l’engin

apt-get update -y && apt-get upgrade -y && init 6

Installer la gestion du point d’accès et la prise de contrôle a distance

apt-get install openssh-server

apt-get install dnsmasq hostapd
echo interface=wlan1 > /etc/dnsmasq.d/access_point.conf
echo except-interface=wlan0 >> /etc/dnsmasq.d/access_point.conf
echo dhcp-range=172.17.0.2,172.17.0.250,1h >> /etc/dnsmasq.d/access_point.conf
echo dhcp-option=1,255.255.255.0 >> /etc/dnsmasq.d/access_point.conf
echo dhcp-option=3,172.17.0.1 >> /etc/dnsmasq.d/access_point.conf
echo auto wlan1 >> /etc/network/interfaces
echo iface wlan1 inet static >> /etc/network/interfaces
echo address 172.17.0.1 >> /etc/network/interfaces
echo netmask 255.255.255.0 >> /etc/network/interfaces
ifup wlan1
/etc/init.d/dnsmasq restart
echo interface=wlan1 > /etc/hostapd.conf
echo driver=nl80211 >> /etc/hostapd.conf
echo ssid=PocketChip>> /etc/hostapd.conf
echo channel=1 >> /etc/hostapd.conf
echo ctrl_interface=/var/run/hostapd >> /etc/hostapd.conf
echo [Unit] > /lib/systemd/system/hostapd-systemd.service
echo Description=hostapd service >> /lib/systemd/system/hostapd-systemd.service
echo Wants=network-manager-service >> /lib/systemd/system/hostapd-systemd.service
echo After=network-manager-service >> /lib/systemd/system/hostapd-systemd.service
echo Wants=module-init-tools-service >> /lib/systemd/system/hostapd-systemd.service
echo After=module-init-tools-service >> /lib/systemd/system/hostapd-systemd.service
echo ConditionPathExists=/etc/hostapd.conf >> /lib/systemd/system/hostapd-systemd.service
echo [Service] >> /lib/systemd/system/hostapd-systemd.service
echo Restart=always >> /lib/systemd/system/hostapd-systemd.service
echo ExecStart=/usr/sbin/hostapd /etc/hostapd.conf >> /lib/systemd/system/hostapd-systemd.service
echo [Install] >> /lib/systemd/system/hostapd-systemd.service
echo WantedBy=multi-user.target >> /lib/systemd/system/hostapd-systemd.service
update-rc.d hostapd disable
systemctl daemon-reload
systemctl enable hostapd-systemd
init 6

Mettre a jour l’interface graphique du pocketchip

https://bbs.nextthing.co/t/pocket-home-marshmallow-edition/6579
https://github.com/o-marshmallow/PocketCHIP-pocket-home

wget -O installPocketHome.sh « https://drive.google.com/uc?export=download&id=0B1jRc4IqT9kiN0pfb3FGdlJtZjA »
chmod +x installPocketHome.sh
./installPocketHome.sh
init 6

Installer un Tools qui gère l’alimentation du CHIP comme un grand!

— Je vous invite a suivre ce post : génial. Version courte ci-dessous:

apt-get install i2c-tools
wget -O /usr/local/bin/blink.sh http://fordsfords.github.io/blink/blink.sh
chmod +x /usr/local/bin/blink.sh
wget -O /etc/systemd/system/blink.service http://fordsfords.github.io/blink/blink.service
systemctl enable /etc/systemd/system/blink.service
wget -O /usr/local/etc/blink.cfg http://fordsfords.github.io/blink/blink.cfg
service blink start

 

 

1 commentaire

Guest

Pour ne plus avoir l’interface graphique au démarrage u pocketchip :

docs.getchip.com/#boot-into-console

sudo systemctl set-default multi-user.target

Pour revenir en interface graphique par défaut :

sudo systemctl set-default graphical.target

Laisser un commentaire