欢迎你客人 ( 登录 | 注册 )

  评价 ---

2 页 V  1 2 >
 | 分类: Debian
entry 2006-9-5, 22:48 PM
apt的proxy比较简单。在/etc/apt/apt.conf中添加:

/etc/apt/apt.conf
代码

APT::Authentication::TrustCDROM "true";
Acquire::http::Proxy "http://username:password@proxy.xxx.xxx/";
Acquire::::Proxy "true";




wget 的proxy 它是借助环境变量
export http_proxy=http://proxy.xx.xx:80
export ftp_proxy=ftp://proxy.xx.xx:21

如果需要认证则需要编写一个文本
~/.wgetrc
中添加:

代码

proxy-user=username
proxy-password=password




w3m 的代理上网可以参考使用proxychains工具。

具体配置需要在 /etc/proxychains.conf中进行设置。

/etc/proxychains.conf
代码

# proxychains.conf  VER 2.0
#
#        HTTP, SOCKS4, SOCKS5 tunneling proxifier.
#

# The option below identifies how the ProxyList is treated.
# only one option should be uncommented at time,
# otherwise the last appearing option will be accepted
#
# Dynamic - Each connection will be done via chained proxies
# all proxies chained in the order as they appear in the list
# at least one proxy must be online to play in chain
# (dead proxies are skipped)
# otherwise EINTR is returned to the app
#
# Strict - Each connection will be done via chained proxies
# all proxies chained in the order as they appear in the list
# all proxies must be online to play in chain
# otherwise EINTR is returned to the app
#
# Random - Each connection will be done via random proxy
# (or proxy chain, see  chain_len) from the list
# this option is good for scans

#dynamic_chain
#strict_chain
random_chain

# Make sense only if random_chain
# 一定要注意,这个值要和下面定义的 proxy list 的个数一致
chain_len = 1

# Quiet mode (no output)
quiet_mode

# Write stats about good proxies to proxychains.stats
#write_stats

#Some timeouts in milliseconds
#
tcp_read_time_out 15000
tcp_connect_time_out 10000

[ProxyList]
# ProxyList format
#       type  host  port [user pass]
#       (values separated by 'tab' or 'blank')
#
#
#        Examples:
#
#                socks5    192.168.67.78    1080    lamer  secret
#        http    192.168.89.3    8080    justu    hidden
#         socks4    192.168.1.49    1080
#            http    192.168.39.93    8080    
#        
#
#       proxy types: http, socks4, socks5
#        ( auth types supported: "basic"-http  "user/pass"-socks )
#
#http     10.0.0.5 3128
#http     10.0.0.3 3128
#http     10.0.0.5 3128
#socks5 192.168.1.4 1080
#socks4 10.5.81.143 1080
#http    192.168.203.18 8080

http                proxy.xxx.xxx   80  username  password




目前没有解决firefox的代理认证方法。

 | 分类: Debian
entry 2006-9-5, 07:26 AM
有时碰到一些有限制的系统,安装时,需要选用自己需要的最小包集合,但开发时需要的函数相关的信息的manpage不一定有被安装上。


经过详细的检查。发现这些函数的manpages的包名是:

manpages-dev

但是单单安装manpges-dev有时你不能从man -k function 中得到你要找的函数。这个和mandb有关。需要重新刷新mandb的索引。使用的命令就是 mandb -c 它会重建一遍mandb的索引。


在Deiban中,除了提供基本的manpages外,还提供了posix的函数manpage。包名:manpages-posix和manpages-posix-dev。

黑客的幽默无处不在。你安装funny-manpages 和 asr-manpages 包。它里面有很多搞笑的名次解释哦。包的说明中则提示“请不要把它当真” cool.gif

 | 分类: Debian
entry 2006-8-31, 07:38 AM
目前是一些零星的收集,不一定完整。
代码

<!-- artificial bold by: firefly
这里开始设置simsun在8~16的大小时,不用AA,而是用点阵字体
-->
    <match target="font" >
        <test qual="any" name="family">
            <!--string>Tahoma</string-->
            <string>宋体</string>
            <string>黑体</string>
            <string>幼圆</string>
            <string>隶书</string>
        </test>
        <test compare="more_eq" name="pixelsize" qual="any" >
            <double>8</double>
        </test>
        <test compare="less_eq" name="pixelsize" qual="any" >
            <double>14</double>
        </test>
        <edit mode="assign" name="antialias" >
            <bool>false</bool>
        </edit>
    </match>

    <!-- artificial bold by: firefly-->
    <match target="font">
        <test target="pattern" name="weight" compare="more">
            <const>medium</const>
        </test>
        <edit name="weight" mode="assign">
            <const>bold</const>
        </edit>
    </match>

    <!-- artificial bold by: firefly-->
    <match target="font">
        <test name="family">
            <string>宋体</string>
        </test>
        <edit name="globaladvance"><bool>false</bool></edit>
        <edit name="spacing"><const>proportional</const></edit>
    </match>

 | 分类: Debian
entry 2006-1-26, 23:54 PM
代码
gpg --keyserver keyring.debian.org --recv-keys xxxx
gpg --armor --export xxxx | apt-key add -
apt-get update

 | 分类: Debian
entry 2005-11-23, 22:03 PM
修改“选项-》字体”的两个字体设置为如下内容。
如果没有安装unifont字体请apt-get install unifont

-gnu-unifont-medium-r-normal-*-*-160-*-*-c-*-iso10646-1

 | 分类: Debian
entry 2005-10-20, 13:50 PM
呵呵,这个经历好象挺顺利 tongue.gif

我安装了sarge并且将默认的taskel的桌面安装完成。
这样系统中的KDE和gnome都比较全。
开始担心升级后可能系统都无法使用,但经历之后发现挺好的。

升级时,由于sid是unstable的版本,所以就先修改/etc/apt/source.list文件,将sarge替换为sid

1、apt-get update;apt-get upgrade的操作告诉我要有200M左右的升级。
2、执行apt-get dist-upgrade命令。这样进行相关软件的版本切换。这下可大了400M左右的升级文件要下载,于是耐心等待。
3、其中碰到一个问题就是升级udev时无法成功,发现它的提示信心告诉我原因就是hotplug无法升级,于是手动apt-get install hotplug,又失败,它又依赖kernel的版本。好吧升级kernel,想想也是毕竟是2.6.8到2.6.12的大跳跃吗。apt-get install linux-image-2.6.12-1-686呵呵,直接下载20M左右的内核安装完成。
注意:其中升级udev失败的话,需要手动删除两个创建了一半的文件/etc/udev/rules.d/zxxxx 文件软链接。
4、继续apt-get dist-upgrade旅程。后面都是默认配置就可以了。
cool.gif


Debian 2.6.12的内核重新支持了tg3的网卡,桌面变的更酷了。真不错! wink.gif

 | 分类: Debian
entry 2005-10-6, 14:54 PM
参考了下面的仁兄提供的“Debian 笔记”中JAVA1.5配置方法的第二法:

在 /usr/local/lib/jre/lib/fonts/下建立 fallback 目录。然后将所有用到的中文字体链接或者拷贝一份到该目录中即可。

问题得到解决。

http://www.linuxsir.org/bbs/showthread.php?t=214413

测试方法请用Firefox浏览
http://www.668map.com/szmap/
如果只是正确安装java plugin 则有部分中文无法显示。但按上述方法则可以解决。

 | 分类: Debian
entry 2005-10-6, 14:52 PM
以下,完全摘自 LinuxSir.Org 的 Debian 版面

Debian 一般都装了 unifont 字体的,如果没有就先来个
代码
apt-get install unifont



添加一个文件 /etc/gtk/gtkrc.zh_CN.utf8
里面写入
代码

style "gtk-default-zh-cn-utf8" {
fontset = "-gnu-unifont-medium-r-normal--16-160-75-75-c-80-iso10646-1,\
"
}
class "GtkWidget" style "gtk-default-zh-cn-utf8"

 | 分类: Debian
entry 2005-10-6, 14:51 PM
为了可以播放SRT字幕,需要将simhei.ttf或者simsun.ttf拷贝到~/.mplayer下,改名为subfont.ttf

然后对config文件进行如下配置,则可以用mplayer直接播放srt字幕的AVI了。

cat ~/.mplayer/config
代码

# Write your default config options here!
subcp=cp936
#font=simsun
font=simhei
unicode=1
slang=zh
stop-xscreensaver=1
zoom=1
vo=gl


下面这个操作好像可以不用了 cool.gif ,可以和放srt字幕的方法一样。

如果要播放SUB字幕,则用命令行加个参数 -VOBSUB XXXX

例如:
代码
mplayer -vobsub movie movie.avi

 | 分类: Debian
entry 2005-10-6, 14:48 PM
根据上片文章设置好环境变量后,注意不要将jre的plugin拷贝到firefox的plugin目录中,而是作软链接,否则会无法正常使用这个plugin。

例如:
代码
cd /usr/lib/mozilla-firefox/plugins/
ln -s /usr/local/lib/jdk/plugin/i386/ns7/libjavaplugin_oji.so

2 页 V  1 2 >  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31



我的 Blog 链接