14 May 2008 @ 6:26 PM 

Dengan metode authentikasi ini kita bisa mengenkripsi password login kita ke ssh,caranya yaitu :

Generate dulu public key untuk protocol ssh ato ketik perintah sbb berikut

[dedi@office-dedi ~]$ ssh-keygen -t dsa
Generating public/private dsa key pair.
Enter file in which to save the key (/home/dedi/.ssh/id_dsa):
Created directory ‘/home/dedi/.ssh’.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/dedi/.ssh/id_dsa.
Your public key has been saved in /home/dedi/.ssh/id_dsa.pub.
The key fingerprint is:
81:3a:4f:f7:7b:9d:e5:11:6f:e6:4e:d8:09:b0:35:a6 dedi@office-dedi.ardhosting.com
Nah kalau sudah sampai di sini silahkan check di home dir mu, [dedi@office-dedi ~]$ ls -alh .ssh/id_*
-rw——- 1 dedi root 736 2008-05-13 13:54 .ssh/id_dsa

-rw-r–r– 1 dedi root 621 2008-05-13 13:54 .ssh/id_dsa.pub

id_dsa adalah private key ,dan id_dsa.pub adalah public key-nya, klo sudah ketemu ada file itu di atas brati sudah benar, langkah selanjutnya menuju meng copy public key ke remote server caranya dengan ketik perintah ini $cat .ssh/id_dsa.pub | ssh -l user remote_machine “cat >> .ssh/authorized_keys”

keterangan di atas ganti user = ganti dengan username mu untuk login ke server , dan remote machine isi dengan ip atau hostname servermu.

kemudian selanjutnya login ke servermu lewat shell/ssh periksa direktori .ssh/ apakah sudah benar permission nya menjadi read only ? atau bisa diketik perintah $chmod -R og= $HOME/ .ssh dengan perintah tersebut akan mereplace permission file yg ada di dalam direktory .ssh/ menjadi read only.

Ok welldone beres deh… tinggal coba praktek login menggunakan public key

[dedi@office-dedi ~]$ user@hostname server / ip server
Enter passphrase for key ‘/home/dedi/.ssh/id_dsa’:
Last login: Thu May 15 00:04:11 2008 from 124.15x.xxx.xx
[dedi@hostname-server ~]$

it works…hurray…hurray….hurray….hehe… so simply right ?

Sudah jalan semuanya dengan normal, nah sekarang coba akalin ahh…bikin bash script agar klo login ga perlu panjang lebar ngetik username@hostname-server hohoho ribet euyy

1. bikin file apa aja lalu edit caranya : [dedi@office-dedi ~]$ touch contoh | vi contoh
2. lalu sisipkan saja bash sekrip nya

#!/bin/bash
ssh dedi@hostnameserver-nya

3. save hasil pengeditan tadi, lalu ganti permission file nya agar bisa di eksekusi ketik command $chmod +x contoh

4. beres deh… klo mau jalanin itu file tinggal ketik ./contoh langsung deh dimintain passphrase untuk dsa tadi :D simple kan ? atau klo mo simple tinggal copy saja file contoh itu tadi ke direktori /usr/bin/ jadi lebih simple klo mo running/panggil file contoh tinggal ketik perintah contoh

hanya sedikit tips…saja…oh iya ada tambahan lagi, ketika tadi generate public key itu bisa tanpa diisikan passphrase atau tinggal ketik enter, namun itu tidak jadi masalah jika memasukkan passphrase lagi, supaya lebih aman tentunya :) nah sedikit tips tambahan lagi yg saya sebutkan tadi, ini bagi siapa aja yg udah terlanjur memasukkan passphrase waktu generate public key, bisa diakalin agar tidak memasukkan password dan passphrase lagi dengan cara :

$eval $(ssh-agent)
$ssh-add ~/.ssh/id_dsa
Enter passphrase for key ‘/home/user/.ssh/id_dsa’:
Identity added: /home/user/.ssh/id_dsa (/home/user/.ssh/id_dsa)
$
$ssh-add -l user hostnameserver
$ssh -v user@hostnameserver
….
$exit
$ssh user@hostnameserver
$
Well… thats enough for today…

