eg-253:network:step1
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
eg-253:network:step1 [2007/10/25 16:35] – eechris | eg-253:network:step1 [2011/11/03 14:07] (current) – [Message of the Day and System Log] eechris | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Basic Host Configuration ====== | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ===== Setting Up the User Accounts ===== | ||
+ | |||
+ | When you installed Ubuntu Linux (whether as a server or desktop client) you created a special administrator' | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ===== Create a safety net ===== | ||
+ | |||
+ | Before we change the //root// password (so that we can use it when we need act as the superuser) it is wise to make a few changes to the behaviour of the dangerous commands '' | ||
+ | |||
+ | login: icct | ||
+ | password: ************* | ||
+ | [message of the day /etc/motd displayed] | ||
+ | icct@myhost: | ||
+ | |||
+ | If on a desktop machine, login through the graphical user interface as //icct//, then launch a terminal window from '' | ||
+ | <cli> | ||
+ | icct@myhost: | ||
+ | </ | ||
+ | Add the following lines to the end of the file((Robert Storey, "//The Ubuntu Juggernaut, Resistance is Futile//", | ||
+ | |||
+ | alias rm='rm -i' | ||
+ | alias cp='cp -i' | ||
+ | alias mv='mv -i' | ||
+ | set -o noclobber | ||
+ | |||
+ | Repeat with ''/ | ||
+ | |||
+ | The settings themselves make sure that you will be asked to confirm '' | ||
+ | |||
+ | ===== Setting the root password ===== | ||
+ | |||
+ | To set the root password, use the command: | ||
+ | |||
+ | <cli> | ||
+ | icct@myhost: | ||
+ | </ | ||
+ | |||
+ | I suggest that we all use the agreed password //swansea// so that we can all continue to administer the system. Alternatively, | ||
+ | |||
+ | ===== Create normal users ===== | ||
+ | |||
+ | For day to day use of the system, it is better to create non-privileged accounts. On a desktop machine, the easiest way to do this is by going to '' | ||
+ | |||
+ | If you are using a server, with no windows interface, you have to use the adduser command((Note the username //auser// is just an example. You should enter a suitable login for yourself)): | ||
+ | |||
+ | <cli> | ||
+ | icct@myhost: | ||
+ | Password: ********* | ||
+ | Enter a username to add: auser | ||
+ | Adding user `auser' | ||
+ | Adding new group `auser' | ||
+ | Adding new user `auser' | ||
+ | Creating home directory `/ | ||
+ | Copying files from `/ | ||
+ | Enter new UNIX password: ************* | ||
+ | Retype new UNIX password: ************* | ||
+ | passwd: password updated successfully | ||
+ | Changing the user information for auser | ||
+ | Enter the new value, or press ENTER for the default | ||
+ | Full Name []: Dr T. Est | ||
+ | Room Number []: Faraday 799 | ||
+ | Work Phone []: 5990 | ||
+ | Home Phone []: | ||
+ | Other []: ICCT Level 2 Student | ||
+ | Is the information correct? [y/N] y | ||
+ | icct@myhost: | ||
+ | </ | ||
+ | |||
+ | ===== Check your account ===== | ||
+ | |||
+ | After creating your account, attempt to login. You can do this from a terminal window by using the command: | ||
+ | |||
+ | <cli> | ||
+ | icct@myhost: | ||
+ | password: ******** | ||
+ | |||
+ | auser@myhost:/ | ||
+ | auser@myhost: | ||
+ | icct@myhost: | ||
+ | </ | ||
+ | |||
+ | ===== Logging in without " | ||
+ | |||
+ | All Linux distributions allow you to log in to a command line interface without logging out from the window system. If you type < | ||
+ | |||
+ | <cli> | ||
+ | auser@myhost: | ||
+ | password: ********** | ||
+ | icct@myhost: | ||
+ | </ | ||
+ | |||
+ | Issue the exit command when you are done. | ||
+ | |||
+ | |||
+ | ===== Message of the Day and System Log ===== | ||
+ | |||
+ | When you login to a Unix machine, the system usually displays the contents of the system file ''/ | ||
+ | |||
+ | <cli> | ||
+ | icct@myhost: | ||
+ | </ | ||
+ | |||
+ | Please ensure that, as a minimum, each member of your team and his/her email address is given and that you point to a system log. The system log itself is to be called ''/ | ||
+ | |||
+ | 2006-mm-dd log entry | ||
+ | |||
+ | If you want to add more than one line of text, or several entries for the same day, use this format: | ||
+ | |||
+ | 2006-mm-dd log entry 1. | ||
+ | | ||
+ | a long entry that goes on and on and needs several lines | ||
+ | of text. | ||
+ | |||
+ | I would be grateful if you could provide a log entry for each configuration change that you make to your host. | ||
+ | |||
+ | ---- | ||
+ | |||
+ | [[eg-253: |