Monday, August 07, 2006

Nortel VPN in linux

for using nortel VPN in linux laptop, tried hundred of sites but failed.

So I have decided that installing VMware is best solution.

Becuase disk space is not enough in my toshiba 5100, windows 98 SE was chosen for guest OS.

And installed a nortel extranet 2.56, installing looks fine but failed with error.


Error message saying " Your IPsec tunneling have some problem."

to enable IPsec on Vmware NAT another hundreds of searching was done.
Of cource it was ended with fail.

So I decide to find a VPN client for linux.
Because I don't have Nortel's VPN Client - provided with VPN switch-, have to find a freeware.

First I found "pptp"
apt-get install pptp

to configure this, also installed "pptpconfig"
add following on /etc/apt/sources.list

# James Cameron's PPTP GUI packaging deb http://quozl.netrek.org/pptp/pptpconfig ./
apt-get install pptpconfig

and, start the 'pptpconfig' and add the host.

failed again.








And Found anotheroption, OpenSwan(www.openswan.org) will make a ipsec tunneling in linux.

apt-get install openswan.

it's installed greatly and ipsec command runs fine.
but I didn't find a way to connect VPN.

So have decided to install a cisco vpn client which use a same ipsec protocol.

followings are from http://www.mcmaster.ca/uts/network/vpn/vpnclient_linux.htm

Below is a quick installation and configuration guide for the Linux Cisco VPN client. For more in depth instructions, please refer to the Cisco documentation linked below.

