Jump to: navigation, search

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

m
m (Add new component(s))
 
(3 intermediate revisions by the same user not shown)
Line 5: Line 5:
 
<table><tr><td>
 
<table><tr><td>
 
  for newuser in ''newuser'' ''anotheruser''; do \
 
  for newuser in ''newuser'' ''anotheruser''; do \
   /usr/sbin/adduser $newuser; \
+
   /usr/sbin/useradd -G www -p ${newuser}1 $newuser; \
  /usr/sbin/usermod -G www -p ${newuser}1 $newuser; \
+
 
  done
 
  done
 
</td></tr></table>
 
</td></tr></table>
  
== Add new component ==
+
== Add new component(s) ==
  
 
As root:
 
As root:
  
 
<table><tr><td>
 
<table><tr><td>
for newcomponent in ''newcomponent'' ''anothercomponent''; do \
+
 
  cd /home/www-data/build/modeling/emft; mkdir $newcomponent; \
+
/usr/sbin/[http://dev.eclipse.org/viewcvs/index.cgi/releng-common/server-config/emft.eclipse.org/addcomponent.sh?root=Modeling_Project&content-type=text%2Fplain&view=co addcomponent] emft servus jcrm ecoretools mint emfatic
  chown apache:apache *; chmod g+w *; \
+
/usr/sbin/[http://dev.eclipse.org/viewcvs/index.cgi/releng-common/server-config/emft.eclipse.org/addcomponent.sh?root=Modeling_Project&content-type=text%2Fplain&view=co addcomponent] mdt ocltools
  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
+
 
</td></tr></table>
 
</td></tr></table>
  

Latest revision as of 15:26, 14 November 2007

Add new user

As root:

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

Add new component(s)

As root:

/usr/sbin/addcomponent emft servus jcrm ecoretools mint emfatic
/usr/sbin/addcomponent mdt ocltools 

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.