The Ubuntu Tweak provides some desktop and systems configuration options which the default Ubuntu settings does not provide.
Continue reading Ubuntu Tweak – The must have configuration tools for Ubuntu
Tag Archives: Mac
Secure the SSH protocol by Key Authentication
My server was hacked. ToT
One day i found that i couldn’t login the server thru SSH and the CPU usage jumped to 100% for more than 12 hours. Finally i could login as root and found that a new user R00T was created and the SSH service was restarted with all settings in the sshd config file commented out. =.=
So from now on i will use Key Authentication instead of simple Password Authentication. Here is a very useful guide on Linode.com which shows you how to secure your server.
Linode Library – Securing Your Server
In order to use the Key Authentication, you need to generate the private key and public key on your desktop/labtop computers. This is straight forward if you are a Mac or Linux user who could use the ssh-keygen command. But for Windows user, you have to use 3rd party program like PuTTYgen. I suggest using WinSCP + PuTTY.
Continue reading Secure the SSH protocol by Key Authentication
MAMP – Run MySQL commands in Terminal
The MySQL commands such as mysqldump can be found in
- /Applications/MAMP/Library/bin/
Mac – Show Hidden Files in Finder
By default Finder would not show hidden files. Use the following commands to change this setting.
- defaults write com.apple.finder AppleShowAllFiles TRUE
- killall Finder
Amazon S3 – The s3cmd command line tool
Previously i got my GnuPG ready in Mac. Now i need to setup the s3cmd.
Mac – GnuPG Installation
For Mac:
1. Download the s3cmd package @ S3 tools – Download
2. Extract the archive
- tar zxf s3cmd-1.0.1.tar.gz
Mac – GnuPG Installation
Recently need to work with Amazon S3 and i want to use the s3cmd command line client.
s3cmd : command line S3 client
But it requires encryption program which i can’t find in my Mac machine. Luckily i found a very detail installation guide.
HOWTO: Build GnuPG on OS X Continue reading Mac – GnuPG Installation
MAMP – Where is the MySQL config file/my.cnf?
If you want to modify the MySQL configuration in MAMP, just create the my.cnf file by the following command Continue reading MAMP – Where is the MySQL config file/my.cnf?
Mac – Generate SSH Keypair
Prior to the topic about the SSH keypair, i would like to let u know that the BeansTag module is already submitted to drupal.org and now undergoing the approval process. BeansTag is a light-weight and user friendly SEO tool which help you setting the meta attributes as well as page title. It is also multilingual supported. Visit the BeansTag project page to get more ideas or even try it with your Drupal 7.
Before i could start working with the Git repository hosted in drupal.org, i have to create a SSH keypair and add it in my Drupal account profile. Actually i have done the similar task before but that is for Windows. For your reference, you can refer to the following post.
Mac – Git installation on OSX
I am working on a new Drupal 7 module which is called BeansTag and hopefully it could be submitted to drupal.org soon. But before i could submit it, i have to make the Git work in my Mac OSX.
Here are the steps for Git installation in Mac OSX Continue reading Mac – Git installation on OSX
Linux – Check File Encoding
The file command also works in Linux. But unlike Mac, u don’t need to have the -I parameter. Continue reading Linux – Check File Encoding