forked from littlebizzy/slickstack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ss-install-ubuntu-kernel.txt
48 lines (35 loc) · 2.19 KB
/
ss-install-ubuntu-kernel.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#!/bin/bash
####################################################################################################
#### author: SlickStack ############################################################################
#### link: https://slickstack.io ###################################################################
#### mirror: http://mirrors.slickstack.io/ss-install-ubuntu-kernel.txt #############################
#### path: /var/www/ss-install-ubuntu-kernel #######################################################
#### destination: n/a (not a boilerplate) ##########################################################
#### purpose: Optimizes the Linux (Ubuntu) kernel to pretty much uncap all limits ##################
#### module version: Ubuntu 20.04 LTS ##############################################################
####################################################################################################
## SS-CONFIG MUST BE PROPERLY CONFIGURED (AND CURRENT BUILD) BEFORE RUNNING SS-INSTALL ##
## ENSURE SS-CONFIG OPTIONS REMAIN CURRENT BY RUNNING SS-UPDATE OCCASIONALLY ##
## include SlickStack configuration ##
source /var/www/ss-config
## include SlickStack functions ##
source /var/www/ss-functions
####################################################################################################
#### Configure Ubuntu: Optimize The System Kernel ##################################################
####################################################################################################
## delete tmp files ##
rm /tmp/sysctl*
## backup current Ubunt kernel file ##
cp /etc/sysctl.conf /etc/sysctl.conf.bak
## download latest versions ##
wget -O /tmp/sysctl.conf http://mirrors.slickstack.io/ubuntu/sysctl.txt
## copy files to their destinations ##
cp /tmp/sysctl.conf /etc/sysctl.conf
## reset permissions ##
chown root:root /etc/sysctl.conf
chmod 0664 /etc/sysctl.conf
####################################################################################################
#### SlickStack: External References Used To Improve This Script (Thanks, Interwebz) ###############
####################################################################################################
## Ref:
## SS_EOF