让旧笔记本起死回生,作为下载器焕发青春。
版面规则
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
我们都知道新人的确很菜,也喜欢抱怨,并且带有浓厚的Windows习惯,但既然在这里询问,我们就应该有责任帮助他们解决问题,而不是直接泼冷水、简单的否定或发表对解决问题没有任何帮助的帖子。乐于分享,以人为本,这正是Ubuntu的精神所在。
-
- 帖子: 48
- 注册时间: 2009-10-23 10:11
让旧笔记本起死回生,作为下载器焕发青春。
这里的人真少,8.04确实不行了。
家里有台2003年的笔记本,PM 1.4G的CPU, 256M的内存,30G的硬盘。跑XP确实勉为起难,开机要10多分钟。本想扔了,但为了环保起见,还是废物利用作为网络下载器吧。
目标:
1、字符界面配置,支持中文,主要是为了减少资源浪费。
2、配置无线网络,家里网口少。当然最好还是用有线的,速度快,污染小。我的无线网卡是802.11b的只有11M。
3、安装amuled及amulecmd,这是linux下的字符界面电驴,下载资源很多。
4、安装rtorrent,这是linux下的字符界面BT下载客户端,下载利器啊!但是好像现在BT种子不是很好找,大虾们有神马好的BT下载网站,推荐一下哟!。
5、安装ftp服务器,用网络传送已经下载好的电影。网络时代了,总不能还用u盘拷吧!
下面一件件的做吧。
家里有台2003年的笔记本,PM 1.4G的CPU, 256M的内存,30G的硬盘。跑XP确实勉为起难,开机要10多分钟。本想扔了,但为了环保起见,还是废物利用作为网络下载器吧。
目标:
1、字符界面配置,支持中文,主要是为了减少资源浪费。
2、配置无线网络,家里网口少。当然最好还是用有线的,速度快,污染小。我的无线网卡是802.11b的只有11M。
3、安装amuled及amulecmd,这是linux下的字符界面电驴,下载资源很多。
4、安装rtorrent,这是linux下的字符界面BT下载客户端,下载利器啊!但是好像现在BT种子不是很好找,大虾们有神马好的BT下载网站,推荐一下哟!。
5、安装ftp服务器,用网络传送已经下载好的电影。网络时代了,总不能还用u盘拷吧!
下面一件件的做吧。
上次由 lane8884 在 2013-05-09 14:22,总共编辑 2 次。
-
- 帖子: 48
- 注册时间: 2009-10-23 10:11
Re: 让旧笔记本起死回生,作为下载器换发青春。
1、字符界面配置,支持中文
--------------------------------------------------------------------
开机进字符界面最好的方法是安装的时候就是server版本,当然desktop版本也有办法进字符界面。只需要把/etc/X11/default-display-manager文件中
/usr/sbin/gdm
注释掉就好了。
--------------------------------------------------------------------
支持中文需要安装软件了,我装的是zhcon
要用中文界面就直接输入
如果显示还有问题就输入
--------------------------------------------------------------------
根据字符界面的分辨率还是很差,好像是600×480,看上去眼睛很不舒服,我要调节一下
/etc/initramfs-tools/modules文件
/etc/modprobe.d/blacklist-framebuffer注释掉两行,实际上我的该文件这两行在最后部分,如下
重新生成initrd.img
(root权限)
修改/boot/grub/menu.lst,在启动项kernel的最后面加上vga=791,这个是1024x768
我的如下
0x317是十六进制的791
现在启动就是1024×768分辨率的支持中文显示的字符界面的
--------------------------------------------------------------------
开机进字符界面最好的方法是安装的时候就是server版本,当然desktop版本也有办法进字符界面。只需要把/etc/X11/default-display-manager文件中
/usr/sbin/gdm
注释掉就好了。
--------------------------------------------------------------------
支持中文需要安装软件了,我装的是zhcon
代码: 全选
sudo apt-get install zhcon
代码: 全选
zhcon --utf8
代码: 全选
zhcon --utf8 --dev=vga
根据字符界面的分辨率还是很差,好像是600×480,看上去眼睛很不舒服,我要调节一下
/etc/initramfs-tools/modules文件
代码: 全选
# List of modules that you want to include in your initramfs.
#
# Syntax: module_name [args ...]
#
# You must run update-initramfs(8) to effect this change.
#
# Examples:
#
# raid1
# sd_mod
fbcon
vesafb
vga16fb
代码: 全选
#blacklist vesafb
blacklist vfb
#blacklist vga16fb
代码: 全选
update-initramfs -u
修改/boot/grub/menu.lst,在启动项kernel的最后面加上vga=791,这个是1024x768
我的如下
代码: 全选
title Ubuntu 8.04.4 LTS, kernel 2.6.24-32-generic
root (hd0,7)
kernel /boot/vmlinuz-2.6.24-32-generic root=UUID=ea15e8ab-2b5e-48af-9698-85a94ab27465 ro vga=0x317
initrd /boot/initrd.img-2.6.24-32-generic
现在启动就是1024×768分辨率的支持中文显示的字符界面的
-
- 帖子: 48
- 注册时间: 2009-10-23 10:11
Re: 让旧笔记本起死回生,作为下载器换发青春。
2、配置无线网络
我的是wpa2的加密方式,先在终端输入如下命令
新建一个文件,如wpa,写如下脚本
我的无线网络是eth1,大家如果不一样可以换一下,用ifconfig命令就可以看到。
加入可执行属性
开启无线网络,就运行
我的是wpa2的加密方式,先在终端输入如下命令
代码: 全选
sudo wpa_passphrase 你的SSID 密码 > wpa_wireless.conf
代码: 全选
#!/bin/bash
ifconfig eth1 up
wpa_supplicant -B -i eth1 -D wext -c wpa_wireless.conf
dhclient eth1
加入可执行属性
代码: 全选
sudo chmod +x wpa
代码: 全选
./wpa
-
- 帖子: 48
- 注册时间: 2009-10-23 10:11
Re: 让旧笔记本起死回生,作为下载器换发青春。
3、安装amulecmd
安装
Ubuntu下安装东西一向非常简单
配置
amule的设置文件如下
/etc/default/amule-daemon
在此文件中,你需要设置的是如下两个变量
其中AMULED_USER为运行amule的用户,你必须要设置这个,否则amule-daemon无法自动运行。
AMULED_HOME如果你不设置的话,会自动使用AMULED_USER下面的.aMule。
设置好此文件后,我们需要讲amule-daemon启动起来了,第一次启动后会在你设置的AMULED_HOME下面生成一个.aMule目录,并且生成一些必须的初始文件。
下面需要编辑$~/.aMule/amule.conf文件,我一般采用以下配置(打开web服务,这样就可以远程控制了)
密码可以通过以下命令行来取得
如果要通过其它客户端远程管理,那么需要设置下面一行
先运行一下 $ amuled &
然后你可以使用amulecmd打开命令行看看,或者登录http://localhost:4711来web管理
实际上amuled才是真正的电驴程序,amulecmd只是终端下的一个查看软件
我把我的配置文件传上来吧
安装
Ubuntu下安装东西一向非常简单
代码: 全选
$ sudo aptitude install amule-daemon amule-utils
amule的设置文件如下
/etc/default/amule-daemon
在此文件中,你需要设置的是如下两个变量
代码: 全选
AMULED_USER "test"
AMULED_HOME
AMULED_HOME如果你不设置的话,会自动使用AMULED_USER下面的.aMule。
设置好此文件后,我们需要讲amule-daemon启动起来了,第一次启动后会在你设置的AMULED_HOME下面生成一个.aMule目录,并且生成一些必须的初始文件。
下面需要编辑$~/.aMule/amule.conf文件,我一般采用以下配置(打开web服务,这样就可以远程控制了)
代码: 全选
[WebServer]
#启动web服务
Enabled=1
#端口号
Port=4711
UPnPWebServerEnabled=0
WebUPnPTCPPort=50001
PageRefreshTime=120
UseGzip=1
UseLowRightsUser=0
#密码
Password=XXXXXXXXXXXXXXXXXXXXX
PasswordLow=
Template=litoral
代码: 全选
$ echo -n 你的密码 | md5sum | cut -d " " -f 1
代码: 全选
AcceptExternalConnections=1
然后你可以使用amulecmd打开命令行看看,或者登录http://localhost:4711来web管理
实际上amuled才是真正的电驴程序,amulecmd只是终端下的一个查看软件
我把我的配置文件传上来吧
- 附件
-
- amule.conf.tar.gz
- amule配置文件
- (1.9 KiB) 已下载 81 次
上次由 lane8884 在 2013-06-04 11:49,总共编辑 2 次。
- photor
- 论坛版主
- 帖子: 11004
- 注册时间: 2008-04-26 12:41
Re: 让旧笔记本起死回生,作为下载器换发青春。
其实8.04能跑起来的机器,10.04照样跑,我的无穷老机就是这样 

