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

Update seting.sh, .gitlab-ci.yml

No related merge requests found
Pipeline #8341 passed with stages
in 14 minutes and 44 seconds
Showing with 27 additions and 15 deletions
+27 -15
......@@ -78,11 +78,11 @@ upload-rootfs-job:
- sudo unzip starfive-visionfive2-vfat.part.zip
- sudo bash genimage.sh && sudo ./spl_tool -i -f sdcard.img
- sudo zip -r debian-sdcard.img.zip sdcard.img
- curl -uadmin:$basejforgpass -T debian-sdcard.img.zip $basejforg/debian12-sdcard.img.zip
- cd $code_url/rootfs
- sudo tar -zcf ../mini-debian.tar.gz *
- cd $code_url
- curl -uadmin:$basejforgpass -T mini-debian.tar.gz $basejforg/mini-debian11.tar.gz
- curl -uadmin:$basejforgpass -T debian-sdcard.img.zip $basejforg/debian12-sdcard-spk.img.zip
# - cd $code_url/rootfs
# - sudo tar -zcf ../mini-debian.tar.gz *
# - cd $code_url
# - curl -uadmin:$basejforgpass -T mini-debian.tar.gz $basejforg/mini-debian11.tar.gz
tags:
# - shell.buildtest
# - sharerunner
......
#!/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
......@@ -9,15 +9,27 @@ echo "**********************************************************"
# echo "deb http://ftp.kr.debian.org/debian-ports/ unreleased main" >> /etc/apt/sources.list
# echo "deb http://deb.debian.org/debian-ports sid main" >> /etc/apt/sources.list
# echo "deb http://deb.debian.org/debian-ports unreleased main" >> /etc/apt/sources.list
echo "deb https://mirror.iscas.ac.cn/debian sid main" >> /etc/apt/sources.list
# echo "deb https://mirror.iscas.ac.cn/debian sid main" >> /etc/apt/sources.list
# echo "deb http://ftp.de.debian.org/debian-ports/ sid main" >> /etc/apt/sources.list
# echo "deb http://ftp.de.debian.org/debian-ports/ unreleased main" >> /etc/apt/sources.list
echo "deb https://snapshot.debian.org/archive/debian-ports/20221225T084846Z unstable main" >> /etc/apt/sources.list
# echo "deb https://snapshot.debian.org/archive/debian-ports/20221225T084846Z unstable main" >> /etc/apt/sources.list
echo "deb http://ftp.kr.debian.org/debian/ sid main" > /etc/apt/sources.list
echo "deb https://mirror.sjtu.edu.cn/debian-ports/ sid main" >> /etc/apt/sources.list
echo "deb https://mirror.sjtu.edu.cn/debian-ports/ unreleased main" >> /etc/apt/sources.list
echo "deb https://mirror.sjtu.edu.cn/debian-ports/ unstable main" >> /etc/apt/sources.list
cat /etc/apt/sources.list
echo "***********************下载系统基础应用**********************************"
apt-get update
apt-get install wget unzip zip usbutils -y
apt-get install -y sudo net-tools vim ssh curl iw ethtool
DEBIAN_FRONTEND=noninteractive apt-get install libre2-9 libminizip1 iw -y
apt-get install openvpn -y
apt-get install network-manager-openvpn-gnome -y
apt-get install pavucontrol gnome-sound-recorder -y
echo "***********************下载deb包安装**********************************"
# wget http://120.92.155.32:8082/artifactory/tools/chromium-103.0.5060.114.deb
# apt-get install ./chromium-103.0.5060.114.deb
# rm -rf chromium-103.0.5060.114.deb
......@@ -25,20 +37,22 @@ DEBIAN_FRONTEND=noninteractive apt-get install libre2-9 libminizip1 iw -y
# unzip LibreOffice_7.5_riscv64.zip
# apt-get install ./LibreOffice_7.5_riscv64.deb
# rm -rf LibreOffice_7.5_riscv64*
# 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
# ls -l
# apt-get install cheese -y
apt-get install -y sudo net-tools vim ssh curl iw
# apt-get install -y systemd systemd-sysv sudo net-tools ethtool ifupdown iputils-ping vim ssh bash-completion parted apt-transport-https ca-certificates curl gnupg-agent software-properties-common i2c-tools
# apt-get install -y systemd systemd-sysv ifupdown iputils-ping bash-completion parted apt-transport-https ca-certificates gnupg-agent software-properties-common i2c-tools
# apt-get install gcc clang -y
# apt-get install fuse-overlayfs docker.io -y
# useradd -m -G users -s /bin/bash roma
# 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
cd /lib/modules && rm -rf 5.15*
wget http://10.10.3.38:8082/artifactory/riscv/tools/speaker/5.15.0.zip
# wget http://10.10.3.38:8082/artifactory/riscv/JH7110/RVSPK01_sdk_v3.6.1/5.15.0.zip
wget http://10.10.3.38:8082/artifactory/riscv/JH7110/RVSPK01_sdk_v3.6.1/5.15.0.zip
unzip 5.15.0.zip
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
......@@ -69,9 +83,7 @@ chmod 777 vpumutex
sysctl -w vm.drop_caches=1
sysctl -w vm.drop_caches=2
sysctl -w vm.drop_caches=3
# 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
sed -i 's/NAME==""/NAME=="wlan"/' /lib/udev/rules.d/80-net-setup-link.rules
chmod -R 777 /media
# num=`sed -n '/if \[ -f \/etc\/bash_completion \] \&& \! shopt -oq posix\; then/=' /root/.bashrc`
......
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