หน้าเว็บ

แสดงบทความที่มีป้ายกำกับ HOWTO แสดงบทความทั้งหมด
แสดงบทความที่มีป้ายกำกับ HOWTO แสดงบทความทั้งหมด

วันจันทร์ที่ 15 สิงหาคม พ.ศ. 2554

Howto change IP on Solaris 10

Ifconfig command  ใช้สำหรับตั้งค่าอุปกรณ์การ์ดเครือข่าย  ( network card )

1. Enable the network card
#ifconfig hme0 plumb
ifconfig -a command should show following type of output which means device is enabled and is ready to configure ip address and netmask :
hme0: flags=842 mtu 1500
inet 0.0.0.0 netmask 0
ether 3:22:11:6d:2e:1f



2. Configuring ipaddress and netmask and making the interface status as up .
#ifconfig hme0 192.9.2.106 netmask 255.255.255.0 up
#ifconfig -a will now show the ip address , netmask and up status as follows :
hme0: flags=843 mtu 1500
inet 192.9.2.106 netmask ffffff00 broadcast 192.9.2.255
ether 3:22:11:6d:2e:1f

The file /etc/netmasks is used to define netmasks for ip addresses .

127.0.0.1, is the standard loop back route and 127.0.0.0 is the default loopback ipaddress used by the kernel when no interface is configured this will be the only entry displayed by the system on invoking ifconfig -a command..


3. Configuring Virtual interface
Virtual interface can be configured to enable hme0 reply to more then one ip addresses. This is possible by using hme0 alias which can be configured by ifconfig command only . The new alias device name now becomes hme0:1 hme:2 etc.
#ifconfig hme0:1 172.40.30.4 netmask 255.255.0.0 up
ifconfig -a will show the original hme0 and alias interface :
hme0: flags=843 mtu 1500
inet 192.9.2.106 netmask ffffff00 broadcast 192.9.2.255
ether 3:22:11:6d:2e:1f
hme0:1: flags=842 mtu 1500
inet 172.40.30.4 netmask ffff0000 broadcast 172.40.255.255



4. Ip-forwarding
IP forwarding allows you to forward all requests coming for a certain port or URL to be redirected to a specified IP address.
ip forwarding becomes enabled automatically when system detects more then one interface at the booting time . The file involved is /etc/rc2.d/S69inet .
ipforwarding is on by default but can be turned off by following command :
#ndd -set /dev/ip ip_forwarding 0


5. Router Configuration
After interfaces and ipaddess have been configured the system needs a default router which will allow the machine to talk to world outside of local network .
You can specify a particular route for a particular address as in following example
#route add -net 10.0.0.0 -netmask 255.0.0.0 172.40.30.1 1
if the the destination ipaddess is not defined in this manner system forwards all requests to the default router .
default route is defined manually by editing /etc/defaultrouter file and putting router’s ipaddress entry in it. This file is read by /etc/rc2.d/S69inet file during the booting process and entry added to the routing table .
The route can be defined online also using routeadd command but the changes will be lost on reboot .To make changes permanent make sure to put an entry in /etc/defaultrouter.
#route add default 205.100.155.2 1
#route change default 205.100.155.2 1
The 1 at the end is the number of hops to the next gateway.
If an interface is not responding to the network, check to be sure it has the correct IP address and netmask , network cables are fine .

Thanks  :  adminschoice.com

วันศุกร์ที่ 27 พฤษภาคม พ.ศ. 2554

Howto check services on Solaris 10

ในการดูว่า services อะไรบ้าง กำลัง online ใช้คำสั่ง

#  svcs

หากต้องการดูรายละเอียด ใช้คำสั่ง

# svcs -l <service_name>

หากต้องการ enable service

svcadm enable <service_name

หากต้องการ disable  service 

svcadm disable  <service_name>

หากต้องการ restart service  ใช้คำสั่ง

# svcadm restart <service_name>


Thanks :  www.experts-exchange.com


**command line for check services on solaris 10

วันพฤหัสบดีที่ 26 พฤษภาคม พ.ศ. 2554

Howto exact .tar.gz on solaris 10/ubuntu .




solaris    :  gunzip -c file_name.tar.gz |tar xvf -




ubuntu :  tar -xzvf   file_name.tar.gz



Thanks : www.tek-tips.com

วันอังคารที่ 17 พฤษภาคม พ.ศ. 2554

Howto use basic find command unix/linux.

syntax : find where-to-look criteria what-to-do


ตัวอย่างต่อไปนี้เป็นการใช้คำสั่ง find เพื่อค้นหา file ที่มีชื่อ "Toneation" โดยค้นหาไฟล์ทั้งหมดของระบบ filesystem  ("/')  แล้วโชว์ขึ้นหน้าจอ

find / -name Toneation -type f -print


หรืออาจระบุ directory ที่ต้องการจะค้นหาโดยเฉพาะ เช่น /usr และ /home


find /usr /home -name Toneation -type f


หรือให้ค้นหาเฉพาะ current directory


find . -name Toneation -type f


หรือใช้ค้นหา  ไฟล์ที่มีหลายนามสกุล หรือขึ้นต้นด้วย Toneation เช่น Toneation1,Toneation.txt


find /usr -name "Toneation*" -type f


หรือใช้ค้นหา ไฟล์ที่ลงท้ายด้วยนามสกุลที่ต้องการ

find /usr/local -name "*.html" -type f

 
และกรณีปิด error message ให้เพิ่ม 2>/dev/null  ดังนี้



find / -name "Toneation" 2>/dev/null 
 
 
  
Thanks:  http://www.devdaily.com/  , content.hccfl.edu

วันพุธที่ 11 พฤษภาคม พ.ศ. 2554

Howto add user on Soloris 11.

How to add user on Soloris 11.


  ใช้   useradd เพื่อทำการ สร้าง user ใหม่

useradd -u 1002 -g sysadmin -m -d /home/export/toneation -s /bin/sh toneation
 กรณีมี user อยู่แล้ว ใช้ usermod เพื่อแก้ไขค่าอื่นๆ

usermod -c "Sysadmin" toneation
ทำการตั้งค่ารหัสผ่านด้วย passwd

passwd toneation

Remark :   Red คือ syntax  Blue คือ option
                
 
 
  
 ตัวอย่างการใช้งาน คำสั่ง useradd


ตัวอย่างการใช้งาน คำสั่ง passwd


ผลลัพท์ที่ได้จากการใช้งานคำสั่ง logins
 
usage: useradd [-u uid [-o] | -g group | -G group[[,group]...] |-d dir |
-s shell | -c comment | -m [-k skel_dir] | -f inactive |
-e expire | -A authorization [, authorization ...] |
-P profile [, profile ...] | -R role [, role ...] |
-K key=value | -p project [, project ...]] login
useradd -D [-g group | -b base_dir | -f inactive | -e expire
-A authorization [, authorization ...] |
-P profile [, profile ...] | -R role [, role ...] |
-K key=value ... -p project]
 
Thanks : http://www.unix.com

วันจันทร์ที่ 9 พฤษภาคม พ.ศ. 2554

Howto set DNS Client on Solaris.

DNS Client Setup

แก้ไฟล์  /etc/resolv.conf 

# vi /etc/resolv.conf

Add the following lines to it:

search tot.co.th
nameserver 192.168.1.1

ซึ่ง,
  • nameserver IP :  คือ Primary  DNS server
  • search tot.co.th  : Default domain name to search. For example, if you type command nslookup www, it will search it as www.tot.co.th
Thanks : tech-recipes.com

วันพุธที่ 27 เมษายน พ.ศ. 2554

Howto install Oracle 11gR2 on Oracle Solaris 10

ในการทดสอบครั้งนี้  ทำการติดตั้งบน เครื่อง i3 3.2 GHz  RAM 4G  VMware  Workstation 

1.ตรวจสอบ Hardware
-  RAM ขั้นต่ำ อย่างน้อย 1 G  แต่แนะนำ 2 G
-  Harddisk ที่ใช้งานประมาณ 15G  แต่แนะนำ สร้างไว้อย่างน้อย 30G โดยจัดแบ่ง
ดังนี้     /         ใช้ประมาณ  15 G
            swap  2 เท่าของ RAM 
            /export/home/oracle/  แล้วแต่ต้องการ       


2.ตรวจสอบ package on solaris

run command:
pkginfo -i SUNWarc SUNWbtool SUNWhea SUNWlibC SUNWlibms SUNWsprot SUNWtoo SUNWi1of SUNWi1cs SUNWi15cs SUNWxwfnt

run command:
pkgadd -d /cdrom/sol_10_910_x86/Solaris_10/Product SUNWi1cs SUNWi15cs

3.สร้าง user and group
run command:
groupadd oinstall
groupadd dba
useradd -g oinstall -G dba -d /export/home/oracle -s /usr/bin/bash oracle
passwd oracle

4.สร้าง directory ไว้ติดตั้งโปรแกรม
mkdir -p /export/home/oracle/product/11.2.0/dbhome_1
mkdir /export/home/oracle/tmp
chown -R oracle:oinstall /export/home/oracle

5.เพิ่ม kernel parameters
projadd -U oracle -K "project.max-shm-memory=(priv,4g,deny)" oracle
projmod -sK "project.max-sem-nsems=(priv,256,deny)" oracle
projmod -sK "project.max-sem-ids=(priv,100,deny)" oracle
projmod -sK "project.max-shm-ids=(priv,100,deny)" oracle
echo "set maxuprc=16384" >> /etc/system
echo "set max_nprocs=30000" >> /etc/system
echo "set shmsys:shminfo_shmmax=4294967295" >> /etc/system

6.กรณีต้องการเพิ่ม swap file
mkfile 1024m /export/home/oracle/orcl_swap
2swap -a /export/home/oracle/orcl_swap
 
7.ทำการ set profile ของ user oracle
export ORACLE_BASE=/export/home/oracle
export ORACLE_HOME=$ORACLE_BASE/product/11.2.0/db_1
export PATH=$ORACLE_HOME/bin:$PATH
export TMP=/export/home/oracle/tmp
export TMPDIR=/export/home/oracle/tmp
export DISPLAY=:0.0
 
8.สร้าง directory “installation” ภายใต้ /export/home/oracle เพื่อทำการเก็บ source  ของตัวติดตั้ง
แล้ว คัดลอก โปรแกรม มาเก็บไว้  หรือทำการ  download โปรแกรมจาก เว็บ ของ oracle
 
จากนั้นทำการแตกไฟล์ แล้วรันคำสั่งติดตั้งโปรแกรม
 
unzip your_file1.zip
unzip your_file2.zip

cd database

./runInstaller
 
**หมายเหตุ  ก่อนการติดตั้งให้ใช้ login root   ทำการรันคำสั่ง  xhost +  เพื่อ enable security
ภาพประกอบตาม link ด้านบน
 

วันพุธที่ 20 เมษายน พ.ศ. 2554

Howto change hostnme on solaris 10

Step 1: Update /etc/hosts

192.168.0.1 newhostname


Step 2: Change /etc/nodename

echo "newhostname" > /etc/nodename


Step 3: Update /etc/hostname.

echo "newhostname" > /etc/hostname.e1000g0

Reboot or

Apply the new hostname, do it manually:
 
uname -S newhostname




Thanks :  solaris.reys.net

วันพฤหัสบดีที่ 7 เมษายน พ.ศ. 2554

Howto change TIMEZONE on Solaris 10


1. Edited the /etc/TIMEZONE file ,set TZ


TZ=Asia/Bangkok


2. Run command 


#rtc -z Asia/Bangkok
#rtc -c


3. Reboot the system to effect the change 






Thanks : blogs.sun.com

วันพฤหัสบดีที่ 24 มีนาคม พ.ศ. 2554

Install nagios nrpe on ubuntu

First, you need to install the nagios-nrpe-server. There is a nagios-nrpe-plugin but that’s not what you need because that is just the plugin and you need this daemon (Linux equivalent of a Windows Service for all you Windows guys).
sudo apt-get install nagios-nrpe-server
next, we should check and make sure that the service is actually running. We can do this two ways
sudo ps -Al | grep nrpe
This will show a line where the process is started. If it just comes back without stating anything something is wrong. Another check is to make sure you machine is listening on the nrpe port
netstat -an | grep 5666
Next, we need to set up the Nagios server to be able to check our machine.
sudo nano /etc/nagios/nrpe.cfg
and change
allowed_hosts=127.0.0.1
to
allowed_hosts=127.0.0.1,x.x.x.x
where “x.x.x.x” is the ip address of your nagios server. Now restart the nrep daemon so it reloads the settings
sudo /etc/init.d/nagios-nrpe-server restart
Now go on the Nagios server and run the following command
/usr/local/nagios/libexec/check_nrpe -H y.y.y.y
where “y.y.y.y” is the ip address of the machine you just installed nrpe on. If it works it will respond with the version of NRPE you just installed on the machine.

วันเสาร์ที่ 9 ตุลาคม พ.ศ. 2553

Get "Too many different cell formats " error message in Exel.

You receive a "Too many different cell formats" error message in Excel

To resolve this problem, simplify the formatting in the workbook. For example, the following are suggestions for simplifying formatting:


  • Use a standard font.

Using the same font for all cells reduces the number of formatting combinations.

  • If you use borders in a worksheet, use them consistently.

NOTE: If you apply a border to the right side of a cell, it is not necessary to apply a border to the left side of the cell that is to the right because the borders overlap.

  • If you apply patterns to the cells, remove the patterns by clicking No Color in the Patterns tab of the Format Cells dialog box.

NOTE: After you simplify or standardize the formatting in the workbook, save, close, and then reopen the workbook before you apply additional cell formatting.
 
 
Or create new file and copy old data to new file. : )
 
 
Thanks:  support.microsoft.com

