美文网首页
Ubuntu下软件安装

Ubuntu下软件安装

作者: 不一样的丶我们 | 来源:发表于2018-09-14 18:24 被阅读35次

VMWare和Ubuntu的安装

Ubuntu下node的安装

  • Node.js 是一个基于 Chrome V8 引擎的 JavaScript 运行环境,其使用了一个事件驱动、非阻塞式 I/O 的模型,使其轻量又高效.

  • 安装依赖包python-software-properties

    sudo apt-get install python-software-properties

  • 添加PPA

    • 网站deb.nodesource.com维护了nodejs的各版本安装包的PPA,我们可以从该网站上下载执行导入。

    curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -

    • 如果没有curl运行命令安装
      • sudo apt-get install curl
  • 安装nodejs和npm版本

    • sudo apt-get install nodejs
  • 查看nodejs和npm是否安装成功

    zhy@zhy-zhy:~$ npm -v
    6.4.1
    zhy@zhy-zhy:~$ node -v
    v8.12.0
    

Ubuntu下Vscode的安装

  • 准备工作和环境说明
  • 安装Vscode
  • 打开终端(Ctrl+Alt+T)
  • 运行如下命令
    • sudo dpkg -i xxx(下载的Vscode包)
  • 如果安装失败,则需要运行如下命令:

Ubuntu下Pycharm的安装和激活

  • Pycharm专业版下载: https://www.jetbrains.com/pycharm/download/#section=linux
  • 安装
    • 提取到某处,一般是HOME目录下。

    cd $(install_dir)/bin/ #进入bin文件夹
    sudo sh pycharm.sh #第一次命令是安装加打开pycharm,以后是打开pycharm。

  • 添加环境变量

    echo "PATH=$HOME/xxx/bin:$PATH">>~/.bashrc

    • 其中$HOME/xxx/bin是pycharm.sh所在的目录,根据自己的情况替换即可. 之后用echo $PATH命令确认添加成功.
  • 后台运行

    pycharm.sh &
    & : nohup命令,表示后台启动一个进程

  • pycharm的卸载

    rm -r xxx # 卸载文件夹
    rm -r .xxx # 卸载配置文件夹,这一步是很必要的,要不然你的配置被一直记住,相当于没有删除
    在你的安装目录可以通过ls -la来查看隐藏文件。之后可以用find命令查找。

  • 设置快捷启动方式
    • 在Ubuntu下,每次都要找到 pycharm.sh所在的文件夹,执行./pycharm.sh,非常麻烦。最好能创建一个快捷方式。
    • Ubuntu的快捷方式都放在/usr/share/applications,首先在该目录下创建一个Pycharm.desktop
    • 启用root权限,新打开一个终端,键入sudo -i 输入密码即可
    • 再键入:
      • sudo gedit /usr/share/applications/Pycharm.desktop
在打开的文档中输入以下内容,注意Exec和Icon需要找到正确的路径 
[Desktop Entry] 
Type=Application 
Name=Pycharm 
GenericName=Pycharm3 
Comment=Pycharm3:The Python IDE 
Exec=”/XXX/xxx/bin/pycharm.sh” %f 
Icon=/XXX/xxx/bin/pycharm.png 
Terminal=pycharm 
Categories=Pycharm;
XXX表示路径,xxx表示Pycharm文件名称。
然后再到/usr/share/applications中找到相应的启动,进入后锁定到启动器即可。
  • 激活码
AWAC5NN6E4-eyJsaWNlbnNlSWQiOiJBV0FDNU5ONkU0IiwibGljZW5zZWVOYW1lIjoibGIgb2QiLCJhc3NpZ25lZU5hbWUiOiIiLCJhc3NpZ25lZUVtYWlsIjoiIiwibGljZW5zZVJlc3RyaWN0aW9uIjoiRm9yIGVkdWNhdGlvbmFsIHVzZSBvbmx5IiwiY2hlY2tDb25jdXJyZW50VXNlIjpmYWxzZSwicHJvZHVjdHMiOlt7ImNvZGUiOiJJSSIsInBhaWRVcFRvIjoiMjAxOS0wNy0yOSJ9LHsiY29kZSI6IlJTMCIsInBhaWRVcFRvIjoiMjAxOS0wNy0yOSJ9LHsiY29kZSI6IldTIiwicGFpZFVwVG8iOiIyMDE5LTA3LTI5In0seyJjb2RlIjoiUkQiLCJwYWlkVXBUbyI6IjIwMTktMDctMjkifSx7ImNvZGUiOiJSQyIsInBhaWRVcFRvIjoiMjAxOS0wNy0yOSJ9LHsiY29kZSI6IkRDIiwicGFpZFVwVG8iOiIyMDE5LTA3LTI5In0seyJjb2RlIjoiREIiLCJwYWlkVXBUbyI6IjIwMTktMDctMjkifSx7ImNvZGUiOiJSTSIsInBhaWRVcFRvIjoiMjAxOS0wNy0yOSJ9LHsiY29kZSI6IkRNIiwicGFpZFVwVG8iOiIyMDE5LTA3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bs354ZQLUwwa/cG++2+wNWP+HtBhVxMRNTdVhSm38AknZlD+PTAsWGu9GyLmhti2EnVwGybSD2Dxmhxk3IPCkhKAK+pl0eWYGZWG3tJ9mZ7SowcXLWDFAk0lRJnKGFMTggrWjV8GYpw5bq23VmIqqDLgkNzuoog==

相关文章

网友评论

      本文标题:Ubuntu下软件安装

      本文链接:https://www.haomeiwen.com/subject/amtagftx.html