Konfigurowanie sieci

Jest wiele sposobów na konfiguracje oraz ustawianie jak Twój komputer ma zachowywać się w sieci.

Podłącz do sieci

Jeśli zmienisz ustawienia twojego połączenia z siecią, albo podłączysz się do innej sieci, niż zwykle, możliwe, że będziesz musiał sam uruchomić połączenie.

Użyj Menedżera Sieci aby podłączyć się do sieci

Jeśli twoje połączenia sieciowe są zarządzane przez Menedżera Sieci(w większości są), połączenie powinno być uruchomione automatycznie.

Jeśli połączenie nie uruchamia się automatycznie:

  1. Find the Network Manager icon in the notification area. It should look like a small signal strength indicator or a computer monitor and will probably be close to the clock

  2. Right-click the icon and ensure that Enable Networking is ticked

  3. If you have a wireless network connection, also ensure that Enable Wireless is ticked

  4. Left-click once on the Network Manager icon and then click on the network you want to connect to

  5. After a short period you should receive a message which says Connection Established

  6. Obecnie powinieneś być podłączony do sieci.

If you are not connected to a network after following the procedure above:

  1. Ponownie kliknij lewym przyciskiem myszy na ikonie Menedżera Sieci i wciśnij Ręczna konfiguracja...

  2. Select the Connections tab

  3. Tick the box next to your network connection to enable the connection

  4. Proces łączenia się może potrwać chwilę

  5. Naciśnij Zamknij

Use the ifup command to connect to a network

ifup is a command-line tool for enabling network connections.

Aby włączyć połączenie sieciowe:

  1. Wybierz AplikacjeAkcesoriaTerminal aby otworzyć terminal

  2. Type sudo ifdown eth1 in the Terminal and press Return, replacing eth1 with the name of your network interface if it is different

  3. Enter your password if prompted

  4. Type sudo ifup eth1 in the Terminal and press Return, again replacing eth1 with the name of your network interface

  5. Po udanym połączeniu powinieneś zobaczyć komunikat podobny do poniższego (liczby mogą być inne):

    DHCPACK from 192.168.2.1
    	bound to 192.168.2.4 -- renewal in 536349522 seconds.

Wyłącz połączenie sieciowe

Sometimes you may want to disable a network connection. There are several different ways of achieving this.

Rozłączenie się przy użyciu Menedżera Sieci

It is likely that Network Manager is running your network connections. If so, you must disconnect from the network by disabling your network connection in Network Manager:

  1. Find the Network Manager icon in the notification area. It should look like a small signal strength indicator or a computer monitor and will probably be close to the clock

  2. Right-click the icon and untick Enable Networking

  3. Powinieneś zostać odłączony od sieci

Rozłączanie przy użyciu Ustawień Sieci

If Network Manager is not running, use the Network Settings tool to disconnect your network connection:

  1. Wciśnij AplikacjeSystemSieć

  2. Select the Connections tab

  3. Untick your network connection to disconnect it

  4. Naciśnij Zamknij

Rozłączanie przy użyciu komendy ifdown

ifdown is a command-line tool for disabling network connections.

Aby wyłączyć połączenie sieciowe przy użyciu ifdown:

  1. Wybierz AplikacjeAkcesoriaTerminal aby otworzyć terminal

  2. Type sudo ifdown eth1 in the Terminal and press Return, replacing eth1 with the name of your network interface if it is different

  3. Enter your password if prompted

  4. Twoje połączenie sieciowe powinno zostać rozłączone

Zmiana nazwy komputera

When connected to a network, your computer can be referred to by its host name. It is possible to change the host name of your computer.

  1. Otwórz AplikacjeSystemSieć.

  2. Kliknij General, i wprowadź nazwę komputera w polu Host name.

Uruchom komputer ponownie, aby zastosować zmiany.

Dziel się plikami i folderami z innymi komputerami

Możesz dzielić pliki i foldery z innymi ludźmi w twojej sieci.

  1. Naciśnij AplikacjeSystemFoldery Udostępnione

  2. You may receive a message which says Sharing services are not installed. If this is the case, ensure that the two checkboxes in the message box are checked and press Install services. Sharing service support will then be downloaded and installed; this may take a while.

  3. Select the Shared Folders tab and press Add

  4. Select the location of the folder you wish to share by changing the Path option

  5. Choose Windows networks (SMB) from the Share through option

  6. Wprowadź nazwę i komentarz dla udostępnionego folderu

  7. If you would like people accessing the shared folder to be able to add, change and remove files in the folder, uncheck Read only. If you leave Read only checked, people will only be able to view files in the folder

  8. Press OK to make the shared folder available. Other people on the same network (LAN) as you should now be able to access the folder

