Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
Obarun Install Themes
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Eric Vidal
Obarun Install Themes
Commits
04f8b534
Commit
04f8b534
authored
5 years ago
by
jean-michel
Browse files
Options
Downloads
Patches
Plain Diff
add config_user function
parent
50385998
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
plasma/customizeChroot
+42
-8
42 additions, 8 deletions
plasma/customizeChroot
with
42 additions
and
8 deletions
plasma/customizeChroot
+
42
−
8
View file @
04f8b534
...
...
@@ -56,30 +56,64 @@ config_66(){
# creation of the live/ to avoid crash
mkdir
-p
-m1777
/run/66
out_action
"Create
and
enable tree [system]"
out_action
"Create
,
enable tree [system]"
66-tree
-v3
-nE
system
out_action
"Enable ntpd,sshd on tree [system]"
66-enable
-v3
-t
system ntpd sshd
out_action
"Create, enable
and set flag default on tree [desktop]
"
out_action
"Create, enable
tree [desktop] with flag current
"
66-tree
-v3
-nEc
desktop
out_action
"Enable dbus,networkmanager,wpa_supplicant services on tree [desktop]"
66-enable
-v3
-t
desktop dbus networkmanager wpa_supplicant
out_action
"Enable dbus,networkmanager,wpa_supplicant services
,sddm
on tree [desktop]"
66-enable
-v3
-t
desktop dbus networkmanager wpa_supplicant
sddm
# avoid permissions access issue
chown
-R
${
NEWUSER
}
:users /run/66
out_action
"
Create tree graphics for
${
NEWUSER
}
, enables and makes it
current"
su
"
${
NEWUSER
}
"
-c
"66-tree -v3 -Ec
n
g
raphics
"
out_action
"
For
${
NEWUSER
}
: Create, enable tree [gui] with flag
current"
su
"
${
NEWUSER
}
"
-c
"66-tree -v3 -
n
Ec g
ui
"
out_action
"Enable dbus-user and xdg-user-dirs on tree
graphics
"
su
"
${
NEWUSER
}
"
-c
"66-enable -v3 -t g
raphics
dbus-user xdg-user-dirs"
out_action
"Enable dbus-user and xdg-user-dirs on tree
[gui]
"
su
"
${
NEWUSER
}
"
-c
"66-enable -v3 -t g
ui
dbus-user xdg-user-dirs"
rm
-rf
/run/66
}
custo_once config_66
config_user
(){
out_action
"Create
${
NEWUSER
}
.scandir file"
su
"
${
NEWUSER
}
"
-c
"cat > /home/
${
NEWUSER
}
/.scandir <<EOF
#!/usr/bin/execlineb -P
#emptyenv -p
s6-setsid -qb --
umask 022
66-scandir -v3 -cu
EOF"
out_action
"Set 750 permissions on .scandir file"
su
"
${
NEWUSER
}
"
-c
"chmod 750 /home/
${
NEWUSER
}
/.scandir"
out_action
"Create
${
NEWUSER
}
.zprofile file"
su
"
${
NEWUSER
}
"
-c
"cat > /home/
${
NEWUSER
}
/.zprofile <<EOF
## Execute scandir script
## Send a down signal, or 'could not sync environment to dbus' with sddm when user logout/login
## Send an up signal for services inside tree [gui]
(.scandir &) &
66-all -t gui down
sleep 01
66-all -t gui up
EOF"
out_action
"Create
${
NEWUSER
}
.xinitrc file"
su
"
${
NEWUSER
}
"
-c
"cat > /home/
${
NEWUSER
}
/.xinitrc <<EOF
## Uncomment if you use startx command line to launch plasma DE
exec ck-launch-session startkde
EOF"
}
custo_once config_user
out_valid
"Customization terminate"
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment