Merge lp:~laga/ltsp/ltsp.karmic into lp:~stgraber/ltsp/ltsp.karmic

Proposed by laga
Status: Merged
Merged at revision: not available
Proposed branch: lp:~laga/ltsp/ltsp.karmic
Merge into: lp:~stgraber/ltsp/ltsp.karmic
Diff against target: None lines
To merge this branch: bzr merge lp:~laga/ltsp/ltsp.karmic
Reviewer Review Type Date Requested Status
Stéphane Graber Pending
Review via email: mp+10241@code.launchpad.net
To post a comment you must log in.
Revision history for this message
laga (laga) wrote :

Hey,

the mythbuntu plugin needs an update. Please see this branch.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2009-08-17 04:40:58 +0000
3+++ debian/changelog 2009-08-17 12:07:23 +0000
4@@ -1,3 +1,13 @@
5+ltsp (5.1.82-0ubuntu3) karmic; urgency=low
6+
7+ * Update debian/extra-plugins/030_mythbuntu:
8+ - Remove --mythbuntu-copy-user-credentials as chpasswd does not
9+ support encrypted passwords anymore
10+ - Do not install linux-restricted-modules as it doesn't exist anymore
11+ - Install mythbuntu-common
12+
13+ -- Michael Haas <laga@laga.ath.cx> Mon, 17 Aug 2009 14:02:50 +0200
14+
15 ltsp (5.1.82-0ubuntu2) karmic; urgency=low
16
17 * Start monitor_nbd with start-stop-daemon.
18
19=== modified file 'debian/extra-plugins/030-mythbuntu'
20--- debian/extra-plugins/030-mythbuntu 2009-02-09 18:58:17 +0000
21+++ debian/extra-plugins/030-mythbuntu 2009-08-17 12:07:23 +0000
22@@ -5,7 +5,6 @@
23 # the plugin to use --kiosk kde for example to install kdm and konqueror
24 # instead if we'd set it to true
25 add_option "mythbuntu" "`eval_gettext "create a Mythbuntu fat client."`" "advanced" "false"
26- add_option "mythbuntu-copy-user-credentials" "`eval_gettext "Mythbuntu: copy login credentials from current user"`" "advanced" "false"
27 add_option "mythbuntu-user-credentials" "`eval_gettext "Mythbuntu: specify login credentials as username:password"`" "advanced" "true"
28 ;;
29
30@@ -14,18 +13,11 @@
31 if [ -n "$option_mythbuntu_value" ]; then
32 # set an environment variable we can pick up later
33 MYTHTV="True"
34- if [ -n "$option_mythbuntu_copy_user_credentials_value" ]; then
35- MBCRED="copy"
36- fi
37 if [ -n "$option_mythbuntu_user_credentials_value" ]; then
38- if [ -n "$MBCRED" ]; then
39- echo "Only specify one of --mythbuntu-copy-user-credentials and --mythbuntu-user-credentials"
40- exit 100
41- fi
42 MBCRED="$option_mythbuntu_user_credentials_value"
43 fi
44 if [ ! -n "$MBCRED" ]; then
45- echo "You must specify either --mythbuntu-copy-user-credentials or --mythbuntu-user-credentials!"
46+ echo "You must specify --mythbuntu-user-credentials!"
47 exit 100
48 fi
49 fi
50@@ -54,38 +46,19 @@
51 after-install)
52 if [ -n "$MYTHTV" ]; then
53 # install our mythbuntu stuff
54- LC_ALL=C chroot $ROOT apt-get $APT_GET_OPTS install mythbuntu-desktop mythtv-frontend mythplugins linux-restricted-modules xfce4-terminal
55+ LC_ALL=C chroot $ROOT apt-get $APT_GET_OPTS install mythbuntu-desktop mythtv-frontend mythplugins xfce4-terminal mythbuntu-common
56 # create directory
57 mkdir -p $ROOT/etc/defaults/
58+
59 # create a frontend user with sudo privileges
60- # do we want to allow $USER to be root?
61- if [ "$MBCRED" = "copy" ]; then
62- # $SUDO_USER is preferred over $USER
63- # Actually, in a sudo environment, $USER will be root
64- # which we'd like to avoid
65- if [ -n "$SUDO_USER" ]; then
66- MBUSER="$SUDO_USER"
67- else
68- MBUSER="$USER"
69- fi
70-
71- if [ -n "$MBUSER" ]; then
72- MBSECRET=`grep $MBUSER /etc/shadow | cut -d : -f 2`
73- MBENCRYPTED="-e" # for chpasswd: "Supplied passwords are in encrypted form."
74- else
75- echo "Sorry, neither SUDO_USER nor USER environment variable are set!"
76- exit 101
77- fi
78- else
79- MBUSER=`echo $MBCRED | cut -d : -f 1`
80- MBSECRET=`echo $MBCRED | cut -d : -f 2`
81- fi
82+ MBUSER=`echo $MBCRED | cut -d : -f 1`
83+ MBSECRET=`echo $MBCRED | cut -d : -f 2`
84
85 LC_ALL=C chroot $ROOT adduser --disabled-password --gecos ,,, $MBUSER
86 LC_ALL=C chroot $ROOT usermod -a -G adm,admin,audio,operator,video,mythtv $MBUSER
87
88 # set password
89- echo ${MBUSER}:${MBSECRET} | LC_ALL=C chroot $ROOT chpasswd $MBENCRYPTED
90+ echo ${MBUSER}:${MBSECRET} | LC_ALL=C chroot $ROOT chpasswd
91
92 # make sudo behave
93 chmod u+w ${ROOT}/etc/sudoers
94@@ -116,7 +89,7 @@
95 EOF
96
97 cat <<EOF >> $ROOT/etc/default/NetworkManager
98-# mythbuntu-diskless does not need network-manager. it breaks the connection
99+# mythbuntu-diskless does not need network-manager. it breaks the connectin
100 # used to boot the client which is a very bad thing
101 exit 0
102 EOF

Subscribers

People subscribed via source and target branches