Difference between revisions of "SUNScholar/Install Ubuntu/S04"
m (→Step 4) |
m (→Step 4) |
||
| Line 93: | Line 93: | ||
====Step 4==== | ====Step 4==== | ||
| + | ;:<u><FONT COLOR="RED">FOR UBUNTU 14.04</font></u> | ||
| + | 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"; | ||
| + | |||
| + | <pre> | ||
| + | deb ftp://ftp.sun.ac.za/ubuntu trusty main restricted universe multiverse | ||
| + | deb ftp://ftp.sun.ac.za/ubuntu trusty-updates main restricted universe multiverse | ||
| + | deb ftp://ftp.sun.ac.za/ubuntu trusty-security main restricted universe multiverse | ||
| + | deb ftp://ftp.sun.ac.za/ubuntu trusty-backports main restricted universe multiverse | ||
| + | deb ftp://ftp.sun.ac.za/pub/mirrors/3dpartyubuntu/partner/ trusty partner | ||
| + | </pre> | ||
| + | |||
| + | {{NANO}} | ||
;:<u><FONT COLOR="RED">FOR UBUNTU 12.04</font></u> | ;:<u><FONT COLOR="RED">FOR UBUNTU 12.04</font></u> | ||
| Line 103: | Line 115: | ||
deb ftp://ftp.sun.ac.za/ubuntu precise-backports main restricted universe multiverse | deb ftp://ftp.sun.ac.za/ubuntu precise-backports main restricted universe multiverse | ||
deb ftp://ftp.sun.ac.za/pub/mirrors/3dpartyubuntu/partner/ precise partner | deb ftp://ftp.sun.ac.za/pub/mirrors/3dpartyubuntu/partner/ precise partner | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
</pre> | </pre> | ||
Revision as of 17:39, 16 December 2014
Back to Install Ubuntu - Index
Contents
Step 4. After Ubuntu 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 settings 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
- FOR UBUNTU 14.04
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 trusty main restricted universe multiverse deb ftp://ftp.sun.ac.za/ubuntu trusty-updates main restricted universe multiverse deb ftp://ftp.sun.ac.za/ubuntu trusty-security main restricted universe multiverse deb ftp://ftp.sun.ac.za/ubuntu trusty-backports main restricted universe multiverse deb ftp://ftp.sun.ac.za/pub/mirrors/3dpartyubuntu/partner/ trusty partner
- 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)
- FOR UBUNTU 12.04
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 precise main restricted universe multiverse deb ftp://ftp.sun.ac.za/ubuntu precise-updates main restricted universe multiverse deb ftp://ftp.sun.ac.za/ubuntu precise-security main restricted universe multiverse deb ftp://ftp.sun.ac.za/ubuntu precise-backports main restricted universe multiverse deb ftp://ftp.sun.ac.za/pub/mirrors/3dpartyubuntu/partner/ precise partner
- 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 5
To update the repository list, type:
sudo apt-get update
Step 6
To upgrade to the latest software., type:
sudo apt-get dist-upgrade
Step 7
If this server is running on a VMWare host server, then setup the VMWare client tools by clicking on the link below.
http://ubuntu.sun.ac.za/wiki/index.php/VMWare-Tools