2010年12月1日 星期三

NTFS comparison table

NTFS vs FAT

Criteria

NTFS5

NTFS

exFAT

FAT32

FAT16

FAT12

Operating System

Windows 2000
Windows XP
Windows 2003 Server
Windows 2008
Windows Vista
Windows 7

Windows NT
Windows 2000
Windows XP
Windows 2003 Server
Windows 2008Windows Vista
Windows 7

Windows CE 6.0
Windows Vista SP1
Windows 7
WinXP+KB955704

DOS v7 and higher
Windows 98
Windows ME
Windows 2000
Windows XP
Windows 2003 Server
Windows Vista
Windows 7

DOS
All versions of
Microsoft Windows

DOS
All versions of
Microsoft Windows

Limitations

Max Volume Size

264 clusters minus 1 cluster

232 clusters minus 1 cluster

128PB

32GB for all OS.
2TB for some OS

2GB for all OS.
4GB for some OS

16MB

Max Files on Volume

4,294,967,295 (232-1)

4,294,967,295 (232-1)

Nearly Unlimited

4194304

65536


Max File Size

264 bytes (16 ExaBytes)
minus 1KB

244 bytes (16 TeraBytes)
minus 64KB

16EB

4GB minus 2 Bytes

2GB (Limit Only
by Volume Size)

16MB (Limit Only
by Volume Size)

Max Clusters Number

264 clusters minus 1 cluster

232 clusters minus 1 cluster

4294967295

4177918

65520

4080

Max File Name Length

Up to 255

Up to 255

Up to 255

Up to 255

Standard - 8.3
Extended - up to 255

Up to 254

File System Features

Unicode File Names

Unicode
Character Set

Unicode
Character Set

Unicode
Character Set

System
Character Set

System
Character Set

System
Character Set

System Records Mirror

MFT Mirror File

MFT Mirror File

No

Second Copy of FAT

Second Copy of FAT

Second Copy of FAT

Boot Sector Location

First and Last Sectors

First and Last Sectors

Sectors 0 to 11
Copy in 12 to 23

First Sector and
Copy in Sector #6

First Sector

First Sector

File Attributes

Standard and Custom

Standard and Custom

Standard Set

Standard Set

Standard Set

Standard Set

Alternate Streams

Yes

Yes

No

No

No

No

Compression

Yes

Yes

No

No

No

No

Encryption

Yes

No

No

No

No

No

Object Permissions

Yes

Yes

Yes

No

No

No

Disk Quotas

Yes

No

No

No

No

No

Sparse Files

Yes

No

No

No

No

No

Reparse Points

Yes

No

No

No

No

No

Volume Mount Points

Yes

No

No

No

No

No

Overall Performance

Built-In Security

Yes

Yes

Yes
minimal ACL only

No

No

No

Recoverability

Yes

Yes

Yes
if TFAT activated

No

No

No

Performance

Low on small volumes
High on Large

Low on small volumes
High on Large

High

High on small volumes
Low on large

Highest on small volumes
Low on large

High

Disk Space Economy

Max

Max

Max

Average

Minimal on large volumes

Max

Fault Tolerance

Max

Max

Yes
if TFAT activated

Minimal

Average

Average

2010年11月25日 星期四

Create HPUX boot CD/DVE

Create HP-UX 1 1i v3 bootable CD/DVD media for two-step media recovery
On a system with a CD/DVD writer and the same version of Ignite-UX as on your tape, execute
the following command (iso_directory is the target directory for the .iso media file and
the -r option specifies the release, such as B.11.23 or B.11.31):
# make_media_install -r B.11.31 -m iso_directory

Avamar Oracle Can not view on the Backup console

1. make sure the tnsnames.ora copy to /var/opt/oracle with hostname setting .
2. make sure the oratab locate in the /vat/opt/oracle
3. Add the environment parameters
export LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:$ORACLE_HOME/lib: /opt/AVMRclnt/lib
4. run the /opt/AVMRclnt/bin/avoacle --browse

RMAN Archivelog crosscheck

$ rman target /
Recovery Manager: Release 9.2.0.4.0 - 64bit Production
Copyright (c) 1995, 2002, Oracle Corporation. All rights reserved.
connected to target database: AVATAR2 (DBID=2480694409)

當archive有刪除的時候要使用,RMAN 的備份才會可以備archive log,之後要設定incarnation numner , list incarnation ,set incarnation

