old notes

yum update: update software

guest edition ***:

how to install guest edition:

1) need to root: su –

2) yum install kernel-devel

3)yum install gcc* ( when don't remember name) — this is the compiler

4) on VB, click device tab and click install guest edition

linux as a desktop





yum install …..  redhat/centos install application  or library (yum package manager)

thundermail , audacity

ubuntu : apt-get intall (ubuntu package manager)

linux desktop 

(few important ones)


calibre office






server application on Linux

22 ssh openssh

23 telnet telnetd

25 smtp postfix,sendmail

52 dns bind,named

67 bootp dnsmasq,dhcpd

80 http apache

443 https apache

Server application 

Apache, MySQL,MONO(.net),CUPS(printing server).POSTFIX(mail transfer agent)

software development model:

Cathedral model :

Bazzar Model:

Linux Package Management:

Package: Dependency information.Version information, Architecture information, Binary packages (cpu specific)

two most common package System used for today:


Centos,Redora,Red hat,Suse enterprise,Opensusu   using RPM

Debian,Ubuntu,  using Debian

Arch pacman

slackware tarballs

most using RPM or Debian

Update software:

most distribution checking periodically 

or yum update

RPM based — yum   Debian based – APT

VI text editor

ESC :q!  quit without saving

which (application name)

show the path (where is this application)

apt-get(yum) remove

 remove –perge  ( remove library) —-follow by apt-get autoremove

apt-get dist-update

dpkg -i (need some dependency)  there will be error message if user didn't install all the dependency which unlike yum/apt-get install

apt-get update

apt-get -f upgrade  then dpkg -i *****.deb

mv *****   *****.deb(what ever)  rename

dpkg –get-selections | grep dropbox

dpkg –remove ***(file name)  remove all the binary files but not configuration files

in this way, you have to do is : dpkg –purge XXX.deb   it will remove purge configuration files associated with file


 rpm -i    (rpm for rpm install package file)



rpm -ihv xxxxx.rpm

rpm -q XXX tell package true name


which check if program if its been installed


yum remove nano

rpm -i

rpm based install

h progress show

v see the progress if its been failed

rpm -ihv nano-2.0……

rpm -q nano

name version   build version   architect system version

rpm -qi XXX

install date, group, size, license source rpm…… different other information

rpm -e XXX   uninstall the pacakge

rpm -qR XXX

yum update  : update the repository 

yum check-update

FSF freesoftware foundation

Open source initiative

Creative commons


continuous integration

building automation

treating your infrastructure like code

Iaas    Infrastructure as a service

PassS  platform as a service

SaaS  software as a Service


Continuous integration:

practice of merging development working copied with share source main multiple times per day

how you handle the source code, how offer you merge the source code

Continuous Delivery

keep producing valuable software in very short delivery cycles and ensures that those features can be reliably and consistently released at any point in time


Jenkins: deploy a simple software build to the custom creation of a Docker container 


allows you  to "treat your infrastructure as code"


a tool that packages up an application and all its dependencies in a "virtual container" so that it can be run on any Linux system or distribution

Docker components: daemon, client, Docker.io Registry

Vagrant: creates virtual machines

will provision the virtual machine via shell script or configuration management tool using like chef and puppet

vagrant does sort of fix on many host and guest setups

let vagrant handle the entire life cycle of development machines

  1. suspend, halt, resume virtual machines

  2. destroy your virtual machines and delete its metadata

  3. ssh to your machines

  4. package up your machines entire state and re distribute it to other development team member


  1. desktop virtualization

  2. containers

  3. cloud

Vagrant can work without virtual box

  • VMware

  • AWS EC2

  • any other

Vagrant init

Vagrant up

vagrant ssh

vagrant destroy

Vagrant is configured on a per project basis

Vim Vagrantfile

Vagrantfile wrote on Ruby

Vagrant Boxes: (template)

Boxes contains our base operating systems already setup

per project bases


Vagrant box list

Vagrant box 

vagrant status 

Accessing our Vagrant Virtual Machines

vagrant ssh :  


上一篇 2016-09-19 10:47
下一篇 2016-09-19 12:03


  • linux发展史

    通过本篇文章,读者可以了解Linux的基本概念、历史、发展情况; 首先,我们通过简单的介绍Linux,了解什么是linux以及它的发展背景; 前言:操作系统介绍 内核负责控制硬件资源分配,而如果只有内核,则只能让计算机硬件运行,而不能有任何功能,因此需要系统调用提供给开发者使用,从而开发应用程序; 内核能够控制硬件,比如:让CPU可以运算、让硬盘可以读写数据…

    Linux干货 2016-10-14
  • DNS域名解析系统搭建(BIND)

        【本文导航】    零、准备工作    一、根域服务器配置    二、com顶级域配置    三、linux.com域主服务器配置(DNS1)    四…

    Linux干货 2016-12-21
  • 开始学习总结的一些基本知识点

       第一VNC软件(面授班课堂用的),这款软件采用C/S架构(client/sever客户端和服务器端)还有VNC协议(virtual Network computing虚拟网络计算)协议。虽说这款软件对网络班没有实际用途,但自己了解下这款软件的构成也是不错的。    第二开始学习需要的虚拟机软件其中包括VMWARE…

    Linux干货 2016-10-29
  • linux文件系统分类

    1、linux文件系统分配策略: 块分配(blockallocation)和扩展分配(extentallocation): 块分配:磁盘上的文件块根据需要分配给文件,避免了存储空间的浪费。但当文件扩充时,会造成文件中文件块的不连续,从而导致过多的磁盘寻道时间。 每一次文件扩展时,块分配算法就需要写入文件块的结构信息,也就是meta-dada。meta-dat…

    Linux干货 2017-05-02
  • linux 中的 文本处理工具

    文本处理工具  在linux系统中 文本工具有很多 现在具体介绍几款 如 抽取文本的工具 和文件三剑客  文件内容:less和 cat   文件截取:head和tail   按列抽取:cut   按关键字抽取:grep egrep 首先 有 查看文件的cat tac  cat [OPTION]&#8…

    Linux干货 2016-08-11
  • Linux 第四天: (07月28日) Linux文件管理

    Linux 第四天: (07月28日) Linux文件管理         rootfs 根目录文件系统 root filesystemLSB  Linux Standard BaseFHS 文件系统分层结构 Filesystem Hierarchy Standard     蓝色表示 目…

    Linux干货 2016-08-08