Compare commits

4 Commits

Author SHA1 Message Date
zj
5d09e523aa Arch Linux release 25.12 2025-12-06 16:58:03 +08:00
zj
6fe36a9aad change to linux-6.14.9 2025-12-06 16:50:31 +08:00
zj
bcc08707b9 fix ffmpeg pure-ftpd.config 2025-12-02 01:36:23 +08:00
zj
5f078f0027 revert 1c26e23603
revert update smarttms.service pure--ftpd.config dcp
2025-12-02 01:28:22 +08:00
10 changed files with 74 additions and 35 deletions

View File

@@ -76,6 +76,10 @@ LocalFileSigLevel = Optional
#[core-testing]
#Include = /etc/pacman.d/mirrorlist
[custom]
SigLevel = Optional TrustAll
Server = http://git.yuyujing.cn/zj/custompkgs/raw/x86_64
[core]
Include = /etc/pacman.d/mirrorlist
@@ -100,6 +104,4 @@ Include = /etc/pacman.d/mirrorlist
#SigLevel = Optional TrustAll
#Server = file:///home/custompkgs
[custom]
SigLevel = Optional TrustAll
Server = http://git.yuyujing.cn/zj/custompkgs/raw/x86_64

View File

@@ -1 +1 @@
CentOS Linux release 8.5.2111
Arch Linux release 25.12

View File

@@ -0,0 +1 @@
/etc/systemd/system/smarttms.service

View File

@@ -0,0 +1,19 @@
[Unit]
Description=SmartTMS Service
After=mysqld.service
Wants=mysqld.service
[Service]
Type=forking
User=root
ExecStart=/usr/bin/smarttms start
ExecStop=/usr/bin/smarttms stop
ExecReload=/bin/kill -HUP $MAINPID
Restart=on-failure
RestartSec=5
TimeoutStartSec=300
TimeoutStopSec=300
[Install]
WantedBy=multi-user.target

View File

@@ -1 +0,0 @@
/home/smart/.config/systemd/user/smarttms.service

View File

@@ -1,22 +0,0 @@
[Unit]
Description=SmartTMS Service (User)
After=mysqld.service graphical.target
Wants=mysqld.service
[Service]
Type=forking
ExecStart=sudo /usr/bin/smarttms start
ExecStop=sudo /usr/bin/smarttms stop
ExecReload=sudo /usr/bin/smarttms restart
Restart=on-failure
RestartSec=5
TimeoutStartSec=300
TimeoutStopSec=300
Environment="DISPLAY=:0"
Environment="XAUTHORITY=/home/smart/.Xauthority"
Environment="XDG_CURRENT_DESKTOP=XFCE"
[Install]
WantedBy=default.target

View File

@@ -0,0 +1,24 @@
#!/bin/bash
# 更新 pacman 数据库,确保能找到本地仓库的包
pacman -Sy
# 安装本地仓库的 linux 和 linux-headers
# 由于 [custom] 仓库优先级最高pacman 会从这里安装
pacman -S --noconfirm linux linux-headers
# 重新生成 initramfs确保新内核能启动
# 这通常在安装内核时由 pacman 自动处理,但手动安装后最好确认一下
mkinitcpio -P
# 清理 pacman 缓存
pacman -Scc --noconfirm
# 删除本地仓库的数据库文件,避免在最终系统上占用空间
# rm -rf /localrepo/custom.db.tar.gz /localrepo/custom.files.tar.gz
# rm -rf /localrepo/*.pkg.tar.zst
# rmdir /localrepo
# 如果你希望在安装完成后移除本地仓库的定义,可以编辑 pacman.conf
# 但对于 livecd 或安装介质,通常不需要这样做,因为它是临时环境
# sed -i '/^\[custom\]/,/^Server = file:\/\/\/localrepo/d' /etc/pacman.conf

View File

@@ -109,9 +109,16 @@ LocalFileSigLevel = Optional
#[core-testing]
#Include = /etc/pacman.d/mirrorlist
[custom]
SigLevel = Optional TrustAll
#Server = http://yuyujing.cn/data/sh/custompkgs/x86_64/
#Server = http://192.168.10.207:3000/zj/custompkgs/raw/x86_64/
Server = http://git.yuyujing.cn/zj/custompkgs/raw/x86_64/
[core]
Include = /etc/pacman.d/mirrorlist
#[extra-testing]
#Include = /etc/pacman.d/mirrorlist
@@ -132,11 +139,7 @@ Include = /etc/pacman.d/mirrorlist
#[custom]
#SigLevel = Optional TrustAll
#Server = file:///home/custompkgs
[custom]
SigLevel = Optional TrustAll
#Server = http://yuyujing.cn/data/sh/custompkgs/x86_64/
#Server = http://192.168.10.207:3000/zj/custompkgs/raw/x86_64/
Server = http://git.yuyujing.cn/zj/custompkgs/raw/x86_64/
#more repositories here :
#https://wiki.archlinux.org/index.php/unofficial_user_repositories

View File

@@ -5,7 +5,7 @@ iso_name="BBTTMS"
iso_label="BBTTMS_$(date --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y%m)"
iso_publisher="BBTTMS <https://yuyujing.cn>"
iso_application="BBTTMS Arch Linux Live/Rescue/Install DVD"
iso_version="BBTTMS_$(date --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y.%m.%d)"
iso_version="TMS_$(date --date="@${SOURCE_DATE_EPOCH:-$(date +%s)}" +%Y.%m.%d)"
install_dir="BBTTMS"
buildmodes=('iso')
bootmodes=('bios.syslinux.mbr' 'bios.syslinux.eltorito'
@@ -59,4 +59,5 @@ file_permissions=(
["/home/smart/smart-organizer-service-install.sh"]="1000:1000:755"
["/usr/local/java/"]="0:0:755"
["/etc/redhat-release"]="0:0:644"
["/root/customize_airootfs.sh"]="0:0:755"
)

View File

@@ -16,6 +16,16 @@
#
##################################################################################################################
# 获取脚本所在的目录
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
# 假设 archiso.md 和 archiso 目录在脚本目录的上一级
PROJECT_ROOT="$( dirname "$SCRIPT_DIR" )"
# 导出这些变量,以便脚本后续使用
export SCRIPT_DIR
export PROJECT_ROOT
if lsblk -f | grep btrfs > /dev/null 2>&1 ; then
echo
echo "################################################################## "
@@ -131,7 +141,8 @@ echo
echo
echo "Saving current archiso version to archiso.md"
sudo sed -i "s/\(^archiso-version=\).*/\1$archisoVersion/" ../archiso.md
#sudo sed -i "s/\(^archiso-version=\).*/\1$archisoVersion/" ../archiso.md
sudo sed -i "s/\(^archiso-version=\).*/\1$archisoVersion/" "$PROJECT_ROOT/archiso.md"
echo
echo "Making mkarchiso verbose"
sudo sed -i 's/quiet="y"/quiet="n"/g' /usr/bin/mkarchiso
@@ -152,7 +163,8 @@ echo
echo "Copying the Archiso folder to build work"
echo
mkdir $buildFolder
cp -r ../archiso $buildFolder/archiso
#cp -r ../archiso $buildFolder/archiso
cp -r "$PROJECT_ROOT/archiso" "$buildFolder/archiso"
# echo
# echo "################################################################## "