Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
wiki:mnttool [2012/11/19 21:50] – created lvernswiki:mnttool [2012/12/08 14:17] (current) – added the MNTTOOL variable lverns
Line 1: Line 1:
 ====Description==== ====Description====
-mnttool is a small program for mounting drives. +**mnttool** is a small GUI for mounting drives. It was written by Robert Shingledecker in C++ using [[ http://www.fltk.org | FLTK ]]. It was included in the 1.0 release of TinyCore and has been included in every release of TinyCore to this day. It is also included in the CorePlus imageTechnically, it is contained in Xprogs.tcz and can be downloaded separatelyThe source code is also available online.
-It is contained in Xprogs.tcz which is contained in the TinyCore and MicroCore images and can also be downloaded independently +
-It was written by Robert Shingledecker.+
  
 +====Usage====
 You can launch the program by running  You can launch the program by running 
 'mnttool'  'mnttool' 
Line 9: Line 8:
 {{ :wiki:mnttool.png?nolink&50 |}} {{ :wiki:mnttool.png?nolink&50 |}}
  
-The program lists all the the available drives. Red ones are unmounted and green ones are mounted. +The program lists all the the available drives. Red ones are unmounted and green ones are mounted. Simply click on the name of the drive to mount or unmount it. By default, all drives are mounted under /mnt\\  
-If mnttool encounters an error and can't (un)mount the drive whose button you clicked, the button will remain +If **mnttool** encounters an error and can't (un)mount the drive whose button you clicked, the button will remain 
 unchanged, but it won't display an error message. (However, if you launched from a terminal, then you'll see an error message there.) unchanged, but it won't display an error message. (However, if you launched from a terminal, then you'll see an error message there.)
  
-It isn't possible to unmount the drive specified by the tce= bootcode when using mnttool.+====Environment Variables==== 
 +**mnttool**'s behavior can be modified with the following environment variables. 
 +Remember: if you set an environment variable in ~/.profile , you will need to log off and on for it to take effect. 
 +==FILEMGR== 
 +This variable can be used to make **mnttool** automatically launch your favorite file manager upon the successful mounting of a drive. When a drive is successfully mounted using **mnttool**, your file manager will be launched at the drive's mount point and **mnttool** will closeIt should look something like this <code>FILEMGR="/file/manager/of/your/choice"</code>
  
-It is possible to make mnttool automatically launch your favorite file manager when it successfully mounts a drive. +==MNTTOOL== 
-Simply add this line to your ~/.profile  +This variable can be used to set the location of mnttool. It is used something like this 
-'export FILEMGR=$prog' +<code>export MNTTOOL="X Y"</code>where is equal to the distance from the left side of the screen and 
-where $prog is the file manager of your choice. (You must log off and log on again for this to take affect +where Y is equal to the distance from the top of the screen. 
-for the first time.)+Note: This variable is overridden by the -g[eometry] argument.
  
 ====Command-line options==== ====Command-line options====
 +Remember, **mnttool** is a GUI program written using FLTK. As such it will print the standard FLTK switches; however, some of them are ignored.
 Here is an explanation of the all the command-line options printed when you run "mnttool -help": Here is an explanation of the all the command-line options printed when you run "mnttool -help":
  
 -bg2 color\\  -bg2 color\\ 
-This option is actually ignored +This option is actually ignored\\  
-<link>+[[ http://forum.tinycorelinux.net/index.php/topic,13917.msg77940.html#msg77940 | Forum Discussion ]]
  
 -bg color\\  -bg color\\ 
 This is also a standard fltk option and is used to set the background color for the window This is also a standard fltk option and is used to set the background color for the window
 and it also sets the color of the refresh button. and it also sets the color of the refresh button.
-See Color<link to subsection> for what a color is.+See [[mnttool#Colors|Colors]] for what a color is.
  
 -display\\  -display\\ 
Line 41: Line 45:
 -fg color\\  -fg color\\ 
 Sets the color of the text on the buttons. Sets the color of the text on the buttons.
-See Color<link to subsection> for what a color is.+See [[mnttool#Colors|Colors]] for what a valid color looks like.
  
 -geometry or -g \\  -geometry or -g \\ 
Line 77: Line 81:
  
  
-===Colors===+====Colors====
 The color arguments are slightly complicated. The color arguments are slightly complicated.
 For a full description you can visit this site which describes valid strings for describing a color: For a full description you can visit this site which describes valid strings for describing a color:
Line 85: Line 89:
 You can also specify any color like this: 'mnttool -bg rgb:10/55/ff' You can also specify any color like this: 'mnttool -bg rgb:10/55/ff'
 The numbers between the slashes should be a two-digit hexidecimal number between 00 and ff.  The numbers between the slashes should be a two-digit hexidecimal number between 00 and ff. 
 +
 +====Further Reading/Sources====
 +http://forum.tinycorelinux.net/index.php/topic,11974.msg63987.html#msg63987
Print/export
QR Code
QR Code wiki:mnttool (generated for current page)