<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.networksecuritytoolkit.org/nstwiki/index.php?action=history&amp;feed=atom&amp;title=HowTo_Run_A_Script_At_Boot</id>
	<title>HowTo Run A Script At Boot - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.networksecuritytoolkit.org/nstwiki/index.php?action=history&amp;feed=atom&amp;title=HowTo_Run_A_Script_At_Boot"/>
	<link rel="alternate" type="text/html" href="https://wiki.networksecuritytoolkit.org/nstwiki/index.php?title=HowTo_Run_A_Script_At_Boot&amp;action=history"/>
	<updated>2026-05-20T23:57:51Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.5</generator>
	<entry>
		<id>https://wiki.networksecuritytoolkit.org/nstwiki/index.php?title=HowTo_Run_A_Script_At_Boot&amp;diff=6457&amp;oldid=prev</id>
		<title>Paul Blankenbaker at 12:00, 15 October 2012</title>
		<link rel="alternate" type="text/html" href="https://wiki.networksecuritytoolkit.org/nstwiki/index.php?title=HowTo_Run_A_Script_At_Boot&amp;diff=6457&amp;oldid=prev"/>
		<updated>2012-10-15T12:00:13Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 08:00, 15 October 2012&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l30&quot;&gt;Line 30:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 30:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Make it executable.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Make it executable.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Here is a example which starts up a VNC server for the &#039;&#039;pkb&#039;&#039; user account automatically at boot time:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Here is a example &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039;/etc/rc.d/rc.local&#039;&#039; file &lt;/ins&gt;which starts up a VNC server for the &#039;&#039;pkb&#039;&#039; user account automatically at boot time:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  #!/bin/bash&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  #!/bin/bash&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  /bin/su - pkb -c &amp;#039;nstvncadmin --mode setup -d 6 --desktopmgr fluxbox&amp;#039;;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  /bin/su - pkb -c &amp;#039;nstvncadmin --mode setup -d 6 --desktopmgr fluxbox&amp;#039;;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Paul Blankenbaker</name></author>
	</entry>
	<entry>
		<id>https://wiki.networksecuritytoolkit.org/nstwiki/index.php?title=HowTo_Run_A_Script_At_Boot&amp;diff=6456&amp;oldid=prev</id>
		<title>Paul Blankenbaker at 11:56, 15 October 2012</title>
		<link rel="alternate" type="text/html" href="https://wiki.networksecuritytoolkit.org/nstwiki/index.php?title=HowTo_Run_A_Script_At_Boot&amp;diff=6456&amp;oldid=prev"/>
		<updated>2012-10-15T11:56:53Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 07:56, 15 October 2012&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l30&quot;&gt;Line 30:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 30:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Make it executable.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;* Make it executable.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Here is a example which starts up a VNC server for the &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;root &lt;/del&gt;user:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Here is a example which starts up a VNC server for the &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;&#039;pkb&#039;&#039; &lt;/ins&gt;user &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;account automatically at boot time&lt;/ins&gt;:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  #!/bin/bash&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  #!/bin/bash&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  nstvncadmin --mode setup -d 6 --desktopmgr fluxbox&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;/bin/su - pkb -c &#039;&lt;/ins&gt;nstvncadmin --mode setup -d 6 --desktopmgr fluxbox&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&#039;;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Paul Blankenbaker</name></author>
	</entry>
	<entry>
		<id>https://wiki.networksecuritytoolkit.org/nstwiki/index.php?title=HowTo_Run_A_Script_At_Boot&amp;diff=6455&amp;oldid=prev</id>
		<title>Paul Blankenbaker: Created page with &quot;When customizing a NST system, it is often desirable to run a script at boot time to perform some specific actions.  In the past, you could simply edit the &#039;&#039;/etc/rc.d/rc.local&#039;&#039;...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.networksecuritytoolkit.org/nstwiki/index.php?title=HowTo_Run_A_Script_At_Boot&amp;diff=6455&amp;oldid=prev"/>
		<updated>2012-10-15T11:39:48Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;When customizing a NST system, it is often desirable to run a script at boot time to perform some specific actions.  In the past, you could simply edit the &amp;#039;&amp;#039;/etc/rc.d/rc.local&amp;#039;&amp;#039;...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;When customizing a NST system, it is often desirable to run a script at boot time to perform some specific actions.&lt;br /&gt;
&lt;br /&gt;
In the past, you could simply edit the &amp;#039;&amp;#039;/etc/rc.d/rc.local&amp;#039;&amp;#039; configuration file to run system specific commands. After Fedora moved to using &amp;#039;&amp;#039;&amp;#039;systemd&amp;#039;&amp;#039;&amp;#039; to manage system services, the &amp;#039;&amp;#039;/etc/rc.d/rc.local&amp;#039;&amp;#039; file is no longer present. However, the &amp;#039;&amp;#039;/etc/rc.d/rc.local&amp;#039;&amp;#039; script is still honored by &amp;#039;&amp;#039;&amp;#039;systemd&amp;#039;&amp;#039;&amp;#039; via the &amp;#039;&amp;#039;rc-local.service&amp;#039;&amp;#039; target.&lt;br /&gt;
&lt;br /&gt;
You can verify that the &amp;#039;&amp;#039;rc-local.service&amp;#039;&amp;#039; is enabled at boot time using the following command:&lt;br /&gt;
&lt;br /&gt;
 [root@taco-dev32 nstboot]# systemctl is-enabled rc-local.service &amp;amp;&amp;amp; echo yes&lt;br /&gt;
 static&lt;br /&gt;
 yes&lt;br /&gt;
 [root@taco-dev32 nstboot]# &lt;br /&gt;
&lt;br /&gt;
At the time of this writing, the &amp;#039;&amp;#039;rc-local.service&amp;#039;&amp;#039; target looked something like the following:&lt;br /&gt;
&lt;br /&gt;
 [Unit]&lt;br /&gt;
 Description=/etc/rc.d/rc.local Compatibility&lt;br /&gt;
 After=network.target&lt;br /&gt;
 &lt;br /&gt;
 [Service]&lt;br /&gt;
 Type=forking&lt;br /&gt;
 ExecStart=/etc/rc.d/rc.local start&lt;br /&gt;
 TimeoutSec=0&lt;br /&gt;
 RemainAfterExit=yes&lt;br /&gt;
 SysVStartPriority=99&lt;br /&gt;
&lt;br /&gt;
To run commands at boot time using the &amp;#039;&amp;#039;rc-local.service&amp;#039;&amp;#039; script you need to do the following:&lt;br /&gt;
&lt;br /&gt;
* Create the file: &amp;#039;&amp;#039;/etc/rc.d/rc.local&amp;#039;&amp;#039;.&lt;br /&gt;
* Optionally check for the &amp;quot;&amp;#039;&amp;#039;start&amp;#039;&amp;#039;&amp;quot; argument (which is passed via the &amp;#039;&amp;#039;ExecStart&amp;#039;&amp;#039; parameter shown above).&lt;br /&gt;
* Put the commands you want to run inside the file.&lt;br /&gt;
* Make it executable.&lt;br /&gt;
&lt;br /&gt;
Here is a example which starts up a VNC server for the root user:&lt;br /&gt;
&lt;br /&gt;
 #!/bin/bash&lt;br /&gt;
 nstvncadmin --mode setup -d 6 --desktopmgr fluxbox&lt;/div&gt;</summary>
		<author><name>Paul Blankenbaker</name></author>
	</entry>
</feed>