/var/log/step2k

November 6, 2008

Install SMS Gateway dengan Ubuntu Server dan Gnokii

Filed under: Project, Linux - Salman Teguh @ 6:21 am

Tulisan mengenai hal ini dapat dilihat di http://step2k.blogs.yarsi.ac.id/2008/09/24/install-sms-gateway-dengan-ubuntu-server-dan-gnokii/

April 24, 2008

Install Wordpress MU

Filed under: Project - Salman Teguh @ 1:37 pm

Belum lama ini saya melakukan install Wordpress MU untuk keperluan di tempat kerja. Secara umum sih tidak terlalu berbeda dengan cara install Wordpress. Yang membedakan hanya pada bagian wildcard mask.

Langkah-langkahnya (nyontek dari manualnya) :

###### Apache Side ######

1. download source code dari sini

2. Pastikan pada apache yang terinstall terdapat konfigurasi dibawah
LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so

3. Pada bagian di VirtualHost
Ubah “AllowOverride None
Menjadi “AllowOverride FileInfo Options

4. Biasanya pada konfigurasi (minimal) VirtualHost apache seperti dibawah

ServerName www.domain.tld
DocumentRoot /www/domain


Agar setiap user dapat memiliki alamat blog subdomain (http://salman.blogs.yarsi.ac.id) maka konfigurasi VirtualHost dirubah menjadi

ServerName blogs.yarsi.ac.id
DocumentRoot /www/domain
ServerAlias *.blogs.yarsi.ac.id

###### DNS ######

Setelah menambahkan domain utamanya kedalam konfigurasi DNS domain, kita perlu menambahkan satu baris lagi untuk wildcard domain-nya.
Contoh :

…. awal isi file db.domain

www IN A 192.168.1.1
blogs IN cname www
*.blogs IN cname www


…. akhir isi file db.domain

###### PHP Side ######

Pada file php.ini, kita harus menambahkan (merubah) menjadi berikut ini :

display_errors = Off
register_globals = Off

###### Installing ######

1. extract file yang telah di download
2. buat database dan user di mysql
3. simpan folder yang telah di-extract pada directory yang diinginkan (biasanya di htdocs apache)
4. pastikan directory /wp-content writeable
5. jalankan script install (http://localhost/wordpress-mu/index.php)

Semoga bermanfaat :)

February 20, 2008

Setup VPN Server dengan FreeBSD + PPTP

Filed under: Project, Freebsd - Salman Teguh @ 12:32 pm

VPN server ini di install pada FreeBSD 6.3
Adapun langkah-langkahnya adalah sebagai berikut :

1. install poptop melalui port

[root]# cd /usr/ports/net/poptop
[root]# make install clean

2. vi /usr/local/etc/pptpd.conf
# Alamat IP disesuaikan dengan kondisi jaringan Anda.

debug
nobsdcomp
proxyarp
localip 172.16.0.4
remoteip 172.16.0.150-155
pidfile /var/run/pptpd.pid
+chapms-v2
mppe-40
mppe-128
mppe-stateless

3. vi /etc/ppp/ppp.conf
loop:
set timeout 0
set log phase chat connect lcp ipcp command
set device localhost:pptp
set dial
set login
# Server (local) IP address, Range for Clients, and Netmask
# if you want to use NAT use private IP addresses
set ifaddr 172.16.0.4 172.16.0.150-172.16.0.155 255.255.0.0
add default HISADDR
set server /tmp/loop “” 0177

loop-in:
set timeout 0
set log phase lcp ipcp command
allow mode direct

pptp:
load loop
disable pap
# Authenticate against /etc/passwd
enable passwdauth
disable ipv6cp
enable proxy
accept dns
enable MSChapV2
enable mppe
disable deflate pred1
deny deflate pred1
set dns 24.26.163.24
set device !/etc/ppp/secure

4. vi /etc/ppp/secure
#!/bin/sh
exec /usr/sbin/ppp -direct loop-in

5. vi /etc/ppp/ppp.secret
#user #passoword
user1 password
user2 password

6. mengaktifkan ip forwarding
[root]# sysctl net.inet.ip.forwarding=1

7. Enable proxy arp
vi /etc/rc.conf
arpproxy_all=”YES”

8. Start pptpd
/usr/local/etc/rc.d/pptpd start

February 6, 2008

Compile Apache2 + PHP5

Filed under: Project, Freebsd - Salman Teguh @ 2:46 am

Compile & Install Apache 2 :
1. ./configure --prefix=/usr/local/apache --enable-so --enable-cgi --enable-info --enable-rewrite --enable-speling --enable-usertrack --enable-deflate --enable-ssl --enable-mime-magic
2. make
3. make install

Compile & Install PHP 5 (with GD, PDFlib, MySQL)
1. ./configure --with-apxs2=/usr/local/apache/bin/apxs --with-mysql=/usr/local/mysql --prefix=/usr/local/apache/php --with-config-file-path=/urs/local/apache/php --enable-force-cgi-redirect --disable-cgi --with-zlib --with-gettext --with-libxml-dir=/usr/local/libxml2 --enable-bcmath --enable-calendar --with-gd=/usr/local/gd --with-ttf --enable-gd-native-ttf --enable-mbstring --with-pdflib=/usr/local/pdflib --enable-soap --enable-sockets --enable-sysvmsg --enable-sysvsem --enable-sysvshm --enable-wddx
2. make
3. make install

February 5, 2008

Install Gammu di FreeBSD

Filed under: Project, Freebsd - Salman Teguh @ 5:37 am

1. Pastikan MySQL sudah terinstall
2. buat link : ln -s /usr/local/mysql/include/mysql/*.* /usr/include/mysql
(Asumsi hasil install mysql berada pada /usr/local/mysql)
3. cd /usr/ports/comms/gammu
4. make
5. make install
6. make clean

December 10, 2007

SMB Share di Zencafe

Filed under: Project, Linux - Salman Teguh @ 5:24 am

dikutip dari : http://bayuart.wordpress.com/2007/04/12/zencafe-distro-khusus-warnet/

Samba Server (Komputer yag file/direktorinya ingin anda share)

1. Pastikan anda mengaktifkan SAMBA Service saat pertama kali install, jika tidak, anda dapat mengaktifkannya lewat Menu > System > Zenpanel, lalu klik Startup Services
2. Buka SWAT (Menu > System > Samba Web Administration Tools), login dengan user root & password.
3. klik ikon GLOBALS, ikuti langkah berikut ini:

* Workgroup, ganti dengan nama workgroup anda
* Netbiosname, ganti ini dengan nama komputer anda
* Security, ganti dengan “SHARE”
* Klik “Commit Changes”

4. Klik ikon SHARES, ikuti langkah berikut:

* Masukkan nama share, sebagai contoh: Documents, lalu klik “Create Share”
* Path, ganti dengan letak folder yang ingin anda share, sebagai contoh: /home/username/Documents
* Read only, ganti dengan “NO”
* Guest ok, ganti dengan “YES”
* Klik “Commit Changes”

5. Ganti permission /home/username/Documents ke RWX (777), jika anda tidak tahu bagaimana caranya, klik kanan saja folder Document > Properties > Permission, ganti semua ke Read & Write.
6. Ok, sekian. Simple kan?

Samba Client (Komputer untuk membaca share direktori)
Anda hanya memerlukan 1 kali langkah ini. Anda tidak memerlukan langkah ini lagi selama anda tetap menggunakan Zencafe anda.

Klik Menu > Network > FuseSMBTools, ganti Mountpoint directory ke Network diektori anda Contoh: /home/username/Network lalu Save.

Hanya itu? Ya hanya itu. Klik shortcut Network pada desktop setiap kali anda ingin mengakses share direktori komputer lain.

October 18, 2007

ROUNDUP Excel

Filed under: Project, PHP - Salman Teguh @ 6:56 am

Berikut ini adalah fungsi untuk roundup sehingga outputnya sama dengan fungsi roundup excel.

function roundup ($num, $digits) {
$shift = pow(10 , $digits);
$rounds=$shift-$num;
if ($rounds<0){
$mod=ceil($num/$shift);
$shift=$shift*$mod;
$rounds=$shift-$num;
}
return ($num+$rounds);
}

September 3, 2007

MySQL Reset Autonumber

Filed under: Project, MySQL - Salman Teguh @ 3:08 am

Untuk mereset MySQL autonumber : truncate table nama_tabel
perintah delete tidak akan me-reset autonumber.

July 31, 2007

Remove copy protection from PDF documents

Filed under: Project, Lain-lain - Salman Teguh @ 7:12 pm

from : http://kennywest.blogspot.com/2007/03/remove-copy-protection-from-pdf.html

This is probably illegal, so use it at your own risk.
Some PDFs on the internet have a copy protection to make sure you cannot copy-paste any content from the PDF into a document you’re writing. To circumvent this protection there are several tools available on the internet. I haven’t tried any of them, because they’re not free ;)

There is however a procedure that will enable you to circumvent the copy protection using free tools. The trick is to convert the PDF to a PS (PostScript) document first and then convert it back into a PDF.
So, download Ghostview en Ghostscript from: http://www.cs.wisc.edu/~ghost/.
Next, open your PDF in Ghostview.
Next, from the “File” menu, select “Convert” (a dialog will pop up)
Press “Ok”
Fill in the name of the “converted” file.
Press “Save”
Tada, you can now copy content from your newly created PDF ;)

July 28, 2007

HOWTO: Installing Brother DCP-115C/MFC210C printer in Fedora 6

Filed under: Project, Linux - Salman Teguh @ 7:44 pm

sumber : http://lifeeditor.blogspot.com/2007/04/howto-installing-brother-dcp.html

4/06/2007
HOWTO: Installing Brother DCP-115C/MFC210C printer in Fedora 6

1. Step 1: Download from Brother

[The CUPS wrapper]
[The LPR Driver]

For other Brother machines: Please make sure the appropriate drivers are downloaded. Check the Brother website for the LPR Drivers and for the CUPS Wrapper.

2.TURN PRINTER OFF
DO NOT SKIP THIS STEP! THINGS GO TERRIBLY WRONG WHEN THIS IS AVOIDED!

3. LPR Driver Install
rpm -Uvh MFC210Clpr-1.0.2-1.i386.rpm

4. Install the CUPS Wrapper
rpm -Uvh cupswrapperMFC210C-1.0.0-1.i386.rpm

5. TURN PRINTER ON

6. System → Administration → Printing

* Paper Tab: Ensure your local paper size is selected.
* Advanced Tab: Review the choices and make appropriate adjustments.
* Click “Print a test page” to confirm all works well.

7. The current drivers do not support SELinux(FedoraCore4/GNOME etc). If you get an error when printing you have to disable SELinux.

System -> Administration -> Security Level and Firewall -> SELinux and the set SELinux Setting to ‘Permissive’.

February 6, 2007

Ubuntu with *.chm file

Filed under: Project, Linux - Salman Teguh @ 8:38 am

Kalo pengen buka file2x chm (kayak php manual.chm), harus install dulu gnochm. cara installnya cukup :
“sudo apt-get install gnochm” (Tanpa petik).

January 10, 2007

VlabENC

Filed under: Project, Kuliah, PHP - Salman Teguh @ 6:05 am

my simple encoder

encoder source php sederhana pake base64. -> tugas ec7010

October 5, 2006

ORACLE 10g XE + PHP

Filed under: Project, PHP, Oracle - Salman Teguh @ 8:22 am

Sejak 2 bulan (lebih) terakhir gw diminta untuk develop aplikasi yang berbasis PHP dan oracle. jujur, gw kena ‘panic mode’. soalnya yang biasa pake mysql atau mssql server sekarang diminta pake oracle. sebenernya sih alasan gw gak pernah nyoba oracle tuh gara-gara resource hardware yang gw punya gak cukup (heheheheheh).

Kebetulan ada source oracle 10g xe di salah satu hdd. sourcenya dapet ngopi dari hdd-nya pa onno. langsung deh liat requirement hdd-nya. ternyata untuk yang 10g XE cuman butuh memory 256MB. wah cocok nih sama spek ram gw punya. eh, ternyata setelah di install komputer gw jadi lelet bgt (hahahahah).

Hal pertama yang gw rasain rada beda dengan di mysql adalah cara koneksi php ke oracle. kalo di mysql langsung mysql_connect(hostname,username,password), nah kalo di oracle ini rada beda, apalagi kalo server DB-nya terpisah. kita harus pake library tambahan ‘oracle instant client’.
(more…)

August 6, 2006

Back Online

Filed under: Project, Kuliah, MySQL, PHP - Salman Teguh @ 3:10 pm

Akhirnya setelah beberapa minggu domain *.inohong.com, website se-it sama fbr online again.
alamatnya berubah jadi :
http://se-it.inohong.com -> http://step2k.php0h.com
http://fbr.inohong.com -> http://fbr.php0h.com

mudah2x bisa berguna lagi :D

July 10, 2006

Upload Csv Insert To MySql

Filed under: Project, MySQL, PHP - Salman Teguh @ 2:46 am

from : http://howto.indika.net.id/wikka.php?wakka=UploadCsvInsertToMySql
< ?php
//First we need to define our user pass and database name
$tbl = “yourtablename”;
$host=”yourdatabasehost”;
$user=”youruser”;
$pass=”yourpass”;
$database=”yourdatabase”;

//we need function to get the csv
function getcsv($filename, $delim =”,”){

$row = 0;
$dump = array(); //create new array for hold the data csv

$f = fopen ($filename,”r”);
$size = filesize($filename)+1;
while ($data = fgetcsv($f, $size, $delim)) {
$dump[$row] = $data; //put the data to array
//echo $data[1].”
“;
$row++;
}
fclose ($f);

return $dump;
}
(more…)

DotProject: JpGraph Error

Filed under: Project - Salman Teguh @ 2:45 am

from : http://www.dotproject.net/vbulletin/archive/index.php/t-2320.html

Open the file modules/tasks/gantt.php and change line 142 where it says “$graph->scale->SetDateLocale(some dotproject variable);”
to
“$graph->scale->SetDateLocale('’);”

February 6, 2006

Female Bio Rythm

Filed under: Project, Kuliah, MySQL, PHP - Salman Teguh @ 4:46 am

Female Bio Rythm Logo
Ada yang pernah pake ovulasiku? atau femta ? itu tuh, program yang dibikin buat memprediksi masa subur sama waktu masa menstruasi wanita. Kebetulan buat project tugas kampus (EC5000 & EI6130) gw bikin aplikasi yang mirip dengan 2 yang disebut diatas, tapi bedanya ini free dan bisa dipake via internet. Mungkin fasilitasnya tidak secanggih ovulasiku sama femta, tapi mudah2xan bisa mendekati lah… :D

Btw program ovulasiku pernah dibahas sama detikcom, harga satu copynya Rp. 50.000 saja. Kalo yang femta $35.00. Tapi kalo yang ini nih, gratis.

Harap maklum kalo masih banyak kekurangan disana-sini.
Female Bio Rythm bisa diakses lewat :
- http://fbr.yarsi.ac.id

Mudah-mudahan bermanfaat.

November 17, 2005

HowTo Create A LiveCD | livecd.berlios.de

Filed under: Project, Linux - Salman Teguh @ 10:03 am

Building a LiveCD based on Mandrakelinux 10.1 Official

This step by step HowTo describes how you can master a LiveCD from an installed system. You should be familiar with: doing basic works on command line, setup additional software sources on a Mandrake system, using ‘urpmi’ to install and remove software.

0. Mastering a LiveCD requires a minimum of 256 MB RAM and in addition a swap partition. 250 MB should be enough if you create a small LiveCD ( ~ 300 MB ), go for 2 GB if you are planning a bigger system.

1. Install a clean Mandrakelinux 10.1 Official on one / partition. Don’t forget the swap partition. Install the available official updates. Don’t install nvidia or ati drivers.

2. Keep your system simple, and: keep it small. Start with a used space of 800 - 900 MB, this is a full featured KDE system. ‘df’ is the command to control the used space on your harddrive. Take your time to uninstall (Mandrake Control Center) all unneeded software. A default Mandrake installation includes a lot of stuff that you can safely get rid off. And if urpmi complains about dependencies and wants to uninstall too much, you may want to experiment with: rpm -e –nodeps. That will erase single packages.
Configure the ‘look and feel’ of your graphical environment. The LiveCD will look the same.
Make sure that /etc, /home, /lib, /root, /var is not too big. Otherwise you’ll be running out of RAM when starting the LiveCD. Examples: Don’t put many (already compressed) video or music files into your home directory. Don’t have two kernel versions (/lib) installed. Clean or uninstall your urpmi databases in /var/lib/urpmi.

3. Add ‘contrib’ and ‘main’ to your urpmi software sources. Install the ‘kernel 2.6.7 tmb’ from ‘contrib’ on your system. (MCC) The default kernel 2.6.8 won’t work on a LiveCD! Reboot with your new kernel, make sure you are running it: uname -r. Uninstall the default 2.6.8 kernel, again reboot.

4. The next step is to install the mklivecd scripts that will build your .iso file. I’ve made an archive which contains: a working mklivecd.rpm (from cvs, 01.01.2005), the file install_any.pm and this HowTo. Download the archive here: livecd_101.tar.gz
Unpack the archive to your home directory and install the rpm, using the urpmi command. This will take care of all dependencies and will download and install more stuff. You did setup your urpmi sources (contrib, main), hey?
As root copy the file install_any.pm to /usr/lib/libDraKX

If you want to include an installer into your LiveCD you also need the package livecd-utils.rpm. Get it here

5. Clickup a console. Get root. Run: mklivecd –help
The command to build your iso is as simple/enhanced as you want.
Examples:
# mklivecd myown.iso
# mklivecd –verbose –resolution 800x600 –fstab=rw,auto –splash=no –keyboard=fr rainbow.iso
The script takes care of compressing the files and building a bootable image, and will cleanup after it is done.
Burn your iso. Have fun.

6. If you are running into problems, please read the archives of the livecd-users mailinglist at berlios.de, or even better, join the list.

7. Some notes on Kernel problems with Mandrake 10.1 OE. To build a LiveCD with the mklivecd scripts the kernel has to be patched with squashfs. The default Mandrake 10.1 kernel (2.6.8.1) has the wrong, not working patch! And the 2.6.8 kernel has broken append options! You can use the 2.6.7 tmb kernel from contrib. It’s working fine. If you want a newer kernel version (2.6.9 or 2.6.10), you need to patch and compile your own kernel. More info on the users-list or on the irc channel #pclinuxos (efnet), where you can talk to the developers of the mklivecd scripts.

8. When building your iso, you can specify a standard keyboard layout. Default is the US keyboard. Later on your LiveCD you can use a cheatcode (keyb=fr) to alter the layout. If you want an easy way to change the keyboard while running the LiveCD, you need to edit the file ‘/usr/lib/libDrakX/Xconfig/xfree.pm ‘, before building your iso. Lines 25 and 71, change the resp. ‘keyboard’ to ‘kbd’, that will load the correct keyboard driver. (more…)

July 26, 2005

Membaca partisi NTFS dari Fedora Core 4

Filed under: Project, Linux - Salman Teguh @ 5:20 am

##### www.linux.or.id
Pada Fedora Core 4 (FC4), kernel yang dibawa dalam paket tidak menyediakan dukungan terhadap NTFS karena masalah lisensi, sehingga diperlukan instalasi kernel yang mendukung ntfs.

Saya telah mencoba dengan
kernel-module-ntfs-2.6.11-1.1369_FC4-2.1.22-0.rr.6.0.i686.rpm
dan SUKSES membaca partisi NTFS dan FAT32 di komputer yang saya pakai.

Untuk informasi lengkapnya, silahkan kunjungi :
http://linux-ntfs.sourceforge.net

Untuk instruksi instalasi, kunjungi :
http://linux-ntfs.sourceforge.net/rpm/instructions.html

Mounting

Filed under: Project, Freebsd, Linux - Salman Teguh @ 5:20 am

iso image :
mount -r -t iso9660 -o loop /path/to/image.iso /mnt/hd

nfs :
mount -t nfs a.b.c.d:/path/ path_target/

Instalasi software Billing di Linux: OpenKiosk

Filed under: Project, Linux - Salman Teguh @ 5:19 am

To: asosiasi-warnet@yahoogroups.com
From: Harry Sufehmi
Subject: Billing di Linux: OpenKiosk

Berikut ini adalah informasi cara instalasi salah satu program billing di Linux, yaitu OpenKiosk : http://openkiosk.sourceforge.net
nb: program ini TIDAK bisa digunakan di LTSP.

Salah satu kelebihan OpenKiosk adalah bahwa client / workstation bisa menggunakan sistim operasi Linux, FreeBSD/OpenBSD, maupun Windows.
Program billing ini juga gratis.

(more…)

Tugas Akhir ?

Filed under: Project, Lain-lain - Salman Teguh @ 5:18 am

Buat yang belum punya ide, ini ada beberapa ide TA(baru dapet semalem) :
1. Membuat live cd linux (http://livecd.berlios.de/)
2. Membuat server hosting dengan FreeBSD / Linux (udah ada bukunya-linux knoppix)
3. Membangun mail server multidomain dengan qmail (www.qmailrocks.org)
4. Membuat VPN server dengan FreeBSD/Linux (udah ada bukunya-linux debian)/Windows :
- linux (http://linas.org/linux/vpn.html)
- freebsd (http://www.freebsddiary.org/pptp.php)
- windows (http://www.onecomputerguy.com/networking/xp_vpn_server.htm) bisa cari yang lain

gimana ? masih kurang juga?

5. Implementasi IPV6 dengan FreeBSD (ide p’sandra)
6. Pemanfaatan fungsi Regex pada bahasa pemrograman web untuk mencegah SQL Injection
7. Pemanfaatan Honeypot dan Snort untuk keamanan server dengan peringatan via sms

ada yang tertarik ? tentunya yang diatas baru ide dasarnya aja…. silahkan dikembangkan….

Membangun SMS Gateway dengan Gnokii dan PlaySMS

Filed under: Project, Linux - Salman Teguh @ 5:16 am

Diambil dari Manual PlaySMS :

WARNING !!!
———–
PlaySMS is not save for kids!
But if you’re a kid, and you can meet requirement’s below, you can use PlaySMS, savely!
Kids must:
1. Not nervous when login to Linux console remotely
2. Able to read and understand README first, INSTALL and then FAQ in this package
3. Able to use Yahoo! to send join PlaySMS mailing list, and ask good questions
4. Be serious after this WARNING

REQUIREMENT
———–
Download PlaySMS : http://playsms.sourceforge.net/
Download Gnokii : http://www.gnokii.org/

Minimum Required Hardware
- Web servers hardware
- Disk freespace for software and data disk at least 10 MB
Minimum Required Software
- Operating System *NIX based (Linux preferred)
- Web Server (Apache preferred http://httpd.apache.org)
- Database Server MySQL 3.23.47 or latest stable release (http://www.mysql.com)
- PHP 4.2.2 or latest stable release with mysql module enabled and CGI version
(http://www.php.net)
Minimum Required Server Operator (or Developer)
- Understand howto make sure installed PHP has MySQL module enabled (phpinfo)
- Understand howto create/drop MySQL database
- Understand howto insert SQL statement into created database
- OK to read README, INSTALL, FAQ and other docs :)

(more…)

Configure FreeTDS+Apache+PHP+MSSQL 2000 di *nix

Filed under: Project, Freebsd, PHP, Linux, SQL Server - Salman Teguh @ 5:11 am

Configure Freetds

1. Download Freetds 0.53 at www.freetds.org
2. ./configure –prefix=/usr/local/freetds –with-tdsver=7.0
3. make
4. make install
5. Edit /usr/local/freetds/etc/freetds.conf
6. Add

[MyServer70] ¡¥DSN for PHP
host = 10.23.52.114 ¡¥MS SQL Server IP
port = 1433 ¡¥MS SQL Default Port
tds version = 7.0 ¡¥MS SQL 2000 Version No.
client charset = UTF-8 ¡¥Charset Encoding, it can be omitted if you don’t want to disply in unicode

Configure PHP 4.12
1. Download PHP4 from www.php.net
2. ./configure –with-sybase=/usr/local/freetds –with-apache=../{Apache Path} –enable-track-vars
3. copy all files in /usr/local/freetds/lib/ to /usr/lib
4. make
5. make install

Configure Apache 1.3.24

1. ./configure –activate-module=src/modules/php4/libphp4.a
2. make
3. make install
4. cp php.ini-dist /usr/local/lib/php.ini
5. Edit Your httpd.conf or srm.conf file and add;
AddType application/x-httpd-php .php
6. /usr/local/apache/bin/apachectl start

Feel free to email to us @ aikok@netfront.net or elee@kinwai.net
German Chu & Eagle Lee

Get free blog up and running in minutes with Blogsome
Theme designed by Alex King