How to setup a Ubuntu server?

Source: Internet
Author: User

Requirement:

Software: Ubuntu ISO image, unetbootin

Hardware: A 4 gb usb stick

1. Download Ubuntu ISO image from thisurl:

Http://mirrors.163.com/ubuntu-releases/10.04/

Select your favorite releaseversion, and download it.

2. Use unetbootin to create a bootable USB stick.

Http://unetbootin.sourceforge.net

3. Install Ubuntu with this USB stick.

 

Now, we have a new installed Ubuntu environment. There are several steps need to bedone.

1. setup network configure

Ubuntu is configured in192.168.9.x, and uses a gateway and a web proxy to connect to the Internet.

We can configure these settings byubuntu GUI tools.

For example:

Gateway: 192.168.9.180

Proxy: proxy. Local (authenticate information shocould be supplied)

After these steps, we must setupnetwork for apt-Get (Notice: global network settings doesn' t influent apt-getnetwork settings, they are independent .)

Login as root, and modify/etc/APT/apt. conf, add authenticate information after proxy server. Forexample:

Acquire: http: proxy "http: // username: PASSWORD@proxy.local: 80 /";

Acquire: ftp: proxy "ftp: // username: PASSWORD@proxy.local: 80 /";

Acquire: https: proxy "https: // username: PASSWORD@proxy.local: 80 /";

2. Create user account & directory

Login as root, and run thesecommands, for example, we add a user whose name is Cisco.

Create user:

Useradd Cisco # Add User

Passwd Cisco # createpassword for Cisco

Gpasswd-a Cisco admin # Add Cisco to Admin group

Mkdir-P/home/Cisco

Chown Cisco/home/Cisco

Chgrp Cisco/home/Cisco

Create directory:

The TFTP directory is created under /.

Mkdir/tftpboot

Mkdir/tftpboot/Cisco

Chowncisco/tftpboot/Cisco

Chgrpcisco/tftpboot/Cisco

The project directory is under ~ :

Mkdir/home/Cisco/Project

3. Install & configure samba

Sudo apt-Get install samba

Modify/etc/samba/smb. conf, addbelow lines:

[Cisco]

Comment = Cisco's project directory

Path =/home/Cisco/Project

Public = Yes

Writable = Yes

Valid users = Cisco

First, create account for thisuser:

Smbpasswd-a Cisco

Then create password for Samba User:

Smbpasswdcisco

And start Samba:

Servicesmbd start

4. Install TFTP Server

A. APT-Get install xinetd tftpd TFTP

B. Create/etc/xinetd. d/TFTP and putthis entry:

Service tftp

{

Protocol = UDP

Port = 69

Socket_type = dgram

Wait = Yes

User = nobody

Server =/usr/sbin/in. tftpd

Server_args =/tftpboot

Disable = No

}

C. sudo/etc/init. d/xinetd start

5. Change runlevel to text mode

Run in text mode will use verylittle memory. We can modify/etc/default/grub and a simple "text" after grub_cmdline_linux_default, just like that:

Grub_cmdline_linux_default = "quiet splash text"

And do not forget run "sudoupdate-grub" to update.

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.