分类: 操作系统(原创/转载) |
sudo apt-get install linux-686
sudo apt-get install linux-k7
This FAQ applies to: 5.10
快速设置指南脚本
可以自动设置和安装中文支持<快速设置>脚本。
脚本当前版本: 0.0.3
说明:
改为通过输入文件名方式选择自动安装设置相关软件!
下载 a2ubuntu.tar.gz
sudo tar zxvfp a2ubuntu.tar.gz
cd a2ubuntu
sudo ./install_cn 软件名1 软件名2 ... 软件名n
各位新装系统或重装系统的可以试用!!
以下是此包中的安装说明(readme)内容:
#============================
这是新手设置指南
http://www.ubuntu.org.cn/support/documentation/zhfaq/first_install
请你根据你自已的喜好选择相应的安装步驟即可
用法: sudo ./install_cn 软件名1 软件名2 ... 软件名n
例如:
使用ubuntu.cn的源,安装中文语言支持,安装scim输入法
则运行 sudo ./install_cn 0 3 5
#============================
0 ) 修改/etc/apt/sources.list文件
执行apt-get update命令
1 ) 执行apt-get dist-upgrade命令
更新系统
2 ) 执行dpkg-reconfigure locales命令
设置本地local环境
3 ) 执行apt-get install language-pack-zh
执行apt-get install language-pack-zh-base
执行apt-get install language-support-zh
安装中文语言支持
4 ) 执行apt-get install ttf-vera-yuan
安装ttf-vera-yuan中文字体
5 ) 执行apt-get install scim
执行apt-get install scim-gtk2-immodule
执行apt-get install scim-modules-socket
执行apt-get install scim-modules-table
执行apt-get install scim-pinyin
执行apt-get install scim-tables-zh
执行apt-get install scim-input-pad
安装scim输入法
6 ) 设置LC_ALL和其它属性
7 ) 执行apt-get install sun-j2re1.5
安装JAVA环境
安装lumaqq
8 ) 执行apt-get install beep-media-player
执行apt-get install totem-xine
执行apt-get install w32codecs
执行apt-get install gstreamer0.8-plugins
安装更好的多媒体播放驱动
9 ) 执行apt-get install stardict
执行apt-get install stardict-common
执行apt-get install stardict-cdict-gb
执行apt-get install stardict-cedict-gb
执行apt-get install stardict-hanzim
执行apt-get install stardict-langdao-ce-gb
执行apt-get install stardict-langdao-ec-gb
执行apt-get install stardict-oxford-gb
执行apt-get install stardict-xdict-ce-gb
执行apt-get install stardict-xdict-ec-gb
安装英汉辞典
10 ) 执行apt-get install azureus
安装bt软件
意见反馈请到
http://forum.ubuntu.org.cn/viewtopic.php?t=1715
This FAQ applies to: 5.04
自动挂载 windows 分区
自动挂载 windows 分区
执行下列命令, 编辑挂载脚本 autowinfs.
sudo gedit /usr/sbin/autowinfs
复制粘贴以下引用的内容,
保存文件, 退出。
#!/bin/sh
#
#autowinfs
#
# Copyright (c) 2005
#License: GPLv2
#
#
#
#
mkdir
rmdir
grep
#
#
## fdisk
# 查找 NTFS 分区
fdisk
done
fdisk
done
mv
mount
exit
再运行命令:
sudo chmod +x /usr/sbin/autowinfs
sudo /usr/sbin/autowinfs
就可以了,Windows分区将挂载在 /windows/ 下
手工挂载 windows 分区
手工挂载 windows 分区
执行下列命令, 编辑挂载脚本 autowinfs.
sudo nano /usr/sbin/autowinfs
复制粘贴以下引用的内容,
输入Ctrl + O并回车,保存文件, Ctrl + X退出。
#!/bin/sh
#
#autowinfs auto mount windows disks
#
# Copyright (c) 2005 Jiahua Huang <jhuangjiahua@gmail.com>
# License: GPLv2
#
# /usr/bin/sutowinfs
# 用来自动挂载机器上的 Windows 分区
# 六
mkdir -p /windows/
rmdir /windows/* 1> /dev/null
# 可以把脚本内容保存为 /etc/rcS.d/S60autowinfs
# 加上可执行权限
# 这样就可以在开机时候自动挂载 Windows 分区
# 适用于需要增减硬盘,或硬盘分区的用户
#
# 本脚本用于 UTF-8 的 Locale 下
# 单独的 fdisk -l 不能列出分区的情况很少了 , 所以把 /dev/[hs]d[a-z] 去掉
## fdisk -l /dev/[hs]d[a-z] | grep -E 'FAT|NTFS' | cut -d' ' -f1 | cut -d/ -f3 | while read WDISKS
# 查找 NTFS 分区 , 新内核的 auto 好像有点问题 , 所以现在把 NTFS 和 VFST 分开来
fdisk -l /dev/[hs]d[a-z] | grep 'NTFS' | cut -d' ' -f1 | cut -d/ -f3 | while read WDISKS
再运行命令
sudo chmod +x /usr/sbin/autowinfs
sudo /usr/sbin/autowinfs
就可以了,Windows分区将挂载在 /windows/ 下
以后如果重启后,需要挂载分区,则使用
sudo /usr/sbin/autowinfs
命令挂载。
如何使用xp带的字体来进行中文美化?
如何使用xp带的字体来进行中文美化?
mkdir -p /usr/share/fonts/zh_CN/TrueType/
sudo cp /windows/hda1/windows/fonts/simsun.ttc /usr/share/fonts/zh_CN/TrueType/
sudo cp /windows/hda1/windows/fonts/SURSONG.TTF /usr/share/fonts/zh_CN/TrueType/
sudo cp /windows/hda1/windows/fonts/tahoma.ttf /usr/share/fonts/zh_CN/TrueType/
sudo chmod 644 /usr/share/fonts/zh_CN/TrueType/*
cd /usr/share/fonts/zh_CN/TrueType/
sudo mkfontscale
sudo mkfontdir
sudo fc-cache /usr/share/fonts/zh_CN/TrueType/
sudo gedit /etc/fonts/fonts.conf