> For the complete documentation index, see [llms.txt](https://ios.heavietnam.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ios.heavietnam.com/jailbreak/palera1n.md).

# Palera1n

## MacOS

B1: Mở terminal&#x20;

> Ấn Command + Space gõ terminal

B2: Dán lện sau vào terminal

```
sudo /bin/sh -c "$(curl -fsSL https://static.palera.in/scripts/install.sh)"
```

<figure><img src="https://3701476262-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FswaebsPtA6hKLuBT9eLi%2Fuploads%2Flijgd2YaI9v3cWl18LNV%2FCleanShot%202024-02-06%20at%2016.59.28.png?alt=media&amp;token=eca41dfb-7b74-44b5-82ff-142481e0d0c2" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Lúc này bạn hãy nhập pass quản trị vào nhé.&#x20;

> Cứ nhập đi nó sẽ không hiển thị gì hết
>
> > Cứ nhập đúng rồi enter là được
> > {% endhint %}

> Như vậy cơ bản là xong rồi nhé
>
> > Để sử dụng bạn chỉ cần gõ palera1n vào terminal&#x20;

## Sử dụng palera1n

{% hint style="info" %}
Mặc định khi bạn gõ lệnh palera1n

Thì bạn sẽ jailbreak ở chế độ rootless

> Nếu bạn jailbreak ở rootfull thì bạn sẽ cần gắn thêm các flag trong câu lệnh
> {% endhint %}

{% hint style="info" %}
Một câu lệnh rootfull thông thường sẽ là&#x20;

`palera1n -f -c -v -V`

> Trong đó:
>
> * palera1n là lệnh khởi động palera1n
> * -f là flag kích hoạt chế độ rootfull
> * -c là flag create fakefs
> * -v là flag kích hoạt chế độ debug
> * -V là flag kích hoạt chế độ verbose&#x20;

> Sau đó làm theo hướng dẫn của tool nhé

Tiếp đó sau khi iDevice khởi động lên thì bạn tiếp tục gõ lệnh `palera1n -f -v -V`
{% endhint %}

{% hint style="danger" %}
Đối với chip Apple Silicon và sử dụng type C thì bạn cần replug iDevice khi dòng `Checkmate!` hiện ra ở logs
{% endhint %}

## Palera1n  iso

B1: Tải palera1n iso [tại đây](https://hackintosher-my.sharepoint.com/:u:/g/personal/hoanglongvonguyen_hackintosher_onmicrosoft_com/ESvF8Tn8Wh5BreCoC0LwMKYB4nFUgS4yLgSgYSAeqESH4g?e=j8Xnem)

B2: Tải ventoy [tại đây](https://www.ventoy.net/en/index.html)

B3: Chạy file `Ventoy2Disk.exe`

B4: Connect usb với máy tính

B5: Ấn `Install`

<figure><img src="https://3701476262-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FswaebsPtA6hKLuBT9eLi%2Fuploads%2FKuDn1KOR9GgK8pZl5eMJ%2Fimage.png?alt=media&amp;token=b1c51e0d-e0f3-4781-b109-d71878d38286" alt=""><figcaption></figcaption></figure>

B6: Copy file iso palera1n vào usb vừa install ventoy

<figure><img src="https://3701476262-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FswaebsPtA6hKLuBT9eLi%2Fuploads%2F6wniDL6YKTt6DzDG0Pl8%2Fimage.png?alt=media&amp;token=c80bc10a-2e13-42b9-a56b-e4418a53e41c" alt=""><figcaption></figcaption></figure>

B7: Tiến hành boot vào usb và chọn `palera1n`

B8: Chọn `Switch`

<figure><img src="https://3701476262-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FswaebsPtA6hKLuBT9eLi%2Fuploads%2F8lV2CUxARKPBpeseDmDj%2Fimage.png?alt=media&amp;token=642beea5-7bf1-4093-8f5a-2db17bd495b2" alt=""><figcaption></figcaption></figure>

B9: Chọn `rootful` hoặc `rootless`

<figure><img src="https://3701476262-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FswaebsPtA6hKLuBT9eLi%2Fuploads%2Fq9Qit4MVWLYW1wnROo96%2Fimage.png?alt=media&amp;token=22e6d672-a768-4138-a6b2-90c7c2c44d87" alt=""><figcaption></figcaption></figure>

B10: Chọn `Option`

<figure><img src="https://3701476262-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FswaebsPtA6hKLuBT9eLi%2Fuploads%2F01q7cSXDObfF6ELOzW8o%2Fimage.png?alt=media&amp;token=ffcaeaba-f75a-4798-8bbf-7ab941c59b42" alt=""><figcaption></figcaption></figure>

B11: Tiến hành tick theo những mục dưới đây

* Create fakefs: Tick nếu như bạn chọn rootful ở B8
* Verbose: Hiển thị các dòng log trực tiếp trên màn hình
* Debug: Kích hoạt chế độ gỡ lỗi

> Ấn Space để chọn&#x20;

<figure><img src="https://3701476262-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FswaebsPtA6hKLuBT9eLi%2Fuploads%2F4XQO8cJuaVKJQsqS7gwd%2Fimage.png?alt=media&amp;token=8fcad328-7b3d-4938-b7db-f5124cde6fab" alt=""><figcaption></figcaption></figure>

B12: Ấn stab vào nút `Select` và ấn enter

B13: Ấn Start

<figure><img src="https://3701476262-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FswaebsPtA6hKLuBT9eLi%2Fuploads%2FfNAVzAwrVnXWdy5bPrew%2Fimage.png?alt=media&amp;token=a644a570-62fb-47f1-8e63-8d758579bd63" alt=""><figcaption></figcaption></figure>

> Tiến hành cắm iDevices và đưa thiết bị về chế độ DFU như hướng dẫn của tool nhé
>
> > Nếu như bạn sử dụng rootful thì sau khi bạn chạy xong lần đầu tiên thì tiếp tục chạy lần thứ hai.
> >
> > > Tuy nhiên ở lần thứ 2 này bạn sẽ không tick vào option `Create fakefs`&#x20;

B14: Sau khi hoàn thành bạn tiến hành gõ `exit` vào SSH

B15: Ấn Reboot

{% hint style="info" %}
Với checkra1n thì bạn cũng làm tương tự nhưng không phải rườm ra như vậy bạn chỉ cần chạy thôi mà không cần phải vào option chỉnh bất cứ điều gì
{% endhint %}

{% hint style="warning" %}
Nếu như bạn sử dụng rootful mà muốn xoá Jailbreak thì hãy tick&#x20;

* Clean fakefs
* Revert Install
  {% endhint %}
