Show Posts
|
|
Pages: 1 [2] 3 4 ... 10
|
|
16
|
LinuxMCE / Developers / Re: Need a shell scripter to develop mac/ipad/iphone detection routine
|
on: April 04, 2013, 06:12:48 pm
|
I also improved the speed of mine this morning. Now I have to go and read what you did and compare.  #!/bin/bash
# This script looks for Apple devices on the network and does something # for every device that it finds.
if [[ $1 != "background" ]] ;then echo "Backgrounding ..." screen -d -m -S "AppleRadar" "$0" "background" exit 0 fi
## Loging function function Log() { #echo "$(date) $*" >> /var/log/pluto/AppleScanner.log echo "$(date) $*" }
apple_macs=( 00:03:93 00:0a:27 00:0a:95 00:0d:93 00:11:24 00:14:51 00:16:cb 00:17:f2 00:19:e3 00:1b:63 00:1d:4f 00:1e:52 00:10:fa 00:1e:c2 00:1f:5b 00:1f:f3 00:21:e9 00:22:41 00:23:12 00:23:32 00:23:6c 00:23:df 00:24:36 00:25:00 00:25:4b 00:25:bc 00:26:08 00:26:4a 00:26:b0 00:26:bb 00:3e:e1 00:c6:10 00:f4:b9 04:0c:ce 04:1e:64 04:54:53 0c:74:c2 0c:77:1a 10:40:f3 10:93:e9 10:9a:dd 14:5a:05 14:8f:c6 18:20:32 18:34:51 18:e7:f4 1c:ab:a7 24:ab:81 28:37:37 28:6a:b8 28:6a:ba 28:cf:da 28:e0:2c 28:e7:cf 34:15:9e 34:51:c9 3c:07:54 3c:d0:f8 40:30:04 40:3c:fc 40:6c:8f 40:a6:d9 40:d3:2d 44:2a:60 44:d8:84 48:60:bc 4c:b1:99 50:ea:d6 58:1f:aa 58:55:ca 58:b0:35 5c:59:48 60:33:4b 60:c5:47 60:fa:cd 60:fb:42 64:20:0c 64:b9:e8 64:e6:82 68:09:27 68:a8:6d 6c:c2:6b 70:73:cb 70:cd:60 70:de:e2 74:e1:b6 78:a3:e4 78:ca:39 7c:11:be 7c:6d:62 7c:c3:a1 7c:c5:37 7c:f0:5f 88:c6:63 8c:58:77 8c:7b:9d 90:27:e4 90:84:0d 98:03:d8 98:d6:bb a4:67:06 a4:b1:97 a4:d1:d2 b8:17:c2 b8:8d:12 b8:c7:5d b8:f6:b1 b8:ff:61 c0:84:7a c4:2c:03 c8:2a:14 c8:33:4b c8:bc:c8 cc:08:e0 d0:23:db d4:9a:20 d8:30:62 d8:9e:3f d8:a2:5e dc:2b:61 e0:b9:ba e0:f8:47 e4:ce:8f e8:04:0b e8:06:88 ec:85:2f f0:b4:79 f0:cb:a1 f8:1e:df fc:25:3f 00:88:65 04:15:52 04:26:65 04:f7:e4 10:1c:0c 10:dd:b1 1c:e6:2b 20:7d:74 28:cf:e9 2c:b4:3a 30:90:ab 30:f7:c5 34:c0:59 38:0f:4a 38:48:4c 3c:e0:72 40:b3:95 44:fb:42 4c:8d:79 54:26:96 5c:96:9d 60:fe:c5 64:a3:cb 68:9c:70 70:11:24 78:6c:1c 7c:fa:df 80:92:9f 84:fc:fe 88:1f:a1 88:53:95 88:cb:87 94:94:26 98:b8:e3 9c:04:eb a0:ed:cd a8:96:8a a8:fa:d8 ac:3c:0b b4:f0:ab b8:78:2e bc:3b:af bc:92:6b c8:6f:1d cc:78:5f d8:00:4d d8:d1:cb e4:25:e7 e4:8b:7f e8:8d:28 f0:d1:a9 f4:1b:a1 f4:f1:5a )
while : ;do
arp_output=$( arp -n |fgrep -v incomplete |fgrep ether |tail -n +2|tr ' \t' '#') if [[ $? != "0" ]]; then arp_output="" fi
for outputLine in $arp_output do ## Get the important info serverIP=$(echo $outputLine | tr '#' ' ' | awk '{print $1}') serverMAC=$(echo $outputLine | tr '#' ' ' | awk '{print $3}') serverMAC_sub=${serverMAC:0:8}
Log "Processing $serverIP (mac: $serverMAC )"
for mac in ${apple_macs[@]} do if [ "$serverMAC_sub" == "$mac" ] then Log Found an apple product here: $serverIP $serverMAC fi done
done
## Wait 60 seconds before doing another scan sleep 60 done
|
|
|
|
|
17
|
LinuxMCE / Developers / Re: Need a shell scripter to develop mac/ipad/iphone detection routine
|
on: April 04, 2013, 06:13:34 am
|
Not very efficient, but it works. #!/bin/bash
# This script looks for Apple devices on the network and does something # for every device that it finds.
if [[ $1 != "background" ]] ;then echo "Backgrounding ..." screen -d -m -S "AppleRadar" "$0" "background" exit 0 fi
## Loging function function Log() { #echo "$(date) $*" >> /var/log/pluto/AppleScanner.log echo "$(date) $*" }
apple_macs=( 00:03:93 00:0a:27 00:0a:95 00:0d:93 00:11:24 00:14:51 00:16:cb 00:17:f2 00:19:e3 00:1b:63 00:1d:4f 00:1e:52 00:10:fa 00:1e:c2 00:1f:5b 00:1f:f3 00:21:e9 00:22:41 00:23:12 00:23:32 00:23:6c 00:23:df 00:24:36 00:25:00 00:25:4b 00:25:bc 00:26:08 00:26:4a 00:26:b0 00:26:bb 00:3e:e1 00:c6:10 00:f4:b9 04:0c:ce 04:1e:64 04:54:53 0c:74:c2 0c:77:1a 10:40:f3 10:93:e9 10:9a:dd 14:5a:05 14:8f:c6 18:20:32 18:34:51 18:e7:f4 1c:ab:a7 24:ab:81 28:37:37 28:6a:b8 28:6a:ba 28:cf:da 28:e0:2c 28:e7:cf 34:15:9e 34:51:c9 3c:07:54 3c:d0:f8 40:30:04 40:3c:fc 40:6c:8f 40:a6:d9 40:d3:2d 44:2a:60 44:d8:84 48:60:bc 4c:b1:99 50:ea:d6 58:1f:aa 58:55:ca 58:b0:35 5c:59:48 60:33:4b 60:c5:47 60:fa:cd 60:fb:42 64:20:0c 64:b9:e8 64:e6:82 68:09:27 68:a8:6d 6c:c2:6b 70:73:cb 70:cd:60 70:de:e2 74:e1:b6 78:a3:e4 78:ca:39 7c:11:be 7c:6d:62 7c:c3:a1 7c:c5:37 7c:f0:5f 88:c6:63 8c:58:77 8c:7b:9d 90:27:e4 90:84:0d 98:03:d8 98:d6:bb a4:67:06 a4:b1:97 a4:d1:d2 b8:17:c2 b8:8d:12 b8:c7:5d b8:f6:b1 b8:ff:61 c0:84:7a c4:2c:03 c8:2a:14 c8:33:4b c8:bc:c8 cc:08:e0 d0:23:db d4:9a:20 d8:30:62 d8:9e:3f d8:a2:5e dc:2b:61 e0:b9:ba e0:f8:47 e4:ce:8f e8:04:0b e8:06:88 ec:85:2f f0:b4:79 f0:cb:a1 f8:1e:df fc:25:3f 00:88:65 04:15:52 04:26:65 04:f7:e4 10:1c:0c 10:dd:b1 1c:e6:2b 20:7d:74 28:cf:e9 2c:b4:3a 30:90:ab 30:f7:c5 34:c0:59 38:0f:4a 38:48:4c 3c:e0:72 40:b3:95 44:fb:42 4c:8d:79 54:26:96 5c:96:9d 60:fe:c5 64:a3:cb 68:9c:70 70:11:24 78:6c:1c 7c:fa:df 80:92:9f 84:fc:fe 88:1f:a1 88:53:95 88:cb:87 94:94:26 98:b8:e3 9c:04:eb a0:ed:cd a8:96:8a a8:fa:d8 ac:3c:0b b4:f0:ab b8:78:2e bc:3b:af bc:92:6b c8:6f:1d cc:78:5f d8:00:4d d8:d1:cb e4:25:e7 e4:8b:7f e8:8d:28 f0:d1:a9 f4:1b:a1 f4:f1:5a )
while : ;do
arp_output=$( arp -n |fgrep -v incomplete |fgrep ether |tail -n +2|tr ' \t' '#') if [[ $? != "0" ]]; then arp_output="" fi
for outputLine in $arp_output do #sleep 10 ## Get the important info serverIP=$(echo $outputLine | tr '#' ' ' | awk '{print $1}') serverMAC=$(echo $outputLine | tr '#' ' ' | awk '{print $3}')
Log "Processing $serverIP (mac: $serverMAC )"
for mac in ${apple_macs[@]} do mac_match="$mac.*" count=`expr match "$serverMAC" "$mac_match"` #echo expr match "$serverMAC" "$mac_match" if [ "$count" -eq "17" ] then Log Found an apple product here: $serverIP break; fi done
done
## Wait 60 seconds before doing another scan sleep 60 done
|
|
|
|
|
18
|
LinuxMCE / Developers / Re: Building Dynamic Orbiters with JSON/AJAX/HTML5
|
on: April 03, 2013, 05:08:59 pm
|
Your welcome to get involved at the Core/NC end if you'd like to or at the client end of things using your Web development skills. Post to this thread if you have ideas or questions etc.
All the best
Andrew
I'd like to get involved in both sides of that. I'll look at the plugin stuff as Thom mentioned. I've never looked at that type of code. Do I need a full development tree configured for this or can I just download the proper libs and etc. to get going?
|
|
|
|
|
21
|
LinuxMCE / Developers / Re: Building Dynamic Orbiters with JSON/AJAX/HTML5
|
on: April 02, 2013, 08:20:05 pm
|
|
I personally love the concept of using JSON/JSON-RPC for doing this as I've been doing web development for more years than I care to admit. It is ridiculously simple to implement clients for it and I can make my own integration services based upon any number of technologies. This is excellent. However, I've seen interfaces done wrong more than once and that made dealing with it a living hell.
My only problem at this point with LinuxMCE development has been getting a full development environment up and running to work on a small piece of code. I don't have the time to devote to getting a full dev environment going but I can contribute small things here and there like supporting new devices, etc. So, how would I quickly set up something to work with this project?
|
|
|
|
|
23
|
LinuxMCE / Users / Re: New drive not showing up
|
on: March 19, 2013, 05:37:02 pm
|
Yes, they are. I just found out that tune2fs has Filesystem volume name: BOB Last mounted on: /mnt/device/72 Filesystem UUID: 995013e8-c86d-453c-af46-800c73eb2167
and lshal has: block.device = '/dev/sdc1' (string) volume.label = '' (string) volume.uuid = '' (string)
OK, so something is wrong with my HAL. I'm sorry Dave, I'm afraid I can't do that. I just restarted the hald and all my information is showing back up. Really strange. OK, at least I know what is causing that one. I still don't know why these drives aren't showing up in the orbiters.
|
|
|
|
|
24
|
LinuxMCE / Users / Re: New drive not showing up
|
on: March 19, 2013, 05:05:45 pm
|
|
Nothing is showing up in the Unlock Devices page. This is absolutely something to do with the virtualized drives, I'm sure of it now. It was working previously before my drive got corrupted and I lost all of my configurations for my LMCE virtual images. Yeah, that was fun.
So, the current state as of late last night when I gave up and went to bed: I got rid of the virtual drives and mapped drives directly in. Now they no longer show up as "Virtual Disk" inside the PnpQueue rather they show real hard drive details and they get added! Yeah! Well, almost a yeah. The drives get added automatically and the process continues as usual until the drives go to get mounted. /mnt/device/71 fails with "Cannot find hal object with..." and exits due to weirdness in the partitions. The volumes have no UUID, serial, or label. I'm working on tracking this down right now. I hacked up the auto.PlutoStorageDevices to get it to work but the data on these drives doesn't show up in the orbiters. It is cataloged properly and works if I search by name but I cannot browse it. I'm looking into why the partition has no details (the drive does).
Questions: Do you want me to try and figure out why the virtualized drive detection doesn't work? Is that something worth fixing? If so, I'll track that down. Any idea why it wouldn't show up to browse in an orbiter?
|
|
|
|
|
25
|
LinuxMCE / Users / Re: New drive not showing up
|
on: March 18, 2013, 08:34:31 am
|
|
It is a new disk installed into the core machine. It shows up as local disk /dev/sdc1 and is a fresh mkfs.ext4 drive. I just don't see anything wrong but that it won't show up. The original disk is mounted currently (I needed the space) but the new one is in pristine condition as I've done nothing with it yet but attempt to debug why it isn't showing itself.
|
|
|
|
|
26
|
LinuxMCE / Users / Re: New drive not showing up
|
on: March 18, 2013, 01:44:47 am
|
Still not showing up. The device is virtualized on vSphere (probably the problem) and I'm trying to debug this. I added a second disk to see if I can find the problem. I have a bunch of entries like the following: | 3978 | 2013-03-17 17:30:05 | | | | | | aa193b52-d3bb-46be-82aa-3153e6d1b73b | 8 | 0 | 1790 | 0 | 1 | | 0 | 10 | 1 | 267|aa193b52-d3bb-46be-82aa-3153e6d1b73b|277|696.54 GB | 696.54 GB [sdc1] Virtual_disk on dcerouter | NULL | NULL | NULL | 0 | 2013-03-17 17:30:05 | NULL | | 3979 | 2013-03-17 17:40:05 | | | | | | aa193b52-d3bb-46be-82aa-3153e6d1b73b | 8 | 0 | 1790 | 0 | 1 | | 0 | 10 | 1 | 267|aa193b52-d3bb-46be-82aa-3153e6d1b73b|277|696.54 GB | 696.54 GB [sdc1] Virtual_disk on dcerouter | NULL | NULL | NULL | 0 | 2013-03-17 17:40:05 | NULL |
So, is scan_drives.sh used for scanning drives? If so, what calls that? If not, what does this type of scan? I'm trying to dig in and fix whatever is this problem. If it is the virtualization, then I'll try a different method. I'll see what I can figure out but I can't find the entry point of this scan just yet. Thanks1
|
|
|
|
|
28
|
LinuxMCE / Developers / Re: New Onkyo device
|
on: March 08, 2013, 09:34:50 pm
|
|
I checked in my changes again for the auto-detect. My system burned down and I had to make these changes again and re-commit them. I'm still getting errors when I commit so if someone can take a look at that (Bug #1527) and get my changes committed, I would be very happy.
|
|
|
|
|
29
|
LinuxMCE / Users / [SOLVED]New drive not showing up
|
on: March 08, 2013, 09:13:02 pm
|
|
My system crashed and I'm starting over with a new drive. I added a new extra drive for storage in my core and I think I may have hit "Ignore this device every time" on it since I had a slew of those notifications because it detected every non-MD system on the network and attempted adding all their drives too at the same time. So, I'm pretty sure it is my fault. Anyone know how to un-ignore this device? I looked in the MySQL tables and nothing stood out at me and I didn't find anything in the interface. If not, how do I best add this device?
Thanks!
|
|
|
|
|
30
|
LinuxMCE / Users / Re: Firewall issues
|
on: March 02, 2013, 10:20:16 pm
|
|
Anyone have any information on this? I've been having network problems ever since I re-installed a few weeks ago. So much so that my server has been down for almost the whole time since I didn't have time to figure this out.
|
|
|
|
|