Web hosting india - For example, you would search for sargeif you re

March 3rd, 2008

For example, you would search for sargeif you re using the version ofKnoppix that came with this book. Unfortunately, a lot of what you findis going to be somewhat cryptic. Pick a repository or three. 5.Once you have found something you re interested in, check to seewhether a red X is in its check box. If so, that repository isn t incredibly stable, and you may not want to use it. 6.If there is no red X, or you re willing to risk an unstable repository justin case it s up and working, click the Download As Text link to the rightof the listing. You re brought to a page that looks like the following (the indented itemsare actually part of the previous line; there are only three lines here): # Helix Software for Debiandeb http://helix.alioth.debian.org/deb sid main non-freedeb http://helix.alioth.debian.org/deb sarge main non-free7.Find the line in this listing that has the name of your Debian versionin it. For example, the last line has sargein it. 8.Open the /etc/apt/sources.list in your favorite text editor. 9.At the end of the file, add the line you found. For example: deb http://helix.alioth.debian.org/deb sarge main non-freeThere are other repositories listed in here that you can make availableby removing the # at the beginning of their line. Only do this with linesformatted like the preceding code line. Everything else is a Comment, which is used to just leave notes so you can understand what you relooking at. 10.Save and exit the file. Go to the section Keeping Knoppix Up to Date, earlier in this chapter forhow to load up the new list of software and then go to the section Installingnew Software on an Installed Knoppix System for how to add software fromyour new repositories. Aren t Sure a Machine Actually Works? If you re having hardware trouble, you can try booting a machine from Knoppixto get a hint of where the problem is. If the machine can boot with Knoppix, 390Part V:The Part of Tens

3.Click program names to see descriptions (Free web hosting services) on the

March 2nd, 2008

3.Click program names to see descriptions on the right. Once you haveselected a program you want to install, click the dot to its right toreplace it with a checkmark. 4.Continue selecting programs until you ve marked all that you want toinstall. 5.Click Install once you re ready to add everything you have marked. Just as with updating, the more you choose to add, the longer it takes to download and add the software. You may be asked configurationquestions along the way. KPackage walks you through the rest of theprocess. Adding More Software RepositoriesDid you install Knoppix, but you can t find all the programs you want to add? Because Knoppix is a variant of the Debian distribution (www.debian.org), you can usually add anything to Knoppix that you can add to Debian. So, thetrick is to find the proper Debian software repositories and add them to yoursystem so that KPackage knows where to find them. The skills described in this section are useful for those using Linspire andXandros as well, because both of those distributions are based on Debian, too. To do so: 1.Click the terminal icon on your panel to open a terminal window. 2.Type cat /etc/debian_versionto find out which version of Debianyour version of Knoppix relates to. The Knoppix included on the DVD-ROM that comes with this book isKnoppix 3.6, which is related to Debian 3.1. Going to Debian s Web site, you see that this release is called sarge (www.debian.org/releases/ sarge) it can be important in Debian to know the name; sometimesit s used more often than the number. 3.Click the View The Full List Of Sites link and wait for the large page to load. If there s a specific program you want, click the Search For A Packagelink instead. 4.Within this page, use your browser s search feature to search for theDebian version name. 389Chapter 21: Ten CoolUses for Knoppix29_

Installing New Software in LiveCD KnoppixThere are two

March 1st, 2008

Installing New Software in LiveCD KnoppixThere are two ways to install new software in Knoppix, depending on whetheryou re using Knoppix as a LiveCD (you didn t install it), or whether you actu- ally installed it. If you installed Knoppix, see the next section, Installing NewSoftware on an Installed Knoppix System. To add new software when you re using Knoppix as a LiveCD remember thatit will be lost when you reboot, unless you use the techniques detailed in thesection Functioning As a Portable Desktop, earlier in this chapter makesure that you re connected to the Internet and then: 1.From the main menu, choose KNOPPIX.System.Install Software(while running from CD). The Disclaimer dialog box appears. 2.Read the dialog box s contents and click OK. The Choose Software dialog box appears. Here, you find a relatively limited set of options. 3.Select the program you want to add and click OK. The installation details dialog box appears. 4.Read the dialog box s contents and click OK. The software is downloaded and added. When finished, the Successdialog box appears. 5.Click OK to remove the dialog box. Installing New Software on an InstalledKnoppix SystemIf you installed Knoppix, you can add software to your system by making surethat you re connected to the Internet and then doing the following: 1.From the main menu, choose System.KPackage (Package Manager). The KPackage package management program opens. 2.Click the New tab to see the list of software that you don t haveinstalled. 388Part V:The Part of Tens

