Linux
bh_wang
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
查看进程打开的端口号
netstat -tlnp|grep port原创 2011-04-15 15:52:27 · 693 阅读 · 0 评论 -
linux 组播支持
route add -net 224.0.0.0 netmask 240.0.0.0 dev eth0原创 2011-04-20 11:42:01 · 363 阅读 · 0 评论 -
编译JVM
OS: CentOS5.5 notice: remove java first 1. download jamvm-1.5.1 2. ./configure 3. make && make install 4. download jikes-1.22 5. ./configure 6. make && make install...原创 2011-04-26 16:12:37 · 123 阅读 · 0 评论 -
修改环境变量
gedit ~/.bash_profile PATH=$PATH:$HOME/bin:/usr/local/arm/arm-2007q3/bin:/usr/local/arm/3.3/bin:/usr/local/jamvm/bin PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig LD_LIBRARY_P...原创 2011-04-26 16:49:32 · 143 阅读 · 0 评论 -
实战Ubuntu下单网卡绑定多IP
常常我们有需要一个网卡象windows一样设置多个IP。 下面我们看看在ubuntu下怎么样做. 我们先打开网络接口的文件 sudo gedit /etc/network/interfaces 照上边eth0添加eth0:0 auto eth0iface eth0 inet staticname Ethernet Lan cardaddress 192.168.1.1netmask ...原创 2011-07-20 09:45:23 · 237 阅读 · 0 评论 -
Linux下单网卡绑定多IP与多网卡共用单IP
在Linux下有时候需要给一个网卡绑定多个IP,本文介绍在Redhat系列(redhat,Fedora Core,Centos)中的实现方法和一种在Gentoo等其他Linux中普遍适用的方法。 1、单网卡绑定多IP在Redhat系列中的实现方法 假设需要绑定多IP的网卡是eth0,请在/etc/sysconfig/network-scripts目录里面创建一个名为ifcfg-eth0:0...原创 2011-07-20 09:46:50 · 131 阅读 · 0 评论 -
boa
compile boa 1. ./configure --host=arm-linux 2. make compile cgi app 1. arm-linux-gcc -o cgitest.cgi cgitest.c 2. arm-linux-strip cgitest.cgi boa configure: 1. User...2011-07-26 10:29:07 · 122 阅读 · 0 评论 -
ramdisk
1. download ramdisk.gz 2. gunzip ramdisk.gz 3. mkdir ramdisk_dir 4. mount -o loop ramdisk ramdisk_dir 5. ./genext2fs -b 8192 -d ramdisk_dir ramdisk 6. umount ramdisk_dir 7. gzip -9 ramdisk 8...原创 2011-07-26 10:32:00 · 117 阅读 · 0 评论 -
I2C bus glue for Cirrus EP93xx
转自 http://arm.cirrus.com/forum/viewtopic.php?t=51&highlight=i2c The attached file should be placed in linux-2.4.21\drivers\i2c\ . In Config.in I have added: dep_tristate ' I2C bus glue fo...原创 2011-07-26 11:44:02 · 196 阅读 · 0 评论 -
crc
#include <stdio.h> int reverse_bits(int input, int bits) { int i, result = 0; for (i = 0; i < bits; i++) { result = (result << 1) | (input &am...原创 2011-12-15 09:45:11 · 138 阅读 · 0 评论 -
linux print stack trace
#include <execinfo.h> #include <stdio.h> #include <stdlib.h> #include <signal.h> /* A dummy function to make the backtrace more interesting. */ void dummy_fun...原创 2011-12-05 14:04:50 · 439 阅读 · 0 评论 -
core dump
示例程序test.c void dummy_function(void) { volatile int *ptr = 0; *ptr = 0xDEAD; } int main(void) { dummy_function(); return 0; } ulimit -c 1024 gcc g -rdynamic test.c ./a....2011-12-05 16:34:46 · 146 阅读 · 0 评论 -
POSIX conformance testing by UNIFIX
换了编译器重新编译内核,启动出现POSIX conformance testing by UNIFIX 解决办法: 1. make distclean 2. 导入之前的配置文件 3. 重新编译内核原创 2011-04-16 21:39:02 · 154 阅读 · 0 评论 -
安装glib
./configure --prefix=/usr &&make &&make install/sbin/ldconfig原创 2011-04-16 21:38:02 · 150 阅读 · 0 评论 -
shine
1. /mnt/nfs # time ./shine -b 192 1.wav 1.mp3 Shine v1.08 19/06/03 RIFF-WAVE PCM, mono 44100Hz 16bit, Length: 0: 1: 0 MPEG 1 layer III, mono Psychoacoustic Model: none Bitrate=192 kbps De...原创 2011-04-16 21:36:00 · 139 阅读 · 0 评论 -
busybox date usage
date -s 2010.03.30-15:36:30 // 2010-03-30 15:36:30 date -s 03301536.302010 // 2010-03-30 15:36:30 date -s 033015362010 // 2010-03-30 15:36 date -s 15:36:00 // 15:36:002011-04-15 15:56:42 · 258 阅读 · 0 评论 -
Redboot for EP9302
EP9302: for linux2.4.21: Redboot> load -v -r -b 0x800000 ramdisk.gz Redboot> load -v -r -b 0x80000 zImage Redboot> exec -r 0x800000 for linux2.6.17.14: Redboot> load -v -r -b 0x800000 ...原创 2011-04-16 14:33:35 · 111 阅读 · 0 评论 -
Linux C函数详解
LinuxC函数详解原创 2011-04-16 15:14:50 · 154 阅读 · 0 评论 -
gstream-rtsp
run live555 rtsp server: ./live555MediaServer play mp3: gst-launch playbin uri=rtsp://127.0.0.1:8554/test.mp3 download file: gst-launch rtspsrc location=rtsp://127.0.0.1:8554/test.mp3 ! fil...原创 2011-04-16 15:16:52 · 216 阅读 · 0 评论 -
gstreamer example for mp3 player
/* playmp3.c */ #include <gst/gst.h> #include <unistd.h> void show_version(void); int main(int argc, char *argv[]) { GstElement *pipeline, *filesrc, *decoder, *conv, *audiosin...原创 2011-04-16 15:19:06 · 168 阅读 · 0 评论 -
编译gstreamer app
install glib-2.22.5 1. download glib-2.22.5 2 ./configure 3. make && sudo make install 4. exports export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH export L...原创 2011-04-16 15:20:08 · 212 阅读 · 0 评论 -
linux挂载U盘
1. ~ # fdisk -l 2. ~ #mkdir /mnt/usb 3. ~ #mount -t vfat /dev/sda /mnt/usb 4. ~ #df /dev/ramdisk 6067 4741 1326 78% / /dev/sda 3910168 13172 3896...原创 2011-04-16 21:27:19 · 108 阅读 · 0 评论 -
用execl实现静态ip地址
#include <stdio.h> #include <unistd.h> #include <string.h> #include <errno.h> int main(int argc, char *argv[]) { char *addr = "192.168.0.222"; if (execl("/sbin/...2011-04-16 21:28:49 · 163 阅读 · 0 评论 -
Unable to find the Ncurses libraries
用make menuconfig时出现错误: Unable to find the Ncurses libraries 解决办法: sudo apt-get install ncurses-dev原创 2011-04-16 21:29:36 · 121 阅读 · 0 评论 -
sudo
1. su - 2. visudo /etc/sudoers 找到root ALL=(ALL)这一行 按a进入append模式 添加一行:yourname ALL=(ALL) NOPASSWD: ALL原创 2011-04-16 21:30:33 · 195 阅读 · 0 评论 -
交叉编译QT
// 下载文件 qt-x11-opensource-src-4.4.3.tar.gz,qt-embedded-linux-opensource-src-4.4.3.tar.gz,arm-linux-gcc-3.4.1.tar.bz2 // 编译环境 CentOS-4.4, gcc version 3.4.6 20060404 (Red Hat 3.4.6-3) ...2011-04-16 21:34:46 · 129 阅读 · 0 评论 -
研华推出基于Freescale i.MX53的ARM核心板
http://www.eepw.com.cn/article/125454_2.htm http://www.advantech.com.cn/products/ROM-1210/mod_D5882807-78CE-4A64-AADA-FAEAA099F2CB.aspx ROM-1210 基于Freescale ARM...原创 2012-02-10 13:36:12 · 207 阅读 · 0 评论
分享