Instalace přes Active Directory

Obecná diskuse týkající se systému BOINC

Moderátoři: zdespi, Moderátoři

JardaM
Expert
Expert
Příspěvky: 465
Registrován: stř pro 07, 2005 1:58 pm
Bydliště: Praha

Příspěvek od JardaM »

michalsx píše:Blackhat - děkuji. Je příjemné vidět, že jsou tu i normální lidi :)

LiborA - jak jsem již napsal, myslel jsem, že z povahy AD je jasné, kam chci BOINC instalovat. POUZE na PC, které mám já pod palcem. Fakt nemám potřebu zvyšovat si svoje EGO tím, že budu někomu krást body nebo rozesír.. počítač.
Ty jsi taky chytlavej jak PePo.
Normálních lidí tu najdeš dost. Jen si uvědom, že když máš PC pod palcem, pořád ještě není tvůj. Jde o to, aby uživatel byl aspoň rámcově informován, že ty A TAKY ON děláte něco pro dobrou věc. Honza tu psal o 27000 peckách. Už vidím, jak se někdo cítí na systémového šamana a považuje je za svoje. To není nic proti nikomu, jen upozorňuji, že skromnost je uznávaná vlastnost.
Honza
 
Příspěvky: 4322
Registrován: úte lis 30, 2004 10:50 am

Příspěvek od Honza »

@ JardaM. Sorry, nemuzu souhlasit. Opet hodnotis nekoho, koho vubec neznas, necetl jsi asi ani jeho prispevky a o situaci vis nejspis jen tolik, kolik jsem (a treba ne uplne verne nebo dostatecne obsirne) napsal.
Ten clovek nebude na tech 27k masin nic instalovat. Proste zkouma moznosti, vyjednava mezi svym zamestnavatelm (firmou) a zkusenejma ze CPDN. Instalovat to pak pripadne bude IT oddeleni. Dost nevim, jak by tenhle saman mohl neco povazovat za sve. Vystupoval velmi skrome - proste si pustil BOINC na svem Macu, pripojil CPDN a zalibilo se mu to (a jeho synovi) a uvedomil si moznosti jak zvysit povedomi lidi o problemech klimatu atp. Zacal si proste neforalne povidat s lidma z firmy o moznosti rozjet u nich BOINC ve velkem. Co vidis, resp. si domyslis, je vec jina. Ani ja ani dany clovek nevi, jak to (ne)dopadne takze tezko delat nejake zavery.
michalsx
Nováček
Příspěvky: 15
Registrován: sob úno 18, 2006 1:57 pm

Řešení

Příspěvek od michalsx »

Zdravím, tak konečně se mi podařilo rozfungovat instalaci přes AD. Pokud to tedy někoho zajímá, tak postup na vytvoření MSI instačního balíčku je následující:

- sehnat si FREEWARE WinINSTALL LE 2003
- nainstalovat WinINSTALL LE 2003 někde např. na server X
- vzít čistě nainstalovaný počítač - udělat SNAPSHOT (disco32.exe) - naleznete ho na sdílené jednotce serveru X
- nainstalovat BOINC (tak, jak ho chcete mít, já použil instalaci jako službu, pak jsem modifikoval práva tak, aby BOINC běžel jako LOCAL SYSTEM ACCOUNT), nastavit účet ...
- znovu spustit disco32.exe a nechat vytvořit MSI package

Dnes jsem vyzkoušel instalaci takto vytvořeným balíčkem a funguje to bez problémů.

Postup na rychlou instalaci jsem také zkoušel, není to vůbec špatný, ale přes AD je to mnohem pohodlnější.
JardaM
Expert
Expert
Příspěvky: 465
Registrován: stř pro 07, 2005 1:58 pm
Bydliště: Praha

Příspěvek od JardaM »

Honza píše:@ JardaM. Sorry, nemuzu souhlasit.
Pletem dvě věci dohromady. Má reakce byla na michalsx. Těch 27000 PC se tam připletlo náhodou. Jemu jsem psal, že je chytlavej jak PePo. Ty jsi tady mnohem zkušenější.....tak bys nemusel být.
Uživatelský avatar
azor666
Moderátor II
Moderátor II
Příspěvky: 985
Registrován: stř led 18, 2006 9:40 pm
Bydliště: Praha 20 let
Kontaktovat uživatele:

