找回密码
 注册

QQ登录

只需一步,快速开始

搜索
分享 我的 linux-vserver 之路
心想事成 2008-2-7 10:03
想要保持系統的穩定又能有新奇的玩意兒可以測試,那麼 linux-vserver 似乎是最佳的選擇了。 vserver 是一種強化的 chroot 環境,透過內容切換的方式實作出與 host OS 完全獨立的 Linux 環境。由於 Un*x 是一種檔案導向的作業系統,以 chroot 進行的檔案系統分離就已經具有相當程度的獨立性,而 linux-vserver 則進一 ...
355 次阅读|0 个评论
分享 dos2unix, unix2dos 对应的命令
心想事成 2007-12-17 14:39
dos2unix, unix2dos 对应的命令 dos2unix, unix2dos 用来实现 DOS = UNIX text file 转换 aptitude install sysutils 行末: DOS 格式 0d 0a UNIX 格式 0a 可用功能相同的指令組合 dos2unix: sed -i'' "s/\r//" file 或 cat file | col -b newfile 或 cat file | tr -d "\r" newfile 或 cat file | ...
90 次阅读|0 个评论
分享 rsa_use_openssl
心想事成 2007-12-16 21:06
#include stdio.h #include openssl/err.h #include openssl/rsa.h #include openssl/pem.h #define SECFILE "sec.pem" #define PUBFILE "pub.pem" int main(int argc, char *argv ); goto out; } keylen = atoi(argv ); if ((key = RSA_generate_key(keylen, 3, NULL, NULL) ...
97 次阅读|0 个评论
分享 访问任意进程数据
心想事成 2007-12-16 21:04
http://bbs.chinaunix.net/viewthread.php?tid=701520extra=page=3 #ifdef TEST_ACCESS_PROCESS_VM char buf = "TEST ACCESS_PROCESS_VM"; test_user_copy() { struct task_struct *t; int len = 1024*4; long addr = 0x4014d008; //this is a fixed addr printed by tfile.c, never change. int found = 0; int ...
96 次阅读|0 个评论
分享 696升级wm6
心想事成 2007-12-16 21:03
696是这样来刷机的 、保证696电量充足,关闭电话功能,进入bootloader模式。方法是:按住电源键,方向键的中间,再用笔戳reset孔,这时的画面是 Serial v1.03 2、把696放到底座上,连上USB线,或者直接用usb线连接这时候电脑提示找到新硬件,别理他 ...
124 次阅读|0 个评论
分享 使用parted进行非交互式分区
心想事成 2007-12-16 21:02
8月4日 使用parted进行非交互式分区ls 命令格式:parted /dev/hdX command ... 查看分区信息: parted /dev/hdX print 删除分区: parted /dev/hdX rm Y Y根据/dev/hdXY 例如,删除/dev/hda1:parted /dev/hda rm 1 从一个新磁盘创建分区(例如创建/dev/hda1, /dev/hda2, /dev/hda3): 1. 创建分区表: parted ...
217 次阅读|0 个评论
分享 VC++6.0中编译OpenVPN
心想事成 2007-12-16 21:01
VC++6.0中编译OpenVPN 在Windows下编译OpenVPN,一般推荐用MinGW工具,但本人尝试过多次都未成功,于是改用VC,经过比较长时间的摸索,得出以下比较繁琐的步骤,与诸初学者共享。 ************************************************************************************************** &nb ...
245 次阅读|1 个评论
分享 读取rsa的私钥key
心想事成 2007-12-16 21:01
#include openssl/md5.h #include openssl/rsa.h #include openssl/pem.h #include string.h #include stdio.h #define RSA_KEY_FILE "rsakey.txt" // openssl genrsa -out rsakey.txt 1024 int main(void) { RSA* rsa = NULL; &nb ...
91 次阅读|0 个评论
分享 mingw编译相关
心想事成 2007-12-16 20:59
How do I use cygwin1.dll with Visual Studio or MinGW? Before you begin, note that Cygwin is licensed under the GNU GPL (as indeed are all other Cygwin-based libraries). That means that if your code links against the cygwin dll (and if your program is calling functions from Cygwin, it must, as a ...
137 次阅读|0 个评论

本页有 1 篇日志因作者的隐私设置或未通过审核而隐藏

QQ|Archiver|手机版|小黑屋|软路由 ( 渝ICP备15001194号-1|渝公网安备 50011602500124号 )

GMT+8, 2024-7-27 14:17 , Processed in 0.129490 second(s), 2 queries , Gzip On, Redis On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

返回顶部