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
Show whitespace changes
Inline
Side-by-side
debian-config-functions
View file @
d87e3ae5
...
@@ -397,7 +397,7 @@ function configure_desktop ()
...
@@ -397,7 +397,7 @@ function configure_desktop ()
if
[
-n
"
$CHOSEN_USER
"
]
;
then
if
[
-n
"
$CHOSEN_USER
"
]
;
then
# install desktop and nodm
# install desktop and nodm
debconf-apt-progress
--
apt-get update
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
DEBIAN_FRONTEND
=
noninteractive debconf-apt-progress
--
apt-get
-y
-qq
install
nodm
# add user to groups
# add user to groups
for
additionalgroup
in
sudo
netdev audio video dialout plugdev bluetooth systemd-journal ssh
;
do
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 ()
...
@@ -166,7 +166,6 @@ function jobs ()
#
#
"Full"
|
"Mini"
)
"Full"
|
"Mini"
)
if
!
is_package_manager_running
;
then
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
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//'
)
debconf-apt-progress
--
apt-get
-y
install
armbian-firmware
$(
echo
-
"
${
1
,,
}
"
|
sed
's/-mini//'
)
fi
fi
...
@@ -764,13 +763,18 @@ function jobs ()
...
@@ -764,13 +763,18 @@ function jobs ()
debconf-apt-progress
--
apt-get
-o
Dpkg::Options::
=
"--force-confold"
-y
--no-install-recommends
install
nodm
\
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
&&
\
&&
echo
"/usr/sbin/nodm"
>
/etc/X11/default-display-manager
&&
\
sed
-i
"s/^NODM_ENABLED=.*/NODM_ENABLED=true/"
/etc/default/nodm
&&
service nodm start
sed
-i
"s/^NODM_ENABLED=.*/NODM_ENABLED=true/"
/etc/default/nodm
&&
service nodm start
else
configure_desktop
fi
fi
fi
fi
fi
;;
;;
"Minimal"
)
configure_desktop
;;
"Default"
)
configure_desktop
"--install-recommends"
;;
"Nodm"
)
"Nodm"
)
[[
-f
/etc/X11/default-display-manager
]]
&&
echo
"/usr/sbin/nodm"
>
/etc/X11/default-display-manager
[[
-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
...
@@ -78,8 +78,14 @@ while true; do
else
else
if
[[
-n
$DESKTOP_INSTALLED
]]
;
then
if
[[
-n
$DESKTOP_INSTALLED
]]
;
then
LIST+
=(
"Desktop"
"Enable desktop"
)
LIST+
=(
"Desktop"
"Enable desktop"
)
if
!
check_if_installed mpv
;
then
LIST+
=(
"Default"
"Install desktop with browser and extras"
)
fi
else
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
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