Câmara Municipal de Ribeirão Preto Ishida TI
Agradecimento CODERP (Amarildo e Jeová) GITEC (Todos) Interlegis ;-)
LTPS
LTPS Linux Terminal Server Project http://en.wikipedia.org/wiki/linux_terminal_server_project
Linha do tempo(unix) No início os bancos utilizavam, uma Interface que ligava muitos monitores e teclados aos servidores. Grande poder de processamento central rede coaxial (CARO)
Linha do tempo Tem inicio o uso da tecnologia dos Microcomputadores. As pontas das redes passam a processar suas necessidades. O Servidor diminui de tamanho. A rede melhora a velocidade e qualidade de transmissão.
Linha do tempo Algumas redes passam a utilizar a tecnologia LTSP, para baixar os custos de manutenção e aquisição. Principal carcterística de uma rede LTSP, Estações sem HD (Thin Clients), e de baixo poder de processamento. Servidor do mesmo tipo dos servidores de rede convencionais.
Conceitos Básico
Rede Comum
Rede + LTSP
LTSP
Custos
Hardware Servidor PC Dc5800 Intel Core 2 Quad Q8400, Disco 320GB, Memória 2GB, DVD Rom Monitor Samsung 943SW Plus LCD 18.5in 1360x768 5ms R$ 2.939,00
Hardware Estação Computador c/ Intel Pentium Dual Core E2200 2.2GHz 2GB 400GB DVD-RW Linux - Qbex + Monitor LCD 18,5" Widescreen W1943 - LG R$ 1,300,00
Custos com Software proprietário: SO Servidor: U$ 1,029.00 SO Estação: U$ 319,99 Software de Escritório: U$ 499,95 (http://store.microsoft.com/microsoft/office Professional 2007/product/864B504C) (http://store.microsoft.com/microsoft/windows 7 Ultimate/product/5A4B95F4) (http://store.microsoft.com/microsoft/windows Server 2008 Standard/product/482B2E83)
Custos com Software Livre ;-) SO Servidor: R$ 1,00(mídia de CD) SO Estação: U$ 0,00 Software de Escritório: U$ 0,00 (Economia em Dólares!!! rs..)
Vantagens > Linux( LTSP) Eestações podem ser Máquinas Antigas Diminuindo o Investimento inicial Investimento em Hardware + 1 mídia de CD
Rede Windows LTSP Servidor Estação Servidor Estação Hardware R$ 2.939,00 R$ 1.300,00 Hardware R$ 2.939,00 R$ 1.100,00 Software(SO) R$ 1.776,05 R$ 552,30 Software(SO) R$ 0,00 R$ 0,00 Software(Outros) R$ 862,91 Software(Outros) R$ 0,00 Soma Parcial R$ 4.715,05 R$ 1.852,30 Soma Parcial R$ 2.939,00 R$ 1.100,00 20 Estações R$ 37.046,05 20 Estações R$ 22.000,00 U$ 4/Dez/2009 1,73 Preço em R$ TOTAL R$ 24.939,00 2008 Server 1029 R$ 1.776,05 Windows 7 319,99 R$ 552,30 Diferença Office 2007 499,95 R$ 862,91 Win LTSP Economia R$ 41.761,11 R$ 24.939,00 R$ 16.822,11 TOTAL R$ 41.761,11 Economia Estações R$ 16.822,11 R$ 1.100,00 15,29 Compraríamos mais 15 estações
Visão Macro CID Economia Total 100 R$ 16.822,11 R$ 1.682.210,88 200 R$ 16.822,11 R$ 3.364.421,76 300 R$ 16.822,11 R$ 5.046.632,64 400 R$ 16.822,11 R$ 6.728.843,52 500 R$ 16.822,11 R$ 8.411.054,40 600 R$ 16.822,11 R$ 10.093.265,28 700 R$ 16.822,11 R$ 11.775.476,16
Servidor Estações Projetor 600 Lumens Lousa(digital) e/ou Quadro Branco Ar condicionado Mesas Apostila Professor Switch Cabeamento (Internet)
Instalando LTSP
Onde baixar o Ubuntu Alternate: http://releases.ubuntu.com/9.04/
Escolha de idioma F2
Inserir no menu Opcional Instalar Servidor LTSP F4
Usar todo o HD Formatar Instalar reboot
Ao Reiniciar o Ubuntu, atualizar: $sudo -s $apt-get update $apt-get upgrade $apt-get install vim
$ifconfig Verificar o Endereço IP das duas interfaces: $cd /etc/network/ (Fazer cópia de segurança) $cp /etc/network/interfaces/ etc/network/interfaces.orig $vim interfaces ou $vim /etc/network/interfaces
Acertar Interfaces Reiniciar
Interfaces Original auto lo iface lo inet loopback # The primary network interface auto eth0 iface eth0 inet static address 192.168.0.251 netmask 255.255.255.0 network 192.168.0.0 broadcast 192.168.0.255 gateway 192.168.0.1 dns-nameservers 192.168.0.181 dns-search CMRP.pmrp.com.br # The secondary network interface auto eth1 iface eth1 inet static address 192.168.0.254 netmask 255.255.255.0 network 192.168.0.0 broadcast 192.168.0.255
Interfaces Modificado auto lo iface lo inet loopback # The primary network interface auto eth0 iface eth0 inet static address 192.168.0.251 netmask 255.255.255.0 network 192.168.0.0 broadcast 192.168.0.255 gateway 192.168.0.1 dns-nameservers 192.168.0.181 dns-search CMRP.pmrp.com.br # The secondary network interface auto eth1 iface eth1 inet static address 192.168.1.1 netmask 255.255.255.0 network 192.168.1.0 broadcast 192.168.1.255
Configurar DHCP (Fazer cópia de segurança) $cp /etc/ltsp/dhcpd.conf /etc/ltsp/dhcpd.conf.orig
Configurar DHCP $vim /etc/ltsp/dhcpd.conf
DHCP (Orig) authoritative; subnet 192.168.0.0 netmask 255.255.255.0 { range 192.168.0.20 192.168.0.250; option domain-name "example.com"; option domain-name-servers 192.168.0.1; option broadcast-address 192.168.0.255; option routers 192.168.0.1; # next-server 192.168.0.1; # get-lease-hostnames true; option subnet-mask 255.255.255.0; option root-path "/opt/ltsp/i386"; if substring( option vendor-class-identifier, 0, 9 ) = "PXEClient" { filename "/ltsp/i386/pxelinux.0"; } else { filename "/ltsp/i386/nbi.img"; } }
DHCP(modif) authoritative; subnet 192.168.1.0 netmask 255.255.255.0 { range 192.168.1.20 192.168.1.250; option domain-name "example.com"; option domain-name-servers 192.168.1.1; option broadcast-address 192.168.1.255; option routers 192.168.1.1; # next-server 192.168.0.1; # get-lease-hostnames true; option subnet-mask 255.255.255.0; option root-path "/opt/ltsp/i386"; if substring( option vendor-class-identifier, 0, 9 ) = "PXEClient" { filename "/ltsp/i386/pxelinux.0"; } else { filename "/ltsp/i386/nbi.img"; }}
Reiniciando DHCP e interfaces de rede $invoke-rc.d dhcp3-server restart $service networking restart
Acertar LTSP $ltsp-update-sshkeys $cd /opt/ltsp/i386/opt/ $vim lts.conf $ltsp-update-image
Criar Usuários que conectarão no LTSP $adduser cmrp01 $adduser cmrp02 $adduser cmrp03 : : :
Instalação do Client
Identificando o Hardware
Buscar Boot na rede. http://rom-o-matic.net/gpxe/gpxe-git/gpxe.git/contrib/romo-matic/
Fazer o disco de boot Ligar o Servidor Ligar as Estações Chamar o Prezz, Diretor,... TÁ PRONTINHO!!!!!!!!!! ;-)
Ishida CM Ribeirão Preto Tel 16-3607-4044 Ishida@camararibeiraopreto.sp.gov.br Japanix@gmail.com