Difference between revisions of "Installing linux"

From Gender and Tech Resources

m
m (Verify downloads)
Line 18: Line 18:
 
=== DVD ===
 
=== DVD ===
  
=== Goodbye Microsoft ===
+
=== Goodbye M$ ===
 
Debian offers a windows program that will download and set up a 32 bit debian installer. You then only need to reboot the computer and choose between normal windows boot or booting the installation program. You can find it here http://ftp.debian.org/debian/tools/win32-loader/stable/ and here http://goodbye-microsoft.com/.
 
Debian offers a windows program that will download and set up a 32 bit debian installer. You then only need to reboot the computer and choose between normal windows boot or booting the installation program. You can find it here http://ftp.debian.org/debian/tools/win32-loader/stable/ and here http://goodbye-microsoft.com/.
  
Line 37: Line 37:
  
 
== Verify downloads ==
 
== Verify downloads ==
Verify the md5 or sha256 checksum of the downloaded .iso file in linux with:
+
Verify all dowloaded iso's. You can verify for example, the md5 or sha256 checksum of the downloaded .iso file in linux with:
 
  $ md5sum debian-8.1.0-amd64-DVD-1.iso
 
  $ md5sum debian-8.1.0-amd64-DVD-1.iso
or for example:
+
respectively:
 
  $ sha256sum debian-8.1.0-amd64-DVD-1.iso
 
  $ sha256sum debian-8.1.0-amd64-DVD-1.iso
 
and compare the output with key listed for ''debian-8.1.0-amd64-DVD-1.iso'' in respectively http://cdimage.debian.org/debian-cd/8.1.0/amd64/iso-dvd/MD5SUMS and http://cdimage.debian.org/debian-cd/8.1.0/amd64/iso-dvd/SHA256SUMS Other checksums are also given.  
 
and compare the output with key listed for ''debian-8.1.0-amd64-DVD-1.iso'' in respectively http://cdimage.debian.org/debian-cd/8.1.0/amd64/iso-dvd/MD5SUMS and http://cdimage.debian.org/debian-cd/8.1.0/amd64/iso-dvd/SHA256SUMS Other checksums are also given.  
  
 
Windows does not come with ''md5sum''. There are command line utilities (<tt>md5sum.exe</tt>) and the version available from Cygwin is probably easiest to install and update. Once installed, Cygwin's <em>md5sum</em> behaves exactly as the md5sum described for linux above.
 
Windows does not come with ''md5sum''. There are command line utilities (<tt>md5sum.exe</tt>) and the version available from Cygwin is probably easiest to install and update. Once installed, Cygwin's <em>md5sum</em> behaves exactly as the md5sum described for linux above.
 
Verify all dowloaded iso's.
 
  
 
== Burn CD/DVD ==
 
== Burn CD/DVD ==
Line 98: Line 96:
  
 
[[File:Partition-disk3.png|640px||thumb|center]]
 
[[File:Partition-disk3.png|640px||thumb|center]]
 +
 +
[[File:Partition-disk4.png|640px||thumb|center]]
 +
 +
[[File:Partition-disk5.png|640px||thumb|center]]
 +
 +
[[File:Partition-disk6.png|640px||thumb|center]]
 +
 +
The next steps do not require any user interaction. The "base system" packages, dpkg and apt for managing packages and utilities to boot the system, are installed.
  
 
== Installing a stripped debian (running *only* what you need) ==
 
== Installing a stripped debian (running *only* what you need) ==

Revision as of 21:05, 18 June 2015

M$ wants to keep you locked in to Windows so that it can take your money, your personal data, and your user freedom. They don’t want you to know that you have a choice of better operating systems; operating systems that respect your freedom. There are tons of free "as in freedom" software operating systems that you can download and install at no cost.

And when they’re improved, you can choose whether or not you want to upgrade, without a corporation breathing down your neck. It is time to upgrade your computer, but not to Windows 8.

Ohgurl.jpg

Shopping for a linux distro

This page continues with mint, ubuntu and debian.

Dual boot

You can have both windows and linux on your machine, each installed on a separate disk or partition, and choose which to start when booting. This configuration is called "dual boot", and the debian installation system can set it up during the hard drive partitioning stage of installation and setting up the bootloader.

Installation media

Unetbootin

DVD

Goodbye M$

Debian offers a windows program that will download and set up a 32 bit debian installer. You then only need to reboot the computer and choose between normal windows boot or booting the installation program. You can find it here http://ftp.debian.org/debian/tools/win32-loader/stable/ and here http://goodbye-microsoft.com/.

Download distro

Download your preferred distro for your preferred medium from https://www.debian.org/releases/jessie/debian-installer/

If you are confused about whether your kernel is 32 or 64 bits, in linux do:

$ uname -m

