Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Config
Commits
d87e3ae5
Commit
d87e3ae5
authored
May 09, 2018
by
Igor Pecovnik
Browse files
Debug cleanup and breaking desktop install to mini and default (with browser)
parent
c19bba0d
Changes
3
Hide whitespace changes
Inline
Side-by-side
debian-config-functions
View file @
d87e3ae5
...
...
@@ -397,7 +397,7 @@ function configure_desktop ()
if
[
-n
"
$CHOSEN_USER
"
]
;
then
# install desktop and nodm
debconf-apt-progress
--
apt-get update
debconf-apt-progress
--
apt-get
-y
install
--install-recommends
armbian-
${
DISTROID
}
-desktop
debconf-apt-progress
--
apt-get
-y
install
$1
armbian-
${
DISTROID
}
-desktop
DEBIAN_FRONTEND
=
noninteractive debconf-apt-progress
--
apt-get
-y
-qq
install
nodm
# add user to groups
for
additionalgroup
in
sudo
netdev audio video dialout plugdev bluetooth systemd-journal ssh
;
do
...
...
debian-config-jobs
View file @
d87e3ae5
...
...
@@ -166,7 +166,6 @@ function jobs ()
#
"Full"
|
"Mini"
)
if
!
is_package_manager_running
;
then
echo
"armbian-firmware
$(
echo
-
"
${
1
,,
}
"
|
sed
's/-mini//'
)
"
debconf-apt-progress
--
apt-get
-y
purge armbian-firmware
*
# workaround since pkg replace deesn't work properly
debconf-apt-progress
--
apt-get
-y
install
armbian-firmware
$(
echo
-
"
${
1
,,
}
"
|
sed
's/-mini//'
)
fi
...
...
@@ -764,13 +763,18 @@ function jobs ()
debconf-apt-progress
--
apt-get
-o
Dpkg::Options::
=
"--force-confold"
-y
--no-install-recommends
install
nodm
\
&&
echo
"/usr/sbin/nodm"
>
/etc/X11/default-display-manager
&&
\
sed
-i
"s/^NODM_ENABLED=.*/NODM_ENABLED=true/"
/etc/default/nodm
&&
service nodm start
else
configure_desktop
fi
fi
fi
;;
"Minimal"
)
configure_desktop
;;
"Default"
)
configure_desktop
"--install-recommends"
;;
"Nodm"
)
[[
-f
/etc/X11/default-display-manager
]]
&&
echo
"/usr/sbin/nodm"
>
/etc/X11/default-display-manager
...
...
debian-config-submenu
View file @
d87e3ae5
...
...
@@ -78,8 +78,14 @@ while true; do
else
if
[[
-n
$DESKTOP_INSTALLED
]]
;
then
LIST+
=(
"Desktop"
"Enable desktop"
)
if
!
check_if_installed mpv
;
then
LIST+
=(
"Default"
"Install desktop with browser and extras"
)
fi
else
LIST+
=(
"Desktop"
"Install desktop"
)
LIST+
=(
"Minimal"
"Install minimal desktop"
)
if
!
check_if_installed mpv
;
then
LIST+
=(
"Default"
"Install desktop with browser and extras"
)
fi
fi
fi
...
...
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