rsync is an open source tool to transfer and synchronizes file or directory with one way transfer. From local (on the same system) or remote (network or internet).
Basic syntax
From and to local
$ rsync -av -P SOURCEPATH DESTINATIONPATH
To transfer from local to remote
$ rsync -e ssh -av -P -z SOURCEPATH USER@HOST:DESTINATIONPATH
To transfer from remote to local
$ rsync -e ssh -av -P -z USER@HOST:SOURCEPATH DESTINATIONPATH
Notes:
- -a (archive) is to synchronize file or directory recursively and metadata (as date, ownership and permissions)
- v increase verbosity, to display files name being transfer to screen.
- P same like -v but more deep than verbose, is display progress or percentages during a file being transfer.
- -z (compress), compress file data during the transfer to save bandwidth
Monday, July 28, 2008
Wednesday, July 23, 2008
Hide or remove blogspot navigation toolbar
Maybe you can see the blogspot navigation toolbar when you see your friends's blog, as picture below

The question is how to hide or remove your blogspot navigation toolbar ? These steps below will help you to do it.
1. Login to your blog
2. Click Layout menu and then click Edit HTML
3. Copy and Paste code below
#hide-navtoolbar {height:0px; visibility:hidden; display:none }
between your CSS code
4. Click SAVE TEMPLATE to save your configuration.

