RESOLVED: how to load a progam at startup

i installed numlockx and can get it to turn the numlock on from the command line, but what file do i add it to so that it will start when i log in? im using kde

In the case of <code>numlockx</code> you don't even have to do that.  I found it easier just to include the command in my <code>~/.xinitrc</code> file, before I load my window manager.  It's probably a good idea to background it, which would give you something like this:
numlockx &
exec startxfce4
Obviously you'll have to change it for KDE, but you get the idea.  For loading other programs once you're in the desktop environment, then I'd go the <code>~/Desktop/Autostart/</code> route (which is what I do to load programs like adesklets).

Similar Messages

  • How to load bios screen at startup?

    I'm trying to access the bios screen at startup. This computer has the Mac side and a Windows PC side. I want to open the bios screen in the Windows PC side (if this makes a difference) so that I can change the booting options. Can someone please help!?

    iMacs and other computers from Apple do NOT contain a BIOS like Windows machines.  They use EFI in place of the BIOS and it is not user accessible.  To select which OS you boot into you need to hold down the "Command" and "R" keys while starting up and this will then load the OS selection screen.
    Hope this helps

  • How to load a config file at appliaction startup

    Hi
    Is there a way to load a config file at application startup?
    I have the DB conection info in a config file.
    Right now m accessing that info by loading it using a classloader n then parsing it.
    When ever i access the DB this file is loaded n parsed.
    I want it to be loaded only once at startup n get cached.
    Then later on whenever i refer it, i shud get the cached copy.
    Is there a way to do this?

    Or you could just include a relevant static block.
    For instance you could have a utility class for accessing your DB in which you wrap jdbc code for querying, updating etc. This class would have code like the following:
    public class DBBean {
       private static DataSource ds = null;
       static {
          loadDataSource();
       public static loadDataSource() {
          // load your property file with the configuration info and setup your datasource
       public static void doSomething() {
          Connection con = ds.getConnection();
    }By placing initialization code in a public (?) method you can call this method to re-initialize your DataSource if e.g. you updated your datasource settings.
    Hope this helps

  • How do I disable the automatic startup on HP Photosmart Premier when I turn my computer on?

    Someone else posted ths question a month ago, but still no answers.  Anyone?
    How do I disable the automatic startup on HP Photosmart Premier when I turn my computer on?
    Windows XP, SP3 operating system recently re-installed so I also reinstalled my printer software.  Now, for some reason, each time I turn my computer on, my HP Photosmart C4100 all-in-one photosmart premier software opens.  It is not in my startup.  This slows down my computer terribly, which is why I never used the program before my re-install.  How can I disable this feature?  I only print, I don't use it for photos.
    Any help here is appreciated.

    Run msconfig.exe from the start button (type in msconfig).  When it comes up go to the Startup tab and find and deselect the HP product you do not want to start.  Save and reboot computer.  Now try.
    Say thanks by clicking the Kudos Thumbs Up to the right in the post.
    If my post resolved your problem, please mark it as an Accepted Solution ...
    I worked for HP but now I'm retired!

  • How do I fix that at startup, restart Mavericks 10.9.2 always opens the system preference window?

    How do I fix that at startup, restart Mavericks 10.9.2 always opens the system preference window?
    It is not listed in Login items. I tried all the usual fixes plus Diskwarrior rebuild.
                                                                                                                                    W.W.

    I suggest deleting the Canon Network Scanner from Login Items to determine if that is the cause. Not knowing exactly what it does, I suspect it is intended to monitor the printer's supply levels all the time. It's not necessary to do that. You can always determine the printer's ink supply level every time you print something, when its Print dialog appears. You can also check its supply levels by opening System Preferences on your own, and selecting Printers & Scanners.
    Bear in mind Login Items is simply a convenience that loads the programs you specify every time you log in. That feature is less important as it had been in the past since Mavericks will re-open everything that was open when you last logged out, if you select this checkbox:
    If you want to add the Adobe programs to Login Items again, search for them using Spotlight. The Adobe programs themselves should not be causing this behavior.

  • How to load Java properties file dynamically using weblogic server

    Hi,
    We are using Java properties file in Java code. Properties in java properties file are frequently modified. If I keep these properties file in project classpath or as part of war, I will have to redeploy application after each change.
    We are using Weblogic Server.
    Can you please suggest me how can this properties file be loaded at weblogic server startup. Then in that case, how to refer property file in Java code?
    What is the best practice for this?
    Thanks,
    Parshant

    Another alternative is, keep the property file in any pre-defined location. Write a class which reads the properties from the file and returns the one which is requested by caller and deploy this class. Whenever you have to change the properties just update the property file on server and next call to fetch the property should return the updated one.
    Downside of this approach is file I/O everytime. To overcome that you can actually "cache" the properties in a hashmap. Basically when any property if requested, first check the hashmap, if not found then only read from property file and also update in hash map. Next time same property will be returned from hash map itself. The hash map will be cleared at every server restart since its in the memory. You will also need to build a method to clear the hashmap when you update the values in the property file on server.
    This solution would be suitable for small size files and when network overhead of calling a DB needs to be avoided.

  • How to insmod modules when Arch startups.

    Hello everyone , I'm new in Arch, can you help me?
    I want to know how to insmod modules when Arch startups.

    Foucault wrote:
    I believe this wiki entry is what you need
    https://wiki.archlinux.org/index.php/Sy … ad_at_boot
    Touch a new file under /etc/modules-load.d/ (it must end with .conf) and add your modules there.
    Thank you for answer , i will read it seriously

  • "CLOSED": HOW TO LOAD FIRM PLANNED ORDERS OF ANOTHER PLAN INTO ASCP PLAN?

    Hi everybody,
    How to load firm planned orders of plan 1 into plan 2?
    Business Case:
    Customer uses a separate planning for order intake. During order intake the requested due date is validated based on ASCP Gantt Chart. Bottlenecks are resolved. For make items firm discrete jobs are created, if adjusted suggested due dates are manually changed. For buy items firm planned orders are created for manually changed suggested due dates.
    If the order is accepted the demand is transferred from the Order Intake MDS into the so called Operational MDS. The firm discrete job will be automatically visible in the operational ASCP Plan (after data collection/running ASCP Plan).
    But how is it possible to include ONLY firm planned orders of another plan into your current plan?
    PLAN1 asigned master demand schedules
    - O_MDS1
    - O_MDS2
    PLAN2 assigned master demand schedules
    - O_MDS1
    - O_MDS2
    - T_MDS
    I want to transfer the firm planned orders from plan2 to plan1.
    Thanks for all your inputs,
    Catalina
    Message was edited by:
    user447176

    Since you need to run a data collection to load the new discrete job, I suggest you to add a custom step in the data collection.
    This custom step will
    1) select all firmed planned order in plan 2
    2) put the firm planned order into a new schedule through staging tables (MST_ST_SUPPLIES) .
    3) collect the data
    Then run plan1 with this schedule defined as demand schedule for your new plan.

  • How to load envelopes in to Officejet 4630e printer using microsoft works word in order to print

    how to load envelopes into Officejet 4630e printer using microsoft works word in order to print.  need instructions

    Hey @JC155,
    Welcome to the HP Support Forums!
    I understand that you would like to know how to load and print envelopes with your HP Officejet 4630 e-All-in-One Printer. I would like to assist you today with printing envelopes!
    First, I'll have you properly load the envelope:
    Open the paper tray door, and then pull it toward you to extend the paper tray.
    Gently pull out the paper tray extender, and then lift up the paper catch.
    Pull out the paper tray, and then pull out the tray extender
    Slide the paper width guides to their outermost position.
    Slide out the paper width guides
    Remove any paper from the paper tray.
    Load the envelope into the middle of the paper tray, print side down, and with the flap on the left and facing up.
    NOTE: You can load one or more envelopes in the tray, but do not load more than five envelopes at a time. Do not use shiny or embossed envelopes or envelopes that have clasps or windows.
    Load the envelope
    Slide in the paper width guides until they rest against the edges of the envelope.
    Slide in the paper width guides
    Push the paper tray forward until it clicks into place.
    NOTE: Push the paper tray all the way in to avoid an error message.
    Push the paper tray forward until it clicks into place
    Source: Loading Paper and Envelopes for HP Officejet 4630 and Deskjet Ink Advantage 4640 e-All-in-On...
    Next, I'll have you print the envelope through MS Word:
    How to Print Envelopes from Word:
    1. Open Word and click on Mailings at the top
    2. Select 'Envelopes' from the top left hand side
    3. An Envelopes and Labels page should now open. Enter your Delivery and Return Addresses.
    4. Select 'Options' on the bottom right hand side.
    5. Under the 'Envelope Options' tab ensure that your Envelope size is appropriately selected.
    6. Select the 'Printing Options' tab at the top. You now need to select the appropriate Feed Method for your product.
    7. Make sure that you choose the 'Face Down' option.
    8. Also ensure that 'Clockwise Rotation' is selected.
    9. Hit 'OK' and 'print'
    For additional guidance, please refer to the following video:
    Please let me know if the steps I've provided resolved your envelope printing issues. Good luck!
    X-23
    I work on behalf of HP
    Please click "Accept as Solution" if you feel my post solved your issue, it will help others find the solution.
    Click the "Kudos, Thumbs Up" on the right to say "Thanks" for helping!

  • How to load drivers in Windows 8 Recovery Environment??

    Hi everyone,
    I'm really stuck here with my HP dv7t-7200 laptop.. I'm running Windows 8 Pro (64-bit) & after a Windows Update reboot, I can't get to the start screen. The spinning balls continue for hours & hours. I know there's a recent restore point that I can
    restore to, but I'm having trouble accomplishing this..
    My laptop has a RAID array, so I need to load the storage driver in order for the Windows Recovery Environment to be able to see the hard drives. I don't see any options for doing this, can someone please help..? Here's where I'm at step-by-step:
    1) Boot from Windows 8 DVD
    2) Choose "Repair this computer"
    3) Choose "Troubleshoot"
    4) Choose "Advanced Options"
    5) Choose "System Restore"
    Step (5) gives an error message : "To use System Restore,  you must specify which Windows installation to restore. Restart this computer, select an operating system, and then select System Restore"
    I believe this is occurring b/c
    Windows, as booted from DVD, can't see the logical hard drive. If I could figure out how to load the Intel storage driver from USB, I think Window-on-DVD would be able to find the restore point on my hard drive. In Windows 7 Recovery, there's an option to
    "Load drivers" during a repair operation. Where is this option in Windows 8?
    Here are further troubleshooting steps I tried, based on Internet search results:
    A) How do I mount the USB stick (which has the RAID driver for the laptop)? The following link is old, but the steps work. I stopped after step 6.
    Internet search : windows command prompt mount usb
    http://www.ehow.com/how_8541121_mount-usb-drives-windows-xp.html
    B) After navigating to the mounted USB drive & appropriate folder, how do I load the RAID driver for the laptop? The following link suggests to use pnputil.exe, but this program won't run in my Windows 8 DVD recovery environment command prompt.
    In any case, is it true that if & when I'm finally able to load the RAID driver, then DISKPART should be able to mount the drive & System Restore should see the Windows installation & offer to repair it?
    Internet search: load windows drivers from command prompt
    http://superuser.com/questions/531594/windows-how-to-install-driver-from-recovery-command-prompt
    Any help appreciated, 
    Thanks,
    Brad

    Sergey: WOW & thanks, you are definitely the man! I want you to know that you've solved a problem that three levels of MS tech support haven't been able to work out..
    I worked with a level 2 tech agent for several days, 20 minutes at a time. He was going back & forth with level 3 support staff, getting ideas from them & passing on to me. The level 2 guy finally told me it's not possible to load drivers during a Windows
    8 system restore & gave up on my support ticket. 
    The manager then called for customer satisfaction follow-up. He said he had confirmed that Windows 7 DVD had the ability to load drivers for System Restore, but unfortunately this feature was removed for Windows 8. I convinced him that even so, *someone* at
    MS must know a way to to load drivers for System Restore. He said he'd take it on as a personal challenge & would find s/o to assist.
    Shortly thereafter, I got a call from a guy saying he's in the Research department at MS. He was immediately familiar with my problem. He said that he had previously resolved it by breaking the RAID mirror in the BIOS, which would allow Windows 8 DVD to recognize
    one of the drives as an ordinary SATA drive & then load a driver for it. As we started down that path in my BIOS, he became concerned that actually, breaking my RAID mirror might cause data loss. He said he'd get back to me (that was a couple of days ago)..
    So the question in my original post is solved, thank you again.
    P.S. I still can't get Windows 8 restored, and might after all just have to reinstall everything!
    1) I followed your instructions exactly & indeed, System Restore found the Windows 8 installation. 
    2) I chose the latest restore point & executed the restore. Operation initialized successfully but then failed with a disk read error.
    3) I quit the Restore, which caused auto-reboot. I followed your steps again but navigated this time to Repair / Troubleshooting / Advanced Options / Command Prompt
    4) I ran DISKPART, then "list volumes" to determine boot drive letter = E: (on my system)
    5) I exited diskpart, verified I was on a non-boot drive, & ran "chkdsk E: /X /F"
    6) "Corrections to the file system" were made
    7) For good measure, I ran "bootrec /FixMbr" & then "bootrec /FixBoot"
    8) I exited the command prompt & navigated to System Restore. Same error message.
    9) I followed your steps again, but navigated to Automatic Repair. 
    10) Automatic Repair -> "Windows couldn't load correctly"
    Brad

  • How do I choose a default startup drive?

    I have two startup drives on my Hard Drive. One is Snow Leopard and the other is Leopard. I need Leopard for some printing issues with Photoshop and Epson. How do I choose a default startup drive? Most of the time I want the Snow Leopard drive at startup but it seems to always start up on Leopard. I need to always hold down the option key at startup. Sometimes I forget.

    noondaywitch wrote:
    System Preferences > Startup Dive > select the drive with 10.6.x I suspect you may need to do that for both systems. Click the lock to prevent further changes, then do an option-boot and ensure it'll let you start from the other.
    Macs store a reference to the default startup drive set in System Preferences > Startup Drive in PRAM, so you don't have to set it individually for each drive or partition -- as long as the selected one is available at startup time, that is the one the Mac will start up from. (Otherwise, it will be the first available one found. If none capable of starting up the Mac are found instead the flashing slashed circle with the question mark in it won't go away, indicating the Mac is still waiting for you to make one available, for instance by powering up an attached external drive or inserting a bootable DVD.)
    The option key startup method temporarily overrides this & allows you to choose another drive or partition, but just for that startup -- the next time you start up normally, it will revert to the selected one.
    Also, the lock in System Preferences has nothing to do with making preference settings permanent or persistent. It is just a security feature to prevent unauthorized users from making changes from an already logged in user account. For instance, it makes no difference if the lock is closed or open at startup time, because that is before the OS is running or able to check preference file settings stored on disks. During the early stages of the boot process, code resident in firmware checks for depressed keys & buttons before loading the OS from the default source set in PRAM. This is how it decides if it should instead run the Startup Manager (evoked by the option key), first eject a CD or DVD (evoked by the eject key or primary mouse button), or start up from an alternate source like an installer DVD (evoked by the C key).

  • Any SB Audigy 2 ZS owners out there know how to load Synth A &

    Any SB Audigy 2 ZS?owners out there know how to load Synth A & B ?
    Mine is a OEM Version (for [url="http://homerecording.com/bbs/showthread.php?p=2960574#">HP[/url]) I got used for $40, didn't know it was until I had trouble installing driver,s but that's now resolved. Mine is model SB0359 but tag says Audigy 2 ZS and SB0350, but without MIDI port and 394 port. A real A2ZS is SB0350. 24/96 recording and playback.
    Everything is working great, 2 ms latency recording on some quick testing.
    BUT the Soundbank Manager doesn't seem to want to load any SF2 into Synth A or B , so I can use them in my sequencer (JAZZ++) for playback, and REAPER for recording (eventually). I don't want to be locked into the default [url="http://homerecording.com/bbs/showthread.php?p=2960574#">Windows[/url] GM sounds. At least in REAPER, I can use a VST approach and connect a SF, but I only want MIDI for Drums and maybe some Pads, in spots. I do have a MIDI bassline, but that will be re-done with real bass guitar.
    Maybe because I don't have a physical MIDI port on the OEM version, the program isn't functiing properly (guess)
    Is there another way to load the Synths ? Manual scripts ... via INI ?

    johnnymegabyte wrote:
    Everything is working great, 2 ms latency recording on some quick testing.
    BUT the Soundbank Manager doesn't seem to want to load any SF2 into Synth A or B , so I can use them in my sequencer (JAZZ++) for playback, and REAPER for recording (eventually). I don't want to be locked into the default [url="http://homerecording.com/bbs/showthread.php?p=2960574#">Windows[/url] GM sounds. At least in REAPER, I can use a VST approach and connect a SF, but I only want MIDI for Drums and maybe some Pads, in spots. I do have a MIDI bassline, but that will be re-done with real bass guitar.
    Maybe because I don't have a physical MIDI port on the OEM version, the program isn't functiing properly (guess)
    Is there another way to load the Synths ? Manual scripts ... via INI ?
    REAPER:
    As it's an OEM card, it's possible that MIDI features are ripped. Have you tried by installing nati've software by tweaking the installer?
    You find the original CD and instructions on how to patch the installed by searching here using "BadBoy" for CD and "ctcomp" for patching (as for an example).
    - on Options/Preferences/Audio/MIDI Devices, select synths A/B
    - create new track
    - on track I/O config, set MIDI Hardware output to Audigy Synth A or B and on Audio Hardware outputs, add a new one as stereo Left/Right
    - on track Monitoring options, enablethe monitoring
    - set the SF bank (Do not use big ones but those bundled ones beford getting everything working ... there are some size limitations)
    Remember also that drums are on MIDI channel 0.
    Hope this helps you to start ... (I don't have SoundFont Bank Manager installed so I can't try if this works).
    jutapa
    Message Edited by jutapa on 07-6-2008 0:53 PM

  • Diagram on how to load envelopes

    My printer is an officejet 4500 G510G-M and I have Windows 7.
    When I load envelopes to print, the diagram on the screen tells me to put the flap on the right side; however, that is incorrect.  I need to load the envelopes with the flap on the left side.  My problem is I rarely load envelopes (only at Christmas time) and when I do, I run through a few before I get it right.  Is there any way of changing that diagram?
    Thanks,
    Clare
    This question was solved.
    View Solution.

    Hey @claregirl7,
    I understand that you're having issues printing envelopes on your HP Officejet 4500 All-in-One Printer G510g. I would like to assist you with resolving this issue. As you stated, you know how to load envelopes and you just need guidance on where to change the diagram for how the envelope is loaded. In order for me to provide you accurate troubleshooting steps I do have a few questions for you.
    1. What Operating System is on your Computer?
    What's my OS?
    2. What program are you printing envelopes from?
    3. Are you printing the standard #10 envelope size?
    With that being said, most people print envelopes through Word so I'll provide you the steps on how to properly print an envelope through that program. Again, should these steps be incorrect be sure to respond to this post with your operating system and the program you're printing from so I can give you accurate steps.
    How to Print Envelopes from Word:
    Open Word and click on Mailings at the top
    Select 'Envelopes' from the top left hand side
    An Envelopes and Labels page should now open. Enter your Delivery and Return Addresses.
     Select 'Options' on the bottom right hand side.
    Under the 'Envelope Options' tab ensure that your Envelope size is appropriately selected.
    Select the 'Printing Options' tab at the top. You now need to select the appropriate Feed Method for your product.
    Make sure that you choose the 'Face Down' option.
    Also ensure that 'Clockwise Rotation' is selected.
    Hit 'OK' and 'print'
    Also, I'm going to include the loading envelopes document for your printer for added guidance.
    Loading Envelopes
    Please respond to this post and let me know if the steps provided resolve your issue. Good luck!
    X-23
    I work on behalf of HP
    Please click "Accept as Solution" if you feel my post solved your issue, it will help others find the solution.
    Click the "Kudos, Thumbs Up" on the right to say "Thanks" for helping!

  • How long does a HANA instance startup take?

    In a previous thread Lars Breddemann wrote:
    Data stored in row-store tables will be loaded into the main memory immediately on instance startup.
    Data stored in column-store tables will be loaded upon first access, except when it has been specified that the table should also be loaded during startup.
    Even if the persistent storage is located on SSDs, doesn't that take a really long time to start a large HANA database?
    Is there already some rule of thumb about how long it takes in real life to start a large HANA database?
    Or can you simply say that HANA doesn't impose a bottleneck (or other significant delays) but startup primarily depends on reading the data from persistent storage and thats it.
    In my imagination, many HANA customers would want to load almost eveything from column storage during instance startup. So imagine a 1 TB HANA database reading 1 TB from SSDs and also creating indexes for column storage during instance startup. What is the order of magnitude for instance startup: Seconds, minutes or hours?
    Regards,
    Mark

    Hello Mark,
    here's some more background: Tables are either in row or in column store. Row store tables are loaded into memory during startup. Column store tables are set as a default to be loaded on demand i.e. the system loads columns when necessary. You can change the preload behaviour for column tables using ALTER TABLE (see http://service.sap.com/hana > SQL Reference).
    Since most data will be stored in column tables, actual startup time is indeed pretty quick. If you want to avoid a performance hit on first data selections, you could create a simple SQL script that executed a LOAD statement your most critical tables and run it once after start up and when it fits best to your requirements.
    Regards,
    Marc
    SAP Customer Solution Adoption (CSA)

  • How to load a Jar file in the class path?

    How to load a Jar file which contains class files, images, etc.. in the classpath without using URLClassLoader.

    You don't "load" jars. If it's on the classpath, you can obtain individual resources from it using various methods on either Class or ClassLoader. Do you mean "how to add a jar to the classpath at runtime"? Can't be done without using a classloader, typically URLClassLoader or a subclass thereof. Why you want to not use the proven method is beyond me. Presumably because you don't understand classloading. In which case, forget it.

Maybe you are looking for