- add instructions to add users

- nix-pull does not work yet

svn path=/nixu/trunk/; revision=1241
This commit is contained in:
Armijn Hemel 2004-08-06 13:45:41 +00:00
parent 23f6a57f7a
commit eb5fbd58d8

32
INSTALL
View File

@ -48,6 +48,25 @@ seems to hang.
Installing a 2.6 based UML with Nix is not trivial and is not advised. Installing a 2.6 based UML with Nix is not trivial and is not advised.
Using the Nix UML
By default, the Nix UML comes with very little configuration. Apart from the
networking information and mount information, there is nothing. One of the
first things to do is to add user and group information, otherwise a lot
of tools won't work. There are empty passwd, shadow and group files. Due
to some limitations in Nix it is only possible to modify the password file
as root.
- add a root user:
useradd root
- edit /etc/passwd and change the UID to 0 ("vim" is provided)
- add a root group:
groupadd root
Adding packages to the UML Nix installation Adding packages to the UML Nix installation
Packages can be added the the Nix UML installation by editing a few files. Packages can be added the the Nix UML installation by editing a few files.
@ -55,14 +74,13 @@ The first file packages should be added to is 'pkgs.nix'. The other files
that should be edited all reside in the "boot" directory. In default.nix that should be edited all reside in the "boot" directory. In default.nix
the packages should be added as an argument (first line) and given as an the packages should be added as an argument (first line) and given as an
argument to the builder (line starting with "inherit"). In "builder.sh" argument to the builder (line starting with "inherit"). In "builder.sh"
there is a giant sed expression which subsitutes all occurences of the there is a sed expression which subsitutes all occurences of the names of
names of the packages in the files with the right value. If the programs the packages in the files with the right value. If the programs that are
that are added need to be added to $PATH the file "env.sh" has to be added need to be added to $PATH the file "env.sh" has to be edited and the
edited. UML has to be recreated.
Another option is to enable networking in the UML and use nix-pull to get Another option would be to enable networking in the UML and use nix-pull to
all the right packages. One thing you have to make sure is that the packages get all the right packages, however this does not work yet.
you want to install are indeed defined in the nix files.
Differences with a normal UML Differences with a normal UML