Dostęp do folderów udostępnionych w systemie Microsoft Windows

Jeżeli chcesz, aby był możliwy dostęp do folderów znajdujących się na komputerze z Xubuntu, przy użyciu systemu Windows, będziesz musiał wykonać kilka dodatkowych kroków:

  1. Wybierz AplikacjeAkcesoriaTerminal aby otworzyć terminal

  2. Wpisz sudo smbpasswd -a username, w miejsce „username”wstawiając swoją nazwę użytkownika. Następnie wciśnij klawisz Return, aby wykonać komendę.

    [Notatka]

    Możesz znaleźć, jaka jest twoja nazwa użytkownika, jeśli w wpiszesz w terminalu whoami a następnie wciśniesz klawisz Return

  3. Kiedy wyświetli się „[sudo] password for username:”, wpisz swoje hasło i ponownie wciśnij klawisz Return.

  4. Kiedy wyświetli się „New SMB password:”, wpisz hasło, którego chcesz używać do dostępu do udostępnionego folderu, a następnie wciśnij klawisz Return. Możesz pozostawić puste hasło, jeśli chcesz aby każdy miał dostęp do tego folderu.

  5. Kiedy wyświetli się „Retype new SMB password:”, wpisz ponownie wybrane hasło i wciśnij klawisz Return

  6. Powinieneś już móc połączyć się z udostępnionymi folderami na komputerze z Xubuntu.

Problems connecting to shared folders in Microsoft Windows

Jeżeli nie możesz połączyć się z udostępnionymi folderami używając Microsoft Windows, to aby uzyskać dostęp, spróbuj użyć adresu IP komputera z Xubuntu zamiast jego nazwy hosta:

  1. Press ApplicationsSystemNetwork Tools and select the Devices tab

  2. Select the name of your network connection from the Network device option list (for example, „eth0”). If you have several network connections, you may have to try this several times.

  3. Make a note of the number in the IP address column. It should consist of four numbers separated by dots (for example, „192.168.2.10”)

  4. Na komputerze z systemem Microsoft Windows wybierz StartUruchom i wpisz \\ipaddress w pole tekstowe zamieniając „ipaddress” na adres IP komputera z Xubuntu

  5. Wciśnij OK aby połączyć się z udostępnionym folderem

If you are still unable to access the shared folder, check that the folder sharing service is running on the Xubuntu computer:

  1. Press ApplicationsSystemServices

  2. Find the Folder sharing service (samba) and ensure that the checkbox next to it is checked

  3. Naciśnij Zamknij

Więcej informacji można uzyskać na społecznościowych stronach pomocy Ubuntu.

Zainstaluj firewalla

A firewall protects a computer system from unauthorized access. It is not normally necessary to install a firewall on an Xubuntu system, because access to the system is closed by default. However, if you run any services that let other computers access yours (for example, the Apache web server), it is advisable to install a firewall. Firestarter is a program that lets you control a firewall through a graphical interface.

  1. Install the Firestarter package from the „Universe” repository (see Rozdział 11, Dodawanie, usuwanie i uaktualnianie programów).

  2. After it is installed, run ApplicationsSystemFirestarter to configure your firewall. The firewall will now start in the background when your computer starts.

Monitoruj ruch sieciowy

EtherApe pokazuje aktywność sieci pomiędzy różnymi komputerami używając okręgów o zmiennych rozmiarach.

  1. Install the etherape package from the „Universe” repository (see Rozdział 11, Dodawanie, usuwanie i uaktualnianie programów).

  2. Press ApplicationsNetworkEtherape.

Przeanalizuj ruch w sieci

Wireshark is a network traffic analyzer/sniffer that captures packets off the network in real time and displays their contents.

  1. Install the wireshark package from the „Universe” repository (see Rozdział 11, Dodawanie, usuwanie i uaktualnianie programów).

  2. Press ApplicationsNetworkWireshark