Tags Tags: , , , , , , , , , , ,
Categories: Celoteh Harian, Reviews
Posted By: dedi
Last Edit: 14 May 2008 @ 06 33 PM

E-mailPermalinkComments (2)

 13 May 2008 @ 2:39 PM 

On a cPanel server, if you need to import a SQL file into a database – here is the command to get this done:

mysql cpanelusername_database < sqlfilename.sql

And, if you want to export the database to a sql file – the command to do this is:

mysqldump cpanelusername_datbase > databasename.sql

That’s it!

Tags Tags: , , , , ,
Categories: Celoteh Harian, Reviews
Posted By: dedi
Last Edit: 13 May 2008 @ 02 39 PM

E-mailPermalinkComments (0)

 28 Apr 2008 @ 6:39 PM 

Install unrar command

Under Debian Linux, you need to type apt-get as follows to install unrar program:

# apt-get install unrar

If you are using Fedora core Linux then use yum command as follows :

# yum install unrar

If you are using FreeBSD, use:

# pkg_add -v -r unrar

If any of above, methods is not working for you, download binary package from official rarlab site:

$ cd /tmp

$ wget http://www.rarlab.com/rar/rarlinux-3.6.0.tar.gz

Untar file

$ tar -zxvf rarlinux-3.6.0.tar.gz

Both unrar and rar commands are located in rar sub-directory. Just go to rar directory:

$ cd rar

$ ./unrar

Now copy rar and unrar to /bin directory:

# cp rar unrar /bin

How to use unrar

unrar command supports various options below are common options that you need to use everyday.

Task: To open rar (unpack) file in current directory type command:

$ unrar e file.rar

Please note that replace file.rar filename with your actual filename.

Task: List (l) file inside rar archive:

$ unrar l file.rar

Task: To extract (x) files with full path type command:

$ unrar x file.rar

(D) To test (t) integrity of archive, file type command:

$ unrar t file.rar

Tags Tags: , , , , ,
Categories: Celoteh Harian, Reviews
Posted By: dedi
Last Edit: 28 Apr 2008 @ 06 42 PM

E-mailPermalinkComments (5)

The phpMyadmin errror “#2002 - The server is not responding (or the local MySQL server’s socket is not correctly configured)” occurs due to many reasons.

1. First check whether mysql is working in the server or not.

2, Check whether there is a symbolic link from mysql.sock to /tmp. If not, create a symlink between /var/lib/mysql/mysql.sock and /tmp/mysql.sock.
~~~~~~~~~
ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock
~~~~~~~~~

3. If this doesn’t fix the issue check the file: /usr/local/cpanel/base/3rdparty/phpMyAdmin/config.inc.php and make sure the entries are like this:
~~~~~~~~~~~~~~~~
$cfg['Servers'][$i]['socket'] = ‘/var/lib/mysql/mysql.sock’;
$cfg['Servers'][$i]['connect_type'] = ’socket’;
~~~~~~~~~~~~~~~~~

Hope these will help u……

Tags Tags: , , , , , , , , , , ,
Categories: Celoteh Harian, Reviews
Posted By: dedi
Last Edit: 28 Apr 2008 @ 06 30 AM

E-mailPermalinkComments (1)

If you are getting

