czwartek, 31 lipca 2008

esx. utracone połączenie z siecią.

  1. Problem z serwerem esx - serwer w konsoli zgłasza komunikat "Node is isolated from network. either repair network or chage agent startup using -noiso"
Problem częściowo opisany na forum vmware ( http://communities.vmware.com/message/572330;jsessionid=3F9A50FD9C37F30622DF7B09417D42E4)
Rozwiązanie
  • Połączyłem się z konsolą KVM https://XX.XX.XX
  • Wyedytowałem plik /etc/init.d/VMWAREAAM51_vmware, w sekcji start odszukałem ft_startup i dodałem opcję -nosio
  • restart serwera esx, komunikat zniknął, sieci dalej brak
  • usunąłem parametr z plik /etc/init.d/VMWAREAAM51_vmware
  • esxcfg-vswitch - l -- wyświetla liste switchy i przypisane do nich karty sieciowe ( powiny byc uplinki ) a ich nie było
  • esxcfg-vswitch -L vmnic1 vSwitch0 --przypisałem karte vmnic1 do vSwitch0 - siec ruszyła!
Inne problemy z forum jakie mieli ludzie z tym samym komunikatem :

I have a host that is giving an error in the console that basically states "Host is isolated from network. either repair network or chage agent startup using -noiso"

How would I do this?
--------------------------
That usually would indicate that you don't have connectivity to your default gateway or that you don't have a valid service console interface. Either one of those ring true?

---------------------------
Ah, okay. So you want it to be isolated? Okay. Little more info is needed here. What are the circumstances that got you where you are? Is this host off by itself on an isolated network? Is it part of a cluster? Are you trying to run HA?

I think the agent it's referring to is probably the Legato HA agent which really shouldn't be run in isolated mode unless you have a really good reason to do so, but I might be wrong - thus the questions.
----------------------------
No. I DO NOT want it that way but the error I am getting from the console says that it IS. I want to change it using the -noiso option that the error message refers to but I don't know how.

What got me here? good question. all of the suddden I was unable to power on a VM on this host. kept getting an error through VC that "the host could not be contacted." After that VC showed it as "Not Responding"

I tried to putty to the console and couldn't so iLO'd to it and looked at the console. that's when I started noticing the error.
----------------------------
Gotcha. Okay. I'm going to make the assumption that this host was part of a cluster in which HA was enabled (which makes the error you got make more sense but isn't critical to the problem). If you can't PuTTY into the box and lost VC connectivity, that's your larger problem. The error your seeing there is probably more of an effect/symptom than anything else. So even if we did figure out where that switch goes (probably in the LegatoAAM startup script somewhere), it wouldn't make you feel any better because the host would probably still be unavailable. You're probably going to want to start looking at generalized network issues (of which there could be a whole bunch). Anything from a bad cable, NIC, switch port configuration, unavailable default gateway (probably not that if the other hosts are working), or whatever else can go wrong with your network. Alternatively you could also have something wrong with your ESX host's service console configuration, but I tend to doubt that with the little information I have (assuming no one changed the SC configuration recently).
----------------------------
Never found an answer to the location of the "-noiso" option that my error was pointing to so I had decided to simply delete and rebuild my vSwitch.

Since vSwitch0 already existed, I had to delete it 1st. Got an error that the Service Console port group was still in use. I ran "esxcfg-vswitch" to get the option to delete it and saw the "-r" option. (Restore all virtual switches from configuration file.) So I ran "esxcfg-vswitch -r" and my connectivity was restored.

I guess this was the way to "repair" my network as indicated in the error I was receiving. I would still like to know the location and use of the mysterious "-noiso" option. If anyone can find the documentation on it i will give them credit for it.
-----------------------------
I had this same problem it started after I tried to add and new NIC to the vSwitch0 and VCC crashed when doing it. Had to run "esxcfg-vswitch -U vmnic1 vSwitch0" that gave me "Node no longer ISOLATED, will RESTART" and the network started to work again after.
-------------------------------
The -noiso is an option for the /opt/LGTOaam512/bin/ft_startup script. The ftp_startup script is called from the /etc/init.d/LGTOAAM51_vmware script. VMware's HA is a Legato product. Legato has documentation which in this case explains the -noiso option. The documentation is available at:
http://web1.legato.com/cgi-bin/catalog?sf=Releases&level=29-1#29-1

If you are running ESX 3.0.1 you are using Legato Automated Availability Manager 5.1.2.

środa, 30 lipca 2008

optymalizacja OpenOffice

Narzędzia -> Opcje -> Zakładka "Pamięć"
Tam ustawiamy zapamiętywanie funkcji "Cofnij" na 30-40 ruchów, a potem zwiększamy Pamięć podręczną na grafikę na 60-100 MB (w zależności od tego jaki RAM - ja mam 512 RAM i ustawiłem na 80).
Teraz OO ładuje mi się ok. 5 sekund, co jest dużym postępem i w ogóle cały program działa szybciej
Jeszcze w sekcji Java można odznaczyć "Używaj środowiska Java".

