Use '''useradd -m ''username''''' to create a new non-root user, with a homedir.

Use '''useradd -m ''username''''' to create a new non-root user, with a homedir.

-

-

As the new user, optionally use the '''passwd''' command to add a password to the account. It may be useful to also add a password for the root account in the same way, as by default it doesn't have one.

== Make a normal user the default user ==

== Make a normal user the default user ==

-

The default andLinux user is a root account without password. The following shows how to add passwords, and make a normal user the default account.

+

The default andLinux user is a root account without password. The following shows how to make a normal user the default account.

+

+

=== Add passwords (optional) ===

+

If desired, use the "passwd" command directly on each account to set a password. If logged in as root, any account password may be changed using:

+

> passwd <username>

=== Install sudo (if required) ===

=== Install sudo (if required) ===

Line 38:

Line 40:

> apt-get install sudo

> apt-get install sudo

-

=== change to default user ===

+

=== Change the default user ===

-

edit '''/usr/bin/X11/startwindowsterminalsession''' and replace 'root' with your new username. Add this user to '''/etc/sudoers''', for example, supposing a username of "newuser":

+

Edit '''/usr/bin/X11/startwindowsterminalsession''' and replace 'root' with your new username. Add this user to '''/etc/sudoers''', for example, supposing a username of "newuser":

# User privilege specification

# User privilege specification

Line 93:

Line 95:

====Alternative approach====

====Alternative approach====

In the event of difficulty changing permissions, and provided sudo has been set up, it's possible to simply prefix all commands which write to /mnt/win with "sudo" in order to use root privilege. In this way the default cofuse setup will still be sufficient, but normal operations can be performed with normal user privilege.

In the event of difficulty changing permissions, and provided sudo has been set up, it's possible to simply prefix all commands which write to /mnt/win with "sudo" in order to use root privilege. In this way the default cofuse setup will still be sufficient, but normal operations can be performed with normal user privilege.

+

+

=== Change default shell ===

+

You may find that the default shell for the new user (/bin/sh) isn't the one you want. To change the shell, use the "chsh" program. Available shells are shown in <code>/etc/shells</code>. Bash is a popular choice, for example:

Change Launcher Port

To change the launcher port, both the windows registry and launcher.pl within the andLinux root filesystem need editing. Here's how:

windows

Non-root-users can't use ports <1024. The Launcher must use a port greater than 1024, e.g. 8081. To edit the windows registry to suit the new port number, first create a text file with the following content:

then rename it to "Launcher.reg". Run this file to edit the registry. The Port number (shown in bold) is coded in HEX, and means 8081. Windows calculator used in scientific mode can convert between hex and decimal.

The uid parameter in the last line is the important one and should be set to match the ID of the user needing write access to /mnt/win. By default the first user's id will be 1001, but to check use the "id" command:

The mode option is not supported by the cofuse, so it is not possible to change the file permissions in general.

Alternative approach

In the event of difficulty changing permissions, and provided sudo has been set up, it's possible to simply prefix all commands which write to /mnt/win with "sudo" in order to use root privilege. In this way the default cofuse setup will still be sufficient, but normal operations can be performed with normal user privilege.

Change default shell

You may find that the default shell for the new user (/bin/sh) isn't the one you want. To change the shell, use the "chsh" program. Available shells are shown in /etc/shells. Bash is a popular choice, for example:

Alternative way of starting Linux programs

XFCE panel and andLinux Launcher are nice, but I want as less special objects on my Windows desktop as possible. I just need a terminal emulator, as I can start all programs from the shell. The andCmd.exe binary comes in handy here. I have created two Windows batch files (for a root and a normal user shell):

C:\Programme\andLinux\Launcher\andCmd.exe xterm -bg orange

C:\Programme\andLinux\Launcher\andCmd.exe sudo su - ah -c xterm

Of course the chosen terminal emulator (as well as the background color of the root shell ;-) ) is a matter of taste.