LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Newbie
User Name
Password
Linux - Newbie This 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

Tags used in this thread
Popular LQ Tags , , ,

Reply
 
Thread Tools
Old 10-01-2009, 10:46 AM   #1
Dagb
LQ Newbie
 
Registered: Nov 2008
Posts: 4
Thanked: 0
Starting vpn session from Desktop Icon Acer Aspire One


[Log in to get rid of this advertisement]
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 10:49 AM..
windows_xp_2003 Dagb is offline  
Tag This Post , ,
Reply With Quote
Old 10-01-2009, 06:21 PM   #2
alroger
LQ Newbie
 
Registered: Apr 2008
Location: Brazil
Distribution: ArchLinux, Ubuntu and Fedora
Posts: 14
Thanked: 0
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.
linux alroger is offline     Reply With Quote
Old 10-02-2009, 01:13 PM   #3
Dagb
LQ Newbie
 
Registered: Nov 2008
Posts: 4
Thanked: 0

Original Poster
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.
linux Dagb is offline  
Tag This Post , , ,
Reply With Quote
Old 10-02-2009, 04:59 PM   #4
alroger
LQ Newbie
 
Registered: Apr 2008
Location: Brazil
Distribution: ArchLinux, Ubuntu and Fedora
Posts: 14
Thanked: 0
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.
linux alroger is offline     Reply With Quote
Old 10-16-2009, 09:52 AM   #5
Dagb
LQ Newbie
 
Registered: Nov 2008
Posts: 4
Thanked: 0

Original Poster
Got my script running.

Thank you alroger.
windows_xp_2003 Dagb is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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
No sound for Acer Aspire M3202 desktop computer on 32-bit kubuntu 8.04 TsanChung Linux - General 1 09-09-2009 02:01 AM
HELP!! Acer aspire one, no internet icon or connection veryan Linux - Newbie 2 09-07-2009 11:11 AM
Connect to Uni VPN on Acer Aspire One joe729605 Linux - Networking 3 03-27-2009 06:06 PM
Connect to PPTP VPN network with Acer Aspire One Boffy Linux - Networking 0 10-26-2008 11:44 PM
Eth0 not starting automatically in desktop session cbradlea Linux - Desktop 3 10-07-2007 02:15 AM


All times are GMT -5. The time now is 07: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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration