1、安装输入法
ibus-table-wubi
2、安装vs code
sudo apt update
sudo apt install software-properties-common apt-transport-https curl
curl -sSL https://packages.microsoft.com/keys/microsoft.asc | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main"
更新软件
sudo apt update
sudo apt install code
3、设置ls显示日期时间格式
vim /etc/profile
加入:
export TIME_STYLE='+%Y/%m/%d %H:%M:%S'
4、安装VirtualBox 6
第1步:更新你的系统
第一步是确保你的系统更新,运行以下命令即可:
sudo apt update && sudo apt -y upgrade
第2步:导入VirtualBox apt存储库
系统更新后,导入用于签名包的存储库GPG密钥:
sudo apt -y install wget
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | sudo apt-key add -
wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -
第3步:添加VirtualBox存储库
导入GPG密钥后,使用以下命令将VirtualBox存储库添加到系统中:
echo "deb [arch=amd64] http://download.virtualbox.org/virtualbox/debian bionic contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list
第4步:安装VirtualBox和Extension Pack
最后一步是实际安装VirtualBox和扩展包,它扩展了VirtualBox功能:
sudo apt update
sudo apt install linux-headers-$(uname -r) dkms
sudo apt install virtualbox-6.0
下载扩展包:
cd ~/
wget https://download.virtualbox.org/virtualbox/6.0.0/Oracle_VM_VirtualBox_Extension_Pack-6.0.0.vbox-extpack
注:你也可以手动下载它,前往下载页面:https://ywnz.com/linuxrj/4792.html
5、安装wine
启用32位架构
如果你运行的是Debian 10/9 64位系统,请启用对32位应用程序的支持,运行以下命令即可:
sudo dpkg --add-architecture i386
注意:上面的命令不会返回任何输出信息。
我们将从WineHQ存储库中提取最新的Wine 4软件包,你需要手动增加WineHQ存储库。
首先,导入GPG密钥:
wget -qO - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -
注:没安装wget就参考:在Linux系统中安装Wget、Htop、Nano、Lynx、Fzf、Pydf的方法。
在输出中会出现“OK”字样。
通过运行以下命令添加Wine存储库:
sudo apt-add-repository https://dl.winehq.org/wine-builds/debian/
注:该命令适用于Debian 10/9系统,将在/etc/apt/sources.list文件中添加一行。
sudo apt update
sudo apt install winehq-stable
注:该条命令安装的是稳定版本,如果对Development branch版本感兴趣,请运行:
sudo apt install winehq-devel
以下是staging版本,请运行:
sudo apt install winehq-staging
注:通常情况下,安装stable版本为上策,使用这个版本运行应用软件出现问题的概率较小。
安装后,验证版本已安装的版本:
$ wine --version
wine-4.0.1
在Debian 10/9上使用Wine 4运行Windows应用程序
有关Wine的基本用法,请查看帮助页面:
$ wine --help
下面的示例用于在Linux上运行Notepad++编辑器:
$ cd ~/Downloads
$ wget https://notepad-plus-plus.org/repository/7.x/7.7/npp.7.7.Installer.exe
$ wine ./npp.7.7.Installer.exe
然后按照Windows应用程序的安装提示进行操作即可,如下图所示:
6、安装 apache2 + php7 + mariadb
更新软件源中的所有软件列表(必须)
sudo apt update
更新软件(建议)
sudo apt upgrade
更新系统版本(非必要时,不建议升级)
sudo apt dist-upgrade
1、安装apache2+php7
sudo apt install apache2 php7.0 php7.0-cli php7.0-curl php7.0-gd php7.0-mcrypt php7.0-mysql
sudo apt install libapache2-mod-php
sudo service apache2 start
2、安装mariadb
sudo apt install mariadb-server mariadb-client
修改服务监听地址
不再是修改 my.cnf 了。这次,你需要修改的是这个文件:
/etc/mysql/mariadb.conf.d/50-server.cnf
修改的内容一样,在 [mysqld] 区块下,修改 bind-address 的值。下面的一段实例,是允许任意IP地址连线数据库:
user = mysql
pid-file = /var/run/mysqld/mysqld.pid
socket = /var/run/mysqld/mysqld.sock
port = 3306
basedir = /usr
datadir = /var/lib/mysql
tmpdir = /tmp
lc-messages-dir = /usr/share/mysql
skip-external-locking
# Instead of skip-networking the default is now to listen only on
# localhost which is more compatible and is not less secure.
# bind-address = 127.0.0.1
MariaDB 安全配置
要提高MariaDB安装的安全性,请运行mysql_secure_installation脚本:
sudo mysql_secure_installation
MariaDb配置远程
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%'IDENTIFIED BY '12345' WITH GRANT OPTION;
flush privileges;
7、安装wps
https://www.wps.cn/product/wpslinux/#
下载wps,安装
1.下载字体库
链接: https://pan.baidu.com/s/1xil5_i9M53fM7EQNIt3Mcw 密码: jqnu
2.解压
sudo unzip wps_symbol_fonts.zip -d /usr/share/fonts/wps-office
3.重启wps
8、安装pip
apt-get update
apt-get install python3-pip
apt-get install python-pip
9、安装nodejs
1、更新系统
sudo apt-get update
sudo apt-get -y install curl dirmngr apt-transport-https lsb-release ca-certificates vim
2、添加Node.js LTS存储库
对于生产用途,我建议你安装最新的LTS版本,下面安装Node.js 10.x:
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
3、安装nodejs
sudo apt-get -y install nodejs
你还可以使用开发工具来构建本机插件:
sudo apt-get install gcc g++ make
4、修改npm成华为云镜像源
npm config set registry https://mirrors.huaweicloud.com/repository/npm/
验证
npm config get registry
如果返回https://mirrors.huaweicloud.com/repository/npm/,说明镜像配置成功。