diff --git a/docs/userguide/en/installation/install-source-linux.html b/docs/userguide/en/installation/install-source-linux.html index 1da74e662a..590e9793ea 100644 --- a/docs/userguide/en/installation/install-source-linux.html +++ b/docs/userguide/en/installation/install-source-linux.html @@ -84,20 +84,30 @@ This is also how you update the code in the future.
You start by duplicating the UserBuildConfig.sample and the remove the.sample suffix to get your UserBuildConfig. From the .ReadMe you can copy interesting parts into your config and customize them there.
First, the line needed for the optional "OpenSSH" package:
+First, the line is needed for the optional "OpenSSH" package:
HAIKU_IMAGE_HOST_NAME = "TEST" ;
There are several optional software packages available, that are dowloaded at build time if they haven't been so already. For a list of all available packages, see haiku/trunk/build/jam/OptionalPackages. Here's an example:
+# Add these optional packages. +AddOptionalHaikuImagePackages Beam ; +AddOptionalHaikuImagePackages BeHappy ; +AddOptionalHaikuImagePackages BePDF ; +AddOptionalHaikuImagePackages Firefox ; +AddOptionalHaikuImagePackages NetSurf ; +AddOptionalHaikuImagePackages OpenSSL ; +AddOptionalHaikuImagePackages OpenSSH ; +AddOptionalHaikuImagePackages Pe ; +AddOptionalHaikuImagePackages Vision ; +AddOptionalHaikuImagePackages Welcome ; +AddOptionalHaikuImagePackages WonderBrush ;+
Now the block that sets the defaults for timezone and keymap:
# Add symlink/file (timezone and keymap settings) to the image. AddSymlinkToHaikuImage home config settings : /boot/beos/etc/timezones/Europe/Paris : timezone ; AddFilesToHaikuImage home config settings : German : Key_map ;
The build process can be fine tuned until it fits your needs. You could create your own folder haiku/trunk/user_data/
-and put files there that are then copied or unzipped into the image.
-Zipping is important when dealing with Haiku files with their
-attributes, because zipping them up will preserve them on non-BFS
-partitions.
+
The build process can be fine tuned until it fits your needs. You could create your own folder haiku/trunk/user_data/ and put files there that are then copied or unzipped into the image. Zipping is important when dealing with Haiku files with their attributes, because zipping them up will preserve them on non-BFS partitions.
For example:
# Zip up your emails between each system update and place the archive into the @@ -108,33 +118,26 @@ UnzipArchiveToHaikuImage home The second line is the location of the zip file. $(HAIKU_TOP) is the lowest level of the checked out source tree, normally haiku/trunk/.In the same way, you use CopyDirectoryToHaikuImage and AddFilesToHaikuImage to copy whole directories or single files into the image.
The above commands are executed when building any kind of image.
-"Build Profiles" provide the means to set commands specifically for
-different configurations.
-These are two profiles, one for building and installing an image
-directly onto a partition and the other to generate a VMWare image:
The above commands are executed when building any kind of image. "Build Profiles" provide the means to set commands specifically for different configurations.
+These are two profiles, one for building and installing an image directly onto a partition and the other to generate a VMWare image:
DefineBuildProfile disk : disk : "/dev/sda7" ; DefineBuildProfile vmware : vmware-image ; switch $(HAIKU_BUILD_PROFILE) { case "disk" : { - HAIKU_ADD_ALL_OPTIONAL_PACKAGES = 1 ; } case "vmware" : { HAIKU_IMAGE_SIZE = 900 ; HAIKU_DONT_CLEAR_IMAGE = 1 ; - HAIKU_ADD_ALL_OPTIONAL_PACKAGES = 1 } }
The first line is especially important and dangerous: "/dev/sda7"
The so defined partition will be irretrievably overwritten!
Before you use this profile, you should make sure that it's really -the correct partition on the right harddisk or USB-stick, for example -by using Ubuntu's partition editor GParted.
Before you use this profile, you should make sure that it's really the correct partition on the right harddisk or USB-stick, for example by using Ubuntu's partition editor GParted.
Note: when building an a USB memory stick, you wouldn't specify the partition number in the disk entry (ex. /dev/sdb instead of /dev/sdb1). This will erase your whole flash drive and it's partitions, so be cautious the drive name is exact.
+Note: when building an a USB memory stick, you wouldn't specify the partition number in the disk entry (ex. /dev/sdb instead of /dev/sdb1). This will erase your whole flash drive and it's partitions, so be cautious to use the correct drive name!
Besides these user build profiles, there are also official release profiles, see ReleaseBuildProfiles in the same folder. The profiles alpha-raw and alpha-vmware will build all officially planned components for the alpha release. They are invoked just like the user profiles, see Building a VMWare Image a bit further down.
@@ -179,18 +193,14 @@ switch $(HAIKU_BUILD_PROFILE) {To install Haiku directly onto a partition/USB-stick, you have to
-set the according read and write permissions.
+
To install Haiku directly onto a partition/USB-stick, you have to set the according read and write permissions.
When installing to a hard drive partition, replace the drive name and use:
-sudo chmod o+r /dev/sda +sudo chmod o+r /dev/sda sudo chmod o+rw /dev/sda7-Note that the read permission is set for the whole disk (1st line) -while the write permission is limited to one specific partition (2nd -line).
+Note that the read permission is set for the whole disk (1st line) while the write permission is limited to one specific partition (2nd line).
When installing to a USB flashdrive, replace the drive name, and type:
sudo chmod o+r /dev/sda@@ -200,40 +210,30 @@ line).jam -q @disk-This takes some time and will abort at some point, because some root permissions are needed. That's OK, we'll continue with:
- -sudo jam -q @disk- -If you do it all in one go by going straight with the sudo-line, some files are created under the "root" user, among them the image itself. This would then have to be rededicate with chown etc., so best to stick with the 2-stage approach as described.
-Installing to its own partition offers some interesting possibilities:
-sudo jam -q @disk update-all+jam -q @disk update-all-This updates all of the system, but leaves the home folder untouched, so all your data will still be there.
+This updates all of the system, but leaves the home folder untouched, so all your data will still be there.
You can also decide to only update certain components:
-sudo jam -q @disk update {components}+jam -q @disk update {components}-Just replace the {components} with the program/component to be updated, e.g. kernel, StyledEdit or libmedia.so or more than one, separated with blanks. haiku/build/jam/HaikuImage lists all possible "targets".
+Just replace the {components} with the program/component to be updated, e.g. kernel, StyledEdit or libmedia.so or more than one, separated with blanks. haiku/build/jam/HaikuImage lists all possible "targets".
Building a VMWare Image
Just enter:
-jam -q @vmware -sudo jam -q @vmware+jam -q @vmware-The created image can be run in VMPlayer with an associated .vmx file (There's also a .vmx file in haiku/3rdparty/vmware/).
+The resulting image can be run in VMPlayer with an associated .vmx file (There's also a .vmx file in haiku/3rdparty/vmware/).
Booting with GRUB
-If you installed Haiku directly onto a USB-stick, you just have to -make sure the boot order in the BIOS looks first for USB devices to -have Haiku boot right up from the stick.
+If you installed Haiku directly onto a USB-stick, you just have to make sure the boot order in the BIOS looks first for USB devices to have Haiku boot right up from the stick.
-If Haiku was installed on a partition on your hard drive, you have to -adjust the boot loader accordingly. This is how it's done with GRUB:
+If Haiku was installed on a partition on your hard drive, you have to adjust the boot loader accordingly. This is how it's done with GRUB:
sudo gedit /boot/grub/menu.lst@@ -243,7 +243,6 @@ adjust the boot loader accordingly. This is how it's done with GRUB:All harddisks start with "hd"
"N" is the hard disk number, starting with "0".
"n is the partition number, also starting with "0".
- The first logical partition always have the number 4, regardless of the number of primary partitions.If you're still unsure, check out the GRUB manual.
@@ -264,16 +263,13 @@ chainloader +1
Using build profiles has another advantage: You can mount a VMWare -image or the partition of a Haiku installation to transfer data. -Navigate to haiku/trunk/ and simply enter:
-sudo jam @disk mount+
Using build profiles has another advantage: You can mount a VMWare image or the partition of a Haiku installation to transfer data. Navigate to haiku/trunk/ and simply enter:
+jam @disk mount
or
-sudo jam @vmware mount+
jam @vmware mount
You are now in the bfs_shell. Enter help to get a list of all supported commands:
-fssh:/> help -supported commands: +fssh:/> help supported commands: cd - change current directory chmod - change file permissions cp - copy files and directories