Lxterminal --command: How can I keep the window open? [SOLVED]

Hello,
I am trying to create an application launcher that will let me connect to my vpn account at start up instead of having to manually type the openvpn command each time my machine boots. I need to use sudo, but lxterminal disappears the instant it opens. I tried adding the read command as suggested here:http://ubuntuforums.org/showthread.php?t=192427, but it just doesn't work.
Any suggestions? Or alternatively, is there a way for me to start the vpn connection automatically at startup, preferably without even having to enter my password?
Here's my .desktop file:
[Desktop Entry]
Encoding=UTF-8
Name=OpenVPN
Comment=Establish a secure connection
Icon=vpn
Exec=lxterminal --command="sudo openvpn --config /home/myhomefolder/.vpnkey/vpnfile.ovpn"
Terminal=false
Type=Application
Thanks!
Last edited by DavidR (2009-09-19 17:43:06)

I tried adding it to /etc/rc.local, and according to the boot up messages it works, but the boot process just stops after OpenVPN opens the tunnel. OpenVPN doesn't terminate and I think that the startup process keeps waiting for bash to exit, but bash doesn't as it keeps waiting for the OpenVPN output. In other words, my machine stops booting.
Here's what I have in rc.local:
#!/bin/bash
# /etc/rc.local: Local multi-user startup script.
cd /home/homefolder/.vpnkey
openvpn --config vpn.ovpn

