diff options
| author | Jonathan Bauer | 2013-03-14 18:30:10 +0100 |
|---|---|---|
| committer | Jonathan Bauer | 2013-03-14 18:30:10 +0100 |
| commit | 765e0502c315d250ab8f671bc726fef6f63a026a (patch) | |
| tree | e5624ec583c98fd3202caefad9b37289d9cad348 /remote/modules/kdm | |
| parent | base -> base32 and started new base31 (diff) | |
| download | tm-scripts-765e0502c315d250ab8f671bc726fef6f63a026a.tar.gz tm-scripts-765e0502c315d250ab8f671bc726fef6f63a026a.tar.xz tm-scripts-765e0502c315d250ab8f671bc726fef6f63a026a.zip | |
restructuring...
Diffstat (limited to 'remote/modules/kdm')
20 files changed, 348 insertions, 0 deletions
diff --git a/remote/modules/kdm/data/etc/kde4/kdm/kdmrc b/remote/modules/kdm/data/etc/kde4/kdm/kdmrc new file mode 100644 index 00000000..88f478ea --- /dev/null +++ b/remote/modules/kdm/data/etc/kde4/kdm/kdmrc @@ -0,0 +1,35 @@ +[General] +PidFile=/var/run/kdm.pid +ServerVTs=-7 + +[X-*-Greeter] +UseTheme=true +Theme=/usr/share/desktop/themes/kdm/uni +UseBackground=false +GreetString=OpenSLX Workstation (%h) +SelectedUsers= +UserList=false + +[X-:*-Greeter] +AllowClose=false +UseAdminSession=true + +[X-:0-Core] +AllowRootLogin=true +AllowShutdown=All +AutoLoginEnable=false +Reset=/etc/kde4/kdm/Xreset +ServerAttempts=2 +Session=/etc/kde4/kdm/Xsession +SessionsDirs=/etc/X11/session,/usr/share/xsessions,/usr/share/apps/kdm/sessions +#Setup=/etc/kde4/kdm/Xsetup +Startup=/etc/kde4/kdm/Xstartup + +[X-:0-Greeter] +LogSource=/dev/xconsole +PreselectUser=None +UseAdminSession=false + +[xdmcp] +Enable=false + diff --git a/remote/modules/kdm/data/etc/systemd/system/display-manager.service b/remote/modules/kdm/data/etc/systemd/system/display-manager.service new file mode 120000 index 00000000..640910e3 --- /dev/null +++ b/remote/modules/kdm/data/etc/systemd/system/display-manager.service @@ -0,0 +1 @@ +kdm.service
\ No newline at end of file diff --git a/remote/modules/kdm/data/etc/systemd/system/kdm.service b/remote/modules/kdm/data/etc/systemd/system/kdm.service new file mode 100644 index 00000000..14ff7457 --- /dev/null +++ b/remote/modules/kdm/data/etc/systemd/system/kdm.service @@ -0,0 +1,12 @@ +[Unit] +Description=KDM Display Manager +Conflicts=getty@tty7.service +After=systemd-user-sessions.service getty@tty7.service plymouth-quit.service + +[Service] +ExecStart=/usr/bin/kdm -nodaemon +Restart=always +IgnoreSIGPIPE=no + +[Install] +Alias=display-manager.service diff --git a/remote/modules/kdm/data/usr/share/desktop/themes/kdm/uni/KdmGreeterTheme.desktop b/remote/modules/kdm/data/usr/share/desktop/themes/kdm/uni/KdmGreeterTheme.desktop new file mode 100644 index 00000000..36242be4 --- /dev/null +++ b/remote/modules/kdm/data/usr/share/desktop/themes/kdm/uni/KdmGreeterTheme.desktop @@ -0,0 +1,8 @@ +[KdmGreeterTheme] +Encoding=UTF-8 +Greeter=theme.xml +Name=Uni KDM theme +Description=Uni Theme based on Daemonic KDM theme for FreeBSD +Author=aceph <aceph@ventcore.net> and modified by MJanc +Copyright=Creative Commons +Screenshot=screenshot.png diff --git a/remote/modules/kdm/data/usr/share/desktop/themes/kdm/uni/color.png b/remote/modules/kdm/data/usr/share/desktop/themes/kdm/uni/color.png Binary files differnew file mode 100644 index 00000000..c2e998e5 --- /dev/null +++ b/remote/modules/kdm/data/usr/share/desktop/themes/kdm/uni/color.png diff --git a/remote/modules/kdm/data/usr/share/desktop/themes/kdm/uni/enter.png b/remote/modules/kdm/data/usr/share/desktop/themes/kdm/uni/enter.png Binary files differnew file mode 100644 index 00000000..b646e851 --- /dev/null +++ b/remote/modules/kdm/data/usr/share/desktop/themes/kdm/uni/enter.png diff --git a/remote/modules/kdm/data/usr/share/desktop/themes/kdm/uni/enter_inactive.png b/remote/modules/kdm/data/usr/share/desktop/themes/kdm/uni/enter_inactive.png Binary files differnew file mode 100644 index 00000000..e12cfb8e --- /dev/null +++ b/remote/modules/kdm/data/usr/share/desktop/themes/kdm/uni/enter_inactive.png diff --git a/remote/modules/kdm/data/usr/share/desktop/themes/kdm/uni/environment.png b/remote/modules/kdm/data/usr/share/desktop/themes/kdm/uni/environment.png Binary files differnew file mode 100644 index 00000000..b9682822 --- /dev/null +++ b/remote/modules/kdm/data/usr/share/desktop/themes/kdm/uni/environment.png diff --git a/remote/modules/kdm/data/usr/share/desktop/themes/kdm/uni/main-runner.png b/remote/modules/kdm/data/usr/share/desktop/themes/kdm/uni/main-runner.png Binary files differnew file mode 100644 index 00000000..fde2787d --- /dev/null +++ b/remote/modules/kdm/data/usr/share/desktop/themes/kdm/uni/main-runner.png diff --git a/remote/modules/kdm/data/usr/share/desktop/themes/kdm/uni/rz-logo.png b/remote/modules/kdm/data/usr/share/desktop/themes/kdm/uni/rz-logo.png Binary files differnew file mode 100644 index 00000000..d48b2b63 --- /dev/null +++ b/remote/modules/kdm/data/usr/share/desktop/themes/kdm/uni/rz-logo.png diff --git a/remote/modules/kdm/data/usr/share/desktop/themes/kdm/uni/sessions.png b/remote/modules/kdm/data/usr/share/desktop/themes/kdm/uni/sessions.png Binary files differnew file mode 100644 index 00000000..00d05f29 --- /dev/null +++ b/remote/modules/kdm/data/usr/share/desktop/themes/kdm/uni/sessions.png diff --git a/remote/modules/kdm/data/usr/share/desktop/themes/kdm/uni/sessions_inactive.png b/remote/modules/kdm/data/usr/share/desktop/themes/kdm/uni/sessions_inactive.png Binary files differnew file mode 100644 index 00000000..86bbe642 --- /dev/null +++ b/remote/modules/kdm/data/usr/share/desktop/themes/kdm/uni/sessions_inactive.png diff --git a/remote/modules/kdm/data/usr/share/desktop/themes/kdm/uni/system.png b/remote/modules/kdm/data/usr/share/desktop/themes/kdm/uni/system.png Binary files differnew file mode 100644 index 00000000..f7b9e71f --- /dev/null +++ b/remote/modules/kdm/data/usr/share/desktop/themes/kdm/uni/system.png diff --git a/remote/modules/kdm/data/usr/share/desktop/themes/kdm/uni/system_inactive.png b/remote/modules/kdm/data/usr/share/desktop/themes/kdm/uni/system_inactive.png Binary files differnew file mode 100644 index 00000000..c3e1719b --- /dev/null +++ b/remote/modules/kdm/data/usr/share/desktop/themes/kdm/uni/system_inactive.png diff --git a/remote/modules/kdm/data/usr/share/desktop/themes/kdm/uni/theme.xml b/remote/modules/kdm/data/usr/share/desktop/themes/kdm/uni/theme.xml new file mode 100644 index 00000000..ab64ecfb --- /dev/null +++ b/remote/modules/kdm/data/usr/share/desktop/themes/kdm/uni/theme.xml @@ -0,0 +1,232 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE greeter SYSTEM "greeter.dtd"> +<!-- +KDM-Uni-Theme +--> +<greeter id="theme"> + <style font="Sans 11" window-text-color="#f0f0f0" base-color="#f0f0f0" text-color="#000000"/> + + <!-- background --> + <item type="pixmap" id="background" background="true"> + <normal file="color.png"/> + <pos x="0" y="0" width="100%" height="100%"/> + </item> + + <!-- top / welcome, clock and big logo --> + <item type="rect" id="top" background="true"> + <normal color="#000000" alpha="0.0"/> + <pos anchor="n" x="50%" y="0" width="100%" height="40%"/> + <box orientation="vertical" homogeneous="true"> + + <item type="pixmap" background="true"> + <normal file="welcome-time-shadowed.png"/> + <pos anchor="n" x="50%" y="0" width="80%" height="44"/> + <box orientation="horizontal" homogeneous="true"> + <!-- Welcome on ... --> + <item type="label" background="true"> + <pos anchor="w" x="10%" y="30%"/> + <normal color="#f0f0f0" font="Sans 11"/> + <stock type="welcome-label"/> + </item> + <!-- clock --> + <item type="label" id="clock"> + <pos anchor="e" x="90%" y="30%"/> + <normal color="#f0f0f0" font="Sans 11"/> + <text>%c</text> + </item> + </box> + </item> + + <item type="rect" id="logo"> + <normal color="#000000" alpha="0.0"/> + <pos anchor="c" x="50%" y="10%" width="100%" height="100%"/> + <box orientation="vertical" homogeneous="true"> + <item type="pixmap"> + <normal file="uni-logo.png"/> + <pos anchor="c" x="50%" y="50%"/> + </item> + </box> + </item> + + </box> + </item> + + <!-- main part / login, session, menu, ... --> + <item type="pixmap" id="main-runner" background="true"> + <normal file="main-runner.png"/> + <pos anchor="c" x="50%" y="50%" width="100%" height="160"/> + <box orientation="horizontal" homogeneous="true"> + + <item type="rect" background="true"> + <normal color="#000000" alpha="0.0"/> + <pos anchor="w" x="0%" y="50%" width="100%" height="100%"/> + <box orientation="horizontal" homogeneous="true"> + + <!-- left part / login --> + <item type="rect" background="true"> + <normal color="#000000" alpha="0.0"/> + <pos anchor="w" x="0" y="50%" width="100%" height="100%"/> + <box orientation="horizontal"> + + <!-- small logo --> + <item type="pixmap" background="true"> + <normal file="rz-logo.png"/> + <pos anchor="w" x="30" y="50%"/> + </item> + + <!-- login --> + <item type="rect"> + <normal color="#000000" alpha="0.0"/> + <pos anchor="w" x="70" y="50%" width="box" height="box"/> + <box orientation="horizontal" spacing="10"> + + <item type="rect"> + <normal color="#000000" alpha="0.0"/> + <pos anchor="sw" x="0" y="100%" width="box" height="100%"/> + <box homogeneous="true" spacing="10"> + <!-- username-label --> + <item type="label"> + <pos anchor="nw" x="0" y="0"/> + <normal color="#f0f0f0" font="Sans 11"/> + <stock type="username-label"/> + </item> + <!-- password-label --> + <item type="label"> + <pos anchor="sw" x="0" y="-0"/> + <normal color="#f0f0f0" font="Sans 11"/> + <stock type="password-label"/> + </item> + </box> + </item> + + <item type="rect"> + <normal color="#000000" alpha="0.0"/> + <pos anchor="nw" x="0" y="0" width="box" height="box"/> + <box homogeneous="true" spacing="10"> + <!-- username-entry --> + <item type="entry" id="user-entry"> + <pos anchor="w" x="0" y="50%" height="20" width="100"/> + </item> + <!-- password-entry --> + <item type="entry" id="pw-entry"> + <pos anchor="w" x="0" y="50%" height="20" width="100"/> + </item> + </box> + </item> + + <item type="pixmap" button="true" id="login_button"> + <pos anchor="sw" x="0" y="-0" height="20" width="20"/> + <normal file="enter_inactive.png"/> + <prelight file="enter.png"/> + </item> + + </box> + </item> + + </box> + </item> + + <!-- middle part / errors, caps info, kdm logo --> + <item type="rect"> + <normal color="#000000" alpha="0.0"/> + <pos anchor="c" x="50%" y="50%" width="90%" height="100%"/> + <box orientation="vertical"> + + <!-- Login-Error --> + <item type="rect"> + <normal color="#000000" alpha="0.0"/> + <pos anchor="n" x="50%" y="10" width="100%" height="30"/> + <box> + <item type="label" id="pam-error"> + <normal color="#ff8b00" font="Sans 11"/> + <pos anchor="c" x="50%" y="15"/> + <text/> + </item> + </box> + </item> + + <item type="pixmap"> + <normal file="environment.png"/> + <pos anchor="c" x="50%" y="50%"/> + </item> + + <!-- capslock-warning --> + <item type="rect" id="caps-lock-warning"> + <normal color="#000000" alpha="0.4"/> + <pos anchor="s" x="50%" y="-10" width="100%" height="30"/> + <box> + <item type="label"> + <normal color="#ff8b00" font="Sans 11"/> + <pos anchor="c" x="50%" y="15"/> + <stock type="caps-lock-warning"/> + </item> + </box> + </item> + + </box> + </item> + + <!-- right part / sessions, menu --> + <item type="rect"> + <normal color="#000000" alpha="0.0"/> + <pos anchor="e" x="100%" y="50%" width="100%" height="100%"/> + <box orientation="vertical" homogeneous="true" spacing="10"> + + <!-- session-button --> + <item type="rect" id="session_button" button="true"> + <normal color="#000000" alpha="0.0"/> + <pos anchor="se" x="-50" y="100%" width="box" height="box"/> + <box orientation="horizontal"> + <item type="label"> + <normal color="#bbbbbb" font="Sans 11"/> + <prelight color="#f0f0f0" font="Sans 11"/> + <active color="#ff8b00" font="Sans 11"/> + <pos anchor="e" x="100%" y="-24"/> + <stock type="session"/> + </item> + <item type="rect" id="session_button" button="true"> + <normal color="#000000" alpha="0.0"/> + <pos anchor="c" x="50%" y="50%" width="10"/> + </item> + <item type="pixmap" id="session_button" button="true"> + <normal file="sessions_inactive.png"/> + <prelight file="sessions.png"/> + <pos anchor="se" x="100%" y="100%"/> + </item> + </box> + </item> + + <!-- menu-button --> + <item type="rect" id="system_button" button="true"> + <normal color="#000000" alpha="0.0"/> + <pos anchor="ne" x="-50" y="0" width="box" height="box"/> + <box orientation="horizontal"> + <item type="label"> + <normal color="#bbbbbb" font="Sans 11"/> + <prelight color="#f0f0f0" font="Sans 11"/> + <active color="#ff8b00" font="Sans 11"/> + <pos anchor="e" x="100%" y="24"/> + <stock type="system"/> + </item> + <item type="rect" id="system_button" button="true"> + <normal color="#000000" alpha="0.0"/> + <pos anchor="c" x="50%" y="50%" width="10"/> + </item> + <item type="pixmap" id="system_button" button="true"> + <normal file="system_inactive.png"/> + <prelight file="system.png"/> + <pos anchor="ne" x="100%" y="0%"/> + </item> + </box> + </item> + + </box> + </item> + + </box> + </item> + + </box> + </item> + +</greeter> diff --git a/remote/modules/kdm/data/usr/share/desktop/themes/kdm/uni/uni-logo.png b/remote/modules/kdm/data/usr/share/desktop/themes/kdm/uni/uni-logo.png Binary files differnew file mode 100644 index 00000000..45cef30e --- /dev/null +++ b/remote/modules/kdm/data/usr/share/desktop/themes/kdm/uni/uni-logo.png diff --git a/remote/modules/kdm/data/usr/share/desktop/themes/kdm/uni/welcome-time-shadowed.png b/remote/modules/kdm/data/usr/share/desktop/themes/kdm/uni/welcome-time-shadowed.png Binary files differnew file mode 100644 index 00000000..f9f34c5c --- /dev/null +++ b/remote/modules/kdm/data/usr/share/desktop/themes/kdm/uni/welcome-time-shadowed.png diff --git a/remote/modules/kdm/data/usr/share/xsessions/default.desktop b/remote/modules/kdm/data/usr/share/xsessions/default.desktop new file mode 100755 index 00000000..c6a0f825 --- /dev/null +++ b/remote/modules/kdm/data/usr/share/xsessions/default.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=virtual machine chooser (default) +Name[de]=Virtuelle Maschine auswählen +Comment=This session starts the vm session chooser +Comment[de]=Diese Sitzung startet das Auswahlmenü für die vorhandenen Sitzungen +Exec=/openslx/bin/vmchooser +TryExec=/openslx/bin/vmchooser +Icon= +Type=Application diff --git a/remote/modules/kdm/kdm.build b/remote/modules/kdm/kdm.build new file mode 100644 index 00000000..88c47f6b --- /dev/null +++ b/remote/modules/kdm/kdm.build @@ -0,0 +1,35 @@ +#tool/distro specific functions for fetching, building and installing dependencies + + +fetch_source () { + pinfo "Extracting from running system..." +} + +build () { + COPYLIST="list_dpkg_output" + [ -e "${COPYLIST}" ] && rm "${COPYLIST}" + + list_packet_files >> "${COPYLIST}" + tarcopy "$(cat "${COPYLIST}" | sort -u)" "${MODULE_BUILD_DIR}" +} + +post_copy() { + # copy static kdm files to stage3.2 + cp -r ${MODULE_DIR}/data/* ${TARGET_BUILD_DIR} + #create static kdm folders in stage3.2 + mkdir -p ${TARGET_BUILD_DIR}/var/lib/kdm + mkdir -p ${TARGET_BUILD_DIR}/var/run/kdm + + + #copy required icons + tarcopy "/usr/share/icons/oxygen/16x16/actions/system-reboot.png + /usr/share/icons/oxygen/16x16/actions/system-shutdown.png + /usr/share/icons/oxygen/16x16/actions/dialog-cancel.png + /usr/share/icons/oxygen/index.theme + /usr/share/kde4/apps/kdm/pics/shutdown.png + /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf + /usr/share/fonts/truetype/ubuntu-font-family/Ubuntu-R.ttf + /usr/share/icons/default/index.theme" ${TARGET_BUILD_DIR} + gtk-update-icon-cache-3.0 "${TARGET_BUILD_DIR}/usr/share/icons/oxygen/" || perror "update-icon-cache-3.0 failed." +} + diff --git a/remote/modules/kdm/kdm.conf b/remote/modules/kdm/kdm.conf new file mode 100644 index 00000000..85f4ae66 --- /dev/null +++ b/remote/modules/kdm/kdm.conf @@ -0,0 +1,15 @@ +REQUIRED_DEPENDENCIES="kdm" +REQUIRED_PACKAGES="kdm kde-workspace-kgreet-plugins" +REQUIRED_BINARIES="" +REQUIRED_DIRECTORIES=" /etc/dbus-1 + /etc/pam.d + /etc/logrotate.d + /etc/insserv.conf.d + /etc/kde4/kdm + /usr/lib/kde4 + /usr/share/dbus-1 + /usr/share/polkit-1 + /usr/share/kde4/services + /usr/bin" +REQUIRED_FILES="" +REQUIRED_LIBRARIES="" |
