Commit 8d3e0c0d authored by sixue.cheng's avatar sixue.cheng :speech_balloon:
Browse files

Update seting.sh

No related merge requests found
Showing with 4 additions and 14 deletions
+4 -14
#!/bin/bash
echo "******************* 镜像源***************************************"
# echo "******************* 镜像源***************************************"
# echo "deb http://ftp.ports.debian.org/debian-ports/ sid main" > /etc/apt/sources.list
# echo "deb http://ftp.ports.debian.org/debian-ports/ unreleased main" >> /etc/apt/sources.list
# echo "deb https://mirror.sjtu.edu.cn/debian-ports/ sid main" >> /etc/apt/sources.list
......@@ -15,8 +15,7 @@ echo "deb https://mirror.iscas.ac.cn/debian sid main" >> /etc/apt/sources.list
echo "deb https://snapshot.debian.org/archive/debian-ports/20221225T084846Z unstable main" >> /etc/apt/sources.list
cat /etc/apt/sources.list
apt-get update
echo "***********************下载系统基础应用**********************************"
# echo "***********************下载系统基础应用**********************************"
apt-get install wget unzip zip usbutils -y
DEBIAN_FRONTEND=noninteractive apt-get install libre2-9 libminizip1 iw -y
wget http://120.92.155.32:8082/artifactory/tools/chromium-103.0.5060.114.deb
......@@ -36,8 +35,7 @@ apt-get install -y sudo net-tools vim ssh curl iw
# echo roma:roma666 | chpasswd
# sed -i "/# Allow members of group sudo to execute any command/a roma ALL=(ALL:ALL) ALL" /etc/sudoers
usermod -aG sudo roma
echo "***********************替换5.15.0**********************************"
# echo "***********************替换5.15.0**********************************"
cd /lib/modules && rm -rf 5.15*
wget http://10.10.3.38:8082/artifactory/riscv/JH7110/RVSPK01_sdk_v3.6.1/5.15.0.zip
unzip 5.15.0.zip
......@@ -45,8 +43,7 @@ rm -rf 5.15.0.zip
# cd /etc/init.d/ && wget http://120.92.155.32:8082/artifactory/riscv/JH7110/tools/mic.zip && unzip mic.zip
# rm -rf mic.zip
# rm -rf image.fit
echo "***********************自定义启动服务**********************************"
# echo "***********************自定义启动服务**********************************"
cd /etc/systemd/system
rm -rf auto_run_script*
wget http://10.10.3.38:8082/artifactory/riscv/tools/debianauto.service.zip
......@@ -58,7 +55,6 @@ wget http://10.10.3.38:8082/artifactory/riscv/tools/modelservice.zip
unzip modelservice.zip
systemctl enable auto_model.service
rm -rf modelservice.zip
# echo "***********************串口工具ko-341、cdc-acm**********************************"
# cd /lib/modules/5.15.0/kernel/drivers/
# wget http://10.10.3.38:8082/artifactory/tools/ko/ch341.ko
......@@ -66,11 +62,9 @@ rm -rf modelservice.zip
# # insmod ch341.ko
# apt-get install minicom -y
# # minicom -D /dev/ttyUSB0
# echo "***********************屏幕参数测试工具**********************************"
# cd /usr/bin
# wget http://10.10.3.38:8082/artifactory/tools/modetest
# echo "***********************时区和时间**********************************"
# apt-get install ntpdate -y
# systemctl enable ntp
......@@ -78,7 +72,6 @@ rm -rf modelservice.zip
# timedatectl set-timezone Asia/Shanghai
# sudo timedatectl set-ntp true
# date
cd /lib/firmware
wget http://120.92.155.32:8082/artifactory/riscv/JH7110/tools/rtl8852bu_fw
wget http://120.92.155.32:8082/artifactory/riscv/JH7110/tools/rtl8852bu_config
......@@ -90,13 +83,10 @@ chmod 777 vpumutex
sysctl -w vm.drop_caches=1
sysctl -w vm.drop_caches=2
sysctl -w vm.drop_caches=3
sed -i 's/NAME==""/NAME=="wlan"/' /lib/udev/rules.d/80-net-setup-link.rules
chmod -R 777 /media
# echo "deb http://ftp.kr.debian.org/debian/ sid main" > /etc/apt/sources.list
# apt-get update
# wget http://120.92.155.32:8082/artifactory/tools/electron/electron-23_23.3.11-1_riscv64.deb
# apt-get install ./electron-23_23.3.11-1_riscv64.deb
# rm -rf electron-23_23.3.11-1_riscv64.deb
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment