Changes

From SME Server
Jump to navigationJump to search
1,303 bytes added ,  19:54, 3 August 2007
no edit summary
Line 49: Line 49:  
If you have created a contrib and wish to share with everyone then you can upload to your mirror.contribs.org/smeserver/contribs directory. To do so you can use scp, sftp or rsync to upload to your contrib directory.
 
If you have created a contrib and wish to share with everyone then you can upload to your mirror.contribs.org/smeserver/contribs directory. To do so you can use scp, sftp or rsync to upload to your contrib directory.
    +
===Using RSYNC===
 
Make sure you have a working copy of your contrib directory, for example to use rsync we will grab a copy by typing...
 
Make sure you have a working copy of your contrib directory, for example to use rsync we will grab a copy by typing...
   Line 59: Line 60:  
And that's it now wait for mirrors to sync and have a beer.
 
And that's it now wait for mirrors to sync and have a beer.
    +
===Using SFTP===
 +
 +
Log in using...
 +
 +
sftp username@shell.contribs.org
 +
 +
Now you will be at the...
 +
 +
sftp>
 +
 +
Now you can create your directory ready for uploading contribs...
 +
 +
sftp> mkdir smecontribs
 +
sftp>
 +
 +
Then upload your local copy of your new completed contrib to your contrib directory by typing...
 +
 +
sftp> cd smecontribs
 +
sftp>
 +
 +
Show we are in the right directory where we want the contrib to show...
 +
 +
sftp> pwd
 +
Remote working directory: /home/byte/smecontribs
 +
sftp>
 +
 +
Make sure we have our local server directory set correctly by typing...
 +
 +
sftp> lls
 +
anaconda-ks.cfg  Desktop  install.log  install.log.syslog
 +
sftp>
 +
 +
Above show's we are not so to move in to our local working directory type...
 +
 +
sftp> lcd /tmp/sftptest
 +
sftp> lls
 +
smeserver-contrib-1.rpm  smeserver-contrib.rpm
 +
sftp>
 +
 +
We are ready to upload our 2 new contribs by typing...
 +
 +
sftp> put smeserver-*
 +
Uploading smeserver-contrib-1.rpm to /home/username/smecontribs/smeserver-contrib-1.rpm
 +
smeserver-contrib-1.rpm                      100%    0    0.0KB/s  00:00
 +
Uploading smeserver-contrib.rpm to /home/username/smecontribs/smeserver-contrib.rpm
 +
smeserver-contrib.rpm                        100%    0    0.0KB/s  00:00
 +
sftp>
 +
 +
And thats it wait for mirrors to sync and sit back/relax.
 +
 +
{{Note box|
 
If you want you can set up your contrib directory so that you can use ssh keys, if you do use ssh keys then you will need to make sure the you have the following permissions set correctly...
 
If you want you can set up your contrib directory so that you can use ssh keys, if you do use ssh keys then you will need to make sure the you have the following permissions set correctly...
   Line 66: Line 118:     
- authorized_keys2 must be 0644 (-rw-r--r--)
 
- authorized_keys2 must be 0644 (-rw-r--r--)
 +
}}
    
So for example we would change the permissions on our /tmp/test directory by typing...
 
So for example we would change the permissions on our /tmp/test directory by typing...

Navigation menu