วันอังคารที่ 20 กรกฎาคม พ.ศ. 2553

How To Use SFC /Scannow to Repair Protected Windows Operating System Files

sfc scannow เป็น option หนึ่งที่มีให้ใช้งานของคำสั่ง  sfc  ซึ่งอยู่ใน Command Prompt ของ Window โดยใช้จัดการเกี่ยวกับการตรวจสอบไฟล์ของระบบ Windows  ซึ่งนิยมใช้งานกันแพร่หลาย

Sfc /scannow โดยจะทำการตรวจสอบไฟล์ระบบที่สำคัญและแก้ไขส่วนที่มีปัญหา ซึ่งจะต้อง login ด้วย user ในสิทธิ์ของ Administrator


ซึ่งเมื่อรัน คำสั่งแล้ว  window ก็จะเรียกหาแผ่น Window เพื่อทำการตรวจสอบไฟล์ระบบ


Thanks : about.com

วันศุกร์ที่ 16 กรกฎาคม พ.ศ. 2553

Howto resolve window when CD/DVD optical is disappeared.


วันดีคืนร้าย ไดร์ฟออพติคอล CD/DVD ROM อยู่ๆก็หายไปเฉยๆ

1. ไป START > RUN > พิมพ์ regedit

2. เมื่อเข้า regedit แล้ว หาโฟลเดอร์ HKEY_LOCAL_MACHINE SYSTEM CurrentControlSet Control Class {4D36E965-E325 -11CE-BFC1-08002BE10318}

3. เมื่อคลิก {4D36E965-E325 -11CE-BFC1-08002BE10318} ด้านขวามือจะเห็น "Upperfilters" "Lowerfilters" ลบทั้งสองค่าออก ปิด regedit แล้วรีสตาร์ทเครื่อง

วันอาทิตย์ที่ 11 กรกฎาคม พ.ศ. 2553

How to Restore Window with Norton Ghost

การนำข้อมูลที่เก็บไว้มาใช้งานใหม่หรือที่เรียกว่า Restore
หลังจากนี้ หากวันดีคืนดี Windows มีอันต้องเป็นไปด้วยเหตุผลใดก็ตาม หากเราต้องการที่จะนำเอาข้อมูลและโปรแกรมต่าง ๆ ที่ได้ทำการสำรองเก็บไว้ออกมาใช้เหมือนเดิม วิธีการก็จะคล้าย ๆ กันคือ เรียกโปรแกรม Norton Ghost ก่อน (จาก MS-DOS mode นะครับ)
-ในการนำข้อมูลกลับมา หลังจากเรียกโปรแกรมแล้ว ให้เลือกที่เมนู Local >> Partition >> From Image คือเป็นการนำเอา Image file มาใส่ลงใน Partition นั่นเอง
-เลือกไฟล์ที่ต้องการจะนำข้อมูลมาใช้งาน แล้วเลือกกดที่ Open 
-เลือก Partition ของข้อมูลที่อยู่ใน Image file และกด OK
-เลือกฮาร์ดดิสก์ที่จะใส่ข้อมูลจาก Image file ควรระมัดระวัง Drive ให้ถูกต้องด้วยนะครับถ้ามีฮาร์ดดิสก์หลายตัว
-ถ้าหากฮาร์ดดิสก์ที่เลือกใส่ข้อมูลกลับลงไปมีหลายพาร์ติชัน ให้ทำการเลือก Partition ที่ต้องการ เช่น Drive C: ก็คือ Partition ที่ 1 นั่นเอง กดที่ OK
-โปรแกรมจะมีการถามเพื่อยืนยันการทำงานอีกครั้ง หากมั่นใจว่าไม่มีอะไรใส่ผิดก็กดที่ Yes เพื่อเริ่มต้นการนำข้อมูลจาก Image file มาใส่ลงใน Partition ได้เลยครับ หลังจากที่โปรแกรมทำการก็อปปี้เสร็จเรียบร้อยแล้ว ในกรณีเช่นนี้จะต้องทำการ Restart Computer ใหม่เสมอ หากไม่มีอะไรผิดพลาด เราก็จะได้ Windows ตัวเดิมเมื่อครั้งที่ยังไม่มีปัญหากลับคืนมาเหมือนเดิมครับ


ข้อควรระวังอย่างมากคือ การเลือก Drive และ Partition เพราะหากทำผิด Partition อาจจะทำให้ข้อมูลต่าง ๆ หายได้ ดังนั้น ก่อนที่จะทำ ควรจะทำการสำรองข้อมูลที่สำคัญมาก ๆ เก็บไว้ก่อน เพื่อความปลอดภัยของข้อมูลนะครับ




******************************


Norton Ghost can help you to Back up Window.

Norton Ghost โปรแกรมช่วย แบคอัพฮาร์ดดิสก์ เก็บไว้เผื่อยามฉุกเฉิน
ครั้งหนึ่ง สมัยที่ผมเองหัดใช้งาน Windows ช่วงแรก ๆ ก็ซนพอสมควร มีการลองของคือ ทดลองลงโปรแกรมต่าง ๆ เดี๋ยวใส่ เดี๋ยวเอาออก ไม่นานเท่าไรนัก Windows ตัวเก่งก็เพี้ยนไปเลย ต้องมาลง Windows ใหม่อีก เรียกได้ว่าต้องลง Windows ใหม่ทุกสัปดาห์เลยก็ว่าได้ เป็นอย่างนี้อยู่ค่อนข้างนานพอสมควร ในสมัยนั้นผมเองก็คิดหาวิธีที่จะทำการ copy ตัวซอฟต์แวร์ต่าง ๆ เก็บไว้เป็นแบคอัพสำรองเอาไว้ เพื่อที่เวลามีปัญหา จะได้นำเอาไฟล์ที่ทำแบคอัพนั้นมาใช้งาน จนกระทั่งมาพบกับโปรแกรม Norton Ghost ที่มีความสามารถเก็บข้อมูลทั้งหมดใน พาร์ติชันของฮาร์ดดิสก์ ไว้ได้แบบที่เรียกว่า ทุกกระเบียดนิ้วเลยทีเดียว อีกทั้งตัวโปรแกรมก็ทำงานบน DOS ซึ่งเป็นการทำงานที่ง่าย ๆ ไม่ยุ่งยาก และสามารถทำงานหลังจากที่ทำการ ฟอร์แม็ต ฮาร์ดดิสก์ ได้ทันที ใช้เวลาในการทำ แบคอัพ และนำกลับคืนไม่นานมากนัก ดังนั้น จึงขอแนะนำให้ท่านที่มีฮาร์ดดิสก์ ที่มีพื้นที่เหลือมากพอ หลังจากที่ทำการลง Windows ใหม่และติดตั้งซอฟต์แวร์ต่าง ๆ เรียบร้อยแล้ว ทำการเก็บแบคอัพข้อมูลและ Windows เก็บไว้ ครั้งต่อไป หากมีปัญหาที่ตัว Windows ก็จะได้ไม่ต้องมาทำการลงโปรแกรมใหม่ทั้งหมดครับก่อนอื่น ต้องหาโปรแกรม Norton Ghost นี้มาใช้งานกันก่อน ลองดูจาก http://www.symantec.com/ นะครับ โปรแกรมจะมีขนาดไม่ใหญ่มากนัก หลังจากดาวน์โหลดมาแล้วก็ให้ทำการ unzip และเขียนไฟล์ ใส่แผ่นดิสก์ไว้ก่อน จากนั้น จะบูตเครื่องจากแผ่นดิสก์ที่ได้นี้ หรือจะ copy เฉพาะไฟล์ ghost.exe เก็บไว้ใน โฟล์เดอร์ต่างหาก เพื่อที่จะใช้งานโดยตรงเลยก็ได้


