2011年10月13日 星期四

Set up FreeNX with LXDE on Arch Linux

1. install poptop server
pacman -S pptpd
2. edit the configuration file
vim /etc/pptpd.conf
--

option /etc/ppp/pptpd-options
localip 172.16.1.254
remoteip 172.16.1.1-253
localip is ip of pptp server
remoteip is the ip range which vpn client will get from

3. edit /etc/ppp/pptpd-options
name pptpd
refuse-pap
refuse-chap
refuse-mschap
require-mschap-v2
require-mppe-128
proxyarp
lock
nobsdcomp
novj
novjccomp
nologfd
ms-dns 168.95.1.1
ms-dns 168.95.192.1
require-mppe-128 enables encryption
ms-dns is dns server address

4. start pptp server
/etc/rc.d/pptpd start
5. add username and password to /etc/ppp/chap-secrets for ppp authentication
<username>     pptpd     <password>   *
6. make your iphone be a pptp client, General -> Network -> VPN -> Add a VPN -> PPTP
then fill all required fields and save

7. turn on VPN then you'll see the timer start timing

2011年5月17日 星期二

Set up PPTP VPN between Arch Linux and iPhone

1. install poptop server

pacman -S pptpd

2. edit the configuration file

vim /etc/pptpd.conf
--

option /etc/ppp/pptpd-options
localip 172.16.1.254
remoteip 172.16.1.1-253

localip is ip of pptp server
remoteip is the ip range which vpn client will get from

3. edit /etc/ppp/pptpd-options

name pptpd
refuse-pap
refuse-chap
refuse-mschap
require-mschap-v2
require-mppe-128
proxyarp
lock
nobsdcomp
novj
novjccomp
nologfd
ms-dns 168.95.1.1
ms-dns 168.95.192.1

require-mppe-128 enables encryption
ms-dns is dns server address

4. start pptp server

/etc/rc.d/pptpd start

5. add username and password to /etc/ppp/chap-secrets for ppp authentication

<username> pptpd <password> *

6. make your iphone be a pptp client, General -> Network -> VPN -> Add a VPN -> PPTP
then fill all required fields and save

7. turn on VPN then you'll see the timer starts to timing

2011年3月27日 星期日

Adding Static ARP on Windows 7

1. run cmd as administrator

2.

netsh

3. switch to interface/ipv4 subtree

interface ipv4

4. store=persistent will make it load this entry automatically at every boot

add neighbors "InterfaceName" "IP" "MAC" store=persistent

2011年3月23日 星期三

Connect Nokia Phone as USB Modem without PC Suite on Windows

1. install nokia cable drivers from http://nds1.nokia.com/files/support/global/phones/software/Nokia_Connectivity_Cable_Driver_eng.msi then connect your phone

2. Device Manager -> Modems -> Nokia Phone -> Properties -> Advanced -> Extra Initialization Commands -> +CGDCONT=,,"APN"
# APN of chunghwa telecom = internet

3. add a new dailup network, type *99# into dail no. and leave the rest blank

4. you can also uncheck "prompt for name and password" in properties because it is unnecessary