Skip to content
This repository has been archived by the owner on Aug 29, 2019. It is now read-only.

Commit

Permalink
added autologin for live
Browse files Browse the repository at this point in the history
  • Loading branch information
Rizwan-Hasan committed May 16, 2018
1 parent e70e36e commit c326b9f
Show file tree
Hide file tree
Showing 16 changed files with 204 additions and 28 deletions.
3 changes: 2 additions & 1 deletion Makefile
Expand Up @@ -8,5 +8,6 @@ iso:
@rm -rf ${work_dir} ${ISO_Image}
@./build.sh -v
clean:
@rm -rfv ${work_dir} ${out_dir}
@echo "Cleaning..."
@rm -rf ${work_dir} ${out_dir}
@echo "Cleaned"
169 changes: 169 additions & 0 deletions airootfs/etc/lightdm/lightdm.conf
@@ -0,0 +1,169 @@
#
# General configuration
#
# start-default-seat = True to always start one seat if none are defined in the configuration
# greeter-user = User to run greeter as
# minimum-display-number = Minimum display number to use for X servers
# minimum-vt = First VT to run displays on
# lock-memory = True to prevent memory from being paged to disk
# user-authority-in-system-dir = True if session authority should be in the system location
# guest-account-script = Script to be run to setup guest account
# logind-check-graphical = True to on start seats that are marked as graphical by logind
# log-directory = Directory to log information to
# run-directory = Directory to put running state in
# cache-directory = Directory to cache to
# sessions-directory = Directory to find sessions
# remote-sessions-directory = Directory to find remote sessions
# greeters-directory = Directory to find greeters
# backup-logs = True to move add a .old suffix to old log files when opening new ones
# dbus-service = True if LightDM provides a D-Bus service to control it
#
[LightDM]
#start-default-seat=true
#greeter-user=lightdm
#minimum-display-number=0
#minimum-vt=7 # Setting this to a value < 7 implies security issues, see FS#46799
#lock-memory=true
#user-authority-in-system-dir=false
#guest-account-script=guest-account
#logind-check-graphical=false
#log-directory=/var/log/lightdm
run-directory=/run/lightdm
#cache-directory=/var/cache/lightdm
#sessions-directory=/usr/share/lightdm/sessions:/usr/share/xsessions:/usr/share/wayland-sessions
#remote-sessions-directory=/usr/share/lightdm/remote-sessions
#greeters-directory=$XDG_DATA_DIRS/lightdm/greeters:$XDG_DATA_DIRS/xgreeters
#backup-logs=true
#dbus-service=true

