Saturday, July 16, 2011

scp as a background process « Kunal Bharati

scp as a background process « Kunal Bharati

kunal@localhost$

Home
About me

scp as a background process
October 20, 2010
tags: Linux, tips n tricks
by kunalbharati

To execute any linux command in background we use nohup as follows:
1 $ nohup SOME_COMMAND &

But the problem with scp command is that it prompts for the password (if password authentication is used). So to make scp execute as a background process do this:
1 $ nohup scp file_to_copy user@server:/path/to/copy/the/file > nohup.out 2>&1

Then press ctrl + z which will temporarily suspend the command, then enter the command:
1 $ bg

This will start executing the command in backgroud


Monday, April 18, 2011

How to install Apache, PHP and MySQL on Linux: Part 2

How to install Apache, PHP and MySQL on Linux: Part 2 | laffers.net

Setup access privileges

Don’t forget to setup Apache access privileges to your www directories:

1chown -R apache2:www <em>/foo/path_to_your_www_documents_root</em>
2chmod -R 750 <em>/foo/path_to_your_www_documents_root</em>

“apache2″ and “www” are the user and user group I have previously created (see Prerequisites)

Start and stop apache server

After everything is set up, start Apache:

1/usr/local/apache2/bin/apachectl start

Similarly, if you wish to stop Apache, type:

1/usr/local/apache2/bin/apachectl stop

Automatic startup

It’s a good idea to let your Apache server start automatically after each system reboot. To setup Apache automatic startup, do:

1cp /usr/local/apache2/bin/apachectl /etc/init.d
2chmod 755 /etc/init.d/apachectl
3chkconfig --add apachectl
4chkconfig --level 35 apachectl on

Sunday, April 17, 2011

Subversion + Apache Installation and Repository Migration HOWTO - Matt Woodward's posterous

Subversion + Apache Installation and Repository Migration HOWTO - Matt Woodward's posterous

 

Create Basic HTTP Passwords

Next we'll create the SVN password file referenced in the dav_svn.conf file above.

Type the following to navigate to the /etc/apache2 directory and create the .passwd file and add the first user to it.

 

  1. cd /etc/apache2  
  2. sudo htpasswd -cm dav_svn.passwd YOUR_USER_NAME  

 

Installing a Subversion server on Leopard

 

Sonzea

LoadModule dav_svn_module libexec/apache2/mod_dav_svn.so LoadModule authz_svn_module libexec/apache2/mod_authz_svn.so <Location /repo> DAV svn SVNPath /usr/local/repo </Location>

Move a Subversion Repository from One Remote Server to Another

Using Subversion on Mac OS X for version control

 

Move a Subversion Repository from One Remote Server to Another | Minor Addition

 

Move a Subversion Repository from One Remote Server to Another | Minor Addition

Move a Subversion Repository from One Remote Server to Another

Wednesday, April 6, 2011