OSDN Git Service

[add] : Added gdm
authorhayao <hayao@fascode.net>
Sat, 6 Mar 2021 15:00:19 +0000 (00:00 +0900)
committerhayao <hayao@fascode.net>
Sat, 6 Mar 2021 15:00:19 +0000 (00:00 +0900)
18 files changed:
channels/gnome/airootfs.any/usr/share/calamares/modules/users.conf [deleted file]
channels/gnome/config.any
modules/gdm/airootfs.any/etc/dconf/db/gdm.d/02-logo [moved from channels/gnome/airootfs.any/etc/dconf/db/gdm.d/02-logo with 100% similarity]
modules/gdm/airootfs.any/etc/dconf/db/gdm.d/04-sound [moved from channels/gnome/airootfs.any/etc/dconf/db/gdm.d/04-sound with 100% similarity]
modules/gdm/airootfs.any/etc/dconf/profile/gdm [moved from channels/gnome/airootfs.any/etc/dconf/profile/gdm with 100% similarity]
modules/gdm/airootfs.any/etc/environment [moved from channels/gnome/airootfs.any/etc/environment with 100% similarity]
modules/gdm/airootfs.any/etc/gdm/custom.conf [moved from channels/gnome/airootfs.any/etc/gdm/custom.conf with 100% similarity]
modules/gdm/airootfs.any/etc/polkit-1/localauthority.conf.d/org.freedesktop.logind.policy [moved from channels/gnome/airootfs.any/etc/polkit-1/localauthority.conf.d/org.freedesktop.logind.policy with 100% similarity]
modules/gdm/airootfs.any/root/customize_airootfs_gdm.sh [new file with mode: 0755]
modules/gdm/airootfs.any/usr/share/pixmaps/alter-logo.png [moved from channels/gnome/airootfs.any/usr/share/pixmaps/alter-logo.png with 100% similarity]
modules/gdm/airootfs.i686/usr/share/calamares/modules/services-plymouth.conf [new file with mode: 0644]
modules/gdm/airootfs.i686/usr/share/calamares/modules/services.conf [new file with mode: 0644]
modules/gdm/airootfs.x86_64/usr/share/calamares/modules/services-plymouth.conf [moved from channels/gnome/airootfs.x86_64/usr/share/calamares/modules/services-plymouth.conf with 100% similarity]
modules/gdm/airootfs.x86_64/usr/share/calamares/modules/services.conf [moved from channels/gnome/airootfs.x86_64/usr/share/calamares/modules/services.conf with 100% similarity]
modules/gdm/alteriso [new file with mode: 0644]
modules/gdm/architecture [new file with mode: 0644]
modules/gdm/packages.i686/gdm.x86_64 [new file with mode: 0644]
modules/gdm/packages.x86_64/gdm.x86_64 [new file with mode: 0644]

