02 2012 档案

摘要:1 官方ELF文件格式讲解,非常好。http://www.skyfree.org/linux/references/ELF_Format.pdf2Intel平台下Linux中ELF文件动态链接的加载、解析及实例分析http://www.ibm.com/developerworks/cn/linux/l-elf/part1/ 阅读全文
posted @ 2012-02-29 17:38 Jack204 阅读(550) 评论(0) 推荐(0)
摘要:为了加快启动,ubuntu使用的ash,所以在shell中直接用 sh *.sh 有时候会出现语法错误。因为ash只是bash的一个简化版可以显示的使用bash执行该脚本bash ×.sh在sh文件头部加入#!/bin/bash,然后将sh文件具有可执行权限,直接./*.sh 阅读全文
posted @ 2012-02-27 16:54 Jack204 阅读(3649) 评论(0) 推荐(0)
摘要:VirtualBox添加新硬盘昨晚在自己的virtualbox中的linux装matlab2010a,没想到硬盘空间不足,所以找了下怎么添加硬盘的资料。也很简单,每几条命令。大致流程:我的virtualbox版本是3.2.8,linux版本是xubuntu10.01吧貌似1. 关闭虚拟机,然后在设置里面选择添加虚拟硬盘2. 重新启动linux,然后使用命令sudo fdisk –l显示信息如下:---------------------------------------------------------------------------- Disk /dev/sda: 10.... 阅读全文
posted @ 2012-02-22 18:52 Jack204 阅读(4373) 评论(0) 推荐(0)
摘要:【转自】:http://ubuntu.uestc.edu.cn/Notes推荐使用域名http://ubuntu.dormforce.net代替http://ubuntu.uestc.edu.cn我们同时提供 Ubuntu 的ISO BT种子文件的下载End of Life (EOL) for each version: https://wiki.ubuntu.com/ReleasesSupport Email:contact@dormforce.netUbuntu 12.04 Precise PangolinISO BT Download-->ISO BT Download--> 阅读全文
posted @ 2012-02-21 22:06 Jack204 阅读(367) 评论(0) 推荐(0)
摘要:如何编译一个内核 - Ubuntu方式2011-09-19 15:40 转载地址:http://hi.baidu.com/1101050240/blog/item/69e3d0d92f2b297dd1164e79.html每一个Linux发行版都有自己专门的工具去构建自定义的内核. 本文主要介绍在Ubuntu平台上编译内核, 如何从www.kernel.org(也叫vanilla kernel)获得最新且未改动的内核源代码来构建一个自定义的内核, 这样你可以使用自己的内核而不是发行版的内核, 另外也介绍了如何给内核打补丁, 从而方便增加新的功能.下面的工作我都在Ubuntu 6.10 Serv 阅读全文
posted @ 2012-02-21 17:28 Jack204 阅读(7814) 评论(0) 推荐(0)
摘要:Linux 2.6.19.x 内核编译配置选项简介作者:金步国,转载地址:http://lamp.linux.gov.cn/Linux/kernel_options.html版权声明本文作者是一位自由软件爱好者,所以本文虽然不是软件,但是本着 GPL 的精神发布。任何人都可以自由使用、转载、复制和再分发,但必须保留作者署名,亦不得对声明中的任何条款作任何形式的修改,也不得附加任何其它条件。您可以自由链接、下载、传播此文档,但前提是必须保证全文完整转载,包括完整的版权信息和作译者声明。其他作品本文作者十分愿意与他人共享劳动成果,如果你对我的其他翻译作品或者技术文章有兴趣,可以在如下位置查看现有作 阅读全文
posted @ 2012-02-21 17:19 Jack204 阅读(340) 评论(0) 推荐(0)
摘要:Linux Kernel : likely/unlikely macrosEver wondered what the likely and unlikely macros in the linux kernel are ?The macros are defined as :#define likely(x) __builtin_expect((x),1)#define unlikely(x) __builtin_expect((x),0)The __builtin_expect is a method that gcc (versions >= 2.96) offer ... 阅读全文
posted @ 2012-02-20 13:57 Jack204 阅读(353) 评论(0) 推荐(0)
摘要:Simple Emacs ConfigurationC source code indent(setq-default c-basic-offset 4)Change Major modeM-x obj-mode / M-x c-mode / M-x java-modeUsing AbbreviationsEmacs can automatically correct your spelling mistake as you type (such as correcting "thier" with "their"), or expand your ow 阅读全文
posted @ 2012-02-14 16:14 Jack204 阅读(368) 评论(0) 推荐(0)
摘要:Q:My usual tools are Emacs with g++ on a Linux system to implement my research algorithms. For the last some years, I have used emacs in a fairly basic way. I open C or C++ files, edit them with a syntax highlighting scheme of my choice and compile and do other stuff from within emacs (or maybe from 阅读全文
posted @ 2012-02-07 14:31 Jack204 阅读(320) 评论(0) 推荐(0)