Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-admin-essentials
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
etersoft-admin-essentials
Commits
2ab9ab67
Commit
2ab9ab67
authored
Feb 12, 2021
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update etersoft tune_new_user
parent
1b123e8f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
9 deletions
+16
-9
tune_new_user.sh
etersoft/tune_new_user.sh
+13
-8
tune_new_user_su.sh
etersoft/tune_new_user_su.sh
+3
-1
No files found.
etersoft/tune_new_user.sh
View file @
2ab9ab67
...
...
@@ -6,16 +6,18 @@ CONSOLEFONT="Droid Sans Mono 11"
#NU="$1"
NU
=
"
$USER
"
DOMAIN
=
"etersoft.ru"
CONSOLEFONT
=
"Droid Sans Mono 11"
[
-n
"
$NU
"
]
||
exit
# skip for these users
case
"
$NU
"
in
lav|kondratyuk
)
exit
exit
1
;;
esac
[
"
$UID
"
=
0
]
&&
exit
1
NAME
=
"
$(
getent passwd
"
$NU
"
|
cut
-d
":"
-f5
)
"
[
-n
"
$NAME
"
]
||
exit
...
...
@@ -55,6 +57,7 @@ fi
# tune terminal
mkdir
-p
~/.config/xfce4/terminal/
cat
<<
EOF
>>~/.config/xfce4/terminal/accels.scm
; Etersoft
; xfce4-terminal GtkAccelMap rc-file -*- scheme -*-
; this file is an automated accelerator map dump
;
...
...
@@ -117,6 +120,7 @@ EOF
mkdir
-p
~/.config/xfce4/terminal/
cat
<<
EOF
>>~/.config/xfce4/terminal/terminalrc
# Etersoft
[Configuration]
FontName=
$CONSOLEFONT
MiscAlwaysShowTabs=FALSE
...
...
@@ -161,6 +165,7 @@ EOF
mkdir
-p
~/.config/xfce4/terminal/
cat
<<
EOF
>>~/.config/xfce4/helpers.rc
# Etersoft
TerminalEmulator=xfce4-terminal
WebBrowser=chromium
FileManager=Thunar
...
...
@@ -169,6 +174,7 @@ EOF
mkdir
-p
~/.config/mc/
cat
<<
EOF
>>~/.config/mc/ini
# Etersoft
[Midnight-Commander]
verbose=true
shell_patterns=true
...
...
@@ -317,10 +323,9 @@ Modified git files=git ls-files --modified
EOF
FIREFOXPREFS
=
$(
echo
~/.mozilla/firefox/
*
/prefs.js
)
if
[
-s
"
$FIREFOXPREFS
"
]
;
then
if
!
grep
"network.negotiate-auth.trusted-uris"
$FIREFOXPREFS
;
then
echo
'user_pref("network.negotiate-auth.trusted-uris", ".etersoft.ru,.eterhost.ru");'
>>
$FIREFOXPREFS
for
i
in
$FIREFOXPREFS
;
then
[
-s
"
$i
"
]
||
continue
if
!
grep
"network.negotiate-auth.trusted-uris"
$i
;
then
echo
'user_pref("network.negotiate-auth.trusted-uris", ".etersoft.ru,.eterhost.ru");'
>>
$i
fi
fi
done
etersoft/tune_new_user_su.sh
View file @
2ab9ab67
...
...
@@ -5,7 +5,9 @@ NU="$1"
if
[
!
-d
"/srv/
$NU
/Projects"
]
;
then
mkdir
-p
/srv/
$NU
/Projects
||
exit
ln
-s
/srv/
$NU
/ /home/
$NU
/Projects
chown
-Rv
$NU
:builder /srv/
$NU
[
-L
/home/
$NU
/Projects
]
&&
rm
-f
/home/
$NU
/Projects
ln
-s
/srv/
$NU
/Projects /home/
$NU
/Projects
# hektor: /home
if
[
"hektor"
=
"
$(
hostname
-s
)
"
]
;
then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment