Linux使用技巧总结(二)

1. How to display the numbers of the row in vieditor?

First open a file with vicommand. Then assure you are in the command mode. Finally, input set nuand press Enter.

2. How to open a word file in linux?

Input openoffice.org fileNamein the command window.

3. Log in the cluster without passwords ?

(单机免密码登陆)

  1. Input ssh-keygen -t rsain the terminal of the local computer, and press Enter3 times;
  2. Input scp ~/.ssh/id_rsa.pub xxx@192.168.1.1:~/, and then input your passwords;
  3. Log in the cluster and cat id_rsa.pub >> .ssh/authorized_keys
  4. You can log in the cluster by input ssh xxx@192.168.1.1without password on your local computer

(多机同时免密码登陆)

  1. 如果此操作影响了在集群不同主机之间的无密码登录,则可以将集群中的id_rsa.pub也加入authorized_keys
    具体做法为:运用cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys命令使得集群中可以有多个免密码登录的许可。
  2. 如果在远程登录时出现提示Agent admitted failure to sign using the key,请重启电脑,或者在本地电脑
    中输入ssh-add ~/.ssh/id_rsa(后一种方法我还没有试过,因为重新启动后问题就解决了)

4. How to install Linux system(Fedora or Ubuntu) on a MacBook Air?

参考网址:http://jingyan.baidu.com/album/4853e1e565dc781908f72657.html?picindex=3

  1. 下载Fedora Workstation iso文件(百
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值