$ sudo apt-get install fcitx fcitx-ui-classic fcitx-config-gtk2 fcitx-frontend-gtk* fcitx-frontend-qt* fcitx-table-wbpy fcitx-sunpinyin fcitx-module-cloudpinyin
安装完后默认云拼音使用 google 方案,但是国内可能不能用,可以选用 baidu 方案。
$ sudo apt-get install fcitx fcitx-ui-classic fcitx-config-gtk2 fcitx-frontend-gtk* fcitx-frontend-qt* fcitx-table-wbpy fcitx-sunpinyin fcitx-module-cloudpinyin
安装完后默认云拼音使用 google 方案,但是国内可能不能用,可以选用 baidu 方案。
There are 2 ways to solve this:
mysql_native_password
plugindb_user
with you system_user
(recommended)Option 1:
$ sudo mysql -u root # I had to use "sudo" since is new installation
mysql> USE mysql;
mysql> UPDATE user SET plugin='mysql_native_password' WHERE User='root';
mysql> FLUSH PRIVILEGES;
mysql> exit;
$ service mysql restart
Option 2: (replace YOUR_SYSTEM_USER with the username you have)
$ sudo mysql -u root # I had to use "sudo" since is new installation
mysql> USE mysql;
mysql> CREATE USER 'YOUR_SYSTEM_USER'@'localhost' IDENTIFIED BY '';
mysql> GRANT ALL PRIVILEGES ON *.* TO 'YOUR_SYSTEM_USER'@'localhost';
mysql> UPDATE user SET plugin='auth_socket' WHERE User='YOUR_SYSTEM_USER';
mysql> FLUSH PRIVILEGES;
mysql> exit;
$ service mysql restart
账号初始化:
$ sudo mysql_secure_installation
默认root密码为空;然后设置root密码和其他选项:
- Set root password? [Y/n] y
- Remove anonymous users? [Y/n] y
- Disallow root login remotely? [Y/n] y
- Remove test database and access to it? [Y/n] y
- Reload privilege tables now? [Y/n] y
登陆MariaDB命令行:
$ sudo mysql -u root -p
\r
\n
的16进制编码分别是 0d
0a
。
在没有自带exchange服务的安卓手机上(很少见,很奇葩,比如一加5T),无法通过exchange同步日历、联系人、邮件等数据(我只需要同步日历),只能安装第三方同步软件,推荐使用 Exchange+ Mail Client (其实也没有更多选择)管理同步,Google Play 地址。安装后与正常手机一样操作。
ubuntu 用户可以使用 deepin 提供的方案,简单稳定,去看看。
[toc]
从 官网安装 :
# 如果是 64 位系统
sudo dpkg --add-architecture i386
wget -nc https://dl.winehq.org/wine-builds/Release.key
sudo apt-key add Release.key
# ubuntu
sudo apt-add-repository https://dl.winehq.org/wine-builds/ubuntu/
# mint 18.x
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ xenial main'
# mint 19
sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ bionic main'
sudo apt-get update
sudo apt-get install --install-recommends winehq-stable
下载 winetricks-zh,解包,在命令行运行其中的 winetricks-zh
即可开始安装。如需安装 32位 程序,使用 WINEARCH=win32 winetricks-zh
。
WINEARCH=win32 winetricks-zh tim
WINEARCH=win32 winetricks-zh wechcat
# 先安装 winehq
sudo apt install playonlinux
微信
msls31
ole32
riched20
riched30
迅雷极速版
mfc42
riched30
vbrun6
vcrun6
百度网盘
riched20
wininet
ubuntu 12.04系统
# 执行下列命令
sudo apt-get install libappindicator1
sudo apt-add-repository ppa:gurqn/systray-trusty
sudo apt-get update
sudo apt-get install unity
# 重启系统,或 logout/login
ubuntu 14.04以及以上系统
# 执行下列命令
sudo apt-add-repository ppa:fixnix/indicator-systemtray-unity
sudo apt-get update
sudo apt-get install indicator-systemtray-unity
# 重启系统,或 logout/login
Windows支持字体链接:当一种字体中不存在某个字时,可以尝试从另一个字体文件中寻找相应的字形。所以只要把当前系统中的中文字体设为”fallback”字体,汉字通常就能正确显示了。方法也很简单,只需创建一个文本文件,如 chn_font.reg
,内容如下:
REGEDIT4
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\FontLink\SystemLink]
"Lucida Sans Unicode"="wqy-microhei.ttc"
"Microsoft Sans Serif"="wqy-microhei.ttc"
"MS Sans Serif"="wqy-microhei.ttc"
"Tahoma"="wqy-microhei.ttc"
"Tahoma Bold"="wqy-microhei.ttc"
"SimSun"="wqy-microhei.ttc"
"Arial"="wqy-microhei.ttc"
"Arial Black"="wqy-microhei.ttc"
注意请将wqy-microhei.ttc替换为你系统中的字体文件名,如文泉驿正黑是wqy-zenhei.ttc(请在/usr/share/fonts及其子文件夹中寻找相应字体文件)。
如果想使用其它字体,也可直接将相应的ttf或ttc文件复制到~/.wine/drive_c/windows/Fonts/,再用其文件名替换上面的wqy-zenhei.ttc即可。
打开注册表 wine regedit
,导入上面的注册表文件即可。
参考资源:
linux版本:ubuntu xenial
office版本:office 2010
安装 playonline
sudo apt install playonlinux
安装 winbind
sudo apt install winbind
安装 office
挂载 office 安装盘后,启动 playonlinux,点击 安装
,(首次运行需要等待刷新列表),选择 办公
–office 2010
(只支持32位),按提示安装。
输入法
在Office的 选项
–高级
里,取消掉 输入法处以激活状态
的勾,再重启office就好了。
针对 Meltdown
和 Spectre
,也适用于 Chromium
。
Chrome站点隔离
chrome://flags
后回车Strict site isolation
(严格站点隔离)并选中此项privoxy有将socks代理转为http代理的功能。
安装privoxy
sudo apt-get install privoxy
配置provoxy
sudo vim /etc/privoxy/config
配置内容:
# 在 froward-socks4下面添加一条socks5的,因为shadowsocks为socks5,
# 地址是127.0.0.1:1080。注意他们最后有一个“.”
# forward-socks4 / socks-gw.example.com:1080 .
forward-socks5 / 127.0.0.1:1080 .
# 下面还存在以下一条配置,表示privoxy监听本机8118端口,
# 把它作为http代理,代理地址为 http://localhost.8118/ 。
# 可以把地址改为 0.0.0.0:8118,或:8118,表示外网也可以通过本机IP作http代理。
# 这样,你的外网IP为1.2.3.4,别人就可以设置 http://1.2.3.4:8118/ 为http代理。
listen-address localhost:8118
重启privoxy:
sudo service privoxy restart
测试
curl -x localhost:8118 http://www.google.com
我们使用 usermod
来修改用户名。其语法为,
$ usermod -l new_username old_username
举个例子,假设我们有一个名叫 dan
的用户想要重命名为 susan
,那么在终端下执行下面命令:
$ sudo usermod -l susan dan
FSCK 是一个很重要的 Linux/Unix 工具,它用于检测并修复文件系统中的错误。它类似于 Windows 操作系统中的 “chkdsk” 工具,但它是为 Linux、MacOS、FreeBSD 操作系统所准备的。
FSCK 全称为 File System Consistency Check。在大多数时候,它在系统启动时运行,但是如果需要的话,它也能被超级用户手工启动。
它可以进行三种模式的操作,