Skip to content

Commit

Permalink
Reorder commands
Browse files Browse the repository at this point in the history
  • Loading branch information
esmaeelE authored Nov 18, 2024
1 parent af9ce0d commit 87d28d2
Showing 1 changed file with 27 additions and 26 deletions.
53 changes: 27 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,57 +28,58 @@ Produced ISO file: [DonyaOS.iso](DonyaOS.iso) (In development mode)

## DonyaOS Installation Guide

### Install Donya
# Installation
## Install prebuild Donya (Fastest way to run Donya)

Just only use the compressed package `donyaOS-build.tar.xz`
You need to use compressed package `donyaOS-build.tar.xz`

Suppose we have another hard disk `sdb` to install donyaOS on it.
Create a 100 MB partition in it.
Suppose we have another hard disk `sdb` or partition to install donyaOS on it.
To run donya we must create a 100 MB partition in it.

#### Create home for our new OS
### Create home for our new OS

```
DONYA_PATH=$HOME/donayos/
mkdir -p $DONYA_PATH $DONYA_PATH/donya
cd $DONYA_PATH
```
### Format the partition

#### Download compressed archive
```
wget https://github.com/DonyaOS/Donya/raw/refs/heads/main/donyaOS-build.tar.xz
sudo tar xvf donyaOS-build.tar.xz -C donya
```


![Installing DonyaOS Qemu Grub](images/qemu1.jpg)

### Format

First off all we need a clean storage partition
If our target partition is `/dev/sdb1` format with below command.
If our target partition is `/dev/sdb1` format with below command.

`sudo mkfs.ext4 /dev/sdb1`

### Mount new created `sdb1`
### Mount new partiotion `sdb1` to file system

`sudo mount /dev/sdb1 "$DONYA_PATH"/donya/`

`sudo mkdir "$base_dir"/donya_release/`
`sudo mount /dev/sdb1 "$base_dir"/donya/`
### Download and extract donyaOS archive file inside it

### Extract donyaOS inside it
```
wget https://github.com/DonyaOS/Donya/raw/refs/heads/main/donyaOS-build.tar.xz
sudo tar xJvf "$DONYA_PATH"/donyaOS-build.tar.xz -C "$DONYA_PATH/donya/
```

`sudo tar xJf ${base_dir}/donyaOS-build.tar.xz -C "$base_dir"/donya/`

### Install grub in MBR

`sudo grub-install --root-directory="$base_dir"/donya/ /dev/sdb`
```
sudo grub-install --root-directory="$DONYA_PATH/donya/ /dev/sdb
```

### Run with qemu
### Run Donya with qemu(emulator)

`sudo qemu-system-x86_64 /dev/sdb`

---

![Installing DonyaOS Qemu Grub](images/qemu1.jpg)

![Installing DonyaOS Qemu Grub](images/qemu2.jpg)

### Build from source
---

## Build from source

`./donya`

Expand Down

0 comments on commit 87d28d2

Please sign in to comment.