LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 10-01-2009, 09:46 AM   #1
Dagb
LQ Newbie
 
Registered: Nov 2008
Posts: 4

Rep: Reputation: 0
Starting vpn session from Desktop Icon Acer Aspire One


Hallo everyone, am new to Linux and this is my first post.
I have managed to configure a vpn connection on my Acer Aspire one running Linpus lite following instruction from
http://www.linuxquestions.org/questi...re-one-671585/
The problem is i can only start my vpn session from command line. Is there any way i can have the command am using (sudo vpnc <myvpn>) associated to an icon that i can click, on the desktop and have the command run in the background to start my vpn session?

Any help will be highly appreciated.

Thank you in advance.

Last edited by Dagb; 10-01-2009 at 09:49 AM.
 
Old 10-01-2009, 05:21 PM   #2
alroger
Member
 
Registered: Apr 2008
Location: Brazil
Distribution: Ubuntu
Posts: 33

Rep: Reputation: 17
Sure you can. I don't know Linpus, but normally you can create a shortcut to a script. And that script can contain the commands you usually use. Then throught the filemanager you should be able to drag and drop it as a shortcut in your desktop (shift-alt-drag).
Do you have NetworkManager in Linpus? It should be able to create a VPN... tried right clicking the network icon on your bar (if there is one)? Sometimes NetworkManager needs an extra plugin to create VPNs, did you check in the options for installing new packages? Like the package network-manager-pptp in Ubuntu.
 
Old 10-02-2009, 12:13 PM   #3
Dagb
LQ Newbie
 
Registered: Nov 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Thank you for your response. Unfortunately in linpus there is no option to create vpn connection from the network manager. I had tried all different ways i could think of. After a lot of research and Google I managed to get it to work using the procedure as described in my first post. My VPN connection works and i connect without a problem but i have to do all this from command line. linpus has a funny way of adding icons to the desk top.you can not drag and drop, You have to edit the XML file and specify the sequence # it's a whole different procedure. i have never written a script in Linux. would you please give some guidance on how to write a script.I know that linpus running on my acer is based on Fedora release 8 (Werewolf). Am not sure if all the apps that run on fedora 8 can run on linpus,a few that i have tried have not work. What i would like to do is have this command (sudo vpnc epsvpn) be put in the script that will then be associated to an icon that i can click and have the script run,processing the command, that way i don't have to type in the command everytime.
 
Old 10-02-2009, 03:59 PM   #4
alroger
Member
 
Registered: Apr 2008
Location: Brazil
Distribution: Ubuntu
Posts: 33

Rep: Reputation: 17
The script part is easy.
Just create a text file with the commands you want. Add as the first line:
#!/bin/bash

That tells linux that it is a bash script. You can use sh also...
Then make it executable:
chmod +x script

Then you can run it like:
./script

And if you know how to, create your XML icon file on your desktop to execute it.
 
Old 10-16-2009, 08:52 AM   #5
Dagb
LQ Newbie
 
Registered: Nov 2008
Posts: 4

Original Poster
Rep: Reputation: 0
Got my script running.

Thank you alroger.
 
  


Reply

Tags
acer, aspire, vpn


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Connect to Uni VPN on Acer Aspire One joe729605 Linux - Networking 4 09-18-2010 05:23 PM
No sound for Acer Aspire M3202 desktop computer on 32-bit kubuntu 8.04 TsanChung Linux - General 1 09-09-2009 01:01 AM
HELP!! Acer aspire one, no internet icon or connection veryan Linux - Newbie 2 09-07-2009 10:11 AM
Connect to PPTP VPN network with Acer Aspire One Boffy Linux - Networking 0 10-25-2008 02:06 PM
Eth0 not starting automatically in desktop session cbradlea Linux - Desktop 3 10-07-2007 01:15 AM


All times are GMT -5. The time now is 05:03 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration