Arquivo da Categoria ‘linux’

Find and replace text – command line

12, Janeiro, 2015 Nenhum comentário



How to connect connet/mount with SFTP and private key

30, Novembro, 2014 Nenhum comentário

That command should read


To use sshfs you need to install the package, the command to install it is


then to mount a remote host as the directory /mnt (your mount point) (you can use any directory you like even ones with stuff in – it will not write over the top of them the contents will just be invisible until you umount). Note the -o ssh_command… option should not be necessary if you have loaded your key using ssh-add /path/to/your/privatekey .


to unmount where /mnt is your mount point:


I prefer to use a mount point in my home directory. e.g. /home/username/mnt/ and use that as my mountpoint instead

Tags: , ,

Connect SSH through a proxy in linux terminal

28, Novembro, 2014 Nenhum comentário

With tunneling:


Tags: , ,

Mass change file permissions

24, Outubro, 2014 Nenhum comentário

You can change the permissions of all 777 folders to 755 using find as below.

The above command will change all the directories inside /var/www to have the permission set as 755. To verify it, you can use the below command.

To change the permissions of all php files, you can use the below command.

Again, you can use the stat command to verify if the permissions had changed. Or you can even use,

Both stat and ls -ld will display the octal permissions of the file.


Adobe Content Server 4 (ACS4) Setup Guide

16, Maio, 2014 Nenhum comentário

Source of this great guide: The Web Development Logs –

This setup guide is written for a single server installation, using Apache, MySQL and PHP to keep things simple.

I make no excuses that i borrowed a lot of content from the original Adobe Content Server 4 Technical Reference Manuals and other Documentation while adding in my personal notes, screen shots, and potential pitfalls to look out for.

Read through everything you can before beginning the setup process, understanding the concept of Adobe Content Server as a whole is as important as getting everything running smoothly.

Please refer to, study, and read the original ACS4 installation and quick start documentation here.

The ACS4 installation can be split into steps:

  • Installing the basic requirements
  • Setting up the Admin console
  • Setting up the Fulfillment service
  • Setting up the Packaging service
  • Generating the Certificate files
  • Completing Config Files
  • Content Server Status Checks
  • Book Packaging and Distribution
  • Serving the Sample Store

You may wish to have the packaging service and media storage on seperate machines to distribute workloads.

Basic requirements to run Adobe Content Server:

  • The Java Runtime Environment (JRE)
  • Apache Tomcat version 6 or higher
  • MySQL version 5 or higher.

In addition, to run an online store, you will also need:

  • Apache HTTP Server
  • PHP 5 or above.

Ler mais…

Tags: , , ,

Remove all SVN directories and files

28, Janeiro, 2014 Nenhum comentário

Remove all directories and files from your project folder:

Tags: ,

VSFTPd Virtual Users

11, Janeiro, 2014 Nenhum comentário

This documenation was created from CentOS using the YUM package manager to keep things simple. Before you dig to deep you need the FTP Server to be installed. You can either install the FTP Server as you install CentOS or YUM group install it after the fact.

If you don’t have VSFTPd installed currently on your CentOS machine.

Needed for creating the user database later.

PAM configuration which configures the usage of the virual database we will be creating from a basic text file below.

In same cases the path of it’s different.


Add the user the virtual FTP server will use to log in all users.

VSFTPd configuration example used for this setup.

Create your text absed user and passwor

Create your text absed user and password list.

Insert your usernames and passwords

Create your user database from the entries located in the users file created above.

Create your user’s based FTP directory.


Fixes: not being able to write once logged into FTP

Fixes: “500 OOPS: cannot change directory”. If SELinux is not enabled or enforcing then this can be ignored.

Fixes: “425 Failed to establish connection” or “Client Error: Failed to retrieve directory listing”. If you have not run some sort of automated firewall utility you may need to add the module ip_conntrack_ftp to your iptables configuration. Just make sure your line includes ip_conntrack_ftp as stated below. If you are not running an iptables based firewall then this can be ignored.

And do this:

Tags: ,