x86_64 means a 64-bit kernel and i686 means a 32-bit kernel. In windows try this https://support.microsoft.com/en-us/kb/827218

Note: you can install a 32-bit kernel on a 64-bit CPU. The fundamental difference between 32 and 64 bit systems is the size of memory addresses. In theory, a 32 bit system can not work with more than 4 GB of RAM (232 bytes). In practice, it is possible to work around this by using the 686-pae kernel, so long as the processor handles the PAE (Physical Address Extension). There is a performance price to pay for this, so if you are installing on a server with a huge amount of RAM, use the 64 bit kernel.

To learn more about your CPU in linux do:

$ cat /proc/cpuinfo

For windows you can type dxdiag in the run box.

Verify downloads

Verify all dowloaded iso's. You can verify for example, the md5 or sha256 checksum of the downloaded .iso file in linux with:

$ md5sum debian-8.1.0-amd64-DVD-1.iso

respectively:

$ sha256sum debian-8.1.0-amd64-DVD-1.iso

and compare the output with key listed for debian-8.1.0-amd64-DVD-1.iso in respectively http://cdimage.debian.org/debian-cd/8.1.0/amd64/iso-dvd/MD5SUMS and http://cdimage.debian.org/debian-cd/8.1.0/amd64/iso-dvd/SHA256SUMS Other checksums are also given.

Windows does not come with md5sum. There are command line utilities (md5sum.exe) and the version available from Cygwin is probably easiest to install and update. Once installed, Cygwin's md5sum behaves exactly as the md5sum described for linux above.

Burn CD/DVD

Make an image on USB

Boot box from media

Boot from the USB, CD- or DVD-ROM:

Mint

Ubuntu

Debian with MATE

Boot from the USB, CD- or DVD-ROM and in the Isolinux bootloader menu choose install:
Install.png
Choose language (this sets language for both the installation process as well as for the to-be-installed linux):
Select-a-language.png
Select location. It doesn't have to be where you actually are. And you can change it later. It sets what repositories you use, but even that can be changed later.
Select-location.png

Locales are used by glibc and other "locale-aware" programs or libraries for rendering text, correctly displaying regional monetary values, time and date formats, alphabetic idiosyncrasies, and other locale-specific standards:

Configure-locales.png
The "American English" keyboard corresponds to the QWERTY layout, otherwise pick yours:
Configure-keyboard.png
Until now the installation steps were completely contained in the boot image included on the CD, a file of limited size and loaded into memory by the BIOS when booting from the removable medium. What follows are a few automatic windows showing progress in:
  • detecting hardware: detects hardware and tries to identify the drive and loads the modules of the various hardware components detected, and then "mounts" the drive to read it
  • loading additional components: loads all the files necessary to continue including additional drivers for remaining hardware (especially the network card), as well as all the components of the installation program
  • detecting network hardware: tries to identify the network card and load the associated firmware. If automatic detection fails, you can manually select the firmware to load, and you can do it later. If need be you can use a USB-network-adapter. If doing a netinst installation, this must be made to work now, because the debian packages must be loaded from the network.

Next the installer attempts an automatic network configuration by DHCP (for IPv4) and by IPv6 network discovery. If this fails, the installer provides choices: you can try again, attempt DHCP configuration by declaring the name of the machine (rumpelstiltskin jumps to mind), or set up a static network configuration. This requires having an IP address, a subnet mask, an IP address for a potential gateway, a machine name, and a domain name to enter.

Configure-network.png
Configure-network2.png

Make the root password long (8 characters or more) and hard to guess. All machines connected to the internet are regularly targeted by automated connection attempts with the most obvious passwords and sometimes even with dictionary attacks. Avoid using names of partners, pets, children, parents, friends, dates of birth, etc. Use password generators.

Set-up-users-and-passwords.png

Debian also imposes the creation of a standard user account on you so that you do not get into the bad habit of working as root. The precautionary principle applies.

Set-up-user.png

If the network is available, the system's internal clock is updated (in a one-shot way) from an NTP server. This way the timestamps on logs will be correct from the first boot.

Partitioning is for dividing the available space on the hard drives. This step also includes choosing the filesystems to be used. All of these decisions will have an influence on performance, data security, and the administration of a server. For a standard install on a PC as newbie, choose an easy way:

Partition-disk.png
Partition-disk2.png
Partition-disk3.png
Partition-disk4.png
Partition-disk5.png
Partition-disk6.png

The next steps do not require any user interaction. The "base system" packages, dpkg and apt for managing packages and utilities to boot the system, are installed.

Installing a stripped debian (running *only* what you need)

At the first screen running the installer choose "Advanced Options" and then "expert" mode. Install now is "verbose" and details all possible options in the process of installation and allows for navigation between the various steps without them happening automatically in sequence.

Stealth install

Making your own images

After install