Thay đổi giao diện Pi-Hole admin cho vui cửa vui nhà anh em. Cách làm thì đơn giản lắm, anh em...

organictiger665

New member
** Cách thay đổi giao diện quản trị pi-hole cho vui **

** tl; dr: **

1. SSH vào máy chủ Pi-Hole của bạn.
2. Điều hướng đến `/var/www/html/admin/style/nhà cung cấp/`.
3. Chạy các lệnh sau:

`` `
sudo git clone GitHub - jacobbates/pi-hole-midnight: Custom dark theme CSS for pi-hole to replace skin-blue AdminLTE theme
sudo rm -f da -blue.min.css
sudo cp pi-hole-midnight/skin-blue.min.css.
sudo rm -rf pi-hole midnight
`` `

4. Để trở lại giao diện ban đầu, hãy chạy các lệnh sau:

`` `
CD/var/www/html/admin/style/nhà cung cấp/
Sudo Git Reset - -Hard
`` `

** Để biết hướng dẫn chi tiết hơn, hãy đọc tiếp: **

Giao diện quản trị PI-HOLE khá cơ bản, nhưng nó có thể được tùy chỉnh để làm cho nó trông thú vị hơn.Đây là cách thay đổi giao diện quản trị Pi-lỗ cho vui.

** Bước 1: SSH vào máy chủ Pi-Hol của bạn **

Nếu bạn chưa được đưa vào máy chủ Pi-Hole của mình, bạn có thể làm như vậy bằng cách làm theo các hướng dẫn sau:

1. Mở cửa sổ thiết bị đầu cuối trên máy tính của bạn.
2. Nhập lệnh sau:

`` `
ssh pi@<bạn-pi-hole-IP-address>
`` `

** Bước 2: Điều hướng đến `/var/www/html/admin/style/nhà cung cấp/` thư mục **

Khi bạn đã được đưa vào máy chủ PI-Hole của mình, bạn cần điều hướng đến thư mục `/var/www/html/admin/style/nhà cung cấp/`.Bạn có thể làm điều này bằng cách nhập lệnh sau:

`` `
CD/var/www/html/admin/style/nhà cung cấp/
`` `

** Bước 3: Bản sao kho lưu trữ nửa đêm Pi-lỗ **

Kho lưu trữ nửa đêm PI-lỗ chứa một chủ đề tùy chỉnh cho giao diện quản trị PI-PI.Để cài đặt chủ đề này, bạn cần sao chép kho lưu trữ vào thư mục `/var/www/html/admin/style/nhà cung cấp/`.Bạn có thể làm điều này bằng cách nhập lệnh sau:

`` `
sudo git clone GitHub - jacobbates/pi-hole-midnight: Custom dark theme CSS for pi-hole to replace skin-blue AdminLTE theme
`` `

** Bước 4: Xóa tệp skin-blue.min.css ban đầu **

Chủ đề nửa đêm PI-HOLE ghi đè lên tệp skin blue.min.css.Để ngăn chặn điều này xảy ra, bạn cần loại bỏ tệp skin blue.min.css.Bạn có thể làm điều này bằng cách nhập lệnh sau:

`` `
sudo rm -f da -blue.min.css
`` `

** Bước 5: Sao chép tệp pi-hole midnight blue.min.css **

Chủ đề nửa đêm PI-HOLE chứa tệp skin.min.css tùy chỉnh.Để sử dụng tệp này, bạn cần sao chép nó vào thư mục `/var/www/html/admin/style/nhà cung cấp/`.Bạn có thể làm điều này bằng cách nhập lệnh sau:

`` `
sudo cp pi-hole-midnight/skin-blue.min.css.
`` `

** Bước 6: Tháo thư mục nửa đêm Pi-lỗ **

Kho lưu trữ nửa đêm Pi-lỗ chứa một số tệp không cần thiết cho chủ đề nửa đêm PI-HOLE.Để giải phóng không gian trên máy chủ PI-HOLE của bạn, bạn có thể xóa thư mục nửa đêm PI.Bạn có thể làm điều này bằng cách nhập lệnh sau:

