![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Linux
bh_wang
这个作者很懒,什么都没留下…
展开
-
查看进程打开的端口号
netstat -tlnp|grep port原创 2011-04-15 15:52:27 · 644 阅读 · 0 评论 -
linux 组播支持
route add -net 224.0.0.0 netmask 240.0.0.0 dev eth0原创 2011-04-20 11:42:01 · 295 阅读 · 0 评论 -
编译JVM
OS: CentOS5.5notice: remove java first 1. download jamvm-1.5.12. ./configure3. make && make install 4. download jikes-1.225. ./configure6. make && make install...原创 2011-04-26 16:12:37 · 78 阅读 · 0 评论 -
修改环境变量
gedit ~/.bash_profile PATH=$PATH:$HOME/bin:/usr/local/arm/arm-2007q3/bin:/usr/local/arm/3.3/bin:/usr/local/jamvm/binPKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig LD_LIBRARY_P...原创 2011-04-26 16:49:32 · 103 阅读 · 0 评论 -
实战Ubuntu下单网卡绑定多IP
常常我们有需要一个网卡象windows一样设置多个IP。下面我们看看在ubuntu下怎么样做.我们先打开网络接口的文件sudo gedit /etc/network/interfaces照上边eth0添加eth0:0auto eth0iface eth0 inet staticname Ethernet Lan cardaddress 192.168.1.1netmask ...原创 2011-07-20 09:45:23 · 188 阅读 · 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 · 82 阅读 · 0 评论 -
boa
compile boa 1. ./configure --host=arm-linux2. make compile cgi app 1. arm-linux-gcc -o cgitest.cgi cgitest.c2. arm-linux-strip cgitest.cgi boa configure: 1. User...2011-07-26 10:29:07 · 81 阅读 · 0 评论 -
ramdisk
1. download ramdisk.gz2. gunzip ramdisk.gz3. mkdir ramdisk_dir4. mount -o loop ramdisk ramdisk_dir5. ./genext2fs -b 8192 -d ramdisk_dir ramdisk6. umount ramdisk_dir7. gzip -9 ramdisk8...原创 2011-07-26 10:32:00 · 68 阅读 · 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 · 145 阅读 · 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 · 89 阅读 · 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 · 345 阅读 · 0 评论 -
core dump
示例程序test.cvoid dummy_function(void){ volatile int *ptr = 0; *ptr = 0xDEAD;}int main(void){ dummy_function(); return 0;}ulimit -c 1024gcc g -rdynamic test.c./a....2011-12-05 16:34:46 · 105 阅读 · 0 评论 -
POSIX conformance testing by UNIFIX
换了编译器重新编译内核,启动出现POSIX conformance testing by UNIFIX解决办法:1. make distclean2. 导入之前的配置文件3. 重新编译内核原创 2011-04-16 21:39:02 · 114 阅读 · 0 评论 -
安装glib
./configure --prefix=/usr &&make &&make install/sbin/ldconfig原创 2011-04-16 21:38:02 · 96 阅读 · 0 评论 -
shine
1. /mnt/nfs # time ./shine -b 192 1.wav 1.mp3Shine v1.08 19/06/03RIFF-WAVE PCM, mono 44100Hz 16bit, Length: 0: 1: 0MPEG 1 layer III, mono Psychoacoustic Model: noneBitrate=192 kbps De...原创 2011-04-16 21:36:00 · 102 阅读 · 0 评论 -
busybox date usage
date -s 2010.03.30-15:36:30 // 2010-03-30 15:36:30date -s 03301536.302010 // 2010-03-30 15:36:30date -s 033015362010 // 2010-03-30 15:36date -s 15:36:00 // 15:36:002011-04-15 15:56:42 · 201 阅读 · 0 评论 -
Redboot for EP9302
EP9302:for linux2.4.21:Redboot> load -v -r -b 0x800000 ramdisk.gzRedboot> load -v -r -b 0x80000 zImageRedboot> exec -r 0x800000for linux2.6.17.14:Redboot> load -v -r -b 0x800000 ...原创 2011-04-16 14:33:35 · 79 阅读 · 0 评论 -
Linux C函数详解
LinuxC函数详解原创 2011-04-16 15:14:50 · 118 阅读 · 0 评论 -
gstream-rtsp
run live555 rtsp server: ./live555MediaServerplay mp3: gst-launch playbin uri=rtsp://127.0.0.1:8554/test.mp3download file:gst-launch rtspsrc location=rtsp://127.0.0.1:8554/test.mp3 ! fil...原创 2011-04-16 15:16:52 · 164 阅读 · 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 · 115 阅读 · 0 评论 -
编译gstreamer app
install glib-2.22.51. download glib-2.22.52 ./configure3. 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 · 135 阅读 · 0 评论 -
linux挂载U盘
1. ~ # fdisk -l2. ~ #mkdir /mnt/usb3. ~ #mount -t vfat /dev/sda /mnt/usb4. ~ #df/dev/ramdisk 6067 4741 1326 78% //dev/sda 3910168 13172 3896...原创 2011-04-16 21:27:19 · 64 阅读 · 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 · 111 阅读 · 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 · 76 阅读 · 0 评论 -
sudo
1. su -2. visudo /etc/sudoers 找到root ALL=(ALL)这一行 按a进入append模式 添加一行:yourname ALL=(ALL) NOPASSWD: ALL原创 2011-04-16 21:30:33 · 154 阅读 · 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 · 90 阅读 · 0 评论 -
研华推出基于Freescale i.MX53的ARM核心板
http://www.eepw.com.cn/article/125454_2.htmhttp://www.advantech.com.cn/products/ROM-1210/mod_D5882807-78CE-4A64-AADA-FAEAA099F2CB.aspx ROM-1210基于Freescale ARM...原创 2012-02-10 13:36:12 · 151 阅读 · 0 评论