home *** CD-ROM | disk | FTP | other *** search
/ Hacks & Cracks / Hacks_and_Cracks.iso / vol1 / gtmhh2-2.zip / GTMHH2-2.TXT
Text File  |  1997-05-27  |  13KB  |  257 lines

  1. _____________________________________________________________
  2.  
  3. GUIDE TO (mostly) HARMLESS HACKING
  4.  
  5. Vol. 2 Number 2
  6.  
  7. Linux!
  8. ______________________________________________________________
  9.  
  10.         Unix has become the primo operating system of the Internet. In fact,
  11. Unix is the most widely used operating system in the world among computers
  12. with more power than PCs. 
  13. True, Windows NT is coming up fast as a common Internet operating system,
  14. and is sooo wonderfully buggy that it looks like it could  become the number
  15. one favorite to crack into. But today Unix in all its wonderful flavors
  16. still is the operating system to know  in order to be a truly elite hacker.
  17.  
  18.         So far we have assumed that you have been hacking using a shell
  19. account that you get through your Internet Service Provider (ISP). A shell
  20. account allows you to give Unix commands on one of your ISP's computers. But
  21. you don't need to depend on your ISP for a machine that lets you play with
  22. Unix. You can run Unix on your own computer and with a SLIP or PPP
  23. connection be directly connected to the Internet. 
  24.  
  25. ***********************
  26. Newbie note: Serial Line Internet Protocol (SLIP) and Point-to-Point
  27. Protocol (PPP) connections give you a temporary Internet Protocol (IP)
  28. address that allows you to be hooked directly to the Internet. You have to
  29. use either SLIP or PPP connections to get to use a Web browser that gives
  30. you pictures instead on text only. So if you can see pictures on the Web,
  31. you already have one of these available to you.
  32.  
  33.         The advantage of using one of these direct connections for your
  34. hacking activities is that you will not leave behind a shell log file for
  35. your ISP's sysadmin to pore over. Even if you are not breaking the law, a
  36. shell log file that shows you doing lots of hackerish stuph can be enough
  37. for some sysadmins to summarily close your account.
  38. ********************
  39.  
  40.         What is the best kind of computer to run Unix on? Unless you are a
  41. wealthy hacker who thinks nothing of buying a Sun SPARC workstation, you'll
  42. probably do best with some sort of PC. There are almost countless variants
  43. of Unix that run on PCs. Most of them are free for download, or
  44. inexpensively available on CD-ROMs.
  45.  
  46.         The three primary variations of Unix that run on PCs are Sun's
  47. Solaris, FreeBSD and Linux. Solaris costs around $700. Enough said. FreeBSD
  48. is really, really good but doesn't offer a lot of support. Linux, however,
  49. has the advantage of being available in many variants (so you can have fun
  50. mixing and matching programs from different Linux offerings). Most
  51. importantly, Linux is supported by many news groups, mail lists and Web
  52. sites. If you have hacker friends in your area, most of them probably use
  53. Linux and can help you out.
  54.  
  55. *********************
  56. Historical note: Linux was created in 1991 by a group led by Linus Torvalds
  57. of the University of Helsinki.  Linux is copyrighted under the GNU General
  58. Public License. Under this agreement, Linux may be redistributed to anyone
  59. along with the source code. Anyone can sell any variant of Linux and modify
  60. it and repackage it. But even if someone modifies the source code he or she
  61. may not claim copyright for anything created from Linux. Anyone who sells a
  62. modified version of Linux must provide source code to the buyers and allow
  63. them to reuse it in their commercial products without charging licensing
  64. fees. This arrangement is known as a "copyleft."
  65.  
  66.         Under this arrangement the original creators of Linux receive no
  67. licensing or shareware fees. Linus Torvalds and the many others who have
  68. contributed to Linux have done so from the joy of programming and a sense of
  69. community with all of us who will hopefully use Linux in the spirit of good
  70. guy hacking. Viva la Linux! Viva Torvalds!
  71. **********************
  72.  
  73.         Linux consists of the operating system itself (called the "kernel")
  74. plus a set of  associated programs. 
  75.  
  76.         The kernel, like all types of Unix, is a multitasking, multi-user
  77. operating system. Although it uses a different file structure, and hence is
  78. not directly compatible with DOS and Windows, it is so flexible that many
  79. DOS and Windows programs can be run while in Linux. So a power user will
  80. probably want to boot up in Linux and then be able to run DOS and Windows
  81. programs from Linux.
  82.  
  83.         Associated programs that come with most Linux distributions may include:
  84. * a shell program (Bourne Again Shell -- BASH -- is most common);
  85. * compilers for programming languages such as Fortran-77 (my favorite!), C,
  86. C++, Pascal, LISP, Modula-2, Ada, Basic (the best language for a beginner),
  87. and Smalltalk.;
  88. * X (sometimes called X-windows), a graphical user interface
  89. * utility programs such as the email reader Pine (my favorite) and Elm
  90.  
  91. Top ten reasons to install Linux on your PC:
  92. 1.    When Linux is outlawed, only outlaws will own Linux.
  93. 2.    When installing Linux, it is so much fun to run fdisk without backing up
  94. first.
  95. 3.    The flames you get from asking questions on Linux newsgroups are of a
  96. higher quality than the flames you get for posting to alt.sex.bestiality.
  97. 4.    No matter what flavor of Linux you install, you'll find out tomorrow
  98. there was a far more 3l1te version you should have gotten instead.
  99. 5.    People who use Free BSD or Solaris will not make fun of you. They will
  100. offer their sympathy instead.
  101. 6.    At the next Def Con you'll be able to say stuph like "so then I su-ed to
  102. his account and grepped all his files for 'kissyface'."  Oops, grepping
  103. other people's files is a no-no, forget I ever suggested it.
  104. 7.    Port surf in privacy.
  105. 8.    One word: scripts.
  106. 9.    Installing Linux on your office PC is like being a postal worker and
  107. bringing an Uzi to work. 
  108. 10.    But - -  if you install Linux on your office computer, you boss won't
  109. have a clue what that means.
  110.  
  111.         What types of Linux work best? It depends on what you really want.
  112. Redhat Linux is famed for being the easiest to install. The Walnut Creek
  113. Linux 3.0 CD-ROM set is also really easy to install -- for Linux, that is!
  114. My approach has been to get lots of Linux versions and mix and match the
  115. best from each distribution.
  116.  
  117.         I like the Walnut Creek version best because with my brand X
  118. hardware, its autodetection feature was a life-saver.
  119.  
  120.         INSTALLING LINUX is not for the faint of heart! Several tips for
  121. surviving installation are:
  122.  
  123. 1) Although you in theory can run Linux on a 286 with 4 MB RAM and two
  124. floppy drives, it is *much* easier with a 486 or above with 8 MB RAM, a
  125. CD-ROM, and at least 200 MB free hard disk space.
  126.  
  127. 2) Know as much as possible about what type of mother board, modem, hard
  128. disk, CD-ROM, and video card you have. If you have any documentation for
  129. these, have them on hand to reference during installation.
  130.  
  131. 3) It works better to use hardware that is name-brand and somewhat out of
  132. date on your computer. Because Linux is freeware, it doesn't offer device
  133. drivers for all the latest hardware. And if your hardware is like mine --
  134. lots of Brand X and El Cheapo stuph, you can take  a long time experimenting
  135. with what drivers will work.
  136.  
  137. 4) Before beginning installation, back up your hard disk(s)! In theory you
  138. can install Linux without harming your DOS/Windows files. But we are all
  139. human, especially if following the advice of 3). 
  140.  
  141. 5) Get more than one Linux distribution. The first time I successfully
  142. installed Linux, I finally hit on something that worked by using the boot
  143. disk from one distribution with the CD-ROM for another. In any case, each
  144. Linux distribution had different utility programs, operating system
  145. emulators, compilers and more. Add them all to your system and you will be
  146. set up to become beyond elite.
  147.  
  148. 6) Buy a book or two or three on Linux. I didn't like any of them! But they
  149. are better than nothing. Most books on Linux come with one or two CD-ROMs
  150. that can be used to install Linux. But I found that what was in the books
  151. did not exactly coincide with what was on the CD-ROMs.
  152.  
  153. 7) I recommend drinking while installing. It may not make debugging go any
  154. faster, but at least you won't care how hard it is.
  155.  
  156.         Now I can almost guarantee that even following all these 6 pieces of
  157. advice, you will still have problems installing Linux. Oh, do I have 7
  158. advisories up there? Forget number 7. But be of good cheer, since everyone
  159. else also suffers mightily when installing and using Linux, the Internet has
  160. an incredible wealth of resources for the Linux-challenged.
  161.  
  162.         If you are allergic to getting flamed, you can start out with Linux
  163. support Web sites.
  164.  
  165.         The best I have found is http://sunsite.unc.edu:/pub/Linux/. It
  166. includes  the Linux Frequently Asked  Questions list (FAQ), available from
  167. sunsite.unc.edu:/pub/Linux/docs/FAQ.
  168.  
  169.         In the directory /pub/Linux/docs on sunsite.unc.edu you'll find a
  170. number of other documents about Linux, including the Linux INFO-SHEET and
  171. META-FAQ,
  172.  
  173.         The Linux HOWTO archive is on sunsite.unc.edu:/pub/Linux/docs/HOWTO.
  174. The  directory /pub/Linux/docs/LDP on sunsite.unc.edu contains the current
  175. set of LDP manuals.
  176.  
  177.         You can get ``Linux  Installation and Getting Started'' from
  178. sunsite.unc.edu in  /pub/Linux/docs/LDP/install-guide.  The README file
  179. there describes  how you can order a printed copy of the book of the same
  180. name (about 180 pages).
  181.  
  182.         Now if you don't mind getting flamed, you may want to post questions
  183. to the amazing number of Usenet news groups that cover Linux. These include:
  184.  
  185. comp.os.linux.advocacy                       Benefits of Linux compared
  186. comp.os.linux.development.system                Linux kernels, device drivers
  187. comp.os.linux.x                            Linux X Window System servers
  188. comp.os.linux.development.apps                   Writing Linux applications
  189. comp.os.linux.hardware                       Hardware compatibility
  190. comp.os.linux.setup                          Linux installation
  191. comp.os.linux.networking                   Networking and communications
  192. comp.os.linux.answers                       FAQs, How-To's, READMEs, etc.
  193. linux.redhat.misc
  194. alt.os.linux                            Use comp.os.linux.* instead
  195. alt.uu.comp.os.linux.questions              Usenet University helps you
  196. comp.os.linux.announce                       Announcements important to Linux
  197. comp.os.linux.misc                           Linux-specific topics
  198.  
  199.         Tobin Fricke has also pointed out that "free copies of Linux CD-ROMs
  200. are available the Linux Support & CD Givaway web site at
  201. http://emile.math.ucsb.edu:8000/giveaway.html. This is a project where
  202. people donate Linux CD's that they don't need any more. The project was
  203. seeded by Linux Systems Labs, who donated 800 Linux CDs initially!  Please
  204. remember to donate your Linux CD's when you are done with them.  If you live
  205. near a computer swap meet, Fry's, Microcenter, or other such place, look for
  206. Linux CD's there.  They are usually under $20, which is an excellent
  207. investment.  I personally like the Linux Developer's Resource by Infomagic,
  208. which is now up to a seven CD set, I believe, which includes all major Linux
  209. distributions (Slackware, Redhat, Debian, Linux for DEC Alpha to name a few)
  210. plus mirrors of tsx11.mit.edu and sunsite.unc.edu/pub/linux plus much more.
  211. You should also visit the WONDERFUL linux page at
  212. http://sunsite.unc.edu/linux, which has tons of information, as well as the
  213. http://www.linux.org/.  You might also want to check out
  214. http://www.redhat.com/ and http://www.caldera.com/ for more information on
  215. commercial versions of linux (which are still freely available under GNU)."
  216.  
  217.         How about Linux security? Yes, Linux, like every operating system,
  218. is imperfect. Eminently hackable, if you really want to know. So if you want
  219. to find out how to secure your Linux system, or if you should come across
  220. one of the many ISPs that use Linux and want to go exploring (oops, forget I
  221. wrote that), here's where you can go for info:
  222.  
  223. ftp://info.cert.org/pub/cert_advisories/CA-94:01.network.monitoring.attacks
  224. ftp://info.cert.org/pub/tech_tips/root_compromise
  225. http://bach.cis.temple.edu/linux/linux-security/
  226.  
  227.         Last but not least, if you want to ask Linux questions on the Happy
  228. Hacker list, you're welcome. We may be the blind leading the blind, but what
  229. the heck!
  230.  
  231. _________________________________________________________
  232. Want to see back issues of Guide to (mostly) Harmless Hacking? See
  233. http://www.feist.com/~tqdb/evis-unv.html. Want to subscribe to this list?
  234. Email majordomo@edm.net with the message "subscribe happyhacker." Want to
  235. share some kewl stuph with the Happy Hacker list? Send your messages to
  236. hh@edm.net.  To send me confidential email (please, no discussions of
  237. illegal activities) use cmeinel@techbroker.com. Please direct flames to
  238. dev/null@techbroker.com. Happy hacking! 
  239.  
  240. Copyright 1996 Carolyn P. Meinel. You may forward the GUIDE TO (mostly)
  241. HARMLESS HACKING as long as you leave this notice at the end..
  242. ________________________________________________________
  243.  
  244.  
  245. --------------------------------------------------------------------
  246. This message is from the HappyHacker mailing list.  To unsubscribe,
  247. send mail to majordomo@edm.net saying "unsubscribe happyhacker". The
  248. HappyHacker page is at http://www.feist.com/~tqdb/evis-unv.html. This
  249. mailing list is provided by The EDM Network (http://www.edm.net/) as
  250. a public service and is not responsible for its content.
  251. --------------------------------------------------------------------
  252.  
  253. Carolyn Meinel
  254. M/B Research -- The Technology Brokers
  255.  
  256.  
  257.