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)
tianyzhotianyzho
上一篇 2016-09-19
下一篇 2016-09-19

相关推荐

  • find总结及练习

    文件查找: 在文件系统上查找符合条件的文件; 文件查找:locate, find非实时查找(数据库查找):locate 实时查找:find locate: 依赖于事先构建的索引;索引的构建是在系统较为空闲时自动进行(周期性任务);手动更新数据库(updatedb); 索引构建过程需要遍历整个根文件系统,极消耗资源; 工作特点: 查找速度快; 模糊查…

    Linux干货 2016-07-22
  • 哥是玩程序的

      下面一组有趣的Web示例,这些示例使用Web的一些很“土”控件做出一些很有趣的玩意儿。原来,编程是可以用来玩的,看看这些玩程序的人搞出的这些有意思的玩意,简直是玩得太有意思了。不过,请注意,这些东西只能使用Chrome打开,不然,你看不到相关的效果。 用滚动条做的时间 http://toki-woki.net/p/scroll-clock/,下…

    Linux干货 2015-04-01
  • N25_第十三周作业

    1、建立samba共享,共享目录为/data,要求:(描述完整的过程)  1)共享名为shared,工作组为magedu;  2)添加组develop,添加用户gentoo,centos和ubuntu,其中gentoo和centos以develop为附加组,ubuntu不属于develop组;密码均为用户名;  3)添加samb…

    Linux干货 2017-03-06
  • Linux运维学习历程-第七天-Linux文本工具及正则表达式

    文本处理工具: Linux文本处理三剑客:   grep、egrep、fgrep:文本过滤工具(模式:pattern)工具      grep:基本正则表达式 -E -F      egrep:扩展正则表达式 -G -F      fgrep:不支持正则表达式…

    Linux干货 2016-08-10
  • DNS和BIND配置(第二部分)

    接第一部分课后练习 三、课后练习: 2、配置反向解析: 步骤一:写主配置文件:改成与上个实验相同,也可以自己写一个简单的配置文件,如下: [root@localhost tmp]# cat named.conf.new options { directory  "/var/named&qu…

    Linux干货 2016-10-17
  • lvs集群学习笔记之原理

    lvs集群学习笔记之原理 lvs集群学习笔记之原理 集群 负载均衡 lvs 原理 lvs集群学习笔记之原理 什么是集群 什么是负载均衡 负载均衡解决方案 lvs简介 lvs内核空间模型 lvs特点 lvs实现方式 lvs实现方式之nat模型 lvs实现方式之dr lvs实现方式之tun lvs实现方式之FULLNAT lvs之算法 静态算法   &…

    Linux干货 2017-01-03