Configurar Servidor Ubuntu

download Configurar Servidor Ubuntu

of 27

Transcript of Configurar Servidor Ubuntu

  • 7/21/2019 Configurar Servidor Ubuntu

    1/27

    Confgurar Servidor

    UbuntuActualizar Servidor

    >> sudo apt-get update && sudo apt-get upgrade -y

    OPenSSH

    Instalar OpenSSH-Server para administracin con Putty y SFTP:

    >> sudo apt-get install openssh-server

    on!gurar OpenSSH

    >> sudo nano "etc"ssh"sshd#con!g

  • 7/21/2019 Configurar Servidor Ubuntu

    2/27

    VirtualBox

    OS : $%untu '()' *TS Server +,o $I.

    IP /ddress : )(((0"1'

    Preparing $%untu '()' *TS server

    /ctuali2ar Servidor:

    >> sudo apt-get update && sudo apt-get upgrade -y

    Instalar componenten necesarios:

    >> sudo apt-get install %uild-essential d3ms un2ip -y

    4e%oot your server once to ta3e e5ect all the changes(

    Installing VirtualBox

    6dit "etc"apt"sources(list !le:

    >> sudo nano "etc"apt"sources(list

    /dd the latest oracle virtual%o7 repository to your $%untu server( 8ou cando9nload the oracle virtual%o7 latest repository rom here(

    ;(((> 9get -= http:""do9nload(virtual%o7(org"virtual%o7"de%ian"oracle#v%o7(asc-O- sudo apt-3ey add -

    ,o9? update the repository and install latest oracle virtual%o7 version(

  • 7/21/2019 Configurar Servidor Ubuntu

    3/27

    >> sudo apt-get update

    >> sudo apt-get install @irtualAo7-'(B -y

    /ter installing virtual%o7? add the system user s3 to the v%o7users group( s3 is

    the system normal user that I have created already( 8ou can create and use aseparate ne9 user as your 9ish( I you use di5erent user? log out and log in%ac3 to that user and do the rest o the steps(

    >> sudo usermod -a v%o7users manager

    ,o9? run the ollo9ing command to chec3 i virtual%o7 3ernel modules areloaded or not(

    >> sudo "etc"init(d"v%o7drv status

    Sample output:

    @irtualAo7 3ernel modules +v%o7drv? v%o7netCt? v%o7netadp? v%o7pci. areloaded(

    I it? not loaded? run the ollo9ing command to load them:

    >> sudo "etc"init(d"v%o7drv setup

    Install Oracle VirtualBox Extension pac

    Starting 9ith @irtualAo7 '()? 9e should install 67tension pac3 that 9ill help usto manage and connect our remote guest consoles via 9e% interace( This67tension pac3 provides the ollo9ing unctionalities to the @irtualAo7 guests(

    The virtual $SA 1() +6HI. device

    @irtualAo7 4emote Des3top Protocol +@4DP. support

    Host 9e%cam passthrough

    Intel PE6 %oot 4O

    67perimental support or PI passthrough on *inu7 hosts

  • 7/21/2019 Configurar Servidor Ubuntu

    4/27

    @irtualAo7 e7tension pac3 should %e same version as @irtualAo7 %ase pac3age(Do9nload 67tension pac3 or @irtualAo7 '(B rom here(

    >> 9gethttp:""do9nload(virtual%o7(org"virtual%o7"'(B(1"Oracle#@#@irtualAo7#67tension#Pac3-'(B(1-GBBB(v%o7-e7tpac3

    >> 9gethttp:""do9nload(virtual%o7(org"virtual%o7"'(B(11"Oracle#@#@irtualAo7#67tension#Pac3-'(B(11-G1BJ(v%o7-e7tpac3

    Then? Install 67tension pac3 as sho9n %elo9(

    >> sudo @Ao7anage e7tpac3 install Oracle#@#@irtualAo7#67tension#Pac3-'(B(1-GBBB(v%o7-e7tpac3

    >> sudo @Ao7anage e7tpac3 install Oracle#@#@irtualAo7#67tension#Pac3-'(B(11-G1BJ(v%o7-e7tpac3

    ThatKs it Oracle @irtualAo7 and 67tension pac3 have %een installed successullyon our $%untu '()' *TS server( Start using Oracle @irtualAo7L For creating andmanaging virtual machines rom the command line? reer the oMcial manual(

    http:""999(virtual%o7(org"manual"ch)(html

    Install /pache

    /pache is an open-source multi-platorm 9e% server( It provides a ull range o9e% server eatures including I? SS* and virtual domains(

    To install /pache? enter the ollo9ing command rom your terminal:

    sudo apt-get install apache1

    Test /pache:

    http://www.virtualbox.org/manual/ch08.htmlhttp://www.virtualbox.org/manual/ch08.html
  • 7/21/2019 Configurar Servidor Ubuntu

    5/27

    Open your 9e% %ro9ser and navigate to http:""localhost" or http:""server-ip-address"(

    Install PHP

    PHP +recursive acronym or PHP: Hyperte7t Preprocessor. is a 9idely usedopen-source general purpose scripting language that is especially suited or9e% development and can %e em%edded into HT*(

    Install PHP 9ith ollo9ing command:

    sudo apt-get install php0 li%apache1-mod-php0

    To test PHP? create a sample Ntestphp(php !le in /pache document root older(

    sudo nano "var"999"html"testphp(php

    /dd the ollo9ing lines(

    Qphp

    phpino+.R

    Q>

    4estart apache1 service:

    sudo service apache1 restart

    ,avigate to http:""server-ip-address"testphp(php( It 9ill display all the detailsa%out php such as version? %uild date and commands etc(

    http://server-ip-address/http://server-ip-address/http://server-ip-address/http://server-ip-address/
  • 7/21/2019 Configurar Servidor Ubuntu

    6/27

    Install php@irtualAo7

    Aeore installing php@irtualAo7? 9e have to install /pache 9e% server and PHP(To install /pache? PHP reer the ollo9ing lin3(

    Install */P Server On $%untu '()' *TS

    *o primero =ue vamos a hacer es crear un usuario para el producto( reamos

    un usuario llamado v%o7 y lo aadimos al grupo v%o7users:sudo useradd -m v%o7 - v%o7users

    reemos una contrasea para dicho usuario:

    sudo pass9d v%o7 Nv'lmB7

    /hora creamos el !chero "etc"deault"virtual%o7 y le agregamos la siguientelinea @AOE6A#$S64Uv%o7 +des esta orma la /PI SO/P de @irtualAo7 usada

    por el proceso v%o79e%srv se eVecuta como el usuario v%o7.:

    >> sudo nano "etc"deault"virtual%o7

    @AOE6A#$S64Uv%o7

    /dditionally? install php-soap e7tension 9hich is re=uired %y php@irtualAo7 to9or3 9ell(

    sudo apt-get install php-soap

    4estart the 9e% server to ta3e e5ect the changes(

    sudo "etc"init(d"apache1 restart

  • 7/21/2019 Configurar Servidor Ubuntu

    7/27

    ,o9? Do9nload the latest version rom the php@irtualAo7 oMcial site(

    9get http:""sourceorge(net"proVects"phpvirtual%o7"!les"phpvirtual%o7-'(B-1(2ip

    67tract the 2ip !le using the ollo9ing command:

    un2ip phpvirtual%o7-'(B-1(2ip

    ove the e7tracted older to your apache root older(

    sudo mv phpvirtual%o7-'(B-1 "var"999"html"phpvirtual%o7

    on!gure php@irtualAo7

    6dit php@irtualAo7 con!g(php !le:

    sudo cp "var"999"html"phpvirtual%o7"con!g(php-e7ample

    "var"999"html"phpvirtual%o7"con!g(php

    sudo nano "var"999"html"phpvirtual%o7"con!g(php

    hange the username"pass9ord or system user that runs @irtualAo7( In ourcase? the username"pass9ord is s3"u%untu(

    ;(((:''B"

    To log in? a user name and pass9ord is as3ed? this data is as3ed during the !rststage o the installation( Aut any other user %elonging to the jsudoj groupcould %e used to log in as 9ell(

    ,ote: The installers are generated rom time to time? so may%e some pac3agescontained on them are outdated( I you have Internet connection during the

    installation? the latest version o the pac3ages 9ill %e installed rom ourrepositories(

    For a complete step-%y-step installation guide? please reer tohttp:""doc(2entyal(org

    entyal '() pac3ages

  • 7/21/2019 Configurar Servidor Ubuntu

    26/27

    8ou can also install entyal as a jpac3age setj to an already installed version o$%untu( This 9as developed and tested 9ith $%untu version '()'(

    For $%untu '()' +Trusty.( 8ou should install the server edition o $%untu(

    /dd to your "etc"apt"sources(list:

    de% http:""archive(2entyal(org"2entyal '() main

    In order to authenticate the pac3ages in the PP/ and entyal repository you

    can import its pu%lic 3ey 9ith the ollo9ing command:

    sudo apt-3ey adv --3eyserver 3eyserver(u%untu(com --recv-3eys )61BGFF

    9get -= http:""3eys(2entyal(org"2entyal-'()-archive(asc -O- sudo apt-3ey add -

    4ead the entyal#'()#/nnouncement or more ino(

    Installing pac3ages

    entyal has a modular design that allo9s you to install or remove modulesdepending on your needs(

    /ter editing your sources(list? ma3e sure that your pac3age data%ase is up todate %y running the ollo9ing command:

    sudo apt-get update

    /ter that? you Vust need to run:

    sudo apt-get install 2entyal

  • 7/21/2019 Configurar Servidor Ubuntu

    27/27

    /nd then point your %ro9ser to the entyal IP address and ollo9 theinstructions on screen:

    https:""2entyal-ip-address>"

    I you 9ant to install the ull graphical environment you can install 2en%untu-des3top instead o Vust 2entyal:

    sudo apt-get install 2en%untu-des3top

    /ter installing 2en%untu-des3top your $%untu 9ill %e in almost the same stateas i you 9ere used the the oMcial entyal Installer? you Vust need to re%oot

    your server +simulating the !nish o the !rst stage o the installation. and onthe ne7t %oot the entyal core pac3ages 9ill %e installed and you 9ill %e a%le tocontinue the installation rom the des3top environment(

    8ou can also use the command line to install the pac3ages(

    67ample:

    sudo apt-get install 2entyal-sam%a

    8ou can also install all the entyal pac3ages:

    sudo apt-get install 2entyal-all

    Previous 4eleases Installer Images

    - /ll !les +current and previous releases.(