Posted by limuxy on 七月 8, 2010

[QUICK NOTE] INTEL 965显卡在Debian下开启compiz

新装的debian,compiz死活打不开,direct rendering也是off,解决方法如下:

首先,打开/etc/X11/xorg.conf 搜索blacklist 找到intel的那一行#掉

然后,apt-get install libgl1-mesa-dri libgl1-mesa-glx

最后,重启X就行了

Categories: Linux手记
Tags: ,
Posted by limuxy on 六月 7, 2010

Ubuntu下的PDF打印机

把文档内容打印成PDF文档在Windows系统下最好的方法就是安装Adobe Acrobat Professional,当然在使用盗版的情况下有点麻烦。不过这事儿在ubuntu里就方便多了。下面是ubuntu打印的测试页,比Windows加的好看多了……

Read the rest of this entry »

Categories: Linux手记
Tags: , ,
Posted by limuxy on 二月 1, 2010

基于ubuntu server的openbox安装笔记

一. 安装ubuntu server 并更新

这个没什么好说明的,所有服务器组件都不装。

二. 解决依赖问题

openbox在debian/ubuntu系统下的依赖如下,共约50M:

build-essential
pkg-config
libpango1.0-dev
libglib2.0-dev
libxml2-dev
libxcursor-dev
libstartup-notification0-dev
xlibs-dev
libxext-dev
x11proto-randr-dev
menu
menu-xdg

其中xlibs-dev在karmic中似乎是不需要的,我在源里没有找到这个包,但也编译成功了.

三. 编译安装

首先获得源码,直接从官网下。ubuntu server刚装完没有图形界面的浏览器,就用w3m吧。

编译过程很简单:

./configure –prefix=/usr –sysconfdir=/etc
make
sudo make install

官方说明: If you do not want to install to /usr, then you should use ./configure –prefix= –sysconfdir=/etc –datarootdir=/usr/share. If you don’t do this, the Openbox log in options will not be available, because they need to be installed to /usr/share/xsessions.

四.安装xserver

sudo apt-get install x11-xserver-utils xinit

新建~/.xinitrc文件,写入openbox-session 这样startx的时候就能启用openbox了.

暂时不考虑用登陆管理器了,所以在~/.profile文件最后添加一行starx 每次登陆之后就能自动startx了

五. Openbox配置

上面所有过程完成之后, openbox就OK了。具体的配置下次再继续吧~

Categories: Linux手记
Tags: , ,
Posted by limuxy on 十二月 10, 2009

ubuntu下安装oss4

昨天在linuxmint下捣鼓了一天openbox,怎么弄都没有声音,重装alsa驱动也不行。想想alsa的缺点,又有推特上@poplarch的提醒,今天终于换用oss4了。openbox没有声音的问题也解决鸟~下面是过程~

一.准备工作

删除PulseAudio

sudo killall pulseaudio
sudo apt-get remove pulseaudio gstreamer0.10-pulseaudio

删除alsa

sudo /etc/init.d/alsa-utils stop
sudo apt-get remove alsa-base alsa-utils

禁用alsa内核模块

sudo dpkg-reconfigure linux-sound-base

在第二个界面选择OSS

二.安装OSS

OSS官网下载对应的deb包,安装之前先重启一下,以免被alsa影响

sudo dpkg -i oss-linux*.deb

三.其他设置

oss控制音量的软件是ossxmix (注意中间的x,不是ossmix),可设置为随系统启动或状态栏小工具。

Categories: Linux手记
Tags: ,
Posted by limuxy on 十二月 7, 2009

Ubuntu下tor的使用

那啥。。。废话不多说了。。。那这一段是什么呢。。。 = =||| 语无伦次的进入正题吧。。。。(注:此文是到处复制粘贴文。。。) Read the rest of this entry »

Categories: Linux手记
Tags: ,
Posted by limuxy on 十二月 4, 2009

Reinstall Ubuntu With A Single Command [Quick Tip]

The following command will reinstall all the packages and reconfigures them automatically:
 

sudo dpkg-reconfigure -phigh -a

This is very useful in case of an unsuccessful upgrade or when something went very bad and you don't have a back-up.

If, however, you have some minor dependency errors, instead of the command above (which will take about an hour to finish), use this command instead (I'm sure you already know it):
 

sudo apt-get install -f


 

[tip via aldeby.org]
Categories: Linux手记
Tags: ,
Posted by limuxy on 十月 7, 2009

快速批量下载gnome-look.org的壁纸

来自:http://webupd8.blogspot.com/2009/10/linux-download-hundreds-of-wallpapers.html

gnome-look.org上的壁纸非常多,但下载起来也非常麻烦>_< 刚看到一个很不错的批量下载指定分辨率壁纸的办法,如下:

打开terminal,cd进想要保存壁纸图片的文件夹,然后运行如下命令:
[code]ftp ftp.gnome.org
cd /pub/GNOME/teams/art.gnome.org/backgrounds
prompt off[/code]

现在就可以下载指定分辨率的壁纸了,如:
[code]mget *1280x1024.jpg[/code]

Categories: Linux手记
Tags: ,