Before you Begin...
  • This software and guide is unsupported by University Technology Services. This means that the installation and software has been tested by UTS, but no telephone support is available.
  • The VPN client consists of a kernel module and a few command-line executables.
    • The kernel module is not pre-compiled, so you may need to make sure that kernel sources for each kernel version that you are intending to use with this client are properly installed.
    • To do this, find either the kernel source or header RPM from your installation cdroms. The most likely location is one of the RPMxx directories on one of the installation CD's. On Mandrake 9.2, it's called kernel-source-2.4.22-10mdk.i586.rpm, on Redhat 9.0 it's called kernel-source-2.4.20-8.i386.rpm. The kernel revision numbers change but you get the idea. Older versions of Linux may have just the kernel-header RPM.
    • Install the RPM (rpm -i kernel-source-xxxxxx.rpm)
    • The module is not Open Source Software, so after it's loaded into your Linux kernel, the kernel will become tainted, and will issue a warning.
  • After successfully establishing a secure connection to the server, the client will listen for packets from the VPN server on 2 ports,UDP 500 and UDP 4500, by default. This means you have to punch a hole in your ipchains/iptables firewall for it. The module will also use IP protocol 50 (ESP) to communicate with the VPN server. That protocol is not filtered by most Linux firewall configurations, however.
  • The CISCO documentation mentions several other ports, quoting:
    • UDP port 500
    • UDP port 10000 and 500 (or any other port number being used for IPSec/UDP)
    • IP protocol 50 (ESP)
    • NAT-T port 4500 UDP
    Allow these ports through your firewall if you don't want any surprises.
  • On our test systems, it appears that the VPN client will not work, when the operating system is running in "Security Enhanced" mode (SELinux). We suggest that you not run the system in this mode, if you plan on using the vpn client. To do this, cd to the /etc/selinux folder ... then edit the config file as follows (change "enforcing" to "disabled"). In this example, it's simply been commented out:
    [root@linuxbox selinux]# more config
    # This file controls the state of SELinux on the system.
    # SELINUX= can take one of these three values:
    # enforcing - SELinux security policy is enforced.
    # permissive - SELinux prints warnings instead of enforcing.
    # disabled - SELinux is fully disabled.
    #SELINUX=enforcing
    SELINUX=disabled
    # SELINUXTYPE= type of policy in use. Possible values are:
    # targeted - Only targeted network daemons are protected.
    # strict - Full SELinux protection.
    SELINUXTYPE=targeted
    [root@linuxbox selinux]#
  • Installation and Configuration Commands, Step by Step

    Below are step by step quick-start instructions. Be sure to connect to your ISP before starting.
    This client has been tested on systems running Fedora Core 4.
    [root@linuxbox ~]# uname -a Linux linuxbox.whatever.mcmaster.ca 2.6.11-1.1369_FC4 #1 Thu Jun 2 22:55:56 EDT 2005 i686 i686 i386 GNU/Linux

    • Become super user (root):
    • [user@vpnclient]$ su -
      Password: {root's password}

      [root@vpnclient root]#
    • Change directory to /usr/src:
    • [root@vpnclient root]# cd /usr/src
    • Download the tar ball from the University web site:
    • [root@localhost root]# wget http://www.mcmaster.ca//uts/network/software/vpnclient4.8.tar.gz
      --09:59:22-- http://www.mcmaster.ca//uts/network/software/vpnclient4.8.tar.gz => `vpnclient4.8.tar.gz'
      Resolving www.mcmaster.ca... 130.113.64.65
      Connecting to www.mcmaster.ca[130.113.64.65]:80... connected.
      HTTP request sent, awaiting response... 200 OK
      Length: 2,050,187 (2.0M) [application/x-tar]

      100%[===============================================>] 2,050,187 10.02M/s 09:59:22 (10.02 MB/s) - `vpnclient4.8.tar.gz' saved [2050187/2050187]

      Length: 2,811,577 [application/x-tar]

      100%[====================================>] 2,811,577 9.31M/s 10:55:29 (9.31 MB/s) - `vpnclient-linux4.7.tar.gz' saved [2,811,577/2,811,577]
    • Decompress and extract it:
    • [root@vpnclient src]# tar xzvf vpnclient4.8.tar.gz

      vpnclient/
      vpnclient/linux_os.h
      vpnclient/IPSecDrvOS_linux.c
      vpnclient/mtu.h
      vpnclient/linuxkernelapi.c
      vpnclient/vpnapi.h
      vpnclient/libdriver64.so
      vpnclient/license.txt
      vpnclient/sample.pcf
      vpnclient/cvpnd
      vpnclient/interceptor.c
      vpnclient/unixcniapi.h
      vpnclient/MacConnect.pcf
      vpnclient/Makefile
      vpnclient/GenDefs.h
      vpnclient/libdriver.so
      vpnclient/config.h
      vpnclient/vpn_uninstall
      vpnclient/McMasterVPN.pcf
      vpnclient/vpnclient_init
      vpnclient/IPSecDrvOS_linux.h
      vpnclient/cisco_cert_mgr
      vpnclient/Cniapi.h
      vpnclient/vpnclient
      vpnclient/libvpnapi.so
      vpnclient/unixkernelapi.h
      vpnclient/ipseclog
      vpnclient/IPSecDrvOSFunctions.h
      vpnclient/linuxcniapi.c
      vpnclient/license.rtf
      vpnclient/vpn_install
      vpnclient/driver_build.sh
      vpnclient/vpnclient.ini
      vpnclient/frag.c
      vpnclient/linuxcniapi.h
      vpnclient/frag.h
      vpnclient/vpn_ioctl_linux.h
    • Change directory to /usr/src/vpnclient:
    • [root@vpnclient src]# cd vpnclient
    • Execute the installer script and answer the prompts:
    • [root@localhost vpnclient]# ./vpn_install
      Cisco Systems VPN Client Version 4.8.00 (0490) Linux Installer
      Copyright (C) 1998-2005 Cisco Systems, Inc. All Rights Reserved.
      By installing this product you agree that you have read the
      license.txt file (The VPN Client license) and will comply with
      its terms.

      Directory where binaries will be installed [/usr/local/bin]

      Automatically start the VPN service at boot time [yes]


      In order to build the VPN kernel module, you must have the
      kernel headers for the version of the kernel you are running.
      Directory containing linux kernel source code [/lib/modules/2.6.16-1.2111_FC4/build]
      * Binaries will be installed in "/usr/local/bin".
      * Modules will be installed in "/lib/modules/2.6.16-1.2111_FC4/CiscoVPN".
      * The VPN service will be started AUTOMATICALLY at boot time.
      * Kernel source from "/lib/modules/2.6.16-1.2111_FC4/build" will be used to build the module.

      Is the above correct [y] y

      Making module
      make -C /lib/modules/2.6.16-1.2111_FC4/build SUBDIRS=/usr/src/vpnclient modules
      make[1]: Entering directory `/usr/src/kernels/2.6.16-1.2111_FC4-i686'
      CC [M] /usr/src/vpnclient/linuxcniapi.o
      CC [M] /usr/src/vpnclient/frag.o
      CC [M] /usr/src/vpnclient/IPSecDrvOS_linux.o
      CC [M] /usr/src/vpnclient/interceptor.o
      /usr/src/vpnclient/interceptor.c: In function ‘handle_vpnup’:
      /usr/src/vpnclient/interceptor.c:310: warning: assignment from incompatible pointer type
      /usr/src/vpnclient/interceptor.c:334: warning: assignment from incompatible pointer type
      /usr/src/vpnclient/interceptor.c:335: warning: assignment from incompatible pointer type
      /usr/src/vpnclient/interceptor.c: In function ‘do_cleanup’:
      /usr/src/vpnclient/interceptor.c:378: warning: assignment from incompatible pointer type
      CC [M] /usr/src/vpnclient/linuxkernelapi.o
      LD [M] /usr/src/vpnclient/cisco_ipsec.o
      Building modules, stage 2.
      MODPOST
      Warning: could not find /usr/src/vpnclient/.libdriver.so.cmd for /usr/src/vpnclient/libdriver.so
      CC /usr/src/vpnclient/cisco_ipsec.mod.o
      LD [M] /usr/src/vpnclient/cisco_ipsec.ko
      make[1]: Leaving directory `/usr/src/kernels/2.6.16-1.2111_FC4-i686'
      Create module directory "/lib/modules/2.6.16-1.2111_FC4/CiscoVPN".
      Copying module to directory "/lib/modules/2.6.16-1.2111_FC4/CiscoVPN".
      Already have group 'bin'

      Creating start/stop script "/etc/init.d/vpnclient_init".
      /etc/init.d/vpnclient_init
      Enabling start/stop script for run level 3,4 and 5.
      Creating global config /etc/opt/cisco-vpnclient

      Installing license.txt (VPN Client license) in "/opt/cisco-vpnclient/":

      Installing bundled user profiles in "/etc/opt/cisco-vpnclient/Profiles/":
      * New Profiles : MacConnect McMasterVPN sample

      Copying binaries to directory "/opt/cisco-vpnclient/bin".
      Adding symlinks to "/usr/local/bin".
      /opt/cisco-vpnclient/bin/vpnclient
      /opt/cisco-vpnclient/bin/cisco_cert_mgr
      /opt/cisco-vpnclient/bin/ipseclog
      Copying setuid binaries to directory "/opt/cisco-vpnclient/bin".
      /opt/cisco-vpnclient/bin/cvpnd
      Copying libraries to directory "/opt/cisco-vpnclient/lib".
      /opt/cisco-vpnclient/lib/libvpnapi.so
      Copying header files to directory "/opt/cisco-vpnclient/include".
      /opt/cisco-vpnclient/include/vpnapi.h

      Setting permissions.
      /opt/cisco-vpnclient/bin/cvpnd (setuid root)
      /opt/cisco-vpnclient (group bin readable)
      /etc/opt/cisco-vpnclient (group bin readable)
      /etc/opt/cisco-vpnclient/Profiles (group bin readable)
      /etc/opt/cisco-vpnclient/Certificates (group bin readable)
      * You may wish to change these permissions to restrict access to root.
      * You must run "/etc/init.d/vpnclient_init start" before using the client.
      * This script will be run AUTOMATICALLY every time you reboot your computer.

    • Load the VPN client's module into the running kernel:

    • [root@localhost vpnclient]# /etc/init.d/vpnclient_init start
      Starting /opt/cisco-vpnclient/bin/vpnclient: Done


    • At this point, we recommend that you restart the operating system ... otherwise, you may get the following message, when invoking the vpnclient: vpnclient: error while loading shared libraries: /opt/cisco-vpnclient/lib/libvpnapi.so: cannot restore segment prot after reloc: Permission denied

    • McMaster VPN requires a profile to connect. Two are provided, one for off campus users (McMasterVPN) and one for on campus MacConnect users (MacConnect).
    • The profiles are already installed in /etc/CiscoSystemsVPNClient/Profiles/:
    • To connect, enter your user name and password when prompted:

    • [root@localhost Profiles]# vpnclient connect MacConnect {or McMasterVPN for off Campus (Access from home)}
      Cisco Systems VPN Client Version 4.8.00 (0490)
      Copyright (C) 1998-2005 Cisco Systems, Inc. All Rights Reserved.
      Client Type(s): Linux
      Running on: Linux 2.6.16-1.2111_FC4 #1 Sat May 20 19:59:40 EDT 2006 i686
      Config file directory:

      Initializing the VPN connection.
      Contacting the gateway at 130.113.69.8
      User Authentication for MacConnect...

      Enter Username and Password.

      Username []: (your username)
      Password []: ***************
      Authenticating user.
      Negotiating security policies.
      Securing communication channel.

      For McMaster Authorized Use Only!

      Please ensure you have the latest security patches and anti-virus software applied. Virus-infected
      computers will be disconnected without notice.

      Idle sessions are disconnected after 30 minutes of inactivity.

      All sessions are disconnected after 3 hours of continuous use.

      For assistance, please contact the Technology Service Desk at (905)-525-9140 Ext. 24357.
      Do you wish to continue? (y/n): y

      Your VPN connection is secure.

      VPN tunnel information.
      Client address: 130.113.94.113
      Server address: 130.113.69.8
      Encryption: 168-bit 3-DES
      Authentication: HMAC-MD5
      IP Compression: None
      NAT passthrough is inactive
      Local LAN Access is disabled

    • Note: If you open up another terminal window, and type "ifconfig" you should see - as well as the settings for your network interface, eth0 - another interface listed: "cipsec0" - this is the vpnclient interface. Its IP Address will be listed as well.
    • You should now be connected to the McMaster network. If the connection fails, suspect your firewall first. Try disabling it completely then try the connection again! If the firewall interferes with the VPN, you will need to adjust its configuration.

    Un-installing the Client

    • Use the vpn_uninstall script that comes with the client (/usr/src/vpnclient/vpn_uninstall in our example) to remove the client.

I changed /etc/opt/cisco-vpnclient/Profiles/sample.cnf to kai.pcf :

[main]
Description=KAIExtranetClient
Host=210.118.#.#
AuthType=3 <=== change for non-group authentification


and

root@satellite:~ # vpnclient connect kai
Cisco Systems VPN Client Version 4.8.00 (0490)
Copyright (C) 1998-2005 Cisco Systems, Inc. All Rights Reserved.
Client Type(s): Linux
Running on: Linux 2.6.15-26-686 #1 SMP PREEMPT Thu Aug 3 03:13:28 UTC 2006 i686
Config file directory: /etc/opt/cisco-vpnclient

Enter Certificate password: *****
Initializing the VPN connection.
Secure VPN Connection terminated locally by the Client
Reason: Failed to establish a VPN connection.
There are no new notification messages at this time.

Failed again.

so, Tried again on Openswan (IPsec)

root@satellite:~ # cat /etc/ipsec.conf
config setup
interfaces="ipsec0=eth0"
forwardcontrol=no
klipsdebug=none
plutodebug=none
manualstart=
# plutoload=%search
# plutostart=%search
# plutowait=no
conn kai
type=tunnel
auto=start
auth=esp
authby=secret
keyexchange=ike
keylife=1h
keyingtries=1
pfs=yes
left=192.168.209.130
leftnexthop=192.168.209.1
leftsubnet=192.168.209.0/24
right=210.118.#.#
rightsubnet=210.118.#.0/24






root@satellite:~ # cat /etc/ipsec.secrets
# RCSID $Id: ipsec.secrets.proto,v 1.3.6.1 2005/09/28 13:59:14 paul Exp $
# This file holds shared secrets or RSA private keys for inter-Pluto
# authentication. See ipsec_pluto(8) manpage, and HTML documentation.

# RSA private key for this host, authenticating it to any other host
# which knows the public part. Suitable public keys, for ipsec.conf, DNS,
# or configuration of other implementations, can be extracted conveniently
# with "ipsec showhostkey".
: RSA /etc/ipsec.d/private/satelliteKey.pem
192.168.209.130 210.118.126.201 ""



root@satellite:~ # ipsec setup start
ipsec_setup: Starting Openswan IPsec 2.4.4...
ipsec_setup: insmod /lib/modules/2.6.15-26-686/kernel/net/key/af_key.ko
ipsec_setup: insmod /lib/modules/2.6.15-26-686/kernel/net/ipv4/xfrm4_tunnel.ko
ipsec_setup: insmod /lib/modules/2.6.15-26-686/kernel/net/xfrm/xfrm_user.ko





root@satellite:~ # ipsec look
satellite Tue Aug 8 15:45:43 CDT 2006
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 192.168.209.1 0.0.0.0 UG 0 0 0 eth0
192.168.209.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
210.118.126.0 192.168.209.1 255.255.255.0 UG 0 0 0 eth0


Failed again !!!!


** note that ipsec port 500 is used by another program.

root@satellite:~ # lsof -i:500
COMMAND PID USER FD TYPE DEVICE SIZE NODE NAME
vmnet-nat 4548 root 6u IPv4 11693 TCP *:isakmp (LISTEN)
vmnet-nat 4548 root 7u IPv4 11694 UDP *:isakmp

in this case, you should close the vmware nat.



root@satellite:/etc/vmware/vmnet8/nat # /etc/init.d/vmware stop
Stopping VMware services:
Virtual machine monitor done
Bridged networking on /dev/vmnet0 done
DHCP server on /dev/vmnet1 done
Host-only networking on /dev/vmnet1 done
DHCP server on /dev/vmnet8 done
NAT service on /dev/vmnet8 done
Host-only networking on /dev/vmnet8 done
Virtual ethernet done

Linux Twinview in toshiba 5100

Right after success of enabling Nvidia X in my laptop, I start to modify it for twinview or TV-out.

Over two days of weekend passed, Some achievement was won.
Twinview(dual head) option runs great in my linux, but TV-out is still not..
Xorg does not set proper clock for TV encoder in toshiba 5100.


jjean@satellite:~$ cat /var/log/Xorg.0.log | less

....
(**) NVIDIA(0): TwinView enabled

(**) NVIDIA(0): ConnectedMonitor string: "DFP-0, CRT-0, TV-0"
(WW) NVIDIA(0): Unable to read EDID for display device CRT-0
(EE) NVIDIA(0): Failure reading maximum pixel clock value for display device
(EE) NVIDIA(0): TV-0.
(II) NVIDIA(0): NVIDIA GPU GeForce4 440 Go at PCI:1:0:0
(--) NVIDIA(0): VideoRAM: 32768 kBytes
(--) NVIDIA(0): VideoBIOS: 04.17.00.26.a4
(II) NVIDIA(0): Detected AGP rate: 4X
(--) NVIDIA(0): Interlaced video modes are supported on this GPU
(--) NVIDIA(0): Connected display device(s) on GeForce4 440 Go at PCI:1:0:0:
(--) NVIDIA(0): CRT-0
(--) NVIDIA(0): NVIDIA TV Encoder (TV-0)
(--) NVIDIA(0): NVIDIA Default Flat Panel (DFP-0)
(--) NVIDIA(0): CRT-0: 350.0 MHz maximum pixel clock
(--) NVIDIA(0): NVIDIA TV Encoder (TV-0): 100.0 MHz maximum pixel clock
(--) NVIDIA(0): TV encoder: NVIDIA
(II) NVIDIA(0): Mode Validation Overrides for CRT-0:
(II) NVIDIA(0): NoMaxPClkCheck
(II) NVIDIA(0): NoEdidMaxPClkCheck
(II) NVIDIA(0): Mode Validation Overrides for NVIDIA Default Flat Panel
(II) NVIDIA(0): (DFP-0):
(II) NVIDIA(0): NoMaxPClkCheck
(II) NVIDIA(0): NoEdidMaxPClkCheck
(II) NVIDIA(0): Assigned Display Devices: CRT-0, DFP-0
...

For acheiving, so many trial and error was dedicated.

here's key to the success.

jjean@satellite:~$ cat /etc/modprobe.d/options
# Enable double-buffering so gstreamer et. al. work
options quickcam compatible=2

# Default hostap to managed mode
options hostap_pci iw_mode=2
options hostap_cs iw_mode=2
options nvidia NVreg_SoftEDIDs=0 NVreg_Mobile=1 NVreg_FlatPanelMode=1

NVreg_Mobile=1 is most inportant one in this tip!
Nvidia recommend 2, 4 for this option, but it has resulted an freeze screen.

jjean@satellite:~$ cat /etc/X11/xorg.conf
##########################################################################
# Sample XF86Config file for NVIDIA XFree86 drivers.
#
# Refer to the XF86Config(4/5) man page for details about the format of
# this file.
#
# Be sure to replace the monitor values with correct values for your
# monitor!
##########################################################################


Section "Files"
FontPath "unix/:7100"
FontPath "/usr/lib/X11/fonts/misc"
FontPath "/usr/lib/X11/fonts/cyrillic"
FontPath "/usr/lib/X11/fonts/100dpi/:unscaled"
FontPath "/usr/lib/X11/fonts/75dpi/:unscaled"
FontPath "/usr/lib/X11/fonts/Type1"
FontPath "/usr/lib/X11/fonts/CID"
FontPath "/usr/lib/X11/fonts/100dpi"
FontPath "/usr/lib/X11/fonts/75dpi"
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID"
EndSection


##########################################################################
# Server flags section.
##########################################################################

Section "ServerFlags"

# Uncomment this to cause a core dump at the spot where a signal is
# received. This may leave the console in an unusable state, but may
# provide a better stack trace in the core dump to aid in debugging
#NoTrapSignals

# Uncomment this to disable the server abort sequence
# This allows clients to receive this key event.
#DontZap

# Uncomment this to disable the / mode switching
# sequences. This allows clients to receive these key events.
#DontZoom

# This allows the server to start up even if the
# mouse device can't be opened/initialised.
AllowMouseOpenFail

EndSection


##########################################################################
# Input devices
##########################################################################

#
# Keyboard section
#
Section "InputDevice"

Identifier "Keyboard1"
Driver "keyboard"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc104"
Option "XkbLayout" "us"
EndSection


#
# Pointer section
#
Section "InputDevice"

Identifier "Mouse1"
Driver "mouse"
Option "CorePointer"
Option "Protocol" "IMPS/2"
Option "Device" "/dev/psaux"
Option "Emulate3Buttons" "true"
Option "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
Identifier "Synaptics"
Driver "synaptics"
Option "SendCoreEvents" "true"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "HorizScrollDelta" "0"
EndSection
##########################################################################
# Module section
##########################################################################

Section "Module"
Load "dbe"
Load "GLcore"
Load "ddc"
Load "vbe"
# Load the glx module.
Load "glx"
Load "extmod"
Load "type1"
Load "freetype"
Load "i2c"
Load "bitmap"
EndSection


##########################################################################
# Monitor section
##########################################################################

Section "Monitor"

Identifier "MyMonitor"
VendorName "Toshiba"
ModelName "Satellite 5100 laptop display"

# be sure to replace these values with values appropriate for your
# monitor!
HorizSync 30-90
VertRefresh 50-75

Modeline "1600x1200" 160.96 1600 1704 1880 2160 1200 1201 1204 1242 -HSync -Vsync


# Below line is copied from Nvidia's example.
#HorizSync 31-82
#VertRefresh 55-120

# 3840x2400 @ 12Hz for IBM's T221 FlatPanel
#Modeline "3840x2400" 148.0 3840 3944 4328 4816 2400 2401 2404 2418

EndSection


##########################################################################
# Graphics device section(s)
##########################################################################

Section "Device"
Identifier "NV AGP"
VendorName "nvidia"
Driver "nvidia"
# update this with the PCI id of your card. Consult the output
# of the 'lspci' command. The BusID is usually optional when
# only using one graphics card.
BusID "PCI:1:0:0"
Option "NvAGP" "1"
Option "RenderAccel" "true"
Option "ModeValidation" "NoMaxPClkCheck"
EndSection

Section "Device"
Identifier "NV AGP TwinView"
VendorName "nvidia"
Driver "nvidia"
# update this with the PCI id of your card. Consult the output
# of the 'lspci' command. The BusID is usually optional when
# only using one graphics card.
BusID "PCI:1:0:0"

OPtion "RenderAccel" "true"
Option "AllowGLXWithComposite" "true"
# sample twinview setup
Option "TwinView"
# be sure to replace the HorizSync and VertRefresh with correct values
# for your monitor!
Option "UseEdidDpi" "False"
# Option "ModeValidation" "CRT-0: NoEdidModes, NoMaxPClkCheck, NoMaxPClkCheck ; DFP-0: NoEdidModes"
Option "SecondMonitorHorizSync" "30-90"
Option "SecondMonitorVertRefresh" "50-75"
Option "TwinViewOrientation" "Clone"
Option "MetaModes" "1600x1200, 1600x1200, 1024x768; 1280x1024,1280x1024,1024x768; 1024x768,1024x768,1024x768"
Option "ConnectedMonitor" "DFP-0, CRT-0, TV-0"
Option "ModeValidation" "NoMaxPClkCheck, NoEdidMaxPClkCheck, NoMaxPClkCheck"# Option "TVStandard" "NTSC-M"
# Option "TVOutFormat" "Composite"
#HorizSync 30-50
#VertRefresh 60
EndSection


##########################################################################
# Screen sections
##########################################################################

#
# screen section for an nvidia AGP card
#
Section "Screen"
Identifier "Screen AGP"
Device "NV AGP"
Monitor "MyMonitor"
DefaultColorDepth 24
Subsection "Display"
Depth 8
Modes "1600x1200" "1280x1024" "1024x768" "800x600" "640x400"
EndSubsection
Subsection "Display"
Depth 16
Modes "1600x1200" "1280x1024" "1024x768" "800x600" "640x480"
EndSubsection
Subsection "Display"
Depth 24
Modes "1600x1200" "1280x1024" "1024x768" "800x600" "640x480"
EndSubsection

EndSection
#
# screen section for an nvidia AGP TwinView card
# (look at the appropriate Device section)
#
Section "Screen"
Identifier "Screen AGP TwinView"
Device "NV AGP TwinView"
Monitor "MyMonitor"
DefaultColorDepth 16
Subsection "Display"
Depth 8
Modes "1600x1200" "1280x1024" "1024x768" "800x600" "640x400"
EndSubsection
Subsection "Display"
Depth 16
Modes "1600x1200" "1280x1024" "1024x768" "800x600" "640x400"
EndSubsection
Subsection "Display"
Depth 24
Modes "1600x1200" "1280x1024" "1024x768" "800x600" "640x400"
EndSubsection
EndSection


##########################################################################
# ServerLayout sections
# (invoke using the '-layout' option of 'startx'.
##########################################################################

#
# just one agp card
#
#Section "ServerLayout"
# Identifier "AGP"
# Screen "Screen AGP"
# InputDevice "Mouse1" "CorePointer"
# InputDevice "Keyboard1" "CoreKeyboard"
# InputDevice "Synaptics"
#EndSection


# just one agp twinview card
#
Section "ServerLayout"
Identifier "AGPTwinView"
Screen "Screen AGP TwinView"
InputDevice "Mouse1" "CorePointer"
InputDevice "Keyboard1" "CoreKeyboard"
InputDevice "Synaptics"
EndSection


Most of option in this file was adopted from Nvidia's example which was included in 1.0.8762. driver.

Wednesday, August 02, 2006

Wireless on ubuntu


미국 나오기 전에 사온 wireless network card를 사용하기 위해
comcast사의 유무선 공유 모뎀을 신청하였다.
노트북을 전체 linnux로 변경 한 후에 첫번째 문제가 Nvidia driver 설치 문제였고, 그 다음에 무선 인터넷 문제였다.

system - administration - networking에 보니 무선랜카드는 ra0으로 잡혀있다.
그런데 접속이 안된다.
당연히 안 될수 밖에, WEP 암호를 걸어놨는데...
문제는 암호를 어떻게 넣느냐? 이다.

ra0 항목에서 property를 보면 암호를 넣는 항목이 있다.
여기에 최초 공유기 설정할 때 만들어진 encryption key의 16진 값을 입력하였으나, DHCP로 ip를 잡아오지 못한다.

또 인터넷을 검색.

WiFi with WEP and Even WPA on Debian


이 사이트에서 지시한 바대로 다음을 수행하였다.

apt-get install ifplugd

/etc/default/ifplugd:

INTERFACES="eth0"
HOTPLUG_INTERFACES="ra0"
ARGS="-q -f -u0 -d10 -w -I"
SUSPEND_ACTION="stop"
--------------------------------------------------------------------------------
/etc/network/interfaces:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp

# Wireless... (this section may or may not already exist)
allow-hotplug ra0
iface ra0 inet dhcp

auto ra0
auto eth0
===================================
apt-get install wpasupplicant 를 수행하니 이미 설치되어 있다고 나온다.


/etc/default/wpasupplicant:

ENABLED=1
OPTIONS="-w -i wlan0 -D hostap -c /etc/wpa_supplicant.conf"

------------------------------------


/etc/wpa_supplicant.conf:
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=0

eapol_version=1
ap_scan=2
fast_reauth=1

# Single key 128bit WEP
network={
ssid="jjean"
key_mgmt=NONE
wep_key0=ABCDEF01234567890123456789
wep_tx_keyidx=0
priority=5
}

# WPA-PSK
#network={
# ssid="Corporate Office"
# proto=WPA
# key_mgmt=WPA-PSK
# pairwise=TKIP
# psk="very_secret"
# priority=4
#}

# Coffee shop / Open
network={
ssid=""
key_mgmt=NONE
priority=2
}

그 다음에
/etc/init.d/ifplugd start
/etc/init.d/wpasupplicant start
를 수행하니 두번째 명령이 수행되지 않는다.

wpasupplicant를 재설치 해 보았으나 마찬가지다.
알고보니 ubuntu에서 기본 설치하는 wpasupplicant는 /etc/wap_supplicant 디렉토리에
ifupdown.sh 이라는 스크립트를 만든다.

그래서 이 파일을 cp ./ifupdown.sh ../init.d/wpasupplicant로 복사해 주고 다시 실행.

그래도 접속이 되지 않는다.

자세히 보다보니, wep encryption key 중에서 하나를 잘못 적은것이다.
43E3140DE4C19D91F201C087b8 중에서 마지막의 b9를 68로 본것이다.

그걸 바로잡고 시도하니 바로 성공.

Tuesday, August 01, 2006

Ubuntu installation

Installing Ubuntu 6.05 LTS on my Toshiba satellite 5501.

1. Install ubuntu hoary CD

2. sudo passwd root

3. on root terminal,
vi /etc/apt/sources.lst
in repository list
replace 'hoary' as 'dapper'

4. apt-get update
apt-get dist-upgrade

5. reboot

6. Nvidia driver install
http://www.nvidia.com/object/linux_display_ia32_1.0-8762.html

still no pre-compiled driver, so latest 2.6.15-26-386 kernel source and header are needed.
apt-gat install linux-source-2.6.15-26-386 (or)
apt-gat install linux-source-2.6.15-26-686

apt-get install linux-386 (or linux 686)

apt-get install linux-headers-2.6.15-26-386 (or)
apt-get install linux-headers-2.6.15-26-686

Nvidia's "NVIDIA-Linux-x86-1.0-8762-pkg1.run" runs good and it makes new kernel module driver well.
But X does not start.

X's error message is that "Synaptics" "glx" "nvidia" driver were not found.

Have to switch back to "nv" driver for entering X.

Try to find reason for one day long!

http://doc.gwos.org/index.php/Latest_Nvidia_Dapper

with above howto, all trying was failed.

the method describe in there -
apt-get install nvidia-glx or
apt-get install nvidia-glx-legacy nvidia-xconfig nvidia-settings

seems to make a situation more screwed.

each driver was mixed and dis not erased clearly.


Have to find another way of dirty hack.

I, first uninstall all nvidia driver distributions all by manual.
and compared the path of each file in /var/cache/apt/archives/nvidia-glx_1.0.8762+2.6.15.11-3_i386.deb,
/var/cache/apt/archives/nvidia-kernel-source-2.6.15.11-3uk_i386.deb, and /download/NVIDIA-Linux-x86-1.0-8762-pkg1(produced by nvidia run package).
================================
root@satellite:/var/cache/apt/archives # dpkg --contents nvidia-glx_1.0.8762+2.6.15.11-3uk_i386.deb
drwxr-xr-x root/root 0 2006-07-16 12:16:58 ./
drwxr-xr-x root/root 0 2006-07-16 12:16:39 ./usr/
drwxr-xr-x root/root 0 2006-07-16 12:16:55 ./usr/bin/
-rwxr-xr-x root/root 10039 2006-07-16 12:16:51 ./usr/bin/nvidia-bug-report.sh
-rwxr-xr-x root/root 1398076 2006-07-16 12:16:54 ./usr/bin/nvidia-settings
-rwxr-xr-x root/root 135320 2006-07-16 12:16:55 ./usr/bin/nvidia-xconfig
drwxr-xr-x root/root 0 2006-07-16 12:16:54 ./usr/lib/
drwxr-xr-x root/root 0 2006-07-16 12:16:39 ./usr/lib/xorg/
drwxr-xr-x root/root 0 2006-07-16 12:16:54 ./usr/lib/xorg/modules/
drwxr-xr-x root/root 0 2006-07-16 12:16:50 ./usr/lib/xorg/modules/drivers/
-rw-r--r-- root/root 1034976 2006-07-16 12:16:50 ./usr/lib/xorg/modules/drivers/nvidia_drv.o
drwxr-xr-x root/root 0 2006-07-16 12:16:39 ./usr/lib/xorg/modules/extensions/
-rw-r--r-- root/root 653324 2006-07-16 12:16:54 ./usr/lib/xorg/modules/libglx.so.1.0.8762
drwxr-xr-x root/root 0 2006-07-16 12:16:54 ./usr/lib/tls/
-rw-r--r-- root/root 2156 2006-07-16 12:16:54 ./usr/lib/tls/libnvidia-tls.so.1.0.8762
drwxr-xr-x root/root 0 2006-07-16 12:16:55 ./usr/lib/nvidia/
-rwxr-xr-x root/root 2868 2006-07-16 12:16:55 ./usr/lib/nvidia/tls_test
-rw-r--r-- root/root 3080 2006-07-16 12:16:54 ./usr/lib/nvidia/tls_test_dso.so
-rw-r--r-- root/root 169764 2006-07-16 12:16:54 ./usr/lib/libXvMCNVIDIA.so.1.0.8762
-rw-r--r-- root/root 540136 2006-07-16 12:16:54 ./usr/lib/libGL.so.1.0.8762
-rw-r--r-- root/root 8113728 2006-07-16 12:16:54 ./usr/lib/libGLcore.so.1.0.8762
-rw-r--r-- root/root 101300 2006-07-16 12:16:54 ./usr/lib/libnvidia-cfg.so.1.0.8762
-rw-r--r-- root/root 2108 2006-07-16 12:16:54 ./usr/lib/libnvidia-tls.so.1.0.8762
drwxr-xr-x root/root 0 2006-07-16 12:16:50 ./usr/sbin/
-rwxr-xr-x root/root 4132 2006-07-16 12:16:50 ./usr/sbin/nvidia-glx-configdrwxr-xr-x root/root 0 2006-07-16 12:16:53 ./usr/share/
drwxr-xr-x root/root 0 2006-07-16 12:16:39 ./usr/share/man/
drwxr-xr-x root/root 0 2006-07-16 12:16:51 ./usr/share/man/man1/
-rw-r--r-- root/root 6342 2006-07-16 12:16:51 ./usr/share/man/man1/nvidia-settings.1.gz
-rw-r--r-- root/root 4483 2006-07-16 12:16:51 ./usr/share/man/man1/nvidia-xconfig.1.gz
drwxr-xr-x root/root 0 2006-07-16 12:16:39 ./usr/share/lintian/
drwxr-xr-x root/root 0 2006-07-16 12:16:50 ./usr/share/lintian/overrides/
-rw-r--r-- root/root 852 2006-07-16 12:16:50 ./usr/share/lintian/overrides/nvidia-glx
drwxr-xr-x root/root 0 2006-07-16 12:16:39 ./usr/share/bug/
drwxr-xr-x root/root 0 2006-07-16 12:16:51 ./usr/share/bug/nvidia-glx/
-rwxr-xr-x root/root 711 2006-07-16 12:16:51 ./usr/share/bug/nvidia-glx/script
drwxr-xr-x root/root 0 2006-07-16 12:16:53 ./usr/share/doc/
drwxr-xr-x root/root 0 2006-07-16 12:16:56 ./usr/share/doc/nvidia-glx/
-rw-r--r-- root/root 71262 2006-05-15 15:42:16 ./usr/share/doc/nvidia-glx/README.txt.gz
-rw-r--r-- root/root 82 2006-05-15 15:42:16 ./usr/share/doc/nvidia-glx/nvidia-settings-user-guide.txt
-rw-r--r-- root/root 2842 2006-07-16 12:12:55 ./usr/share/doc/nvidia-glx/README.Debian
-rw-r--r-- root/root 32707 2006-07-16 11:59:49 ./usr/share/doc/nvidia-glx/copyright
drwxr-xr-x root/root 0 2006-07-16 12:16:56 ./usr/share/doc/nvidia-glx/examples/
-rw-r--r-- root/root 1729 2006-05-15 15:42:16 ./usr/share/doc/nvidia-glx/examples/XF86Config.sample.gz
-rw-r--r-- root/root 14372 2006-07-16 12:12:41 ./usr/share/doc/nvidia-glx/changelog.Debian.gz
-rw-r--r-- root/root 8300 2006-05-15 15:42:16 ./usr/share/doc/nvidia-glx/NVIDIA_Changelog.gz
lrwxrwxrwx root/root 0 2006-07-16 12:16:54 ./usr/lib/xorg/modules/libglx.so -> libglx.so.1.0.8762
lrwxrwxrwx root/root 0 2006-07-16 12:16:54 ./usr/lib/tls/libnvidia-tls.so.1 -> libnvidia-tls.so.1.0.8762
lrwxrwxrwx root/root 0 2006-07-16 12:16:54 ./usr/lib/libXvMCNVIDIA_dynamic.so.1 -> libXvMCNVIDIA.so.1.0.8762
lrwxrwxrwx root/root 0 2006-07-16 12:16:54 ./usr/lib/libXvMCNVIDIA.so.1 -> libXvMCNVIDIA.so.1.0.8762
lrwxrwxrwx root/root 0 2006-07-16 12:16:54 ./usr/lib/libnvidia-tls.so.1 -> libnvidia-tls.so.1.0.8762
lrwxrwxrwx root/root 0 2006-07-16 12:16:54 ./usr/lib/libnvidia-cfg.so.1 -> libnvidia-cfg.so.1.0.8762
lrwxrwxrwx root/root 0 2006-07-16 12:16:54 ./usr/lib/libGLcore.so.1 -> libGLcore.so.1.0.8762
lrwxrwxrwx root/root 0 2006-07-16 12:16:54 ./usr/lib/libGL.so.1 -> libGL.so.1.0.8762
==============================

root@satellite:/var/cache/apt/archives # dpkg --contents nvidia-kernel-source_1.0.8762+2.6.15.11-3uk_i386.deb
drwxr-xr-x root/root 0 2006-07-16 12:16:58 ./
drwxr-xr-x root/root 0 2006-07-16 12:16:53 ./usr/
drwxr-xr-x root/root 0 2006-07-16 12:16:50 ./usr/src/
-rw-r--r-- root/root 1696636 2006-07-16 12:16:50 ./usr/src/nvidia-kernel-source.tar.gz
drwxr-xr-x root/root 0 2006-07-16 12:16:53 ./usr/share/
drwxr-xr-x root/root 0 2006-07-16 12:16:53 ./usr/share/doc/
drwxr-xr-x root/root 0 2006-07-16 12:16:56 ./usr/share/doc/nvidia-kernel-source/
-rw-r--r-- root/root 2159 2006-07-16 11:59:49 ./usr/share/doc/nvidia-kernel-source/README.Debian.gz
-rw-r--r-- root/root 32707 2006-07-16 11:59:49 ./usr/share/doc/nvidia-kernel-source/copyright
-rw-r--r-- root/root 14372 2006-07-16 12:12:41 ./usr/share/doc/nvidia-kernel-source/changelog.Debian.gz


==============================
root@satellite:/download/NVIDIA-Linux-x86-1.0-8762-pkg1 # ls -RAl ./usr
./usr:
total 20
drwxrwxrwx 2 root root 4096 2006-05-15 15:42 bin
drwxrwxrwx 3 root root 4096 2006-05-15 15:42 include
drwxrwxrwx 3 root root 4096 2006-05-15 15:42 lib
drwxrwxrwx 5 root root 4096 2006-05-15 15:42 share
drwxrwxrwx 3 root root 4096 2006-05-15 15:42 X11R6

./usr/bin:
total 1612
-rwxrwxrwx 1 root root 20472 2006-05-15 15:42 makeself.sh
-rwxrwxrwx 1 root root 51514 2006-05-15 15:42 mkprecompiled
-rwxrwxrwx 1 root root 10039 2006-05-15 15:42 nvidia-bug-report.sh
-rwxrwxrwx 1 root root 1402144 2006-05-15 15:42 nvidia-settings
-rwxrwxrwx 1 root root 138068 2006-05-15 15:42 nvidia-xconfig
-rwxrwxrwx 1 root root 3220 2006-05-15 15:42 tls_test
-rwxrwxrwx 1 root root 3384 2006-05-15 15:42 tls_test_dso.so

./usr/include:
total 4
drwxrwxrwx 2 root root 4096 2006-05-15 15:42 GL

./usr/include/GL:
total 460
-rwxrwxrwx 1 root root 339652 2006-05-15 15:42 glext.h
-rwxrwxrwx 1 root root 72949 2006-05-15 15:42 gl.h
-rwxrwxrwx 1 root root 29571 2006-05-15 15:42 glxext.h
-rwxrwxrwx 1 root root 13644 2006-05-15 15:42 glx.h

./usr/lib:
total 8632
-rwxrwxrwx 1 root root 8154252 2006-05-15 15:42 libGLcore.so.1.0.8762
-rwxrwxrwx 1 root root 652 2006-05-15 15:42 libGL.la
-rwxrwxrwx 1 root root 543564 2006-05-15 15:42 libGL.so.1.0.8762
-rwxrwxrwx 1 root root 102404 2006-05-15 15:42 libnvidia-cfg.so.1.0.8762
-rwxrwxrwx 1 root root 2352 2006-05-15 15:42 libnvidia-tls.so.1.0.8762
drwxrwxrwx 2 root root 4096 2006-05-15 15:42 tls

./usr/lib/tls:
total 4
-rwxrwxrwx 1 root root 2324 2006-05-15 15:42 libnvidia-tls.so.1.0.8762

./usr/share:
total 12
drwxrwxrwx 2 root root 4096 2006-05-15 15:42 applications
drwxrwxrwx 3 root root 4096 2006-05-15 15:42 doc
drwxrwxrwx 3 root root 4096 2006-05-15 15:42 man

./usr/share/applications:
total 4
-rwxrwxrwx 1 root root 227 2006-05-15 15:42 nvidia-settings.desktop

./usr/share/doc:
total 280
-rwxrwxrwx 1 root root 2021 2006-05-15 15:42 Copyrights
drwxrwxrwx 2 root root 4096 2006-05-15 15:42 html
-rwxrwxrwx 1 root root 23527 2006-05-15 15:42 NVIDIA_Changelog
-rwxrwxrwx 1 root root 3790 2006-05-15 15:42 nvidia-settings.png
-rwxrwxrwx 1 root root 82 2006-05-15 15:42 nvidia-settings-user-guide.txt
-rwxrwxrwx 1 root root 233103 2006-05-15 15:42 README.txt
-rwxrwxrwx 1 root root 7624 2006-05-15 15:42 XF86Config.sample

./usr/share/doc/html:
total 460
-rwxrwxrwx 1 root root 5806 2006-05-15 15:42 appendix-aa.html
-rwxrwxrwx 1 root root 13163 2006-05-15 15:42 appendix-a.html
-rwxrwxrwx 1 root root 5457 2006-05-15 15:42 appendix-b.html
-rwxrwxrwx 1 root root 8681 2006-05-15 15:42 appendix-c.html
-rwxrwxrwx 1 root root 40428 2006-05-15 15:42 appendix-d.html
-rwxrwxrwx 1 root root 8123 2006-05-15 15:42 appendix-e.html
-rwxrwxrwx 1 root root 11089 2006-05-15 15:42 appendix-f.html
-rwxrwxrwx 1 root root 21375 2006-05-15 15:42 appendix-g.html
-rwxrwxrwx 1 root root 7030 2006-05-15 15:42 appendix-h.html
-rwxrwxrwx 1 root root 8889 2006-05-15 15:42 appendix-i.html
-rwxrwxrwx 1 root root 16036 2006-05-15 15:42 appendix-j.html
-rwxrwxrwx 1 root root 3888 2006-05-15 15:42 appendix-k.html
-rwxrwxrwx 1 root root 14574 2006-05-15 15:42 appendix-l.html
-rwxrwxrwx 1 root root 4506 2006-05-15 15:42 appendix-m.html
-rwxrwxrwx 1 root root 2915 2006-05-15 15:42 appendix-n.html
-rwxrwxrwx 1 root root 3178 2006-05-15 15:42 appendix-o.html
-rwxrwxrwx 1 root root 5220 2006-05-15 15:42 appendix-p.html
-rwxrwxrwx 1 root root 5138 2006-05-15 15:42 appendix-q.html
-rwxrwxrwx 1 root root 4437 2006-05-15 15:42 appendix-r.html
-rwxrwxrwx 1 root root 7571 2006-05-15 15:42 appendix-s.html
-rwxrwxrwx 1 root root 3413 2006-05-15 15:42 appendix-t.html
-rwxrwxrwx 1 root root 3171 2006-05-15 15:42 appendix-u.html
-rwxrwxrwx 1 root root 4425 2006-05-15 15:42 appendix-v.html
-rwxrwxrwx 1 root root 10822 2006-05-15 15:42 appendix-w.html
-rwxrwxrwx 1 root root 17963 2006-05-15 15:42 appendix-x.html
-rwxrwxrwx 1 root root 5526 2006-05-15 15:42 appendix-y.html
-rwxrwxrwx 1 root root 3611 2006-05-15 15:42 appendix-z.html
-rwxrwxrwx 1 root root 3726 2006-05-15 15:42 chapter-01.html
-rwxrwxrwx 1 root root 4090 2006-05-15 15:42 chapter-02.html
-rwxrwxrwx 1 root root 4289 2006-05-15 15:42 chapter-02-section-02.html
-rwxrwxrwx 1 root root 3633 2006-05-15 15:42 chapter-02-section-03.html
-rwxrwxrwx 1 root root 3864 2006-05-15 15:42 chapter-02-section-04.html
-rwxrwxrwx 1 root root 3910 2006-05-15 15:42 chapter-03.html
-rwxrwxrwx 1 root root 5621 2006-05-15 15:42 chapter-03-section-02.html
-rwxrwxrwx 1 root root 24205 2006-05-15 15:42 chapter-04.html
-rwxrwxrwx 1 root root 34940 2006-05-15 15:42 chapter-05.html
-rwxrwxrwx 1 root root 3279 2006-05-15 15:42 chapter-06.html
-rwxrwxrwx 1 root root 3131 2006-05-15 15:42 chapter-07.html
-rwxrwxrwx 1 root root 20801 2006-05-15 15:42 chapter-08.html
-rwxrwxrwx 1 root root 2872 2006-05-15 15:42 chapter-09.html
-rwxrwxrwx 1 root root 6580 2006-05-15 15:42 index.html
-rwxrwxrwx 1 root root 3266 2006-05-15 15:42 part-01.html
-rwxrwxrwx 1 root root 2776 2006-05-15 15:42 part-02.html
-rwxrwxrwx 1 root root 4701 2006-05-15 15:42 part-03.html
-rwxrwxrwx 1 root root 2987 2006-05-15 15:42 preface-01.html
-rwxrwxrwx 1 root root 4098 2006-05-15 15:42 preface-02.html

./usr/share/man:
total 4
drwxrwxrwx 2 root root 4096 2006-05-15 15:42 man1

./usr/share/man/man1:
total 24
-rwxrwxrwx 1 root root 5515 2006-05-15 15:42 nvidia-installer.1.gz
-rwxrwxrwx 1 root root 6342 2006-05-15 15:42 nvidia-settings.1.gz
-rwxrwxrwx 1 root root 4483 2006-05-15 15:42 nvidia-xconfig.1.gz

./usr/X11R6:
total 4
drwxrwxrwx 3 root root 4096 2006-05-15 15:42 lib

./usr/X11R6/lib:
total 364
-rwxrwxrwx 1 root root 185050 2006-05-15 15:42 libXvMCNVIDIA.a
-rwxrwxrwx 1 root root 170732 2006-05-15 15:42 libXvMCNVIDIA.so.1.0.8762
drwxrwxrwx 4 root root 4096 2006-05-15 15:42 modules

./usr/X11R6/lib/modules:
total 8
drwxrwxrwx 2 root root 4096 2006-05-15 15:42 drivers
drwxrwxrwx 2 root root 4096 2006-05-15 15:42 extensions

./usr/X11R6/lib/modules/drivers:
total 2048
-rwxrwxrwx 1 root root 1034976 2006-05-15 15:42 nvidia_drv.o
-rwxrwxrwx 1 root root 1050245 2006-05-15 15:42 nvidia_drv.so

./usr/X11R6/lib/modules/extensions:
total 648
-rwxrwxrwx 1 root root 657104 2006-05-15 15:42 libglx.so.1.0.8762


The cause of the trouble is progra path!!!

nvidia's compile path was not compatible with ubuntu xorg path.
I don't know who should be blame for this.
may the one would follow the standard xorg schem, another does not.

so I have to copy nvidia's file in
/usr/X11R6/lib to /usr/lib/xorg/.

My X looks like entering good!
But very bright appeared first and then goes back to black screen.

Looks like it has refresh rate or RAMDAC problem.

So I put section "Modes" in /etc/X11/xorg.conf with scratching internet.

Finally I can see the NVIDIA logo after 3days from installing!

This is my xorg.conf file.
Still have lot a work. (Optimize, Twinview <-- this option cause system freeze)

# nvidia-xconfig: X configuration file generated by nvidia-xconfig
# nvidia-xconfig: version 1.0 (buildmeister@builder3) Mon May 15 13:23:42 PDT 2006

# /etc/X11/xorg.conf (xorg X Window System server configuration file)
#
# This file was generated by dexconf, the Debian X Configuration tool, using
# values from the debconf database.
#
# Edit this file with caution, and see the /etc/X11/xorg.conf manual page.
# (Type "man /etc/X11/xorg.conf" at the shell prompt.)
#
# This file is automatically updated on xserver-xorg package upgrades *only*
# if it has not been modified since the last upgrade of the xserver-xorg
# package.
#
# If you have edited this file but would like it to be automatically updated
# again, run the following commands:
#
# cp /etc/X11/xorg.conf /etc/X11/xorg.conf.custom
# sudo sh -c 'md5sum /etc/X11/xorg.conf >/var/lib/xfree86/xorg.conf.md5sum'
# sudo dpkg-reconfigure xserver-xorg

Section "ServerLayout"
Identifier "Default Layout"
Screen "Default Screen" 0 0
InputDevice "Generic Keyboard"
InputDevice "Configured Mouse"
InputDevice "Synaptics Touchpad"
EndSection

Section "Files"

# local font server
# if the local font server has problems, we can fall back on these
# paths to defoma fonts
FontPath "unix/:7100"
FontPath "/usr/lib/X11/fonts/misc"
FontPath "/usr/lib/X11/fonts/cyrillic"
FontPath "/usr/lib/X11/fonts/100dpi/:unscaled"
FontPath "/usr/lib/X11/fonts/75dpi/:unscaled"
FontPath "/usr/lib/X11/fonts/Type1"
FontPath "/usr/lib/X11/fonts/CID"
FontPath "/usr/lib/X11/fonts/100dpi"
FontPath "/usr/lib/X11/fonts/75dpi"
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType"
FontPath "/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID"
EndSection

Section "Module"
Load "i2c"
Load "bitmap"
#Load "dri"
#Load "glcore"
Load "ddc"
Load "extmod"
Load "freetype"
Load "glx"
Load "int10"
Load "type1"
Load "vbe"
EndSection

Section "InputDevice"
Identifier "Generic Keyboard"
Driver "keyboard"
Option "CoreKeyboard"
Option "XkbRules" "xorg"
Option "XkbModel" "pc104"
Option "XkbLayout" "us"
EndSection

Section "InputDevice"
Identifier "Configured Mouse"
Driver "mouse"
Option "CorePointer"
Option "Device" "/dev/input/mice"
Option "Protocol" "ImPS/2"
Option "Emulate3Buttons" "true"
Option "ZAxisMapping" "4 5"
EndSection

Section "InputDevice"
Identifier "Synaptics Touchpad"
Driver "synaptics"
Option "SendCoreEvents" "true"
Option "Device" "/dev/psaux"
Option "Protocol" "auto-dev"
Option "HorizScrollDelta" "0"
EndSection

Section "Monitor"
Identifier "Generic Laptop Display Panel 1600x1200"
HorizSync 30-90
VertRefresh 50-75
EndSection

Section "Modes"
Identifier "1:0"
ModeLine "1600x1200" 161.89 1600 1672 2032 2176 1200 1202 1214 1240 -HSync -VSync
EndSection


Section "Device"

# Driver "nv"
# Option "DPMS"
Identifier "NVIDIA Corporation NV17 [GeForce4 440 Go]"
Driver "nvidia"
EndSection

Section "Screen"

# Option "RenderAccel" "true"
# Option "AllowGLXWithComposite" "true"
# Option "useEDIDdpi" "false"
# Option "ModeValidation" "NoEdidDFPMaxSizeCheck, NoVesaModes"
# Option "GenerateRTList" "0"
# Option "OverridePolarity" "1"
Identifier "Default Screen"
Device "NVIDIA Corporation NV17 [GeForce4 440 Go]"
Monitor "Generic Laptop Display Panel 1600x1200"
DefaultDepth 16
Option "ModeValidation" "NoMaxPClkCheck;NoEdidMaxPClkCheck"
# Option "ExactModeTimingsDVI" "TRUE"
# Option "ModeValidation" "DFP-0: NoEdidDFPMaxSizeCheck, NoVesaModes"# option "IgnoreEDID" "1"
SubSection "Display"
Depth 1
Modes "1600x1200"
EndSubSection
SubSection "Display"
Depth 4
Modes "1600x1200"
EndSubSection
SubSection "Display"
Depth 8
Modes "1600x1200"
EndSubSection
SubSection "Display"
Depth 15
Modes "1600x1200"
EndSubSection
SubSection "Display"
Depth 16
Modes "1600x1200"
EndSubSection
SubSection "Display"
Depth 24
Modes "1600x1200"
EndSubSection
EndSection