ค้นหาบล็อกนี้

2/05/2554

Install libc, gcc, g++ and make

Install libc, gcc, g++ and make

Two items missing from a default Debian/Ubuntu installation are gcc
and make plus their associated bits and pieces. This can be quite
disconcerting if you are used to compiling software under other
versions of Linux. Luckily there is an easy way to install all the
bits and pieces you need to use gcc and/or make. Simply do:

$ sudo apt-get install build-essential

and respond with a "Y" when asked if you "...want to continue". Once
the installation process finishes you should have both gcc and make
installed on your machine.

This is an example of installing software using a "meta-package." If
you type in the command:

$ sudo apt-cache showpkg build-essential

You will see a descriptive list of all the various pieces of software
that are installed for this package.


--
*

ข้อสอบครูชำนาญการพิเศษ *
ข้อสอบครูผู้ช่วย,สอบบรรจุครูผู้ช่วย,แนวข้อสอบครูผู้ช่วย,สอบครูผู้ช่วย,แนวข้อสอบครูผู้ช่วย,ครูผู้ช่วย,ข้อสอบบรรจุครู,ข้อสอบครูชำนาญการพิเศษ
*http://www.oopps.bloggang.com*
*
* ฟิสิกส์ ข้อสอบฟิสิกส์ บทเรียนฟิสิกส์ ฟิสิกส์ออนไลน์
โจทย์ฟิสิกส์ แบบฝึกหัดวิชาฟิสิกส์ โจทย์วิชาฟิสิกส์ โจทย์วิชาฟิสิกส์
http://thaiphysics.blogspot.com


* บทเรียนบทรัก ความรัก บทความความรัก ดูดวงความรัก นิยามความรัก
กลอนรัก เพลงรักhttp://love8love9.blogspot.com


* ความรัก บทความความรัก ดูดวงความรัก นิยามความรัก กลอนรัก
เพลงรักhttp://kongkoymusic.blogspot.com

Update /etc/apt/sources.list

When using apt, apt-get, aptitude and/or synaptic there is a master
file that tells Ubuntu where to look for software you wish to install.
This file is /etc/apt/sources.list. You can update this file to point
to different repositories (third party, local repositories, remove the
cdrom reference, etc...). In our case we are now going to do this.
We'll edit this file and we are going to edit out any reference to the
Ubuntu 7.10 cdrom, which is left from the initial install.

To edit the file /etc/apt/sources.list do:

$ sudo vi /etc/apt/sources.list

In this file we want to comment out any references to the Ubuntu
cd-rom. You'll see the following lines at the top of the file:

#
# deb cdrom:[Ubuntu-Server 7.10 _Gutsy Gibbon_ - Release i386
(20071016)]/ gutsy main restricted

deb cdrom:[Ubuntu-Server 7.10 _Gutsy Gibbon_ - Release i386
(20071016)]/ gutsy main restricted

Update this by simply commenting out the one line (see your vi
reference sheet for help):

#
# deb cdrom:[Ubuntu-Server 7.10 _Gutsy Gibbon_ - Release i386
(20071016)]/ gutsy main restricted

# deb cdrom:[Ubuntu-Server 7.10 _Gutsy Gibbon_ - Release i386
(20071016)]/ gutsy main restricted


Now the apt command (apt-get) won't attempt to read your cd-rom drive
each time you install software.

Change your sources list:

We won't be doing this, but take a closer look at the file
/etc/apt/sources.list. You should see multiple entries along the line
of "http://CC.archive.ubuntu.com/" where the "CC" is a country code.
If you installed and said that your location was Taiwan, then the
entry would read, "http://tw.archive.ubuntu.com/", and so forth.

If you make changes to this file, then you should remember to run:

$ sudo apt-get update

To make sure that all your local repository lists are up to date.

--
*

ข้อสอบครูชำนาญการพิเศษ *
ข้อสอบครูผู้ช่วย,สอบบรรจุครูผู้ช่วย,แนวข้อสอบครูผู้ช่วย,สอบครูผู้ช่วย,แนวข้อสอบครูผู้ช่วย,ครูผู้ช่วย,ข้อสอบบรรจุครู,ข้อสอบครูชำนาญการพิเศษ
*http://www.oopps.bloggang.com*
*
* ฟิสิกส์ ข้อสอบฟิสิกส์ บทเรียนฟิสิกส์ ฟิสิกส์ออนไลน์
โจทย์ฟิสิกส์ แบบฝึกหัดวิชาฟิสิกส์ โจทย์วิชาฟิสิกส์ โจทย์วิชาฟิสิกส์
http://thaiphysics.blogspot.com


* บทเรียนบทรัก ความรัก บทความความรัก ดูดวงความรัก นิยามความรัก
กลอนรัก เพลงรักhttp://love8love9.blogspot.com


* ความรัก บทความความรัก ดูดวงความรัก นิยามความรัก กลอนรัก
เพลงรักhttp://kongkoymusic.blogspot.com

Learn how to install software

Learn how to install software

This is a large topic. Your instructor should have discussed this with
you previously. In general you can use apt-get to install software,
clean up software installs, remove software and update your
repositories. You can use aptitude as a meta-installer to control apt.
The dpkg command extracts and installs individual Debian packages and
is called by apt. In addition, synaptic is a graphical interface to
apt that can be used in Gnome or KDE. Finally, apt-cache allows you to
view information about already installed packages.

We are going to concentrate on the apt-get method of software
installation. But you should spend some time reading about and
learning about how apt (in general), aptitude, dpkg, apt-cache, and
synaptic work. To do this read the man pages for each:

$ man dpkg
$ man apt
$ man apt-get
$ man aptitude
$ man apt-cache

You don't need to read each man page in detail as this could take a
while, but review them enough to understand the basics of each command
and how they differ.

After reading try a few commands:

$ dpkg
$ dpkg -help | more [space for next page, or CTRL-C to exit more screen]
$ apt-get | more
$ sudo apt-get check [what does the "check" option do?]
$ aptitude [Look around at what is installed.]
$ apt-cache | more
$ apt-cache stats
$ apt-cache search nagios2
$ apt-cache showpkg nagios2 | more

--
*

ข้อสอบครูชำนาญการพิเศษ *
ข้อสอบครูผู้ช่วย,สอบบรรจุครูผู้ช่วย,แนวข้อสอบครูผู้ช่วย,สอบครูผู้ช่วย,แนวข้อสอบครูผู้ช่วย,ครูผู้ช่วย,ข้อสอบบรรจุครู,ข้อสอบครูชำนาญการพิเศษ
*http://www.oopps.bloggang.com*
*
* ฟิสิกส์ ข้อสอบฟิสิกส์ บทเรียนฟิสิกส์ ฟิสิกส์ออนไลน์
โจทย์ฟิสิกส์ แบบฝึกหัดวิชาฟิสิกส์ โจทย์วิชาฟิสิกส์ โจทย์วิชาฟิสิกส์
http://thaiphysics.blogspot.com


* บทเรียนบทรัก ความรัก บทความความรัก ดูดวงความรัก นิยามความรัก
กลอนรัก เพลงรักhttp://love8love9.blogspot.com


* ความรัก บทความความรัก ดูดวงความรัก นิยามความรัก กลอนรัก
เพลงรักhttp://kongkoymusic.blogspot.com