BE(Big-Endian)和LE(Little-Endian)字节转换
使用cpio的功能
ls <file> | cpio -ov > file.cpio
cpio -iv --swap < file.cpio
SVN管理库的创建
创建
svnadmin create /work/repos
加载apache的svn模块
LoadModule dav_svn_module modules/mod_dav_svn.so LoadModule authz_svn_module modules/mod_authz_svn.so <IfModule dav_svn_module> <Location /repos> DAV svn SVNParentPath /work/run/repos </Location> </IfModule> <IfModule unixd_module>
遇到错误
bin/apachectl restart httpd: Syntax error on line 148 of /usr/local/apache2/conf/httpd.conf: Cannot load modules/mod_dav_svn.so into server: /usr/local/apache2/modules/mod_dav_svn.so: undefined symbol: dav_do_find_liveprop
原因:没有加载mod_dav
Apache OpenMeetings的连接错误问题
在浏览器开始会议时,Flash控件遇到错误,NetConnection.Connect.Fail
原因是流服务的端口设置问题
需要将conf/red5.properties中
rtmp.port=8888
修改设置或修改防火墙规则
同时修改webapps/openmeetings/public/config.xml
<rtmpport>8888</rtmpport>
webapps的设置会影响到Flash连接流服务
编译samba 4.x.x
很搞,一大堆前置,还要用到python,也不知道4是怎么设计的
编译gnutls
checking for NETTLE... configure: error: *** *** Libnettle 2.7.1 was not found.
安装或编译了libnettle还是不行
需要安装pkg-config
error说得明白点不好么
samba4取消了对
security = share
的支持
用user模式取代
security = user map to guest = Bad Password
nettle还要用gmp编译
配置apache模块mod_dav效率低下问题
问题不在模块,将windows中IE的
[Tools]
->[Internet Options]
->[Connections]
->[LAN Settings]
->[Automatically detect settings]的选项去除
系统loop设备增设
在/etc/modules中加入
loop options loop max_loop=64
PXE服务器设置
设置dhcp服务器
apt-get install isc-dhcp-server
配置/etc/dhcp/dhcpd.conf
subnet 192.168.19.0 netmask 255.255.255.0 { range 192.168.19.101 192.168.19.202; next-server 192.168.19.169; filename "pxelinux.0"; }
安装tftp服务器
apt-get install tftpd
确认inetd.conf的内容
tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd /srv/tftp
tftp的搜索路径在/srv/tftp
下载debian的pxe启动文件
解压缩至/srv/tftp,使pxelinux.0在目录中可见
apt-get使用时密键错误
W: GPG error: http://archive.ubuntu.com trusty Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 40976EAF437D05B5 NO_PUBKEY 3B4FE6ACC0B21F32
gpg --recv-keys <key_id> 或 gpg --keyserver subkeys.pgp.net --recv-keys <key_id> gpg --export <key_id> | apt-key add -
debian系统中无法连接无线网卡
DHCP client 超时
安装wpasupplicant
wlan link not ready /etc/network/interfaces wpa-essid <AccessPoint> wpa-keys <WPA key> apt-get install wpasupplicant
使用sendemail的问题
sendemail[3170]: ERROR => No TLS support! SendEmail can't load required libraries. (try installing Net::SSLeay and IO::Socket::SSL) $ sudo apt-get install libnet-ssleay-perl $ sudo apt-get install libio-socket-ssl-perl invalid SSL_version specified at /usr/share/perl5/IO/Socket/SSL.pm line 332 将/usr/share/perl5/IO/Socket/SSL.pm中 m{^(!?)(?:(SSL(?:v2|v3|v23|v2/3))|(TLSv1[12]?))$}i 改为 m{^(!?)(?:(SSL(?:v2|v3|v23|v2/3))|(TLSv1[12]?))}i sendemail[5745]: ERROR => TLS setup failed: SSL connect attempt failed because of handshake problems error:00000000:lib(0):func(0):reason(0) 将sendemail中 if (! IO::Socket::SSL->start_SSL($SERVER, SSL_version => 'SSLv3 TLSv2')) { 改为 if (! IO::Socket::SSL->start_SSL($SERVER, SSL_version => 'SSLv23:!SSLv2')) { 或 if (! IO::Socket::SSL->start_SSL($SERVER, SSL_version => 'SSLv3')) {
iscsitarget安装
apt-get install iscsitarget iscsitarget_dkms vi /etc/iet/ietd.conf Target iqn.2015-04.org.homebox:kvstore.fileraw.download.100g Lun 1 Path=/work/run/disk/100G.raw,Type=fileio vi /etc/default/iscsitarget ISCSITARGET_ENABLE=true /etc/init.d/iscsitarget restart
debian系统中无法使用WPS无线网卡
wlan link not ready /etc/network/interfaces wpa-essid <AccessPoint> wpa-keys <WPA key> DHCP client 超时 resolve: 安装wpasupplicant apt-get install wpasupplicant
cryptsetup的使用
dd if=/dev/urandom of=vdd_key bs=1024 count=4 cryptsetup luksFormat /dev/vdd vdd_key cryptsetup luksAddKey /dev/vdd --key-file vdd_key cryptsetup luksAddKey /dev/vdd --force-password cryptsetup luksDump /dev/vdd LUKS header information for /dev/vdd
LUKS header information for /dev/vdd Version: 1 Cipher mode: cbc-essiv:sha256 Hash spec: sha1 Payload offset: 4096 MK bits: 256 MK digest: 3b c4 23 9d e0 91 fe 50 26 f0 38 17 68 f3 3a 77 15 33 e3 1a MK salt: 1b 90 b0 c3 e2 c8 9f 2d 35 ff ee 1c cb e1 a5 33 a0 b9 29 5b a8 c9 82 3b 6c 6c 28 10 01 d4 d4 1e MK iterations: 41375 UUID: 3bff3185-a74c-4c0d-ac07-87a4619243bf Key Slot 0: ENABLED Iterations: 165972 Salt: 1b 27 ef 9d 68 55 1d ef 5f a5 8f 51 ab 08 90 9a 3d 9a cc 8f d3 dd 0d c5 d7 2b 2a 95 08 46 b8 3c Key material offset: 8 AF stripes: 4000 Key Slot 1: ENABLED Iterations: 167898 Salt: 71 da 50 7c 7d aa f8 82 d8 f8 4d 2d e0 3d a8 11 ea 77 70 c7 61 aa dc 02 0a 3a 50 b7 69 76 d8 7b Key material offset: 264 AF stripes: 4000 Key Slot 2: DISABLED Key Slot 3: DISABLED |
cryptsetup luksOpen /dev/vda evda --key-file /etc/cryptsetup/vdd_key vi /etc/crypttab # <target name> <source device> <key file> <options> evdd /dev/vdd /etc/cryptsetup/vdd_key luks vi /etc/fstab # <file system> <mount point> <type> <options> <dump> <pass> /dev/mapper/evdd /work/run ext4 defaults 0 0
minidlna的编译错误,t-da.gmo
> make make all-recursive make[1]: Entering directory `/home/liuch/minidlna-1.1.4' Making all in po make[2]: Entering directory `/home/liuch/minidlna-1.1.4/po' test ! -f ./minidlna.pot || \ test -z "da.gmo de.gmo es.gmo fr.gmo it.gmo ja.gmo nb.gmo nl.gmo pl.gmo ru.gmo sl.gmo sv.gmo" \ || make da.gmo de.gmo es.gmo fr.gmo it.gmo ja.gmo nb.gmo nl.gmo pl.gmo ru.gmo sl.gmo sv.gmo make[3]: Entering directory `/home/liuch/minidlna-1.1.4/po' rm -f da.gmo && : -c --statistics --verbose -o da.gmo da.po rm -f es.gmo && : -c --statistics --verbose -o es.gmo es.po rm -f de.gmo && : -c --statistics --verbose -o de.gmo de.po mv: rm -f fr.gmo && : -c --statistics --verbose -o fr.gmo fr.po cannot stat `t-da.gmo': No such file or directory mv: make[3]: *** [da.gmo] Error 1 make[3]: *** Waiting for unfinished jobs.... cannot stat `t-es.gmo': No such file or directory make[3]: *** [es.gmo] Error 1 mv: cannot stat `t-de.gmo': No such file or directory make[3]: *** [de.gmo] Error 1 mv: cannot stat `t-fr.gmo': No such file or directory make[3]: *** [fr.gmo] Error 1 make[3]: Leaving directory `/home/liuch/minidlna-1.1.4/po' make[2]: *** [stamp-po] Error 2 make[2]: Leaving directory `/home/liuch/minidlna-1.1.4/po' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/liuch/minidlna-1.1.4' make: *** [all] Error 2
resolve:
安装gettext
清除配置,make distclean
重新编译,configure,make
Windows7自动挂载虚拟盘文件
问题: C盘系统盘分区空间不够,多出现警告提示
解决: 使用其他空间上建虚拟盘,将C盘一些大的目录内容转移,再挂载到该目录下。(由于目录挂载只能是空目录,Program Files等目录由于文件启动时就开始占用不适合于转移,适合选择空间大而不用的目录等)
撰写脚本(以C:\ProgramData\Package Cache为目标)保存至mount_main_arch_data.txt
select vdisk file="D:\Temp\vm\main_drive_archive_data_20170925.vhd"
attach vdisk
assign mount="C:\ProgramData\Package Cache"
添加启动执行程序,或者在任务计划管理器中添加启动任务
diskpart /s "mount_main_arch_data.txt"
可以参照详细原始内容
转载于:https://blog.51cto.com/btvnlue/1621289