หน้าสอง
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
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
art2kmin - MS Access 2000 runtime. License required!.
colorprofile - Standard RGB color profile.
comctl32 - MS common controls 5.80.
comctl32.ocx - MS comctl32.ocx and mscomctl.ocx, comctl32 wrappers for VB6.
corefonts - MS Arial, Courier, Times fonts.
dcom98 - MS DCOM, override the Wine implementation.
dirac0.8 - the obsolete Dirac 0.8 directshow filter.
directx9 - MS DirectX 9 user redistributable.
divx - divx video codec.
dotnet11 - MS .NET 1.1 (requires Windows license).
dotnet20 - MS .NET 2.0 (requires Windows license).
ffdshow - ffdshow video codecs.
flash - Adobe Flash Player ActiveX and firefox plugins.
fontfix - Fix bad fonts which cause crash in some apps (e.g. .net)..
gdiplus - MS gdiplus.dll (from powerpoint viewer).
gecko - The HTML rendering Engine (Mozilla).
icodecs - Intel Codecs (Indeo).
jet40 - MS Jet 4.0 Service Pack 8.
liberation - Red Hat Liberation fonts (Sans, Serif, Mono).
mdac25 - MS MDAC 2.5: Microsoft ODBC drivers, etc..
mdac27 - MS MDAC 2.7.
mdac28 - MS MDAC 2.8.
mfc40 - MS mfc40 (Microsoft Foundation Classes from Visual C++ 4).
mfc42 - MS mfc42 (see vcrun6 below).
mono19 - mono-1.9.1-gtksharp-2.10.4-win32-2.
msi2 - MS Installer 2.0.
msls31 - MS Line Services 3.1 (needed by native riched?).
msxml3 - MS XML version 3.
msxml4 - MS XML version 4.
msxml6 - MS XML version 6.
ogg - ogg filters/codecs: flac, theora, speex, vorbis, schroedinger.
pdh - MS pdh.dll (Performance Data Helper).
quicktime72 - Apple Quicktime 7.2.
riched20 - MS riched20 and riched32.
riched30 - MS riched30.
tahoma - MS Tahoma font (not part of corefonts).
vb3run - MS Visual Basic 3 runtime.
vb4run - MS Visual Basic 4 runtime.
vb5run - MS Visual Basic 5 runtime.
vb6run - MS Visual Basic 6 runtime.
vcrun6 - MS Visual C++ 6 sp4 libraries (mfc42, msvcp60, msvcrt).
vcrun2003 - MS Visual C++ 2003 libraries (mfc71,msvcp71,msvcr71).
vcrun2005 - MS Visual C++ 2005 libraries (mfc80,msvcp80,msvcr80).
vcrun2005sp1 - MS Visual C++ 2005 sp1 libraries.
vcrun2008 - MS Visual C++ 2008 libraries (mfc90,msvcp90,msvcr90).
vjrun20 - MS Visual J# 2.0 libraries (requires dotnet20).
wmp9 - MS Windows Media Player 9 (requires Windows license).
wmp10 - MS Windows Media Player 10 (requires Windows license).
wsh51 - MS Windows Scripting Host 5.1.
wsh56 - MS Windows Scripting Host 5.6.
wsh56js - MS Windows scripting 5.6, jscript only, no cscript.
wsh56vb - MS Windows scripting 5.6, vbscript only, no cscript.
xvid - xvid video codec.
Apps
autohotkey - Autohotkey (open source gui scripting language).
firefox3 - Firefox Version 3.
kde - KDE for Windows installer.
mpc - Media Player Classic.
vlc - VLC media player.
Pseudopackages
allfonts - All listed fonts (corefonts, tahoma, liberation).
allcodecs - All listed codecs (xvid, ffdshow, icodecs).
fakeie6 - Set registry to claim IE6sp1 is installed.
native_mdac - Override odbc32 and odbccp32.
nt40 - Set windows version to nt40.
win98 - Set windows version to Windows 98.
win2k - Set windows version to Windows 2000.
winxp - Set windows version to Windows XP.
vista - Set windows version to Windows Vista.
winver= - Set windows version to default (winxp).
volnum - Rename drive_c to harddiskvolume0 (needed by some installers).
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 สุดท้าย
sudo apt-get update
sudo apt-get install wine
//ลง package เสริม
wget http://kegel.com/wine/winetricks//ติดตั้ง component เช่น หากต้องการอย่างอื่นเพิ่มลองหาใน Net ดูครับ
sh winetricks mdac28
sh winetricks corefonts
sh winetricks gdiplus
sh winetricks msxml4
sh winetricks wsh56
sh winetricks wininet
sh winetricks hosts
sh winetricks d3dx9
sh winetricks directx9
sh winetricks wmp10
sh winetricks ie6
sh winetricks dotnet20
sh winetricks dotnet30
//ติดตั้ง ODBC
wine msiexec /i mysql-driver.msi
//สั่ง Allow port เลือก TPC/IP Port 3306 MySQL Default
wine ~/.wine/drive_c/windows/system32/cliconfg.exe
//Register DLLs
WINEDLLOVERRIDES="odbccp32,odbc32=n" wine ~/.wine/drive_c/windows/system32/myodbc3i.exe -a -d -t"MySQL ODBC 3.51 Driver;DRIVER=myodbc3.dll;SETUP=myodbc3S.dll"
//เรียก ODBC Data Souce มาลองทดสอบดูครับ
WINEDLLOVERRIDES="odbccp32,odbc32=n" wine ~/.wine/drive_c/windows/system32/odbcad32.exe
//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