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

相关推荐

  • 8月3号 用户权限作业

     1,当用户xiaoming 对/testdir  目录无执行权限时,意味着无法做哪些操作?   先创建目录/testdir,接着修改目录的/testdir的权限,用xiaoming的身份去进入/testdir目录 [root@localhost ~]# mkdir /testdir [root@l…

    Linux干货 2016-08-08
  • CentOS6.7 Xen安装部署和基本测试小结

    目录:    1. Xen的简介    1.1  Xen的大体结构    1.2 Xen对VM的称呼    1.3 Xen对CPU和内存的虚拟化过程    1.4 Xen对IO设备的虚拟化过程    1.5 Linux Kerne…

    Linux干货 2016-04-19
  • Linux中的账号管理之命令的使用(中)

    linux中账号管理的命令非常多,我这里主要介绍最常见的几个命令,这些命令分别是针对用户和组的管理 主要介绍对用户管理的命令: 一、用户创建:useradd useradd命令用于Linux中创建的新的系统用户。useradd可用来建立用户帐号。帐号建好之后,再用passwd设定帐号的密码.而可用userdel删除帐号。使用useradd指令所建立的帐号,实…

    Linux干货 2016-08-07
  • 集中练习3

    用户管理、文本处理、文件管理相关

    2017-09-20
  • grep、egrep、fgrep命令和正则表达式用法

    一、简介  1.1、grep说明    grep命令简单来说就是linux系统实现文本内容筛选过滤的命令。当我们需要快速定位查找文本(通常是配置文件)中我们需要的内容时,使用grep命令绝对算是最有效的处理方式之一。原因就在于grep可以配合包括“管道”、“正则表达式”等命令完成我们想要的关键字筛选过滤功能。个人认为不管是喜欢L…

    Linux干货 2015-08-31
  • 优云Automation:实现IT服务弹性伸缩的利器

    随着互联网业务快速持续增长,IT资源使用量按需变化成为常态,这就要求信息部门能快速响应资源使用的变化要求,对运维提出不小挑战。比如电商、在线教育等企业经常推出一些秒杀、抢红包活动,在特定时间段对资源的利用处于高峰期,之后基本处于空闲。 几年前,我们从申请采购到应用部署上线都只能人工操作,需要提前几个月开始规划。如今通过云平台能很好实现资源按需动态管理,运维人…

    系统运维 2017-03-15