Polski Związek Krótkofalowców

 

Polski Klub Radiovideografii

Navigation:  »chapter is not sub-section upper level«

Preparing Linux and Wine cooperation with HAM_SECREATARY

Print this Topic Previous page come-back to begin of chapter Next page
Expand all elements   Callapse all elements

HAM_SECRETARY program can work in a Linux environment for application WINE (it is not a Windows emulator - as the authors call it - WINE - is not an emulator from the first letters). Tested and below describe the settings in WINE and Lunux Kubuntu -9.10. and in the WINE version 1.1.31. HAM_SECRETARY  inside WINE Linux  can be the same as the normal Windows and do not need any separate version. Here is screenshot of the most important Design pattern for  in Kubuntu 9.10  .

Screenshot of the interface Design pattern in a WINE 1.1.31 under Ubuntu 9.10

Some preparation  are needed for WINE and Kubuntu. This is because, and some elements in WINE does not wait for a software solution .. The problems which we must settle it, the following matters:

1 - First issue is Help in the HAM SECRETARY

In the normal version of Windows help is in the form of a file type. Chm. In addition, the program HAM_SECRETARY is written for  normal Windows contextually ie pressing the F1 key opens a help site that describes what the function is actualy  performed. Unfortunately, WINE contextual help is not well resolved. There is truth  thatfor  WIINE  is program hh.exe for type. Chm  file - ie it is the same name as in normal Windows but its action is very slow.  Calling this hh.exe from Linux bash shell if they are in the directory with the help file. chm file has the form:

 

smietan@Kubuntu9:~/.wine/drive_c/HAM_SECRETARY$ wine hh.exe HAM_SECRETARY_EN.chm

 

But I would not recommend this program hh.exe. Starts only sometimes  and opens only a very  small chapters Normal chapters - it's not the way forward in the opening chapter - the Linux system monitor shows the hh.exe consumes a lot of memory - 800 MB  for small chapters. . Maybe the next issue of WINE will  better solve this problem. Thus, we cannot  use contextually help . However, we can use the Linux program  type. chm named  Chmsee   We need it just install Linux boxes from the repositories using Synaptic Package Manager or through the System Settings ----> Add / Remove Programs ... chmsee Program here is the best choice there - but it also have drawbacks - namely:

does not display the color fonts if it is in a different colors as it  was set in the source. Only links - links to other places in help displays in blue
Links are not handled properly - ie if you jump to the center of some other section is always a jump is made to the beginning of the chapter.
Suggestions (that is, those words in the chapter - for which you hover mouse on it it displays the tip) are displayed - but the background of such windows is not erased.

You can even install kchmviewer for Linux  - but it is even worse for the files. Chm files from the normal Windows

I recommend users who use HAM_SECRETARY on  Linux boxes  support for the program HAM_SECRETARY  help on my web site http://sp9auv.com/EN . There, everything works as it should - the colors, and links to other chapters and chapters of the measure are performed correctly. Returns with jumps also perform correctly.

2 - problem for the linux users - use any browser from HAM_SECRETARY

For views on the website QRZ.COM all the data on station with the cost of shipping QSL cards - in order to insert the data in the Remarks box - see .HAM_SECRETARY program was written so that it uses the default browser which is installed on your system.  I recommend using the Firefox browser and a call for a new station will open a new tab just for this station in the browser - no browser and re-launching a new window - taking system resources as it has done ..- Internet Explorer WINE. Typically, users install Firefox on Linux. Note - In Kubuntu 9.10 Firefox is not in the distributions - you can install it using Synaptic Package Manager or through the System Settings ----> Add / Remove Programs.Install itself does not make that Firefox will become the default viewer web. Describe it below. It would be also be configured WINE to be able to use the Linux browser as I will describe below .The  trick is done by editing the appropriate file registers in WINE by giving from the Linux console:

smietan@Kubuntu9:~/.wine/drive_c$ wine regedit

It does not matter which directory you are when you call the above command

We are looking now to HKEY_CURRENT_USER (aka HKLM) -> Software -> Wine and look at the key named "WineBrowser" If the key does not exist create it. For the newly created key "WineBrowser 'create string named" Browsers "with the following values

xdg-open,firefox,konqueror,mozilla,netscape,galeon,opera,dillo .

