Advertisement
Guest User

Untitled

a guest
Sep 18th, 2013
338
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.11 KB | None | 0 0
  1. A /g/uide to Linux
  2. Version 0.8.5
  3. 1. What is Linux?
  4. 2. Is Linux Right For You?
  5. 3. Which Distribution Should I Choose?
  6. 4. Getting Started
  7. 5. The Package Manager
  8. 6. The Terminal
  9. 7. Giving Back
  10. 8. Troubleshooting/miscellaneous
  11. 1. What is Linux?
  12. The term 'Linux' is used in several different ways. Linux is sometimes used as the name of a
  13. kernel initially written and still maintained by Linus Torvalds. It's also used as a general term for
  14. operating systems that use the Linux kernel and the GNU userspace, although there are operating
  15. systems that use GNU without Linux and Linux without GNU. For the purposes of the guide, the
  16. second meaning will be used.
  17. Enough about the name, what is Linux? Linux is a Unix-like operating system that consists
  18. primarily or completely of Free and Open Source Software(also known as FOSS). Unix-like means
  19. that it follows the same design principles as the UNIX operating system that was developed by Bell
  20. Labs. To grossly oversimplify it, the main idea is that everything is a file. Other operating systems
  21. following this design include FreeBSD, Solaris, Mac OS X, HP-UX, and AIX.
  22. Free and Open Source Software means two things: It is free to be distributed, and the source
  23. code is available for any developers to modify and redistribute. This allows for easier cooperation
  24. between different projects, prevents vendor lock-in, and allows developers with differing viewpoints to
  25. fork without losing compatibility with each other.
  26. Finally, there is a very important point to note for Windows users. Linux is NOT Windows.
  27. Many things function in a different way because Linux is not designed to be a Windows substitute.
  28. Projects of that nature exist in the form of FreeDOS and ReactOS
  29. 2. Is Linux Right for You?
  30. While Linux is a great solution for many people, some can't make the transition at this time and that is
  31. fine. Jumping into Linux when it's not the right fit for you can leave you hostile towards Linux, so
  32. only make the switch if you are willing. If you fall somewhere in between, Wubi or a virtual machine
  33. might be an option(for more details, see the Installation/miscellaneous section).
  34. Reasons why you may have a problem transitioning to Linux:
  35. • You play high-end PC games on a regular basis
  36. • You need to use specific program(s) for work, school, or personal usage that do not have a
  37. viable Linux alternative
  38. • You don't have the time to learn or troubleshoot a new system
  39. • Your primary computer is shared or used for critical work
  40. • Your hardware is currently unsupported or requires too much configuration for your time or
  41. level of experience
  42. Reasons to choose Linux:
  43. • Most Linux distributions have native package managers, which make installation, removal, and
  44. upgrading of software easy and secure
  45. • A wide collection of desktop environments and window managers are available to choose from
  46. • Linux is easy to customize to fit your individual needs
  47. • You want an operating system that consists of free software
  48. • You like to learn new things
  49. • You have an interest in programming and like the availability of source code in the tools you
  50. use daily
  51. 3. Which Distribution Should I Choose?
  52. The open nature of Linux has led to a myriad of different variations to choose from. However, the
  53. variety of choices can be quite daunting for new users. This guide will provide a brief overview of the
  54. most popular distributions(also called 'distros' by many linux users). You can find more information at
  55. their respective websites, www.distrowatch.org , or use an interactive chooser at
  56. http://www.zegeniestudios.net/ldc/ or http://polishlinux.org/choose/quiz/.
  57. Notes on terms:
  58. -Rolling release: software in the repositories is upgraded to newer versions on a regular basis, meaning
  59. there are no explicitly defined versions of the distribution. This keeps the user up to date, but there is a
  60. larger risk of breaking the system.
  61. -Point release: software in the repositories is only upgraded for bug fixes and security patches, with
  62. some newer software being available through backporting. This has an advantage of further testing for
  63. stability, but leaves the software dated.
  64. -LiveCD/LiveDVD/LiveUSB: An operating system that can be booted directly from a CD, DVD, or
  65. USB. This requires no configuration or installation, and is very helpful for system recovery or testing
  66. your hardware. These discs typically allow for installation to a hard drive as well.
  67. Name: Ubuntu Name: Zenwalk
  68. Difficulty: Beginner Difficulty: Intermediate
  69. LiveCD: Yes LiveCD: Yes
  70. Release Model: Point; every 6 months, extended Release Model: Point; about every 6 months
  71. support release every 2 years Description: A Slackware-based distribution that
  72. Description: A Debian-based distribution developedintends to make improvements to package
  73. and supported by Canonical which aims to provide management while maintaining compatibility
  74. a simple, easy to use, operating system. Related Distros: Slackware, SLAX
  75. Related Distros: Debian, Mint, Knoppix
  76. Name: Mint Name: Debian
  77. Difficulty: Beginner Difficulty: Intermediate
  78. LiveCD: Yes LiveCD: Yes
  79. Release Model: Point ; correlated with Ubuntu Release Model: Point release about every 2 years;
  80. releases Rolling release of unstable branch
  81. Description: An Ubuntu-based distribution aimed at Description: A community driven distribution that
  82. making codecs more easily available and providing provides a stable experience of supports for many
  83. the user with eye candy. different architectures. Also renowned for it's
  84. Related Distros: Ubuntu, Debian, Knoppix dedication to free software.
  85. Related Distros: Ubuntu, Mint, Knoppix
  86. Name: Mandriva
  87. Difficulty: Beginner Name: Slackware
  88. LiveCD: Yes Difficulty: Advanced
  89. Release Model: Point; about every 6 months LiveCD: No
  90. Description: A distribution backed by the French Release Model: Point; One to two releases per year
  91. Mandriva company that aims to be easy to use. Description: One of the earliest distributions, aims
  92. Related Distros: to be simple in design and Unix-like
  93. Related Distros: Zenwalk, SLAX
  94. Name: OpenSUSE
  95. Difficulty: Beginner Name: Arch
  96. LiveCD: Yes Difficulty: Advanced
  97. Release Model: Point; One to two releases per year LiveCD: No
  98. Description: A distrubution by Novell that aims to Release Model: Rolling
  99. provide the user with an easy install and the Description: A user-centric distribution that aims to
  100. centralized graphical setup tools of YaST. give users up-to-date software and easily control
  101. Related Distros: SUSE Linux their system.
  102. Related Distros:
  103. Name: Fedora
  104. Difficulty: Intermediate Name: Gentoo
  105. LiveCD: Yes Difficulty: Expert
  106. Release Model: Point; about every 6 months LiveCD: Yes
  107. Description: A community driven distribution Release Model: Rolling
  108. based on Red Hat that aims to be on the leading Description: A distribution aimed at giving the user
  109. edge. convenient tools to have complete control of their
  110. Related Distros: RHEL, CentOS system to optimize it as they see fit.
  111. Related Distros: Sabayon
  112. 4. Getting Started
  113. If you've already decided that you want to try Linux and have decided which distribution is the
  114. best fit for you, the next step is installation. Mainstream distros have installation discs that can be
  115. bought or downloaded for free. You will typically have a choice of a direct download from the distros
  116. or a bittorrent download. There will often be a range of installation media to choose from, varying
  117. from a very small image for a network based install to a robust set of repositories spanning several
  118. DVDs. Make sure you select the proper disc for download. If you are running Windows on the
  119. computer you will install Linux on and intend to keep it(which is advised for new Linux users), it's a
  120. good idea to defragment your hard drive to make partitioning easier. There are also LiveCDs that may
  121. be a better choice for users who want a casual introduction to Linux without serious risks.
  122. If you encounter any problems, see the troubleshooting section or your distro's documentation
  123. • Download the disc image
  124. • Burn the image to a physical disc
  125. • Place disc in tray and reboot
  126. • Follow installation instructions and consult your distro's documentation (for advanced help with
  127. partitioning, see troubleshooting)
  128. • Reboot your computer when installation is complete
  129. • Choose Linux in the bootloader
  130. 5. The Package Manager
  131. One major difference with Linux distributions is that they almost all have a centralized package
  132. manager. Many package managers handle dependencies to ensure you have everything you need to run
  133. a program. Most of the time, if a program is available in the package manager, it will be the simplest
  134. solution, although you can do it yourself if you have advanced needs. Depending on your needs, many
  135. distros have both graphical and command line prompts, so choose the best option for you.
  136. 6. The Terminal
  137. One thing that often discourages new Linux users is being instructed to type a command. It is for many
  138. a realm of the unknown, which can be discomforting. While they are a useful tool, The purpose of
  139. this section is to give the user a basic understanding of how terminal commands work. Lets say there's
  140. a command called 'foo'. The first thing you will likely want to do is enter one of the three following
  141. commands:
  142. foo --help
  143. foo -h
  144. man foo
  145. These will bring up a brief description of the syntax and options. Commands will typically consist of
  146. three things, the program name, flags, and files. Here's an example with the copy command, cp.
  147. cp -u folder/files/file1 folder/backups/backup1
  148. In this example, 'cp' is the command, '-u' is a flag, and 'folder/files/file1' is the source file, and
  149. 'folder/backup/backup1' is the target file. The source file will be copied to the location of the target
  150. file. '-u' is a flag for update and will only replace the target file if the source file is newer. The key to
  151. effective usage of the terminal is not in memorization of all the commands and flags, but rather in
  152. seeing the patterns and grasping the underlying concepts.
  153. Another important thing to note is the commands needed to perform administrative tasks. They are su
  154. and sudo. su will ask you for your password and give your root privileges(root is another word for the
  155. administrator) for subsequent commands. sudo will give you root privileges for a single command and
  156. prompt you to enter your password. It is advised that you use root privileges only when needed, as you
  157. can harm your computer through irresponsible use of root.
  158. 7. Giving Back
  159. If you've found that you've enjoy Linux and free software, there are several ways to give back to
  160. help improve Linux. You can donate to or buy support from one of your favorite projects, you can
  161. report bugs, try out beta versions of software, and offer suggestions. You can give technical support
  162. and guidance to others, seed torrents of free software, and share free software with our friends. If you
  163. have the necessary skills, you can contribute code or help in translation to other languages.
  164. 8. Troubleshooting/Miscellaneous
  165. Installation
  166. If your computer starts as normal after inserting the installation disc, your BIOS may not be set to boot
  167. from a CD/DVD. Press F2(the key or key combination may be slightly different for your computer, so
  168. if the specific key doesn't appear onscreen during startup, check for further details of your
  169. manufacturer and model) at startup to access the BIOS. Navigate through the menus and set your
  170. CD/DVD drive in a higher priority than your hard drive.
  171. Wubi
  172. Wubi allows you to install Ubuntu within a Windows partition. It makes installation somewhat safer to
  173. your Windows partition, but has a set of peculiarities, the most noticeable being that performance
  174. degrades if the Windows install is fragmented or full. Additionally, if your Windows partition fails,
  175. your Ubuntu is lost as well.
  176. Virtual Machines
  177. This is a viable option for those who are interested but can't risk compromising a critical system. It has
  178. the drawbacks of reduced performance and additional strain on system resources, although the
  179. installation process is generally simpler since there are limited amounts of hardware being emulated.
  180. VirtualBox and VMware are both well supported VMs.
  181. Unetbootin/LiveCDs
  182. LiveCDs allow you to boot Linux without installing anything. Knoppix is one of the most popular and
  183. robust LiveCDs, although many installation discs also function as LiveCDs. There are also LiveCDs
  184. for specific tasks such as music (dyne:bolic) and science (Quantian). A program called Unetbootin
  185. allows users to make LiveUSBs from many popular distros.
  186. Macs
  187. The installation process is somewhat different on Macs. You can use Boot Camp on an Intel Mac, and
  188. there is documentation of the specifics on the internet. If you have a PPC Mac, you will need to use
  189. different installation media. Debian, Yellow Dog Linux, and Fedora all have support for PPC.
  190. Windows Solutions
  191. Many Linux users may find themselves still in need of Windows-only software. There are various
  192. solutions with different strengths and weaknesses.
  193. Dual Booting
  194. Leaving a Windows install on the same hard drive is a common solution and fairly easy to set up. The
  195. biggest advantage is that all of your Windows applications will still run, but you will need to reboot to
  196. use them. You can also install Windows on a computer with Linux already installed, but this tends to
  197. cause complications with the bootloader(Windows installation will overwrite the Master Boot Record).
  198. During the installation process, options for partitioning will come up. Shrink the Windows partition,
  199. and create partition(s) for Linux is the freed space(If you don't know what you need, two partitions, one
  200. for the root directory and a smaller on for swap space would be a safe bet). Most distributions should
  201. either load GRUB or LILO automatically after installation is completed. Most distros have NTFS-3G
  202. installed by default, but if it isn't you should be able to get it through your package manager or build
  203. from source For Windows to access your Linux files, you will need to download Ext2IFS. If this
  204. solutions sounds difficult for you but you would still like to dual boot, the above Wubi solution may be
  205. a good option for you.
  206. WINE/CrossOver/Cedega
  207. WINE is an ongoing project to allow Windows programs to run on Linux via a compatibility layer.
  208. This lets you run apps without restarting and minimal overhead. Because this project involves reverse
  209. engineering, applications work to varying degrees(some work with comparable performance to
  210. Windows, some work significantly worse, and some don't functional completely or at all). Two
  211. commercial variants exist, one specifically for gaming, called Cedega, and another called CrossOver
  212. has a stable version targeted at office users and a more experimental build aimed at gaming. Crossover
  213. contributes their code back towards WINE while Cedega does not and does not use code since WINE
  214. changed to the LGPL. You can check an applications compatibility at the WINE AppDB
  215. Virtual Machines
  216. Allows you to run an operating system inside a window. It's more reliable than WINE and doesn't
  217. require rebooting, but it does take additional resources and hardware acceleration is not fully supported
  218. Additionally, installation media is required. Popular virtualization software includes VirtualBox (freely
  219. available in most repositories) and various products by VMware.
  220. 64-bit vs. 32-bit
  221. Many distros offer the choice of an install based on the x86_64 architecture in addition to the x86
  222. architecture. If you are using an x86_64 processor(Anything currently offered by AMD and Intel that
  223. isn't on netbooks should be x86_64), then running a 64-bit release. x86_64 offers support for more
  224. RAM, some architectural improvements, and increased performance in some applications. Because of
  225. the free and open nature of Linux, most of the software has been ported to x86_64 and many other
  226. architectures, and 32-bit software can run with the appropriate libraries, although there may be certain
  227. obstacles. Proprietary software, such as Java, Flash, and certain hardware drivers were once a serious
  228. obstacle to x86_64 adoption, but Java has been ported, and a FOSS version exists. An alpha release of
  229. Adobe Flash 10 for x86_64 exists and is available here. Regarding hardware drivers, testing with a
  230. LiveCD is generally a good idea for finding out if your hardware is supported.
  231. Problem Solving
  232. If you need help for a specific problem, you should do the following steps in order
  233. 1. RTFM
  234. Many problems have solutions easily available to you through man pages or in the release notes
  235. of the distro or application's release notes or FAQ/Help section. If the help here is over your
  236. head, you should seek help elsewhere.
  237. 2. Google it.
  238. Using a search engine will often return a relevant answer. Good terms to include in your search
  239. are “Linux”, your distros name, and the application or hardware that is giving you trouble.
  240. 3. Go to the forums
  241. Try going to your distro's or program's forums for help. These forums are designed for help,
  242. and if you can show that you've made an earnest effort on your own, they will typically be
  243. helpful. Asking smart questions will prove generally prove more fruitful in getting a helpful
  244. reply, so reading (or at least skimming Eric S. Raymond's How To Ask Questions The Smart
  245. Way is highly advised.
  246. 4. Ask a friend
  247. If you have friends that use Linux or friends that are generally computer literate, they are a good
  248. resource for assistance. They will have patience with you, and can help you in a more direct
  249. way.
  250. 5. Linux User Groups
  251. These are groups of Linux users that gather on some kind of regular basis. They can be helpful
  252. to new users, but they meet on their time instead of yours and the nearest LUG may be too far
  253. away. You can find a LUG here.
  254. Last modified May 29, 2009 Maintained by King Neckbeard. Send revisions, suggestion, questions,
  255. and complaints to neckbeard.king@gmail.com along with how you would like to be accredited.
  256. Additional contributers:
  257. sirobvious !CfagJg.fuc
  258. Install !GENToOO59.
  259. Various anonymous members of /g/
  260. This work is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported License. To
  261. view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/ or send a letter to
  262. Creative Commons, 171 Second Street, Suite 300, San Francisco, California, 94105, USA.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement