LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-30-2017, 05:15 AM   #1
iFunction
Member
 
Registered: Nov 2015
Posts: 248

Rep: Reputation: Disabled
Internet connection requires graphical button press


Hi there,

So here at work, I am using a raspberry pi to build a project. I have an issue, though, the company has just made it so that you have to click a button on a web page to be able to access the internet. Unfortunately I am not running a GUI, which makes apt-get impossible.

Is there a way to send a command to set the button to true, so that I can carry on working at work.

DISCLAIMER: The situation is strange, it's a very large company, the project I am working on is customer facing, customer include all major shareholders and CEO so must happen IT cannot help but have agreed that if I know how to set the button click to True, I can do this. I am not trying to hack the network, and can completely justify my actions.

Is this at all possible?
 
Old 01-30-2017, 06:25 AM   #2
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,475

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
Quote:
Originally Posted by iFunction View Post
Is there a way to send a command to set the button to true, so that I can carry on working at work. [..]
Is this at all possible?
Yes, you could use curl and POST to post the results of the form as though you'd clicked a button or checked a box, or anything.

However, you'll have to work out for yourself, or with your IT department, on exactly what you need to send in order to validate their form.

I also find it strange that if this is such a "high profile" project your IT department can't assign a static IP by MAC address to your RasPi and give that an exception from this form filling.
 
Old 01-30-2017, 08:06 AM   #3
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by TenTenths View Post
I also find it strange that if this is such a "high profile" project your IT department can't assign a static IP by MAC address to your RasPi and give that an exception from this form filling.
Ditto. And it is perfectly acceptable to ask under this circumstance, in my experience.
eg: Asking is not "unusual".

fire up tcpdump and have a peek?
 
Old 01-30-2017, 08:50 AM   #4
iFunction
Member
 
Registered: Nov 2015
Posts: 248

Original Poster
Rep: Reputation: Disabled
Thanks, I think I should be able to work it out, currently all it is is a single web page with a label and a button, so hopefully, I should be able to find it from the source code of the page? I have a little bit of experience of POST from using couchdb, which funnily enough is the pi that needs connecting thank you, I will look into it.

@TenTenths, yes, you are spot on, why aren't the IT department helping, well, it's been a battle since I started, I am the only IT person in a company of over 2000 people that is no part of the IT department, I am also the only person that uses linux. It's a long story, I have asked and asked, and what has come back is that the IT department are not to help me with anything to do with Linux. So my only support is Documentation and any help that I can get from the forums.
 
Old 01-30-2017, 01:57 PM   #5
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
View > Page source would be my first response.

Who knows, it may be as simple as http://uri?button=yes
 
1 members found this post helpful.
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Initiating shutdown from a button press louigi600 Slackware - ARM 35 10-18-2016 12:11 AM
Fedora 16 installation requires internet connection while installing from DVD soumya_r Linux - Software 2 05-11-2012 08:48 PM
C++/QT3 accept button when press entered... BUT ... DropSig Programming 3 07-31-2008 06:41 AM
I want my Controller to output text with button press timrs Linux - Games 9 01-08-2007 06:19 AM
Press power button can't turn down the computer shadkong Linux - Hardware 2 05-04-2005 09:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:22 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration