随笔分类 -  Linux

上一页 1 2 3 4 5 6 7 8 ··· 22 下一页
摘要:From:http://manas.tungare.name/blog/ssh-port-forwarding-on-mac-os-x/After spending about an hour configuring what should, in theory, be a simple matter, I figured I’d write a blog post that might one day save another soul an hour or so from his or her life. So, for good karma, basically. In the past 阅读全文
posted @ 2012-11-27 15:12 super119 阅读(910) 评论(0) 推荐(0) 编辑
摘要:以下设置主要是用于linux kernel开发:1. 在80列的地方显示一道竖线:Tools->Options->Appearance->General, Vertical line column设成80,下面可以设置一个颜色。注意只有将编辑器的字体设置成SE能识别的几种等宽字体,这道竖线才能显示出来。比如设置成Deja Sans Mono, Ubuntu Mono等。2.Tools->Options->Languages->All languages->View,check "Special Characters"这个checkb 阅读全文
posted @ 2012-11-19 14:30 super119 阅读(689) 评论(0) 推荐(0) 编辑
摘要:From:http://yblog.org/archive/index.php/11734SSD和一般傳統硬碟最大的不同,就是它的寫入壽命比較有限,同一塊資料區裡面的快閃記憶體(flash memory)經不起大量多次的寫入,故SSD採用控制晶片內建的特殊演算法,把資料平均寫入到不同區塊的快閃記憶體晶片上。本文範例為Ubuntu Linux,我的Acer 3750G筆電裝的是Ubuntu 11.04,SATAII SSD 120GB(SandForce SF-1222控制晶片),開機過UEFI後大約8秒進入自動桌面。1、使用適當的磁區分割程式在Linux平台上使用SSD,最重要的一件事情就是「 阅读全文
posted @ 2012-11-09 09:54 super119 阅读(677) 评论(0) 推荐(0) 编辑
摘要:有关partition aligned, gparted支持所以请使用gparted来进行分区,如果不是aligned,gparted会warning的。有关TRIM,请看:转自:http://askubuntu.com/questions/18903/how-to-enable-trimThere are two forms of TRIM, manual (fstrim / wiper.sh) and automatic:1) Manual TRIMIn ubuntu this can be performed withfstrim, but is not needed when auto 阅读全文
posted @ 2012-11-08 19:41 super119 阅读(396) 评论(0) 推荐(0) 编辑
摘要:1. Thunderbird如果撰写的邮件是plain text格式(在这里设置:Edit -> Account Settings -> Composition & Addressing, you should uncheck Compose in HTML format for all accounts),那么自动就会在72列处做line wrap。但是需要注意的是,这里的line wrap只是在display邮件内容和撰写邮件时,你可以看到。当你发出邮件的时候,这个line wrap就没有了,换句话说,别人看到的你的邮件内容,还是很长的一行行的文字。所以需要下面一步。2 阅读全文
posted @ 2012-10-26 13:52 super119 阅读(279) 评论(0) 推荐(0) 编辑
摘要:将设置的anon_root目录修改成755的权限即可。如果anonymous用户需要上传东西,那么在anon_root下面建一个权限是777的目录就好了,比如pub目录 阅读全文
posted @ 2012-10-19 15:01 super119 阅读(220) 评论(0) 推荐(0) 编辑
摘要:markz@markz-hp6200:~$ cd .thunderbird/markz@markz-hp6200:~/.thunderbird$ lsa8feo3zj.default Crash Reports profiles.inimarkz@markz-hp6200:~/.thunderbird$ cd a8feo3zj.default/markz@markz-hp6200:~/.thunderbird/a8feo3zj.default$ mkdir chrome^Cmarkz@markz-hp6200:~/.thunderbird/a8feo3zj.default$ cd chrome 阅读全文
posted @ 2012-10-16 18:11 super119 阅读(494) 评论(0) 推荐(0) 编辑
摘要:1. 这是一个UVC摄像头,所以可以使用uvcvideo这个kernel驱动,一般kernel都编译了这个module。什么是UVC? UVC,全称为:USB video class 或USB video device class UVC是Microsoft与另外几家设备厂商联合推出的为USB视频捕获设备定义的协议标准,目前已成为USB org标准之一。 如今的主流操作系统(如Windows XP SP2 and later, Linux 2.4.6 and later, MacOS 10.5 and later)都已提供UVC设备驱动,因此符合UVC规格的硬件设备在不需要安装任何的驱... 阅读全文
posted @ 2012-10-11 18:04 super119 阅读(1136) 评论(0) 推荐(0) 编辑
摘要:From:http://lwn.net/Articles/119652/Theioctl()system call has long been out of favor among the kernel developers, who see it as a completely uncontrolled entry point into the kernel. Given the vast number of applications which expectioctl()to be present, however, it will not go away anytime soon. So 阅读全文
posted @ 2012-10-10 16:43 super119 阅读(283) 评论(0) 推荐(0) 编辑
摘要:1. Clonezilla提供了一个live iso,在linux下面直接dd到U盘里面就可以U盘启动2. 启动之后就会直接出来界面,以向导的形式一步一步的完成disk或者partition的clone。当然也可以将整个disk或者partition备份成一个image文件。3. 和Ghost一样,Clonezilla会分析分区表信息,然后clone,而不是像使用dd的做法那样,傻乎乎的将整个硬盘或者分区都clone。4. Clonezilla对linux的分区格式如ext4支持的较好。试过GHOST,GHOST 11显然不支持ext4,所以尝试用GHOST做disk clone的时候失败了。 阅读全文
posted @ 2012-09-26 10:13 super119 阅读(345) 评论(0) 推荐(0) 编辑
摘要:1. make menuconfig, under "Kernel Hacking", enable "KGDB" & "KGDB over serial line". Enable "compile kernel with debug info"(CONFIG_DEBUG_INFO) & "enable frame pointer"(CONFIG_FRAME_POINTER) options(both are under "Kernel Hacking"). 阅读全文
posted @ 2012-09-18 16:44 super119 阅读(409) 评论(0) 推荐(0) 编辑
摘要:From ChinaUnix:http://bbs.chinaunix.net/thread-3672391-1-1.html来自Linus Torvalds的讨论:https://groups.google.com/group/ ... 41/ed9c0a0cfcd31111例如这样的一个Oops:Oops: 0000 [#1] PREEMPT SMPModules linked in: capidrv kernelcapi isdn slhc ipv6 loop dm_multipath snd_ens1371 gameport snd_rawmidi snd_ac97_codec ac9 阅读全文
posted @ 2012-09-18 14:27 super119 阅读(912) 评论(0) 推荐(0) 编辑
摘要:char*tmp;char*pathname;path_get(&file->f_path);tmp=(char*)__get_free_page(GFP_TEMPORARY);if(!tmp){return-ENOMEM;}pathname=d_path(&file->f_path,tmp,PAGE_SIZE);path_put(&file->f_path);if(IS_ERR(pathname)){free_page((unsignedlong)tmp);returnPTR_ERR(pathname);}printk(KERN_WARNING&qu 阅读全文
posted @ 2012-09-17 13:12 super119 阅读(576) 评论(0) 推荐(0) 编辑
摘要:man 7 unixman sendmsgsendmsg可以发送control message,也就是不是普通的regular数据。看sendmsg的manual可以知道。control message其实也是指定一个指针和一个长度,和普通数据一样。有趣的事,control message可以发送一个FD(或一组,以数组方式组织)给另外一个进程。不是说把FD这个数字发给了别人,而是这个FD真正的另外一个进程中存在,而且和发送进程的FD指向的是一个struct file简单来说,就好象接收进程dup了发送进程的那个FD一样。事实上嘛,大家都懂的,其实就是kernel帮助接收进程dup了一下而已。 阅读全文
posted @ 2012-09-11 12:35 super119 阅读(1222) 评论(0) 推荐(0) 编辑
摘要:常用配置:[color] ui = auto[user] name = Mark Zhang email = super119@139.com[core] editor = vim[diff] tool = vimdiff renames = true[difftool] prompt = No[format] headers = X-NVConfidentiality: public[sendemail] chainreplyto = false smtpserver = xxxxxxxx smtpencryption = tls from = Mark Zhang <sup... 阅读全文
posted @ 2012-08-24 16:18 super119 阅读(282) 评论(0) 推荐(0) 编辑
摘要:From:http://blog.sina.com.cn/s/blog_6488248f0100wu6v.html再参考《Linux kernel development》中memory management一章的内容就更容易理解。high memory只存在于32位kernel下,以下文字都针对32位kernel。1)什么是high memory,为什么要有high memoryLinux人为的把4G虚拟地址空间(32位地址最多寻址4G)分为3G+1G,其中0~3G为用户程序地址空间,3G~4G为kernel地址空间(为什么要这么分?为什么用户程序和kernel不能各自独享4G虚拟地址空间? 阅读全文
posted @ 2012-08-16 16:35 super119 阅读(542) 评论(0) 推荐(0) 编辑
摘要:Another good reading is: kernel Documentation/dma-buf-sharing.txtFrom:http://lwn.net/Articles/474819/BackinAugust2011,LWNlookedattheDMAbuffersharingpatchsetpostedbyMarekSzyprowski.Sincethen,thatpatchhasbeenpickedupbySumitSemwal,whomodifieditconsiderablyinresponsetocommentsfromanumberofdevelopers.The 阅读全文
posted @ 2012-08-16 13:43 super119 阅读(700) 评论(0) 推荐(0) 编辑
摘要:DT中的simple-bus,简单来说,就是可以将该node下所有的child nodes都作为platform device注册进kernel。默认情况下,of_platform_populate是不会将node中的child nodes注册的。用法很简单,在node的compatible中添加"simple-bus"就OK了。该node的child nodes就会被注册。 阅读全文
posted @ 2012-07-30 18:19 super119 阅读(1202) 评论(0) 推荐(0) 编辑
摘要:1. Display and mode setting: DRM. DRM defines connector/encoder/crtc to support display(including multi-monitor). And KMS makes mode setting happens in kernel space.2. 2D acceleration: X server EXA/UXA extension. Vendor should write a X server driver which implements EXA or UXA(should be upstreamed) 阅读全文
posted @ 2012-07-11 17:26 super119 阅读(980) 评论(0) 推荐(0) 编辑
摘要:From:http://en.wikipedia.org/wiki/EXAIncomputing,EXAis a graphics acceleration architecture of theX.Org Server(see alsoX Window System) designed to replaceXAA[1](theXFree86 Acceleration Architecture) and to make theXRenderextension more usable, with only minor changes needed to adaptXFree86video dri 阅读全文
posted @ 2012-07-11 14:25 super119 阅读(1040) 评论(1) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 ··· 22 下一页