安装 SSH 服务
---------------------
$ sudo apt-get install ssh
产生公钥与私钥 (可以选择 rsa / dsa / ecdsa / ed25519 算法来加密)
-------------------------------------------------------------------
# 预设会在~/.ssh 中产生私钥 id_rsa 和公钥 id_rsa.pub
$ ssh-keygen -t rsa -b 4096 -C "bat@yahoo.com" -P "密码"
让别人可以用 SSH 进入, 不需要户口密码
--------------------------------------------------------
将公钥加入档案 authorized_keys 中
$ cd ~
$ cat .ssh/id_rsa.pub >> .ssh/authorized_keys
或
$ eval "$(ssh-agent -s)" (确保 sshd 在运行)
$ ssh-add ~/.ssh/id_rsa
以后别人用
$ ssh userId@localhost
进入 localhost 不需要密码
如果 localhost_2 将 localhost 的公钥,
加入自己的 .ssh/authorized_keys 档案中,
那表示说 localhost 可以不需要密码进入 localhost_2 某个户口了
(当然, localhost_2 也要安装 SSH 服务)
SCP 文件传输
---------------------
# 从 localhost_2 的户口 userId00 复制文件到 localhost 里的户口 userId01
$ scp /home/userId00/z.txt userId01@localhost:/home/userId01
广告
本站里的文章大部分经过自行整理与测试
2015年8月10日星期一
ubuntu fcitx 中文输入器
目前 ibus 用 GooglePinyin 会有明显的 bugs
但可用 fcitx 加装搜狗拼音输入法, UI 界面与功能会大大提升
不需撤 ibus, fcitx 可以跟 ibus 共存
$ sudo add-apt-repository ppa:fcitx-team/nightly
$ sudo apt-get update
$ sudo apt-get install fcitx fcitx-config-gtk
$ sudo apt-get install fcitx-pinyin
$ sudo apt-get install fcitx-googlepinyin # Google 拼音输入法
$ sudo apt-get install fcitx-sunpinyin # 太阳拼音输入法
$ sudo apt-get install fcitx-module-cloudpinyin # 云拼音输入法
安装 fcitx 完后, 根据自己的OS版本,
下载搜狗拼音输入法, deb 档案在 ubuntu 按一按就可以安装了
搜狗拼音输入法 32 / 64 bits
---------------------------------------
http://pinyin.sogou.com/linux/?r=pinyin
http://pinyin.sogou.com/linux/download.php?f=linux&bit=32
http://pinyin.sogou.com/linux/download.php?f=linux&bit=64
ibus / fcitx 输入工具的转换
---------------------------------------
System Settings -> Language Support -> Language -> Keyboard input method system: fcitx
* 如果在 ubuntu 14.04 撤了 ibus, System Settings 会很多东西连同一起扯掉,
恢复的方法如下:
$ sudo apt-get remove unity-control-center
$ sudo apt-get install unity-control-center
$ sudo apt-get install ubuntu-desktop
但可用 fcitx 加装搜狗拼音输入法, UI 界面与功能会大大提升
不需撤 ibus, fcitx 可以跟 ibus 共存
$ sudo add-apt-repository ppa:fcitx-team/nightly
$ sudo apt-get update
$ sudo apt-get install fcitx fcitx-config-gtk
$ sudo apt-get install fcitx-pinyin
$ sudo apt-get install fcitx-googlepinyin # Google 拼音输入法
$ sudo apt-get install fcitx-sunpinyin # 太阳拼音输入法
$ sudo apt-get install fcitx-module-cloudpinyin # 云拼音输入法
安装 fcitx 完后, 根据自己的OS版本,
下载搜狗拼音输入法, deb 档案在 ubuntu 按一按就可以安装了
搜狗拼音输入法 32 / 64 bits
---------------------------------------
http://pinyin.sogou.com/linux/?r=pinyin
http://pinyin.sogou.com/linux/download.php?f=linux&bit=32
http://pinyin.sogou.com/linux/download.php?f=linux&bit=64
ibus / fcitx 输入工具的转换
---------------------------------------
System Settings -> Language Support -> Language -> Keyboard input method system: fcitx
* 如果在 ubuntu 14.04 撤了 ibus, System Settings 会很多东西连同一起扯掉,
恢复的方法如下:
$ sudo apt-get remove unity-control-center
$ sudo apt-get install unity-control-center
$ sudo apt-get install ubuntu-desktop
2015年8月6日星期四
Vmware Ubuntu - power-on script did not run successfully..
如果你遇上以上问题,
可以用以下指令来解决问题
# 预设
$ cd /usr/bin
# 卸载 VMware Tools
$ sudo vmware-uninstall-tools.pl
# 卸载 ..
$ sudo apt-get purge open-vm-tools*
# 安装
$ sudo apt-get install open-vm-tools-lts-trusty
重新安装 VMware Tools
(按 VMware -> VM > Reinstall VMware Tools)
等待 VMware 将 VMware Tools 挂起..
[C:\Program Files (x86)\VMware\VMware Workstation\linux.iso]
# 复制到 home
$ sudo cp "/media/VMware Tools/VMwareTools-9.9.3-2759765.tar.gz" ~
# 解压
$ cd ~
$ tar zxvf VMwareTools-9.9.3-2759765.tar.gz
$ cd vmware-tools-distrib
# 给 root 户口设定密码
$ sudo passwd root
# 用 root 户口来安装
$ su root
$ ./vmware-install.pl
订阅:
博文 (Atom)
