cat /etc/issue
断电重启设备。
https://dotnet.microsoft.com/zh-cn/download/dotnet/8.0
下载并导入到Ubuntu主机
解压
tar -zxvf aspnetcore-runtime.tar.gz
#解压tar程序打包并且经过gzip压缩的文件
./dotnet --info
可以通过 ./dotnet ***使用
无法直接 dotnet使用
建立一个连接
ln -s /root/dotnet /usr/bin/dotnet
2.安装Curl
apt-get update -y && apt-get install curl -y
3.安装zerotier
curl -s https://install.zerotier.com | sudo bash
zerotier-cli join c7c8172af1100551
在root用户登录的情况下,执行以下指令,进入密码修改界面 # passwd
在ubuntu上打开终端,执行命令
curl -L https://www.cpolar.com/static/downloads/install-release-cpolar.sh | sudo bash
cpolar authtoken YTMyZTk1MmMtMGNjZS00OWZkLWE3MTEtNWZlMTY1YTg4ZjRi
systemctl enable cpolar
systemctl start cpolar
systemctl status cpolar
正常显示为active
,为正常在线状态
cpolar http 8080
在浏览器上访问本地9200端口,【127.0.0.1:9200】使用cpolar邮箱账号登录cpolar web UI管理界面
测试SSH正常。
6.打开4G功能
执行"crontab -e"命令,在最后一行添加一行如下指令
@reboot sudo 4g_server&
其中“&”号表示不等当前程序退出即运行下一行命令。
ESC后输入
:wq
chmod 777 "/root/StarAgent/StarAgent.dll"
chmod 777 "/root/EdgeServer/IIotServer.dll"
7.安装docket
a. Docker 的安装 Ubuntu 可以在线安装 docker,也可以通过以下网址 https://download.docker.com/linux/ubuntu/dists/bionic/pool/stable/armhf/ 下载所需版本自行安装。 这里以在线安装为例,使用以下命令在线安装 docker
apt-get install docker.io
b. Docker 的运行 我们以搜索并下载 busybox 镜像为例进行说明
docker search busybox
此命令会搜索跟 busybox 有关的镜像,此处以下载 armhf/busybox 这个镜像为例
docker pull armhf/busybox
下载完成后,我们用 docker images 命令可以查看本机已经下载的镜像
docker run -it -v /dev:/dev armhf/busybox
此时我们已经成功运行 busybox 镜像,但我们发现并没有权限使用外设,可以通过 privileged 参数赋予容器 root 权限
docker run -it -v /dev:/dev --privileged armhf/busybox
此时容器内的 root 用户已经具备 root 权限,可以自由使用本机外设。
docker pull jessejamescox/fuxa:latest
docker run -d -p 1881:1881 frangoteam/fuxa:latest