diff --git a/channels/gnome/airootfs.any/usr/share/calamares/modules/users.conf b/channels/gnome/airootfs.any/usr/share/calamares/modules/users.conf
deleted file mode 100644 (file)
index a0bf912..0000000
+++ /dev/null
@@ -1,142 +0,0 @@
-# Configuration for the one-user-system user module.
-#
-# Besides these settings, the user module also places the following
-# keys into the globalconfig area, based on user input in the view step.
-#
-# - hostname
-# - username
-# - password (obscured)
-# - autologinUser (if enabled, set to username)
-#
-# These globalconfig keys are set when the jobs for this module
-# are created.
----
-# Used as default groups for the created user.
-# Adjust to your Distribution defaults.
-defaultGroups:
-    - users
-    - lp
-    - video
-    - network
-    - storage
-    - wheel
-    - audio
-    - sudo
-
-# Some Distributions require a 'autologin' group for the user.
-# Autologin causes a user to become automatically logged in to
-# the desktop environment on boot.
-# Disable when your Distribution does not require such a group.
-autologinGroup:  autologin
-# You can control the initial state for the 'autologin checkbox' here.
-# Possible values are:
-#  - true to check or
-#  - false to uncheck
-# These set the **initial** state of the checkbox.
-doAutologin:     false
-
-# When *sudoersGroup* is set to a non-empty string, Calamares creates a
-# sudoers file for the user. This file is located at:
-#     `/etc/sudoers.d/10-installer`
-# Remember to add the (value of) *sudoersGroup* to *defaultGroups*.
-#
-# If your Distribution already sets up a group of sudoers in its packaging,
-# remove this setting (delete or comment out the line below). Otherwise,
-# the setting will be duplicated in the `/etc/sudoers.d/10-installer` file,
-# potentially confusing users.
-sudoersGroup:    sudo
-
-# Setting this to false, causes the root account to be disabled.
-# When disabled, hides the "Use the same password for administrator"
-# checkbox. Also hides the "Choose a password" and associated text-inputs.
-setRootPassword: true
-
-# You can control the initial state for the 'reuse password for root'
-# checkbox here. Possible values are:
-#  - true to check or
-#  - false to uncheck
-#
-# When checked, the user password is used for the root account too.
-#
-# NOTE: *doReusePassword* requires *setRootPassword* to be enabled.
-doReusePassword: false
-
-# These are optional password-requirements that a distro can enforce
-# on the user. The values given in this sample file set only very weak
-# validation settings.
-#
-# - nonempty rejects empty passwords
-# - there are no length validations
-# - libpwquality (if it is enabled at all) has no length of class
-#   restrictions, although it will still reject palindromes and
-#   dictionary words with these settings.
-#
-# Checks may be listed multiple times; each is checked separately,
-# and no effort is done to ensure that the checks are consistent
-# (e.g. specifying a maximum length less than the minimum length
-# will annoy users).
-#
-# The libpwquality check relies on the (optional) libpwquality library.
-# Its value is a list of configuration statements that could also
-# be found in pwquality.conf, and these are handed off to the
-# libpwquality parser for evaluation. The check is ignored if
-# libpwquality is not available at build time (generates a warning in
-# the log). The Calamares password check rejects passwords with a
-# score of < 40 with the given libpwquality settings.
-#
-# (additional checks may be implemented in CheckPWQuality.cpp and
-# wired into UsersPage.cpp)
-#
-#  - To disable specific password validations:
-#    comment out the relevant 'passwordRequirements' keys below.
-#  - To disable all password validations:
-#    set both 'allowWeakPasswords' and 'allowWeakPasswordsDefault' to true.
-#    (That will show the box *Allow weak passwords* in the user-
-#    interface, and check it by default).
-passwordRequirements:
-    nonempty: true
-    minLength: 1  # Password at least this many characters
-    maxLength: -1  # Password at most this many characters
-    libpwquality:
-        - minlen=0
-        - minclass=0
-
-# You can control the visibility of the 'strong passwords' checkbox here.
-# Possible values are:
-#  - true to show or
-#  - false to hide  (default)
-# the checkbox. This checkbox allows the user to choose to disable
-# password-strength-checks. By default the box is **hidden**, so
-# that you have to pick a password that satisfies the checks.
-allowWeakPasswords: true
-# You can control the initial state for the 'strong passwords' checkbox here.
-# Possible values are:
-#  - true to uncheck or
-#  - false to check (default)
-# the checkbox by default. Since the box is labeled to enforce strong
-# passwords, in order to **allow** weak ones by default, the box needs
-# to be unchecked.
-allowWeakPasswordsDefault: false
-
-# Shell to be used for the regular user of the target system.
-# There are three possible kinds of settings:
-#  - unset (i.e. commented out, the default), act as if set to /bin/bash
-#  - empty (explicit), don't pass shell information to useradd at all
-#    and rely on a correct configuration file in /etc/default/useradd
-#  - set, non-empty, use that path as shell. No validation is done
-#    that the shell actually exists or is executable.
-userShell: /bin/zsh
-
-# Hostname setting
-#
-# The user can enter a hostname; this is configured into the system
-# in some way; pick one of:
-#   - *None*, to not set the hostname at all
-#   - *EtcFile*, to write to `/etc/hostname` directly
-#   - *Hostnamed*, to use systemd hostnamed(1) over DBus
-# The default is *EtcFile*.
-setHostname: EtcFile
-
-# Should /etc/hosts be written with a hostname for this machine
-# (also adds localhost and some ipv6 standard entries).
-writeHostsFile: true
index 57a05e6..6614ec8 100644 (file)
@@ -24,4 +24,5 @@ noaur=false
 modules=(
     "share-extra"
     "qtongtk"
+    "gdm"
 )