php: /usr/lib/libmysqlclient.so.14: version `libmysqlclient_14? not found (required by php)

Rebuild your php.
/scripts/easyapache
/scripts/mysqlup –force

That should solve your problem.

That seems to be a common suggestion, but I fail to see how it could ever fix it as the PHP in question being used is cPanel’s backend PHP and not the one used with Apache. At any rate, I caught a lucky break; I replaced /usr/lib/mysql/libmysqlclient.so.14 with /usr/lib/cpanel/libmysqlclient.so.14, re-ran ldconfig, and now it’s working. It hasn’t seemed to have any adverse effect on anything so who knows what the problem is with the one supplied in /usr/lib/mysql.

it sounds like you may be missing mysql-devel.
try “yum install mysql-devel”. That should install any missing mysql libraries.

Cheers!

Tags Tags: , ,
Categories: Celoteh Harian, Reviews
Posted By: dedi
Last Edit: 25 Apr 2008 @ 05 18 PM

E-mailPermalinkComments (0)

 25 Apr 2008 @ 3:48 PM 

my cool desktop

Sedikit demi sedikit, akhirnya berubah mulai sk utak atik linux, dengan implementasikan pc kerja pake linux distro FEDORA 8 , wah lumayan ribet juga ternyata, awalnya udah agak drop, tapi setelah dicoba coba cukup fun juga euy.. hahaa..abisnya keren abis itu kaya gambar di atas, yes that was my new desktop lah euy… ahahaa

yah pikirku mungkin pada awal kebiasaan pake windows kali yah, simple klo mo pake ¨remote desktop connection¨ Namun, di sini woooww… tampilan desktop baru ndak takut euyyy

it? very simple how to install RDESKTOP di FEDORA 8 ini…..

1. masuk ke terminal dengan user root,

2. ketik [yum install rdesktop]

3. setelah selesai install langsung deh jalanin rdesktop dari terminal

rdesktop -u [username] -p [password] -g [resolusi] [hostname/namadomain]

well done….beres dehh… bisa ngeremote serper windows dari unix :D

nah daripada susah klo ngeremote musti nulis segitu panjang command nya mendingan bikin script nya

#!/bin/bash
rdesktop -u [username] -p [password] -g [resolusi] [hostname/namadomain]

nah udah tinggal bikin file lalu, masukkan script di atas, chown +x lalu panggil script nya ./namafilescriptmu beres dahhh, mau simple lagi ya tinggal copy saja script yg kmu simpen tadi ke /usr/bin setiap mau make rdesktop tinggal ketik aja nama file nya beres, and simple kan? hehe… oh iya skedar catatan saja resolusi asli untuk RDESKTOP itu 800×600 :D jadi harap di settting ndiri yakk :D

Tags Tags: , , , ,
Categories: Celoteh Harian, Reviews
Posted By: dedi
Last Edit: 25 Apr 2008 @ 03 58 PM

E-mailPermalinkComments (0)

 20 Apr 2008 @ 11:05 AM 

Cpanel/WHM sometimes has problems with the user quota files causing all users accounts to have unlimited disk space available or 0 megs of disk space in use. This obviously confuses your customers and doesn’t show a real representation of actual disk space being used by your clients. This guide will take you through fixing any quota issues with Cpanel manually or automated.

Common reasons for quota problems
- There are files owned by the same user elsewhere on the server
- The backup directory is being counted towards the users disk quota
- Extra log files are being counted towards the users quota
- Cpanel was just updated and the quotas are now unlimited

Quick Fix - an easy way to fix quota issues

Step 1. Log into your server through SSH as the root user.

Step 2. Run the following command
/scripts/fixquotas

Advanced Fix - other reasons quotas are not working

Step 1. Find the user account where the quotas are incorrect and login to your server in SSH as root.

Step 2. Go to the users folder and check their disk space being used.
cd /home/username
du -h or try du -hs

Step 3. Check /etc/passwd and /etc/shadow to make sure there is no weirdness where the username shows up multiple times.

Step 4. Try finding other files owned by the user.
find -user username | more
This will list all files owned by this user that could be affecting the quota reported by Cpanel.

Step 5. Uncompressed backups can cause quota problems, ensure your backups are compressed in the WHM backup options.

Step 6. After your determine the source of the files and remove them then run /scripts/fixquotas

Tags Tags: , ,
Categories: Reviews
Posted By: dedi
Last Edit: 20 Apr 2008 @ 11 22 AM

E-mailPermalinkComments (0)

\/ More Options ...
Change Theme...
  • Role »
  • Posts »
  • Comments »
Change Theme...
  • VoidVoid (Default)
  • LifeLife
  • EarthEarth
  • WindWind
  • WaterWater
  • FireFire
  • LiteLightweight
  • No Child Pages...
  • No Child Pages...
  • No Child Pages...