Thursday, October 18, 2012

CA Signed Certificates with VMware View

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 ∆

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.

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:

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:

 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.

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
$ mv serviio-0.6.2 serviio
$ sudo mv serviio /usr/share/
$ 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.

$ 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.

 

Friday, July 20, 2012

Replacing WHS 2011 with Ubuntu Server 12.04 (Part 4 - Install and configure Netatalk)

One of my primary goals with this conversion is to allow my MacBook with 10.7 to use the home server as a time machine backup destination. Since Apple nerfed the ability to hack time machine into a SMB share I've been looking for a way to get netatalk on this hardware.

I found a few guides for installing netatalk on Ubuntu server, and while this was the best I wound up combining information from a number of places and a little trial and error in a virtual machine before settling on the steps.

  1. First we need to install netatalk and avahi-daemon. The first provides the actual afp daemon and the second the bonjour daemon to allow the MacBook to see the afp shares.
    $ sudo apt-get install netatalk avahi-daemon 
  2. Once installed, configure the netatalk daemon by editing /etc/default/netatalk
    $ sudo nano /etc/default/netatalk
    Ensure that the following options are set:
    ATALKD_RUN=no
    PAPD_RUN=no
    CNID_METAD_RUN=yes
    AFPD_RUN=yes
    TIMELORD_RUN=no
    A2BOOT_RUN=no
  3. Next modify the netatalk shares by editing /etc/netatalk/AppleVolumes.default
    $ sudo nano /etc/netatalk/AppleVolumes.default
    Add "tm" to the default options line:
    DEFAULT: options:tm,upriv,usedots
    And add a line similar to the following to create the Time Machine share. User home directories are shared by default as well but I find having a single share for time machine bundles it more manageble:
    /data/backup/TimeMachine "Time Machine" cnidscheme:dbd allow:@timemachine
  4. Before we forget we should create the timemachine group and folder.
    $ sudo addgroup timemachine
    $ sudo adduser timemachine
    $ sudo mkdir /data/local/backups/timemachine
    $ sudo chgrp timemachine /data/local/backups/timemachine
    $ sudo chmod 775 /data/local/backups/timemachine
  5. Lastly we need to configure avahi. This is done by creating /etc/avahi/services/afpd.service and adding the following XML code:
    $ sudo nano /etc/avahi/services/afpd.service


        %h
       
            _afpovertcp._tcp
            548
       
       
            _device-info._tcp
            0
            model=Xserve
       
  6. Restart netatalk and avahi and test in Finder
    $ sudo /etc/init.d/netatalk restart
    $ sudo service avahi-daemon reload
Next stop, samba...

EDIT: I did find it helped to set the group ownership on the shared folder to something like "users" or "staff" and set the permissions to 2775 to allow the group ownership to automatically propagate to new files added.

Replacing WHS 2011 with Ubuntu Server 12.04 (Part 3 - Configuring RAID5 with LVM)

To meet my capacity requirements, my HP LX195 has 3 external 1TB hard drives. While the Western Digital MyBook drives have proven reliable, I have still had disks fail and take data with them to the grave since I installed my home server unit a few years ago.

With a Linux based solution I decided to bite the bullet and figure out how to configure a RAID5 array out of the three. This reduces my over all available capacity, but should still prove sufficient. Besides, I have one USB port left for an additional drive for non-redundant bulk storage.

To do so I followed the instructions from the following site with only slight modifcation.
 http://dtbaker.com.au/random-bits/ubuntu---howto-easily-setup-raid-5-with-lvm.html

