As a member of LUG@UCLA, you have been given a unix account on this server, and apache will serve your <code>~/public_html</code> directory.

+

>>> '''<nowiki>https://linux.ucla.edu/~user/</nowiki>''' <<<

−

If your username is <code>johndoe</code>, your web space can be found at [http://linux.ucla.edu/~johndoe <code>http://linux.ucla.edu/'''~johndoe'''</code>]

+

As a member of LUG@UCLA, you have been given an account on this server, and apache will serve your <tt>~/public_html/</tt> directory at [https://linux.ucla.edu/~user/ https://linux.ucla.edu/~'''user'''/] (replace "user" with your LUG username). Use your web space for whatever you want, but keep in mind that whatever you put up represents the LUG too. Just try not to get us in trouble!

+

+

Here are some ideas for things to host:

+

* your resume

+

* your blog

+

* your code (see a tutorial below)

+

+

== Tutorial: Hosting public Git repositories ==

+

+

Here at LUG@UCLA we like to share code. You can share yours by setting up bare git repositories and installing Gitweb into your public web space so anybody in the world can easily browse your code.

+

+

First, set up a "repos" directory in your web root:

+

+

$ mkdir ~/public_html/repos

+

+

Later you can add bare repositories under this directory. For demonstration, we'll add a test repository:

+

+

$ mkdir ~/public_html/repos/my_first_repo.git

+

$ cd ~/public_html/repos/my_first_repo.git

+

$ git init --bare

+

$ mv hooks/post-update.sample hooks/post-update

+

$ echo "replace this with a very short description of this repository" > description

+

+

As the repository owner, you should clone/pull/push to this repository '''via SSH'''. Here is how you should clone it to your local machine:

Latest revision as of 21:40, 5 June 2014

>>> https://linux.ucla.edu/~user/ <<<

As a member of LUG@UCLA, you have been given an account on this server, and apache will serve your ~/public_html/ directory at https://linux.ucla.edu/~user/ (replace "user" with your LUG username). Use your web space for whatever you want, but keep in mind that whatever you put up represents the LUG too. Just try not to get us in trouble!