Total commander linux wine

Total Commander

Total Commander is a two-pane file manager with a tabbed interface, featuring integrated archivers (ZIP, ARJ, LZH, RAR, TAR, GZ and many more via plugins), built-in FTP client with FXP and HTTP proxy support, batch rename tool, file comparison tool, directory synchronization, advanced file search with regular expressions support, viewer and filesystem plugins. It is writen completely in C.

Total Commander was formerly known as Windows Commander.

Developer: Christian Ghisler
URL: https://www.ghisler.com

For more details and user comments, view the versions of this application

Version Description Latest Rating Latest Wine version tested Test results Comments
10.x Two pane filemanager similar to the famous Norton commander: v10.x Silver 6.7 1 0
6.58 (16 bit) 16 bit version 6.58 of Total Commander Gold 4.0-rc4 1 0
8.x (32bit) Two pane filemanager similar to the famous Norton commander: v8.x Platinum 1.7.29 1 0
8.x (64bit) Two pane filemanager similar to the famous Norton commander: v8.x Platinum 1.7.29 2 0
9.x (32bit) Two pane filemanager similar to the famous Norton commander: v9.x Platinum 1.9.16 1 0
9.x (64bit) Two pane filemanager similar to the famous Norton commander: v9.x Platinum 1.9.16 1 0

Privacy Policy
If you have a privacy inquiry regarding this site, please write to privacy@winehq.org

Источник

Total Commander under Wine

By running Total Commander under Wine it is possible to use Total Commander in Linux.

This page gives tips when using Total Commander in this way.

Contents

Some tips setting things up

  1. have the systems keyboard shortcuts disabled
    In ubuntu v7.0.4, I had to disable for example ALT+F1, ALT+F2, ALT+F5 and ALT+F6
    those are essential to my life with total commander
    the last one was a bit tricky, because it’s not to be switched off in the easy to reach tools of Gnome
    I had to start gconf-editor via shell and search for ‘F6’ to get rid of that 🙂
  2. have msttcorefonts installed
    You will have much more fun on comparing two files by content if you have this package installed, trust me! 😉
    on a Debian based system try: sudo apt-get install msttcorefonts
  3. have filetypes associated and a fitting wrapper installed
    Integration of total commander in the linux system will be much better, if you can start all those files right away
    See the section «Open file in native application» to this end.

Further tips & tricks

Edit file in native editor

To edit the file in a native editor, say Gvim, on hitting F4, set the Editor to the following command in Settings/Operations/Viewer/Editor:

/bin/sh -c "gvim ""$(realpath ""$(wine --bottle TotalCmd winepath --unix ""%1"")"")"""
  • If the folder containing the executable wine is not in $PATH, then wine has to be replaced by its full path; in case of Crossover it is /opt/cxoffice/bin/wine.
  • The name of the bottle, here TotalCmd, can be omitted if a default bottle is set.
  • Replace gvim to the command name of your favorite editor
Читайте также:  Php установить на линукс

Open file in native application

To open the file in the native application associated to it in Total Commander, try first the following:

  1. In the Menu item Files -> Internal Associations
  2. Click Add, then in File Type line enter *.*, click OK, and
  3. In Actions Open box enter
c:\windows\system32\winebrowser.exe "%1"

Alternatively, to register all file associations already registered in Linux for all applications (not only Total Commander) of the bottle :

chmod +x wine-import-extensions
wine-import-extensions --bottle TotalCmd
  • If the folder containing the executable wine is not in $PATH, then
  1. wine has to be replaced by its full path; in case of Crossover it is /opt/cxoffice/bin/wine,
  2. the folder containing it has to be added to $PATH before calling wine-import-extensions
env PATH=$PATH:/opt/cxoffice/bin WINEBOTTLEHOME=$HOME/.cxoffice WINEPREFIX=$HOME/.cxoffice wine-import-extensions --bottle TotalCmd

Use Total Commander as Default File Manager

To open directories in Total Commander as default file manager:

