Select the productivity tools easy to use

Productivity is the essential element: the production of labor-based tools, the introduction of the object of labor of the production process, with a certain production experience and labor skills of workers. We currently can not do without computers, mobile devices these. In terms of computers, Huawei Hass chip (ARM public version of the core, independent research and development framework), Hong Meng operating system (using linux kernel macro), other domestic operating system is debian and so on. Then, the flow is self-development direction.

As a non-computer industry professionals, it may later move towards the education sector. Whether hardware or software, I chose relatively stable, copyleft, scalability strong, have a certain platform for learning and development potential.

As a software direction: windows platform can not give up, after all, has adobe, MsOffice, AutoDesk ...... these things simply using alternatives to make their production capacity back 10 years. You can also select the operating system are: CentOS-7, or Debian, but just look at the potential for learning and development: RedHat family of operating systems, or can, after all, there are many documents centos community can learn. As for the other ubuntu, fedora, FreeBSD system, understand their wasting my time. The key is to not have any effect on my work to enhance life.

Next, is the need to install CentOS-7 desktops (gnome quite good) to your own computer, as well as emacs (using plug-org), vim use YCM plug. For editing tools, I just entry-level users, if the in-depth study, I would choose the emacs editor (GNU direction, rather than SpaceEmacs), you can try to learn lisp language. Then install gcc, gcc-g ++, python3.5 +, java these programming tools, as well as libreoffice, texstudio, firefox, chromium-browser, freeplane, evince, typora (oriental appearance Simple Beauty) software.

(Wrote these things in, in order to avoid forgetting)

Installation process is as follows:

CentOS-7 official download site , select the territory of mirror sites, I chose Ali cloud site , then you can use Rufus (github can go to download the latest version) dd mode to make a boot disk. It may be maintained win10 CentOS-7 with two systems coexist, UEFI boot.

After the simple installation into desktop:

  1. Replace the source :( I chose Ali source)

    #!/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. Install the latest version of the tool:

1. programming language, gcc compressed;

#!/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就可以了

Figure 001

  1. Unpack and compile the archive, destination address: /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. Installation gcc-c ++, which will not be described.

  3. Install python (download the source archive, the compiler needs gcc, g ++ support)

    python3.7.3 installation package downloaded, unpacked;

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

    make && make install

    ln -s / usr / local / python3 / bin / python3 / usr / bin / python (create a new link)

  4. The rest of the download:

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

Guess you like

Origin www.cnblogs.com/ldh1112/p/11026403.html