Commands:1. sudo apt-get install python-software-properties2. add-apt-repository ppa:webupd8team/java3. sudo apt-get update4. sudo apt-get install oracle-jdk7-installer Aprendendo o comando fsck O comando fsck checka e corrige erros no sistema de arquivos. Por padrao, o fsck assume o sistema de arquivos ext2 e, apos fazer uma checagem no disco, pergunta ao usuario se ele deseja fazer as correcoes necessarias.As opcoes mais usadas sao:-A - Faz a checkagem de todos os discos especificados no arquivo /etc/fstab.-t - Especifica o tipo de sistema de arquivos que devera ser checado. -b superbloco - Especifica qual o superbloco o fsck ira trabalhar.-c - Faz checkagem de setores defeituosos.-f - Forca a checkagem.-p - Repara automaticamente o sistema de arquivos.-y - Executa o fsck de modo nao interativo.Exemplo:antonio@technat:# fsck -p -y /dev/hda1Leia o man doiv comando para se divertir e aprender mais. Debian 6 Servidor FTP com o ProFTPD.Primeiro, vamos instalar o ProFTPD.# apt-get install proftpd# yum install proftpdDurante a instalacao, quando for solicitado o modo do servidor, escolha standalone.O standalone e mais seguro e mais rapido, enquanto o inetd faz com que ele fique ativo apenas quando acessado, economizando cerca de 400 KB de memoria RAM que hoje em dia nao e nada.Apos instalacao, no Debian, edite o arquivo vi /etc/proftpd/proftpd.confAgora, segue meu arquivo (proftpd.conf) completo.## /etc/proftpd/proftpd.conf -- This is a basic ProFTPD configuration file.# To really apply changes reload proftpd after modifications.# # Includes DSO modulesInclude /etc/proftpd/modules.conf# Set off to disable IPv6 support which is annoying on IPv4 only boxes.UseIPv6 off# If set on you can experience a longer connection delay in many cases.IdentLookups offUseReverseDNS offServerName "NomeServidor"ServerType standaloneDeferWelcome off MultilineRFC2228 onDefaultServer onShowSymlinks onAllowForeignAddress onTimeoutNoTransfer 1200TimeoutStalled 300TimeoutIdle 1200DisplayLogin welcome.msgDisplayChdir .message trueListOptions "-l"DenyFilter \*.*/# Use this to jail all users in their homesDefaultRoot ~# Users require a valid shell listed in /etc/shells to login.# Use this directive to release that constrain.# RequireValidShell off# Port 21 is the standard FTP port.Port 21# In some cases you have to specify passive ports range to by-pass# firewall limitations. Ephemeral ports can be used for that, but# feel free to use a more narrow range.PassivePorts 6500 6535# If your host was NATted, this option is useful in order to# allow passive tranfers to work. You have to use your public# address and opening the passive ports used on your firewall as well.MasqueradeAddress 201.xx.39.xxx# This is useful for masquerading address with dynamic IPs:# refresh any configured MasqueradeAddress directives every 8 hours# DynMasqRefresh 28800# To prevent DoS attacks, set the maximum number of child processes# to 30. If you need to allow more than 30 concurrent connections# at once, simply increase this value. Note that this ONLY works# in standalone mode, in inetd mode you should use an inetd server# that allows you to limit maximum number of processes per service# (such as xinetd)MaxInstances 30# Set the user and group that the server normally runs at.User proftpdGroup nogroup# Umask 022 is a good standard umask to prevent new files and dirs# (second parm) from being group and world writable.Umask 022 022# Normally, we want files to be overwriteable.AllowOverwrite on# Uncomment this if you are using NIS