Question on CAPolicy.inf file and post-installation script

I'm preparing a small PKI implementation with a single Enterprise Root CA on Windows 2008 R2 Enterprise.
The primary role of this CA is to provide certificates for about 20 laptops that will use the certificates for authentication to a wireless network.
I have prepared a CAPolicy.inf file and a post installation script (below).
Renewal period for the root cert should be 10 years, CRL publication every 2 days with Delta publication every 12 hours (details in scripts below).
I want to make sure the AIA and CRL url commands are correct.
Does this look correct?
AIA
1:%WINDIR%\System32\CertSrv\CertEnroll\%%1_%%3%%4.crt
This should publish the CA certificate to the local file system "certenroll".
2:ldap:///CN=%%7,CN=AIA,CN=Public Key Services,CN=Services,%%6%%11
This places the LDAP url in the AIA extension of issued certs.
I am not planning to use HTTP, hence its absence.
CRL
1:%WINDIR%\System32\CertSrv\CertEnroll\%%3%%8%%9.crl
This publishes the CRL to the local file system ("certenroll" subfolder).
10:ldap:///CN=%%7%%8,CN=%%2,CN=CDP,CN=Public Key Services,CN=Services,%%6%%10
Indicates CDP in AD DS and includes CDP url in issued certificates.
Complete scripts
1. CAPolicy.inf - %windir%
[Version]
Signature= "$Windows NT$"
[certsrv_server]
renewalkeylength=2048
RenewalValidityPeriodUnits=10
RenewalValidityPeriod=years
CRLPeriod = days
CRLPeriodUnits = 2
CRLDeltaPeriod = hours
CRLDeltaPeriodUnits = 12
LoadDefaultTemplates=0
2. Install Role
Follow steps in GUI here
3. Run post-install script
certutil -setreg CA\DSConfigDN CN=Configuration,DC=mydomain,DC=local
certutil -setreg CA\CRLPeriodUnits 2
certutil -setreg CA\CRLPeriod "days"
certutil -setreg CA\CRLDeltaPeriodUnits 12
certutil -setreg CA\CRLDeltaPeriod "hours"
certutil -setreg CA\ValidityPeriodUnits 10
certutil -setreg CA\ValidityPeriod "Years"
certutil –setreg CA\CACertPublicationURLs "1:%WINDIR%\System32\CertSrv\CertEnroll\%%1_%%3%%4.crt\n2:ldap:///CN=%%7,CN=AIA,CN=Public Key Services,CN=Services,%%6%%11"
certutil –setreg CA\CRLPublicationURLs "1:%WINDIR%\System32\CertSrv\CertEnroll\%%3%%8%%9.crl\n10:ldap:///CN=%%7%%8,CN=%%2,CN=CDP,CN=Public Key Services,CN=Services,%%6%%10"
certutil -setreg CA\csp\DiscreteSignatureAlgorithm 1
certutil -setreg CA\AuditFilter 127
net stop certsvc & net start certsvc
certutil -crl
Please mark as helpful if you find my contribution useful or as an answer if it does answer your question. That will encourage me - and others - to take time out to help you.

A couple of things (just a quick glance)
1) CAPolicy.inf
Everything looks fine in this file. You will have a 2 day base crl and 12 hour delta CRLs. No default templates are loaded, so you must manually designate all published certificates
2) Post install Script
a. Best practices are to use HTTP only, not to use LDAP, so your whole design does not follow best practices. Furthermore, if you issue a certificate to a single, non-domain joined machine, they will be unable to evaluate your certificates. If you decide
to do VPN (or use an internal SSL cert on an externally accessible Web server), revocation checking will fail because you do not publish AD to the external world
b. Will you be issuing 10 year certificates from the CA. These lines:
certutil -setreg CA\ValidityPeriodUnits 10
certutil -setreg CA\ValidityPeriod "Years"
define the maximum validity period of certs issued *by* the CA. For example, if a certificate template states 4 years, then a four year will be issued (less than 10 years). If a template state 12 years, then the max age will be 10 years. Think of it as a
governor.
c.CACertPublicationURLs . This should include an HTTP URL, and if you want to still include LDAP, HTTP should be prior to the LDAP URL.
d. CRLPublicationURLs. This should include an HTTP URL. If you want to still include LDAP, HTTP should be prior to the LDAP URL. Your checkbox value for the LDAP URL is incorrect as well. For a CA that issues both base and delta CRLs, you must have a value
of 79 (all check boxes enabled). Your current configuration would fail for revocation checking because you do not publish the base or delta CRL to AD. There is another check box missing (I believe the one to include the URL in the base CRL's freshest CRL extension
(how to find the delta CRL).
e. Do not include the DiscreteSignatureAlgorithm line in the script. If you have any Windows XP clients, they will not be able to use the certs (BTW, this should have been AlternateSignatureAlgorithm in my book - where you sourced your scripts). This would
only be used on a CA where you used something like Elliptical Curve as the assymetric algorithm and SHA384 as the signature algorithm).
f. The restart line should be net stop certsvc && net start certsvc. The double && ensures that the service comes to a complete stop before the start command is executed.
HTH,
Brian

