嵌入式和Linux
文章平均质量分 56
Rabbit_Nick
这个作者很懒,什么都没留下…
展开
-
Linux单网卡,双IP,双网关配置,…
由于最近上网账号没有钱了,苦于没有网上,就从另一个实验室拉了电信,我就在那搞了个proxy来上网。那个实验室的网络分布大致是这样的,如下图:proxy上网" />xxx研究所里边的电脑用192.168.10.x的IP就可以上到外网征战沙场,甚至挂机down岛国片,用172.16.54.x的IP就可以在内网横行霸道,享受IEEE等学术论文下载。当然,如果想用内网通过个人ID去上外网也是可以的,原创 2013-05-24 17:06:31 · 6091 阅读 · 0 评论 -
ubuntu11.04 安装NVIDIA驱动
NVIDIA http://wiki.ubuntu.org.cn/NVIDIA#.E4.B8.8B.E8.BD.BD.E9.A9.B1.E5.8A.A8出自Ubuntu中文安装NVIDIA驱动" TITLE="ubuntu11.04 安装NVIDIA驱动" />(K)ubuntu下安装NVIDIA官方显卡驱动(不同于开源驱动,官方驱动对显卡的支持显然更好,而且通常更新频繁)。这里的例子原创 2013-05-24 17:02:16 · 724 阅读 · 0 评论 -
有关ubuntu11.04不能正常关机或重…
Open a terminal and type:Code:sudo modprobe -rf rt2860staFollowed by:Code:sudo modprobe rt2860staThen you need to blacklist the wrong driver:Code:echo blacklist rt2800pci | sudo tee -a/e原创 2013-05-24 17:02:13 · 501 阅读 · 0 评论 -
怎么调节Ubuntu系统的屏幕亮度
在Ubuntu11.04之前的可以在设置,系统选项中进入电源管理,像iTips一样使用11.04的可以在屏幕右上角的关机选项中选择系统设置,然后打开电源管理。如下图:看到没有,下面就是亮度调节,拉动选项条就可以调节了,是不是和Windows中一样简单呢。调整到自己满意过后,然后选择下面的设为默认按钮,然后需要输入系统密码,最后就成功了。这样设置的话,以后关机后再打开也会保持设置的。原创 2013-05-24 17:01:58 · 788 阅读 · 0 评论 -
How to Switch Between GDM and KD…
How to Switch Between GDM and KDM on UbuntuIf you have installed the Kubuntu desktop on top of Ubuntu or theother way around, you may want to switch from gdm to kdm, or fromkdm to gdm. This is an原创 2013-05-24 17:01:27 · 473 阅读 · 0 评论 -
Ubuntu 11.04 Change From Unity T…
http://scottlinux.com/2011/03/05/ubuntu-11-04-change-from-unity-to-classic-gnome/ 11.04 Change From Unity To Classic Gnome" TITLE="Ubuntu 11.04 Change From Unity To Classic Gnome" />11.04 Chan原创 2013-05-24 17:01:25 · 482 阅读 · 0 评论 -
【转】linux库文件编写入门 && 使…
http://blog.chinaunix.net/space.php?uid=20776117&do=blog&cuid=1881391 本文主要参考了如下资料⑴hcj写的"Linux静态/动态链接库的创建和使用"地址 http://fanqiang.chinaunix.net/system/linux/2006-05-08/4126.shtml⑵雨亦奇的文章"LINUX动态链接库原创 2013-05-24 17:01:12 · 430 阅读 · 0 评论 -
Linux 内核剖析
2011-6-20Linux 内核剖析历史和体系结构分析简介: Linux®内核是一个庞大而复杂的操作系统的核心,不过尽管庞大,但是却采用子系统和分层的概念很好地进行了组织。在本文中,您将探索Linux 内核的总体结构,并学习一些主要的子系统和核心接口。您还可以通过其他 IBM 文章的链接更深入地进行学习。由于本文的目标是对 Linux 内核进行介绍并探索其体系结构和主原创 2013-05-24 17:01:03 · 599 阅读 · 0 评论 -
【转】linux下minicom的 使用
2010-7-21minicom的 使用 Minicom是基于窗口的。要弹出所需功能的窗口,可按下Ctrl-A,然后再按各功能键(a-z或A-Z)。先按C-A,再 按'z',将出现一个帮助窗口,提供了所有命令的简述。A 切换"Add Linefeed"为on/off。若为on,则每上回车键在屏幕上 显示之前,都要加上一个linefeed。B 为你提供一个回卷(scroll back)的缓冲原创 2013-05-24 17:00:20 · 500 阅读 · 0 评论 -
【转】vsFTPd 服务器初学者指南
vsFTPd 服务器初学者指南作者:北南南北,正在修订之中来自:LinuxSir.Org摘要:vsFTPD是一款小巧易用FTP服务器程序;本文面向初学者的一点疑问,能让初学者在最短的时间内学会最简单的vsftpd服务器的架设;本文应该算是初学者练手篇;正在更新之中;本文基于vsftpd-2.0.3;目录1、vsFTPd,目前常用FTP服务器套件;2、ftp用户管理解说;原创 2013-05-24 17:02:52 · 432 阅读 · 0 评论 -
How to create patch file in Linu…
First, how to create patch file?Patch file is a readable file that created by diff with -c (contextoutput format). It doesn’t matter and if you wanna know more, mandiff. To patch the entire folder原创 2013-05-24 17:02:56 · 671 阅读 · 0 评论 -
Ubuntu GPG error 非官方源无公钥
Today I use sudo apt-get update and it comes this error.W: GPG error: http://ppa.launchpad.net lucid Release: Thefollowing signatures couldn't be verified because the public key isnot available: N原创 2013-05-24 17:06:03 · 770 阅读 · 0 评论 -
VMware不能上网,解决办法
发现VMware不能上网,上网查了一个方法,记录一下方法一:NAT方式 1、先关闭虚拟机中的操作系统,回到虚拟机主界面 双击主界面右上方的的“Ethernet”,弹出“Network Adapter”对话框,选择“NAT” 2、启动虚拟机操作系统,设置IP为动态获取,即通过DHCP获得。 此时虚拟机中的操作系统用的是主机的IP,主机能够上网,那么虚拟机也能。 可是我发现不能共享原创 2013-05-24 17:05:30 · 556 阅读 · 0 评论 -
移植BOA
2010-7-25 今天移植BOA!发现问题,上 网搜索了 一 戳,搞点 资料 上来在src目录下运行./configure 生成Makefile文件,修改 CC = arm-linux-gccCPP = arm-linux-gcc–E4)make 错误 A)make:yacc:命令未找到 apt-get install bisonmake: lex:命令未找到make:原创 2013-05-24 17:05:27 · 475 阅读 · 0 评论 -
minicom的使用
minicom的使用Minicom是基于窗口的。要弹出所需功能的窗口,可按下Ctrl-A,然后再按各功能键(a-z或A-Z)。先按C-A,再 按'z',将出现一个帮助窗口,提供了所有命令的简述。A 切换"Add Linefeed"为on/off。若为on,则每上回车键在屏幕上 显示之前,都要加上一个linefeed。B 为你提供一个回卷(scroll back)的缓冲区。可以按u上卷,按d原创 2013-05-24 17:05:23 · 531 阅读 · 0 评论 -
缺少Ncurses文件可以像下面这样安…
缺少Ncurses文件可以像下面这样安装ncurses是字符终端下屏幕控制的基本库。可能很多新开发的程序都不使用了,不过如果要编译一些老程序,还经常遇得到。执行命令 sudo apt-get install libncurses5-dev原创 2013-05-24 17:05:21 · 591 阅读 · 0 评论 -
what is MTD?
2010-7-20what isMTD?Description:MTD(memorytechnology device内存技术设备)是用于访问memory设备(ROM、flash)的Linux的子系统。MTD的主要目的是为了使新的memory设备的驱 动更加简单,为此它在硬件和上层之间提供了一个抽象的接口。MTD的所有源代码在/drivers/mtd子目录下。CFI接口的MTD设备分为四原创 2013-05-24 17:05:18 · 530 阅读 · 0 评论 -
Ubuntu下deb与rpm包的安装方法
deb 是debian linux 的安装格式,跟red hat 的rpm相似安装: dpkg -i file.deb不过要安装dpkg的package,也可用alien这类软件将package转为rpm等格式,或直接下个rpm 或tar包。关于deb包转换成rpm的方法: sudo apt-get install alien #alien默认没有安装,所以首原创 2013-05-24 17:03:54 · 497 阅读 · 0 评论 -
[转]应该怎么读Linux?
应该怎么读Linux?根据Linus Torvalds的说法,Linux的发音和“Minix”是押韵的。参照,“Li”中“i”的发音类似于“Minix”中“i”的发音,而“nux”中“u”的发音类似于英文单词“profess”中“o”的发音。此外有一份LinusTorvalds本人说话的音频,音频内容为“Hello, this is Linus Torvalds, and I pr原创 2013-05-24 17:03:30 · 558 阅读 · 0 评论 -
转:Ubuntu的apt-get代理设置
以前发表过一篇博文How to install packages with apt-get on a system connectedvia proxy?地址在http://blog.sina.com.cn/s/blog_64b236da01017y2i.html不过现在发现一篇更加好的,就转了升级到Ubuntu10.04后,发现apt-get的代理设置有改变了,在9.10以前使原创 2013-05-24 17:06:22 · 701 阅读 · 0 评论 -
[转]UBUNTU ADSL(PPPOE)接入指南
ADSL(PPPOE)接入指南UbuntuLinux是自带ADSL拨号网络(PPPOE调制解调器)支持的,但是没有Windows下拨号那么方便。其实Ubuntu下ADSL上网也并不是很难,目前在中国ADSL家庭用户居多,在此就介绍一下Ubuntu下ADSL(PPPOE)拨号的方法。此文档也同时解决了,nm-applet图标消失的问题,也就是pppoeconf和NetworkManag原创 2013-05-24 17:06:06 · 552 阅读 · 0 评论 -
How to install packages with apt…
Abstract :The apt-get work via proxy.Introduce :Proxy is widespread using in network. Ubuntu is base on Linuxand it can use proxy too. However the apt-get is not working if uonly set proxy on OS原创 2013-05-24 17:05:57 · 660 阅读 · 0 评论 -
Run Chinese CAJviewer by wine
Today, I search some papers aboutthe M&M clock recovery and wireless communicationdemodulation. I download some Chinese masters' ordoctors' papers but I always find these papersare writing in CAJ原创 2013-05-24 17:03:45 · 610 阅读 · 0 评论 -
Subversion - A Quick Tutorial
Subversion - A Quick TutorialSubversion is a version control system that iswidely used by many Open Source projects such as Apache and GCC.Subversion started as a project to implement features原创 2013-05-24 17:03:01 · 495 阅读 · 0 评论 -
Introduction: Using diff and pat…
The commands diff and patch form a powerful combination. Theyare widely used to get differences between original files andupdated files in such a way that other people who only have theoriginal fil原创 2013-05-24 17:02:58 · 592 阅读 · 0 评论 -
FTP Server ubuntu
FTP ServerFile Transfer Protocol (FTP) is a TCP protocol for uploading anddownloading files between computers. FTP works on a client/servermodel. The server component is calledan FTPdaemon. It原创 2013-05-24 17:02:54 · 538 阅读 · 0 评论 -
改变Ubuntu桌面所在文件夹
改变Ubuntu桌面所在文件夹不知道我的T61发生什么事情,桌面上的文件夹全部出现在桌面,上网查到这段话,修改了桌面文件夹: 刚安装上Ubuntu11.04的时候,也不懂得怎么修改firefox下载文件保存的位置,默认是在桌面。但下载下来要在终端上使用文件就必须进入桌面。但桌面所在文件夹是“桌面”,在终端打中文比较麻烦,就异想天开的把此文件夹重命名为“Desktop”,结果注销原创 2013-05-24 17:02:45 · 700 阅读 · 0 评论 -
Ubuntu11.04 激活重启 X-Window 快…
自从把 Ubuntu 升级到 11.04 之后极度不适应。感觉 Unity 各种不给力。按下 Ctrl + Alt + Backspace 木有反应,果然还是和以前一样,这个重启 X-Window的快捷键默认没有被激活。激活此快捷键方法如下:system — keyboard —Layout — options — key sequenceto kill the X server —原创 2013-05-24 17:02:11 · 541 阅读 · 0 评论 -
Ubuntu 11.04 method of logout an…
press keyborad:Ctrl+Alt+F1then, it appears screen of command lines:tpyed commands :code:sudo /etc/init.d/gdm restart原创 2013-05-24 17:01:23 · 414 阅读 · 0 评论 -
Ubuntu 11.04 taskbar disappeared…
2011-08-29Today, I saw Ubuntu's taskbardsappeared when I entered the desktop. Oops!! XDBut now I recoveried the taskbar. Themethod comes from http://hi.baidu.com/wmeihan/blog/item/60d656fcdbbdf40原创 2013-05-24 17:01:20 · 616 阅读 · 0 评论 -
详解ssh命令
SSH 的详细使用方法如下: ssh [-l login_name] [hostname | user@hostname] [command] ssh[-afgknqtvxCPX246] [-c blowfish | 3des] [-e escape_char] [-iidentity_file] [-l login_name] [-o option] [-p port] [-Lport原创 2013-05-24 17:04:25 · 905 阅读 · 0 评论 -
svn文件丢失的解法
NOTE: I’ve noticed a lot of traffic to this page for “localedit incoming delete on update” errors, which are not what thisarticle is about (the solution below may or may not work for that —I have n原创 2013-05-24 17:05:02 · 1600 阅读 · 0 评论 -
sh脚本异常:/bin/sh^M:bad interp…
在Linux中执行.sh脚本,异常/bin/sh^M: bad interpreter: No such file ordirectory。分析:这是不同系统编码格式引起的:在windows系统中编辑的.sh文件可能有不可见字符,所以在Linux系统下执行会报以上异常信息。解决:1)在windows下转换:利用一些编辑器如UltraEdit或EditPlus等工具先将脚本编码转换,再放到原创 2013-05-24 17:05:05 · 657 阅读 · 0 评论 -
[solve]Bind: Address Already in …
Bind: Address Already in UseOrHow to Avoid this Error when Closing TCP ConnectionsNormal ClosureInorder for a network connection to close, both ends have tosend FIN (final)packets, which indic原创 2013-05-24 17:05:50 · 647 阅读 · 0 评论 -
Simple guide for Automake/Autoco…
Simple guide for Automake/AutoconfAbstractAutomake and Autoconf aregreat projects and tools in GNU. This paper can’t describe all butmain steps. It will explian Automake and Autoconf in short but原创 2013-05-24 17:05:47 · 756 阅读 · 0 评论 -
Ubuntu(Linux)中设置samba
Samba是Ubuntu和Windows进行网络共享的工具,比如分享打印机,互相之间传输资料文件。目录[隐藏]1 安装Samba2 Kubuntu3 配置4 Ubuntu访问windows xp/2003/2000系统5 排错5.1 乱码6 smb用户密码[编辑]安装Samba安装sambasudo apt-get inst原创 2013-05-24 17:05:44 · 532 阅读 · 0 评论 -
[转]Ubuntu(Linux)使用Eclipse搭…
首先是安装Eclipse,方法有两种: 第一种是通过Ubuntu自带的程序安装功能安装Eclipse,应用程序->Ubtuntu软件中心,搜Eclipse安装即可。 第二种方法是用命令:应用程序->附件->终端 然后输入(中间可能需要你输入密码):原创 2013-05-24 17:05:41 · 553 阅读 · 0 评论 -
服务器软件设计的算法和问题
概念性的服务器算法:创建一个socket,将它绑定到一个熟知的port上,并期望在这个port上接收请求,接着进入无限loop,在循环中,服务器接受来自client的下一个请求,处理请求,结构应答,然后将这个应答发回给客户。Iterative server and concurrent server : iterativeserver 是在一个时刻只处理一个请求的一种服务器实现。原创 2013-05-24 17:05:37 · 785 阅读 · 0 评论 -
Linux网络编程--IP转换函数--inet_…
Linux下IP转换工具::#Include#include#include strcutsockaddr_in src; src.sin_addr.s_addr = inet_addr("*.*.*.*"); //构建网络地址。 printf("%s\n",inet_ntoa(src.sin_addr));原创 2013-05-24 17:05:32 · 519 阅读 · 0 评论 -
[转]adduser - 新增使用者指令(ubu…
adduser - 新增使用者指令在 Slackware 中,adduser指令是個 script 程式,利用交談的方式取得輸入的用戶帳號資料,然後再交由真正建立帳號的 useradd指令建立新用戶,如此可方便管理員建立用戶帳號。在 Red Hat Linux中,adduser 指令則是 useradd指令的符號連接,兩者實際上是同一個指令。adduser 除了新增帳號外,還會原创 2013-05-24 17:05:16 · 575 阅读 · 0 评论