Skip to content

Commit

Permalink
Added: reTerminal_arm64 scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
mingzhangqun committed Jun 2, 2021
1 parent 071d395 commit 1e90aa6
Show file tree
Hide file tree
Showing 12 changed files with 241 additions and 40 deletions.
5 changes: 5 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -228,9 +228,14 @@ export PUBKEY_SSH_FIRST_USER
export CLEAN
export IMG_NAME
export APT_PROXY
export PROXYCHAINS
export GIT_MODULE
export GIT_DEMO
export COPY_FILES="${COPY_FILES:-0}"

export STAGE
export STAGE_DIR
export SUB_STAGE_DIR
export STAGE_WORK_DIR
export PREV_STAGE
export PREV_STAGE_DIR
Expand Down
11 changes: 11 additions & 0 deletions config_reTerminal
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
IMG_NAME='Raspbian-reTerminal'
APT_PROXY=http://192.168.111.150:3142
USE_QCOW2=0
USE_QEMU=0
DEPLOY_ZIP=1
ENABLE_SSH=1
PROXYCHAINS=proxychains4
GIT_MODULE='https://github.com/Seeed-Studio/seeed-linux-dtoverlays.git --depth=1'
GIT_DEMO='https://github.com/Seeed-Studio/Seeed_Python_ReTerminalQt5Examples.git --depth=1'
COPY_FILES=1
WPA_COUNTRY=CN
4 changes: 2 additions & 2 deletions export-image/04-finalise/01-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,10 @@ cp "$ROOTFS_DIR/etc/rpi-issue" "$INFO_FILE"
head -n1 | sed -n 's|.* \([^ ]*\)$|\1|p')
printf "\nFirmware: https://github.com/raspberrypi/firmware/tree/%s\n" "$firmware"

kernel="$(curl -s -L "https://github.com/raspberrypi/firmware/raw/$firmware/extra/git_hash")"
kernel="$(${PROXYCHAINS} curl -s -L "https://github.com/raspberrypi/firmware/raw/$firmware/extra/git_hash")"
printf "Kernel: https://github.com/raspberrypi/linux/tree/%s\n" "$kernel"

uname="$(curl -s -L "https://github.com/raspberrypi/firmware/raw/$firmware/extra/uname_string7")"
uname="$(${PROXYCHAINS} curl -s -L "https://github.com/raspberrypi/firmware/raw/$firmware/extra/uname_string7")"
printf "Uname string: %s\n" "$uname"
fi

Expand Down
44 changes: 22 additions & 22 deletions stage4/00-install-packages/01-packages
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
python-automationhat python3-automationhat
python-blinkt python3-blinkt
python-cap1xxx python3-cap1xxx
python-drumhat python3-drumhat
python-envirophat python3-envirophat
python-explorerhat python3-explorerhat
python-fourletterphat python3-fourletterphat
python-microdotphat python3-microdotphat
python-mote python3-mote
python-motephat python3-motephat
python-phatbeat python3-phatbeat
python-pianohat python3-pianohat
python-piglow python3-piglow
python-rainbowhat python3-rainbowhat
python-scrollphat python3-scrollphat
python-scrollphathd python3-scrollphathd
python-sn3218 python3-sn3218
python-skywriter python3-skywriter
python-touchphat python3-touchphat
python-buttonshim python3-buttonshim
python-unicornhathd python3-unicornhathd
python-pantilthat python3-pantilthat
#python-automationhat python3-automationhat
#python-blinkt python3-blinkt
#python-cap1xxx python3-cap1xxx
#python-drumhat python3-drumhat
#python-envirophat python3-envirophat
#python-explorerhat python3-explorerhat
#python-fourletterphat python3-fourletterphat
#python-microdotphat python3-microdotphat
#python-mote python3-mote
#python-motephat python3-motephat
#python-phatbeat python3-phatbeat
#python-pianohat python3-pianohat
#python-piglow python3-piglow
#python-rainbowhat python3-rainbowhat
#python-scrollphat python3-scrollphat
#python-scrollphathd python3-scrollphathd
#python-sn3218 python3-sn3218
#python-skywriter python3-skywriter
#python-touchphat python3-touchphat
#python-buttonshim python3-buttonshim
#python-unicornhathd python3-unicornhathd
#python-pantilthat python3-pantilthat
15 changes: 0 additions & 15 deletions stage4/03-bookshelf/00-run.sh