Similar Messages

  • A question about CPS (CPS processing) and CAPolicy.inf file.

    Hello All
    Can someone please help me with the following question.
    Background, I am building a 3-tier PKI infrastructure. offline Root, offline Policy (intermediate), online issuing.
    Now my first question is about CPS (certificate practice statement) for this example lets just call this the InternalIssuancePolicy as below.
    Basically I was thinking it is best not to set a given certificate (aka issuance) policy at the Root, the reason being I may wish to have different issuance policies at a latter date.
    For example right now I just want an issuance policy (CPS) for internal certificates only, therefore I am thinking set this at the Policy CA level, as below [InternalIssuancePolicy] (example OID) and then issuing CA certs from this Policy CA to the
    internal issuing CAs. If at a latter date I want a different policy (CPS) for issuance of external certificates I can build a new Policy CA under the existing Root with a different policy extension.
    Is the above logic sound?
    Questions:
    I am assuming from recent study that the CA cert issued to the Issuing CA will contain a single issuance policy "only" i.e. the one that was specified in the Policy CA 1.3.6.1.4.11111111.1.1.1.  If so I believe you cannot build a new
    issuing CA and submit the CSR to the Policy CA asking for a CA cert with any other certificate policy extension other than 1.3.6.1.4.11111111.1.1.1
    Is that correct?
    Also
    I saw a blog post which stated if are going to use certificate/issuance policies (other than all issuance policies) you should mark the extension as critical=true otherwise the policy just becomes glorified comment. I take the point but that leads me to
    two more questions
    1: How does the certificate changing engine or CryptoAPI enforce a certificate policy (as it is just a policy, e.g. written procedure). I am assuming all this means is it forces the client to process the extension and therefore check the certificate
    policy extension in the certificate does not violate the certificate chain but that is all it can do?
    2: If the certificate policy extension is set to critical and the URL referenced in the extension is not available (e.g. on a WEB Server and the client is working offline, but has a cached CRL), does setting the extension to critical also force the
    client to try and access the URL listed, or not (I am assuming not as you could just have a text block rather than URL).
    Any comments suggestions on my proposed three CAPolicy.inf files below for the 3-tier PKI (again offline Root and Policy)
    ** Root **
    [Version]
    Signature= "$Windows NT$"
    [Certsrv_Server]
    RenewalKeyLength=4096
    RenewalValidityPeriodUnits=Years
    RenewalValidityPeriod=20
    CRLPeriod=Years
    CRLPeriodUnits=1
    LoadDefaultTemplates=False
    AlternateSignatureAlgorithm=0
    [CRLDistributionPoint]
    [AuthorityInformationAccess]
    basicconstraintsextension]
    pathlength = 2
    critical=true
    PolicyStatementExtension]
    Policies = AllIssuancePolicy
    Critical = FALSE
    [AllIssuancePolicy]
    OID = 2.5.29.32.0
    ** Policy CA **
    [Version]
    Signature= "$Windows NT$"
    [Certsrv_Server]
    RenewalKeyLength=2048
    RenewalValidityPeriodUnits=Years
    RenewalValidityPeriod=10
    CRLPeriod=Years
    CRLPeriodUnits=1
    [PolicyStatementExtension]
    Policies = InternalIssuancePolicy
    Critical = False
    [InternalIssuancePolicy]
    OID = 1.3.6.1.4.11111111.1.1.1
    Notice = "Internal Certificate Policy"
    URL="http://pki.lab.local/Certenroll/CPS.txt"
    [AuthorityInformationAccess]
    URL=http://pki.lab.local/Certenroll/PolicyCA01.crt
    [CRLDistributionPoint]
    URL=http://pki.lab.local/Certenroll/PolicyCA01.crl
    [basicconstraintsextension]
    pathlength = 1
    critical=true
    ** Issuing CA **
    [Version]
    Signature= "$Windows NT$"
    [Certsrv_Server]
    RenewalKeyLength=2048
    RenewalValidityPeriodUnits=Years
    RenewalValidityPeriod=5
    CRLPeriod=Weeks
    CRLPeriodUnits=1
    CRLDeltaPeriod=Days
    CRLDeltaPeriodUnits=1
    LoadDefaultTemplates=False
    AlternateSignatureAlgorithm=0
    [AuthorityInformationAccess]
    URL=http://pki.lab.local/Certenroll/IssuingCA01.crt
    [CRLDistributionPoint]
    URL=http://pki.lab.local/Certenroll/IssuingCA01.crl
    [basicconstraintsextension]
    pathlength = 0
    critical=true
    Thanks All
    AAnotherUser__

    > Is the above logic sound?
    not that much. In this case 3-tier PKI could be reduced to 2-tier. Make default Offline Root CA and below it issuing CAs with desired policy OIDs. You will combine issuing CA with policy CA functionality. Additional tier will cost you a license, administration
    overhead and increased certificate chain processing delays. There is nothing wrong if you combine policy CAs with issuing.
    > I saw a blog post which stated if are going to use certificate/issuance policies (other than all issuance policies) you should mark the extension as critical=true
    where did you get this? Certificate policies should not be marked critical. Certificate chaining engine will take care of it, when application reqests CCE to validate desired policy.
    > does setting the extension to critical also force the client to try and access the URL listed
    no. Certificate chaining engine do not inspect policy qualifier URLs.
    > Any comments suggestions on my proposed three CAPolicy.inf files below for the 3-tier PKI (again offline Root and Policy)
    [CRLDistributionPoint]
    [AuthorityInformationAccess]
    [PolicyStatementExtension]
    Policies = AllIssuancePolicy
    Critical = FALSE
    [AllIssuancePolicy]
    OID = 2.5.29.32.0
    these sections are not required in root CA.
    [AuthorityInformationAccess]
    URL=http://pki.lab.local/Certenroll/PolicyCA01.crt
    [CRLDistributionPoint]
    URL=http://pki.lab.local/Certenroll/PolicyCA01.crl
    [basicconstraintsextension]
    pathlength = 1
    critical=true
    These sections are not required at policy CA. Afaik, CDP and AIA extensions are not supported in non-root CA configuration files. The same is with issuing CA. And your issuing CA is missing PolicyStatementExtension section.
    Vadims Podāns, aka PowerShell CryptoGuy
    My weblog: en-us.sysadmins.lv
    PowerShell PKI Module: pspki.codeplex.com
    PowerShell Cmdlet Help Editor pscmdlethelpeditor.codeplex.com
    Check out new: SSL Certificate Verifier
    Check out new:
    PowerShell File Checksum Integrity Verifier tool.

  • My complaints and Questions MP4 M4V video files and other complaints

    My complaints and Questions MP4 M4V video files and other complaints
    I have been scratching my head as to how to fix my problem and I found some answers and some questions along the way. First of all, I have a video that should be correctly formatted for my iPod. Its specs are:
    Kind: MPEG-4 video file
    Size: 19.4 MB
    Bit Rate: 125 kbps
    Date Modified: 8/18/2009 2:15 PM
    Play Count: 1
    Last played: 8/21/2009 12:25 PM
    Profile: Low Complexity
    Channels: Stereo
    Total Bit Rate: 360 kbps
    Video Dimensions: 352x264
    Video Codec: H.264
    F:\File\AnotherFile\A3rdFile\TheMovieFileInQuestion.mp4
    Wow that was a chore. Apple! Let us drag copy and paste our info tabs information so we don’t have to type all this stuff when we are having trouble. **another problem and suggestion** right there.
    Ok, back to the problem of the forum.
    From what I can see from http://www.apple.com/ipodclassic/specs.html this file falls in line of everything required in order to be able to play on my iPod. It plays in iTunes fine but will NOT sync with my iPod. I get an annoying message that states, “Some of the Songs and videos in your iTunes library, including “BlaBlaBlaiPondFixYourJunkBlaBlaBla”, were not copied to the iPod “My iPod” because they cannot be played on this iPod.” Why oh why can iTunes play this video file but my iPod cant. Especially when the specs on Apple’s website say it can.
    So that was bugging me for a LONG time until I found my “Create iPod or iPhone version” option in the “Advanced” heading. Thank goodness this made my files playable on my iPod. Extremely LONG wait though. I know that other programs convert it in ½ the time. But times not to important as long as it gets done, (would be very convenient if it was faster though **Problem and suggestion**)
    Ok, now that I have used the “Create iPod or iPhone version” option it has slowly but surly converted my video. Ok, here is my main problem, the new file which is the result of the conversions information is as follows:
    Kind: MPEG-4 video file
    Size: 35.4 MB
    Bit Rate: 125 kbps
    Date Modified: 8/18/2009 2:15 PM
    Play Count: 1
    Last played: 8/21/2009 1:28 PM
    Profile: Low Complexity
    Channels: Stereo
    Total Bit Rate: 658 kbps
    Video Dimensions: 352x264
    Video Codec: H.264
    C:\File\WhyIsThisNewFileInMyMusicFolder\TheMovieFileInQuestion.m4v
    So basically it has made my file bigger *not a bonus in my book* greatly increased my Bit Rate *another interesting feature*, and I think the biggest change it has changed it from an .mp4 to an m4v.
    Why does it need to be an .m4v I could have sworn some of my videos were or are in mp4 which shouldn’t matter anyway because I was under the impression that iPods could play mp4 files. So that’s my biggest complaint and question. Why can my 80GB classic iPod not play my MP4 files and why am I forced to convert them??
    This conversion also creates 2 files in iTunes when I am done which is annoying because I have to go into my files info and look to see what file is the mp3 in order to remove it. Very annoying I can open my iPod options and see the files and some are faded (the ones it can not play) why can’t I remove them from that area.Suggestion Apple please make files that cannot be played on my iPod stand out some how for easier cleaning Suggestion. Thank you.
    Speaking of cleaning iPods, when I moved my entire library to an external drive I was faced with a terrible problem. “This file could not be found, would you like to locate file”, I was faced with this annoying message at least 600 times. Now I am glad that iTunes has a little “!” mark to show dead links so that you do some minor cleaning, Good Job iTunes No compliant there. However iTunes has no way of selecting all the broken files for major cleaning (like in my case). Going through and deleting over 600 files 1 by 1 is extremely time consuming and annoying. **Suggestion Apple please add more cleaning features for organizing iTunes**.
    Ok, speaking of organization now, another problem that appeared when converting my video files was that it put my new videos into the location where I have all my songs (my external hard drive) why can’t it put the new files in the locations of the original file? I have my computer highly organized and my original files were in that drive in that folder for a reason. If I could open my original file and skip the conversion, my iTunes would go to that specific folder to access the file which is fine. But now these new conversion files are elsewhere taking up space and disorganizing my computer. True I can go into the new location and move the files to where I want them (original location) but I don’t think I should have to hunt them down, copy, move, delete ect etc for all these files over and over. Very annoying, time consuming and should be unnecessary. **Suggestion Make file creation and location more customizable, and user friendly, your customers will love you for it**.
    Well since I have gotten into Apples iTunes and iPod problems that I have had to face I might as well bring up one or two more problems and suggestions. About a month after purchasing my iPod a sibling bought one as well. His however is way more convenient then mine. I suppose he has a 5th gen. so here is my question: why does he have a search option and I don’t!!!! Why does he get more features every so often and I don’t?! Why can’t Apple write some software for us classic guys which got the iPods going! It’s very annoying when I have to spend more time looking for the song then I spend actually listening to it, when he can pull his up in like 3-6 seconds? I highly doubt the hardware between our iPods is that dissimilar and even if they are why cant software be written for us. **Suggestion treat all your customers good not just the newer ones, and make some more features for the classics like me and my iPod.” We will be grateful for it I promise.
    Ok, I am almost done. Let me just recap my questions, I know my post is kind of lengthy.
    #1. Why can’t my iPod play MP3 video files? And why do I have to convert to almost all the same settings except changing it from an mp4 to an m4v. according to Apples own site I should be able to play .m4v .mp4 and .mov files!! Note: remember iTunes plays them fine but my iPod will not.
    #2. Would be much more convenient to be able to copy the information from the windows in iTunes so that problems and trouble shooting would be much easier. A little check on off options in iTunes advanced settings would be terrific.
    #3. Why is the conversion so slow? Please speed it, you have the power. Convenience is the thing that sells products.
    #4. Files that cannot be played on the current iPod need to be easier recognized for simpler cleaning.
    #5. Also make an easier way to select all dead link files for faster cleaning, deleting, etc. This one is important.
    #6. Make a user friendly way to change where my files are going to end up once I convert them for iPod more options and better customizable settings are need.
    #7. One of the most important is ADD A SEARCH OPTION. I and we classics will LOVE Apple for it.
    For you readers, I apologize for the long post, and any grammatical errors you might find throughout it. These are problems that I have faced with these programs and hardware and I wanted to make sure they got acknowledged and hopefully addressed. Any information about why I cannot play MP4 Video files on my iPod would be the best. If anything in my post gets answered that’s the one I want most. Will save me a lot of hassle.
    Thank you all and I look forward to your suggestions and comments. All are welcome and appreciated.
    Sincerely,
    Bond, James

    Was playing with iTunes and thought of another suggestion! Let us play files in iTunes from an iPod! A friend or sibling should be able to plug his iPod into my computer open iTunes and play any of the files there. Many times I have wanted to show a movie clip or video to a friend, and I have the dock so I can do it on my T.V. but play it on their computer in their iTunes forget it. That would be a very nice feature as well so we can watch our movies at maximum size or listen to music on a better sound system, just another suggestion that would be nice. Thanks

  • Read file and post to MQ

    Hi,
    I have a senario:
    * Read text file from a directory.
    * Post the content to MQ.
    I dont have any schema for the content of the txt file.
    So I used the opaque type in my FileAdapter while reading the text file and posted the data to MQ by using the MQAdapter.
    But since content is opaque, data in the MQ is not understandable.
    So I want to understand , how I can send the text data to MQ so that it can be understood.

    Hi All,
    I found the solution for the error which I was mentioning.
    I had to import below classes to make it work.
    <bpelx:exec import="java.util.*"/>
    <bpelx:exec import="java.lang.*"/>
    <bpelx:exec import="java.math.*"/>
    <bpelx:exec import="java.io.*"/>
    <bpelx:exec import="oracle.soa.common.util.Base64Decoder"/>
    After importing it my compilation problem is solved.
    Now I have new problem :)
    I have written below code in Java Embedding for the purpose of decoding
    try
    String messagePayload =(String)getVariableData("inputMessage");
    // decode the message
    byte[] decodedBytes = Base64Decoder.decode(messagePayload.getBytes());
    String decoded = new String(decodedBytes);
    setVariableData("tempBase64EncodedData",decoded);
    catch(Exception e)
    addAuditTrailEntry(e.toString());
    But after this if, I am trying to copy message from "tempBase64EncodedData" to any other variable, it is coming as Empty.
    So, my question is
    * Am I doing correct thing to assign the decoded message into variable called "tempBase64EncodedData" ?
    or
    * Decoding iteslef is having some issues ?

  • PI (XI 7.0) Installation and Post Installation Guides

    We have installed XI 3.0 with previous clients, and we are trying to install XI 7.0 (PI) for a client on Windows 2003 SQL server. We looked for installation documents in the service.sap.com, but we were confused about which documents to follow.
    Has anyone installed PI (XI 7.0) from scratch? If yes, could you provide us documents regarding installation and post installation steps. What are the differences in installing XI 3.0 and PI?
    You help is greatly appreciated.
    Cheers,
    Karma

    Hey Karma,
    You dont need any guide for PI post installation.
    There is a facility in NW 2004s for completing post installation, they provide with templates. you just have to execute the templates and your PI post config is done.
    first execute
    NWD
    and then
    PI templates
    After this import the BASIS components into design environment.
    Regards
    Ramesh P

  • SAP PI7.0 installation and post installation procidure needed

    Hi,
             I am installing the SAP PI7.0 my O/S is IBM AIX 6.0 and 570 H/W.
             Can any one give me the Installation and post installation procedure?

    you can find
    www.service.sap.com/instguides

  • Read of XML file and post to IDOC

    Hi
    I'm working on a <b>WAS620</b> and need to read an XML file from a customer, extract the fields needed and post these via IDOC ORDERS01. My problem is HOW to read the XML file? Can anyone give me the steps involved/links to examples etc - I have not processed XML files via ABAP before.
    The file is posted to a shared folder and the ABAP I am about to develop will pick up this file.
    The file is <b>NOT</b> in IDOC/XML format but the customers own format
    Hope someone can help me asap.
    Thanks all in advance
    /Bo

    Hi,
    I would like to extend this question for <b>WAS620</b> and <b>reading</b> a <b>proprietary customer specific XML</b> file/data that is <b>send via HTTP to SAP WAS</b>.
    <b>Q1</b>: What is the best way to read this HTTP sent XML data (as it is, without transformations) into ABAP?
    <b>Q2</b>: What is the appropriate handler to use in the ICF object?
    Thanks all in advance

  • (newbie) Question about replacing .class files and web.xml file

    I'm new to servlets and I have two quick questions...
    Do I absolutely need a web.xml file to define all my servlets, or can I simply place .class files into the WEB-INF directory and expect them to run?
    If my application server (for example Tomcat) is running and I replace a servlet .class file, do I need to restart the server for the new .class file to take effect?
    ...or are both of these questions specific to the application server I'm using?

    Hi,
    From an article I read:
    With Tomcat 3.x, by default servlet container was set up to allow invoking a servet through a common mapping under the /servlet/ directory.
    A servlet could be accessed by simply using an url like this one:
    http://[domain]:[port]/[context]/servlet/[servlet full qualified name].
    The mapping was set inside the web application descriptor (web.xml), located under $TOMCAT_HOME/conf.
    With Tomcat 4.x the Jakarta developers have decided to stop allowing this by default. The <servlet-mapping> tag that sets this mapping up, has been commented inside the default web application descriptor (web.xml), located under $CATALINA_HOME/conf:
    <!-- The mapping for the invoker servlet -->
    <!--
    <servlet-mapping>
    <servlet-name>invoker</servlet-name>
    <url-pattern>/servlet/*</url-pattern>
    </servlet-mapping>
    -->
    A developer can simply map all the servlet inside the web application descriptor of its own web application (that is highly suggested), or simply uncomment that mapping (that is highly discouraged).
    It is important to notice that the /servlet/ isn't part of Servlet 2.3 specifications so there are no guarantee that the container will support that. So, if the developer decides to uncomment that mapping, the application will loose portabiliy.
    And declangallagher, I will use caution in future :-)

  • Use SkyDrive to upload collected files and post screen shot/picture. (Updated: 1/16/2012)

    To help community members troubleshoot issues efficiently, sometimes we need to collect related files (such as Event logs, Network traces, Setup
    log files, Screenshots, etc.) to perform a specific analysis. 
    We can simply use SkyDrive, which is a free storage on Windows Live, it’s easy to store and share your files and photos with almost anyone. To make the
    steps clear, I would like to share the detailed steps for:
    1. How to use  SkyDrive to upload collected files?
    2. How to post screenshots or other pictures in forum threads?
    1.  
    How to use
    SkyDrive to upload collected files? 
    1)   
    Open the
     SkyDrive site.
    2)   
    In the
    Sign In page, if you own a Windows Live ID, please type your Windows Live ID and Password to sign in; Otherwise, you may click Sign Up to register a new one. See the following screen shot.
    3)   
    After signing in Windows Live, click Create folder.
    4)     Name
    the folder and edit permissions to share with relevant person.
    Important Note: You
    can share the folder with Everyone if there is no private/sensitive information (such as the screen shot of a prompt error message). To so so, simply select the "Everyone (Public)" option in the "Share with" box. Please refer to the following screen shot:
    However, for private information that you do NOT want to be accessed by everyone, it is recommended to share with specified individuals. To do so, you can expand the "Share with" box, choose the "Select people..." option, and then type their
    Live IDs in the Individual box. Please refer to the screen shot below:
    5)   
    Drag the previously collected files directly to the Skydrive folder. For example:
    6)   
    Click Upload.
    7)   
    Click on the uploaded files and tell us the URL.
    2.  
    How to post screenshots or other pictures in forum threads?
    (This section updated on 1/16/2012 to reflect changes in Skydrive. Thanks to
    Jeeped on the Microsoft Answers forums)
    1)   Please
    use the above method to upload the picture files in advance. Then, in your Skydrive space, Right Click the picture and select
    View Original. Press Ctrl + A, or Right Click and select Copy, to select it.
    2)   
    Press Ctrl + C to copy this picture. 
    3)   
    Navigate to your post textbox, and press Ctrl + V, or Right Click and select Paste, to paste the picture there.
    Then, the picture will be successfully inserted in that thread.

    I cant even open windows now!!!! it crashes mecilessly here is a copy of the only dump file i have. i retreved it from second life and cant copy it onto the clip board.
    Problem signature:  Problem Event Name:BlueScreen  OS Version:6.1.7600.2.0.0.768.3  Locale ID:1033
    Additional information about the problem:  BCCode:124  BCP1:0000000000000000  BCP2:FFFFFA80050BE8F8  BCP3:0000000000000000  BCP4:0000000000000000  OS Version:6_1_7600  Service Pack:0_0  Product:768_1
    Files that help describe the problem:  C:\Windows\Minidump\073011-29484-01.dmp  C:\Users\madamediva\AppData\Local\Temp\WER-72805-0.sysdata.xml
    Read our privacy statement online:  http://go.microsoft.com/fwlink/?linkid=104288&clcid=0x0409
    If the online privacy statement is not available, please read our privacy statement offline:  C:\Windows\system32\en-US\erofflps.txt
    dump_pciidex.sysdump_pciidex.sys+216e730fffff880`01464000fffff8b0`014700000x000000300000c0000x4a5bc1137/13/2009 7:19:47 PMntoskrnl.exentoskrnl.exe+782e2fffff800`02a03000fffff800`02fe00000x005dd0000x4a5bc6007/13/2009 7:40:48 PMMicrosoft® Windows® Operating
    SystemNT Kernel & System6.1.7600.16385 (win7_rtm.090713-1255)Microsoft CorporationC:\Windows\system32\ntoskrnl.exeACPI.sysfffff880`00f46000fffff880`00f9d0000x000570000x4a5bc1067/13/2009 7:19:34 PMamdxata.sysfffff880`00c6c000fffff880`00c770000x0000b0000x4a12f2eb5/19/2009
    1:56:59 PMatapi.sysfffff880`00e59000fffff880`00e620000x000090000x4a5bc1137/13/2009 7:19:47 PMataport.SYSfffff880`00e62000fffff880`00e8c0000x0002a0000x4a5bc1187/13/2009 7:19:52 PMAtiPcie.sysfffff880`01fe8000fffff880`01ff00000x000080000x4a0054865/5/2009 11:00:22
    AMBATTC.SYSfffff880`00e1e000fffff880`00e2a0000x0000c0000x4a5bc3b57/13/2009 7:31:01 PMCI.dllfffff880`00d1a000fffff880`00dda0000x000c00000x4a5be01d7/13/2009 9:32:13 PMCLASSPNP.SYSfffff880`01800000fffff880`018300000x000300000x4a5bc11e7/13/2009 7:19:58 PMCLFS.SYSfffff880`00cbc000fffff880`00d1a0000x0005e0000x4a5bc11d7/13/2009
    7:19:57 PMcng.sysfffff880`01000000fffff880`010730000x000730000x4a5bc8147/13/2009 7:49:40 PMcompbatt.sysfffff880`00e15000fffff880`00e1e0000x000090000x4a5bc3b67/13/2009 7:31:02 PMcrashdmp.sysfffff880`01ff0000fffff300`01ffe0000xfffffa800000e0000x4a5bcabd7/13/2009
    8:01:01 PMdisk.sysfffff880`01fd2000fffff880`01fe80000x000160000x4a5bc11d7/13/2009 7:19:57 PMdump_dumpfve.sysfffff880`01235000fffff87f`012480000xffffffff000130000x4a5bc18f7/13/2009 7:21:51 PMdump_msahci.sysfffff880`01470000fffff87f`0147b0000xffffffff0000b0000x4a5bcabd7/13/2009
    8:01:01 PMfileinfo.sysfffff880`01145000fffff880`011590000x000140000x4a5bc4817/13/2009 7:34:25 PMfltmgr.sysfffff880`010f9000fffff880`011450000x0004c0000x4a5bc11f7/13/2009 7:19:59 PMFs_Rec.sysfffff880`0122b000fffff880`012350000x0000a0000x4a5bc1117/13/2009 7:19:45
    PMfvevol.sysfffff880`01f98000fffff880`01fd20000x0003a0000x4a5bc1a77/13/2009 7:22:15 PMfwpkclnt.sysfffff880`01400000fffff880`0144a0000x0004a0000x4a5bc1647/13/2009 7:21:08 PMhal.dllfffff800`02fe0000fffff800`030290000x000490000x4a5bdf087/13/2009 9:27:36 PMhwpolicy.sysfffff880`01f8f000fffff880`01f980000x000090000x4a5bc0fa7/13/2009
    7:19:22 PMkdcom.dllfffff800`00bd1000fffff800`00bdb0000x0000a0000x4a5bdfdb7/13/2009 9:31:07 PMkl1.sysfffff880`01830000fffff880`01f8f0000x0075f0000x4c0f985b6/9/2010 9:34:19 AMksecdd.sysfffff880`01200000fffff880`0121a0000x0001a0000x4a5bc1567/13/2009 7:20:54 PMksecpkg.sysfffff880`015d3000fffff880`015fe0000x0002b0000x4a5bc84a7/13/2009
    7:50:34 PMmcupdate.dllfffff880`00c9b000fffff880`00ca80000x0000d0000x4a5bdf657/13/2009 9:29:09 PMmountmgr.sysfffff880`00e3f000fffff880`00e590000x0001a0000x4a5bc11a7/13/2009 7:19:54 PMmsahci.sysfffff880`00ff0000fffff880`00ffb0000x0000b0000x4a5bcabd7/13/2009
    8:01:01 PMmsisadrv.sysfffff880`00fa6000fffff880`00fb00000x0000a0000x4a5bc0fe7/13/2009 7:19:26 PMmsrpc.sysfffff880`01165000fffff880`011c30000x0005e0000x4a5bc17c7/13/2009 7:21:32 PMmup.sysfffff880`01452000fffff880`014640000x000120000x4a5bc2017/13/2009 7:23:45
    PMndis.sysfffff880`01481000fffff880`015730000x000f20000x4a5bc1847/13/2009 7:21:40 PMNETIO.SYSfffff880`01573000fffff880`015d30000x000600000x4bbe946f4/8/2010 10:43:59 PMNtfs.sysfffff880`0124c000fffff880`013ef0000x001a30000x4a5bc14f7/13/2009 7:20:47 PMpartmgr.sysfffff880`00e00000fffff880`00e150000x000150000x4a5bc11e7/13/2009
    7:19:58 PMpci.sysfffff880`00fb0000fffff880`00fe30000x000330000x4a5bc1177/13/2009 7:19:51 PMPCIIDEX.SYSfffff880`00c5c000fffff880`00c6c0000x000100000x4a5bc1147/13/2009 7:19:48 PMpcw.sysfffff880`0121a000fffff880`0122b0000x000110000x4a5bc0ff7/13/2009 7:19:27 PMPSHED.dllfffff880`00ca8000fffff880`00cbc0000x000140000x4a5be0277/13/2009
    9:32:23 PMMicrosoft® Windows® Operating SystemPlatform Specific Hardware Error Driver6.1.7600.16385 (win7_rtm.090713-1255)Microsoft CorporationC:\Windows\system32\PSHED.dllPxHlpa64.sysfffff880`01159000fffff880`01164e000x0000be000x4a4162536/23/2009
    7:16:35 PMrdyboost.sysfffff880`010bf000fffff880`010f90000x0003a0000x4a5bc48a7/13/2009 7:34:34 PMspldr.sysfffff880`0144a000fffff880`014520000x000080000x4a0858bb5/11/2009 12:56:27 PMtcpip.sysfffff880`01602000fffff880`017ff0000x001fd0000x4bbe94e24/8/2010 10:45:54
    PMvdrvroot.sysfffff880`00fe3000fffff880`00ff00000x0000d0000x4a5bcadb7/13/2009 8:01:31 PMvolmgr.sysfffff880`00e2a000fffff880`00e3f0000x000150000x4a5bc11d7/13/2009 7:19:57 PMvolmgrx.sysfffff880`00c00000fffff880`00c5c0000x0005c0000x4a5bc1417/13/2009 7:20:33 PMvolsnap.sysfffff880`01073000fffff880`010bf0000x0004c0000x4a5bc1287/13/2009
    7:20:08 PMWdf01000.sysfffff880`00e93000fffff880`00f370000x000a40000x4a5bc19f7/13/2009 7:22:07 PMWDFLDR.SYSfffff880`00f37000fffff880`00f460000x0000f0000x4a5bc11a7/13/2009 7:19:54 PMWMILIB.SYSfffff880`00f9d000fffff880`00fa60000x000090000x4a5bc1177/13/2009 7:19:51
    PM

  • Best way to stream lots of data to file and post process it

    Hello,
    I am trying to do something that seems like it should be quite simple but am having some difficulty figuring out how to do it.  I am running a test that has over 100 channels of mixed sensor data.  The test will run for several days or longer at a time and I need to log/stream data at about 4Hz while the test is running.  The data I need to log is a mixture of different data types that include a time stamp, several integer values (both 32 and 64 bit), and a lot of floating point values.  I would like to write the data to file in a very compressed format because the test is scheduled to run for over a year (stopping every few days) and the data files can get quite large.  I currently have a solution that simply bundles all the date into a cluster then writes/streams the cluster to a binary file as the test runs.  This approach works fine but involves some post processing to convert the data into a format, typically a text file, that can be worked with in programs like Excel or DIAdem.   After the files are converted into a text file they are, no surprise, a lot larger than (about 3 times) the original binary file size.
    I am considering several options to improve my current process.  The first option is writing the data directly to a tdms file which would allow me to quicly import the data into DIAdem (or Excel with a plugin) for processing/visualization.   The challenge I am having (note, this is my first experience working with tdms files and I have a lot to learn) is that I can not find a simple way to write/stream all the different data types into one tdms file and keep each scan of data (containing different data types) tied to one time stamp.  Each time I write data to file, I would like the write to contain a time stamp in column 1, integer values in columns 2 through 5, and floating point values in the remaining columns (about 90 of them).  Yes, I know there are no columns in binary files but this is how I would like the data to appear when I import it into DIAdem or Excel.  
    The other option I am considering is just writing a custom data plugin for DIAdem that would allow me to import the binary files that I am currently creating directly into DIAdem.  If someone could provide me with some suggestions as to what option would be the best I would appreciate it.  Or, if there is a better option that I have not mentioned feel free to recommend it.  Thanks in advance for your help.

    Hello,
    Here is a simple example, of course here I only create one value per iteration in the while loop for simplicity. You can also set properties of the file which can be useful, and set up different channels.
    Beside, you can use multiple groups to have more flexibility in data storage. You can think of channels like columns, and groups as sheets in Excel, so you see this way your data when you import the tdms file into Excel.
    I hope it helps, of course there are much more advanced features with TDMS files, read the help docs!

  • HT1349 I am unable to download the newest version of iTunes 10.6 as i am missing .msi files and window installer package, can you please remove the old version and reinstall newest version, please?

    missing file to download itunes 10.6 - .msi. file and installation package

    Try to follow this guide to uninstall iTunes and all of its components: http://support.apple.com/kb/HT1925, then reinstall the latest version of iTunes.  You must follow this guide for this to be successful (uninstalling all components in the order specified).  This will not touch your iTunes library or data.

  • My post installation script

    #I hope its the right forum to post that in, if not im very sorry!
    This here is a script i wrote to automate all the stuff i do after installing arch, i have several computers and it has options for a additional one
    Some important points:
    1) this script is very specific, its made for my computer and my needs, this means that its useful right now only to people who know bash
    and will find use in altering it to their own needs, also if someone wants he can make it more general for a wider use
    2) this is one of the first scripts i wrote, it may be that it doesn't implent some of its features in the best way possible
    3) use it at your own risk, if it breaks your system don't blame me please, you should check it before you use it, anyway its meant to be used
    on a FRESH arch install, not on a working system.
    What the correct script actually does:
    The script as stated in the comments does the next things:
    1) First of all it consists of several files, one the "install" file is the actual script, the others are just meant to run the script and split its output to
    show both on the terminal and in a file named: /var/log/MySysInstall.log, here is an example of main.install:
    #!/bin/bash
    ./install Main | tee /var/log/MySysInstall.log
    in the current script Main in the last row can be replaces with Laptop, Game for computer specific arguments or without argumets for a general install
    the two files should be in the same folder, i think it could have been implented with one file but im new to scripting..
    2) The script will ask some general questions to make sure everything is currect, some of the questions and checks in the script are not relevant at all
    to anybody other than myself, they usually make sure that i have a samba shared partition running (it could lose connection on wireless).
    3) Adds the archlinux.fr repo, it will be used for yaourt.
    4) The script installs lots of stuff, at first general stuff used by all computers in my house, then stuff based on the argument given in 1)
    please inspect the packages and change according to your needs
    5) The script nano's to /etc/yaourtrc
    6) Adds users to the system, change to your users.
    7) It creates my /home/samba share dir if its not created (probably irrelevant to you)
    8) Configures sudo in a nasty way that maybe can damage the sudoers file, delete this line if you dodnt know sudo well enough.
    9) Edits samba if needed, this is the first line in the script that relies on additional files i have on my comp or the samba share (main and game are the same
    comp (dual boot of arch32 and 64) and they are the hosts of /home/samba all the other computers will mount it from them, this is why a samba check is not
    present here.).
    10) Adds some commented lines to fstab and nano's it for easier configurations, this is the regular workflow in the script BTW (adding comments to the file
    before editing it)
    11) Helps edit the gpm daemon
    12) Helps to configure alsa
    13) Helps to configure xorg
    14) Does some post install copies of files AND creates a file in my main users home with further instructions, mostly for stuff that needs to be done with xorg runnig
    or stuff i was to lasy to add to the script
    15) chowns and sets my regular permissions for user folders
    16) ends the script
    The script itself, ENJOY:
    #!/bin/bash
    # Copyright 2008 Leon Vayman
    # This program is free software: you can redistribute it and/or modify
    # it under the terms of the GNU General Public License as published by
    # the Free Software Foundation, either version 3 of the License, or
    # any later version.
    # This program is distributed in the hope that it will be useful,
    # but WITHOUT ANY WARRANTY; without even the implied warranty of
    # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    # GNU General Public License for more details.
    # A copy of the GNU General Public License is found in
    # <http://www.gnu.org/licenses/>.
    #Check that the user updated the kernel and restarted before proceeding
    while [ 1 ] ; do
    echo ; clear
    echo -n "Have you already used pacman -Syu and Restarted? (y/n) "
    read Keypress
    case "$Keypress" in
    [Yy])
    break
    [Nn])
    echo "Then do it now.."
    exit
    esac
    done
    #Check if samba is accesible and warn the user if its not (offering to quit)
    if [ ! -e /home/samba/Config/ ] ; then
    while [ 1 ] ; do
    echo ; clear
    echo -n "Samba is not accesible, do you want to proceed? (y/n) "
    read Keypress
    case "$Keypress" in
    [Yy])
    break
    [Nn])
    exit
    esac
    done
    fi
    #Make sure the app wasnt ran accidently with wrong arguments
    while [ 1 ] ; do
    echo ; clear
    echo -n "The comp you are on is $1 is that correct? (y/n) "
    read Keypress
    case "$Keypress" in
    [Yy])
    break
    [Nn])
    exit
    esac
    done
    #Edit /etc/pacman.conf
    echo ; clear
    echo >> /etc/pacman.conf
    echo "[archlinuxfr]" >> /etc/pacman.conf
    if [ "$1" = "Game" ] ; then
    echo "Server = http://repo.archlinux.fr/x86_64" >> /etc/pacman.conf
    else
    echo "Server = http://repo.archlinux.fr/i686" >> /etc/pacman.conf
    fi
    echo -n "Make sure the right archlinux.fr repo was added "
    read n1
    nano /etc/pacman.conf
    echo ; clear
    #Install all packages
    echo "Installing packages"
    pacman -Syu
    pacman -S yaourt
    pacman -S xorg
    pacman -S gstreamer0.10-plugins
    yaourt -S abiword alsa-lib alsa-utils alsa-oss bash-completion cabextract centerim conky exaile hal epdfview feh freetype2 gamin gconf-editor geany gksu gmrun gnome-icon-theme gpicview \
    gtk-engines zip irssi jre links-g libdvdcss tcl lxappearance lxpanel lxde-common lxrandr lxtask mesa moc mousepad mplayer-plugin numlockx openbox obconf obmenu openbox-themes \
    p7zip pcmanfm pidgin pm-utils powertop screen terminal ttf-bitstream-vera ttf-dejavu ttf-freefont ttf-ms-fonts unace unrar unzip xarchiver xchat xmahjongg
    yaourt -S stjerm
    case "$1" in
    "Laptop")
    yaourt -S vlc keytouch keytouch-editor xf86-video-i810 synaptics cpufrequtils flashplugin
    yaourt -S swiftweasel-pentium-3
    yaourt -S wpa_supplicant-beta
    yaourt -S xcompmgr-git
    "Main")
    yaourt -S flashplugin cpufrequtils epiphany catalyst deluge amule xmoto abs samba
    yaourt -S icecat
    yaourt -S xcompmgr-git
    yaourt -S ekiga3
    yaourt -S ov51x-jpeg
    yaourt -S vlc-branch
    yaourt -S brasero-no-gnome
    "Game")
    yaourt -S epiphany catalyst deluge amule xmoto abs samba ##!! add gnash or swfdec
    yaourt -S icecat
    yaourt -S ekiga3
    yaourt -S ov51x-jpeg
    yaourt -S vlc-branch
    yaourt -S brasero-no-gnome
    echo -n "No extra packages installed "
    esac
    echo -n "Press Enter to continue "
    read n1
    echo ; clear
    #Configure yaourt.rc
    echo -n "Replace the editor in yaourtrc "
    read n1
    nano /etc/yaourtrc
    echo ; clear
    #Add users
    echo "Adding User vleon"
    useradd -d /home/vleon -g users -G disk,wheel,games,video,audio,optical,storage,power,dbus,hal,avahi,log -m vleon
    echo "Set vleon's password"
    passwd vleon
    echo ; clear
    echo "Adding User masha"
    useradd -d /home/masha -g users -G disk,wheel,games,video,audio,optical,storage,power,dbus,hal,avahi,log -m masha
    echo "Set masha's password"
    passwd masha
    echo ; clear
    #If for some reason samba dir doesnt exist, create it
    if [ ! -e /home/samba ] ; then
    mkdir /home/samba
    chown vleon:users /home/samba
    chmod 770 /home/samba
    fi
    #Configure visudo
    echo -n "uncomment wheel in visudo and make sure the added lines are correct "
    read n1
    echo "#%power ALL=(ALL) NOPASSWD: /usr/sbin/pm-hibernate" >> /etc/sudoers
    echo "#%power ALL=(ALL) NOPASSWD: /sbin/shutdown" >> /etc/sudoers
    visudo
    echo ; clear
    #Edit samba if needed
    if ( [ "$1" = "Main" ] || [ "$1" = "Game" ] ) ; then
    echo -n "Edit swat "
    read n1
    cp /home/samba/Config/etc/xinetd.d/swat /etc/xinetd.d/swat
    nano /etc/xinetd.d/swat
    echo ; clear
    echo -n "Edit Hosts "
    read n1
    cp /home/samba/Config/etc/hosts.allow /etc/hosts.allow
    nano /etc/hosts.allow
    echo ; clear
    echo -n "Edit smb.conf "
    read n1
    cp /home/samba/Config/etc/samba/smb.conf /etc/samba/smb.conf
    nano /etc/samba/smb.conf
    echo ; clear
    echo "Set vleon's samba password"
    smbpasswd -a vleon
    echo ; clear
    echo -n "Add samba and xinetd daemon to rc.conf "
    read n1
    nano /etc/rc.conf
    echo ; clear
    fi
    #Edit fstab
    echo -n "Edit fstab "
    read n1
    echo >> /etc/fstab
    if [ "$1" != "Laptop" ] ; then
    echo "#UUID=92D8DA69D8DA4ADD /mnt/windows ntfs-3g defaults,noatime 0 0" >> /etc/fstab
    if ( [ "$1" != "Main" ] && [ "$1" != "Game" ] ) ; then
    echo "#UUID=0E15-1D06 /mnt/windows vfat defaults,noatime,umask=0000 0 0" >> /etc/fstab
    echo "#//192.168.1.100/samba /home/samba cifs defaults,noatime,noauto,user=vleon%pass 0 0" >> /etc/fstab
    echo "##change the above password!!" >> /etc/fstab
    fi
    nano /etc/fstab
    echo ; clear
    else
    echo "#UUID=0E15-1D06 /mnt/windows vfat defaults,noatime,umask=0000 0 0" >> /etc/fstab
    echo "#//192.168.1.100/samba /home/samba cifs defaults,noatime,noauto,user=vleon%pass 0 0" >> /etc/fstab
    echo "##change the above password!!" >> /etc/fstab
    nano /etc/fstab
    echo ; clear
    fi
    #Edit gpm
    echo -n "Edit gpm "
    read n1
    echo "#GPM_ARGS=\"-m /dev/input/mice -t imps2\"" >> /etc/conf.d/gpm
    nano /etc/conf.d/gpm
    echo ; clear
    echo -n "Add gpm daemon to rc.conf "
    read n1
    nano /etc/rc.conf
    echo ; clear
    #Configure alsa
    Alsa Config
    test=1
    echo -n "Edit alsamixer "
    read n1
    while [ "$test" = 1 ] ; do
    alsamixer -V all
    echo "Testing Sound"
    aplay /usr/share/sounds/alsa/Noise.wav
    while [ 1 ] ; do
    echo ; clear
    echo -n "Did You Hear Any Sound? (y/n) "
    read Keypress
    case "$Keypress" in
    [Yy])
    test=0
    break
    [Nn])
    break
    esac
    done
    done
    alsactl store
    echo -n "Add alsa to daemons "
    read n1
    nano /etc/rc.conf
    echo ; clear
    #Configure Xorg
    if [ -e /home/samba/Config/etc/X11/ ] ; then
    echo -n "Edit xorg.conf "
    read n1
    if ( [ "$1" = "Laptop" ] ) ; then
    cp /home/samba/Config/etc/X11/laptop.xorg.conf /etc/X11/xorg.conf
    else
    cp /home/samba/Config/etc/X11/main.xorg.conf /etc/X11/xorg.conf
    fi
    nano /etc/X11/xorg.conf
    echo ; clear
    echo -n "add \"ru\" to xorg.conf.mom "
    read n1
    cp etc/X11/xorg.conf etc/X11/xorg.conf.mom
    nano /etc/X11/xorg.conf.mom
    echo ; clear
    else
    echo -n "No samba connection found, manually editing xorg.conf "
    read n1
    X -configure
    mv /root/xorg.conf.new /etc/X11/xorg.conf
    echo >> /etc/X11/xorg.conf
    echo "# Option \"XkbLayout\" \"us,il\"" >> /etc/X11/xorg.conf
    echo "# Option \"XkbOptions\" \"grp:alt_shift_toggle,grp_led:scroll\"" >> /etc/X11/xorg.conf
    echo "# DefaultDepth 24" >> /etc/X11/xorg.conf
    echo "# Modes \"1680x1050\" \"1280x1024\" \"1024x768\" \"800x600\"" >> /etc/X11/xorg.conf
    if [ "$1" = "Laptop" ] ; then
    echo >> /etc/X11/xorg.conf
    echo "#Section \"InputDevice\"" >> /etc/X11/xorg.conf
    echo "# Identifier \"Touchpad\"" >> /etc/X11/xorg.conf
    echo "# Driver \"synaptics\"" >> /etc/X11/xorg.conf
    echo "# Option \"Device\" \"/dev/input/mouse0\"" >> /etc/X11/xorg.conf
    echo "# Option \"Protocol\" \"auto-dev\"" >> /etc/X11/xorg.conf
    echo "# Option \"LeftEdge\" \"1700\"" >> /etc/X11/xorg.conf
    echo "# Option \"RightEdge\" \"5300\"" >> /etc/X11/xorg.conf
    echo "# Option \"TopEdge\" \"1700\"" >> /etc/X11/xorg.conf
    echo "# Option \"BottomEdge\" \"4200\"" >> /etc/X11/xorg.conf
    echo "# Option \"FingerLow\" \"25\"" >> /etc/X11/xorg.conf
    echo "# Option \"FingerHigh\" \"30\"" >> /etc/X11/xorg.conf
    echo "# Option \"FingerPress\" \"100\"" >> /etc/X11/xorg.conf
    echo "# Option \"MaxTapTime\" \"180\"" >> /etc/X11/xorg.conf
    echo "# Option \"MaxTapMove\" \"220\"" >> /etc/X11/xorg.conf
    echo "# Option \"VertScrollDelta\" \"100\"" >> /etc/X11/xorg.conf
    echo "# Option \"MinSpeed\" \"0.06\"" >> /etc/X11/xorg.conf
    echo "# Option \"MaxSpeed\" \"0.12\"" >> /etc/X11/xorg.conf
    echo "# Option \"AccelFactor\" \"0.0010\"" >> /etc/X11/xorg.conf
    echo "# Option \"SHMConfig\" \"on\"" >> /etc/X11/xorg.conf
    echo "#EndSection" >> /etc/X11/xorg.conf
    fi
    echo -n "Edit xorg.conf "
    read n1
    nano /etc/X11/xorg.conf
    echo ; clear
    echo -n "add \"ru\" to xorg.conf.mom "
    read n1
    cp etc/X11/xorg.conf etc/X11/xorg.conf.mom
    nano /etc/X11/xorg.conf.mom
    echo ; clear
    fi
    #Start the post install document and copy files to homes if able and need to
    echo "Post Installation Instructions" > /home/vleon/PostInstall.txt
    echo "------------------------------" >> /home/vleon/PostInstall.txt
    echo >> /home/vleon/PostInstall.txt
    echo "Usage: Follow the instructions and delete the lines that are not relevant anymore. you can delete" >> /home/vleon/PostInstall.txt
    echo " this file after you finished." >> /home/vleon/PostInstall.txt
    echo >> /home/vleon/PostInstall.txt
    echo "-------------------------------------------------------------------------------------------------" >> /home/vleon/PostInstall.txt
    if [ ! -e /home/vleon/.config] ; then
    if [ -e /home/samba/Config/ ] ; then
    cp /home/samba/Config/.bash_profile /home/vleon/ ; cp /home/samba/Config/.bash_profile /home/masha/
    cp /home/samba/Config/.bashrc /home/vleon/ ; cp /home/samba/Config/.bashrc /home/masha/
    cp /home/samba/Config/.xinitrc /home/vleon/ ; cp /home/samba/Config/.xinitrc /home/masha/
    cp /home/samba/Config/.xserverrc /home/masha/
    mkdir -p /home/vleon/.config/openbox ; mkdir -p /home/masha/.config/openbox
    cp /home/samba/Config/.config/openbox/rc.xml /home/vleon/.config/openbox/ ; cp /home/samba/Config/.config/openbox/rc.xml /home/masha/.config/openbox/
    if [ "$1" = "Laptop" ] ; then
    cp /home/samba/Config/.conkyrc.laptop /home/vleon/.conkyrc ; cp /home/samba/Config/.conkyrc.laptop /home/masha/.conkyrc
    cp /home/samba/Config/.Xdefaults.laptop /home/vleon/.Xdefaults ; cp /home/samba/Config/.Xdefaults.laptop /home/masha/.Xdefaults
    cp /home/samba/Config/.config/openbox/menu.xml.laptop /home/vleon/.config/openbox/menu.xml
    cp /home/samba/Config/.config/openbox/menu.xml.laptop /home/masha/.config/openbox/menu.xml
    cp /home/samba/Config/.config/openbox/autostart.sh.laptop /home/vleon/.config/openbox/autostart.sh
    cp /home/samba/Config/.config/openbox/autostart.sh.laptop /home/masha/.config/openbox/autostart.sh
    else
    if ( [ "$1" != "Main" ] && [ "$1" != "Game" ] )
    cp /home/samba/Config/.conkyrc.laptop /home/vleon/.conkyrc ; cp /home/samba/Config/.conkyrc.laptop /home/masha/.conkyrc
    else
    cp /home/samba/Config/.conkyrc.main /home/vleon/.conkyrc ; cp /home/samba/Config/.conkyrc.main /home/masha/.conkyrc
    fi
    cp /home/samba/Config/.Xdefaults.main /home/vleon/.Xdefaults ; cp /home/samba/Config/.Xdefaults.main /home/masha/.Xdefaults
    cp /home/samba/Config/.config/openbox/menu.xml.main /home/vleon/.config/openbox/menu.xml
    cp /home/samba/Config/.config/openbox/menu.xml.main /home/masha/.config/openbox/menu.xml
    cp /home/samba/Config/.config/openbox/autostart.sh.main /home/vleon/.config/openbox/autostart.sh
    cp /home/samba/Config/.config/openbox/autostart.sh.main /home/masha/.config/openbox/autostart.sh
    fi
    else
    echo >> /home/vleon/PostInstall.txt
    echo "!!Samba is not availble, you will have to create the following files yourself!!" >> /home/vleon/PostInstall.txt
    fi
    echo >> /home/vleon/PostInstall.txt
    echo "The folowing files where probably created in your home folders:" >> /home/vleon/PostInstall.txt
    echo ".bash_profile" >> /home/vleon/PostInstall.txt
    echo ".bashrc" >> /home/vleon/PostInstall.txt
    echo ".conkyrc" >> /home/vleon/PostInstall.txt
    echo ".Xdefaults" >> /home/vleon/PostInstall.txt
    echo ".xinitrc" >> /home/vleon/PostInstall.txt
    echo ".xserverrc #<< only to /home/masha" >> /home/vleon/PostInstall.txt
    echo ".config/openbox/autostart.sh" >> /home/vleon/PostInstall.txt
    echo ".config/openbox/menu.xml" >> /home/vleon/PostInstall.txt
    echo ".config/openbox/rc.xml" >> /home/vleon/PostInstall.txt
    echo "!!Make sure the above files created and are configured properly!!" >> /home/vleon/PostInstall.txt
    echo >> /home/vleon/PostInstall.txt
    echo "Configuration Guidelines:" >> /home/vleon/PostInstall.txt
    echo "1) make sure width and hight are correct .Xdefaults" >> /home/vleon/PostInstall.txt
    echo "2) make sure to comment the \"xcompmgr\" line in autostart.sh, to fit the Computer and User" >> /home/vleon/PostInstall.txt
    echo "3) use obmenu and obconf later to tune up stuff" >> /home/vleon/PostInstall.txt
    echo >> /home/vleon/PostInstall.txt
    echo "-------------------------------------------------------------------------------------------------" >> /home/vleon/PostInstall.txt
    echo >> /home/vleon/PostInstall.txt
    echo "rc.conf Guidelines:" >> /home/vleon/PostInstall.txt
    echo "1) possible modules are: powernow-k8 or acpi-cpufreq, cpufreq_ondemand, ov51x-jpeg, fglrx" >> /home/vleon/PostInstall.txt
    echo "2) possible daemons are: hal, cpufreq, acpid [laptop], netfs, keytouch" >> /home/vleon/PostInstall.txt
    echo >> /home/vleon/PostInstall.txt
    echo "-------------------------------------------------------------------------------------------------" >> /home/vleon/PostInstall.txt
    echo >> /home/vleon/PostInstall.txt
    echo "General Guidelines:" >> /home/vleon/PostInstall.txt
    echo "1) copy or compare the files from /home/samba/Config/etc to /etc" >> /home/vleon/PostInstall.txt
    echo "2) on the laptop, dont forget to add the additional scripts needed from the /home/samba/Config/, dont forget to backup replaced files" >> /home/vleon/PostInstall.txt
    echo "3) add resume=/dev/sda3 to /boot/grub/menu.lst if its not there already" >> /home/vleon/PostInstall.txt
    echo "4) dont Forget to configure gksu after launching X" >> /home/vleon/PostInstall.txt
    echo "5) lauch and configure all the apps in the menu and the cmdline apps links -g, mocp, irssi, centerim" >> /home/vleon/PostInstall.txt
    echo "6) test logout, reboot, shutdown and hibernate" >> /home/vleon/PostInstall.txt
    echo "7) configure keytouch on the laptop" >> /home/vleon/PostInstall.txt
    echo "8) if it doesnt exist mkdir ~/.Theme for both users and add a jpg picture named theme.jpg to be the wallpaper" >> /home/vleon/PostInstall.txt
    echo "9) read /var/log/MySysInstall.log and make sure all was succesfull especialy AUR install's like icecat or iceweasel" >> /home/vleon/PostInstall.txt
    echo "10) run lxappearance, configure lxpanel, configure terminal" >> /home/vleon/PostInstall.txt
    echo "11) run powertop after you restart again with all the modules and daemons and other stuff configured" >> /home/vleon/PostInstall.txt
    #Return ownership to the approtiate users
    chown -R vleon:users /home/vleon ; chown -R masha:users /home/masha
    chmod /home/vleon 750 ; chmod /home/masha 750
    chmod /home/vleon/.config 750 ; chmod /home/masha/config 750
    chmod /home/vleon/.config/openbox 750 ; chmod /home/vleon/.config/openbox 750
    #End
    echo "Install Finished, please additional instructions where created in /home/vleon/PostInstall.txt"
    read n1
    exit

    luckystar09 - I'd say you're on your own there. This thread is nearly a year old, and Black Mage hasn't posted here since. Read the script, and modify it yourself as required.
    Forum rule - do not post in threads that have been inactive for six months of more. See here for full details.
    Closed.

  • "Same Database" references and post-deploy scripts

    Say that I have two database projects - project A and project B.  Project A references project B as a same database reference.
    When deploying project A (with Include Composite Objects enabled), all of project B's objects are included, as expected.  However, project B's post-deployment script is not run.
    Is this by design, or a bug?

    Hi Jamie,
    In our scenario, we are using post-deployment scripts with MERGE statements as a way to manage population of initial data in certain tables.  For example, if you imagine a fictitious Gender table:
    CREATE TABLE Gender (
    Id INT IDENTITY PRIMARY KEY NOT NULL,
    Code VARCHAR(2) NOT NULL,
    Description NVARCHAR(16) NOT NULL,
    CONSTRAINT [UK_Gender_Code] UNIQUE (Code)
    we would have a corresponding entry in the post-deployment script such as:
    MERGE INTO Gender AS Target
    USING (VALUES
    ('M', 'Male'),
    ('F', 'Female')
    ) AS Source (Code, Description)
    ON Target.Code = Source.Code
    WHEN MATCHED THEN
    UPDATE SET
    Target.Description = Source.Description
    WHEN NOT MATCHED BY TARGET THEN
    INSERT (Code, Description)
    VALUES (Code, Description)
    WHEN NOT MATCHED BY SOURCE THEN
    DELETE;
    For tables that (for better or for worse) are expected to always contain certain values, this works very well to ensure that those tables are populated with the correct entries both when databases are initially deployed and when they are updated, and also
    works well to handle updating this data for new or modified entries.
    But, for same-database references, the post-deploy script never runs, and you end up with empty tables.  It's possible to work around this (deploy database B to target, then deploy database A, excluding composite objects), but it doesn't really fit
    nicely into the press-F5-to-deploy that SSDT's Visual Studio experience has.

  • HELP!!!!! 2 questions on placing a file and printing

    Hi,
    I'm in serious need of help!! I've designed some wedding stationary for my sister in law. I did all the initial designs on Photoshop, however, the save the date cards require me to print on both sides. I was told that in order to do this successfully, I need to put the work in to indesign. Well, when I did this, the whole thing got screwed up. It went really grainy and pixelated. I managed to correct it the best I can, but the font looks a lot thinnner and lighter than it did in the original photoshop file. Does anyone know why this would be and in addition, know how to fix it?? I'm using Snell Roundhouse if that helps at all!
    Secondly, the printing!! How do I set it up to be able to print on both sides? I've looked around but I think I'm being really blind as I cannot find out how anywhere!!
    If someone can help me with this ASAP I would truly truly appreciate it!!
    Thanks

    4greensquirrels wrote:
    I did all the initial designs on Photoshop, however, the save the date cards require me to print on both sides. I was told that in order to do this successfully, I need to put the work in to indesign.
    Let's start by saying this is probably nonsense, but how you intend to print will make a difference. If you are doing the printing yourself, and you have a printer capable of two-sided printing (pretty unlikley on card stock) then ID can make a two page file that will duplex. If the printing machine can't print two-sided on the chosen paper, it really doesn't matter.
    Now, on to more important matters. How did you move your work from Photshop to ID? And how was it saved in Photoshop? ID can import quite a few image formats from Photoshop, but if you have type or other vector content that you want to keep crisp, you need to save the file as a Photoshop PDF for placing in ID. Any other format will result in the Vector content being rasterized and going jaggy. Also, you must Place the art, NOT copy and paste from Photoshop (File > Place...) or all you will get is the screen preview.
    If you've placed the art, and it still looks bad on screen, either you've scaled it up or it doesn't have sufficient resoltuion to begin with, or, very likely, you just haven't got your display settings correct. By default ID uses "Typical" display, which gives you a low resolution proxy for the placed art. For a better preview (but still a preview) go to View > Display  Performance and choose High Quality Display.
    The broader question here is why all the work was done in Photoshop, and I presume that's because you are more familiar and comfortable working with that application. InDesign has a lot of advantages, though, for this sor of project, not the least of which is the ability to make a mulipage file. In ID you can place many pieces of external art and set the type, and maintain the quality of all the pieces. These days I rarely even build a photocollage in Photoshop, as I find it's much easier to control sizes and postions of the images (previously edited and masked individually in Photoshop, as required) in ID.
    How about providing some details about how this is all going to be printed? With more info, we can offer better advice.

  • Three questions about signed jar file and applet

    I use three signed jar file. Each of them signed by different certificate. First of JARs contain applet class. When I start applet from html page I see message &#8220;This applet was signed by&#8230;&#8230; but Java cannot verify it&#8230; Do you trust&#8230;?&#8221;. All times I press &#8220;Yes I trust&#8221; and after this questions applet stop to work end exit. If I use only one certificate for signing of three JARs then applet continue to work after question. 1) What should I do to fix this bug? 2) Is it any method to check from applet that user press Trust button? Is it any method to emulate work of SecurityManager to check that Certificate object is trusted (I want do call some method check(Certificate) and if certificate is not trusted I want to see message with question: &#8220;Do you want to trust this certificate&#8221; and so on)?

    Hello Jarman,
    1. If I have a signed jar file, then as long as the
    certificate is recognised as trusted that applet can
    run as a fully trusted application on the client
    machine. So I should not have to add lines such as
    permission java.lang.RuntimePermission
    "readFileDescriptor", "read" ;
    permission java.lang.RuntimePermission
    "writeFileDescriptor", "write" ;
    to my java.policy file. true/false ?true
    2. If I am running a signed jar file in the Java
    plugin then I do not need to have a verisign or thawte
    certificate (however to allow my certificate to be
    accepted I do have to import it into the cacerts file
    on the client machine). True/false?true
    3. Following on from question 2, if I want to be able
    to run an applet on a client machine, without messing
    around with ANY files on those machines, I need a
    verisign or thawte certificate. True/false?true
    4. (And finally) Apart from a security exception
    saying that I need to add one of the lines like those
    of question 1, is there any way I can get other debug
    information as to why the signed jar file is not being
    recognised as signed?No. This could be a problem of importing your certifcate into the wrong place.
    The information on the following link is a little bit dated but it helped me to successfully install a testcertificate and sign an applet with it.
    http://www.suitable.com/Doc_CodeSigning.shtml

Maybe you are looking for