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

From Eclipsepedia

Jump to: navigation, search
m (Add new user)
m (Add new component(s))
 
(7 intermediate revisions by one user not shown)
Line 1: Line 1:
 
== Add new user ==
 
== Add new user ==
  
<table><tr><td>
+
As root:
su
+
 
+
export newuser=''newuser''
+
  
  /usr/sbin/adduser $newuser; \
+
<table><tr><td>
/usr/sbin/usermod -G www -p ${newuser}1 $newuser
+
  for newuser in ''newuser'' ''anotheruser''; do \
 +
  /usr/sbin/useradd -G www -p ${newuser}1 $newuser; \
 +
done
 
</td></tr></table>
 
</td></tr></table>
  
== Add new component ==
+
== Add new component(s) ==
 +
 
 +
As root:
  
 
<table><tr><td>
 
<table><tr><td>
export newcomponent=''newcomponent'';
 
  
  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/
+
 
</td></tr></table>
 
</td></tr></table>
 
  
 
== Edit firewall ==
 
== Edit firewall ==
 +
 +
As root, add a line such as this to the firewall, then reload it.
  
 
<table><tr><td>
 
<table><tr><td>
 
  /sbin/iptables -I INPUT -p tcp -s ''newhost_or_IP'' --dport 22 -j ACCEPT # ''newuser'' (''newcomponent'')
 
  /sbin/iptables -I INPUT -p tcp -s ''newhost_or_IP'' --dport 22 -j ACCEPT # ''newuser'' (''newcomponent'')
 
</td></tr></table>
 
</td></tr></table>
 
  
 
== Announcement ==
 
== Announcement ==
Line 40: Line 33:
  
  
[[Category:Releng]] [[Category:EMFT]]
+
[[Category:Releng]] [[Category:EMFT]] [[Category:Modeling]]
[[Category:Modeling]]
+

Latest revision as of 16:26, 14 November 2007

Contents

[edit] Add new user

As root:

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

[edit] Add new component(s)

As root:

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

[edit] 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)

[edit] Announcement

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