[CoLinux howto]Hybride Windows Linux Desktop

Pagina: 1
Acties:

  • daft_dutch
  • Registratie: December 2003
  • Laatst online: 28-02 01:03

daft_dutch

>.< >.< >.< >.<

Topicstarter
[url=http://daft_dutch.looze.net/Colinux.JPG][img]http://daft_dutch.looze.net/Colinux_thumb.JPG[/img][/url]

Note: Het wordt al laat Dit komt niet helemaal af
CoLinux :?
CoLinux staat voor Cooperative Linux, Dit is een naar win32 gepoorte linux kernel die een volledige (willekeurige) Linux distrobutie draait zonder virtualisatie zoals vmware of qemu.
Ook is CoLinux niet te vergelijken met Cygwin dit omdat cygwin alleen de gnu userland naar windows heeft geport.
CoLinux is snel start als een windows service en als je alleen windows wilt gebruiken merk je er niks van.

CoLinux is de makkelijkste manier om met Linux in aanraking te komen. Je hoeft niet te rebooten naar Linux of er een live cd in te gooien.

Wat kan CoLinux?
CoLinux kan je zien als je linux servertje in je meterkast. Alleen zit deze ongeremt op je eigen laptop/pc. Je kan hier alles mee wat je daar mee ook kan.
o.a:
Apache/php/mysql webserver.
Je firewall.
Het draaien van je Dualboot Linux onder windows.
Een Hybride WIndows Linux omgeving

Waar gaat deze Howto over?
Dit draadje gaat en beperkt zich tot het installeren van CoLinux en de Hybride Windows Linux Desktop. Linux wordt in kookboek vorm uit gelegt.
Voor alle vragen over Linux kun je terecht bij het Nos Forum

Waarschijnlijk is deze Howto niet 100% optimaal maar ik ga op en aanmerkingen aanpassen in de topic start.

CoLinux Installeren
Op de wiki van CoLinux is veel uitgelegt over installeren maar de wiki heeft geen strenge controle en daardoor loopt alles (vooral de verschillende virtuele netwerken) door elkaar.

Note aan mensen die Dual boot hebben. Je kan je Linux systeem aan roepen. dus je hebt geen root image nodig. Config door lezen want ik ga hier niet van uit.

1)Installeer CoLinux
dit installeert
-CoLinux
-Tap-win32 een Virtueel Netwerk tussen windows en CoLinux
-WinPcap Virtuele Netwerk bridge. CoLinux nesteld zich op je netwerk kaart en zit direct op het netwerk. Dit kan wat try en error werk leveren Alles kan zonder.
-een root image

2) Download WinPcap van de url op het 2de scherm. WinPcap is niet vereist voor coLinux of deze Howto.

3) Selecteer een root image.
Ik raad Debian aan.


4) Als het geinstalleert is knip plak dit als colinux.xml in de colinux directory.
Ik ga uit van c:\Program Files\CoLinux\

code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?xml version="1.0" encoding="UTF-8"?>
<colinux>
    <!-- This line needs to point to your root file system. 
     For example change "root_fs" to the name of the Debian image.
         Inside coLinux it will be /dev/cobd0 
     Block Device Aliasing: You can now handle most dual-boot issues
     by adding an alias="devname" to block_device. i.e. alias="hda",
     alias="hda1" You can do this for SCSI as well as IDE.  You need
     to be aware that if you add an alias, you need to change your
     bootparams root="devname" appropriately (you may need to use
     devfs naming in some situations).  -->
    <block_device index="0" path="\DosDevices\c:\ProgramFiles\CoLinux\Debian-3.0r2.ext3-mit-backports.1gb" 
enabled="true" />
    
    <!-- This line can specify a swap file if you wish, or an additional
         image file, it will /dev/cobd1. Additional block_devices can
     be specified in the same manner by increasing the index -->

    <block_device index="1" path="\DosDevices\c:\Program Files\swap_device" enabled="true" />

    <!-- This is an experimental feature, it may not function completely.
    <cofs_device index="0" type="flat" path="\DosDevices\C:\" enabled="true" />
    -->

    <!-- bootparams allows you to pass kernel boot parameters -->

    <bootparams>root=/dev/cobd0</bootparams>

    <!-- Initial RamDISK (initrd) support -->
    <initrd path="initrd.gz" />
    
    <!-- image allows you to specify the kernel to boot -->
    <image path="vmlinux" />

    <!-- this line allows you to specify the amount of memory available 
         to coLinux  -->
    <memory size="265" />

    <!-- This allows you to modify networking parameters, see the README 
         or website or wiki for more information -->
    <network index="0" type="tap" />
