[ Pobierz całość w formacie PDF ]
.Even so, problems related to networking are not uncommon.PPPdialup can be hard to setup, local network IP address issues can be hard to understand.We try to solve mostcommon problems here with tips on how to make your networking and Internet experience a good one.80 100 Linux Tips and TricksTip 1: Easy PPP dialupBy default, most Linux distributions come with text-based configuration files and console menu-basedconfiguration programs for PPP dialup.Often, this simply isn't enough for most new users.Several GUI programs exist and can be used to configure your PPP dialup.One is X-isp, available fromhttp://users.hol.gr/~dbouras/.You may still need to edit the pap-secrets file in /etc/ppp.An other is the Gnome PPP dialer.It comes with Gnome and can be used with no text file editing.Be sure toput a "*" in the "Remote address" field if it should be set dynamically.Here is a quick guide to setup the Gnome PPP program.First make sure the pppd program is suid root.Then,enter your user name, password and "*" in the remote IP field.Enter the DNS server, and set your IP addressor set to dynamic.This should work for most Internet providers.Check the PPP-HOWTO for a completeoverview of the PPP programs.This is the Gnome PPP interface:81 100 Linux Tips and TricksTip 2: Internet for your LANMany companies have local networks, and it is becoming even more popular in homes, where 2 or 3 systemsare linked together using ethernet wires.Most providers only offer 1 IP address per connection, which meansthat you can't put all of the systems on the Internet at the same time, unless you use a special gateway.Linux comes with something called IP-Masquerade.With it, you can assign LAN IPs, which are IPs thatcan't go on the Internet directly, and then use the Linux system as a gateway.All you need to implement thisis a Linux system with 2 ethernet cards, and an Internet connection.The Linux system has IP-Masqueradeenabled, and the LAN systems will have access to the Internet using the Linux gateway as a transparant proxyserver.You can find more on the subject by reading the IP-Masq HOWTO and other networking documentation athttp://metalab.unc.edu/pub/Linux/docs.You also need to make sure your Internet provider accepts this kindof network on their connection.82 100 Linux Tips and TricksTip 3: Domains to search inWhen you try to access a Web site, or any remote site, you need to specify the full hostname.This means themachine name plus the domain name:lynx my.yahoo.comIf you have a few domain names that you access a lot, you can make your life easier.You can edit/etc/resolv.conf and add the domains there:search domain.net yahoo.comThis means that the system will search in those domains for hostnames.From now on type:lynx myThe system will now look for "my", if that hostname doesn't exist it will look for "my.domain.net", and atlast "my.yahoo.com".83 100 Linux Tips and TricksTip 4: Display IP rather than hostnameWhen dealing with networking issues, it often helps to be able to use only IP addresses rather thanhostnames.Why? For 2 reasons.First, the name server might not always be available if routing is beingchanged.And most important, you may not have the time to wait for all the IP resolving to be done.Fortunately, many networking utilities in Linux share a common option flag.The -n flag.It will allow you tomake the utility display IP addresses rather than hostnames.Here are a few examples:netstat -antraceroute 1.2.3.4 -narp -n -a -i eth0 -a proxyThese commands were all given the -n flag and will display only IP addresses.84 100 Linux Tips and TricksTip 5: Is my modem a winmodem?Winmodems are modems which lack some hardware.They use software drivers to emulate the hardware, andthe CPU to do some tasks.Unfortunately the drivers provided by the winmodem manufacturers are Windowsonly.There is no sure way to know if the modem should work in Linux or not, except trying it yourself, or asksomeone else who has tried it.Fortunately, there is a Web site with a very long list of modems that are knownto work in Linux, and those that are winmodems.The Web site can be found athttp://www.o2.net/~gromitkc/winmodem.html.85 100 Linux Tips and TricksTip 6: Sharing files from a Windows systemThe protocol to use to be able to share files with Windows systems is called SMB.Linux supports natively alot of file systems and network protocols.SMB is one of them [ Pobierz całość w formacie PDF ]
  • zanotowane.pl
  • doc.pisz.pl
  • pdf.pisz.pl
  • agnieszka90.opx.pl