ทำความเข้าใจกับฮาร์ดดิสก์ในเบื้องต้นก่อน
ก่อนการใช้งาน Norton Ghost อยากจะให้ทำความเข้าใจ ระบบการเก็บข้อมูลและการแบ่งพาร์ติชันของฮาร์ดดิสก์ กันก่อน เพราะตรงนี้ถือเป็นสิ่งที่สำคัญมาก ๆ หากเราไม่เข้าใจและทำโดยใส่ไดร์ฟหรือพาร์ติชันผิด ข้อมูลต่าง ๆ อาจจะหายไปทั้งหมดเลยก็ได้ ดังนั้น ขอให้พยายามศึกษาคำว่า Drive และ Partition ให้เข้าใจจริง ๆ ก่อน
Drive ในที่นี้หมายถึง ตัวฮาร์ดดิสก์ คือ ในคอมพิวเตอร์ 1 เครื่องสามารถที่จะทำการติดตั้ง ไดร์ฟต่าง ๆ ได้หลาย ๆ ตัวเช่น Drive A: คือฟลอปปี้ดิสก์ Drive C: คือฮาร์ดดิสก์ตัวแรก ส่วน Drive D: คือซีดีรอม เป็นต้น สำหรับกรณีของฮาร์ดดิสก์ จะมีพิเศษกว่านั้น คือเราสามารถทำการแบ่งฮาร์ดดิสก์ 1 ตัวให้เป็นหลาย ๆ ไดร์ฟได้ เช่น ฮาร์ดดิสก์ 1 ตัวแต่ถูกแบ่งออกเป็น Drive C: และ Drive D: โดยที่ซีดีรอม ก็จะกำหนดให้เป็น Drive E: แทนเป็นต้น
Partition ก็คือการแบ่งพื้นที่ของฮาร์ดดิสก์ ออกเป็นหลาย ๆ ไดร์ฟ หรือเรียกว่าการแบ่งเป็นหลาย ๆ Partition นั่นเอง จากตัวอย่างข้างบน คือ เราสามารถที่จะแบ่งฮาร์ดดิสก์ 1 ตัวออกเป็นได้หลาย ๆ พาร์ติชัน หรือแบ่งออกเป็นหลาย ๆ ไดร์ฟนั่นเอง ทีนี้ ลองสำรวจเครื่องคอมพิวเตอร์ที่ใช้งานอยู่กันก่อน ว่ามีฮาร์ดดิสก์ติดตั้งอยู่กี่ตัว และมีการแบ่งการใช้งานหรือแบ่งพาร์ติชัน ต่าง ๆ ออกเป็นอย่างไรบ้าง อย่างเช่นฮาร์ดดิสก์ของเครื่องที่ผมใช้งาน มี 1 ตัวแต่แบ่งออกเป็น 2 พาร์ติชัน ดังนั้น ในระบบ Windows เครื่องผมก็จะมองเห็นว่ามีไดร์ฟ C: กับ D: เป็นฮาร์ดดิสก์ ส่วนซีดีรอม ก็จะเป็นไดร์ฟ E: แทน ที่ต้องให้ทำความเข้าใจกับเรื่อง Drive และ Partition ตรงนี้ก่อน ก็เพราะว่า ในการใช้งาน Norton Ghost จะต้องมีการอ้างถึงสองคำนี้ และเพื่อเป็นการป้องกัน การผิดพลาดที่อาจจะเกิดขึ้นได้ จากการใส่หรือระบุ Drive หรือ Partition ผิดครับ



