首页 > 其他 > 详细

各种坑之遇险记

时间:2016-07-09 16:28:51      阅读:190      评论: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
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!