This file was deleted.

1 change: 0 additions & 1 deletion stage4/03-bookshelf/files/.gitignore

This file was deleted.

83 changes: 83 additions & 0 deletions stage4/06-reTerminal/00-run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
#!/bin/bash -e


if [ "X$GIT_MODULE" != "X" ]; then
MODULE_PATH=/tmp/seeed-linux-dtoverlays
${PROXYCHAINS} git clone ${GIT_MODULE} "${ROOTFS_DIR}${MODULE_PATH}"
${PROXYCHAINS} wget https://goo.gl/htHv7m -O "${ROOTFS_DIR}/boot/dt-blob.bin"

on_chroot << EOF
cd ${MODULE_PATH}
sudo ARCH=arm64 ./scripts/reTerminal.sh
EOF

rm -rfv "${ROOTFS_DIR}${MODULE_PATH}"
fi

if [ "X$GIT_DEMO" != "X" ]; then
DEMO_PATH=/home/${FIRST_USER_NAME}/Seeed_Python_ReTerminalQt5Examples
${PROXYCHAINS} git clone ${GIT_DEMO} "${ROOTFS_DIR}${DEMO_PATH}"

on_chroot << EOF
mkdir -pv /home/${FIRST_USER_NAME}/Desktop/
cp -v ${DEMO_PATH}/src/r2.desktop /home/${FIRST_USER_NAME}/Desktop/
sudo chown -vR ${FIRST_USER_NAME}:${FIRST_USER_NAME} /home/${FIRST_USER_NAME}
EOF

rm -rfv "${ROOTFS_DIR}${DEMO_PATH}"/.git
fi

if [ -f "purges" ]; then
log "Begin ${SUB_STAGE_DIR}/purges"
PACKAGES="$(sed -f "${SCRIPT_DIR}/remove-comments.sed" < "purges")"
if [ -n "$PACKAGES" ]; then
on_chroot << EOF
apt-get autoremove --purge -y $PACKAGES
EOF
if [ "${USE_QCOW2}" = "1" ]; then
on_chroot << EOF
apt-get clean
EOF
fi
fi
log "End ${SUB_STAGE_DIR}/purges"
fi

if [ -f "remove" ]; then
log "Begin ${SUB_STAGE_DIR}/remove"
PACKAGES="$(sed -f "${SCRIPT_DIR}/remove-comments.sed" < "remove")"
on_chroot << EOF
rm -rfv $PACKAGES
EOF
log "End ${SUB_STAGE_DIR}/remove"
fi

if [ -f "packages" ]; then
log "Begin ${SUB_STAGE_DIR}/packages"
PACKAGES="$(sed -f "${SCRIPT_DIR}/remove-comments.sed" < "packages")"
if [ -n "$PACKAGES" ]; then
on_chroot << EOF
apt-get -o APT::Acquire::Retries=3 install -y $PACKAGES
EOF
if [ "${USE_QCOW2}" = "1" ]; then
on_chroot << EOF
apt-get clean
EOF
fi
fi
log "End ${SUB_STAGE_DIR}/packages"
fi

if [ "${COPY_FILES}" = "1" ]; then
mkdir -p ${ROOTFS_DIR}/home/${FIRST_USER_NAME}/.config/libfm \
&& cp -fv ./files/libfm.conf "$_"
on_chroot << EOF
sudo chown -vR ${FIRST_USER_NAME}:${FIRST_USER_NAME} /home/${FIRST_USER_NAME}/.config
EOF

