Install CTP/MIRC Ubuntu server command line

319 views
Skip to first unread message

Laughlin Dawes

unread,
Aug 24, 2017, 12:28:01 AM8/24/17
to RSNA MIRC CTP/TFS User Group
Hi John,

Any hints?  The wiki page for this seems to be missing. http://mircwiki.rsna.org/index.php?title=Install_or_upgrade_RSNA_TFS_(previously_known_as_MIRC)_on_Ubuntu_Linux

I wanted this on linux so I can more easily set up pipelines with other linux programs I develop.  If not possible or too difficult, a Windows server is an option...

Regards,
Laughlin

Laughlin Dawes

unread,
Aug 24, 2017, 1:32:08 AM8/24/17
to RSNA MIRC CTP/TFS User Group
Don't worry, I got it going.  I just needed to install a GUI for the OS then run the installer as usual.  Works great!  Thanks for all your effort.

Laughlin

predr...@gmail.com

unread,
Aug 6, 2020, 4:37:01 AM8/6/20
to RSNA MIRC CTP/TFS User Group
Hello,

The link http://mircwiki.rsna.org/index.php?title=Install_or_upgrade_RSNA_TFS_(previously_known_as_MIRC)_on_Ubuntu_Linux has expired and no any content to instruct how to install the MIRC on ubuntu.

Could you please share the command line again?

Thank you!

lda...@gmail.com 在 2017年8月24日 星期四下午1:32:08 [UTC+8] 的信中寫道:

John Perry

unread,
Aug 6, 2020, 8:55:53 AM8/6/20
to rsnas-ctpmir...@googlegroups.com
The RSNA MIRC site has been down for a couple weeks, and the RSNA MIRC Wiki seems to have lost a lot of its articles. It appears that nobody at the RSNA is maintaining these sites during the pandemic.
 
I just rebuilt TFS to bring it up to date with the latest CTP. You can get the TFS-installer.jar program at:
 
 
If you have a GUI on your Ubuntu, put the TFS-installer.jar program on your Ubuntu and run it.
 
If you are looking for CTP instead of TFS, the installer is at:
 
 
JP
--
You received this message because you are subscribed to the Google Groups "RSNA MIRC CTP/TFS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rsnas-ctpmirc-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rsnas-ctpmirc-user-group/b47a4975-1473-4dd4-af73-7a93aa1a29ecn%40googlegroups.com.

predr...@gmail.com

unread,
Aug 7, 2020, 3:38:34 AM8/7/20
to RSNA MIRC CTP/TFS User Group
Hi John,

Could you please instruct me on how to install MIRC on Ubuntu 18.04? I just installed jre on Ubuntu.

Thank you,
Mark

John Perry 在 2020年8月6日 星期四下午8:55:53 [UTC+8] 的信中寫道:

John Perry

unread,
Aug 7, 2020, 9:39:18 AM8/7/20
to rsnas-ctpmir...@googlegroups.com
Mark:
 
I'm running Ubuntu 20.04.1 LTS in a virtual machine. I don't know if 18.04 is much different.
 
The MIRC site program is called TFS. It stands for Teaching File System.  I'm not very creative when it comes to naming things.
 
The latest installer for TFS is always available at:
 
 
On that page, there is a link to TFS-installer.jar. Click it and the program will download to your disk. I put it in my /home directory:
 
image
 
(I also created the directory JavaPrograms in my home directory. It isn't necessary, but I do it that way on Windows, so it seemed convenient to do it that way on Linux.)
 
You may have to set the executable permission on the file to get it to run. There are two ways to do that.
 
1. Open a terminal window and type the command:
 
    sudo chmod +x TFS-Installer.jar
 
Ubuntu will ask you for your password. Enter it.
 
2. Right-click the file and select Properties. On the pop-up window that appears, click Permissions, and then click the Allow executing file as program box:
 
image
 
With the executable permission set, double click the TFS-installer.jar program. It will open a window and a file chooser that will ask you where you want to install the program:
 
image
 
In my case, I selected the JavaPrograms directory, but if you want, you can just install it in your /home/mark directory or anyplace else. The installer will create a sub-directory called CTP in whatever directory you select for the installation and put all the files for TFS in that subdirectory.
 
(The subdirectory is called CTP because TFS is actually just a plug-in to the CTP program, so when you install TFS, you are actually installing CTP, plus a plug-in, plus a couple other TFS-specific files, and when you run TFS, you are actually running CTP with a configuration that includes the TFS plugin, which for historical reasons is called MIRC. How's that for confusing?)
 
(If you ever want to throw TFS away, you can just delete the CTP directory. If you ever want to back up your entire TFS installation, just back up the CTP directory; it contains everything, including the program and all the teaching files and images you have stored.)
 
Once you click Open on the file chooser, the installer will display this pop-up for a new installation:
 
image
 
The default port on a Linux TFS installation is 1080, but you can put it on any open port you like (greater than 1024).
 
When the installation is complete, the window will look like this:
 
image
 
Click OK on the pop-up and then close the window. The Launcher program (which was installed by TFS-installer.jar) will start automatically and display this window:
 
image
 
To start TFS, click the Start button. The window will change to look like this:
 
image
 
If you click the TFS Home Page button, your browser will launch and take you to the TFS web server:
 
image
 
To set up your TFS site, log in as the TFS site admin by clicking the Login link in the upper right corner of the page. The default admin account has username admin and password password. When logged in as an admin user, you will see more links in the left pane:
 
image
 
You can create new accounts in the User Manager and assign them permissions (roles) like author, etc.
 
You can configure the name of the site (and lots of other things) by clicking the Query Service link.
 
For advanced administration, you can create (and name) libraries of teaching files by clicking the Storage Service link.
 
The Launcher program (Launcher.jar) is located in the CTP directory:
 
image
 
You will want to set the executable permission on the Launcher program so you can run it yourself. Right-click it and select Permissions, and then click the Allow executing file as program box:
 
image
 
You should do the same thing with the Runner.jar file, located in the same directory.
 
If you just want to run TFS by hand, use the Launcher program to start and stop it.
 
If you want to run TFS as a service, so it starts automatically when Linux starts, you will use the Runner program, but I have never done that on Linux, so you'll have to ask others in the user group for help. To start, look in the CTP/linux directory. It contains a file called ctpService-ubuntu.sh. It is old, and I don't know what to do with it, but it might give you an idea of what to do. There used to be an article on the RSNA MIRC Wiki (mircwiki.rsna.org) with instructions, but it is broken, and during the pandemic, nobody seems to be supporting the wiki.
 
Best of luck... JP
image[1].png
image[11].png
image[19].png
image[21].png
image[3].png
image[7].png
image[5].png
image[9].png
image[13].png
image[15].png
image[17].png

predr...@gmail.com

unread,
Aug 11, 2020, 11:33:10 PM8/11/20
to RSNA MIRC CTP/TFS User Group
Hi John,

Thank you for your excellent description!

I have followed your instruction to build the environment on Ubuntu 18.04. And the initialized working is going well.

I am trying to set the DICOM storage to connect other DICOM Viewer to retrieve and store the DICOM files.

One thing would like to confirm with you that I kept the java files as the plugin, which I downloaded from the RSNA MIRC Wiki when I installed the platform on the Windows system. Could I use them on the Linux system, possibly?

Thank you again!

Mark



John Perry 在 2020年8月7日 星期五下午9:39:18 [UTC+8] 的信中寫道:

predr...@gmail.com

unread,
Aug 12, 2020, 2:55:44 AM8/12/20
to RSNA MIRC CTP/TFS User Group
Hi John,

When I reboot the Ubuntu and turn up the MIRC by launcher.jar, the system shows me the error message. Do you have the same problem with it?

Thank you,
Mark
screenshot.png

predr...@gmail.com 在 2020年8月12日 星期三上午11:33:10 [UTC+8] 的信中寫道:

predr...@gmail.com

unread,
Aug 12, 2020, 4:46:32 AM8/12/20
to RSNA MIRC CTP/TFS User Group
Hi John,

I tried to copy the config.xml from \CTP to \Home, and uninstalled all the java and reinstall the Java (apt-get install default=-jre), but it still shows the error message.
Image 2.png

Mark
predr...@gmail.com 在 2020年8月12日 星期三下午2:55:44 [UTC+8] 的信中寫道:

John Perry

unread,
Aug 12, 2020, 9:02:04 AM8/12/20
to rsnas-ctpmir...@googlegroups.com
Mark:
 
I don't know how to interpret your statement: "One thing would like to confirm with you that I kept the java files as the plugin, which I downloaded from the RSNA MIRC Wiki when I installed the platform on the Windows system. Could I use them on the Linux system, possibly?"
 
You shouldn't have had to download anything from the RSNA MIRC Wiki. All you need is the TFS-installer.jar program from https://github.com/johnperry/MIRC2/tree/master/products.
 
What did you download from the RSNA MIRC Wiki?
 
Is it possible that you are referring to the RSNA MIRC Site? Those are two different sites. The MIRC Wiki is mostly for documentation; the MIRC Site has (among other things) programs for download. Since neither site has been reliable during the pandemic, I keep the latest  versions of the programs on GitHub.
 
JP

John Perry

unread,
Aug 12, 2020, 9:16:53 AM8/12/20
to rsnas-ctpmir...@googlegroups.com
Mark:
 
I have never seen that error. It appears that you installed in the aurora directory. Is that right?
 
There should be a directory called CTP in aurora, or in whatever directory where you installed TFS. The CTP directory should have these files:
 
image
 
(If you haven't run CTP yet, you probably won't have the roots, quarantines, or users directories yet; they are created by CTP when it starts the first time.)
 
Note, the config.xml file must be in the CTP directory as shown in the picture.
 
JP
image[1].png
screenshot.png

John Perry

unread,
Aug 12, 2020, 9:20:03 AM8/12/20
to rsnas-ctpmir...@googlegroups.com
Mark:
 
If you open a command window and enter java –version, what do you see? I get this:
 
image
 
JP
image[1].png
Image 2.png

John Perry

unread,
Aug 12, 2020, 11:44:37 AM8/12/20
to rsnas-ctpmir...@googlegroups.com
Mark:
 
I was able to duplicate the error you saw.
 
I think the problem is that when you open a folder window, Ubuntu thinks your current directory is still your home directory. For example, when I open my CTP directory, I see this:
 
image
 
If I double-click the Launcher.jar file, it gives me the error you saw:
 
image
 
Notice that CTP is not looking for the config.xml file in the CTP directory. That tells me it doesn't think the CTP directory is the current directory.
 
If I select the pull-down menu on the CTP directory in the window title bar, I get this:
 
image
 
If I choose Open in Terminal, I get this:
 
image
 
If I then enter java –jar Launcher.jar, it works.
 
On a windows system, if I have a folder open and double-click a program in it, it starts the program in that directory. I hope some Unix wizard will see this and tell us how to make it do that.
 
In the meantime, start the Launcher from the command line and it should work.
 
JP
Sent: Wednesday, August 12, 2020 1:55 AM
image[1].png
image[3].png
image[5].png
image[7].png
screenshot.png

predr...@gmail.com

unread,
Aug 14, 2020, 2:55:13 AM8/14/20
to RSNA MIRC CTP/TFS User Group
Hi John,

Thank you for your help.

1) Here was I downloaded the files to install for the Windows environment.

My mean is I wonder to know if I use the files which on the Windows to the Linux environment would be working or not.

2) Here is my java version. The java is I used the command (sudo apt-get install default-jre) to install. I am not sure is this the correct step?
Image 3.png

3) I don't understand what is CTP is not looking for the config.xml file in the CTP directory. That tells me it doesn't think the CTP directory is the current directory.
I follow your instruction to run the Launcher.jar smoothly.
Image 4.png

Mark
John Perry 在 2020年8月12日 星期三下午11:44:37 [UTC+8] 的信中寫道:

John Perry

unread,
Aug 14, 2020, 8:39:33 AM8/14/20
to rsnas-ctpmir...@googlegroups.com
Mark:
 
1. CTP and TFS are entirely written in Java. The same TFS-installer runs on all platforms.
 
2. Your Java is fine. I build on Java 7 because some hospitals are running old Javas. I test on Java 8, 10, and 14, but I'm sure it runs on 11.
 
3. What I meant was that from the error message, it was clear that the Launcher program was trying to find the config.xml file in the wrong directory. Launcher looks for the file in the directory defined by the user.dir system property. 
 
On a Windows system, user.dir is the directory containing the program that is being run. For example, if I run my HttpTest program, which lists the system properties, I see:
 
image
 
On Ubuntu, if I run HttpTest from the home/john/JavaPrograms directory, the file manager seems to set the user.dir property to my home directory (user.home):
 
image
 
That is why the Launcher program looked in the wrong place. It was being told that it was running in the home directory, not in the CTP directory where Launcher is located.
 
I'm not a Linux expert, but that looks like a bug to me. It's at least an inconsistency between Windows and Linux.
image[3].png
image[1].png
Image 3.png
Image 4.png

predr...@gmail.com

unread,
Aug 17, 2020, 4:16:16 AM8/17/20
to RSNA MIRC CTP/TFS User Group
Thank you, John.

I tried to find the tool HttpTest in the CTP folder, but there is no application. Should I download it furthermore?

In addition, I met a problem now. I can send the DICOM images to TFS and show up on the platform before I modify the AE title, but the DICOM import couldn't show up the DICOM after the AE title modified, even I restart the service. The sending message of the DICOM viewer is completed. Any idea?

Image 4.png
Thank you,
Mark


John Perry 在 2020年8月14日 星期五下午8:39:33 [UTC+8] 的信中寫道:

John Perry

unread,
Aug 17, 2020, 7:38:17 AM8/17/20
to rsnas-ctpmir...@googlegroups.com
Mark:
 
HttpTest is not included in the TFS/CTP release. It is just a little test tool I wrote for testing networking problems. As a convenience, I included a couple features that list all the environment values and system properties known to Java when the program runs. I used it to discover that Ubuntu and Windows set the user.dir property differently when you start a program by double-clicking the program's icon. Since the Launcher program uses that value to know where to find the config.xml file, starting the Launcher by double-clicking it doesn't work because it tells the program in look in the wrong place. If you start it from a command window, it works because then
 
You do not need the HttpTest program. If you want to play with it, you can get it at http://mirc.rsna.org/download/HttpTest.jar, but remember, I wrote the program for myself, so the help information is pretty cryptic.
 
JP
Image 4.png
Reply all
Reply to author
Forward
0 new messages