Go to advanced search

by jecxjo
Sat Apr 18, 2015 5:53 pm
Forum: Advanced users
Topic: Pi as Scada (webserver)
Replies: 5
Views: 2005

Re: Pi as Scada (webserver)

Does your PLC support OPC? I've been looking into open source OPC drivers and I've found a couple options. The benefit of going this route is you may be able to find others to help and you open your support up to other brands of PLCs and RTUs.
by jecxjo
Thu Nov 15, 2012 5:13 pm
Forum: General programming discussion
Topic: Run terminal command from webpage
Replies: 15
Views: 12623

Re: Run terminal command from webpage

You'll want to look into writing CGI scripts. This is code that runs when a site is loaded. For instances on my Pi I have the following file /www/ping.cgi #!/bin/bash echo "Ping" >> /tmp/cgi-called.log cat << EOF Content-type: text/html <html> <head> <title>Cgi Script</title> </head> <body> CGI Scri...
by jecxjo
Thu Nov 08, 2012 10:01 pm
Forum: Debian
Topic: Single FAT SD card partition with loop file for root device?
Replies: 10
Views: 2303

Re: Single FAT SD card partition with loop file for root dev

Sorry fell to the bottom of my list of ToDo's. I'll take a look into it and see what I can come up with.
by jecxjo
Wed Nov 07, 2012 3:49 pm
Forum: Raspbian
Topic: Cross Compiling for Raspbian?
Replies: 12
Views: 7938

Re: Cross Compiling for Raspbian?

I succeeded sticking to this tutorial http://biffengineering.com/wiki/index.php?title=HowToSetupCrossCompileEnvironment I am using Linux Mint Debian. What needs to be done differently is: Add all the arch options before building CT-NG Change armel to armhf in the foldernames (not strictly necessary...
by jecxjo
Mon Nov 05, 2012 1:40 am
Forum: General programming discussion
Topic: How to compile a cross compiler for arm
Replies: 3
Views: 1879

Re: How to compile a cross compiler for arm

Gave me a reason to move info from my old site to my new one so here is my tutorial on building a cross compiler environment.

http://jecxjo.motd.org/code/blosxom.cgi ... nvironment
by jecxjo
Thu Oct 25, 2012 12:25 am
Forum: Beginners
Topic: Startup scripts
Replies: 2
Views: 1263

Re: Startup scripts

Rather than reinventing the wheel...here are a few examples I found via Google:

https://github.com/fhd/init-script-template

http://werxltd.com/wp/2012/01/05/simple ... -template/

Hopefully these are pretty self explanatory. Fill in the parts you need and try it out.
by jecxjo
Wed Oct 24, 2012 6:44 am
Forum: Beginners
Topic: Startup scripts
Replies: 2
Views: 1263

Re: Startup scripts

A few things you'll want your init script to do: Start The startup portion of your script should start the application (in daemon mode or as a background process), store the process id into a pid file and then exist gracefully. Might be worth while to check the pid file first to see if the process i...
by jecxjo
Wed Oct 24, 2012 3:42 am
Forum: Networking and servers
Topic: VPN alternative for accessing home network abroad.
Replies: 1
Views: 2014

Re: VPN alternative for accessing home network abroad.

A simpler solution would be to enable an ssh server on your Pi (which may already be enabled.) Most ssh servers allow for port forwarding, which would allow you to get access to your home network and it's internet connection. Using port forwarding you can setup a Socks Proxy and have your web browse...
by jecxjo
Wed Oct 24, 2012 3:25 am
Forum: C/C++
Topic: how to determine armel vs armhf
Replies: 10
Views: 34024

Re: how to determine armel vs armhf

The defacto standard binary format for Linux is ELF (Executable and Linkable Format). ELF binaries have a standard header format that contains information about the system the executable was compiled for. If you google ELF Header Format you'll be able to get the whole list of parameters. If you have...
by jecxjo
Wed Oct 17, 2012 9:33 pm
Forum: Recommended peripherals
Topic: how to start wireless adapter on boot
Replies: 10
Views: 21849

Re: how to start wireless adapter on boot

Which distro are you running?
by jecxjo
Tue Oct 16, 2012 7:38 pm
Forum: Troubleshooting
Topic: rootfs out of space
Replies: 4
Views: 1308

Re: rootfs out of space

Here's a handy little script that might help. In a shell type: alias ducks='sudo du -cms * | sort -rn | head -n 11' Now whenever you are in a directory type ducks and you get get a list of the largest files/directories in your current location. Start out at / and work your way to these large files.
by jecxjo
Mon Oct 15, 2012 12:11 am
Forum: Other
Topic: FreeBSD in Raspberry Pi
Replies: 8
Views: 8191

Re: FreeBSD in Raspberry Pi

Does anyone have an SD image of this build? My FreeBSD box is down for the count, was hoping the Pi could replace it but I have that chicken/egg situation.
by jecxjo
Tue Sep 25, 2012 3:36 pm
Forum: Raspbian
Topic: Root login without a password
Replies: 7
Views: 2957

Re: Root login without a password