Do not pay attention to the order of these browsers in the code above. Be sure only the sequence "xdg-open is the first in a string. It will do that when we have recourse to a link from  the WINE program - will be called linux default browser to open a link called

WINE register with the chnged key values to  call the
Linux default browser from the  WINE

But that's now  not all . If we called default browser, ie a link from the Wine, we get the following error messages:

err:winebrowser:get_url_from_dde Unabled to retrieve URL from string L"\""

err:winebrowser:wmain Usage: winebrowser URL .

To prevent this we have to go to HKEY_CLASSES_ROOT -> http -> shell -> open -> command and edit an existing sequence there, adding more characters "% 1" at the end of the line, so that it looked like the following:

C:\windows\system32\winebrowser.exe -nohome "%1"

 

WINE register with the revised value for the key
HKEY_CLASSES_ROOT -=> http => shell => Open => command

Now we are looking throughout the entire register key winebrowser. Set the position of first position My Computer

 

Search in the whole WINE  register  key winebrowser
Set on the  My computer items  first

Appears some sequences have been edited C: \ WINDOWS \ system32 \ winebrowser.exe-nohome "% 1". or not edited C: \ WINDOWS \ system32 \ winebrowser.exe If at some not add% 1   just add  % 1. eg C: \ WINDOWS \ system32 \ winebrowser.exe% 1. Continue searching by pressing F3 in a registry. Sequences not only corrected may be on the screenshot below ;

 

This strings are not corrected - I am  not corrected them, and everything works,
Perchaps if you do corection it wiil be not afected for proper unction

At this time, a default browser is konqueror - installed with the distribution. To change this must change this system program System Settings -> Default Programs -> Web browser as on  the following screenshot

 

Setting  firefox as default browser in a Linux

3 s the problem. - Printer from Linux is used as the default browser for WINE

WINE program unfortunately does not have the possibility to install their own device drivers. Is related to that is that WINE does not support multithreading and multitasking as it is in normal Windows. When operating external devices is needed multithreading, since the events from external devices can come in any moments and often require immediate care. Therefore WINE cooperates with external devices using drivers Linux . And as happens in the case of the printer. You must first install the SAMBA package repositories - client and server - if you want to use another printer on another computer on the network protocol SAMBA -. Then - be in Kubuntu 9.10. Install it through System Settings ---- > Setting up the printer -> New Printer -> A new network printer or a new class of printers ---> Windows Printer via SAMBA - then you must enter the entire address on a home network, ie in the SAMBA smb protocol

Installing a network printer (drukarka)  on the network protocol
SAMBA smb
.

Reports to our list of drivers available for Linux
of which  select producer - here HP

Select the printer Hewlett Packard Laser Jet 2300 what we
have and want to install. Here chosen Postricript printer  
commended. But if you chose PCL printer HPJIS  3.9.8
we wiil have more standard formats papers  to choose from

We get a call from the printer, if you want we can choose
that this will be the default printer under Linux

Some parameters of the printer  and the most interesting
Custom paper size - unfortunately, at the printing it not appear
it to choose from. In the image showing the additional rotation
180 degrees - to row orientation

Installed driver for this printer has the format Custom format - but no longer can set the paper size for him as it was for the same printer in Windows. It is recommended install  from the Synaptic Package Manager driver djtools Tools for HP DeskJet printer for printer  that recognize the standard HP PCL.  .Its installation will allow you to define additional custom formats. This Linux driver also allows you to flip through 180 degrees at print orientation - making a total of angle of  rotation   = 90 degres standard (the printer) + 180 degrees ( from fiver)  =   270 degrees .

Do not worry this that this printer in Linux is not any possibilities to define custom paper sizes. Print will make an option Print - The program  itself select the page size (without scaling) . For example, printing on 3Z70RG pattern will be do  by selecting options  print as on the images:

Setting the HP LaserJet 2300 in Linux, without turning  Vertical

Shift in the pattern 3Z70RG for Linux for HP LaserJet 2300 --
along the height (dimension 90 mm) = + 4 units
and  along the width (dimension 140 mm) = + 180 units

 

Navigation:  »chapter is not sub-section upper level «

Preparing Linux and Wine cooperation with HAM_SECREATARY

Print this Topic Previous page Come-back to the begin of chapter Następna strona
Expand all elements   Collapse all elements