jazznuno

Archive for the ‘Just Share’ Category

Setup Postfix Mail Server On CentOS

with 2 comments

# yum install cyrus-sasl cyrus-sasl-devel cyrus-sasl-gsspi cyrus-sasl-md5 cyrus-sasl-plain postfix dovecot

Loaded plugins: fastestmirror
Determining fastest mirrors

lokal                                                                                                                                                               | 2.1 kB     00:00

Setting up Install Process<!–more–>
Package cyrus-sasl-2.1.22-5.el5.i386 already installed and latest version
No package cyrus-sasl-gsspi available.
Package cyrus-sasl-md5-2.1.22-5.el5.i386 already installed and latest version
Package cyrus-sasl-plain-2.1.22-5.el5.i386 already installed and latest version
Resolving Dependencies
—&gt; Running transaction check
—&gt; Package cyrus-sasl-devel.i386 0:2.1.22-5.el5 set to be updated
—&gt; Package dovecot.i386 0:1.0.7-7.el5 set to be updated
—&gt; Processing Dependency: libmysqlclient.so.15 for package: dovecot
—&gt; Processing Dependency: libmysqlclient.so.15(libmysqlclient_15) for package: dovecot
—&gt; Package postfix.i386 2:2.3.3-2.1.el5_2 set to be updated
—&gt; Running transaction check
—&gt; Package mysql.i386 0:5.0.77-3.el5 set to be updated
—&gt; Processing Dependency: perl(DBI) for package: mysql
—&gt; Running transaction check
—&gt; Package perl-DBI.i386 0:1.52-2.el5 set to be updated
—&gt; Finished Dependency Resolution
Dependencies Resolved
=========================================================================================
Package                                             Arch                                Version                                      Repository                                 Size
=========================================================================================

Installing:
cyrus-sasl-devel             i386      2.1.22-5.el5           lokal           1.4 M
dovecot                      i386      1.0.7-7.el5            lokal           1.6 M
postfix                      i386      2:2.3.3-2.1.el5_2      lokal           3.6 M
Installing for dependencies:
mysql                        i386      5.0.77-3.el5           lokal           4.8 M
perl-DBI                     i386      1.52-2.el5             lokal           600 k
Transaction Summary
=========================================================================================
Install      5 Package(s)
Update       0 Package(s)
Remove       0 Package(s)
Total download size: 12 M
Is this ok [y/N]: y
Downloading Packages:
(1/5): perl-DBI-1.52-2.el5.i386.rpm                                    | 600 kB     00:00
(2/5): cyrus-sasl-devel-2.1.22-5.el5.i386.rpm                          | 1.4 MB     00:00
(3/5): dovecot-1.0.7-7.el5.i386.rpm                                | 1.6 MB     00:00
(4/5): postfix-2.3.3-2.1.el5_2.i386.rpm                                | 3.6 MB     00:00
(5/5): mysql-5.0.77-3.el5.i386.rpm                                     | 4.8 MB     00:00
—————————————————————————————–
Total                                              1.1 MB/s |  12 MB     00:11
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing     : perl-DBI                                                      1/5
Installing     : mysql                                             2/5
Installing     : cyrus-sasl-devel                                                   3/5
Installing     : postfix                                                4/5
Installing     : dovecot                                                              5/5
Installed:
cyrus-sasl-devel.i386 0:2.1.22-5.el5
dovecot.i386 0:1.0.7-7.el5
postfix.i386 2:2.3.3-2.1.el5_2

Dependency Installed:
mysql.i386 0:5.0.77-3.el5
perl-DBI.i386 0:1.52-2.el5
Complete!

# postconf -e ‘smtpd_sasl_local_domain =’
# postconf -e ‘smtpd_sasl_auth_enable = yes’
# postconf -e ‘smtpd_sasl_security_option = noanonymous’
# postconf -e ‘broken_sasl_auth_client = yes’
# postconf -e ‘smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination’
# postconf -e ‘inet_interfaces = all’