ฮาร์ดดิสก์ที่จะทำแบคอัพได้ ต้องเป็นอย่างไร
จากที่ได้บอกแล้วว่า การใช้งาน Norton Ghost นี้จะเป็นการทำสำรองหรือแบคอัพข้อมูลทั้งพาร์ติชัน ของฮาร์ดดิสก์ ดังนั้น ฮาร์ดดิสก์หรือคอมพิวเตอร์ที่จะทำการแบคอัพแบบนี้ได้ จะต้องมีการแบ่งพาร์ติชัน ออกเป็นอย่างน้อย 2 พาร์ติชัน หรือจะต้องมีไดร์ฟ อยู่ในเครื่องอย่างน้อย 2 ไดร์ฟนั่นเอง ด้วยเหตุผลง่าย ๆ ก็คือ เราจะทำการเก็บทุกอย่างใน Drive C: นำเอาไปเก็บไว้ใน Drive D: เพื่อที่จะได้ทำการฟอร์แมต Drive C: ได้ หลังจากนั้น ก็ทำการนำข้อมูลที่ถูกเก็บไว้ใน Drive D: มาใส่คืนใน Drive C: ใหม่ หรือที่เรียกว่าการ Restore นั่นเอง ดังนั้น หากใครมีฮาร์ดดิสก์แค่เพียง Drive C: ตัวเดียว คงจะต้องเริ่มต้นวางแผน การจัดแบ่งพาร์ติชันของฮาร์ดดิสก์ กันใหม่ก่อนนะครับ อย่างน้อยที่สุดก็ควรที่จะแบ่งออกเป็น 2 ไดร์ฟ เพื่อใช้สำหรับลง Windows ไดร์ฟหนึ่ง และอีกไดร์ฟที่เหลือก็สำหรับเก็บข้อมูลและไฟล์ที่จะทำแบคอัพด้วย Norton Ghost ด้วย หากเครื่องใครที่คิดว่าพร้อมแล้ว ก็เริ่มต้นทดลองใช้งานกันได้เลย
เริ่มต้นเรียกใช้งานโปรแกรม Norton Ghost
หลังจากที่หา ดาวน์โหลด มาแล้วก็ทำการ unzip และเก็บไว้ในโฟลเดอร์ที่สร้างขึ้นมาใหม่ จะได้ไฟล์ GHOST.EXE ซึ่งในการใช้งาน จะต้องทำใน MS-DOS Mode เท่านั้น วิธีการเข้า DOS Mode ทำได้โดยการสั่ง Shutdown และเลือกที่ Restart in MS-DOS mode หรือเมื่อบูทเครื่องใหม่ กดปุ่ม F8 ค้างไว้และเลือกที่ MS-DOS mode หรือจะเป็นการบูทเครื่องจากแผ่น Startup Disk Windows 98 ก็ได้ หลังจากเข้า MS-DOS mode แล้วก็ใช้คำสั่งเปลี่ยนโฟลเดอร์ไปที่ ๆ เก็บโปรแกรม Norton Ghost เรียก ghost และกด Enter จะมีโลโก้ของโปรแกรม กดที่ปุ่ม OK เพื่อเริ่มต้นการใช้งาน



การทำแบคอัพหรือทำสำเนาฮาร์ดดิสก์เก็บไว้
ขั้นตอนแรก คือการทำแบคอัพเก็บไว้ก่อน โดยการเรียกโปรแกรม Norton Ghost และกดที่ OK เพื่อเริ่มต้นการทำงาน จะเห็นเป็นเมนูต่างๆ ให้เลือก

-ในการทำแบคอัพเก็บข้อมูล หลังจากเรียกโปรแกรมแล้ว ให้เลือกที่เมนู Local >> Partition >> To Image (ใช้ปุ่มลูกศรซ้ายขวา และกด Enter เพื่อเลือก) คือเป็นการสั่งให้ทำกับ Partition ให้สร้างเป็น Image ไฟล์เพื่อเก็บไว้ใช้งาน (Image คือไฟล์แบคอัพ ที่จะเก็บข้อมูลทั้งหมดของฮาร์ดดิสก์ครับ) กดปุ่ม Enter เพื่อเลือกการทำ Partition to Image ครับ
-ทำการเลือก Drive ที่ต้องการจะทำแบคอัพสำรองข้อมูล คือ Drive ที่ 1 นั่นเอง (ตัวอย่างนี้มีฮาร์ดดิสก์ 1 ตัวในเครื่องนี้) ใช้ปุ่ม Tab เพื่อเลื่อนปุ่มไปที่ OK และกด Enter (กดที่ปุ่ม Tab ไปเรื่อย ๆ เพื่อเปลี่ยนตำแหน่งของการกดปุ่มได้)
-จากนั้นทำการเลือก Partition ของ Drive ที่ต้องการจะทำแบคอัพ เช่นในที่นี้มีอยู่ 2 partition (คือ C: กับ D: นั่นเอง) ให้เลือกที่ Partition 1 คือ Drive C: และเลือกที่ OK (โดยกดปุ่ม Tab สำหรับเปลี่ยนตำแหน่งการกดปุ่มนะครับ)
-จากนั้น เลือกชื่อไฟล์ของ Image file ที่จะเก็บเป็นข้อมูลไว้ เช่น win98th หรืออะไรก็ได้ กดที่ Open เพื่อทำงานต่อไป
-โปรแกรมจะมีการถามถึงระดับของการบีบอัดข้อมูล เลือกที่ Fast ครับ
-โปรแกรมจะถามยืนยันอีกครั้ง ก็กดที่ Yes เพื่อเริ่มต้นทำการแบคอัพทันที
-ภาพตัวอย่างขณะที่โปรแกรมกำลังทำการก็อปปี้หรือทำแบคอัพครับ รอจนจบก็เป็นอันเสร็จขั้นตอนการแบคอัพแล้ว ซึ่งเราจะได้ไฟล์ window.gho หรือชื่อไฟล์ตามที่เราตั้งไว้ ที่มีขนาดใหญ่มาก ๆ เก็บสำรองไว้







Thanks : symantec.com
*********************************

วันศุกร์ที่ 2 กรกฎาคม พ.ศ. 2553

How to Lock your Icon of Window Xp Destop.


หากมีการทำงานในคอมพิวเตอร์ที่มีการใช้งานหลายๆคน คงปวดหัวกับการที่ไอคอนงานหายไป หรือ ย้ายตำแหน่งจนหาไม่เจอ



เราจะทำยังไงให้ไอคอนเหล่านี้ โดนล็อคไว้ ให้อยู่ตำแหน่งเดิมที่เราตั้งไว้

