Skip navigation.

Eakrin 's Blog (บล็อกของเอก)

Unofficial A780 & A1200 & Rokr E6 software developer

การแบ่ง Partition ในการติดตั้ง Windows แบบมืออาชีพ

,

การติดตั้ง Windows XP โดยทั่วไปสามารถทำได้แบบง่ายๆคือใส่ CD เข้าไปแล้วก็ตอบคำถามเล็กน้อย รอสักพักเราก็จะได้ Windows XP ไว้ใช้งาน แต่เมื่อใช้งานไปสักพักก็จะเริ่มมีปัญหากับฮาร์ดดิส เช่นเครื่องเริ่มช้าลงจนต้อง Defrag แต่สักพัก ก็จะเป็นอีก สุดท้ายก็ต้องลง windows ใหม่พร้อมทั้ง format ฮาร์ดดิสใหม่ และเนื่องจากคอมที่ทำงานผมมีคนใช้งานหลายคน จำเป็นต้องสร้างผู้ใช้งานหลายๆคนในเครื่องเดียวกัน และผมขี้เกียจดูแลเครื่องบ่อยๆเลยคิดวิธีติดตั้งและตั้งค่าใน Windows ขึ้นมา โดยมีจุดประสงค์คือ ให้ Windows สามารถใช้งานได้นานเท่าที่ต้องการโดยไม่ต้อง defrag หรือ เครื่องช้าลงๆ โดยเริ่มจาก

1. แบ่ง Partition ออกเป็น 3 ส่วน อาอจจะไม่จำเป็นต้องอยู่ในฮาร์ดดิสตัวเดียวกันก็ได้ คือ
  • C: (Windows) ใช้สำหรับลง windows และโปรแกรมต่างๆ
  • E: (Temporary) ใช้สำหรับ Pagefile ของ Windows มีพื้นที่ประมาณ 2 เท่าของจำนวนแรมที่มี หรืออาจจะเผื่อไว้ได้ถ้ามีฮาร์ดดิสเยอะซัก 3-4G
  • F: (Users) ใช้เก็บ Profile ของผู้ใช้แต่ละคน, โปรไฟล์คือข้อมูลทั้งหมดของผู้ใช้งาน Windows รวมทั้งไฟล์ต่างๆที่เขาจะเก็บไว้ในเครื่อง


2. ติดตั้ง Windows ให้เรียบร้อยโดยติดตั้งลงใน Partition Windows และไม่ต้องสร้าง user ขึ้นมาใช้งาน

3. ทำการ format Partition ส่วนที่เหลือให้เรียบร้อย

4. ย้าย pagefile ไปไว้ใน Temporary partition. โดยเข้าไปที่ Control Panel -> System -> Advance -> Performance -> [Setting] -> Advance -> Virtual Memory แล้วกำหนดให้

  • C: เลือก No Page file.
    E: เลือก System define. คือให้ระบบกำหนดขนาดให้ หรือ จะกำหนดขนาดเองก็ได้ ประมาณ 1.5-2 เท่าของแรมที่มี
    F: เลือก No Page file.

แล้วกดปุ่ม Set (ตั้งค่า)

5. เปิดใช้งาน Register Editor โดย Start Menu -> Run แล้วพิมพ์ regedit

6. เข้าไปที่ HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList
โดยแก้ไขจาก %SystemDrive%\Documents and Settings
เป็น F:\Documents and Settings
** สังเกตุ F: คือชื่อไดรว์ของ Users พาร์ติชั่น แต่ละเครื่องอาจจะไม่ตรงกัน

7. เข้าไปที่ C:\Documents and Settings แล้ว สั่ง copy โฟลเดอร์ All Users กับ Default User ไปไว้ที่ F:\Documents and Settings

8. หลังจากนี้สร้างผู้ใช้งาน (User) ใหม่ตามที่ต้องการได้เลย Profile ที่สร้างใหม่หลังจากนี้จะไปอยู่ที่ F: ทั้งหมด

หลังจากนี้ก็ Log out แล้วไป Login ในชื่อผู้ใช้ที่สร้างใหม่ ไฟล์ทั้งหมดของคุณก็จะไปอยู่ที่ F: ทำให้สามารถ backup ได้ง่าย และไม่ต้อง defrag เครื่อง เพราะ F: มีแต่ข้อมูลยังไงก็เขียนๆลบๆอยู่แล้ว C: มีแต่โปรแกรมลงแล้วลงเลย E: เป็นที่เก็บไฟล์ชั่วคราว ถ้าจำเป็นต้องลง Format C: เพื่อ Windows ใหม่ข้อมูลทั้งหมดก็ยังอยู่ใน F: สบายแฮเลยครับ

ปล. ที่ไม่เขียนวิธีทำอย่างละเอียดเพราะไม่ต้องการให้มือใหม่หัดใช้ไปลองทำครับ เพราะถ้าทำผิดจะแก้ไขลำบากมาครับ

Slax 4 seasons

, ,

SLAX 4 SEASONS for A780, E680i, and A1200

SLAX เป็น ลีนุกซ์ขนาดเล็กที่สามารถเรียกใช้งานได้จากแผ่น CD ขนาด 3.14" หรือแจก Flash Drive โดยไม่ต้องติดตั้งลงเครื่อง (เรียกว่า Live CD) สามารถดาวน์โหลดและดูรายละเอียดได้ที่ Slax Linux โดย slax จะใช้ KDE เป็นตัวติดต่อกับผู้ใช้งาน KDE สร้างมาจาก QT Library ซึ่งทางโมโตโรล่าได้นำมาใช้สร้าง EZX ที่ใช้งานในมือถือของพวกเราครับ


Slax 4 seasons เกิดจากหน้าจอที่สวยงามของ KDE และ crystal SVG ไอคอนของ Everaldo.com รวมกับ Wallpaper และโลโก้สวยๆของ Slax ลีนุกซ์



หน้าจอไอคอนโปรแกรมต่าง


Wallpaper สวยๆ 4 รูปที่เป็นที่มาของชื่อ Slax 4 seasons


หน้าจออื่นๆ



โหลดไฟล์ได้ที่ ThaiLinuxPDA ได้เลยครับ

CG35 ภาษาไทยรุ่น Pink สำหรับคนน่ารัก

, , ,

CG35 ของ Motorola E680i และ A780 คือส่วนนึงของ firmware ที่เราสามารถแก้ไขเองได้โดยที่ไม่ต้องแฟลชเครื่องใหม่ ภายในประกอบด้วยไฟล์ต่างๆของภาษาที่ใช้งานในเครื่องเช่นอังกฤษ ไทย จีน, ธีม, วอลเปเปอร์, ริงโทน

CG35 รุ่น Pinkสร้างจาก CG35 มาตรฐาน โดยเพิ่มธีม Kawayi, Hello Kitty (แก้ไขปุ่มกดแล้ว), iPink, Cartton, QQ, Doraemon, และ TLinux รวมกับธีมมาตรฐานอีก 3 เป็นทั้งหมด 10 ธีม โดยใช้ที่ว่างจากการลบไฟล์ VR (คำสั่งเสียง) ภาษาจีน, อิตาลี, โปรตุเกส ออกส่วนอื่นๆไม่มีการดัดแปลงใดๆทั้งสิ้น



โหลดไฟล์ได้ที่นี่
CG35 E680i Pink by Ake

วิธีการติดตั้ง cg35 ใหม่ดูได้ที่
CG35Kit สำหรับติดตั้ง cg35 ตัวใหม่ลงเครื่องโดยไม่ต้อง telnet

หลังจากติตดั้งเรียบร้อยแล้วก็จะได้เครื่องที่มีธีมทั้งหมด 10 ตัวไว้ใช้งานโดนที่ไม่ต้องลงเพิ่มใน ezxlocal และไม่ต้องกลัวว่า memory จะเต็ม

CG35 ภาษาไทย รุ่น FullIcons สำหรับ A780, E680i

, , ,

CG35 รุ่น FullIcons สร้างจาก CG35 มาตรฐาน โดยเพิ่มธีม Cloudgrey (รุ่นเต็ม) by A1200, TLinux ของคุณ TRD, Gnome-Bluecurve ของผมเอง, และ WNepture Mac 3.0 ของ WNepture. โดยลบ VR (คำสั่งเสียง) ภาษาจีน, อิตาลี, โปรตุเกส ออกส่วนอื่นๆไม่มีการดัดแปลงใดๆทั้งสิ้น



โหลดไฟล์ได้ที่นี่เลยครับ เฉพาะผู้ที่ใช้โทรศัพท์ Motorola E680i หรือ A780 เท่านั้นนะครับ
cg35 A780 fullicon
cg35 E680i fullicon

วิธีการติดตั้ง cg35 ดูได้ที่
http://my.opera.com/eakrin/blog/2006/10/14/cg35kit

CG35Kit สำหรับติดตั้ง cg35 ตัวใหม่ลงเครื่องโดยไม่ต้อง telnet (CG35Kit for install and uninstall new cg35 file)

cg35kit คือลินสคริปที่ใช้สำหรับดึง cg35 ออกมาจากโทรศัพท์และใช้ติดตั้ง cg35 กลับลงในโทรศัพท์ การใช้งานจำป็นต้องมีการติดตั้ง LinLoader ลงในโทรศัพท์ก่อน

วิธีการดึง cg35 ออกมาจากเครื่อง
1. ส่งไฟล์ get_cg35.lin เข้าในโทรศัพท์ (ที่ไหนก็ได้) และเตรียมที่ว่างในการ์ด (MMC) ไว้ประมาณ 10-12MB สำหรับเก็บไฟล์ cg35
2. จิ้มที่ไฟล์ get_cg35.lin จะมีเสียงปี๊บ
3. เมื่อการทำงานเรียบร้อยจะได้ยินเสียงปี๊บๆ ไฟล์ที่ได้คือ your_cg35.smg อยู่ในการ์ด (MMC)
4. ให้ย้ายไฟล์ไปเก็บไว้ที่อื่น เพื่อป้องกันการโดนเขียนทับและสำรองไว้เผื่อต้องการติดตั้ง cg35 ตัวเดิมกลับลงเครื่อง

การติดตั้ง cg35 ตัวใหม่ลงเครื่อง
1. ส่งไฟล์ install_cg35.lin และtheme_reset.lin เข้าในโทรศัพท์ (ที่ไหนก็ได้) และส่งไฟล์ cg35 ตัวใหม่ที่ต้องการติดตั้งลงไปในการ์ด (MMC)
2. เปลี่ยนชื่อไฟล์ cg35 ที่ต้องการติดตั้งเป็น cg35.smg
3. จิ้มที่ install_cg35.lin จะมีเสียงปี๊บ
4. รอสักพักเนื่องจากไฟล์ cg35 ค่อนข้างใหญ่ (10-12MB) เมื่อติดตั้ง cg35 ลงเครื่องเสร็จจะมีเสียงปี๊บๆ
5. ปิดและเปิดเครื่องใหม่เพื่อเรียกใช้งาน cg35 ตัวใหม่
6. จิ้มที่ไฟล์ theme_reset.lin เพื่อปรับแก้ธีมใน ezxlocal ให้ตรงกับธีมใน cg35
7. ปิดและเปิดเครื่องใหม่อีกครั้งก็จะได้โทรศัพท์เดิมแต่ cg35 ตัวใหม่ครับ

การติดตั้ง cg35 ตัวเดิมกลับเข้าเครื่อง
ทำได้โดยเปลี่ยนชื่อไฟล์ your_cg35.lin เป็น cg35.smg แล้วทำการติดตั้งแบบเดียวกับการติดตั้ง cg35 ตัวใหม่ลงเครื่อง

ข้อควรระวัง
ก่อนติดตั้ง cg35 ใหม่ควรจะลบธีมที่เคยลงไว้ออกให้หมดก่อน และเปลี่ยนไปใช้ธีมมาตรฐานตัวแรกก่อน

E680i ที่ไม่สามารถเทลเนทในโหมด AT+=99 ได้ (เทลเทลโดยไม่ต้องใช้ไฟล์ acmattach.lin ในโทรศัพท์) ถ้าการติดตั้ง cg35 มีปัญหาแล้วเครื่องค้างที่หน้าจอ HelloMoto จะต้องแฟลชเครื่องใหม่เพื่อแก้ไขครับ ส่วน A780 และ E680 นั้นสามารถเทลเนทเข้าไปแก้ไขเองได้โดยติดตั้ง cg35 ตัวต้นฉบับกลับลงไปครับ.

cg35kit มาจากการทดลองและใช้งานขอผมเอง แจกให้ใช้โดยไม่คิดมูลค่า แต่ถ้าในไปใช้งานแล้วเกิดปัญหาใดๆกับโทรศัพท์ผมไม่ขอรับผิดชอบใดๆทั้งสิ้น การใช้งานเป็นความเสี่ยงของผู้ทำไปใช้


cg35kit is linscripts use to copy your cg35 to file. and use to install new cg35 file into phone. use get_cg35.lin to copy your cg35 into your_cg35.smg in current folder. and use install_cg35.lin to install new cg35 into phone.

How to get your cg35.
1. copy get_cg35.lin to to your phone. becareful for available space im mmc because cg35 new 10-12MB available space.
2. tap on get_cg35.lin and listen to beep sound.
3. after finished cg35 is locate in your_cg35.smg file in mmc folder (/mmc/mmca1/). and 2 beep sounds.
4. copy it to a save place for restore back to phone.

How to install new cg35.
1. copy install_cg35.lin and cg35 file into your phone in the mmc folder (/mmc/mmca1/).
2. rename your new cg35 file to cg35.smg
3. tap on install_cg35.lin and listen to beep sound.
4. after finish installation listen to 2 beep sounds.
5. restart phone.
6. tap on theme_reset.lin to syncronize theme in ezxlocal and cg35.
7. restart phone again.

How to Restore your old CG35
1. rename your_cg35.smg to cg35.smg.
2. do cg35 installation with this file and you will get your old cg35 back.

** Remove all Installed themes before install new cg35.

** Becareful for E680i that cannot telnet in AT+99 mode. Wrong setting theme in cg35 will make your phone always HelloMoto. **
** I will not responsible for all of damage of your phone from using cg35kit. use it if your dare.



โหลดไฟล์ cg35kit ได้ที่นี่ (Download cg35kit here)
cg35kit0.2.zip

How to create skin for Motorola A1200.

,

Skin and Theme in A1200 compare with E680i/A780 (for former E680/i/A780 users)

in Motorola A1200 (Ming), software version is newer than E680i and A780. theme structure and Theme Installation procedure was changed. First meaning of theme in E680i and A780, is split into skin and theme. skin is contain icon, skin, and color configulation. Theme is contain wallpaper and power-on and off screen. but icon file structure and skin file sturcture is the same as E680/i/A780. so we can use old tool to create iconres.ezx and skin file for A1200.



What is A1200's skin (for newbie in Motorola Ezx phones)

skin is components on screen that we see or tap on it. such as button, status bar, dialog, menu, check box, icons. skin components is splited into icons, skin, and colors.

ICON is mean all images that display on screen by drawing in the same size as in icon file.

SKIN is mean all images that display on screen by complex method like stretch, mask, resize.

COLOR is mean color defination for component that doesn't use picture to draw. like fonts, background, highlights.

all icon components are packed in iconres.ezx file with icon data header and all skin components are in one PNG image file and packed in to .skn extension file. I created a tool to extracting and packing icons and skin call IconPackager and SkinPackager. in M$ Windows you need to install Perl Interpreter before you can make its work.

Skin structure for install with Skin Installer
skin Installer is a Mpkg program that use to install and change new skin in A1200. because A1200 cannot install theme by itself. so we need to create skin that can use with Skin Installer. skin in A1200 should have 3-4 file like this

1. skin configulation file in .pskn extension.
2. icon file in iconres.ezx.
3. skin file in .skn extension.
4. skin logo image file.

see detail about Skin Installer AND Theme Installer here

if you can not telnet into A1200 to get default skin and theme. use this lin script to copy them to your MMC. get A1200skin.lin -> getA1200skins.zip everything 'll be in skins folder in MMC.

1. Skin configulation file (*.pskn)
skin configulation file is normal text file that contain configulation of skin components. skin configulation file contain three section Theme config table, Theme Color Palette Table, and Theme Multi Lang Name. this is a default A1200 skin, Maldives Blue.


[THEME_CONFIG_TABLE]
ThemeName = Maldives Blue
ThemeColorPaletteIndex = 1
ThemeSkinFile = /usr/data_resource/skin/default1/HAINAN_01.skn
ThemeLogoIcon = /usr/data_resource/skin/default1/HAINAN_01.jpg
ThemeIconDir = /usr/data_resource/skin/default1/
BlendingColor = 255 255 255
BlendingPercentage=40

[THEME_COLOR_PALETTE_TABLE]


[THEME_MULTI_LANG_NAME]
en-us = Maldives Blue
zh-cn = ไบš็‰นๅ…ฐๅคง็ปฟ
zh-hk = ไบž็‰น่˜ญๅคง็ถ

in theme config table its has a skin components defination. like name, color, icons file, skin file.

ThemeName is use to define name of skin (don't confuse about the word skin and theme. Motorola change concept of theme to skin and theme but didn't change configulation file)

ThemeName = Your Theme Name

ThemeColorPaletteIndex is use to define color palette of skin components. color palette is a set of predifined RGB color for skin in colorpalette.cfg file. there are 3 default palettes in colorpalette.cfg. If color palette is 0 (zero) It's mean no color palette defined. skin will use colors from theme color palette table section.

ThemeColorPaletteIndex = 0

ThemeSkinFile is a filename of skinfile (.skn extension file). skin that install by skin installer should have only file name in ThemeSkinFile like this

ThemeSkinFile = YourNewSkin.skn

ThemeIconDir is a folder path that icon file (iconres.ezx) is in. skin that install by skin installer should have only file name in ThemeIconDir like this

ThemeIconDir = iconres.ezx

ThemeLogoIcon is a screenshot of theme that use by color scheme setting. but in A1200 color scheme setting is only read themes in /usr/data_resource/theme folder. so theme logo icon is useless for us. but it should be like this

ThemeLogoIcon = themelogo.jpg (can be png or gif image)

BlendingColor is a RGB color that use to blending with the wallpaper.

BlendingPercentage is a percentage of color that use to blending with the wallpaper.

in theme color palette table, It 's use to define skin color when ThemeColorPaletteIndex is 0. theme color palette table should have all lines like this or have no line when use color from colorpalette.cfg by specific theme color palette index.


[THEME_COLOR_PALETTE_TABLE]
ThemeBackground = 255 255 255
ThemeBase = 255 255 255

ThemeForeground = 0 0 0
ThemeText = 0 0 0

ThemeButton = 28 111 122
ThemeButtonText = 0 0 0
ThemeHighlight = 186 200 248
ThemeBrightText = 0 0 0
ThemeHighlightedText = 0 0 0

ThemeDisabledText = 90 90 90
ThemeAMBottomHighlight = 186 200 248
ThemeAMBottomHighlightText = 0 0 0

this pictures display color of each components of skin.



in theme multi lang name section is use to define theme name in another languages. this section is useless for us. so define name only in en-us language.

so your skin configulation file (*.pskn) should be like this

[THEME_CONFIG_TABLE]
ThemeName = Your Theme Name
ThemeColorPaletteIndex = 0
ThemeSkinFile = YourNewSkin.skn
ThemeLogoIcon = ThemeLogo.jpg
ThemeIconDir = iconres.ezx
BlendingColor = 255 255 255
BlendingPercentage=40

[THEME_COLOR_PALETTE_TABLE]
ThemeBackground = 255 255 255
ThemeBase = 255 255 255

ThemeForeground = 0 0 0
ThemeText = 0 0 0

ThemeButton = 28 111 122
ThemeButtonText = 0 0 0
ThemeHighlight = 186 200 248
ThemeBrightText = 0 0 0
ThemeHighlightedText = 0 0 0

ThemeDisabledText = 90 90 90
ThemeAMBottomHighlight = 186 200 248
ThemeAMBottomHighlightText = 0 0 0

[THEME_MULTI_LANG_NAME]
en-us = Your theme Name

skin configulation file is a Unix text file. the difference between windows text file and unix text file is a new line character. windows text file use 2 characters at the end of line but unix text file use only 1. Skin and Theme Installer cannot handle windows text file. so becareful when editing skin configulation file use only unix text editor line editplus.

