May 10

Guide: Fully uninstall KDE

May 10, 2008 · Filed Under Ubuntu · 1 Comment 

If you install KDE with aptitude, use below method to remove:

$sudo aptitude remove kubuntu-desktop

or

$sudo aptitude remove xubuntu-desktop

If you are using apt-get or synaptic to install, follow as below:

Read more

May 10

Cant’s set Super L + other key in Keyboard Shortcuts setting?

May 10, 2008 · Filed Under Ubuntu · 1 Comment 

I migrated myself from Vista to Ubuntu, and honestly speaking, i love it more than Vista after i use it for a month. But one thing that i don’t like is the shortcut key to hide and show desktop. Oridinary in Vista was using Super L + D whereas for Ubuntu it use Ctrl+Alt+D. So i decide to configure the shortcut to be similar like the behaviour in Vista, and then i realize that i can’t combine Super L key with other key in the settings. I start googling for the answer, and of cause i did found out the solution or else i wont be writing this post just to ask for help. So here is the solution to share with those out there who have the same problem as me.

  1. Goto System > Preferences > Keyboard
  2. Goto Layouts tab
  3. Click Layout Options… button
  4. Expand Alt/Win Behavior
  5. Check on Super is mapped to the Win-keys (default)
  6. Click on close button
  7. Goto System > Preferences > Keyboard Shortcuts

Now you are able to set your shortcut with the combination of Super L and other keys. It should come out as Mod4+CHOSENKEY.

May 09

Enable logwatch for your server

May 9, 2008 · Filed Under security · Comment 

Logwatch is a customizable log analysis system, it creates a analysis report base on the are that you specify. The report will be send to your email address everyday and the report has been proceesed. As mention in the title, we are enabling logwatch but not installing logwatch here. Logwatch is already installed on most cPanel servers, so i will only covered for those who have Logwatch ready in the server.

First thing to do is SSH into your server as root.

And then nano/pico/vi /etc/log.d/conf/logwatch.conf

Seek for Mailto = root

change it to

Read more

May 09

Installing BFD(Brute Force Detector)

May 9, 2008 · Filed Under Linux, security · 1 Comment 

Previously i have posted a tutorial on “Setup firewall for your Linux Server”, now as promised i deliver the tutorial for setting Brute Force Detector. But please ensure that you have already installed APF because you need APF in BFD. For those who have not yet installed APF, you can go to this page “Setup firewall for your Linux Server”.

So why do we need APF in BFD? BFD will detect for suspicious activity like attempts of failed login and then insert their IP into APF deny hosts list, so that they will be totally lock out from the server.

Now we start for the installing.

Read more

May 09

Setup firewall for your Linux Server

May 9, 2008 · Filed Under Linux · Comment 

Firewall is a wall that can protect your server againts FIRE DISASTER! ….just kidding hehe.

Ok! Firewall work in the way that it let you create rules for packet filtering and NAT. Still blur on what im talking about? Well nevermind, i know many people don’t understand how it works but they do really need it to protect their server. Actually you can call firewall the security guard of your server, you can order “him” to disallow some IP from visiting your whole server or only for certain services. Example, you allow all IP to your Apache service and allow only one of your OWN house/office IP to access the FTP Service. I hope you caught an image on how it works right now, the next i will teach you how to setup the firewall.

Read more

May 09

Restart Apache Server without affecting existing connections

May 9, 2008 · Filed Under Apache · Comment 

Sometimes you want to restart your Apache server after changing some configuration in httpd.conf, but you have few hundred clients currently downloading files from your server and you don’t want to disconnect the. You can use the syntax below:

Code:

$ service restart graceful
or
$ /etc/init.d/httpd graceful

This will gracefully restart your Apache with new configuration without affecting your client’s connections.

May 09

[Javascript] Setting cursor position to the end of text field

May 9, 2008 · Filed Under JavaScript · Comment 

Usually javascript to set cursor position to the end of a text field? I bet lots of people looking for workaround on this. The trick is actually simple but yet so many people never though of it. So to get this done, just do set the text vield value before you focus on the text field, here some example code:

let say you want to set a value in the a text field after the page just finish loaded and make the cursor start at the end of that text field.

Code:

<!– in the HEAD –>
<script language=”JavaScripts”>
function setTextField(){
document.myForm.myTextFieldName.value = “My name is “;
document.myForm.myTextFieldName.focus();
}
</script>

<!– in the BODY TAG–>

<body onLoad=”setTextField()”>

<!– in the FORM –>

<form name=”myForm”>
<input type=”text” name=”myTextFieldName” value=””>
</form>

Thats all you need!

May 09

Install DomainKeys on cPanel

May 9, 2008 · Filed Under cPanel · Comment 

What are DomainKeys?
Well you will find more information on this topic at: http://antispam.yahoo.com/domainkeys

/usr/local/cpanel/bin/domain_keys_installer username

Where username is the cPanel user.

for i in `ls /var/cpanel/users` ;do /usr/local/cpanel/bin/domain_keys_installer $i ;done

Ok, but what about if we want that every new created account to have DomainKeys installed. Well this is a bit harder to do.
I recommend editing /scripts/postwwwacct and adding:

Read more

May 09

HowTo backup or transfer cPanel Account in CommandLine

May 9, 2008 · Filed Under cPanel · Comment 

Sometimes i hate to login to WHM to do account transfer, not for small size account but i super duper HATE when the account is few hundred MB. When i get DISCONNECTED, everything is gone and have to restart the transfer again! So i search for way to do transfer in CommandLine and finally i got it. Using SSH + screen. What is screen? Click here to understand more about screen .

Read more

May 09

HowTo use GNU Screen in Linux

May 9, 2008 · Filed Under Linux · Comment 

GNU Screen is a terminal multiplexer, it let you create as many number of screen you want in your favourite command shell. Usually i use screen to do installation which required long hours, so that if i get disconnected from my remote server, i can still connect and attach back to the installation screen once i get online. And the installation will still continue in the screen that you created even if you disconnected yourself from the server. If you are doing some installation in the server without Screen, and if you disconnected half way in the installation, the installation will stop and sometimes it might crash your server too.

Don’t worry, you will be familiar with Screen, it looks like normal Shell that you are using all the time, it just another screen that live in the server. Some Linux Distro comes with Screen installed, to make sure if your server have Screen installed, SSH into your server and type in:

Read more

« Previous PageNext Page »