RMAN> crosscheck archivelog all;

using target database controlfile instead of recovery catalog
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=25 devtype=DISK
validation failed for archived log
archive log filename=/opt/oracle/oradata/avatar2/archive/1_2714.dbf recid=2702 stamp=545107659
validation failed for archived log
archive log filename=/opt/oracle/oradata/avatar2/archive/1_2715.dbf recid=2703 stamp=545108268
...........
validation failed for archived log
archive log filename=/opt/oracle/oradata/avatar2/archive/1_2985.dbf recid=2973 stamp=545399327
validation succeeded for archived log

Crosschecked 278 objects

2.使用delete expired archivelog all 命令删除所有過期日誌檔

RMAN> delete expired archivelog all;

released channel: ORA_DISK_1
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=12 devtype=DISK

List of Archived Log Copies
Key Thrd Seq S Low Time Name
------- ---- ------- - --------- ----
376 1 2714 X 23-NOV-04 =/opt/oracle/oradata/avatar2/archive/1_2714.dbf
.....


使用report obsolete命令報告過期備份

RMAN> report obsolete;

RMAN retention policy will be applied to the command
RMAN retention policy is set to redundancy 1
Report of obsolete backups and copies
Type Key Completion Time Filename/Handle
-------------------- ------ ------------------ --------------------
Backup Set 125 01-NOV-04
Backup Piece 125 01-NOV-04 /data1/oracle/orabak/full_1_541045804
Backup Set 131 04-NOV-04
Backup Piece 131 04-NOV-04 /data1/oracle/orabak/full_AVATAR2_20041104_131
....
Backup Set 173 06-DEC-04
Backup Piece 173 06-DEC-04 /data1/oracle/orabak/full_AVATAR2_20041206_173
Backup Set 179 11-DEC-04
Backup Piece 179 11-DEC-04 /data1/oracle/orabak/arch544588206.arc
.....
Backup Piece 189 17-DEC-04 /data1/oracle/orabak/arch545106606.arc
Backup Set 190 17-DEC-04
Backup Piece 190 17-DEC-04 /data1/oracle/orabak/arch545106665.arc
Backup Set 191 20-DEC-04
Backup Piece 191 20-DEC-04 /data1/oracle/orabak/arch_AVATAR2_20041220_194
Archive Log 2973 20-DEC-04 /opt/oracle/oradata/avatar2/archive/1_2985.dbf
Archive Log 2971 20-DEC-04 /opt/oracle/oradata/avatar2/archive/1_2984.dbf
.....
Archive Log 2705 17-DEC-04 /opt/oracle/oradata/avatar2/archive/1_2717.dbf
Archive Log 2704 17-DEC-04 /opt/oracle/oradata/avatar2/archive/1_2716.dbf
Archive Log 2703 17-DEC-04 /opt/oracle/oradata/avatar2/archive/1_2715.dbf
Archive Log 2702 17-DEC-04 /opt/oracle/oradata/avatar2/archive/1_2714.dbf

使用delete obsolete命令删除過期備份檔:

RMAN> delete obsolete;

RMAN retention policy will be applied to the command
RMAN retention policy is set to redundancy 1
using channel ORA_DISK_1
Deleting the following obsolete backups and copies:
Type Key Completion Time Filename/Handle
-------------------- ------ ------------------ --------------------
Backup Set 125 01-NOV-04
Backup Piece 125 01-NOV-04 /data1/oracle/orabak/full_1_541045804
....
Archive Log 2704 17-DEC-04 /opt/oracle/oradata/avatar2/archive/1_2716.dbf
Archive Log 2703 17-DEC-04 /opt/oracle/oradata/avatar2/archive/1_2715.dbf
Archive Log 2702 17-DEC-04 /opt/oracle/oradata/avatar2/archive/1_2714.dbf

Do you really want to delete the above objects (enter YES or NO)? yes
deleted backup piece
backup piece handle=/data1/oracle/orabak/full_AVATAR2_20041206_173 recid=173 stamp=544156241
.....
deleted archive log
archive log filename=/opt/oracle/oradata/avatar2/archive/1_2715.dbf recid=2703 stamp=545108268
deleted archive log
archive log filename=/opt/oracle/oradata/avatar2/archive/1_2714.dbf recid=2702 stamp=545107659
Deleted 286 objects


