
LINUX
文章平均质量分 73
coolper
这个作者很懒,什么都没留下…
展开
-
Ubuntu 12.04 3600 GMA Driver for Intel (Cedarview)
There is a ppa repository with drivers for ubuntu 12.04 at http://ppa.launchpad.net/sarvatt/cedarview/ubuntu/With the following steps, you can get accelerated X working with the Intel Cedarview Ch转载 2013-10-08 13:09:17 · 1822 阅读 · 0 评论 -
Howto Convert PDF files to HTML files
Translates pdf documents into html format.Translates pdf filesinto HTML or XML formats, combined with png images. Supports encryptedpdf files.There is a program called pdftohtml to convert pdf to原创 2013-09-26 09:02:42 · 692 阅读 · 0 评论 -
2008 Linux开发者研讨会专题 ppt 下载地址
http://oss.org.cn/modules/tinyd1/ 管理员在2009年8月13日编辑了该文章文章。 --> -->原创 2013-09-26 09:02:47 · 501 阅读 · 0 评论 -
编译linux内核的方法
1.需要先安装编译环境进入 root 帐户:> su输入密码安装必要的工具:> apt-get install build-essential (安装 gcc, make 等)> apt-get install libncurses-dev(安装 make menuconfig 时必须的库文件)> apt-get install kernel原创 2013-09-26 09:02:51 · 607 阅读 · 0 评论 -
android graphics
> Hi All, > I've been using SurfaceView and Surface for one of my graphics > project. > The problem keep bothering me is that the content in Surface's two > graphic buffers does not synchroniz原创 2013-09-26 09:02:54 · 495 阅读 · 0 评论 -
CLI Magic: For geek cred, try these one-liners
CLI Magic: For geek cred, try these one-liners By Sergio Gonzalez DuranonJuly 23, 2008 (9:00:00 AM) addthis_pub = 'linuxcom'; addth原创 2013-09-26 09:03:12 · 823 阅读 · 0 评论 -
development man page in linux
sudo apt-get install manpages-dev 管理员在2009年8月13日编辑了该文章文章。 --> --> 阅读(203)原创 2013-09-26 09:03:28 · 467 阅读 · 0 评论 -
理解和使用Linux的硬件抽象层HA
1 相关说明1.1 网站资源HAL的官方网址:http://www.freedesktop.org/wiki/Software/halhttp://opensolaris.org/os/project/tamarack/hal_re.html solaris系统上的同志写的一篇分析HAL框架原理的文章。很好,就是版本稍微有点旧http://people.freedesktop.原创 2013-09-26 09:03:31 · 711 阅读 · 0 评论 -
Segmentation fault
用gcc編譯的時候加個-g的參數.gdb調試的時候一般是可以報出多少行 段錯誤的。then:gdb binfile coreltrace幾乎一下就能找到原因……如果要調試直接調試好了,就如mq110所說,-g就好,在segment fault的時候,在gdb裡,gdb>;where會報出出錯的函數及相關信息...或者在終端下:ulimit -c unlimited用gd原创 2013-09-26 09:03:35 · 723 阅读 · 0 评论 -
cross compile e2fsprogs
tar zxvf e2fsprogs.tar.gzcd e2fsprogsmkdir buildcd build../configure--enable-elf-shlibs --build=i386-linux --host=arm-linux--with-cc=/opt/xscalev1/bin/arm-linux-gcc--with-linker=/opt/xscalev1/bi原创 2013-09-26 09:03:54 · 740 阅读 · 0 评论 -
how to know process is alive in linux?
A:To send signal 0 to the process by pid, if the process is alive, it will return 0.as signal 1 has a name HUP, signal 0 also has a nameEXIT. when a process exit normally, it send a signal 0. funcat原创 2013-09-26 09:04:17 · 635 阅读 · 0 评论 -
如何在Linux下安装双网卡详解
实际应用中有两种情况 1.当驱动程序被作为模块时: 对于PCI卡的情况,模块会自动的检测所有安装的网卡。但是,对于isa卡就不一样了,需要手动的指定io地址和中断号,从而可以让模块查找网卡。信息在文件/etc/conf.modules中保存着。 举个例子说:一个用户有两块isa的Ne2000网卡,一个为0x300,另一个为0x240。那么,在conf.modules文件中应该这样写: al原创 2013-09-26 09:04:19 · 785 阅读 · 0 评论 -
qemu snapshot function
Immutable PCIf you fear damaging your disk.img file, you canuse the snapshot parameter to refrain from makingmodification to the diskimage. For the guestsystem, the disk will still appear to b原创 2013-09-26 09:04:24 · 579 阅读 · 0 评论 -
Public key for xxx.i386.rpm is not installed
Issue:warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 37017186Public key for libXdmcp-devel-1.0.1-2.1.i386.rpm is not installedAnswer:The provider of your .rpm signed it with its pr原创 2013-09-26 09:04:28 · 682 阅读 · 0 评论 -
Linux(ARM)内核启动地址
最近在网上看到一位网友写得一篇文章,写得很好,加深了对Linux启动的认识,特意贴在这里:内核编译链接过程是依靠vmlinux.lds文件,以arm为例vmlinux.lds文件位于kernel/arch/arm/vmlinux.lds,但是该文件是由vmlinux-armv.lds.in生成的,根据编译选项的不同源文件还可以是vmlinux-armo.lds.in,vmlinux原创 2013-09-26 09:04:31 · 634 阅读 · 0 评论 -
tsclient / rdesktop - caps lock solution
tsclient / rdesktop - caps lock solution apply the patch:--- /usr/share/rdesktop/keymaps/common.orig 2009-01-15 12:32:10.000000000 -0600+++ /usr/share/rdesktop/keym原创 2013-09-26 09:04:38 · 635 阅读 · 0 评论 -
Network anlysis tool wireshark
Wireshark is anetwork protocol analyzer (or "packet sniffer") that can be used fornetwork analysis, troubleshooting, software development, education,etc. This guide shows how to install and use原创 2013-09-26 09:05:05 · 464 阅读 · 0 评论 -
Insight into GNU/Linux boot process
Abstract:Booting anoperating system has always been considered a challenging task. In thisdocument we will take a look at the different aspects of the bootprocess. Such as the BIOS which is the原创 2013-09-26 09:05:10 · 1042 阅读 · 0 评论 -
NIC bonding with Ubuntu
Network interfaces can be bonded to provide fault-tolerantoperation. Here’s how to do it in Ubuntu. I will assume the interfacesto be bonded are eth0 and eth1.First, install the ifenslave packag原创 2013-09-26 09:05:17 · 535 阅读 · 0 评论 -
gdb 高级技巧
1) 查看宏 默认情况下,在GDB中是不能查看宏的值及定义的,但通过如下方法,则可以达到目的: 编译源代码时,加上“-g3 -gdwarf-2”选项,请注意不是“-g”,必须为“-g3”,查看宏的值使用命令p,这和查看变量的值的方法相同,如果想查看宏的定义,使用“-macro expand”命令即可 2) 如果执行一连串命令? 这个借助命令“source”即可,“source”的参数为一个存有一串原创 2013-09-26 09:05:19 · 1126 阅读 · 0 评论 -
Ubuntu字符编码
一. Ubuntu默认的中文字符编码在/etc/environment中看到:pprun@pprun-t61:~$sudo gedit /etc/environmentLANG="zh_CN.UTF-8"LANGUAGE="zh_CN:zh:en_US:en"二. 添加中文字符编码的方法1. 直接使用locale-gen命令:pprun@pprun-t61:~$ sudo locale-gen z原创 2013-09-26 09:05:24 · 733 阅读 · 0 评论 -
lsof查看端口被哪些程式使用
lsof -i TCP:port -n lsof -i UDP:port -nlsof -i :port -n 管理员在2009年8月13日编辑了该文章文章。 --> -->原创 2013-09-26 09:05:26 · 618 阅读 · 0 评论 -
ubuntu 10.04显示grub菜单
安装ubuntu10.04后,如果机器上只有一个系统,默认grub菜单是不会显示的,如果想要显示,按如下步骤操作:1.把/etc/default/grub文件中的GRUB_HIDDEN_TIMEOUT=0的0改为大于0的数字,比如5;2.把/etc/grub.d/30_os-prober文件中的所有set timeout=0的0改为10,如下:adjust_timeout () { if [ "原创 2013-09-26 09:05:36 · 559 阅读 · 0 评论 -
mkfs.jffs2指定dev table文件创建rootfs
文件:device_table.rar 大小:1KB 下载:下载 mkfs.jffs2通过--devtable 参数指定设备表文件,文件格式例子如下:# Device table entries take the form of:# # where name is the file name, type can be one原创 2013-09-26 09:05:50 · 865 阅读 · 0 评论 -
ubuntu自动登录tty1(shell,text)配置
1.写脚本autologin代码:#!/bin/bash/bin/login -f #你的用户名移动到/usr/bin/下,并且用chmod +x autologin设置可执行权限2.修改/etc/init/tty1.conf修改前:# tty1 - getty## This service maintains a getty on tty1 from the point the system原创 2013-09-26 09:06:08 · 2418 阅读 · 0 评论 -
enable daemon core-dumps
HOWTO enable core-dumpsTo enable core dumps for all daemon, please follow these steps:Edit the /etc/profile. At line 26 of the file, replace this line:ulimit -S -c 0 > /dev/null 2>&1with this line:u原创 2013-09-26 09:06:17 · 772 阅读 · 0 评论 -
cgroup bin
cgroup-bin includes cgroup command line tools:cgcreatecgdeletecgexeccggetcgset... 管理员在2009年8月13日编辑了该文章文章。 --> -->原创 2013-09-26 09:06:30 · 645 阅读 · 0 评论 -
Unix/Linux 磁盘 I/O 性能监控命令
Unix/Linux 磁盘 I/O 性能监控命令磁盘 I/O 性能监控指标和调优方法在介绍磁盘 I/O 监控命令前,我们需要了解磁盘 I/O 性能监控的指标,以及每个指标的所揭示的磁盘某方面的性能。磁盘 I/O 性能监控的指标主要包括:指标 1:每秒 I/O 数(IOPS 或 tps)对于磁盘来说,一次磁盘的连续读或者连续写称为一次磁盘 I/O, 磁盘的 IOPS 就是每秒磁盘连续读次数和连续写次原创 2013-09-26 09:06:37 · 1507 阅读 · 0 评论 -
Linux Find Out Virtual Memory PAGESIZE
Q. How do I check the size of PAGESIZE under Linux?A. Most modern operating systems have their main memory divided into pages. It allows better utilization of memory. A page is a fixed length block of原创 2013-09-26 09:06:39 · 657 阅读 · 0 评论 -
iscsiadm command
discovery targets:# iscsiadm --mode discovery --type sendtargets --portal 192.168.1.10view more information about your iSCSI Target with the following command:# iscsiadm -m node -T iqn.2011-07.com.exa原创 2013-09-26 09:06:59 · 580 阅读 · 0 评论 -
configure.ac checks: GOBJECT_INTROSPECTION_CHECK
this macro does not exist if GObject Introspection is not installed.in ubuntu 10.04, can install gobject-introspection (0.9.3-0ubuntu4),if also failed, use autogen.sh to regenerate.原创 2013-09-26 09:07:21 · 935 阅读 · 0 评论 -
alsamixer设置
功能键:Tab 、 space空格、 左右方向、上下调值、m设是否静音(静音显示MM) 用TAB,在VIEW项内部选择:PLAYBACK,CAPTURE,ALL 另外,mic说话耳机有声问题,则需要关闭mic boost解决。 ALL项,其实是两个图的综合。 PCM的值太高会有爆音!需要特别注意CAPTURE图: 用space来选择某项的是否加CAPTURE,出现红色的L和R,就是加上了,请仔细观原创 2013-09-26 09:07:23 · 1571 阅读 · 0 评论 -
usb redir
Set up Qemu-kvm 1.1 & Spice-gtk 0.12 with USB redirection on Ubuntu Precise$ sudo add-apt-repository ppa:bderzhavets/lib-usbredir81$ sudo apt-get update$ sudo apt-get install qemu-kvm qemu qemu-common原创 2013-09-26 09:07:56 · 1328 阅读 · 0 评论 -
ubuntu fix tooltip script
#/bin/sh # Tooltip fix # A script to fix themes files in Ubuntu 11.10 # to have readable tooltips in applications such # as eclipse. # The script edits the gtk.css, settings.ini and gtkrc files # Au原创 2013-09-26 09:07:58 · 617 阅读 · 0 评论 -
autostart desktop example
/usr/share/applications/stumpwm.desktop[Desktop Entry] Type=Application Name=StumpWM Exec=stumpwm NoDisplay=true # name of loadable control center module # name we put on the WM spec check window X-GN原创 2013-09-26 09:08:00 · 1092 阅读 · 0 评论 -
linux并口编程
The printer is accessible through /dev/lp0; in the same way, the parallel port itself is accessible through /dev/parport0. The difference is in the level of control that you have over the wires in the原创 2013-09-26 09:08:05 · 1402 阅读 · 0 评论 -
Linux Socket
什么是Socket Socket接口是TCP/IP网络的API,Socket接口定义了许多函数或例程,程序员可以用它们来开发TCP/IP网络上的应用程序。要学Internet上的TCP/IP网络编程,必须理解Socket接口。 Socket接口设计者最先是将接口放在Unix操作系统里面的。如果了解Unix系统的输入和输出的话,就很容易了解Socket了。网络的Socket数据传输是原创 2013-09-26 09:03:24 · 474 阅读 · 0 评论 -
Ubuntu(Debian)维护工具之dpkg
1.本文的对Ubuntu的dpkg工具做的一些描述2. dpkg 概述在其 manpage 中, 这样描述: dpkg - package manager for Debian dpkg - Debian中的软件包管理器.dpkg 是 Ubuntu 软件包管理系统的中流砥柱, 负责安装卸载软件包, 配置, 连同维护已安装的软件包. 也是Ubuntu系统中众多软件包管原创 2013-09-26 09:03:45 · 655 阅读 · 0 评论 -
在子线程中写socket server,主进程退出,端口回收慢问题
解决方法: 在子线程开始时,调用pthread_detach(pthread_self()),使得子线程退出时由系统来回收资源。 管理员在2009年8月13日编辑了该文章文章。 --> -->原创 2013-09-26 09:03:49 · 1085 阅读 · 0 评论 -
Enable scim in english ubuntu
1: install im-switch, by using "apt-get install im-switch"2: "im-switch -s none" to remove all installed input methods3: "im-switch-s scim" to integrate scim with your windows4: reboot and see原创 2013-09-26 09:03:52 · 551 阅读 · 0 评论