Parametry uruchomieniowe dla OO:

O/S = Win XP, Svc Pk2 (Info contained in this thread should be usable for other versions of Windows, however).
OOo = ver. 2.0.4 (some info for earlier versions, however, is also included).

ORIGINAL QUESTION:

First of all, is it possible to start OOo from a command line (or from shortcut containing command line) and open the "Templates and Documents - New Document" dialog box upon startup, without using the Quickstarter; and, secondly, what are the other command line switches and commands that duplicate the Quickstarter startup and launch features? For various configuration reasons, it may not be practicable to run the Quickstarter, Windows, Task Bar, tray item.

--------------------------------
--------------------------------
ANSWER: Yes, this is not only possible but also rather easy to do if you know where to look in order to obtain your necessary commands and switches. For inquirers seeking this solution, see Help responses below by responders to this Help request and by original poster of this request. Help responses provide three common sense methods, all very good, to solve this problem with respect to the ways in which the issue might present itself in the workplace. Also contains a summary of the other command line startup parameters and switches that duplicate, on a discrete basis, the other launch behaviors of the Quickstarter (none found, however, for the Writer/XML option).

SUMMARY OF INFORMATION CONTAINED IN THIS POST and THREAD:

SUMMARY ("Known" to this poster as of this particular ver. 2.04 upgrade) derived from answers posted by others in this thread.:

A summary of the OOo command line switches for ver. 2.0.4 (applies, I think, to all versions of 2.0.x) that addresses directly the narrow, work startup, question posed in this inquiry, is as follows:

A. COMMAND LINE SWITCHES and CERTAIN "UNO COMMANDS" that can serve as functional equivalents of command line switches, all duplicative of individual features in Quickstarter if it is desired NOT to use Quickstarter in your start-up configuration.

B. Some links and references to other threads and sources for obtaining command line switches or "parameters" for your ready reference.

-------------------------
A. COMMAND LINE SWITCHES & CERTAIN UNO "SWITCH EQUIVALENTS:" Under the assumption that a user or an IT person may need to duplicate some, but may not want all, of the Quickstarter features, or, alternatively, may not want the Quickstarter up and running at all times because of overheead usage, or other, reasons, the applicable command line parameters, for the purpose of this thread, are as follows:

Note: all examples, except where expressly indicated to the contrary, include use of the "-nologo" switch under the further assumption that you do not want the app in question to first load a splash screen while you are waiting for Windows to display the app on your monitor screen. If you want to see the splash screen, omit the "-nologo" switch from your command line syntax.

Also Note: The examples and switches contained in this Summary also assume your OOo executable file was installed in a typical Windows installation at "C:\Program Files\OpenOffice.org 2.0\program". That means that, if you are using a shortcut to implement the startup option, your "Start In:" parameter in your shortcut properties dialog box will also be "C:\Program Files\OpenOffice.org 2.0\program". If you have installed OOo to a different location on your hard drive, then you will have to make the appropriate alterations to the paths in the examples contained herein.

Finally, if you are using Windows, note that, although this post concerns "command lines" and "command line parameters," or "switches," you do NOT need to use the Windows Console (also referred to as the "DOS Window") in order to use the start-up configurations set out in this post. So-called "command lines", TOGETHER with accompanying switch parameters, can be inserted into shortcut command lines as well. The shortcuts you make and edit to include the start-up command lines and switch parameters can then either be copied to the desktop, or to any folder on the hard drive, OR to the START menu (BOTH in XP mode or in Classic mode displays) and used to launch the OOo Suite apps in accord with the command lines and switches set out in this post.

