随笔分类 -  linux

摘要:--sysroot=dir 的作用 如果在编译时指定了-sysroot=dir 就是为编译时指定了逻辑目录。编译过程中需要引用的库,头文件,如果要到/usr/include目录下去找的情况下,则会在前面加上逻辑目录。 如此处我们指定 -sysroot=/home/shell.albert/tools 阅读全文
posted @ 2015-08-04 17:13 微信公众号--共鸣圈 阅读(26539) 评论(2) 推荐(0) 编辑
摘要:pear channel-update pear.php.netpear install db 阅读全文
posted @ 2015-07-29 11:32 微信公众号--共鸣圈 阅读(161) 评论(0) 推荐(0) 编辑
摘要:playonlinux已经很少更新了,建议使用lutris。 (附: 建议安装 playonlinux, 它是一个以wine为基础的,使用 Python 写成的图形化前端,主要用来辅助 Wine 在 Linux 中安装面向 Windows 平台的程序和游戏,如 MS Office 2003。另外,此 阅读全文
posted @ 2015-06-23 11:38 微信公众号--共鸣圈 阅读(760) 评论(0) 推荐(0) 编辑
摘要:utils.h 文件:#ifndef __UTILS_H__#define __UTILS_H__void a2f(const char *s, ...);#endifutils.c 文件:#include #include #include #include #include #include "... 阅读全文
posted @ 2015-06-17 17:45 微信公众号--共鸣圈 阅读(788) 评论(0) 推荐(0) 编辑
摘要:可以通过"netstat -anp" 来查看哪些端口被打开。 (注:加参数'-n'会将应用程序转为端口显示,即数字格式的地址,如:nfs->2049, ftp->21,因此可以开启两个终端,一一对应一下程序所对应的端口号) 若要关闭某个端口,则可以:1)通过iptables工具将该端口禁掉,如:"s 阅读全文
posted @ 2015-05-24 10:04 微信公众号--共鸣圈 阅读(440) 评论(0) 推荐(0) 编辑
摘要:http://www.tinylab.org/using-qemu-simulation-inserts-the-type-system-to-produce-the-whole-process/ 利用qemu模拟嵌入式系统制作全过程 by PingboWen ofTinyLab.org 2013... 阅读全文
posted @ 2015-05-24 01:05 微信公众号--共鸣圈 阅读(2751) 评论(0) 推荐(0) 编辑
摘要:http://www.opensourceforu.com/2011/06/qemu-for-embedded-systems-development-part-1/http://www.opensourceforu.com/2011/07/qemu-for-embedded-systems-dev... 阅读全文
posted @ 2015-05-24 01:04 微信公众号--共鸣圈 阅读(935) 评论(0) 推荐(0) 编辑
摘要:https://www.kernel.org/doc/Documentation/zh_CN/CodingStyleChinese translated version of Documentation/CodingStyleIf you have any comment or update to ... 阅读全文
posted @ 2015-05-24 00:46 微信公众号--共鸣圈 阅读(295) 评论(0) 推荐(0) 编辑
摘要:感谢这篇文章的作者: http://www.cnblogs.com/strugglesometimes/p/4231359.html编译是个很蛋疼的事情,本想把linux0.12在bochs上跑起来然后就可以各模块的学习,没想各种问题。问题1:1 gas -c -o boot/head.o boot... 阅读全文
posted @ 2015-05-21 23:45 微信公众号--共鸣圈 阅读(8817) 评论(0) 推荐(0) 编辑
摘要:http://blog.csdn.net/yrj/article/details/4924041、GCC的编译和安装2、预处理 #define 可以支持不定数量的参数。 例子如下: #define err(...) fprintf(stderr,__VA_ARGS__) err("%s,%d/r/n... 阅读全文
posted @ 2015-05-21 21:46 微信公众号--共鸣圈 阅读(849) 评论(0) 推荐(0) 编辑
摘要:的 阅读全文
posted @ 2015-05-20 23:35 微信公众号--共鸣圈 阅读(162) 评论(0) 推荐(0) 编辑
摘要:https://help.ubuntu.com/community/MacBookProDetermine your hardware revisionTo determine which version / generation of MacBook Pro you have, you have ... 阅读全文
posted @ 2015-04-30 16:18 微信公众号--共鸣圈 阅读(2416) 评论(0) 推荐(0) 编辑
摘要:TCP data is buffered at both sender and receiver. The size of the receiver's socket receive buffer determines how much data can be in flight without a... 阅读全文
posted @ 2015-04-21 16:50 微信公众号--共鸣圈 阅读(981) 评论(0) 推荐(0) 编辑
摘要:The relevant option is no longer available in the settings menu in Ubuntu 13.10; this has been reported as a bug (https://bugs.launchpad.net/ubuntu/+s... 阅读全文
posted @ 2015-04-15 23:14 微信公众号--共鸣圈 阅读(387) 评论(0) 推荐(0) 编辑
摘要:Linux命令行吸引了大多数Linux爱好者。一个正常的Linux用户一般掌握大约50-60个命令来处理每日的任务。Linux命令和它们的转换对于Linux用户、Shell脚本程序员和管理员来说是最有价值的宝藏。有些Linux命令很少人知道,但不管你是新手还是高级用户,它们都非常方便有用。 少有人知 阅读全文
posted @ 2015-03-19 10:28 微信公众号--共鸣圈 阅读(620) 评论(0) 推荐(0) 编辑
摘要:1. Install the nux repo$> su - $> yum update # optional but recommanded $> rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org $> rpm -Uvh http... 阅读全文
posted @ 2015-03-02 23:02 微信公众号--共鸣圈 阅读(2295) 评论(0) 推荐(0) 编辑
摘要:http://evadeflow.com/2010/06/sane-terminal-colors/Sane Terminal ColorsJune 26, 2010I recently created a new Ubuntu VM and once again found myself not ... 阅读全文
posted @ 2015-02-10 14:11 微信公众号--共鸣圈 阅读(865) 评论(0) 推荐(0) 编辑
摘要:yum search **yum whatprovides libQtGui.so.4 阅读全文
posted @ 2015-02-07 16:45 微信公众号--共鸣圈 阅读(553) 评论(0) 推荐(0) 编辑
摘要:转: http://www.cnblogs.com/zhuowei/archive/2009/04/13/1435190.htmlsudo是linux下常用的允许普通用户使用超级用户权限的工具,允许系统管理员让普通用户执行一些或者全部的root命令,如 halt,reboot,su等等。这样不仅减少... 阅读全文
posted @ 2015-02-06 16:50 微信公众号--共鸣圈 阅读(536) 评论(0) 推荐(0) 编辑
摘要:转: http://www.vpsee.com/2014/09/linux-performance-tools/Linux 平台上的性能工具有很多,眼花缭乱,长期的摸索和经验发现最好用的还是那些久经考验的、简单的小工具。系统性能专家 Brendan D. Gregg 在最近的 LinuxCon NA... 阅读全文
posted @ 2015-02-04 15:41 微信公众号--共鸣圈 阅读(247) 评论(0) 推荐(0) 编辑