首页 » Archive by category 'OS'

screenrc configuration example

lesca | CentOS, Tutorials | 2017-08-10
This is an example of .screenrc configuration file. Just for your reference. .screenrc # Bind F11 and F12 (NOT F1 and F2) to previous and next screen window bindkey -k F1 prev bindkey -k F2 next startup_message off # Screens screen -t Init screen -t Work screen -t OpenWRT ssh -i /root/key 192.168.1.1 select 0 ... [阅读全文]

Mount VHD at Windows startup with PowerShell

lesca | Troubleshoot, Tutorials, Windows | 2017-05-29
Create a scheduled task Command: %SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe Parameter: -ExecutionPolicy ByPass -file "C:\VHD\mountVHD.ps1" Powershell Script to mount VHD Method1: Mount-DiskImage (Recommended) This is the recommended command to mound VHD as it does not rely on the Hyper-V role. Mount-DiskIma... [阅读全文]

The trust relationship between this workstation and the primary domain failed

lesca | Windows | 2017-05-23
Introduction You might have encountered this error message many times: “The trust relationship between this workstation and the primary domain failed”. The general solution is dis-joining and re-joining the domain. Any other ways without doing so? The answer is yes. Error message The trust relationship between thi... [阅读全文]

WDS PXE issue: PXE-E16: No offer received

lesca | Windows | 2016-12-25
WDS PXE issue: PXE-E16: No offer received
Issue Description: The problem server installed the follwing roles: WDS DHCP WSUS RRAS (Route and Remote Access Service) The WDS service is configured with Active Directory integrated, everything seems configured correctly. But a Hyper-V Gen2 VM client is not possible to boot with PXE. Message is "DHCP failed". If you redir... [阅读全文]

Test Peer to Peer Connection Speed with iperf3

lesca | CentOS, Tutorials, Windows | 2015-04-08
Hi! I am writing to explain how to test your network connection between your client (Windows or Linux) and another client (say, a remote server). The tool is iperf version 3. You can find some useful explanations and examples on this French site: https://iperf.fr/ But the version stays at 2 which does not have some amazing ne... [阅读全文]
ė 6Comments Off on Test Peer to Peer Connection Speed with iperf3 0,

FreeRadius3 of CentOS7: [sql] = notfound

lesca | CentOS, Troubleshoot | 2015-03-04
Problem (0) sql : expand: "%{User-Name}" -> 'demo' (0) sql : SQL-User-Name set to 'demo' rlm_sql (sql): Reserved connection (4) (0) sql : expand: "SELECT id, username, attribute, value, op FROM radcheck WHERE username = '%{SQL-User-Name}' ORDER BY id" -> 'SELECT id, username, attribute, value, op FROM radchec... [阅读全文]
ė 6Comments Off on FreeRadius3 of CentOS7: [sql] = notfound 0,

加速WEB访问:使用DNSmasq与squid代理并过滤广告

lesca | CentOS, Tutorials | 2015-02-07
简介 DNSmasq是一个小巧且方便地用于配置DNS和DHCP的工具,适用于小型网络,提供了DNS功能和可选择的DHCP功能。通过其DNS缓存的功能,可以大大提高公共网络中的域名解析速度,从而提升网站访问速度。 squid代理服务提供了WEB页面缓存的功能,也可以帮助用户加速网站的访问,还能进行必要的行为管控(如禁止访问某些网站、过滤网页中的某些内容等)。本... [阅读全文]
ė 6Comments Off on 加速WEB访问:使用DNSmasq与squid代理并过滤广告 0, , ,

CentOS 7 安装wordpress 权限问题

lesca | CentOS | 2014-12-23
CentOS 7 安装wordpress 权限问题
如果你的wordpress安装目录是wordpress,则通过默认向导配置会出现权限不足的情况: Sorry, but I can’t write the wp-config.php file. You can create the wp-config.php manually and paste the following text into it. 或者 抱歉,但是向导在您的文件系统中没有足够的权限写入wp-config.php文件。 这时候,首先考虑wordpress文件夹的所属... [阅读全文]

OpenWRT: 扩容trx格式固件的刷机包大小 (for brcm47xx)

