ubuntu技巧

1. 开启彩色命令提示

编辑home目录里面的.bashrc
#y\1D5@j@0 Linuxeden博客家园\P(t\T4]?{$r # uncomment for a colored prompt, if the terminal has the capability; turnedLinuxeden博客家园/I(e,c-cf3F7b
# off by default to not distract the user: the focus in a terminal window
,qx&f Yo3|rL0 # should be on the output of commands, not on the prompt
/_%ve/[k!m�u5Z^0 #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

 

你可能感兴趣的:(C++,c,ubuntu,ssh,vim)