Posted Thu, 03/07/2013 - 07:57 by sentono
Sometime if we didn't properly shutdown a server that running linux, it will cause a crash for the filesystem.
We need a tool that able to repair it immediately, the tool is FSCK or file system consistency check.
Below is the fsck command :
Usage: fsck [-sACVRTNP] [-t fs-optlist] [filesystem] [fs-specific-options]
Example :
I have a drive /home or /dev/sda3
Then the next step is we need a root access to run the command.
Posted Wed, 11/07/2012 - 21:15 by sentono
Last Week i want to moving a large sites from one server to a new server.
There is a few method to moving all websites content to a brand new server,
First we can using RSYNC, FTP and WGET
In this tutorial i want to using WGET that will moved all sites content in a single line using FTP protocol
We need to prepare a FTP Login from an Old Server that currently host the websites
example :
ip new server :10.10.10.10
user : new
pass : newpassword123
Posted Mon, 09/03/2012 - 06:37 by sentono
When i want to upgrade all packages using portmaster to the latest packages
The portmaster shows me something like below :
===> pkgconf-0.8.5 conflicts with installed package(s):
pkg-config-0.25_1
They install files into the same place.
Please remove them first with pkg_delete(1).
*** Error code 1
Stop in /usr/ports/devel/pkgconf.
To solved this problem , We can just fixed it using pkg_delete
Posted Fri, 07/20/2012 - 21:38 by sentono
There is another way to using ssl with apache 2.x
The common solution is using OpenSSL with Apache 2.x
But right now i trying to get Apache 2.x to work with mod_gnutls
FYI, GnuTLS support TLS 1.2 and TLS 1.1 that also supported by OpenSSL
But GnuTLS will not supported SSL 2.0
We need to prepare anything related to GnuTLS to work with Apache 2.x
First we need to install those packages below :
Login as Root
1. GnuMP
#mkdir /root/temp
#cd /root/temp
Posted Mon, 06/11/2012 - 06:19 by sentono
What is AWStats ?
AWStats is a web statistics and log analyzer which create a statistics reports based on rich data from apache or server logs.
First We need to install AWStats in FreeBSD server
- Login into the FreeBSD server using SSH and root access
# cd /usr/ports/www/awstats
# make
# make install
# make clean
After AWStats is installed on the server we will need to configure our apache webserver.
Usually if we are installed Apache from ports then the apache config files will be stored in
/usr/local/etc/apache22/httpd.conf
Posted Fri, 06/08/2012 - 05:07 by sentono
Today, i trying to dump my database but when the dump process begin,
MySQL shows error like below :
Example :
root@rainforest# mysqldump -u root -p mypassword --opt sampledb > backupdb.sql
mysqldump: Got error: 1016: Can't open file: './sampledb/xxx.frm' (errno: 24) when using LOCK TABLES
root@rainforest#
So after googling a way to dump it without any hassle
root@rainforest# mysqldump -u root -p mypassword --opt sampledb --lock-tables=fales > backupdb.sql
From the command above, i can dump my backupdb without any problem
Posted Tue, 05/15/2012 - 07:21 by sentono
Here come to my attention when i want to automatically have my new linux/unix users to change the password when they login into the server.
Login into your server with root access
type chage command :
#chage -d 0 <username>
example i have a username : sentono
#chage -d 0 sentono
-d mean : we will force user to change password when they login into the server for the first time
Posted Sun, 05/06/2012 - 05:25 by sentono
First, we need to know what is NFS ?
NFS is a network file system something like a distributed file system protocol that allowing user on a client computer to access files over network.
For Example : we have few NFS server here and we want to know
how to see all exported file system from unix server using a command line linux
We can using showmount command to see the mount information from NFS server.
Example we have a NFS server named : media10 and the ip address : 10.100.100.1
Posted Fri, 01/06/2012 - 06:41 by sentono
There are so many tools that able to check the hidden process and port, the tools are rootkits/lkms/unhide etc.
In this tutorial i will discuss something more simple to use and the tools is UNHIDE.
Unhide is a tool to find hidden processes and TCP/UDP ports by rootkits / LKMs or by another hidden technique. This tools works under both Linux / Unix, and MS-Windows operating systems.
It detects hidden processes using three techniques:
The proc technique consists of comparing /proc with the output of /bin/ps.
The sys technique consists of comparing information gathered from /bin/ps with information gathered from system calls.
The brute technique consists of bruteforcing the all process IDs. This technique is only available on Linux 2.6 kernels.
Posted Sun, 10/23/2011 - 22:28 by sentono
How To Unlocked Brute Force System Cpanel
Today i just updated my cpanel server to the latest version but the strange thing is i misstyped my email password account few times and this will automatically detected as brute force in cpanel system that handle by cphulkd.
If i trying to login into the WHM / Cpanel it will show like below :