Pengen Punya WebSite instan kualitas intan ?

Showing posts with label OpenSUSE. Show all posts
Showing posts with label OpenSUSE. Show all posts

Monday, February 28, 2011

Format Flashdisk pada mesin Linux

  • tancepkan flashdisknya :)
  • umount flashdisknya
root@prayoga-desktop:/home/prayoga# umount /media/E036-8B78
E036-8B78 adalah tempat flashdisk mounting (disesuaikan) 


  • cek keberadaan flashdisk di port berapa
root@prayoga-desktop:/home/prayoga# fdisk -l

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0002950b

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1       30033   241240041   83  Linux
/dev/sda2           30034       30401     2955960    5  Extended
/dev/sda5           30034       30401     2955928+  82  Linux swap / Solaris

Disk /dev/sdb: 4012 MB, 4012900352 bytes
120 heads, 56 sectors/track, 1166 cylinders
Units = cylinders of 6720 * 512 = 3440640 bytes
Disk identifier: 0x00000000

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           2        1167     3914816    b  W95 FAT32



  • lakukan format
root@prayoga-desktop:/home/prayoga# mkfs.vfat -F32 -n nama_label /dev/sdb1

-F32 adalah partisi FAT32
nama_label : terserah anda mau menamai apa :D
/dev/sdb1 adalah letak port flashdisk yang telah di cek sebelumnya.

Saturday, October 23, 2010

Adding Repositories on OpenSuse 11.1 x86_64

untuk menambahkan repositori pada OpenSuse 11.1 x86_64

yoga:~ # zypper addrepo --name "openSUSE-11.1 OSS" http://download.opensuse.org/distribution/11.1/repo/oss/ repo-oss
yoga:~ # zypper addrepo --name "openSUSE-11.1 Non-OSS" http://download.opensuse.org/distribution/11.1/repo/non-oss/ repo-non-oss
yoga:~ # zypper addrepo --name "openSUSE-11.1 Updates" http://download.opensuse.org/update/11.1/ repo-update
kemudian :

yoga:~ # zypper ref
dan update system

yoga:~ # zypper update

Tuesday, July 20, 2010

Install Apache Tomcat di OpenSUSE 11.1 x64bit

install jdk
wget http://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/VerifyItem-Start/jdk-6u21-linux-x64.bin?BundledLineItemUUID=juWJ_hCu42EAAAEp9cESMuuU&OrderID=9QmJ_hCuTP4AAAEp5cESMuuU&ProductID=xKiJ_hCySHIAAAEpT7wzBGsB&FileName=/jdk-6u21-linux-x64.bin

rename file hasil download menjadi jdk.bin
mv http://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/VerifyItem-Start/jdk-6u21-linux-x64.bin?BundledLineItemUUID=juWJ_hCu42EAAAEp9cESMuuU&OrderID=9QmJ_hCuTP4AAAEp5cESMuuU&ProductID=xKiJ_hCySHIAAAEpT7wzBGsB&FileName=/jdk-6u21-linux-x64.bin jkd.bin

ubah file permission agar dapat di eksekusi
chmod +x jdk.bin

jalankan file binary
./jdk.bin

tes instalasi jdk

Thursday, July 15, 2010

h264 dan flv streaming pada Lighttpd

install dependency
zypper in fam fam-devel libgio-fam pkg-config pcre-devel

cd /root

wget http://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-1.4.23.tar.gz
tar -xzf lighttpd-1.4.23.tar.gz

mendapatkan h264 dari Lighttp 1.4.18 svn
svn export http://h264.code-shop.com/svn/h264/tags/mod_h264_streaming-2.0/lighttpd-1.4.18 lighttpd-1.4.18
svn export --force http://h264.code-shop.com/svn/h264/tags/mod_h264_streaming-2.0/mp4split lighttpd-1.4.18/src

cp lighttpd-1.4.18/src/moov.* lighttpd-1.4.23/src/
cp lighttpd-1.4.18/src/mod_h264_streaming.c lighttpd-1.4.23/src/

Wednesday, July 14, 2010

Install wordpress pada OpenSUSE 11.1

pastikan web server, database server, dan php telah terinstall. cek di sini