Edit smtpd.conf
# vi /usr/lib/sasl2/smtpd.conf
pwcheck_method: saslauthd
mect_list: plain login
# mkdir /etc/postfix/ssl
# cd /etc/postfix/ssl/
# openssl genrsa -des3 -rand /etc/hosts -out smtpd.key 1024
216 semi-random bytes loaded
Generating RSA private key, 1024 bit long modulus
…………++++++
………..++++++
e is 65537 (0x10001)
Enter pass phrase for smtpd.key:
Verifying – Enter pass phrase for smtpd.key:
# chmod 600 smtpd.key
# openssl reg -new -key smtpd.key -out smtpd.csr
# openssl req -new -key smtpd.key -out smtpd.csr
Enter pass phrase for smtpd.key:
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter ‘.’, the field will be left blank.
—–
Country Name (2 letter code) [GB]:IN
State or Province Name (full name) [Berkshire]:Jakarta
Locality Name (eg, city) [Newbury]:Kebayoran
Organization Name (eg, company) [My Company Ltd]:Infopratama
Organizational Unit Name (eg, section) []:it
Common Name (eg, your name or your server’s hostname) []:infopratama
Email Address []:admin@suyanto.linux
Please enter the following ‘extra’ attributes
to be sent with your certificate request
A challenge password []:
An optional company name []:infopratama
# openssl x509 -req -days 3650 -in smtpd.csr -signkey smtpd.key -out smtpd.crt
Signature ok
subject=/C=IN/ST=Jakarta/L=Kebayoran/O=Infopratama/OU=it/CN=infopratama/emailAddress=admin@suyanto.linux
Getting Private key
Enter pass phrase for smtpd.key:
# openssl rsa -in smtpd.key -out smtpd.key.unencrypted
Enter pass phrase for smtpd.key:
writing RSA key
# mv -f smtpd.key.unencrypted smtpd.key
# openssl req -new -x509 -extensions v3_ca -keyout cakey.pem -out cacert.pem -days 3650
Generating a 1024 bit RSA private key
..++++++
…………++++++
writing new private key to ‘cakey.pem’
Enter PEM pass phrase:
Verifying – Enter PEM pass phrase:
—–
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter ‘.’, the field will be left blank.
—–
Country Name (2 letter code) [GB]:IN
State or Province Name (full name) [Berkshire]:Jakarta
Locality Name (eg, city) [Newbury]:Kebayoran
Organization Name (eg, company) [My Company Ltd]:Infopratama
Organizational Unit Name (eg, section) []:it
Common Name (eg, your name or your server’s hostname) []:infopratama
Email Address []:admin@suyanto.linux
# postconf -e ‘smtpd_tls_auth_only = no’
# postconf -e ‘smtp_use_tls = yes’
# postconf -e ‘smtpd_use_tls = yes’
# postconf -e ‘smtp_tls_note_starttls_offer = yes’
# postconf -e ‘smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key’
# postconf -e ‘smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.cert’
# postconf -e ‘smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem’
# postconf -e ‘smtpd_tls_loglevel = 1’
# postconf -e ‘smtpd_tls_received_header = yes’
# postconf -e ‘smtpd_tls_session_cache_timeout = 3600s’
# postconf -e ‘tls_random_source = dev:/dev/urandom’

Edit main.cf
# vi /etc/postfix/main.cf
# vi /etc/dovecot.conf
# chkconfig –level 235 postfix on
# chkconfig –level 235 postfix on
# chkconfig –level 235 saslauthd on
# chkconfig –level 235 dovecot on

# /etc/init.d/saslauthd start
Starting saslauthd:                                        [  OK  ]

# /etc/init.d/postfix start
Starting postfix:                                          [  OK  ]

# /etc/init.d/dovecot start
Starting Dovecot Imap:                                     [  OK  ]

[root@thenuno ~]# telnet localhost 25
Trying 127.0.0.1…
Connected to localhost.localdomain (127.0.0.1).
Escape character is ‘^]’.
220 thenuno.suyanto.linux ESMTP Postfix
ehlo localhost
250-thenuno.suyanto.linux
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH DIGEST-MD5 PLAIN LOGIN CRAM-MD5
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
quit
221 2.0.0 Bye
Connection closed by foreign host.

