2008年(70)
分类: LINUX
2008-06-18 23:19:50
|
Did you realize that your favorite text editor runs on Linux? Well, now you know, so if you've been thinking about making the switch, you're out of excuses.
PS: This means, using DarWine, you can run this fine program on the Mac OS X. How cool is that?
To get EditPlus working under Linux, you need to install the popular Wine software. Wine is an Open Source implementation of the Windows API on top of X and Unix. To install Wine on Ubuntu or Debian GNU/Linux, enter the following at the command line:
apt-get install wine
In a terminal window, download the latest in your home directory.
cd ~
wget ftp://ftp.editplus.com/epp301_en.exe
Then invoke this command to start the installation process:
wine ./epp301_en.exe
Once it's installed, go to where EditPlus was installed, e.g.
cd ~/.wine/drive_c/Program\ Files/EditPlus\ 2/
and run this command:
wine ./editplus.exe
It should start running and you should be good to go.
As an alternative, if you have a full installation of wine on your Linux system, shortcuts are auto-configured for Windows .EXE files. Double-clicking on epp230_en.exe in your desktop file browser will auto-magically bring up wine with the program loaded.
Note: Wine should do this automatically if you choose to add an icon to your desktop at the end of the installation.
You can create a desktop shortcut to EditPlus, so that clicking the icon will bring it up in wine.
Instructions for Gnome:
EditPlus
wine "C:\Program Files\EditPlus 2\editplus.exe"
If your Wine apps are using the ugly font that it picks by default, install the Microsoft Tahoma font. It can be downloaded . Then simply run:
wine ./tahoma32.exe
and follow the prompts. Note: installing this font may cause the column marker not display the correct current column. Reason currently unknown.
If you have Debian or a Debian-based distro (such as Ubuntu), you should be able to download and install through "apt-get":
apt-get install msttcorefonts
If you are running Gentoo Linux, you can simply install Windows fonts through a package in portage, called corefonts:
emerge -av corefonts
For other fonts, see .
The default Windows widgets (buttons, menus, etc) that come with Wine look pretty ugly compared to a nicely polished Gnome interface. Fear not! You can to make it look more Gnome/WinXP-like.
Create a directory for the theme
mkdir -p ~/.wine/drive_c/windows/Resources/themes/royale
Download the Royale theme (or you can download manually from )
wget
Unzip the downloaded file and move into the directory above
unzip Royale_theme.zip; cp Royale\ Theme\ for\ Win\ XP.exe ~/.wine/drive_c/windows/Resources/themes/royale
Install Royale theme and follow the prompts
wine ~/.wine/drive_c/windows/Resources/themes/royale/Royale\ Theme\ for\ Win\ XP.exe
Run winecfg
, under the "Desktop Integration" tab, select the "Media Center style" as the Theme
You may not have realized it in Windows, but under Linux it can be handy to change some default keybindings (e.g. Ctrl+W to close a tab instead of Ctrl+F4). Use Document > Permanent Settings > Keyboard to do this.
This tip not only applies to EditPlus, but ANY *nix app. First, install Fuse. Then install the Fuse filesystem SSHFS . Now you can mount SFTP at a normal mount-point and open/save files just like you would to a local directory.
If you need to capture the output of your User Tools (Tools->Configure User Tools), you may have problems (at least with wine version 0.9.46). It seems that wine does not redirect well the output of the programs. The only output from the command line that can be redirected to EditPlus are Windows commands like "dir" or "more". A workarround is the following:
more
. For example, to capture the output of make
you can do the following:
Create a text file named compile.exe
with this content
#!/bin/sh
make > compileResult.txt
Create a text file named compile.bat
with this content
compile.exe
more compileResult.txt
use this compile.bat
in Tools->Configure User Tools
~/.wine/drive_c/Program Files/EditPlus 2/
If EditPlus under WINE is unacceptable to you, there are Linux/BSD text editors with features comparable to EditPlus.
See