Category Archives: Work

Step By Step Work

Learn MS Access 2003

A client want me to convert their application that use MS Access 2003 to web based application using php and mysql. I agree to do so and this post is just for myself future reference when I have to deal with other MS Access 2003 application.

Open MS Access 2003 in design mode

double click access file, choose block unsafe and click open button when you see ‘security warning’ menu.

while you click open button, make sure to press shift key.

edit ms access2003 1 Learn MS Access 2003

you’ll see the application in design mode (you can access; tables, queries, forms and reports etc under objects)

edit ms access2003 2 Learn MS Access 2003

Fix ‘invalid path error message” when you open ms access 2003 application

open the application and click Tools -> Database Utilities -> Linked Table Manager

edit ms access2003 3 Learn MS Access 2003

 

 

 

 

 

 

 

select the linked tables to be updated and click OK.

edit ms access2003 4 Learn MS Access 2003

wait for a while, new pop up will appear telling if ‘all selected linked tables were successfully refreshed’

edit ms access2003 5 Learn MS Access 2003

Change ms access 2003 application title name

click Tools -> Startup

edit ms access2003 6 Learn MS Access 2003

change application title as seen on the picture and click ok.

edit ms access2003 7 Learn MS Access 2003

Open code editor for ms access 2003 forms

choose forms and click ‘code editor’ icon

edit ms access2003 8 Learn MS Access 2003

new visual basic window will open, you can see the logic there.

convert ms access to mysql

I’ll update the post when I’m done with it.

Update : learn how to convert ms access to mysq step by step.

See you!

Linux Step By Step Work

How to update / renew Zimbra License

Your Zimbra Network License expired 24 days ago icon smile How to update / renew Zimbra License

Yes, that message show up when I log in to one of my client and they ask me to renew the license.

Well, the process itself isn’t difficult as what you need to extend zimbra license just ask sales at zimbra.com.

they will email license key and with the key what you need to do is login to zimbra admin.

Click on Global Settings.

zimbra license 1 How to update / renew Zimbra License

Click License will give this screen.

Click Update License.

zimbra license 2 How to update / renew Zimbra License

Browse for license file and click Next.

zimbra license 3 How to update / renew Zimbra License

Your license file is uploaded successfully.

Click Install.

zimbra license 4 How to update / renew Zimbra License

You license file is installed successfully.

zimbra license 5 How to update / renew Zimbra License

Done.

Client can continue their zimbra mailbox.

Linux Work

Change php.ini for adjust max upload file size

File too large

That simple message when marketing team want to upload new support ticket that include attachment with size 4 MB.

Yes, that my mistake for not adjust default max upload file size.

The solution is simple :

Edit php.ini file

I use ubuntu and because I more familiar with freebsd I use phpinfo() as my friend to find out where the file is.

According to phpinfo() the php.ini file located in :

ubuntu php ini 1 Change php.ini for adjust max upload file size

/etc/php5/cgi/php.ini

Open that file with nano editor :

# nano /etc/php5/cgi/php.ini

change “upload_max_filesize” to other value. I use 8M.

Save the file.

read more »

Work

Install pureftp with unixauthentification on ubuntu

I used to use winscp to upload file to vps server. It’s easy and I just need to keep dedicated user.

Due to request for ftp support I decide to install ftp server called pure-ftp on ubuntu jaunty.

Install pure-ftp

# apt-get install pure-ftpd

Reading package lists… Done
Building dependency tree
Reading state information… Done
The following extra packages will be installed:
libcap1 pure-ftpd-common
Suggested packages:
netkit-inetd openbsd-inetd xinetd
The following NEW packages will be installed:
libcap1 pure-ftpd pure-ftpd-common
0 upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 355kB of archives.
After this operation, 1040kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://archive.ubuntu.com jaunty/main libcap1 1:1.10-14build1 [9780B]
Get:2 http://archive.ubuntu.com jaunty/universe pure-ftpd-common 1.0.21-11.4ubuntu1 [176kB]
Get:3 http://archive.ubuntu.com jaunty/universe pure-ftpd 1.0.21-11.4ubuntu1 [169kB]
Fetched 355kB in 1s (278kB/s)
Preconfiguring packages …
Selecting previously deselected package libcap1.
(Reading database … 20798 files and directories currently installed.)
Unpacking libcap1 (from …/libcap1_1%3a1.10-14build1_amd64.deb) …
Selecting previously deselected package pure-ftpd-common.
Unpacking pure-ftpd-common (from …/pure-ftpd-common_1.0.21-11.4ubuntu1_all.deb) …
Selecting previously deselected package pure-ftpd.
Unpacking pure-ftpd (from …/pure-ftpd_1.0.21-11.4ubuntu1_amd64.deb) …
Setting up libcap1 (1:1.10-14build1) …

Setting up pure-ftpd-common (1.0.21-11.4ubuntu1) …

Setting up pure-ftpd (1.0.21-11.4ubuntu1) …
Starting ftp server: Running: /usr/sbin/pure-ftpd -l pam -E -O clf:/var/log/pure-ftpd/transfer.log -u 1000 -B

Processing triggers for libc6 …
ldconfig deferred processing now taking place
You have new mail in /var/mail/root
#