Similar Messages

  • How can i keep the indesign window to stay a certain size?

    How can i keep the indesign window to stay a certain size? After writing files the Indesign window defaults to original size and I need it to stay a certain size. Can anyone help?
    Thank you
    Ray Jimenez

    Hi, the only possibility I can see is making multiple copies of...
    /System/Library/Components/KeyboardViewer.component/Contents/SharedSupport/Keybo ardViewerServer.app
    And running one in each Space.

  • How can I keep the browser window stretched across my two displays?

    I run am trying to run dual monitor setup and have the Firefox browser span the two monitors. Whenever a Firefox dialog opens, such as Preferences or Print, the window zooms to fit the one primary monitor. How can I keep the browser window stretched across my two displays?

    Thanks very much for your response to my question -very helpful.
    Do you have any recommendations for a good book on Edge Animate?
    Thanks,
    Shaun
    Date: Thu, 25 Oct 2012 17:10:43 -0600
    From: [email protected]
    To: [email protected]
    Subject: How can I change the browser window background color when playing an Edge animation?
        Re: How can I change the browser window background color when playing an Edge animation?
        created by heathrowe in Edge Animate - View the full discussion
    ADD this to compositionReady handler, change the hex color code to your desired color //Force body of webpage to a specific color$("body").css("background-color","#5d5e61"); Darrell
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/4801409#4801409
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4801409#4801409
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4801409#4801409. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Edge Animate by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • How can you keep the highest iphone 4s Video quality the same when exporting it from iMovie.

    How can you keep the highest iphone 4s Video quality the same when exporting it from iMovie.

    InDesign's PDF export engine does not transcode your videos, they are embedded exactly as they were in the original file. The Flash Player runtime which displays video inside PDF files may not show a perfect match to Quicktime etc. because most video playback tools aren't designed for a color-calibrated workflow, but they should be close.
    The playback quality (blocking and aliasing) will be affected if the clip is not playing at 100% (screen pixels != video pixels) and in PDFs with the standard video player widget, that will only ever happen when you use 'floating window' mode. PDF pages have physical dimensions, so viewing them at "100%" does not make them match screen pixels.
    If you don't mind the video clip being smaller than the media annotation in which it's playing, then use my free upgrade to the Acrobat playback widget - VideoPlayerX - which maintains 1:1 pixel scale until the page is zoomed out too far for it to fit. You can install the widget into InDesign so it's used by default when exporting.

  • My macbook wont allow me to use the same hotmail address as i used on my other computers. How can I keep the same email and log into it on a macbook?

    my macbook wont allow me to use the same hotmail address as i used on my other computers. How can I keep the same email and log into it on a macbook?

    That indicates a hardware failure. Read here:
    http://support.apple.com/kb/ts1559
    If nothing works, you most likely have a hardware failure. Make an appointment at an Apple store to confirm.

  • How can i keep the music pushed to all of families devices but the calendar and notes just between my phone and my mac using icloud?

    Ok, so my whole family has the same apple ID so that we can all get the same music, and we want to be able to use icloud so that when one person buys a song it will push to all of our devices. But the problem is when I want my calendar on my mac to also be pushed to my phone it pushes to all of my familys devices. How can i keep the music pushed to everyones but the calendar and notes just between my phone and my mac using icloud?

    Oops my bad...I see that during my troubleshooting I inadvertently left Ringtones unchecked in iTunes.

  • How can I change the window size of iTunes?  Used to be easy before installing Mavericks.

    How can I change the window size of iTunes on my iMac?  Used to be easy before installing Mavericks.

    If you want to make the itunes tab so you can see the dock
    you press the
    esc
    button if your in full screen mode
    if you want to get into full screen mode you press the arrows facing away from eachother in the top right corner
    there is another way to get to the normal tab if your in full screen
    make the curser go right up to the top of the screen and it will show the apple tab
    it will have two arrows facing together highlited in blue
    if u tap that it will take you to the normal tab

  • Todays update! After todays update I can no longer send Safari or Spotify to the task bar without it cutting out (dropping audio in and out). Streams normally if I keep the window open on my desktop. This needs to be fixed immediately.

    Todays update! After todays update I can no longer send Safari or Spotify to the task bar without it cutting out (dropping audio in and out). Streams normally if I keep the window open on my desktop. This needs to be fixed immediately.

    Nevermind. I figured it out.

  • HT5639 i use boot camp to install windows 8.1 but in the middle of the installation it is stop,how can i install the windows again?

    i use boot camp to install windows 8.1on my mac but in the middle of the installation it is stop,how can i install the windows again?
    why it`s stop?

    What is your exact machine and what's the error

  • Hi, how can I keep the same zoom level for all the pages I view in Safari and even when I close and open it.  Indeed with a 27 inch Imac I have a lot of space, most of the websites are built for smaller resolutions  and my sight is dropping !   Thx

    Hi, how can I keep the same zoom level for all the pages I view in Safari and even when I close and open it.  Indeed with a 27 inch Imac I have a lot of space, most of the websites are built for smaller resolutions  and my sight is dropping !   Thx

    Hi, how can I keep the same zoom level for all the pages I view in Safari and even when I close and open it.  Indeed with a 27 inch Imac I have a lot of space, most of the websites are built for smaller resolutions  and my sight is dropping !   Thx

  • I like the feature of the PDF being opened on the new tab on firefox browser windows. But the newer version (3.6 or 4.0) will automatically open PDF in a pop up adobe apps. How do I keep the PDF open on the new tab as before? thank you

    I like the feature of the PDF being opened on the new tab on firefox browser's windows. But the newer version (3.6 or 4.0) will automatically open PDF in a pop up adobe apps. How do I keep the PDF open on the new tab as before like the 3.5 ver.? I want the PDF opened in the new tab rather than in the Adobe's app's pop up window. Could you help?
    thank you

    '''I fixed mine by removing the Ask.com extension.'''
    Tools
    Add-ons
    Settings icon
    View Recent Updates
    Ask.com '''DISABLE'''
    Running FF 8.0 on Windows 7 (64-bit)

  • I recently had to completely restore my laptop, so I lost the music on my itunes. It's still on my iphone, but how can I keep the music I already have and continue to add more music from the newly set up itunes again?

    I recently had to completely restore my laptop, so I lost the music on my itunes. It's still on my iphone, but how can I keep the music I already have and continue to add more music from the newly set up itunes again? Is there actually a way to do this? I can't help but wonder what the stupid icloud is for if my music is still somewhere in the 'cloud' but it's zero help for restoring music when it's lost on a computer....any help even a site that get's around apple would be great!

    It has always been very basic to always maintain a backup copy of your computer.
    Have you failed to do this?
    If so, not good, you can transfer itunes purchases from the iphone to your computer.  File>Devices>Transfer Purchases
    You can also redownload some itunes purchases in some countries:
    Download past purchases - Apple Support

  • My Webpage screen is always minimized. How can I enlarge the window?

    My Webpage window is smaller then my screen the window is at about 10 inches instead of the whole scren . How can I enlarge the window (webpage) ? it is so annoying to work with this screen.
    Any help would be greatly apperciated.
    Thank you

    The first place to start may be to check Activity Monitor. Look at the Disk Usage tab and the CPU tab and see if any one or two things seem to be dominating that activity. Especially see if it's some 3rd party app or background process.

  • How can i keep the optimize settings in Muse

    Hello
    I just uploaded a web site www.coopdebici.com
    I was very carefully optimizing the images in adobe photoshop, and make them always at 100%.
    When the web site was oline i takes a lot to charge some images and i just realized that Muse increase a lot the file size of most of them!
    So, how can i keep the original optimize settings?
    I don't want to replace the images manually using ftp
    Help me please
    Sebastián

    I just realized what happens.
    I see that some images keep the original names an its compression and size, but other images doesn't.
    The "problem" is with the round corners that i used, the original images are in jpg, but in order to make the round corner the Muse convert them in to png and it increases a lot the file size.
    This can be helpful for you

  • How can I keep the 4.3 frame in Imovie 10

    How can I keep the old movie frame 4.3, in Imovie 10.

    It's a two steps process:
    1) Keep using the old iMovie 9.0.9
    2) Stop using this garbage that is iMovie 10.0

Maybe you are looking for