Thus, for example, if you want simply to make a shortcut on a User's Desktop for the User to double-click, simply make a shortcut to the "soffice.exe" file itself, open the shortcut you have made (right-click the shortcut icon, select "Properties," and add the appropriate switch or switches to the command line you see in the shortcut in the edit box you see for COMMAND LINE or "Target" you see under the shortcut tab in the shortcut dialog box) and then employ the shortcut just like you would any other shortcut -- i.e., use it as a clickable icon OR copy it/install it on the Windows START menu on the Taskbar. REMEMBER, when editing a command line in the shortcut properties dialog box that you must insert a SPACE between the ending quote mark in a long filename path and the switch you want to use; if you fail to include the trailing space after the closing quote, Windows will NOT be able to execute the command at all, or, if it does, you will simply receive an error message. The hyphen in front of each switch command MUST be preceded by a space so the O/S will know what to do with the command (i.e., that the item is a switch that modifies the behavior of the simple ".EXE" file being executed. There is NO space between the hyphen character and the first character in the switch command itself but there IS a space between EACH switch command (inclusive of the hyphen) and whatever precedes it in the command line syntax.

  1. LAUNCH MAIN CONSOLE W/ NO DOCUMENT:

  2. Example: "C:\Program Files\OpenOffice.org 2.0\program\soffice.exe"

    NOTE: You cannot use any switch at all with this command line option if you simply want to launch the OOo Console with no blank document loaded at all (i.e., the bare OOo Console app interface but with no document). If you so much as try to use the "-nologo" switch, as of the date of this writing, the launch will default your launch to Writer + a blank document, apparently under the assumption that what you want to do is to type a text document. This information was incorrectly stated in my first post of this switch. If all you want to do is launch the app as a blank app, with no document, then you are stuck with watching the OOo logo on your screen while the app is launching. If any reader of this post knows how to launch the OOo main app in blank Console mode, without a logo's displaying during the launch, either with a switch of which I am unaware, or, perhaps, using one of the UNO commands, please post it below; I will check back in a month or so to see if this has been done and make whatever corrections need to be made in this part of of this thread, Thanks.

  3. LAUNCH THE FORMS AND TEMPLATES DIALOG BOX: .uno:NewDoc -nologo

  4. Example:
    "C:\Program Files\OpenOffice.org 2.0\program\soffice.exe" .uno:NewDoc -nologo

    (Gives users access to all documents and templates in same manner as this launch feature does when activated from Quickstarter.)

    SPECIAL NOTE ON THIS UNO SWITCH:


    1. This is a very powerful switch in that it all but moots out the necessity to run Quickstarter in memory at all.


    2. The interface in the dialog allows a user not only to "reach" any template or form but also to "reach" any document at any storage location on any local or network hard drive or CD ROM, or whatever.


    3. Thus, in our shop, for example, we have two basic categories of users: (1) users who type lengthy documents in Writer (usually based on some basic document letterhead format template) and (2) some users who primarily work in spreadsheets and type short cover letters in Writer pursuant to which they send out spreadsheet work in hard copy. We also have one or two users who work almost exclusively in HTML who could care less about ordinary Writer or Calc documents.

      The Forms and Templates interface allows any user to reach immediately (1) a new document; (b) a template, or (c) any work-in-progress document, at any location on the user's hard drive or over the network, which is configurable in Options in OOo; (c) in whatever suite app or tool is necessary to get his or her job done.

      Everything is thus "accessable" to "everyone" through this dialog box interface on a flexible, docu-centric, "work basis." This all but obviates the need for a user to know any classic O/S indigenous skills at all. If the user knows how to use OOo, the user couldn't care less whether the O/S is Windows, Linux, or Mac. In other words, your graphics genius down the hall who works on a Mac does not need to know anything at all about Windows or Linux technicals in order to be fully integrated into the work flow (you can't get a graphics genius to work on anything other than a Mac, anyway, so don't even think about trying to offer him or her a Windows or Linux machine; it won't work. :-) )

      So, we give every user here TWO (2) START menu options (shortcuts loaded into the START menu folder under "WORK"): (1) THIS UNO switch accessible interface and the "console/no document" option (if user needs to do some application configuring only). I fully expect, moreover, that some enterprising souls -- as folks become a bit more familiar with the macro language -- will write some macros in accord with the macro options set out in the responder posts below.


    4. All users, of course, are free to use any of the other options posted by the responders below in their posts, such as using individual shortcuts to docs or to suite apps wherever they want or need to place a shortcut.

      I have my fingers crossed; but, so far, this switch, and using only these two START menu items seems to be keeping the most users happy most of the time. I cannot, of course, speak for all users; but we have found the users do not care so much about choosing an app from Quickstarter and matching it to a document as they care about simply picking what item of work they need to do and then letting OOo and the Windows O/S worry about loading the necessary equipment to perform the task at hand.

    5. Reminder on UNO syntax:
    6. The UNO switches REQUIRE that you place a period (sometimes referred to as a "dot") in front of the characters, "uno," with NO leading space, followed immediiately by a colon (":") with NO trailing space. In addition, the UNO command must be delimited in its entirety -- on either side of the command - by a space to seperate it from other items in the command line, such as the PATH and any other command line switches, such as "-nologo" or a document path and name, or whatever.


    7. There are "many" other UNO command switch equivalents available that can assist you in work startup situations. The UNO commands work just like ordinary command line switches so long as you observe the proper syntax. As pointed out elsewhere in this post, however, not all of the UNO commands will actually launch a "visible" suite app; some of them do some things "internal" to OOo suite apps.

      Thus, although, you cannot "hurt anything" if you experiment around with the various UNO commands on your command lines, you can in fact end up with multiple instances of OOo items running in memory and no visible results on your screen. So, you need to check your Task Manager in Windows from time to time to see if there are any OOo instantiations (thread processes) that are running extraneously as a result of trying out a particular UNO command that didn't do what you wanted: just "END" the unwanted process(es) and carry on, there should be no harm done. If you crash your system, it's no big deal, the reboot will re-set your OOo threaded processes back to zero, and you can continue your hack on a clean slate.


    See below for links to additional UNO commands that may prove useful for various and sundry startup config options.

  5. LAUNCH WRITER WITH BLANK DOC LOADED: -writer -nologo

  6. Example: "C:\Program Files\OpenOffice.org 2.0\program\soffice.exe" -writer -nologo

  7. LAUNCH WRITER WITH BLANK HTML DOC LOADED: -web -nologo

  8. Example: "C:\Program Files\OpenOffice.org 2.0\program\soffice.exe" -web -nologo

  9. LAUNCH WRITER WITH BLANK XML DOC LOADED: NO SWITCH KNOWN AT THE PRESENT TIME BY THIS POSTER. IF YOU KNOW A COMMAND LINE SWITCH OR AN UNO COMMAND LINE SWITCH EQUIVALENT THAT WILL ACCOMPLISH THIS STARTUP CONFIG, PLEASE POST IT BELOW.


  10. LAUNCH PRESENTATION (Impress) WITH "Presentation Wizard" LOADED: -impress -nologo

  11. Example: "C:\Program Files\OpenOffice.org 2.0\program\soffice.exe" -impress -nologo

  12. LAUNCH DRAW WITH BLANK DRAW DOC LOADED: -draw -nologo

  13. Example: "C:\Program Files\OpenOffice.org 2.0\program\soffice.exe" -draw -nologo

  14. LAUNCH DATA BASE WITH "Data Base Wizard" LOADED: -base -nologo

  15. Example: "C:\Program Files\OpenOffice.org 2.0\program\soffice.exe" -base -nologo

  16. LAUNCH SPREADSHEET APP (CALC) WITH BLANK SPREADSHEET: -calc -nologo

  17. Example: "C:\Program Files\OpenOffice.org 2.0\program\soffice.exe" -calc -nologo

  18. LAUNCH MATH APP: -math -nologo

  19. Example: "C:\Program Files\OpenOffice.org 2.0\program\soffice.exe" -math -nologo

  20. LAUNCH THE MENU TRAY TO TASKBAR: quickstart.exe" -nologo

  21. Example: "C:\Program Files\OpenOffice.org 2.0\program\quickstart.exe" -nologo

  22. You can also use the names of the individual ".EXE" files, where applicable, in conjunction with the switches.

  23. Example: "C:\Program Files\OpenOffice.org 2.0\program\smath.exe" -nologo
    Syntax: -

    You may have to experiment around a bit, depending upon the particular switch configuration you choose to use.

    Note: Command line in the following form also apparently works, but not recommended:

    "C:\Program Files\OpenOffice.org 2.0\program\smath.exe" -writer -nologo


  24. Finally, if you do not care one way or the other whether the OOo splash screen loads, simply open your START menu folder for your install shortcuts to OOo elements that were placed on the START menu and make a copy of the individual, applicable, shortcuts contained in that folder that you need and paste them wherever you want or need them to be.