#
# Seat configuration
#
# Seat configuration is matched against the seat name glob in the section, for example:
# [Seat:*] matches all seats and is applied first.
# [Seat:seat0] matches the seat named "seat0".
# [Seat:seat-thin-client*] matches all seats that have names that start with "seat-thin-client".
#
# type = Seat type (local, xremote, unity)
# pam-service = PAM service to use for login
# pam-autologin-service = PAM service to use for autologin
# pam-greeter-service = PAM service to use for greeters
# xserver-backend = X backend to use (mir)
# xserver-command = X server command to run (can also contain arguments e.g. X -special-option)
# xmir-command = Xmir server command to run (can also contain arguments e.g. Xmir -special-option)
# xserver-config = Config file to pass to X server
# xserver-layout = Layout to pass to X server
# xserver-allow-tcp = True if TCP/IP connections are allowed to this X server
# xserver-share = True if the X server is shared for both greeter and session
# xserver-hostname = Hostname of X server (only for type=xremote)
# xserver-display-number = Display number of X server (only for type=xremote)
# xdmcp-manager = XDMCP manager to connect to (implies xserver-allow-tcp=true)
# xdmcp-port = XDMCP UDP/IP port to communicate on
# xdmcp-key = Authentication key to use for XDM-AUTHENTICATION-1 (stored in keys.conf)
# unity-compositor-command = Unity compositor command to run (can also contain arguments e.g. unity-system-compositor -special-option)
# unity-compositor-timeout = Number of seconds to wait for compositor to start
# greeter-session = Session to load for greeter
# greeter-hide-users = True to hide the user list
# greeter-allow-guest = True if the greeter should show a guest login option
# greeter-show-manual-login = True if the greeter should offer a manual login option
# greeter-show-remote-login = True if the greeter should offer a remote login option
# user-session = Session to load for users
# allow-user-switching = True if allowed to switch users
# allow-guest = True if guest login is allowed
# guest-session = Session to load for guests (overrides user-session)
# session-wrapper = Wrapper script to run session with
# greeter-wrapper = Wrapper script to run greeter with
# guest-wrapper = Wrapper script to run guest sessions with
# display-setup-script = Script to run when starting a greeter session (runs as root)
# display-stopped-script = Script to run after stopping the display server (runs as root)
# greeter-setup-script = Script to run when starting a greeter (runs as root)
# session-setup-script = Script to run when starting a user session (runs as root)
# session-cleanup-script = Script to run when quitting a user session (runs as root)
# autologin-guest = True to log in as guest by default
# autologin-user = User to log in with by default (overrides autologin-guest)
# autologin-user-timeout = Number of seconds to wait before loading default user
# autologin-session = Session to load for automatic login (overrides user-session)
# autologin-in-background = True if autologin session should not be immediately activated
# exit-on-failure = True if the daemon should exit if this seat fails
#
[Seat:*]
#type=local
#pam-service=lightdm
#pam-autologin-service=lightdm-autologin
#pam-greeter-service=lightdm-greeter
#xserver-backend=
#xserver-command=X
#xmir-command=Xmir
#xserver-config=
#xserver-layout=
#xserver-allow-tcp=false
#xserver-share=true
#xserver-hostname=
#xserver-display-number=
#xdmcp-manager=
#xdmcp-port=177
#xdmcp-key=
#unity-compositor-command=unity-system-compositor
#unity-compositor-timeout=60
#greeter-session=example-gtk-gnome
#greeter-hide-users=false
#greeter-allow-guest=true
#greeter-show-manual-login=false
#greeter-show-remote-login=true
#user-session=default
#allow-user-switching=true
#allow-guest=true
#guest-session=
session-wrapper=/etc/lightdm/Xsession
#greeter-wrapper=
#guest-wrapper=
#display-setup-script=
#display-stopped-script=
#greeter-setup-script=
#session-setup-script=
#session-cleanup-script=
#autologin-guest=false
autologin-user=liveuser
autologin-user-timeout=0
#autologin-in-background=false
autologin-session=xfce
#exit-on-failure=false

#
# XDMCP Server configuration
#
# enabled = True if XDMCP connections should be allowed
# port = UDP/IP port to listen for connections on
# listen-address = Host/address to listen for XDMCP connections (use all addresses if not present)
# key = Authentication key to use for XDM-AUTHENTICATION-1 or blank to not use authentication (stored in keys.conf)
# hostname = Hostname to report to XDMCP clients (defaults to system hostname if unset)
#
# The authentication key is a 56 bit DES key specified in hex as 0xnnnnnnnnnnnnnn. Alternatively
# it can be a word and the first 7 characters are used as the key.
#
[XDMCPServer]
#enabled=false
#port=177
#listen-address=
#key=
#hostname=

#
# VNC Server configuration
#
# enabled = True if VNC connections should be allowed
# command = Command to run Xvnc server with
# port = TCP/IP port to listen for connections on
# listen-address = Host/address to listen for VNC connections (use all addresses if not present)
# width = Width of display to use
# height = Height of display to use
# depth = Color depth of display to use
#
[VNCServer]
#enabled=false
#command=Xvnc
#port=5900
#listen-address=
#width=1024
#height=768
#depth=8
11 changes: 0 additions & 11 deletions airootfs/etc/skel/.config/autostart/conky.desktop

This file was deleted.

