Anda di halaman 1dari 13

How to Set a Static IP

address in Ubuntu 8.10


(Intrepid Ibex)
- Step 1
1. sudo update-rc.d -f NetworkManager remove
reboot
- Step 2
2-1. sudo nano /etc/network/interfaces
auto lo eth0
iface lo inet loopback
iface eth0 inet static
address xxx.xxx.xxx.xxx(enter your ip here)
netmask xxx.xxx.xxx.xxx
2-2. sudo nano /etc/resolv.conf
nameserver xxx.xxx.xxx.xxx(enter your dns
server ip)
nameserver xxx.xxx.xxx.xxx(enter your alt dns
server ip)
Software management

An explanation of the package


management subsystem
Installing and removing software using
Synaptic
Manually installing a software package
Installing and removing software at the
command-line
Adding new software repositories
Compiling a program from source code
All about package
management
What’s in a package?
all programs are distributed as software
package files
Difference
Ubuntu : only contain the program itself
Windows : include the program and various
system files
Important
everything in a typical Ubuntu installation
originally came out of package
All about package
management
APT and dpkg
Advanced Package Tool(APT)
works at a higher level keeping track of what
packages are installed
very clever
intelligent and efficient software updates
Debian Package system(dpkg)
works at a basic level doing the hard work of
actually installing and removing packages
All about package
management
Software repositories
Ubuntu departs most radically from how
Windows handles software management
Repositories
large stores of package
located online, but CD/DVDs, USB
Personal Package Archive(PPA)
to install cutting-edge software
All about package
management
Repositories
Main
core package
Universe
Community maintained repository
Restricted
Proprietary drivers
Multiverse

Updates
updates repository
security repository
All about package
management
Dependency management
APT’s job is to take care of dependencies,
and it does so automatically and largely
invisibly
uninstall some software that’s depended
upon by other software
reverse dependencies
Synaptic:An overview

System → Administration
Installing software
Frozen-Bubble
Uninstalling software
Mark for Reinstallation
Mark for Removal
Mark for Complete Removal
Reinstalling software
Mark for Reinstallation
Manually installing a package

inadvisable
fraught with problems
dependency issues
Gdebi Package Installer program
.deb extension
Table 6-2
Command-line software
management
• Installing software
• sudo apt-get update
• apt-cache search frozen bubble
• apt-cache show frozen-bubble
• sudo apt-get install frozen-bubble
• Uninstalling software
• sudo apt-get autoremove frozen-bubble
• Reinstalling software
• sudo apt-get –reinstall install frozen-bubble
Command-line software
management
• Manually installing/uninstalling
packages
• sudo dpkg -i packagename.deb
• sudo dpkg -r packagename
• sudo dpkg -I packagename.deb | less
• Uninstallation limitations
• dependency hell
Working with repositories

• Adding a repository
• Start the Software Source program
• /etc/apt/source.list
• sudo apt-get update
• Adding a new repository key
• key : .asc, .gpg
• sudo apt-key app keyfile.gpg
Compiling from source code

• install build-essential package


• ./configure
• make
• sudo make install

Anda mungkin juga menyukai