B. LINKS TO OTHER RELEVANT THREADS & REFERENCES TO OTHER INFORMATION SOURCES:


  1. "2.0.3 - List of Current Command Line Switches?:" http://www.oooforum.org/forum/viewtopic.phtml?t=39209&highlight=
    (Somewhat repetative of this thread; contains some parameters not here posted but is also missing some of the ones here posted)


  2. UNO dispach commands for ver. 1.x.x (Posted by SergeM in this thread):
    http://framework.openoffice.org/files/documents/25/1042/commands_11beta.html

    Command Tables for Openoffice.org 2.x.x: (Same info as posted by SergeM for ver. 1.x.x but is for current version of OOo):
    http://www.openoffice.org/files/documents/25/2570/commandsReference.html

    [NB: not all UNO commands will necessarily be of assistance to you as substitutes for start-up switch type operations. Some UNO commands launch the suite app, some do not. If you see an UNO command that looks promising as a startup option, just try it to determine if it does what you want it to do. Also note that, in Windows, as to the UNO commands that do NOT work for you, the command you try may in fact launch an instantiation of soffice.exe into memory nevertheless; in those instances, you will have to go to Task Manager and end the process in order to recover the memory that is being used and to prevent a build-up in memory of instantiated copies of "soffice.exe".]


  3. See also: "Help file" for OOo for a full list of published command line switches. Does not, however, contain the command line switch for the data base app or any UNO command line equivalents)

    As of this writing, the full title, for search purposes, in the "Help" file for the suite, of the page containing the start-up parameters and switches (but not the UNO commands) is as follows:

    "Starting the OpenOffice.org Software With Parameters"


  4. Command line help:

    "C:\Program Files\OpenOffice.org 2.0\program\soffice.exe" -h

    This displays a dialog box of the command line, but not the UNO, switches. Note: this dialog box is HUGE and is non-resizable with your mouse; if you cannot fit this full dialog box into your monitor screen, check the suite Help file instead.


  5. See also: Below in this thread for alternate ways that have been suggested in this thread by responders to the original question for handling various app launch configurations in OOo.


  6. UNO commands must adhere to the following syntax: ".uno:"

    In other words, the structure is this: ""<.><:><-xxxcommand line switch>

