2017年4月30日星期日

安装wine


  1. sudo dpkg --add-architecture i386
  2. get key https://dl.winehq.org/wine-builds/Release.key
  3. install key sudo apt-key add Release.key
  4. 添加 sudo apt-add-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ xenial main'(mint)
  5. sudo apt update
  6. sudo apt install --install-recommends winehq-devel

安装google-chrome


  1. 下载key https://dl-ssl.google.com/linux/linux_signing_key.pub
  2. 安装key sudo apt-key add keyname
  3. 添加源 sudo apt-add-repository 'deb http://dl.google.com/linux/chrome/deb/ stable main'(mint)
  4. sudo apt update
  5. sudo apt install google-chrome-stable

2017年4月25日星期二

Linux Mint 安装后的二三事

最近使用的Ubuntu16.04经常报错,又不想花时间去解决,又因最近一次Gnome的安装,系统无法进入桌面,一气之下安装了Mint,总结如下
  1. 系统安装不再叙述;
  2. 输入法
  • 安装fcitx fcitx-table-wbpy qt4-qtconfig fcitx-frontend-qt4 kde-config-fcitx fcitx-ui-classic
  • 使用im-config配置输入法
  • 使用fcitx-config配置输入法
  • 使用qt4 settings配置输入法
  1.  安装shadowsockets-qt5
  • sudo add-apt-repository ppa:hzwhuang/ss-qt5
  • sudo apt update
  • sudo apt install shadowsocks-qt5
  1. 设置tmpfs
  • 设置虚拟盘, 修改/etc/fstab 此方案不可行
  • 参见https://forums.linuxmint.com/viewtopic.php?t=237543
  • sudo cp /usr/share/systemd/tmp.mount /etc/systemd/system/
  • sudo systemctl enable tmp.mount
  • Reboot

Ubuntu tmpfs配置

Ubuntu tmpfs配置
配置文件位于/lib/init/fstab, 用户在/etc/fstab下的配置将覆盖其配置内容, 下面是配置文件的说明.
# /lib/init/fstab: static file system information.
# These are the filesystems that are always mounted on boot, you can
# override any of these by copying the appropriate line from this file into
# /etc/fstab and tweaking it as you see fit.  See fstab(5).

优化SSD
添加noatime,nodiratime,commit=60参数到mount
创建/tmp tmpfs文件系统到内存
tmpfs /tmp tmpfs defaults,noatime,nodiratime,mode=1777,size=50% 0 0