lesca | OpenWRT, Tutorials | 2014-03-01
OpenWRT默认的trx刷机包大小为8MB,由于路由器FLASH芯片已改16MB,为了能生成更大的刷机文件,需要修改源码完成。 修改方法比较简单: 找到文件 tools/firmware-utils/src/trx.c 找到该行: #define TRX_MAX_LEN 0x7c0000 将这行修改成: #define TRX_MAX_LEN 0xfc0000 具体如何找到的我就不多说了,大体思路是更具错误消息定位生成trx... [阅读全文]
ė 6Comments Off on OpenWRT: 扩容trx格式固件的刷机包大小 (for brcm47xx) 0, ,

OpenWRT:GoAgent WallProxy专用固件 for brcm47xx

lesca | OpenWRT, Tutorials | 2014-02-26
最近我已经成功编译了gevent,现发出最新brcm47xx系列固件: 8M版固件自带实现安全线程的opensll库,python和python相关的安全库。安装后直接将GoAgent或者WallProxy的客户端拷入路由器即可使用。 16M版固件除了8M的功能外,还支持U盘(ext4, vfat, ntfs文件系统)、摄像头通用驱动,mjpg-streamer,ffmpeg等视频处理功能。 百度网盘: http://pan.bai... [阅读全文]

GoAgent vs WallProxy

lesca | OpenWRT, Tutorials | 2014-02-26
概况 GoAgent是WallProxy的一个fock,在WallProxy停止维护期间,风靡至今。 我不打算从技术细节上比较两者,只从实际应用方面,我更倾向于WallProxy。主要有以下一个优势: WallProxy优点 文件小,占用资源低,以H681B为例,CPU峰值不过70%(编译gevent后资源占用更低) 稳定。在我编译的OpenWRT上完美运行,没有报错。 可与iOS设备兼容,不会出现无法... [阅读全文]

OpenWRT libopenssl for brcm47xx

lesca | OpenWRT, Tutorials | 2014-02-26
由于官方OpenWRT仓库的libopenssl有一个已知的安全线程问题,使得在OpenWRT上运行GoAgent或者WallProxy变得困难重重。 经过一番调查发现,虽然该问题在r33269中曾解决,但是不知为何修复者又在r33292中改了回去,详见r33269与r33292的diff 因此,OpenWRT的libopenssl不可直接使用。OpenWRT中文站搜集了 brcm64xx和ar71xx的编译包,但是却没有brcm47xx的... [阅读全文]
ė 6Comments Off on OpenWRT libopenssl for brcm47xx 0, , , , ,

Windows: 禁止安装U盘

lesca | Windows | 2013-01-07
本文介绍禁用USB存储设备的简单方法。该方法无需重启,立即生效。并且不影响其他USB设备,如鼠标、键盘、打印机的安装与使用。 删除以前安装的U盘驱动程序 移除所有USB设备 在系统环境变量中加入变量devmgr_show_nonpresent_devices,设置值为1 打开“设备管理器”,点击“视图” – “显示隐藏设备” 卸载以下栏目中所有相关驱动:USB控制器、磁盘设备... [阅读全文]

灾难恢复:使用Symantec Backup Exec恢复唯一一台域控制器的系统状态

lesca | Active Directory, Tutorials, Windows | 2012-12-12
测试环境: 环境中有两台安装了Windows Server 2008 R2操作系统的服务器(08DC1和08Server1) 08DC1是环境中唯一一台域控制器,由于不可抗力无法启动 08DC1的IP地址为192.168.10.2,域名为lesca.tld 08Server1是08DC1的成员服务器,并安装了Symantec BE 2010 R2 最近对08DC1的系统状态(System State)进行了完整备份,但是没有08DC1的完整系统镜像 Admi... [阅读全文]

Windows: 使用Win7自带的远程协助功能

lesca | Tutorials, Windows | 2012-12-10
今天Lesca向大家介绍如何使用Win7自带的远程协助功能实现管理员向用户主动提供远程协助。这个特性是Win7新增的,也就是说诸如XP那种早起版本里就没有了。如果你所在公司IT预算有限的话,就可以考虑以下这个叫做Windows Remote Assistance的东东了。 1.远程协助的三种方式 传统方式 传统的远程协助是在用户遇到问题之后发出远程协助邀请,邀请会生成一... [阅读全文]
Ɣ回顶部