[root@thenuno ~]# yum install squirrelmail
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Setting up Install Process
Resolving Dependencies
—&gt; Running transaction check
—&gt; Package squirrelmail.noarch 0:1.4.8-5.el5.centos.7 set to be updated
—&gt; Processing Dependency: php-mbstring for package: squirrelmail
—&gt; Running transaction check
—&gt; Package php-mbstring.i386 0:5.1.6-23.2.el5_3 set to be updated
—&gt; Finished Dependency Resolution
Dependencies Resolved
=========================================================================================
Package                      Arch      Version                Repository      Size
=========================================================================================
Installing:
squirrelmail                 noarch  1.4.8-5.el5.centos.7   lokal           4.2 M
Installing for dependencies:
php-mbstring                 i386      5.1.6-23.2.el5_3       lokal           994 k
Transaction Summary
=========================================================================================
Install      2 Package(s)
Update       0 Package(s)
Remove       0 Package(s)
Total download size: 5.2 M
Is this ok [y/N]: y
Downloading Packages:
(1/2): php-mbstring-5.1.6-23.2.el5_3.i386.rpm                          | 994 kB     00:00
(2/2): squirrelmail-1.4.8-5.el5.centos.7.noarch.rpm                    | 4.2 MB     00:00
—————————————————————————————–
Total                                                         5.8 MB/s | 5.2 MB     00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing     : php-mbstring                                                        1/2
Installing     : squirrelmail                                                         2/2
Installed:
squirrelmail.noarch 0:1.4.8-5.el5.centos.7
Dependency Installed:
php-mbstring.i386 0:5.1.6-23.2.el5_3
Complete!
# cd /usr/share/squirrelmail/config/
# ./conf.pl
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 off
S   Save data
Q   Quit
Command &gt;&gt; 2
SquirrelMail Configuration : Read: config.php (1.4.0)
———————————————————
Server Settings
General
——-
1.  Domain                 : suyanto.linux
2.  Invert Time            : false
3.  Sendmail or SMTP       : SMTP
A.  Update IMAP Settings   : localhost:143 (dovecot)
B.  Update SMTP Settings   : localhost:25
R   Return to Main Menu
C   Turn color off
S   Save data
Q   Quit
Command &gt;&gt;
Data saved in config.php
Exiting conf.pl.
You might want to test your configuration by browsing to
http://your-squirrelmail-location/src/configtest.php
Happy SquirrelMailing!
[root@thenuno config]# yum install mod_ssl
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Setting up Install Process
Resolving Dependencies
–&gt; Running transaction check
—&gt; Package mod_ssl.i386 1:2.2.3-31.el5.centos set to be updated
–&gt; Processing Dependency: libdistcache.so.1 for package: mod_ssl
–&gt; Processing Dependency: libnal.so.1 for package: mod_ssl
–&gt; Running transaction check
—&gt; Package distcache.i386 0:1.4.5-14.1 set to be updated
–&gt; Finished Dependency Resolution
Dependencies Resolved
=========================================================================================
Package                      Arch      Version                Repository      Size
=========================================================================================
Installing:
mod_ssl                      i386      1:2.2.3-31.el5.centos  lokal           88 k
Installing for dependencies:
distcache                    i386      1.4.5-14.1             lokal           119 k
Transaction Summary
=========================================================================================
Install      2 Package(s)
Update       0 Package(s)
Remove       0 Package(s)
Total download size: 207 k
Is this ok [y/N]: y
Downloading Packages:
(1/2): mod_ssl-2.2.3-31.el5.centos.i386.rpm                            |  88 kB     00:00
(2/2): distcache-1.4.5-14.1.i386.rpm                                   | 119 kB     00:00
—————————————————————————————–
Total                                                         1.0 MB/s | 207 kB     00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing     : distcache                                                            1/2
Installing     : mod_ssl                                                              2/2
nstalled:
mod_ssl.i386 1:2.2.3-31.el5.centos
Dependency Installed:
distcache.i386 0:1.4.5-14.1
Complete!
Tambahkan sebelum vitrualhost pada httpd.conf
# vi /etc/httpd/conf/httpd.conf
RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^/Webmail(.*)$ https://localhost/webmail/$1 [L,R]

Advertisements

Written by jazznuno

March 26, 2011 at 05:22

Posted in Just Share

Cara Mengetahui Type Memory Di Linux

leave a comment »

Untuk mengetahui memory yang ada di CPU kita banyak caranya, anda bisa coba

$ cat /prog/meminfo

Bisa juga dengan lshw, tapi harus install dulu

$ sudo apt-get install lshw

$ sudo lshw

*-memory
description: System Memory

physical id: 1b

slot: System board or motherboard

size: 1GiB

*- bank:2
description: DIMM 533 MHz (1.9 ns)

product: None

vendor: None

physical id: 2

serial: None

slot: A2

size: 1GiB

width: 64 bits

clock: 533MHz (1.9ns)

terlihat bahwa CPU saya terinstall memory DDR 533 1GB lokasinya di bank:2 Read the rest of this entry »

Written by jazznuno

August 27, 2010 at 17:10

Posted in Just Share

Lebih Lanjut Tentang VirtualBox

leave a comment »

Lebih lanjut tentang VirtualBox

Melakukan uji coba kadang membuat kita membutuhkan beberapa Distro Linux OS yang berbeda, mau ga mau kita harus install dari awal.

Tetap jika kita ingin melakukan testing pada 2 distro yang sama misalnya Ubuntu 8.04, kita tidak perlu untuk meng-install dari awal cukup lakukan Cloning pada image Ubuntu tersebut karena jika kita lakukan copy image saja dan merubah nama image itu tidak cukup karena image ubuntu tersebut masih memiliki UUID yang sama

Jalankan perintah list vms untuk melihat list GuestOs yang terinstall di Host kita Read the rest of this entry »

Written by jazznuno

July 25, 2010 at 05:03

Posted in Just Share

My NoteBook Benq S53

with 2 comments

Sudah 3 tahun sejak 2007 saya gunakan laptop Benq S53 laptop ini cukup kuat dan stabil, bahkan saya banyak belajar dari mengandalkan laptop ini.

Ini adalah Spec Benq S53