Add to ~/.config/applications/mimeapps.list or ~/.config/mimeapps.list in Sections [Added Associations] and [Default Applications] the line:

inode/directory=file-manager.desktop

and create the file ~/.config/applications/file-manager.desktop with content:

[Desktop Entry] Type=Application Name=Total Commander Exec=totalcmd /O /T %u

and create a file totalcmd in $PATH starting Total Commander in, say with content:

#!/bin/sh exec "wine" --bottle "TotalCmd" --check --wait-children --start "C:/users/crossover/Start Menu/Programs/Total Commander/Total Commander.lnk" "$@"
  • If the folder containing the executable wine is not in $PATH, then wine has to be replaced by its full path; in case of Crossover it is /opt/cxoffice/bin/wine.
  • The name of the bottle, here TotalCmd, can be omitted if a default bottle is set.
  • This assumes that Total Commander was installed adding Links to the Start Menu; otherwise the path of its executable instead of that to its link has to be given, say C:\TotalCmd\totalcmd.exe

Shortcut to Copy Linux Filepaths to Clipboard

Add to usercmd.ini the lines

[em_CopyFullNamesToClip] cmd=/bin/sh param=-c "cat ""$(wine --bottle TotalCmd winepath --unix ""%UL"")"" | sed -e '1s/^\xEF\xBB\xBF//' -e 's/\r$//' | xargs --delimiter='\n' wine --bottle TotalCmd winepath --unix | xclip -in -selection clipboard"

and to wincmd.ini the line

CS+C=em_CopyFullNamesToClip

to copy the full Linux path of the currently selected files to the clipboard by Control+Shift+C

  • to remove the trailing line feed, add head -c -1 | before xclip
  • xclip has to be in $PATH (which it is on many Linux distributions; otherwise xsel is an alternative)
  • If the folder containing the executable wine is not in $PATH, then wine has to be replaced by its full path; in case of Crossover it is /opt/cxoffice/bin/wine.
  • The name of the bottle, here TotalCmd, can be omitted if a default bottle is set.

Open Krusader in Current Work Dir

Since Krusader has better support for Drag and Drop, sometimes dragging files from Krusader, instead of Total Command, is called for:

Add to usercmd.ini the lines

[em_ExecuteKrusader] cmd=/bin/sh param=-c "krusader --left ."

and to wincmd.ini the line

to open the currently open directory in Krusader by hitting F12.

Call native applications from Button bar

You can easily call native applications for a selected file by using either the script that is linked here http://community.linuxmint.com/tutorial/view/222 or by using the following script:

#!/bin/sh $1 `wine winepath -u "$2"` $3 $4;

Save the file as linuxcaller.sh, and make it executable by typing chmod +x linuxcaller.sh

Now you can create buttons generically by using the script as command. As parameters you can pass the actual native linux command that you want to execute and the %P%N parameters and maybe some more in case you need it.

You can copy and paste this predefined button, you must adjust the paths. This example calls Pinta (Image viewer) with the selected file.

TOTALCMD#BAR#DATA Z:\home\sebastian\scripts\nixcaller3.sh pinta %P%N %COMMANDER_PATH%\WCMICONS.DLL,26 Open with Pinta %P -1

(Works for me under Mint 17.1 and XFCE)

Copy Filepaths to Clipboard

Here is a small script that enables you to copy a valid Linux path of selected file(s) in Total Commander

(Works under Mint 17.1 with XFCE with one or multiple selected files)

#!/bin/sh 
outputp=""
for var in "$@" do currentpath=`wine winepath -u "$var"`; outputp=$outputp$currentpath'\n'; done echo $outputp | xclip -selection clipboard;
  • save the script in a file named e.g. clip.sh and put it into e.g. /home/user/scripts
  • make script executable, i.e. chmod +x clip.sh
  • create Button in TC and use

command: Path to script parameter: %P%N

  • Important: make sure you have xclip installed. It might not be included in your distro. Usually «sudo apt-get install xclip» should do it.

or copy the text below and paste it onto TC Button bar and then adjust paths.

TOTALCMD#BAR#DATA Z:\home\sebastian\scripts\clip.sh %P%S %COMMANDER_PATH%\WCMICONS.DLL,59 Copy Fullname As LinuxPath -1

Troubleshooting

While porting the scripts from one computer to another i found it helpful to simply run the scripts from a terminal and see whether they are working or throw an error message which you will not see when calling them via TC buttonbar!

  • make sure scripts are executable: chmod +x filename.sh
  • make sure path is correct
  • make sure tools are installed (like xclip)

Make more use of the Drive-Bar

By default Wine only configures the C: drive for the «simulated» Windows System drive and the Z: drive for the actual root file system. This makes the Total Commander Drive bar quite empty.

To add more «virtual drives» to the drive bar you can simply create symbolic links to anywhere.

To create a new Drive that is actually your home folder, open a terminal and type:

cd ~/.wine/dosdevices ln -s /home/sebastian/ s:

Which will create a drive with letter S in wine that is your homepath.

Источник

Total Commander

New Member

huns New Member
Posts: 1 Joined: 2003-09-30, 11:25 UTC Location: malaga Contact:

Total Commander under linux

Post by *huns » 2003-09-30, 11:34 UTC

Still I have no try tuxcommander for linux, but if you need totalcommander under linux, remember can use it under wine
http://www.winehq.com/

Power Member

Lefteous Power Member
Posts: 9531 Joined: 2003-02-09, 01:18 UTC Location: Germany Contact:

Post by *Lefteous » 2003-09-30, 11:37 UTC

Junior Member

Agilo Junior Member
Posts: 5 Joined: 2003-09-22, 22:44 UTC Location: The Netherlands Contact:

Post by *Agilo » 2003-10-01, 05:44 UTC

Senior Member

Jonas Senior Member
Posts: 325 Joined: 2003-05-27, 16:59 UTC Location: Germany Contact:

Post by *Jonas » 2003-10-06, 14:39 UTC

Why using TC with WINE? There are lots of Commander-like Filamanagers for Linux out there. which are anble to hanlde all stuff w32 hasn’t (and TC over WINE can’t provide) like the ownership or attributes of a file.

By the Way, Krusader 1.29 Beta1 is out. Which supports tabs! (appart from many other features like rightclick image-preview, KRename-integration, a powerful editor with syntax-highlight, etc. )
And there is also a messageboard where you can ask for help or new features.

All those who would like to see a TC for Linux should realy look at this project!

New Member

mihmig New Member
Posts: 1 Joined: 2003-11-24, 09:10 UTC

Improving TC working with wine

Post by *mihmig » 2003-11-24, 09:30 UTC

Krusader is indeed the most advanced filemanager (beside mc of course) for X. But compared to TC, there are still a lot lot lot of usability issues and features missing.

Especially when it comes to archive handling and searching files, TC is still miles ahead. So what I do is using WINE for these cases. (strange enough TC is still faster than Krusader)

BUT: the most annoying thing with TC under WINE is moving the fileselector using the keyboard:
Each Cursor UP or DOWN selects the previous file, like as a the shift key would have been pressed. When actually holding shift, the last file is always unselected.

As I didn’t have that problem with other windows programs under wine, this may to be a special problem of TC or Borland’s ListBox?

Now my question: Did anyone solve this selection problem or would it be possible to alter TC in a way that the File-Listbox is handled better under WINE ?

Member

havanna Member
Posts: 163 Joined: 2003-02-27, 08:06 UTC Location: Baden/Württemberg

Post by *havanna » 2003-11-24, 19:13 UTC

One more point why TC makes sense under Linux:
Once I got used to all the shortcuts and menu item locations it’s just very handy to have the favorite tool available under Linux as well.

Junior Member

ruymbeke Junior Member
Posts: 18 Joined: 2003-07-14, 20:30 UTC Location: Menlo Park, CA

Linux and Total Commander, using wine / codeweavers

Post by *ruymbeke » 2004-03-08, 03:17 UTC

Источник

Оцените статью
Adblock
detector