If the above material contains any errors, or if it should contain any typographical errors that lead to computer behavior errors, PLEASE call my attention to the mistake or typo in a post below so that the next time I check this post I can make a correction. Thanks.

Naturally, if anyone should locate, or become aware of, a command line switch or an UNO command, either or both, that will effect a launch of Writer with an XML blank document, all ready for creation and editing, PLEASE add that information to this thread below so that the information may be later posted in this "summary."

Nuncus
11/05/06


Thanks to the responders to the question posed in the original post inquiry.

Nuncus
11/01/06 follow-up edit by Nuncus.

11/19/06 follow-up edit by Nuncus to correct original error in switch configuration for starting up the Console interface with no document loaded.
--------------------------------
--------------------------------

So Far:

The Help files contain a list of command line parameters (switches), as does the help file in the executable; but there does not seem to be a switch to open directly to the templates dialog box. (There is also lacking in the parameters list a parameter for going directly into Writer as an XML editor or text creator.)

Reason Why:

I would like to set up a templates library for work, for docs on an "as needed" basis and just go directly into the Templates dialog box on launch without comitting the Quickstarter to RAM overhead. Plus, the Quickstart area in Windows XP tends to get pretty junky and cluttered if one employs all the quickstarter and quickstart buttons that seem to come with all the Windows apps these days.

Since much of my work involves producing original text inside a pre-configured template, on a letter type by letter type basis, it would be nice to be able to just jump into the correct template and take it from there -- in other words, just pick the actual document type I need, frome the templates list, on the front end of the task at hand.

I have the switches for all the actal apps such as Calc and Writer.

Request:

Does any user or Team member have the command line switch to launch directly the Templates dialog box? The XML function? Is there some macro command, perhaps, that can be employed on a command line to accomplish this?

Thanks,

Nuncus


--------
command line parameters command line switches parameters switches startup parameters startup switches start up start-up startup forms templates forms and templates
--------

poniedziałek, 28 lipca 2008

optymalizacja adobe acrobat

optymalizacja adobe acrobat za pomoca skryptów bat.

przygotowałem własny pakiet msi

Installation Script for Adobe Reader 8.1 - Method 2 and 3
PDF Print
Written by Joe Shonk
Monday, 09 July 2007

Methods 2 and 3

In Install Script for Adobe Reader 8.1 - Method 1 we utilized the Adobe distributed package (AdbeRdr810_en_US.exe ) to perform an installation of Adobe Reader 8.1. For the most part this method works but leaves us with a few interesting challenges:

1) The NOSSO wrapped .msi package uses its own set of switches. The /l switch for logging does not allow you to specify a location for the log file. The /msi switch can be used to pass switches and properties to the MSIEXEC installer but since the value for this switch is set in quotes you won’t be able to use parameters that also need to be in quotes (i.e. /msi=”/l* “C:\Log Files\Adobe Reader 8.1.0.log”” will NOT work)

2) The NOSSO wrapped .msi package will unpack and expand the install files before installation. You can pre-extract the installation files and shave 30-60 seconds off your installation. While 30-60 seconds doesn’t seem like a lot, it does add up if you look at optimizing (one method or another) your other install scripts.

3) If using this method on a Terminal Server/Citrix Server, you MUST be in CHANGE USER /INSTALL mode. If not, the installation will require manual intervention before installation script will continue. I know many of you are already thinking that you should always install applications on a Terminal Server in INSTALL mode. Yes and no. There are many of us (myself included) who like having a little more control over the shadow keys area. This does require a thorough understanding of how shadow keys work.

Method 2 and 3 involves using the .msi package that has been extracted from the AdbeRdr810_en_US.exe distribution package. There are several advantages to doing this. First, the files are already extracted so it’s one less step the installer has to perform (Method 3 only). Second, you can use MSIEXEC switches and properties (This includes specifying the location of the log file). Third, you do not have to be in install mode for the installation to complete when installing on a Terminal Server.

The difference between Method 2 and 3 is in Method 2 the script will extract the source files (from AdbeRdr810_en_US.exe) as part of the script and in Method 3 we skip this step and install from a pre-extracted source.

Install_Adobe_Reader_Method 2.cmd:

TITLE Install Adobe Acrobat Reader 8.1.0
:: Written by Joe Shonk

setlocal
set AppSourcePath=\\server\share\adobe reader 8.1\
set AppExtractPath=%temp%\Adobe Reader 8
set AppLogFile="%temp%\adobe8.log"

set move_start_menu_icon=y
set del_desktop_icons=y

:: Specifiy which MSIEXEC Switches and Properties to use.
set switches=/qb
set switches=%switches% EULA_ACCEPT=YES
set switches=%switches% SUPPRESS_APP_LAUNCH=YES
set switches=%switches% ENABLE_CACHE_FILES=YES

pushd %AppSourcePath%
start /wait AdbeRdr810_en_US.exe -nos_ne -nos_o"%AppExtractPath%

pushd %AppExtractPath%
start /wait msiexec /i AcroRead.msi %switches% /l %AppLogFile%
popd

rd /s /q "%AppExtractPath%"

set regKey="HKLM\SOFTWARE\Adobe\Acrobat Reader\8.0\AdobeViewer"
REG ADD %regKey% /v EULA /t REG_DWORD /d 1 /f
REG ADD %regKey% /v Launched /t REG_DWORD /d 1 /f

set regKey="HKLM\SOFTWARE\Policies\Adobe\Acrobat Reader\8.0\FeatureLockdown"
REG ADD %regKey% /v bUpdater /t REG_DWORD /d 0 /f
REG ADD %regKey% /v bShowAdsAllow /t REG_DWORD /d 0 /f
REG ADD %regKey% /v bPurchaseAcro /t REG_DWORD /d 0 /f
REG ADD %regKey% /v bEFIPrintMe /t REG_DWORD /d 1 /f
REG ADD %regKey% /v bRegisterProduct /t REG_DWORD /d 0 /f
REG ADD %regKey% /v bCreatePDFOnline /t REG_DWORD /d 0 /f
REG ADD %regKey% /v bShowEbookMenu /t REG_DWORD /d 0 /f
REG ADD %regKey% /v bFedExInternetPrinting /t REG_DWORD /d 1 /f
REG ADD %regKey% /v bBrowserIntegration /t REG_DWORD /d 0 /f

set regKey="HKLM\SOFTWARE\Policies\Adobe\Acrobat Reader\8.0\FeatureLockdown\cHostedServices\cMeeting"
REG ADD %regKey% /v bShowMeets /d 0 /t REG_DWORD /f

set regKey="HKLM\SOFTWARE\Policies\Adobe\Acrobat Reader\8.0\FeatureLockdown\cHostedServices\cProtectPDF"
REG ADD %regKey% /v bShowMeets /d 0 /t REG_DWORD /f

set regKey="HKLM\Software\Policies\Adobe\Adobe Acrobat\8.0\FeatureLockDown\cDocumentStatus"
REG ADD %regKey% /v bSuppressMessageBar /d 1 /t REG_DWORD /f
REG ADD %regKey% /v bSuppressStatusDialog /d 1 /t REG_DWORD /f

set regKey="HKLM\SOFTWARE\Adobe\Acrobat Reader\8.0\AdsInReader"
REG ADD %regKey% /v bShowAds /t REG_DWORD /d 0 /f

set regKey="HKLM\Software\Adobe\Acrobat Reader\8.0\Downtown"
REG ADD %regKey% /v bDontShowAtLaunch /t REG_DWORD /d 1 /f
REG ADD %regKey% /v bGoOnline /t REG_DWORD /d 0 /f

set regKey="HKLM\Software\Adobe\Acrobat Reader\8.0\Updater"
REG ADD %regKey% /v bShowAutoUpdateConfDialog /t REG_DWORD /d 0 /f
REG ADD %regKey% /v bShowNotifDialog /t REG_DWORD /d 0 /f
REG ADD %regKey% /v iUpdateFrequency /t REG_DWORD /d 0 /f

set regKey="HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run"
REG DELETE %regKey% /v "Adobe Reader Speed Launcher" /f

if /i "%move_start_menu_icon:~0,1%" == "y" (
move /Y "%AllUsersProfile%\Start Menu\Programs\Adobe Reader 8.lnk" "%AllUsersProfile%\Start Menu\Programs\Accessories\"
)

if /i "%del_desktop_icons:~0,1%" == "y" (
del "%AllUsersProfile%\Desktop\Adobe Reader 8.lnk"
)

popd
endlocal

In order for the script in Method 3 to work, the AdbeRdr810_en_US.exe package needs to be extracted first. From a command prompt type:

AdbeRdr810_en_US.exe -nos_ne -nos_o"C:\Adobe Reader 8
(Note, the end quote on the above line was left off on purpose. You will get an error if it is added.)
Now move the contents of C:\Adobe Reader 8\ to your favorite file share.

Install_Adobe_Reader_Method_3.cmd:

TITLE Install Adobe Acrobat Reader 8.1
:: Written by Joe Shonk

setlocal
set AppSourcePath=\\server\share\adobe reader 8.1
set AppLogFile="%temp%\adobe8.log"

set move_start_menu_icon=y
set del_desktop_icons=y

:: Specifiy which MSIEXEC Switches and Properties to use.
set switches=/qb
set switches=%switches% EULA_ACCEPT=YES
set switches=%switches% SUPPRESS_APP_LAUNCH=YES
set switches=%switches% ENABLE_CACHE_FILES=YES

pushd %AppSourcePath%

start /wait msiexec /i AcroRead.msi %switches% /l %AppLogFile%

set regKey="HKLM\SOFTWARE\Adobe\Acrobat Reader\8.0\AdobeViewer"
REG ADD %regKey% /v EULA /t REG_DWORD /d 1 /f
REG ADD %regKey% /v Launched /t REG_DWORD /d 1 /f