diff --git a/modules/gdm/airootfs.any/root/customize_airootfs_gdm.sh b/modules/gdm/airootfs.any/root/customize_airootfs_gdm.sh
new file mode 100755 (executable)
index 0000000..5142594
--- /dev/null
@@ -0,0 +1,49 @@
+#!/usr/bin/env bash
+#
+# Yamada Hayao
+# Twitter: @Hayao0819
+# Email  : hayao@fascode.net
+#
+# (c) 2019-2021 Fascode Network.
+#
+
+# Enable gdm to auto login
+if [[ "${boot_splash}" =  true ]]; then
+    systemctl enable gdm-plymouth.service
+else
+    systemctl enable gdm.service
+fi
+
+
+# Replace auto login user
+sed -i "s/%USERNAME%/${username}/g" "/etc/gdm/custom.conf"
+
+
+# Set autologin session
+mkdir -p "/var/lib/AccountsService/users/"
+remove "/var/lib/AccountsService/users/${username}"
+cat > "/var/lib/AccountsService/users/${username}" << "EOF"
+[User]
+Language=
+Session=gnome-xorg
+XSession=gnome-xorg
+Icon=/home/${username}/.face
+SystemAccount=false
+EOF
+
+
+# Remove file for japanese input
+if [[ ! "${language}" = "ja" ]]; then
+    sed -i "s/export GTK_IM_MODULE=fcitx/#export GTK_IM_MODULE=fcitx/g" "/etc/environment"
+    sed -i "s/export QT_IM_MODULE=fcitx/#export QT_IM_MODULE=fcitx/g" "/etc/environment"
+    sed -i "s/export XMODIFIERS=@im=fcitx/#export XMODIFIERS=@im=fcitx/g" "/etc/environment"
+fi
+
+
+# Remove shortcuts
+function remove_userfile() {
+    remove "/home/${username}/${1#/}"
+    remove "/etc/skel/${1#/}"
+}
+remove_userfile "Desktop/calamares.desktop"
+#remove_userfile ".config/autostart/genicon.desktop"
diff --git a/modules/gdm/airootfs.i686/usr/share/calamares/modules/services-plymouth.conf b/modules/gdm/airootfs.i686/usr/share/calamares/modules/services-plymouth.conf
new file mode 100644 (file)
index 0000000..f720927
--- /dev/null
@@ -0,0 +1,111 @@
+# Systemd services manipulation.
+#
+# This module can enable services and targets for systemd
+# (if packaging doesn't already do that). It can calso
+# disable services (but not targets).
+#
+# First, services are enabled; then targets; then services
+# are disabled -- this order of operations is fixed.
+---
+
+# There are three configuration keys for this module:
+# *services*, *targets* and *disable*. The value of each
+# key is a list of entries. Each entry has two keys:
+#   - *name* is the (string) name of the service or target that is being
+#     changed. Use quotes. Don't include ".target" or ".service"
+#     in the name.
+#   - *mandatory* is a boolean option, which states whether the change
+#     must be done successfully. If systemd reports an error while changing
+#     a mandatory entry, the installation will fail. When mandatory is false,
+#     errors for that entry (service or target) are ignored. If mandatory
+#     is not specified, the default is false.
+#
+# An entry may also be given as a single string, which is then
+# interpreted as the name of the service. In this case, mandatory
+# is also set to the default of false.
+#
+# Use [] to express an empty list.
+
+# # This example enables NetworkManager (and fails if it can't),
+# # disables cups (and ignores failure). Then it enables the
+# # graphical target (e.g. so that SDDM runs for login), and
+# # finally disables pacman-init (an ArchLinux-only service).
+# #
+# # Enables <name>.service
+# services:
+#   - name: "NetworkManager"
+#     mandatory: true
+#   - name: "cups"
+#     mandatory: false
+#
+# # Enables <name>.target
+# targets:
+#   - name: "graphical"
+#     mandatory: true
+#
+# # Disables <name>.service
+# disable:
+#   - name: "pacman-init"
+#     mandatory: false
+#
+# # Disables <name>.target
+# #     .. this shows how to use just the name
+# disable-targets:
+#   - graphical
+#
+# # Masks (stronger version of disable). This section
+# # is unusual because you **must** include the suffix
+# # (e.g. ".service") as part of the name, so, e.g. to mask
+# # NetworkManager (rather than just disable it) you must
+# # specify "NetworkManager.service" as name.
+# mask:
+#  - name: "NetworkManager.service"
+#  - mandatory: true
+
+# By default, no changes are made.
+#services: []
+#targets: []
+#disable: []
+disable-targets: []
+
+# Manjaro settings
+
+services:
+  - name: "NetworkManager"
+    mandatory: false
+
+  - name: "org.cups.cupsd"
+    mandatory: false
+
+  - name: "gdm-plymouth"
+    mandatory: false
+
+  - name: "pacman-init"
+    mandatory: false
+
+  - name: "tlp"
+    mandatory: false
+
+  - name: "tlp-sleep"
+    mandatory: false
+
+  - name: "snapd.apparmor"
+    mandatory: false
+
+  - name: "apparmor"
+    mandatory: false
+
+targets:
+  - name: "graphical"
+    mandatory: true
+
+disable:
+  - name: "dhcpcd"
+    mandatory: false
+
+mask:
+  - name: "systemd-rfkill"
+    mandatory: false
+
+  - name: "systemd-rfkill.socket"
+    mandatory: false
diff --git a/modules/gdm/airootfs.i686/usr/share/calamares/modules/services.conf b/modules/gdm/airootfs.i686/usr/share/calamares/modules/services.conf
new file mode 100644 (file)
index 0000000..f6926c5
--- /dev/null
@@ -0,0 +1,111 @@
+# Systemd services manipulation.
+#
+# This module can enable services and targets for systemd
+# (if packaging doesn't already do that). It can calso
+# disable services (but not targets).
+#
+# First, services are enabled; then targets; then services
+# are disabled -- this order of operations is fixed.
+---
+
+# There are three configuration keys for this module:
+# *services*, *targets* and *disable*. The value of each
+# key is a list of entries. Each entry has two keys:
+#   - *name* is the (string) name of the service or target that is being
+#     changed. Use quotes. Don't include ".target" or ".service"
+#     in the name.
+#   - *mandatory* is a boolean option, which states whether the change
+#     must be done successfully. If systemd reports an error while changing
+#     a mandatory entry, the installation will fail. When mandatory is false,
+#     errors for that entry (service or target) are ignored. If mandatory
+#     is not specified, the default is false.
+#
+# An entry may also be given as a single string, which is then
+# interpreted as the name of the service. In this case, mandatory
+# is also set to the default of false.
+#
+# Use [] to express an empty list.
+
+# # This example enables NetworkManager (and fails if it can't),
+# # disables cups (and ignores failure). Then it enables the
+# # graphical target (e.g. so that SDDM runs for login), and
+# # finally disables pacman-init (an ArchLinux-only service).
+# #
+# # Enables <name>.service
+# services:
+#   - name: "NetworkManager"
+#     mandatory: true
+#   - name: "cups"
+#     mandatory: false
+#
+# # Enables <name>.target
+# targets:
+#   - name: "graphical"
+#     mandatory: true
+#
+# # Disables <name>.service
+# disable:
+#   - name: "pacman-init"
+#     mandatory: false
+#
+# # Disables <name>.target
+# #     .. this shows how to use just the name
+# disable-targets:
+#   - graphical
+#
+# # Masks (stronger version of disable). This section
+# # is unusual because you **must** include the suffix
+# # (e.g. ".service") as part of the name, so, e.g. to mask
+# # NetworkManager (rather than just disable it) you must
+# # specify "NetworkManager.service" as name.
+# mask:
+#  - name: "NetworkManager.service"
+#  - mandatory: true
+
+# By default, no changes are made.
+#services: []
+#targets: []
+#disable: []
+disable-targets: []
+
+# Manjaro settings
+
+services:
+  - name: "NetworkManager"
+    mandatory: false
+
+  - name: "org.cups.cupsd"
+    mandatory: false
+
+  - name: "gdm"
+    mandatory: false
+
+  - name: "pacman-init"
+    mandatory: false
+
+  - name: "tlp"
+    mandatory: false
+
+  - name: "tlp-sleep"
+    mandatory: false
+
+  - name: "snapd.apparmor"
+    mandatory: false
+
+  - name: "apparmor"
+    mandatory: false
+
+targets:
+  - name: "graphical"
+    mandatory: true
+
+disable:
+  - name: "dhcpcd"
+    mandatory: false
+
+mask:
+  - name: "systemd-rfkill"
+    mandatory: false
+
+  - name: "systemd-rfkill.socket"
+    mandatory: false
diff --git a/modules/gdm/alteriso b/modules/gdm/alteriso
new file mode 100644 (file)
index 0000000..9e793f3
--- /dev/null
@@ -0,0 +1 @@
+alteriso=3.1
diff --git a/modules/gdm/architecture b/modules/gdm/architecture
new file mode 100644 (file)
index 0000000..84d09d3
--- /dev/null
@@ -0,0 +1,10 @@
+#
+# Yamada Hayao
+# Twitter: @Hayao0819
+# Email  : hayao@fascode.net
+#
+# (c) 2019-2021 Fascode Network.
+#
+# Supported architecture list
+
+x86_64
diff --git a/modules/gdm/packages.i686/gdm.x86_64 b/modules/gdm/packages.i686/gdm.x86_64
new file mode 100644 (file)
index 0000000..0daa2c9
--- /dev/null
@@ -0,0 +1,12 @@
+#
+# Alter Linux package list
+#
+# Yamada Hayao
+# Twitter: @Hayao0819
+# Email  : hayao@fascode.net
+#
+# (c) 2019-2021 Fascode Network.
+#
+# GDM
+
+gdm
diff --git a/modules/gdm/packages.x86_64/gdm.x86_64 b/modules/gdm/packages.x86_64/gdm.x86_64
new file mode 100644 (file)
index 0000000..0daa2c9
--- /dev/null
@@ -0,0 +1,12 @@
+#
+# Alter Linux package list
+#
+# Yamada Hayao
+# Twitter: @Hayao0819
+# Email  : hayao@fascode.net
+#
+# (c) 2019-2021 Fascode Network.
+#
+# GDM
+
+gdm