The question is how to hide or remove your blogspot navigation toolbar ? These steps below will help you to do it.
1. Login to your blog
2. Click Layout menu and then click Edit HTML
3. Copy and Paste code below
#hide-navtoolbar {height:0px; visibility:hidden; display:none }
between your CSS code
4. Click SAVE TEMPLATE to save your configuration.
Your HTML cannot be accepted: Tag is not allowed on blogspot
Recently i have an error message
Your HTML cannot be accepted: Tag is not allowed: <meta equiv="REFRESH" content="0; url=http://www.website.com/main.html">
when i post a new topic in my blog. The Solution is HTML Entities. I change < (less than sign) to < and > (greater than sign) to >
To see more character entities, please see http://www.w3schools.com/HTML/html_entities.asp
Your HTML cannot be accepted: Tag is not allowed: <meta equiv="REFRESH" content="0; url=http://www.website.com/main.html">
when i post a new topic in my blog. The Solution is HTML Entities. I change < (less than sign) to < and > (greater than sign) to >
To see more character entities, please see http://www.w3schools.com/HTML/html_entities.asp
Tuesday, July 22, 2008
HTML Redirect
If you need to redirect you website to a another website or a new page, place the following code between the head tags in your html page.
<meta equiv="REFRESH" content="0; url=http://www.website.com/main.html">
The above HTML code redirects instantly (content="0;) to main.html. You can change number of content. For example content="10; means will redirect to website or page in 10 seconds.
<meta equiv="REFRESH" content="0; url=http://www.website.com/main.html">
The above HTML code redirects instantly (content="0;) to main.html. You can change number of content. For example content="10; means will redirect to website or page in 10 seconds.
Friday, July 18, 2008
Setting up Microsoft Outlook for SMTP Authentication
We assume that you already have an email account setup in Microsoft Outlook before. Please follow these steps below
1. Open Microsoft Outlook and go to Tools Menu then click Email Accounts...
2. If it's not already checked, click radio button of the Views or Change existing email accounts and click Next
3. Select your account in dialog box and click the Change button
4. Click the More Settings button.
5. Click the Outgoing Server tab
6. Click the checkbox for "My outgoing server (SMTP) requires authentication" (without quotes) and ensure that option for "Use same settings as my incoming mail server" is checked.
7. Click OK then Next, and then Finish button
Now your Microsoft Outlook is configured for SMTP Authentication. Please Try to send a test email out. If you are still having problems, please report me. Thanks.
1. Open Microsoft Outlook and go to Tools Menu then click Email Accounts...
2. If it's not already checked, click radio button of the Views or Change existing email accounts and click Next
3. Select your account in dialog box and click the Change button
4. Click the More Settings button.
5. Click the Outgoing Server tab
6. Click the checkbox for "My outgoing server (SMTP) requires authentication" (without quotes) and ensure that option for "Use same settings as my incoming mail server" is checked.
7. Click OK then Next, and then Finish button
Now your Microsoft Outlook is configured for SMTP Authentication. Please Try to send a test email out. If you are still having problems, please report me. Thanks.
Export and Import MySQL without phpmyadmin through or with shell
You can use an ssh client like putty or terminal (embedded linux) to export and import mysql database into .sql file without phpmyadmin like this
Export
mysqldump -uDBUSERNAME -pDBPASSWORD DBNAME > YOURDB.sql
Import
Go to YOURDB.sql path and then type
cat YOURDB.sql | mysql -uDBUSERNAME -pDBPASSWORD DBNAME
or like this
mysql -uDBUSERNAME -pDBPASSWORD DBNAME < /home/xxxxxx/YOURDB.sql
if your file name still in .sql.gz, go to your YOURDB.sql.gz so type
zcat YOURDB.sql.gz | mysql -uDBUSER -pDBPASSWORD DBNAME
NOTES :
- DBUSERNAME is either something as "root" (without quotes) or a username given by the hoster
- DBPASSWORD means your mysql database password
- DBNAME is your database name
- YOURDB means your database name
- xxxxxx is the name of your home
Export
mysqldump -uDBUSERNAME -pDBPASSWORD DBNAME > YOURDB.sql
Import
Go to YOURDB.sql path and then type
cat YOURDB.sql | mysql -uDBUSERNAME -pDBPASSWORD DBNAME
or like this
mysql -uDBUSERNAME -pDBPASSWORD DBNAME < /home/xxxxxx/YOURDB.sql
if your file name still in .sql.gz, go to your YOURDB.sql.gz so type
zcat YOURDB.sql.gz | mysql -uDBUSER -pDBPASSWORD DBNAME
NOTES :
- DBUSERNAME is either something as "root" (without quotes) or a username given by the hoster
- DBPASSWORD means your mysql database password
- DBNAME is your database name
- YOURDB means your database name
- xxxxxx is the name of your home
Thursday, July 17, 2008
Create root user with different name
The root account is the most powerful account in Linux and Unix Platform. To create more than one root user with different name (that have the same powerful as a root), please see steps below
1. Login as root
2. Type "useradd -d /home/ROOTNAME -m -o -u0 ROOTNAME" (without quotes)
Notes :
- useradd means create a new user
- -d is home directory
- Replace "ROOTNAME" with the name for root user. For example, me
- -m means the user's home directory will be created if it does not exist
- -o means allow the creation of a user account with a duplicate (non-unique) UID
- -u is the numerical value of the user's ID, 0 means root
3. Enter
4. The root user named me is created.
5. Type "passwd me" (to give the password for me user) then Enter
6. Type the password and retype then Enter
7. Press Ctrl+D to logout as a root
8. Make sure the prefix is $ (dollar sign) not # (sharp sign)
9. Type "su - me" (to login as me) and then press Enter
10. Enter password for me user
11. Tra ra. Now you have login as me
12. Type "whoami" and Enter. And must be prints root userid (root) below.
Congratulations ! Now you have duplicate root user with different name.
1. Login as root
2. Type "useradd -d /home/ROOTNAME -m -o -u0 ROOTNAME" (without quotes)
Notes :
- useradd means create a new user
- -d is home directory
- Replace "ROOTNAME" with the name for root user. For example, me
- -m means the user's home directory will be created if it does not exist
- -o means allow the creation of a user account with a duplicate (non-unique) UID
- -u is the numerical value of the user's ID, 0 means root
3. Enter
4. The root user named me is created.
5. Type "passwd me" (to give the password for me user) then Enter
6. Type the password and retype then Enter
7. Press Ctrl+D to logout as a root
8. Make sure the prefix is $ (dollar sign) not # (sharp sign)
9. Type "su - me" (to login as me) and then press Enter
10. Enter password for me user
11. Tra ra. Now you have login as me
12. Type "whoami" and Enter. And must be prints root userid (root) below.
Congratulations ! Now you have duplicate root user with different name.
Compress and Extract Files under Linux
A compressed file is a collection of files or directories that are stored in one file and stored in a way that uses less disk space than all the individual files or directories combined. Sometimes useful to compress files into one file so that they use less disk space and download faster via the Internet.
C : Compress file
E : Extract file
zip
C : zip -r FILENAME.zip FILENAME
E : unzip FILENAME.zip
tar
C: tar -cf FILENAME.tar FILENAME
E: tar xvf FILENAME.tar
rar
C: rar a FILENAME.rar FILENAME
E: unrar x FILENAME.rar
gz
C: gzip -c FILENAME > FILENAME.gz
E: gzip -d FILENAME.gz
tar.gz
C: tar -cf FILENAME.tar FILENAME
and then write
gzip -c FILENAME.tar > FILENAME.tar.gz
E : tar zxvf NAMFILE.tar.gz
bzip2, bunzip2
C: bzip -z NAMAFILE > NAMAFILE.bz
E: bzip2 -d NAMAFILE.bz > NAMAFILE
Wednesday, July 16, 2008
Split and Join file in Linux
If you have big size file to save or burn, please split them into any size.
- Split
split -b 100m FILENAME "FILENAME."
- Join
cat FILENAME.* > FILENAME
NOTES :
- Option -b represents bytes
- 100m means you divide your file into 100MB per file.
- FILENAME is a your actual file
- Split
split -b 100m FILENAME "FILENAME."
- Join
cat FILENAME.* > FILENAME
NOTES :
- Option -b represents bytes
- 100m means you divide your file into 100MB per file.
- FILENAME is a your actual file
Forget your Joomla Admin Password ?
If you forget joomla admin password, the one question is how to reset or get it ? Here's the steps :
1. Login to your phpmyadmin
2. Please fill your database user dan password
3. Click on the SQL menu
4. In the SQL query, write the following SQL query like this
UPDATE `jos_users` SET `password` = MD5('your_new_joomla_admin_password') WHERE `jos_users`.`username` = "admin" ;
NOTES :
- Replace "your_new_joomla_admin_password" (without quotes) with the new joomla admin password you wish to use.
- Make sure "admin" is your admin username
5. Click on Go button to submit the query
6. If no error appears, you should be able to login to administrator area with your new joomla admin password.
Please Try.
1. Login to your phpmyadmin
2. Please fill your database user dan password
3. Click on the SQL menu
4. In the SQL query, write the following SQL query like this
UPDATE `jos_users` SET `password` = MD5('your_new_joomla_admin_password') WHERE `jos_users`.`username` = "admin" ;
NOTES :
- Replace "your_new_joomla_admin_password" (without quotes) with the new joomla admin password you wish to use.
- Make sure "admin" is your admin username
5. Click on Go button to submit the query
6. If no error appears, you should be able to login to administrator area with your new joomla admin password.
Please Try.
Subscribe to:
Posts (Atom)