set regKey="HKLM\SOFTWARE\Policies\Adobe\Acrobat Reader\8.0\FeatureLockdown"
REG ADD %regKey% /v bUpdater /t REG_DWORD /d 0 /f
REG ADD %regKey% /v bShowAdsAllow /t REG_DWORD /d 0 /f
REG ADD %regKey% /v bPurchaseAcro /t REG_DWORD /d 0 /f
REG ADD %regKey% /v bEFIPrintMe /t REG_DWORD /d 1 /f
REG ADD %regKey% /v bRegisterProduct /t REG_DWORD /d 0 /f
REG ADD %regKey% /v bCreatePDFOnline /t REG_DWORD /d 0 /f
REG ADD %regKey% /v bShowEbookMenu /t REG_DWORD /d 0 /f
REG ADD %regKey% /v bFedExInternetPrinting /t REG_DWORD /d 1 /f
REG ADD %regKey% /v bBrowserIntegration /t REG_DWORD /d 0 /f

set regKey="HKLM\SOFTWARE\Policies\Adobe\Acrobat Reader\8.0\FeatureLockdown\cHostedServices\cMeeting"
REG ADD %regKey% /v bShowMeets /d 0 /t REG_DWORD /f

set regKey="HKLM\SOFTWARE\Policies\Adobe\Acrobat Reader\8.0\FeatureLockdown\cHostedServices\cProtectPDF"
REG ADD %regKey% /v bShowMeets /d 0 /t REG_DWORD /f

set regKey="HKLM\Software\Policies\Adobe\Adobe Acrobat\8.0\FeatureLockDown\cDocumentStatus"
REG ADD %regKey% /v bSuppressMessageBar /d 1 /t REG_DWORD /f
REG ADD %regKey% /v bSuppressStatusDialog /d 1 /t REG_DWORD /f

set regKey="HKLM\SOFTWARE\Adobe\Acrobat Reader\8.0\AdsInReader"
REG ADD %regKey% /v bShowAds /t REG_DWORD /d 0 /f

set regKey="HKLM\Software\Adobe\Acrobat Reader\8.0\Downtown"
REG ADD %regKey% /v bDontShowAtLaunch /t REG_DWORD /d 1 /f
REG ADD %regKey% /v bGoOnline /t REG_DWORD /d 0 /f

set regKey="HKLM\Software\Adobe\Acrobat Reader\8.0\Updater"
REG ADD %regKey% /v bShowAutoUpdateConfDialog /t REG_DWORD /d 0 /f
REG ADD %regKey% /v bShowNotifDialog /t REG_DWORD /d 0 /f
REG ADD %regKey% /v iUpdateFrequency /t REG_DWORD /d 0 /f

set regKey="HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run"
REG DELETE %regKey% /v "Adobe Reader Speed Launcher" /f

if /i "%move_start_menu_icon:~0,1%" == "y" (
move /Y "%AllUsersProfile%\Start Menu\Programs\Adobe Reader 8.lnk" "%AllUsersProfile%\Start Menu\Programs\Accessories\"
)

if /i "%del_desktop_icons:~0,1%" == "y" (
del "%AllUsersProfile%\Desktop\Adobe Reader 8.lnk"
)

popd
endlocal

środa, 23 lipca 2008

vmware best practice

First and foremost: this tuning list is my own experience and the experience of several users on the VMware forum. Your mileage may vary.

The goods:

  • Virtual Infrastructure 3
  • Windows 2003 Std (or Enterprise) Edition R2 (x86, not x64)
  • Citrix Presentation Server 4.0 (yes, I know, the old one ;))

The tips:

  • First this: it all depends on the applications used! Context switches is the key here...
  • Use Windows 2003, not Windows 2000
  • Don’t P2V your servers, but use clean templates
  • Make sure the correct HAL (single or multi) is installed in the virtual machine. Otherwise, your vCPU will spike.
  • Always assign 1vCPU. If necessary, add a 2nd vCPU. Do not use 4 vCPUs!
  • Use 2 GB to start. Scale up to +-4 GB of vRAM if necessary
  • Use 1 .vmdk for your system partition (C:\ or other remapped drive letter) and 1 separate .vmdk for your program files.
  • Put the page file on the 2nd .vmdk
  • Important: disconnect any .iso file in your virtual CD-Rom
  • Use roaming profiles and cleanup your profiles at logoff
  • Disable sound for your published apps
  • Install the UPH service (download it here)
  • User sessions: for me, 30 users on a VM is the sweet spot. Do not expect to get as many users on it as on a physical box!
  • Scale out, not up. A major advantage of VM is to clone/NewSID/sysprep existing servers and put them into your existing Citrix farm. Just stop & disable your IMA service, clean up your RMLocalDB (if you use enterprise) and NewSid the thing. Refer to this support article for more info.
  • Use dual core or quad core systems. This because ESX will have more CPU to schedule its vCPUs on.
  • Don’t ever use a 2 vCPU Citrix virtual machine in a 2 pCPU physical machine!
  • Do not install the memory ballooning driver while installing the VMware Tools
  • Do not use a complete installation Vmware tools: there is an issue with roaming profiles and the shared folders component. See my previous article for more info.
  • Disable COM ports, hyperthreading, visual effects & use speedscreen technology where possible.
  • Use snapshots when installing applications or patching your servers (yes! With VMware you can do this!). In case of disaster, you can still revert to the original working server without using backups. Make sure all snapshots are removed ASAP when finished!
  • Always check that there are no snapshot leftovers (f.e. the infamous _VCB-BACKUP_ when using VCB)
  • Don’t forget you can use DRS rules to run your citrix servers on separate physical hosts.
  • Check out this vmworld 2006 presentation
  • And last but not least: do not forget to read ESX's (excellent) performance tuning white paper.