RMAN> crosscheck archivelog all;

released channel: ORA_DISK_1
allocated channel: ORA_DISK_1
channel ORA_DISK_1: sid=19 devtype=DISK
specification does not match any archive log in the recovery catalog

2010年8月25日 星期三

Oracle 11gR2 new feature

1.5.1.1 Flashback Data Archive Support for DDLs

Oracle Database 11g Release 2 (11.2) users can now use most DDL commands on tables that are being tracked with Flashback Data Archive. This includes:

  • Add, Drop, Rename, Modify Column

  • Drop, Truncate Partition

  • Rename, Truncate Table

  • Add, Drop, Rename, Modify Constraint

For more complex DDL (for example, upgrades and split table), the Disassociate and Associate PL/SQL procedures can be used to temporarily disable Total Recall on specified tables. The Associate procedure enforces schema integrity after association; the base table and history table schemas must be the same.

This feature makes it much easier to use the Total Recall option with complex applications that require the ability to modify the schema.

1.5.1.2 Instance Caging

Instance Caging allows the DBA to limit the CPU usage of an Oracle instance by setting the CPU_COUNT initialization parameter and enabling CPU resource management.

With Instance Caging, users can partition CPU resources among multiple instances running on a server to ensure predictable performance.

Oracle Enterprise Manager hostname change re-create

/bin/emca -deconfig dbcontrol db -repos drop

/bin/emca -config dbcontrol db -repos create

emctl start dbconsole

2010年8月16日 星期一

Oracle Explain plan

Creating a PLAN_TABLE

CONNECT HR/your_password
@$ORACLE_HOME/rdbms/admin/utlxplan.sql
Table created.

EXPLAIN PLAN FOR
SELECT last_name FROM employees;

  • UTLXPLS.SQL

    This script displays the plan table output for serial processing. Example 13-2, "EXPLAIN PLAN Output" is an example of the plan table output when using the UTLXPLS.SQL script.

  • UTLXPLP.SQL

    This script displays the plan table output including parallel execution columns.

  • DBMS_XPLAN.DISPLAY procedure

    This procedure accepts options for displaying the plan table output. You can specify:

    • A plan table name if you are using a table different than PLAN_TABLE

    • A statement Id if you have set a statement Id with the EXPLAIN PLAN

    • A format option that determines the level of detail: BASIC, SERIAL, and TYPICAL, ALL,

    Some examples of the use of DBMS_XPLAN to display PLAN_TABLE output are:

    SELECT PLAN_TABLE_OUTPUT FROM TABLE(DBMS_XPLAN.DISPLAY());

    SELECT PLAN_TABLE_OUTPUT
    FROM TABLE(DBMS_XPLAN.DISPLAY('MY_PLAN_TABLE', 'st1','TYPICAL'));


2010年8月15日 星期日

2010年8月13日 星期五

2010年8月12日 星期四

REDHAT XDMCP enable

XDMCP Connections to Red Hat Linux 7.0 or Higher
Technical Note 1680
Last Reviewed 08-May-2009
Applies To
Reflection X Advantage
Reflection X version 14.x only
Red Hat Linux version 7.0 or higher
Red Hat Enterprise Linux version 4.0 or higher
Summary

Red Hat Linux versions 7.0 or higher include default security features that prevent Reflection X from establishing an XDMCP connection. This technical note details the steps required to configure Red Hat Linux to allow Reflection X XDMCP connections using the GNOME Display Manager (gdm), KDE Display Manager (kdm), or the XDM Display Manager (xdm). It also provides fixes or workarounds for font-related display manager and terminal client initialization difficulties.

For information about configuring Red Hat version 6.2 for remote XDMCP, see Technical Note 1523.

About the X Display Manager

The X Display Manager provides a graphical replacement for the host's command line login prompt when users connect over the X Display Manager Control Protocol (XDMCP). Red Hat provides support for the Gnome Display Manager (gdm), the KDE Display Manager (kdm), and the X Display Manager (xdm). Each of these display managers can be configured to automatically start the GNOME or KDE X Windows System graphical desktop environment.

Modifying Red Hat Linux for XDMCP Connections

The following sections provide steps for configuring XDMCP connections using gdm, kdm, or xdm:

  • Using GNOME's GDM X Display Manager
  • Using KDE's KDM X Display Manager
  • Using the XDM X Display Manager

