add excerpt function to function.php

Published by:

Sometime in the wordpress themes we use we couldn’t find the excerpt inside the post form. But we can add them manually by pasting this code into the function.php.

Go to appearance button on your left of wordpress. Click on the Editor. FInd the function.php on the right side. Then add the following script.

<div style="color: blue;"//excerpt function
function excerpt_read_more_link($output) {
global $post;
return $output . '

ID) . ‘”> Baca Selengkapnya…‘;
add_filter(‘the_excerpt’, ‘excerpt_read_more_link’);

or in simple way paste this code to single.php or header.php
<a href="”> Read More…

source :

huawei e220 in android tablet acer iconia a500

Published by:

My sister bought tablet android acer iconia a500 a few months ago. And she had a difficulty using a huawei e220 in her tablet. So we were looking for a guidance in the net and found one in
So I helped her and followed all the instruction in

Except for disabling zerocd that did’nt work for me since I don’t have hyper terminal in my windows. But overall the process after that it work.
I downloaded the 3-gdial.rar in joelaptop and put it in the tablet. I also put the file in here.
I didn’t understand which kernel that the tablet use so I randomly choose the module driver and put it in /sdcard and 3g command (, in /system/xbin/ through the terminal command. I chose modules – And add the module into the tablet by doing
$modprobe modules –*.ko
The command is similar to linux command, since android is one of the open sources software.
But to remember, choose on of the desktop that can running root privilege.
How to root in acer is in here

Next, create folder peers in /etc/ppp
Like said we need to change the mount type into rewrite if the sdcard refuse to copy into.
There will be the list of the mounting option
$mount -o remount,rw /dev/block/(suit it to your device)
Copy 3g file from 3g-dial.rar to /etc/ppp/peers
Edit 3g
Change if necessary, especially the line
connect ‘chat “” AT OK ATD*99***1# CONNECT’
Sometime the dial number will be different in every operator.
Change *99***1# to something else suit to the operator you use.
Still in root privilege and in terminal, type
$ for starting the connection and ppp-stop to stop it.
I can’t make a short cut (not yet) to this command and put it in the desktop, i can’t figure it why. So every time I need to connect I should use root privilege and using terminal.
It is quite annoying.
And another weakness is when the tabloid going stand by for a second because I didn’t do anything, the connection is disconnected. I should close the terminal and re-open again. Or restart the tabloid.

Happy browsing

Remaster Slackware 13.1

Published by:

Today I am gonna learn to remaster slackware. Slackware is my favorite distro, it is simple but you will be surprise what slackware can do.
I am using slackware 13.1 as my based distro. This is slackware that I use everyday/

Here are the steps
1. Copy the slackware installer.
Mount your dvd or your iso into a folder in your os.

root@user$mount -o loop slackware-13.1-dvd.iso /home/user/dvdrom

Create another folder for remastering

root@user$mkdir remaster

Now copy these files:

root@user$cp /home/user/dvdrom/* /home/user/remaster
root@user$cp -r /home/user/dvdrom/kernels /home/user/remaster
root@user$cp -r /home/user/dvdrom/isolinux /home/user/remaster
root@user$cp -r /home/user/dvdrom/slackware /home/user/remaster

2. Modify setpkg
Setpkg is to determine which package to install.
If we take a look into setpkg, it contains:

“A” “Base Linux system” on “The A (base) series contains the kernel and main system utilities.”
“AP” “Various Applications that do not need X” on “The AP series is a collection of useful applications.”
“D” “Program Development (C, C++, Lisp, Perl, etc.)” on “The D series contains compilers, debuggers, and other programming tools.”
“E” “GNU Emacs” on “The E series contains the GNU Emacs advanced real-time display editor.”
and else until Y

We need to modify setpkg if we need to add another application into our new slackware distro.
Let’s install inkscape package into it. Create folder INK (for example only) in /home/user/remaster/slackware/
copy your inkscape.txz and other repo files into INK and also these files

install.end install-packages maketag maketag.ez tagfile

Those files is a must. Just copy them from the other package directory, let’s say a folder

root@user$cp /home/user/remaster/slackware/a/install.end /home/user/remaster/slackware/INK/

do the same for the rest.
Now add the line in the setpkg under Y

“INK” “Inkscape” on “Graphical Inkscape”

(this is example only)

3. Modify message.txt
Message.txt is a file contains the message where we can see it on the first time of the installation process.

root@user$nano /home/user/remaster/isolinux/message.txt

4. Modify tagfile and maketag
Tagfile is a file that explain the software we will install is REQUIRED or just ON

root@user$nano /home/user/remaster/slackware/INK/tagfile

Example :

root@user$nano /home/user/remaster/slackware/INK/maketag

Copy maketag to maketag.ez. Here is the example of my maketag and filetag

5. Create txt file for each of the package you add
For example I have inkscape-0.48.0-i486-2_SBo.tgz so I need inkscape-0.48.0-i486-2_SBo.txt file. This txt is an information about the file package.

Example of the txt

inkscape: zoo (archiving and compressing utility)
inkscape: Zoo is used to create and maintain collections of files in compressed
inkscape: form. It uses a Lempel-Ziv compression algorithm that gives space
inkscape: savings in the range of 20% to 80% depending on the type of file data.
inkscape: Zoo can store and selectively extract multiple generations of the same
inkscape: file. Data can be recovered from damaged archives by skipping the
inkscape: damaged portion and locating undamaged data with the help of fiz(1).
inkscape: Zoo was written by Rahul Dhesi.

Remember only to use the same format from the previous example, with 11 lines. Copy one from a package if you don’t to retype it.

6. Create the iso

root@user:/home/user/remaster$mkisofs -o /home/user/slackware_sugi.iso -R -J -V “sugislackware Installation” -hide-rr-moved -v -d -N -no-emul-boot -boot-load-size 32 -boot-info-table -sort isolinux/iso.sort -b isolinux/isolinux.bin -c isolinux/isolinux.boot -A “sugislackware Installation CD” .

Now we have slackware_sugi.iso in /home/user/ and we can burn it into DVD

source :

phpmyadmin can’t access to mysql

Published by:

Phpmyadmin is a application that we can access from web browser when we are using lampp (for example). Phpmyadmin is used to access mysql database. After re-set the lampp to secure condition, I can’t use phpmyadmin anymore.
This is because I create password with mysql command in the konsole:
So I got this error message that phpmyadmin can’t acces to mysql
Here what I did to fix this
edit /opt/lampp/phpmyadmin/

Fill the password with a new one.

/* Authentication type and info */
$cfg[‘Servers’][$i][‘auth_type’] = ‘config’;
$cfg[‘Servers’][$i][‘user’] = ‘root’;
$cfg[‘Servers’][$i][‘password’] = ‘mynewpassword’;
$cfg[‘Servers’][$i][‘extension’] = ‘mysql’;
$cfg[‘Servers’][$i][‘AllowNoPassword’] = true;

Try it one more time and phpmyadmin is on duty again.


Published by:

Not just ubuntu who has an easy install program using apt-get command. Slackware has one too.
First edit /etc/slackpkg/mirrors
Uncomment one of the closest server from you under the slackware version you use. Mine is Indonesia but the server is not active. So I m using Australian.
#slackpkg update
for updating the repository.
Next time we need to install something do this (in root)
#slackpkg install program
Well done.

mysql command

Published by:

using mysql from console
$mysql -u myuser -pmypassword

show database
mysql>show databases;

connect to database
mysql>use mydatabase;

show tables inside the database
mysql>show tables;

show what inside the table
mysql>select*from tablenamesatu

search the data inside the table
mysql>select*from tablenamesatu where columndata=’data’;
mysql>select*from tablenamesatu where columndata mycolumns like ‘data%’;

insert data
mysql>insert into tablenamesatu (column1,column2,..) values(‘data’,’data’,’…’);

delete data
mysql>delete from tablenamesatu where username=’data’;

update/change data
mysql>update tablenamesatu set columndata=’data’ where columndata1=’data’;

show header of column of table
mysql>show columns from tablenamesatu;

can’t start xampp 1.7.4 properly in mysql

Published by:

Sometime strange thing happen to me with my machine. I use slackware for many years. And I have two machine with the same slackware version. With one maching I can install xampp fine. But in another one, can not. The error messege when running xampp with /opt/lampp/lampp start is Mysql can’t running.
It is because there’s another mysqld service running on my slackware 13.1. Heres is the result when I stop /etc/rc.d/rc.mysqld
(do it in root)
#ps x | grep mysql
# 3731 pts/1 S 0:00 /bin/sh /usr/bin/mysqld_safe –datadir=/var/lib/mysql –pid-file=/var/run/mysql/ –skip-networking

So I stop the mysqld
#/etc/rc.d/rc.mysqld stop

Restart the lampp
#/opt/lampp/lampp restart
The mysql should be working now.

joe editor

Published by:

I though joe is somebody name but this is linux editor. Slackware has it.
As easy as nano and mcedit. Here are the list of joe’s command
source is here and here

Help Screen turn off with ^KH more help with ESC . (^[.)

^B left ^F right ^U prev. screen ^KB begin ^D char. ^KJ reformat ^KX save
^P up ^N down ^V next screen ^KK end ^Y line ^T options ^C abort
^Z previous word ^A beg. of line ^KM move ^W >word ^R refresh ^KZ shell
^X next word ^E end of line ^KC copy ^O wordline SPELL ^KE edit
^KF find text ^KV end of file ^KY delete ^_ undo ^[N word ^KR insert
^L find next ^KL to line No. ^K/ filter ^^ redo ^[L file ^KD save

IW tonguetwister Row 1 Col 1 9:48 Ctrl-K H for help

New File

easyhotspot with coovachilli in virtualbox

Published by:

Finally I made it to install easyhotspot with ubuntu iso inside the virtualbox. Actually it’s already running but when I made a change a little in the dns setting, chillispot is not running.
So I upgraded to coovachilli and today I made it to make it work. Together with easyhotspot web management that I didn’t find any reference about how to make a relation between them.
Wait for the complete review.

activating ssh in ubuntu 9.10 karmic

Published by:

As usual ubuntu always need some extra setting when we need one. For example I need to install ssh server in it. Ubuntu doesn’t have one. So we need to find the program first.

#sudo apt-get install openssh-client
#sudo apt-get install openssh-server
#sudo nano /etc/ssh/ssh_config

Uncheck Port 22 or we can change the port to the empty one.

Restart the ssh

#sudo /etc/init.d/ssh restart

That’s it.