To summarize my personal steps:
  1. $ tail -f /var/log/syslog
  2. Connect drive 1, note device reported by syslog (should be sdb)
  3. Connect drive 2, note device reported by syslog (should be sdc)
  4. Connect drive 3, note device reported by syslog (should be sdd)
  5. Label all 3 drives for future reference
  6. $ sudo apt-get install mdadm smartmontools
  7. $ sudo nano /etc/defaults/smartmontools
  8. uncomment the "start_smartd=yes" line. I'm not sure if smartmontools will work with usb hard drives, but it's worth a shot
  9. $ sudo nano /etc/smartd.conf
  10. Add one line for each new drive:
    /dev/sdb -a -I 194 -W 4,45,55 -R 5

    /dev/sdc -a -I 194 -W 4,45,55 -R 5

    /dev/sdd -a -I 194 -W 4,45,55 -R 5
  11. Since my disks were already partitioned I needed to first delete the existing NTFS partitions and recreate them as Linux raid partitions. Note: be sure to evacuate the data from the disks before you repartition with fdisk! You will lose data. Thankfully I had a couple of spare drives from work that I could dump data on temporarily.
  12. $ sudo fdisk /dev/sdb
  13. In fdisk, the command sequence was "d n p 1 (default start) (default end) t fd w" This is short for delete current partition (only 1 in my case), create new partition, primary, id=1, use all space, change type to Linux RAID Autodetect, write partition table and exit.
  14. Use mdadm to create the RAID5 virtual device
    $ sudo mdadm --create /dev/md0 --level=5 -n 3 /dev/sdb1 /dev/sdc1 /dev/sdd1
  15. Read the description of all running raid instances using mdadm
    $ sudo mdadm --detail --scan
    This will return an output like:
    ARRAY /dev/md0 level=raid5 num-devices=3 metadata=00.90 spares=1
      UUID=b144b150:b3b4ff34:2bababc5:c86c0f3a
  16. Copy and paste that information into /etc/mdadm/mdadm.conf 
  17. Initilize md0 for LVM
    $ sudo pvcreate /dev/md0
  18. Create a volume group
    $ sudo vgcreate vg1 /dev/md0
  19. Before we can create a logical volume that can be mounted, we need to know the available space in the array
    $ sudo vgdisplay vg1 | grep "Total PE"
    Total PE             476932
  20. Now create the logical volume
    $ sudo lvcreate -l 476932 -n -lv1 vg1 /dev/md0
    Logical volume "lv1" created
  21. Format the logical volume with the file system of choice. I opted to use ext4 since that's what ubuntu chose for /
    $ sudo mkfs.ext4 /dev/vg1/lv1
  22. Make a mount point
    $ sudo mkdir /data/external
  23. Add an entry to fstab
    $ sudo nano /etc/fstab
    /dev/mapper/vg1-lv1  /data/external    ext4    errors=remote-ro    0    1
  24. Mount the new volume and verify
    $ sudo mount -a
    $ df -h
    /dev/mapper/vg1-lv1    1.9T   28G  1.7T   2% /data/external
Simply right?

Replacing WHS 2011 with Ubuntu Server 12.04 (Part 2 - Installing Ubuntu Server 12.04)

Before I can jump in and start configuring Ubuntu Server on my LX195 there is some prep work required.

First and formost is migration of data. This is one of the more time consuming aspects of the task as the LX195 isn't speedy to begin with and only supports USB 2.0 for external drives. My first pass was to purge data that would not be making the journey. Its really amazing how much of a digital pack rat one can be. Once legacy and unneeded data is gone, I used the tools in the Home Server Console to migrate the shared folders that remains off the single internal drive and onto the available external drives attached to the server.

While the server busied itself moving bits around, I downloaded the latest version of Ubuntu Server (12.04 LTS at the time of this project). My primary computer is a MacBook Air, so using dd at the command line I wrote the ISO to a 1GB flash drive I had laying around.

1. Use diskutil to list the available disk and identify which /dev/disk# is the target flash drive
$ diskutil list
2. Use dd to bitwise copy the ISO onto the flash drive of choice
$ sudo dd if=./ubuntu-12.04-server-amd64.iso of=/dev/rdisk1
Note that you should you want a progress bar to add some sanity to this process, there is a handy applet called 'pv' that's available for Linux and other platforms. For the Mac it can be installed via Mac ports. The command syntax becomes:
dd if=ubuntu-12.04-server-amd64.iso | pv -p -t -r -e -b -s `stat ubuntu-12.04-server-amd64.iso | awk '{ print $8 }'` | sudo dd of=/dev/disk1
The resulting output resembles:
$ sudo dd if=ubuntu-12.04-server-amd64-extracted.img.dmg | pv -p -t -r -e -b -s `stat ubuntu-12.04-server-amd64-extracted.img.dmg | awk '{ print $8 }'` | sudo dd of=/dev/disk1
 563MB 0:15:39 [ 722kB/s] [====================================>         ] 82% ETA 0:03:22
Once the data migration is complete and the flash drive is ready it's time to get the screw driver. Before a custom OS can be installed on the LX195, it needs to be put into debug mode. This can be done by closing the open J2 jumper. See http://www.mediasmartserver.net/forums/viewtopic.php?f=21&t=5422 for pictures and other relevant information.