1. จัดเรียงไอคอนต่าง ๆ ให้อยู่ในตำแหน่งที่ต้องการ
2. คลิกที่ Start
3. เลือกรายการ Run
4. ที่ช่อง Open พิมพ์ regedit คลิก OK
5. เลือกรายการ

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer

6. คลิกเมาส์ขวาลือก New
7. เลือกรายการ Binary Value เพื่อปรับเปลี่ยนค่า
8. ปรากฎชื่อของรายการ Binary Value ให้เปลี่ยนชื่อเป็น NoSaveSettings
9. เสร็จแล้วคลิกขวาที่ NoSaveSettings ที่สร้างไว้ คลิกขวาเลือคำสั่ง Modify
10. ตั้ง Value data เป็น 10 00 00 00
11. คลิก OK




Thanks : thaiware.com

How to use windows 32bit with memory 4GB

ระบบปฏิบัติการที่ใช้เป็น Windows Vista รุ่น 32 บิท ซึ่งมันจะมองเห็นหน่วยความจำระบบได้ไม่เกิน 4GB ข้อเท็จจริงก็คือ มันจะมองเห็น 3.3GB เท่านั้น ทำให้ผู้บริโภคที่เป็นเจ้าของเครื่องที่มีแรม 4GB รู้สึกขาดทุนกับหน่วยความจำที่ไม่ถูกใช้งานประมาณ 700MB

แต่ก่อนจะรู้สึกเซ็งกับเหตุการณ์ที่เกิดขึ้น มีคำแนะนำให้ 2 ทางด้วยกันคือ วิธีแรกอัพเกรดไปใช้ Windows Vista 64 bit ที่สามารถมองเห็นหน่วยความจำได้สูงสุดถึง 128GB ขึ้นไป (สำหรับเวอร์ชันสูงๆ แต่ถ้าเป็น Home Basic ก็ 8GB เท่านั้น) ส่วนอีกวิธีหนึ่งก็คือ ตรวจสอบ CPU ของเครื่องว่ามีโหมดการทำงาน 64-bit compatible หรือเปล่า? ซึงหากตรวจสอบพบว่า มีโหมดการทำงานนี้อยู่ คุณสามารถเปิดค่าการทำงานให้ระบบมองเห็นหน่วยความจำ 4GB ได้ แม้จะใช้ Windows Vista 32-bit ก็ตาม

ขั้นแรก: ตรวจสอบซีพียูที่ใช้ด้วยการดาวน์โหลดฟรีแวร์ CPU-Z 1.54 Setup (English) มาติดตั้งแล้วรันโปรแกรมขึ้นมา มองหาบรรทัดที่เขียนว่า Instructions ในกรณีที่เป็นซีพียูของ Intel ให้สังเกตข้อความในกล่องข้อความว่ามีคำว่า EMT64T หรือไม่? แต่ถ้าเป็น AMD ให้สังเกตคำว่า x86-x64 ถ้าพบว่ามี โชคก็เข้าข้างคุณแล้ว


ขั้นที่สอง: คราวนี้เราจะมาเซ็ตอัพให้ซีพียูมองเห็นหน่วยความจำแบบ 64 บิทก็คือ สามารถมองเห็นได้มากกว่า 4GB โดยสั่งเปิด (Enable) คุณสมบัติการทำงานทีมีชื่อว่า PAE (Physical Address Extension) ซึ่งมันจะทำให้ระบบปฏิบัติการ Windows 32 บิท สามารถมองเห็นแอดเดรสหน่วยความจำ 4GB ได้ ขั้นตอนการเปิดการทำงานมีดังนี้

  1. ในช่อง Search บนปุ่ม Start พิมพ์คำสั่ง cmd
  2. คลิกขวาบนรายการ cmd ที่เสิร์ชพบ เลือกคำสั่ง Run as ministrator
  3. พิมพ์คำสั่ง bcdedit /set pae forceenable แล้วกดปุ่ม Enter




หากการทำงานทุกอย่างถูกต้องระบบจะแจ้งว่า The operation completed successfully จากนั้นลองตรวจสอบด้วยการคลิกขวาบนรายการ Computer ในเมนู Start เลือกคำสั่ง Properties ระบบแจ้งว่า มีหน่วยความจำ 4GB แล้ว



หมายเหตุ: การเปิดการทำงานของ PAE อาจทำให้เครืองทำงานช้าลงเล็กน้อย เนื่องจากมันมีการเพิ่มรอบการอ้างแอดเดรสหน่วยความจำขึ้นมา ซึ่งหากคุณไม่พอใจตรงจุดนี้ ก็สามารถสั่งปิดการทำงานได้ด้วยคำสั่งในหน้าต่าง cmd ดังนี้

  1. bcdedit /set nx alwaysoff
  2. bcdedit /set pae forcedisable


แล้วรีสตาร์การทำงานของระบบ เป็นอันยกเลิกเรียบร้อย อย่างไรก็ตาม ข้อควรทราบอีกประการหนึ่งก็คือ การยกเลิก PAE จะมีการยกเลิก DEP (Data Execution Prevention) ที่ Windows ใช้ในการป้องกันมัลแวร์เข้าถึงหน่วยความจำระบบด้วย หากฮาร์ดแวร์ของคุณสนับสนุนการทำงานของ DEP ด้วย ก็ควรจะเปิดการทำงานนี้ เพื่อความปลอดภัย

วันพุธที่ 9 มิถุนายน พ.ศ. 2553

