Browse Source

update

master
crims0n 5 years ago
parent
commit
5733e82809
  1. 4
      linux-live/buildconfig
  2. 30
      linux-live/minioslib
  3. 3
      linux-live/pkglists/ubuntu-gui.list
  4. 1
      linux-live/pkglists/ubuntu-main.list

4
linux-live/buildconfig

@ -21,8 +21,8 @@ DEV_SYSTEM="0"
# если ="1", создаёт резервную копию в родительской папке # если ="1", создаёт резервную копию в родительской папке
CREATE_BACKUP="0" CREATE_BACKUP="0"
#DEBIAN_FRONTEND_TYPE="noninteractive" DEBIAN_FRONTEND_TYPE="noninteractive"
DEBIAN_FRONTEND_TYPE="dialog" #DEBIAN_FRONTEND_TYPE="dialog"
APT_CMD="apt-get" APT_CMD="apt-get"

30
linux-live/minioslib

@ -1019,12 +1019,14 @@ function main_pkg_list() {
fi fi
if [ -f $SCRIPT_DIR/pkglists/ubuntu-gui.list ]; then if [ -f $SCRIPT_DIR/pkglists/ubuntu-gui.list ]; then
sudo DEBIAN_FRONTEND=$DEBIAN_FRONTEND_TYPE \ sudo DEBIAN_FRONTEND=$DEBIAN_FRONTEND_TYPE \
$APT_CMD install $APT_OPTIONS tasksel >>$OUTPUT 2>&1 &&
tasksel install xubuntu-core >>$OUTPUT 2>&1 &&
$APT_CMD install $APT_OPTIONS \ $APT_CMD install $APT_OPTIONS \
$(grep -vE "^\s*#" $SCRIPT_DIR/pkglists/ubuntu-gui.list | tr "\n" " ") >>$OUTPUT 2>&1 $(grep -vE "^\s*#" $SCRIPT_DIR/pkglists/ubuntu-gui.list | tr "\n" " ") >>$OUTPUT 2>&1
fi fi
if [ -f $SCRIPT_DIR/pkglists/ubuntu-ubiquity.list ]; then if [ -f $SCRIPT_DIR/pkglists/ubuntu-ubiquity.list ]; then
sudo DEBIAN_FRONTEND=$DEBIAN_FRONTEND_TYPE \ sudo DEBIAN_FRONTEND=$DEBIAN_FRONTEND_TYPE \
$APT_CMD install $APT_OPTIONS \ $APT_CMD install $APT_OPTIONS --no-install-recommends \
$(grep -vE "^\s*#" $SCRIPT_DIR/pkglists/ubuntu-ubiquity.list | tr "\n" " ") >>$OUTPUT 2>&1 $(grep -vE "^\s*#" $SCRIPT_DIR/pkglists/ubuntu-ubiquity.list | tr "\n" " ") >>$OUTPUT 2>&1
fi fi
fi fi
@ -1043,11 +1045,13 @@ function main_pkg_list() {
$(grep -vE "^\s*#" $SCRIPT_DIR/pkglists/ubuntu-main.list | tr "\n" " ") $(grep -vE "^\s*#" $SCRIPT_DIR/pkglists/ubuntu-main.list | tr "\n" " ")
fi fi
if [ -f $SCRIPT_DIR/pkglists/ubuntu-gui.list ]; then if [ -f $SCRIPT_DIR/pkglists/ubuntu-gui.list ]; then
$APT_CMD install $APT_OPTIONS tasksel &&
tasksel install xubuntu-core &&
$APT_CMD install $APT_OPTIONS \ $APT_CMD install $APT_OPTIONS \
$(grep -vE "^\s*#" $SCRIPT_DIR/pkglists/ubuntu-gui.list | tr "\n" " ") $(grep -vE "^\s*#" $SCRIPT_DIR/pkglists/ubuntu-gui.list | tr "\n" " ")
fi fi
if [ -f $SCRIPT_DIR/pkglists/ubuntu-ubiquity.list ]; then if [ -f $SCRIPT_DIR/pkglists/ubuntu-ubiquity.list ]; then
$APT_CMD install $APT_OPTIONS \ $APT_CMD install $APT_OPTIONS --no-install-recommends \
$(grep -vE "^\s*#" $SCRIPT_DIR/pkglists/ubuntu-ubiquity.list | tr "\n" " ") $(grep -vE "^\s*#" $SCRIPT_DIR/pkglists/ubuntu-ubiquity.list | tr "\n" " ")
fi fi
fi fi
@ -1149,6 +1153,18 @@ EOF
echo "resolvconf resolvconf/linkify-resolvconf boolean true" | debconf-set-selections echo "resolvconf resolvconf/linkify-resolvconf boolean true" | debconf-set-selections
dpkg-reconfigure resolvconf >>$OUTPUT 2>&1 dpkg-reconfigure resolvconf >>$OUTPUT 2>&1
fi fi
if [ $LIVE_TYPE = "ubuntu" ]; then
# network manager
cat <<EOF >/etc/NetworkManager/NetworkManager.conf
[main]
rc-manager=resolvconf
plugins=ifupdown,keyfile
dns=dnsmasq
[ifupdown]
managed=false
EOF
dpkg-reconfigure network-manager >>$OUTPUT 2>&1
fi
elif [ $DEBIAN_FRONTEND_TYPE = "dialog" ]; then elif [ $DEBIAN_FRONTEND_TYPE = "dialog" ]; then
dpkg-reconfigure console-setup dpkg-reconfigure console-setup
@ -1163,7 +1179,7 @@ EOF
if grep resolvconf $SCRIPT_DIR/pkglists/main.list >>$OUTPUT 2>&1 || grep resolvconf $SCRIPT_DIR/pkglists/other.list || [ $DISTRIBUTION != "xenial" ] >>$OUTPUT 2>&1; then if grep resolvconf $SCRIPT_DIR/pkglists/main.list >>$OUTPUT 2>&1 || grep resolvconf $SCRIPT_DIR/pkglists/other.list || [ $DISTRIBUTION != "xenial" ] >>$OUTPUT 2>&1; then
dpkg-reconfigure resolvconf dpkg-reconfigure resolvconf
fi fi
if [ $LIVE_TYPE = "ubuntu" ]; then
# network manager # network manager
cat <<EOF >/etc/NetworkManager/NetworkManager.conf cat <<EOF >/etc/NetworkManager/NetworkManager.conf
[main] [main]
@ -1174,7 +1190,7 @@ dns=dnsmasq
managed=false managed=false
EOF EOF
dpkg-reconfigure network-manager dpkg-reconfigure network-manager
fi
fi fi
# remove unused # remove unused
@ -1235,12 +1251,18 @@ EOF
#rm /etc/alternatives/default.plymouth #rm /etc/alternatives/default.plymouth
#rm /etc/alternatives/text.plymouth #rm /etc/alternatives/text.plymouth
update-alternatives --install /usr/share/plymouth/themes/default.plymouth default.plymouth /usr/share/plymouth/themes/minios-logo/minios-logo.plymouth 200 update-alternatives --install /usr/share/plymouth/themes/default.plymouth default.plymouth /usr/share/plymouth/themes/minios-logo/minios-logo.plymouth 200
update-alternatives --install /usr/share/plymouth/themes/text.plymouth text.plymouth /usr/share/plymouth/themes/minios-text/minios-text.plymouth 200
update-alternatives --config default.plymouth --skip-auto update-alternatives --config default.plymouth --skip-auto
#ln -s /usr/share/plymouth/themes/minios-logo/minios-logo.plymouth /etc/alternatives/default.plymouth #ln -s /usr/share/plymouth/themes/minios-logo/minios-logo.plymouth /etc/alternatives/default.plymouth
#ln -s /usr/share/plymouth/themes/minios-logo/minios-text.plymouth /etc/alternatives/text.plymouth #ln -s /usr/share/plymouth/themes/minios-logo/minios-text.plymouth /etc/alternatives/text.plymouth
update-initramfs -u update-initramfs -u
if [ -f /usr/share/xfce4/backdrops/xubuntu-wallpaper.png ]; then
rm /usr/share/xfce4/backdrops/xubuntu-wallpaper.png rm /usr/share/xfce4/backdrops/xubuntu-wallpaper.png
fi
if [ ! -d /usr/share/xfce4/backdrops ]; then
mkdir -p /usr/share/xfce4/backdrops
ln -s /usr/share/backgrounds/MiniOS.png /usr/share/xfce4/backdrops/xubuntu-wallpaper.png ln -s /usr/share/backgrounds/MiniOS.png /usr/share/xfce4/backdrops/xubuntu-wallpaper.png
fi
: 'echo "Set up user 'ubuntu'" >>$OUTPUT 2>&1 : 'echo "Set up user 'ubuntu'" >>$OUTPUT 2>&1
adduser --gecos '' ubuntu --disabled-password >>$OUTPUT 2>&1 adduser --gecos '' ubuntu --disabled-password >>$OUTPUT 2>&1

3
linux-live/pkglists/ubuntu-gui.list

@ -1,4 +1,5 @@
xubuntu-core # xubuntu-core ставим через tasksel, иначе он тянет за собой части gnome-desktop и gdm3
#xubuntu-core
mousepad mousepad
blueman blueman
ristretto ristretto

1
linux-live/pkglists/ubuntu-main.list

@ -6,3 +6,4 @@ os-prober
network-manager network-manager
net-tools net-tools
wireless-tools wireless-tools
localepurge
Loading…
Cancel
Save