Difference between revisions of "Slicer3:xterm wrapper"
From Slicer Wiki
(New page: Copy this script to "Cygwin\bin\startxterm_admin.bat" """ @echo on REM Change the DISPLAY variable as necessary. REM Default is 127.0.0.1 for a basic cygwin install. SET DISPLAY=127.0.0...) |
m |
||
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | Copy this script to "Cygwin\bin\startxterm_admin.bat" | + | Copy this script to "Cygwin\bin\startxterm_admin.bat". Then right-click ''that'' file and select "Run as Administrator". This may not be necessary in a standard Cygwin install. I have a multi-user install with several Xwin instances, so my default DISPLAY is not 0.0. |
""" | """ | ||
+ | |||
@echo on | @echo on | ||
REM Change the DISPLAY variable as necessary. | REM Change the DISPLAY variable as necessary. | ||
+ | |||
REM Default is 127.0.0.1 for a basic cygwin install. | REM Default is 127.0.0.1 for a basic cygwin install. | ||
Line 11: | Line 13: | ||
SET CYGWIN_ROOT=\cygwin | SET CYGWIN_ROOT=\cygwin | ||
+ | |||
SET RUN=%CYGWIN_ROOT%\bin\run -p /usr/bin | SET RUN=%CYGWIN_ROOT%\bin\run -p /usr/bin | ||
Line 17: | Line 20: | ||
%RUN% xterm -e /usr/bin/bash -l | %RUN% xterm -e /usr/bin/bash -l | ||
+ | |||
""" | """ |
Latest revision as of 16:09, 31 December 2008
Home < Slicer3:xterm wrapperCopy this script to "Cygwin\bin\startxterm_admin.bat". Then right-click that file and select "Run as Administrator". This may not be necessary in a standard Cygwin install. I have a multi-user install with several Xwin instances, so my default DISPLAY is not 0.0.
"""
@echo on
REM Change the DISPLAY variable as necessary.
REM Default is 127.0.0.1 for a basic cygwin install.
SET DISPLAY=127.0.0.1:0.0
SET CYGWIN_ROOT=\cygwin
SET RUN=%CYGWIN_ROOT%\bin\run -p /usr/bin
SET PATH=.;%CYGWIN_ROOT%\bin;%PATH%
%RUN% xterm -e /usr/bin/bash -l
"""