zoukankan      html  css  js  c++  java
  • 安装ubuntu配置ssh

        

    vmware安装ubuntu后,必须配置网卡,重新设置MAC,否则无法连接网络(具体方法百度)
    NAT直连模式xshell连接时host为ifconfig
    显示的IP地址,不需要设置端口转发,端口还是22

    3.如果不能上网去服务查看vmware的4个服务是否启动
    如果还不行在编辑-网络里面将3个网卡全都删除在重新添加即可
    4.随时生成快照

    参考:http://www.linuxidc.com/Linux/2017-08/146222.htm

    1.sudo apt-get install openssh-server

    2.sudo apt-get install openssh-server

    启动服务

    /etc/init.d/ssh start
    然后可用xshell远程连接
    ##换源:
    首先,备份一下Ubuntu 13.04 原来的源地址列表文件
    sudo cp /etc/apt/sources.list /etc/apt/sources.list.old
    然后进行修改,可以在里面添加资源地址,也可以直接覆盖掉原来的
    sudo gedit /etc/apt/sources.list
    #网易的源(163源)
    deb http://mirrors.163.com/ubuntu/ raring main universe restricted multiverse

    保存后更新系统:
    sudo apt install update 查看有多少项可更新的
    sudo apt full-upgrade(使用sudo apt install full-upgrade,会卸载在安装,耗费时间较长,直接用sudo apt full-upgrade即可)
    然后reboot重启生效

    虚拟环境:
    sudo apt install virtualenvwrapper
    创建目录用来存放虚拟环境
    mkdir $HOME/.virtualenvs
    在~/.bashrc中添加行: export WORKON_HOME=$HOME/.virtualenvs
    在~/.bashrc中添加行:source /usr/local/bin/virtualenvwrapper.sh(可忽略此行)
    运行: source ~/.bashrc
    此时virtualenvwrapper就可以使用了。
    列出虚拟环境:
    workon


    sudo apt-get install python-virtualenv
    使用方法:
    virtualenv -p python3 py3env
    virtualenv py3env
    激活虚拟环境:
    source py3env/bin/activate
    失活:
    deactivate

     

  • 相关阅读:
    C# 不用添加WebService引用,调用WebService方法
    贪心 & 动态规划
    trie树 讲解 (转载)
    poj 2151 Check the difficulty of problems (检查问题的难度)
    poj 2513 Colored Sticks 彩色棒
    poj1442 Black Box 栈和优先队列
    啦啦啦
    poj 1265 Area(pick定理)
    poj 2418 Hardwood Species (trie树)
    poj 1836 Alignment 排队
  • 原文地址:https://www.cnblogs.com/lajiao/p/7819506.html
Copyright © 2011-2022 走看看