2017年7月19日水曜日

Android AVD ネットワークに接続できない。

自分の環境のプロキシを設定したら繋がった。

「設定」→「無線とネットワーク」→「モバイルネットワーク」→「アクセスポイント名」→「Telkila」
プロキシ 142.1.5.15
ポート  3128

# getprop
[ro.secure]: [0]
[ro.allow.mock.location]: [1]
[ro.debuggable]: [1]
[persist.service.adb.enable]: [1]
[ro.kernel.qemu]: [1]
[ro.kernel.androidboot.hardware]: [ranchu]
[ro.kernel.clocksource]: [pit]
[ro.kernel.android.qemud]: [1]
[ro.kernel.console]: [0]
[ro.kernel.android.checkjni]: [1]
[ro.kernel.qemu.gles]: [0]
[ro.kernel.qemu.opengles.version]: [131072]
[ro.kernel.cma]: [8M]
[ro.factorytest]: [0]
[ro.serialno]: []
[ro.bootmode]: [unknown]
[ro.baseband]: [unknown]
[ro.carrier]: [unknown]
[ro.bootloader]: [unknown]
[ro.hardware]: [ranchu]
[ro.revision]: [0]
[ro.build.id]: [GINGERBREAD]
[ro.build.display.id]: [google_sdk_x86-eng 2.3.7 GINGERBREAD 3093079 test-keys]
[ro.build.version.incremental]: [3093079]
[ro.build.version.sdk]: [10]
[ro.build.version.codename]: [REL]
[ro.build.version.release]: [2.3.7]
[ro.build.date]: [Tue Jul 26 02:08:20 UTC 2016]
[ro.build.date.utc]: [1469498900]
[ro.build.type]: [eng]
[ro.build.user]: [android-build]
[ro.build.host]: [vpbs4.mtv.corp.google.com]
[ro.build.tags]: [test-keys]
[ro.product.model]: [Android SDK built for x86]
[ro.product.brand]: [generic_x86]
[ro.product.name]: [google_sdk_x86]
[ro.product.device]: [generic_x86]
[ro.product.board]: []
[ro.product.cpu.abi]: [x86]
[ro.product.manufacturer]: [unknown]
[ro.product.locale.language]: [en]
[ro.product.locale.region]: [US]
[ro.wifi.channels]: []
[ro.board.platform]: []
[ro.build.product]: [generic_x86]
[ro.build.description]: [google_sdk_x86-eng 2.3.7 GINGERBREAD 3093079 test-keys]
[ro.build.fingerprint]: [generic_x86/google_sdk_x86/generic_x86:2.3.7/GINGERBREAD/3093079:eng/test-keys]
[rild.libpath]: [/system/lib/libreference-ril.so]
[rild.libargs]: [-d /dev/ttyS0]
[ro.config.notification_sound]: [OnTheHunt.ogg]
[ro.config.alarm_alert]: [Alarm_Classic.ogg]
[ro.setupwizard.mode]: [OPTIONAL]
[xmpp.auto-presence]: [true]
[ro.config.nocheckin]: [yes]
[net.bt.name]: [Android]
[net.change]: [net.dnschange]
[dalvik.vm.stack-trace-file]: [/data/anr/traces.txt]
[persist.sys.timezone]: [Asia/Tokyo]
[persist.sys.language]: [ja]
[persist.sys.country]: [JP]
[persist.sys.localevar]: []
[ro.FOREGROUND_APP_ADJ]: [0]
[ro.VISIBLE_APP_ADJ]: [1]
[ro.PERCEPTIBLE_APP_ADJ]: [2]
[ro.HEAVY_WEIGHT_APP_ADJ]: [3]
[ro.SECONDARY_SERVER_ADJ]: [4]
[ro.BACKUP_APP_ADJ]: [5]
[ro.HOME_APP_ADJ]: [6]
[ro.HIDDEN_APP_MIN_ADJ]: [7]
[ro.EMPTY_APP_ADJ]: [15]
[ro.FOREGROUND_APP_MEM]: [2048]
[ro.VISIBLE_APP_MEM]: [3072]
[ro.PERCEPTIBLE_APP_MEM]: [4096]
[ro.HEAVY_WEIGHT_APP_MEM]: [4096]
[ro.SECONDARY_SERVER_MEM]: [6144]
[ro.BACKUP_APP_MEM]: [6144]
[ro.HOME_APP_MEM]: [6144]
[ro.HIDDEN_APP_MEM]: [7168]
[ro.EMPTY_APP_MEM]: [8192]
[net.tcp.buffersize.default]: [4096,87380,110208,4096,16384,110208]
[net.tcp.buffersize.wifi]: [4095,87380,110208,4096,16384,110208]
[net.tcp.buffersize.umts]: [4094,87380,110208,4096,16384,110208]
[net.tcp.buffersize.edge]: [4093,26280,35040,4096,16384,35040]
[net.tcp.buffersize.gprs]: [4092,8760,11680,4096,8760,11680]
[init.svc.servicemanager]: [running]
[init.svc.vold]: [running]
[init.svc.netd]: [running]
[init.svc.debuggerd]: [running]
[init.svc.ril-daemon]: [running]
[init.svc.zygote]: [running]
[init.svc.media]: [running]
[init.svc.dbus]: [running]
[init.svc.installd]: [running]
[init.svc.keystore]: [running]
[init.svc.goldfish-setup]: [stopped]
[init.svc.qemud]: [stopped]
[init.svc.goldfish-logcat]: [stopped]
[ARGH]: [ARGH]
[net.eth0.gw]: [10.0.2.2]
[net.eth0.dns1]: [10.0.2.3]
[net.dns1]: [10.0.2.3]
[net.gprs.local-ip]: [10.0.2.15]
[ro.radio.use-ppp]: [no]
[status.battery.state]: [Slow]
[status.battery.level]: [5]
[status.battery.level_raw]: [50]
[status.battery.level_scale]: [9]
[ro.com.google.locationfeatures]: [1]
[init.svc.console]: [running]
[init.svc.adbd]: [running]
[ro.opengles.version]: [131072]
[qemu.sf.fake_camera]: [both]
[dalvik.vm.heapsize]: [64m]
[qemu.hw.mainkeys]: [0]
[qemu.sf.lcd_density]: [120]
[ro.qemu.init.completed]: [1]
[init.svc.bootanim]: [stopped]
[hw.keyboards.65536.devname]: [Power Button]
[hw.keyboards.65537.devname]: [qwerty2]
[net.hostname]: [android_f76644b47b92c1f2]
[dev.bootcomplete]: [1]
[gsm.version.ril-impl]: [android reference-ril 1.0]
[gsm.sim.operator.numeric]: [310260]
[gsm.sim.operator.alpha]: [Android]
[gsm.sim.operator.iso-country]: [us]
[gsm.sim.state]: [READY]
[gsm.current.phone-type]: [1]
[gsm.operator.alpha]: [Android]
[gsm.operator.numeric]: [310260]
[gsm.operator.iso-country]: [us]
[gsm.operator.isroaming]: [false]
[gsm.nitz.time]: [1500433902315]
[gsm.network.type]: [unknown]
[net.gprs.http-proxy]: [http://142.1.5.15:3128/]
[gsm.defaultpdpcontext.active]: [true]
[net.dnschange]: [1]
[sys.boot_completed]: [1]
[ro.runtime.firstboot]: [1500433904137]
#

Android AVDにadb shell で接続。

AVD起動後

# adb devices
adb server is out of date.  killing...
* daemon started successfully *
List of devices attached 
emulator-5554   device


# adb -s emulator-5554 shell

Android Studio 新規プロジェクト作成でいきなりERROR

新規Android Studi プロジェクトn開始 空のアクティビティーを追加してビルドをかけるとエラー。

エラー:A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugUnitTestApkCopy'.
   > Could not resolve junit:junit:4.12.
     Required by:
         project :app
      > Could not resolve junit:junit:4.12.
         > Could not get resource 'https://jcenter.bintray.com/junit/junit/4.12/junit-4.12.pom'.
            > Could not HEAD 'https://jcenter.bintray.com/junit/junit/4.12/junit-4.12.pom'.
               > jcenter.bintray.com



Android → Gradle スクリプト→build.gradle

// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
    repositories {
        jcenter()  →  jcenter { url "http://jcenter.bintray.com" }
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.3.3'
        // NOTE: Do not place your application dependencies here; they belong        // in the individual module build.gradle files    }
}

allprojects {
    repositories {
        jcenter()  → jcenter { url "http://jcenter.bintray.com" }
    }
}

task clean(type: Delete) {
    delete rootProject.buildDir}

2017年7月14日金曜日

Windows Server 2012 R2 リモードディスクトップのセッション数を増やす


Windows Server 2012 R2のデフォルトは1。
2+コンソール=3まで増やす事が可能。

1)コマンドプロンプトからgpedit.mscを起動。

2)[ローカルコンピューターポリシー]→[コンピューターの構成]-[管理用テンプレート]→[Windowsコンポーネント]→[リモートデスクトップサービス]→[リモートデスクトップセッションホスト]→[接続]

3)[リモートデスクトップサービスユーザーに対してリモートデスクトップサービスセッションを1つに制限する]を選択し、「未構成」から「無効」に変更。

zabbix7 amazon linux2023 インストール postgres15

【postgres】 dnf -y install postgresql15-server postgresql15-server-devel postgresql-setup initdb passwd postgres vi `find / -name pg_hba.con...