Name BenQ Joybook S53
Processor Intel Pentium-M 745 1.8GHz
Screen 13” WXGA
RAM 512MB
HDD 60GB
Optical Drive DVD+-RW
Graphics Intel Graphics Media Accelerator 900
Network 10/100 Ethernet, Intel 2200 802.11g Wireless
Other 2 x USB2.0, 1 x Firewire

Saya install dengan Ubuntu dari 7.04 sampai yang terakhir 10.04 semua terdeteksi dengan baik.

Benq S53 saya telah saya upgrade

RAM 512MB ke 2GB

Hardisk 60GB ke 160 GB walaupun kata teknisinya Max 80 Read the rest of this entry »

Written by jazznuno

July 24, 2010 at 12:32

Posted in Just Share

Cara Buka Type File docx Di Open Office 2.4

with one comment

Ternyata ngerasain juga dapet file .docx dari Ms office 2007 “hahaha payah luh buka file gitu aja ga bisa makanya jangan pake Linux”.

Gaterima dengan pelecehan ini langsung aja tanya Mbah Google dan ketemu Link “http://linuxdesk.wordpress.com/2009/08/06/how-to-open-a-docx-file-in-ubuntu-9-04-through-openoffice/

langsung aja

1. Download odf_filter.tar.bz2 di sini

2. Extrack

3. $ sudo tar -xvjf odf_filter.tar.bz2

files/

files/README.txt

files/MOOXFilter_cpp.xcu

files/MOOXTypeDetection.xcu

files/OdfConverter

4. $ cd file/ ( jangan lupa tutup dulu aplikasi open office )

5. $ sudo cp OdfConverter /usr/lib/openoffice/program

6. $ sudo cp MOOXFilter_cpp.xcu /usr/lib/openoffice/share/registry/modules/org/openoffice/TypeDetection/Filter

7. $ sudo cp MOOXTypeDetection.xcu /usr/lib/openoffice/share/registry/modules/org/openoffice/TypeDetection/Types/

Sekarang buka lagi open office dan selamat menikmati

Written by jazznuno

June 23, 2010 at 10:48

Posted in Just Share

Mengenal Ubuntu Lebih Dekat

leave a comment »

Dari Distro Linux yang pernah di coba diantaranya Mandriva, Opensuse, Fedora, Centos, Ubuntu lah distro pilihan untuk kebutuhan sehari-hari. Boleh percaya atau tidak memilih Distro Linux seperti memilih istri, masing-masing distro memiliki keunikan dan kelebihan tersendiri, langsung aja

Ubuntu adalah sistem operasi yang dikembangkan komunitas yang cocok  untuk laptop, desktop dan server. Kita bisa menggunakannya untuk keperluan di rumah, di sekolah atau di tempat kerja, Ubuntu berisi aplikasi yang sering anda butuhkan, dari pengolah kata dan aplikasi email, sampai perangkat lunak server web dan tool pemrograman.

Ubuntu” berasal dari bahasa kuno Afrika, yang berarti “rasa perikemanusian terhadap sesama manusia”. Ubuntu juga bisa berarti “aku adalah aku karena keberadaan kita semua”.

Ubuntu akan selalu bebas biaya. Kita tidak membayar biaya lisensi apapun. kita dapat men-download, menggunakan dan berbagi Ubuntu dengan teman, keluarga, sekolah atau bisnis apa-apa. bahkan anda dapat meminta CD Ubuntu Asli, gratis yang langsung di kirim ke tempat anda,…eh bayar deh tapi cuma Rp 3000 aja  cek ke sini CD Ubuntu Gratis Read the rest of this entry »

Written by jazznuno

November 23, 2009 at 06:01

Posted in Just Share

Linux Semakin Mudah ( Sebuah Kemunduran atau Sebuah Kemajuan)

with 6 comments

Saat pertama kali kenal Linux saya langsung suka dengan OS ini ga tau kenapa. tapi pada saat itu saya bekerja di bagian training dan termasuk juga untuk mengajarkan jaringan komputer.

Saat itu banyak keluhan komputer kena virus, langsung aja tanya om google tentang Linux dan akhirnya saya mampir di lembaga kursus  dan di sana saya belajar Linux.

Distro pertama yang saya coba adalah Mandriva dan di sana saya di bawa untuk belajar install server.
Mandriva distro yang bagus saya langsung suka tetapi karena mengunakan desktop KDE saya kurang sreg dan akhirnya saya beralih ke Fedora Core 4 yang menggunakan desktop Gnome.

Sampai sekarang kalo urusan Instal Server saya gunakan Fedora, tetapi untuk urusan Desktop saya pilih Ubuntu karena dukungan komunitas yang banyak dan juga dukungan Cononical yang sering bagi-bagi CD Ubuntu gratis Read the rest of this entry »

Written by jazznuno

April 3, 2009 at 19:11

Posted in Just Share