[prev in list] [next in list] [prev in thread] [next in thread]
List: colinux-devel
Subject: [coLinux-devel] HOWTO: Installing Slackware from original CD-ROMs on CoLinux
From: "Jaroslaw Kowalski" <jaak () zd ! com ! pl>
Date: 2004-07-23 10:27:24
Message-ID: 001b01c4709f$a6b865b0$6d30170a () corponet ! era ! pl
[Download RAW message or body]
Hi!
Here's a quick and dirty tutorial for installing slackware 10 from original CD-ROMs \
on colinux. I've tried it today and it works like a charm. The setup instructions are \
quite detailed and have been verified twice to be correct.
This procedure assumes that your vmlinux is compiled with support for large (16 MB) \
initrd. You can adjust it by changing
CONFIG_BLK_DEV_RAM_SIZE=4096
to :
CONFIG_BLK_DEV_RAM_SIZE=16384
in your .config file and recompiling vmlinux.
I've provided a pre-compiled vmlinux with large initrd that works with \
coLinux-20040710 snapshot. It's available at:
http://jaak.sav.net/vmlinux.largeinitrd-20040710.bz2
I wonder if it's possible to install other distributions in a similar manner...
Jarek
SLACKWARE 10 COLINUX HOWTO:
============================
1. Copy "isolinux/initrd.img" from your Slackware 10 CD #1 to your colinux directory \
and rename it to "slackware_initrd.img" 2. Prepare "slackware.xml" config file. In my \
case I've decided to use a separate /home partition. You may want to adjust \
paths/other settings accordingly. If you create/use additional block devices, you may \
want to use a modified installation routine as described below.
----------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<colinux>
<block_device index="0" alias="hda1" path="\DosDevices\c:\colinux\slack_root" \
enabled="true" /> <block_device index="1" alias="hda2" \
path="\DosDevices\c:\colinux\slack_home" enabled="true" /> <block_device index="2" \
alias="hda3" path="\DosDevices\c:\colinux\slack_swap" enabled="true" />
<block_device index="29" path="\Device\CdRom0" enabled="true" />
<image path="vmlinux" />
<initrd path="slackware_initrd.img" />
<bootparams>root=/dev/ram</bootparams>
<memory size="160" />
<network index="0" type="tap" name="CoLinux TAP" />
</colinux>
----------------------------------
3. Create image files:
(I used mkImage.exe from \
http://www.geocities.com/dan_slater/colinux/file-utils-mingw-bin.tgz)
mkFile -s -g c:\colinux\slack_root 2
mkFile -s -g c:\colinux\slack_home 2
mkFile -s -m c:\colinux\slack_swap 512
This will create root and home partitions of 2 GB each + a 512 MB swap partition.
4. Start the installer:
start colinux-daemon.exe -d -c slackware.xml
5. Connect to the installer with a console. You can use either of:
colinux-console-fltk.exe
colinux-console-nt.exe
6. Slackware asks you to select a keyboard map. In my case I pressed Enter to skip \
this step but you may want to change your keyboard layout here. 7. Login as "root" \
with no password. 8. Now it's time to do the tweaking necessary to convince slack to \
like colinux. The only problem is the detection of hard disk partitions. This can be \
solved by running the following commands:
# mknod /dev/hda1 b 3 1
# mknod /dev/hda2 b 3 2
# mknod /dev/hda3 b 3 3
# mknod /dev/cobd29 b 117 29 # for CD-ROM
# cat >> /sbin/probe
echo "/dev/hda1 1 1 0 Linux"
echo "/dev/hda2 1 1 0 Linux"
echo "/dev/hda3 1 1 0 Linux swap"
<Press Ctrl-D here>
9. Now it's time to run the main setup program:
# setup
10. Choose ADDSWAP and select your swap partition. When asked if you want to run \
mkswap on your partition - answer Yes. 11. When asked to choose a linux destination \
partition, choose /dev/hda1, Quick Format, ext3, 4096 bytes per inode, 12. When \
asked for other partitions to add, choose /dev/hda2, Quick Format, ext3, 4096 bytes \
per inode, Mount point /home.
NOTE that you may want to use more partitions (or just one). Repeat the above steps \
accordingly for all your mount points.
13. In "SOURCE MEDIA SELECTION":
Choose "1. Install from Slackware CD or DVD"
Choose "manual. Manually specify CD or DVD by device name"
Choose "custom"
Enter "/dev/cobd29"
14. On the PACKAGE SERIES SELECTION screen choose "A, AP, N" to as a base. You'll be \
able to install additional packages later. This set is known to require just the \
first CD. 15. In "prompting mode" choose "menu".
16. On the "SELECTING PACKAGES FROM SERIES ..." you may want to check/uncheck the \
packages. I recommend that you choose "samba" from the "N" series. 17. Slackware \
should begin installing packages. 18. On "INSTALL LINUX KERNEL" - choose SKIP
19. On "MAKE BOOTDISK" - choose SKIP
20. On "MODEM CONFIGURATION" - choose "no modem"
21. On "ENABLE HOTPLUG ..." - choose "No"
22. On "MOUSE CONFIGURATION" - choose "ps2"
23. On "GPM CONFIGURATION" - choose "No"
24. Configure your network
25. Verify "CONFIRM STARTUP SERVICES TO RUN" and adjust to your needs
26. On "CONSOLE FONT CONFIGURATION" - choose "No"
27. Configure your hardware clock and timezone
28. Set your root password.
29. Choose "EXIT"
30. Send Ctrl-Alt-Del to colinux or run "reboot" command
31. Modify your "slackware.xml" by changing the <bootparams> line to:
<bootparams>ro root=/dev/hda1</bootparams>
and removing line <initrd path="slackware_initrd.img" />
32. Start colinux-daemon again and reconnect your console:
start colinux-daemon.exe -d -c slackware.xml
33. Login as "root"
34. The only thing left is getting and installing vmlinux-modules.tar.gz but since \
the networking is up and running and you have samba this should be pretty easy. In my \
case I had to do (ignore errors about missing /etc/samba/smb.config):
# smbclient //myhostmachinename/c$ -U username
<type the password for username>
cd colinux
get vmlinux-modules.tar.gz
quit
# cd /
# tar zxvf /root/vmlinux-modules.tar.gz
35. Reboot and enjoy your new coslackware 10.
[Attachment #3 (text/html)]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-2">
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Here's a quick and dirty tutorial for installing
slackware 10 from original CD-ROMs on colinux. I've tried it today and it works
like a charm. The setup instructions are quite detailed and have been verified
twice to be correct.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>This procedure assumes that your vmlinux is
compiled with support for large (16 MB) initrd. </FONT></DIV>
<DIV><FONT face=Arial size=2>You can adjust it by changing </FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>CONFIG_BLK_DEV_RAM_SIZE=4096 </FONT></DIV>
<DIV><FONT face=Arial size=2>to :</FONT></DIV>
<DIV><FONT face=Arial size=2>CONFIG_BLK_DEV_RAM_SIZE=16384</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>in your .config file and recompiling vmlinux.
</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I've provided a pre-compiled vmlinux with
large initrd that works with coLinux-20040710 snapshot. It's available
at:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><A
href="http://jaak.sav.net/vmlinux.largeinitrd-20040710.bz2">http://jaak.sav.net/vmlinux.largeinitrd-<FONT \
color=#000000>20040710</FONT>.bz2</A></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I wonder if it's possible to install other
distributions in a similar manner...</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Jarek</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>SLACKWARE 10 COLINUX HOWTO:</FONT></DIV>
<DIV><FONT face=Arial size=2>============================</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>1. Copy "isolinux/initrd.img" from your Slackware
10 CD #1 to your colinux directory and rename it to
"slackware_initrd.img"</FONT></DIV>
<DIV><FONT face=Arial size=2>2. Prepare "slackware.xml" config file. In my case
I've decided to use a separate /home partition. You may want to adjust
paths/other settings accordingly. If you create/use additional block devices,
you may want to use a modified installation routine as described
below.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>----------------------------------</FONT></DIV>
<DIV>
<DIV><FONT face=Arial size=2><?xml version="1.0"
encoding="UTF-8"?><BR><colinux><BR> <block_device
index="0" alias="hda1" path="\DosDevices\c:\colinux\slack_root" enabled="true"
/><BR> <block_device index="1" alias="hda2"
path="\DosDevices\c:\colinux\slack_home" enabled="true"
/><BR> <block_device index="2" alias="hda3"
path="\DosDevices\c:\colinux\slack_swap" enabled="true" /></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> <block_device index="29"
path="\Device\CdRom0" enabled="true" /><BR> <image
path="vmlinux" /><BR> <initrd
path="slackware_initrd.img" /><BR>
<bootparams>root=/dev/ram</bootparams><BR>
<memory size="160" /><BR> <network index="0"
type="tap" name="CoLinux TAP" /><BR></colinux></FONT></DIV>
<DIV><FONT face=Arial size=2>----------------------------------</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>3. Create image files:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>(I used mkImage.exe from <A
href="http://www.geocities.com/dan_slater/colinux/file-utils-mingw-bin.tgz">http://www.geocities.com/dan_slater/colinux/file-utils-mingw-bin.tgz</A>)</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>mkFile -s -g c:\colinux\slack_root 2 </FONT></DIV>
<DIV>
<DIV><FONT face=Arial size=2>mkFile -s -g c:\colinux\slack_home 2</FONT></DIV>
<DIV>
<DIV><FONT face=Arial size=2>mkFile -s -m c:\colinux\slack_swap 512</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>This will create root and home partitions of 2 GB
each + a 512 MB swap partition.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>4. Start the installer:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>start colinux-daemon.exe -d -c
slackware.xml</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>5. Connect to the installer with a console. You can
use either of:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial
size=2>colinux-console-fltk.exe<BR>colinux-console-nt.exe</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>6. Slackware asks you to select a keyboard map. In
my case I pressed Enter to skip this step but you may want to change your
keyboard layout here.</FONT></DIV>
<DIV><FONT face=Arial size=2>7. Login as "root" with no password.</FONT></DIV>
<DIV><FONT face=Arial size=2>8. Now it's time to do the tweaking necessary to
convince slack to like colinux. The only problem is the detection of hard
disk partitions. This can be solved by running </FONT><FONT face=Arial
size=2>the following commands:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2># mknod /dev/hda1 b 3 1<BR># mknod /dev/hda2 b 3
2<BR># mknod /dev/hda3 b 3 3</FONT></DIV>
<DIV><FONT face=Arial size=2># mknod /dev/cobd29 b 117 29 # for
CD-ROM</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2># cat >> /sbin/probe<BR>echo "/dev/hda1 1 1 0
Linux"<BR>echo "/dev/hda2 1 1 0 Linux"<BR>echo "/dev/hda3 1 1 0 Linux
swap"<BR><Press Ctrl-D here></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>9. Now it's time to run the main setup
program:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2># setup</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>10. Choose ADDSWAP and select your swap partition.
When asked if you want to run mkswap on your partition - answer
Yes.</FONT></DIV>
<DIV><FONT face=Arial size=2>11. When asked to choose a linux destination
partition, choose /dev/hda1, Quick Format, ext3, 4096 bytes per inode,
</FONT></DIV>
<DIV><FONT face=Arial size=2>12. When asked for other partitions to add, choose
/dev/hda2, Quick Format, ext3, 4096 bytes per inode, Mount point
/home.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>NOTE that you may want to use more partitions (or
just one). Repeat the above steps accordingly for all your mount
points.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>13. In "SOURCE MEDIA SELECTION":</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Choose "1. Install from Slackware CD or
DVD"</FONT></DIV>
<DIV><FONT face=Arial size=2>Choose "manual. Manually specify CD or DVD by
device name"</FONT></DIV>
<DIV><FONT face=Arial size=2>Choose "custom"</FONT></DIV>
<DIV><FONT face=Arial size=2>Enter "/dev/cobd29"</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>14. On the PACKAGE SERIES
SELECTION screen choose "A, AP, N" to as a base. You'll be able to install
additional packages later. This set is known to require just the first
CD.</FONT></DIV>
<DIV><FONT face=Arial size=2>15. In "prompting mode" choose "menu".
</FONT></DIV>
<DIV><FONT face=Arial size=2>16. On the "SELECTING PACKAGES FROM SERIES ..." you
may want to check/uncheck the packages. I recommend that you choose "samba" from
the "N" series.</FONT></DIV>
<DIV><FONT face=Arial size=2>17. Slackware should begin installing
packages.</FONT></DIV>
<DIV><FONT face=Arial size=2>18. On "INSTALL LINUX KERNEL" - choose
SKIP</FONT></DIV>
<DIV><FONT face=Arial size=2>19. On "MAKE BOOTDISK" - choose SKIP</FONT></DIV>
<DIV><FONT face=Arial size=2>20. On "MODEM CONFIGURATION" - choose "no
modem"</FONT></DIV>
<DIV><FONT face=Arial size=2>21. On "ENABLE HOTPLUG ..." - choose
"No"</FONT></DIV>
<DIV><FONT face=Arial size=2>22. On "MOUSE CONFIGURATION" - choose
"ps2"</FONT></DIV>
<DIV><FONT face=Arial size=2>23. On "GPM CONFIGURATION" - choose
"No"</FONT></DIV>
<DIV><FONT face=Arial size=2>24. Configure your network</FONT></DIV>
<DIV><FONT face=Arial size=2>25. Verify "CONFIRM STARTUP SERVICES TO RUN" and
adjust to your needs</FONT></DIV>
<DIV><FONT face=Arial size=2>26. On "CONSOLE FONT CONFIGURATION" - choose
"No"</FONT></DIV>
<DIV><FONT face=Arial size=2>27. Configure your hardware clock and
timezone</FONT></DIV>
<DIV><FONT face=Arial size=2>28. Set your root password.</FONT></DIV>
<DIV><FONT face=Arial size=2>29. Choose "EXIT"</FONT></DIV>
<DIV><FONT face=Arial size=2>30. Send Ctrl-Alt-Del to colinux or run "reboot"
command</FONT></DIV>
<DIV><FONT face=Arial size=2>31. Modify your "slackware.xml" by changing the
<bootparams> line to:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2> <bootparams>ro
root=/dev/hda1</bootparams></FONT></DIV><FONT face=Arial
size=2></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>and removing line <initrd
path="slackware_initrd.img" /></DIV>
<DIV><BR></DIV></FONT><FONT face=Arial size=2></FONT>
<DIV><FONT face=Arial size=2>32. Start colinux-daemon again and reconnect your
console:</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>start colinux-daemon.exe -d -c
slackware.xml</FONT></DIV>
<DIV> </DIV>
<DIV>33. Login as "root"</DIV>
<DIV>34. The only thing left is getting and installing vmlinux-modules.tar.gz
but since the networking is up and running and you have samba this should be
pretty easy. In my case I had to do (ignore errors about missing
/etc/samba/smb.config):</DIV>
<DIV> </DIV>
<DIV># smbclient //myhostmachinename/c$ -U username</DIV>
<DIV><type the password for username></DIV>
<DIV>cd colinux</DIV>
<DIV>get vmlinux-modules.tar.gz</DIV>
<DIV>quit</DIV>
<DIV># cd /</DIV>
<DIV># tar zxvf /root/vmlinux-modules.tar.gz</DIV>
<DIV> </DIV>
<DIV>35. Reboot and enjoy your new coslackware
10.</DIV></DIV></FONT></DIV></DIV></BODY></HTML>
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
coLinux-devel mailing list
coLinux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/colinux-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic