http://mircwiki.rsna.org/api.php?action=feedcontributions&user=Tim+phillips&feedformat=atomMircWiki - User contributions [en]2024-03-19T10:11:24ZUser contributionsMediaWiki 1.35.5http://mircwiki.rsna.org/index.php?title=(depreciated)_Install_or_upgrade_RSNA_TFS_(previously_known_as_MIRC)_on_Ubuntu_Linux&diff=7327(depreciated) Install or upgrade RSNA TFS (previously known as MIRC) on Ubuntu Linux2013-04-27T22:10:22Z<p>Tim phillips: moved (depreciated) Install or upgrade RSNA TFS (previously known as MIRC) on Ubuntu Linux to (depreciated) empty page - TJP</p>
<hr />
<div>#REDIRECT [[(depreciated) empty page - TJP]]</div>Tim phillipshttp://mircwiki.rsna.org/index.php?title=(depreciated)_empty_page_-_TJP&diff=7326(depreciated) empty page - TJP2013-04-27T22:10:22Z<p>Tim phillips: moved (depreciated) Install or upgrade RSNA TFS (previously known as MIRC) on Ubuntu Linux to (depreciated) empty page - TJP</p>
<hr />
<div></div>Tim phillipshttp://mircwiki.rsna.org/index.php?title=(depreciated)_empty_page_-_TJP&diff=7325(depreciated) empty page - TJP2013-04-27T22:10:05Z<p>Tim phillips: Blanked the page</p>
<hr />
<div></div>Tim phillipshttp://mircwiki.rsna.org/index.php?title=Install_or_upgrade_RSNA_TFS_(previously_known_as_MIRC)_on_Ubuntu_Linux&diff=7324Install or upgrade RSNA TFS (previously known as MIRC) on Ubuntu Linux2013-04-27T22:08:18Z<p>Tim phillips: moved Install or upgrade RSNA TFS (previously known as MIRC) on Ubuntu Linux to (depreciated) Install or upgrade RSNA TFS (previously known as MIRC) on Ubuntu Linux: depreciated</p>
<hr />
<div>#REDIRECT [[(depreciated) Install or upgrade RSNA TFS (previously known as MIRC) on Ubuntu Linux]]</div>Tim phillipshttp://mircwiki.rsna.org/index.php?title=(depreciated)_empty_page_-_TJP&diff=7323(depreciated) empty page - TJP2013-04-27T22:08:18Z<p>Tim phillips: moved Install or upgrade RSNA TFS (previously known as MIRC) on Ubuntu Linux to (depreciated) Install or upgrade RSNA TFS (previously known as MIRC) on Ubuntu Linux: depreciated</p>
<hr />
<div>== How to install RSNA TFS (previously known as MIRC) on Ubuntu Linux ==<br />
* Download the script<br />
wget http://timphillips.net/RSNA-TFS/install-RSNA-TFS<br />
* Make it executable<br />
chmod 777 ./install-RSNA-TFS<br />
* Run the script<br />
./install-RSNA-TFS<br />
* Point your browser to the machine you just installed it on and RSNA TFS should be up and running.<br />
* This script will also upgrade a previous "Tim Phillips" installation of RSNA-TFS or MIRC-Zn so it can be used again when the RSNA code is updated.<br />
<br />
== Commands to control or upgrde the TFS web service ==<br />
To start RSNA-TFS (it will start automatically when the machine boots)<br />
start RSNA-TFS<br />
To stop RSNA-TFS:<br />
stop RSNA-TFS<br />
To check if RSNA-TFS is running:<br />
status RSNA-TFS<br />
To restart RSNA-TFS:<br />
restart RSNA-TFS<br />
To upgrade RSNA-TFS with the latest RSNA-TFS code from RSNA (and preserve all your data):<br />
upgrade-RSNA-TFS<br />
==What the script does (feel free to look at it before you run it)==<br />
<br />
* Checks you're running it as root or using sudo.<br />
* Checks you're running a recent version of Ubuntu<br />
* Stops the RSNA-TFS service if its running.<br />
* Updates the Ubuntu repos.<br />
* Checks which chipset you're running.<br />
* Installs OpenJDK Java.<br />
* Downloads the appropriate JAI ImageIO files installs JAI ImageIO.<br />
* Downloads the latest version of RSNA-TFS.<br />
* Writes an upstart script (so that CTP/RSNA-TFS will be run as a service automatically).<br />
* Installs RSNA RSNA-TFS.<br />
<br />
==Choosing between Ubuntu Desktop and Ubuntu Server for a RSNA-TFS install==<br />
* Ubuntu Desktop<br />
** Easier (very easy) if you're new to Linux.<br />
** May be very slightly slower but on modern hardware you are unlikely to notice the difference.<br />
* Ubuntu Server<br />
** Makes more sense - RSNA-TFS is a web service after all.<br />
** Will be leaner and faster.<br />
** Can run on a headless server or virtual machine.<br />
** [http://turnkeylinux.org TurnkeyLinux] is a very good Ubuntu install for this purpose.<br />
<br />
<div align="right">''Any questions or comments please email me at timothy.john.phillips@gmail.com - Tim Phillips.''</div></div>Tim phillipshttp://mircwiki.rsna.org/index.php?title=Install_Java_Advanced_Imaging_ImageIO_Tools_on_a_Linux_Machine&diff=7322Install Java Advanced Imaging ImageIO Tools on a Linux Machine2013-04-27T22:05:48Z<p>Tim phillips: </p>
<hr />
<div>=== Important ===<br />
The binary (.bin) files at the Oracle / Sun website do not work on modern versions of the linux kernel / ubuntu / debian distros.<br />
<br />
== How to install Java Advanced Imaging ImageIO Tools on Ubuntu Linux ==<br />
* Download the script<br />
wget https://install-java-jai-imageio.googlecode.com/files/install-java-jai-imageio<br />
* If you are a normal user (ie not root) on ubuntu<br />
sudo bash ./install-java-jai-imageio <br />
* If root user<br />
bash ./install-java-jai-imageio <br />
<br />
==What the script does (feel free to have a look before you run it)==<br />
<br />
* Checks you're running it as root or using sudo.<br />
* Updates the Ubuntu repos if need be.<br />
* Checks which chipset you're running.<br />
* (If Oracle / Sun Java 6 isn't already installed)<br />
** Answers the Java installation questions in advance.<br />
** Installs the default java for your distro.<br />
* Downloads the appropriate JAI ImageIO files installs JAI ImageIO.<br />
<br />
<div align="right">''Any questions or comments please email me at timothy.john.phillips@gmail.com - Tim Phillips.''</div></div>Tim phillipshttp://mircwiki.rsna.org/index.php?title=(depreciated)_empty_page_-_TJP&diff=5974(depreciated) empty page - TJP2011-11-21T16:37:14Z<p>Tim phillips: /* What the script does (feel free to look at it before you run it) */</p>
<hr />
<div>== How to install RSNA TFS (previously known as MIRC) on Ubuntu Linux ==<br />
* Download the script<br />
wget http://timphillips.net/RSNA-TFS/install-RSNA-TFS<br />
* Make it executable<br />
chmod 777 ./install-RSNA-TFS<br />
* Run the script<br />
./install-RSNA-TFS<br />
* Point your browser to the machine you just installed it on and RSNA TFS should be up and running.<br />
* This script will also upgrade a previous "Tim Phillips" installation of RSNA-TFS or MIRC-Zn so it can be used again when the RSNA code is updated.<br />
<br />
== Commands to control or upgrde the TFS web service ==<br />
To start RSNA-TFS (it will start automatically when the machine boots)<br />
start RSNA-TFS<br />
To stop RSNA-TFS:<br />
stop RSNA-TFS<br />
To check if RSNA-TFS is running:<br />
status RSNA-TFS<br />
To restart RSNA-TFS:<br />
restart RSNA-TFS<br />
To upgrade RSNA-TFS with the latest RSNA-TFS code from RSNA (and preserve all your data):<br />
upgrade-RSNA-TFS<br />
==What the script does (feel free to look at it before you run it)==<br />
<br />
* Checks you're running it as root or using sudo.<br />
* Checks you're running a recent version of Ubuntu<br />
* Stops the RSNA-TFS service if its running.<br />
* Updates the Ubuntu repos.<br />
* Checks which chipset you're running.<br />
* Installs OpenJDK Java.<br />
* Downloads the appropriate JAI ImageIO files installs JAI ImageIO.<br />
* Downloads the latest version of RSNA-TFS.<br />
* Writes an upstart script (so that CTP/RSNA-TFS will be run as a service automatically).<br />
* Installs RSNA RSNA-TFS.<br />
<br />
==Choosing between Ubuntu Desktop and Ubuntu Server for a RSNA-TFS install==<br />
* Ubuntu Desktop<br />
** Easier (very easy) if you're new to Linux.<br />
** May be very slightly slower but on modern hardware you are unlikely to notice the difference.<br />
* Ubuntu Server<br />
** Makes more sense - RSNA-TFS is a web service after all.<br />
** Will be leaner and faster.<br />
** Can run on a headless server or virtual machine.<br />
** [http://turnkeylinux.org TurnkeyLinux] is a very good Ubuntu install for this purpose.<br />
<br />
<div align="right">''Any questions or comments please email me at timothy.john.phillips@gmail.com - Tim Phillips.''</div></div>Tim phillipshttp://mircwiki.rsna.org/index.php?title=Install_or_upgrade_RSNA_TFS_(Formally_known_as_MIRC)_on_Ubuntu_Linux&diff=5973Install or upgrade RSNA TFS (Formally known as MIRC) on Ubuntu Linux2011-11-19T15:50:32Z<p>Tim phillips: moved Install or upgrade RSNA TFS (Formally known as MIRC) on Ubuntu Linux to Install or upgrade RSNA TFS (previously known as MIRC) on Ubuntu Linux</p>
<hr />
<div>#REDIRECT [[Install or upgrade RSNA TFS (previously known as MIRC) on Ubuntu Linux]]</div>Tim phillipshttp://mircwiki.rsna.org/index.php?title=(depreciated)_empty_page_-_TJP&diff=5972(depreciated) empty page - TJP2011-11-19T15:50:32Z<p>Tim phillips: moved Install or upgrade RSNA TFS (Formally known as MIRC) on Ubuntu Linux to Install or upgrade RSNA TFS (previously known as MIRC) on Ubuntu Linux</p>
<hr />
<div>== How to install RSNA TFS (previously known as MIRC) on Ubuntu Linux ==<br />
* Download the script<br />
wget http://timphillips.net/RSNA-TFS/install-RSNA-TFS<br />
* Make it executable<br />
chmod 777 ./install-RSNA-TFS<br />
* Run the script<br />
./install-RSNA-TFS<br />
* Point your browser to the machine you just installed it on and RSNA TFS should be up and running.<br />
* This script will also upgrade a previous "Tim Phillips" installation of RSNA-TFS or MIRC-Zn so it can be used again when the RSNA code is updated.<br />
<br />
== Commands to control or upgrde the TFS web service ==<br />
To start RSNA-TFS (it will start automatically when the machine boots)<br />
start RSNA-TFS<br />
To stop RSNA-TFS:<br />
stop RSNA-TFS<br />
To check if RSNA-TFS is running:<br />
status RSNA-TFS<br />
To restart RSNA-TFS:<br />
restart RSNA-TFS<br />
To upgrade RSNA-TFS with the latest RSNA-TFS code from RSNA (and preserve all your data):<br />
upgrade-RSNA-TFS<br />
==What the script does (feel free to look at it before you run it)==<br />
<br />
* Checks you're running it as root or using sudo.<br />
* Stops the RSNA-TFS service if its running.<br />
* Updates the Ubuntu repos if need be.<br />
* Checks which chipset you're running.<br />
* (If Oracle / Sun Java 6 isn't already installed)<br />
** Answers the Java installation questions in advance.<br />
** Installs Oracle / Sun Java.<br />
* Downloads the appropriate JAI ImageIO files installs JAI ImageIO.<br />
* Installs a few other necessary libraries if they're not already installed.<br />
* Downloads the latest version of RSNA-TFS.<br />
* Writes an upstart script (so that CTP/RSNA-TFS will be run as a service automatically).<br />
* Installs RSNA RSNA-TFS.<br />
<br />
==Choosing between Ubuntu Desktop and Ubuntu Server for a RSNA-TFS install==<br />
* Ubuntu Desktop<br />
** Easier (very easy) if you're new to Linux.<br />
** May be very slightly slower but on modern hardware you are unlikely to notice the difference.<br />
* Ubuntu Server<br />
** Makes more sense - RSNA-TFS is a web service after all.<br />
** Will be leaner and faster.<br />
** Can run on a headless server or virtual machine.<br />
** [http://turnkeylinux.org TurnkeyLinux] is a very good Ubuntu install for this purpose.<br />
<br />
<div align="right">''Any questions or comments please email me at timothy.john.phillips@gmail.com - Tim Phillips.''</div></div>Tim phillipshttp://mircwiki.rsna.org/index.php?title=(depreciated)_empty_page_-_TJP&diff=5971(depreciated) empty page - TJP2011-11-19T15:50:22Z<p>Tim phillips: </p>
<hr />
<div>== How to install RSNA TFS (previously known as MIRC) on Ubuntu Linux ==<br />
* Download the script<br />
wget http://timphillips.net/RSNA-TFS/install-RSNA-TFS<br />
* Make it executable<br />
chmod 777 ./install-RSNA-TFS<br />
* Run the script<br />
./install-RSNA-TFS<br />
* Point your browser to the machine you just installed it on and RSNA TFS should be up and running.<br />
* This script will also upgrade a previous "Tim Phillips" installation of RSNA-TFS or MIRC-Zn so it can be used again when the RSNA code is updated.<br />
<br />
== Commands to control or upgrde the TFS web service ==<br />
To start RSNA-TFS (it will start automatically when the machine boots)<br />
start RSNA-TFS<br />
To stop RSNA-TFS:<br />
stop RSNA-TFS<br />
To check if RSNA-TFS is running:<br />
status RSNA-TFS<br />
To restart RSNA-TFS:<br />
restart RSNA-TFS<br />
To upgrade RSNA-TFS with the latest RSNA-TFS code from RSNA (and preserve all your data):<br />
upgrade-RSNA-TFS<br />
==What the script does (feel free to look at it before you run it)==<br />
<br />
* Checks you're running it as root or using sudo.<br />
* Stops the RSNA-TFS service if its running.<br />
* Updates the Ubuntu repos if need be.<br />
* Checks which chipset you're running.<br />
* (If Oracle / Sun Java 6 isn't already installed)<br />
** Answers the Java installation questions in advance.<br />
** Installs Oracle / Sun Java.<br />
* Downloads the appropriate JAI ImageIO files installs JAI ImageIO.<br />
* Installs a few other necessary libraries if they're not already installed.<br />
* Downloads the latest version of RSNA-TFS.<br />
* Writes an upstart script (so that CTP/RSNA-TFS will be run as a service automatically).<br />
* Installs RSNA RSNA-TFS.<br />
<br />
==Choosing between Ubuntu Desktop and Ubuntu Server for a RSNA-TFS install==<br />
* Ubuntu Desktop<br />
** Easier (very easy) if you're new to Linux.<br />
** May be very slightly slower but on modern hardware you are unlikely to notice the difference.<br />
* Ubuntu Server<br />
** Makes more sense - RSNA-TFS is a web service after all.<br />
** Will be leaner and faster.<br />
** Can run on a headless server or virtual machine.<br />
** [http://turnkeylinux.org TurnkeyLinux] is a very good Ubuntu install for this purpose.<br />
<br />
<div align="right">''Any questions or comments please email me at timothy.john.phillips@gmail.com - Tim Phillips.''</div></div>Tim phillipshttp://mircwiki.rsna.org/index.php?title=(depreciated)_empty_page_-_TJP&diff=5970(depreciated) empty page - TJP2011-11-19T15:47:27Z<p>Tim phillips: /* How to install RSNA TFS (formally known as MIRC) on Ubuntu Linux */</p>
<hr />
<div>== How to install RSNA TFS (formally known as MIRC) on Ubuntu Linux ==<br />
* Download the script<br />
wget http://timphillips.net/RSNA-TFS/install-RSNA-TFS<br />
* Make it executable<br />
chmod 777 ./install-RSNA-TFS<br />
* Run the script<br />
./install-RSNA-TFS<br />
* Point your browser to the machine you just installed it on and RSNA TFS should be up and running.<br />
* This script will also upgrade a previous "Tim Phillips" installation of RSNA-TFS or MIRC-Zn so it can be used again when the RSNA code is updated.<br />
<br />
== Commands to control or upgrde the TFS web service ==<br />
To start RSNA-TFS (it will start automatically when the machine boots)<br />
start RSNA-TFS<br />
To stop RSNA-TFS:<br />
stop RSNA-TFS<br />
To check if RSNA-TFS is running:<br />
status RSNA-TFS<br />
To restart RSNA-TFS:<br />
restart RSNA-TFS<br />
To upgrade RSNA-TFS with the latest RSNA-TFS code from RSNA (and preserve all your data):<br />
upgrade-RSNA-TFS<br />
==What the script does (feel free to look at it before you run it)==<br />
<br />
* Checks you're running it as root or using sudo.<br />
* Stops the RSNA-TFS service if its running.<br />
* Updates the Ubuntu repos if need be.<br />
* Checks which chipset you're running.<br />
* (If Oracle / Sun Java 6 isn't already installed)<br />
** Answers the Java installation questions in advance.<br />
** Installs Oracle / Sun Java.<br />
* Downloads the appropriate JAI ImageIO files installs JAI ImageIO.<br />
* Installs a few other necessary libraries if they're not already installed.<br />
* Downloads the latest version of RSNA-TFS.<br />
* Writes an upstart script (so that CTP/RSNA-TFS will be run as a service automatically).<br />
* Installs RSNA RSNA-TFS.<br />
<br />
==Choosing between Ubuntu Desktop and Ubuntu Server for a RSNA-TFS install==<br />
* Ubuntu Desktop<br />
** Easier (very easy) if you're new to Linux.<br />
** May be very slightly slower but on modern hardware you are unlikely to notice the difference.<br />
* Ubuntu Server<br />
** Makes more sense - RSNA-TFS is a web service after all.<br />
** Will be leaner and faster.<br />
** Can run on a headless server or virtual machine.<br />
** [http://turnkeylinux.org TurnkeyLinux] is a very good Ubuntu install for this purpose.<br />
<br />
<div align="right">''Any questions or comments please email me at timothy.john.phillips@gmail.com - Tim Phillips.''</div></div>Tim phillipshttp://mircwiki.rsna.org/index.php?title=(depreciated)_empty_page_-_TJP&diff=5969(depreciated) empty page - TJP2011-11-19T15:47:04Z<p>Tim phillips: /* How to install RSNA TFS (formally known as MIRC) on Ubuntu Linux */</p>
<hr />
<div>== How to install RSNA TFS (formally known as MIRC) on Ubuntu Linux ==<br />
* Download the script<br />
wget http://timphillips.net/RSNA-TFS/install-RSNA-TFS<br />
* Make it executable<br />
chmod 777 ./install-TFS<br />
* Run the script<br />
./install-TFS<br />
* Point your browser to the machine you just installed it on and RSNA TFS should be up and running.<br />
* This script will also upgrade a previous "Tim Phillips" installation of RSNA-TFS or MIRC-Zn so it can be used again when the RSNA code is updated.<br />
<br />
== Commands to control or upgrde the TFS web service ==<br />
To start RSNA-TFS (it will start automatically when the machine boots)<br />
start RSNA-TFS<br />
To stop RSNA-TFS:<br />
stop RSNA-TFS<br />
To check if RSNA-TFS is running:<br />
status RSNA-TFS<br />
To restart RSNA-TFS:<br />
restart RSNA-TFS<br />
To upgrade RSNA-TFS with the latest RSNA-TFS code from RSNA (and preserve all your data):<br />
upgrade-RSNA-TFS<br />
==What the script does (feel free to look at it before you run it)==<br />
<br />
* Checks you're running it as root or using sudo.<br />
* Stops the RSNA-TFS service if its running.<br />
* Updates the Ubuntu repos if need be.<br />
* Checks which chipset you're running.<br />
* (If Oracle / Sun Java 6 isn't already installed)<br />
** Answers the Java installation questions in advance.<br />
** Installs Oracle / Sun Java.<br />
* Downloads the appropriate JAI ImageIO files installs JAI ImageIO.<br />
* Installs a few other necessary libraries if they're not already installed.<br />
* Downloads the latest version of RSNA-TFS.<br />
* Writes an upstart script (so that CTP/RSNA-TFS will be run as a service automatically).<br />
* Installs RSNA RSNA-TFS.<br />
<br />
==Choosing between Ubuntu Desktop and Ubuntu Server for a RSNA-TFS install==<br />
* Ubuntu Desktop<br />
** Easier (very easy) if you're new to Linux.<br />
** May be very slightly slower but on modern hardware you are unlikely to notice the difference.<br />
* Ubuntu Server<br />
** Makes more sense - RSNA-TFS is a web service after all.<br />
** Will be leaner and faster.<br />
** Can run on a headless server or virtual machine.<br />
** [http://turnkeylinux.org TurnkeyLinux] is a very good Ubuntu install for this purpose.<br />
<br />
<div align="right">''Any questions or comments please email me at timothy.john.phillips@gmail.com - Tim Phillips.''</div></div>Tim phillipshttp://mircwiki.rsna.org/index.php?title=(depreciated)_empty_page_-_TJP&diff=5968(depreciated) empty page - TJP2011-11-19T15:39:08Z<p>Tim phillips: /* How to install RSNA TFS (formally known as MIRC) on Ubuntu Linux */</p>
<hr />
<div>== How to install RSNA TFS (formally known as MIRC) on Ubuntu Linux ==<br />
* Download the script<br />
wget http://timphillips.net/RSNA-TFS/install-TFS<br />
* Make it executable<br />
chmod 777 ./install-TFS<br />
* Run the script<br />
./install-TFS<br />
* Point your browser to the machine you just installed it on and RSNA TFS should be up and running.<br />
* This script will also upgrade a previous "Tim Phillips" installation of RSNA-TFS or MIRC-Zn so it can be used again when the RSNA code is updated.<br />
<br />
== Commands to control or upgrde the TFS web service ==<br />
To start RSNA-TFS (it will start automatically when the machine boots)<br />
start RSNA-TFS<br />
To stop RSNA-TFS:<br />
stop RSNA-TFS<br />
To check if RSNA-TFS is running:<br />
status RSNA-TFS<br />
To restart RSNA-TFS:<br />
restart RSNA-TFS<br />
To upgrade RSNA-TFS with the latest RSNA-TFS code from RSNA (and preserve all your data):<br />
upgrade-RSNA-TFS<br />
==What the script does (feel free to look at it before you run it)==<br />
<br />
* Checks you're running it as root or using sudo.<br />
* Stops the RSNA-TFS service if its running.<br />
* Updates the Ubuntu repos if need be.<br />
* Checks which chipset you're running.<br />
* (If Oracle / Sun Java 6 isn't already installed)<br />
** Answers the Java installation questions in advance.<br />
** Installs Oracle / Sun Java.<br />
* Downloads the appropriate JAI ImageIO files installs JAI ImageIO.<br />
* Installs a few other necessary libraries if they're not already installed.<br />
* Downloads the latest version of RSNA-TFS.<br />
* Writes an upstart script (so that CTP/RSNA-TFS will be run as a service automatically).<br />
* Installs RSNA RSNA-TFS.<br />
<br />
==Choosing between Ubuntu Desktop and Ubuntu Server for a RSNA-TFS install==<br />
* Ubuntu Desktop<br />
** Easier (very easy) if you're new to Linux.<br />
** May be very slightly slower but on modern hardware you are unlikely to notice the difference.<br />
* Ubuntu Server<br />
** Makes more sense - RSNA-TFS is a web service after all.<br />
** Will be leaner and faster.<br />
** Can run on a headless server or virtual machine.<br />
** [http://turnkeylinux.org TurnkeyLinux] is a very good Ubuntu install for this purpose.<br />
<br />
<div align="right">''Any questions or comments please email me at timothy.john.phillips@gmail.com - Tim Phillips.''</div></div>Tim phillipshttp://mircwiki.rsna.org/index.php?title=Install_or_upgrade_MIRC_Zn_on_Ubuntu_Linux&diff=5967Install or upgrade MIRC Zn on Ubuntu Linux2011-11-19T15:37:08Z<p>Tim phillips: moved Install or upgrade MIRC Zn on Ubuntu Linux to Install or upgrade RSNA TFS (Formally known as MIRC) on Ubuntu Linux: RSNA changed the name of MIRC to TFS</p>
<hr />
<div>#REDIRECT [[Install or upgrade RSNA TFS (Formally known as MIRC) on Ubuntu Linux]]</div>Tim phillipshttp://mircwiki.rsna.org/index.php?title=(depreciated)_empty_page_-_TJP&diff=5966(depreciated) empty page - TJP2011-11-19T15:37:08Z<p>Tim phillips: moved Install or upgrade MIRC Zn on Ubuntu Linux to Install or upgrade RSNA TFS (Formally known as MIRC) on Ubuntu Linux: RSNA changed the name of MIRC to TFS</p>
<hr />
<div>== How to install RSNA TFS (formally known as MIRC) on Ubuntu Linux ==<br />
* Download the script<br />
wget http://timphillips.net/RSNA-TFS/install-TFS<br />
* Make it executable<br />
chmod 777 ./install-TFS<br />
* Run the script<br />
./install-TFS<br />
* Point your browser to the machine you just installed it on and RSNA TFS should be up and running.<br />
* This script will also upgrade a previous "Tim Phillips" installation of RSNA-TFS or RSNA TFA so it can be used again when the RSNA code is updated.<br />
<br />
== Commands to control or upgrde the TFS web service ==<br />
To start RSNA-TFS (it will start automatically when the machine boots)<br />
start RSNA-TFS<br />
To stop RSNA-TFS:<br />
stop RSNA-TFS<br />
To check if RSNA-TFS is running:<br />
status RSNA-TFS<br />
To restart RSNA-TFS:<br />
restart RSNA-TFS<br />
To upgrade RSNA-TFS with the latest RSNA-TFS code from RSNA (and preserve all your data):<br />
upgrade-RSNA-TFS<br />
==What the script does (feel free to look at it before you run it)==<br />
<br />
* Checks you're running it as root or using sudo.<br />
* Stops the RSNA-TFS service if its running.<br />
* Updates the Ubuntu repos if need be.<br />
* Checks which chipset you're running.<br />
* (If Oracle / Sun Java 6 isn't already installed)<br />
** Answers the Java installation questions in advance.<br />
** Installs Oracle / Sun Java.<br />
* Downloads the appropriate JAI ImageIO files installs JAI ImageIO.<br />
* Installs a few other necessary libraries if they're not already installed.<br />
* Downloads the latest version of RSNA-TFS.<br />
* Writes an upstart script (so that CTP/RSNA-TFS will be run as a service automatically).<br />
* Installs RSNA RSNA-TFS.<br />
<br />
==Choosing between Ubuntu Desktop and Ubuntu Server for a RSNA-TFS install==<br />
* Ubuntu Desktop<br />
** Easier (very easy) if you're new to Linux.<br />
** May be very slightly slower but on modern hardware you are unlikely to notice the difference.<br />
* Ubuntu Server<br />
** Makes more sense - RSNA-TFS is a web service after all.<br />
** Will be leaner and faster.<br />
** Can run on a headless server or virtual machine.<br />
** [http://turnkeylinux.org TurnkeyLinux] is a very good Ubuntu install for this purpose.<br />
<br />
<div align="right">''Any questions or comments please email me at timothy.john.phillips@gmail.com - Tim Phillips.''</div></div>Tim phillipshttp://mircwiki.rsna.org/index.php?title=(depreciated)_empty_page_-_TJP&diff=5965(depreciated) empty page - TJP2011-11-19T15:36:34Z<p>Tim phillips: </p>
<hr />
<div>== How to install RSNA TFS (formally known as MIRC) on Ubuntu Linux ==<br />
* Download the script<br />
wget http://timphillips.net/RSNA-TFS/install-TFS<br />
* Make it executable<br />
chmod 777 ./install-TFS<br />
* Run the script<br />
./install-TFS<br />
* Point your browser to the machine you just installed it on and RSNA TFS should be up and running.<br />
* This script will also upgrade a previous "Tim Phillips" installation of RSNA-TFS or RSNA TFA so it can be used again when the RSNA code is updated.<br />
<br />
== Commands to control or upgrde the TFS web service ==<br />
To start RSNA-TFS (it will start automatically when the machine boots)<br />
start RSNA-TFS<br />
To stop RSNA-TFS:<br />
stop RSNA-TFS<br />
To check if RSNA-TFS is running:<br />
status RSNA-TFS<br />
To restart RSNA-TFS:<br />
restart RSNA-TFS<br />
To upgrade RSNA-TFS with the latest RSNA-TFS code from RSNA (and preserve all your data):<br />
upgrade-RSNA-TFS<br />
==What the script does (feel free to look at it before you run it)==<br />
<br />
* Checks you're running it as root or using sudo.<br />
* Stops the RSNA-TFS service if its running.<br />
* Updates the Ubuntu repos if need be.<br />
* Checks which chipset you're running.<br />
* (If Oracle / Sun Java 6 isn't already installed)<br />
** Answers the Java installation questions in advance.<br />
** Installs Oracle / Sun Java.<br />
* Downloads the appropriate JAI ImageIO files installs JAI ImageIO.<br />
* Installs a few other necessary libraries if they're not already installed.<br />
* Downloads the latest version of RSNA-TFS.<br />
* Writes an upstart script (so that CTP/RSNA-TFS will be run as a service automatically).<br />
* Installs RSNA RSNA-TFS.<br />
<br />
==Choosing between Ubuntu Desktop and Ubuntu Server for a RSNA-TFS install==<br />
* Ubuntu Desktop<br />
** Easier (very easy) if you're new to Linux.<br />
** May be very slightly slower but on modern hardware you are unlikely to notice the difference.<br />
* Ubuntu Server<br />
** Makes more sense - RSNA-TFS is a web service after all.<br />
** Will be leaner and faster.<br />
** Can run on a headless server or virtual machine.<br />
** [http://turnkeylinux.org TurnkeyLinux] is a very good Ubuntu install for this purpose.<br />
<br />
<div align="right">''Any questions or comments please email me at timothy.john.phillips@gmail.com - Tim Phillips.''</div></div>Tim phillipshttp://mircwiki.rsna.org/index.php?title=(depreciated)_empty_page_-_TJP&diff=5964(depreciated) empty page - TJP2011-11-19T15:29:26Z<p>Tim phillips: /* How to install MIRC-Zn on Ubuntu Linux */</p>
<hr />
<div>== How to install RSNA TFS (formally known as MIRC-Zn) on Ubuntu Linux ==<br />
* Download the script<br />
wget http://timphillips.net/mirc/install-TFS<br />
* Make it executable<br />
chmod 777 ./install-TFS<br />
* Run the script<br />
./install-TFS<br />
* Point your browser to the machine you just installed it on and RSNA TFS should be up and running.<br />
* This script will also upgrade a previous "Tim Phillips" installation of MIRC-Zn or RSNA TFA so it can be used again when the RSNA code is updated.<br />
<br />
== Commands to control or upgrde the MIRC web service ==<br />
To start MIRC (it will start automatically when the machine boots)<br />
start MIRC-Zn<br />
To stop MIRC:<br />
stop MIRC-Zn<br />
To check if MIRC is running:<br />
status MIRC-Zn<br />
To restart MIRC:<br />
restart MIRC-Zn<br />
To upgrade MIRC with the latest MIRC-Zn code from RSNA (and preserve all your data):<br />
upgrade-mirc<br />
==What the script does (feel free to look at it before you run it)==<br />
<br />
* Checks you're running it as root or using sudo.<br />
* Stops the MIRC-Zn service if its running.<br />
* Updates the Ubuntu repos if need be.<br />
* Checks which chipset you're running.<br />
* (If Oracle / Sun Java 6 isn't already installed)<br />
** Answers the Java installation questions in advance.<br />
** Installs Oracle / Sun Java.<br />
* Downloads the appropriate JAI ImageIO files installs JAI ImageIO.<br />
* Installs a few other necessary libraries if they're not already installed.<br />
* Downloads the latest version of MIRC-Zn.<br />
* Writes an upstart script (so that CTP/MIRC will be run as a service automatically).<br />
* Installs RSNA MIRC.<br />
<br />
==Choosing between Ubuntu Desktop and Ubuntu Server for a MIRC install==<br />
* Ubuntu Desktop<br />
** Easier (very easy) if you're new to Linux.<br />
** May be very slightly slower but on modern hardware you are unlikely to notice the difference.<br />
* Ubuntu Server<br />
** Makes more sense - MIRC is a web service after all.<br />
** Will be leaner and faster.<br />
** Can run on a headless server or virtual machine.<br />
** [http://turnkeylinux.org TurnkeyLinux] is a very good Ubuntu install for this purpose.<br />
<br />
<div align="right">''Any questions or comments please email me at timothy.john.phillips@gmail.com - Tim Phillips.''</div></div>Tim phillipshttp://mircwiki.rsna.org/index.php?title=Running_CTP_as_a_Linux_Service&diff=5910Running CTP as a Linux Service2011-09-12T11:30:00Z<p>Tim phillips: </p>
<hr />
<div>=== Suggestion ===<br />
<br />
* This is a small part of what the script at [[Install or upgrade MIRC Zn on Ubuntu Linux]] will do automatically for you.<br />
* If you want to install MIRC on a Linux machine it is recommended you head the [[Install or upgrade MIRC Zn on Ubuntu Linux]] page.<br />
* If you are here because you want to run an existing Linux installation of CTP or MIRC as a service, continue reading.<br />
<br />
=== Using an UpStart Script ===<br />
Ubuntu and many other Linux distros use UpStart to run services.<br />
The below example assumes CTP is installed at <br />
<br />
/usr/share/CTP/<br />
<br />
You can modify it to suit a different locations.<br />
<br />
Cut and paste the below code <br />
<br />
description "CTP Service on Linux"<br />
author "Tim Phillips <timothy.john.phillips@gmail.com>"<br />
<br />
start on (local-filesystems and net-device-up IFACE!=lo)<br />
stop on stopping network-services<br />
<br />
respawn<br />
<br />
expect fork<br />
<br />
script<br />
cd /usr/share/CTP/<br />
java -jar ./CTP-runner.jar<br />
end script<br />
<br />
into a file named<br />
<br />
/etc/init/CTP.conf<br />
<br />
== Commands to control the CTP service ==<br />
To start CTP (it will start automatically when the machine boots)<br />
start CTP<br />
To stop CTP:<br />
stop CTP<br />
To check if CTP is running:<br />
status CTP<br />
To restart CTP:<br />
restart CTP<br />
<br />
<div align="right">''Any questions or comments please email me at timothy.john.phillips@gmail.com - Tim Phillips.''</div></div>Tim phillipshttp://mircwiki.rsna.org/index.php?title=(depreciated)_empty_page_-_TJP&diff=5909(depreciated) empty page - TJP2011-09-10T08:31:02Z<p>Tim phillips: /* What the script does (feel free to look at it before you run it) */</p>
<hr />
<div>== How to install MIRC-Zn on Ubuntu Linux ==<br />
* Download the script<br />
wget http://timphillips.net/mirc/install-MIRC-Zn<br />
* Make it executable<br />
chmod 777 ./install-MIRC-Zn<br />
* Run the script<br />
./install-MIRC-Zn<br />
* Point your browser to the machine you just installed it on and MIRC should be up and running.<br />
* This script will also upgrade a previous "Tim Phillips" installation of MIRC-Zn so it can be used again when the RSNA code is updated.<br />
== Commands to control or upgrde the MIRC web service ==<br />
To start MIRC (it will start automatically when the machine boots)<br />
start MIRC-Zn<br />
To stop MIRC:<br />
stop MIRC-Zn<br />
To check if MIRC is running:<br />
status MIRC-Zn<br />
To restart MIRC:<br />
restart MIRC-Zn<br />
To upgrade MIRC with the latest MIRC-Zn code from RSNA (and preserve all your data):<br />
upgrade-mirc<br />
==What the script does (feel free to look at it before you run it)==<br />
<br />
* Checks you're running it as root or using sudo.<br />
* Stops the MIRC-Zn service if its running.<br />
* Updates the Ubuntu repos if need be.<br />
* Checks which chipset you're running.<br />
* (If Oracle / Sun Java 6 isn't already installed)<br />
** Answers the Java installation questions in advance.<br />
** Installs Oracle / Sun Java.<br />
* Downloads the appropriate JAI ImageIO files installs JAI ImageIO.<br />
* Installs a few other necessary libraries if they're not already installed.<br />
* Downloads the latest version of MIRC-Zn.<br />
* Writes an upstart script (so that CTP/MIRC will be run as a service automatically).<br />
* Installs RSNA MIRC.<br />
<br />
==Choosing between Ubuntu Desktop and Ubuntu Server for a MIRC install==<br />
* Ubuntu Desktop<br />
** Easier (very easy) if you're new to Linux.<br />
** May be very slightly slower but on modern hardware you are unlikely to notice the difference.<br />
* Ubuntu Server<br />
** Makes more sense - MIRC is a web service after all.<br />
** Will be leaner and faster.<br />
** Can run on a headless server or virtual machine.<br />
** [http://turnkeylinux.org TurnkeyLinux] is a very good Ubuntu install for this purpose.<br />
<br />
<div align="right">''Any questions or comments please email me at timothy.john.phillips@gmail.com - Tim Phillips.''</div></div>Tim phillipshttp://mircwiki.rsna.org/index.php?title=(depreciated)_empty_page_-_TJP&diff=5908(depreciated) empty page - TJP2011-09-10T08:30:40Z<p>Tim phillips: </p>
<hr />
<div>== How to install MIRC-Zn on Ubuntu Linux ==<br />
* Download the script<br />
wget http://timphillips.net/mirc/install-MIRC-Zn<br />
* Make it executable<br />
chmod 777 ./install-MIRC-Zn<br />
* Run the script<br />
./install-MIRC-Zn<br />
* Point your browser to the machine you just installed it on and MIRC should be up and running.<br />
* This script will also upgrade a previous "Tim Phillips" installation of MIRC-Zn so it can be used again when the RSNA code is updated.<br />
== Commands to control or upgrde the MIRC web service ==<br />
To start MIRC (it will start automatically when the machine boots)<br />
start MIRC-Zn<br />
To stop MIRC:<br />
stop MIRC-Zn<br />
To check if MIRC is running:<br />
status MIRC-Zn<br />
To restart MIRC:<br />
restart MIRC-Zn<br />
To upgrade MIRC with the latest MIRC-Zn code from RSNA (and preserve all your data):<br />
upgrade-mirc<br />
==What the script does (feel free to look at it before you run it)==<br />
<br />
* Checks you're running it as root or using sudo.<br />
* Stops the MIRC-Zn service if its running.<br />
* Updates the Ubuntu repos if need be.<br />
* Checks which chipset you're running.<br />
* (If Oracle / Sun Java 6 isn't already installed)<br />
** Answers the Java installation questions in advance.<br />
** Installs Oracle / Sun Java.<br />
* Downloads the appropriate JAI ImageIO files installs JAI ImageIO.<br />
* Installs a few other necessary applications if they're not already installed.<br />
* Downloads the latest version of MIRC-Zn.<br />
* Writes an upstart script (so that CTP/MIRC will be run as a service automatically).<br />
* Installs RSNA MIRC.<br />
<br />
==Choosing between Ubuntu Desktop and Ubuntu Server for a MIRC install==<br />
* Ubuntu Desktop<br />
** Easier (very easy) if you're new to Linux.<br />
** May be very slightly slower but on modern hardware you are unlikely to notice the difference.<br />
* Ubuntu Server<br />
** Makes more sense - MIRC is a web service after all.<br />
** Will be leaner and faster.<br />
** Can run on a headless server or virtual machine.<br />
** [http://turnkeylinux.org TurnkeyLinux] is a very good Ubuntu install for this purpose.<br />
<br />
<div align="right">''Any questions or comments please email me at timothy.john.phillips@gmail.com - Tim Phillips.''</div></div>Tim phillipshttp://mircwiki.rsna.org/index.php?title=Install_Java_Advanced_Imaging_ImageIO_Tools_on_a_Linux_Machine&diff=5907Install Java Advanced Imaging ImageIO Tools on a Linux Machine2011-09-10T08:29:07Z<p>Tim phillips: /* What the script does (feel free to have a look before you run it) */</p>
<hr />
<div>=== Important ===<br />
<br />
* This is a small part of what the script at [[Install MIRC Zn on Ubuntu Linux]] will do automatically for you.<br />
* If you want to install MIRC on a Linux machine it is recommended you head the [[Install MIRC Zn on Ubuntu Linux]] page.<br />
<br />
== How to install Java Advanced Imaging ImageIO Tools on Ubuntu Linux ==<br />
* Download the script<br />
wget http://timphillips.net/mirc/install-JAI-imageIO<br />
* Make it executable<br />
chmod 777 ./install-JAI-imageIO<br />
* Run the script<br />
./install-JAI-imageIO<br />
<br />
==What the script does (feel free to have a look before you run it)==<br />
<br />
* Checks you're running it as root or using sudo.<br />
* Updates the Ubuntu repos if need be.<br />
* Checks which chipset you're running.<br />
* (If Oracle / Sun Java 6 isn't already installed)<br />
** Answers the Java installation questions in advance.<br />
** Installs Oracle / Sun Java.<br />
* Downloads the appropriate JAI ImageIO files installs JAI ImageIO.<br />
<br />
<div align="right">''Any questions or comments please email me at timothy.john.phillips@gmail.com - Tim Phillips.''</div></div>Tim phillipshttp://mircwiki.rsna.org/index.php?title=Java_Advanced_Imaging_ImageIO_Tools_-_Linux&diff=5906Java Advanced Imaging ImageIO Tools - Linux2011-09-10T05:01:23Z<p>Tim phillips: moved Java Advanced Imaging ImageIO Tools - Linux to Install Java Advanced Imaging ImageIO Tools on a Linux Machine</p>
<hr />
<div>#REDIRECT [[Install Java Advanced Imaging ImageIO Tools on a Linux Machine]]</div>Tim phillipshttp://mircwiki.rsna.org/index.php?title=Install_Java_Advanced_Imaging_ImageIO_Tools_on_a_Linux_Machine&diff=5905Install Java Advanced Imaging ImageIO Tools on a Linux Machine2011-09-10T05:01:23Z<p>Tim phillips: moved Java Advanced Imaging ImageIO Tools - Linux to Install Java Advanced Imaging ImageIO Tools on a Linux Machine</p>
<hr />
<div>=== Important ===<br />
<br />
* This is a small part of what the script at [[Install MIRC Zn on Ubuntu Linux]] will do automatically for you.<br />
* If you want to install MIRC on a Linux machine it is recommended you head the [[Install MIRC Zn on Ubuntu Linux]] page.<br />
<br />
== How to install Java Advanced Imaging ImageIO Tools on Ubuntu Linux ==<br />
* Download the script<br />
wget http://timphillips.net/mirc/install-JAI-imageIO<br />
* Make it executable<br />
chmod 777 ./install-JAI-imageIO<br />
* Run the script<br />
./install-JAI-imageIO<br />
<br />
==What the script does (feel free to have a look before you run it)==<br />
<br />
* Checks you're running it as root or using sudo.<br />
* Updates the Ubuntu repos.<br />
* Checks which chipset you're running.<br />
* Answers the Java installation questions in advance.<br />
* Installs Oracle / Sun Java.<br />
* Downloads the appropriate JAI ImageIO files installs JAI ImageIO.<br />
<br />
<div align="right">''Any questions or comments please email me at timothy.john.phillips@gmail.com - Tim Phillips.''</div></div>Tim phillipshttp://mircwiki.rsna.org/index.php?title=(depreciated)_empty_page_-_TJP&diff=5903(depreciated) empty page - TJP2011-09-10T05:00:19Z<p>Tim phillips: moved Install MIRC Zn on Ubuntu Linux to Install or upgrade MIRC Zn on Ubuntu Linux</p>
<hr />
<div>== How to install MIRC-Zn on Ubuntu Linux ==<br />
* Download the script<br />
wget http://timphillips.net/mirc/install-MIRC-Zn<br />
* Make it executable<br />
chmod 777 ./install-MIRC-Zn<br />
* Run the script<br />
./install-MIRC-Zn<br />
* Point your browser to the machine you just installed it on and MIRC should be up and running.<br />
* This script will also upgrade a previous "Tim Phillips" installation of MIRC-Zn so it can be used again when the RSNA code is updated.<br />
== Commands to control or upgrde the MIRC web service ==<br />
To start MIRC (it will start automatically when the machine boots)<br />
start MIRC-Zn<br />
To stop MIRC:<br />
stop MIRC-Zn<br />
To check if MIRC is running:<br />
status MIRC-Zn<br />
To restart MIRC:<br />
restart MIRC-Zn<br />
To upgrade MIRC with the latest MIRC-Zn code from RSNA (and preserve all your data):<br />
upgrade-mirc<br />
==What the script does (feel free to look at it before you run it)==<br />
<br />
* Checks you're running it as root or using sudo.<br />
* Stops the MIRC-Zn service if its running.<br />
* Checks which chipset you're running.<br />
* Enables the ubuntu partner repo (to get Oracle Java).<br />
* Answers the Java installation questions in advance.<br />
* Installs SunJava and a few other necessary applications.<br />
* Downloads the appropriate JAI ImageIO files installs JAI ImageIO.<br />
* Downloads the latest version of MIRC-Zn.<br />
* Writes an upstart script (so that CTP/MIRC will be run as a service automatically).<br />
* Installs RSNA MIRC.<br />
<br />
==Choosing between Ubuntu Desktop and Ubuntu Server for a MIRC install==<br />
* Ubuntu Desktop<br />
** Easier (very easy) if you're new to Linux.<br />
** May be very slightly slower but on modern hardware you are unlikely to notice the difference.<br />
* Ubuntu Server<br />
** Makes more sense - MIRC is a web service after all.<br />
** Will be leaner and faster.<br />
** Can run on a headless server or virtual machine.<br />
** [http://turnkeylinux.org TurnkeyLinux] is a very good Ubuntu install for this purpose.<br />
<br />
<div align="right">''Any questions or comments please email me at timothy.john.phillips@gmail.com - Tim Phillips.''</div></div>Tim phillipshttp://mircwiki.rsna.org/index.php?title=Running_CTP_as_a_Linux_Service&diff=5902Running CTP as a Linux Service2011-09-10T04:58:29Z<p>Tim phillips: /* Suggestion */</p>
<hr />
<div>=== Suggestion ===<br />
<br />
* This is a small part of what the script at [[Install MIRC Zn on Ubuntu Linux]] will do automatically for you.<br />
* If you want to install MIRC on a Linux machine it is recommended you head the [[Install MIRC Zn on Ubuntu Linux]] page.<br />
* If you are here because you want to run an existing Linux installation of CTP or MIRC as a service, continue reading.<br />
<br />
=== Using an UpStart Script ===<br />
Ubuntu and many other Linux distros use UpStart to run services.<br />
The below example assumes CTP is installed at <br />
<br />
/usr/share/CTP/<br />
<br />
You can modify it to suit a different locations.<br />
<br />
Cut and paste the below code <br />
<br />
description "CTP Service on Linux"<br />
author "Tim Phillips <timothy.john.phillips@gmail.com>"<br />
<br />
start on (local-filesystems and net-device-up IFACE!=lo)<br />
stop on stopping network-services<br />
<br />
respawn<br />
<br />
expect fork<br />
<br />
script<br />
cd /usr/share/CTP/<br />
java -jar ./CTP-runner.jar<br />
end script<br />
<br />
into a file named<br />
<br />
/etc/init/CTP.conf<br />
<br />
== Commands to control the CTP service ==<br />
To start CTP (it will start automatically when the machine boots)<br />
start CTP<br />
To stop CTP:<br />
stop CTP<br />
To check if CTP is running:<br />
status CTP<br />
To restart CTP:<br />
restart CTP<br />
<br />
<div align="right">''Any questions or comments please email me at timothy.john.phillips@gmail.com - Tim Phillips.''</div></div>Tim phillipshttp://mircwiki.rsna.org/index.php?title=Running_CTP_as_a_Linux_Service&diff=5901Running CTP as a Linux Service2011-09-10T04:57:33Z<p>Tim phillips: </p>
<hr />
<div>=== Suggestion ===<br />
<br />
* This is a small part of what the script at [[Install MIRC Zn on Ubuntu Linux]] will do automatically for you.<br />
* If you want to install MIRC on a Linux machine it is recommended you head the [[Install MIRC Zn on Ubuntu Linux]] page.<br />
<br />
=== Using an UpStart Script ===<br />
Ubuntu and many other Linux distros use UpStart to run services.<br />
The below example assumes CTP is installed at <br />
<br />
/usr/share/CTP/<br />
<br />
You can modify it to suit a different locations.<br />
<br />
Cut and paste the below code <br />
<br />
description "CTP Service on Linux"<br />
author "Tim Phillips <timothy.john.phillips@gmail.com>"<br />
<br />
start on (local-filesystems and net-device-up IFACE!=lo)<br />
stop on stopping network-services<br />
<br />
respawn<br />
<br />
expect fork<br />
<br />
script<br />
cd /usr/share/CTP/<br />
java -jar ./CTP-runner.jar<br />
end script<br />
<br />
into a file named<br />
<br />
/etc/init/CTP.conf<br />
<br />
== Commands to control the CTP service ==<br />
To start CTP (it will start automatically when the machine boots)<br />
start CTP<br />
To stop CTP:<br />
stop CTP<br />
To check if CTP is running:<br />
status CTP<br />
To restart CTP:<br />
restart CTP<br />
<br />
<div align="right">''Any questions or comments please email me at timothy.john.phillips@gmail.com - Tim Phillips.''</div></div>Tim phillipshttp://mircwiki.rsna.org/index.php?title=Running_CTP_as_a_Linux_Service&diff=5900Running CTP as a Linux Service2011-09-10T04:57:17Z<p>Tim phillips: </p>
<hr />
<div>=== Important ===<br />
<br />
* This is a small part of what the script at [[Install MIRC Zn on Ubuntu Linux]] will do automatically for you.<br />
* If you want to install MIRC on a Linux machine it is recommended you head the [[Install MIRC Zn on Ubuntu Linux]] page.<br />
<br />
=== Using an UpStart Script ===<br />
Ubuntu and many other Linux distros use UpStart to run services.<br />
The below example assumes CTP is installed at <br />
<br />
/usr/share/CTP/<br />
<br />
You can modify it to suit a different locations.<br />
<br />
Cut and paste the below code <br />
<br />
description "CTP Service on Linux"<br />
author "Tim Phillips <timothy.john.phillips@gmail.com>"<br />
<br />
start on (local-filesystems and net-device-up IFACE!=lo)<br />
stop on stopping network-services<br />
<br />
respawn<br />
<br />
expect fork<br />
<br />
script<br />
cd /usr/share/CTP/<br />
java -jar ./CTP-runner.jar<br />
end script<br />
<br />
into a file named<br />
<br />
/etc/init/CTP.conf<br />
<br />
== Commands to control the CTP service ==<br />
To start CTP (it will start automatically when the machine boots)<br />
start CTP<br />
To stop CTP:<br />
stop CTP<br />
To check if CTP is running:<br />
status CTP<br />
To restart CTP:<br />
restart CTP<br />
<br />
<div align="right">''Any questions or comments please email me at timothy.john.phillips@gmail.com - Tim Phillips.''</div></div>Tim phillipshttp://mircwiki.rsna.org/index.php?title=(depreciated)_empty_page_-_TJP&diff=5899(depreciated) empty page - TJP2011-09-10T04:53:28Z<p>Tim phillips: </p>
<hr />
<div>== How to install MIRC-Zn on Ubuntu Linux ==<br />
* Download the script<br />
wget http://timphillips.net/mirc/install-MIRC-Zn<br />
* Make it executable<br />
chmod 777 ./install-MIRC-Zn<br />
* Run the script<br />
./install-MIRC-Zn<br />
* Point your browser to the machine you just installed it on and MIRC should be up and running.<br />
* This script will also upgrade a previous "Tim Phillips" installation of MIRC-Zn so it can be used again when the RSNA code is updated.<br />
== Commands to control or upgrde the MIRC web service ==<br />
To start MIRC (it will start automatically when the machine boots)<br />
start MIRC-Zn<br />
To stop MIRC:<br />
stop MIRC-Zn<br />
To check if MIRC is running:<br />
status MIRC-Zn<br />
To restart MIRC:<br />
restart MIRC-Zn<br />
To upgrade MIRC with the latest MIRC-Zn code from RSNA (and preserve all your data):<br />
upgrade-mirc<br />
==What the script does (feel free to look at it before you run it)==<br />
<br />
* Checks you're running it as root or using sudo.<br />
* Stops the MIRC-Zn service if its running.<br />
* Checks which chipset you're running.<br />
* Enables the ubuntu partner repo (to get Oracle Java).<br />
* Answers the Java installation questions in advance.<br />
* Installs SunJava and a few other necessary applications.<br />
* Downloads the appropriate JAI ImageIO files installs JAI ImageIO.<br />
* Downloads the latest version of MIRC-Zn.<br />
* Writes an upstart script (so that CTP/MIRC will be run as a service automatically).<br />
* Installs RSNA MIRC.<br />
<br />
==Choosing between Ubuntu Desktop and Ubuntu Server for a MIRC install==<br />
* Ubuntu Desktop<br />
** Easier (very easy) if you're new to Linux.<br />
** May be very slightly slower but on modern hardware you are unlikely to notice the difference.<br />
* Ubuntu Server<br />
** Makes more sense - MIRC is a web service after all.<br />
** Will be leaner and faster.<br />
** Can run on a headless server or virtual machine.<br />
** [http://turnkeylinux.org TurnkeyLinux] is a very good Ubuntu install for this purpose.<br />
<br />
<div align="right">''Any questions or comments please email me at timothy.john.phillips@gmail.com - Tim Phillips.''</div></div>Tim phillipshttp://mircwiki.rsna.org/index.php?title=Install_Java_Advanced_Imaging_ImageIO_Tools_on_a_Linux_Machine&diff=5898Install Java Advanced Imaging ImageIO Tools on a Linux Machine2011-09-10T04:47:12Z<p>Tim phillips: </p>
<hr />
<div>=== Important ===<br />
<br />
* This is a small part of what the script at [[Install MIRC Zn on Ubuntu Linux]] will do automatically for you.<br />
* If you want to install MIRC on a Linux machine it is recommended you head the [[Install MIRC Zn on Ubuntu Linux]] page.<br />
<br />
== How to install Java Advanced Imaging ImageIO Tools on Ubuntu Linux ==<br />
* Download the script<br />
wget http://timphillips.net/mirc/install-JAI-imageIO<br />
* Make it executable<br />
chmod 777 ./install-JAI-imageIO<br />
* Run the script<br />
./install-JAI-imageIO<br />
<br />
==What the script does (feel free to have a look before you run it)==<br />
<br />
* Checks you're running it as root or using sudo.<br />
* Updates the Ubuntu repos.<br />
* Checks which chipset you're running.<br />
* Answers the Java installation questions in advance.<br />
* Installs Oracle / Sun Java.<br />
* Downloads the appropriate JAI ImageIO files installs JAI ImageIO.<br />
<br />
<div align="right">''Any questions or comments please email me at timothy.john.phillips@gmail.com - Tim Phillips.''</div></div>Tim phillipshttp://mircwiki.rsna.org/index.php?title=(depreciated)_empty_page_-_TJP&diff=5897(depreciated) empty page - TJP2011-09-10T04:45:11Z<p>Tim phillips: /* Choosing between Ubuntu Desktop and Ubuntu Server */</p>
<hr />
<div>== How to install MIRC-Zn on Ubuntu Linux ==<br />
* Download the script<br />
wget http://timphillips.net/mirc/install-MIRC-Zn<br />
* Make it executable<br />
chmod 777 ./install-MIRC-Zn<br />
* Run the script<br />
./install-MIRC-Zn<br />
* Point your browser to the machine you just installed it on and MIRC should be up and running.<br />
* This script will also upgrade a previous "Tim Phillips" installation of MIRC-Zn so it can be used again when the RSNA code is updated.<br />
<br />
==What the script does (feel free to look at it before you run it)==<br />
<br />
* Checks you're running it as root or using sudo.<br />
* Stops the MIRC-Zn service if its running.<br />
* Checks which chipset you're running.<br />
* Enables the ubuntu partner repo (to get Oracle Java).<br />
* Answers the Java installation questions in advance.<br />
* Installs SunJava and a few other necessary applications.<br />
* Downloads the appropriate JAI ImageIO files installs JAI ImageIO.<br />
* Downloads the latest version of MIRC-Zn.<br />
* Writes an upstart script (so that CTP/MIRC will be run as a service automatically).<br />
* Installs RSNA MIRC.<br />
<br />
==Choosing between Ubuntu Desktop and Ubuntu Server for a MIRC install==<br />
<br />
* Ubuntu Desktop<br />
** Easier (very easy) if you're new to Linux.<br />
** May be very slightly slower but on modern hardware you are unlikely to notice the difference.<br />
* Ubuntu Server<br />
** Makes more sense - MIRC is a web service after all.<br />
** Will be leaner and faster.<br />
** Can run on a headless server or virtual machine.<br />
** [http://turnkeylinux.org TurnkeyLinux] is a very good Ubuntu install for this purpose.<br />
<br />
<div align="right">''Any questions or comments please email me at timothy.john.phillips@gmail.com - Tim Phillips.''</div></div>Tim phillipshttp://mircwiki.rsna.org/index.php?title=(depreciated)_empty_page_-_TJP&diff=5896(depreciated) empty page - TJP2011-09-10T04:44:38Z<p>Tim phillips: /* What the script does */</p>
<hr />
<div>== How to install MIRC-Zn on Ubuntu Linux ==<br />
* Download the script<br />
wget http://timphillips.net/mirc/install-MIRC-Zn<br />
* Make it executable<br />
chmod 777 ./install-MIRC-Zn<br />
* Run the script<br />
./install-MIRC-Zn<br />
* Point your browser to the machine you just installed it on and MIRC should be up and running.<br />
* This script will also upgrade a previous "Tim Phillips" installation of MIRC-Zn so it can be used again when the RSNA code is updated.<br />
<br />
==What the script does (feel free to look at it before you run it)==<br />
<br />
* Checks you're running it as root or using sudo.<br />
* Stops the MIRC-Zn service if its running.<br />
* Checks which chipset you're running.<br />
* Enables the ubuntu partner repo (to get Oracle Java).<br />
* Answers the Java installation questions in advance.<br />
* Installs SunJava and a few other necessary applications.<br />
* Downloads the appropriate JAI ImageIO files installs JAI ImageIO.<br />
* Downloads the latest version of MIRC-Zn.<br />
* Writes an upstart script (so that CTP/MIRC will be run as a service automatically).<br />
* Installs RSNA MIRC.<br />
<br />
==Choosing between Ubuntu Desktop and Ubuntu Server==<br />
<br />
* Ubuntu Desktop<br />
** Easier (very easy) if you're new to Linux.<br />
** May be very slightly slower but on modern hardware you are unlikely to notice the difference.<br />
* Ubuntu Server<br />
** Makes more sense - MIRC is a web service after all.<br />
** Will be leaner and faster.<br />
** Can run on a headless server or virtual machine.<br />
** [http://turnkeylinux.org TurnkeyLinux] is a very good Ubuntu install for this purpose.<br />
<br />
<div align="right">''Any questions or comments please email me at timothy.john.phillips@gmail.com - Tim Phillips.''</div></div>Tim phillipshttp://mircwiki.rsna.org/index.php?title=(depreciated)_empty_page_-_TJP&diff=5895(depreciated) empty page - TJP2011-09-10T04:43:45Z<p>Tim phillips: /* The script itself (in case you don't trust the download) */</p>
<hr />
<div>== How to install MIRC-Zn on Ubuntu Linux ==<br />
* Download the script<br />
wget http://timphillips.net/mirc/install-MIRC-Zn<br />
* Make it executable<br />
chmod 777 ./install-MIRC-Zn<br />
* Run the script<br />
./install-MIRC-Zn<br />
* Point your browser to the machine you just installed it on and MIRC should be up and running.<br />
* This script will also upgrade a previous "Tim Phillips" installation of MIRC-Zn so it can be used again when the RSNA code is updated.<br />
<br />
==What the script does==<br />
<br />
* Checks you're running it as root or using sudo.<br />
* Stops the MIRC-Zn service if its running.<br />
* Checks which chipset you're running.<br />
* Enables the ubuntu partner repo (to get Oracle Java).<br />
* Answers the Java installation questions in advance.<br />
* Installs SunJava and a few other necessary applications.<br />
* Downloads the appropriate JAI ImageIO files installs JAI ImageIO.<br />
* Downloads the latest version of MIRC-Zn.<br />
* Writes an upstart script (so that CTP/MIRC will be run as a service automatically).<br />
* Installs RSNA MIRC.<br />
<br />
==Choosing between Ubuntu Desktop and Ubuntu Server==<br />
<br />
* Ubuntu Desktop<br />
** Easier (very easy) if you're new to Linux.<br />
** May be very slightly slower but on modern hardware you are unlikely to notice the difference.<br />
* Ubuntu Server<br />
** Makes more sense - MIRC is a web service after all.<br />
** Will be leaner and faster.<br />
** Can run on a headless server or virtual machine.<br />
** [http://turnkeylinux.org TurnkeyLinux] is a very good Ubuntu install for this purpose.<br />
<br />
<div align="right">''Any questions or comments please email me at timothy.john.phillips@gmail.com - Tim Phillips.''</div></div>Tim phillipshttp://mircwiki.rsna.org/index.php?title=(depreciated)_empty_page_-_TJP&diff=5894(depreciated) empty page - TJP2011-09-10T04:43:24Z<p>Tim phillips: /* How to install MIRC-Zn on Ubuntu Linux */</p>
<hr />
<div>== How to install MIRC-Zn on Ubuntu Linux ==<br />
* Download the script<br />
wget http://timphillips.net/mirc/install-MIRC-Zn<br />
* Make it executable<br />
chmod 777 ./install-MIRC-Zn<br />
* Run the script<br />
./install-MIRC-Zn<br />
* Point your browser to the machine you just installed it on and MIRC should be up and running.<br />
* This script will also upgrade a previous "Tim Phillips" installation of MIRC-Zn so it can be used again when the RSNA code is updated.<br />
<br />
==What the script does==<br />
<br />
* Checks you're running it as root or using sudo.<br />
* Stops the MIRC-Zn service if its running.<br />
* Checks which chipset you're running.<br />
* Enables the ubuntu partner repo (to get Oracle Java).<br />
* Answers the Java installation questions in advance.<br />
* Installs SunJava and a few other necessary applications.<br />
* Downloads the appropriate JAI ImageIO files installs JAI ImageIO.<br />
* Downloads the latest version of MIRC-Zn.<br />
* Writes an upstart script (so that CTP/MIRC will be run as a service automatically).<br />
* Installs RSNA MIRC.<br />
<br />
===The script itself (in case you don't trust the download)===<br />
<br />
#!/bin/bash<br />
<br />
# Make sure only root can run our script<br />
if [[ $EUID -ne 0 ]]; then<br />
echo "This script must be run as root or using sudo" 1>&2<br />
exit 1<br />
fi<br />
<br />
#reassure the user something is happening<br />
echo 'Updating Ubuntu repositories ...'<br />
<br />
#work in the temp folder<br />
cd /var/tmp<br />
<br />
# partner repo<br />
echo deb http://archive.canonical.com/ lucid partner >>/etc/apt/sources.list.d/partner.list<br />
apt-get -qq update<br />
<br />
# preset the java answers:<br />
debconf-set-selections << END<br />
sun-java6-jdk shared/accepted-sun-dlj-v1-1 boolean true<br />
sun-java6-jre shared/accepted-sun-dlj-v1-1 boolean true<br />
sun-java6-bin shared/accepted-sun-dlj-v1-1 boolean true<br />
END<br />
<br />
#reassure the user something is happening<br />
echo 'Downloading and installing required ubuntu packages ...'<br />
<br />
# packages installed:<br />
apt-get install -y -qq acpid htop unzip xauth libxtst6 sun-java6-jdk<br />
<br />
# if a previous version is here - get rid of it<br />
cd /usr/lib/jvm/java-6-sun/<br />
if [ -f UNINSTALL-jai_imageio ]; then<br />
echo 'Removing previous install of JAI ImageIO ...'<br />
bash UNINSTALL-jai_imageio<br />
fi<br />
<br />
#work in the temp folder<br />
cd /var/tmp<br />
<br />
#reassure the user something is happening<br />
echo 'Downloading JAI Image IO ...'<br />
<br />
#check which chipset we're using<br />
case $(arch) in<br />
i686)<br />
CHIP=i586<br />
;;<br />
x86_64)<br />
CHIP=amd64<br />
;;<br />
*)<br />
;;<br />
esac<br />
<br />
#download the JAI tgz file<br />
# get jai binary<br />
if [ -f ./jai_imageio-1_1-lib-linux-$CHIP.tar.gz ]; then<br />
rm ./jai_imageio-1_1-lib-linux-$CHIP.tar.gz<br />
fi<br />
wget -q http://download.java.net/media/jai-imageio/builds/release/1.1/jai_imageio-1_1-lib-linux-$CHIP.tar.gz<br />
<br />
#reassure the user something is happening<br />
echo 'Installing JAI Image IO ...'<br />
<br />
#expand the tgz and put the files where they should go (excluding UNINSTALL)<br />
tar xzf ./jai_imageio-1_1-lib-linux-$CHIP.tar.gz<br />
mv ./jai_imageio-1_1/*.txt /usr/lib/jvm/java-6-sun/<br />
mv ./jai_imageio-1_1/lib/libclib_jiio.so /usr/lib/jvm/java-6-sun/jre/lib/$CHIP2/<br />
mv ./jai_imageio-1_1/lib/*.jar /usr/lib/jvm/java-6-sun/jre/lib/ext/<br />
<br />
#generate the UNINSTALL file - using the version that comes in the binary install<br />
cat > /usr/lib/jvm/java-6-sun/UNINSTALL-jai_imageio <<DELIM<br />
#!/bin/sh<br />
# @(#)UNINSTALL-jai_imageio-jdk 3.1 06/05/12 16:18:39<br />
# usage: UNINSTALL-jai_imageio<br />
<br />
echo "Uninstalling Java Advanced Imaging Image I/O Tools"<br />
<br />
rm -f *jai_imageio.txt<br />
rm -f jre/lib/ext/jai_imageio.jar<br />
rm -f jre/lib/ext/clibwrapper_jiio.jar<br />
if [ ( `uname` = "SunOS" ) -a ( `uname -p` = "sparc" ) ]; then<br />
rm -f jre/lib/sparc/libclib_jiio.so<br />
rm -f jre/lib/sparc/libclib_jiio_vis.so<br />
rm -f jre/lib/sparc/libclib_jiio_vis2.so<br />
<br />
if [ -f jre/lib/sparcv9/libclib_jiio.so ]; then<br />
rm -f jre/lib/sparcv9/libclib_jiio.so<br />
rm -f jre/lib/sparcv9/libclib_jiio_vis.so<br />
rm -f jre/lib/sparcv9/libclib_jiio_vis2.so<br />
fi<br />
fi<br />
if [ -f jre/lib/amd64/libclib_jiio.so ]; then<br />
rm -f jre/lib/amd64/libclib_jiio.so<br />
fi<br />
if [ -f jre/lib/i386/libclib_jiio.so ]; then<br />
rm -f jre/lib/i386/libclib_jiio.so<br />
fi<br />
rm -f UNINSTALL-jai_imageio<br />
<br />
echo "Done"<br />
DELIM<br />
<br />
# Stop MIRC-Zn if it is running<br />
if [ -f /etc/init/MIRC-Zn.conf ]<br />
then<br />
if [[ $(stop -q MIRC-Zn 2>&1 | grep Unknown) ]]<br />
then<br />
echo 'MIRC-Zn service not currently running ...'<br />
echo 'MIRC-Zn will be upgraded with the latest version from the RSNA site ...'<br />
else<br />
echo 'Stopping current MIRC-Zn service ...'<br />
echo 'MIRC-Zn will be upgraded with the latest version from the RSNA site ...'<br />
fi<br />
fi<br />
<br />
#reassure the user something is happening<br />
echo 'Downloading RSNA MIRC Installer ...'<br />
<br />
# go to the target folder<br />
cd /usr/share<br />
<br />
# get MIRC installer<br />
if [ -f ./MIRC-installer.jar ]; then<br />
rm ./MIRC-installer.jar<br />
fi<br />
wget -q http://mirc.rsna.org/MIRC2/MIRC-installer.jar<br />
<br />
#reassure the user something is happening<br />
echo 'Writing an upstart script and putting it in /etc/init ...'<br />
<br />
# make an upstart script<br />
cat > /etc/init/MIRC-Zn.conf <<DELIM<br />
description "MIRC Zn (CTP plugin not Tomcat)"<br />
author "Tim Phillips <timothy.john.phillips@gmail.com>"<br />
<br />
start on (local-filesystems and net-device-up IFACE!=lo)<br />
stop on stopping network-services<br />
<br />
respawn<br />
<br />
expect fork<br />
<br />
script<br />
cd /usr/share/CTP/<br />
java -jar ./CTP-runner.jar<br />
end script<br />
DELIM<br />
<br />
echo -e<br />
echo -e<br />
echo -e<br />
echo 'Now the RSNA installer will run'<br />
echo 'You will be asked to choose a folder to install CTP/MIRC into'<br />
echo 'It should be /usr/share or the startup script wont work'<br />
echo -e<br />
echo 'hit enter to continue'<br />
read dummy<br />
echo -e<br />
echo -e<br />
<br />
if [[ $(java -jar ./MIRC-installer.jar 2>&1 | grep X11) ]]<br />
then<br />
# have to re-login with X forwarding<br />
echo -e<br />
echo '================================================'<br />
echo 'NOT FINISHED YET!!!!'<br />
echo '================================================'<br />
echo -e<br />
echo 'X-forwarding is required for the MIRC installer'<br />
echo -e<br />
echo 'Here is what you have to do'<br />
echo ' - logout'<br />
echo ' - login again from a machine with a GUI and a display....'<br />
echo ' - using the switch to enable X forwarding'<br />
echo ' - From a mac: ssh -Y user@host'<br />
echo ' - From a linux desktop: ssh -X user@host'<br />
echo ' - If you are using windows you will need PuTTy and Xming.. (google them)'<br />
echo ' - When you are logged in again re-run this script'<br />
else<br />
cd ~<br />
echo 'Starting MIRC web service (this will also happen automatically at boot) ...'<br />
start MIRC-Zn<br />
echo -e<br />
echo 'finished - it should all be running'<br />
echo 'point your browser to this server and have a look'<br />
fi<br />
<br />
==Choosing between Ubuntu Desktop and Ubuntu Server==<br />
<br />
* Ubuntu Desktop<br />
** Easier (very easy) if you're new to Linux.<br />
** May be very slightly slower but on modern hardware you are unlikely to notice the difference.<br />
* Ubuntu Server<br />
** Makes more sense - MIRC is a web service after all.<br />
** Will be leaner and faster.<br />
** Can run on a headless server or virtual machine.<br />
** [http://turnkeylinux.org TurnkeyLinux] is a very good Ubuntu install for this purpose.<br />
<br />
<div align="right">''Any questions or comments please email me at timothy.john.phillips@gmail.com - Tim Phillips.''</div></div>Tim phillipshttp://mircwiki.rsna.org/index.php?title=Install_Java_Advanced_Imaging_ImageIO_Tools_on_a_Linux_Machine&diff=5893Install Java Advanced Imaging ImageIO Tools on a Linux Machine2011-09-10T03:45:13Z<p>Tim phillips: /* How to install Java Advanced Imaging ImageIO Tools on Ubuntu Linux */</p>
<hr />
<div>=== Important ===<br />
<br />
* This is a small part of what the script at [[Install MIRC Zn on Ubuntu Linux]] will do automatically for you.<br />
* If you want to install MIRC on a Linux machine it is recommended you head the [[Install MIRC Zn on Ubuntu Linux]] page.<br />
<br />
== How to install Java Advanced Imaging ImageIO Tools on Ubuntu Linux ==<br />
* Download the script<br />
wget http://timphillips.net/mirc/install-JAI-imageIO.txt<br />
* Make it executable<br />
mv ./install-JAI-imageIO.txt ./install-JAI-imageIO<br />
chmod 777 ./install-JAI-imageIO<br />
* Run the script<br />
./install-JAI-imageIO<br />
<br />
==What the script does==<br />
<br />
* Checks you're running it as root or using sudo.<br />
* Updates the Ubuntu repos.<br />
* Checks which chipset you're running.<br />
* Answers the Java installation questions in advance.<br />
* Installs Oracle / Sun Java.<br />
* Downloads the appropriate JAI ImageIO files installs JAI ImageIO.<br />
<br />
===The script itself (in case you don't trust the download)===<br />
<br />
#!/bin/bash<br />
<br />
# Make sure only root can run our script<br />
if [[ $EUID -ne 0 ]]; then<br />
echo "This script must be run as root or using sudo" 1>&2<br />
exit 1<br />
fi<br />
<br />
#reassure the user something is happening<br />
echo 'Updating Ubuntu repositories ...'<br />
<br />
#work in the temp folder<br />
cd /var/tmp<br />
<br />
# partner repo<br />
echo deb http://archive.canonical.com/ lucid partner >>/etc/apt/sources.list.d/partner.list<br />
apt-get -qq update<br />
<br />
# preset the java answers:<br />
debconf-set-selections << END<br />
sun-java6-jdk shared/accepted-sun-dlj-v1-1 boolean true<br />
sun-java6-jre shared/accepted-sun-dlj-v1-1 boolean true<br />
sun-java6-bin shared/accepted-sun-dlj-v1-1 boolean true<br />
END<br />
<br />
#reassure the user something is happening<br />
echo 'Downloading and installing required ubuntu packages ...'<br />
<br />
# packages installed:<br />
apt-get install -y -qq acpid htop unzip xauth libxtst6 sun-java6-jdk<br />
<br />
# if a previous version is here - get rid of it<br />
cd /usr/lib/jvm/java-6-sun/<br />
if [ -f UNINSTALL-jai_imageio ]; then<br />
echo 'Removing previous install of JAI ImageIO ...'<br />
bash UNINSTALL-jai_imageio<br />
fi<br />
<br />
#work in the temp folder<br />
cd /var/tmp<br />
<br />
#reassure the user something is happening<br />
echo 'Downloading JAI Image IO ...'<br />
<br />
#check which chipset we're using<br />
case $(arch) in<br />
i686)<br />
CHIP=i586<br />
;;<br />
x86_64)<br />
CHIP=amd64<br />
;;<br />
*)<br />
;;<br />
esac<br />
<br />
#download the JAI tgz file<br />
# get jai binary<br />
if [ -f ./jai_imageio-1_1-lib-linux-$CHIP.tar.gz ]; then<br />
rm ./jai_imageio-1_1-lib-linux-$CHIP.tar.gz<br />
fi<br />
wget -q http://download.java.net/media/jai-imageio/builds/release/1.1/jai_imageio-1_1-lib-linux-$CHIP.tar.gz<br />
<br />
#reassure the user something is happening<br />
echo 'Installing JAI Image IO ...'<br />
<br />
#expand the tgz and put the files where they should go (excluding UNINSTALL)<br />
tar xzf ./jai_imageio-1_1-lib-linux-$CHIP.tar.gz<br />
mv ./jai_imageio-1_1/*.txt /usr/lib/jvm/java-6-sun/<br />
mv ./jai_imageio-1_1/lib/libclib_jiio.so /usr/lib/jvm/java-6-sun/jre/lib/$CHIP2/<br />
mv ./jai_imageio-1_1/lib/*.jar /usr/lib/jvm/java-6-sun/jre/lib/ext/<br />
<br />
#generate the UNINSTALL file - using the version that comes in the binary install<br />
cat > /usr/lib/jvm/java-6-sun/UNINSTALL-jai_imageio <<DELIM<br />
#!/bin/sh<br />
# @(#)UNINSTALL-jai_imageio-jdk 3.1 06/05/12 16:18:39<br />
# usage: UNINSTALL-jai_imageio<br />
<br />
echo "Uninstalling Java Advanced Imaging Image I/O Tools"<br />
<br />
rm -f *jai_imageio.txt<br />
rm -f jre/lib/ext/jai_imageio.jar<br />
rm -f jre/lib/ext/clibwrapper_jiio.jar<br />
if [ ( `uname` = "SunOS" ) -a ( `uname -p` = "sparc" ) ]; then<br />
rm -f jre/lib/sparc/libclib_jiio.so<br />
rm -f jre/lib/sparc/libclib_jiio_vis.so<br />
rm -f jre/lib/sparc/libclib_jiio_vis2.so<br />
<br />
if [ -f jre/lib/sparcv9/libclib_jiio.so ]; then<br />
rm -f jre/lib/sparcv9/libclib_jiio.so<br />
rm -f jre/lib/sparcv9/libclib_jiio_vis.so<br />
rm -f jre/lib/sparcv9/libclib_jiio_vis2.so<br />
fi<br />
fi<br />
if [ -f jre/lib/amd64/libclib_jiio.so ]; then<br />
rm -f jre/lib/amd64/libclib_jiio.so<br />
fi<br />
if [ -f jre/lib/i386/libclib_jiio.so ]; then<br />
rm -f jre/lib/i386/libclib_jiio.so<br />
fi<br />
rm -f UNINSTALL-jai_imageio<br />
<br />
echo "Done"<br />
DELIM<br />
<br />
<br />
<br />
<div align="right">''Any questions or comments please email me at timothy.john.phillips@gmail.com - Tim Phillips.''</div></div>Tim phillipshttp://mircwiki.rsna.org/index.php?title=Install_Java_Advanced_Imaging_ImageIO_Tools_on_a_Linux_Machine&diff=5892Install Java Advanced Imaging ImageIO Tools on a Linux Machine2011-09-10T03:44:33Z<p>Tim phillips: /* How to install Java Advanced Imaging ImageIO Tools on Ubuntu Linux */</p>
<hr />
<div>=== Important ===<br />
<br />
* This is a small part of what the script at [[Install MIRC Zn on Ubuntu Linux]] will do automatically for you.<br />
* If you want to install MIRC on a Linux machine it is recommended you head the [[Install MIRC Zn on Ubuntu Linux]] page.<br />
<br />
== How to install Java Advanced Imaging ImageIO Tools on Ubuntu Linux ==<br />
* Download the script<br />
wget http://timphillips.net/mirc/install-JAI-imageIO.txt<br />
* Make it executable<br />
mv ./install-JAI-imageIO.txt ./install-JAI-imageIO<br />
chmod 777 ./install-JAI-imageIO.txt<br />
* Run the script<br />
./install-JAI-imageIO<br />
<br />
==What the script does==<br />
<br />
* Checks you're running it as root or using sudo.<br />
* Updates the Ubuntu repos.<br />
* Checks which chipset you're running.<br />
* Answers the Java installation questions in advance.<br />
* Installs Oracle / Sun Java.<br />
* Downloads the appropriate JAI ImageIO files installs JAI ImageIO.<br />
<br />
===The script itself (in case you don't trust the download)===<br />
<br />
#!/bin/bash<br />
<br />
# Make sure only root can run our script<br />
if [[ $EUID -ne 0 ]]; then<br />
echo "This script must be run as root or using sudo" 1>&2<br />
exit 1<br />
fi<br />
<br />
#reassure the user something is happening<br />
echo 'Updating Ubuntu repositories ...'<br />
<br />
#work in the temp folder<br />
cd /var/tmp<br />
<br />
# partner repo<br />
echo deb http://archive.canonical.com/ lucid partner >>/etc/apt/sources.list.d/partner.list<br />
apt-get -qq update<br />
<br />
# preset the java answers:<br />
debconf-set-selections << END<br />
sun-java6-jdk shared/accepted-sun-dlj-v1-1 boolean true<br />
sun-java6-jre shared/accepted-sun-dlj-v1-1 boolean true<br />
sun-java6-bin shared/accepted-sun-dlj-v1-1 boolean true<br />
END<br />
<br />
#reassure the user something is happening<br />
echo 'Downloading and installing required ubuntu packages ...'<br />
<br />
# packages installed:<br />
apt-get install -y -qq acpid htop unzip xauth libxtst6 sun-java6-jdk<br />
<br />
# if a previous version is here - get rid of it<br />
cd /usr/lib/jvm/java-6-sun/<br />
if [ -f UNINSTALL-jai_imageio ]; then<br />
echo 'Removing previous install of JAI ImageIO ...'<br />
bash UNINSTALL-jai_imageio<br />
fi<br />
<br />
#work in the temp folder<br />
cd /var/tmp<br />
<br />
#reassure the user something is happening<br />
echo 'Downloading JAI Image IO ...'<br />
<br />
#check which chipset we're using<br />
case $(arch) in<br />
i686)<br />
CHIP=i586<br />
;;<br />
x86_64)<br />
CHIP=amd64<br />
;;<br />
*)<br />
;;<br />
esac<br />
<br />
#download the JAI tgz file<br />
# get jai binary<br />
if [ -f ./jai_imageio-1_1-lib-linux-$CHIP.tar.gz ]; then<br />
rm ./jai_imageio-1_1-lib-linux-$CHIP.tar.gz<br />
fi<br />
wget -q http://download.java.net/media/jai-imageio/builds/release/1.1/jai_imageio-1_1-lib-linux-$CHIP.tar.gz<br />
<br />
#reassure the user something is happening<br />
echo 'Installing JAI Image IO ...'<br />
<br />
#expand the tgz and put the files where they should go (excluding UNINSTALL)<br />
tar xzf ./jai_imageio-1_1-lib-linux-$CHIP.tar.gz<br />
mv ./jai_imageio-1_1/*.txt /usr/lib/jvm/java-6-sun/<br />
mv ./jai_imageio-1_1/lib/libclib_jiio.so /usr/lib/jvm/java-6-sun/jre/lib/$CHIP2/<br />
mv ./jai_imageio-1_1/lib/*.jar /usr/lib/jvm/java-6-sun/jre/lib/ext/<br />
<br />
#generate the UNINSTALL file - using the version that comes in the binary install<br />
cat > /usr/lib/jvm/java-6-sun/UNINSTALL-jai_imageio <<DELIM<br />
#!/bin/sh<br />
# @(#)UNINSTALL-jai_imageio-jdk 3.1 06/05/12 16:18:39<br />
# usage: UNINSTALL-jai_imageio<br />
<br />
echo "Uninstalling Java Advanced Imaging Image I/O Tools"<br />
<br />
rm -f *jai_imageio.txt<br />
rm -f jre/lib/ext/jai_imageio.jar<br />
rm -f jre/lib/ext/clibwrapper_jiio.jar<br />
if [ ( `uname` = "SunOS" ) -a ( `uname -p` = "sparc" ) ]; then<br />
rm -f jre/lib/sparc/libclib_jiio.so<br />
rm -f jre/lib/sparc/libclib_jiio_vis.so<br />
rm -f jre/lib/sparc/libclib_jiio_vis2.so<br />
<br />
if [ -f jre/lib/sparcv9/libclib_jiio.so ]; then<br />
rm -f jre/lib/sparcv9/libclib_jiio.so<br />
rm -f jre/lib/sparcv9/libclib_jiio_vis.so<br />
rm -f jre/lib/sparcv9/libclib_jiio_vis2.so<br />
fi<br />
fi<br />
if [ -f jre/lib/amd64/libclib_jiio.so ]; then<br />
rm -f jre/lib/amd64/libclib_jiio.so<br />
fi<br />
if [ -f jre/lib/i386/libclib_jiio.so ]; then<br />
rm -f jre/lib/i386/libclib_jiio.so<br />
fi<br />
rm -f UNINSTALL-jai_imageio<br />
<br />
echo "Done"<br />
DELIM<br />
<br />
<br />
<br />
<div align="right">''Any questions or comments please email me at timothy.john.phillips@gmail.com - Tim Phillips.''</div></div>Tim phillipshttp://mircwiki.rsna.org/index.php?title=Install_Java_Advanced_Imaging_ImageIO_Tools_on_a_Linux_Machine&diff=5891Install Java Advanced Imaging ImageIO Tools on a Linux Machine2011-09-10T03:43:51Z<p>Tim phillips: /* How to install Java Advanced Imaging ImageIO Tools on Ubuntu Linux */</p>
<hr />
<div>=== Important ===<br />
<br />
* This is a small part of what the script at [[Install MIRC Zn on Ubuntu Linux]] will do automatically for you.<br />
* If you want to install MIRC on a Linux machine it is recommended you head the [[Install MIRC Zn on Ubuntu Linux]] page.<br />
<br />
== How to install Java Advanced Imaging ImageIO Tools on Ubuntu Linux ==<br />
* Download the script<br />
wget http://timphillips.net/mirc/install-JAI-imageIO.txt<br />
* Make it executable<br />
mv ./install-JAI-imageIO.txt ./install-JAI-imageIO.txt<br />
chmod 777 ./install-JAI-imageIO.txt<br />
* Run the script<br />
./install-JAI-imageIO.txt<br />
<br />
==What the script does==<br />
<br />
* Checks you're running it as root or using sudo.<br />
* Updates the Ubuntu repos.<br />
* Checks which chipset you're running.<br />
* Answers the Java installation questions in advance.<br />
* Installs Oracle / Sun Java.<br />
* Downloads the appropriate JAI ImageIO files installs JAI ImageIO.<br />
<br />
===The script itself (in case you don't trust the download)===<br />
<br />
#!/bin/bash<br />
<br />
# Make sure only root can run our script<br />
if [[ $EUID -ne 0 ]]; then<br />
echo "This script must be run as root or using sudo" 1>&2<br />
exit 1<br />
fi<br />
<br />
#reassure the user something is happening<br />
echo 'Updating Ubuntu repositories ...'<br />
<br />
#work in the temp folder<br />
cd /var/tmp<br />
<br />
# partner repo<br />
echo deb http://archive.canonical.com/ lucid partner >>/etc/apt/sources.list.d/partner.list<br />
apt-get -qq update<br />
<br />
# preset the java answers:<br />
debconf-set-selections << END<br />
sun-java6-jdk shared/accepted-sun-dlj-v1-1 boolean true<br />
sun-java6-jre shared/accepted-sun-dlj-v1-1 boolean true<br />
sun-java6-bin shared/accepted-sun-dlj-v1-1 boolean true<br />
END<br />
<br />
#reassure the user something is happening<br />
echo 'Downloading and installing required ubuntu packages ...'<br />
<br />
# packages installed:<br />
apt-get install -y -qq acpid htop unzip xauth libxtst6 sun-java6-jdk<br />
<br />
# if a previous version is here - get rid of it<br />
cd /usr/lib/jvm/java-6-sun/<br />
if [ -f UNINSTALL-jai_imageio ]; then<br />
echo 'Removing previous install of JAI ImageIO ...'<br />
bash UNINSTALL-jai_imageio<br />
fi<br />
<br />
#work in the temp folder<br />
cd /var/tmp<br />
<br />
#reassure the user something is happening<br />
echo 'Downloading JAI Image IO ...'<br />
<br />
#check which chipset we're using<br />
case $(arch) in<br />
i686)<br />
CHIP=i586<br />
;;<br />
x86_64)<br />
CHIP=amd64<br />
;;<br />
*)<br />
;;<br />
esac<br />
<br />
#download the JAI tgz file<br />
# get jai binary<br />
if [ -f ./jai_imageio-1_1-lib-linux-$CHIP.tar.gz ]; then<br />
rm ./jai_imageio-1_1-lib-linux-$CHIP.tar.gz<br />
fi<br />
wget -q http://download.java.net/media/jai-imageio/builds/release/1.1/jai_imageio-1_1-lib-linux-$CHIP.tar.gz<br />
<br />
#reassure the user something is happening<br />
echo 'Installing JAI Image IO ...'<br />
<br />
#expand the tgz and put the files where they should go (excluding UNINSTALL)<br />
tar xzf ./jai_imageio-1_1-lib-linux-$CHIP.tar.gz<br />
mv ./jai_imageio-1_1/*.txt /usr/lib/jvm/java-6-sun/<br />
mv ./jai_imageio-1_1/lib/libclib_jiio.so /usr/lib/jvm/java-6-sun/jre/lib/$CHIP2/<br />
mv ./jai_imageio-1_1/lib/*.jar /usr/lib/jvm/java-6-sun/jre/lib/ext/<br />
<br />
#generate the UNINSTALL file - using the version that comes in the binary install<br />
cat > /usr/lib/jvm/java-6-sun/UNINSTALL-jai_imageio <<DELIM<br />
#!/bin/sh<br />
# @(#)UNINSTALL-jai_imageio-jdk 3.1 06/05/12 16:18:39<br />
# usage: UNINSTALL-jai_imageio<br />
<br />
echo "Uninstalling Java Advanced Imaging Image I/O Tools"<br />
<br />
rm -f *jai_imageio.txt<br />
rm -f jre/lib/ext/jai_imageio.jar<br />
rm -f jre/lib/ext/clibwrapper_jiio.jar<br />
if [ ( `uname` = "SunOS" ) -a ( `uname -p` = "sparc" ) ]; then<br />
rm -f jre/lib/sparc/libclib_jiio.so<br />
rm -f jre/lib/sparc/libclib_jiio_vis.so<br />
rm -f jre/lib/sparc/libclib_jiio_vis2.so<br />
<br />
if [ -f jre/lib/sparcv9/libclib_jiio.so ]; then<br />
rm -f jre/lib/sparcv9/libclib_jiio.so<br />
rm -f jre/lib/sparcv9/libclib_jiio_vis.so<br />
rm -f jre/lib/sparcv9/libclib_jiio_vis2.so<br />
fi<br />
fi<br />
if [ -f jre/lib/amd64/libclib_jiio.so ]; then<br />
rm -f jre/lib/amd64/libclib_jiio.so<br />
fi<br />
if [ -f jre/lib/i386/libclib_jiio.so ]; then<br />
rm -f jre/lib/i386/libclib_jiio.so<br />
fi<br />
rm -f UNINSTALL-jai_imageio<br />
<br />
echo "Done"<br />
DELIM<br />
<br />
<br />
<br />
<div align="right">''Any questions or comments please email me at timothy.john.phillips@gmail.com - Tim Phillips.''</div></div>Tim phillipshttp://mircwiki.rsna.org/index.php?title=Install_Java_Advanced_Imaging_ImageIO_Tools_on_a_Linux_Machine&diff=5890Install Java Advanced Imaging ImageIO Tools on a Linux Machine2011-09-10T03:41:12Z<p>Tim phillips: /* How to install Java Advanced Imaging ImageIO Tools on Ubuntu Linux */</p>
<hr />
<div>=== Important ===<br />
<br />
* This is a small part of what the script at [[Install MIRC Zn on Ubuntu Linux]] will do automatically for you.<br />
* If you want to install MIRC on a Linux machine it is recommended you head the [[Install MIRC Zn on Ubuntu Linux]] page.<br />
<br />
== How to install Java Advanced Imaging ImageIO Tools on Ubuntu Linux ==<br />
* Download the script<br />
wget http://timphillips.net/mirc/install-JAI-imageIO.txt<br />
* Make it executable<br />
mv ./install-JAI-imageIO.txt.txt ./install-JAI-imageIO.txt<br />
chmod 777 ./install-JAI-imageIO.txt<br />
* Run the script<br />
./install-JAI-imageIO.txt<br />
<br />
==What the script does==<br />
<br />
* Checks you're running it as root or using sudo.<br />
* Updates the Ubuntu repos.<br />
* Checks which chipset you're running.<br />
* Answers the Java installation questions in advance.<br />
* Installs Oracle / Sun Java.<br />
* Downloads the appropriate JAI ImageIO files installs JAI ImageIO.<br />
<br />
===The script itself (in case you don't trust the download)===<br />
<br />
#!/bin/bash<br />
<br />
# Make sure only root can run our script<br />
if [[ $EUID -ne 0 ]]; then<br />
echo "This script must be run as root or using sudo" 1>&2<br />
exit 1<br />
fi<br />
<br />
#reassure the user something is happening<br />
echo 'Updating Ubuntu repositories ...'<br />
<br />
#work in the temp folder<br />
cd /var/tmp<br />
<br />
# partner repo<br />
echo deb http://archive.canonical.com/ lucid partner >>/etc/apt/sources.list.d/partner.list<br />
apt-get -qq update<br />
<br />
# preset the java answers:<br />
debconf-set-selections << END<br />
sun-java6-jdk shared/accepted-sun-dlj-v1-1 boolean true<br />
sun-java6-jre shared/accepted-sun-dlj-v1-1 boolean true<br />
sun-java6-bin shared/accepted-sun-dlj-v1-1 boolean true<br />
END<br />
<br />
#reassure the user something is happening<br />
echo 'Downloading and installing required ubuntu packages ...'<br />
<br />
# packages installed:<br />
apt-get install -y -qq acpid htop unzip xauth libxtst6 sun-java6-jdk<br />
<br />
# if a previous version is here - get rid of it<br />
cd /usr/lib/jvm/java-6-sun/<br />
if [ -f UNINSTALL-jai_imageio ]; then<br />
echo 'Removing previous install of JAI ImageIO ...'<br />
bash UNINSTALL-jai_imageio<br />
fi<br />
<br />
#work in the temp folder<br />
cd /var/tmp<br />
<br />
#reassure the user something is happening<br />
echo 'Downloading JAI Image IO ...'<br />
<br />
#check which chipset we're using<br />
case $(arch) in<br />
i686)<br />
CHIP=i586<br />
;;<br />
x86_64)<br />
CHIP=amd64<br />
;;<br />
*)<br />
;;<br />
esac<br />
<br />
#download the JAI tgz file<br />
# get jai binary<br />
if [ -f ./jai_imageio-1_1-lib-linux-$CHIP.tar.gz ]; then<br />
rm ./jai_imageio-1_1-lib-linux-$CHIP.tar.gz<br />
fi<br />
wget -q http://download.java.net/media/jai-imageio/builds/release/1.1/jai_imageio-1_1-lib-linux-$CHIP.tar.gz<br />
<br />
#reassure the user something is happening<br />
echo 'Installing JAI Image IO ...'<br />
<br />
#expand the tgz and put the files where they should go (excluding UNINSTALL)<br />
tar xzf ./jai_imageio-1_1-lib-linux-$CHIP.tar.gz<br />
mv ./jai_imageio-1_1/*.txt /usr/lib/jvm/java-6-sun/<br />
mv ./jai_imageio-1_1/lib/libclib_jiio.so /usr/lib/jvm/java-6-sun/jre/lib/$CHIP2/<br />
mv ./jai_imageio-1_1/lib/*.jar /usr/lib/jvm/java-6-sun/jre/lib/ext/<br />
<br />
#generate the UNINSTALL file - using the version that comes in the binary install<br />
cat > /usr/lib/jvm/java-6-sun/UNINSTALL-jai_imageio <<DELIM<br />
#!/bin/sh<br />
# @(#)UNINSTALL-jai_imageio-jdk 3.1 06/05/12 16:18:39<br />
# usage: UNINSTALL-jai_imageio<br />
<br />
echo "Uninstalling Java Advanced Imaging Image I/O Tools"<br />
<br />
rm -f *jai_imageio.txt<br />
rm -f jre/lib/ext/jai_imageio.jar<br />
rm -f jre/lib/ext/clibwrapper_jiio.jar<br />
if [ ( `uname` = "SunOS" ) -a ( `uname -p` = "sparc" ) ]; then<br />
rm -f jre/lib/sparc/libclib_jiio.so<br />
rm -f jre/lib/sparc/libclib_jiio_vis.so<br />
rm -f jre/lib/sparc/libclib_jiio_vis2.so<br />
<br />
if [ -f jre/lib/sparcv9/libclib_jiio.so ]; then<br />
rm -f jre/lib/sparcv9/libclib_jiio.so<br />
rm -f jre/lib/sparcv9/libclib_jiio_vis.so<br />
rm -f jre/lib/sparcv9/libclib_jiio_vis2.so<br />
fi<br />
fi<br />
if [ -f jre/lib/amd64/libclib_jiio.so ]; then<br />
rm -f jre/lib/amd64/libclib_jiio.so<br />
fi<br />
if [ -f jre/lib/i386/libclib_jiio.so ]; then<br />
rm -f jre/lib/i386/libclib_jiio.so<br />
fi<br />
rm -f UNINSTALL-jai_imageio<br />
<br />
echo "Done"<br />
DELIM<br />
<br />
<br />
<br />
<div align="right">''Any questions or comments please email me at timothy.john.phillips@gmail.com - Tim Phillips.''</div></div>Tim phillipshttp://mircwiki.rsna.org/index.php?title=Install_Java_Advanced_Imaging_ImageIO_Tools_on_a_Linux_Machine&diff=5889Install Java Advanced Imaging ImageIO Tools on a Linux Machine2011-09-10T03:36:55Z<p>Tim phillips: </p>
<hr />
<div>=== Important ===<br />
<br />
* This is a small part of what the script at [[Install MIRC Zn on Ubuntu Linux]] will do automatically for you.<br />
* If you want to install MIRC on a Linux machine it is recommended you head the [[Install MIRC Zn on Ubuntu Linux]] page.<br />
<br />
== How to install Java Advanced Imaging ImageIO Tools on Ubuntu Linux ==<br />
* Download the script<br />
wget http://timphillips.net/mirc/install-JAI-imageIO.txt.txt<br />
* Make it executable<br />
mv ./install-JAI-imageIO.txt.txt ./install-JAI-imageIO.txt<br />
chmod 777 ./install-JAI-imageIO.txt<br />
* Run the script<br />
./install-JAI-imageIO.txt<br />
<br />
==What the script does==<br />
<br />
* Checks you're running it as root or using sudo.<br />
* Updates the Ubuntu repos.<br />
* Checks which chipset you're running.<br />
* Answers the Java installation questions in advance.<br />
* Installs Oracle / Sun Java.<br />
* Downloads the appropriate JAI ImageIO files installs JAI ImageIO.<br />
<br />
===The script itself (in case you don't trust the download)===<br />
<br />
#!/bin/bash<br />
<br />
# Make sure only root can run our script<br />
if [[ $EUID -ne 0 ]]; then<br />
echo "This script must be run as root or using sudo" 1>&2<br />
exit 1<br />
fi<br />
<br />
#reassure the user something is happening<br />
echo 'Updating Ubuntu repositories ...'<br />
<br />
#work in the temp folder<br />
cd /var/tmp<br />
<br />
# partner repo<br />
echo deb http://archive.canonical.com/ lucid partner >>/etc/apt/sources.list.d/partner.list<br />
apt-get -qq update<br />
<br />
# preset the java answers:<br />
debconf-set-selections << END<br />
sun-java6-jdk shared/accepted-sun-dlj-v1-1 boolean true<br />
sun-java6-jre shared/accepted-sun-dlj-v1-1 boolean true<br />
sun-java6-bin shared/accepted-sun-dlj-v1-1 boolean true<br />
END<br />
<br />
#reassure the user something is happening<br />
echo 'Downloading and installing required ubuntu packages ...'<br />
<br />
# packages installed:<br />
apt-get install -y -qq acpid htop unzip xauth libxtst6 sun-java6-jdk<br />
<br />
# if a previous version is here - get rid of it<br />
cd /usr/lib/jvm/java-6-sun/<br />
if [ -f UNINSTALL-jai_imageio ]; then<br />
echo 'Removing previous install of JAI ImageIO ...'<br />
bash UNINSTALL-jai_imageio<br />
fi<br />
<br />
#work in the temp folder<br />
cd /var/tmp<br />
<br />
#reassure the user something is happening<br />
echo 'Downloading JAI Image IO ...'<br />
<br />
#check which chipset we're using<br />
case $(arch) in<br />
i686)<br />
CHIP=i586<br />
;;<br />
x86_64)<br />
CHIP=amd64<br />
;;<br />
*)<br />
;;<br />
esac<br />
<br />
#download the JAI tgz file<br />
# get jai binary<br />
if [ -f ./jai_imageio-1_1-lib-linux-$CHIP.tar.gz ]; then<br />
rm ./jai_imageio-1_1-lib-linux-$CHIP.tar.gz<br />
fi<br />
wget -q http://download.java.net/media/jai-imageio/builds/release/1.1/jai_imageio-1_1-lib-linux-$CHIP.tar.gz<br />
<br />
#reassure the user something is happening<br />
echo 'Installing JAI Image IO ...'<br />
<br />
#expand the tgz and put the files where they should go (excluding UNINSTALL)<br />
tar xzf ./jai_imageio-1_1-lib-linux-$CHIP.tar.gz<br />
mv ./jai_imageio-1_1/*.txt /usr/lib/jvm/java-6-sun/<br />
mv ./jai_imageio-1_1/lib/libclib_jiio.so /usr/lib/jvm/java-6-sun/jre/lib/$CHIP2/<br />
mv ./jai_imageio-1_1/lib/*.jar /usr/lib/jvm/java-6-sun/jre/lib/ext/<br />
<br />
#generate the UNINSTALL file - using the version that comes in the binary install<br />
cat > /usr/lib/jvm/java-6-sun/UNINSTALL-jai_imageio <<DELIM<br />
#!/bin/sh<br />
# @(#)UNINSTALL-jai_imageio-jdk 3.1 06/05/12 16:18:39<br />
# usage: UNINSTALL-jai_imageio<br />
<br />
echo "Uninstalling Java Advanced Imaging Image I/O Tools"<br />
<br />
rm -f *jai_imageio.txt<br />
rm -f jre/lib/ext/jai_imageio.jar<br />
rm -f jre/lib/ext/clibwrapper_jiio.jar<br />
if [ ( `uname` = "SunOS" ) -a ( `uname -p` = "sparc" ) ]; then<br />
rm -f jre/lib/sparc/libclib_jiio.so<br />
rm -f jre/lib/sparc/libclib_jiio_vis.so<br />
rm -f jre/lib/sparc/libclib_jiio_vis2.so<br />
<br />
if [ -f jre/lib/sparcv9/libclib_jiio.so ]; then<br />
rm -f jre/lib/sparcv9/libclib_jiio.so<br />
rm -f jre/lib/sparcv9/libclib_jiio_vis.so<br />
rm -f jre/lib/sparcv9/libclib_jiio_vis2.so<br />
fi<br />
fi<br />
if [ -f jre/lib/amd64/libclib_jiio.so ]; then<br />
rm -f jre/lib/amd64/libclib_jiio.so<br />
fi<br />
if [ -f jre/lib/i386/libclib_jiio.so ]; then<br />
rm -f jre/lib/i386/libclib_jiio.so<br />
fi<br />
rm -f UNINSTALL-jai_imageio<br />
<br />
echo "Done"<br />
DELIM<br />
<br />
<br />
<br />
<div align="right">''Any questions or comments please email me at timothy.john.phillips@gmail.com - Tim Phillips.''</div></div>Tim phillipshttp://mircwiki.rsna.org/index.php?title=Install_Java_Advanced_Imaging_ImageIO_Tools_on_a_Linux_Machine&diff=5888Install Java Advanced Imaging ImageIO Tools on a Linux Machine2011-09-10T03:36:18Z<p>Tim phillips: Created page with "== How to install Java Advanced Imaging ImageIO Tools on Ubuntu Linux == * Download the script wget http://timphillips.net/mirc/install-JAI-imageIO.txt.txt * Make it executable ..."</p>
<hr />
<div>== How to install Java Advanced Imaging ImageIO Tools on Ubuntu Linux ==<br />
* Download the script<br />
wget http://timphillips.net/mirc/install-JAI-imageIO.txt.txt<br />
* Make it executable<br />
mv ./install-JAI-imageIO.txt.txt ./install-JAI-imageIO.txt<br />
chmod 777 ./install-JAI-imageIO.txt<br />
* Run the script<br />
./install-JAI-imageIO.txt<br />
<br />
==What the script does==<br />
<br />
* Checks you're running it as root or using sudo.<br />
* Updates the Ubuntu repos.<br />
* Checks which chipset you're running.<br />
* Answers the Java installation questions in advance.<br />
* Installs Oracle / Sun Java.<br />
* Downloads the appropriate JAI ImageIO files installs JAI ImageIO.<br />
<br />
===The script itself (in case you don't trust the download)===<br />
<br />
#!/bin/bash<br />
<br />
# Make sure only root can run our script<br />
if [[ $EUID -ne 0 ]]; then<br />
echo "This script must be run as root or using sudo" 1>&2<br />
exit 1<br />
fi<br />
<br />
#reassure the user something is happening<br />
echo 'Updating Ubuntu repositories ...'<br />
<br />
#work in the temp folder<br />
cd /var/tmp<br />
<br />
# partner repo<br />
echo deb http://archive.canonical.com/ lucid partner >>/etc/apt/sources.list.d/partner.list<br />
apt-get -qq update<br />
<br />
# preset the java answers:<br />
debconf-set-selections << END<br />
sun-java6-jdk shared/accepted-sun-dlj-v1-1 boolean true<br />
sun-java6-jre shared/accepted-sun-dlj-v1-1 boolean true<br />
sun-java6-bin shared/accepted-sun-dlj-v1-1 boolean true<br />
END<br />
<br />
#reassure the user something is happening<br />
echo 'Downloading and installing required ubuntu packages ...'<br />
<br />
# packages installed:<br />
apt-get install -y -qq acpid htop unzip xauth libxtst6 sun-java6-jdk<br />
<br />
# if a previous version is here - get rid of it<br />
cd /usr/lib/jvm/java-6-sun/<br />
if [ -f UNINSTALL-jai_imageio ]; then<br />
echo 'Removing previous install of JAI ImageIO ...'<br />
bash UNINSTALL-jai_imageio<br />
fi<br />
<br />
#work in the temp folder<br />
cd /var/tmp<br />
<br />
#reassure the user something is happening<br />
echo 'Downloading JAI Image IO ...'<br />
<br />
#check which chipset we're using<br />
case $(arch) in<br />
i686)<br />
CHIP=i586<br />
;;<br />
x86_64)<br />
CHIP=amd64<br />
;;<br />
*)<br />
;;<br />
esac<br />
<br />
#download the JAI tgz file<br />
# get jai binary<br />
if [ -f ./jai_imageio-1_1-lib-linux-$CHIP.tar.gz ]; then<br />
rm ./jai_imageio-1_1-lib-linux-$CHIP.tar.gz<br />
fi<br />
wget -q http://download.java.net/media/jai-imageio/builds/release/1.1/jai_imageio-1_1-lib-linux-$CHIP.tar.gz<br />
<br />
#reassure the user something is happening<br />
echo 'Installing JAI Image IO ...'<br />
<br />
#expand the tgz and put the files where they should go (excluding UNINSTALL)<br />
tar xzf ./jai_imageio-1_1-lib-linux-$CHIP.tar.gz<br />
mv ./jai_imageio-1_1/*.txt /usr/lib/jvm/java-6-sun/<br />
mv ./jai_imageio-1_1/lib/libclib_jiio.so /usr/lib/jvm/java-6-sun/jre/lib/$CHIP2/<br />
mv ./jai_imageio-1_1/lib/*.jar /usr/lib/jvm/java-6-sun/jre/lib/ext/<br />
<br />
#generate the UNINSTALL file - using the version that comes in the binary install<br />
cat > /usr/lib/jvm/java-6-sun/UNINSTALL-jai_imageio <<DELIM<br />
#!/bin/sh<br />
# @(#)UNINSTALL-jai_imageio-jdk 3.1 06/05/12 16:18:39<br />
# usage: UNINSTALL-jai_imageio<br />
<br />
echo "Uninstalling Java Advanced Imaging Image I/O Tools"<br />
<br />
rm -f *jai_imageio.txt<br />
rm -f jre/lib/ext/jai_imageio.jar<br />
rm -f jre/lib/ext/clibwrapper_jiio.jar<br />
if [ ( `uname` = "SunOS" ) -a ( `uname -p` = "sparc" ) ]; then<br />
rm -f jre/lib/sparc/libclib_jiio.so<br />
rm -f jre/lib/sparc/libclib_jiio_vis.so<br />
rm -f jre/lib/sparc/libclib_jiio_vis2.so<br />
<br />
if [ -f jre/lib/sparcv9/libclib_jiio.so ]; then<br />
rm -f jre/lib/sparcv9/libclib_jiio.so<br />
rm -f jre/lib/sparcv9/libclib_jiio_vis.so<br />
rm -f jre/lib/sparcv9/libclib_jiio_vis2.so<br />
fi<br />
fi<br />
if [ -f jre/lib/amd64/libclib_jiio.so ]; then<br />
rm -f jre/lib/amd64/libclib_jiio.so<br />
fi<br />
if [ -f jre/lib/i386/libclib_jiio.so ]; then<br />
rm -f jre/lib/i386/libclib_jiio.so<br />
fi<br />
rm -f UNINSTALL-jai_imageio<br />
<br />
echo "Done"<br />
DELIM<br />
<br />
<br />
<br />
<div align="right">''Any questions or comments please email me at timothy.john.phillips@gmail.com - Tim Phillips.''</div></div>Tim phillipshttp://mircwiki.rsna.org/index.php?title=(depreciated)_empty_page_-_TJP&diff=5887(depreciated) empty page - TJP2011-09-10T03:35:03Z<p>Tim phillips: </p>
<hr />
<div>== How to install MIRC-Zn on Ubuntu Linux ==<br />
* Download the script<br />
wget http://timphillips.net/mirc/install-MIRC-Zn.txt<br />
* Make it executable<br />
mv ./install-MIRC-Zn.txt ./install-MIRC-Zn<br />
chmod 777 ./install-MIRC-Zn<br />
* Run the script<br />
./install-MIRC-Zn<br />
* Point your browser to the machine you just installed it on and MIRC should be up and running.<br />
* This script will also upgrade a previous "Tim Phillips" installation of MIRC-Zn so it can be used again when the RSNA code is updated.<br />
<br />
==What the script does==<br />
<br />
* Checks you're running it as root or using sudo.<br />
* Stops the MIRC-Zn service if its running.<br />
* Checks which chipset you're running.<br />
* Enables the ubuntu partner repo (to get Oracle Java).<br />
* Answers the Java installation questions in advance.<br />
* Installs SunJava and a few other necessary applications.<br />
* Downloads the appropriate JAI ImageIO files installs JAI ImageIO.<br />
* Downloads the latest version of MIRC-Zn.<br />
* Writes an upstart script (so that CTP/MIRC will be run as a service automatically).<br />
* Installs RSNA MIRC.<br />
<br />
===The script itself (in case you don't trust the download)===<br />
<br />
#!/bin/bash<br />
<br />
# Make sure only root can run our script<br />
if [[ $EUID -ne 0 ]]; then<br />
echo "This script must be run as root or using sudo" 1>&2<br />
exit 1<br />
fi<br />
<br />
#reassure the user something is happening<br />
echo 'Updating Ubuntu repositories ...'<br />
<br />
#work in the temp folder<br />
cd /var/tmp<br />
<br />
# partner repo<br />
echo deb http://archive.canonical.com/ lucid partner >>/etc/apt/sources.list.d/partner.list<br />
apt-get -qq update<br />
<br />
# preset the java answers:<br />
debconf-set-selections << END<br />
sun-java6-jdk shared/accepted-sun-dlj-v1-1 boolean true<br />
sun-java6-jre shared/accepted-sun-dlj-v1-1 boolean true<br />
sun-java6-bin shared/accepted-sun-dlj-v1-1 boolean true<br />
END<br />
<br />
#reassure the user something is happening<br />
echo 'Downloading and installing required ubuntu packages ...'<br />
<br />
# packages installed:<br />
apt-get install -y -qq acpid htop unzip xauth libxtst6 sun-java6-jdk<br />
<br />
# if a previous version is here - get rid of it<br />
cd /usr/lib/jvm/java-6-sun/<br />
if [ -f UNINSTALL-jai_imageio ]; then<br />
echo 'Removing previous install of JAI ImageIO ...'<br />
bash UNINSTALL-jai_imageio<br />
fi<br />
<br />
#work in the temp folder<br />
cd /var/tmp<br />
<br />
#reassure the user something is happening<br />
echo 'Downloading JAI Image IO ...'<br />
<br />
#check which chipset we're using<br />
case $(arch) in<br />
i686)<br />
CHIP=i586<br />
;;<br />
x86_64)<br />
CHIP=amd64<br />
;;<br />
*)<br />
;;<br />
esac<br />
<br />
#download the JAI tgz file<br />
# get jai binary<br />
if [ -f ./jai_imageio-1_1-lib-linux-$CHIP.tar.gz ]; then<br />
rm ./jai_imageio-1_1-lib-linux-$CHIP.tar.gz<br />
fi<br />
wget -q http://download.java.net/media/jai-imageio/builds/release/1.1/jai_imageio-1_1-lib-linux-$CHIP.tar.gz<br />
<br />
#reassure the user something is happening<br />
echo 'Installing JAI Image IO ...'<br />
<br />
#expand the tgz and put the files where they should go (excluding UNINSTALL)<br />
tar xzf ./jai_imageio-1_1-lib-linux-$CHIP.tar.gz<br />
mv ./jai_imageio-1_1/*.txt /usr/lib/jvm/java-6-sun/<br />
mv ./jai_imageio-1_1/lib/libclib_jiio.so /usr/lib/jvm/java-6-sun/jre/lib/$CHIP2/<br />
mv ./jai_imageio-1_1/lib/*.jar /usr/lib/jvm/java-6-sun/jre/lib/ext/<br />
<br />
#generate the UNINSTALL file - using the version that comes in the binary install<br />
cat > /usr/lib/jvm/java-6-sun/UNINSTALL-jai_imageio <<DELIM<br />
#!/bin/sh<br />
# @(#)UNINSTALL-jai_imageio-jdk 3.1 06/05/12 16:18:39<br />
# usage: UNINSTALL-jai_imageio<br />
<br />
echo "Uninstalling Java Advanced Imaging Image I/O Tools"<br />
<br />
rm -f *jai_imageio.txt<br />
rm -f jre/lib/ext/jai_imageio.jar<br />
rm -f jre/lib/ext/clibwrapper_jiio.jar<br />
if [ ( `uname` = "SunOS" ) -a ( `uname -p` = "sparc" ) ]; then<br />
rm -f jre/lib/sparc/libclib_jiio.so<br />
rm -f jre/lib/sparc/libclib_jiio_vis.so<br />
rm -f jre/lib/sparc/libclib_jiio_vis2.so<br />
<br />
if [ -f jre/lib/sparcv9/libclib_jiio.so ]; then<br />
rm -f jre/lib/sparcv9/libclib_jiio.so<br />
rm -f jre/lib/sparcv9/libclib_jiio_vis.so<br />
rm -f jre/lib/sparcv9/libclib_jiio_vis2.so<br />
fi<br />
fi<br />
if [ -f jre/lib/amd64/libclib_jiio.so ]; then<br />
rm -f jre/lib/amd64/libclib_jiio.so<br />
fi<br />
if [ -f jre/lib/i386/libclib_jiio.so ]; then<br />
rm -f jre/lib/i386/libclib_jiio.so<br />
fi<br />
rm -f UNINSTALL-jai_imageio<br />
<br />
echo "Done"<br />
DELIM<br />
<br />
# Stop MIRC-Zn if it is running<br />
if [ -f /etc/init/MIRC-Zn.conf ]<br />
then<br />
if [[ $(stop -q MIRC-Zn 2>&1 | grep Unknown) ]]<br />
then<br />
echo 'MIRC-Zn service not currently running ...'<br />
echo 'MIRC-Zn will be upgraded with the latest version from the RSNA site ...'<br />
else<br />
echo 'Stopping current MIRC-Zn service ...'<br />
echo 'MIRC-Zn will be upgraded with the latest version from the RSNA site ...'<br />
fi<br />
fi<br />
<br />
#reassure the user something is happening<br />
echo 'Downloading RSNA MIRC Installer ...'<br />
<br />
# go to the target folder<br />
cd /usr/share<br />
<br />
# get MIRC installer<br />
if [ -f ./MIRC-installer.jar ]; then<br />
rm ./MIRC-installer.jar<br />
fi<br />
wget -q http://mirc.rsna.org/MIRC2/MIRC-installer.jar<br />
<br />
#reassure the user something is happening<br />
echo 'Writing an upstart script and putting it in /etc/init ...'<br />
<br />
# make an upstart script<br />
cat > /etc/init/MIRC-Zn.conf <<DELIM<br />
description "MIRC Zn (CTP plugin not Tomcat)"<br />
author "Tim Phillips <timothy.john.phillips@gmail.com>"<br />
<br />
start on (local-filesystems and net-device-up IFACE!=lo)<br />
stop on stopping network-services<br />
<br />
respawn<br />
<br />
expect fork<br />
<br />
script<br />
cd /usr/share/CTP/<br />
java -jar ./CTP-runner.jar<br />
end script<br />
DELIM<br />
<br />
echo -e<br />
echo -e<br />
echo -e<br />
echo 'Now the RSNA installer will run'<br />
echo 'You will be asked to choose a folder to install CTP/MIRC into'<br />
echo 'It should be /usr/share or the startup script wont work'<br />
echo -e<br />
echo 'hit enter to continue'<br />
read dummy<br />
echo -e<br />
echo -e<br />
<br />
if [[ $(java -jar ./MIRC-installer.jar 2>&1 | grep X11) ]]<br />
then<br />
# have to re-login with X forwarding<br />
echo -e<br />
echo '================================================'<br />
echo 'NOT FINISHED YET!!!!'<br />
echo '================================================'<br />
echo -e<br />
echo 'X-forwarding is required for the MIRC installer'<br />
echo -e<br />
echo 'Here is what you have to do'<br />
echo ' - logout'<br />
echo ' - login again from a machine with a GUI and a display....'<br />
echo ' - using the switch to enable X forwarding'<br />
echo ' - From a mac: ssh -Y user@host'<br />
echo ' - From a linux desktop: ssh -X user@host'<br />
echo ' - If you are using windows you will need PuTTy and Xming.. (google them)'<br />
echo ' - When you are logged in again re-run this script'<br />
else<br />
cd ~<br />
echo 'Starting MIRC web service (this will also happen automatically at boot) ...'<br />
start MIRC-Zn<br />
echo -e<br />
echo 'finished - it should all be running'<br />
echo 'point your browser to this server and have a look'<br />
fi<br />
<br />
==Choosing between Ubuntu Desktop and Ubuntu Server==<br />
<br />
* Ubuntu Desktop<br />
** Easier (very easy) if you're new to Linux.<br />
** May be very slightly slower but on modern hardware you are unlikely to notice the difference.<br />
* Ubuntu Server<br />
** Makes more sense - MIRC is a web service after all.<br />
** Will be leaner and faster.<br />
** Can run on a headless server or virtual machine.<br />
** [http://turnkeylinux.org TurnkeyLinux] is a very good Ubuntu install for this purpose.<br />
<br />
<div align="right">''Any questions or comments please email me at timothy.john.phillips@gmail.com - Tim Phillips.''</div></div>Tim phillipshttp://mircwiki.rsna.org/index.php?title=Running_CTP_as_a_Linux_Service&diff=5886Running CTP as a Linux Service2011-09-10T03:01:12Z<p>Tim phillips: </p>
<hr />
<div>=== Important ===<br />
<br />
* This is a small part of what the script at [[Install MIRC Zn on Ubuntu Linux]] will do automatically for you.<br />
* If you want to install MIRC on a Linux machine it is recommended you head the [[Install MIRC Zn on Ubuntu Linux]] page.<br />
<br />
=== Using an UpStart Script ===<br />
Ubuntu and many other Linux distros use UpStart to run services.<br />
The below example assumes CTP is installed at <br />
<br />
/usr/share/CTP/<br />
<br />
You can modify it to suit a different locations.<br />
<br />
Cut and paste the below code <br />
<br />
description "CTP Service on Linux"<br />
author "Tim Phillips <timothy.john.phillips@gmail.com>"<br />
<br />
start on (local-filesystems and net-device-up IFACE!=lo)<br />
stop on stopping network-services<br />
<br />
respawn<br />
<br />
expect fork<br />
<br />
script<br />
cd /usr/share/CTP/<br />
java -jar ./CTP-runner.jar<br />
end script<br />
<br />
into a file named<br />
<br />
/etc/init/CTP.conf<br />
<br />
Start the service by typing<br />
<br />
start CTP<br />
<br />
This will also start automatically when the machine boots<br />
<br />
<div align="right">''Any questions or comments please email me at timothy.john.phillips@gmail.com - Tim Phillips.''</div></div>Tim phillipshttp://mircwiki.rsna.org/index.php?title=Running_CTP_as_a_Linux_Service&diff=5885Running CTP as a Linux Service2011-09-10T03:00:46Z<p>Tim phillips: </p>
<hr />
<div>=== Important ===<br />
<br />
* This is a small part of what the script at [[Install MIRC Zn on Ubuntu Linux]] will do automatically for you.<br />
* If you want to install MIRC on a Linux machine it is recommended you head the [[Install MIRC Zn on Ubuntu Linux]] page.<br />
<br />
=== Using an UpStart Script ===<br />
Ubuntu and many other Linux distros use UpStart to run services.<br />
The below example assumes CTP is installed at <br />
<br />
/usr/share/CTP/<br />
<br />
You can modify it to suit a different locations.<br />
<br />
Cut and paste the below code <br />
<br />
description "CTP Service on Linux"<br />
author "Tim Phillips <timothy.john.phillips@gmail.com>"<br />
<br />
start on (local-filesystems and net-device-up IFACE!=lo)<br />
stop on stopping network-services<br />
<br />
respawn<br />
<br />
expect fork<br />
<br />
script<br />
cd /usr/share/CTP/<br />
java -jar ./CTP-runner.jar<br />
end script<br />
<br />
<br />
into a file named<br />
<br />
/etc/init/CTP.conf<br />
<br />
Start the service by typing<br />
<br />
start CTP<br />
<br />
This will also start automatically when the machine boots<br />
<br />
<div align="right">''Any questions or comments please email me at timothy.john.phillips@gmail.com - Tim Phillips.''</div></div>Tim phillipshttp://mircwiki.rsna.org/index.php?title=Running_CTP_as_a_Linux_Service&diff=5884Running CTP as a Linux Service2011-09-10T02:58:32Z<p>Tim phillips: </p>
<hr />
<div>This is a small part of what the [[Install MIRC Zn on Ubuntu Linux MIRC-Zn installation on Linux script]] will do automatically for you<br />
<br />
=== Using an UpStart Script ===<br />
Ubuntu and many other Linux distros use UpStart to run services.<br />
The below example assumes CTP is installed at <br />
<br />
/usr/share/CTP/<br />
<br />
You can modify it to suit a different locations.<br />
<br />
Cut and paste the below code <br />
<br />
description "MIRC Zn (CTP plugin not Tomcat)"<br />
author "Tim Phillips <timothy.john.phillips@gmail.com>"<br />
<br />
start on (local-filesystems and net-device-up IFACE!=lo)<br />
stop on stopping network-services<br />
<br />
respawn<br />
<br />
expect fork<br />
<br />
script<br />
cd /usr/share/CTP/<br />
java -jar ./CTP-runner.jar<br />
end script<br />
<br />
<br />
into a file named<br />
<br />
/etc/init/MIRC-Zn.conf<br />
<br />
Start the service by typing<br />
<br />
start MIRC-Zn<br />
<br />
This will also start automatically when the machine boots<br />
<br />
<div align="right">''Any questions or comments please email me at timothy.john.phillips@gmail.com - Tim Phillips.''</div></div>Tim phillipshttp://mircwiki.rsna.org/index.php?title=Running_CTP_as_a_Linux_Service&diff=5883Running CTP as a Linux Service2011-09-10T02:56:43Z<p>Tim phillips: </p>
<hr />
<div>This is a small part of what the MIRC-Zn installation on Linux script will do automatically for you<br />
<br />
=== Using an UpStart Script ===<br />
Ubuntu and many other Linux distros use UpStart to run services.<br />
The below example assumes CTP is installed at <br />
<br />
/usr/share/CTP/<br />
<br />
You can modify it to suit a different locations.<br />
<br />
Cut and paste the below code into a file named<br />
<br />
/etc/init/MIRC-Zn.conf<br />
<br />
The code<br />
<br />
description "MIRC Zn (CTP plugin not Tomcat)"<br />
author "Tim Phillips <timothy.john.phillips@gmail.com>"<br />
<br />
start on (local-filesystems and net-device-up IFACE!=lo)<br />
stop on stopping network-services<br />
<br />
respawn<br />
<br />
expect fork<br />
<br />
script<br />
cd /usr/share/CTP/<br />
java -jar ./CTP-runner.jar<br />
end script<br />
<br />
<div align="right">''Any questions or comments please email me at timothy.john.phillips@gmail.com - Tim Phillips.''</div></div>Tim phillipshttp://mircwiki.rsna.org/index.php?title=(depreciated)_empty_page_-_TJP&diff=5882(depreciated) empty page - TJP2011-09-10T02:53:29Z<p>Tim phillips: </p>
<hr />
<div>== How to install MIRC-Zn on Ubuntu Linux ==<br />
* Download the script<br />
wget http://timphillips.net/mirc/install-MIRC-Zn.txt<br />
* Make it executable<br />
mv ./install-MIRC-Zn.txt ./install-MIRC-Zn<br />
chmod 777 ./install-MIRC-Zn<br />
* Run the script<br />
./install-MIRC-Zn<br />
* Point your browser to the machine you just installed it on and MIRC should be up and running.<br />
* This script will also upgrade a previous "Tim Phillips" installation of MIRC-Zn so it can be used again when the RSNA code is updated.<br />
<br />
==What the script does==<br />
<br />
* Checks you're running it as root or using sudo.<br />
* Stops the MIRC-Zn service if its running.<br />
* Checks which chipset you're running.<br />
* Enables the ubuntu partner repo (to get Oracle Java).<br />
* Answers the Java installation questions in advance.<br />
* Installs SunJava and a few other necessary applications.<br />
* Downloads the appropriate JAI ImageIO files installs JAI ImageIO.<br />
* Downloads the latest version of MIRC-Zn.<br />
* Writes an upstart script (so that CTP/MIRC will be run as a service automatically).<br />
* Installs RSNA MIRC.<br />
<br />
===The script itself (in case you don't trust the download)===<br />
<br />
#!/bin/bash<br />
<br />
# Make sure only root can run our script<br />
if [[ $EUID -ne 0 ]]; then<br />
echo "This script must be run as root or using sudo" 1>&2<br />
exit 1<br />
fi<br />
<br />
# Stop MIRC-Zn if it is running<br />
if [ -f /etc/init/MIRC-Zn.conf ]<br />
then<br />
if [[ $(stop -q MIRC-Zn 2>&1 | grep Unknown) ]]<br />
then<br />
echo 'MIRC-Zn service not currently running ...'<br />
echo 'MIRC-Zn will be upgraded with the latest version from the RSNA site ...'<br />
else<br />
echo 'Stopping current MIRC-Zn service ...'<br />
echo 'MIRC-Zn will be upgraded with the latest version from the RSNA site ...'<br />
fi<br />
fi<br />
<br />
#reassure the user something is happening<br />
echo 'Updating Ubuntu repositories ...'<br />
<br />
#work in the temp folder<br />
cd /var/tmp<br />
<br />
#check which chipset we're using<br />
case $(arch) in<br />
i686)<br />
CHIP=i586<br />
;;<br />
x86_64)<br />
CHIP=amd64<br />
;;<br />
*)<br />
;;<br />
esac<br />
<br />
# partner repo<br />
echo deb http://archive.canonical.com/ lucid partner >>/etc/apt/sources.list.d/partner.list<br />
apt-get -qq update<br />
<br />
# preset the java answers:<br />
debconf-set-selections << END<br />
sun-java6-jdk shared/accepted-sun-dlj-v1-1 boolean true<br />
sun-java6-jre shared/accepted-sun-dlj-v1-1 boolean true<br />
sun-java6-bin shared/accepted-sun-dlj-v1-1 boolean true<br />
END<br />
<br />
#reassure the user something is happening<br />
echo 'Downloading and installing required ubuntu packages ...'<br />
<br />
# packages installed:<br />
apt-get install -y -qq acpid htop unzip xauth libxtst6 sun-java6-jdk<br />
<br />
# if a previous version is here - get rid of it<br />
cd /usr/lib/jvm/java-6-sun/<br />
if [ -f UNINSTALL-jai_imageio ]; then<br />
echo 'Removing previous install of JAI ImageIO ...'<br />
bash UNINSTALL-jai_imageio<br />
fi<br />
<br />
#work in the temp folder<br />
cd /var/tmp<br />
<br />
#check which chipset we're using<br />
case $(arch) in<br />
i686)<br />
CHIP=i586<br />
CHIP2=i386<br />
;;<br />
x86_64)<br />
CHIP=amd64<br />
CHIP2=amd64<br />
;;<br />
*)<br />
;;<br />
esac<br />
<br />
#reassure the user something is happening<br />
echo 'Downloading JAI Image IO ...'<br />
<br />
#download the JAI tgz file<br />
# get jai binary<br />
if [ -f ./jai_imageio-1_1-lib-linux-$CHIP.tar.gz ]; then<br />
rm ./jai_imageio-1_1-lib-linux-$CHIP.tar.gz<br />
fi<br />
wget -q http://download.java.net/media/jai-imageio/builds/release/1.1/jai_imageio-1_1-lib-linux-$CHIP.tar.gz<br />
<br />
#reassure the user something is happening<br />
echo 'Installing JAI Image IO ...'<br />
<br />
#expand the tgz and put the files where they should go (excluding UNINSTALL)<br />
tar xzf ./jai_imageio-1_1-lib-linux-$CHIP.tar.gz<br />
mv ./jai_imageio-1_1/*.txt /usr/lib/jvm/java-6-sun/<br />
mv ./jai_imageio-1_1/lib/libclib_jiio.so /usr/lib/jvm/java-6-sun/jre/lib/$CHIP2/<br />
mv ./jai_imageio-1_1/lib/*.jar /usr/lib/jvm/java-6-sun/jre/lib/ext/<br />
<br />
#generate the UNINSTALL file - using the version that comes in the binary install<br />
cat > /usr/lib/jvm/java-6-sun/UNINSTALL-jai_imageio <<DELIM<br />
#!/bin/sh<br />
# @(#)UNINSTALL-jai_imageio-jdk 3.1 06/05/12 16:18:39<br />
# usage: UNINSTALL-jai_imageio<br />
<br />
echo "Uninstalling Java Advanced Imaging Image I/O Tools"<br />
<br />
rm -f *jai_imageio.txt<br />
rm -f jre/lib/ext/jai_imageio.jar<br />
rm -f jre/lib/ext/clibwrapper_jiio.jar<br />
if [ ( `uname` = "SunOS" ) -a ( `uname -p` = "sparc" ) ]; then<br />
rm -f jre/lib/sparc/libclib_jiio.so<br />
rm -f jre/lib/sparc/libclib_jiio_vis.so<br />
rm -f jre/lib/sparc/libclib_jiio_vis2.so<br />
<br />
if [ -f jre/lib/sparcv9/libclib_jiio.so ]; then<br />
rm -f jre/lib/sparcv9/libclib_jiio.so<br />
rm -f jre/lib/sparcv9/libclib_jiio_vis.so<br />
rm -f jre/lib/sparcv9/libclib_jiio_vis2.so<br />
fi<br />
fi<br />
if [ -f jre/lib/amd64/libclib_jiio.so ]; then<br />
rm -f jre/lib/amd64/libclib_jiio.so<br />
fi<br />
if [ -f jre/lib/i386/libclib_jiio.so ]; then<br />
rm -f jre/lib/i386/libclib_jiio.so<br />
fi<br />
rm -f UNINSTALL-jai_imageio<br />
<br />
echo "Done"<br />
DELIM<br />
<br />
#reassure the user something is happening<br />
echo 'Downloading RSNA MIRC Installer ...'<br />
<br />
# go to the target folder<br />
cd /usr/share<br />
<br />
# get MIRC installer<br />
if [ -f ./MIRC-installer.jar ]; then<br />
rm ./MIRC-installer.jar<br />
fi<br />
wget -q http://mirc.rsna.org/MIRC2/MIRC-installer.jar<br />
<br />
#reassure the user something is happening<br />
echo 'Writing an upstart script and putting it in /etc/init ...'<br />
<br />
# make an upstart script<br />
cat > /etc/init/MIRC-Zn.conf <<DELIM<br />
description "MIRC Zn (CTP plugin not Tomcat)"<br />
author "Tim Phillips <timothy.john.phillips@gmail.com>"<br />
<br />
start on (local-filesystems and net-device-up IFACE!=lo)<br />
stop on stopping network-services<br />
<br />
respawn<br />
<br />
expect fork<br />
<br />
script<br />
cd /usr/share/CTP/<br />
java -jar ./CTP-runner.jar<br />
end script<br />
DELIM<br />
<br />
echo -e<br />
echo -e<br />
echo -e<br />
echo 'Now the RSNA installer will run'<br />
echo 'You will be asked to choose a folder to install CTP/MIRC into'<br />
echo 'It should be /usr/share or the startup script wont work'<br />
echo -e<br />
echo 'hit enter to continue'<br />
read dummy<br />
echo -e<br />
echo -e<br />
<br />
if [[ $(java -jar ./MIRC-installer.jar 2>&1 | grep X11) ]]<br />
then<br />
# have to re-login with X forwarding<br />
echo -e<br />
echo '================================================'<br />
echo 'NOT FINISHED YET!!!!'<br />
echo '================================================'<br />
echo -e<br />
echo 'X-forwarding is required for the MIRC installer'<br />
echo -e<br />
echo 'Here is what you have to do'<br />
echo ' - logout'<br />
echo ' - login again from a machine with a GUI and a display....'<br />
echo ' - using the switch to enable X forwarding'<br />
echo ' - From a mac: ssh -Y user@host'<br />
echo ' - From a linux desktop: ssh -X user@host'<br />
echo ' - If you are using windows you will need PuTTy and Xming.. (google them)'<br />
echo ' - When you are logged in again re-run this script'<br />
else<br />
cd ~<br />
echo 'Starting MIRC web service (this will also happen automatically at boot) ...'<br />
start MIRC-Zn<br />
echo -e<br />
echo 'finished - it should all be running'<br />
echo 'point your browser to this server and have a look'<br />
fi<br />
<br />
==Choosing between Ubuntu Desktop and Ubuntu Server==<br />
<br />
* Ubuntu Desktop<br />
** Easier (very easy) if you're new to Linux.<br />
** May be very slightly slower but on modern hardware you are unlikely to notice the difference.<br />
* Ubuntu Server<br />
** Makes more sense - MIRC is a web service after all.<br />
** Will be leaner and faster.<br />
** Can run on a headless server or virtual machine.<br />
** [http://turnkeylinux.org TurnkeyLinux] is a very good Ubuntu install for this purpose.<br />
<br />
<div align="right">''Any questions or comments please email me at timothy.john.phillips@gmail.com - Tim Phillips.''</div></div>Tim phillipshttp://mircwiki.rsna.org/index.php?title=(depreciated)_empty_page_-_TJP&diff=5881(depreciated) empty page - TJP2011-09-10T02:50:03Z<p>Tim phillips: Redirected page to Running CTP as a Linux Service</p>
<hr />
<div>#REDIRECT [[Running CTP as a Linux Service]]</div>Tim phillipshttp://mircwiki.rsna.org/index.php?title=(depreciated)_empty_page_-_TJP&diff=5879(depreciated) empty page - TJP2011-09-10T02:47:29Z<p>Tim phillips: moved Install MIRC Z1 on Ubuntu Linux with 6 lines of code to Install MIRC Zn on Ubuntu Linux</p>
<hr />
<div>The easiest MIRC install ever. ''Updated to Z1''<br />
<br />
===Included features===<br />
# Automates the (usually annoying) Installation of Java ImageIO libraries.<br />
# Port 80 access (default web port)<br />
# Automatically starts at boot up and closes at shutdown.<br />
<br />
===Installation===<br />
<br />
====Important points====<br />
* You need to use Ubuntu 10.04.x (Lucid), 10.10 (Maverick), or 11.04 (Natty)<br />
* 32-bit (i386) and 64-bit (amd64) architectures are now supported<br />
* Desktop and Server versions are both supported.<br />
* Options:<br />
** Official Ubuntu distros - http://ftp.iinet.net.au/pub/ubuntu-releases/ (or use a local mirror closer to you).<br />
** Using a pre-built turnkey appliance can save some time - http://www.turnkeylinux.org/core<br />
<br />
====First step====<br />
Install Ubuntu (Lucid, Maverick, or Natty) on a virtual machine or a real computer.<br />
<br />
====Commands====<br />
''The following commands should be executed as root (or using sudo)''<br />
apt-get update <br />
apt-get -y install python-software-properties <br />
apt-add-repository 'deb http://archive.canonical.com/ lucid partner'<br />
apt-add-repository ppa:timothy-john-phillips/mirc<br />
apt-get update<br />
apt-get -y install mirc<br />
<br />
You will be asked to agree to the terms and conditions of Sun Java and then to ImageIO. Agree to it all.<br />
<br />
===Usage===<br />
<br />
====Web access to the MIRC site====<br />
<br />
Point a web browswer at the IP address of your Ubuntu machine and you should see your new MIRC site.<br />
<br />
Administrator access:<br />
* username = admin<br />
* password = password<br />
<br />
====Manual startup and shutdown (rarely needed)====<br />
<br />
From the command line:<br />
<br />
To start the mirc server<br />
service mirc start<br />
To shutdown the mirc server<br />
service mirc stop<br />
To restart the mirc server<br />
service mirc restart<br />
<br />
====What happens behind the scenes====<br />
<br />
Installing the mirc package automatically installs<br />
# The latest MIRC (currently Z1) into /usr/share/mirc/<br />
# The sun-java6-jre package- this is the official Sun (Oracle) Java 1.6 JRE package, which lives in the partner repository.<br />
# The jai-imageio-1.1 package - this is a package I created to automate the installation of the Sun (Oracle) ImageIO libraries.<br />
# An Ubuntu Upstart script (mirc.conf) is installed - this automates the startup and shutdown of the MIRC server.<br />
<br />
===Why did I bother?===<br />
<br />
I've made these repositories to simplify the installation of MIRC on Linux (faster than Windows, and free).<br />
<br />
At the very least it eliminates the fiddling with Java Image IO tools.<br />
<br />
I plan to update it with each release of MIRC Zx.<br />
<br />
Hope this helps someone. Appreciate any feedback. - timothy.john.phillips@gmail.com</div>Tim phillipshttp://mircwiki.rsna.org/index.php?title=Running_CTP_as_a_Linux_Service&diff=5878Running CTP as a Linux Service2011-09-10T02:44:11Z<p>Tim phillips: </p>
<hr />
<div>== How to install MIRC-Zn on Ubuntu Linux ==<br />
* Download the script<br />
wget http://timphillips.net/mirc/install-MIRC-Zn.txt<br />
* Make it executable<br />
mv ./install-MIRC-Zn.txt ./install-MIRC-Zn<br />
chmod 777 ./install-MIRC-Zn<br />
* Run the script<br />
./install-MIRC-Zn<br />
* Point your browser to the machine you just installed it on and MIRC should be up and running.<br />
* This script will also upgrade a previous "Tim Phillips" installation of MIRC-Zn so it can be used again when the RSNA code is updated.<br />
<br />
==What the script does==<br />
<br />
* Checks you're running it as root or using sudo.<br />
* Stops the MIRC-Zn service if its running.<br />
* Checks which chipset you're running.<br />
* Enables the ubuntu partner repo (to get Oracle Java).<br />
* Answers the Java installation questions in advance.<br />
* Installs SunJava and a few other necessary applications.<br />
* Downloads the appropriate JAI ImageIO files installs JAI ImageIO.<br />
* Downloads the latest version of MIRC-Zn.<br />
* Writes an upstart script (so that CTP/MIRC will be run as a service automatically).<br />
* Installs RSNA MIRC.<br />
<br />
===The script itself (in case you don't trust the download)===<br />
<br />
#!/bin/bash<br />
<br />
# Make sure only root can run our script<br />
if [[ $EUID -ne 0 ]]; then<br />
echo "This script must be run as root or using sudo" 1>&2<br />
exit 1<br />
fi<br />
<br />
# Stop MIRC-Zn if it is running<br />
if [ -f /etc/init/MIRC-Zn.conf ]<br />
then<br />
if [[ $(stop -q MIRC-Zn 2>&1 | grep Unknown) ]]<br />
then<br />
echo 'MIRC-Zn service not currently running ...'<br />
echo 'MIRC-Zn will be upgraded with the latest version from the RSNA site ...'<br />
else<br />
echo 'Stopping current MIRC-Zn service ...'<br />
echo 'MIRC-Zn will be upgraded with the latest version from the RSNA site ...'<br />
fi<br />
fi<br />
<br />
#reassure the user something is happening<br />
echo 'Updating Ubuntu repositories ...'<br />
<br />
#work in the temp folder<br />
cd /var/tmp<br />
<br />
#check which chipset we're using<br />
case $(arch) in<br />
i686)<br />
CHIP=i586<br />
;;<br />
x86_64)<br />
CHIP=amd64<br />
;;<br />
*)<br />
;;<br />
esac<br />
<br />
# partner repo<br />
echo deb http://archive.canonical.com/ lucid partner >>/etc/apt/sources.list.d/partner.list<br />
apt-get -qq update<br />
<br />
# preset the java answers:<br />
debconf-set-selections << END<br />
sun-java6-jdk shared/accepted-sun-dlj-v1-1 boolean true<br />
sun-java6-jre shared/accepted-sun-dlj-v1-1 boolean true<br />
sun-java6-bin shared/accepted-sun-dlj-v1-1 boolean true<br />
END<br />
<br />
#reassure the user something is happening<br />
echo 'Downloading and installing required ubuntu packages ...'<br />
<br />
# packages installed:<br />
apt-get install -y -qq acpid htop unzip xauth libxtst6 sun-java6-jdk<br />
<br />
# if a previous version is here - get rid of it<br />
cd /usr/lib/jvm/java-6-sun/<br />
if [ -f UNINSTALL-jai_imageio ]; then<br />
echo 'Removing previous install of JAI ImageIO ...'<br />
bash UNINSTALL-jai_imageio<br />
fi<br />
<br />
#work in the temp folder<br />
cd /var/tmp<br />
<br />
#check which chipset we're using<br />
case $(arch) in<br />
i686)<br />
CHIP=i586<br />
CHIP2=i386<br />
;;<br />
x86_64)<br />
CHIP=amd64<br />
CHIP2=amd64<br />
;;<br />
*)<br />
;;<br />
esac<br />
<br />
#reassure the user something is happening<br />
echo 'Downloading JAI Image IO ...'<br />
<br />
#download the JAI tgz file<br />
# get jai binary<br />
if [ -f ./jai_imageio-1_1-lib-linux-$CHIP.tar.gz ]; then<br />
rm ./jai_imageio-1_1-lib-linux-$CHIP.tar.gz<br />
fi<br />
wget -q http://download.java.net/media/jai-imageio/builds/release/1.1/jai_imageio-1_1-lib-linux-$CHIP.tar.gz<br />
<br />
#reassure the user something is happening<br />
echo 'Installing JAI Image IO ...'<br />
<br />
#expand the tgz and put the files where they should go (excluding UNINSTALL)<br />
tar xzf ./jai_imageio-1_1-lib-linux-$CHIP.tar.gz<br />
mv ./jai_imageio-1_1/*.txt /usr/lib/jvm/java-6-sun/<br />
mv ./jai_imageio-1_1/lib/libclib_jiio.so /usr/lib/jvm/java-6-sun/jre/lib/$CHIP2/<br />
mv ./jai_imageio-1_1/lib/*.jar /usr/lib/jvm/java-6-sun/jre/lib/ext/<br />
<br />
#generate the UNINSTALL file - using the version that comes in the binary install<br />
cat > /usr/lib/jvm/java-6-sun/UNINSTALL-jai_imageio <<DELIM<br />
#!/bin/sh<br />
# @(#)UNINSTALL-jai_imageio-jdk 3.1 06/05/12 16:18:39<br />
# usage: UNINSTALL-jai_imageio<br />
<br />
echo "Uninstalling Java Advanced Imaging Image I/O Tools"<br />
<br />
rm -f *jai_imageio.txt<br />
rm -f jre/lib/ext/jai_imageio.jar<br />
rm -f jre/lib/ext/clibwrapper_jiio.jar<br />
if [ ( `uname` = "SunOS" ) -a ( `uname -p` = "sparc" ) ]; then<br />
rm -f jre/lib/sparc/libclib_jiio.so<br />
rm -f jre/lib/sparc/libclib_jiio_vis.so<br />
rm -f jre/lib/sparc/libclib_jiio_vis2.so<br />
<br />
if [ -f jre/lib/sparcv9/libclib_jiio.so ]; then<br />
rm -f jre/lib/sparcv9/libclib_jiio.so<br />
rm -f jre/lib/sparcv9/libclib_jiio_vis.so<br />
rm -f jre/lib/sparcv9/libclib_jiio_vis2.so<br />
fi<br />
fi<br />
if [ -f jre/lib/amd64/libclib_jiio.so ]; then<br />
rm -f jre/lib/amd64/libclib_jiio.so<br />
fi<br />
if [ -f jre/lib/i386/libclib_jiio.so ]; then<br />
rm -f jre/lib/i386/libclib_jiio.so<br />
fi<br />
rm -f UNINSTALL-jai_imageio<br />
<br />
echo "Done"<br />
DELIM<br />
<br />
#reassure the user something is happening<br />
echo 'Downloading RSNA MIRC Installer ...'<br />
<br />
# go to the target folder<br />
cd /usr/share<br />
<br />
# get MIRC installer<br />
if [ -f ./MIRC-installer.jar ]; then<br />
rm ./MIRC-installer.jar<br />
fi<br />
wget -q http://mirc.rsna.org/MIRC2/MIRC-installer.jar<br />
<br />
#reassure the user something is happening<br />
echo 'Writing an upstart script and putting it in /etc/init ...'<br />
<br />
# make an upstart script<br />
cat > /etc/init/MIRC-Zn.conf <<DELIM<br />
description "MIRC Zn (CTP plugin not Tomcat)"<br />
author "Tim Phillips <timothy.john.phillips@gmail.com>"<br />
<br />
start on (local-filesystems and net-device-up IFACE!=lo)<br />
stop on stopping network-services<br />
<br />
respawn<br />
<br />
expect fork<br />
<br />
script<br />
cd /usr/share/CTP/<br />
java -jar ./CTP-runner.jar<br />
end script<br />
DELIM<br />
<br />
echo -e<br />
echo -e<br />
echo -e<br />
echo 'Now the RSNA installer will run'<br />
echo 'You will be asked to choose a folder to install CTP/MIRC into'<br />
echo 'It should be /usr/share or the startup script wont work'<br />
echo -e<br />
echo 'hit enter to continue'<br />
read dummy<br />
echo -e<br />
echo -e<br />
<br />
if [[ $(java -jar ./MIRC-installer.jar 2>&1 | grep X11) ]]<br />
then<br />
# have to re-login with X forwarding<br />
echo -e<br />
echo '================================================'<br />
echo 'NOT FINISHED YET!!!!'<br />
echo '================================================'<br />
echo -e<br />
echo 'X-forwarding is required for the MIRC installer'<br />
echo -e<br />
echo 'Here is what you have to do'<br />
echo ' - logout'<br />
echo ' - login again from a machine with a GUI and a display....'<br />
echo ' - using the switch to enable X forwarding'<br />
echo ' - From a mac: ssh -Y user@host'<br />
echo ' - From a linux desktop: ssh -X user@host'<br />
echo ' - If you are using windows you will need PuTTy and Xming.. (google them)'<br />
echo ' - When you are logged in again re-run this script'<br />
else<br />
cd ~<br />
echo 'Starting MIRC web service (this will also happen automatically at boot) ...'<br />
start MIRC-Zn<br />
echo -e<br />
echo 'finished - it should all be running'<br />
echo 'point your browser to this server and have a look'<br />
fi<br />
<br />
==Choosing between Ubuntu Desktop and Ubuntu Server==<br />
<br />
* Ubuntu Desktop<br />
** Easier (very easy) if you're new to Linux.<br />
** May be very slightly slower but on modern hardware you are unlikely to notice the difference.<br />
* Ubuntu Server<br />
** Makes more sense - MIRC is a web service after all.<br />
** Will be leaner and faster.<br />
** Can run on a headless server or virtual machine.<br />
** [http://turnkeylinux.org TurnkeyLinux] is a very good Ubuntu install for this purpose.<br />
<br />
<div align="right">''Any questions or comments please email me at timothy.john.phillips@gmail.com - Tim Phillips.''</div></div>Tim phillipshttp://mircwiki.rsna.org/index.php?title=Running_CTP_as_a_Linux_Service&diff=5877Running CTP as a Linux Service2011-09-10T02:43:45Z<p>Tim phillips: /* How to install MIRC-Zn on Ubuntu Linux */</p>
<hr />
<div>== How to install MIRC-Zn on Ubuntu Linux ==<br />
* Download the script<br />
wget http://timphillips.net/mirc/install-MIRC-Zn.txt<br />
* Make it executable<br />
mv ./install-MIRC-Zn.txt ./install-MIRC-Zn<br />
chmod 777 ./install-MIRC-Zn<br />
* Run the script<br />
./install-MIRC-Zn<br />
* Point your browser to the machine you just installed it on and MIRC should be up and running.<br />
* This script will also upgrade a previous "Tim Phillips" installation of MIRC-Zn so it can be used again when the RSNA code is updated.<br />
<br />
===What the script does===<br />
<br />
* Checks you're running it as root or using sudo.<br />
* Stops the MIRC-Zn service if its running.<br />
* Checks which chipset you're running.<br />
* Enables the ubuntu partner repo (to get Oracle Java).<br />
* Answers the Java installation questions in advance.<br />
* Installs SunJava and a few other necessary applications.<br />
* Downloads the appropriate JAI ImageIO files installs JAI ImageIO.<br />
* Downloads the latest version of MIRC-Zn.<br />
* Writes an upstart script (so that CTP/MIRC will be run as a service automatically).<br />
* Installs RSNA MIRC.<br />
<br />
===The script itself (in case you don't trust the download)===<br />
<br />
#!/bin/bash<br />
<br />
# Make sure only root can run our script<br />
if [[ $EUID -ne 0 ]]; then<br />
echo "This script must be run as root or using sudo" 1>&2<br />
exit 1<br />
fi<br />
<br />
# Stop MIRC-Zn if it is running<br />
if [ -f /etc/init/MIRC-Zn.conf ]<br />
then<br />
if [[ $(stop -q MIRC-Zn 2>&1 | grep Unknown) ]]<br />
then<br />
echo 'MIRC-Zn service not currently running ...'<br />
echo 'MIRC-Zn will be upgraded with the latest version from the RSNA site ...'<br />
else<br />
echo 'Stopping current MIRC-Zn service ...'<br />
echo 'MIRC-Zn will be upgraded with the latest version from the RSNA site ...'<br />
fi<br />
fi<br />
<br />
#reassure the user something is happening<br />
echo 'Updating Ubuntu repositories ...'<br />
<br />
#work in the temp folder<br />
cd /var/tmp<br />
<br />
#check which chipset we're using<br />
case $(arch) in<br />
i686)<br />
CHIP=i586<br />
;;<br />
x86_64)<br />
CHIP=amd64<br />
;;<br />
*)<br />
;;<br />
esac<br />
<br />
# partner repo<br />
echo deb http://archive.canonical.com/ lucid partner >>/etc/apt/sources.list.d/partner.list<br />
apt-get -qq update<br />
<br />
# preset the java answers:<br />
debconf-set-selections << END<br />
sun-java6-jdk shared/accepted-sun-dlj-v1-1 boolean true<br />
sun-java6-jre shared/accepted-sun-dlj-v1-1 boolean true<br />
sun-java6-bin shared/accepted-sun-dlj-v1-1 boolean true<br />
END<br />
<br />
#reassure the user something is happening<br />
echo 'Downloading and installing required ubuntu packages ...'<br />
<br />
# packages installed:<br />
apt-get install -y -qq acpid htop unzip xauth libxtst6 sun-java6-jdk<br />
<br />
# if a previous version is here - get rid of it<br />
cd /usr/lib/jvm/java-6-sun/<br />
if [ -f UNINSTALL-jai_imageio ]; then<br />
echo 'Removing previous install of JAI ImageIO ...'<br />
bash UNINSTALL-jai_imageio<br />
fi<br />
<br />
#work in the temp folder<br />
cd /var/tmp<br />
<br />
#check which chipset we're using<br />
case $(arch) in<br />
i686)<br />
CHIP=i586<br />
CHIP2=i386<br />
;;<br />
x86_64)<br />
CHIP=amd64<br />
CHIP2=amd64<br />
;;<br />
*)<br />
;;<br />
esac<br />
<br />
#reassure the user something is happening<br />
echo 'Downloading JAI Image IO ...'<br />
<br />
#download the JAI tgz file<br />
# get jai binary<br />
if [ -f ./jai_imageio-1_1-lib-linux-$CHIP.tar.gz ]; then<br />
rm ./jai_imageio-1_1-lib-linux-$CHIP.tar.gz<br />
fi<br />
wget -q http://download.java.net/media/jai-imageio/builds/release/1.1/jai_imageio-1_1-lib-linux-$CHIP.tar.gz<br />
<br />
#reassure the user something is happening<br />
echo 'Installing JAI Image IO ...'<br />
<br />
#expand the tgz and put the files where they should go (excluding UNINSTALL)<br />
tar xzf ./jai_imageio-1_1-lib-linux-$CHIP.tar.gz<br />
mv ./jai_imageio-1_1/*.txt /usr/lib/jvm/java-6-sun/<br />
mv ./jai_imageio-1_1/lib/libclib_jiio.so /usr/lib/jvm/java-6-sun/jre/lib/$CHIP2/<br />
mv ./jai_imageio-1_1/lib/*.jar /usr/lib/jvm/java-6-sun/jre/lib/ext/<br />
<br />
#generate the UNINSTALL file - using the version that comes in the binary install<br />
cat > /usr/lib/jvm/java-6-sun/UNINSTALL-jai_imageio <<DELIM<br />
#!/bin/sh<br />
# @(#)UNINSTALL-jai_imageio-jdk 3.1 06/05/12 16:18:39<br />
# usage: UNINSTALL-jai_imageio<br />
<br />
echo "Uninstalling Java Advanced Imaging Image I/O Tools"<br />
<br />
rm -f *jai_imageio.txt<br />
rm -f jre/lib/ext/jai_imageio.jar<br />
rm -f jre/lib/ext/clibwrapper_jiio.jar<br />
if [ ( `uname` = "SunOS" ) -a ( `uname -p` = "sparc" ) ]; then<br />
rm -f jre/lib/sparc/libclib_jiio.so<br />
rm -f jre/lib/sparc/libclib_jiio_vis.so<br />
rm -f jre/lib/sparc/libclib_jiio_vis2.so<br />
<br />
if [ -f jre/lib/sparcv9/libclib_jiio.so ]; then<br />
rm -f jre/lib/sparcv9/libclib_jiio.so<br />
rm -f jre/lib/sparcv9/libclib_jiio_vis.so<br />
rm -f jre/lib/sparcv9/libclib_jiio_vis2.so<br />
fi<br />
fi<br />
if [ -f jre/lib/amd64/libclib_jiio.so ]; then<br />
rm -f jre/lib/amd64/libclib_jiio.so<br />
fi<br />
if [ -f jre/lib/i386/libclib_jiio.so ]; then<br />
rm -f jre/lib/i386/libclib_jiio.so<br />
fi<br />
rm -f UNINSTALL-jai_imageio<br />
<br />
echo "Done"<br />
DELIM<br />
<br />
#reassure the user something is happening<br />
echo 'Downloading RSNA MIRC Installer ...'<br />
<br />
# go to the target folder<br />
cd /usr/share<br />
<br />
# get MIRC installer<br />
if [ -f ./MIRC-installer.jar ]; then<br />
rm ./MIRC-installer.jar<br />
fi<br />
wget -q http://mirc.rsna.org/MIRC2/MIRC-installer.jar<br />
<br />
#reassure the user something is happening<br />
echo 'Writing an upstart script and putting it in /etc/init ...'<br />
<br />
# make an upstart script<br />
cat > /etc/init/MIRC-Zn.conf <<DELIM<br />
description "MIRC Zn (CTP plugin not Tomcat)"<br />
author "Tim Phillips <timothy.john.phillips@gmail.com>"<br />
<br />
start on (local-filesystems and net-device-up IFACE!=lo)<br />
stop on stopping network-services<br />
<br />
respawn<br />
<br />
expect fork<br />
<br />
script<br />
cd /usr/share/CTP/<br />
java -jar ./CTP-runner.jar<br />
end script<br />
DELIM<br />
<br />
echo -e<br />
echo -e<br />
echo -e<br />
echo 'Now the RSNA installer will run'<br />
echo 'You will be asked to choose a folder to install CTP/MIRC into'<br />
echo 'It should be /usr/share or the startup script wont work'<br />
echo -e<br />
echo 'hit enter to continue'<br />
read dummy<br />
echo -e<br />
echo -e<br />
<br />
if [[ $(java -jar ./MIRC-installer.jar 2>&1 | grep X11) ]]<br />
then<br />
# have to re-login with X forwarding<br />
echo -e<br />
echo '================================================'<br />
echo 'NOT FINISHED YET!!!!'<br />
echo '================================================'<br />
echo -e<br />
echo 'X-forwarding is required for the MIRC installer'<br />
echo -e<br />
echo 'Here is what you have to do'<br />
echo ' - logout'<br />
echo ' - login again from a machine with a GUI and a display....'<br />
echo ' - using the switch to enable X forwarding'<br />
echo ' - From a mac: ssh -Y user@host'<br />
echo ' - From a linux desktop: ssh -X user@host'<br />
echo ' - If you are using windows you will need PuTTy and Xming.. (google them)'<br />
echo ' - When you are logged in again re-run this script'<br />
else<br />
cd ~<br />
echo 'Starting MIRC web service (this will also happen automatically at boot) ...'<br />
start MIRC-Zn<br />
echo -e<br />
echo 'finished - it should all be running'<br />
echo 'point your browser to this server and have a look'<br />
fi<br />
<br />
==Choosing between Ubuntu Desktop and Ubuntu Server==<br />
<br />
* Ubuntu Desktop<br />
** Easier (very easy) if you're new to Linux.<br />
** May be very slightly slower but on modern hardware you are unlikely to notice the difference.<br />
* Ubuntu Server<br />
** Makes more sense - MIRC is a web service after all.<br />
** Will be leaner and faster.<br />
** Can run on a headless server or virtual machine.<br />
** [http://turnkeylinux.org TurnkeyLinux] is a very good Ubuntu install for this purpose.<br />
<br />
<div align="right">''Any questions or comments please email me at timothy.john.phillips@gmail.com - Tim Phillips.''</div></div>Tim phillipshttp://mircwiki.rsna.org/index.php?title=Running_CTP_as_a_Linux_Service&diff=5876Running CTP as a Linux Service2011-09-10T02:42:17Z<p>Tim phillips: /* Choosing between Ubuntu Desktop and Ubuntu Server */</p>
<hr />
<div>== How to install MIRC-Zn on Ubuntu Linux ==<br />
* Download the script<br />
wget http://timphillips.net/mirc/install-MIRC-Zn.txt<br />
* Make it executable<br />
mv ./install-MIRC-Zn.txt ./install-MIRC-Zn<br />
chmod 777 ./install-MIRC-Zn<br />
* Run the script<br />
./install-MIRC-Zn<br />
<br />
===What the script does===<br />
<br />
* Checks you're running it as root or using sudo.<br />
* Stops the MIRC-Zn service if its running.<br />
* Checks which chipset you're running.<br />
* Enables the ubuntu partner repo (to get Oracle Java).<br />
* Answers the Java installation questions in advance.<br />
* Installs SunJava and a few other necessary applications.<br />
* Downloads the appropriate JAI ImageIO files installs JAI ImageIO.<br />
* Downloads the latest version of MIRC-Zn.<br />
* Writes an upstart script (so that CTP/MIRC will be run as a service automatically).<br />
* Installs RSNA MIRC.<br />
<br />
===The script itself (in case you don't trust the download)===<br />
<br />
#!/bin/bash<br />
<br />
# Make sure only root can run our script<br />
if [[ $EUID -ne 0 ]]; then<br />
echo "This script must be run as root or using sudo" 1>&2<br />
exit 1<br />
fi<br />
<br />
# Stop MIRC-Zn if it is running<br />
if [ -f /etc/init/MIRC-Zn.conf ]<br />
then<br />
if [[ $(stop -q MIRC-Zn 2>&1 | grep Unknown) ]]<br />
then<br />
echo 'MIRC-Zn service not currently running ...'<br />
echo 'MIRC-Zn will be upgraded with the latest version from the RSNA site ...'<br />
else<br />
echo 'Stopping current MIRC-Zn service ...'<br />
echo 'MIRC-Zn will be upgraded with the latest version from the RSNA site ...'<br />
fi<br />
fi<br />
<br />
#reassure the user something is happening<br />
echo 'Updating Ubuntu repositories ...'<br />
<br />
#work in the temp folder<br />
cd /var/tmp<br />
<br />
#check which chipset we're using<br />
case $(arch) in<br />
i686)<br />
CHIP=i586<br />
;;<br />
x86_64)<br />
CHIP=amd64<br />
;;<br />
*)<br />
;;<br />
esac<br />
<br />
# partner repo<br />
echo deb http://archive.canonical.com/ lucid partner >>/etc/apt/sources.list.d/partner.list<br />
apt-get -qq update<br />
<br />
# preset the java answers:<br />
debconf-set-selections << END<br />
sun-java6-jdk shared/accepted-sun-dlj-v1-1 boolean true<br />
sun-java6-jre shared/accepted-sun-dlj-v1-1 boolean true<br />
sun-java6-bin shared/accepted-sun-dlj-v1-1 boolean true<br />
END<br />
<br />
#reassure the user something is happening<br />
echo 'Downloading and installing required ubuntu packages ...'<br />
<br />
# packages installed:<br />
apt-get install -y -qq acpid htop unzip xauth libxtst6 sun-java6-jdk<br />
<br />
# if a previous version is here - get rid of it<br />
cd /usr/lib/jvm/java-6-sun/<br />
if [ -f UNINSTALL-jai_imageio ]; then<br />
echo 'Removing previous install of JAI ImageIO ...'<br />
bash UNINSTALL-jai_imageio<br />
fi<br />
<br />
#work in the temp folder<br />
cd /var/tmp<br />
<br />
#check which chipset we're using<br />
case $(arch) in<br />
i686)<br />
CHIP=i586<br />
CHIP2=i386<br />
;;<br />
x86_64)<br />
CHIP=amd64<br />
CHIP2=amd64<br />
;;<br />
*)<br />
;;<br />
esac<br />
<br />
#reassure the user something is happening<br />
echo 'Downloading JAI Image IO ...'<br />
<br />
#download the JAI tgz file<br />
# get jai binary<br />
if [ -f ./jai_imageio-1_1-lib-linux-$CHIP.tar.gz ]; then<br />
rm ./jai_imageio-1_1-lib-linux-$CHIP.tar.gz<br />
fi<br />
wget -q http://download.java.net/media/jai-imageio/builds/release/1.1/jai_imageio-1_1-lib-linux-$CHIP.tar.gz<br />
<br />
#reassure the user something is happening<br />
echo 'Installing JAI Image IO ...'<br />
<br />
#expand the tgz and put the files where they should go (excluding UNINSTALL)<br />
tar xzf ./jai_imageio-1_1-lib-linux-$CHIP.tar.gz<br />
mv ./jai_imageio-1_1/*.txt /usr/lib/jvm/java-6-sun/<br />
mv ./jai_imageio-1_1/lib/libclib_jiio.so /usr/lib/jvm/java-6-sun/jre/lib/$CHIP2/<br />
mv ./jai_imageio-1_1/lib/*.jar /usr/lib/jvm/java-6-sun/jre/lib/ext/<br />
<br />
#generate the UNINSTALL file - using the version that comes in the binary install<br />
cat > /usr/lib/jvm/java-6-sun/UNINSTALL-jai_imageio <<DELIM<br />
#!/bin/sh<br />
# @(#)UNINSTALL-jai_imageio-jdk 3.1 06/05/12 16:18:39<br />
# usage: UNINSTALL-jai_imageio<br />
<br />
echo "Uninstalling Java Advanced Imaging Image I/O Tools"<br />
<br />
rm -f *jai_imageio.txt<br />
rm -f jre/lib/ext/jai_imageio.jar<br />
rm -f jre/lib/ext/clibwrapper_jiio.jar<br />
if [ ( `uname` = "SunOS" ) -a ( `uname -p` = "sparc" ) ]; then<br />
rm -f jre/lib/sparc/libclib_jiio.so<br />
rm -f jre/lib/sparc/libclib_jiio_vis.so<br />
rm -f jre/lib/sparc/libclib_jiio_vis2.so<br />
<br />
if [ -f jre/lib/sparcv9/libclib_jiio.so ]; then<br />
rm -f jre/lib/sparcv9/libclib_jiio.so<br />
rm -f jre/lib/sparcv9/libclib_jiio_vis.so<br />
rm -f jre/lib/sparcv9/libclib_jiio_vis2.so<br />
fi<br />
fi<br />
if [ -f jre/lib/amd64/libclib_jiio.so ]; then<br />
rm -f jre/lib/amd64/libclib_jiio.so<br />
fi<br />
if [ -f jre/lib/i386/libclib_jiio.so ]; then<br />
rm -f jre/lib/i386/libclib_jiio.so<br />
fi<br />
rm -f UNINSTALL-jai_imageio<br />
<br />
echo "Done"<br />
DELIM<br />
<br />
#reassure the user something is happening<br />
echo 'Downloading RSNA MIRC Installer ...'<br />
<br />
# go to the target folder<br />
cd /usr/share<br />
<br />
# get MIRC installer<br />
if [ -f ./MIRC-installer.jar ]; then<br />
rm ./MIRC-installer.jar<br />
fi<br />
wget -q http://mirc.rsna.org/MIRC2/MIRC-installer.jar<br />
<br />
#reassure the user something is happening<br />
echo 'Writing an upstart script and putting it in /etc/init ...'<br />
<br />
# make an upstart script<br />
cat > /etc/init/MIRC-Zn.conf <<DELIM<br />
description "MIRC Zn (CTP plugin not Tomcat)"<br />
author "Tim Phillips <timothy.john.phillips@gmail.com>"<br />
<br />
start on (local-filesystems and net-device-up IFACE!=lo)<br />
stop on stopping network-services<br />
<br />
respawn<br />
<br />
expect fork<br />
<br />
script<br />
cd /usr/share/CTP/<br />
java -jar ./CTP-runner.jar<br />
end script<br />
DELIM<br />
<br />
echo -e<br />
echo -e<br />
echo -e<br />
echo 'Now the RSNA installer will run'<br />
echo 'You will be asked to choose a folder to install CTP/MIRC into'<br />
echo 'It should be /usr/share or the startup script wont work'<br />
echo -e<br />
echo 'hit enter to continue'<br />
read dummy<br />
echo -e<br />
echo -e<br />
<br />
if [[ $(java -jar ./MIRC-installer.jar 2>&1 | grep X11) ]]<br />
then<br />
# have to re-login with X forwarding<br />
echo -e<br />
echo '================================================'<br />
echo 'NOT FINISHED YET!!!!'<br />
echo '================================================'<br />
echo -e<br />
echo 'X-forwarding is required for the MIRC installer'<br />
echo -e<br />
echo 'Here is what you have to do'<br />
echo ' - logout'<br />
echo ' - login again from a machine with a GUI and a display....'<br />
echo ' - using the switch to enable X forwarding'<br />
echo ' - From a mac: ssh -Y user@host'<br />
echo ' - From a linux desktop: ssh -X user@host'<br />
echo ' - If you are using windows you will need PuTTy and Xming.. (google them)'<br />
echo ' - When you are logged in again re-run this script'<br />
else<br />
cd ~<br />
echo 'Starting MIRC web service (this will also happen automatically at boot) ...'<br />
start MIRC-Zn<br />
echo -e<br />
echo 'finished - it should all be running'<br />
echo 'point your browser to this server and have a look'<br />
fi<br />
<br />
<br />
==Choosing between Ubuntu Desktop and Ubuntu Server==<br />
<br />
* Ubuntu Desktop<br />
** Easier (very easy) if you're new to Linux.<br />
** May be very slightly slower but on modern hardware you are unlikely to notice the difference.<br />
* Ubuntu Server<br />
** Makes more sense - MIRC is a web service after all.<br />
** Will be leaner and faster.<br />
** Can run on a headless server or virtual machine.<br />
** [http://turnkeylinux.org TurnkeyLinux] is a very good Ubuntu install for this purpose.<br />
<br />
<div align="right">''Any questions or comments please email me at timothy.john.phillips@gmail.com - Tim Phillips.''</div></div>Tim phillips