are taken care of. After you re installed (Photo web hosting) and

February 29th, 2008

are taken care of. After you re installed and logged into Knoppix using one ofyour accounts, connect to the Internet. Then: 1.Choose System.KPackage (Package Manager). The KPackage package management program opens. 2.In KPackage, choose Special.Apt: Debian.Update. A separate KPackage window appears. 3.When asked for your root password, type it and press Enter. Within the secondary window, you can watch the update process. Onceyou see the text RESULT=#(where # stands for any number), the updateis complete. You ll also see the word Donea bit above it. 4.Click Cancel to close the second window. It takes a minute or so for KPackage to process the new package lists itjust downloaded. 5.In KPackage, choose Special.Apt: Debian.Upgrade. The Update selection just grabbed the latest list of available packages. Choosing Upgrade now grabs all the updated software and installs it. Asecondary window appears, and you can watch what s happening inthere. First, KPackage figures out what software it needs to update. 6.When asked whether you want to continue, type Yand press Enter. Now, KPackage actually grabs the updates to install them. This processcan take a while (an hour or longer) the first time you do it, dependingon how long your version of Knoppix has been available. You can tellhow much longer it has to go by watching the percentage marker in thebottom left of the window. Once the download is complete, KPackagebegins configuring the packages for installation. 7.If you re asked questions about how to configure packages, answerthem as best you can and press Enter after your answer. Unfortunately, this process can feel a bit cryptic. You can always go back and change things if you have to, later. Often a default is offered, so try just pressing Enter if you re not sure what else to do. After you veanswered all the questions, the updating begins. The longer your down- load took, the longer your update will take, so again be prepared to wait. You also may be asked more configuration questions along the way, somake sure to at least glance at the screen from time to time. The secondary window closes on its own once the update is complete. You can now close KPackage. 387Chapter 21: Ten CoolUses for Knoppix29_

11.Type the password again and press Enter. The (Web server address)

February 28th, 2008

11.Type the password again and press Enter. The Creating Knoppix Configuration Step (5/7) screen appears. 12.Type your root (Administrator s) password, press Enter, and thenrepeat as you did before with the login account s password. After the second time, the Creating Knoppix Configuration Step (6/7) screen appears. 13.Type the name to assign to this computer and press Enter. The Creating Knoppix Configuration Step (7/7) screen appears. 14.Accept the settings in this screen (unless you re positive that you wantto change them) and press Enter. The Knoppix Main-Menu screen returns. Keep in mind that following thisstep sets you up to only have Knoppix as a boot option. 15.Use your up and down arrows to select Start Installation and press Enter. The Starting Knoppix Installation screen appears. Review the informa- tion shown. 16.If something is wrong, use the Tab key to select No and press Enterand then return to Step 5 to make changes. Otherwise, use the Tabkey to select Yes and press Enter. The installation begins. When it finishes, the Creating Floppy Disk screenappears. 17.If you want to create a boot floppy disk (which can be handy if some- thing happens to your boot menu), use Tab to select Yes. Otherwise, use Tab to select No. Press Enter. I assume that you re not creating a boot disk with these instructions. Ifyou choose to do so, Knoppix will walk you through the process. Whenyou either finish making the boot disk or skip it, the InstallationSuccessful screen appears. 18.Press Enter to close the installation program. 19.Type rebootto reboot the machine. You re told when it s safe to eject the DVD-ROM or CD-ROM. From there, you ll be booting into Knoppix, or at least into its boot menu! Keeping Knoppix Up to DateIf you decided to install Knoppix, as discussed in the previous section, thenyou need to keep it up to date so that all security vulnerabilities and bug fixes386Part V:The Part of Tens

Once you re ready to proceed, place the (Web hosting colocation) DVD

February 28th, 2008