Instructions are also provided for defining or changing which desktop environment automatically starts after login: GNOME or KDE.

Note the following:

  • The steps required vary depending on the version of Red Hat. Follow the instructions based on the version of Red Hat you are running. If a step is not applicable to your version, skip to the next step.
  • You must be logged into your Red Hat Linux host as root to make these edits.

You can log on at either the host console or from your PC using the linux.rxc template provided with Reflection X, but you must be logged in as root to make the changes presented in this technical note. (Most Linux hosts do not allow you to log on as root remotely, therefore, if you use the linux.rxc template, first log on using a normal user account, and then use the su command at the xterm command prompt to log in as root.)

  • GNOME or KDE must be installed on your system prior to following these configuration steps, and these directions are based on the original versions of GNOME and KDE that ship with each revision of Red Hat Linux 7.0 - 9.0.

Using GNOME's GDM X Display Manager

To configure Red Hat Linux to use gdm and automatically start the GNOME desktop environment, follow the steps below.

  1. Edit the /etc/sysconfig/desktop file to define GNOME as the X desktop environment that loads on connection.
    1. Open the /etc/sysconfig/desktop file.
    2. Locate the DESKTOP= entry. Note: The entry may need to be created and it is case sensitive.

Change this setting to: DESKTOP="GNOME"

    1. Save the file.
  1. Edit the gdm.conf file.
    1. Open the /etc/X11/gdm/gdm.conf file.

Note: In Red Hat Enterprise Linux version 5, the path is /etc/gdm/custom.conf.

    1. Under the "[xdmcp]" heading, change the default "enable" entry:

In Red Hat version 7.0 - 7.1: change Enable=0 to Enable=1.

In Red Hat version 7.2 - 9.0: change Enable=false to Enable=true.

In Red Hat Enterprise Linux version 5: add Enable=true.

    1. Save the file.
  1. Initialize the Changes.

Stop gdm, xdm, and kdm by entering the following at the command prompt:

In Red Hat version 7.0 - 7.2: killall gdm xdm kdm

In Red Hat version 8.0 - or higher: killall gdm-binary xdm kdm

You should now be able to establish an XDMCP connection using Reflection X (the display manager will restart automatically when a connection is requested).

Additional GNOME Settings

  • By default, GNOME uses TTF fonts with antialiasing. Antialiasing is an effect applied to the edges of characters to make them look smooth. Reflection X does not support antialiasing. If you experience font-related issues, follow these steps to disable GNOME antialiasing.
    1. In GNOME, click Foot/Hat/System > Preferences > Font, and change the font setting to a common font. For example, Fixed, Courier, or Helvetica.
    2. In the Font Rendering box, select Monochrome. Monochrome is the only choice that disables antialiasing. Note: Monochrome font rendering may cause the edges of characters to appear jagged.
    3. Click Close.
  • Desktop background images can affect startup speed and the speed of windows opening and closing. If you are experiencing slow speeds in these areas, navigate to Font > Preferences > Background, and try changing your background to a solid color.

Using KDE's KDM X Display Manager

To configure Red Hat Linux to use kdm and automatically start the KDE desktop environment, follow the steps below.

  1. Edit the /etc/sysconfig/desktop file to define which X desktop environment loads on connection.
    1. Open the /etc/sysconfig/desktop file.
    2. Locate the DESKTOP= entry. Note: This entry may need to be created, and it is case sensitive.

For KDE desktop, change this entry to: DESKTOP="KDE"

    1. Save the file.
  1. Edit the Xaccess file.
    1. Open the /etc/X11/xdm/Xaccess file.

Note: In Red Hat Enterprise Linux version 5, the path is /usr/share/config/kdm/Xaccess.

    1. Verify that the following lines appear as shown below:
* #any host can get a login window
* CHOOSER BROADCAST #any indirect host can get a chooser