Empty file modified airootfs/etc/skel/.config/autostart/magpieos-startup.desktop 100755 → 100644
Empty file.
Empty file modified airootfs/etc/skel/.config/autostart/nm-applet.desktop 100755 → 100644
Empty file.
@@ -0,0 +1,3 @@
[Desktop Entry]
Hidden=false

10 changes: 5 additions & 5 deletions airootfs/etc/skel/.config/xfce4/panel/whiskermenu-7.rc
@@ -1,5 +1,5 @@
favorites=exo-terminal-emulator.desktop,exo-file-manager.desktop,exo-mail-reader.desktop,exo-web-browser.desktop
recent=xfce-keyboard-settings.desktop,codeblocks.desktop,xfce4-notifyd-config.desktop,libreoffice-startcenter.desktop,smplayer.desktop,mpv.desktop,imagewriter.desktop,pendrive-formatter.desktop,gimp.desktop,sublime_text_3.desktop
recent=xfce-keyboard-settings.desktop,xfce-session-settings.desktop,xfce4-settings-editor.desktop,codeblocks.desktop,xfce4-notifyd-config.desktop,libreoffice-startcenter.desktop,smplayer.desktop,mpv.desktop,imagewriter.desktop,pendrive-formatter.desktop
button-title=MagpieOS
button-icon=/etc/skel/.face
button-single-row=false
Expand All @@ -17,11 +17,11 @@ recent-items-max=10
favorites-in-recent=true
display-recent-default=false
position-search-alternate=true
position-commands-alternate=true
position-commands-alternate=false
position-categories-alternate=true
menu-width=419
menu-height=523
menu-opacity=100
menu-width=411
menu-height=547
menu-opacity=90
command-settings=xfce4-settings-manager
show-command-settings=true
command-lockscreen=xflock4
Expand Down
3 changes: 3 additions & 0 deletions airootfs/etc/skel/.config/xfce4/terminal/terminalrc
Expand Up @@ -33,4 +33,7 @@ ScrollingUnlimited=TRUE
ScrollingBar=TERMINAL_SCROLLBAR_NONE
ColorPalette=#000000;#cc0000;#4e9a06;#c4a000;#3465a4;#75507b;#06989a;#d3d7cf;#555753;#ef2929;#8ae234;#fce94f;#739fcf;#ad7fa8;#34e2e2;#eeeeec
ColorBackground=#000000000000
DropdownHeight=40
DropdownOpacity=90
DropdownStatusIcon=FALSE

Expand Up @@ -37,6 +37,7 @@
<property name="Print" type="string" value="xfce4-screenshooter -f"/>
<property name="Super_L" type="string" value="xfce4-popup-whiskermenu"/>
<property name="&lt;Alt&gt;r" type="string" value="/usr/bin/rofi -show run -theme magpie_rofi_transparent"/>
<property name="F12" type="string" value="xfce4-terminal --drop-down"/>
</property>
</property>
<property name="xfwm4" type="empty">
Expand Down
Expand Up @@ -20,7 +20,7 @@
<value type="int" value="19"/>
<value type="int" value="2"/>
</property>
<property name="leave-opacity" type="uint" value="100"/>
<property name="leave-opacity" type="uint" value="90"/>
<property name="background-style" type="uint" value="1"/>
<property name="background-color" type="array">
<value type="uint" value="0"/>
Expand All @@ -29,6 +29,7 @@
<value type="uint" value="65535"/>
</property>
<property name="background-alpha" type="uint" value="70"/>
<property name="enter-opacity" type="uint" value="90"/>
</property>
</property>
<property name="plugins" type="empty">
Expand All @@ -48,6 +49,7 @@
</property>
<property name="plugin-6" type="string" value="systray">
<property name="names-visible" type="array">
<value type="string" value="xfce terminal"/>
<value type="string" value="networkmanager applet"/>
<value type="string" value="xfce4-power-manager"/>
<value type="string" value="your system is up-to-date"/>
Expand Down
4 changes: 2 additions & 2 deletions airootfs/etc/skel/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-settings-editor.xml 100755 → 100644
Expand Up @@ -2,8 +2,8 @@

