1. 开启彩色命令提示
编辑home目录里面的.bashrc
# uncomment for a colored prompt, if the terminal has the capability; turned
# off by default to not distract the user: the focus in a terminal window
# should be on the output of commands, not on the prompt
#force_color_prompt=yes
将最后一句取消注释即可。
2. openssh-server的sh等待输入密码问题
方法一:
修改配置文件:
parallel@parallel-desktop:~$ sudo vim /etc/ssh/sshd_config
在末尾添加
UseDNS no
方法二:
首先,打开 sshd_config 文件:sudo nano /etc/ssh/sshd_config
找到 GSSAPI options 这一节,将下面两行注释掉:
#GSSAPIAuthentication yes
#GSSAPIDelegateCredentials no
然后重新启动 ssh 服务即可:
sudo /etc/init.d/ssh restart
3. sudo不用输入密码
1、使用root权限运行以下命令
visudo
2、把/etc/sudoers(自动打开)裡面最後一行
%admin ALL=(ALL)ALL
改为
%admin ALL=(ALL) NOPASSWD: NOPASSWD: ALL
4. 在Ubuntu下安装.bundle文件
第一步:sudo chmod +x ****.bundle
第二步:sudo ./****.bundle