Log into an ECE Linux computer and perform the following tasks:
Type the following line in any terminal window:
ln -s /software/magic/116/DOT.magic ~/.magicrc
Edit your existing ~/.cshrc file (or create a new one) in
your home directory and add the following line to the end of the
file:
source /software/magic/116/DOT2.cshrc
Add the following line to the end of your ~/.Xdefaults
file to keep irsim from printing white on white or black on black:
irsim.traceColor: black
irsim.background: white
The edits affect only new windows, so you will need to close and re-open any terminals windows or type source ~/.cshrc before magic will work.
This approach uses a local installation of magic and irsim on a windows computer to run the linux applications by running a local copy of linux (Ubuntu). The procedure was developed by Phil Young.
Through the Microsoft Windows Store, users can install "Ubuntu for Windows" for free.
By running magic locally, students can bypass the VPN/SSH/VNC connections and work on their labs in real-time speeds.
*** INSTALLING MAGIC ON A PC VIA UBUNTU FOR WINDOWS ** source: http://blog.asicedu.com/2018/10/installation-opensource-eda-tools.html INSTALL UNIX FOR WINDOWS WITH POWERSHELL search for Powershell, run as administrator run command. dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart reboot INSTALL UBUNTU FROM WINDOWS STORE Windows Store: Install Ubuntu 18.04LTS (you do not need a Microsoft account to download/install. It appears that you have to login to a Microsoft account to download, but you can download the 'Ubuntu for Windows' package without entering credentials for a Microsoft account.) create Ubuntu Unixusername create Ubuntu Unixpassword INSTALL UPDATES AND MAGIC AND GUI TOOLS sudo apt-get update sudo apt-get install magic sudo apt-get install xcircuit sudo apt-get install irsim sudo apt-get install qrouter sudo apt-get install qflow sudo apt-get install pcb sudo apt-get install python3.6 sudo apt-get install python3.6-tk sudo apt-get install xinit sudo apt install vim vim-gtk3 vim-tiny neovim-qt vim-athena vim-gtk vim-nox MAKE EEC116 DIRECTORY AND SET YOUR DISPLAY mkdir EEC116 export DISPLAY=:0 DOWNLOAD MAGIC FILES FOR EEC116 open MobaXterm (or WinSCP) SSH to ECE Linux workstation, i.e. cobra.ece.ucdavis.edu On the left panel of MobaXTerm, navigate to /software/classtools/EEC116/magic/lib/magic/ right-click on "sys", select Download Copy, via drag-n-drop, the "sys" directory to your EEC116 Ubuntu directory: C:\Users\Unixusername\AppData\Local\Packages\CanonicalGroupLimited.Ubuntu18.04onWindows_79rhkp1fndgsc\LocalState\rootfs\home\Unixusername\EEC116 In Ubuntu, you need to alter the file permissions. cd /home/Unixusername/EEC116 sudo chmod -R 644 sys sudo chmod 744 sys CHANGE DIRECTORY TO SYS AND LAUNCH MAGIC cd sys (you should be in the /home/Unixusername/EEC116/sys directory) Launch Magic: magic -T gdsquery.tech & magic -T scmosWR.tech &
2005/04/08, 18:00 Updated for Spring 2005 2006/04/06, 17:45 Updated for Spring 2006 2006/04/12, 09:45 Added more .cshrc info 2007/03/29, 10:00 Added nedit and vim plus a few small edits 2009/04/10, 11:30 Added the instructions to install magic for advanced users (Swapnil) 2010/01/15, 00:30 Moved path to /net/pizza/... (BB) 2010/01/15, 15:00 Added .magicrc to new installation with symbolic link command (BB) 2013/10/03, 16:00 Minor update (BB) 2013/11/30, 15:00 Fix typo (BB) 2014/10/13, 18:45 Comments on suspected automount problem (BB) 2014/10/22 Cosmetic edits (BB) 2017/10/05 Updated editors (TA,BB) 2018/09/26 Minor edits (BB) 2018/11/21 Added irsim.background command (BB) 2019/10/09 Removed references to pizza and cleaned up a little (BB)