J'ai bien configur? et install? MacOSX 10.3 Panther dans pear pc 0.3.1
Mon syst?me d'exploitation est Gentoo Linux.
Mon fichier config [b:3699bb3a1f]macosx.pearpc[/b:3699bb3a1f]:
[code:3699bb3a1f]
## PearPC Configuration File
##
## Start Resolution
##
## (clients that use video.x can change the resolution at runtime,
## so this would be used only for starting up)
##
## format: "(width)x(height)x(depth)"
## or "(width)x(height)x(depth)@(frequency)"
##
## depth can only be 15 or 32
##
## default: "800x600x15"
##
ppc_start_resolution = "800x600x15"
##
## Redraw interval (in ms)
## must be between 10 and 500
##
## If you set this higher, PearPC will spend less time doing redraws (and so run faster)
## but feel less responsive. You should adjust this to your computer speed and personal
## preference.
##
redraw_interval_msec = 50
##
## Key codes
##
key_toggle_mouse_grab = "F12"
key_toggle_full_screen = "Alt+Return"
##
## Loader
##
##
## Boot method
## this can be
## 1. "auto", prom will boot the first bootable partition found (default)
## 2. "select", prom will show you a list of bootable partitions
## 3. "force", prom will load and boot the local file prom_loadfile
##
prom_bootmethod = "select"
## Example of how to use "force":
#prom_bootmethod = "force"
#prom_loadfile = "test/yaboot"
#prom_env_bootpath = "disk"
##
## bootargs: don't change unless you know what you are doing
## machargs: set to "-v" to get a verbose startup
##
#prom_env_bootargs = ""
prom_env_machargs = "-v"
##
## This is needed if you want to boot Mac OS X
##
prom_driver_graphic = "scripts/video.x"
## This will adjust the position of the initial page table (don't change)
#page_table_pa = 104857600
##
## CPU Config
##
## Processor Version Register
## Defaults to 0x00088302
## Only change if you know want you are doing
##
#cpu_pvr = 0x00088302
##
## Main memory (default 128 MiB)
## must be >= 64 MiB
##
memory_size=0x8000000 # 128
#memory_size=0x10000000 # 256
#memory_size = 0x20000000 # 512
#memory_size = 0x40000000 # 1024
##
## IO Devices
##
##
## PCI IDE Config
##
## Drive type will be set according to file extension:
## .img: Harddisk (filesize must be multiple of 516096)
## .iso: CD-Rom
## Or you can override this by specifying the type via
## pci_ide0_master_type / pci_ide0_slave_type
pci_ide0_master_installed = 1
pci_ide0_master_image = "pearpc-6gib.img"
pci_ide0_master_type = "hd"
pci_ide0_slave_installed = 1
pci_ide0_slave_image ="cdrom.iso"
#pci_ide0_slave_image ="/dev/dvd"
pci_ide0_slave_type = "cdrom"
##
## Network
##
## Choose one of the cards
#pci_3c90x_installed = 0
#pci_3c90x_mac = "de:ad:ca:fe:12:34"
pci_rtl8139_installed = 1
pci_rtl8139_mac = "de:ad:ca:fe:12:35"
##
## USB
##
pci_usb_installed = 1
##
## NVRAM
##
nvram_file = "nvram"
[/code:3699bb3a1f]
Voil? mon fichier pour la configuration r?seau pearpc [b:3699bb3a1f]scripts/ifppc_up[/b:3699bb3a1f]:
[code:3699bb3a1f]
#
# BE CAREFUL. THIS SCRIPT IS INVOKED BY A SETUID ROOT BINARY!
# IT SHOULD BE OWNED BY ROOT.
# ONLY ROOT SHOULD HAVE WRITE-ACCESS TO THIS FILE.
#
echo UID=$UID
PPC_NETMASK="255.255.255.0"
PPC_HOST_IP="192.168.2.1"
PPC_CLIENT_IP="192.168.2.2"
/sbin/ifconfig ppc $PPC_HOST_IP netmask $PPC_NETMASK up &&\
/sbin/iptables -t nat -s $PPC_CLIENT_IP -A POSTROUTING -j MASQUERADE &&\
echo 1 > /proc/sys/net/ipv4/ip_forward
[/code:3699bb3a1f]
Quand je lance l'?mulation pearpc, j'ai bien [b:3699bb3a1f]ppc[/b:3699bb3a1f] qui s'affiche quand je lance la commande [b:3699bb3a1f]ifconfig[/b:3699bb3a1f].
Le souci est que le r?seau ne fonctionne pas. Quand je lance la commande:
[code:3699bb3a1f]ping 192.168.2.2[/code:3699bb3a1f]
Cela me donne:
[code:3699bb3a1f]ping: sendmsg: Operation not permitted[/code:3699bb3a1f]
Je tient ? noter que j'ai bien ajout? tous les modules n?cessaires dans mon kernel (j'ai lu la doc pearpc) et que [b:3699bb3a1f]iptable[/b:3699bb3a1f] est activ?.
Comment faire pour que la connexion r?seau fonctionne bien?
Merci d'avance.