-
- 帖子: 871
- 注册时间: 2006-01-03 20:44
Re: 让旧笔记本起死回生,作为下载器换发青春。
不错。很好。
- Strange
- 帖子: 1824
- 注册时间: 2006-05-19 9:54
- 来自: Shanghai
- rapistor
- 帖子: 1983
- 注册时间: 2009-01-19 15:09
Re: 让旧笔记本起死回生,作为下载器换发青春。
对,五楼说得太对了,好像11.04装gnome也差不多.photor 写了:其实8.04能跑起来的机器,10.04照样跑,我的无穷老机就是这样
坚守在linux的天堂!
- rapistor
- 帖子: 1983
- 注册时间: 2009-01-19 15:09
- qy117121
- 论坛版主
- 帖子: 50587
- 注册时间: 2007-12-14 13:40
- 系统: Winbuntu
- 来自: 志虚国乌由市
- 联系:
Re: 让旧笔记本起死回生,作为下载器换发青春。
Strange 写了:不起x的话,什么机器都能跑。
下载机还是raspberry pi好,省电。
- photor
- 论坛版主
- 帖子: 11004
- 注册时间: 2008-04-26 12:41
Re: 让旧笔记本起死回生,作为下载器换发青春。
x也能跑,用轻量级的桌面环境Strange 写了:不起x的话,什么机器都能跑。
下载机还是raspberry pi好,省电。

