狼爱上狸

我胡汉三又回来了

2020年2月20日 #

centos8 安装 docker

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

posted @ 2020-05-06 12:57 狼爱上狸 阅读(370) | 评论 (3)编辑 收藏

firefox 翻译插件

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

posted @ 2020-04-18 09:45 狼爱上狸 阅读(276) | 评论 (0)编辑 收藏

鼠标在Solaris 11虚拟机上不起作用

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

posted @ 2020-03-22 08:22 狼爱上狸 阅读(271) | 评论 (0)编辑 收藏

solaris11.4

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

posted @ 2020-03-21 21:43 狼爱上狸 阅读(223) | 评论 (0)编辑 收藏

solaris11.3下载

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

posted @ 2020-03-20 21:52 狼爱上狸 阅读(532) | 评论 (0)编辑 收藏

linux(centos7)安装jdk8--附带oracle账号

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

posted @ 2020-03-20 18:53 狼爱上狸 阅读(177) | 评论 (0)编辑 收藏

Flutter 常用框架

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

posted @ 2020-03-19 17:10 狼爱上狸 阅读(154) | 评论 (0)编辑 收藏

IPFS参考网关

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

posted @ 2020-03-14 11:01 狼爱上狸 阅读(465) | 评论 (0)编辑 收藏

VMware 安装ghost win7 gho

 众所周知,vmware安装iso格式的系统都是一步步按流程一气呵成。win7和xp很多时候不得不安装ghost系统,理由:打补丁太耗费时间了!截止2018.08月,若安装原版win7 sp1,补丁安装约需5小时以上,如今网速不是问题主要影响时间的是安装补丁的时间。然而为了省时经常win7不得不安装ghost win7 且格式为*.gho。比如:专注于win7…… 折腾了大半天作文以记之方便后人,总的来说3步:
第一步:需要”纯净的PE.iso“和”ghost win7镜像“
PE:推荐 微pehttp://www.wepe.com.cn/或者IT天空的优启通https://www.itsk.com/topic-software.html
如图下载好后,免安装的,双击打开,点击右下角最后一个图标,生成iso。(可保留不必要每次都生成)
 
第二步:Vmware》新建虚拟机》典型》稍后安装操作系统》windows》按实际情况选择下一步系统类型》虚拟系统名称》安装位置》分配的大小》拆成多个(不然不好拷贝复制给别处)》完成                @这一步和平时一样的高手请略过。
演示第二步的新建
第三步:选择从已经准备好的pe启动》进入pe分配空间》关闭》映射到本地磁盘》将gho格式镜像复制进去》改变启动项》进入pe》还原》重启》ok。                     @这一步操作演示如下,建议参考后再操作。
分配空间
 
映射空间方便把本地ghost镜像复制过去(原因:权限问题虚拟机与物理机隔离的)
标题
断开本地映射》改变启动项(键盘方向键左或右操作移动到Boot,键盘+或-键,移动让CD-ROM顺序到最上面位置,F10保存。)》进入pe》打开这个软件》选择delete》一键还原》还原完成挂起》DVD/cd改成物理。教程全部结束!!!
如有细节疑问请仔细看视频教程,亲自试过才写的教程。
yanchenyuvip@qq.com
 
 
bios操作图文流程:
鼠标点击右键,依次选择”电源”——”关机”,然后再鼠标右键依次选择“电源”——“启动时进入BIOS”,这样我们就能进入虚拟机的BIOS面板了,这个操作甚至比在实体机进入BIOS面板还简单哦。
下面的BIOS面板,使用键盘的上下左右键可以进行上下左右的选择,使用键盘的加号“+”减号“-“键可以调整项目的上下顺序。我们先使用右方向键移到导航菜单“Boot”界面,在这里我们使用下方向键先选中“CD-ROM Drive”,然后使用加号键“+”把它移到第一位,这样我们就能把软驱的启动顺序设定为第一了。
按F10,选yes保存退出。
————————————————
版权声明:本文为CSDN博主「闫有尽意无琼」的原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/yanchenyu365/article/details/82023226

posted @ 2020-03-10 15:29 狼爱上狸 阅读(151) | 评论 (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 狼爱上狸 阅读(860) | 评论 (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 狼爱上狸 阅读(300) | 评论 (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 狼爱上狸 阅读(197) | 评论 (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 狼爱上狸 阅读(747) | 评论 (0)编辑 收藏

VM安装Android

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

安装后还是无法联网的,需要以下步骤才能联网:
设置--》网络和互联网--》私人DNS -->把自动改为关闭
就能上网了。

posted @ 2020-03-03 16:20 狼爱上狸 阅读(116) | 评论 (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 狼爱上狸 阅读(202) | 评论 (0)编辑 收藏

MacOS设置自动登录

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

posted @ 2020-03-02 19:47 狼爱上狸 阅读(107) | 评论 (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 狼爱上狸 阅读(91) | 评论 (0)编辑 收藏

VM安装macOS10.15 VMware TOOLS

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

注意要先把虚拟机的安装光盘退出。

posted @ 2020-03-01 20:45 狼爱上狸 阅读(3058) | 评论 (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 狼爱上狸 阅读(161) | 评论 (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 狼爱上狸 阅读(329) | 评论 (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 狼爱上狸 阅读(137) | 评论 (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 狼爱上狸 阅读(919) | 评论 (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 狼爱上狸 阅读(386) | 评论 (0)编辑 收藏

Flutter项目实战之Flutter_Gank

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

posted @ 2020-02-25 11:40 狼爱上狸 阅读(122) | 评论 (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 狼爱上狸 阅读(307) | 评论 (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 狼爱上狸 阅读(242) | 评论 (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 狼爱上狸 阅读(1392) | 评论 (0)编辑 收藏