Difference between revisions of "MikroserverSetup"

m (Fixed typo)
Line 35: Line 35:
 
The next time you open your terminal on your computer you can type  
 
The next time you open your terminal on your computer you can type  
 
  virtuoso
 
  virtuoso
to start cadence virutoso, or  
+
to start Cadence Virtuoso, or  
 
  mikroserver
 
  mikroserver
 
to connect to mikroserver3 without any hassle!
 
to connect to mikroserver3 without any hassle!
Line 43: Line 43:
 
* Make sure you have restarted your terminal (or source ~/.bashrc) if the commands doesn't work
 
* Make sure you have restarted your terminal (or source ~/.bashrc) if the commands doesn't work
 
* You have to be either connected to the UiB VPN or run the commands via the computers in the lab to be able to connect to microserver
 
* You have to be either connected to the UiB VPN or run the commands via the computers in the lab to be able to connect to microserver
* If you are using another shell like zsh or csh the aliases has be in ~/.zshrc or  ~/.cshrc instead of ~/.bashrc
+
* If you are using another shell like zsh or csh the aliases has to be in ~/.zshrc or  ~/.cshrc instead of ~/.bashrc
* Make sure you have replaced all the USERNAME with your usename, i.e "fli091"
+
* Make sure you have replaced all the instances of USERNAME with your usename, i.e "fli091"
  
  
 
[[Category:Mikroelektronikk]]
 
[[Category:Mikroelektronikk]]

Revision as of 16:27, 14 October 2017

Setup of connection to mikroservers and cadence virtuoso

This setup will allow you to connect to the mikroservers and/or start Cadence virtuoso with one command without typing any password or hostnames


The three mikroservers are :

  • mikroserver1.klientdrift.uib.no
  • mikroserver2.klientdrift.uib.no
  • mikroserver3.klientdrift.uib.no

Do the following:

  • Generate an ssh-key
ssh-keygen -f ~/.ssh/id.rsa -t rsa -N  
  • Copy the key with your identity to your chosen mikroserver (mikroserver3 is chosen in this example). NB: Replace USERNAME with your usename
ssh-copy-id USENAME@mikroserver3.klientdrift.uib.no
  • Set up aliases for the connections in your terminal
echo "alias mikroserver1='ssh -X USERNAME@mikroserver1.klientdrift.uib.no'" >> ~/.bashrc
echo "alias mikroserver2='ssh -X USERNAME@mikroserver2.klientdrift.uib.no'" >> ~/.bashrc
echo "alias mikroserver3='ssh -X USERNAME@mikroserver3.klientdrift.uib.no'" >> ~/.bashrc

Also create another alias for your favourite mikroserver

echo "alias mikroserver='ssh -X USERNAME@mikroserver3.klientdrift.uib.no'" >> ~/.bashrc
  • source scripts inside .bashrc. This will make sure the scripts are loaded every time you log in, so you don't have to do it manually
echo "source /eda/cadence/2016-17/scripts/analog_flow.sh" >> ~/.bashrc
echo "source /eda/cadence/eda_general_init.sh" >> ~/.bashrc

Then finally on the computers in the lab (NOT connected to the mikroservers)

echo "alias virtuoso="ssh -X USERNAME@mikroserver3.klientdrift.uib.no 'cd tsmc;virtuoso'&"" >> ~/.bashrc

The next time you open your terminal on your computer you can type

virtuoso

to start Cadence Virtuoso, or

mikroserver

to connect to mikroserver3 without any hassle!

Troubleshooting

  • Make sure you copy your ID (ssh-copy-id) to the correct mikroserver
  • Make sure you have restarted your terminal (or source ~/.bashrc) if the commands doesn't work
  • You have to be either connected to the UiB VPN or run the commands via the computers in the lab to be able to connect to microserver
  • If you are using another shell like zsh or csh the aliases has to be in ~/.zshrc or ~/.cshrc instead of ~/.bashrc
  • Make sure you have replaced all the instances of USERNAME with your usename, i.e "fli091"