Příspěvek od azor666 »

@JardaM musíš to ale brát v souvislostech. Mně (tobě) kdyby někdo na uvítaní napsal cituji doslova: [zmoderovano] :wink:, aniž bych měl nejmenší tušení za co, tak bych byl asi vznětlivej daleko víc. :lol: :lol:
Tedy s tím kam se ta debata dostala bych viděl spíš chybu na naší straně. Konkrétně...
Navíc velmi podobná debata už byla v threadu BOINC - Etický kodex kde se takovéhle věci mohli elegantně a bez emocí vysvětlit. :idea:
JardaM
Expert
Expert
Příspěvky: 465
Registrován: stř pro 07, 2005 1:58 pm
Bydliště: Praha

Příspěvek od JardaM »

azor666 píše:@JardaM musíš to ale brát v souvislostech. Mně (tobě) kdyby někdo na uvítaní napsal cituji doslova: [zmoderovano] :wink:,
Nech bejt, my jsme se taky cvakli. No a vo co de...
michalsx
Nováček
Příspěvky: 15
Registrován: sob úno 18, 2006 1:57 pm

Příspěvek od michalsx »

Paráda, tak to začli řešit i kolegové na https://secure.worldcommunitygrid.org/f ... stpage=yes

Pro ty, co by měli problém se tam dostat, tak tady je kopie:
Whether you have a large or small network, installing the WCG UD agent on multiple machines has always been difficult, as each PC has had to be manually registered with the WCG servers.

Now that you can crunch WCG work units using the BOINC agent, the problem can be overcome.

These instructions will allow you to deploy the BOINC client across your network AND enable each PC to automatically register itself with the WCG servers.

What you will need:
1. The latest BOINC client, available here
2. A PC that is already running the BOINC agent and has been joined to WCG. If you have not done this yet, login to your WCG account and follow the instructions here.
3. Microsoft's Orca msi editing tool, currently available here. (The location does change from time to time.)
Download PSDK-x86.exe

Run the installation package

Click your way through the wizard, ensuring that the 'custom' installation option is selected

To minimise the amount of data that has to be downloaded, click every item and select the option 'will not be available' for everything except for 'Windows Installer SDK > Tools' where you should click and select 'will be installed on the local hard drive'

Continue clicking through the wizard and let the installation complete.

You will find the installation file 'orca.msi' in the directory 'C:\Program Files\Microsoft Platform SDK\Bin\'

Install orca.msi (just accept the defaults.)

Keep a copy of 'orca.msi' so you don't have to go through this again!


Extracting the BOINC Package
1. Click 'Start' and select 'Run'
2. Enter that path and file name of the downloaded BOINC package and add the /a switch to the end. eg:
"C:\Documents and Settings\Me\Desktop\boinc_5.2.13_windows_intelx86.exe" /a
3. Click Next and then enter a directory where you want to store your package. eg:
C:\BONIC Package
4. Click 'Install'
5. When the package has installed, untick the 'Launch BOINC' checkbox and click 'Finish'.

Modifying the BOINC Package
1. From your PC that has already run the BOINC agent and joined WCG, copy the file 'C:\Program Files\BOINC\account_www.worldcommunitygrid.org.xml' to the subdirectory 'program files\BOINC' that will be found in the directory chosen in 3 above. If you open it with notepad, it will look like this
<account> <master_url>http://www.worldcommunitygrid.org/</master_url> <authenticator>******************************</authenticator> <project_name>World Community Grid</project_name> <host_venue>Default</host_venue><project_preferences> <resource_share>100</resource_share> <project_specific> <color_scheme>Tahiti Sunset</color_scheme> </project_specific></project_preferences><gui_urls> <gui_url> <name>Global Statistics</name> <description>Summary statistics for World Community Grid</description> <url>http://www.worldcommunitygrid.org/stat/ ... al.do</url> </gui_url> <gui_url> <name>My Grid</name> <description>Your statistics and settings</description> <url>http://www.worldcommunitygrid.org/ms/vi ... ge.do</url> </gui_url> <gui_url> <name>Device Profiles</name> <description>Update your device settings</description> <url>http://www.worldcommunitygrid.org/ms/de ... es.do</url> </gui_url> <gui_url> <name>Research</name> <description>Learn about the projects hosted at World Community Grid</description> <url>http://www.worldcommunitygrid.org/proje ... ch.do</url> </gui_url> <gui_url> <name>Help</name> <description>Search for help in our help system</description> <url>http://www.worldcommunitygrid.org/help/viewHelp.do</url> </gui_url></gui_urls></account>
The <authenticator> value should be you BOINC Account Key, which you can find here.
The <host_venue> tag contains the device profile that you wish to use. (This line is not necessary.)

