14
August , 2010
Saturday

Did You connected with zall?

the great website for most popular information, dedicated all free, trusted and up to date

451 Press, LLC is always looking for bright, talented writers who want to have their ...
I write this post not to bragging. Blogging gives me a lot of lessons ...
Tuhan memberi kita dua kaki untuk berjalan Dua tangan untuk memegang Dua mata untuk melihat Tapi mengapa tuhan ...
Please do not trust these sites under any circumstances and please do not give Your ...
Cheat: Unlock All Characters Options > Cheat > NoHolds SSX The ever popular SSX is now in ...
Performancing.com has started a new ad network call Performancing Ads. Performancing Ads is an ad ...
kita bentangkan telapak tangan kita bentangkan sebuah harapan Seorang lelaki dan seorang perempuan Dalam sketsa sederhana Dalam warna yang ...
Memang cinta adalah anugerah Ilahi Tapi apakah aku tak pantas untuk mendampinginya? Apakah hati dan cintaku ini ...
Linux command to kill nobody and user process Kill nobody process root@ns1.e-padi.com [~]# ps aux | grep ...
Disabling system restore will speed up your computer significantly, most people think that system restore ...

Archive for the ‘Tutorials’ Category

Expert linux unix commands list

Posted by Afrizal On April - 27 - 2010 |2 COMMENTS | 10 views

Linux command to kill nobody and user process
Kill nobody process
root@ns1.e-padi.com [~]# ps aux | grep nobody | awk ‘{print $2}’| xargs kill -9
Kill user process
root@ns1.e-padi.com [~]# ps aux | grep apache | awk ‘{print $2}’ | xargs kill -9
Cpanel : update scripts
Just do one thing run the following command on shell.
root@ns1.e-padi.com [~]# rsync -av rsync://rsync.cpanel.net/scripts /script
Cpanel : Mysql Upgrade
1. Update config
2. root@ns1.e-padi.com [~]# /scripts/UPCP
3. Select mysql 5 from the tweak settings and run the command from the shell to update mysql.
4. root@ns1.e-padi.com [~]# /scripts/mysqlup –force
5. After this run root@ns1.e-padi.com [~]# /scripts/easyapache to recompile apache and php to higher version.
Cpanel : Mod_fcgi installation
Mod_fcgi installation on cpanel.
root@ns1.e-padi.com [~]# cd /usr/local/src/
root@ns1.e-padi.com [~]# wget ftp.ruby-lang.org/pub/ruby/ruby-1.8.2.tar.gz rubyforge.org/frs/download.php/3700/rubygems-0.8.11.tgz fastcgi.com/dist/fcgi-2.4.0.tar.gz fastcgi.com/dist/mod_fastcgi-2.4.2.tar.gz
root@ns1.e-padi.com [~]# tar zxf ruby-1.8.2.tar.gz
root@ns1.e-padi.com [~]# tar zxf rubygems-0.8.11.tgz
root@ns1.e-padi.com [~]# tar zxf fcgi-2.4.0.tar.gz
root@ns1.e-padi.com [~]# tar zxf mod_fastcgi-2.4.2.tar.gz
root@ns1.e-padi.com [~]# cd ruby-1.8.2
root@ns1.e-padi.com [~]# ./configure && make && make install
root@ns1.e-padi.com [~]# cd ..
root@ns1.e-padi.com [~]# cd rubygems-0.8.10
root@ns1.e-padi.com [~]# ruby setup.rb
root@ns1.e-padi.com [~]# cd ..
root@ns1.e-padi.com [~]# gem install rails
root@ns1.e-padi.com [~]# cd fcgi-2.4.0
root@ns1.e-padi.com [~]# ./configure && make && make install
root@ns1.e-padi.com [~]# cd ..
root@ns1.e-padi.com [~]# cd mod_fastcgi-2.4.2
root@ns1.e-padi.com [~]# /usr/local/apache/bin/apxs -o mod_fastcgi.so -c *.c
root@ns1.e-padi.com [~]# /usr/local/apache/bin/apxs -i -a -n fastcgi mod_fastcgi.so
root@ns1.e-padi.com [~]# cd ..
root@ns1.e-padi.com [~]# mkdir /tmp/fcgi_ipc/
root@ns1.e-padi.com [~]# mkdir /tmp/fcgi_ipc/dynamic/
root@ns1.e-padi.com [~]# chmod -R 777 /tmp/fcgi_ipc/
root@ns1.e-padi.com [~]# cat <> ~/httpd.conf
FastCgiIpcDir /tmp/fcgi_ipc/
AddHandler fastcgi-script .fcgi
FastCgiWrapper On
EOT
root@ns1.e-padi.com [~]# gem install fcgi
root@ns1.e-padi.com [~]# service httpd restart
How to change port of SSH shell
To force ssh to run on a non standard port, use the following steps:
root@ns1.e-padi.com [~]# vi /etc/ssh/sshd_config
2. Browse to the following line:
# Port 22
3. Uncomment and edit this line to reflect the new port.
Port 2255 (this can be set to any non standard port)
4. Save and quit the file, and restart ssh.
root@ns1.e-padi.com [~]# /etc/init.d/ssh restart
5. If you are connected to the server via ssh on port 22, your connection will drop and you will need to reconnect using the new port.
If you have apf installed, Please add the port in apf
root@ns1.e-padi.com [~]# nano /etc/apf/conf.apf
For tcp ports
# Common ingress (inbound) TCP ports
CHMOD commands File permissions on Linux
Use the chmod command to set file permissions.
The chmod command uses a three-digit code as an argument.
The three digits of the chmod code set permissions for these groups in this order:
1. Owner (you)
2. Group (a group of other users that you set up)
3. World (anyone else browsing around on the file system)
Each digit of this code sets permissions for one of these groups as follows. Read is 4. Write is 2. Execute is 1.
The sums of these numbers give combinations of these permissions:
* 0 = no permissions whatsoever; this person cannot read, write, or execute the file
* 1 = execute only
* 2 = write only
* 3 = write and execute (1+2)
* 4 = read only
* 5 = read and execute (4+1)
* 6 = read and write (4+2)
* 7 = read and write and execute (4+2+1)
For example Chmod commands on file e-padi.txt (use wildcards to include more files)
Command Purpose
chmod 700 e-padi.txt Only you can read, write to, or execute apple.txt
chmod 777 e-padi.txt Everybody can read, write to, or execute apple.txt
chmod 744 e-padi.txt Only you can read, write to, or execute apple.txt Everybody can read apple.txt;
chmod 444 e-padi.txt You can only read apple.txt, as everyone else.
How to Detect File Permissions
You can use the ls command with the -l option to show the file permissions set. For example, for apple.txt, I can do this:
root@ns1.e-padi.com [~]# ls -l apple.txt
-rwxr–r–   1 december december       81 Feb 12 12:45 e-padi.txt
root@ns1.e-padi.com [~]#
The sequence -rwxr–r– tells the permissions set for the file apple.txt. The first – tells that apple.txt is a file. The next three letters, rwx, show that the owner has read, write, and execute permissions. Then the next three symbols, r–, show that the group permissions are read only. The final three symbols, r–, show that the world permissions are read only.

How to Flush DNS on Windows, Mac OS, and Linux

Posted by Afrizal On July - 29 - 2008 |5 COMMENTS | 3,047 views

Flush DNS function is to make a change on the computer to be accomodate change information that some settings changed or modificated at Domain, NameServer, DNS And the Website not yet seen for newest design or data data after updated although we have Refreshed Browser few times.

The DNS Modification conducted for example, a domain have been expired so the DNS domain changed ton DNS default from domain registrar (hosting provider). To change NameServer, actually need maximum 48 hours to resolved the domain to new NameServer (we call propagation). If we are doing WHOIS domain before propagation time, we will view the old information data, so FLush DNS is needed to resolving this case. By doing Flush DNS, we don’t have to wait until 48 hours, just few minutes, that great!

Conclusion:
Flush DNS will be deleting old record data regarding Domain information and NameServer record in Your computer Chache so that the new update is seen. Not data that saved in the computer chache.

How to Flush DNS?
Flush DNS in Microsoft Windows Start -> Run -> type: cmd After command prompt showing, type: ipconfig /flushdns Example: C:\>ipconfig /flushdns Windows IP Configuration Successfully flushed the DNS Resolver Cache.

Flush DNS in Mac OSX Leopard bash-2.05a$ dnscacheutil -flushcache If You are using Mac OSX versions 10.5.1 or older, You have use command: bash-2.05a$ lookupd -flushcache Watch Most Products review by us.

Flush DNS in Linux
Flush DNS in Linux machine, You have to restart nscd daemon.
Command to restart nscd daemon:
/etc/rc.d/init.d/nscd restart

Good Luck!

Install Network Printer Linksys (Print Server)

Posted by Afrizal On December - 25 - 2005 |ADD COMMENTS | 184 views

Malam ini pengennya gak tidur, mau belajar ampe pagi (kebiasaan lama mulai lagi nich). Udah 1 minggu aku penasaran banget ama yang namanya Printer Network (LinkSys), maklum blon pernah megang sih… 2 hari yg lalu aku udah coba install sesuai dengan petunjuk dari Manual Installation CD, tapi kayaknya lebih rumit dari yang aku bayangkan. Trus secara gak sengaja, aku dengar kawan dikantor ngomong, untuk printer network bisa pake istilah Nembak IP, jadi port di printer nya diubah menjadi Port TCP/IP yang dipake oleh printer dalam network. Dikantorku yang installasi jaringan Wireless nya sering ngadat, dan kadang2 sering juga berubah sendiri WEP Key nya, jadi agak sulit bagiku untuk mengetahui IP yang dipake oleh printer yang sedang aktif dalam Network sekarang.
Untuk itu, aku punya beberapa tips untuk ngatasi masalah seperti ini, simak yach:

1. Tekan tombol reset di PrintServer nya, tahan sebentar sampai lampu LED nya berkedip, ntar pasti keluar Info dari printer tersebut
2. Pada info yg dikeluarkan oleh printer sekarang, catat Nomor IP nya
3. Install Driver Printer tersebut di komp yg ingin diinstall printserver
4. Setelah sukses install Driver, pilih Properties printer (Start > Setting > Printers and Faxes > Klik kanan nama printer yg baru diinstall > Pilih Properties>
5. Pilih menu Tab Ports
6. Add Port…
7. Pilih Standard TCP/IP Port
8. New Port…
9. Next…
10. Masukkan IP Address printer yg mau diinstall (coba liat kertas yg diprint tadi)
11. Finish

Kalo udah berhasil, ntar keluar info Printer yg baru diinstall di control panel nya.
Coba test print…

Gitu aja deh untuk kesempatan ini, lain kali disambung lagi dengan artikel yg baru dan lebih menarik (menurutku dan sebatas kemampuanku).

Get Adobe Flash playerPlugin by wpburn.com wordpress themes

Recent Comments

I blog about anything new, Dedicated all for free, Put anything into the words, Share with You what I know. I write anything that I find interesting

Recent Comments

How to Exctract / Export PDF file to Word Doc, .doc

On Nov-16-2008
Reported by Afrizal

10 Biggest Mistakes In Writing My Blog

On Feb-17-2009
Reported by Afrizal

First Salary

On Jun-4-2005
Reported by Afrizal

Perubahan (sebuah firasat)

On Feb-8-2006
Reported by Afrizal