Skip to content

Commit

Permalink
Merge branch 'main' into labler
Browse files Browse the repository at this point in the history
  • Loading branch information
BDadmehr0 authored Nov 19, 2024
2 parents 5e4db63 + c1cf28c commit 9b43109
Showing 1 changed file with 29 additions and 29 deletions.
58 changes: 29 additions & 29 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,61 +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/qemu2.jpg)
---

### Build from source
![Installing DonyaOS Qemu Grub](images/qemu1.jpg)

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

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

## Build from source

### Preparation

Expand All @@ -91,6 +88,9 @@ If our target partition is `/dev/sdb1` format with below command.
bash donya.sh
```

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


## Network

***Configure on VirtualBox***
Expand Down

0 comments on commit 9b43109

Please sign in to comment.