2. Icon file (Iconres.ezx)

all icons of skin are packed in iconres.ezx file. we can extract and packed its by IconPackager and SkinPackager. Both of them are perl script and can run by Active Perl. Active perl can be download here and IconPackager and SkinPackager are here.

after everything completed. put unpackIconRes.pl is the same folder as iconres.ezx and double click on it. unpackIconRes.pl 'll execute by active perl and create a folder name "icons" that contain all icons.



icons can devided in many groups by prefix in its filename. important icon group like GNB, CST, Home, should be changed when create new skin. some groups are use by application like Bluetooth, Calculator, Call, Calender, Camera, Email, Fm radio, FMMS (file manager), RPlayer (real player), Sync, Task, WorldTime. and some group are use with skin like Dialog (status dialog icon), SBar (status bar icon like signal, battery), General, and Cut Screen (general and cutscreen is a skin components that is in icon file such as button, combobox), CLI (icons display when flip closed)

- iconres.ezx is use by merged it with default icon file in /usr/data_resource/icon/iconres.ezx. so we create only icons that need change in your skin other icons 'll used from default iconres.ezx file by phone automatically.

- do not change icon's size when edit icon. because when icon's size is wrong phone will stretch it.

- do not change icon's name. because phone pick icon by name.

- original icon file format is GIF that can have only 256 colors. this can make edge of icon cracked when save icon from another file format. but PNG Image can be use in iconres.ezx but It's size is 1 time bigger than GIF image.

- new feature of A1200 is animated icon. in Home icon set, icon 'll display animated when got focus. animated icon is in GIF animate format and It's name have suffix "Ani".

after completely create new icons for skin. put packIconRes.pl in the same folder as "icons" folder and double click on its to execute. new iconres.ezx file 'll created in file name newiconres.ezx in the same folder as packIconRes.pl. rename it into iconres.ezx.

3. Skin file (*.skn)

all skin components are in one png image and packed into .skn file. and same as icons we can extract skin image by SkinPackager. SkinPackager can download here



put unpackSkin.pl is the same folder as .skn file. rename its to motoskin.skn and double click on unpackSkin.pl. unpackSkin.pl 'll execute by active perl and create a folder name "skins" that contain skin image in PNG format.

skin components can devided in many groups by prefix in its filename.

- becareful when edit skin image about component size and position.

after completely create new skin component image. put packSkin.pl in the same folder as "skins" folder and double click on its to execute. new iconres.ezx file 'll created in file name newiconres.ezx in the same folder as packIconRes.pl. rename it into iconres.ezx.

4. Skin logo image file (*.jpg, *.png)

Logo image is a image that use to show your skin to user before install it. It should be a screenshot. It use only for user to see skin or theme before installation. and for skin creator do not forgot in put your name, skin name, and skin version in this image.

[A1200 logo]

Distribute your skin file

after finished all theme files. put all skin files in the same folder and compress them. (compress folder for easy installation)

eakrin @ MotorolaFans.com (eakrin@gmail.com)
Sep 07, 2006 Bkk, Th

การ Telnet เข้าสู่ A1200

สิ่งที่จำเป็นต้องมี
1. โปรแกรม inetd.mpkg โดย Bragon @ MFC และ yan0 @ ccmove inetd-a1200-v1_1.zip
2. โปรแกรม smbd.mpkg โดย Bragon @ MFC และ yan0 @ ccmove smbd-a1200-v1_1.zip
3. ไดรเวอร์ Belcarra สำหรับ A1200 usblan_yan0.zip
4. ติดตั้ง Mpkg installer ใน A1200 เรียบร้อยแล้ว

ขั้นตอนการ telnet โดยคร่าวๆ มีดังนี้ (แบบเต็มๆต้องรอเครื่อง A1200 มาก่อนครับ เนื่อจากส่งเครื่องทดลองคืนไปแล้ว)

1. ติดตั้งโปรแกรม inetd.mpkg และ smbd.mpkg ลงใน A1200 โปรแกรม inetd สำหรับใช้งานเปิดโหมด telnet และ smbd สำหรับเปิดดูไฟล์ใน A1200 ผ่านทาง Windows Explorer ซึ่งใน A1200 ไฟล์ทั้งสองชุดนี้ไม่มีติดตั้งมาให้เหมือน A780 และ E680/i

การใช้งาน inetd และ smbd ทำได้โดยจิ้มที่ไอคอนเพื่อเปิด และจิ้มซ้ำอีกทีเพื่อปิด จะมีปัญหาเล็กน้อยในการใช้งานเนื่องจาก Bragon ผู้เขียนโปรแกรมจะสั่งให้ไอคอนของ inetd และ smbd แสดงสถานะว่าทำงานหรือไม่ทำงาน แต่จริงๆแล้วไอคอนจะแสดงการเปลี่ยนแปลงก็ต่อเมื่อเราเปลี่ยนกลุ่มไปมา ทำให้บางครั้งเราจะงงว่าตอนนี้จริงๆแล้ว inetd และ smbd ถูกเปิดใช้งานอยู่หรือไม่