Once you re ready to proceed, place the DVD that came with this book (or aKnoppix CD-ROM) into your DVD-ROM or CD-ROM drive and reboot the ma- chine. If you re using the DVD that came with this book, press Enter at the bootprompt. If you don t see a boot prompt, see Appendix B. After you re fully in your Knoppix desktop, complete the following steps. If you re using a newer version of Knoppix than the one that comes with thisbook, the instructions for the latest version are available online athttp://www.freenet.org.nz/misc/knoppix-install.html. 1.Press the key combination Ctrl-Alt-F1 to exit the GUI and enter command-line mode. You can use F1 through F6 to do this from any version of Linux. Cool, huh? To get back, simply press Ctrl-Alt-F7 or Ctrl-Alt-F8. Whether it s 7 or 8varies from version to version, so try 7 and if that doesn t work, use 8.2.If you see a bunch of colorful text but no prompt (which will look likeroot@tty1[/]#), press Enter to pull up the prompt. 3.Type /KNOPPIX/usr/sbin/knx2hdThe screen turns blue and the Initialisation of Knoppix-Installation screenappears. (Initialisation is the UK spelling of the American and CanadianInitialization.) 4.Press Enter. The Knoppix Main-Menu screen appears. 5.Use your up and down arrows to select Configure Installation andpress Enter. The Choose System Type screen appears. 6.Use your up and down arrows to select Beginner and press Enter. The Creating Knoppix Configuration Step (1/7) screen appears. 7.Use your up and down arrows to select the partition you want toinstall Knoppix in, press the space bar to mark that partition, andthen press Enter. The Creating Knoppix Configuration Step (2/7) screen appears. 8.Type your full name in the format Firstname Lastname and press Enter. The Creating Knoppix Configuration Step (3/7) screen appears. 9.If you don t want to use the suggested login name, change it here andthen press Enter. The Creating Knoppix Configuration Step (4/7) screen appears. 10.Type this login account s password and press Enter. The text box goes blank, but the screen doesn t otherwise change. 385Chapter 21: Ten CoolUses for Knoppix29_

For example, home=/dev/sda1. Whenever you (Web hosting isp) put the Knoppix

February 27th, 2008

For example, home=/dev/sda1. Whenever you put the Knoppix CD intothis machine and boot it, you type that information at the boot promptin the format knoppix home=/dev/sda1. This command tells Knoppixto go look and find your home directory. 9.While you re at it, from the main menu, choose KNOPPIX.Configure. Save KNOPPIX Configuration. Now you can configure things to your preferences and have it be persis- tent. A dialog box appears. 10.Stick with the defaults for the types of configuration files and just click OK. Another query dialog box opens. 11.Choose your new home location for saving and click OK. Make note of the information in the final dialog box. Now you would type, at the boot prompt, knoppix home=/dev/sda1 myconfig=/dev/sda1. Installing KnoppixWhile Knoppix is primarily a LiveCD, you can actually install this distribution. If you decide to do so, you may want to first see Chapter 2 for how to make anychanges you might need to make on your machine before beginning the instal- lation. For example, you may want to have already created the partition youwant to put Knoppix in. Fortunately, you can use Knoppix to make the parti- tion! (Again, see Chapter 2.) You can also, instead of starting with Step 5 inthe upcoming steps, choose the Partition menu option to do your partition- ing during the installation and then, when the partitioning is done, return toStep 5. Another caveat is that Knoppix doesn t have a friendly way to set up your bootmenu for dual booting. One (long) way around this is to install Fedora or oneof the other versions of Linux included on the DVD-ROM first and then look inthe file /boot/grub/menu.lst. You find an entry that looks something like thefollowing: title Windows XProot (hd0,0) makeactivechainloader +1Copy this section down. After you ve installed Knoppix, you can then go editits /boot/grub/menu.lst file to add the four lines you found in the other distri- bution to it and reboot. This actions adds a boot menu entry for Windows. (It s important that you don t just copy the hd0,0 part from here, unless yourWindows installation is really on the first hard drive, in its first partition.) 384Part V:The Part of Tens

25.Save and exit the file. 26.Type (Anonymous web server) passwdand press

February 26th, 2008

