
Linux
jmunic
这个作者很懒,什么都没留下…
展开
-
Ubuntu 字符终端
进入字符终端sudo /etc/init.d/gdm stop 退出字符终端sudo /etc/init.d/gdm start 字符终端中文显示:sudo apt-get install zhconzhcon --utf8 --drv=vga zhcon web:http://zhcon.sourceforge.net/index_cn.html原创 2010-02-25 13:59:00 · 1454 阅读 · 0 评论 -
Android Property System
<br /><br /><br />Everyproperty has a name and value. Both name and value are text strings.Property is heavily used in Android to record system setting orexchange information between processes. The property is globallyvisible in the whole system. E转载 2010-07-22 17:55:00 · 440 阅读 · 0 评论 -
Scratchbox on Ubuntu
1:可以下载deb包,也可以下载tar.gz包,这里使用tar.gz,解压完后进行相关的设置即可使用。scratchbox-core-1.0.17-i386.tar.gzscratchbox-libs-1.0.17-i386.tar.gzscratchbox-devkit-cputransp-1.0.9-i386.tar.gzscratchbox-toolchain-arm-l原创 2010-05-18 16:16:00 · 628 阅读 · 0 评论 -
Qemu on Ubuntu
1: 下载Qemu源码编译,由于只需要arm的其他的就不编了./configure --target-list=arm-softmmu --prefix=xxxmake make install添加xxx/bin 到环境变量 运行 qemu-system-arm -M ?可以查看qemu支持的开发板,默认支持integratorcp. 2:配置内核,选原创 2010-05-17 18:22:00 · 2191 阅读 · 0 评论 -
Nfs on Ubuntu
Ubuntu 10.04 1:sudo apt-get install nfs-kernel-server nfs-common portmap 2:sudo dpkg-reconfigure portmap,选择 “否” 3:sudo vim /etc/exports /home/xxx * (rw,sync,no_root_squash),*表示接受原创 2010-05-17 18:00:00 · 442 阅读 · 0 评论 -
Vnc on Ubuntu
Ubuntu 10.04 1:sudo apt-get install vnc4server 2:vncpasswd 3:编辑 ~/.vnc/xstartup: #!/bin/sh # Uncomment the following two lines for normal desktop:# unset SESSION_MANAGER# ex原创 2010-05-17 17:50:00 · 784 阅读 · 0 评论 -
Debug Mini2440 on Ubuntu
1:usb转串口,usb转串口芯片为pl2303,ubuntu10.04带了该芯片的驱动,插上usb后通过dmesg可以查看驱动打印的信息 [ 97.620050] usb 5-2: new full speed USB device using ohci_hcd and address 2[ 97.787229] usb 5-2: configuration #1 cho原创 2010-05-15 18:45:00 · 697 阅读 · 0 评论 -
misc设备
misc_register(),注册将在/dev下自动生成设备节点,主设备号为10,从设备号一般采用动态分配方式static struct file_operations helloworld_mic_fops = {.owner = THIS_MODULE,// .open = helloworld_open,// .release = helloworld_release,// .ioctl = helloworld_ioctl,};static struct miscdevice helloworld原创 2010-07-12 11:53:00 · 669 阅读 · 0 评论 -
View the android source code in Eclipse
1:在SDK的相应目录中建立sources目录:android-sdk-windows/platforms/android-7/sourcesandroid-sdk-windows/platforms/android-6/sources...... 2:把/frameworks拷贝到sources目录下,重启Eclipse即可。原创 2010-05-10 09:57:00 · 532 阅读 · 0 评论 -
Svn on Ubuntu
1:sudo apt-get install subversion esvn 2:svnadmin create ~/svnrepo 3:edit the svnserve.conf and passwd svnserve.conf:anon-access = noneauth-access = writepassword-db = passwd passw原创 2010-04-09 18:17:00 · 420 阅读 · 0 评论 -
samba on ubuntu9.10
1:sudo apt-get install samba smbfs telnetd xinetd 2:edit the /etc/samba/smb.confworkgroup = Ubuntusecurity = user[homes] comment = Home directories path =/home/%S原创 2010-04-07 18:28:00 · 536 阅读 · 0 评论 -
Gitweb on Ubuntu9.10
1:install the toolsa:sudo apt-get install gitweb openssh-sever openssh-client lighttpd python-setuptools 2:config the servera:edit the /etc/lighttpd/lighttpd.conf server.modules原创 2010-04-07 17:22:00 · 936 阅读 · 0 评论 -
toolchain
http://www.codesourcery.com/downloads/public/gnu_toolchain原创 2010-01-07 11:27:00 · 454 阅读 · 0 评论 -
__attribute__ ((packed))
<br /><br />1. __attribute__ ((packed)) 的作用就是告诉编译器取消结构在编译过程中的优化对齐,按照实际占用字节数进行对齐,是GCC特有的语法。这个功能是跟操作系统没关系,跟编译器有关,gcc编译器不是紧凑模式的,我在windows下,用vc的编译器也不是紧凑的,用tc的编译器就是紧凑的。例如:<br />在TC下:struct my{ char ch; int a;} sizeof(int)=2;sizeof(my)=3;(紧凑模式)<br />在GCC下:struct转载 2010-11-25 10:01:00 · 717 阅读 · 0 评论