mirror of
https://github.com/TheWhiteDog9487/lag2cn.git
synced 2026-08-12 07:11:27 +08:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 541a5cdf5b | |||
| c6cff413fe | |||
| 641f1a82a7 | |||
| 2756f382a8 | |||
| d4eb067f79 |
@@ -0,0 +1,11 @@
|
|||||||
|
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
||||||
|
Version 2, December 2004
|
||||||
|
|
||||||
|
Everyone is permitted to copy and distribute verbatim or modified
|
||||||
|
copies of this license document, and changing it is allowed as long
|
||||||
|
as the name is changed.
|
||||||
|
|
||||||
|
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
||||||
|
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||||
|
|
||||||
|
0. You just DO WHAT THE FUCK YOU WANT TO.
|
||||||
@@ -1,9 +1,15 @@
|
|||||||
# 一键切换Ubuntu(和Debian)系统到简体中文
|
# 一键切换Ubuntu(和Debian)系统到简体中文
|
||||||
## 测试通过的系统
|
## 测试通过的系统
|
||||||
|
### **x86_64:**
|
||||||
|系统名称|版本|
|
|系统名称|版本|
|
||||||
|-|-|
|
|-|-|
|
||||||
|Debian|11.6.0|
|
|Debian|11.6.0|
|
||||||
|Ubuntu|22.04 LTS|
|
|Ubuntu|22.04 LTS 20.04 LTS|
|
||||||
|
|
||||||
|
### **aarch64:**
|
||||||
|
|系统名称|版本|
|
||||||
|
|-|-|
|
||||||
|
|Debian|11.5|
|
||||||
|
|
||||||
## 使用方法
|
## 使用方法
|
||||||
确保已经安装wget或者有其他方法可以传输文件
|
确保已经安装wget或者有其他方法可以传输文件
|
||||||
@@ -12,11 +18,17 @@ apt update && apt install -y wget
|
|||||||
```
|
```
|
||||||
|
|
||||||
下载程序
|
下载程序
|
||||||
|
### **x86_64:**
|
||||||
```shell
|
```shell
|
||||||
wget https://raw.githubusercontent.com/TheWhiteDog9487/ubuntu-language-onekey-zh_cn/main/language
|
wget https://raw.githubusercontent.com/TheWhiteDog9487/ubuntu-language-onekey-zh_cn/main/language
|
||||||
```
|
```
|
||||||
|
### **aarch64:**
|
||||||
|
```shell
|
||||||
|
wget https://raw.githubusercontent.com/TheWhiteDog9487/ubuntu-language-onekey-zh_cn/main/language_arm
|
||||||
|
```
|
||||||
|
|
||||||
运行程序
|
运行程序
|
||||||
```shell
|
```shell
|
||||||
sudo chmod o+x language
|
sudo chmod u+x language
|
||||||
sudo ./language
|
sudo ./language
|
||||||
```
|
```
|
||||||
@@ -82,8 +82,13 @@ int main() {
|
|||||||
exit(-1);}
|
exit(-1);}
|
||||||
else if (OS == "Linux") {
|
else if (OS == "Linux") {
|
||||||
if (get_linux_distro_name().find("Ubuntu") != string::npos){
|
if (get_linux_distro_name().find("Ubuntu") != string::npos){
|
||||||
|
cout << "检测到您使用的系统为:" << get_linux_distro_name() << endl;
|
||||||
Ubuntu();}
|
Ubuntu();}
|
||||||
if (get_linux_distro_name().find("Debian") != string::npos){
|
if (get_linux_distro_name().find("Debian") != string::npos){
|
||||||
|
cout << "检测到您使用的系统为:" << get_linux_distro_name() << endl;
|
||||||
|
Debian();}
|
||||||
|
if (get_linux_distro_name().find("Armbian") != string::npos){
|
||||||
|
cout << "检测到您使用的系统为:" << get_linux_distro_name() << endl;
|
||||||
Debian();}
|
Debian();}
|
||||||
else { exit(-1); }}
|
else { exit(-1); }}
|
||||||
else if (OS == "未知"){
|
else if (OS == "未知"){
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user