środa, 16 lipca 2008

astaro - problem z aktualizacjami.

Miałem problem z aktualizacjami
Rozwiązanie:

Product Version:
only Astaro Security Gateway 7.200
Summary:

During ongoing QA testing we found out that the latest up2date 7.200 can break the up2date process on some systems.

Read here if you or your customer are affected and if yes, how you can fix the issue?

Who is affected?
Customers of ASG hardware appliance who have downloaded and already installed ASG version 7.200 via a direct Up2Date from version 7.104.

Customers of ASG software appliances or customers who had installed the 7.200 beta version are NOT affected.

What's the Issue?
Due to an error in our build system an RPM package is missing in the 7.200 Up2Date.

This package has no functional code, but an identification weather the appliance in an ASG or an AWG appliance. As this identification is missing, the up2date installer does not know which product it is running on and therefore no further pattern and system updates are possible.

How to fix it?
Astaro technical support will pro-actively contact all affected partners or customers in order to install the missing RPM on affected machines.

If customers have downloaded but not installed ASG V7.200 up2date yet, they will automatically receive a new Up2Date package which includes the missing RPM.

Can i fix it myself?
Yes you can, in order to fix it yourself, you only need to install the missing rpm package.

To do so, you need to log into the ASG with the SSH console access, change to the root user and execute the following cut'n'paste ready code:

rpm -q ep-asg && cd /tmp && wget http://www.testastaro.com/files/rpm/ep-asg-7.2-23.i686.rpm && rpm -Uvh /tmp/ep-asg-7.2-23.i686.rpm

This command will check if this patch is needed, and if yes download the missing rpm package and install it.

If the systems returns 'package ep-asg is not installed', than you do not have an ASG Appliance and you don't need this patch.

If the system returns 'package ep-asg-7.2-23 is already installed', than you have already

If you run a HA/Cluster, it's necessary to install the missing rpm package on both systems. All you have to do is to install the rpm package on MASTER as described before and perform a reboot afterwards by typing: 'reboot'. Please wait until the takeover was successfully and install the rpm package on the NEW MASTER.

If you don't know how to do it, just contact your partner or the astaro support team directly, we are happy to help you.

Further Information:

wtorek, 15 lipca 2008

Karta muzyczna als100

mały problem z działaniem karty muzycznej pod ubuntu.
Jakis opis jest tu:
http://marines.jogger.pl/2007/05/12/avancelogic-als120-na-arch-linux-i-nie-tylko/

poniedziałek, 14 lipca 2008

HP Web Jetadmin

Testuje oprogramowanie do zarządzania, raportowania drukarkami HP.
Oprogramowanie jest bezpłatne i można je pobrac ze strony producenta

http://h20338.www2.hp.com/hpsub/cache/332262-0-0-225-121.html

czwartek, 10 lipca 2008

Problem z WSUS - certyfikat

NALEŻY REINSTALOWAC CERTYFIKAT.
oprogramowanie dostępne tu(rootsupd.exe):
http://download.windowsupdate.com/msdownload/update/v3/static/trustedr/en/rootsupd.exe

System krzyczał :


Event Type: Error
Event Source: Windows Server Update Services
Event Category: Synchronization
Event ID: 364
Date: 2008-07-10
Time: 18:49:11
User: N/A
Computer: INTRANET
Description:
Content file download failed. Reason: File cert verification failure. Source File: /msdownload/update/software/secu/2008/03/windows6.0-kb941693-ia64_c8addd4e89990418b6cda73951001993b1bd888f.cab Destination File: E:\WSUS\WsusContent\8F\C8ADDD4E89990418B6CDA73951001993B1BD888F.cab.

poniedziałek, 7 lipca 2008

Nie można zweryfikować wydawcy/ Czy chcesz uruchomić ten plik?

Opcje Internetowe -> zabezpieczenia > lokalny intranet > witryny >
DODAJEMY TE ADRESY IP I NAZWY NETBIOS SERWEROW NA KTÓRYCH MAMY ZAINSTALOWANE OPROGRAMOWANIE PRZEZ DYSKI SIECIOWE.