Leading

mod_apache_snmp, net-SNMP (给apache2添加SNMP支持)

2012-04-18. Category & Tags: Leading, Soft&Skills Leading, Soft&Skills

Tested on platform: # vmware Linux ubuntu 2.6.32-38-generic #83-Ubuntu SMP Wed Jan 4 11:13:04 UTC 2012 i686 GNU/Linux DISTRIB_ID=Ubuntu; DISTRIB_RELEASE=10.04; DISTRIB_DESCRIPTION=“Ubuntu 10.04.4 LTS” httpd-2.0.64.tar.bz2; net-snmp-5.4.4; mod_ap2_snmp_1.04. sudo -s; apt-get remove lamp-server^ snmpd # if you have already installed apache or snmp-server. Just do it: # http://mod-apache-snmp.sourceforge.net/english/docs.htm (below is a summary) 1) Install Apache Web Server with DSO support enabled. ./configure --enable-so; make; make install 2) Unzip NET-SNMP sources. 3) Unzip Mod-APACHE-SNMP sources. ...

虚拟机的安装和快照的简单实用 Install VMware, Ubuntu; Snapshot; Config VMware Tools

2012-04-16. Category & Tags: Leading, Soft&Skills Leading, Soft&Skills

updated: 2026-05-28 Install VMware # 参考视频:从零开始:如何从官网免费下载安装VMware虚拟机?(纯新手向,无废话). 参考博客:VMwarepro16安装完整流程——注意事项全部详解_windows hypervisor platform-CSDN博客. 注意以下几点: 一般要选 “自动安装 WHP” (应对 Hyper-V 问题)。 一般不要选:❌️ 自动更新:❌️ 体验计划。 Install Ubuntu # 【警告】!:以下教程中,注意硬盘大小不要按照视频中的 20,尽量往大了写,例如 900 GB (不会实际占用,而且以后想改大很麻烦,所以现在写个很大的数字),并且不选“立即分配”;另外,如果不需要频繁移动虚拟机,建议选“单个文件”。 以 24.04 LTS Desktop 为例的参考视频: 零基础安装Ubuntu 24.04 LTS 虚拟机教程. 注意:本地学习用的系统,用户名和密码尽量简单,例如 用户名、昵称都是 aaa 密码 aaa。 . 提示:下载系统安装文件时,如果外网较慢,可以到国内镜像下载: 清华 | Tsinghua Open Source Mirror. 齐鲁工大. 从目录里找最新的版本安装即可 (注意:如果是上课或做项目,一定要问清楚安装哪个版本,不要自己猜)。可以自己查一下文件夹中各文件的意思,看不懂就找最大的那个文件下载。 Snapshot 快照 # 快照的定义:浅谈快照技术:一个完全可用的拷贝,但并不是一份完整的拷贝. 小提示:快照是存储在硬盘上的文件,是文件就有可能损坏,一个快照的损坏可能导致此快照时间点后的状态都丢失。 快照的使用:VMware虚拟机快照、克隆、迁移的概述以及操作. 注意:关机或暂停虚拟机后再制作快照。其他注意事项:注意的操作事项. 含有 GUI 图形用户界面的 Desktop 桌面版安装后,启动无问题,立即关机并制作快照。(Server 版跳过此步) 然后关闭系统自动升级,再按照个人喜好进行简单基础配置,再制作一次快照,不放命名为“初始配置 ok”。 接下来建议: 学习 Linux 的基本操作 配置 vmware-tools 用于在虚拟机和 windows 之间共享文件 XXX ubuntu-7-install-vmware-tools XXX Dated # The path "" is not valid path to the gcc binary. ...

乱码putty支持中文utf8输入和显示

2012-03-22. Category & Tags: Leading, Soft&Skills Leading, Soft&Skills

ref: networkquestions.org Note: Putty officially recommends to use Bitvise SSH Client & Server. 终端默认是使用windows的编码方式(GBK),我们需要手动改为UTF-8 再次重启的时候就不会是乱码了: [root@mail ~]# service httpd restart 停止 httpd: [确定] 启动 httpd: [确定] [root@mail ~]# 这是终端的乱码问题,再说一下打开中文文件乱码问题。 在很多的配置文件中,含有中文,用vi打开时也是会乱码。首先我们系统中要有中文语言显示包(fonts-chinese),否则改为UTF-8也是会乱码。 [root@mail ~]# cat /etc/sysconfig/i18n LANG=”zh_CN.UTF-8″ [root@mail ~]# 上面的设置,系统语言为中文,如果想改为英文的话,替换为: LANG=”en_US.UTF-8″ 保存即可。 临时性改变语言:export LANG=en_US.UTF-8 echo $LANG //查看语言 另一个: ref: ylmf.net 字符乱码: 在window-〉Appearance-〉Translation中,Received data assumed to be in which character set 中,把Use font encoding改为UTF-8. 如果经常使用,把这些设置保存在session里面. /* 下面的有待研究 …. 登录成功后,在shell中输入:export LC_ALL=‘zh_CN.utf8’,现在已经可以完美的支持中文了. 打开putty主程序,选择window-〉Appearance-〉Font settings-〉Change…,选择Fixedsys字体,字符集选择CHINESE_GB2312。 默认情况下,putty对中文的支持却让人不敢恭维,如果远程linux的locale设置为zh_CN.*(bg2312,gbk,utf8等等),显示就是乱码。经研究发现,其实putty的中文支持还是很好的,呵呵 ...