Enable unixauthentification

# nano /etc/pure-ftpd/conf/UnixAuthentication

change  from no to yes and save the file.

Run the service

# /etc/init.d/pure-ftpd start

Starting ftp server: Running: /usr/sbin/pure-ftpd -l unix -l pam -E -O clf:/var/log/pure-ftpd/transfer.log -u 1000 -B
#

Great, I can delegate website update process icon smile Install pureftp with unixauthentification on ubuntu

Work

freebsd unzip ports

I just use gunzip as tool for unzip an .zip file at ubuntu 10.04 when I try same utility at freebsd.

Now I want to try something new with utility called unzip.

Try to call it ( it might be installed)

# unzip
unzip: Command not found.

Not found, try to find installation file.

# whereis unzip

unzip: /usr/ports/archivers/unzip
# cd  /usr/ports/archivers/unzip && make install

read more »

Work

Warning: No configuration file found!

Try to install gammu with newest ubuntu version (lucid). smsdrc edited and lauch gammu–identify

# gammu –identify

Warning: No configuration file found!
Warning: No configuration read, using builtin defaults!
No response in specified timeout. Probably phone not connected.

I check the cable and it looks fine.

Check configuration file and yes, still at /etc/gammu-smsdrc

Retry by give -c option :

# gammu -c /etc/gammu-smsdrc –identify

Device               : /dev/ttyUSB0
Manufacturer         : Wavecom
Model                : unknown (MULTIBAND  900E  1800)
Firmware             : 652a09gg.Q2406A 1489876 060706 17:19
IMEI                 : 35162100049xxxx
SIM IMSI             : 51008004196xxxx

I see.

symbolic link will help :

ln -s /etc/gammu-smsdrc /etc/gammurc

error fix.

Work

Setting PATH for MYSQL bin

MYSQL PATH!

Yes, that thing come to my mind when I playing around with MYSQL.

Before setting PATH :

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\Administrator>cd c:\wamp\bin\mysql\mysql5.1.36\bin

C:\wamp\bin\mysql\mysql5.1.36\bin>mysql -uroot -p
Enter password:
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 1
Server version: 5.1.36-community-log MySQL Community Server (GPL)

Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the current input statement.

mysql> exit
Bye

read more »

Work

Preparing ubuntu usb install for nettop installation

Due to budget limitation and energy saving campaign in my office we try to explore more machine for our sms gateway. The criteria for this low traffic machine is clear :

Lowest energy with high storage facility and price within the range $100 – $250

Hardware

Search in the net give me a few result around mini pc aka netttop Preparing ubuntu usb install for nettop installation
like :

  1. Asus EeeBox EBXB202-BLK-X0081 Preparing ubuntu usb install for nettop installation
  2. Acer AspireRevo AR1600-U910H Preparing ubuntu usb install for nettop installation
  3. QutePC-1000

Operating System

I have experience with ubuntu as operating system and more than one device for gammu.

Little problem came when I realize that install method available for this nettop stuff is via usb.

Searching with google for ubuntu usb install, live usb linux, bootable usb, bootable usb linux and install linux from usb give me hint for visit Lili USB Creator. Fortunately this tool run in Windows icon smile Preparing ubuntu usb install for nettop installation

read more »

Unix Work

Step by step Install Pure-FTP inside pfSense

pfSense is great stuff when you’re looking for Firewall but I need more icon smile Step by step Install Pure FTP inside pfSense

Case :

A user want to store his file in the form of FTP but pfSense is the only server that available in the office. New HDD ready to support this method.

Solution : Add new HDD and install FTP server inside pfSense.

Steps : ( I use vmware for reproduction the steps)

Install pfSense version 1.2.3

1. Install pfSense

I install version 1.2.3 as I need to produce it with latest pfSense version.

vmware pfsense Step by step Install Pure FTP inside pfSense

I use 2 HDD ( system located in 8G HDD and second HDD for FTP data)

Ethernet 1 set for LAN ( ip address 192.168.12.110) and ethernet 2 work as WAN ( I set to DHCP)

Enable sshd for remote configuration via ssh client like putty, securecrt  etc.

Restart system after successfully install to HDD.

read more »

Work

Howto reset mysql password on ubuntu server 9.10

New IBM server has arrived, its IBM X3100-42X.

Standard install required; DNS, LAMP and OpenSSH server on  Ubuntu Server 9.10.

Problem came when I forgot password for MySQL. I think the solution isn’t far from what I done in FreeBSD.

First attempt login to MySQL server :

# mysql -uroot -p

Enter password:
ERROR 1045 (28000): Access denied for user ‘root’@'localhost’ (using password: NO)

Look MySQL process :

read more »

Unix Work

Download FreeBSD 8 RC3 iso file

FreeBSD 8 RC3 already out, ready to test for all your machine.

Choose your favourite forms :

  1. BootOnly
  2. CD (disc 1)
  3. DVD
  4. LifeFS
  5. MemStick

Upgrade method :

  • cvsup, use  “RELENG_8_0″
  • freebsd-update ( freebsd-update upgrade -r 8.0-RC3 )

More information for freebsd-update available here.

More information about this RC please read release announcement.