随笔分类 - Linux
摘要: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/etc/modprobe.d/blacklist.confOnce you have rebooted (you will need to do a hard power off forthe last time!) you wi
阅读全文
摘要:自从把 Ubuntu 升级到 11.04 之后极度不适应。感觉 Unity 各种不给力。按下 Ctrl + Alt + Backspace 木有反应,果然还是和以前一样,这个重启 X-Window 的快捷键默认没有被激活。激活此快捷键方法如下:system—keyboard — Layout—options — key sequence to kill the X server — 勾选”Control + Alt + Backspace “
阅读全文
摘要:2011-09-18今天补习C++virtual函数和纯virtual函数(pure vitural function),可以使一个类成为抽象类。一个纯virtural函数是在声明时“初始化值为0”的函数,如下所示:virtual void f() const = 0;//pure virtual function“=0”成为纯指示符(pure specifier)。纯virtual函数不提供函数的具体实现,每个派生的具体类必须重写所有基类的纯virtual函数的实现,并且提供派生类是否重写这些函数的选择权。相反,纯virtual函数并不提供函数的实现,需要派生类重写这些函数以使派生类成为具体
阅读全文
摘要:在Ubuntu11.04之前的可以在设置,系统选项中进入电源管理,像iTips一样使用11.04的可以在屏幕右上角的关机选项中选择系统设置,然后打开电源管理。如下图:看到没有,下面就是亮度调节,拉动选项条就可以调节了,是不是和Windows中一样简单呢。调整到自己满意过后,然后选择下面的设为默认按钮,然后需要输入系统密码,最后就成功了。这样设置的话,以后关机后再打开也会保持设置的。
阅读全文
摘要:Oops, today, I amprograming in C++. Then, I found some attentions about delete. for Array, if we use delete not delete [] , it will arise a logic fault.So if you apply a single value space using new , you can use delete to release it. However, if you apply a array space, you should not do this. You
阅读全文
摘要:How to Switch Between GDM and KDM on UbuntuIf you have installed the Kubuntu desktop on top of Ubuntu or the other way around, you may want to switch from gdm to kdm, or from kdm to gdm. This is an easy thing to do.Open a terminal window and type in the following command:sudo dpkg-reconfigure gdm/..
阅读全文
摘要:http://scottlinux.com/2011/03/05/ubuntu-11-04-change-from-unity-to-classic-gnome Classic Gnome fans, fear not. You can still use standard Gnome inUbuntu 11.04 ifUnityis not yourbag.To change to traditional Gnome, logout and then after clickingon your username, selectUbuntu ClassicDesktopat the bott.
阅读全文
摘要:press keyborad:Ctrl+Alt+F1then, it appears screen of command lines:tpyed commands :code:sudo /etc/init.d/gdm restart
阅读全文
摘要:2011-08-29Today, I saw Ubuntu's taskbar dsappeared when I entered the desktop. Oops!! XDBut now I recoveried the taskbar. The method comes from http://hi.baidu.com/wmeihan/blog/item/60d656fcdbbdf40c08244d60.htmlNow, I copy it here: 在Ubuntu 11.04 Natty中,Ubuntu对顶部面板右上角的通知区域(系统托盘)采用了白名单制度,只有支持Indic
阅读全文
摘要:2011-08-28Today, I feel strange because I update my Ubuntu 10.10 to 11.04. Yeah, I think 11.04 maybe better than 10.10 on its desktop. However, I am notaccustomed to use it well. Mostly, I find my Gnuradio has a problem when I open it.Firstly, I want to fix it but in fact, I don't know how to fi
阅读全文
摘要: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动态链接库高级应用"地址http://www.ccw.com.cn/htm/center/prog/02_3_13_3_2.asp)在此一并致谢。一、为什么要使用库文件我
阅读全文
摘要:SWIG是简单包装和接口生成器的缩写,它是一个能用于用于集中语言的工具。一方面,可以通过它使用C语言或者C++编写扩展代码;另一方面,它会自动包装那些代码,以便能在一些高级语言中使用,例如Tcl Python Perl Ruby java. 这就意味着如果决定将系统的一部分使用C语言扩展编写,而不是直接在Python中实现的话,那么C语言扩展库也能在其他语言中使用。当然需要一些不同语言编写的子系统协同工作时,这一点就非常有用。C语言扩展在协同工作时会变得很重要。first step:一个简单的C语言程序:hello.c#include #include int say_hello(void){
阅读全文
摘要:2011-6-20Linux 内核剖析 历史和体系结构分析 简介:Linux® 内核是一个庞大而复杂的操作系统的核心,不过尽管庞大,但是却采用子系统和分层的概念很好地进行了组织。在本文中,您将探索 Linux 内核的总体结构,并学习一些主要的子系统和核心接口。您还可以通过其他 IBM 文章的链接更深入地进行学习。 由于本文的目标是对 Linux 内核进行介绍并探索其体系结构和主要组件,因此首先回顾一下 Linux 的简短历史,然后从较高的层次审视 Linux 内核的体系结构,最后介绍它的主要子系统。Linux 内核具有超过 600 万行的代码,因此本文不可能进行完整的介绍。请...
阅读全文
摘要:2010-7-21minicom的 使用 Minicom是基于窗口的。要弹出所需功能的窗口,可按下Ctrl-A,然后再按各功能键(a-z或A-Z)。先按C-A,再 按'z',将出现一个帮助窗口,提供了所有命令的简述。A 切换"Add Linefeed"为on/off。若为on,则每上回车键在屏幕上 显示之前,都要加上一个linefeed。B 为你提供一个回卷(scroll back)的缓冲区。可以按u上卷,按d下卷,按b上翻一页,按f下翻一页。也可用箭头键和翻页键。可用s或 S键 (大小写敏感)在缓冲区中查找文字串,按N键查找该串的下一次出现。按c进入引用模
阅读全文
摘要:C Standard LibraryContents : Diagnostics : Character Class Tests : Error Codes Reported by (Some) Library Functions : Implementation-defined Floating-Point Limits : Implementation-defined Limits : Locale-specific Information : Mathematical Functions : Non-local Jumps : Signals : V...
阅读全文

浙公网安备 33010602011771号