<channel name="xfce4-settings-editor" version="1.0">
<property name="last" type="empty">
<property name="window-width" type="int" value="811"/>
<property name="window-height" type="int" value="479"/>
<property name="window-width" type="int" value="861"/>
<property name="window-height" type="int" value="563"/>
<property name="paned-position" type="int" value="180"/>
</property>
</channel>
Expand Up @@ -70,7 +70,7 @@
<property name="unredirect_overlays" type="bool" value="true"/>
<property name="urgent_blink" type="bool" value="false"/>
<property name="use_compositing" type="bool" value="true"/>
<property name="workspace_count" type="int" value="4"/>
<property name="workspace_count" type="int" value="2"/>
<property name="wrap_cycle" type="bool" value="true"/>
<property name="workspace_names" type="array">
<value type="string" value="Workspace 1"/>
Expand All @@ -83,5 +83,7 @@
<property name="wrap_windows" type="bool" value="true"/>
<property name="wrap_workspaces" type="bool" value="false"/>
<property name="zoom_desktop" type="bool" value="true"/>
<property name="margin_top" type="int" value="0"/>
<property name="margin_right" type="int" value="0"/>
</property>
</channel>
15 changes: 10 additions & 5 deletions airootfs/root/customize_airootfs.sh
Expand Up @@ -74,11 +74,6 @@ chmod +x /home/liveuser/.config/autostart/calamares.desktop
mv -f /etc/skel/.magpie-settings/etc-nanorc /etc/nanorc
# ######################################################

# ################### Adding custom lightdm config ####################
rm /etc/lightdm/lightdm-gtk-greeter.conf
cp /etc/skel/.magpie-settings/lightdm-gtk-greeter.conf /etc/lightdm/
# #####################################################################

# ######## Adding custom ntp config ########
rm /etc/ntp.conf
cp /etc/skel/.magpie-settings/ntp.conf /etc/
Expand All @@ -105,6 +100,16 @@ rm /etc/mkinitcpio.conf
mv /etc/skel/.magpie-settings/mkinitcpio.conf /etc/
# #################################################

# ################ Adding lightdm-gtk-greeter config ###############
rm /etc/lightdm/lightdm-gtk-greeter.conf
mv /etc/skel/.magpie-settings/lightdm-gtk-greeter.conf /etc/lightdm/
# ##################################################################

# # adding to autologin group #
groupadd -r autologin
gpasswd -a liveuser autologin
# #############################

# ###############################
rm -dr /etc/skel/.magpie-settings
rm -dr /etc/skel/.magpie-packages
Expand Down
2 changes: 1 addition & 1 deletion efiboot/loader/entries/archiso-x86_64-cd.conf
@@ -1,4 +1,4 @@
title MagpieOS archiso x86_64 UEFI CD
title MagpieOS XFCE x86_64 UEFI CD
linux /EFI/archiso/vmlinuz.efi
initrd /EFI/archiso/intel_ucode.img
initrd /EFI/archiso/archiso.img
Expand Down
2 changes: 1 addition & 1 deletion efiboot/loader/entries/archiso-x86_64-usb.conf
@@ -1,4 +1,4 @@
title MagpieOS archiso x86_64 UEFI USB
title MagpieOS XFCE x86_64 UEFI USB
linux /%INSTALL_DIR%/boot/x86_64/vmlinuz
initrd /%INSTALL_DIR%/boot/intel_ucode.img
initrd /%INSTALL_DIR%/boot/x86_64/archiso.img
Expand Down
1 change: 1 addition & 0 deletions mkinitcpio.conf
@@ -1,2 +1,3 @@
MODULES="i915"
HOOKS="base udev resume archiso_shutdown archiso archiso_loop_mnt archiso_kms block pcmcia filesystems keyboard numlock shutdown"
COMPRESSION="lz4"

0 comments on commit c326b9f

Please sign in to comment.