Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions

  




 

 

Chapter 7. Networking

7.1. How do I configure network connections?
7.2. How do I activate/deactivate network connections?
7.3. How do I change computer name?
7.4. How do I browse network computers?
7.5. How do I use the DynDNS service?
7.6. How do I use Ethernet over Firewire?
7.1.

How do I configure network connections?

  1. System->Administration->Networking

  2. Select the Connections tab. select the Ethernet connection interface from the list, then click the Properties button. Ensure that the This device is configured is checked. From the Configuration drop-list select DHCP/Static IP address, then click OK.

  3. Select the DNS tab add or delete DNS Servers in the DNS Servers list.

7.2.

How do I activate/deactivate network connections?

  1. System->Administration->Networking

  2. Select Network settings+Connections Tab+Ethernet connection Activate/Deactivate

7.3.

How do I change computer name?

  1. System->Administration->Networking

  2. Select the General tab. Enter the name of the computer in the Hostname field.

  3. Click OK, close all open applications and reboot.

7.4.

How do I browse network computers?

[Note]

Assuming that network connections have been configured properly. See How do I configure network connections? for more information.

  1. This screen lists all network servers and Samba servers, if computers, network folders or Sambas servers could not be found, try to access them directly.

    Places->Network Servers

7.5.

How do I use the DynDNS service?

  1. Before beginning, ensure that your internet connection has been configured properly.

  2. Read How do I add Universe and Multiverse?

  3. Register free Dynamic DNS at http://www.dyndns.org.

  4. Install the ipcheck package with Synaptic (See How do I use Synaptic to install packages?)

    Networking (universe) > ipcheck

  5. sudo gedit /root/dyndns_update.sh

  6. Insert the following lines into the new file

    USERNAME=myusername
    PASSWORD=mypassword
    HOSTNAME=myhostname.dyndns.org
    cd /root/
    if [ -f /root/ipcheck.dat ]; then
        ipcheck -r checkip.dyndns.org:8245 $USERNAME $PASSWORD $HOSTNAME
    else
        ipcheck --makedat -r checkip.dyndns.org:8245 $USERNAME $PASSWORD $HOSTNAME
    fi

  7. Save the edited file

  8. sudo chmod 700 /root/dyndns_update.sh 
    sudo sh /root/dyndns_update.sh 
    export EDITOR=gedit && sudo crontab -e

  9. Append the following line at the end of file to refresh your IP in the DynDNS Database/DNS every hour. The ***** format equals minute, hour, date, month and year respectively.

    00 * * * * sudo sh /root/dyndns_update.sh

  10. Save the edited file

7.6.

How do I use Ethernet over Firewire?

[Warning]

Enabling Ethernet over Firewire involves recompiling your kernel, which can seriously break your system. For more information, see https://wiki.ubuntu.com/KernelCompileHowto.

  1. You need to compile a kernel including the following (NOT as modules):

    ieee1394

    ohci1394

    eth1394

  2. Reboot your PC

  3. Your firewire ethernet connection should be listed under System-> Administration-> Networking, or you can use ifconfig to list your network devices

  4. See https://wiki.ubuntu.com/EthernetOverFirewire for more information.

Samba Server

1. What is Samba?
2. How do I install Samba?
3. How do I add/edit/delete network users when using authentication?
4. How do I share home folders with read only permission?
5. How do I share home folders with read/write permission?
6. How do I share a group folder with read only permission?
7. How do I share a group folder with read/write permission?
8. How do I share public folders with read only permission?
9. How do I share public folders with read/write permission?
1.

What is Samba?

Samba is a networking tool that enables Linux to participate in Windows networks. There are two parts to Samba, one being the server which shares out files and printers for other PC's to use, and the other being the client utilities, which allow Linux to access files and printers on other Windows/Samba PCs.

2.

How do I install Samba?

  1. Read How do I add Universe and Multiverse?

  2. Install the samba and smbfs packages with Synaptic (See How do I use Synaptic to install packages?)

    Networking > samba
    Cross Platform > smbfs

3.

How do I add/edit/delete network users when using authentication?

  1. Read How do I install Samba?

  2. To add network user

    1. Read How do I add/edit/delete users?

    2. smbpasswd -a system_username
      sudo gedit /etc/samba/smbusers

    3. Insert the following line into the new file

      system_username = "network username"
    4. Save the edited file (sample/smbusers_addeditdeletenetworkusers)

  3. To edit network user

    sudo smbpasswd -a system_username
  4. To delete network user

    sudo smbpasswd -x system_username
4.

How do I share home folders with read only permission?

  1. Read How do I install Samba?

  2. sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup
    sudo gedit /etc/samba/smb.conf

  3. Find this line

    ...
        ; security = user
    ...
  4. Replace with the following lines

    security = user username map = /etc/samba/smbusers

    Alternatively replace with the following line to skip authentication

    security = share
  5. Save the edited file ( sample/smb.conf_sharehomefoldersreadsecurityuser)

  6. If using authentication read How do I add/edit/delete network users when using authentication?

  7. sudo testparm sudo /etc/init.d/samba restart

5.

How do I share home folders with read/write permission?

  1. Read How do I install Samba?

  2. sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup
    sudo gedit /etc/samba/smb.conf

  3. Find this line

    ...
    ; security = user
    ...
  4. Replace with the following lines

    security = user 
    username map = /etc/samba/smbusers

    Alternatively replace with the following line to skip authentication

    security = share
  5. Find this section

    ...
        # By default, the home directories are exported read-only. Change next
        # parameter to 'yes' if you want to be able to write to them.
        writable = no
    ...
  6. Replace with the following lines

    # By default, the home directories are exported read-only. Change next
    # parameter to 'yes' if you want to be able to write to them.
    writable = yes
  7. Save the edited file (sample/smb.conf_sharehomefoldersreadwritesecurityuser)

  8. If using authentication read How do I add/edit/delete network users when using authentication?

  9. sudo testparm sudo /etc/init.d/samba restart

6.

How do I share a group folder with read only permission?

  1. Read How do I install Samba?

  2. sudo mkdir /home/group sudo chmod 777 /home/group/ 
    sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup 
    sudo gedit /etc/samba/smb.conf

  3. Find this line

    ...
    ; security = user
    ...
  4. Replace with the following lines

    security = user 
    username map = /etc/samba/smbusers

    Alternatively replace with the following line to skip authentication

    security = share
  5. Append the following lines at the end of file

    [Group]
    comment = Group Folder
    path = /home/group
    public = yes
    writable = no
    valid users = system_username1 system_username2
    create mask = 0700
    directory mask = 0700
    force user = nobody
    force group = nogroup
  6. Save the edited file ( sample/smb.conf_sharegroupfoldersreadsecurityuser)

  7. If using authentication read How do I add/edit/delete network users when using authentication?

  8. sudo testparm sudo /etc/init.d/samba restart

7.

How do I share a group folder with read/write permission?

  1. Read How do I install Samba?

  2. sudo mkdir /home/group sudo chmod 777 /home/group/ 
    sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup 
    sudo gedit /etc/samba/smb.conf

  3. Find this line

    ...
    ; security = user 
    ...
  4. Replace with the following lines

    security = user 
    username map = /etc/samba/smbusers

    Alternatively replace with the following line to skip authentication

    security = share
  5. Append the following lines at the end of file

    [Group]
        comment = Group Folder
        path = /home/group
        public = yes
        writable = yes
        valid users = system_username1 system_username2
        create mask = 0700
        directory mask = 0700
        force user = nobody
        force group = nogroup
  6. Save the edited file (sample/smb.conf_sharegroupfoldersreadwritesecurityuser)

  7. If using authentication read How do I add/edit/delete network users when using authentication?

  8. sudo testparm sudo /etc/init.d/samba restart

8.

How do I share public folders with read only permission?

  1. Read How do I install Samba?

  2. sudo mkdir /home/public
    sudo chmod 777 /home/public/
    sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup 
    sudo gedit /etc/samba/smb.conf

  3. Find this line

    ... 
    ; security = user 
    ...
  4. Replace with the following lines

    security = user
    username map = /etc/samba/smbusers

    Alternatively replace with the following line to skip authentication

    security = share
  5. Append the following lines at the end of file

    [public]
        comment = Public Folder
        path = /home/public
        public = yes
        writable = no
        create mask = 0777
        directory mask = 0777
        force user = nobody
        force group = nogroup
  6. Save the edited file (sample/smb.conf_sharepublicfoldersreadsecurityuser)

  7. If using authentication read How do I add/edit/delete network users when using authentication?

  8. sudo testparm sudo /etc/init.d/samba restart

9.

How do I share public folders with read/write permission?

  1. Read How do I install Samba?

  2. sudo mkdir /home/public
    sudo chmod 777 /home/public/ 
    sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup 
    sudo gedit /etc/samba/smb.conf

  3. Find this line

     
    
    security = user 
    
  4. Replace with the following lines to use authentication

     
    security = user 
    username map = /etc/samba/smbusers

    Alternatively replace with the following line to skip authentication

    security = share
                                
  5. Append the following lines at the end of file

    [public]
        comment = Public Folder 
        path = /home/public 
        public = yes 
        writable = yes
        create mask = 0777 
        directory mask = 0777 
        force user = nobody 
        force group = nogroup
  6. Save the edited file (sample/smb.conf_sharepublicfoldersreadwritesecurityuser)

  7. If using authentication read How do I add/edit/delete network users when using authentication?

  8. sudo testparm sudo /etc/init.d/samba restart

 
 
  Published under the terms of the Creative Commons License Design by Interspire