Difference between revisions of "Modeling Project Releng/Component Creation/Build Server Setup"

From Eclipsepedia

Jump to: navigation, search
m
m
Line 1: Line 1:
 
== Add new user ==
 
== Add new user ==
  
<table><tr><td>
+
As root:
su
+
  
 +
<table><tr><td>
 
  for newuser in ''newuser'' ''anotheruser''; do \
 
  for newuser in ''newuser'' ''anotheruser''; do \
 
   /usr/sbin/adduser $newuser; \
 
   /usr/sbin/adduser $newuser; \
Line 11: Line 11:
  
 
== Add new component ==
 
== Add new component ==
 +
 +
As root:
  
 
<table><tr><td>
 
<table><tr><td>
Line 28: Line 30:
  
 
== Edit firewall ==
 
== Edit firewall ==
 +
 +
As root, add a line such as this to the firewall, then reload it.
  
 
<table><tr><td>
 
<table><tr><td>

Revision as of 14:53, 14 November 2007

Contents

Add new user

As root:

for newuser in newuser anotheruser; do \
  /usr/sbin/adduser $newuser; \
  /usr/sbin/usermod -G www -p ${newuser}1 $newuser; \
done

Add new component

As root:

for newcomponent in newcomponent anothercomponent; do \
  cd /home/www-data/build/modeling/emft; mkdir $newcomponent; \
  chown apache:apache *; chmod g+w *; \
  cd /var/www/html/modeling/emft/; cvs up -Pd $newcomponent; \
  cd $newcomponent; \
  chown -R www * .*; chmod -R g+w * .*; \
  cd /var/www/html/modeling/emft/$newcomponent/build/; \
  cd /var/www/html/modeling/emft/cdo/build/.htaccess .; \
  chmod 664 .htaccess; \
  cd /var/www/html/modeling/emft/$newcomponent; \
  ln -s /home/www-data/build/modeling/emft/$newcomponent/downloads/; \
done

Edit firewall

As root, add a line such as this to the firewall, then reload it.

/sbin/iptables -I INPUT -p tcp -s newhost_or_IP --dport 22 -j ACCEPT # newuser (newcomponent)

Announcement

Finally, send the user an email or IM with his new .htaccess and ssh usernames/passwords.