Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tops
ops
Linux
Commits
c79e57eb
Commit
c79e57eb
authored
1 year ago
by
sixue.cheng
Browse files
Options
Download
Email Patches
Plain Diff
Update seting.sh, .gitlab-ci.yml
parent
8267f293
RVSPK01-debian3.6.1
No related merge requests found
Pipeline
#8341
passed with stages
in 14 minutes and 44 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitlab-ci.yml
+5
-5
.gitlab-ci.yml
seting.sh
+22
-10
seting.sh
with
27 additions
and
15 deletions
+27
-15
.gitlab-ci.yml
+
5
-
5
View file @
c79e57eb
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
seting.sh
+
22
-
10
View file @
c79e57eb
#!/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`
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help