


 



<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://docwiki.cisco.com/w/skins/common/feed.css?270"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://docwiki.cisco.com/w/index.php?title=Application_Extension_Platform_1.x_--_Enabling_the_Linux_Shell_in_a_Virtual_Instance&amp;feed=atom&amp;action=history</id>
		<title>Application Extension Platform 1.x -- Enabling the Linux Shell in a Virtual Instance - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://docwiki.cisco.com/w/index.php?title=Application_Extension_Platform_1.x_--_Enabling_the_Linux_Shell_in_a_Virtual_Instance&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://docwiki.cisco.com/w/index.php?title=Application_Extension_Platform_1.x_--_Enabling_the_Linux_Shell_in_a_Virtual_Instance&amp;action=history"/>
		<updated>2013-05-23T10:04:44Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.16.0</generator>

	<entry>
		<id>http://docwiki.cisco.com/w/index.php?title=Application_Extension_Platform_1.x_--_Enabling_the_Linux_Shell_in_a_Virtual_Instance&amp;diff=36043&amp;oldid=prev</id>
		<title>Jwithing: 1 revision</title>
		<link rel="alternate" type="text/html" href="http://docwiki.cisco.com/w/index.php?title=Application_Extension_Platform_1.x_--_Enabling_the_Linux_Shell_in_a_Virtual_Instance&amp;diff=36043&amp;oldid=prev"/>
				<updated>2010-12-02T20:30:56Z</updated>
		
		<summary type="html">&lt;p&gt;1 revision&lt;/p&gt;
&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
		&lt;tr valign='top'&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
		&lt;td colspan='1' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 20:30, 2 December 2010&lt;/td&gt;
		&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Jwithing</name></author>	</entry>

	<entry>
		<id>http://docwiki.cisco.com/w/index.php?title=Application_Extension_Platform_1.x_--_Enabling_the_Linux_Shell_in_a_Virtual_Instance&amp;diff=36042&amp;oldid=prev</id>
		<title>Jwithing: /* Change permissions */</title>
		<link rel="alternate" type="text/html" href="http://docwiki.cisco.com/w/index.php?title=Application_Extension_Platform_1.x_--_Enabling_the_Linux_Shell_in_a_Virtual_Instance&amp;diff=36042&amp;oldid=prev"/>
				<updated>2010-12-02T06:04:35Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Change permissions&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;To enable the Linux shell to be used by your application, the application must be packaged with a postinstall script as described below.&lt;br /&gt;
==Creating the Postinstall Script==&lt;br /&gt;
To obtain console access using a postinstall script, perform the following steps:&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Create a login script===&lt;br /&gt;
'''Example:'''&amp;lt;br /&amp;gt;&lt;br /&gt;
In this example bash file /source/bin/login.sh is created, where /source is the build directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt;! /bin/sh&lt;br /&gt;
/bin/bash --login&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Create a postinstall script===&lt;br /&gt;
'''Example:'''&amp;lt;br /&amp;gt;&lt;br /&gt;
In this example, script /source/bin/postinstall.sh is created, where /source is the build directory.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;#&amp;lt;/nowiki&amp;gt;! /bin/sh&lt;br /&gt;
ln -s /bin/login.sh /bin/console&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===Change permissions===&lt;br /&gt;
Change the permissions of the postinstall script for non-owner users to read-execute.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;code&amp;gt;chmod 755 /opt/tcptrace/postscripts/postinstall.sh&lt;br /&gt;
&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The next step is to package and install your application, referring to the postinstall script.&lt;br /&gt;
Pass the name of the postinstall script to the Cisco AXP packaging tool script during packaging. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To navigate to the Linux shell refer to [[Application Extension Platform 1.x -- Accessing the Guest Operating System]]&lt;br /&gt;
&lt;br /&gt;
'''Return to: '''[[Application Extension Platform 1.x -- Packaging Applications on Cisco AXP]]&lt;br /&gt;
&lt;br /&gt;
'''Return to: '''[[Application_Extension_Platform_1.x_--_Accessing_the_Guest_Operating_System]]&lt;br /&gt;
&lt;br /&gt;
'''Return to start of: '''[[Cisco AXP Getting Started Guide]]&lt;br /&gt;
[[Category:AXP Getting Started]]&lt;/div&gt;</summary>
		<author><name>Jwithing</name></author>	</entry>

	</feed>