download wp dan ekstrak
wget http://wordpress.org/latest.tar.gz
tar -zxvf latest.tar.gz
mv wordpress/* /home/prayoga/www/commands.org.uk/htdocs/
cd /home/prayoga/www/commands.org.uk/htdocs/
cp wp-config-sample.php wp-config.php

edit file wp-config.php

Tuesday, July 13, 2010

Install dan konfigurasi proftp pada OpenSUSE 11.1

pastikan  make gcc gcc-c++ telah terinstall, jika belum anda dapat menginstall melalui yast atau zypper.
[root:~] # cd root
[root: download ] # wget ftp://ftp.proftpd.org/distrib/source/proftpd-1.3.3.tar.gz
[root: download ] # tar -zxvf proftpd-1.3.3.tar.gz
[root: download ] # cd proftpd-1.3.3
[root: proftpd-1.3.3 ] # ./configure --sysconfdir=/etc
[root: proftpd-1.3.3 ] # make
[root: proftpd-1.3.3 ] # make install

[root: proftpd-1.3.3 ] # vi /etc/init.d/proftpd

Monday, July 12, 2010

Install AWStats pada OpenSUSE 11.1

Sebelum install awstats, pastikan web server anda up

download dan install awstats
wget http://prdownloads.sourceforge.net/awstats/awstats-6.95.tar.gz
tar -zxvf awstats-6.95.tar.gz
mv awstats-6.95 awstats
mv awstats /home/prayoga/commands.org.uk/htdocs/
cd /home/prayoga/commands.org.uk/htdocs/
mkdir awstats/data
cd awstats/tools/
./awstats_configure.pl

----- AWStats awstats_configure 1.0 (build 1.8) (c) Laurent Destailleur -----
This tool will help you to configure AWStats to analyze statistics for
one web server. You can try to use it to let it do all that is possible
in AWStats setup, however following the step by step manual setup
documentation (docs/index.html) is often a better idea. Above all if:
- You are not an administrator user,
- You want to analyze downloaded log files without web server,
- You want to analyze mail or ftp log files instead of web log files,
- You need to analyze load balanced servers log files,
- You want to 'understand' all possible ways to use AWStats...
Read the AWStats documentation (docs/index.html).

-----> Running OS detected: Linux, BSD or Unix
Warning: AWStats standard directory on Linux OS is '/usr/local/awstats'.
If you want to use standard directory, you should first move all content
of AWStats distribution from current directory:
/home/prayoga/www/commands.org.uk/htdocs/awstats
to standard directory:
/usr/local/awstats
And then, run configure.pl from this location.
Do you want to continue setup from this NON standard directory [yN] ? y

-----> Check for web server install

Install Webmail (SquirrelMail)

Sebelum install SquirrelMail, pastikan mail server anda sudah siap, jika belum bisa cek di sini.

download dan ekstract SquirrelMail
wget http://www.sfr-fresh.com/unix/www/squirrelmail-1.4.20.tar.gz
tar -zxvf squirrelmail-1.4.20.tar.gz
mv squirrelmail-1.4.20 /usr/local/apache2/htdocs/webmail

konfigure SquirrelMail
cd /usr/local/apache2/htdocs/webmail/config
./conf.pl

Anda akan melihat baris berikut :
SquirrelMail Configuration : Read: config.php (1.4.0)
---------------------------------------------------------
Main Menu --
1.  Organization Preferences
2.  Server Settings
3.  Folder Defaults
4.  General Options
5.  Themes
6.  Address Books
7.  Message of the Day (MOTD)
8.  Plugins
9.  Database
10. Languages

D.  Set pre-defined settings for specific IMAP servers
C   Turn color on
S   Save data
Q   Quit

Command >>

ketik "2" untuk Server Settings
ketik "A" untuk Update IMAP Settings
ketik "6" untuk Authentication type

Try to detect supported mechanisms? [y/N]:Y
login, cram-md5, or digest-md5 [login]: <Press Enter> atau ketik "login"

ketik "8" untuk Server software
ketik courier dan <Press Enter>
ketik "s" untuk save config
ketik "q" untuk quit the webmail config

Access SquirrelMail / Webmail

anda dapat mengakses webmail dari url :

http://<ipaddress>/webmail

Konfigurasi Virtual Host pada OpenSUSE 11.1

Untuk mengetahui apa itu virtual hosting bisa dibaca di sini.

Sebelum membuat vHost, pastikan webserver pada mesin anda sudah up dan running cek di sini jika belum ada.

Install cronolog.
wget http://www.sfr-fresh.com/unix/www/cronolog-1.6.2.tar.gz

tar -xzvf cronolog-1.6.2.tar.gz

cd cronolog-1.6.2

./configure && make && make install

persiapan konfigurasi vhost
su - prayoga

cd /home/prayoga

mkdir -p www/commands.org.uk/{htdocs,cgi-bin}

ln -s www/commands.org.uk commands.org.uk

exit

konfigurasi pada httpd.conf
vi /usr/local/apache2/conf/httpd.conf

### tambahkan pada bawah sendiri baris berikut ###

Friday, July 9, 2010

Install And Configure Postfix with Courier-Authlib and Courier-Imap OpenSUSE 11.1 X86_64 O/S

Install C Compiler and Dependencies
zypper -i gcc gcc-c++ ncurses-devel pam-devel automake gettext-tools db1  db43 db43-devel libdb-* libopenssl-devel*

Edit ld.so.conf and add 1 lines below
#vi /etc/ld.so.conf

## add few lines below in the end of file ##
/usr/local/include
/usr/local/ssl/lib/
/usr/local/mysql/lib/mysql
/usr/local/mysql/include
/usr/local/ssl/include/openssl
/usr/local/ssl/include
/usr/include
/usr/include/openssl

Reload with ldconfig
ldconfig

Install Cyrus-SASL
tar -zxvf cyrus-sasl-2.1.23.tar.gz

cd cyrus-sasl-2.1.23

./configure  --enable-anon --enable-plain --enable-login --enable-sql \
--disable-krb4  --disable-otp --disable-cram --disable-digest \
--with-mysql=/usr/local/mysql/lib/mysql  --without-pam --without-saslauthd \
--without-pwcheck --prefix=/usr  --with-plugindir=/usr/lib/sasl2

make -j2; make install

Note :
if you have any problem with cyrus-sasl you can export 2 lines below and try to configure again.
export  CPPFLAGS="-I/usr/local/mysql/include/mysql"
export  LDFLAGS="-L/usr/local/mysql/lib/mysql -lmysqlclient -lz -lm"

Install Courier-Authlib

Thursday, July 8, 2010

Install Apache2 PHP dan MySQL pada OpenSUSE 11.1 x86_64

Download dan Extract semua paket beserta dependency-nya
cd /root

vi files.sh
### isi file file.sh ###
#/bin/bash
#download packages and dependencies

wget http://apache.the.net.id/httpd/httpd-2.2.15.tar.gz
wget http://id.php.net/distributions/php-5.3.1.tar.gz
wget http://downloads.mysql.com/archives/mysql-5.1/mysql-5.1.43.tar.gz
wget ftp://xmlsoft.org/libxml2/libxml2-2.7.7.tar.gz
wget http://www.ijg.org/files/jpegsrc.v8a.tar.gz
wget http://curl.haxx.se/download/curl-7.20.0.tar.gz
wget http://ftp.twaren.net/Unix/NonGNU/freetype/freetype-2.3.12.tar.gz
wget http://www.sfr-fresh.com/unix/privat/openca-base-1.1.0.tar.gz:a/openca-base-1.1.0/src/ext-modules/DBI-1.609.tar.gz
wget http://files.directadmin.com/services/custombuild/libpng-1.2.43.tar.gz
wget http://google-desktop-for-linux-mirror.googlecode.com/files/zlib-1.2.3.tar.gz
wget http://www.libgd.org/releases/gd-2.0.35.tar.gz
wget ftp://ftp.cac.washington.edu/imap/imap-2007e.tar.gz
wget http://openssl.org/source/openssl-0.9.7g.tar.gz

echo "Extracting All Packages"

Sunday, May 16, 2010

Install FFMPEG and PHP-FFMPEG Youtube Like Script

If you have a site like Youtube site or any other tube site, and you want to configure your PHP to support FFMPEG. Here is a detail how to compile and configure FFMPEG and PHP-FFMPEG so your php will support any script like flvtool, mplayer, libogg, libvorbis, libmp3lame, xvidcore, libtheora, faac, faad2 and libmp4v2

In this tutorial, all my configuration is running in OpenSUSE server. I also confirmed that this tutorial also working with Fedora/Centos/RHEL server.

I assume you already have apache, php and mysql up and running in your server. Please follow up the apache, php and mysql installation from this URL below http://www.idprayoga.com/?p=47 and you already have Subversion up and running in your server too. Please follow up the Subversion installation from this URL below http://www.idprayoga.com/?p=205

Configure Subversion Apache Repository

In this tutorial i will not discuss about How to configure apache to load a subversion module on it. If you search about apache with subversion how-to / installation. Please feel free to click this url below http://www.idprayoga.com/2010/05/configure-apache2-and-working-with.html

I also assume you already have apache with subversion module loaded. from the tutorial above. Next thing is to configure apache repo so we can working with svn with browser.

Saturday, May 15, 2010

Configure Apache2 and Working With Subversion

In software development, Apache Subversion (formerly called Subversion[1], command name svn) is a revision control system initiated in 2000 by CollabNet Inc. Developers use Subversion to maintain current and historical versions of files such as source code, web pages, and documentation. Its goal is to be a mostly-compatible successor to the widely used Concurrent Versions System (CVS).

The open source community has used Subversion widely: for example in projects such as Apache Software Foundation, Free Pascal, FreeBSD, GCC, Django, Ruby, Mono, SourceForge, ExtJS, Tigris.org, PHP and MediaWiki. Google Code also provides Subversion hosting for their open source projects. BountySource systems use it exclusively. CodePlex offers access to Subversion as well as to other types of clients.

The corporate world has also started to adopt Subversion. A 2007 report by Forrester Research recognized Subversion as the sole leader in the Standalone Software Configuration Management (SCM) category and as a strong performer in the Software Configuration and Change Management (SCCM) category [read more]

I just write a tutorial to configure Subversion to working with Apache2 or HTTPD. So i assume you already have apache installed on your server. You can follow in http://www.idprayoga.com/2010/07/install-apache2-php-dan-mysql-pada.html to install apache php and mysql

Sunday, May 2, 2010

install cacti

Cacti is a complete network graphing solution designed to harness the power of RRDTool's data storage and graphing functionality. Cacti provides a fast poller, advanced graph templating, multiple data acquisition methods, and user management features out of the box. All of this is wrapped in an intuitive, easy to use interface that makes sense for LAN-sized installations up to complex networks with hundreds of devices.

Get more details about cacti.

Dependency : WebServer,MySQL,PHP, net-snmp, rrdtool (you can install net-snmp and rrdtool from zypper or yast)

+Download cacti
cd /root
wget http://www.cacti.net/downloads/cacti-0.8.7e.tar.gz

+Extract and move to root directory apache

Friday, April 30, 2010

install ectoken or tokenizer into PHP(ECToken PHP extension)

The ECToken PHP extension allows you to generate your EdgeCast Token Authentication from a PHP script. When passed a key and a string, the function ectoken_generate will return an encrypted string for a token authentication URL. [you can read more]

login to server as root

create directory ectoken and download php-ectoken.tar.gz & ecencrypt_visualcpp_source.zip
cd /root

mkdir ectoken

cd ectoken

wget http://commands.org.uk/files/ecencrypt_visualcpp_source.zip

wget http://commands.org.uk/files/php-ectoken.tar.gz

extract php-ectoken, move to /usr/local/ then compile it

Thursday, April 29, 2010

Install phpMyAdmin

phpMyAdmin is an open source tool written in PHP intended to handle the administration of MySQL over the World Wide Web. It can perform various tasks such as creating, modifying or deleting databases, tables, fields or rows; executing SQL statements; or managing users and permissions. [...->]

Installing phpMyAdmin
wget http://sourceforge.net/projects/phpmyadmin/files%2FphpMyAdmin%2F3.3.2%2FphpMyAdmin-3.3.2-all-languages.tar.gz/download\#\!md5\!13420dc6e91c1840ce45e87f24c43931
tar -zxvf phpMyAdmin-3.3.2-all-languages.tar.gz
mv phpMyAdmin-3.3.2-all-languages /home/prayoga/commands.org.uk/htdocs/phpMyAdmin
cd /home/prayoga/commands.org.uk/htdocs/phpMyAdmin/
cp config.sample.inc.php config.inc.php
vi config.inc.php
$cfg['blowfish_secret'] = 'just for experiment'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */

