Last active
September 16, 2024 21:52
-
-
Save InBrewJ/9c84d1bb02fb1961b30d59b94c2540f9 to your computer and use it in GitHub Desktop.
Notes on getting Hackboard 2 to play nicely with how I imagine Debian _should_ come outta the box
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# NOTE! default password for 'hackboard' user is HB2 - CHANGE IT | |
# Also note that the standard Debian distro seems to come from huawei? | |
# You may or may not care about this. You probably should! | |
# This is a fun post: | |
# https://www.reddit.com/r/hackboard2/comments/17hgq4i/finally_got_my_8gb_with_case_some_initial/?rdt=40227 | |
# hackboard@HB2:~$ date | |
# Thu 12 Sep 2024 07:56:14 PM BST | |
# hackboard@HB2:~$ lsb_release -a | |
# No LSB modules are available. | |
# Distributor ID: Debian | |
# Description: Debian GNU/Linux 11 (bullseye) | |
# Release: 11 | |
# Codename: bullseye | |
## default 'hackboard' user should be in the sudoers list | |
# https://www.reddit.com/r/linuxquestions/comments/pcfjo6/bash_usermod_command_not_found_in_latest_debian/?rdt=40466 | |
# Use su - (with the trailing dash) to become root, then usermod and other commands work | |
# Or manually, as root | |
vi /etc/sudoers | |
# add this to the end of the file | |
hackboard ALL=(ALL:ALL) ALL | |
# Then sudo apt-get <whatever> should work for the 'hackboard' user | |
# Next, to enable ntp time setting / automatic time (which seems important for the 4G network stuff!) | |
# maybe not required but why not | |
sudo apt-get install ntp | |
# https://askubuntu.com/questions/1314479/ntp-not-supported | |
sudo apt install systemd-timesyncd | |
sudo timedatectl set-ntp true | |
# then test with | |
timedatectl status | |
# Should print out something like the stuff below | |
# presumably the 'NTP service' status is the important bit | |
# hackboard@HB2:~$ timedatectl status | |
# Local time: Thu 2024-09-12 19:59:14 BST | |
# Universal time: Thu 2024-09-12 18:59:14 UTC | |
# RTC time: Thu 2024-09-12 18:59:14 | |
# Time zone: Europe/London (BST, +0100) | |
# System clock synchronized: yes | |
# NTP service: active | |
# RTC in local TZ: no | |
################################################ | |
# Drivers and things | |
################################################ | |
# https://www.crowdsupply.com/hackboard/hb2/updates/unboxing-tips | |
# leads to | |
# https://hackboardcom-my.sharepoint.com/:f:/g/personal/jon_hackboard_com/Esnix0uau2xBiSo4wF26lcoB45rUbKubjrJ1xpd_ZnwBMg?e=96IwyQ | |
# Install the v5.9.11 drivers with | |
cd /your/driver/location | |
make install | |
################################################ | |
# SMS | |
################################################ | |
# https://medium.com/@MichaelMarner/sending-receiving-sms-on-linux-acf7610e2d2 | |
sudo apt-get install smstools | |
# Edit the file as in the blog post | |
nano /etc/smsd.conf | |
# restart the service with | |
sudo service smstools stop | |
# then | |
sudo service smstools start | |
# status also works | |
sudo service smstools status | |
# error logs here | |
sudo tail /var/log/smstools/smsd.log | |
# 4g modem is: | |
# Bus 001 Device 002: ID 2c7c:030e Quectel Wireless Solutions Co., Ltd. Quectel EM05-G | |
# ...according to lsusb | |
# which is this?? | |
# https://www.quectel.com/product/lte-em05-series/#summary | |
# As an aside: Easy enough to get online on Debian by selecting the 'payandgo.o2.co.uk' plan on the Debian 'Connections' | |
# creation screen | |
# But what is the baud rate of the device? How do I send a text? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment