Differences
This shows you the differences between two versions of the page.
howto:desktop:install-ztreewin-in-linux [2018-08-05 04:25] |
howto:desktop:install-ztreewin-in-linux [2020-08-13 06:17] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ~~META: | ||
+ | creator = Brendan Kidwell | ||
+ | &date created = 2008-09-04 | ||
+ | ~~ | ||
+ | {{tag> | ||
+ | ~~DISCUSSION~~ | ||
+ | ====== Install ZTreeWin in Linux ====== | ||
+ | |||
+ | This howto will show you how to install [[http:// | ||
+ | |||
+ | You will need: | ||
+ | |||
+ | * A Linux installtion running a graphical desktop environment (X Windows with KDE, GNOME, or your favorite window manager) | ||
+ | * An x86-based CPU (Intel, AMD, etc) because Wine can't run native Windows executables on non-x86 CPUs. | ||
+ | |||
+ | I don't believe there is any way to get ZTreeWin running in a Linux text terminal environment because of ZTreeWin' | ||
+ | |||
+ | I will show you how to install it in your graphical Linux desktop and create a launcher and customize the window so that it shows 80×25 characters in an appropriately-sized frame instead of full-screen frame with extra empty black space. | ||
+ | |||
+ | ===== Preparation ===== | ||
+ | |||
+ | Install Wine using your favorite package manager. | ||
+ | |||
+ | <code bash> | ||
+ | sudo apt-get install wine | ||
+ | </ | ||
+ | |||
+ | I suggest you also run the "'' | ||
+ | |||
+ | {{:: | ||
+ | |||
+ | ===== Run the Installer ===== | ||
+ | |||
+ | Get the latest ZTreeWin installer from the ZTree web site, then run it inside Wine with this command: | ||
+ | |||
+ | <code bash> | ||
+ | cd ~/downloads | ||
+ | wine ztw??? | ||
+ | </ | ||
+ | |||
+ | Run through the setup wizard as you would on Windows. | ||
+ | |||
+ | ===== Create a Launch Script ===== | ||
+ | |||
+ | <code bash> | ||
+ | cd " | ||
+ | touch start_ztree.sh | ||
+ | chmod +x start_ztree.sh | ||
+ | nano start_ztree.sh | ||
+ | </ | ||
+ | |||
+ | Enter the following code in the nano text editor and hit < | ||
+ | |||
+ | <file bash ~/ | ||
+ | #!/bin/bash | ||
+ | cd "/ | ||
+ | wineconsole --backend=user ZTWIN.BAT H:\\ | ||
+ | </ | ||
+ | |||
+ | //Subsitute your username where it says '' | ||
+ | |||
+ | Now edit your <wrap file> | ||
+ | |||
+ | <code bash> | ||
+ | wine notepad ZTWIN.BAT | ||
+ | </ | ||
+ | |||
+ | The batch file should read like this: | ||
+ | |||
+ | <file dos ~/ | ||
+ | @" | ||
+ | </ | ||
+ | |||
+ | Fix it if your existing one is using short folder names like <wrap file> | ||
+ | |||
+ | ===== Add the Launcher to your Applications Menu ===== | ||
+ | |||
+ | I converted ZTreeWin' | ||
+ | |||
+ | {{:: | ||
+ | |||
+ | Now, edit your applications menu and add ZTreeWin with the following properties: | ||
+ | |||
+ | {{:: | ||
+ | |||
+ | ^Field name ^Value ^ | ||
+ | |Name |ZTreeWin | | ||
+ | |Command | '''/ | ||
+ | |Icon | '''/ | ||
+ | | Enable Launch Feedback |// | ||
+ | |||
+ | // | ||
+ | |||
+ | |||
+ | ===== Launch ZTreeWin ===== | ||
+ | |||
+ | Run the launcher you created. | ||
+ | |||
+ | {{:: | ||
+ | |||
+ | Well, that didn't work out quite right, did it? I tried changing the window parameters in the ZTreeWin config screen (< | ||
+ | |||
+ | I guess for now we'll just have to settle for an 80×25 window. Here's how you can enforce the correct pixel size for the window: | ||
+ | |||
+ | ===== Force ZTreeWin' | ||
+ | |||
+ | First, right-click on the window and click Properties. Set the Font to <wrap nav>Deja Vu Sans Mono</ | ||
+ | |||
+ | {{:: | ||
+ | |||
+ | Now go to the Configuration tab and make sure <wrap nav> | ||
+ | |||
+ | {{:: | ||
+ | |||
+ | Click <wrap nav> | ||
+ | |||
+ | {{:: | ||
+ | |||
+ | Now... we're not completely finished yet. Something in the way ZTreeWin starts up causes the console to resize itself to take up most of the screen. In KDE 3.5, you can fix this by right-clicking on the **titlebar** of the window selecting <wrap nav> | ||
+ | |||
+ | Enter these values in the <wrap nav> | ||
+ | |||
+ | {{:: | ||
+ | |||
+ | ^Field name ^Value | ||
+ | |Description | ||
+ | |Window class (application type) | ||
+ | |Match whole window class |// | ||
+ | |//dropdown after// Window class (applicaiton type)|Exact Match | | ||
+ | |||
+ | Enter these values into the <wrap nav> | ||
+ | |||
+ | {{:: | ||
+ | |||
+ | ^Field name | ||
+ | |Size | ||
+ | |Size // | ||
+ | |Size //textbox// |728, | ||
+ | |||
+ | Click <wrap nav> | ||
+ | |||
+ | If the window size didn't come out exactly right, try using the <wrap nav> | ||
+ | |||
+ | I'm not sure if GNOME and XFCE and other desktops have a similar force-window-size feature, but I'm guessing you the reader will figure out some way to do it, or just live with the window size bug if you're not using KDE. | ||
+ | |||
+ | ===== Conclusion ===== | ||
+ | |||
+ | If you got it all working correctly your ZTreeWin window should look something like this: | ||
+ | |||
+ | {{:: | ||
+ | |||
+ | Now don't forget to setup your ZTreeWin Application window (< | ||
+ | |||
+ | I hope this guide helps some other ZTree fans to get their favorite file manager running in Linux. | ||
+ | |||
+ | ===== Problems? ===== | ||
+ | |||
+ | (Added 12 September 2008) | ||
+ | |||
+ | I wrote the bulk of this guide in a late-night stupor after the excitement of getting it to work for myself. It occurs to me now that some WINE newbies might need a little help with troubleshooting. If you do all that stuff above and it fails and you don't even know why, you might be missing out on some error messages. To see if WINE is having issues, try running the launcher script from the command prompt: | ||
+ | |||
+ | <code bash> | ||
+ | "/ | ||
+ | </ | ||
+ | |||
+ | If WINE isn't reporting any errors, also try running the <wrap file> | ||
+ | |||
+ | <code bash> | ||
+ | wineconsole --backend=user cmd.exe | ||
+ | </ | ||
+ | |||
+ | //(window opens)// | ||
+ | |||
+ | <code dos> | ||
+ | cd /d " | ||
+ | ZTWIN.BAT | ||
+ | </ | ||