<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="http://andlinux.org/wiki/skins/common/feed.css?116"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://andlinux.org/wiki/index.php5?title=Howto:_change_default_user&amp;feed=atom&amp;action=history</id>
		<title>Howto: change default user - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://andlinux.org/wiki/index.php5?title=Howto:_change_default_user&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://andlinux.org/wiki/index.php5?title=Howto:_change_default_user&amp;action=history"/>
		<updated>2013-05-24T02:33:50Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.12.0</generator>

	<entry>
		<id>http://andlinux.org/wiki/index.php5?title=Howto:_change_default_user&amp;diff=163&amp;oldid=prev</id>
		<title>Jpascher: /* Step 2: Change the name used by andLinux */ path looks lik it was wrong X11 removed</title>
		<link rel="alternate" type="text/html" href="http://andlinux.org/wiki/index.php5?title=Howto:_change_default_user&amp;diff=163&amp;oldid=prev"/>
				<updated>2008-05-31T07:26:08Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Step 2: Change the name used by andLinux: &lt;/span&gt; path looks lik it was wrong X11 removed&lt;/p&gt;

			&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;tr&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;←Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 07:26, 31 May 2008&lt;/td&gt;
			&lt;/tr&gt;
		&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 35:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 35:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== Step 2: Change the name used by andLinux ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== Step 2: Change the name used by andLinux ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Now you'll need to edit the &amp;lt;tt&amp;gt;/usr/bin&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;/X11&lt;/del&gt;/startwindowsterminalsession&amp;lt;/tt&amp;gt; file. Change the last lines from this:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Now you'll need to edit the &amp;lt;tt&amp;gt;/usr/bin/startwindowsterminalsession&amp;lt;/tt&amp;gt; file. Change the last lines from this:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;  &amp;lt;tt&amp;gt;termcommand=`cat /etc/winterm`&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;  &amp;lt;tt&amp;gt;termcommand=`cat /etc/winterm`&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 47:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 47:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Note that if you created &amp;lt;tt&amp;gt;joachim&amp;lt;/tt&amp;gt; as a privileged user, you are done at this point. But you didn't, so keep reading.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;Note that if you created &amp;lt;tt&amp;gt;joachim&amp;lt;/tt&amp;gt; as a privileged user, you are done at this point. But you didn't, so keep reading.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt; &lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== Step 3: Change launcher port ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;== Step 3: Change launcher port ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Jpascher</name></author>	</entry>

	<entry>
		<id>http://andlinux.org/wiki/index.php5?title=Howto:_change_default_user&amp;diff=149&amp;oldid=prev</id>
		<title>Austin hastings: /* Step 4: Change port used by Windows launcher apps */</title>
		<link rel="alternate" type="text/html" href="http://andlinux.org/wiki/index.php5?title=Howto:_change_default_user&amp;diff=149&amp;oldid=prev"/>
				<updated>2008-05-21T12:56:34Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Step 4: Change port used by Windows launcher apps&lt;/span&gt;&lt;/p&gt;

			&lt;table style=&quot;background-color: white; color:black;&quot;&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;col class='diff-marker' /&gt;
			&lt;col class='diff-content' /&gt;
			&lt;tr&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;←Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 12:56, 21 May 2008&lt;/td&gt;
			&lt;/tr&gt;
		&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 78:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 78:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;  &lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;  Exit the registry editor.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;  Exit the registry editor.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;-&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;[[Image:andlinux-registry.png]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;nbsp;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;At this point, your Windows launchers will connect to andLinux using 192.168.11.150:8181, instead of the default ...:81. Your VM should have finished rebooting, so start the andKonsole launcher as a test.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;At this point, your Windows launchers will connect to andLinux using 192.168.11.150:8181, instead of the default ...:81. Your VM should have finished rebooting, so start the andKonsole launcher as a test.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Austin hastings</name></author>	</entry>

	<entry>
		<id>http://andlinux.org/wiki/index.php5?title=Howto:_change_default_user&amp;diff=148&amp;oldid=prev</id>
		<title>Austin hastings: New page: = How to change the default user =  The andLinux startup scripts will eventually invoke a script at &lt;tt&gt;/usr/bin/X11/&lt;u&gt;s&lt;/u&gt;tart&lt;u&gt;w&lt;/u&gt;indows&lt;u&gt;t&lt;/u&gt;erminal&lt;u&gt;s&lt;/u&gt;ession.&lt;/tt&gt; The last ...</title>
		<link rel="alternate" type="text/html" href="http://andlinux.org/wiki/index.php5?title=Howto:_change_default_user&amp;diff=148&amp;oldid=prev"/>
				<updated>2008-05-21T12:55:50Z</updated>
		
		<summary type="html">&lt;p&gt;New page: = How to change the default user =  The andLinux startup scripts will eventually invoke a script at &amp;lt;tt&amp;gt;/usr/bin/X11/&amp;lt;u&amp;gt;s&amp;lt;/u&amp;gt;tart&amp;lt;u&amp;gt;w&amp;lt;/u&amp;gt;indows&amp;lt;u&amp;gt;t&amp;lt;/u&amp;gt;erminal&amp;lt;u&amp;gt;s&amp;lt;/u&amp;gt;ession.&amp;lt;/tt&amp;gt; The last ...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= How to change the default user =&lt;br /&gt;
&lt;br /&gt;
The andLinux startup scripts will eventually invoke a script at &amp;lt;tt&amp;gt;/usr/bin/X11/&amp;lt;u&amp;gt;s&amp;lt;/u&amp;gt;tart&amp;lt;u&amp;gt;w&amp;lt;/u&amp;gt;indows&amp;lt;u&amp;gt;t&amp;lt;/u&amp;gt;erminal&amp;lt;u&amp;gt;s&amp;lt;/u&amp;gt;ession.&amp;lt;/tt&amp;gt; The last lines of this script are&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;tt&amp;gt;termcommand=`cat /etc/winterm`&lt;br /&gt;
  sux - '''root''' ${termcommand}&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;tt&amp;gt;root&amp;lt;/tt&amp;gt; user is the default user for launching programs on the andLinux VM. To change the default user, you need to replace the user name in this file, and restart andLinux. However, there is a catch. If you are replacing &amp;lt;tt&amp;gt;root&amp;lt;/tt&amp;gt; with a non-privileged user, the '''launcher.pl''' daemon will not be able to open port 81 (the default, recall) for listening, because the first 1024 ports require super-user privileges to access. &lt;br /&gt;
 &lt;br /&gt;
So to replace &amp;lt;tt&amp;gt;root&amp;lt;/tt&amp;gt; with some other privileged user simply requires changing the name, while replacing it with a non-privileged user requires more work. We'll create a user '''joachim''' for our example.&lt;br /&gt;
&lt;br /&gt;
== Step 1: Create the user ==&lt;br /&gt;
 &lt;br /&gt;
  &amp;lt;tt&amp;gt;root@andLinux:~# '''adduser joachim'''&lt;br /&gt;
  Adding user `joachim' ...&lt;br /&gt;
  Adding new group `joachim' (1001) ...&lt;br /&gt;
  Adding new user `joachim' (1001) with group `joachim' ...&lt;br /&gt;
  Creating home directory `/home/joachim' ...&lt;br /&gt;
  Copying files from `/etc/skel' ...&lt;br /&gt;
  Enter new UNIX password:&lt;br /&gt;
  Retype new UNIX password:&lt;br /&gt;
  passwd: password updated successfully&lt;br /&gt;
  Changing the user information for joachim&lt;br /&gt;
  Enter the new value, or press ENTER for the default&lt;br /&gt;
        Full Name []: Joachim von Paderborn&lt;br /&gt;
        Room Number []:&lt;br /&gt;
        Work Phone []:&lt;br /&gt;
        Home Phone []:&lt;br /&gt;
        Other []:&lt;br /&gt;
  Is the information correct? [y/N] '''y'''&amp;lt;/tt&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
If you are creating a privileged user, you'll need to do more than this--you'll want to override the userid, setting it to 0, or create an administrative group and add the new account to it. For the rest of us, it's probably enough to create a &amp;quot;plain old user&amp;quot; and then give them sudo privileges with &amp;lt;tt&amp;gt;visudo.&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Step 2: Change the name used by andLinux ==&lt;br /&gt;
 &lt;br /&gt;
Now you'll need to edit the &amp;lt;tt&amp;gt;/usr/bin/X11/startwindowsterminalsession&amp;lt;/tt&amp;gt; file. Change the last lines from this:&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;tt&amp;gt;termcommand=`cat /etc/winterm`&lt;br /&gt;
  sux - root ${termcommand}&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
to this:&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;tt&amp;gt;termcommand=`cat /etc/winterm`&lt;br /&gt;
  #sux - root ${termcommand}&lt;br /&gt;
  sux - '''joachim''' ${termcommand}&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that if you created &amp;lt;tt&amp;gt;joachim&amp;lt;/tt&amp;gt; as a privileged user, you are done at this point. But you didn't, so keep reading.&lt;br /&gt;
 &lt;br /&gt;
== Step 3: Change launcher port ==&lt;br /&gt;
 &lt;br /&gt;
Now you need to change the port number used by the launcher, because non-privileged logins cannot access port numbers below 1k. First, edit the &amp;lt;tt&amp;gt;/usr/local/sbin/launcher.pl&amp;lt;/tt&amp;gt; script. At or near line #10, you will see:&lt;br /&gt;
  &lt;br /&gt;
  &amp;lt;tt&amp;gt;$sock = new IO::Socket::INET('''LocalPort =&amp;gt; 81,''' Reuse =&amp;gt; 1, Listen =&amp;gt; 20) or die(&amp;quot;Error creating local socket: $@\n&amp;quot;);&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Change the '''LocalPort''' from 81 to some other value. For this example, let's use 8181:&lt;br /&gt;
&lt;br /&gt;
  &amp;lt;tt&amp;gt;$sock = new IO::Socket::INET('''LocalPort =&amp;gt; 8181,''' Reuse =&amp;gt; 1, Listen =&amp;gt; 20) or die(&amp;quot;Error creating local socket: $@\n&amp;quot;);&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
At this point, the script is fixed but nothing will happen until you restart the andLinux server. Just run '''reboot''' and let's fix up the Windows side.&lt;br /&gt;
&lt;br /&gt;
== Step 4: Change port used by Windows launcher apps ==&lt;br /&gt;
 &lt;br /&gt;
As documented [[Quick_Tips#Change_Launcher_Port|here]], the default andLinux configuration expects the andLinux VM to be at IP address 192.168.11.150 and expects the '''launcher.pl''' script to listen on port 81. &lt;br /&gt;
 &lt;br /&gt;
From the Windows desktop, select '''Start &amp;amp;rarr; Run...''' then enter &amp;lt;tt&amp;gt;'''regedit'''&amp;lt;/tt&amp;gt; in the Run dialog box. Browse the registry tree to open a registry key called HKEY_LOCAL_MACHINE\SOFTWARE.&lt;br /&gt;
 &lt;br /&gt;
At this point, you will have to right-click on the SOFTWARE entry, and select '''New &amp;gt; Key'''. Create a new key '''andLinux''' then right-click the andLinux key to create a new key '''Launcher''' beneath it. Finally, right-click to create two new entries below \HKEY_LOCAL_MACHINE\SOFTWARE\andLinux\Launcher:&lt;br /&gt;
&lt;br /&gt;
  '''New &amp;gt; String Value'''&lt;br /&gt;
  Rename this value &amp;quot;IP&amp;quot;&lt;br /&gt;
  Double-click &amp;quot;IP&amp;quot;, and set the &amp;quot;Value data&amp;quot; to &amp;quot;192.168.11.150&amp;quot;&lt;br /&gt;
  &lt;br /&gt;
  '''New &amp;gt; DWORD Value'''&lt;br /&gt;
  Rename this value &amp;quot;Port&amp;quot;&lt;br /&gt;
  Double-click &amp;quot;Port&amp;quot; and set the &amp;quot;Value data&amp;quot; to 8181. Be sure and choose &amp;quot;Decimal&amp;quot; for the base.&lt;br /&gt;
  &lt;br /&gt;
  Exit the registry editor.&lt;br /&gt;
&lt;br /&gt;
[[Image:andlinux-registry.png]]&lt;br /&gt;
&lt;br /&gt;
At this point, your Windows launchers will connect to andLinux using 192.168.11.150:8181, instead of the default ...:81. Your VM should have finished rebooting, so start the andKonsole launcher as a test.&lt;/div&gt;</summary>
		<author><name>Austin hastings</name></author>	</entry>

	</feed>