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 12:03
下一篇 2016-09-19 12:03

相关推荐

  • 浅谈用户名和权限

        小编已经写了两篇博客了,却忘了自我介绍,咳咳咳(隆zhuang重qiang介zuo绍shi)一下:翠衣薄纱如花艳,柳眉凤眼俏佳人说的就是我!不扯了其实,小编拥有一个四口之家,那么小编今天就借家献佛给你们讲讲用户组和权限。     所属主(me):一般为文件的创建者,谁创建了该文件,就天然的成…

    Linux干货 2017-07-30
  • iptables

    iptables简介   iptables 是与最新的 3.5 版本 Linux 内核集成的 IP 信息包过滤系统。如果 Linux 系统连接到因特网或 LAN、服务器或连接 LAN 和因特网的代理服务器, 则该系统有利于在 Linux 系统上更好地控制 IP 信息包过滤和防火墙配置。 iptables基础   规则(rules)其实就是网络管理员预定义的条…

    Linux干货 2017-02-16
  • Vsftpd+MySQL实现虚拟用户验证登录

    一、安装所需要包和包组: 在数据库服务器上安装包: yum –y install mariadb-server mariadb-devel systemctl start mariadb.service systemctl enable mariadb 在FTP服务器上安装包pam_mysql centos7:无对应rpm包,需…

    Linux干货 2017-08-14
  • Linux 救援模式初步运用详解

    Linux救援模式初步运用 背景: 在运用Linux时会出现一些误操作,导致系统无法正常使用,比如删除了某个重要依赖库,或者删除了rpm等等。在这里记录下具体的操作步骤,供以后参考。 意义: 学会在使用Linux系统出现误删除系统重要文件时,能使用救援模式来恢复系统。 案例详解: 当我们删除了Linux系统重要库文件时,该如何恢复,比如在这里我们删除/lib…

    2017-07-29
  • vsftp通过pam_mysql做虚拟用户认证

    vsftpd可以通过三种账户登录系统: 系统账户:系统本地账户登录系统,默认进入的目录是用户家目录,可以在所有有权限的路径切换; 匿名账户:匿名用户登录,然后映射为一个本地用户; 虚拟账户:既不是系统本地用户也不是匿名用户,而是通过pam做第三方认证的方法,支持文件和数据库,ldap的认证,此处通过mysql进行实验; 一、准备实验环境 实验在一台虚拟机上进…

    Linux干货 2017-06-07
  • sed简介

    sed是什么 sed是linux文本处理工具三剑客(grep,sed,awk)之一,用来处理文本的流编辑工具。主要用来编辑一个或多个文件,简化重复操作文件。 sed的工作原理和相关概念 sed是行处理的模式,针对文件内容从上往下一行一行地读取。每行的操作步骤如下示意图: sed的语法格式 sed [OPTION]… 'script' …

    Linux干货 2016-10-09