I didn't really see security as an issue setting this up to the outside world or using as a server for any extended period of time is a by product and not it's real intended purpose. I've seen comments like this before and I think it can be harmful to the entire Internet community. It shouldn't mat...
by jecxjo
Tue Sep 25, 2012 3:24 pm
Forum: General discussion
Topic: Internet kiosk
Replies: 3
Views: 1647

Re: Internet kiosk

I have a kiosk user installed on my netbook using the instructions for Arch that I linked to. Its a full screen brower, defaults to DuckDuckGo and I use it if someone needs to borrow my computer. Works great.
by jecxjo
Mon Sep 24, 2012 4:08 pm
Forum: General discussion
Topic: Internet kiosk
Replies: 3
Views: 1647

Re: Internet kiosk

What are your ideas for your kiosk? Do you want users to log in, have accounts? Or do you just want a full screen browser up all the time? Here is a the beginning of a tutorial for building a Web Kiosk using Arch, should be applicable to most any distro with minor tweaks. https://wiki.archlinux.org/...
by jecxjo
Mon Sep 24, 2012 3:57 pm
Forum: Raspbian
Topic: Root login without a password
Replies: 7
Views: 2957

Re: Root login without a password

I agree. I think the tutorial page needs to have a big bold section stating PLEASE CHANGE YOUR ROOT PASSWORD!!!! as one of the first steps when setting up. I'm amazed at how many devices people have posted on the forum that have default root setups. Security is only as good as their admins make it. ...
by jecxjo
Sun Sep 23, 2012 11:30 pm
Forum: Raspbian
Topic: Root login without a password
Replies: 7
Views: 2957

Re: Root login without a password

No matter what distro you pick there is going to be a default password. They are all documented and would be standard practice as attempts on connecting to your Pi. Empty or default, doesn't change the fact that you should change the password at the beginning when you set yours up.
by jecxjo
Sat Sep 22, 2012 3:32 am
Forum: Python
Topic: turn on script with ftp holding
Replies: 7
Views: 1623

Re: turn on script with ftp holding

The best thing to do for figuring out what network traffic is flying by is to install Wireshark. Simple to use, very helpful.

http://www.wireshark.org/
by jecxjo
Wed Sep 12, 2012 4:12 am
Forum: Beginners
Topic: connecting to 802.1x network
Replies: 20
Views: 25931

Re: connecting to 802.1x network

Files are owned by libnl. Trying installing libnl-dev
by jecxjo
Mon Sep 10, 2012 4:52 pm
Forum: Python
Topic: turn on script with ftp holding
Replies: 7
Views: 1623

Re: turn on script with ftp holding

@ jecxjo for an echo server are you talking something similar to this? http://www.paulgriffiths.net/program/c/srcs/echoservsrc.html i have gotten the wake up script to work. now working on the sleep script. also going to test the sleep recover time . Then i will start on what you referred to Thanks...
by jecxjo
Mon Sep 10, 2012 4:50 pm
Forum: Beginners
Topic: connecting to 802.1x network
Replies: 20
Views: 25931

Re: connecting to 802.1x network

Okay, so I'm a huge linux noob, so I need a little clarification on that guide you posted. 1. "download this config file to /etc/." where is /etc/? When i put the flashed sd card in my laptop I can't explore any folders or anything, and I can't find anyway to explorer directories in raspian. 2. It ...
by jecxjo
Fri Sep 07, 2012 8:50 pm
Forum: Pidora / Fedora
Topic: raspberrypi-kernel-devel
Replies: 6
Views: 3954

Re: raspberrypi-kernel-devel

Depending on your distro /proc/config or /proc/config.gz might exist that would ease you into compiling the kernel. When you build the modules you'll need to build against a kernel tree. The -devel packages are exactly that code you'd pull for building the kernel. If the modules are in the main tree...
by jecxjo
Fri Sep 07, 2012 8:43 pm
Forum: Automation, sensing and robotics
Topic: How can you use a pi to controlled a mains switch
Replies: 32
Views: 14939

Re: How can you use a picture to controlled a mains switch

You're looking for a Relay Switch to break the mains power and keep yourself isolated. Here is a consumer product that skips all the wiring and just gives you Mains in/out and some pins to switch it.

http://www.powerswitchtail.com/Pages/default.aspx
by jecxjo
Fri Sep 07, 2012 8:37 pm
Forum: Beginners
Topic: 802.1x authentication
Replies: 1
Views: 2945

Re: 802.1x authentication

Just posted on your redundant post here
http://raspberrypi.org/phpBB3/viewtopic ... 26&t=16729
by jecxjo
Fri Sep 07, 2012 8:35 pm
Forum: Other projects
Topic: maplin LED+LCD Displays
Replies: 4
Views: 2243

Re: maplin LED+LCD Displays

First thing you'll want to do is pull the manual for these displays and find out what types of interfaces they have. With the pins provided on the Pi you should be able to do 232, SPI, I2C or even CAN (if you write a bit-banging driver which might already exist in the wild). Once you figure out the ...

Go to advanced search