@@ -16,7 +16,7 @@ icon: material/puzzle
1616
1717安装 ` ubuntu-gnome-desktop ` 软件:
1818
19- ``` shell
19+ ``` console
2020$ sudo apt install ubuntu-gnome-desktop
2121```
2222
@@ -28,7 +28,7 @@ $ sudo apt install ubuntu-gnome-desktop
2828
2929安装完成后输入:
3030
31- ``` shell
31+ ``` console
3232$ sudo reboot
3333```
3434
@@ -56,7 +56,7 @@ $ sudo reboot
5656在 GNOME 桌面下用户可以轻松更换主题。
5757首先安装 ` gnome-tweaks ` 软件:
5858
59- ``` shell
59+ ``` console
6060$ sudo apt install gnome-tweaks
6161```
6262
@@ -72,7 +72,7 @@ $ sudo apt install gnome-tweaks
7272
7373解压后放到 ` ~/.themes ` 文件夹,若不存在该文件夹则创建一个。
7474
75- ``` shell
75+ ``` console
7676$ mkdir ~ /.themes
7777```
7878
@@ -84,7 +84,7 @@ $ mkdir ~/.themes
8484
8585输入:
8686
87- ``` shell
87+ ``` console
8888$ gnome-tweaks
8989```
9090
@@ -104,7 +104,7 @@ GNOME 支持很多扩展,并且有一个专门用于扩展的网站。https://
104104
105105要使用 GNOME 扩展,我们要先安装 ` gnome-shell-extensions ` 。
106106
107- ``` shell
107+ ``` console
108108$ sudo apt install gnome-shell-extensions
109109```
110110
@@ -116,7 +116,7 @@ Caffeine: 允许用户停用系统屏幕保护和自动休眠。
116116
117117先来查看我们正在使用的 GNOME 版本:
118118
119- ``` shell
119+ ``` console
120120$ gnome-shell --version
121121```
122122
@@ -136,7 +136,7 @@ $ gnome-shell --version
136136
137137打开 ` gnome-tweaks ` 。
138138
139- ``` shell
139+ ``` console
140140$ gnome-tweaks
141141```
142142
@@ -218,7 +218,7 @@ $ gnome-tweaks
218218
219219在此之前我们可以通过:
220220
221- ``` shell
221+ ``` console
222222$ echo $SHELL
223223```
224224
@@ -228,13 +228,13 @@ $ echo $SHELL
228228
229229首先通过 apt 安装 ` zsh ` :
230230
231- ``` shell
231+ ``` console
232232$ sudo apt install zsh
233233```
234234
235235将 zsh 设定为默认 shell:
236236
237- ``` shell
237+ ``` console
238238$ chsh -s /bin/zsh
239239```
240240
@@ -250,7 +250,7 @@ $ chsh -s /bin/zsh
250250
251251oh-my-zsh 是一个管理 zsh 配置的框架,评价也非常好。
252252
253- ``` shell
253+ ``` console
254254$ sh -c " $( curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh) "
255255```
256256
@@ -352,7 +352,7 @@ $ sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/t
352352
353353### WordPress 的手动配置
354354
355- ``` shell
355+ ``` console
356356$ sudo apt install -y wordpress php libapache2-mod-php mysql-server php-mysql
357357```
358358
@@ -378,15 +378,15 @@ Alias /blog /usr/share/wordpress
378378
379379保存后输入命令来重启 ` apache2 ` :
380380
381- ``` shell
381+ ``` console
382382$ sudo a2ensite wordpress
383383$ sudo a2enmod rewrite
384384$ sudo service apache2 reload
385385```
386386
387387再配置数据库相关内容:
388388
389- ``` shell
389+ ``` console
390390$ sudo mysql -u root
391391```
392392
@@ -452,7 +452,7 @@ define('WP_CONTENT_DIR', '/usr/share/wordpress/wp-content');
452452
453453然后输入:
454454
455- ``` shell
455+ ``` console
456456$ sudo service mysql start
457457```
458458
0 commit comments