2. Right click the file account_www.worldcommunitygrid.org.xml and select 'Properties'
3. Write down the size of the file. (Not the 'Size on disk' value.) You will need this info later.
4. Browse to the package directory and right click 'BOINC.msi'. Providing Orca has been sucessfully installed, select the option 'Edit with Orca'
5. Once Orca has opened the BOINC msi, click the menu item Transform > New Transform. The window title will change to 'BOINC.msi (transformed by Untitled)'
6. In the 'Tables' list in the left panel of Orca, select 'File'. (A list of files will appear in the right panel.)
7. In the right panel, click the heading 'Sequence' to sort the list in numeric order.
8. Scroll down to the bottom of the right panel file list and note what will be the next free number. (At the moment it will be 71.)
9. Right click anywhere in the right panel and select 'Add Row'
10. In the window that pops up, CAREFULLY enter the following.
File: account_www.worldcommunitygrid.org.xmlComponent: _AccountFilesFileName: ACCOUN~1.XML|account_www.worldcommunitygrid.org.xmlFileSize: ENTER THE FILE SIZE VALUE NOTED DOWN EARLIER, WITHOUT ANY COMMAS OR OTHER SEPARATORS.Version:Language:Attributes:Sequence: 71
Click 'OK' when you have finished. (Note: the line you have just added will have a green border around it. This will be displayed around every table entry that you modify as it makes it easier to find what you have changed.)

11. In the 'Tables' list, select 'Media'. (You will see just one entry.)
12. Change the value in the 'LastSequence' column from 70 to 71.
13. In the 'Tables' list, select 'Components'. (There will be about 45 rows here.)
14. Find in the first column, Component called '_AccountFiles' and select it.
15. Remove the value 'ACCOUNTS_LOCATION' in the 'Condition' column.
16. Select 'Transform > Generate Transform...' and pick a file name for your modifications. (eg: BOINC Modifications) Click 'OK' to save your .mst file.

Installing the modified BOINC Package.
1. If the directory where you have created your modified BOINC installation, is not 'shared', you will not be able to access it from another PC. To allow a directory to be shared, follow the instructions below
Right click the directory and click 'Sharing and Security...'

Select the option 'Share this folder'. The folder's name will become the name of the share.

Click 'OK' to finish

2. On the other PC, click 'Start > Run' and enter the following (This example is based on the example folders and file names I have used above and assumes the name of the PC, where the share is located, is 'PC-01')
msiexec /i "\\PC-01\BONIC Package\BOINC.msi" TRANSFORMS="\\PC-01\BONIC Package\BOINC Modifications.mst"

Additional Modifications
There are quite a varity of additional modifications that can be added to your mst file. An up to date list can be found here under the heading 'Customizing the installer'.
All of the parameters are pretty self explanitary and will allow you to create a fully automated installation of the BOINC agent.
To modify any of these parameters, follow these instructions.
1. Open the BONIC.msi with Orca
2. Click 'Transforms > Apply Transform...' and select the mst file you created earlier.
3. In the 'Tables' column, select the 'Property' table.
4. In the right panel, click the 'value' of the property you want to change.
5. If the property you want to change is not there, you can easily create it by right clicking on any of the properties and selecting 'Add Row'
6. If there is a property you want to remove, right click it and select 'Drop Row'
7. When you have finished all of your changes, click 'Transform > Generate Transform' and pick a file name for your updated mst file. (NB. you can not overwrite an existing mst, however, you can rename it after you have exited Orca.)