25.Save and exit the file. 26.Type passwdand press Enter. You re prompted for a new root password. Functioning as a Portable DesktopYou can carry your Knoppix CD and a USB device that contains your homedirectory s contents, to always have your preferred desktop on hand no matterwhere you go. Or, if you re not allowed to replace your current OS (or yourhost s OS) but don t want to have to go through all the stuff in the first sectionof this chapter: 1.From the main menu, choose KNOPPIX.Configure.Create A PersistentKNOPPIX Home Directory. A query dialog box appears. 2.If you want to make a USB device as the home directory, insert it now. Don t proceed until you see the new hard disk partition icon appear onthe desktop. 3.Click Yes in the query dialog box. Another query dialog box appears, asking whether you want to put yourdirectory on one of the listed partitions. 4.Select the partition or USB device you want to save your information on. Another query box appears. 5.If you want to use the whole device (maybe a whole USB keychain), choose Yes. If you want to just use up a bit of someone s existingWindows partition, click No. Don t overwrite your host s or spouse s Windows partition! That wouldtend to annoy them! Another query dialog box appears. It tells you howmuch space on that device is currently used and how much is available. 6.Enter how many MB of space you want to use to store your Knoppixfiles and click OK. Knoppix does what it needs to do and then offers you another dialog box. 7.If you want to encrypt (secure) your data, select Yes. Otherwise, select No. If you choose encryption, you d better not forget your password! I mgoing to assume you chose No. 8.Make a note of where you are told your home directory is and whatyou ll type in the boot prompt. 383Chapter 21: Ten CoolUses for Knoppix29_

Web host - 9.Type cd /mnt/partitionto change to the root partition s

February 25th, 2008

9.Type cd /mnt/partitionto change to the root partition s base directory. 10.Type cd etcto enter the /etcdirectory, relative to where it sattached to your current setup. 11.Type cp passwd passwd-origto make a backup copy of your mainuser and password file. Don t skip this step. It lets you can revert to the original file if you messsomething up! 12.Type joe passwdto open the /etc/passwdfile in the joe text editor. You can press Ctrl-K and then the H key to display the Help menu at thetop of the screen at any time. To get rid of that menu, press the same keycombination again. 13.Look for the line similar to root:x:0:0:root:/root:/bin/bash14.Delete the x (or anything else) from between the first two colons sothat the line looks more like the following: root::0:0:root:/root:/bin/bash15.Press Ctrl-K and then the X key to save the file and exit the program. 16.When asked for the name of the file to save, just press Enter to acceptthe default. 17.Type rebootto reboot the machine. 18.When the CD-ROM ejects, remove it from the drive and press Enter tocontinue rebooting. 19.After you reboot into your system, log into a regular user account. 20.Open a terminal window. If you re not sure how to do so, see Chapter 14.21.Type su -and press Enter to become the root user. When you deleted that in Step 14, you actually erased any passwordfrom the root user. If you re prompted for a password, just press Enterwithout typing anything. 22.Open the /etc/passwd file in your preferred text editor. 23.Find the line you edited before. It should look something like: root::0:0:root:/root:/bin/bash24.Add the x back into place between the two colons. Remember, this is a lowercase x. It should look like the following now: root:x:0:0:root:/root:/bin/bash382Part V:The Part of Tens

10.Right-click the USB device on your desktop and (Web hosting top)

February 25th, 2008

10.Right-click the USB device on your desktop and select Unmount. This action makes sure that all your data was saved properly. Recovering a Root Password with KnoppixIf you re using SuSE, Linspire, or another distribution that requires you to entera root password even to enter single user mode, you need external tools tohelp you recover when you forget what your root password is. This problemis another major reason that many system administrators keep Knoppix onhand. To recover your root password, do the following: 1.Place the Knoppix CD or the DVD-ROM that came with this book intoyour CD-ROM or DVD-ROM drive. 2.Reboot the computer. If you re using the DVD-ROM that came with this book, press Enter whenyou reach the boot menu. If, for some reason, the DVD-ROM doesn tboot, see Appendix B. 3.After the computer successfully boots into Knoppix, determine whichpartition refers to your main Linux installation. You re looking for your root (/) partition. Chapter 11 details what youfind there if that helps. Basically, open each of the partition icons onyour desktop and figure out which one looks like the right section ofyour filesystem. 4.After you find the proper partition, if you currently don t have a filebrowser window open anywhere within that partition, click the parti- tion icon to open the browser now. For example, if the root partition is /dev/hda3, click the Hard DiskPartition [hda3]icon. 5.Click the Terminal Program icon on your panel. A terminal window opens. 6.Type su -to access the root user s account. You re not prompted for a password. 7.Make sure to close the file browsing window that s accessing yourroot partition. 8.Type mount -r remount rw /dev/partitionto remove the partitionand re-add it as a full read-write filesystem. For example, if your root partition was on /dev/hda3, you type cd/ mnt/hda3.381Chapter 21: Ten CoolUses for Knoppix29_