| < Day Day Up > |
Most Linux distributions will provide powerful Web and FTP clients for accessing the Internet. Many are installed automatically and are ready to use when you first start up your Linux system. Linux also includes full Java development support, letting you run and construct Java applets. This chapter will cover some of the more popular Web, Java, and FTP clients available on Linux.
Web and FTP clients connect to sites that run servers, using Web pages and FTP files to provide services to users. Sites are accessed using their Internet addresses. Local networks use the same addressing format. Though discussed in more detail in Chapter 38, a quick review is provided here. The Internet uses a set of network protocols called TCP/IP, which stands for Transmission Control Protocol/Internet Protocol. In a TCP/IP network, messages are broken into small
On a TCP/IP network such as the Internet, each computer is given a unique address called an
IP address.
The IP address is used to identify and locate a particular host—a computer connected to the network. To make identifying a computer on the Internet easier, the Domain Name Service (DNS) was implemented. The DNS establishes a domain name address for each IP address. The domain
A domain name address needs to be registered with an Internet domain name registry such as the American Registry for Internet Numbers (ARIN) so that each computer on the Internet can have a unique name (see
www.iana.org
for more information). Creating a name
host-name . domain-name . extension
In the following example, the domain address references a computer called metalab on a network referred to as unc . It is part of an educational institution, as indicated by the extension edu .
metalab.unc.edu
With the
whois
command, you can obtain information for domain name servers about different networks and
$ whois domain-address
| < Day Day Up > |
| < Day Day Up > |
The World Wide Web (WWW, or the Web) is a hypertext database of different types of information, distributed across many different sites on the Internet. A
hypertext database
consists of items linked to other items, which, in
To access the Web, you use a Web
browser.
You can choose from many different Web browsers. On your Linux system, you can choose from several Web browsers, including Mozilla and Lynx. Mozilla is an X Window System–based browser that provides full picture, sound, and video display capabilities. Most distributions also include the Lynx browser, a line-mode browser that displays only lines of text. The K Desktop incorporates Web browser capabilities into its file manager, letting a directory window
Web browsers and FTP clients are commonly used to conduct secure transactions such as logging into remote sites, ordering items, or transferring files. Such operations are currently secured by encryption
An Internet resource is accessed using a Universal Resource Locator (URL). A URL is
transfer-protocol :// host-name /path -name
The
transfer protocol
is usually HTTP (Hypertext Transfer Protocol), indicating a Web page. Other possible values for transfer protocols are
gopher
,
ftp
, and
file
. As their
The
hostname
is the computer on which a particular Web site is located. You can think of this as the address of the Web site. By convention, most hostnames begin with
www
. In the
http://www.kernel.org/LDP/guides.html
If you do not want to access a particular Web page, you can leave the file reference out, and then you automatically access the Web site's home page. To access a Web site directly, use its hostname. If no home page is specified for a Web site, the file
index.html
in the top directory is often used as the home page. In the next example, the
http://www.redhat.com/
The pathname specifies the directory where the resource can be found on the host system, as well as the name of the resource's file. For example,
/pub/Linux/newdat.html
references an HTML document called
newdat
located in the
/pub/Linux
directory. As you move to other Web pages on a site, you may move more deeply into the directory tree. In the following example, the user
http://www.redhat.com/support/docs/faqs/rhl_general_faq/FAQ.html
The resource file's extension indicates the type of action to be taken on it. A picture has a
.gif
or
.jpeg
extension and is converted for display. A sound file has an
.au
or
.wav
extension and is
http://www.train.com/engine/engine1.gif
|
Protocol |
Description |
|---|---|
|
http |
Uses Hypertext Transfer Protocol for Web site access |
|
gopher |
Accesses Gopher site |
|
ftp |
Uses File Transfer Protocol for anonymous FTP connections |
|
telnet |
Makes a telnet connection |
|
news |
Reads Usenet news; uses Network News Transfer Protocol (NNTP) |
|
File Type |
Description |
|---|---|
|
.html |
Web page document formatted using HTML, the Hypertext Markup Language |
|
Graphics Files |
|
|
.gif |
Graphics, using GIF compression |
|
.jpeg |
Graphics, using JPEG compression |
|
Sound Files |
|
|
.au |
Sun (Unix) sound file |
|
.wav |
Microsoft Windows sound file |
|
.aiff |
Macintosh sound file |
|
Video Files |
|
|
.QT |
QuickTime video file,
|
|
.mpeg |
Video file |
|
.avi |
Microsoft Windows video file |
Most Web browsers are designed to access several different kinds of information. Web browsers can access a Web page on a remote Web site or a file on your own system. Some browsers can also access a remote news server or an FTP site. The type of information for a site is specified by the keyword
http
for Web sites,
nntp
for news servers,
ftp
for FTP sites, and
file
for files on your own system. As noted previously, several popular browsers are available for Linux. Three
To search for files on FTP sites, you can use search engines provided by Web sites, such as Yahoo!, Excite, Google, AltaVista, or Lycos. These usually search for both Web pages and FTP files. To find a particular Web page you want on the Internet, you can use any of these search engines or perform searches from any number of Web portals. Web searches have become a standard service of most Web sites. Searches carried out on documents within a Web site may use local search indexes set up and
Hypertext databases are designed to access any kind of data, whether it is text, graphics, sound, or even video. Whether you can actually access such data depends to a large extent on the type of browser you use. Mozilla is a browser based on the Netscape
Mozilla is an X Window System application you operate from your desktop. Red Hat has a Mozilla entry in the desktop's Internet menu. Mozilla displays an area at the top of the screen for entering a URL address and a series of buttons for various Web page operations. Drop-down
Figure 14-1:
Mozilla Web browser
Mozilla refers to the URLs of Web pages you want to keep as bookmarks, marking pages you want to access directly. The Bookmarks menu enables you to add your favorite Web pages. You can then view your bookmarks and select one to view. You can also edit your list of bookmarks, adding new ones or removing old ones. History is a list of previous URLs you have accessed. If you want to return to a Web page you did not save as a bookmark, you can find it in the History list. Additionally, you can use Mozilla to receive and send mail, as well as to access Usenet newsgroups. Mozilla also supports advanced features like cookie, form, image, and password management. You can elect to suppress cookies from sites, automatically fill in forms, not display site images, and set up login information such as usernames and passwords for selected sites.
The Preferences menu in Mozilla enables you to set several different kinds of preferences for your browser. You can set preferences for mail and news, the network, and security, as well as general preferences. In general preferences, you can determine your home page and how you want the toolbar displayed. In the Mail/News Account Settings, you can enter the mail and news servers you use on the Internet. Mozilla can be set to access any number of news servers you subscribe to and that use the NNTP transfer protocols. You can switch from one news server to another if you want.
If you are on a network that connects to the Internet through a firewall, you must use the Proxies screen to enter the address of your network's firewall gateway computer. A
firewall
is a computer that operates as a controlled gateway to the Internet for your network. Several types of firewalls exist. One of the most
| Note |
The Privoxy Web proxy filters Web content to protect user privacy, intercepting unwanted advertising or blocking invasive cookies. Privoxy will execute rules listed in its action files, such as action.default, located in the /etc/privoxy directory. You can start Privoxy with the Services tool or the service command. To have your browser use Privoxy, configure it to use the host running Privoxy as a proxy. |
If you are using the K Desktop, you can use a file manager window as a Web browser. The K Desktop's file manager is automatically configured to act as a Web browser. It can display Web pages, including graphics and links. The K Desktop's file manager supports standard Web page operation, such as moving forward and backward through accessed pages. Clicking a link accesses and displays the Web page referenced. In this respect, the Web becomes seamlessly integrated into the K Desktop.
The new GNOME file manager, Nautilus, is a functional Web browser, just like Konqueror. In the Nautilus location box, you can enter a Web address and Nautilus will access and display that Web page. The file manager Forward and Backward buttons, as well as bookmarks, help you navigate through previously
Several other GNOME-based Web browsers are also available. Epiphany, Barque, and Atlantis support standard Web operations. Epiphany is a GNOME Web browser designed to be fast with a simple interface. You can find out more about Epiphany at
epiphany.mozdev.org
. Epiphany is included with Red Hat. For GNOME, you can also download
| Note |
Epiphany has
|
Lynx is a line-mode browser you can use without the X Window System. A Web page is displayed as text only. A text page can contain links to other Internet resources but does not display any graphics, video, or sound. Except for the display limitations, Lynx is a fully functional Web browser. You can use Lynx to download files or to make telnet connections. All information on the Web is still accessible to you. Because it does not require much of the overhead that graphics-based browsers need, Lynx can operate much faster, quickly displaying Web page text. To start the Lynx browser, you enter lynx on the command line and press ENTER.
Another useful text-based browser shipped with most distributions is Links. Links is a powerful
To create your own Web site, you need access to a Web server. Red Hat automatically
Web pages are created using either HTML, the Hypertext Markup Language, or the
Instead of manually entering HTML or XML code, you can use Web page composers. A Web page composer provides a graphical interface for constructing Web pages. Special Web page creation programs can easily help you create complex Web pages without ever having to type any HTML tags explicitly. Remember, though, no matter what tool you use to create your Web page, the Web page itself will be an HTML document.
| Note |
Many of the standard editors for the K Desktop and GNOME include Web page construction features. Many enable you to insert links or format headings. For example, the KEdit program supports basic text-based Web page
|
| < Day Day Up > |