ラベル Ubuntu の投稿を表示しています。 すべての投稿を表示
ラベル Ubuntu の投稿を表示しています。 すべての投稿を表示

2011年11月23日水曜日

Enable userdir on apache2


I wanted a directory named "public_html" under each user home directory for a public web folder.

(1) Enable mod_userdir
sudo a2emod userdir

(2) Edit userrdir.conf
sudo vi /etc/apache2/mods-enabled/userdir.conf, and then make sure the line "UserDir public_html" are included.

(3) Restart apache2
sudo /etc/int.d/apache2 restart

and also make sure that your home directory is accessible from a user running apache2. Permissions of your home directory will be "711" and your public_html will be 755.

2011年11月20日日曜日

sudoer and ssh on ubuntu and prgmr.com


1. sudoer
(1) Add admin by executing the following command
addgroup admin

(2) Add user to admin group by executing the following command
add username admin

(3) Add the following line to /etc/sudoers for giving sudo rights to admin group
# Members of the admin group may gain root privileges
%admin ALL=(ALL) ALL

2. ssh
(1) On ubuntu, do ssh-keygen -t dsa and then remove generated files. This is just for creating .ssh directory under your home.
(2) Copy my public key to remote server:~/.ssh/authorized_keys
(3) Do chmod .ssh/authorized_keys.

2011年11月19日土曜日

Manual IP configuration and DNS utils on Ubuntu and prgrm



(1) Manual ip address configuration on ubuntu

My new ip address is the following.
$host xxx.new.xen.prgmr.com has address NNN.NNN.NNN.NNN

/etc/network/interfaces has been modified to update with the above.

(2) Install dns utilities
The dig and other dns utilities has been installed by the following command line.
sudo apt-get install dnsutils

(3) Remap my own domain to a new global ip address
Two of A records, @ and www, have been updated with the new addresses.

Reference on CNAME
http://www.zytrax.com/books/dns/ch8/cname.html

2010年8月30日月曜日

Ubuntu の入れ直し @ prgmr.com

多分、以下のリンク先が一番わかりやすいと思う。

http://book.xen.prgmr.com/mediawiki/index.php/Fresh_ubuntu_install