UBUNTU INSTALLATION
- Download the Ubuntu ISO file. You can get the ISO file from the Ubuntu website. An ISO file is a CD image file that will need to be burned before you can use it. There are two options available from the Ubuntu website (you can also buy official Ubuntu CDs, which come in packs of 10):
- 16.04 LTS has continuous updates and provides technical support. It is scheduled to be supported until April 2021. This option will give you the most compatibility with your existing hardware.
- Ubuntu builds (not yet released) 16.10, 17.04, and 17.10 will come with limited support. They will have the newest features, though they may not work with all hardware. These releases are geared more towards experienced Linux users.
- If you have a Windows 8 PC or a PC with UEFI firmware, download the 64-bit version of Ubuntu. Most older machines should download the 32-bit version.
- Burn the ISO file. Open up your burning program of choice. There are free and paid programs available that can burn an ISO to a CD or DVD.
- Windows 7, 8, and Mac OS X can all burn ISO files to a disc without having to download a separate program.
- Boot from the disc. Once you have finished burning the disc, restart your computer and choose to boot from the disc. You may have to change your boot preferences by hitting the Setup key while your computer is restarting. This is typically F12, F2, or Del.
- Try Ubuntu before installing. Once you boot from the disc, you will be given the option to try Ubuntu without installing it. The operating system will run from the disc, and you will have a chance to explore the layout of the operating system.
- Open the Examples folder to see how Ubuntu handles files and exploring the operating system.
- Once you are done exploring, open the Install file on the desktop.
- Install Ubuntu. Your computer will need at least 4.5 GB of free space. You will want more than this if you want to install programs and create files. If you are installing on a laptop, make sure that it is connected to a power source, as installing can drain the battery faster than normal.
- Check the “Download updates automatically” box, as well as the “Install this third-party software” box. The third-party software will allow you to play MP3 files as well as watch Flash video (such as YouTube).
- Set up the wireless connection. If your computer is not connected to the internet via Ethernet, you can configure your wireless connection in the next step.
- If you didn’t have an internet connection in the previous step, hit the Back button after setting up the wireless connection so that you can enable automatic updates.
- Choose what to do with your existing operating system. If you have Windows installed on your system, you will be given a couple options on how you’d like to install Ubuntu. You can either install it alongside your previous Windows installation, or you can replace your Windows installation with Ubuntu.
- If you install it alongside your old version of Windows, you will be given the option to choose your operating system each time you reboot your computer. Your Windows files and programs will remain untouched.
- If you replace your installation of Windows with Ubuntu all of your Windows files, documents, and programs will be deleted.
Set your partition size. If you are installing Ubuntu alongside Windows, you can use the slider to adjust how much space you would like to designate for Ubuntu. Remember that Ubuntu will take up about 4.5 GB when it is installed, so be sure to leave some extra space for programs and files.
- Once you are satisfied with your settings, click Install Now.
Choose your location. If you are connected to the internet, this should be done automatically. Verify that the timezone displayed is correct, and then click the Continue button.
Set your keyboard layout. You can choose from a list of options, or click the Detect Keyboard Layout button to have Ubuntu automatically pick the correct option.
Enter your login information. Enter your name, the name of the computer (which will be displayed on the network), choose a username, and come up with a password. You can choose to have Ubuntu automatically log you in, or require your username and password when it starts.
Wait for the installation process to complete. Once you choose your login info, the installation will begin. During setup, various tips for using Ubuntu will be displayed on the screen. Once it is finished, you will be prompted to restart the computer and Ubuntu will load.
LINUX APPLICATION INSTALLATION
The software packages are somewhere in the online repositoies, APT handles a local database on the user's hard drive that contains information's about the available packages and where they are located. So when the types the command, apt-get install conky, the APT will start finding the package named conky in the database and will install conky once user types 'y' (yes). To get the all newly uploaded packages on the repositories, user need to update APT regularly.
To update APT database:
apt-get update
To update the APT database and also upgrade the security updates and patches that might be available for some installed softwares, users may do it at once just by using the commands like this: apt-get update; apt-get upgrade
And remember all of the package management tools I am discussing, will need user to be in root or superuser, for example to install software in debian based distributions you will use apt-get followed by sudo then It will ask you to enter password.
sudo apt-get install conky
sudo apt-get remove conky
sudo apt-get update
yum: For RPM based Linux distributions, like, Fedora, Red HatYou will not have any trouble understanding yum because its same as apt-get. As 'apt-get' installs software packages for Debian packages, like that 'yum' installs software packages for RPM packages. It can also like apt-get download and install packages from a repository.
Yum install ${packagename}
To remove software packages, just use remove
yum remove ${packagename}
There is one thing to note that yum does not keep a local database by default in user's hard disk. So there is no need to update it. But to install available security paches and bug fixes, use the following command:
yum update
If user wants to update any single package then do it in the following way:
yum update ${packagename}
Tar Balls
You would remember in Windows you've Zip files .zip or in Mac .sit. The same way here in Linux you have Tar Balls (files) ending with extentions, like, .tar, .tar.gz, .tgz, or something else. To unpack a tar ball (file), use the following command:
tar -xzvf ${filename}.tar.gz
The parameters are x to extract files, z to filter through gzip for decompression (leave this off if the file does not have a gz extension), v for verbose mode so you can tell what’s going on, f indicating there will be a filename to follow. You may want to create an alias called “untar” that feeds in these options if you have a hard time remembering command line options as I do.
The command will not install the software, but it will extract the archived files. After extracting files then you can install the extracted files by reading README file or INSTALL file (because there you can instructions for installing those particular files).
BASIC LINUX COMMANDS
Command | Description |
---|---|
cat [filename] | Display file’s contents to the standard output device (usually your monitor). |
cd /directorypath | Change to directory. |
chmod [options] mode filename | Change a file’s permissions. |
chown [options] filename | Change who owns a file. |
clear | Clear a command line screen/window for a fresh start. |
cp [options] source destination | Copy files and directories. |
date [options] | Display or set the system date and time. |
df [options] | Display used and available disk space. |
du [options] | Show how much space each file takes up. |
file [options] filename | Determine what type of data is within a file. |
find [pathname] [expression] | Search for files matching a provided pattern. |
grep [options] pattern [filesname] | Search files or output for a particular pattern. |
kill [options] pid | Stop a process. If the process refuses to stop, use kill -9 pid. |
less [options] [filename] | View the contents of a file one page at a time. |
ln [options] source [destination] | Create a shortcut. |
locate filename | Search a copy of your filesystem for the specified filename. |
lpr [options] | Send a print job. |
ls [options] | List directory contents. |
man [command] | Display the help information for the specified command. |
mkdir [options] directory | Create a new directory. |
mv [options] source destination | Rename or move file(s) or directories. |
passwd [name [password]] | Change the password or allow (for the system administrator) to change any password. |
ps [options] | Display a snapshot of the currently running processes. |
pwd | Display the pathname for the current directory. |
rm [options] directory | Remove (delete) file(s) and/or directories. |
rmdir [options] directory | Delete empty directories. |
ssh [options] user@machine | Remotely log in to another Linux machine, over the network. Leave an ssh session by typing exit. |
su [options] [user [arguments]] | Switch to another user account. |
tail [options] [filename] | Display the last n lines of a file (the default is 10). |
tar [options] filename | Store and extract files from a tarfile (.tar) or tarball (.tar.gz or .tgz). |
top | Displays the resources being used on your system. Press q to exit. |
touch filename | Create an empty file with the specified name. |
who [options] | Display who is logged on. |
No comments:
Post a Comment