2. หลังจากติดตั้ง inetd.mpkg และ smbd.mpkg ลงใน A1200 แล้วก็ให้เสียบสาย usb ระหว่าง A1200 และ เครื่อง PC โดยตั้งโหมด USB ของ A1200 เป็น Modem.

3. จิ้มที่ไอคอน inetd เพื่อเปลี่ยนโหมด usb ของ A1200 จาก Modem เป็น LAN ถ้าขั้นตอนทั้งหมดถูกต้องจะมีเสียงตังดึ้งๆ

4. ในการ telnet เครื่องแรกเครื่อง PC จะยังไม่มีไดรเวอร์ USB-LAN ของ A1200 และจะร้องเรียกหา Driver ให้เราเริ่มติดตั้ง driver โดย แตกไฟล์ usblan_yan0.zip อกก แล้ว double click ไฟล์ install.bat เพื่อ copy ไฟล์ลงใน windows และสั่งให้ Windows ไปหาไดรเวอร์ Belcarra ในโฟลเดอร์ที่แตกไฟล์ออกมาจาก usblan_yan0 เป้นอันเรียบร้อย

5. หลังจากนั้นเราจะสามารถเข้าสู่ A1200 ผ่านทาง Command prompt ของ Windows ได้โดยสั่ง

telnet 172.16.16.6

6. และถ้าต้องการใช้ Windows Explorer เปิดดูไฟล์ใน A1200 ก็ให้จิ้มที่ไอคอน smbd ก่อน หลังจากนั้นก็จะสามารถเปิดดูไฟล์ใน A1200 ผ่านทาง Windows Explorer ได้

ปล. ขอเขียนแบบย่อๆเท่าที่จำได้ก่อนรอมีเครื่องก่อนจะเพิ่มรายละเอียดและรูปให้ครับ

How to create A1200 theme to use with Skin and Theme Installer (short version)

,

due to theme and skin structure changing in A1200. skin and theme in A1200 should be in this format.

Skin Folder [ in anyname that you want ]

+ icon file [ iconres.ezx file ]

+ skin file [ *.skn ]

+ Skin configuration file [ *.pskn ]

+ Skin Logo file [ *.jpg, *.png ] (optional)

Theme Folder [ in anyname that you want ]

+ Power on screen GIF file [ *.gif ]

+ Power off screen GIF file [ *.gif ]

+ Theme configulation file [ *.phm ]

A1200 skin file is in .pskn (same like .phm file for older model). but this time with my skin installer the structure of .pskn file for install by skin installer is easy to write. this is an example of Gnome-Bluecurve.pskn for A1200 (port from E680i).

[THEME_CONFIG_TABLE]

ThemeName = Gnome Bluecurve

ThemeColorPaletteIndex = 0

ThemeSkinFile = Bluecurve.skn

ThemeLogoIcon = Gnome-Bluecurve.jpg

ThemeIconDir = iconres.ezx

BlendingColor = 255 255 255

BlendingPercentage=40

[THEME_COLOR_PALETTE_TABLE]

ThemeBackground = 230 230 230

ThemeBase = 204 204 204

ThemeForeground = 0 0 0

ThemeText = 0 0 0

ThemeButton = 68 100 172

ThemeButtonText = 0 0 0

ThemeHighlight = 68 100 172

ThemeBrightText = 0 0 0

ThemeHighlightedText = 255 255 255

ThemeDisabledText = 90 90 90

ThemeAMBottomHighlight = 186 200 248

ThemeAMBottomHighlightText = 0 0 0

[THEME_MULTI_LANG_NAME]

en-us = Gnome-Bluecurve

.pskn file is unix text file and all lines need space before and after = like ThemeName = Gnome Bluecureve.

A1200 skin file for install by skin installer should be like this.

ThemeName : name of theme.

ThemeColorPaletteIndex : to set color palette to use default color setting. skin installer do not support this so set it to 0.

ThemeSkinFile : set to skin filename.

ThemeLogoIcon : set to skin logo image filename.

ThemeIconDir : set to skin iconres.ezx filename.

in ThemeSkinFile, ThemeLogoIcon, and ThemeIconDir use only filename after =. skin installer will take about installation path when installed them. and all file in ThemeSkinFile, ThemeLogoIcon, and ThemeIconDir must locate in the same folder as .pskn file

another line is theme color settinh in RGB mode. please set all color lines.

and for A1200 theme file is in .phm file (same name as previous version but contain only poweron, power off screen, and wallpaper). my theme installer take only poweron and power off screen because wallpaper can change manually in phone setting. the structure of A1200 phm file is like this.

[THEME_CONFIG_TABLE]

PowerOffScreen = slax_on.gif

PowerOnScreen = slax_on.gif

A1200 theme file need one or both lines. and same as skin installer it need only filename after=. theme installer will take care about installation path. .phm file is unix text file and use the same format as pskn file and.

iconres.ezx file and skin file (*.skn) can be edit after extract theme into GIF icons and repacking it back by IconresPackager and SkinPackager.

PS.until now no one create A1200 theme. but we can easy port E680i/A780 theme to A1200 by extract them and rewrite new pskn file from dhm file. all icons and skin should work fine except Home icons that need animate icon when hilighted. extract iconres.ezx by iconpackager and copy big Home icon to home animate icon for faster and easily (but no have an animate when hilight or you create on for it.).