<!-- winPcap 

<network index="1" type="bridged" name="<Ethernet Naam Hoofdletter gevoelig" />
OF
<network index="1" type="bridged" name="<Netwerk Naam Hoofdletter gevoelig" mac="XX:XX:XX:XX:XX:XX"  promisc="false" />

  -->
</colinux>



5) Stel de virtuele netwerk driver in.
Windows netwerk beheer. Daar staat de tap win32 als local netwerk X Je kan dit natuurlijk hernoemen naar bv. wintap
*) ALs je (nog niet) winpcap wilt gebruiken deel je je primaire netwerk kaart met colinux-tap.

Geef de wintab een exotisch ip address (zodat bij niemand van jullie plotseling de pc van je broertje het zelfde ip als colinux heeft).
address 192.168.37.1
mask 255.255.255.0
gateway . . .

6) Start CoLinux voor de eerste keer
open console (command prompt / cmd.exe / command.exe)
code:
1
2
cd c:\ProgramFiles\CoLinux\
colinux-daemon.exe -c colinux.xml

Linux boot in een window. Als het goed is wordt wintab actief

uiteindelijk zie je
code:
1
Debian GNU/Linux 3.0 colinux tty1 colinux login:

login: root
password: root

(dit password kan je veranderen met passwd)

als het goed is zie je
code:
1
colinux:~#


7) Verbind coLinux met win-tab
code:
1
colinux:~# nano /etc/networking/interfaces

*) Linux heeft tab compleation bv. nano /et<TAB>ne<TAB>/in<TAB>
*) Ctrl-X sluit nano af (Y/N) om op teslaan


Voorbeeld config
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).



# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
iface eth0 inet dhcp

#win tab
iface eth0 inet static
    address 192.168.37.2
    netmask 255.255.255.0
    gateway 192.168.37.1

#winPcap  

#iface eth1 inet dhcp


8) herstart het netwerk
code:
1
colinux:~# /etc/init.d/networking/restart


ping www.google.nl of je windows ip om het netwerk te testen.

9) Update debian

code:
1
colinux:~# nano /etc/apt/sources

naar

code:
1
2
3
4
5
6
deb http://ftp.nl.debian.org/debian/ stable main 
deb-src http://ftp.nl.debian.org/debian/ stable main 
deb http://ftp.security.debian.org/debian/ stable/updates main 

#backports als je wat recentere (ietsie pietsie) minder stabiel pakketen wilt
#deb http://ftp.backports.org/debian/ sarge-backports main contrib non-free


code:
1
colinux:~# apt-get update


code:
1
colinux:~# apt-get upgrade


onderstaande kan wat updates geven. dit verwijdert ook pakketen om andere te installeren die de te verwijderende pakketen niet mogen (dependencies)
code:
1
colinux:~# apt-get dist-upgrade


10)
Installeer ssh
ssh is een veilige zeer geavanceerde remote shell
code:
1
colinux:~# apt-get install ssh


11) Stel CoLinux in als windows NT service
code:
1
colinux:~# poweroff


12) Terug op de windows console
code:
1
colinux-daemon.exe -c colinux.xml --install-service CoLinux

configuratiescherm --> systeembeheer --> services --> colinux --> eigenschappen
opstart type :automatisch (400Mhz voelt dit amper)
starten
OK

13) Colinux is geinstalleert.

je kan verbinding maken met colinux met colinux-console-nt.exe / colinux-console-fltk.exe of putty
putty? google putty download


</END voor nu>

Ik hou er voor nu mee op.

succes met de command line
oke nog ff snel X in een fly

http://sourceforge.net/project/showfiles.php?group_id=156984
download xming note to self Xming-mesa installeren
en Xming-tools-and-clients

starten met multi windows
en ook in windows console xhost.exe + IP colinux
apt-get install kdebase

export XSERVER=<ip windows>:0
nohup kicker&

Niet startkde dit geeft kde met al zijn pracht tenzij je graag linux alleen wilt zien. Met alleen kicker zonder pracht en praal komt overal een mooi windows schermpje omheen. en verschijnt het in je windows menu bar.
note al die dos boxen gaan weg. en geluid gaat het doen.
en alles met 1 click.
0 kliks is in ontwikkeling
btw wat is het menu commando voor gnome en xfce

[ Voor 0% gewijzigd door daft_dutch op 08-09-2008 22:50 . Reden: pics recht gezet ]

>.< >.< >.< >.<