zoukankan      html  css  js  c++  java
  • 选择好用的生产力工具

    生产力的基本要素是:以生产工具为主的劳动资料,引入生产过程的劳动对象,具有一定生产经验与劳动技能的劳动者。我们目前离不开计算机、移动终端设备这些。就计算机而言,华为的海思芯片(ARM公版核心,自主研发架构)、鸿蒙操作系统(采用linux宏内核),其他的国产操作系统是debian等。那么,顺势而为是自我发展方向。

    作为非计算机行业人士来说,以后可能走向教育行业。无论是硬件还是软件,我选择比较稳定、copyleft、扩展性比较强、有一定学习发展潜力的平台。

    作为软件方向:windows平台没办法放弃,毕竟拥有adobe、MsOffice、AutoDesk……这些东西使用替代产品简直让自己生产能力倒退10年。操作系统还可以选择的有:CentOS-7,或者是Debian,但就学习发展潜力来看:RedHat系列的操作系统还是可以的,毕竟centos社区有很多文档可以学习。至于其他ubuntu、fedora、FreeBSD系统,了解他们浪费我的时间。关键是对我工作生活没有任何提升作用。

    接下来,就是需要安装CentOS-7桌面(gnome比较不错)到自己的电脑上,还有emacs(使用org插件)、vim使用YCM插件。对于编辑工具来说,我只是入门级别使用者,如果说深入学习,我会选择emacs编辑器(GNU方向,而不是SpaceEmacs),可以尝试学习lisp语言。然后安装gcc,gcc-g++,python3.5+,java这些编程工具,还有libreoffice、texstudio、firefox、chromium-browser、freeplane、evince、typora(外观具有东方朴素美)这些软件。

    (把这些东西写下里,是为了避免遗忘)

    安装过程如下:

    CentOS-7官方下载网站 ,选择境内镜像站,我选择阿里云站点,接着可以使用Rufus(可以去github下载最新版本)的dd模式制作启动盘。可以保持win10与CentOS-7双系统共存,UEFI引导。

    简单安装过后,进入桌面:

    1. 更换源:(我选择阿里源)

      #!/bin/bash 
      # 安装wget
      yum update && yum upgrade && yum autoremove && yum install wget
      # 备份旧的配置文件
      mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak
      # 下载阿里源的文件
      wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
      # 下载epel repo源
      # epel(RHEL 7)
      wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo
      # epel(RHEL 6)
      wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-6.repo
      # epel(RHEL 5)
      wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-5.repo
      # 清理缓存
      yum clean all
      # 重新生成缓存
      yum makecache
      

    2.安装最新版本工具:

    ​ 1.编程语言,gcc 压缩包;

    #!/bin/bash
    # /usr 系统级的目录,等同于C:/windows/;/usr/lib 等同于C:/Windows/System32/;
    # /usr/src 系统级的源码目录; /usr/local/src 用户级的源码目录;
    # /usr/local 用户级的程序目录;
    # /opt Here's where optional stuff is put.Trying out the latest Firefox beta?Install it to /opt where you can delete it without affecting other settings.Programs in here usually live inside a single folder which contains all of their data,libraries,etc.
    # gcc在http://ftp.gnu.org/gnu/gcc站点上进行下载;寻找最新版本。
    wget -O /opt/gcc-9.1.0.tar.xz http://ftp.gnu.org/gnu/gcc/gcc-9.1.0/gcc-9.1.0.tar.xz
    wget -O /opt/gcc-9.1.0.tar.xz.sig http://ftp.gnu.org/gnu/gcc/gcc-9.1.0/gcc-9.1.0.tar.xz.sig
    # sig是开源文件的签名文件,用来验证数据的完整性。
    # $ cd /opt
    # $ gpg --verify gcc-9.1.0.tar.xz.sig gcc-9.1.0.tar.xz
    # 详细界面如图001,使用RSA,钥匙号为C3C45C06
    # 无法检查签名,找不到公钥。
    # 给定公钥服务器,导入公钥
    # $ gpg --recv-keys --keyserver  keys.gnupg.net C3C45C06
    # 验证数据完整性;
    # $ gpg --verify --verbose gcc-9.1.0.tar.xz.sig gcc-9.1.0.tar.xz
    # 显示good signature就可以了
    

    图001

    1. 解压并编译压缩包,目标地址:/usr/local/gcc-9.1.0/

      mkdir /usr/local/gcc-9.1.0
      tar -xJvf /opt/gcc-9.1.0.tar.xz -C /usr/local/gcc-9.1.0
      # 编辑目标地址为/usr/local/gcc-9.1.0
      /opt/gcc-9.1.0/contrib/download_prerequisites 
      
      ……
      mkdir temp
      cd temp
      ../configure --enable-checking=release --enable-languages=c,c++ --disable-multilib
      make -j4
      make install
      # 在.bashrc增加gcc的系统环境路径;
      
    2. 安装gcc-c++,具体不再介绍。

    3. 安装python(下载源码压缩包,编译需要gcc,g++支持)

      python3.7.3安装包下载,解压;

      ./configure --prefix=/usr/local/python3

      make && make install

      ln -s /usr/local/python3/bin/python3 /usr/bin/python(创建新的链接)

    4. 剩下的下载:

      libreoffice、texstudio、firefox、chromium-browser、freeplane、evince、typora。

  • 相关阅读:
    [055] SSL 3.0曝出Poodle漏洞的解决方式-----开发人员篇
    java中接口的定义与实现
    很好的理解遗传算法的样例
    Memory Architecture-SGA-Database Buffer Cache
    ActionScript3游戏中的图像编程(连载十七)
    MacOS的g++使用clang,默认不支持C++11多线程: no matching constructor for initialization of 'std::thread'
    bash代码
    delete
    nautilus-open-terminal右键随处打开终端
    删除系统多余内核
  • 原文地址:https://www.cnblogs.com/ldh1112/p/11026403.html
Copyright © 2011-2022 走看看