顯示具有 Ubuntu 標籤的文章。 顯示所有文章
顯示具有 Ubuntu 標籤的文章。 顯示所有文章

2014-09-28

Ruby -- 1st class

1. Download Ruby VM image for VMware.
Ruby Stack
JRuby Stack
2. Open the VM image with VMware workstation, Fusion or ESXi.
3. Setup the guest (network, update OS...etc).
4. Show Ruby version.
> ruby -v
> rails --version

2012-09-30

Ubuntu -- Learning

@How to configure network setting to use static IP address
sudo vi /etc/network/interfaces


 1 auto lo
 2 iface lo inet loopback
 3
 4 auto eth0
 5 iface eth0 inet static
 6 address 192.168.0.1 # 固定 IP 位址
 7 netmask 255.255.255.0   # 網路遮罩
 8 gateway 192.168.0.254 # 預設閘道

 sudo /etc/init.d/networking restart #重啓網路服務

@How to configure DNS server setting
sudo vim /etc/resolv.conf


 1# DNS of Google
 2#nameserver  8.8.4.4
 3#nameserver  8.8.8.8
 4
 5# DNS of HiNet
 6#nameserver  168.95.1.1
 7#nameserver  168.95.192.1

sudo /etc/init.d/networking restart #重啓網路服務

@How to install LAMP
sudo apt-get install tasksel
sudo  tasksel

#select LAMP to install
$sudo vi /var/www/info.php #to vi info.php

<?php
phpinfo();
?>
$sudo /etc/init.d/apache2 restart  #to restart Apache service
Visit http://192.168.0.1/info.php

@How to install phpmyadmin
sudo  apt-get  install  phpmyadmin

http://ip/phpmyadmin #to test