Hỏi-Cách thêm conky vào startup

quangha466

New member
** Cách thêm tệp Conky vào các ứng dụng khởi động trên Ubuntu **

**Vấn đề:**

Bạn có một tệp Conky mà bạn muốn chạy khi khởi động trên Ubuntu, nhưng bạn không biết làm thế nào để làm điều đó.

**Giải pháp:**

1. Mở thiết bị đầu cuối.
2. Nhập lệnh sau:

`` `
sudo nano /etc/xdg/autostart/conky.desktop
`` `

3. Điều này sẽ mở tệp `conky.desktop` trong trình chỉnh sửa nano.
4. Thêm các dòng sau vào tệp:

`` `
[Nhập máy tính để bàn]
Tên = Conky
Bình luận = tập lệnh khởi động conky
Exec =/path/to/conky.sh
Loại = Ứng dụng
Terminal = Sai
`` `

5. Lưu tệp và đóng trình chỉnh sửa.
6. Khởi động lại máy tính của bạn.

Tệp Conky của bạn bây giờ sẽ chạy khi khởi động.

** Mẹo thưởng: **

Bạn cũng có thể sử dụng lệnh sau để thêm tệp Conky vào các ứng dụng khởi động:

`` `
sudo systemctl cho phép conky
`` `

Điều này sẽ tạo ra một dịch vụ SystemD cho Conky và tự động khởi động khi khởi động.
=======================================
**How to add a Conky file to the startup applications on Ubuntu**

**Problem:**

You have a Conky file that you want to run at startup on Ubuntu, but you don't know how to do it.

**Solution:**

1. Open the terminal.
2. Type the following command:

```
sudo nano /etc/xdg/autostart/conky.desktop
```

3. This will open the `conky.desktop` file in the nano editor.
4. Add the following lines to the file:

```
[Desktop Entry]
Name=Conky
Comment=Conky startup script
Exec=/path/to/conky.sh
Type=Application
Terminal=false
```

5. Save the file and close the editor.
6. Restart your computer.

Your Conky file will now run at startup.

**Bonus tip:**

You can also use the following command to add a Conky file to the startup applications:

```
sudo systemctl enable conky
```

This will create a systemd service for Conky and start it automatically at boot.
 
Join Telegram ToolsKiemTrieuDoGroup
Back
Top