Category Archives: Linux

在 Ubuntu 20.04 LTS 桌面版上安装 MS 字体

使用命令行安装

  1. $ sudo apt update
  2. $ sudo apt install ttf-mscorefonts-installer
  3. $ sudo fc-cache -f -v

将所有的 Windows 字体复制到 /usr/share/fonts 目录下并使用一下命令安装字体:

  1. $ mkdir /usr/share/fonts/WindowsFonts
  2. $ cp /Windowsdrive/Windows/Fonts/* /usr/share/fonts/WindowsFonts
  3. $ chmod 755 /usr/share/fonts/WindowsFonts/*
  4. fc-cache

Ubuntu 20.04 桌面版 关闭 图形界面

:cd /etc/default
:/etc/default$ ls
:sudo vi grub
GRUB_CMDLINE_LINUX_DEFAULT=“quiet splash”to “text”
:sudo update-grub
:sudo systemctl set-default multi-user.target
Created symlink /etc/systemd/system/default.target → /lib/systemd/system/multi-user.target.
:reboot

ubuntu wordpress sqlite

sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install apache2 -y
sudo add-apt-repository ppa:ondrej/php
sudo apt update
sudo apt install php7.1-fpm php7.1-mcrypt php7.1-cli php7.1-xml php7.1-mysql php7.1-gd php7.1-imagick php7.1-recode php7.1-tidy php7.1-xmlrpc
sudo apt-get install libapache2-mod-php7.1
sudo apt-get install php7.1-sqlite3
wget https://wordpress.org/latest.tar.gz
wget https://downloads.wordpress.org/plugin/sqlite-integration.1.8.1.zip
tar xvfz ./latest.tar.gz
unzip ./sqlite-integration.1.8.1.zip
sudo mv wordpress /var/www/html/
sudo chown -R www-data:www-data /var/www/html/wordpress
mv wp-config-sample.php wp-config.php
mv sqlite-integration /var/lib/wordpress/wp-content/plugins/
mv /var/www/html/wordpress/wp-content/plugins/sqlite-integration/db.php /var/www/html/wordpress/wp-content/
sudo service apache2 restart
IP/wordpress #start installation