BCS Ubuntu Admin For System Boot


To store certain command you would like executed at boot time consider using the “/etc/rc.local” file.
[codesyntax lang=”bash”]

#!/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.
sudo iptables -A INPUT -p tcp --dport 10000 -j ACCEPT
sudo iptables -A INPUT -p tcp --dport 21 -j ACCEPT
exit 0

[/codesyntax]
These two commands make sure the ports are open and ready for use.
Mr. Arch Brooks, Software Engineer, Brooks Computing Systems, LLC authored this article.

Leave a Reply

Your email address will not be published. Required fields are marked *