[bak] Sar 监控命令小览

2012-03-07. Category & Tags: Leading, Soft&Skills Bak, Nix, Linux, Leading, Soft&Skills

see also jlevy/the-art-of-command-line (multi-language) from: qa.taobao.com 最近接触了下淘宝的性能框架PAP,觉得系统中的监控真的做的很不错,但是非pap运行的程序,则无法监控,同时也查了下淘宝性能百科对监控命令Sar介绍,觉得讲的比较粗,这里把自己以前用过的Sar监控分享下;有问题,大家共勉哈!

System/Network Measuring/Monitoring Theory & Tools

2012-03-07. Category & Tags: Leading, Soft&Skills Leading, Soft&Skills, Measurement, 系统, 网络, 监控, 测量

See also: Network Hardware - Fiber: /fiber. NMAP: /nmap. GUI # 卓岚 TCP&UDP 调试工具 (兼容服务端监听和客户端主动连接) Private IPv4 Network & Ranges # 10.0.0.0/8 ( 10.0.0.0 - 10.255.255.255 ); 172.16.0.0/12 ( 172.16.0.0 - 172.31.255.255 ); 192.168.0.0/16 ( 192.168.0.0 - 192.168.255.255 ) ref: 内网 IP 段有哪些 Tools # performance # Win: Releases · ar51an/iperf3-win-builds. Nix: apt install iperf3 iperf3 -s -D # some test here pkill iperf3 && netstat -tulvpn trace route # mtr (my traceroute / traceroute 2. ...

一个女留学生的七年

2012-02-09. Category & Tags: Leading, Life, Others DailyStudy, Jobb, Leading, Life, Others, Stefanie

http://emuch.net/html/201004/1951179.html 如果说本科期间我拓宽了一下知识面算是个收获的理由,那么这一年半我真是对不起我自己了. 还有半年,我能做的就是"struggle for success"了,向这个女生学习. 也向zq和那个泰国人借鉴"just do it"的优点. 还有半年, 半年后我是谁? 我有我的plan 立此存照 的plan 立此存照 nbsp;

eric crash

2012-02-05. Category & Tags: Leading, Py Leading, Py

ubuntu 11.10 64bit. eric4 启动后窗口一闪即告崩溃。 命令窗口启动发现: Connected to accessibility bus at: “unix:abstract=/tmp/dbus-5rwqiiCSZ1,guid=a3330f45019a77c867e77525000000a2” Registered DEC: true sudo 正常启动,无此提示,因此怀疑是环境变量的问题。 g后发现: http://ubuntuforums.org/showthread.php?t=1861605 即: export QT_ACCESSIBILITY=0 问题解决。 ps: Accessibility in Qt # by Geir Vattekar Accessibility in computer software is the practice of making applications usable for people with disabilities. This can be implemented by the application itself — for instance, by using a high-contrast user interface with specially selected colors and fonts — or by providing support for external tools, such as screen readers and Braille displays. ...

小企鹅fcitx输入法安装, 中文gnome,英文kde

2012-01-14. Category & Tags: Leading, Life Leading, Life

Ubuntu 18.04 # The default ibus-based Chinese input method is ready to use. Thus, just change the language & input settings. Kubuntu # For Kubuntu 18.04, it is a good way to install fcitx-based methods. sudo -s apt install fcitx fcitx-googlepinyin cat >>/etc/environment <<EOD GTK_IM_MODULE=fcitx QT_IM_MODULE=fcitx XMODIFIERS=@im=fcitx EOD 设置》启动》添加自启动项(startup): fcitx -d Xubuntu 在 开始菜单》所有设置 里面。 Lubuntu 在 开始菜单》Preferences->Default applications for LXSession (建议默认英文输入法) 重新登录后,Ctrl + 空格可以调用输入法,shift 切换中英文。 dated below # ubuntu 11. ...

时间跟踪,工程,项目,Project管理软件.(Linux)

2012-01-08. Category & Tags: Jobb, Leading, Life Jobb, Leading, Life

See also: code & project management software Rachota,​java,个人时间跟踪用.(在我的中文 ubuntu 上运行,很多方块 …..) Dotproject 貌似很牛,上次看 proj 管理也看到了.但是 ​demo 为什么打不开 …. Kimai 太复杂了. 7 Best Free Linux Time Tracking Software # ref Time Tracking [Project Hamster](http://www.linuxlinks.com/article/20120102092428825/ProjectHamster.html) Time tracking applet for the GNOME desktop environment [Kimai](http://www.linuxlinks.com/article/20120106091739996/Kimai.html) Web based software that tracks work time, and classifies it [Task Coach](http://www.linuxlinks.com/article/20101002094015328/TaskCoach.html) Designed to deal with composite tasks [Rachota](http://www.linuxlinks.com/article/20120106092050297/RachotaTimetracker.html) Designed for personal timetracking of projects [dotProject](http://www.linuxlinks.com/article/20090410203917702/dotProject.html) Web-based, multi-user, multi-language project management application [Kontact](http://www. ...