-
- 帖子: 48
- 注册时间: 2009-10-23 10:11
Re: 让旧笔记本起死回生,作为下载器换发青春。
4、安装rtorrent
安装了rtorrent,但是没有合适的种子,一直没有试好,后来有了之后,又跑不起来,最后发现是rtorrent不支持中文路径,改了就好了。
安装
好,先安装吧!实际上ubuntu下安装软件很简单
然后就OK了!
配置
配置相对来说比较麻烦,但是也不是很难,我就把我的配置贴出来吧!
这里要说的是,rtorrent没有配置文件,要自己创建一个,名叫.rtorrent.rc
mkdir ~/.rtorrent.rc
vim .rtorrent.rc
我喜欢用vim,有人不会可以用gedit编辑。我的配置文件如下:
使用
使用方法网上介绍很多,这里写几个主要的:
打开软件
$ rtorrent XXXXX.torrent
我已经配置了rtorrent,把/home/username下的种子都自动加载。
如果进入了rtorrent,想再加载其他的种子,就按回车,最下方出现load>的字符可以输入该种子,用TAB键可以自动补齐
可以用上下左右键看下载情况
开始下载Ctrl+s
停止下载Ctrl+d,连按两次就连下载文件一起删除
退出Ctrl+q
安装了rtorrent,但是没有合适的种子,一直没有试好,后来有了之后,又跑不起来,最后发现是rtorrent不支持中文路径,改了就好了。
安装
好,先安装吧!实际上ubuntu下安装软件很简单
代码: 全选
sudo apt-get install rtorrent
配置
配置相对来说比较麻烦,但是也不是很难,我就把我的配置贴出来吧!
这里要说的是,rtorrent没有配置文件,要自己创建一个,名叫.rtorrent.rc
mkdir ~/.rtorrent.rc
vim .rtorrent.rc
我喜欢用vim,有人不会可以用gedit编辑。我的配置文件如下:
代码: 全选
#最小允许peer数
min_peers = 3
#最大允许peer数
max_peers = 100
#最大同时上传用户数
max_uploads = 10
#最大下载950k/s 光纤用户使用,adsl请酌情修改
download_rate = 950
#最大上传200k/s 光纤用户使用,adsl请酌情修改
upload_rate = 200
#下载目录,目录必须是英文,我用中文目录就不行,不知道现在的最新的可以不
directory = /home/username/
#下载历史目录(此目录中包括下载进度信息和DHT节点缓存)
session = /home/username/
# Keeps session data files even if torrent has finished
session_on_completion = yes
# Not really required, but recommended - see rtorrent(1) man page
session_lock = yes
# Setup A: Run through CRON
# Save session data every 5 mins, with a 4 min offset
schedule = session_save,240,300,session_save=
#(配置自动监视,把bt种子扔进~/username目录就自动下载)
schedule = watch_directory,5,5,load_start=/home/username
#硬盘空间低于100M就自动停止一切下载)
schedule = low_diskspace,5,60,close_low_diskspace=100M
#(在总上传量达到200M的情况下上传/下载率达到200%,或者在总上传量不足200M情况下上传/下载率达到2000%,则停止上传)
schedule = ratio,60,60,"stop_on_ratio=200,200M,2000"
# Enable the default ratio group.
# ratio.enable=
# Change the limits, the defaults should be sufficient.
#ratio.min.set=100
#ratio.max.set=300
#ratio.upload.set=50M
# Changing the command triggered when the ratio is reached.
#system.method.set = group.seeding.ratio.command, d.close=, d.erase=
#bt监听端口
port_range = 9400-9500
#随机从上面范围内选择端口
port_random = yes
# 是否使用UDP trackers,建议选yes
use_udp_trackers = yes
######开启DHT######
dht = on
#DHT所用的UDP端口
dht_port = 9501
#种子交换功能
peer_exchange = yes
#(上传缓存,每个种子100K,也可以是10M,但小内存用户请酌情修改)
send_buffer_size = 100K
#(下载缓存,每个种子200K,也可以是20M,但小内存用户请酌情修改)
receive_buffer_size = 200K
#(修改编码以避免中文乱码)
encoding_list=UTF-8
使用方法网上介绍很多,这里写几个主要的:
打开软件
$ rtorrent XXXXX.torrent
我已经配置了rtorrent,把/home/username下的种子都自动加载。
如果进入了rtorrent,想再加载其他的种子,就按回车,最下方出现load>的字符可以输入该种子,用TAB键可以自动补齐
可以用上下左右键看下载情况
开始下载Ctrl+s
停止下载Ctrl+d,连按两次就连下载文件一起删除
退出Ctrl+q
-
- 帖子: 48
- 注册时间: 2009-10-23 10:11
Re: 让旧笔记本起死回生,作为下载器换发青春。
5、安装ftp服务器
为了把下载好的文件拷贝出来,最好安装一个ftp服务器。我用的是一个轻量级的服务器vsftpd。
实际上我只是想简单的传输一下文件,因此就没有对ftp做过多的配置,也没有创建专门的用户。
这是我的配置文件,配置文件在/etc/vsftpd.conf,注意把以前的备份一下
找到一个很详细的关于ftp服务器配置的帖子,可以仔细看看
os.51cto.com/art/201008/221842.htm
为了把下载好的文件拷贝出来,最好安装一个ftp服务器。我用的是一个轻量级的服务器vsftpd。
代码: 全选
$ sudo apt-get install vsftpd
这是我的配置文件,配置文件在/etc/vsftpd.conf,注意把以前的备份一下
代码: 全选
# Example config file /etc/vsftpd.conf
#
# The default compiled in settings are fairly paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
# Please see vsftpd.conf.5 for all compiled in defaults.
#
# READ THIS: This example file is NOT an exhaustive list of vsftpd options.
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
# capabilities.
#
#
# Run standalone? vsftpd can run either from an inetd or as a standalone
# daemon started from an initscript.
listen=YES
#
# Run standalone with IPv6?
# Like the listen parameter, except vsftpd will listen on an IPv6 socket
# instead of an IPv4 one. This parameter and the listen parameter are mutually
# exclusive.
#listen_ipv6=YES
#
# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
anonymous_enable=YES
#
# Uncomment this to allow local users to log in.
local_enable=YES
#
# Uncomment this to enable any form of FTP write command.
write_enable=YES
#
# Default umask for local users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)
local_umask=022
#
# Uncomment this to allow the anonymous FTP user to upload files. This only
# has an effect if the above global write enable is activated. Also, you will
# obviously need to create a directory writable by the FTP user.
anon_upload_enable=NO
#
# Uncomment this if you want the anonymous FTP user to be able to create
# new directories.
anon_mkdir_write_enable=NO
#
# Activate directory messages - messages given to remote users when they
# go into a certain directory.
dirmessage_enable=YES
#
# Activate logging of uploads/downloads.
xferlog_enable=YES
#
# Make sure PORT transfer connections originate from port 20 (ftp-data).
connect_from_port_20=YES
#
# If you want, you can arrange for uploaded anonymous files to be owned by
# a different user. Note! Using "root" for uploaded files is not
# recommended!
#chown_uploads=YES
#chown_username=whoever
#
# You may override where the log file goes if you like. The default is shown
# below.
xferlog_file=/var/log/vsftpd.log
#
# If you want, you can have your log file in standard ftpd xferlog format
#xferlog_std_format=YES
#
# You may change the default value for timing out an idle session.
idle_session_timeout=600
#
# You may change the default value for timing out a data connection.
data_connection_timeout=120
#
# It is recommended that you define on your system a unique user which the
# ftp server can use as a totally isolated and unprivileged user.
#nopriv_user=ftpsecure
#
# Enable this and the server will recognise asynchronous ABOR requests. Not
# recommended for security (the code is non-trivial). Not enabling it,
# however, may confuse older FTP clients.
#async_abor_enable=YES
#
# By default the server will pretend to allow ASCII mode but in fact ignore
# the request. Turn on the below options to have the server actually do ASCII
# mangling on files when in ASCII mode.
# Beware that on some FTP servers, ASCII support allows a denial of service
# attack (DoS) via the command "SIZE /big/file" in ASCII mode. vsftpd
# predicted this attack and has always been safe, reporting the size of the
# raw file.
# ASCII mangling is a horrible feature of the protocol.
#ascii_upload_enable=YES
#ascii_download_enable=YES
#
# You may fully customise the login banner string:
#ftpd_banner=Welcome to blah FTP service.
#
# You may specify a file of disallowed anonymous e-mail addresses. Apparently
# useful for combatting certain DoS attacks.
#deny_email_enable=YES
# (default follows)
#banned_email_file=/etc/vsftpd.banned_emails
#
# You may restrict local users to their home directories. See the FAQ for
# the possible risks in this before using chroot_local_user or
# chroot_list_enable below.
chroot_local_user=YES
#
# You may specify an explicit list of local users to chroot() to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
#chroot_list_enable=YES
# (default follows)
#chroot_list_file=/etc/vsftpd.chroot_list
#
# You may activate the "-R" option to the builtin ls. This is disabled by
# default to avoid remote users being able to cause excessive I/O on large
# sites. However, some broken FTP clients such as "ncftp" and "mirror" assume
# the presence of the "-R" option, so there is a strong case for enabling it.
#ls_recurse_enable=YES
#
#
# Debian customization
#
# Some of vsftpd's settings don't fit the Debian filesystem layout by
# default. These settings are more Debian-friendly.
#
# This option should be the name of a directory which is empty. Also, the
# directory should not be writable by the ftp user. This directory is used
# as a secure chroot() jail at times vsftpd does not require filesystem
# access.
secure_chroot_dir=/var/run/vsftpd
#
# This string is the name of the PAM service vsftpd will use.
pam_service_name=vsftpd
#
# This option specifies the location of the RSA certificate to use for SSL
# encrypted connections.
rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
# This option specifies the location of the RSA key to use for SSL
# encrypted connections.
rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
os.51cto.com/art/201008/221842.htm
-
- 帖子: 48
- 注册时间: 2009-10-23 10:11
Re: 让旧笔记本起死回生,作为下载器换发青春。
有时候要进图形界面,感觉8.04都很慢,还是用这个吧!photor 写了:其实8.04能跑起来的机器,10.04照样跑,我的无穷老机就是这样
-
- 帖子: 48
- 注册时间: 2009-10-23 10:11
Re: 让旧笔记本起死回生,作为下载器换发青春。
我的是笔记本,还是比较省电吧!毕竟是PM的CPU,当年还是花了小一万买的呢!Strange 写了:不起x的话,什么机器都能跑。
下载机还是raspberry pi好,省电。
还有再买个板子,不是就违背了节省资源的目的了吗?并且资源也是不太够!还是用这个吧!
对了,为了早起有个闹钟,我还做了一个闹钟。用的是cron
先配置一下
代码: 全选
$ crontab -e
代码: 全选
# m h dom mon dow command
15 7 * * 0-5 mplayer mms://cdnmms.cnr.cn/cnr002 >/dev/null 2>&1
59 7 * * 0-5 killall mplayer
为什么要用 /dev/null 2>&1 这样的写法?这条命令的意思是将标准输出和错误输出全部重定向到/dev/null中,也就是将产生的所有信息丢弃.
配置完了之后要重启一下cron
代码: 全选
$ sudo /etc/init.d/cron restart
http://fanqiang.chinaunix.net/system/li ... 3306.shtml
上次由 lane8884 在 2013-05-10 9:31,总共编辑 1 次。