Infrastructure/fedorapeople.org/ru
From FedoraProject
Contents |
fedorapeople.org
Эта страница содержит информацию о том как получить и использовать персональное дисковое пространство в fedorapeople.org , где хранятся файлы, загружаемые участниками, для которых необходимо предоставить доступ любому человеку в любой точке земного шара. Сюда рекомендуется загружать spec файлы, srpm, patch, ваши репозитарии и т.д.
Получение доступа к fedorapeople.org
- Необходимо иметь действующую учетную запись Fedora
- Необходимо входить в группу (отличающуюся от группы CLA)
- Необходимо иметь ssh ключ (ssh-keygen -t rsa) загруженный в вашу учетную запись Fedora. ssh ключ активируется в течении часа после того как он был загружен.
- Чтобы присоединиться используйте ssh ключ, который вы загрузили в учетную запись Fedora:
ssh your_fedora_username@fedorapeople.org
Важно знать
- Каждый участник Fedora получает 150 MiB дискового пространства.
- Чтобы создать пространство для просмотра, создайте каталог
public_html. - Загружайте файлы с помощью scp, sftp, или rsync.
Чтобы копировать файлы из консоли, можно использовать scp
scp /path/to/file your_fedora_username@fedorapeople.org:/home/fedora/your_fedora_username/public_html
- Как только файлы будут загружены в каталог public_html они будут доступны по адресу: http://your_username.fedorapeople.org/.
- Предоставьте другим пользователям доступ к чтению/записи/другое файлов с помощью acls. Прочтите man страницы для setfacl и getfacl для добавления их к вашим каталогам/файлам. Следующая команда предоставит пользователю jkeating права на запись и чтение файла
file:
setfacl -m u:jkeating:rw file
BETA git hosting support
fedorapeople.org now has support for hosting git repositories including accessing them via the git:// protocol for anonymous downloads as well as providing gitweb. This should be considered beta.
Here is a quick rundown of how to get started using git on fedorapeople.org. It assumes that you are already somewhat familiar with git. You might want to take a look at the Git quick reference.
Create a ~/public_git directory on fedorapeople.org
ssh your_fedora_username@fedorapeople.org "mkdir ~/public_git"
Creating a new git repository in ~/public_git
As an example, here is one method to create an empty repository on your local system and upload it:
mkdir repo.git cd repo.git git --bare init touch git-daemon-export-ok cd .. scp -r repo.git/ your_fedora_username@fedorapeople.org:public_git/
This creates a bare repository (i.e. a repository that has no working directory). It contains just the files that are part of the .git directory of a non-bare git repository (the kind most users are accustomed to seeing).
Uploading an existing repository to ~/public_git
If you have an existing repository you want to use on fedorapeople, you can do so easily:
git clone --bare /path/to/local/repo repo.git touch repo.git/git-daemon-export-ok scp -r repo.git/ your_fedora_username@fedorapeople.org:public_git/
The caveats from the previous section apply here as well.
Pushing to your repository
To push changes from a local repository:
cd /path/to/local/repo git remote add fedorapeople your_fedora_username@fedorapeople.org:public_git/repo.git git push --mirror fedorapeople
This creates a mirror of your local repository. All of the branches and tags in the local repository will be pushed to the fedorapeople repository.
If you only want to push selected branches, amend the git push example. For example, to push only your local master branch:
git push fedorapeople master
Cloning your repository
To clone your repository, use a command similar to:
git clone git://fedorapeople.org/~your_fedora_username/repo.git
It is also possible to clone your project via the http:// protocol. In order for this to work, you must arrange to have git-update-server-info run whenever you update your repository. Typically, this is done with a post-update hook script. However, the user home directories on fedorapeople.org are mounted with the noexec option, which prevents the script from running. Instead, you may create a symbolic link to git-update-server-info in the hooks directory of your repository:
ssh ~your_fedora_username@fedorapeople.org cd ~/public_git/repo.git/hooks ln -svbf /usr/bin/git-update-server-info post-update
You also need to create a link from ~/public_html/git to ~/public_git:
cd ~/public_html ln -svbf ../public_git git
You can clone your repository over http:// with a command similar to:
git clone http://your_fedora_username.fedorapeople.org/git/repo.git/
Browsing your project via gitweb
You can see your project listed in gitweb once the project list updates. This happens hourly. Note that the gitweb URL may change.