Xubuntu Offline Documentation

Chapter 6. Connecting to Internet and Networks

Table of Contents

Network connections
Network troubleshooting
Connecting to servers

Xubuntu uses NetworkManager to manage wired, wireless, mobile broadband, VPN and DSL connections. NetworkManager also keeps passwords secure by utilizing the user's keyring to store passphrases.

NetworkManager is the little icon in the upper panel in the top right of your screen. When not connected, the icon shows two grayed out arrows pointing up and down. When you are connected, the icon is different depending on the network type in use.

Network connections

Connecting and disconnecting

NetworkManager will automatically use a wired network, if one is available.

To see all available connections, click the NetworkManager icon. To connect to a network, click the network name.

[Note]

If you are connecting to a wireless network for the first time, security details may be needed. If so, a dialog box will open. In most cases, the security type will be detected automatically. If not, select the security type from the Wireless Security drop-down box, enter the authentication details and press Connect.

To disconnect from a network, click the NetworkManager icon, and select Disconnect under the appropriate connection type. To disable (and re-enable) wired and/or wireless connections all together, click the NetworkManager icon and select Enable/Disable Networking/Wireless.

Configuring connections

If you need to configure your connections, click the NetworkManager icon and select Edit Connections. In the dialog, you will see tabs for each connection type. Select the appropriate tab and either select a network and press Edit or press Add to set up new networks.

[Note]

To be able to connect to certain networks you might need connection details which you will get from your network administrator or your Internet Service Provider.

Connection information

To see the connection information, click the NetworkManager icon and select Connection Information.

Sharing your connection to another computer

You can share your connection to another computer using an Ethernet cable. This can be carried out by clicking the NetworkManager icon, selecting Edit Connections, and then adding a new wireless connection (or editing the existing one). In the connection properties window, select IPv4 Settings, and change Method to Shared to other computers from the drop-down list.

Dialup modems

Unfortunately, dialup modems are not supported by NetworkManager. To read about connecting with a dialup modem, please refer to the Dialup modem How-to on the Ubuntu community wiki.

Network troubleshooting

Before attempting any troubleshooting, ensure that the network connections are enabled:

  • Click the NetworkManager icon in the notification area

  • Check Enable Networking

  • Check Enable Wireless

If your network connection still doesn't work:

General troubleshooting

If your network connection is not working properly, there are a few tools that can be used to help diagnose the problem.

Get information about the current connection

To get information about your network connection and network devices, you have two options:

  • Using NetworkManager

    • Click on the NetworkManager icon

    • Select Connection Information. If Connection Information is disabled, it is likely there is no active connection. Try using ifconfig to find out more.

    • Each active connection will have its own tab where you can find relevant connection information

  • Using ifconfig

    • Open a terminal (AccessoriesTerminal Emulator) and type the command ifconfig and press Enter

    • ifconfig will show you extensive information about your connection, including logical or connection name(s) (eg. eth1) in the left column, IP address in the inet addr column and the MAC address for your device in the HWaddr column

Check if a connection is working properly

A reliable method to check if a connection is working properly is to ping another computer on the network or the Internet.

To check if your computer is connected to the Internet, open a terminal (AccessoriesTerminal Emulator) and type the command ping -c 3 www.xubuntu.org and press Enter

The computer will then attempt to contact www.xubuntu.org three times and display the results. The ping statistics displays the number of packets transmitted, how many packets were received, the percentage of packet loss, and the total time spent.

  • 0% packet loss indicates that your computer is connected to the Internet

  • Greater than 0% but less than 100% packet loss indicates that your computer has a poor connection to the Internet or a poor wireless signal

  • 100% packet loss indicates that your computer has a very bad connection, or is connected to an access point or router that is not connected to the Internet

If you get an error message that says "www.xubuntu.org can not be found" or "unknown host", then your computer is probably not connected to the Internet or is unable to reach a Domain Name System (DNS) server.

Wireless troubleshooting

This section covers some common problems faced with wireless support. There is much more information available in the Community Documentation.

[Note]

Please note that this troubleshooting guide is designed to be carried out in order, unless you are pointed to a different subsection

Check that the device is turned on

Many wireless network devices can be turned on or off. Check for a hardware switch or a keyboard function key to turn the wireless device on.

If the device is turned on, continue to the next topic.

Check if the device is recognized

Open a terminal (AccessoriesTerminal Emulator) and type the command sudo lshw -C network and press Enter. You will see some output, along with the words CLAIMED, UNCLAIMED, ENABLED or DISABLED.

Using Windows wireless drivers

Xubuntu supports a system known as NDISWrapper. This allows you to use a Windows wireless device driver under Xubuntu. To start using NDISWrapper:

  • Obtain the Windows driver for your network device and locate the file that ends with .inf

  • Install the ndisgtk package

  • Go to SystemWindows Wireless Drivers

  • Select Install new driver

  • Choose the location of your Windows .inf file and click Install

  • Click OK

Checking for a connection to the router

Open a terminal (AccessoriesTerminal Emulator) and type the command iwconfig and press Enter.

If the ESSID for your router is displayed, there may be a problem with ACPI support. Boot Xubuntu with the pci=noacpi option.

Advanced troubleshooting

The following troubleshooting methods are a bit more technical. Please try these methods only if the above methods failed.

Checking IP assignment

Open a terminal (AccessoriesTerminal Emulator) and type the command ifconfig and press Enter. If there is an IP address displayed, continue to the section called “Check DNS”.

From the terminal enter the following command, replacing eth1 with the name of the connection outputted from the ifconfig command: sudo dhclient eth1

Check DNS

Open a terminal (AccessoriesTerminal Emulator) and type the command cat/etc/resolv.conf and press Enter.

If there is no nameserver listed, contact your Internet Service Provider (ISP), and find out your primary and secondary domain name servers. Once you have this information, continue to the section called “Connecting and disconnecting” and the section called “Configuring connections” if needed.

Connecting to servers

To connect to various types of servers, you can use SystemGigolo. To connect to a server, follow the steps below:

  • Go to ActionsConnect

  • Select the appropriate Service type and insert connection information

  • Click Connect; if you are attempting to connect a server that requires you to log in, you will be prompted to enter a password

Upon successfully connecting to the server, an icon labeled with connection details will appear in the Gigolo window. To bookmark connections, right-click on a connection and select Create Bookmark. In the Edit Bookmarks dialog, you can name the bookmark and set other options, including the option to auto-connect. Once you are done, click OK to create the bookmark.

[Tip]

The Windows Share username should be in the format DOMAIN\username

[Note]

For SAMBA Networks (Windows shares), the package gvfs-backends needs to be installed in order to connect using the Thunar File Manager.