There are two ways to manage the actual install for Ubuntu Server. The more complicated method is to preseed the ubuntu install (see: https://help.ubuntu.com/12.04/installation-guide/amd64/preseed-using.html#preseed-auto). Alternatively a keyboard and monitor can be used in conjunction with a debug board (see: http://www.mediasmartserver.net/forums/viewtopic.php?f=6&t=8066). As I still had a debug board from my WHS2011 install adventure I opted to take the easy path.

For the actual install of Ubuntu Server 12.04, I stuck with the default install options until prompted for automatic updates. As this machine is a home server and not something truly important I opted to enable automatic security updates.

At the end of the install, Ubuntu prompts for additional modules. As this is going to be a headless server I chose to install OpenSSH during the install. If you want to skip this and install OpenSSH after the first boot, run the following command:
sudo apt-get install openssh-server
Regardless of how OpenSSH is installed, the default config will not do for anyone remotely conerned with security. As such the next thing on the list is to reconfigure OpenSSH to lock down access. First create a backup of the existing configuration file, just in case.
sudo cp /etc/ssh/sshd_config /etc/ssh/sshd_config.old
Then edit is with the console based text editor of your choice.
sudo nano /etc/ssh/sshd_config
In the configuration file, edit, uncomment and/or add the following:
PasswordAuthentication no
PermitRootLogin no
AuthorizedKeysFile      %h/.ssh/authorized_keys
I've been using SSH for a while so I already had an extra RSA key pair I could use. After saving the sshd configuration I created the authorized_keys file and added my public key to it. Once that was done I restarted sshd with init.d and tested the connection.
$ sudo /etc/init.d/ssh restart
From my MacBook:
$ ssh -i ~/.ssh/id username@homeserver.home.local
Take a look at http://www.debuntu.org/ssh-key-based-authentication-p2 and http://www.debuntu.org/ssh-key-based-authentication-p2 for more guidance on key based authentication for OpenSSH

Lastly for good measure I updated the server manually.
$ sudo apt-get update
$ sudo apt-get upgrade
 That's enough for one night. Tasks for tomorrow include evacuating the data from the external USB drives, configuring the 3 1TB drives as a RAID5 using LVM and ensuring the three will mount correctly on a reboot. Time permitting, I will also start work on the install and configuration of Netatalk and Samba and creation of user accounts for family members. Once those tasks are complete, it'll be time to install java, serviio and beyondupnp.

Replacing WHS 2011 with Ubuntu Server 12.04 (Part 1 - Introduction)

Never content to leave well enough alone, I decided to take a good hard look at my windows home server and see if I could make better use of that hardware.

I have an aging HP Media Smart LX195 running Windows Home Server 2011. This wasn't a supported update from HP, but since when have I ever let that slow me down?

The system came with an Atom N270 on board and I've upgraded it with 2GB of RAM, 1 internal 1TB drive and 3 external 1TB drives. Last years OS X 10.7 upgrade left me without the use of this server for time machine based backups but it still serves as a reliable and quite media storage for my music and movie libraries. In addition to acting as basic file storage I also run Kiwi syslog server, Serviio DNLA server and BeyondUPNP services on this machine.

All of this I can do, and probably better, on a *nix based OS, without the overhead a GUI provides. I consider this a personal challenge and a good learning experience. As such the next few posts will walk through my experience installing and configuring:
  1. Ubuntu Server 12.04
  2. RAID5 with LVM
  3. Netatalk 3.0
  4. Samba
  5. Serviio 
  6. BeyondUPNP
It's worth mentioning that while BeyondUPNP is a great tool for accessing your DNLA based media servers from the internet, I prefer to use it as a LAN proxy and keep my firewall as closed as possible. It allows me to establish an OpenVPN connection from my Android device(s) and access the media content as if I was sitting at home.

Note: One thing that worked really well for me throughout this process was staging the whole thing in a virtual machine. My laptop is a MacBook Air, so using VMware Fusion I was able to create a small virtual machine running Ubuntu Server and test almost all of the stages of the build. When it came time to bring down the home server and wipe it, most of the hard work was done and I was simply following my own instructions.

Wednesday, July 18, 2012

I wrote it down so I wouldn't have to remember!

Maybe I'm getting old and can't remember things like I used to. Maybe I've been in the tech field too long and have KCS in my blood. Maybe I figure that i never find exactly the answer I'm looking for and I want to share my findings open source style with the rest of the world.

In any event I'll be converting this old blogger account into a personal knowbase of sorts for things I stumble on and don't want to have to re-google later.

HOWTO: Extract an OS X mountable ISO from Linux Hybrid Boot ISO

Problem: unable to mount Ubuntu 12.04 LTS ISO image on a Mac running OS X 10.7.x

Cause: Something in OS X does not like the way the hybrid ISO image was created.

Solution:

Source: http://ubuntuforums.org/showpost.php?p=11654292&postcount=43

1. Open the Disk Utility gui application. (Easy way to find it: Search using spotlight.)
2. Drag the original .iso from Finder into the images section of Disk Utility (on the left side underneath the mounted drive list), and then double click on it there. A faded "diskNs1" should appear underneath it, and a dialog box will say the disk is not mountable. The "diskNs1" is the embedded .iso.
3. Run "sudo dd if=/disk/rdiskNs1 of=./ubuntu-extracted.iso bs=1m" to copy out the working .iso image

This resulting ISO image can then be written to disk or USB key.

Wednesday, April 4, 2012

Brain dump to help others should google pick it up:

I was looking for ways to script updating a VMWare View 5 security server with a dynamic IP address. Searching I found this posting which provides the following script: http://www.vtexan.com/2011/12/07/using-vmware-view-5-security-server-with-dynamic-ips/

1: #Add-PSSnapin VMware.VimAutomation.Core
2: #Add-PSSnapin VMware.View.Broker
3:
4: # Name of the Security Server
5: # $SecurityServer = "SecurityServerNameHere"
6:
7: # For logging creating a timestamp
8: $TimeStamp = Get-Date -format yyyy-MM-dd-H-mm
9:
10: # Filling $CheckedIP with the external IP address, using whatismyip.com service
11: $wc = New-Object net.WebClient
12: $CheckedIP = $wc.downloadstring("http://automation.whatismyip.com/n09230945.asp")
13:
14: # Now check the current ExternalPCoIPURL entry
15: $CurrentSettings = Get-ConnectionBroker
16: $CurrentIP = $CurrentSettings[0].externalPCoIPURL
17: # Check if $CurrentIP starts with the IP address from $CheckedIP
18: # Used StartsWith because $CurrentIP has port address at the end
19: $Result = $CurrentIP.StartsWith($CheckedIP)
20:
21: # Are IP address the same?
22: If ($Result)
23: {
24: # Yes, both IP addresses are the same, do nothing, only write a log entry
25: $row = $TimeStamp + "," + $CheckedIP + "," + $CurrentIP + ",nochange"
26: }
27: else
28: {
29: # External IP is not equal to IP set in externalPCoIPURL
30: # Changing the externalPCoIPURL
31: #Update-ConnectionBroker -broker_id "ConnectionServerNameHere" -externalPCoIPURL $CheckedIP
32: Update-ConnectionBroker -broker_id "SecurityServerNameHere" -externalPCoIPURL $CheckedIP
33:
34: # Check if it was succesful
35: $NewSettings = Get-ConnectionBroker
36: $row = $TimeStamp + "," + $CheckedIP + "," + $CurrentIP + "," + $NewSettings.externalPCoIPURL
37: }
38: $row | Out-File -FilePath "c:\logging\check-ip.log" –Append

This was a great start but utilized an external web page for resolving the IP address. In my case, the security boundary is between internal network zones (industrial control system network on the inside, enterprise WAN on the outside) and an external service will provide me the IP address for the internet facing firewall instead of the outside interface of the firewall.

DNS on the untrusted side of this firewall will resolve the external URL to the proper external IP address. As such I replaced line 12 of this script with:

$CheckedIP = [System.Net.DNS]::GetHostEntry("ExternalSecurityServerNameHere").AddressList[0].IPAddressTo String

I also needed to uncomment line 2 when running the script inside task scheduler

With the script in place I then added a scheduled task that triggers once per day and repeats once an hour. The task launches "C:\Windows\system32\WindowsPowerShell\powershell.exe" with arguments "& 'C:\Program Files\VMware\VMware View\Server\extras\PowerShell\check-ip.ps1'"

This will keep the security server settings in VDM in sync with the upstream DNS server at least. The firewall handles keeping the DNS name synced with its outside interface IP.