Em …

# /etc/security/limits.conf, ao final do arquivo.

root hard  nofile  1048576
root soft  nofile  1048576

root soft  stack  16777216

nobody hard  nofile 1048576
nobody soft  nofile 1048576

@nogroup hard  nofile 1048576
@nogroup soft  nofile 1048576

* soft stack  16777216

* hard  nofile 1048576
* soft  nofile 1048576

# End of file

Em …

# /etc/sysctl.conf

# Increase size of file handles and inode cache
fs.file-max = 16777216
      
Em …

#/etc/rc.local

#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

#
bash -c "/etc/rc.rgb 2>&1 &"
#
exit 0
#

Em …

# /etc/rc.rgb

#!/bin/bash
#
# rc.rgb

#
logmsg="/usr/bin/logger -s -t rc.rgb "
#

########################
trap '' INT TSTP

#STTY=$(stty -g)

#stty intr undef
#stty susp undef

########################

#
/bin/mount -t tmpfs tmpfs /run/lock -o remount,size=8388608

$logmsg "* * * RGB-ALERTA * * * --> Sistema Ligado e/ou Reiniciando ... (rc.rgb)"
#

echo "Ubuntu 18.04 Server LTS \n \s \m \l"                       > /etc/issue
echo "Welcome !!!"                                              >> /etc/issue
echo "Today is \d \t @ \n"                                      >> /etc/issue
echo "                                                        " >> /etc/issue

/usr/bin/screenfetch -E                                         >> /etc/issue

echo "                                                        " >> /etc/issue

echo "Help Call! Roberto Borges at [robertolinux@gmail.com] or +55 (85) 9 8677-0779 - Fortaleza,Ce (BR).  "  >> /etc/issue
echo "  " >> /etc/issue

###############

trap - INT TSTP
#stty ${STTY}

###############
#
#/usr/bin/setterm -blank 0
#
exit 0
#
#(EOF)

