From: Yaroslav Halchenko Date: Fri, 7 Dec 2012 23:28:57 +0000 (-0500) Subject: ENH: install lightdm, default login for brain, urxvt (+tune ups) as default console X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=33d3deb8df643a2c72bc965848c7fec80410e9a2;p=neurodebian.git ENH: install lightdm, default login for brain, urxvt (+tune ups) as default console --- diff --git a/debian/changelog b/debian/changelog index ad929db..24adb80 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +neurodebian (0.30~dev0) wheezy; urgency=low + + * VM (6.999.b4.20121206) - development VM based on upcoming wheezy + release's beta4 + - uses XFCE4 instead of Gnome(3) -- Depends on gdm | lightdm now + + -- Yaroslav Halchenko Fri, 07 Dec 2012 13:07:07 -0500 + neurodebian (0.29) unstable; urgency=low [ Yaroslav Halchenko & Michael Hanke ] diff --git a/debian/control b/debian/control index 08ab348..be49ddd 100644 --- a/debian/control +++ b/debian/control @@ -65,8 +65,12 @@ Description: Helper for NeuroDebian popularity contest submissions Package: neurodebian-guest-additions Architecture: all Pre-Depends: virtualbox-ose-guest-utils, virtualbox-ose-guest-x11, virtualbox-ose-guest-dkms -Depends: ${misc:Depends}, sudo, neurodebian-desktop, gdm | gdm3, update-manager-gnome, update-notifier -Recommends: chromium-browser +Depends: ${misc:Depends}, + sudo, + neurodebian-desktop, + gdm | lightdm, +Recommends: chromium-browser, + update-manager-gnome, update-notifier, Description: NeuroDebian guest additions (DO NOT INSTALL OUTSIDE VIRTUALBOX) This package configures a Debian installation as a guest operating system in a VirtualBox-based virtual machine for NeuroDebian. diff --git a/debian/neurodebian-desktop.install b/debian/neurodebian-desktop.install index eb9daa0..511057c 100644 --- a/debian/neurodebian-desktop.install +++ b/debian/neurodebian-desktop.install @@ -4,3 +4,4 @@ xdg/neurodebian.menu etc/xdg/menus/applications-merged xdg/directories/* usr/share/desktop-directories xdg/desktop/neurodebian-* usr/share/applications tools/nd-autoinstall usr/bin +xdg/Xresources/neurodebian etc/X11/Xresources diff --git a/debian/neurodebian-guest-additions.postinst b/debian/neurodebian-guest-additions.postinst index 6a5336e..a714ea0 100755 --- a/debian/neurodebian-guest-additions.postinst +++ b/debian/neurodebian-guest-additions.postinst @@ -9,17 +9,30 @@ _set_gdm_auto_login() { elif [ -z "$(grep 'AutomaticLogin=brain' $gdm_conf)" ]; then echo "I: Enabling autologin of user 'brain' for GNOME $gnome_ver." sed -i -e 's/^\[daemon\]$/\[daemon\]\nAutomaticLoginEnable=true\nAutomaticLogin=brain\n/' $gdm_conf + # update gconf defaults tree + update-gconf-defaults fi } +# XFCE4 +_set_lightdm_auto_login() { + lightdm_conf="$1" + if [ ! -e $lightdm_conf ]; then + echo "I: No config file $lightdm_conf found" + elif [ ! -z "$(grep '^# *autologin-user=' $lightdm_conf)" ]; then + echo "I: Enabling autologin of user 'brain' for lightdm." + sed -i -e 's/^# *autologin-user=.*$/autologin-user=brain/' $lightdm_conf + fi + +} + gdm_conf=/etc/gdm/gdm.conf if [ "$1" = "configure" -o "$1" = "abort-upgrade" ]; then - _set_gdm_auto_login /etc/gdm/gdm.conf 2 - _set_gdm_auto_login /etc/gdm3/daemon.conf 3 + [ -e /etc/gdm/gdm.conf ] && _set_gdm_auto_login /etc/gdm/gdm.conf 2 + [ -e /etc/gdm3/daemon.conf ] && _set_gdm_auto_login /etc/gdm3/daemon.conf 3 - # update gconf defaults tree - update-gconf-defaults + [ -e /etc/lightdm/lightdm.conf ] && _set_lightdm_auto_login /etc/lightdm/lightdm.conf fi #DEBHELPER# diff --git a/vm/d-i/wheezy/initial_setup b/vm/d-i/wheezy/initial_setup index 10a8230..b57e359 100755 --- a/vm/d-i/wheezy/initial_setup +++ b/vm/d-i/wheezy/initial_setup @@ -90,8 +90,7 @@ apt-get install -y linux-headers-$cdarch ## >| /var/log/initial_setup-dkms.log 2>&1 # to get all the rest stuff in recommends -apt-get install -y dkms -# TODO: neurodebian-guest-additions -- pulls in gdm3 ATM +apt-get install -y dkms neurodebian-guest-additions if [ "$darch" != "$cdarch" ] ; then # Because DKMS builds for currently running kernel, which during @@ -130,10 +129,14 @@ apt-get install --no-install-recommends -y \ chromium-browser \ sudo neurodebian-desktop update-notifier +# "Slightly" better terminal by default +# TODO: might want to change default bg color to black there +apt-get install rxvt-unicode +update-alternatives --set x-terminal-emulator /usr/bin/urxvt + # XXX last ones are actually pulled it by neurodebian-guest-additions whenever we # resolve their destiny ;-) a;though it might be pooling too much, eg exim4 -# TODO: autologin for lightdm (autologin-user=brain in /etc/lightdm/lightdm.conf), default panel (with chromium) for xfce # TODO: pre-configure the panel "Welcome to the first start of the panel", "Use default config"? # Clean-up installed development files which got pulled in for diff --git a/xdg/Xresources/neurodebian b/xdg/Xresources/neurodebian new file mode 100644 index 0000000..0c35011 --- /dev/null +++ b/xdg/Xresources/neurodebian @@ -0,0 +1,8 @@ +URxvt.background: black +URxvt.foreground: white +URxvt.coursorColor: red +URxvt.saveLines: 1000 +URxvt.perl-ext: searchable-scrollback,tabbed,option-popup,selection +# workaround for #546527 +URxvt.perl-ext-common: default,-option-popup,-selection-popup +URxvt.underlineURLs: true