Documentation: Document how to transfer files from QEMU to the host
Document how to transfer files from QEMU to the host
This commit is contained in:
parent
79cdb5e3c8
commit
f43b69f8e2
Notes:
sideshowbarker
2024-07-17 21:15:37 +09:00
Author: https://github.com/electrikmilk Commit: https://github.com/SerenityOS/serenity/commit/f43b69f8e29 Pull-request: https://github.com/SerenityOS/serenity/pull/11542 Reviewed-by: https://github.com/linusg
2 changed files with 26 additions and 0 deletions
Documentation
26
Documentation/TransferringFiles.md
Normal file
26
Documentation/TransferringFiles.md
Normal file
|
@ -0,0 +1,26 @@
|
|||
# Transferring files from QEMU to your host machine
|
||||
|
||||
## Method 1: WebServer
|
||||
Serenity has a built-in web server which extends to your host machine.
|
||||
|
||||
Open a new terminal and use the following command to start a WebServer instance for the current working directory:
|
||||
|
||||
```console
|
||||
ws .
|
||||
```
|
||||
|
||||
Then we just open `localhost:8000` on our host machine :^)
|
||||
|
||||

|
||||
|
||||
**NOTE:** Due to the fact that same browsers download unrecognized files as plain text, you may want to use something like `wget` to download the file **as is** instead. Otherwise the file may appear corrupted when the system tries to load it.
|
||||
|
||||
## Method 2: Mount disk_image
|
||||
|
||||
Another way is to mount Serenity's disk_image to your host machine by using the following command on *nix systems:
|
||||
|
||||
```console
|
||||
cd "Build/${SERENITY_ARCH}"
|
||||
mkdir mnt
|
||||
sudo mount -t ext2 _disk_image mnt
|
||||
```
|
BIN
Documentation/WebServer_localhost.png
Normal file
BIN
Documentation/WebServer_localhost.png
Normal file
Binary file not shown.
After ![]() (image error) Size: 279 KiB |
Loading…
Add table
Reference in a new issue