Restart webserver
/usr/local/apache2/bin/apachectl stop
/usr/local/apache2/bin/apachectl start

^ On OpenSUSE 11.1

open connection from OpenVPN client to OpenVPN Server

This tutorial will guide you to connect to openvpn server from openvpn client.So if you are searching about how to installing and configure openvpn server.Please click this for the HOW-TO

First user need to download OpenVPN client GUI. OpenVPN client GUI can be downloaded from this URL http://openvpn.se/files/install_packages/openvpn-2.0.9-gui-1.0.3-install.exe

After you have downloaded the OpenVPN GUI. Click openvpn-2.0.9-gui-1.0.3-install.exe . Follow the instruction and leave all settings as default until the installation finished. If there is question there just click OK until finished.

IMPORTANT :

You need to have a ca.crt file from OpenVPN server. If you don't have this ca.crt file ask your OpenVPN server administrator to provide you the file. If you already have ca.crt file from openvpn server then you need to save the file to C:\Program Files\OpenVPN\config\ca.crt

Example OpenVPN Client :
You are using windows xp.

Create a file with notepad and save this file to C:\Program Files\OpenVPN\config\openvpn.ovpn
client
dev tun
proto udp
remote 208.99.198.*** 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
auth-user-pass
verb 3
comp-lzo

