Commit aeaac622 authored by David Marceau's avatar David Marceau
Browse files

add a blurb about tap0 configuration for qemu to allow icmp/ping. Add a blurb...

add a blurb about tap0 configuration for qemu to allow icmp/ping. Add a blurb about redirecting netsurf-fb output to a file and examining it after shutting down redox.
parent 22d5977b
Pipeline #7502 failed with stage
in 11 minutes and 42 seconds
......@@ -19,3 +19,32 @@ Once the system is fully booted, you will be greeted by the RedoxOS login screen
User = root
password = password
```
Here is the latest way of invoking the redox image as called by developers "make qemu" tool. We are currently unable to successfully use "ping" by starting the image this way.
```
$ make qemu
SDL_VIDEO_X11_DGAMOUSE=0 qemu-system-x86_64 -d cpu_reset -d guest_errors -smp 4 -m 2048 -serial mon:stdio -machine q35 -device ich9-intel-hda -device hda-duplex -netdev user,id=net0 -device e1000,netdev=net0 -object filter-dump,id=f1,netdev=net0,file=build/network.pcap -device nec-usb-xhci,id=xhci -device usb-tablet,bus=xhci.0 -enable-kvm -cpu host -drive file=build/harddrive.bin,format=raw -drive file=build/extra.bin,format=raw
```
We are working on a way to tweak qemu to allow/enable ping/icmp from within the redox image.
```
apt-get install uml-utilities
```
Then we need this tap0 device to be created and configured:
```
sudo tunctl -u $USER
sudo sh -c "echo 1 > /proc/sys/net/ipv4/ip_forward"
sudo sh -c "echo 1 > /proc/sys/net/ipv4/conf/wlan0/proxy_arp"
sudo sh -c "echo 1 > /proc/sys/net/ipv4/conf/tap0/proxy_arp"
sudo sh -c "ip link set tap0 up"
ip -4 addr show dev enx00e04c78944d -->this shows your ip (192.168.2.29) on the particular dev
sudo sh -c "route add -host 192.168.2.29 dev tap0" <-- to be changed by you.
```
Finally try invoking qemu using tap0 as the network device rather than net0:
```
SDL_VIDEO_X11_DGAMOUSE=0 qemu-system-x86_64 -d cpu_reset -d guest_errors -smp 4 -m 2048 -serial mon:stdio -machine q35 -device ich9-intel-hda -device hda-duplex -netdev user,id=tap0 -device e1000,netdev=tap0 -object filter-dump,id=f1,netdev=tap0,file=build/network.pcap -device nec-usb-xhci,id=xhci -device usb-tablet,bus=xhci.0 -enable-kvm -cpu host -drive file=build/harddrive.bin,format=raw -drive file=build/extra.bin,format=raw
```
......@@ -53,3 +53,35 @@ Exploring OrbTK
Click the OrbTK demo app in the menu bar. This will open a graphical user interface that demonstrates the different widgets OrbTK currently supports.
[HenryTheCat]: https://github.com/HenryTheCat
Exploring netsurf-fb
--------------------
You may click on the world icon to start the netsurf-fb. Please start the netsurf-fb app at the shell.
You can launch netsurf from the terminal and pipe its output to a file.
```
/usr/bin/netsurf-fb > netsurfDebug.txt
```
Now shutdown redox: ctrl+alt+G and mouse-click the qemu app's close icon.
Once you're back at a terminal, mount the redox file system image:
```
make mount
```
The above gives you a new mountpoint:
```
/home/davidm/rustos/redox/build/filesystem
```
If you want to see all the mountpoint details you can run the "mount" command:
```
mount
/dev/fuse on /home/davidm/rustos/redox/build/filesystem type fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
```
Using your favorite text editor, have a look at /home/davidm/rustos/redox/build/filesystem/root/netsurfDebug.txt
When you are done looking at that netsurfDebug.txt file you can unmount the redox file system image.
```
make unmount
```
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment