Difference between revisions of "SUNScholar/Install Ubuntu/S04"
(→Step 5) |
|||
| Line 57: | Line 57: | ||
dns-domain sun.ac.za | dns-domain sun.ac.za | ||
</pre> | </pre> | ||
| + | |||
| + | Type the following to setup the network interface. '''This can only be done after the campus network administrator has registered your server on the network.''' | ||
| + | sudo nano /etc/network/interfaces | ||
| + | Apply the network setting given to you by the campus network administrator. | ||
| + | |||
| + | {{NANO}} | ||
===Setup the software repositories=== | ===Setup the software repositories=== | ||
Revision as of 13:51, 4 August 2012
Contents
Step 4. After Installation
Network registration
You need to contact the campus network administrator and register your servers MAC address for TCP/IP hostname registration.
To get your servers MAC address type the following in a terminal as the dspace or root user:
sudo ifconfig
Something like the following should scroll by:
dspace@ir2:~$ sudo ifconfig
[sudo] password for dspace:
eth0 Link encap:Ethernet HWaddr 00:0c:29:02:3e:00
inet addr:146.232.129.131 Bcast:146.232.129.255 Mask:255.255.254.0
inet6 addr: fe80::20c:29ff:fe02:3e00/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:81959326 errors:23 dropped:0 overruns:0 frame:0
TX packets:55609424 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3646385659 (3.3 GB) TX bytes:1837131118 (1.7 GB)
Interrupt:16 Base address:0x1424
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:2843219 errors:0 dropped:0 overruns:0 frame:0
TX packets:2843219 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1171132031 (1.0 GB) TX bytes:1171132031 (1.0 GB)
Take note of: HWaddr 00:0c:29:02:3e:00 from the third line above, this is the MAC address that your campus network administrator will need in order to register your server. Of course yours will be different to the one above. MAC address's are normally unique per network adapter per computer.
There are two options for network setup:
- a) Use a static IP address
- b) Use DHCP for assigning the IP address.
It is good practice to use the static method for assigning the IP address. Request the campus network administrator to do so.
We use static network registration for all our servers. Below is an example of our servers network config file in: /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 146.232.66.15
netmask 255.255.254.0
network 146.232.66.0
broadcast 146.232.67.255
gateway 146.232.66.1
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 146.232.128.1 146.232.128.10
dns-search *.sun.ac.za
dns-domain sun.ac.za
Type the following to setup the network interface. This can only be done after the campus network administrator has registered your server on the network.
sudo nano /etc/network/interfaces
Apply the network setting given to you by the campus network administrator.
- NANO Editor Help
| CTL+O | = Save the file and then press Enter |
| CTL+X | = Exit "nano" |
| CTL+K | = Delete line |
| CTL+U | = Undelete line |
| CTL+W | = Search for %%string%% |
| CTL+\ | = Search for %%string%% and replace with $$string$$ |
| CTL+C | = Show line numbers |
More info = http://en.wikipedia.org/wiki/Nano_(text_editor)
Setup the software repositories
After you have correctly registered your servers TCP/IP hostname, then you can setup the software repositories.
Step 1
On your client PC with the Ubuntu desktop installed, open a command line terminal by typing the following:
CTL+ALT+t
Step 2
Login to your remote server as the "dspace" user by typing as follows in the terminal.
ssh dspace@%hostname%
Replace %hostname% with the hostname of your server.
Step 3
Type the following in a console/terminal/xterm to back up the original file:
sudo cp /etc/apt/sources.list /etc/apt/sources.list-original
Type the following in a console/terminal/xterm to edit a new file:
sudo nano /etc/apt/sources.list
Tip: It is always a good idea to maximise the open nano window so that the copy and paste of long lines does not wrap around.
Step 4
Delete all of the existing contents in the /etc/apt/sources.list file using the CTL+K key repeatedly and then add the following using the copy and paste functions of "nano" and "firefox";
deb ftp://ftp.sun.ac.za/ubuntu lucid main restricted universe multiverse deb ftp://ftp.sun.ac.za/ubuntu lucid-updates main restricted universe multiverse deb ftp://ftp.sun.ac.za/ubuntu lucid-security main restricted universe multiverse deb ftp://ftp.sun.ac.za/ubuntu lucid-backports main restricted universe multiverse deb ftp://ftp.sun.ac.za/pub/mirrors/3dpartyubuntu/partner/ lucid partner
Step 5
- NANO Editor Help
| CTL+O | = Save the file and then press Enter |
| CTL+X | = Exit "nano" |
| CTL+K | = Delete line |
| CTL+U | = Undelete line |
| CTL+W | = Search for %%string%% |
| CTL+\ | = Search for %%string%% and replace with $$string$$ |
| CTL+C | = Show line numbers |
More info = http://en.wikipedia.org/wiki/Nano_(text_editor)
Step 6
Type:
sudo apt-get update
to update the repository list.
Step 7
Type:
sudo apt-get dist-upgrade
to upgrade to the latest software.
PREVIOUS
NEXT