码迷,mamicode.com
首页 > 其他好文 > 详细

各种坑之遇险记

时间:2016-07-09 16:29:52      阅读:146      评论:0      收藏:0      [点我收藏+]

标签:

how to access share folder in ubuntu virtualbox

sudo adduser [username] vboxsf

enable root and ssh root login

step 1:

   sudo passwd root

step 2:

    sudo passwd -u root 

you want to work on a root console you can also use 

   sudo -i

If you want to disable root account in Ubuntu you need to lock the root account by using the following command 

  sudo passwd -l root

You also need to edit /etc/ssh/sshd_config, and comment out the following line:

PermitRootLogin without-password

Just below it, add the following line:

PermitRootLogin yes

Then restart SSH:

service ssh restart

npm config settings

  1. I run this command:

    npm config set strict-ssl false
  2. Then set npm to run with http, instead of https:

    npm config set registry "http://registry.npmjs.org/"
  3. Then I install packages using this syntax:

    npm --proxy http://username:password@cacheaddress.com.br:80 install packagename
npm config set proxy http://proxy.company.com:8080
npm config set https-proxy http://proxy.company.com:8080

d

各种坑之遇险记

标签:

原文地址:http://www.cnblogs.com/cdjboy/p/5656017.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!