Tips.
1. DO NOT CHANGE AN MST THAT HAS BEEN INSTALLED ON A PC. The installer will demand the original file when you to repair, modify or remove the BOINC client.
2. Uninstall BOINC on PC if you are giving it away otherwise the new owner will have the problem highlighted above.
3. You do not need to modify the property table, if you don't wish to. Instead you can add the property to the command line. eg:
msiexec /i "\\PC-01\BONIC Package\BOINC.msi" TRANSFORMS="\\PC-01\BONIC Package\BOINC Modifications.mst" ENABLESCREENSAVER=0
This would install BOINC, and disable the screen saver.
4. If you are using some kind of snapshot mechanism to deploy BOINC, you can install the agent without any modifications (Don't launch it at the end of the installation), copy the account_www.worldcommunitygrid.org.xml file to 'C:\Program Files\BOINC\' directory, and then take your snapshot.

If anybody would like any further information, let me know.

The Lazy Slug


Mám pocit, že jsem jedinej, kdo tu píše k tématu :? Tak snad to někdy někomu pomůže. Teď tam kolega (Lazy Slug) vytváří skipt, pomocí kterého si vytvoříte velice jednoduše bez ORCA požadovanou modifikaci (MST soubor) MSI balíčku. Teoreticky by to mělo být do zítra hotové.

Zajímalo by mě, kolik vás tu je, kdo byste tohle využili? Nebo na co to vlastně instalujete? Na Linux? A jak? Přijde mi, že jsem tu jedinej od Woken. :oops:
JardaM
Expert
Expert
Příspěvky: 465
Registrován: stř pro 07, 2005 1:58 pm
Bydliště: Praha

Příspěvek od JardaM »

michalsx píše: Zajímalo by mě, kolik vás tu je, kdo byste tohle využili? Nebo na co to vlastně instalujete? Na Linux? A jak? Přijde mi, že jsem tu jedinej od Woken. :oops:
Neboj, woknařů je tu dost. I AD síť by tu byla, dokonce přes celou východní Evropu. Jen ten etickej problém se nedá vyřešit, jestli si tedy na něj hraješ.
Uživatelský avatar
forest
Příspěvky: 2573
Registrován: pát srp 27, 2004 12:50 pm
Bydliště: Újezd u Brna 31 let
Kontaktovat uživatele:

Příspěvek od forest »

Zapojení CPDN do takovéto hromadné instalace může znamenat dost podstatný problém z dlouhodobého hlediska. Po zpracování pár WU se totiž mohou PC dostat do situace že zpracované WU zaberou na HDD tolik místa že se BOINC sám zastaví jelikož překročí limit o minimálním prostoru na HDD. CPDN je totiž jediným projektem, který si po sobě neuklízí již zpracovaná data a jedna WU klasického modelu zanechá na HDD 350MB.

Pokud by se udělala nějaká utilitka aby projekt po sobě mazal zpracované WU, tak by ale i požití CPDN bylo bezproblémové.

Každopádně michalsx, držím palce aby se to povedlo.
Toto je původní fórum Czech National Teamu, které se v listopadu 2006 přesunulo na tuto novou adresu.
michalsx
Nováček
Příspěvky: 15
Registrován: sob úno 18, 2006 1:57 pm

Příspěvek od michalsx »

Zdravím.

Jen chci upozornit ty, kteří bych chtěli upravit MSI balíček pro instalaci přes AD, tak jeden uživatel udělal WEB v AJ, kde popisuje, co vše je potřeba udělat. Vytvořil i skripty, které za vás udělají to nejpracnější. Vytvoření a použití balíčku, pokud víte jak a použijete skript, trvá cca. 5-10 minut.

Díky této technologii není problém jak měnit projekty, tak instalovat nebo odinstalovat BOINC dle potreby.

Pozn.: Zatim jsem se nesetkal s zadnym problemem, ktery by mi tento zpusob instalace prinesl. Naopak. Nastaveni aktualizace na novou verzi BOINCu byla otazkou 5 minut, vse ostatni za me provedl system.

Doufam, ze se mi podari dat sem odkaz, ktery mi funguje na WCG.

Obrázek
michalsx
Nováček
Příspěvky: 15
Registrován: sob úno 18, 2006 1:57 pm

Příspěvek od michalsx »

Jenom jsem se chtěl pochlubit, jak to chroupe:

http://www.boincsynergy.com/stats/boinc ... e3cd883960
Honza
 
Příspěvky: 4322
Registrován: úte lis 30, 2004 10:50 am

Příspěvek od Honza »

Pekne.
Jsem rad, ze se to povedlo. Sice tady asi neni moc poctaru, kteri by to vyuzili, ale vedet kde to najit se hodi.

Diky.
Odpovědět