wait for your guy's new A1200 themes.

cheer!

eakrin @ MotorolaFans.com

Motorola A1200 themes and skin installation

,

by eakrin @ MotorlaFans.com (base on yan0's theme up)

in A1200 skin is mean all display icons and all GUI components like button, status bar, scrollbar, etc. and theme is mean poweron, poweroff screen, and wallpaper. this is different from previous model A780, E680i, E680. skin configuration is store in ezx_skins.cfg and theme configuration is in ezx_theme.cfg both can found in /ezx_user/download/appwrite/setup folder. and default skins and theme can found in /usr/data_resource/skin and /usr/data_resource/theme folder.

the big changing about skin and theme is A1200 will not read additional skin and theme anymore. what it mean for this? in previous like A780, E680i/E680 phone read .phm or .dhm file in /exlocal/download/appwrite/setup folder to find themes in phone. this can make trouble for newbie user like over install themes into ezxlocal. so if A1200 can't read additional theme how can we install theme. to solve this in A1200 I create a mpkg program to change to selected skin or theme. changing skin and theme is not like installation. it mean A1200 always have only 1 additional theme in ezx_user (new folder sapareated user data from ezxlocal). another themes stored in mmc waiting for changing next time.

here is my A1200 Theme and Skin Installer Theme Installer, Skin Installer
and this is sample theme Gnome Bluecurve for A1200 beta1, and Default Theme for A1200

how to use skin installer and theme installer to install new skin or theme.

1. install skin installer and theme installer by mpkg installer.

2. for skin installation tap on .pskn file to open it with skin installer or for theme installer tap on .phm file to open it with theme installer

3. restart A1200 to make new skin and theme active.

how to restore back to default skin and theme.

1. install default skin or theme will remove previous install skin or theme.

2. restart A1200 to make default skin and theme active.

PS. Installer always install skin in to /ezx_user/download/skin and theme into /ezx_user/download/theme. and remove previous installed theme before install the new one.

PS. skin can change to default is setting -> scheme. but this can only change back to default skin. the additional theme will not deleted. so use skin installer to install default skin. it 'll remove previous install skin from ezx_user folder.

PS. skin and theme installer 'll remove all install skin or theme before install the new one. to protect over installation into ezx_user folder.


cheer!

eakrin @ MotorolaFans.com

การติดตั้ง Ezx-Crosstool และ Dev-Ezx สำหรับเขียนโปรแกรมใช้งานบน E680/i/A780

, , ,

Crosstool คือ complier สำหรับสร้างโปรแกรมแบบข้ามรุ่นบนระบบลินุกซ์ (หมายความว่าเราไปเขียนและคอมไพล์โปรแกรมในเครื่อง PC แต่นำโปรแกรมมาใช้งานในมือถือ) และ Ezx-Crosstool พัฒนาโดย Sam Revitch จากต้นฉบับ crosstool ของ Dan Kegel เพื่อใช้พัฒนาโปรแกรมแบบ Ezx บนโทรศัพท์ E680/i/A780.ส่วน Dev-Ezx คือชุดพัฒนาโปรแกรมบน E680i/A780 สำหรับใช้งานร่วมกับ Ezx-crosstool (ไม่แน่ใจว่าโปรแกรมที่ได้สามารถใช้งานบน E680 ได้หรือไม่)

รายละเอียดเพิ่มเติมของ Ezx-Crosstool และ Dev-Ezxดูได้จากเวปของ Sam Revitch http://lsb.blogdns.net/ezx-crosstool และ http://lsb.blogdns.net/ezx-devkit

Ezx-Crosstool และ Dev-Ezx ทำงานบนระบบปฎิบัติการ Linux ดังนั้นเราจำเป็นต้องมีเครื่องพีซีที่ติดตั้งลินุกซ์ไว้แล้วหรืออาจจะใช้ Cygwin เพื่อใช้งานโปรแกรมนี้บน Windows (สำหรับหรับ Cygwin ต้องใช้รุ่น 1.5.10 หรือใหม่กว่า แล้วต้องเป็นการติดตั้งครั้งแรกเท่านั้น เท่าที่ลองดูถ้าเคยลง cygwin มาก่อนแล้วลบออก ตัว cygwin เองจะเกิดอาการ cygwin1.dll ผิดพลาด ทำให้ไม่สามารถ สร้าง crosstool ได้สำเร็จ ยังหาวิธีแก้ไม่ได้ครับนอกจากลง windows ใหม่เลย) Cygwin สามารถหาได้จาก http://www.cygwin.com/

VMWare สามารถหาได้ http://www.vmware.com/ เป็น shareware แบบทดลองใช้งานนะครับ

สิ่งที่ต้องการในการติดตั้ง Ezx-Crosstool และ Dev-Ezx คือ

1. เครื่องพีซีพร้อมระบบปฎิบัติการ Linux แนะนำว่าควรใช้ Fedora เพราะผมลองมาหลายตัวแล้วไม่สามารถใช้งานได้เลย Fedora สามารถหาได้จาก http://fedora.redhat.com/ ทั้งหมด 5 CD เองครับ (ผมใช้เวลา 6-7 คืนในการโหลด) หรือติดตั้ง Cygwin ลงใน windows

2. สคริปสำหรับติดตั้ง Ezx-crosstool และ Dev-Ezx สามารถโหลดได้จาก http://lsb.blogdns.net/ezx-crosstool และ http://lsb.blogdns.net/ezx-devkit

3. พื้นที่ว่างใน HD หลังจากติดตั้งระบบปฎิบัตการ Linux แล้วประมาณ 2-3GB เนื่องจาก Ezx-Crosstool จะใช้วิธีโหลดไฟล์มาคอมไฟล์เองในเครื่องทั้งหมด

4. เวลาว่างที่ไม่ต้องใช้เครื่องคอมทำงานเนื่องจากใช้เวลาในการ build ezx-crosstool นานมากๆผมสั่งงานก่อนนอน แล้วตื่นมาดูผลตอนเช้านะครับ

การติดตั้ง Ezx-Crosstool ทำได้โดย

1. แตกไฟล์ ezx-crosstool ออกมา

2. แก้ไขไฟล์ build.sh บรรทัด RESULT_TOP เพื่อระบุตำแหน่งที่เก็บของ crosstool ที่เราจะสร้าง

3. สั่งรัน build.sh และนอนรอผลงาน

การติดตั้ง Dev-Ezx ทำได้โดย

1. สร้าง Ezx-Crosstool ในเครื่องก่อน

2. แตกไฟล์ Dev-ezx ลงในเครื่องคอม

3. ดึงไฟล์ทั้งหมดใน /usr/lib ออกมาจากโทรศัพท์มือถือของเราโดยคำสั่ง Tar และนำไปไว้ที่ dev-ezx/lib โดยจะต้องมีไฟล์ตามนี้

dev-ezx-0.2.0/lib/ezx/lib/libqte-mt-xscale-r.so.2.3.6

dev-ezx-0.2.0/lib/ezx/lib/libezxappbase-xscale-r.so.1.0.0

dev-ezx-0.2.0/lib/ezx/lib/libezxjpeg-xscale-r.so.1.0.0

4. สร้างโปรแกรม moc ใหม่ รหัสต้นฉบับของ moc จะอยู่ใน dev-ezx/moc ให้เข้าไปสั่ง make ก้จะได้โปรแกรม moc ออกมาในโฟลเดอร์นี้เป็นอันเรียบร้อย

การคอมไพล์โปรแกรมตัวอย่าง helloworld ด้วย Ezx-crosstool

1. เพิ่ม path ของ crosstool คอมไฟล์เลอร์เข้าไปใน $PATH ด้วยคำสั่ง

export PATH=$PATH:/opt/ezx-crosstool-0.5/gcc-arm-iwmmxt/gcc-3.3.6-glibc-2.3.2/arm-linux/bin

ถ้าเราติดตั้ง ezx-crosstool ไว้ที่ /opt/ezx-crosstool-0.5

2. เข้าไปที่ dev-ezx/helloworld จะมีต้นฉบับโปรแกรมตัวอย่าง helloworld มาให้

3. สั่ง make เพื่อสร้างโปรแกรม helloworld

4. เราจะได้โปรแกรม helloworld ออกมา นำไปไว้ในโทรศัพท์เพื่อทดลองใช้งาน

5. ทดลองใช้งานได้โดยสั่ง . /home/native/.profile ใน telnet หรือผ่าน console แล้วเรียก helloworld ทำงานก็จะเห็นโปรแกรม Helloworld บนหน้าจอมือถือเรา เป็นโปรแกรมแบบเดียวกับที่ติดมากับเครื่อง และไม่ใช่จาวา

6. สั่ง make dist เพื่อสร้าง ไฟล์ helloworld.mpkg เพื่อใช้ติดตั้งบนมือถือ

หมายเหตุ โปรแกรมแบบ EZX ของ Motorola สร้างมาจากไลบรารี่ภาษา C++ ของ QT 2.3 ของบริษัท Trolltech แต่ทาง Motorola ได้นำมาดัดแปลงและตัดต่อบางส่วนเข้าไปเป็น EZX ออกมา เราสามารถเข้าไปดูเอกสารการเขียนโปรแกรมของ QT 2.3 ได้ที่ http://doc.trolltech.com/2.3/index.html ส่วนรายละเอียดของ class ต่างๆใน Ezx มาจากการทดลองและแกะออกมาโดยเซียนๆลินุกซ์ต่างประเทศครับ (JetJoe และ Sam7) ดูได้ในโฟลเดอร์ /dev/include/ezx (Officail Ezx ของทาง Motorola ยังไม่มีการเปิดเผยออกมาครับ)

ปล. ผมกะลังหัดใช้ complier บน Linux อยุ่ใครใช้เป็นแล้วช่วยอธิบายรายละเอียดให้ด้วยครับ เกี่ยวกับการ complie และ make โปรแกรม

แก้ไขเรื่องการใช้งานใน cygwin วันที่ 24 มิถุนายน 2549


โหลดไฟล์ได้ที่นี่ครับ เนื่องจาก blog ของ Sam Revitch หายไปจากสารระบบแล้ว
Here is an original crosstool and dev-ezx from sam revitch due to his blog was gone.
ezx-crosstool-0.5.tar.gz
dev-ezx-0.2.0.tar.gz