SCHEMAS_PATH=/usr/share/glib-2.0/schemas/
cp -fv ./files/20_onboard-default-settings.gschema.override "${ROOTFS_DIR}${SCHEMAS_PATH}"
on_chroot << EOF
glib-compile-schemas ${SCHEMAS_PATH}
EOF
fi
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[org.onboard]
layout='Small'
theme='Nightshade'
xembed-onboard=true

[org.onboard.window]
docking-enabled=true
force-to-top=true
window-handles=''

[org.onboard.auto-show]
enabled=true

50 changes: 50 additions & 0 deletions stage4/06-reTerminal/files/libfm.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Configuration file for the libfm version 1.3.1.
# Autogenerated file, don't edit, your changes will be overwritten.

[config]
single_click=0
use_trash=1
confirm_del=1
confirm_trash=1
advanced_mode=0
si_unit=0
force_startup_notify=1
backup_as_hidden=1
no_usb_trash=1
no_child_non_expandable=0
show_full_names=0
only_user_templates=0
template_run_app=0
template_type_once=0
auto_selection_delay=600
drop_default_action=auto
defer_content_test=0
quick_exec=1
show_internal_volumes=0
terminal=x-terminal-emulator %s
archiver=xarchiver
thumbnail_local=1
thumbnail_max=2048
smart_desktop_autodrop=1
cutdown_menus=1
cutdown_places=1
real_expanders=1

[ui]
big_icon_size=48
small_icon_size=24
pane_icon_size=24
thumbnail_size=80
show_thumbnail=1
shadow_hidden=0

[places]
places_home=1
places_desktop=0
places_root=1
places_computer=0
places_trash=0
places_applications=0
places_network=0
places_unmounted=1
places_volmounts=1
13 changes: 13 additions & 0 deletions stage4/06-reTerminal/packages
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
at-spi2-core onboard
qml-module-qtquick-shapes
python3-pyside2.qtqml
python3-pyside2.qtcore
python3-pyside2.qtnetwork
python3-pyside2.qtgui
python3-pyside2.qtwidgets
python3-pyside2.qtquick
qtquickcontrols2-5-dev
qml-module-qtcharts
qml-module-qtquick-controls
qml-module-qtquick-controls2
python3-evdev python3-psutil
22 changes: 22 additions & 0 deletions stage4/06-reTerminal/purges
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
python2.7
raspberrypi-kernel-headers
git
#fonts-freefont-ttf
#fonts-dejavu-core
man-db manpages manpages-dev
#gdisk
#mousepad
#xarchiver
#galculator
#geoip-database
#build-essential
#gcc-4.9-base
#gcc-5-base
#gcc-6-base
#gcc-7-base
#g++ g++-8
#gdb gdbm-l10n
cups cups-common cups-pk-helper cups-ppdc sane-utils
pi-printer-support printer-driver-escpr system-config-printer
geany
thonny
20 changes: 20 additions & 0 deletions stage4/06-reTerminal/remove
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/usr/lib/chromium-browser/chromium-browser
#/usr/share/icons/Adwaita
#/usr/share/icons/HighContrast
#/usr/share/icons/gnome
/usr/share/rpd-wallpaper/aurora.jpg
/usr/share/rpd-wallpaper/balloon.jpg
/usr/share/rpd-wallpaper/bridge.jpg
/usr/share/rpd-wallpaper/canyon.jpg
#/usr/share/rpd-wallpaper/cliff.jpg
/usr/share/rpd-wallpaper/clouds.jpg
#/usr/share/rpd-wallpaper/fisherman.jpg
/usr/share/rpd-wallpaper/fjord.jpg
/usr/share/rpd-wallpaper/islands.jpg
/usr/share/rpd-wallpaper/lasers.jpg
/usr/share/rpd-wallpaper/mountain.jpg
/usr/share/rpd-wallpaper/road.jpg
/usr/share/rpd-wallpaper/sand.jpg
#/usr/share/rpd-wallpaper/temple.jpg
/usr/share/rpd-wallpaper/trees.jpg
#/usr/share/rpd-wallpaper/waterfall.jpg

0 comments on commit 1e90aa6

Please sign in to comment.