### note : 208.99.198.*** is openvpn server ip address

connecting to OpenVPN server

Click OpenVPN GUI in your Windows Tray icon
Input your username and password provided by your OpenVPN server administrator
Example :

username : testing
password : testing123

After you are successfully connected to openvpn server. Please verify your ip address from this url http://whatismyip.com. If your ip address is your OpenVPN server ip address 208.99.198.*** then you are successfully open a connection to OpenVPN server.

source:http://wowtutorial.org/tutorial/319.html

Install and Configure OpenVPN Server

OpenVPN is a free and open source software application that implements virtual private network (VPN) solutions for creating secure point-to-point or site-to-site connections in routed or bridged configurations and remote access facilities. It uses SSL/TLS security for encryption and is capable of traversing network address translators (NATs) and firewalls. It was written by James Yonan and is published under the GNU General Public License (GPL) [...read more...]

Installing OpenVPN from Zypper Repository:
#zypper in openvpn lzo-devel zlib zlib-devel openssl-devel  openvpn-auth-pam-plugin

Creating a OpenVPN Certificate
#cd  /usr/share/openvpn/easy-rsa/2.0/

#. ./vars

NOTE:
If you run ./clean-all, I will be doing a rm -rf on /usr/share/openvpn/easy-rsa/2.0/keys
#./clean-all

#./build-ca

Generating a 1024 bit RSA private key

Wednesday, April 28, 2010

compile nfs kernel module on gento kernel 2.6.32

configure nfs modules
cd /usr/src/linux && make menuconfig


File systems  --->

[*] Network File Systems  --->

<M>   NFS client support                                        
[*]     NFS client support for NFS version 3

<M>   NFS server support                                        
[*]     NFS server support for NFS version 3


build kernel modules
make modules && make modules_install

load module on-the-fly
modprobe nfs && modprobe nfsd

Add "nfs" and "nfsd" to /etc/modules.autoload.d/kernel-2.6 to have the modules loaded each time you boot.
nano /etc/modules.autoload.d/kernel-2.6


nfs
nfsd


you can edit /etc/modules.autoload.d/kernel-2.4 files, if used kernel 2.4 on the box.

Emerging NFS


Install the nfs-utils package on both the server and the client (while not necessary for basic NFS on the client, it provides some useful features such as locking) with: emerge nfs-utils
emerge nfs-utils

starting nfsd
/etc/init.d/nfs start