หน้าสอง

install flash on ubuntu 13.04 64 bit

sudo apt-get install ubuntu-restricted-extras

lamp install on ubuntu

sudo apt-get install apache2

sudo service apache2 start

sudo apt-get install php5 php5-mysql

<?php

phpinfo();

?>

sudo apt-get install mysql-server

sudo apt-get install phpmyadmin

เกษียร เกษียน เกษียณ

หลายคนคงจะสงสัยว่า ๓ คำนี้ แตกต่างกันอย่างไร และหลายคนรวมทั้งผู้เขียนด้วยก็เขียนผิดบ่อยๆ เหมือนกัน ... เกษียรแปลว่า น้ำนม เกษียน แปลว่า เขียน และ เกษียณ แปลว่า สิ้น

ubuntu silverlight install   it not work now because moonlight codecs installer cannot load ,lack of licence

run silverlight on ubuntu 12.04

sudo apt-add-repository ppa:ehoover/compholio sudo apt-add-repository ppa:mqchael/pipelight sudo apt-get update sudo apt-get install pipelight

sqlhanddle2="Driver=SQLite3 ODBC Driver;Database=kriex2.sqlite;LongNames=0;Timeout=1000;NoTXN=0;SyncPragma=NORMAL;StepAPI=0;"

sqlcondb2=SQLSTRINGCONNECT(sqlhanddle2)

SELECT * FROM iddoctor INTO dbf c:\krifox1\iddoctor

GO top

SCAN FOR !EMPTY(id)

kkkname = STRCONV(name,9)

kkkid_certi = STRCONV(id_certi,9)

kkknamefull = STRCONV(namefull,9)

testkri = "insert into iddoctor (id,name,id_certi,namefull,namefullen,id_certien) values (?id,?kkkname,?kkkid_certi,?kkknamefull,?namefullen,?id_certien)"

=SQLEXEC(sqlcondb2,testkri)

endscan

and then use firefox to run silverlight

 

download extension firefox and chrome  is still not work use pipelight instead

Open chrome://chrome/extensions/ in a new tab and drag the the .crx file onto the page

sudo apt-get install mono-complete   is still not work use pipelight instead

sudo add-apt-repository ppa:ubuntu-wine/ppa

sudo apt-get update

sudo apt-get install wine1.7


ubuntu 20.04 install winetricks mdac28 : winetricks mdac28 native_mdac


install wine on ubuntu 18.04

  $ sudo dpkg --add-architecture i386

$ wget -qO- https://dl.winehq.org/wine-builds/Release.key | sudo apt-key add -

$ sudo apt-add-repository 'deb http://dl.winehq.org/wine-builds/ubuntu/ artful main'

sudo apt-get install --install-recommends winehq-stable

$ wine --version wine-3.0

sudo apt-get install --install-recommends winehq-devel

$ wine --version wine-3.8

ubuntu 18.04 ต้องใส่ file location เอง

z:\home\kri\dropbox\krifoxone

ที่เก็บ file 192.168.1.222 tony 

env WINEPREFIX="/home/kri/.wine" wine C:\\windows\\command\\start.exe /Unix /home/kri/.wine/dosdevices/c:/Program\ Files/Microsoft\ Visual\ FoxPro\ 9/vfp9.exe

setup foxpro on ubuntu 13.10 64 bit

install wine

run winetricks --gui  on terminal and install mdac28

install mysqlconnection

copy folder visualfoxpro9 , common files , fonts, system32 -mscomct2.ocx,mscomctl.ocx,msvcr70,oleaut32 

run vfp.exe 1time

then hang and logout from ubuntu

disable vfp task manager

run wine regedit on terminal

In the RegEdit go to the HKEY_CURRENT_USER\Software\Microsoft\VisualFoxPro\9.0\Options key and blank out Data for Value Name _STARTUP

sudo apt-get install libappindicator1

install dropbox 64 bit

สร้างจุดเชื่อมโยง vfp9.exe  และลากไปที่ desktop

or  env WINEPREFIX="/home/kri/.wine" wine C:\\windows\\command\\start.exe /Unix /home/kri/.wine/dosdevices/c:/Program\ Files/Microsoft\ Visual\ FoxPro\ 9/vfp9.exe

in icon property

fingerscan port 8000 user admi pass 6-1

  Key     Alone   Shift    Ctrl    Alt

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

  F1        28      84      94     104

  F2        -1      85      95     105

  F3        -2      86      96     106

  F4        -3      87      97     107

  F5        -4      88      98     108

  F6        -5      89      99     109

  F7        -6      90     100     110

  F8        -7      91     101     111

  F9        -8      92     102     112

  F10       -9      93     103     113

  F11      133     135     137     139

  F12      134     136     138     140


แก้ไขreport 

พิมพ์หัวใบอ่าน xray :  modi report testx2

พิมพ์ใบอ่าน xray สำหรับ แพทย์ :  modi report testx

ห้องยาพิมพ์label ซองยา กด f8  modi report drugnew , if countdrug>5  modi report drugnew5

ห้องยาพิมพ์รายการยาของผู้ป่วย กด shift+f8 modireport druga4

ห้องยาเครื่องเก็บเงิน กด f9  then  f12 modi report oldinv2 , modi report oldinv3

ห้องยาเครื่องเก็บเงิน กด f9  then  shift+f11 modi report oldinv3new , modi report oldinv3new2

พิมพ์ใบความเห็นแพทย์  MODI REPORT C:\KRIFOX1\dock_certi

