ãããVPSã«Debianãå ¥ãã¦éç¨ããæ¹æ³
ãããVPNã980å/æã¨ããæ ¼å®ã§é常ã«é«ãã¹ããã¯ããããå½ããåã§ããroot権éä»ãã§ãã
CentOSãæ¨æºã§ãã使ãæ
£ããDebianãå
¥ãã¦éç¨ããæ¹æ³ãã¾ã¨ãã¾ãããåãæ¹æ³ã§ubuntuãfreebsdãç°¡åã«ã¯ããã¾ãã
VPS(仮想専用サーバー)|さくらインターネット - 無料お試し実施中
æµãã¯ç°¡åã§
1 ãããããéããã¦ããæ å ±ãå¾ ã¤(rootãã¹ã¯ã¼ããæ¸ãããã¡ã¼ã«ãæ¥ãã¾ã§å¾ ã¡ã¾ããã)
2 ãããVPSã³ã³ããã¼ã«ããã«ããªã¢ã¼ãã³ã³ã½ã¼ã«ããä½æ¥
https://secure.sakura.ad.jp/vpscontrol/main/
https://secure.sakura.ad.jp/vpscontrol/main/console3 CentOSã®è¨å®æ å ±ã®ç¢ºèªã¨ã¡ã¢
4 debian OS(netboot)ãDownload
http://ftp.jp.debian.org/debian/dists/lenny/main/installer-i386/current/images/netboot/debian-installer/i386/initrd.gz
http://ftp.jp.debian.org/debian/dists/lenny/main/installer-i386/current/images/netboot/debian-installer/i386/linux5 VNCã³ã³ã½ã¼ã«ã®å©ç¨(viãå©ç¨ãããããã)
https://secure.sakura.ad.jp/vpscontrol/main/vnc6 grub.confã®æ¸ãæã
7 åèµ·å
8 debianã®ã¤ã³ã¹ãã¼ã«
9 debianåè¨å®
ã¨ããæµãã§ãã
æ¥ããã¡ã§ãããããããéããã¦ããrootãã¹ã¯ã¼ãã¨IPã¢ãã¬ã¹ãæ¸ããã¦ããã¡ã¼ã«ãå±ãã¦ããä½æ¥ãè¡ãªãã¾ãããã
1 ãããããéããã¦ããæ å ±ãå¾ ã¤
æ¥ããã¡ã§ãããããããéããã¦ããrootãã¹ã¯ã¼ãã¨IPã¢ãã¬ã¹ãæ¸ããã¦ããã¡ã¼ã«ãå±ãã¦ããä½æ¥ãè¡ãªãã¾ãããã
2 ãããVPSã³ã³ããã¼ã«ããã«ããªã¢ã¼ãã³ã³ã½ã¼ã«ããä½æ¥
ãããããrootãã¹ã¯ã¼ããéããã¦ããã°ä¸è¨ããVPSãµã¼ãã®å©ç¨ãã§ãã¾ã
https://secure.sakura.ad.jp/vpscontrol/main/
https://secure.sakura.ad.jp/vpscontrol/main/console
3 CentOSã®è¨å®æ å ±ã®ç¢ºèªã¨ã¡ã¢
åæã«å ¥ã£ã¦ããCentOSã®è¨å®æ å ±ãæ§ãã¾ããæ§ããå 容ã¯
ifconfig -a
hostname
/etc/resolv.conf
/etc/sysconfig/network-scripts/ifcfg-eth0
ã®å
容ã§ãã
IPã¢ãã¬ã¹ãããããã¹ã¯ãã²ã¼ãã¦ã§ã¤ãDNSãµã¼ããããåãã£ã¦ããã°åé¡ãªãã§ãã
ããããã¹ã¯ãã255.255.254.0ãã§ãã®ã§ééããªãããã«ãã¦ãã ããã
cat /etc/resolv.conf
#cat /etc/resolv.conf nameserver xxx.xxx.xxx.xxx nameserver xxx.xxx.xxx.xxx search sakura.ne.jp
ifconfig -a
ifconfig -a eth0 Link encap:Ethernet HWaddr 52:54:00:00:74:14 inet addr:xxx.xxx.xxx.xxx Bcast:xxx.xxx.xxx.xxx Mask:255.255.254.0 inet6 addr: ff::ff:ff:ff:0000/00 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:1358 errors:0 dropped:0 overruns:0 frame:0 TX packets:52 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:87903 (85.8 KiB) TX bytes:4445 (4.3 KiB) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) sit0 Link encap:IPv6-in-IPv4 NOARP MTU:1480 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
/etc/sysconfig/network-scripts/ifcfg-eth0
# cat /etc/sysconfig/network-scripts/ifcfg-eth0 ifcfg-eth0 DEVICE=eth0 IPADDR=xxx.xxx.xxx.xxx NETMASK=255.255.254.0 GATEWAY=xxx.xxx.xxx.xxx ONBOOT=yes
hostname
www0000u.sakura.ne.jp
ã¨ã«ããã¡ã¢ã£ã¦ããã¾ãããã
4 debian OS(netboot)ãDownload
debian OSãdownloadãã¾ãã/boot/debianã§ä½æ¥ãã¾ã
# mkdir /boot/debian # cd /boot/debian # wget http://ftp.jp.debian.org/debian/dists/lenny/main/installer-i386/current/images/netboot/debian-installer/i386/initrd.gz # wget http://ftp.jp.debian.org/debian/dists/lenny/main/installer-i386/current/images/netboot/debian-installer/i386/linux
ãªã¢ã¼ãã³ã³ã½ã¼ã«ã§ã¤ã³ã¯ã§ããã®ããªï¼
ã©ããã£ã¦ã³ãã¼ãã¦ããã®ãåãããªãã£ãã®ã§ææã¡ãã¾ããã
5 VNCã³ã³ã½ã¼ã«ã®å©ç¨(viãå©ç¨ãããããã)
ãªã¢ã¼ãã³ã³ã½ã¼ã«ã§ã¯viã使ããã®ï¼ä½¿ããªãã£ãã®ã§ãããvpsã®
VNCã³ã³ã½ã¼ã«ã§ãµã¼ãã触ãã¾ãã
https://secure.sakura.ad.jp/vpscontrol/main/vnc
Appletã«ããVNCã¯ã©ã¤ã¢ã³ãã§ãã
6 grub.confã®æ¸ãæã
èµ·åç¨ã®grub.confã®æ¸ãæãã§ã
# /boot/grub # vi /boot/grub/grub.conf
title debian install root (hd0,0) kernel /debian/linux ro root=LABEL=/ console=tty0 console=ttyS0,115200n8r initrd /debian/initrd.gz
console=ttyS0,115200n8rã¯ãããvpsã®ãªã¢ã¼ãã³ã³ã½ã¼ã«ãå©ç¨ããããã§ã
さくらのサポート情報
8 debianã®ã¤ã³ã¹ãã¼ã«
åèµ·åä¸åã«grubã®èµ·åOSã®é¸æç»é¢ã§
debian install ãé¸æãã¾ããééãã¦CentOSãèµ·åãã¦ãã¾ã£ãå ´åã¯
ãããvpsã®ã³ã³ããã¼ã«ããã«ããã§ãç«ã¡ä¸ãã£ãCentOSããã§ãåèµ·åãã¦ãã ããã
Debianãç«ã¡ä¸ããã°ãã¨ã¯æ®éã«Debian OSãã¤ã³ã¹ãã¼ã«ããã ãã
è¨èªã¯è±èªçã§ããå
¥ããã(ãããã)ããã¼ãã¼ãã¯æ¥æ¬èª(Standard)ãå¿
ãé¸æãã¦ãã ããã
ã¤ã³ã¹ãã¼ã«æã«IPã¢ãã¬ã¹ãªã©ã®å
¥åãããã®ã§ãã¼ãã¼ãã¯ä½¿ãæ
£ããæ¥æ¬èªãè¯ãã¨æãã¾ãã
ãªããã¿ã¤ã ã¾ã¼ã³ããã±ã¼ã«ãªã©å¾ã«è¨å®ã§ãã¾ãã®ã§é©å½ã§ããã¾ãã¾ããã
9 debianåè¨å®
debianãå ¥ã£ã¦ãã¾ãã°ãã¨ã¯ç°¡åã
# apt-get update # apt-get upgrade # dpkg-reconfigure tzdata # ã¿ã¤ã ã¾ã¼ã³ã®åè¨å® # dpkg-reconfigure locales # ãã±ã¼ã«ã®åè¨å® # dpkg-reconfigure exim4-config # EXIM4ã®åè¨å®
25çªãã¼ãã¯ãããã®ã»ãã§ä½æã®ç¢ºèªãæ¯æãã®ç¢ºèªãåºæ¥æ¬¡ç¬¬å©ç¨ãã§ããããã«ãªãã¾ãã
ãããã£ã¦ã25çªãã¼ãã¯ç¡æå©ç¨æéã¯å©ç¨ã§ãã¾ããã
お申し込みのながれ|VPS(仮想専用サーバー)はさくらインターネット