Note: The asterisk (*) symbol in front of each line makes the line active. If a pound (#) symbol appears on the line before the * symbol, delete the # symbol.

    1. Save the file.
  1. Edit the kdmrc file.
    1. Open the kdmrc file. (Depending on the version of Red Hat, this file may be located under /usr/share/config, /etc/kde/kdm, or /etc/X11/xdm.)
    2. Under the "[Xdmcp]" heading, change the default entry of Enable=false to Enable=true.

Note: In Red Hat Enterprise Linux version 5, this parameter is set to Enable=true by default.

    1. Save the file.
  1. In Red Hat version 7.0 - 7.1 and 8.0 - 9.0 only, edit the /etc/X11/xdm/xdm-config file.
    1. Open the /etc/X11/xdm/xdm-config text file.
    2. Comment out the requestPort command by inserting an exclamation point (!) in front of the command line, as shown below:
!DisplayManager.requestPort: 0
    1. Save the file.
  1. In Red Hat 8.0 - 9.0 only, edit the prefdm file.
    1. Open the /etc/X11/prefdm file.
    2. Locate the preferred= entry.
    3. Change this entry to: preferred=kdm.
    4. Save the file.
  2. Initialize the Changes.

Stop gdm, xdm, or kdm by entering the following at the command prompt:

In Red Hat 7.0 - 7.2: killall gdm xdm kdm

In Red Hat 8.0 - 9.0: killall gdm-binary xdm kdm

You should now be able to establish an XDMCP connection using Reflection X (the display manager will restart automatically when a connection is requested).

Using the XDM X Display Manager (Versions 7.0 - 9.0)

To configure Red Hat Linux 7.0 - 9.0 to use xdm and automatically start an X desktop environment, follow the steps below.

  1. Edit the /etc/sysconfig/desktop file to define which X desktop environment loads on connection.
    1. Open the /etc/sysconfig/desktop file.
    2. Locate the DESKTOP= entry. Note: This entry is case sensitive.

For the GNOME desktop, change this entry to: DESKTOP="GNOME"

For the KDE desktop, change this entry to: DESKTOP="KDE"

    1. Save the file.
  1. In Red Hat 7.0 - 7.2 only, edit the /etc/inittab file.
    1. Open the /etc/inittab file.
    2. Under the heading "# Run xdm in runlevel", insert a pound (#) at the beginning of the entry to comment out the current command. For example, the edit line should appear as follows
# x:5:respawn:/usr/bin/prefdm -nodaemon
    1. Under the heading "#Run xdm in runlevel", add the following command line:
x:5:respawn:/usr/bin/X11/xdm -nodaemon
    1. Save the file.
  1. In Red Hat 7.0 - 7.2 only, initialize the /etc/inittab changes.

Enter the following command at the UNIX prompt. This causes system to re-examine the inittab file:

/sbin/init q
  1. Edit the /etc/X11/xdm/Xaccess file.
    1. Open the /etc/X11/xdm/Xaccess file.
    2. Verify that the following lines appear as shown below.
* #any host can get a login window
* CHOOSER BROADCAST #any indirect host can get a chooser

Note: The asterisk (*) in front of each line makes that line active. If a pound (#) appears on the line before the * symbol, delete the # symbol because this # symbol comments out the command line.

    1. Save the file.
  1. Edit the /etc/X11/xdm/xdm-config file.
    1. Open the /etc/X11/xdm/xdm-config file.
    2. Comment out the requestPort command by inserting an exclamation point (!) in front of the command line, as shown below:
!DisplayManager.requestPort: 0
    1. Save the file.
  1. In Red Hat version 8.0 - 9.0 only, edit the prefdm file.
    1. Open the /etc/X11/prefdm file.
    2. Locate the preferred= entry.
    3. Change this entry to: preferred=xdm
    4. Save the file.
  2. Initialize the Changes.

Stop gdm, xdm, or kdm by entering the following at the command prompt:

In Red Hat 7.0 - 7.2: killall gdm xdm kdm

In Red Hat 8.0 - 9.0: killall gdm-binary xdm kdm

You should now be able to establish an XDMCP connection using Reflection X.

2010年7月20日 星期二

VMware vmmon compilation issues on 64-bit kernel 2.6.35

The vmmon module in VMware Player 3.x and Workstation 7.x fails to compile on the latest 64-bit linux kernel 2.6.35:
Using 2.6.x kernel build system.
make: Entering directory `/tmp/vmware-root/modules/vmmon-only'
make -C /lib/modules/2.6.35-2-generic/build/include/.. SUBDIRS=$PWD
SRCROOT=$PWD/. \
MODULEBUILDDIR= modules
make[1]: Entering directory `/usr/src/linux-headers-2.6.35-2-generic'
CC [M] /tmp/vmware-root/modules/vmmon-only/linux/driver.o
CC [M] /tmp/vmware-root/modules/vmmon-only/linux/driverLog.o
CC [M] /tmp/vmware-root/modules/vmmon-only/linux/hostif.o
........
........

make[1]: *** [_module_/tmp/vmware-root/modules/vmmon-only] Error 2
make[1]: Leaving directory `/usr/src/linux-headers-2.6.35-2-generic'
make: *** [vmmon.ko] Error 2
make: Leaving directory `/tmp/vmware-root/modules/vmmon-only'



resolve
cd /tmp
tar xvf /usr/lib/vmware/modules/source/vmmon.tar -C /tmp
perl -pi -e 's,_range,,' vmmon-only/linux/iommu.c
tar cvf /usr/lib/vmware/modules/source/vmmon.tar vmmon-only



How to fix Firefox slow problem in ubuntu 10.04(Lucid)

This tutorial will explain how to fix slow problem in ubuntu 10.04(Lucid)

Open your Firefox and type about:config at URL address bar and hit enter. To make a False into True, select the line to change, and double click. On the 2nd option change, right click and select Modify

- network.http.pipelining > Make it True

- network.http.pipelining.maxrequests > Make it 8 or 10

- network.http.proxy.pipelining > Make it True

- network.dns.disableIPv6 > Make it True

I hope this helps for some users

2010年5月11日 星期二

Ubuntu sun Java 6.0

$ locate libnpjp2.so
/usr/lib/jvm/java-6-sun-1.6.0.15/jre/lib/i386/libnpjp2.so
$ ln -s /usr/lib/jvm/java-6-sun-1.6.0.15/jre/lib/i386/libnpjp2.so $HOME/.mozilla/plugins/

2010年5月3日 星期一

好用的AWK SCRIPT

cat iostat_1sec_5min.csv | awk '{RS="hdisk";print "hdisk"$1,$9,$10,$21,$34,$50}' > iostat_1sec_filter.csv

2010年4月29日 星期四

MD300 in ubuntu 9.1

Install the MD300 Sony 3G card in the ubuntu 9.1

vi /etc/udev/rules.d/50-md300config.rules
then copy follow lines
ACTION!="add", GOTO="3G_End"

#SUBSYSTEMS=="usb", ATTRS{idProduct}=="d0cf", ATTRS{idVendor}=="0fce", NAME="%k", RUN+="/bin/sh -c 'echo 3 > /sys/%p/bConfigurationValue'"
SUBSYSTEMS=="usb", ATTRS{idProduct}=="d0cf", ATTRS{idVendor}=="0fce", RUN+="/bin/sh -c 'echo 2 > /sys/%p/bConfigurationValue'"
#SUBSYSTEMS=="usb", ATTRS{idProduct}=="d0cf", ATTRS{idVendor}=="0fce", RUN+="/usr/sbin/usb_modeswitch --default-vendor 0x0fce --default-product 0xd0cf"
LABEL="3G_End"

2010年4月27日 星期二

Install Openoffice 3.2 in Ubuntu 9.1

This tutorial will explain how to install latest version of openoffice in ubuntu

You can check what is new in openoffice 3.2 from here

First go to the OpenOffice website and download the Linux .deb file (On your desktop)

1 - Once you have done that, extract the .deb file,

OOo_3.2.0_LinuxIntel_install_en-US_deb.tar.gz

Run the following command from terminal or just right click select extract

tar xzvf OOo_3.2.0_LinuxIntel_install_en-US_deb.tar.gz

Then you’ll see a file called OOO320_m12_native_packed-1_en-US.9483

2 - You can remove the existing version of OpenOffice if you wish with this command:

sudo apt-get remove openoffice*.*

3 - Copy and paste OOO320_m12_native_packed-1_en-US.9483 onto the desktop then open Terminal and paste this command:

sudo dpkg -i ~/Desktop/OOO320_m12_native_packed-1_en-US.9483/DEBS/*.deb

4 - Then paste this command:

sudo dpkg -i ~/Desktop/OOO320_m12_native_packed-1_en-US.9483/DEBS/desktop-integration/openoffice.org3.2-debian-menus_3.2-9472_all.deb

Once you’ve done that you’ll find OpenOffice 3.2 in Office.

2010年4月24日 星期六

2010年4月20日 星期二

Iphone with ubuntu

#deb http://ppa.launchpad.net/blueman/ppa/ubuntu jaunty main
#deb-src http://ppa.launchpad.net/blueman/ppa/ubuntu jaunty main
#sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 951DC1E2
#sudo apt-get update
Install the blueman

Wireless peer to peer (即 Ad-hoc) USB, 和Bluetooth 都是有機會用來讓 iPhone
上網的途徑。

PC 端 Ubuntu 的設定
1 先確定 Ubuntu 能透過 LAN 網路線上網,這應該都沒問題。
2 再確定 Ubuntu 能透過 Wireless 上網,這是為了確定你的 Wireless 在 PC 上是好的。
3 我的 Ubuntu 是 9.04 版。 系統>偏好設定>網路連線 ,這裡可以看到好幾個 tab 分別為 [有線][無線網路][行動寬頻][VPN][DSL] 點選
[無線網路]
4 [無線網路] tab 下列出了你用過的 Wireless 連線 (所以也可能是空的)。> 加入
5 連線名稱 。。。 取個名字,就叫 "iPhone ad-hoc" 吧!
6 [無線網路] tab 下, [SSID] 也叫 "iPhone ad-hoc"。[模式] 一定要選 ad-hoc, 其他 [BSSID][MAC 位址] 都留白 ==> 這就是我不懂的地方了,抄我
iPhone 的 Wireless MAC 地址過來填上之後會連不上,我搞不定,只好放棄。MTU 保持為 automatic。
7 [Wireless Security] tab 下,[安全] 只能設為 "無",其他設定原本以為很簡單,結果我都搞不定。會致使 iPhone
連不上來,連上來了也上不了網。這裡也要請教高明指點。
8 [IPv4 設定] tab 下,[Method] 一定要選 "Shared to other computers"。

這樣就可以了,對 iPhone 而言,它會看到一台名為 "iPhone ad-hoc" 的
Wi-fi AP (access point 上網點), 無須密碼,一選就上。故我不再贅述 iPhone 的設定。因為與一般 Wifi
上網一樣。

USB 上網
$ sudo add-apt-repository ppa:pmcenery/ppa
$ sudo apt-get update
$ sudo apt-get install gvfs ipheth-utils

AIX Installation

AIX Installation Tips
Change the boot from the command line
List the boot order
# bootlist -m normal -o
Change the boot order
# bootlist -m normal cd0 hdisk1
See the disk information
# lscfg -vl hdisk1
See the vg information
# lsvg -l rootvg
See the Error on AIX
# errpt
Clear all error event
# errclear 0

iPhone 與多台電腦 (多個 iTunes) 同步的方法

~~~~~iPhone 與多台電腦 (多個 iTunes) 同步的方法~~~~~

1. 使用過程1:請用原本就已經和 iPhone 同步過的第一台電
腦。

2. 務必將 iTunes 程式結束。

3. 找出 iTunes Music Library.xml 這個檔案。
通常在 C:\Documents and Settings目錄下的
(使用者名稱)\My Do cuments\My MusicMy Music
目錄下的 iTunes 裡面。

4. 開啟這個 iTunes Music Library.xml,找到一個叫做
Library Persistent ID 的標籤。下面會帶一個字串,把字串複製
出來(簡稱 SourceLPID),並且丟到第二台機器上。

5. 使用過程2:第二台準備和 iPhone 同步的電腦。

6. 先將 SourceLPID 先找個文字編輯器存放起來。

7. 請找出電腦存放 iTunes Library 的目錄。

8. 這邊需要動到兩個檔案喔,一個是 iTunes Music Library.xml,
另 一個是 iTunes Library。

9. 將 iTunes Music Library.xml 開啟,一樣找到 LPID,拷貝下來
(簡稱 TargetLPID),放在剛剛存放 SourceLPID 的文字編輯器
中。

10. 將 SourceLPID 貼上 TargetLPID 的地方,存檔。

11. 如果您用的是 Windows ,下載可以編輯 Hex 格式的文字編
輯器即可。

12. 利用 文字編輯器 開啟 iTunes Library,開啟"找尋/取代"
功能。

13. 找尋的欄位,請放入拷貝下來的TargetLPID。

14. 取代的欄位,請放入上面提的SourceLPID。

15. 完成取代後,存檔。

16. 接下來開啟第二台電腦上的 iTunes,接上 iPhone,系統將不
會再提醒您,這台 iPhone 已和其他的 iTunes 同步了喔!!

請把原檔先存起來喔!!以免自己發生錯誤~~~~