แพทย์พิมพ์ใบยา f12   modi report chaiyos2  , modi report chaiyos2long1-4

แพทย์พิมพ์ใบยา shift+f12  modi report chaiyos9 , modi report chaiyos9long1-4

opdพิมพ์ใบรับรองแพทย์สมัครงาน  modi report opdcerti

opdพิมพ์ใบรับรองแพทย์สมัครงานทั้งหมด  modi report opdcerti3


แพทย์พิมพ์ใบรับรองแพทย์สมัครงาน modi report c:\krifox1\certi_nodate

พิมพ์ ใบadmit krieng modi report chaiyos2long1a

พิมพ์ ใบadmit chaiyos modi report cadmit

พิมพ์ ใบนัดผู้ป่วย modi report prinut1

opd พิมพ์ผู้ป่วยใหม่  พิมพ์หัวใบยา modi report opdpri

opd พิมพ์ผู้ป่วยใหม่  พิมพ์sticker  modi report  opdpri3

opd พิมพ์ผู้ป่วยใหม่  พิมพ์ที่อยู่   modi report opdpri2

opd พิมพ์ใบสมัครงาน คู่ใบยา modi report opdpri13 ,modi report opdcerti2

opd พิมพ์หัวใบ lab and xray ,alt+8 : modi report labpri

opd พิมพ์ใบนัดผู้ป่วย  :  modi report prinut1 , fullreport modi report printnut1new1

ทำรายการ bigdrug ยกไปประจำปี

   1.  copy codrug and bigdrug to _xxcodr  and _xxbigdr

   2.  ทำรายการยอดยกไป

   3.  ลบรายการปีเก่า ใน bigdrug

   4. create medi8_คศ.dbf  , modi report medi8_sub , 5 คลังยา - 7 browse - 8 พิมพ์จาก medi8

sqlite frontend sqlitestudio

example sqlite and vfp

code of vfp to convert dbf to sqlite

sqlhanddle="Driver=SQLite3 ODBC Driver;Database=c:\sqlite\kriex2;LongNames=0;Timeout=1000;NoTXN=0;SyncPragma=NORMAL;StepAPI=0;"

sqlcondb=SQLSTRINGCONNECT(sqlhanddle)

testkri9 = 'select * from krisql '

* = SQLEXEC(sqlcondb,'SET NAMES tis620' ,'testx')

= SQLEXEC(sqlcondb,testkri9,'testx123' )

SELECT * FROM testx123 INTO dbf c:\krifox1\testsqlite

BROWSE

code for connect vfp to sqlite

vfp wine ubuntu setup

disable vfp task manager

In the RegEdit go to the HKEY_CURRENT_USER\Software\Microsoft\VisualFoxPro\9.0\Options key and blank out Data for Value Name _STARTUP

mount drive

wine /home/kri/.wine/drive_c/Program\ Files/Microsoft\ Visual\ FoxPro\ 9/vfp9.exe

gnome-terminal --command="sudo mount -t cifs -o username=kri,password=xxxx //192.168.1.251/krifox1 /home/kri/.wine/drive_c/krifox1lan"

gnome-terminal --command="sudo umount /home/kri/.wine/drive_c/krifox1lan"

gnome-terminal --command="sudo rm /home/kri/.wine/drive_c/krifox1/a1.aaa"

net use y: \\192.168.1.251\krifox1 /user:kri xxxx

install winetricks

wgethttp://www.kegel.com/wine/winetricks

sh winetricks mdac28

sh winetricks --force mdac28

Download winetricks

Use following commands to get winetricks and set it up.

wget http://www.kegel.com/wine/winetricks chmod +x winetricks

sh winetricks --force mdac28

Using winetricks

For example if you want to install Microsoft Core fonts use following command.

./winetricks corefonts

Following are wine application perquisites it can install.

Packages

Apps

Pseudopackages

install winetric

วิธีลง VFP+MySQL ODBC บน Ubuntu อย่างง่าย คือ

1.ติดตั้ง Package Wine

2.ติดตั้ง Package Winetricks

3.ติดตั้ง Component ที่จำเป็นครับ เช่น mdac,odbc

4.ติดตั้ง MySQL Odbc ครับ 

5.หากขาดเหลือเช่น comctl32.ocx,DirectX,msxml4,font ต่าง ๆ ลองลงเพิ่มเอาโดยใช้ winetricks ดูครับติดตั้งไม่ยาก

ลองสั่ง

// ติดตั้ง wine เอา version สุดท้าย

//ลง package เสริม 

wget http://kegel.com/wine/winetricks//ติดตั้ง component เช่น หากต้องการอย่างอื่นเพิ่มลองหาใน Net ดูครับ

//ติดตั้ง ODBC

//สั่ง Allow port เลือก TPC/IP Port 3306 MySQL Default

//Register DLLs

//เรียก ODBC Data Souce มาลองทดสอบดูครับ

//VFP นั้น Copy Runtimes ไปวางใน Common Files ใน Program files ได้เลยครับ

ส่วนตัว IDE นั้น เรียก ผ่าน Wine เรียก VFPCLEAN.APP เพื่อ Register ใหม่ได้เลยครับ

   วิธีการนี้นำไปประยุกต์ใช้กับ SQL Server ,Dotnet ,Game อื่น ๆ อีกมากมาย ลองดูนะครับ

ubuntu setup usb wifi tl-wdn3200 

download the file below then

tar xvf DPO_RT....

sudo make

sudo make install 

sudo ifconfig