Manage Jenkins -> Nodes -> Select a node -> Script Console
in the box paste
println InetAddress.localHost.hostAddress
hit ‘run’ and after a short wait the ip will be returned.
Manage Jenkins -> Nodes -> Select a node -> Script Console
in the box paste
println InetAddress.localHost.hostAddress
hit ‘run’ and after a short wait the ip will be returned.
12, Wycombe Rd N 51°41’04.40″, W 0°49’47.35″ http://maps.google.com/maps?q=loc:51.68456%2C-00.82982
I had a situation where I needed to embed a monowall interface stats into a webpage so thought i’d do a quick how to.
Create a user group
Login as an admin and navigate to System > User manager > Groups
Click the + to add a new group Choose a group name and description ie ‘stats’ Scroll down and select the field marked Status: Traffic graph status_graph.php
Click ‘Save’ Click the ‘Users’ tab Click the + to add a new user
Add new user details and under the ‘Group Name’ select the group you just created ie ‘stats’
Click ‘Save’ Navigate to Status > Traffic graph Choose the interface you want to monitor.
Right click on the graph and select ‘View Source’ Search the page ‘Ctrl+F’ for the word ’embed’
Put the embed tag into a webpage with the user details and ip address of your monowall device along with your usernam and password ie
src=”stats@YOUR-IP/graph.php?ifnum=re0&ifname=WAN”” >http://stats:stats@YOUR-IP/graph.php?ifnum=re0&ifname=WAN” etc etc
If you enter stats:stats@YOUR-IP/graph.php?ifnum=re0&ifname=WAN directly into a browser a full page will open showing your graph.
IP13 0QN, United Kingdom N 52°9’47.57″, E 1°23’02.42″ http://maps.google.com/maps?q=loc:52.16321%2C01.38401
I noticed my files were no longer being sync’d using the grive application. Further investigation revealed the following errors. ./grive Reading local directories Synchronizing folders exception: /usr/bin/grive/libgrive/src/protocol/AuthAgent.cc(174): Throw in function long int gr::AuthAgent::CheckHttpResponse(long int, const string&, const gr::http::Header&) Dynamic exception type: boost::exception_detail::clone_impl
I’ve previously had an issue with clients not being able to connect and ARP address mismatch showing in the logs.This happens when the source mac address doesn’t match ARP senders mac address. This was resolved by accessing the Draytek via telnet and executing.
ip arp accept 1
Which will return
Accept illegal ARP source mac REPLY packets
trying to cp a file to a webdav mounted owncloud share from my linux machine failed wth the following error
cp: cannot create regular file `/mnt/shared/documents/file.txt': Invalid argument
However I was still able to copy from owncloud to my box. checking /var/www/owncloud/data/owncloud.log showed
{"app":"webdav","message":"Sabre\DAV\Exception\BadRequest: expected filesize 162 got 0","level":4,"time":"2015-04-24T13:15:31+00:00"}
To fix this issue open /etc/davfs2/davfs2.conf and change
# use_locks 1
to
use_locks 0
unmount and remount your share and you should be be able to copy with no errors.
I was looking for a 5v monitor for my Pi for use in the car but the ones are found seemed to be very expensive, undeterred I set about buying a 12v and adapting it to my needs.
I found one on Amazon for £12.46 which seemed to fit the bill perfectly. Described as
BW® 4.3” Color TFT Car Monitor Support 480 x 272 Resolution + Car Rear-view Mirror System Monitor, Mini Monitor for Car / Automobile
Digital color TFT LCD car rearview monitor,4.3 inch TFT LCD Screen Size, 480 x 272 Resolution,16 : 9 Display Format
It is with high quality and good durability,With small appearance,convenient for carry,Support 2-channel video input(V1, V2).
It Support multi-role display,With high definition for good image,With a stand holder which has adhesive sticker in the bottom for sticking it in the car.
It Support automatically startup detection when reserving,It can connect with reversing camera, DVD, VCD etc.
It is installed in the drive foreground,Video system: NTSC / PAL auto switchable,Display black screen on no signal,Visible area: 72 x 53 mm.
Ok so at 480 x 272 not mega resolution but perfectly useable to my console command line based application.
Contents of the box was the monitor with hard wired phono audio and video cables and a socket based power connector with inline fuse. Also was a sperate jack plug with bare red and black wires for connecting to your power source.
I thought I would power it up just to make sure it worked before taking it apart, plugged into my home made bench psu and nothing?
I put my multimeter on it to make sure the psu was working properly and it was?
I then plugged in my Pi and the screen sprung into life.
It seems a 1p bulb is too much to ask for on a £12 monitor.
**** WARNING MAKING THE FOLLOWING CHANGES WILL OBVIOUSLY INVALIDATE ANY WARRANTY ETC, CONTINUE AT YOUR OWN RISK, I ACCEPT NO RESPONSIBILITY IF ANY OF YOUR EQUIPMENT BREAKS/CATCHES FIRE ETC ****
Removing the four small screws on the rear and opening the case revealed a simple circuit board.
After some digging around with the multimeter I found a 5v supply on the CHMC 8AY 1508-AD chip.
I removed the red feed wire from it’s currently location onto the 5v leg of the chip and added some electrical tape for strain relief.
Now time for the test (fingers crossed)
Great it powered up fine.
Wanting to run off a usb cigarette adapter in the car I added a USB connector to the bare red/black wires of the jack plug,
The finished article.
The following command will return the interface name of a particular ip address (x).
ip addr show | grep xxx.xxx.xxx.xxx | cut -f2 | awk '{ print $7 }' | head