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

.kde 

.lxde

.unity

.xfce

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)

openoffice.org

calibre office

Audacity

Thunderbird

Gimp

Pidgin

Blender

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:

RPM,Debian

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

redhat


 rpm -i    (rpm for rpm install package file)

        -h

        -v

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

DevOps

continuous integration

building automation

treating your infrastructure like code

Iaas    Infrastructure as a service

PassS  platform as a service

SaaS  software as a Service

automation

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 

Chef/Puppet: 

allows you  to "treat your infrastructure as code"

Docker:

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

Virtualization 

  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

command:

Vagrant box list

Vagrant box 

vagrant status 

Accessing our Vagrant Virtual Machines

vagrant ssh :  

原创文章,作者:tianyzho,如若转载,请注明出处:http://www.178linux.com/47676

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

相关推荐

  • 11.网络解析和网络加密

    1、详细描述一次加密通讯的过程,结合图示最佳。 加密过程 1.使用单向加密算法,提取A的文件的特征码。 2.使用A的私钥对提取出来的特征码进行加密,把加密后的特征码附加在A的文件的后面。 3.使用对称加密对刚刚的A的文件和加密后的特征码进行加密,生成对称加密密钥 4.使用B的公钥对第3步骤的对称加密的密钥进行加密,加密后附加在文件的后面。 解密过程 1.使用…

    2017-09-20
  • 例图分析软、硬链接

    在linux系统中存在两种链接方式硬链接和软连接,两种链接方式在系统中是完全不同的模式,本文主要详述两种的区别并给与图示; 创建guo ,lin两个文件,两个文件分别用于演示软连接和硬链接     图一:创建文件   创建软连接guo.ruan1     图二:创建软连…

    Linux干货 2016-10-29
  • Hadoop新增datanode与SecondaryNameNode

    无论是新增namenode还是SecondaryNameNode,操作方法大致相同 一、如果新增datanode,需要保证namenode能无密码ssh连接到新datanode 如果是添加SecondaryNameNode,则需保证其能无密码ssh连接至各datanode和namenode,namenode也需要能无密码连接到新SecondaryNameNo…

    Linux干货 2015-03-08
  • 初识shell脚本编程

    shell的编程三种分类方式介绍,如何使用nano命令编写一个脚本命令,及脚本命令运行的2种方式。bash的配置文件及系统启动时加载配置文件的顺序流程

    2017-12-14
  • python面向对象学习第一周

     面向对象的思想 一个具体对象的属性方法,都有各个来源,来源于类,比如消化类,有各种各样的消化模式,人类的只是其中一种 另一种思想方法,类有各种属性方法,人类有很多的属性,一个人应该包括其中的属性,只是值上可能有不同,不同人群也有他们的特征属性和方法     类是对象的抽象,但是类本身也是对象, 对象是一个类的实例. 类的属性:类变量,对象方法,类方法,静态…

    Linux干货 2017-11-13
  • linux运维

    linux运维大纲,学习路线图

    Linux干货 2017-10-21