- 博客(10)
- 资源 (1)
- 收藏
- 关注
转载 64位ubuntu14.04运行32位程序
5 down vote acceptedTo run 32bit executable file in a 64 bit multi-arch Ubuntu system, you have to addi386 architecture and install libc6:i386,libncurses5:i386,libstdc++6:i386 these thre
2014-05-25 17:34:46
17117
1
转载 LinuxMint 15 / Ubuntu 13.04 / Ubuntu 13.10 下无法连接 wpa2 enterprise 加密无线网络的解决方法
转自:http://chaoslawful.info/archives/38在 LinuxMint 15 / Ubuntu 13.04 / Ubuntu 13.10 下连接公司里的无线网络时会发现总是提示重新输入密码而无法连上,这好像是 NetworkManager 的一个 bug,见这里https://bugs.launchpad.net/linuxmint/+bug/118
2014-05-25 13:16:07
2033
转载 Setting up wifi hotspot on Ubuntu 13.10
You can use ap-hotspot from the webupd8 repository to create an infrastracture AP instead of adhoc. I am using this on Ubuntu Precise (12.04), but it is available for Saucy, Raring and Quantal as
2014-05-25 11:42:50
720
原创 Tiny6410 按键测试(poll方法)
/* * ===================================================================================== * * Filename: mybuttons.c * * Description: Tiny6440 Buttons Poll Test Program * * Version: 1.0 * Created: 05/09/2011 02:39
2011-05-09 15:26:00
614
原创 Linux命令简单实现 -- ls
<br />/* * ls.c * * Created on: May 6, 2011 * Author: bertrand */#include <stdio.h>#include <fcntl.h>#include <dirent.h>#include <sys/stat.h>#include <pwd.h>#include <grp.h>#include <time.h>void file_mode(int mode){ char
2011-05-06 14:43:00
476
转载 linux 内核驱动--Platform Device和Platform_driver注册过程
从Linux 2.6起引入了一套新的驱动管理和注册机制:Platform_device和Platform_driver。Linux中大部分的设备驱动,都可以使用这套机制, 设备用Platform_device表示,驱动用Platform_driver进行注册。Linux platform driver机制和传统的device driver 机制(通过driver_register函数进行注册)相比,一个十分明显的优势在于platform机制将设备本身的资源注册进内核,由内核统一管理,在驱动程序中使用这些资源
2011-05-05 22:13:00
1004
转载 ARM Linux静态映射分析
<br /><br />作者:易松华,华清远见嵌入式学院讲师。<br />在华清远见上课过程中,发现静态映射方面初学者比较难于掌握和理解,下面分析一下静态映射机制的原理并通过GPIO和USB、LCD等的静态映射作为例子来说明如何通过这种静态映射的方式访问外设资源。<br />内核提供了一个重要的结构体struct machine_desc ,这个结构体在内核移植中起到相当重要的作用,内核通过machine_desc结构体来控制系统体系架构相关部分的初始化。machine_desc结构体的成员包含了体系架构相
2011-05-05 08:43:00
357
原创 Linux命令简单实现 -- whoami
<br />/* * whoami.c * * Created on: May 3, 2011 * Author: bertrand */#include <stdio.h>#include <unistd.h>#include <pwd.h>int main(int argc, char **argv){ register uid_t uid = geteuid(); register struct passwd *pw = getpwuid(u
2011-05-03 19:00:00
438
原创 Linux命令简单实现 -- pwd
<br />/* * pwd.c * * Created on: May 3, 2011 * Author: bertrand */#include <unistd.h>#include <stdio.h>#define PATHSIZE 1024int main(int argc, char **argv[]){ char pwd[PATHSIZE]; getcwd(pwd, PATHSIZE); printf("%s/n",pwd);
2011-05-03 16:58:00
350
原创 Linux命令简单实现 -- touch
/* * touch.c * * Created on: May 2, 2011 * Author: bertrand */#include #include #include #include char *program_name;void usage(){ printf("Usage: %s FILENAME/n", program_name);}static int touch(const char *file){ int
2011-05-02 19:41:00
790
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人