|
Como usar As vantagens todas dum Eggdrop Melhorar e configurar um Eggdrop Eggdrops pre' compilados (nao aconselhado) Files
|
Shells [ O que e' uma SHELL? | Encontrar uma shell? | Usar a Shell | Comandos | Usar FTP na shell ] NOTA:TEXTO TRADUZIDO PELO ALTAVISTA, NADA TENHO A VER COM A TRADUÇÃO Para correr um Eggdrop , eh preciso uma shell. Uma shell eh basicamente uma conta num server que seja ligado à Internet através de uma linha dedicada, de elevada velocidade. As shells funcionam em sistemas operativos LINUX. A Ligaçao à shell e' feita por telnet e ftp. A shell vem com um certo limite de espaço (geralmente de 5MB a 30MB para contas basicas) armazenando ficheiros e programas a correr na máquina em LinuX.Infelizmente ao contrário dos Eggdrops,as shells nao são ah borla. Mas como estao sempre ligadas ah internet a correr nuam linha dedicada, eh sempre a melhor opçao para correr bots no IRC. As shells podem tambem ser usados para outras coisas, relacionadas com IRC, tais como bouncers, Servidor de IRC, downloads a alta velocidade para o armazenamento provisório de ficheiros, E-mail forwarding, e manter um Web site. Nao eh necessario ser nenhum PRO em linux pra poder por um eggdrop no IRC, mas serah preciso aprender alguns comandos basicos. Muitos ISPs fornecem uma shell gratis, embora, os bots do IRC não são permitidos em tais ISP's, e/ou as ferramentas necessitadas para compilar e funcionar Eggdrop podem faltar. Algumas pessoas contentam-se apenas em ter uma pequena area na shell de um amigo, mas para muitas pessoas a única opção deve começar Por procurar um bom shell provider. Encontrar um shell provider para o seu bot, eh como encontrar um ISP para si. Existem muitos bons shell providers, assim como existem alguns que nem merecem sequer a nossa referencia. O mercado das shells tem crescido substancialmente nos ultimos tempos devido ah diversidade de serviços oferecidos pelas mesmas. A grande maioria dos shell providers estao localizados nos Estados Unidos. Muitos fornecedores do escudo permitem que os usuários dentro e fora dos E. U. requisitem um escudo através do cartão de crédito, quando outros aceitarem somente o pagamento através da ordem do cheque ou de dinheiro. ' a taxa indo ' para um cliente básico do escudo que permita um Eggdrop ou dois é em torno de USS10 por o mês. Isto remanesceu de estática para os pares passados dos anos. Há quite.a.few os escudos que oferecem uns serviços mais baratos, e a maioria de clientes mais caros da oferta com mais ou características melhores. No general, um escudo básico esclarece funcionar um ou mais Eggdrops varia de USS5 a USS20. Muitos fornecedores do escudo carregam também para setup a taxa. Quando a caça para um ISP, a coisa principal você tem que ir perto é a reputação. O mesmo vai para clientes do escudo. As reivindicações como a sustentação uptime ' e ' excelente ' de '99% no website de um fornecedor do escudo têm o meaning muito pequeno em muitos casos. Um fornecedor que oferece um negócio seemingly grande em um cliente do escudo pode ser lá um mês, mas ido o seguinte. Os fornecedores do escudo têm uma taxa muito elevada do fechamento - muitas justo próximo alguns meses após abrir, quando outros pararem de permitir bots e/ou processos do IRC. Você é muito mais menos provável começar fornecedor queimado se você for com um respeitável e bem estabelecido com uma reputação para ser profissional sobre a maneira que funcionam o escudo e trata dos clientes. **time-out** algum coisa para prest atenção para fora para est escudo fornecedor que não public seu cheio (e válido) endereço e contat detalhe, fornecedor que reque você pag por muito mês serviço adiantado, e aquele que ofereç um incomun grande número processo ou disco espaço para um muito baixo preço - este coisa est possível indicação um shonky negócio. Se você não puder encontrar o endereço da rua do fornecedor e o número de telefone em seu website, permaneça afastado. Se você puder, dar-lhes um atendimento e certificar-se lá são uma resposta. É também uma idéia boa olhar acima sua informação do Domain Name para certificar-se de que não tenham contatos suspicious alistados (por exemplo Hotmail ou outros serviços livres do E-mail para seus contatos do E-mail). A maioria de escudos têm uma determinada quantidade de downtime cada mês devido aos problemas ( esperado e inesperado) e aos melhoramentos. Os downtimes resultam em seu bot que vai fora de linha. O comprimento do downtime pode variar de um reboot simples que dure somente alguns minutos, a diversos horas e mesmo dias. Os mais melhores fornecedores do escudo têm o downtime muito pequeno (mais menos de uma hora por o mês). Seu escudo médio terá provavelmente alguns downtimes totalizar diversas horas, quando os escudos os mais maus puderem ir acima e para baixo gostar de um balanço. O que você necessita procurar é um fornecedor do escudo que tenha muito o pouco e downtimes muito curtos. Por muito tempo, os estiramentos ' uptime ' inteiros são agradáveis, mas não completamente como importantes. Estes dias, do escudo dos fornecedores ataques comerciais da experiência DoS frequentemente (negação de serviço) , causados freqüentemente pelos povos que tentam fazer exame sobre de uma canaleta do IRC atacando o escudo do bot. Um ataque sério geralmente causará seu bot ' ao sibilo para fora de ' e deixará o IRC porque é retardado demasiado à estada conectada, e o acesso ao escudo será frequentemente inacessível ou retardou-se muito até que o ataque sobre, assim que os ataques de DoS realizam-se muito como downtimes. Um ataque não pode necessariamente ser causado por um ataque em seu bot, mas mais frequentemente do que não um ataque em alguém bot outro no mesmo escudo. Descasque fornecedores com conexões rápidas, e, frequentemente mais importante, os sistemas bons do guarda-fogo, serão geralmente mais menos vulneráveis aos ataques. A monitoração e a segurança são outras coisas você a olhar quando compra um escudo, como estas coisas pode contribuir significativamente à quantidade de downtime e de ataques de DoS. Os escudos deficientemente monitorados e aqueles com administradores inexperienced serão ' cortar vulnerável ', que poderia comprometer a segurança de seus bot e canaletas (se o escudo que seu bot é está cortado sobre, a seguir o atacante pode se adicionar a seu bot e controle da tomada de todas as canaletas o bot é opped sobre). Os mais melhores escudos sempre experimentaram a equipe de funcionários que mantem um olho próximo no escudo e em seus usuários para manter coisas funcionar lisamente, e tratam rapidamente de todos os usuários abusive. Sem este, a qualidade de um escudo pode deteriorar-se muito rapidamente, com ataques freqüentes e os downtimes devido aos usuários e aos admins abusive que não devem ao redor reparar nenhuns problemas. A sustentação e o responsiveness são importantes para muitos povos, ser anterior importantes para ' os newbies', o último também para usuários experientes. Infelizmente, a.lot do short da queda dos fornecedores do escudo nestas áreas. Muitos escudos são relativamente unresponsive aos usuários e caem short distante das expectativas tanto quanto o serviço de cliente. Alguns fornecedores do escudo, para o exemplo, têm uma canaleta do IRC para a sustentação, mas em muitos casos tais canaletas do IRC têm raramente qualquer um em torno de querer responder a uma pergunta sobre seu cliente ou ajudar-lhe com um problema. Alguns fornecedores, na outra mão, têm a sustentação proeminente, com a equipe de funcionários amigável e responsiva que quer responder prontamente a perguntas. Mantêm também seus usuários informados de downtimes e de mudanças de planeamento. A reputação e a palavra da boca são as mais melhores maneiras encontrar para fora sobre o responsiveness da equipe de funcionários de um fornecedor do escudo. Finalmente, os clientes do escudo variam nos tipos de características oferecidas. Abaixo estão as descrições Disk quota: this is the amount of space you have on the shell. The amount of space an Eggdrop takes up depends on the flavour of Unix the shell is running, the version of Eggdrop, scripts you use, channel log files, etc. Generally, it doesn't take up more than 3 MB, so a quota of around 10MB is more than enough for an Eggdrop or two. Keep in mind that the disk quota is often not the same as the amount of web space provided. Web page and e-mail: most shell providers offer a web page and e-mail account as a standard feature. Your disk quota usually determines the amount of space you can use for a web page, but on many shells there are different amounts specified for disk quota and web space. E-mail is a low priority on most Eggdrop shells, so many don't offer POP3 e-mail for use with a Windows e-mail client. Connection: this is the type of connection the shell machine has to the Internet. Some shells have multiple connections of one or more types. The most common connection types are T1 (1.54Mb/s analog), DS1 (1.54Mb/s digital), 10Mbit (10Mb/s), T3 (44.7Mb/s analog), DS3 (44.7Mb/s digital), and OC3 (155MB/s). This mainly affects the speed at which you can download files to the shell via FTP. Many shells don't actually have a direct, dedicated link to these connections - e.g. a shell may claim to be T3 speed, but the shell boxes may be sitting on a network provider's LAN, sharing the connection with other machines. For running bots, speed is generally not as important as other factors such as price, reliability, security, and support, as long as the provider's link isn't overloaded. A small provider with a less-than-T1 connection can sometimes be more stable than an large provider with a T3. Commercial shells on cable modem, DSL, and ISDN connections should generally be avoided, though. Pricing and ordering: as mentioned previously, the cost for a basic shell account for IRC bots ranges from about US$5 to US$20 per month, with some providers also charging a setup fee within pretty much the same price range. Almost all providers require you to pay for the account in advance, and activation of the account will rarely occur until payment is received. Many shell providers allow you to order via credit card, which is most convenient for people outside the US. Due to a high rate of credit card fraud, most shells are very careful about credit card verification, and may require voice contact, or a photocopy of your card and some form of identification, before activating the account. Although this may be annoying, a provider who doesn't perform multiple credit card checks may have users who obtained accounts via credit card fraud. Almost all providers accept advance payment via post in the form of a cheque or money order. In some cases, direct transfer of funds to the shell provider's bank account is also an option. Ordering is generally done via an online order form. Some shells don't have 'secure' forms for credit card ordering, so if you're ordering via credit card then you should make sure the online order form you're using is secure (most providers will let you phone or fax your credit card details instead of using the online order form). The amount of time it takes to activate in the account will depend on the provider - generally, with most providers, an account ordered by credit card will be activated within 24 hours, but others will take longer. An important warning about advance payments - because of the volatility of the shell market, it's not a good idea to pay a large amount of cash up front. Don't pay for six months or a year's service up front without being aware of the risk that the shell provider may perform a vanishing act after just a couple of months. It's generally best to pay on a monthly or quarterly basis, even if a yearly payment may look like a better deal. Vhosts: short for 'virtual hosts' or 'vanity hosts'. By default, your bot will appear on IRC with the hostname of the shell (e.g. username@shell1.niceshells.net). Vhosts let you use different hosts for your bot. These can look something like username@nice.people.use.niceshells.net, but can also use different domains like username@likes.to.eat.chocolate.com. The vhosts offered by the shell are a set list (so you can't just have anything you like), although some shells can provide you with a personal custom vhost for a fee. Policies: most shell providers have very similar policies and terms of service, generally prohibiting such things as spamming, hacking, warez (software piracy), and IRC channel takeovers. A typical policy statement will also outline the right of the shell provider to suspend or close your account without refund for breaching the rules. It's a good idea to read the policies / terms of service before ordering, but in general, these won't affect you unless you plan on being naughty. However, you should keep in mind that any files in your shell account may be inspected by the server administrators, so it's not a good idea to place any personal files there.
There are two programs you need in order to use your shell account - a telnet client and an FTP client. Telnet is used for performing commands on the shell, while FTP is used for transferring files between the shell and your computer. CuteFTP is a popular FTP client. One of the best telnet programs is CRT. Windows has a built-in telnet program, but it's quite crude. Many shells support a secure telnet protocol called SSH (Secure SHell protocol). This works in basically the same way as telnet, but everything is encrypted for better security. If your shell supports SSH, it's a good idea to use that instead of regular telnet. However, you need a client that supports SSH, such as SecureCRT. When your shell account is activated, you should receive information which includes the hostname of the shell, and hostname of the FTP server (although the FTP server often has the same hostname as the shell). The first thing you'll want to do is telnet to the shell. Load up your telnet or SSH client, and enter the address of the shell (e.g. shell1.niceshells.net). You will be prompted for your username/password. After that, an motd will usually be displayed, and then you'll be staring at something that looks (and works) very similarly to the MS-DOS prompt. First up, you need to familiarise yourself with a few shell commands. Listed below are some of the commands you'll need to know to perform basic operations on the shell. cd <directory> - Changes to the specified directory, similar to DOS's cd command. To switch to the directory above the current one, specify two periods as the directory, i.e. cd ... Typing cd ~ will return you to your home directory (the tilde is short for the path your home directory, e.g. /home2/user/cooldude). gunzip <file> - Extracts the contents of a gz file (which are similar to zip files), e.g. gunzip nice.tcl.gz. kill -9 <pid> - Kills the process with the specified pid number. You can get the pid number of a process by using the ps x command described below. This command is useful for killing your Eggdrop if you're unable to shut it down by other means. ls - This is very similar to the DOS dir command. It lists the contents of the current directory. For a more detailed listing, type ls -al. mv <oldfile> <newfile> - Renames a file or directory. passwd - Allows you to change your shell account password (it will prompt for your old password, then ask you to enter a new one). pico -w <file> - Opens the specified file in the pico text editor. The -w option prevents Tcl scripts from being stuffed up due to line wrapping. ps x - Shows all current 'processes' you have running on the shell. This includes things such as Eggdrop, IRC bouncers, and open telnet and FTP sessions. This command is useful for getting the pid (process ID) number of a process. pwd - Shows the current working directory path, e.g. /home2/user/cooldude/mybot. quota - Shows how much disk space is allocated to you, and how much you're using. rm <file> - Deletes a file. To delete a directory and all its contents (including subdirectories), use rm -r <directory>. tar -xvf <file> - Used to extract a tar file. To extract a tar.gz file, use tar -zxvf <file> (if that doesn't work, use gunzip <file> then tar -xvf <file>). The above commands are basically all you need to know in order to setup and run an Eggdrop. You may wish to learn some more commands as you become more experienced using the shell. Some other useful and interesting commands are shown below. netstat - Displays all connections going to and from the server. top - Displays details about system resource usage. uptime - Displays the current uptime and server load. vhosts - This will display a list of vhosts available for you to use (note that not all shells have this command). One of the most common uses for shell accounts is to download files from a server to the shell via FTP. To do this, you connect to your shell account via telnet or SSH, and use the shell's FTP client. This works similarly to downloading files to your computer, but instead the file downloads to your space on the shell, and you can later download the file from the shell to your computer if needed. A fast shell is capable of downloading files at a much faster rate than a typical dial-up connection. To download a file, type ftp at the shell prompt. You will then be greeted with the ftp prompt. Below is a list of the basic commands you need to use at the ftp prompt to download a file to your shell (shown in the order one would typically use them). open <server> - Connects to the specified FTP server. If the connection is successful, you'll be prompted to enter a login name and password (for most servers, type anonymous as login, and user@domain.com as your password). ls - Lists the contents of the current directory on the FTP server. cd <directory> - Changes to the specified directory on the FTP server. To switch to the directory above the current one, specify two periods as the directory, i.e. cd ... bin - Switches to binary mode. You need to use this command before you download any files. hash - Enables the display of hash marks while downloading a file. Useful for monitoring download progress. prompt - Disables prompting between gets if getting multiple files using mget (below). get <file> - Downloads the specified file to your shell. mget <file1 file2 fileN> - Downloads all specified files, one after the other. This command supports wildcards, e.g. mget egg* will download all files in the current directory on the FTP server with names starting with 'egg'. close - Disconnects from the FTP server. quit - Quits you from the ftp program.
|
Find me in #eggheads on EFnet or #eggdrop on Undernet
|
|
Copyright © 1999-2000 by slennox's eggdrop page. All rights reserved. No part of this site may be reproduced without the expressed consent of the author. All trademarks are the property of their respective owners.