Window has Blue screen 0x0000007B

Stop 0x0000007B or INACCESSIBLE_BOOT_DEVICE

The Stop 0x7B message indicates that Windows XP has lost access to the system partition or boot volume during the startup process. Installing incorrect device drivers when installing or upgrading storage adapter hardware typically causes stop 0x7B errors. Stop 0x7B errors could also indicate possible virus infection.

The second parameter is very important because it can indicate whether the 0x7B Stop message was caused by file system issues or problems with storage hardware and drivers. Values of 0xC000034 or 0xC000000E typically indicate:

• Disks or storage controllers that are failing, defective, or improperly configured.

• Storage-related drivers or programs (tape management software, for example) that are not fully compatible with Windows XP Professional.

Possible Resolutions:

• During I/O system initialization, the controller or driver for the startup device (typically the hard disk) might have failed to initialize the necessary hardware. File system initialization might have failed because of disk or controller failure, or because the file system did not recognize the data on the boot device.

• Repartitioning disks, adding new disks, or upgrading to a new disk controller might cause the information in the Boot.ini file, or Boot Manager, to become outdated. If this Stop message occurs after installing new disks to your system, edit the Boot.ini file or adjust the Boot Manager parameters to allow the system to start. If the error occurs after upgrading the disk controller, verify that the new hardware is functioning and correctly configured.

• Verify that the system firmware and disk controller BIOS settings are correct and that the storage device was properly installed. If you are unsure, consult your computer's documentation about restoring default firmware settings or configuring your system to auto-detect settings. If the error occurs during Windows XP Professional setup, the problem might be due to unsupported disk controller hardware. In some cases, drivers for new hardware are not in the Windows XP Professional Driver.cab library, and you need to provide additional drivers to complete the Windows XP setup successfully. If this is the case, follow the hardware manufacturer's instructions when installing drivers. Periodically check for driver and firmware updates.

• Hard disk corruption can also cause this Stop message. For more information about checking hard disk integrity, see the instructions provided in "Stop 0x00000024 or NTFS_FILE_SYSTEM" earlier in this list.

• Problems that cause 0x7B errors might also cause Stop 0xED errors. For more information about 0xED Stop messages, see "Stop 0x0000007B or INACCESSIBLE_BOOT_DEVICE" later in this list.

Thanks : www.geekstogo.com

วันอาทิตย์ที่ 16 พฤษภาคม พ.ศ. 2553

Howto resolve window when Windows Error Recovery

Windows 7 ซึ่งเกิดมีปัญหาที่ทำให้ไม่สามารถใช้งานได้ ไม่ว่าจะด้วยสาเหตุอะไร หรือเนื่องจาก

โดนไวรัสกัดกินไฟล์ระบบ ในการบูตเครื่องครั้งต่อไปก็อาจจะเจอกับหน้าจอนี้ได้





สำหรับหน้าต่าง Windows Error Recovery นี้ ไม่ว่าเราจะกด Enter เพื่อบูตเข้าใช้งาน Windows สักกี่ครั้ง ก็จะกลับมาที่หน้านี้เหมือนเดิม



วิธีการแก้ไขสามารถทำได้ไม่ยากครับ เพียงแค่ดาวน์โหลดไฟล์อิมเมจ Windows 7 Recovery Disc ซึ่งเป็นไฟล์ .ISO มาเขียนลงแผ่น CD/DVD

เลือกดาวน์โหลดตามระบบปฏิบัติการที่ท่านใช้อยู่

Download Windows 7 Recovery Disc (32-bit)

Download Windows 7 Recovery Disc (64-bit)

แล้วบูตเครื่องเข้าใช้งาน Windows 7 Recovery Disc โดยเรียกใช้งานเมนูลัดหลังจากเปิดเครื่องโดยกด

F8 สำหรับเมนบอร์ด Asus แล้วเลือก CD/DVD

F11 สำหรับเมนบอร์ด ECS, Asrock แล้วเลือก CD/DVD

F12 สำหรับเมนบอร์ด Gigabyte แล้วเลือก CD/DVD

แล้วจะพบกับหน้าจอโปรแกรม แล้วเลือกไดรว์ที่ได้ติดตั้งระบบ Windows 7 เอาไว้ แล้วคลิก Next



ตรงนี้จะใช้เวลานานสักหน่อยนะครับ ให้รอด้วยความใจเย็นกันสักนิด เพราะระบบจะทำการค้นหาไฟล์ระบบที่เสียหายและทำการซ่อมแซมให้โดยอัตโนมัติ



กด Finish ก็เป็นอันเสร็จเรียบร้อย หลังจากนี้ก็รีบูตเข้าใช้งาน Windows ตัวโปรดได้ตามปกติเหมือนเดิมแล้ว


Thanks : varietypc.net/

วันพุธที่ 7 เมษายน พ.ศ. 2553

When excel has Error Message "PivotTable Field Name Is Not Valid"

Error Message

"The PivotTable field name is not valid. To create a PivotTable, you must use data that is organized as a list with labeled columns. If you are changing the name of a PivotTable field, you must type a new name for the field."

To resolve this problem,

Method 1
Modify the first row so that it does not contain any empty cells.


Method 2
Change the range the PivotTable references to a range where the first row does not contain empty cells. To change or to determine the range an existing PivotTable references.

Thanks : support.microsoft.com