`` `
sudo rm -rf pi-hole midnight
`` `

** Bước 7: Đăng nhập vào giao diện quản trị PI-HOLE **

Bây giờ bạn đã cài đặt chủ đề Midnight Pi-Hol, bạn có thể đăng nhập vào giao diện quản trị PI-HOLE để xem giao diện mới.Để thực hiện việc này, hãy mở trình duyệt web trên máy tính của bạn và điều hướng đến địa chỉ sau:

`` `
http: // <-pi-hole-IP-address>/admin
`` `

Bây giờ bạn nên xem chủ đề Midnight Pi-Hol.

** Để trở lại giao diện ban đầu, hãy làm theo các bước sau: **

1
=======================================
**How to change the Pi-Hole Admin interface for fun**

**TL;DR:**

1. SSH into your Pi-Hole server.
2. Navigate to `/var/www/html/admin/style/vendor/`.
3. Run the following commands:

```
sudo git clone GitHub - jacobbates/pi-hole-midnight: Custom dark theme CSS for pi-hole to replace skin-blue AdminLTE theme
sudo rm -f skin-blue.min.css
sudo cp Pi-Hole-Midnight/skin-blue.min.css .
sudo rm -rf Pi-Hole-Midnight
```

4. To revert back to the original interface, run the following commands:

```
cd /var/www/html/admin/style/vendor/
sudo git reset --hard
```

**For more detailed instructions, read on:**

The Pi-Hole Admin interface is pretty basic, but it can be customized to make it look more fun. Here's how to change the Pi-Hole Admin interface for fun.

**Step 1: SSH into your Pi-Hole server**

If you're not already SSHed into your Pi-Hole server, you can do so by following these instructions:

1. Open a terminal window on your computer.
2. Type the following command:

```
ssh pi@<your-pi-hole-ip-address>
```

**Step 2: Navigate to the `/var/www/html/admin/style/vendor/` directory**

Once you're SSHed into your Pi-Hole server, you need to navigate to the `/var/www/html/admin/style/vendor/` directory. You can do this by typing the following command:

```
cd /var/www/html/admin/style/vendor/
```

**Step 3: Clone the Pi-Hole Midnight repository**

The Pi-Hole Midnight repository contains a custom theme for the Pi-Hole Admin interface. To install this theme, you need to clone the repository into the `/var/www/html/admin/style/vendor/` directory. You can do this by typing the following command:

```
sudo git clone GitHub - jacobbates/pi-hole-midnight: Custom dark theme CSS for pi-hole to replace skin-blue AdminLTE theme
```

**Step 4: Remove the original skin-blue.min.css file**

The Pi-Hole Midnight theme overwrites the original skin-blue.min.css file. To prevent this from happening, you need to remove the original skin-blue.min.css file. You can do this by typing the following command:

```
sudo rm -f skin-blue.min.css
```

**Step 5: Copy the Pi-Hole Midnight skin-blue.min.css file**

The Pi-Hole Midnight theme contains a custom skin-blue.min.css file. To use this file, you need to copy it to the `/var/www/html/admin/style/vendor/` directory. You can do this by typing the following command:

```
sudo cp Pi-Hole-Midnight/skin-blue.min.css .
```

**Step 6: Remove the Pi-Hole Midnight directory**

The Pi-Hole Midnight repository contains a number of files that are not needed for the Pi-Hole Midnight theme. To free up space on your Pi-Hole server, you can remove the Pi-Hole Midnight directory. You can do this by typing the following command:

```
sudo rm -rf Pi-Hole-Midnight
```

**Step 7: Log in to the Pi-Hole Admin interface**

Now that you've installed the Pi-Hole Midnight theme, you can log in to the Pi-Hole Admin interface to see the new look. To do this, open a web browser on your computer and navigate to the following address:

```
http://<your-pi-hole-ip-address>/admin
```

You should now see the Pi-Hole Midnight theme.

**To revert back to the original interface, follow these steps:**

1
 
Join Telegram ToolsKiemTrieuDoGroup
Back
Top