文章目录
一、修改密码
passwd root
passwd ubuntu
二、修改网卡地址
vi /etc/network/interfaces.d/eth0
三、修改主机名称
vi /etc/hostname
vi /etc/hosts
四、安装wifi模块
教程仅限hi3798mv100 版本
bash <(curl -sSL https://gitee.com/xjxjin/scripts/raw/main/install_hi3798mv100_wifi.sh)
详细教程参见连接
https://blog.csdn.net/weixin_39504040/article/details/139989280
五、挂载硬盘
1.查看硬盘
fdisk -l
2.创建文件夹,进行挂载
mkdir /mnt/sda
mount /dev/sda1 /mnt/sda
3.设置永久挂载 查看uuid
blkid
4.设置永久挂载
echo 'UUID=00FCEEF9FCEEE83C /mnt/sda ntfs defaults 0 2' >> /etc/fstab
5.查看挂载情况
df -hl
六、卸载应用
参考另一篇文章
省流版,直接执行以下脚本即可
wget https://gitee.com/xjxjin/hinas/raw/master/hinas_install_uninstall.zip \
&& unzip hinas_install_uninstall.zip \
&& chmod +x hinas_install_uninstall.sh \
&& ./hinas_install_uninstall.sh
或者
wget https://gitee.com/xjxjin/hinas/raw/master/hinas_install_uninstall.zip #下载脚本
unzip hinas_install_uninstall.zip
chmod +x hinas_install_uninstall.sh # 添加可执行权限
./hinas_install_uninstall.sh # 执行脚本
七、安装CasaOs
curl -fsSL https://get.casaos.io | sudo bash
修改docker的镜像源 2024-05-14更新
自动下载脚本,自动检测镜像下载速度,自动替换docker源,自动启动docker
wget https://gitee.com/xjxjin/hinas/raw/master/test_docker_download.sh \
&& chmod +x test_docker_download.sh \
&& ./test_docker_download.sh
目前检测的镜像源有一下几个,有其他速度快的可以留言提供
"https://docker.m.daocloud.io"
"https://ghcr.io"
"https://mirror.baidubce.com"
"https://docker.nju.edu.cn"
修改docker的镜像源 2024-04-29更新
2024-04-29更新
vim /etc/docker/daemon.json
{
"registry-mirrors": [
"https://dockerproxy.com",
"https://docker.mirrors.ustc.edu.cn",
"https://docker.nju.edu.cn"
]
}
命令行执行 docker info,如果从结果中看到了如下内容,说明配置成功。
sudo systemctl daemon-reload
sudo systemctl restart docker
docker info
参考文章: Docker Hub 镜像加速器
https://gist.github.com/y0ngb1n/7e8f16af3242c7815e7ca2f0833d3ea6
添加casaos 第三方商店
打开商店,点击浏览更多,输入下面的链接
https://play.cuse.eu.org/Cp0204-AppStore-Play-arm64.zip
七、安装网络流量可视化监控面板serverBee
安装serverBee
mkdir serverbee
cd serverbee
wget https://db.serverbee.app/cli/v2.2.0/serverbee-deploy-aarch64-unknown-linux-musl.zip
unzip serverbee-deploy-aarch64-unknown-linux-musl.zip
./serverbee-deploy
casaos安装文件
ServerBee.yaml
面板
参考文章
八、安装samba(SMB)
安装smb方便挂载硬盘到电视机
hinas 默认内建的 samba 用户名 ubuntu 密码 ecoo1234
1.安装smb
apt install -y samba-histb
2.设置共享目录
mkdir /mnt/sda1/tvlive
chmod -R 777 /mnt/sda1/tvlive
vi /etc/samba/smb.conf
[tvlive]
path = /mnt/sda1/tvlive
read only = no
guest ok = yes
create mask = 0777
directory mask = 0777
browseable = yes
3.修改smb登录密码
smbpasswd -a ubuntu
4.重启smb
systemctl restart smbd
九、安装Alist
curl -fsSL "https://alist.nn.ci/v3.sh" | bash -s install
十、安装ttyd(终端)
apt update
apt install -y ttyd-histb
#缩略图引用地址
https://gitee.com/xjxjin/icons/raw/master/png/ttyd.png
十一、1Panel
casaos安装文件下载
#忘记密码,在终端输入
1pctl user-info
#缩略图引用地址
https://1panel.cn/docs/img/logo-white.png
十二、安装火狐浏览器
docker 直接安装,执行如下命令,因为里面设置了中文不乱码,所以首次安装后,如果立即访问是失败的,需要等待5-10分钟后才能访问,后台在下载中文字体在
docker run -d --name firefox -e LANG=zh_CN.UTF-8 -e TZ=Asia/Hong_Kong -e DISPLAY_WIDTH=1920 -e DISPLAY_HEIGHT=1080 -e KEEP_APP_RUNNING=1 -e ENABLE_CJK_FONT=1 -e VNC_PASSWORD=admin -p 5800:5800 -p 5900:5900 -v /DATA/AppData/firefox/config:/config:rw --shm-size 2g jlesage/firefox
如果是casaos安装可以下载配置文件
总结
查看剩余应用
查看tcp和udp
netstat -tulnp
只查看tcp
netstat -tlnp
端口号查询pid
lsof -i :53
pid 查询进程路径
ls -l /proc/PID/exe