狼愛上貍

          我胡漢三又回來了

          2020年2月12日 #

          centos8 安裝 docker

          https://www.cnblogs.com/zbseoag/p/11736006.html

          posted @ 2020-05-06 12:57 狼愛上貍 閱讀(400) | 評論 (3)編輯 收藏

          firefox 翻譯插件

          作者:AsReader
          鏈接:https://www.zhihu.com/question/64845885/answer/1122345134
          來源:知乎

          posted @ 2020-04-18 09:45 狼愛上貍 閱讀(295) | 評論 (0)編輯 收藏

          鼠標在Solaris 11虛擬機上不起作用

          https://kb.vmware.com/s/article/2040498

          posted @ 2020-03-22 08:22 狼愛上貍 閱讀(299) | 評論 (0)編輯 收藏

          solaris11.4

          https://www.oracle.com/solaris/solaris11/downloads/solaris11-vm-templates-downloads.html

          posted @ 2020-03-21 21:43 狼愛上貍 閱讀(247) | 評論 (0)編輯 收藏

          solaris11.3下載

          http://download.oracle.com/otn/solaris/11_3/sol-11_3-vbox.ova

          posted @ 2020-03-20 21:52 狼愛上貍 閱讀(566) | 評論 (0)編輯 收藏

          linux(centos7)安裝jdk8--附帶oracle賬號

          https://www.cnblogs.com/chaos-li/p/11970713.html

          posted @ 2020-03-20 18:53 狼愛上貍 閱讀(192) | 評論 (0)編輯 收藏

          Flutter 常用框架

          https://www.jianshu.com/p/7403371162c1

          posted @ 2020-03-19 17:10 狼愛上貍 閱讀(171) | 評論 (0)編輯 收藏

          IPFS參考網關

          https://ipfs.github.io/public-gateway-checker/

          posted @ 2020-03-14 11:01 狼愛上貍 閱讀(480) | 評論 (0)編輯 收藏

          安裝配置Shibboleth

          0.前言

          本文介紹了如何搭建Shibboleth,實現Shibboleth+Ldap的SSO解決方案

          1.什么是Shibboleth

          Shibboleth是一個基于標準的,實現組織內部或跨組織的網頁單點登錄的開源軟件包。它允許站點為處于私有保護方式下的受保護的在線資源做出被通知的認證決定。

          Shibboleth軟件工具廣泛使用聯合的身份標準,主要是OASIS安全聲稱標記語言(SAML),來提供一個聯合單點登錄和屬性交換框架。一個用戶用他的組織的證書認證,組織(或IdP)傳送最少的必要的身份信息給SP實現認證決定。Shibboleth也提供擴展的隱私功能,允許一個用戶和他們的主站點來控制釋放給每一個應用的屬性。

          Shibboleth項目作為一個Internet2中間件活動啟動于2000年,這年晚些時候該項目和OASIS SAML工作組的工作相聯系。Shibboleth1.0 于2003年發布,并快速被全世界的研究和教育機構使用。隨著2005年SAML2.0的發布,2006年Shibboleth2.0也發布,SAML標準升級到包含所有的多邊,由Shibboleth首創的元數據驅動方法。

          Shibboleth作為開源軟件開發,在Apache 軟件許可證下發布。關于個別部件的更多信息可以在產品頁面看到。

          2.安裝Shibboleth Identity Provider v3.2.1

          1. 切換成root
          sudo su 

          2.下載Shibboleth Identity Provider v3.2.1

          wget http://shibboleth.net/downloads/identity-provider/latest/shibboleth-identity-provider-3.2.1.tar.gz tar -xzvf shibboleth-identity-provider-3.2.1.tar.gz cd shibboleth-identity-provider-3.2.1

          3.安裝Shibboleth Idenentity Provider:

          sh-3.2# ./install.sh  Source (Distribution) Directory (press <enter> to accept default): [/Users/zhaoyu.zhaoyu/Applications/shibboleth-identity-provider-3.3.2]  Installation Directory: [/opt/shibboleth-idp]  Hostname: [localhost.localdomain] testdomain.com SAML EntityID: [https://testdomain.com/idp/shibboleth]  Attribute Scope: [localdomain]  Backchannel PKCS12 Password:  Re-enter password:  Cookie Encryption Key Password:  Re-enter password:  Warning: /opt/shibboleth-idp/bin does not exist. Warning: /opt/shibboleth-idp/dist does not exist. Warning: /opt/shibboleth-idp/doc does not exist. Warning: /opt/shibboleth-idp/system does not exist. Warning: /opt/shibboleth-idp/webapp does not exist. Generating Signing Key, CN = testdomain.com URI = https://testdomain.com/idp/shibboleth ... ...done Creating Encryption Key, CN = testdomain.com URI = https://testdomain.com/idp/shibboleth ... ...done Creating Backchannel keystore, CN = testdomain.com URI = https://testdomain.com/idp/shibboleth ... ...done Creating cookie encryption key files... ...done Rebuilding /opt/shibboleth-idp/war/idp.war ... ...done  BUILD SUCCESSFUL Total time: 1 minute 14 seconds 

          (from now "{idp.home}" == /opt/shibboleth-idp/)
          4.導入 JST library (status界面會用到):

          cd /opt/shibboleth-idp/edit-webapp/WEB-INF/lib wget https://build.shibboleth.net/nexus/service/local/repositories/thirdparty/content/javax/servlet/jstl/1.2/jstl-1.2.jar cd /opt/shibboleth-idp/bin ./build.sh -Didp.target.dir=/opt/shibboleth-idp

          3.安裝指引

          3.1 安裝apache tomcat 8

          1.切換成root

          sudo su -

          2.修改tomcat的%{CATALINA_HOME}/conf/server.xml
          將8080端口和8443端口的地方分別改成80和443

           <Connector port="80" protocol="HTTP/1.1"                                                                                                    connectionTimeout="20000"                redirectPort="443" />

          3.生成證書文件

          [chengxu@local]keytool -genkeypair -alias "tomcat" -keyalg "RSA" -keystore "./tomcat.keystore" 輸入密鑰庫口令:   再次輸入新口令:  您的名字與姓氏是什么? [Unknown]:  cheng 您的組織單位名稱是什么? [Unknown]:  testdomain.com 您的組織名稱是什么? [Unknown]:  testdomain.com 您所在的城市或區域名稱是什么? [Unknown]:   您所在的省/市/自治區名稱是什么? [Unknown]:   該單位的雙字母國家/地區代碼是什么? [Unknown]:   CN=cheng, OU=testdomain.com, O=testdomain.com, L=Unknown, ST=Unknown, C=Unknown是否正確? []:    輸入 <tomcat> 的密鑰口令   (如果和密鑰庫口令相同, 按回車):   再次輸入新口令:  [chengxu@local]

          4.修改tomcat的%{CATALINA_HOME}/conf/server.xml,使支持https協議

          <Connector port="443" protocol="org.apache.coyote.http11.Http11Protocol"                 maxThreads="150" SSLEnabled="true" scheme="https" secure="true"                 clientAuth="false" sslProtocol="TLS"                  keystoreFile="/Users/chengxu/Shibboleth/tomcat/tomcat.keystore"                    keystorePass="xxx"/> 

          5.發布Idp Web Application到Tomcat 8 container

          vim %{CATALINA_HOME}/conf/Catalina/localhost/idp.xml
          <Context docBase="/opt/shibboleth-idp/war/idp.war"          privileged="true"          antiResourceLocking="false"          swallowOutput="true"/>

          4.配置host

          vim /etc/host 127.0.0.1 testdomain.com

          5.重啟tomcat
          %{CATALINA_HOME}/bin/catalina.sh stop
          %{CATALINA_HOME}/bin/catalina.sh start
          6.檢測是否服務啟動正常
          訪問https://testdomain/idp/status
          或者/opt/shibboleth-idp/bin; ./status.sh

          3.2 配置shibboleth連接ldap

          編輯修改ldap.properties

          vim /opt/shibboleth/conf/ldap.properties  idp.authn.LDAP.authenticator = bindSearchAuthenticator idp.authn.LDAP.ldapURL = ldap://ldap.example.it:389 idp.authn.LDAP.useStartTLS = false idp.authn.LDAP.useSSL = false idp.authn.LDAP.baseDN = cn=Users,dc=example,dc=org idp.authn.LDAP.userFilter = (uid={user}) idp.authn.LDAP.bindDN = cn=admin,cn=Users,dc=example,dc=org idp.authn.LDAP.bindDNCredential = ###LDAP ADMIN PASSWORD###

          6.修改shibboleth ldap配置

          vim /opt/shibboleth/conf/services.xml  把 <value>%{idp.home}/conf/attribute-resolver.xml</value> 改為 <value>%{idp.home}/conf/attribute-resolver-full.xml</value>
          vim /opt/shibboleth-idp/conf/attribute-resolver-full.xml  注釋掉下列代碼,如果已經注釋掉了就不動了(有些版本已經注釋了)  <!-- <dc:StartTLSTrustCredential id="LDAPtoIdPCredential" xsi:type="sec:X509ResourceBacked">   <sec:Certificate>%     {idp.attribute.resolver.LDAP.trustCertificates}</sec:Certificate>   </dc:StartTLSTrustCredential> -->

          重啟tomcat

          7.獲取idp metadata.xml
          https://testdomain.com/idp/shibboleth
          注意metadata.xml文件中的validUntil屬性,如果過期了則修改為未來的某個時間點

          4.小結

          至此我們完成了Shibboleth與LDAP集成的安裝過程

          下篇: 實現Shibboleth+Ldap到阿里云的單點登錄

          來自https://yq.aliyun.com/articles/350531?tdsourcetag=s_pcqq_aiomsg&do=login&accounttraceid=87b0f203-5d81-4cb7-a986-49615e3962e2&do=login&do=login

          posted @ 2020-03-09 18:20 狼愛上貍 閱讀(958) | 評論 (0)編輯 收藏

          Shibboleth IDP 的安裝和部署配置步驟

          https://blog.csdn.net/wwwcomy/article/details/49098961

          https://www.iteye.com/blog/lhy5201314-1171267

          posted @ 2020-03-08 23:21 狼愛上貍| 編輯 收藏

          Android Studio 以逍遙模擬器為模擬器

          在C盤根目錄下建立以下批處理文件:

          c:
          cd C:\Program Files\Microvirt\MEmu
          adb start-server
          c:
          cd C:\Android\Sdk\platform-tools
          adb  connect 127.0.0.1:21503
          cd\

          在命令提示符(管理員)下運行它就OK了。

          posted @ 2020-03-07 19:08 狼愛上貍 閱讀(321) | 評論 (0)編輯 收藏

          Android SDK搬家

          flutter config --android-sdk 自己的android sdk路徑Android SDK默認的安裝地址為:
          C:\Users\Administrator\AppData\Local\Android\SDK
          現需要把它搬到 C:\Android\Sdk
          操作如下:
          1.把C:\Users\Administrator\AppData\Local\Android\SDK剪切復制到C:\Android\Sdk;
          2.在FLutter sdk 目錄下運行如下命令:
          flutter config --android-sdk C:\Android\Sdk
          3.在環境變量中把ANDROID_HOME改為C:\Android\Sdk;
          重啟,這樣就OK了。

          posted @ 2020-03-07 18:59 狼愛上貍 閱讀(217) | 評論 (0)編輯 收藏

          Android-X86網絡設置

          https://blog.csdn.net/weixin_30598225/article/details/98351753?depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task

          posted @ 2020-03-03 18:43 狼愛上貍 閱讀(775) | 評論 (0)編輯 收藏

          VM安裝Android

          https://baijiahao.baidu.com/s?id=1630789160989369444&wfr=spider&for=pc

          安裝后還是無法聯網的,需要以下步驟才能聯網:
          設置--》網絡和互聯網--》私人DNS -->把自動改為關閉
          就能上網了。

          posted @ 2020-03-03 16:20 狼愛上貍 閱讀(126) | 評論 (0)編輯 收藏

          【linux】CentOS 查看系統時間,修改時區

          【linux】CentOS 查看系統時間,修改時區

           

           

          ===============CentOS 7.6================

          1.查看系統時間

          date

           

          查看當前系統時間以及時區
          結果是:

          Mon Jul 8 09:23:31 UTC 2019

           

           

          2.更改系統時間時區

          timedatectl set-timezone Asia/Shanghai

           

          3.再次查看

          date

          結果是:

          Mon Jul  8 17:25:28 CST 2019

           

           

          4.可以重啟后查看,防止重啟后失效

          reboot

           

           

          =======================

          posted @ 2020-03-02 21:11 狼愛上貍 閱讀(220) | 評論 (0)編輯 收藏

          MacOS設置自動登錄

          https://jingyan.baidu.com/article/59a015e375e45af794886582.html

          posted @ 2020-03-02 19:47 狼愛上貍 閱讀(126) | 評論 (0)編輯 收藏

          VM安裝CentOS8


          https://blog.csdn.net/BryantJamesHua/article/details/101480034
          https://www.cnblogs.com/fanzhenyong/p/11616192.html

          posted @ 2020-03-02 18:34 狼愛上貍 閱讀(106) | 評論 (0)編輯 收藏

          VM安裝macOS10.15 VMware TOOLS

          https://blog.csdn.net/qq_41855420/article/details/102756313

          注意要先把虛擬機的安裝光盤退出。

          posted @ 2020-03-01 20:45 狼愛上貍 閱讀(3091) | 評論 (0)編輯 收藏

          VM安裝macOS10.15


          https://blog.csdn.net/qq_41855420/article/details/102750895?depth_1-utm_source=distribute.pc_relevant.none-task&utm_source=distribute.pc_relevant.none-task

          在這個地方,要把服務里的那幾個VM啟動,否則DHCP無法安裝。
          ⑧、設置黑蘋果Catalina 10.15系統

          posted @ 2020-03-01 20:43 狼愛上貍 閱讀(180) | 評論 (0)編輯 收藏

          Flutter打包Apk

          https://www.jianshu.com/p/d58dab805ca6

          keytool -genkey -v -keystore ./key.jks -keyalg RSA -keysize 2048 -validity 10000 -alias key
          apk 輸出在:
          C:\Users\Administrator\AndroidStudioProjects\flutter_app\build\app\outputs\apk\release
          key.properties
          storePassword=123456
          keyPassword=123456
          keyAlias=key
          storeFile=
          C:/Users/Administrator/AndroidStudioProjects/flutter_app/key.jks

          b
          uild.gradle

          def localProperties = new Properties()
          def localPropertiesFile = rootProject.file('local.properties')
          if (localPropertiesFile.exists()) {
          localPropertiesFile.withReader('UTF-8') { reader ->
          localProperties.load(reader)
          }
          }

          def flutterRoot = localProperties.getProperty('flutter.sdk')
          if (flutterRoot == null) {
          throw new GradleException("Flutter SDK not found. Define location with flutter.sdk in the local.properties file.")
          }

          def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
          if (flutterVersionCode == null) {
          flutterVersionCode = '1'
          }

          def flutterVersionName = localProperties.getProperty('flutter.versionName')
          if (flutterVersionName == null) {
          flutterVersionName = '1.0'
          }

          apply plugin: 'com.android.application'
          apply plugin: 'kotlin-android'
          apply from: "$flutterRoot/packages/flutter_tools/gradle/flutter.gradle"


          def keystorePropertiesFile = rootProject.file("key.properties")
          def keystoreProperties = new Properties()
          keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
          android {
          compileSdkVersion 28

          sourceSets {
          main.java.srcDirs += 'src/main/kotlin'
          }

          lintOptions {
          disable 'InvalidPackage'
          }

          defaultConfig {
          // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html).
          applicationId "com.example.flutter_app"
          minSdkVersion 16
          targetSdkVersion 28
          versionCode flutterVersionCode.toInteger()
          versionName flutterVersionName
          testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
          }

          signingConfigs {
          release {
          keyAlias keystoreProperties['keyAlias']
          keyPassword keystoreProperties['keyPassword']
          storeFile file(keystoreProperties['storeFile'])
          storePassword keystoreProperties['storePassword']
          }
          }

          buildTypes {
          release {
          // TODO: Add your own signing config for the release build.
          // Signing with the debug keys for now, so `flutter run --release` works.
          //signingConfig signingConfigs.debug
          signingConfig signingConfigs.release
          }
          }
          }

          flutter {
          source '../..'
          }

          dependencies {
          implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
          testImplementation 'junit:junit:4.12'
          androidTestImplementation 'androidx.test:runner:1.1.1'
          androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
          }

          posted @ 2020-02-29 11:48 狼愛上貍 閱讀(347) | 評論 (0)編輯 收藏

          Flutter實現Web環境配置

          參見:
          https://www.jianshu.com/p/2893f2b52eee

          https://www.cnblogs.com/duanzb/p/11188979.html

          即是
          在PATH中增加2個:
          C:\Flutter\flutter1.12.13\.pub-cache\bin

          C:\Flutter\flutter1.12.13\bin\cache\dart-sdk\bin

          posted @ 2020-02-25 18:18 狼愛上貍 閱讀(150) | 評論 (0)編輯 收藏

          flutter顯示Error: No pubspec.yaml file found.

          打開項目總文件夾運行,不要打開上一級目錄運行
          F:\fluterapp\hellow_horld(項目名)這里打開
          F:\fluterapp 不要在這里打開


          https://blog.csdn.net/qq_31659129/article/details/97244526

          posted @ 2020-02-25 12:47 狼愛上貍 閱讀(947) | 評論 (0)編輯 收藏

          Flutter編譯報錯:The method 'CachedNetworkImageProvider.load' has fewer positional

          將cached_network_image的版本號升級到2.0.0-rc


          https://blog.csdn.net/yinxing2008/article/details/103374996

          posted @ 2020-02-25 12:46 狼愛上貍 閱讀(404) | 評論 (0)編輯 收藏

          Flutter項目實戰之Flutter_Gank

          https://www.jianshu.com/p/1031f30dbb2e

          posted @ 2020-02-25 11:40 狼愛上貍 閱讀(141) | 評論 (0)編輯 收藏

          安裝node-canvas時win_delay_load_hook.c錯誤

          解決辦法: 修改以下文件 C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\src\win_delay_load_hook.c 增加以下代碼,到第一個#include前 #ifndef DELAYIMP_INSECURE_WRITABLE_HOOKS#define DELAYIMP_INSECURE_WRITABLE_HOOKS#endif 參考: https://github.com/nodejs/node-gyp/issues/949 https://github.com/Automattic/node-canvas/issues/619 ———————————————— 版權聲明:本文為CSDN博主「Amatig」的原創文章,遵循CC 4.0 BY-SA 版權協議,轉載請附上原文出處鏈接及本聲明。 原文鏈接:https://blog.csdn.net/cooltigerkin/article/details/51807588

          posted @ 2020-02-22 16:33 狼愛上貍 閱讀(339) | 評論 (0)編輯 收藏

          VS2015與Win10SDK的問題

          VS2015最高支持14393版本的SDK,之后的從15063起就必須要VS2017,很多人出現VS找不到rc.ex和cl.exe的問題,就是沒有安裝SDK或安裝了VS不支持的SDK版本;這個問題有人在知乎上提問過“如何將獨立安裝的win10SDK與vs2015建立聯系?“ VS2015不完全支持Win10的某些項目編譯,比如應用商店應用、1703、1709的驅動程序,但是VS2017太難用了,所以我還是堅持用2015 解決辦法: 卸載新版本WinSDK,安裝14393版本的SDK 或 卸載VS2015安裝VS2017 ———————————————— 版權聲明:本文為CSDN博主「樓頂上的貓」的原創文章,遵循CC 4.0 BY-SA 版權協議,轉載請附上原文出處鏈接及本聲明。 原文鏈接:https://blog.csdn.net/qq_30113467/article/details/100013766

          posted @ 2020-02-22 14:46 狼愛上貍 閱讀(257) | 評論 (0)編輯 收藏

          Win10、Ubuntu雙系統正確卸載Ubuntu

          Win10、Ubuntu雙系統正確卸載Ubuntu

            此前我的Ubuntu不是wubi方式安裝的,因為聽說此方式安裝有多種缺陷,于是我選擇U盤安裝。這時想要卸載Ubuntu了,想到卸載這個也會有些小阻礙,就寫下這篇博文表示記錄一下Ubuntu的正確卸載方法。

            在每次開機時都會有GURB菜單,這表示寫入到安裝Ubuntu的時候把GURB寫入到了MBR,所以卸載Ubuntu前首先需要將MBR重寫,去掉Ubuntu的GURB。如果朋友們不進行這一步把Ubuntu強行干掉,會讓windows也直接GG。

            重寫MBR有兩種方法:

              一、放入Windows的安裝盤,進入Windows安裝程序,進入恢復控制臺,輸入命令fixmbr。
                二、使用MbrFix工具進行修復。

            我選擇的是MbrFix,下載地址:http://www.cnitblog.com/Files/CoffeeCat/MbrFix.rar

            下載完成后運行命令行,然后進入存放MbrFix.exe的目錄下,輸入指令MbrFix /drive 0 fixmbr /yes,重啟就可以直接進入windows了。

            ps:輸入命令行提示"function failed.error 5:拒絕訪問"如何解決?

              找到MbrFix.exe,右擊屬性,進入兼容性選項卡,勾選"以管理員身份運行此程序",確定退出,然后重新輸入指令即可解決。

            

            搞定第一步之后,右鍵我的電腦進入管理,磁盤管理,如果是自己安裝的Ubuntu,應該知道在安裝的時候分配了幾個分區在此系統上,如果只是雙系統,除了Windows下有標注卷名的其余應該都是Ubuntu的分區。右鍵Ubuntu分區,刪除卷,標注藍條會變成綠條,把幾個分區全部刪除完成,右鍵新加卷一步一步完成恢復成為Windows的邏輯分區了。

          來自:https://www.cnblogs.com/-Yvan/p/4975326.html

          posted @ 2020-02-20 18:18 狼愛上貍 閱讀(1424) | 評論 (0)編輯 收藏

          Flutter配置gradle

          maven { url 'https://maven.aliyun.com/repository/google' }
          maven { url 'https://maven.aliyun.com/repository/jcenter' }
          maven { url 'http://maven.aliyun.com/nexus/content/groups/public' }


          https://blog.csdn.net/qq_43225978/article/details/94008529

          posted @ 2020-02-19 09:46 狼愛上貍 閱讀(195) | 評論 (0)編輯 收藏

          Flutter打包apk

          https://www.jianshu.com/p/fabcfd621e01

          posted @ 2020-02-12 09:37 狼愛上貍 閱讀(173) | 評論 (0)編輯 收藏

          主站蜘蛛池模板: 涟水县| 阳原县| 石家庄市| 祁连县| 汉沽区| 灵山县| 张家港市| 安福县| 永胜县| 麦盖提县| 望江县| 肇庆市| 宝丰县| 六盘水市| 大荔县| 雷波县| 岳普湖县| 冷水江市| 五指山市| 上蔡县| 龙岩市| 印江| 龙陵县| 威远县| 老河口市| 建宁县| 湘西| 临沂市| 克山县| 泾阳县| 肇东市| 金堂县| 东宁县| 秭归县| 龙里县| 化德县| 五河县| 合川市| 崇州市| 盐边县| 新营市|