2011年10月20日 星期四

Ubuntu Server 安裝手順




# A.

#install ssh
sudo apt-get install openssh-client openssh-server

#open remote connect
sudo gedit /etc/ssh/ssh_config
# remark Port 22
# add  AllowUsers  USERNAME
sudo /etc/init.d/ssh stop
sudo /etc/init.d/ssh start
# cline use command to connect server
# ssh-keygen -R 192.168.3.226
# ssh -X asus95@192.168.3.226
# B.
#install subversion server
sudo apt-get install subversion

Choose System > Administration > Users and Groups from your Ubuntu menu.
Click the 'Manage Groups' button.
Click the 'Add' button.
Name the group 'subversion'
Add yourself and www-data (the Apache user) as users to this group
(Note: in order to see www-data you may need to see FixShowAllUsers)
Click 'OK', then click 'Close' twice to commit your changes and exit the app.

$ cd /home/svn
$ sudo chown -R www-data:subversion myproject
$ sudo chmod -R g+rws myproject

sudo gedit /home/svn/myproject/conf/svnserve.conf

# 根目錄 /media/RAID5/svn
$ svnserve -d --foreground -r /media/RAID5/svn

# you must run the following command
# svn://hostname/

# C.
#install apache mysql php
#sudo apt-get install apache2 php5-mysql php5-cli libapache2-mod-php5 mysql-server phpmyadmin php5-dev php-pear

sudo apt-get install apache2

sudo apt-get install samba 

沒有留言:

張貼留言