Another one for my personal notes.
Deploying CA signed SSL certificates for VMware View 5.1 is actually much easier than working with CA certificates for vSphere or ESXi. The vSphere team could learn a lot from their desktop peers.
Again I found Derek Seaman's blog an invaluable resource. I almost opted not to redocument the steps but decided that my process was different and specific enough that I should write it down so I don't have to remember the ∆
Christopher's Brain Dump
"I wrote it down so I wouldn't have to remember!" A place where I can dump info I want to remember in a way that might benefit others too.
Thursday, October 18, 2012
Wednesday, October 17, 2012
CA signed SSL certificates with ESXi
After working through how to deploy the VCSA with CA signed certificates I began work on doing the same for ESXi. The VMware provided documentation on this is much better.
Take a look and my rundown on that for key references back to the VMware community forums (link)
Update 1:
While these instructions work and provide hosts with CA signed SSL certificates, I did run into a problem that I'm not sure I have a solution for.
In my test environment, and in fact the majority of the end customer systems I build, hosts are configured with private IP address subnets (10.0.0.0/8, 172.16.0.0/12 or 192.168.0.0/16). I noticed that while access the host's internal HTTP server via it's IP address and performance operations like licensing or VM guest customization fail with an SSL certificate error.
It appears that the OS/Browser level libraries in IE/Safari/Chrome/Firefox no longer allow IANA reserved addresses in SSL certificates (See: GoDaddy KB ID6935). Somehow this change also applies to the VCSA and vSphere client.
I reserve the right to have done something wrong, but I suspect not in this case.
Update 1:
While these instructions work and provide hosts with CA signed SSL certificates, I did run into a problem that I'm not sure I have a solution for.
In my test environment, and in fact the majority of the end customer systems I build, hosts are configured with private IP address subnets (10.0.0.0/8, 172.16.0.0/12 or 192.168.0.0/16). I noticed that while access the host's internal HTTP server via it's IP address and performance operations like licensing or VM guest customization fail with an SSL certificate error.
It appears that the OS/Browser level libraries in IE/Safari/Chrome/Firefox no longer allow IANA reserved addresses in SSL certificates (See: GoDaddy KB ID6935). Somehow this change also applies to the VCSA and vSphere client.
I reserve the right to have done something wrong, but I suspect not in this case.
Tuesday, October 16, 2012
Deploy VCSA with CA signed certificates
I had a much longer post written following my long, hard fall down the stairs. At the end of a long exercise I had a system that almost worked but the inventory service was still broken.
Then I found this post:
http://communities.vmware.com/message/2124455#2124455
and it's reply
http://communities.vmware.com/message/2127095#2127095
This lead me down the path of the following:
Then I found this post:
http://communities.vmware.com/message/2124455#2124455
and it's reply
http://communities.vmware.com/message/2127095#2127095
This lead me down the path of the following:
Tuesday, September 18, 2012
Nexus S (i9020a) Random Reboots
I've been trying to track down the root cause for random reboots on my venerable Nexus S for a few months now. Some days/weeks are better than others, though the last two weeks have been very rough in the random reboot department.
Previously I've seen issues that seemed to be related to audio playback. I mostly notice reboots when the phone is trying to play a notification audio while playing something else. For example, running Navigate, Podkicker and getting a new email seemed to be related.
Tonight I finally managed to find the crash in the logcat. Not knowing what to look for, I happened to have a crash while no audio playback was occurring although I had recently finished playback on a podcast episode (no agenda 444 for the curious). Scrolling through the log cat I think I finally found my smoking gun:
This is very interesting because it looks like the WiFiService function failed and that brought the system down.
I don't yet have a solution. This post serves as my reminder to dig a little deeper as Mama Odie says and find the real cause. I'm tempted to disable wifi and try running the phone for a few days without it.
I'll update with research as time allows.
Previously I've seen issues that seemed to be related to audio playback. I mostly notice reboots when the phone is trying to play a notification audio while playing something else. For example, running Navigate, Podkicker and getting a new email seemed to be related.
Tonight I finally managed to find the crash in the logcat. Not knowing what to look for, I happened to have a crash while no audio playback was occurring although I had recently finished playback on a podcast episode (no agenda 444 for the curious). Scrolling through the log cat I think I finally found my smoking gun:
W/dalvikvm( 248): Invalid indirect reference 0x417f0d90 in decodeIndirectRef
E/dalvikvm( 248): VM aborting
F/libc ( 248): Fatal signal 11 (SIGSEGV) at 0xdeadd00d (code=1), thread 313 (WifiService)
I/DEBUG ( 85): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
I/DEBUG ( 85): Build fingerprint: 'google/sojua/crespo:4.1.1/JRO03E/403059:user/release-keys'
I/DEBUG ( 85): pid: 248, tid: 313, name: WifiService >>> system_server <<<
I/DEBUG ( 85): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr deadd00d
I/DEBUG ( 85): r0 00000000 r1 00000000 r2 deadd00d r3 00000000
I/DEBUG ( 85): r4 407da1a8 r5 0000020c r6 417f0d90 r7 417f0d90
I/DEBUG ( 85): r8 54fbac80 r9 4d113ea0 sl 4bcd7610 fp 54fbac94
I/DEBUG ( 85): ip 00004000 sp 54fbaa28 lr 4010ba19 pc 40775cf8 cpsr 60000030
I/DEBUG ( 85): d0 74726f6261204d56 d1 333237312034396e
I/DEBUG ( 85): d2 0000000000000075 d3 00000000002e166c
I/DEBUG ( 85): d4 00000000000075bd d5 00000000014b9a75
I/DEBUG ( 85): d6 0000000000000001 d7 0000000000000000
I/DEBUG ( 85): d8 0000000000000000 d9 0000000000000000
I/DEBUG ( 85): d10 0000000000000000 d11 0000000000000000
I/DEBUG ( 85): d12 0000000000000000 d13 0000000000000000
I/DEBUG ( 85): d14 0000000000000000 d15 0000000000000000
I/DEBUG ( 85): d16 7fffffffffffffff d17 7fffffffffffffff
I/DEBUG ( 85): d18 0000000000000000 d19 0000000000003b69
I/DEBUG ( 85): d20 00000000014b9a75 d21 3e66376972bea4d0
I/DEBUG ( 85): d22 3f4de16b9c24a98f d23 3fb0f4a31edab38b
I/DEBUG ( 85): d24 3fede16b9c24a98f d25 3fe55559ee5e69f9
I/DEBUG ( 85): d26 0000000000000000 d27 0000000000000000
I/DEBUG ( 85): d28 0000000000000005 d29 0000000000000000
I/DEBUG ( 85): d30 0000000000000000 d31 0000000000000000
I/DEBUG ( 85): scr 60000010
I/DEBUG ( 85):
I/DEBUG ( 85): backtrace:
I/DEBUG ( 85): #00 pc 00045cf8 /system/lib/libdvm.so (dvmAbort+75)
I/DEBUG ( 85): #01 pc 00049d77 /system/lib/libdvm.so (dvmDecodeIndirectRef(Thread*, _jobject*)+210)
I/DEBUG ( 85): #02 pc 0004ac15 /system/lib/libdvm.so
I/DEBUG ( 85): #03 pc 0005fabf /system/lib/libandroid_runtime.so
I/DEBUG ( 85): #04 pc 0001de30 /system/lib/libdvm.so (dvmPlatformInvoke+112)
I/DEBUG ( 85): #05 pc 0004ce73 /system/lib/libdvm.so (dvmCallJNIMethod(unsigned int const*, JValue*, Method const*, Thread*)+390)
I/DEBUG ( 85): #06 pc 00000214 /dev/ashmem/dalvik-jit-code-cache (deleted)
I/DEBUG ( 85):
I/DEBUG ( 85): stack:
I/DEBUG ( 85): 54fba9e8 00000001
I/DEBUG ( 85): 54fba9ec 4013acf0
I/DEBUG ( 85): 54fba9f0 4013acf0
I/DEBUG ( 85): 54fba9f4 4013acf0
I/DEBUG ( 85): 54fba9f8 4013acf0
I/DEBUG ( 85): 54fba9fc 4010ba19 /system/lib/libc.so (__sflush_locked+36)
I/DEBUG ( 85): 54fbaa00 40135754 /system/lib/libc.so
I/DEBUG ( 85): 54fbaa04 4013acf0
I/DEBUG ( 85): 54fbaa08 00000000
I/DEBUG ( 85): 54fbaa0c 4010c9e9 /system/lib/libc.so (_fwalk+32)
I/DEBUG ( 85): 54fbaa10 407da1a8 /system/lib/libdvm.so
I/DEBUG ( 85): 54fbaa14 0000020c
I/DEBUG ( 85): 54fbaa18 417f0d90 /dev/ashmem/dalvik-heap (deleted)
I/DEBUG ( 85): 54fbaa1c 417f0d90 /dev/ashmem/dalvik-heap (deleted)
I/DEBUG ( 85): 54fbaa20 df0027ad
I/DEBUG ( 85): 54fbaa24 00000000
I/DEBUG ( 85): #00 54fbaa28 00000029
I/DEBUG ( 85): 54fbaa2c 6c756e28
I/DEBUG ( 85): 54fbaa30 0000296c
I/DEBUG ( 85): 54fbaa34 00000000
I/DEBUG ( 85): 54fbaa38 00000000
I/DEBUG ( 85): 54fbaa3c 00000000
I/DEBUG ( 85): 54fbaa40 00000000
I/DEBUG ( 85): 54fbaa44 00000000
I/DEBUG ( 85): 54fbaa48 00000000
I/DEBUG ( 85): 54fbaa4c 00000000
I/DEBUG ( 85): 54fbaa50 00000000
I/DEBUG ( 85): 54fbaa54 00000000
I/DEBUG ( 85): 54fbaa58 00000000
I/DEBUG ( 85): 54fbaa5c 00000000
I/DEBUG ( 85): 54fbaa60 00000000
I/DEBUG ( 85): 54fbaa64 00000000
I/DEBUG ( 85): ........ ........
I/DEBUG ( 85): #01 54fbac40 417f0d90 /dev/ashmem/dalvik-heap (deleted)
I/DEBUG ( 85): 54fbac44 00000000
I/DEBUG ( 85): 54fbac48 4dbfd488
I/DEBUG ( 85): 54fbac4c 4077ac19 /system/lib/libdvm.so
I/DEBUG ( 85): #02 54fbac50 4dbfd488
I/DEBUG ( 85): 54fbac54 4bcd7600
I/DEBUG ( 85): 54fbac58 00000000
I/DEBUG ( 85): 54fbac5c 00000003
I/DEBUG ( 85): 54fbac60 4bcd7600
I/DEBUG ( 85): 54fbac64 401e6ac1 /system/lib/libandroid_runtime.so
I/DEBUG ( 85):
I/DEBUG ( 85): memory near r4:
I/DEBUG ( 85): 407da188 00000000 00000000 00000000 00000000 ................
I/DEBUG ( 85): 407da198 00000000 00000000 00000000 00000000 ................
I/DEBUG ( 85): 407da1a8 40c217b8 40b1efd0 00500000 08000000 ...@...@..P.....
I/DEBUG ( 85): 407da1b8 03000000 00004000 00006000 00000001 .....@...`......
I/DEBUG ( 85): 407da1c8 00000100 00000002 00000001 00000000 ................
I/DEBUG ( 85):
I/DEBUG ( 85): memory near r6:
I/DEBUG ( 85): 417f0d70 40c78928 00000000 00000005 00000000 (..@............
I/DEBUG ( 85): 417f0d80 006c0077 006e0061 006f0030 00000023 w.l.a.n.0.o.#...
I/DEBUG ( 85): 417f0d90 40c780b8 00000000 417f0db0 06bf7eae ...@.......A.~..
I/DEBUG ( 85): 417f0da0 00000000 00000005 40cf3f88 00000023 .........?.@#...
I/DEBUG ( 85): 417f0db0 40c78928 00000000 00000005 00000000 (..@............
I/DEBUG ( 85):
I/DEBUG ( 85): memory near r7:
I/DEBUG ( 85): 417f0d70 40c78928 00000000 00000005 00000000 (..@............
I/DEBUG ( 85): 417f0d80 006c0077 006e0061 006f0030 00000023 w.l.a.n.0.o.#...
I/DEBUG ( 85): 417f0d90 40c780b8 00000000 417f0db0 06bf7eae ...@.......A.~..
I/DEBUG ( 85): 417f0da0 00000000 00000005 40cf3f88 00000023 .........?.@#...
I/DEBUG ( 85): 417f0db0 40c78928 00000000 00000005 00000000 (..@............
I/DEBUG ( 85):
I/DEBUG ( 85): memory near r8:
I/DEBUG ( 85): 54fbac60 4bcd7600 401e6ac1 4c0dd188 4bcd7600 .v.K.j.@...L.v.K
I/DEBUG ( 85): 54fbac70 00000003 4d113ea8 54fbac80 4074de34 .....>.M...T4.t@
I/DEBUG ( 85): 54fbac80 4d113ea0 00000001 40cc6420 4e3e4d01 .>.M.... d.@.M>N
I/DEBUG ( 85): 54fbac90 00000000 4077ce77 4d113ea0 4e3e4cff ....w.w@.>.M.L>N
I/DEBUG ( 85): 54fbaca0 401e6aa9 4bcd7610 dc700001 00000000 .j.@.v.K..p.....
I/DEBUG ( 85):
I/DEBUG ( 85): memory near r9:
I/DEBUG ( 85): 4d113e80 55c11189 00000000 00000000 4d113ebc ...U.........>.M
I/DEBUG ( 85): 4d113e90 4e0ba03e 4c0dd188 00000000 55cc94d5 >..N...L.......U
I/DEBUG ( 85): 4d113ea0 417f0d90 00000003 4d113edc 4e9039d6 ...A.....>.M.9.N
I/DEBUG ( 85): 4d113eb0 4c0dce40 4e0ba03e 55cc8f4d 00000003 @..L>..NM..U....
I/DEBUG ( 85): 4d113ec0 41833b80 417f0d90 4d113f30 4e9034b8 .;.A...A0?.M.4.N
I/DEBUG ( 85):
I/DEBUG ( 85): memory near sl:
I/DEBUG ( 85): 4bcd75f0 80000001 00000000 00000000 00000453 ............S...
I/DEBUG ( 85): 4bcd7600 4e903a70 4d113ea0 4c0dce40 4bf54000 p:.N.>.M@..L.@.K
I/DEBUG ( 85): 4bcd7610 41b16998 00000000 54fbada8 00000000 .i.A.......T....
I/DEBUG ( 85): 4bcd7620 54fbaddc 0000002c 00000000 4074dfc0 ...T,.........t@
I/DEBUG ( 85): 4bcd7630 00000000 00000000 4b518170 4d110300 ........p.QK...M
I/DEBUG ( 85):
I/DEBUG ( 85): memory near fp:
I/DEBUG ( 85): 54fbac74 4d113ea8 54fbac80 4074de34 4d113ea0 .>.M...T4.t@.>.M
I/DEBUG ( 85): 54fbac84 00000001 40cc6420 4e3e4d01 00000000 .... d.@.M>N....
I/DEBUG ( 85): 54fbac94 4077ce77 4d113ea0 4e3e4cff 401e6aa9 w.w@.>.M.L>N.j.@
I/DEBUG ( 85): 54fbaca4 4bcd7610 dc700001 00000000 4d0fb140 .v.K..p.....@..M
I/DEBUG ( 85): 54fbacb4 40141a4c 00000001 4e903a70 4d113dcc L..@....p:.N.=.M
I/DEBUG ( 85):
I/DEBUG ( 85): memory near ip:
I/DEBUG ( 85): 00003fe0 ffffffff ffffffff ffffffff ffffffff ................
I/DEBUG ( 85): 00003ff0 ffffffff ffffffff ffffffff ffffffff ................
I/DEBUG ( 85): 00004000 ffffffff ffffffff ffffffff ffffffff ................
I/DEBUG ( 85): 00004010 ffffffff ffffffff ffffffff ffffffff ................
I/DEBUG ( 85): 00004020 ffffffff ffffffff ffffffff ffffffff ................
I/DEBUG ( 85):
I/DEBUG ( 85): memory near sp:
I/DEBUG ( 85): 54fbaa08 00000000 4010c9e9 407da1a8 0000020c .......@..}@....
I/DEBUG ( 85): 54fbaa18 417f0d90 417f0d90 df0027ad 00000000 ...A...A.'......
I/DEBUG ( 85): 54fbaa28 00000029 6c756e28 0000296c 00000000 )...(null)......
I/DEBUG ( 85): 54fbaa38 00000000 00000000 00000000 00000000 ................
I/DEBUG ( 85): 54fbaa48 00000000 00000000 00000000 00000000 ................
I/DEBUG ( 85):
I/DEBUG ( 85): code around pc:
I/DEBUG ( 85): 40775cd8 34bcf8d3 ed2ef7d7 461d2300 b1525d1a ...4.....#.F.]R.
I/DEBUG ( 85): 40775ce8 18ad3301 7f00f5b3 e004d1f8 4a0a4798 .3...........G.J
I/DEBUG ( 85): 40775cf8 f7d77015 490ced26 4a0c2006 44794c0c .p..&..I. .J.LyD
I/DEBUG ( 85): 40775d08 447c447a ebd8f7d7 f7d72000 6ca3ec7e zD|D..... ..~..l
I/DEBUG ( 85): 40775d18 d1eb2b00 bf00e7eb deadd00d 0005fe54 .+..........T...
I/DEBUG ( 85):
I/DEBUG ( 85): code around lr:
I/DEBUG ( 85): 4010b9f8 447e4e08 68336836 f000b10b 4620fa4c .N~D6h3h....L. F
I/DEBUG ( 85): 4010ba08 ffcaf7ff 68304605 4620b110 fa50f000 .....F0h.. F..P.
I/DEBUG ( 85): 4010ba18 bd704628 00029a8a 4604b570 4811b928 (Fp.....p..F(..H
I/DEBUG ( 85): 4010ba28 e8bd4478 f0004070 4e0fbfcb 6836447e xD..p@.....N~D6h
I/DEBUG ( 85): 4010ba38 b10b6833 fa2ff000 f01089a0 d1060f18 3h..../.........
I/DEBUG ( 85):
I/DEBUG ( 85): memory map around fault addr deadd00d:
I/DEBUG ( 85): befd7000-beff8000 [stack]
I/DEBUG ( 85): (no map for address)
I/DEBUG ( 85): ffff0000-ffff1000 [vectors]
I/ServiceManager( 80): service 'mount' died
I/ServiceManager( 80): service 'uimode' died
I/ServiceManager( 80): service 'permission' died
I/ServiceManager( 80): service 'wifip2p' died
I/ServiceManager( 80): service 'netstats' died
I/ServiceManager( 80): service 'dropbox' died
I/ServiceManager( 80): service 'network_management' died
I/ServiceManager( 80): service 'statusbar' died
I/ServiceManager( 80): service 'clipboard' died
I/ServiceManager( 80): service 'batteryinfo' died
I/ServiceManager( 80): service 'power' died
I/ServiceManager( 80): service 'accessibility' died
I/ServiceManager( 80): service 'notification' died
I/ServiceManager( 80): service 'audio' died
I/ServiceManager( 80): service 'input_method' died
I/ServiceManager( 80): service 'package' died
I/ServiceManager( 80): service 'servicediscovery' died
I/ServiceManager( 80): service 'throttle' died
I/ServiceManager( 80): service 'updatelock' died
I/ServiceManager( 80): service 'location' died
I/ServiceManager( 80): service 'hardware' died
I/ServiceManager( 80): service 'textservices' died
I/ServiceManager( 80): service 'backup' died
I/ServiceManager( 80): service 'appwidget' died
I/ServiceManager( 80): service 'diskstats' died
I/ServiceManager( 80): service 'samplingprofiler' died
I/ServiceManager( 80): service 'commontime_management' died
I/ServiceManager( 80): service 'connectivity' died
I/ServiceManager( 80): service 'search' died
I/ServiceManager( 80): service 'country_detector' died
I/ServiceManager( 80): service 'alarm' died
I/ServiceManager( 80): service 'lock_settings' died
I/ServiceManager( 80): service 'content' died
I/ServiceManager( 80): service 'netpolicy' died
I/ServiceManager( 80): service 'battery' died
I/ServiceManager( 80): service 'wallpaper' died
I/ServiceManager( 80): service 'window' died
I/ServiceManager( 80): service 'input' died
I/ServiceManager( 80): service 'account' died
I/ServiceManager( 80): service 'bluetooth' died
I/ServiceManager( 80): service 'bluetooth_a2dp' died
I/ServiceManager( 80): service 'vibrator' died
I/ServiceManager( 80): service 'scheduling_policy' died
I/ServiceManager( 80): service 'usb' died
I/ServiceManager( 80): service 'serial' died
I/ServiceManager( 80): service 'device_policy' died
I/ServiceManager( 80): service 'devicestoragemonitor' died
I/ServiceManager( 80): service 'entropy' died
I/ServiceManager( 80): service 'activity' died
I/ServiceManager( 80): service 'meminfo' died
I/ServiceManager( 80): service 'gfxinfo' died
I/ServiceManager( 80): service 'dbinfo' died
I/ServiceManager( 80): service 'cpuinfo' died
I/ServiceManager( 80): service 'telephony.registry' died
I/ServiceManager( 80): service 'wifi' died
I/ServiceManager( 80): service 'sensorservice' died
I/ServiceManager( 80): service 'usagestats' died
W/Sensors (10346): sensorservice died [0x51a2b0e8]
W/Sensors ( 536): sensorservice died [0x5194f938]
W/Sensors ( 642): sensorservice died [0x4bf29cd8]
W/AudioFlinger( 90): power manager service died !!!
E/BufferQueue( 87): [com.google.android.apps.reader/com.google.android.apps.reader.app.ItemActivity] queueBuffer: SurfaceTexture has been abandoned!
E/SurfaceTextureClient(10880): queueBuffer: error queuing buffer to SurfaceTexture, -19
W/HardwareRenderer(10880): EGL error: EGL_BAD_NATIVE_WINDOW
W/BufferQueue( 87): [com.google.android.apps.reader/com.google.android.apps.reader.app.ItemActivity] cancelBuffer: BufferQueue has been abandoned!
W/HardwareRenderer(10880): Mountain View, we've had a problem here. Switching back to software rendering.
E/installd( 92): eof
E/installd( 92): failed to read size
I/installd( 92): closing connection
W/InputMethodManager(10880): IME died: null
W/InputMethodManager(10880): android.os.DeadObjectException
W/InputMethodManager(10880): at android.os.BinderProxy.transact(Native Method)
W/InputMethodManager(10880): at com.android.internal.view.IInputMethodManager$Stub$Proxy.startInput(IInputMethodManager.java:603)
W/InputMethodManager(10880): at android.view.inputmethod.InputMethodManager.startInputInner(InputMethodManager.java:1100)
W/InputMethodManager(10880): at android.view.inputmethod.InputMethodManager.checkFocus(InputMethodManager.java:1199)
W/InputMethodManager(10880): at android.view.inputmethod.InputMethodManager.checkFocus(InputMethodManager.java:1207)
W/InputMethodManager(10880): at android.view.ViewRootImpl$ViewRootHandler.handleMessage(ViewRootImpl.java:2941)
W/InputMethodManager(10880): at android.os.Handler.dispatchMessage(Handler.java:99)
W/InputMethodManager(10880): at android.os.Looper.loop(Looper.java:137)
W/InputMethodManager(10880): at android.app.ActivityThread.main(ActivityThread.java:4745)
W/InputMethodManager(10880): at java.lang.reflect.Method.invokeNative(Native Method)
W/InputMethodManager(10880): at java.lang.reflect.Method.invoke(Method.java:511)
W/InputMethodManager(10880): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
W/InputMethodManager(10880): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
W/InputMethodManager(10880): at dalvik.system.NativeStart.main(Native Method)
E/BufferQueue( 87): [com.google.android.apps.reader/com.google.android.apps.reader.app.ItemActivity] connect: BufferQueue has been abandoned!
D/libEGL (11250): loaded /vendor/lib/egl/libEGL_POWERVR_SGX540_120.so
E/InputEventReceiver( 444): channel '4192b4d0 StatusBar (client)' ~ Publisher closed input channel or an error occurred. events=0x9
E/InputEventReceiver( 519): channel '41ae1cd8 InputMethod (client)' ~ Publisher closed input channel or an error occurred. events=0x9
E/InputEventReceiver( 444): channel '419176a8 com.android.systemui.ImageWallpaper (client)' ~ Publisher closed input channel or an error occurred. events=0x9
E/InputEventReceiver( 552): channel '41a72588 com.android.launcher/com.android.launcher2.Launcher (client)' ~ Publisher closed input channel or an error occurred. events=0x9
E/Sensors ( 536): SensorEventQueue::waitForEvent error HANGUP
D/Zygote ( 88): Process 248 terminated by signal (11)
I/Zygote ( 88): Exit zygote because system server (248) has terminated
I/ServiceManager( 80): service 'media.audio_flinger' died
I/ServiceManager( 80): service 'media.player' died
I/ServiceManager( 80): service 'media.camera' died
I/ServiceManager( 80): service 'media.audio_policy' died
I/Netd (11254): Netd 1.0 starting
D/libEGL (11250): loaded /vendor/lib/egl/libGLESv1_CM_POWERVR_SGX540_120.so
D/libEGL (11250): loaded /vendor/lib/egl/libGLESv2_POWERVR_SGX540_120.so
D/AndroidRuntime(11256):
D/AndroidRuntime(11256): >>>>>> AndroidRuntime START com.android.internal.os.ZygoteInit <<<<<<
This is very interesting because it looks like the WiFiService function failed and that brought the system down.
I don't yet have a solution. This post serves as my reminder to dig a little deeper as Mama Odie says and find the real cause. I'm tempted to disable wifi and try running the phone for a few days without it.
I'll update with research as time allows.
Wednesday, August 15, 2012
Beyond WHS - Serviio Pro / ServiiGo / ServiiDroid / BubbleUPnP
When my HP MediaSmart LX195 was still running WHS 2011, I found the combination of Serviio and BubbleUPnP sufficient for my needs. Serviio's user community is large enough that more talented and experienced Linux users than I created a init.d script (see:http://forum.serviio.org/viewtopic.php?f=17&t=71). This is no small task and something that does not yet exist for BubbleUPnP.
Bubbleguuum did provide some advise on automatically launching BubbleUPnP server on Linux in the XDA thread (http://forum.xda-developers.com/showthread.php?t=1118891) but I'm not completely comfortable with the idea of adding the app to the rc.local script. (see post 29675789). Maybe its a case of PEBKAC but I still want a more elegant solution.
I'm not always the most diligent in checking for software updates for tools that are working, so this may be old news, but enter Serviio 1.0. This release adds an web based streaming and an API for applications to allow functionality similar to the network streaming parts of BubbleUPnP Server. Released in parallel with the new version of Serviio is ServiiGo.
Enabling the streaming web based streaming for Serviio and ServiiGo required a little more than the typical installation. On Ubuntu Server, I needed to follow the instructions documented in the Serviio Wiki for installing ffmpeg from source. (See: http://wiki.serviio.org/doku.php?id=build_ffmpeg_linux) The process took about an hour on my atom based home server, but at least I only need to do it once. Once done web streaming worked, ServiiGo worked, but only when downsampling to medium or low resolutions.
In order to stream my video content at native resolution and bit rate in ServiiGo I need to modify the application-profiles.xml file per the instructions in this thread: http://forum.serviio.org/viewtopic.php?p=50480#p50480. Buffering is slow and scrubbing doesn't work, but otherwise its a competent alternative to the BubbleUPnP for streaming when away from home.
Bubbleguuum did provide some advise on automatically launching BubbleUPnP server on Linux in the XDA thread (http://forum.xda-developers.com/showthread.php?t=1118891) but I'm not completely comfortable with the idea of adding the app to the rc.local script. (see post 29675789). Maybe its a case of PEBKAC but I still want a more elegant solution.
I'm not always the most diligent in checking for software updates for tools that are working, so this may be old news, but enter Serviio 1.0. This release adds an web based streaming and an API for applications to allow functionality similar to the network streaming parts of BubbleUPnP Server. Released in parallel with the new version of Serviio is ServiiGo.
Enabling the streaming web based streaming for Serviio and ServiiGo required a little more than the typical installation. On Ubuntu Server, I needed to follow the instructions documented in the Serviio Wiki for installing ffmpeg from source. (See: http://wiki.serviio.org/doku.php?id=build_ffmpeg_linux) The process took about an hour on my atom based home server, but at least I only need to do it once. Once done web streaming worked, ServiiGo worked, but only when downsampling to medium or low resolutions.
In order to stream my video content at native resolution and bit rate in ServiiGo I need to modify the application-profiles.xml file per the instructions in this thread: http://forum.serviio.org/viewtopic.php?p=50480#p50480. Buffering is slow and scrubbing doesn't work, but otherwise its a competent alternative to the BubbleUPnP for streaming when away from home.
Sunday, July 22, 2012
Replacing WHS 2011 with Ubuntu Server 12.04 (Part 6 - Install and configure Serviio & BubbleUPNP)
The main objectives of this project are already done, but I can't say I've fully replaced my WHS2011 install with Ubuntu without a DNLA server and proxy.
First the server. Although Windows Home Server 2011 did have some built in DNLA functionality I was running Serviio as a replacement for the added functionality.
$ wget http://download.serviio.org/releases/serviio-0.6.2-linux.tar.gz
--2012-07-21 23:55:30-- http://download.serviio.org/releases/serviio-0.6.2-linux.tar.gz
Resolving download.serviio.org (download.serviio.org)... 195.3.138.234
Connecting to download.serviio.org (download.serviio.org)|195.3.138.234|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 14038981 (13M) [application/x-gzip]
Saving to: `serviio-0.6.2-linux.tar.gz'
100%[================================================>] 14,038,981 2.01M/s in 8.4s
2012-07-21 23:55:39 (1.59 MB/s) - `serviio-0.6.2-linux.tar.gz' saved [14038981/14038981]
$ tar -xzf serviio-0.6.2-linux.tar.gz
The rest of the instructions I used are exactly from: http://forum.serviio.org/viewtopic.php?p=11646#p11646
Here is my init.d script:
First the server. Although Windows Home Server 2011 did have some built in DNLA functionality I was running Serviio as a replacement for the added functionality.
$ wget http://download.serviio.org/releases/serviio-0.6.2-linux.tar.gz
--2012-07-21 23:55:30-- http://download.serviio.org/releases/serviio-0.6.2-linux.tar.gz
Resolving download.serviio.org (download.serviio.org)... 195.3.138.234
Connecting to download.serviio.org (download.serviio.org)|195.3.138.234|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 14038981 (13M) [application/x-gzip]
Saving to: `serviio-0.6.2-linux.tar.gz'
100%[================================================>] 14,038,981 2.01M/s in 8.4s
2012-07-21 23:55:39 (1.59 MB/s) - `serviio-0.6.2-linux.tar.gz' saved [14038981/14038981]
$ tar -xzf serviio-0.6.2-linux.tar.gz
$ mv serviio-0.6.2 serviio
$ sudo mv serviio /usr/share/
$ sudo chown -R serviio:staff /usr/share/serviio/
$ sudo chown -R serviio:staff /usr/share/serviio/
The rest of the instructions I used are exactly from: http://forum.serviio.org/viewtopic.php?p=11646#p11646
Here is my init.d script:
Saturday, July 21, 2012
Replacing WHS 2011 with Ubuntu Server 12.04 (Part 5 - Install and configure Samba)
While I personally spend the most time on a MacBook both personally and professionally, both my wife and I spend a great deal of time with Windows as well. As such, it is important that the home directories and shared data on the home server be accessible to both Windows, Linux and MacOS. This is especially true as the home server must also serve as a backup repository for the several windows machines in the house as well.
Thus, it's time to configure Samba. As the basis for my smbd config I primarily used: http://www.sitepoint.com/ubuntu-12-04-lts-precise-pangolin-file-sharing-with-samba/ but there are a plethora of resources for configuring Samba and I've only scratched the surface of what's available.
With the shares configured and created, restart smbd and nmbd.
Thus, it's time to configure Samba. As the basis for my smbd config I primarily used: http://www.sitepoint.com/ubuntu-12-04-lts-precise-pangolin-file-sharing-with-samba/ but there are a plethora of resources for configuring Samba and I've only scratched the surface of what's available.
$ sudo apt-get install samba
[global]
unix charset = UTF-8
# -------------------------------------------
# DEFINE YOUR WORKGROUP AND COMPUTER NAME HERE
workgroup = WORKGROUP
server string = homeserver-s
netbios name = homeserver-s
# -------------------------------------------
dns proxy = no
name resolve order = lmhosts wins bcast host
# -------------------------------------------
# IF YOU SET BIND INTERFACES TO YES, TO AVOID LOG ERRORS,
# MAKE SURE YOUR SAMBA SERVICE STARTS AFTER THE ETHERNET CARD IS SWITCHED ON
# bind interfaces only = no
# bind interfaces only = yes
bind interfaces only = no
# ADD THE ETHERNET CARD AND IP ADDRESSES YOU ALLOW
interfaces = eth0 127.0.0.0/8 192.168.1.0/24
# -------------------------------------------
# SAMBA LOG FILES
log file = /var/log/samba/log.%m
max log size = 1000
syslog only = no
syslog = 0
# -------------------------------------------
panic action = /usr/share/samba/panic-action %d
# LIMIT ACCESS TO USERS ONLY
security = user
# USING TDBSAM
encrypt passwords = true
passdb backend = tdbsam
obey pam restrictions = yes
unix password sync = yes
passwd program = /usr/bin/passwd %u
passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
pam password change = yes
map to guest = bad user
usershare allow guests = no
# -------------------------------------------
# INCLUDE THIS SECTION TO DISABLE PRINTERS/CUPS ONLY
load printers = no
printing = bsd
printcap name = /dev/null
disable spoolss = yes
# -------------------------------------------
# DIRECTORIES
# -------------------------------------------
# ENABLE HOME FOLDER ACCESS
[homes]
comment = Home Directories
browseable = no
writable = yes
valid users = %S
# valid users = MYDOMAIN\%S
create mask =0755
directory mask =0755
# -------------------------------------------
# EXAMPLE FOLDER WITH LIMITED ACCESS, UNCOMMENT AND CUSTOMISE AS NECESSARY
#[example]
# comment = example share folder on my-computer-name
# path = /foldername/foldername/
# browseable = yes
# guest ok = no
# writable = yes
# create mask = 0755
# directory mask = 0755
# valid users = @your-username
# force group = your-username-or-group
# force create mode = 0755
# -------------------------------------------
# -------------------------------------------
[Videos]
comment = Transcoded movies and television shows
path = /data/external/videos
browseable = yes
guest ok = no
writable = yes
valid users = @staff
force group = staff
force create mode = 0664
force directory mode = 0775
With the shares configured and created, restart smbd and nmbd.
$ sudo server smbd restart && sudo service nmbd restart
Before user authentication will work, the following needs to be run for each user that will be granted access. The user account also needs to be a member of the staff group, which is effectively power users on my system.
$ smbpasswd -a new-username-here
This command will prompt for a smb password. As configured I'm assuming the unix and smb passwords are the same.
Subscribe to:
Posts (Atom)