How to setup a Ubuntu Server?
来源:互联网 发布:海岛奇兵所有升级数据 编辑:程序博客网 时间:2024/04/29 11:51
Requirement:
Software: Ubuntu iso image, UNetbootin
Hardware: A 4GB 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 internet.
We can configure these settings byUbuntu GUI tools.
For example:
Gateway:192.168.9.180
Proxy:proxy.local(Authenticate information should 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.
- How to setup a Ubuntu Server?
- How to setup FTP server in ubuntu
- How to setup a GIT server with gitosis and gitweb
- How to Setup a TFTP Server Under CentOS/RHEL 6
- How to setup SVN server
- How To Setup a CA
- How to Setup A Database
- how to setup telnet in ubuntu
- how to setup SSH on ubuntu
- How to setup a test/dev Datazen Server instance in Microsoft Azure
- How to setup VPN server (PPTP on CentOS, RedHat and Ubuntu)
- How to Install a VNC Server in Ubuntu
- How to install Deluge on a Ubuntu Server
- How to Install a VNC Server in Ubuntu
- how to setup a new user to hdfs
- how to setup DatabaseMail(with MS Exchange Server)
- How To Setup Gitolite Server - The Newest Version
- How to setup Relay host in mail server
- 信息论-matlab求信道容量(迭代法)
- linux下静态编译ffmpeg及opencv的C++工程
- flex+BlazeDS关于军标的实现思路和算法
- JSP自定义标签开发入门
- HTML中ul,ol,li,dl,dt,dd标签用法
- How to setup a Ubuntu Server?
- 分布式数据库复本变化信息的导出导入
- thinkphp 验证 自动填充
- java.lang.NoClassDefFoundError: org/apache/poi/POIXMLTextExtractor
- 62域(六),
- 认识OAuth签名使用的HMACSHA1哈希算法
- 常用JS加密编码算法
- 揭秘史上真实的张飞:面如美玉 风流倜傥
- java版 程序员的情书 源自一个牛叉的帖子