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
17393797
Commit
17393797
authored
Jan 04, 2019
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add tune_new_system.sh
parent
02f115b3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
54 additions
and
0 deletions
+54
-0
tune_new_system.sh
etersoft/tune_new_system.sh
+54
-0
No files found.
etersoft/tune_new_system.sh
0 → 100755
View file @
17393797
#!/bin/sh
echo
-n
"Checking for epm ... "
if
!
which epm
;
then
cat
/etc/apt/sources.list.d/alt.list |
sed
-e
"s|http://ftp.altlinux.org/pub/distributions|http://download.etersoft.ru/pub|"
>
/etc/apt/sources.list.d/etersoft.list
subst
"s|^rpm|# rpm|"
/etc/apt/sources.list.d/alt.list
apt-get update
apt-get
install
eepm
||
exit
echo
OK
fi
if
[
!
-d
/etc/.git
]
;
then
cd
/etc
epmi etckeeper
etckeeper init
etckeeper commit
"initial commit"
fi
if
!
grep
-q
"root@server.office.etersoft.ru"
/root/.ssh/authorized_keys
;
then
echo
"Set ssh key ..."
cat
<<
EOF
>>/root/.ssh/authorized_keys
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKpX0yMvZS1r4mfEaeN4rjMlPPbtV3vdsLvV++wcajyx root@server.office.etersoft.ru
EOF
fi
epm
-q
avahi-daemon
>
/dev/null
&&
epm remove avahi-daemon
control
sudo
public
if
!
grep
"/home"
/etc/fstab |
grep
-q
nfs
;
then
cat
<<
EOF
>>/etc/fstab
server:/home /home nfs rw,_netdev 0 0
windsor:/srv /srv nfs rw,soft,intr,timeo=50,_netdev 0 0
EOF
fi
if
!
epm rl |
grep
-q
"LINUX@Etersoft"
;
then
epm ar etersoft
epm update
fi
# etersoft-desktop-essential-office
#/srv/lav/Projects/git-eter/etersoft-admin-essential/dc-client/tune_sssd.sh lavadmin
if
!
grep
-q
^eterworkers /etc/role
;
then
cat
<<
EOF
>>/etc/role
eterworkers: wheel,audio,uucp,cdrom,floppy,cdwriter,radio,video,camera,scanner,fuse
EOF
fi
# TODO
subst
"s|# WHEEL_USERS ALL=(ALL) NOPASSWD: ALL|WHEEL_USERS ALL=(ALL) NOPASSWD: ALL|"
/etc/sudoers
userdel user
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