快速入门手册(warty)
Copyright (C) 2004 Chua Wen Kiat.
翻译 guanyuchu oneleaf 来源 www.ubuntu.org.cn
本程序为免费软件. 您可以在免费软件基金会的GNU General Public License 条例的许可之下对此版本或后来版本随意修改和传播.
本程序的目的在于给大家带来方便, 但是我们不承担任何责任, 更不会承担买卖或者其他特殊目的责任. 具体详见 GNU General Public License .
概要
- 本手册为Ubuntu 4.10非官方初级手册, 不是出于Ubuntu和Canonical Ltd.
- 本手册的内容和帮助已经在Intel x86 Ubuntu 4.10 (Warty Warthog)上测试成功
- 如果您看到 "$", 的符号, 意思是你必须在终端状态下运行此命令. (应用程序 -> 系统工具 -> 终端)
- 如果要下载文件, 鼠标右键连接地址 -> 选择 "链接另存为..." -> 确保文件名和扩展名正确
- "sudo" 的意思是为超级用户执行. "sudo" 需要提供密码 "Password:". 请指定您的用户密码
- 如果厌烦反复键入 "sudo" 可以通过键入 "sudo -s -H" 和您的密码转换到超级用户
- 对于给作者反馈,建议,讨论和错误报告, 请在这里发帖子 这里
- 要有 "互相帮助" 的精神...
主题
开始
源
Ubuntu 更新
扩展应用程序
- 怎样在Mozilla Firefox上安装Flash插件?
- 怎样安装 PDF Reader (Adobe Acrobat Reader)?
- 怎样安装 PDF Reader (Adobe Acrobat Reader) Plug-in for Mozilla Firefox?
- 怎样安装 Newsreader (Pan)?
- 怎样安装 RSS and Atom feed aggregator (Sage) extension for Mozilla Firefox?
- 怎样安装 下载 Manager (Downloader for X)?
- 怎样安装 FTP Client (gFTP)?
- 怎样安装 P2P BitTorrent Client (Azureus)?
- 怎样安装 P2P Gnutella Client (LimeWire)?
- 怎样安装 P2P eMule Client (aMule)?
- 怎样安装 Messenger (Skype)?
- 怎样安装 WinPopup (LinPopUp)?
- 怎样安装 RAR archiver (rar)?
- 怎样安装 extra Fonts?
- 怎样安装 影音 Codecs?
- 怎样安装 DVD playback capability?
- 怎样安装 影音 Player (XMMS)?
- 怎样安装 影音 Player (RealPlayer)?
- 怎样安装 影音 Player (xine-ui)?
- 怎样安装 影音 Plug-in for Mozilla Firefox (Pentium 4)?
- 怎样安装 影音 Plug-in for Mozilla Firefox (Non-Pentium 4)?
- 怎样安装 Audio Editor (Audacity)?
- 怎样安装 J2SE Runtime Environment (JRE)?
- 怎样安装 J2SE Runtime Environment (JRE) Plug-in for Mozilla Firefox?
- 怎样安装 Web Authoring System (Nvu)?
- 怎样安装 Project Management Application (Planner)?
- 怎样安装 Desktop Publishing Application (Scribus)?
- 怎样安装 分区 Magic Clone (QTParted)?
- 怎样安装 Firewall (Firestarter)?
硬件
- 怎样列出分区表?
- 怎样列出磁盘的使用量?
- 怎样列出 mount 设备?
- 怎样建立 /dev/dvd 连接?
- 怎样手动 mount/unmount CD/DVD-ROM 并且显示所以隐藏和相关文件?
- 怎样手动强制 unmount CD/DVD-ROM?
- 怎样安装 NVIDIA 显卡驱动?
- 怎样停止 NVIDIA Logo 在GNOME启动界面上出现?
- 怎样提高 NVIDIA 图形性能?
- 怎样安装 PalmOS 设备?
CD/DVD 刻录
- 怎样往 CD/DVD 里写文件?
- 怎样复制整张 CD/DVD?
- 怎样从 CD/DVD 里建立映象文件?
- 怎样从文件夹里建立映象文件?
- 怎样往 CD/DVD 里刻录映象文件?
- 怎样在不刻录的前提下, mount/unmount 映象文件?
- 怎样清空 CD/DVD-RW?
- 怎样设置或改变 CD/DVD 刻录机的刻录速度?
- 怎样为CD/DVD刻录机打开burnproof功能?
- 怎样为CD/DVD刻录机打开超刻功能?
- 怎样生成MD5 checksum文件?
- 怎样检验MD5 checksum文件?
网络
- 怎样设置网络连接?
- 怎样改变本机名字?
- 怎样改变本机描述?
- 怎样改变本机的域名或工作组?
- 怎样在不用 mount 的前提下访问网络文件夹?
- 怎样手动 mount/unmount 网络文件夹?
- 怎样手动 mount/unmount 网络文件夹, 并允许所有用户读写?
- 怎然在启动时 mount 网络文件夹?
- 怎然在启动时 mount 网络文件夹, 并允许所有用户读写?
安全
- 关于我的Ubuntu的安全问题, 我需要知道一些什么基本问题?
- 怎样禁止所有GRUB菜单的交互式编辑控制?
- 怎样禁止在终端下的历史列表?
- 怎样禁止在终端下使用Ctrl+Alt+Del重新启动计算机?
- 怎样在终端下删除或者覆盖文件时出现提示?
援救模式
- 怎样免登陆但可以获得根用户访问权限?
- 怎样更改核启动内容来获得根用户访问权限?
- 怎样使用Ubuntu安装CD获得根用户访问权限?
- 如果忘记密码, 怎样改变根用户或主要用户的密码?
- 如果忘记密码, 怎样改变GRUB菜单的密码?
- 安装Windows之后, 怎样恢复GRUB菜单?
- 怎样在GRUB菜单中加入Windows?
- 怎样在Windows里读取Linux分区(ext2, ext3)?
Windows
- 怎样手动 mount/unmount Windows分区(NTFS), 并允许所有用户读取?
- 怎样手动 mount/unmount Windows分区(FAT), 并允许所有用户读写?
- 怎样在启动时 mount Windows分区(NTFS), 并允许所有用户读取?
- 怎样在启动时 mount Windows分区(FAT), 并允许所有用户读写?
用户管理
- 怎样设置, 改变, 启动根用户密码?
- 怎样停止根用户帐户?
- 怎样允许更用户登陆GNOME?
- 怎样在终端模式里改变成根用户?
- 怎样加入, 编辑, 删除系统用户?
- 怎样加入, 编辑, 删除系统组?
- 怎样自动登陆GNOME(不安全)?
- 怎样许可更多的超级用户执行者?
- 怎样明确停止 "sudo" 会话?
- 怎样在不需要提供密码的前提下(不安全)使用 "sudo" ?
- 怎样浏览或编辑用户程序菜单?
- 怎样浏览或编辑所有用户程序菜单?
- 怎样改变文件或者文件夹的许可权?
- 怎样改变文件或文件夹的拥有权?
- 怎样改变文件或者文件夹组的拥有权?
Samba 服务
- 怎样为文件共享服务安装Samba服务?
- 怎样加入, 编辑, 删除网络用户?
- 怎样共享主文件夹只允许读 (登录验证=Yes)?
- 怎样共享主文件夹允许读写 (登录验证=Yes)?
- 怎样共享组文件夹只允许读 (登录验证=Yes)?
- 怎样共享组文件夹允许读写 (登录验证=Yes)?
- 怎样共享公共文件夹只允许读 (登录验证=Yes)?
- 怎样共享公共文件夹允许读写 (登录验证=Yes)?
- 怎样共享公共文件夹只允许读 (登录验证=No)?
- 怎样共享公共文件夹允许读写 (登录验证=No)?
SSH 服务
- 怎样为远控管理服务安装SSH服务器?
- 怎样安装SSH到远程Ubuntu机器?
- 怎样从远程Ubuntu机器复制文件或文件夹到本地机器(scp)?
- 怎样从本地机器复制文件或文件夹到远程机器(scp)?
- 怎样从远程机器复制文件或文件夹到本地机器(rsync)?
- 怎样从本地机器复制文件或文件夹到远程机器(rsync)?
- 怎样通过Windows机器连接到安装SSH的远程Ubuntu机器?
- 怎样通过Windows机器复制文件或文件夹从或者到远程Ubuntu机器?
DHCP 服务
数据库服务
Apache HTTP 服务
技巧和窍门
- 怎样简单用atp-get(Synaptic)?
- 怎样使用Mozilla Firefox更快的读取网站(停止IPV6)?
- 怎样停止使用嘟嘟声当在Mozilla Firefox里点击连接时?
- 怎样在Nautilus里在同一窗口里打开文件夹?
- 怎样在Nautilus显示所有隐藏文件?
- 怎样显示桌面图标(计算机, 主目录, 回收站)?
- 怎样在登陆GNOME时打开Num Lock?
- 怎样在GNOME内存里保存剪贴板的内容?
- 怎样在登陆GNOME时运行程序?
- 怎样改变默认的文件打开程序?
- 怎样重新启动GNOME而不需要重新启动电脑?
- 怎样在GNOME里转换到终端?
- 怎样在终端模式里停止嘟嘟声?
- 怎样免重新启动但 remount /etc/fstab?
- 怎样在启动时显示GRUB菜单?
- 怎样在启动GRUB菜单里改变等待时间?
- 怎样在启动GRUB菜单里改变默认操作系统?
- 怎样临时停止启动服务?
- 怎样永久停止或使用启动服务?
- 怎样从Warty Warthog升级到 Hoary Hedgehog(Beta)?
帮助
- 设置网卡.. (会花很多时间读取)
- 与ntp.ubuntulinux.org同步时间.. (会花很多时间读取)
- modprobe: FATAL: 错误代码...
- acpi_power_off 调用
- 对不起,没有发现混音元素或设备
- 怎样停止系统的时间被设定到 UTC (GMT)?
- 怎样强制清空垃圾箱??
鸣谢
开始
- http://distrowatch.com/ubuntu
- 结果 dpkg -l: Here
源
- 阅读 主题
-
$ sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup
$ sudo gedit /etc/apt/sources.list - 查找这个片段
...
## Uncomment the following two lines to fetch updated software from the network
# deb http://archive.ubuntu.com/ubuntu warty main restricted
# deb-src http://archive.ubuntu.com/ubuntu warty main restricted
## Uncomment the following two lines to add software from the 'universe'
## repository.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
# deb http://archive.ubuntu.com/ubuntu warty universe
# deb-src http://archive.ubuntu.com/ubuntu warty universe
# deb http://security.ubuntu.com/ubuntu warty-security main restricted
# deb-src http://security.ubuntu.com/ubuntu warty-security main restricted
... - 用下面的行替换
## Uncomment the following two lines to fetch updated software from the network
deb http://archive.ubuntu.com/ubuntu/ warty main restricted
deb-src http://archive.ubuntu.com/ubuntu/ warty main restricted
## Uncomment the following two lines to add software from the 'universe'
## repository.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://archive.ubuntu.com/ubuntu/ warty universe
deb-src http://archive.ubuntu.com/ubuntu/ warty universe
deb http://security.ubuntu.com/ubuntu/ warty-security main restricted
deb-src http://security.ubuntu.com/ubuntu/ warty-security main restricted
deb http://archive.ubuntu.com/ubuntu/ warty multiverse
deb-src http://archive.ubuntu.com/ubuntu/ warty multiverse
deb ftp://ftp.nerim.net/debian-marillat/ stable main
deb ftp://ftp.nerim.net/debian-marillat/ unstable main
deb ftp://ftp.nerim.net/debian-marillat/ testing main
deb http://ubuntu-bp.sourceforge.net/ubuntu/ warty-backports main universe - 保存编辑的文件 (例子)
-
$ sudo apt-get update
- 阅读 主题
- 备份已经下载的源缓存
$ mkdir -p $HOME/backup/var/lib/
$ sudo cp -R /var/lib/apt/ $HOME/backup/var/lib/
$ mkdir -p $HOME/backup/var/cache/
$ sudo cp -R /var/cache/apt/ $HOME/backup/var/cache/
$ mkdir -p $HOME/backup/etc/apt
$ sudo cp -R /etc/apt/ $HOME/backup/etc/
$ sudo chown -R $用户$HOME/backup/ - 还原下载的源缓存
$ sudo cp -fR $HOME/backup/var/* /var/
$ sudo cp -fR $HOME/backup/etc/apt/* /etc/apt/
Ubuntu 更新
- 阅读 主题
- 阅读 怎样添加额外的源?
-
例子. 每天半夜自动执行升级
* * * * * 含义 分 小时 天 月 年 -
$ sudo gedit /root/.autoupdates
- 插入下面的行到一个新文件
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin
/usr/bin/apt-get update
/usr/bin/apt-get -y upgrade - 保存编辑的文件 (sample)
-
$ sudo chmod 500 /root/.autoupdates
$ export EDITOR=gedit && sudo crontab -e - 在文件结尾增加下面的行
00 00 * * * /root/.autoupdates
- 保存编辑的文件
扩展应用程序
Q: 怎样在Mozilla Firefox上安装Flash插件?
Q: 怎样安装 PDF Reader (Adobe Acrobat Reader)?
- 阅读 主题
- 阅读 怎样添加额外的源?
-
$ sudo apt-get install acroread
- 阅读 怎样重新启动GNOME而不需要重新启动电脑?
- 应用程序 -> Graphics -> Acrobat Reader
Q: 怎样安装 PDF Reader (Adobe Acrobat Reader) Plug-in for Mozilla Firefox?
- 阅读 主题
- 阅读 怎样添加额外的源?
-
$ sudo apt-get install pan
- 阅读 怎样重新启动GNOME而不需要重新启动电脑?
- 应用程序 -> Internet -> Pan Newsreader
Q: 怎样安装 RSS and Atom feed aggregator (Sage) extension for Mozilla Firefox?
Q: 怎样安装 下载 Manager (Downloader for X)?
- 阅读 主题
- 阅读 怎样添加额外的源?
-
$ sudo apt-get install d4x
- 阅读 怎样重新启动GNOME而不需要重新启动电脑?
- 应用程序 -> Internet -> Downloader for X
- 阅读 主题
- 阅读 怎样添加额外的源?
-
$ sudo apt-get install gftp
- 阅读 怎样重新启动GNOME而不需要重新启动电脑?
- 应用程序 -> Internet -> gFTP Client
Q: 怎样安装 P2P BitTorrent Client (Azureus)?
- 阅读 主题
- 阅读 怎样安装 J2SE Runtime Environment (JRE)?
- 下载 Azureus_2.2.0.2_linux.GTK.tar.bz2: Here or Here
-
$ cd browse_to_your_download_folder
$ sudo tar jxvf Azureus_2.2.0.2_linux.GTK.tar.bz2 -C /opt/
$ sudo chown -R root:root /opt/azureus/
$ nautilus applications:///Internet - 文件浏览器: Internet
文件菜单 -> 创建起动器
Basic Tab ->
Name: Azureus
Command: /opt/azureus/azureus
Icon: /opt/azureus/Azureus.png - 阅读 怎样重新启动GNOME而不需要重新启动电脑?
- 应用程序 -> Internet -> Azureus
Q: 怎样安装 P2P Gnutella Client (LimeWire)?
- 阅读 主题
- 阅读 怎样安装 J2SE Runtime Environment (JRE)?
- 下载 LimeWireLinux.bin: Here or Here
-
$ cd browse_to_your_download_folder
$ sudo sh LimeWireLinux.bin - LimeWire_Installer
Choose Install Folder Tab ->
Where Would You Like to Install?
/opt/LimeWire -
$ nautilus applications:///Internet
- 文件浏览器: Internet
文件菜单 -> 创建起动器
Basic Tab ->
Name: LimeWire
Command: /opt/LimeWire/LimeWire - 阅读 怎样重新启动GNOME而不需要重新启动电脑?
- 应用程序 -> Internet -> LimeWire
Q: 怎样安装 P2P eMule Client (aMule)?
- 阅读 主题
- 阅读 怎样添加额外的源?
-
$ sudo apt-get install amule
- 阅读 怎样重新启动GNOME而不需要重新启动电脑?
- 应用程序 -> Internet -> aMule
- 阅读 主题
- 下载 skype_staticQT-1.0.0.1.tar.bz2: Here or Here
-
$ cd browse_to_your_download_folder
$ sudo tar jxvf skype_staticQT-1.0.0.1.tar.bz2 -C /opt/
$ sudo chown -R root:root /opt/skype_staticQT-1.0.0.1/
$ nautilus applications:///Internet - 文件浏览器: Internet
文件菜单 -> 创建起动器
Basic Tab ->
Name: Skype
Command: /opt/skype_staticQT-1.0.0.1/skype
Icon: /opt/skype_staticQT-1.0.0.1/icons/skype_48_32.png - 阅读 怎样重新启动GNOME而不需要重新启动电脑?
- 应用程序 -> Internet -> Skype
- 阅读 主题
- 阅读 怎样添加额外的源?
-
$ sudo apt-get install libgtk1.2
- 阅读 怎样为文件共享服务安装Samba服务?
- 下载 linpopup_1.2.0-7_i386.deb: Here or Here
-
$ cd browse_to_your_download_folder
$ sudo dpkg -i linpopup_1.2.0-7_i386.deb
$ nautilus applications:///Accessories - 文件浏览器: Accessories
文件菜单 -> 创建起动器
Basic Tab ->
Name: LinPopUp
Command: linpopup
Icon: /usr/share/pixmaps/linpopup.xpm - 阅读 怎样重新启动GNOME而不需要重新启动电脑?
- 应用程序 -> 附件 -> LinPopUp
- 阅读 主题
- 阅读 怎样添加额外的源?
-
$ sudo apt-get install xfonts-intl-arabic
$ sudo apt-get install xfonts-intl-asian
$ sudo apt-get install xfonts-intl-chinese
$ sudo apt-get install xfonts-intl-chinese-big
$ sudo apt-get install xfonts-intl-european
$ sudo apt-get install xfonts-intl-japanese
$ sudo apt-get install xfonts-intl-japanese-big
$ sudo apt-get install xfonts-intl-phonetic
$ sudo apt-get install msttcorefonts
Q: 怎样安装 DVD playback capability?
- 阅读 主题
- 阅读 怎样添加额外的源?
- 阅读 怎样安装 影音 Codecs?
-
$ sudo apt-get install xmms
- 阅读 怎样重新启动GNOME而不需要重新启动电脑?
- 应用程序 -> 影音 -> XMMS
Q: 怎样安装 影音 Player (RealPlayer)?
- 阅读 主题
- 下载 realplay-10.0.2.608-linux-2.2-libc6-gcc32-i586.bin: Here or Here
-
$ cd browse_to_your_download_folder
$ chmod +x realplay-10.0.2.608-linux-2.2-libc6-gcc32-i586.bin
$ sudo ./realplay-10.0.2.608-linux-2.2-libc6-gcc32-i586.bin
Enter the complete path to the directory where you want
RealPlayer to be installed. You must specify the full
pathname of the directory and have write privileges to
the chosen directory.
Directory: [/home/chua/RealPlayer]: /opt/RealPlayer
You have selected the following RealPlayer configuration:
Destination: /opt/RealPlayer
Enter [F]inish to begin copying files, or [P]revious to go
back to the previous prompts: [F]: F
Copying RealPlayer files...configure system-wide symbolic links? [Y/n]: Y
enter the prefix for symbolic links [/usr]: /usr - 阅读 怎样重新启动GNOME而不需要重新启动电脑?
- 应用程序 -> 影音 -> RealPlayer 10
- 阅读 主题
- 阅读 怎样添加额外的源?
- 阅读 怎样安装 影音 Codecs?
- 阅读 怎样安装 DVD playback capability?
- 阅读 怎样建立 /dev/dvd 连接?
-
$ sudo apt-get install xine-ui
- 阅读 怎样重新启动GNOME而不需要重新启动电脑?
- 应用程序 -> 影音 -> xine
Q: 怎样安装 影音 Plug-in for Mozilla Firefox (Pentium 4)?
- 阅读 主题
- 阅读 怎样添加额外的源?
- 阅读 怎样安装 影音 Codecs?
-
$ sudo apt-get install mozilla-mplayer
$ sudo apt-get install mplayer-fonts
Q: 怎样安装 影音 Plug-in for Mozilla Firefox (Non-Pentium 4)?
- 阅读 主题
- 阅读 怎样添加额外的源?
- 阅读 怎样安装 影音 Codecs?
-
$ sudo apt-get install totem-xine
$ sudo apt-get install mozplugger
$ sudo cp /etc/mozpluggerrc /etc/mozpluggerrc_backup
$ sudo gedit /etc/mozpluggerrc - 查找这个片段
...
application/x-mplayer2: wmv,asf,mov: Windows Media
video/x-ms-asf: asf,asx,wma,wax,wmv,wvx: Windows Media
video/x-ms-wmv: wmv: Windows Media
stream noisy ignore_errors: mplayer -really-quiet -nojoystick -nofs -wid $window -vo xv,x11 -ao esd,alsa9,oss,arts,null -zoom -osdlevel 0 "$file" </dev/null
... - 增加下面的行
stream noisy ignore_errors: totem "$file" </dev/null
- 保存编辑的文件 (sample)
-
$ rm ~/.mozilla/pluginreg.dat
Q: 怎样安装 Audio Editor (Audacity)?
- 阅读 主题
- 阅读 怎样添加额外的源?
-
$ sudo apt-get install audacity
$ nautilus applications:///Multimedia - 文件浏览器: Multimedia
文件菜单 -> 创建起动器
Basic Tab ->
Name: Audacity
Command: audacity
Icon: /usr/share/audacity/audacity.xpm - 阅读 怎样重新启动GNOME而不需要重新启动电脑?
- 应用程序 -> 影音 -> Audacity
Q: 怎样安装 J2SE Runtime Environment (JRE)?
- 阅读 主题
- 下载 jre-1_5_0_01-linux-i586.bin: Here (下载 JRE)
-
$ cd browse_to_your_download_folder
$ sh jre-1_5_0_01-linux-i586.bin
$ sudo mkdir /usr/java
$ sudo mv jre1.5.0_01/ /usr/java/
$ sudo chown -R root:root /usr/java/jre1.5.0_01/
$ sudo ln -s /usr/java/jre1.5.0_01/bin/java /usr/bin/java
$ sudo ln -s /usr/java/jre1.5.0_01/bin/java_vm /usr/bin/java_vm
$ sudo cp /etc/bash.bashrc /etc/bash.bashrc_backup
$ sudo gedit /etc/bash.bashrc - 在文件结尾添加下面行
JAVA_HOME=/usr/java/jre1.5.0_01
export JAVA_HOME
PATH=$PATH:$JAVA_HOME/bin
export PATH - 保存编辑的文件 (sample)
-
$ java -version
Q: 怎样安装 J2SE Runtime Environment (JRE) Plug-in for Mozilla Firefox?
- 阅读 主题
- 阅读 怎样安装 J2SE Runtime Environment (JRE)?
-
$ sudo ln -s /usr/java/jre1.5.0_01/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla/plugins/
$ sudo ln -s /usr/java/jre1.5.0_01/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/mozilla-firefox/plugins/
Q: 怎样安装 Web Authoring System (Nvu)?
- 阅读 主题
- 阅读 怎样添加额外的源?
-
$ sudo apt-get install libstdc++2.10-glibc2.2
- 下载 nvu-0.80-pc-linux2.4.23-gnu.tar.bz2: Here or Here
-
$ cd browse_to_your_download_folder
$ sudo tar jxvf nvu-0.80-pc-linux2.4.23-gnu.tar.bz2 -C /opt/
$ sudo chown -R root:root /opt/nvu-0.80/
$ sudo /opt/nvu-0.80/nvu
$ nautilus applications:///Office - 文件浏览器: Office
文件菜单 -> 创建起动器
Basic Tab ->
Name: Nvu
Command: /opt/nvu-0.80/nvu
Icon: /opt/nvu-0.80/icons/mozicon50.xpm - 阅读 怎样重新启动GNOME而不需要重新启动电脑?
- 应用程序 -> 办公 -> Nvu
Q: 怎样安装 Project Management Application (Planner)?
- 阅读 主题
- 阅读 怎样添加额外的源?
-
$ sudo apt-get install planner
- 阅读 怎样重新启动GNOME而不需要重新启动电脑?
- 应用程序 -> 办公 -> Project Management
Q: 怎样安装 Desktop Publishing Application (Scribus)?
- 阅读 主题
- 阅读 怎样添加额外的源?
-
$ sudo apt-get install scribus
- 阅读 怎样重新启动GNOME而不需要重新启动电脑?
- 应用程序 -> 办公 -> Scribus
Q: 怎样安装 分区 Magic Clone (QTParted)?
- 阅读 主题
- 阅读 怎样添加额外的源?
-
$ sudo apt-get install qtparted
$ nautilus applications:///System - 文件浏览器: System Tools
Remove the existing QTParted Icon
文件菜单 -> 创建起动器
Basic Tab ->
Name: QTParted
Command: gksudo qtparted
Icon: /usr/share/pixmaps/qtparted.xpm - 阅读 怎样重新启动GNOME而不需要重新启动电脑?
- 应用程序 -> 系统工具 -> QTParted
Q: 怎样安装 Firewall (Firestarter)?
- 阅读 主题
- 阅读 怎样添加额外的源?
-
$ sudo apt-get install firestarter
$ nautilus applications:///Internet - 文件浏览器: Internet
Remove the existing Firestarter Firewall Tool Icon
-
$ nautilus applications:///System
- 文件浏览器: System Tools
Remove the existing Firestarter Firewall Tool Icon
文件菜单 -> 创建起动器
Basic Tab ->
Name: Firestarter Firewall Tool
Command: gksudo /usr/sbin/firestarter
Icon: /usr/share/pixmaps/firestarter.png - 阅读 怎样重新启动GNOME而不需要重新启动电脑?
- 应用程序 -> 系统工具 -> Firestarter Firewall Tool
硬件
- 阅读 主题
-
$ sudo fdisk -l
- 阅读 主题
-
$ df -T -h
- 阅读 主题
-
$ mount
- 阅读 主题
-
$ sudo ln -sf /dev/cdrom /dev/dvd
$ sudo cp /etc/udev/udev.rules /etc/udev/udev.rules_backup
$ sudo gedit /etc/udev/udev.rules - 找到这一行
...
BUS="ide", KERNEL="hd[a-z]", PROGRAM="/etc/udev/cdsymlinks.sh %k", SYMLINK="%c{1} %c{2}"
... - 用下面的行替换
BUS="ide", KERNEL="hd[a-z]", SYMLINK="cdrom dvd"
- 保存编辑的文件 (sample)
Q: 怎样手动 mount/unmount CD/DVD-ROM 并且显示所以隐藏和相关文件?
- 阅读 主题
-
例子. 假设 /media/cdrom0/ 是 CD/DVD-ROM 的位置
- Mount CD/DVD-ROM
$ sudo mount /media/cdrom0/ -o unhide
- Unmount CD/DVD-ROM
$ sudo umount /media/cdrom0/
- 阅读 主题
-
例子. 假设 /media/cdrom0/ 是 CD/DVD-ROM 的位置
-
$ sudo umount /media/cdrom0/ -l
- 阅读 主题
- 阅读 怎样添加额外的源?
-
$ sudo apt-get install nvidia-glx
$ sudo apt-get install nvidia-settings
$ sudo nvidia-glx-config enable
$ nautilus applications:///System - 文件浏览器: System Tools
文件菜单 -> 创建起动器
Basic Tab ->
Name: NVIDIA Settings
Command: nvidia-settings - 阅读 怎样重新启动GNOME而不需要重新启动电脑?
- 应用程序 -> 系统工具 -> NVIDIA Settings
- 阅读 主题
- 阅读 怎样安装 NVIDIA 显卡驱动?
-
$ sudo cp /etc/X11/XF86Config-4 /etc/X11/XF86Config-4_backup
$ sudo gedit /etc/X11/XF86Config-4 - 查找这个片段
...
Section "Device"
Identifier "NVIDIA Corporation NV34M [GeForce FX Go 5200]"
Driver "nvidia"
BusID "PCI:1:0:0"
... - 增加下面的行
Option "NoLogo"
- 保存编辑的文件 (sample)
- 阅读 怎样重新启动GNOME而不需要重新启动电脑?
- 阅读 主题
- 阅读 怎样安装 NVIDIA 显卡驱动?
-
$ sudo cp /etc/X11/XF86Config-4 /etc/X11/XF86Config-4_backup
$ sudo gedit /etc/X11/XF86Config-4 - 查找这个片段
...
Section "Device"
Identifier "NVIDIA Corporation NV34M [GeForce FX Go 5200]"
Driver "nvidia"
BusID "PCI:1:0:0"
... - 在下面增加下面的行
Option "RenderAccel" "true"
Option "NvAGP" "1" - 保存编辑的文件 (sample)
- 阅读 怎样重新启动GNOME而不需要重新启动电脑?
- 阅读 主题
-
$ sudo ln -sf /dev/ttyUSB1 /dev/pilot
- 系统 -> 首选项 -> PalmOS 设备
- Follow the instructions on screen
CD/DVD 刻录
- 阅读 主题
-
$ nautilus burn:///
- 文件浏览器: CD/DVD Creator
Drag files into window
文件菜单 -> Write to Disc... -> Write
- 阅读 主题
- 阅读 怎样从 CD/DVD 里建立映象文件?
- 阅读 怎样往 CD/DVD 里刻录映象文件?
- 阅读 主题
-
例子. 假设 /dev/cdrom 是 CD/DVD-ROM 的位置
-
$ dd if=/dev/cdrom of=file.iso bs=1024
- 阅读 主题
-
例子. 假设 Folder/ 是文件夹的位置
-
$ mkisofs -RJ -o file.iso Folder/
- 阅读 主题
-
Right click on 映象文件(ISO) -> Write to Disc... -> Write
Q: 怎样在不刻录的前提下, mount/unmount 映象文件?
- 阅读 主题
- Mount 映象文件(ISO)
$ sudo mkdir /media/iso
$ sudo modprobe loop
$ sudo mount file.iso /media/iso/ -t iso9660 -o loop - Unmount 映象文件(ISO)
$ sudo umount /media/iso/
- 阅读 主题
-
例子. 假设 /dev/cdrom 是 CD/DVD-ROM 的位置
-
$ sudo umount /dev/cdrom
$ cdrecord dev=/dev/cdrom blank=all
- 阅读 主题
- 应用程序 -> 系统工具 -> 配置编辑器
- GConf editor -
/ -> apps -> nautilus-cd-burner -> default_speed (set/change the burn speed for CD/DVD Burner)
- 阅读 主题
- 应用程序 -> 系统工具 -> 配置编辑器
- GConf editor -
/ -> apps -> nautilus-cd-burner -> burnproof (Checked)
- 阅读 主题
- 应用程序 -> 系统工具 -> 配置编辑器
- GConf editor -
/ -> apps -> nautilus-cd-burner -> overburn (Checked)
- 阅读 主题
-
$ md5sum file.iso > file.iso.md5
- 阅读 主题
-
例子. file.iso 和 file.iso.md5 必需在同样的目录
-
$ md5sum -c file.iso.md5
网络
- 阅读 主题
- 系统 -> 系统管理 -> 联网
- 网络设置
Connections Tab -> Add/Properties/Delete/Activate/Deactivate network connections
DNS Tab -> DNS Servers -> Add/Delete DNS servers
- 阅读 主题
- 系统 -> 系统管理 -> 联网
- 网络设置
General Tab -> Host Settings -> Hostname: Fill in the system name
- 阅读 主题
- 阅读 怎样为文件共享服务安装Samba服务?
- 系统 -> 系统管理 -> 联网
- 网络设置
General Tab -> Windows Networking ->
Enable Windows networking (Checked)
Descriptions: Fill in the 系统 descriptions
- 阅读 主题
- 阅读 怎样为文件共享服务安装Samba服务?
- 系统 -> 系统管理 -> 联网
- 网络设置
General Tab -> Windows Networking ->
Enable Windows networking (Checked)
Domain / Workgroup: Fill in the System Domain/Workgroup
- 阅读 主题
-
例子. 网络电脑的 IP: 192.168.0.1
共享的文件夹: linux - 应用程序 -> 运行应用程序...
- 运行应用程序
smb://192.168.0.1/linux
- 阅读 主题
- 阅读 怎样为文件共享服务安装Samba服务?
-
例子. 网络电脑的 IP: 192.168.0.1
网络电脑的帐号: myusername
网络电脑的口令: mypassword
共享目录的名称: linux
本地 mount 目录: /media/sharename - Mount 网络文件夹
$ sudo mkdir /media/sharename
$ sudo mount //192.168.0.1/linux /media/sharename/ -t smbfs -o username=myusername,password=mypassword - Unmount 网络文件夹
$ sudo umount /media/sharename/
Q: 怎样 mount/unmount 网络文件夹, 并允许所有用户读/写?
- 阅读 主题
- 阅读 怎样为文件共享服务安装Samba服务?
-
例子. 网络电脑的 IP: 192.168.0.1
网络电脑的 Username: myusername
网络电脑的 Password: mypassword
共享目录的 name: linux
本地 mount 目录: /media/sharename - Mount 网络文件夹
$ sudo mkdir /media/sharename
$ sudo mount //192.168.0.1/linux /media/sharename/ -o username=myusername,password=mypassword,dmask=777,fmask=777 - Unmount 网络文件夹
$ sudo umount /media/sharename/
- 阅读 主题
- 阅读 怎样为文件共享服务安装Samba服务?
-
例子. 网络电脑的 IP: 192.168.0.1
网络电脑的 Username: myusername
网络电脑的 Password: mypassword
共享目录的 name: linux
本地 mount 目录: /media/sharename -
$ sudo mkdir /media/sharename
$ sudo gedit /root/.smbcredentials - 在新文件插入下面的行
username=myusername
password=mypassword - 保存编辑的文件 (sample)
-
$ sudo cp /etc/fstab /etc/fstab_backup
$ sudo gedit /etc/fstab - 在文件结尾增加下面行
//192.168.0.1/linux /media/sharename smbfs credentials=/root/.smbcredentials 0 0
- 保存编辑的文件 (sample)
- 阅读 怎样 remount /etc/fstab 不用重启?
Q: 怎样 mount 网络文件夹 在启动时, 并允许所有用户读/写?
- 阅读 主题
- 阅读 怎样为文件共享服务安装Samba服务?
-
例子. 网络电脑的 IP: 192.168.0.1
网络电脑的 Username: myusername
网络电脑的 Password: mypassword
共享目录的 name: linux
本地 mount 目录: /media/sharename -
$ sudo mkdir /media/sharename
$ sudo gedit /root/.smbcredentials - 在新文件插入下面的行
username=myusername
password=mypassword - 保存编辑的文件 (sample)
-
$ sudo cp /etc/fstab /etc/fstab_backup
$ sudo gedit /etc/fstab - 在文件结尾增加下面行
//192.168.0.1/linux /media/sharename smbfs credentials=/root/.smbcredentials,dmask=777,fmask=777 0 0
- 保存编辑的文件 (sample)
- 阅读 怎样 remount /etc/fstab 不用重启?
安全
Q: 关于我的Ubuntu的安全问题, 我需要知道一些什么基本问题?
- 阅读 主题
- 确保在 BIOS 设置中,硬盘是第一个启动
- 阻止入侵者使用安装光盘来启动并获得超级用户访问权
- 阻止入侵者使用 Linux Live CD (例子. KNOPPIX)。这个允许浏览/删除/共享整个硬盘
- 阻止入侵者来源于其他安装的操作系统
- 确保 BIOS 有口令保护
- 阻止入侵者改变 BIOS 启动顺序
- 确保系统放在一个安全的地方
- 阻止入侵者移动电脑的硬盘, 这个允许浏览/删除/共享整个硬盘
- 阻止入侵者移动电脑的主板电池,这将导致清除 BIOS 密码
- 确保系统的口令不容易被猜测
- 阻止入侵者使用暴力手段破解你的密码 (例子. John the Ripper)
- 建立的口令至少8个字符长
- 建立的口令混合 字母/数字, 和 大写/小写
- 确保 GRUB 菜单的交互编辑被禁止
- 阻止入侵者通过修改启动内核参数来允许使用超级用户访问
- 阅读 怎样禁止所有GRUB菜单的交互式编辑控制?
- 确保禁止在终端下的历史列表?
- 阻止入侵者查看以前的使用命令
- 阅读 怎样禁止在终端下的历史列表?
- 确保 Ctrl+Alt+Del 在终端被禁止
- 阻止入侵者在终端下没有许可的重启计算机
- 阅读 怎样禁止在终端下使用Ctrl+Alt+Del重新启动计算机?
- 确保在终端下删除或者覆盖文件时出现提示
- 入侵者删除或者覆盖文件
- 阅读 怎样在终端下删除或者覆盖文件时出现提示?
- 在日常的使用中,作为一个普通用户登录
- 阻止意外的删除或覆盖系统文件
- 阅读 怎样加入, 编辑, 删除系统用户?
- 禁止 root 用户帐号, 使用 "sudo" 代替
- 减少使用 root 特权的操作时间和次数, 和减少作为 root 执行命令的风险
- "sudo" 提供了一个友好的审核记录 (/var/log/auth.log)
- 阅读 怎样禁止 root 用户帐号?
- 安装防火墙
- 防火墙不是安全的担保,但它是网路攻击的第一道防护
- 阅读 怎样安装 Firewall (Firestarter)?
- 阅读 主题
-
$ grub
grub> md5crypt
Password: ****** (ubuntu)
Encrypted: $1$ZWnke0$1fzDBVjUcT1Mpdd4u/T961 (encrypted password)
grub> quit
$ sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup
$ sudo gedit /boot/grub/menu.lst - 查找这个片段
...
## password ['--md5'] passwd
# If used in the first section of a menu file,禁止 all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# 例子. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret
... - 增加下面的行
password --md5 $1$ZWnke0$1fzDBVjUcT1Mpdd4u/T961 (encrypted password above)
- 保存编辑的文件 (sample)
- 阅读 主题
-
$ rm $HOME/.bash_history
$ touch $HOME/.bash_history
$ chmod 000 $HOME/.bash_history
Q: 怎样禁止在终端下使用Ctrl+Alt+Del重新启动计算机?
- 阅读 主题
-
$ sudo cp /etc/inittab /etc/inittab_backup
$ sudo gedit /etc/inittab - 找到这一行
...
ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
... - 用下面的行替换
#ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
- 保存编辑的文件 (sample)
-
$ sudo telinit q
- 阅读 主题
-
$ sudo cp /etc/bash.bashrc /etc/bash.bashrc_backup
$ sudo gedit /etc/bash.bashrc - 在文件结尾添加下面行
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i' - 保存编辑的文件 (sample)
援救模式
- 阅读 主题
- 两种方法
- 阅读 主题
- 启动你的计算机
- 按 'Esc' 进入 GRUB 菜单
- 如果 GRUB 设置了口令, 按 'p' 输入 GRUB 口令
- 选择
Ubuntu, kernel 2.6.8.1-4-386
- 按 'e' 在启动前编辑命令
- 选择
kernel /boot/vmlinuz-2.6.8.1-4-386 root=/dev/hda1 ro quiet splash
- 按 'e' 在启动顺序的命令上编辑
- 增加 "rw init=/bin/bash" 到参数的结尾
grub edit> kernel /boot/vmlinuz-2.6.8.1-4-386 root=/dev/hda1 ro quiet splash rw init=/bin/bash
- 按 'b' 启动
-
root@(none):/ #
- 阅读 主题
- 启动系统到 Ubuntu 安装CD
- 沿着屏幕上的命令直到 (千万不要超过这一步)
[!!] Fdisk disks
- 按 'Ctrl + Alt + F2'
- 按 'Enter' 进入终端
-
~ # mkdir /ubuntu
~ # fdisk -l /dev/discs/disc0/disc
~ # mount <wherever your Ubuntu root device is> /ubuntu/
~ # chroot /ubuntu/
sh-2.05b#
- 阅读 主题
- 阅读 怎样免登陆但可以获得根用户访问权限?
- 改变 root 用户口令
# passwd root
- 改变 main 用户口令
# passwd your_system_main_username
- 阅读 主题
-
$ grub
grub> md5crypt
Password: ****** (ubuntu)
Encrypted: $1$ZWnke0$1fzDBVjUcT1Mpdd4u/T961 (encrypted password)
grub> quit
$ sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup
$ sudo gedit /boot/grub/menu.lst - 找到这一行
...
password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
... - 用下面的行替换
password --md5 $1$ZWnke0$1fzDBVjUcT1Mpdd4u/T961 (encrypted password above)
- 保存编辑的文件 (sample)
- 阅读 主题
-
例子. 假设 /dev/hda1 是 /boot 分区的地址
- 阅读 怎样使用Ubuntu安装CD获得根用户访问权限?
-
sh-2.05b# grub
grub> root (hd0,0)
grub> setup (hd0)
grub> quit
- 阅读 主题
-
例子. 假设 /dev/hda1 是 Windows 分区的地址
- 阅读 怎样列出分区表?
-
$ sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup
$ sudo gedit /boot/grub/menu.lst - 在文件结尾添加下面行
title Windows 95/98/NT/2000
root (hd0,0)
makeactive
chainloader +1
savedefault - 保存编辑的文件 (sample)
Q: 怎样在Windows里读取Linux分区(ext2, ext3)?
Windows
Q: 怎样手工 mount/unmount Windows 分区 (NTFS) , 仅允许所有用户读取?
- 阅读 主题
-
例子. 假设 /dev/hda1 是 Windows 分区 (NTFS)
本地 mount 目录: /media/windows - 阅读 怎样列出分区表?
-
$ sudo mkdir /media/windows
- Mount Windows 分区
$ sudo mount /dev/hda1 /media/windows -t ntfs -o umask=0222
- Unmount Windows 分区
$ sudo umount /media/windows
Q: 怎样手工 mount/unmount Windows 分区 (FAT) , 并允许所有用户读/写?
- 阅读 主题
-
例子. 假设 /dev/hda1 是 Windows 分区 (FAT)
本地 mount 目录: /media/windows - 阅读 怎样列出分区表?
-
$ sudo mkdir /media/windows
- Mount Windows 分区
$ sudo mount /dev/hda1 /media/window -t vfat -o umask=000
- Unmount Windows 分区
$ sudo umount /media/windows
Q: 怎样 mount Windows 分区 (NTFS) 在启动时, 仅允许所有用户读取?
- 阅读 主题
-
例子. 假设 /dev/hda1 是 Windows 分区 (NTFS)
本地 mount 目录: /media/windows - 阅读 怎样列出分区表?
-
$ sudo mkdir /media/windows
$ sudo cp /etc/fstab /etc/fstab_backup
$ sudo gedit /etc/fstab - 在文件结尾增加下面行
/dev/hda1 /media/windows ntfs umask=0222 0 0
- 保存编辑的文件 (sample)
- 阅读 怎样 remount /etc/fstab 不用重启?
Q: 怎样 mount Windows 分区 (FAT) 在启动时, 并允许所有用户读/写?
- 阅读 主题
-
例子. 假设 /dev/hda1 是 Windows 分区 (FAT)
本地 mount 目录: /media/windows - 阅读 怎样列出分区表?
-
$ sudo mkdir /media/windows
$ sudo cp /etc/fstab /etc/fstab_backup
$ sudo gedit /etc/fstab - 在文件结尾增加下面行
/dev/hda1 /media/windows vfat umask=000 0 0
- 保存编辑的文件 (sample)
- 阅读 怎样 remount /etc/fstab 不用重启?
Users Administration
- 阅读 主题
-
$ sudo passwd root
- 阅读 主题
-
$ sudo passwd -l root
- 阅读 主题
- 阅读 怎样设置/改变/激活 root 用户口令?
- 系统 -> 系统管理 -> 登录屏幕设置
- 登录屏幕设置
Security Tab -> Options ->允许 root to login with GDM (Checked)
- 阅读 主题
- 阅读 怎样设置/改变/激活 root 用户口令?
-
$ sudo -s -H (specify your 用户口令)
or
$ su (specify your root 用户口令)
- 阅读 主题
- 系统 -> 系统管理 -> 用户和组
- 用户和组
Users Tab -> Add User.../Properties/Delete users
- 阅读 主题
- 系统 -> 系统管理 -> 用户和组
- 用户和组
Groups Tab -> Add Group.../Properties/Delete users
- 阅读 主题
- 系统 -> 系统管理 -> 登录屏幕设置
- 登录屏幕设置
General Tab -> Automatic Login ->
Login a 用户automatically on first bootup (Checked)
Automatic login username: Select the username to automatic login
- 阅读 主题
-
$ export EDITOR=gedit && sudo visudo
- 在文件结尾增加下面行
your_system_username ALL=(ALL) ALL
- 保存编辑的文件 (sample)
- 阅读 主题
-
$ sudo -K
Q: 怎样在不需要提供密码的前提下(不安全)使用 "sudo" ?
- 阅读 主题
-
$ export EDITOR=gedit && sudo visudo
- 找到这一行
...
your_system_username ALL=(ALL) ALL
... - 用下面的行替换
your_system_username ALL=(ALL) NOPASSWD: ALL
- 保存编辑的文件 (sample)
- 阅读 主题
-
$ nautilus applications:///
- 阅读 主题
-
$ sudo nautilus applications-all-users:///
- 阅读 主题
-
在文件上按右键 -> 属性
Permissions Tab ->读取/写入/执行 (为 Owner/Group/Others 勾选权限)
- 阅读 主题
-
$ sudo chown -R your_system_username /location_of_your_file_or_folder
- 阅读 主题
-
$ sudo chgrp -R your_system_groupname /location_of_your_file_or_folder
Samba 服务
- 阅读 主题
- 阅读 怎样为文件共享服务安装Samba服务?
- 怎样增加网络用户
- 阅读 怎样加入, 编辑, 删除系统用户?
-
$ sudo smbpasswd -a your_system_username
$ sudo gedit /etc/samba/smbusers - 在新文件里插入下面的行
your_system_username = "your network username"
- 保存编辑的文件 (sample)
- 怎样修改网络用户
-
$ sudo smbpasswd -a your_system_username
-
- 怎样删除网络用户
-
$ sudo smbpasswd -x your_system_username
-
- 阅读 主题
- 阅读 怎样为文件共享服务安装Samba服务?
-
$ sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup
$ sudo gedit /etc/samba/smb.conf - 找到这一行
...
; security = user
... - 用下面的行替换
security = user
- 查找这个片段
...
# This boolean controls whether PAM will be used for password changes
# when requested by an SMB client instead of the program listed in
# 'passwd program'. The default is 'no'.
; pam password change = no
... - 增加下面的行
username map = /etc/samba/smbusers
- 保存编辑的文件 (sample)
- 阅读 怎样增加/修改/删除网络用户?
-
$ sudo testparm
$ sudo /etc/init.d/samba restart
- 阅读 主题
- 阅读 怎样为文件共享服务安装Samba服务?
-
$ sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup
$ sudo gedit /etc/samba/smb.conf - 找到这一行
...
; security = user
... - 用下面的行替换
security = user
- 查找这个片段
...
# This boolean controls whether PAM will be used for password changes
# when requested by an SMB client instead of the program listed in
# 'passwd program'. The default is 'no'.
; pam password change = no
... - 增加下面的行
username map = /etc/samba/smbusers
- 查找这个片段
...
# By default, the home directories are exported read-only. Change next
# parameter to 'yes' if you want to be able to write to them.
writable = no
... - 用下面的行替换
# By default, the home directories are exported read-only. Change next
# parameter to 'yes' if you want to be able to write to them.
writable = yes - 保存编辑的文件 (sample)
- 阅读 怎样增加/修改/删除网络用户?
-
$ sudo testparm
$ sudo /etc/init.d/samba restart
- 阅读 主题
- 阅读 怎样为文件共享服务安装Samba服务?
-
$ sudo mkdir /home/group
$ sudo chmod 777 /home/group/
$ sudo chmod +t /home/group/
$ sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup
$ sudo gedit /etc/samba/smb.conf - 找到这一行
...
; security = user
... - 用下面的行替换
security = user
- 查找这个片段
...
# This boolean controls whether PAM will be used for password changes
# when requested by an SMB client instead of the program listed in
# 'passwd program'. The default is 'no'.
; pam password change = no
... - 增加下面的行
username map = /etc/samba/smbusers
- 在文件结尾添加下面行
[Group]
comment = Group Folder
path = /home/group
public = yes
writable = no
valid users = your_system_username1 your_system_username2
create mask = 0700
directory mask = 0700
force user = nobody
force group = nogroup - 保存编辑的文件 (sample)
- 阅读 怎样增加/修改/删除网络用户?
-
$ sudo testparm
$ sudo /etc/init.d/samba restart
- 阅读 主题
- 阅读 怎样为文件共享服务安装Samba服务?
-
$ sudo mkdir /home/group
$ sudo chmod 777 /home/group/
$ sudo chmod +t /home/group/
$ sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup
$ sudo gedit /etc/samba/smb.conf - 找到这一行
...
; security = user
... - 用下面的行替换
security = user
- 查找这个片段
...
# This boolean controls whether PAM will be used for password changes
# when requested by an SMB client instead of the program listed in
# 'passwd program'. The default is 'no'.
; pam password change = no
... - 增加下面的行
username map = /etc/samba/smbusers
- 在文件结尾添加下面行
[Group]
comment = Group Folder
path = /home/group
public = yes
writable = yes
valid users = your_system_username1 your_system_username2
create mask = 0700
directory mask = 0700
force user = nobody
force group = nogroup - 保存编辑的文件 (sample)
- 阅读 怎样增加/修改/删除网络用户?
-
$ sudo testparm
$ sudo /etc/init.d/samba restart
- 阅读 主题
- 阅读 怎样为文件共享服务安装Samba服务?
-
$ sudo mkdir /home/public
$ sudo chmod 777 /home/public/
$ sudo chmod +t /home/public/
$ sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup
$ sudo gedit /etc/samba/smb.conf - 找到这一行
...
; security = user
... - 用下面的行替换
security = user
- 查找这个片段
...
# This boolean controls whether PAM will be used for password changes
# when requested by an SMB client instead of the program listed in
# 'passwd program'. The default is 'no'.
; pam password change = no
... - 增加下面的行
username map = /etc/samba/smbusers
- 在文件结尾添加下面行
[public]
comment = Public Folder
path = /home/public
public = yes
writable = no
create mask = 0777
directory mask = 0777
force user = nobody
force group = nogroup - 保存编辑的文件 (sample)
- 阅读 怎样增加/修改/删除网络用户?
-
$ sudo testparm
$ sudo /etc/init.d/samba restart
- 阅读 主题
- 阅读 怎样为文件共享服务安装Samba服务?
-
$ sudo mkdir /home/public
$ sudo chmod 777 /home/public/
$ sudo chmod +t /home/public/
$ sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup
$ sudo gedit /etc/samba/smb.conf - 找到这一行
...
; security = user
... - 用下面的行替换
security = user
- 查找这个片段
...
# This boolean controls whether PAM will be used for password changes
# when requested by an SMB client instead of the program listed in
# 'passwd program'. The default is 'no'.
; pam password change = no
... - 增加下面的行
username map = /etc/samba/smbusers
- 在文件结尾添加下面行
[public]
comment = Public Folder
path = /home/public
public = yes
writable = yes
create mask = 0777
directory mask = 0777
force user = nobody
force group = nogroup - 保存编辑的文件 (sample)
- 阅读 怎样增加/修改/删除网络用户?
-
$ sudo testparm
$ sudo /etc/init.d/samba restart
- 阅读 主题
- 阅读 怎样为文件共享服务安装Samba服务?
-
$ sudo mkdir /home/public
$ sudo chmod 777 /home/public/
$ sudo chmod +t /home/public/
$ sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup
$ sudo gedit /etc/samba/smb.conf - 找到这一行
...
; security = user
... - 用下面的行替换
security = share
- 在文件结尾添加下面行
[public]
comment = Public Folder
path = /home/public
public = yes
writable = no
create mask = 0777
directory mask = 0777
force user = nobody
force group = nogroup - 保存编辑的文件 (sample)
-
$ sudo testparm
$ sudo /etc/init.d/samba restart
- 阅读 主题
- 阅读 怎样为文件共享服务安装Samba服务?
-
$ sudo mkdir /home/public
$ sudo chmod 777 /home/public/
$ sudo chmod +t /home/public/
$ sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup
$ sudo gedit /etc/samba/smb.conf - 找到这一行
...
; security = user
... - 用下面的行替换
security = share
- 在文件结尾添加下面行
[public]
comment = Public Folder
path = /home/public
public = yes
writable = yes
create mask = 0777
directory mask = 0777
force user = nobody
force group = nogroup - 保存编辑的文件 (sample)
-
$ sudo testparm
$ sudo /etc/init.d/samba restart
SSH Server
- 阅读 主题
-
例子. 假设远程 Ubuntu 计算机已经安装了 SSH Server 服务
阅读 怎样为远控管理服务安装SSH服务器?
远程 Ubuntu 计算机: 192.168.0.1 -
$ ssh username@192.168.0.1
Q: 怎样从远程Ubuntu机器复制文件或文件夹到本地机器(scp)?
- 阅读 主题
-
例子. 假设远程 Ubuntu 计算机已经安装了 SSH Server 服务(scp)?
阅读 怎样为远控管理服务安装SSH服务器?
远程 Ubuntu 计算机: 192.168.0.1
远程 文件/目录 地址: /home/username/remotefile.txt
本机计算机保存地址: . (当前目录) -
$ scp -r username@192.168.0.1:/home/username/remotefile.txt .
- 阅读 主题
-
例子. 假设远程 Ubuntu 计算机已经安装了 SSH Server 服务(scp)?
阅读 怎样为远控管理服务安装SSH服务器?
本地文件/目录地址: localfile.txt
远程 Ubuntu 计算机: 192.168.0.1
远程 Ubuntu 计算机保存地址: /home/username/ -
$ scp -r localfile.txt username@192.168.0.1:/home/username/
Q: 怎样从远程机器复制文件或文件夹到本地机器(rsync)?
- 阅读 主题
-
例子. 假设远程 Ubuntu 计算机已经安装了 SSH Server 服务(scp)?
阅读 怎样为远控管理服务安装SSH服务器?
远程 Ubuntu 计算机: 192.168.0.1
远程 文件/目录 地址: /home/username/remotefile.txt
本机计算机保存地址: . (当前目录) -
$ rsync -v -u -a --delete --rsh=ssh --stats username@192.168.0.1:/home/username/remotefile.txt .
Q: 怎样从本地机器复制文件或文件夹到远程机器(rsync)?
- 阅读 主题
-
例子. 假设远程 Ubuntu 计算机已经安装了 SSH Server 服务(scp)?
阅读 怎样为远控管理服务安装SSH服务器?
本地文件/目录地址: localfile.txt
远程 Ubuntu 计算机: 192.168.0.1
远程 Ubuntu 计算机保存地址: /home/username/ -
$ rsync -v -u -a --delete --rsh=ssh --stats localfile.txt username@192.168.0.1:/home/username/
Q: 怎样通过Windows机器连接到安装SSH的远程Ubuntu机器?
- 阅读 主题
-
例子. 假设远程 Ubuntu 计算机已经安装了 SSH Server 服务(scp)?
阅读 怎样为远控管理服务安装SSH服务器? - 下载 PuTTY: Here or Here
Q: 怎样通过Windows机器复制文件或文件夹从或者到远程Ubuntu机器?
- 阅读 主题
-
例子. 假设远程 Ubuntu 计算机已经安装了 SSH Server 服务(scp)?
阅读 怎样为远控管理服务安装SSH服务器? - 下载 WinSCP: Here or Here
DHCP 服务
- 阅读 主题
- 阅读 怎样添加额外的源?
-
例子. 假设 "eth0" 是网卡
IP Address Range: 192.168.0.100 to 192.168.0.200
Subnet Mask: 255.255.255.0
DNS Servers: 202.188.0.133, 202.188.1.5
Domains: tm.net.my
Gateway Address: 192.168.0.1 -
$ sudo apt-get install dhcp3-server
$ sudo cp /etc/default/dhcp3-server /etc/default/dhcp3-server_backup
$ sudo gedit /etc/default/dhcp3-server - 找到这一行
...
INTERFACES="" - 用下面的行替换
INTERFACES="eth0"
- 保存编辑的文件 (sample)
-
$ sudo cp /etc/dhcp3/dhcpd.conf /etc/dhcp3/dhcpd.conf_backup
$ sudo gedit /etc/dhcp3/dhcpd.conf - 查找这个片段
...
# option definitions common to all supported networks...
option domain-name "example.org";
option domain-name-servers ns1.example.org, ns2.example.org;
default-lease-time 600;
max-lease-time 7200;
... - 用下面的行替换
# option definitions common to all supported networks...
#option domain-name "example.org";
#option domain-name-servers ns1.example.org, ns2.example.org;
#default-lease-time 600;
#max-lease-time 7200; - 查找这个片段
...
# A slightly different configuration for an internal subnet.
#subnet 10.5.5.0 netmask 255.255.255.224 {
# range 10.5.5.26 10.5.5.30;
# option domain-name-servers ns1.internal.example.org;
# option domain-name "internal.example.org";
# option routers 10.5.5.1;
# option broadcast-address 10.5.5.31;
# default-lease-time 600;
# max-lease-time 7200;
#}
... - 用下面的行替换
# A slightly different configuration for an internal subnet.
subnet 192.168.0.0 netmask 255.255.255.0 {
range 192.168.0.100 192.168.0.200;
option domain-name-servers 202.188.0.133, 202.188.1.5;
option domain-name "tm.net.my";
option routers 192.168.0.1;
option broadcast-address 192.168.0.255;
default-lease-time 600;
max-lease-time 7200;
} - 保存编辑的文件 (sample)
-
$ sudo /etc/init.d/dhcp3-server restart
数据库服务
- 阅读 主题
- 阅读 怎样添加额外的源?
-
$ sudo apt-get install mysql-server
$ sudo /usr/bin/mysqladmin -u root password your_db_user_password
Apache HTTP Server
Q: 怎样为HTTP(Web)服务安装Apache HTTP服务?
- 阅读 主题
- 阅读 怎样添加额外的源?
-
$ sudo apt-get install apache2
- http://localhost
- 阅读 主题
- 阅读 怎样添加额外的源?
- 阅读 怎样为HTTP(Web)服务安装Apache HTTP服务?
-
$ sudo apt-get install php4
$ sudo apt-get install libapache2-mod-php4
$ sudo /etc/init.d/apache2 force-reload
$ sudo gedit /var/www/testphp.php - 在新文件里插入下面的行
<?php phpinfo(); ?>
- 保存编辑的文件 (sample)
- http://localhost/testphp.php
- 阅读 主题
- 阅读 怎样添加额外的源?
- 阅读 怎样为HTTP(Web)服务安装Apache HTTP服务?
- 阅读 怎样安装MYSQL数据库服务?
- 阅读 怎样在Apache HTTP服务上安装PHP?
-
$ sudo apt-get install libapache2-mod-auth-mysql
$ sudo apt-get install php4-mysql
$ sudo /etc/init.d/apache2 restart
技巧和窍门
- 阅读 主题
- 系统 -> 系统管理 -> 新立得包管理器
- 新立得包管理器
- 刷新已知包的列表 (等于 apt-get update)
编辑 菜单 -> 重新载入软件包信息
- 安装所有可用的升级 (等于 apt-get upgrade)
编辑 菜单 -> 标记全部软件包以便升级... -> 默认升级
编辑 菜单 -> 实施标记的更新 - 查找一个包 (等于 apt-cache search package_name)
编辑 菜单 -> 搜索... (在搜索对话框指定包名)
- 安装选择的包 (等于 apt-get install package_name)
选择的包将被安装
软件包 菜单 -> 标记以便安装
编辑 菜单 -> 实施标记的更新 - 删除安装的包 (等于 apt-get remove package_name)
选择的包将被删除
软件包 菜单 -> 标记以便删除
编辑 菜单 -> 实施标记的更新
- 刷新已知包的列表 (等于 apt-get update)
Q: 怎样使用Mozilla Firefox更快的读取网站(停止IPV6)?
- 阅读 主题
- 应用程序 -> Internet -> Mozilla Firefox
- Mozilla Firefox
Address Bar -> about:config
Filter: -> network.dns.disableIPv6 -> Change the Value to true (Double click)
Q: 怎样停止使用嘟嘟声当在Mozilla Firefox里点击连接时?
- 阅读 主题
- 应用程序 -> Internet -> Mozilla Firefox
- Mozilla Firefox
Address Bar -> about:config
Filter: -> accessibility.typeaheadfind.enablesound -> Change the Value to false (Double click)
- 阅读 主题
- 临时在Nautilus里在同一窗口里打开文件夹
- 双击鼠标中键 (滚轮)
- 永远在Nautilus里在同一窗口里打开文件夹
- 应用程序 -> 系统工具 -> 配置编辑器
- GConf editor -
/ -> apps -> nautilus -> preferences -> always_use_browser (Checked)
- 阅读 主题
- 位置 -> 主文件夹
- 临时在Nautilus显示所有隐藏文件
- 按 'Ctrl + H'
- 永远在Nautilus显示所有隐藏文件
-
编辑 菜单 -> 首选项
视图 页面 -> 默认视图 -> 显示隐藏和备份文件 (勾选)
-
- 阅读 主题
- 应用程序 -> 系统工具 -> 配置编辑器
- GConf editor -
/ -> apps -> nautilus -> desktop ->
computer_icon_visible (Checked)
home_icon_visible (Checked)
trash_icon_visible (Checked)
- 阅读 主题
- 下载 gnome-clipboard-daemon-1.0.bin.tar.bz2: Here or Here
-
$ cd browse_to_your_download_folder
$ sudo tar jxvf gnome-clipboard-daemon-1.0.bin.tar.bz2 -C /usr/bin/
$ sudo chown root:root /usr/bin/gnome-clipboard-daemon
$ sudo chmod 755 /usr/bin/gnome-clipboard-daemon
$ sudo /usr/bin/gnome-clipboard-daemon & - 系统 -> 首选项 -> 会话
- Sessions
启动程序 页面 -> 添加 ->
启动命令: /usr/bin/gnome-clipboard-daemon
顺序: 80
- 阅读 主题
- 系统 -> 首选项 -> 会话
- 会话
启动程序 页面 -> 添加/编辑/删除 程序
- 阅读 主题
-
Right click on file -> Properties
Open With Tab -> Add
Select the added open with program (Checked)
- 阅读 主题
- 保存并关闭所有运行的程序
- 按 'Ctrl + Alt + Backspace'
- 阅读 主题
- 转换到终端
- 按 'Ctrl + Alt + F1' (F2 - F6)
- 转回 GNOME
- 按 'Ctrl + Alt + F7'
- 阅读 主题
- 应用程序 -> 系统工具 -> 终端
- 终端
编辑 菜单 -> 当前配置文件...
常规 页面 -> 常规 -> 终端响铃 (不勾选)
Q: 怎样 remount /etc/fstab 不用重启?
- 阅读 主题
-
$ sudo mount -a
- 阅读 主题
-
$ sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup
$ sudo gedit /boot/grub/menu.lst - 找到这一行
...
hiddenmenu
... - 用下面的行替换
#hiddenmenu
- 保存编辑的文件 (sample)
- 阅读 主题
-
$ sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup
$ sudo gedit /boot/grub/menu.lst - 找到这一行
...
timeout 3
... - 用下面的行替换
timeout X_seconds
- 保存编辑的文件 (sample)
- 阅读 主题
-
$ sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup
$ sudo gedit /boot/grub/menu.lst - 找到这一行
...
default 0
... - 用下面的行替换
default X_sequence
- 保存编辑的文件 (sample)
- 阅读 主题
- Press 'Ctrl + C'
- 阅读 主题
- 永久禁止启动服务
$ sudo chmod -x /etc/init.d/service_name
- 永久使用启动服务
$ sudo chmod +x /etc/init.d/service_name
Q: 怎样从Warty Warthog升级到 Hoary Hedgehog(Beta)?
- 阅读 主题
-
$ sudo cp /etc/apt/sources.list /etc/apt/sources.list_backup
$ sudo gedit /etc/apt/sources.list - 查找这个片段
...
## Uncomment the following two lines to fetch updated software from the network
# deb http://archive.ubuntu.com/ubuntu warty main restricted
# deb-src http://archive.ubuntu.com/ubuntu warty main restricted
## Uncomment the following two lines to add software from the 'universe'
## repository.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
# deb http://archive.ubuntu.com/ubuntu warty universe
# deb-src http://archive.ubuntu.com/ubuntu warty universe
# deb http://security.ubuntu.com/ubuntu warty-security main restricted
# deb-src http://security.ubuntu.com/ubuntu warty-security main restricted
... - 用下面的行替换
## Uncomment the following two lines to fetch updated software from the network
deb http://archive.ubuntu.com/ubuntu/ hoary main restricted
deb-src http://archive.ubuntu.com/ubuntu/ hoary main restricted
## Uncomment the following two lines to add software from the 'universe'
## repository.
## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://archive.ubuntu.com/ubuntu/ hoary universe
deb-src http://archive.ubuntu.com/ubuntu/ hoary universe
deb http://security.ubuntu.com/ubuntu/ hoary-security main restricted
deb-src http://security.ubuntu.com/ubuntu/ hoary-security main restricted - 保存编辑的文件 (sample)
-
$ sudo apt-get update
$ sudo apt-get dist-upgrade
帮助
- 阅读 主题
- 阅读 怎样临时停止启动服务?
- 阅读 怎样永久停止或使用启动服务?
service_name = networking
Q: 与ntp.ubuntulinux.org同步时间.. (会花很多时间读取)
- 阅读 主题
- 阅读 怎样临时停止启动服务?
- 阅读 怎样永久停止或使用启动服务?
service_name = ntpdate
- 阅读 主题
-
$ sudo cp /etc/hotplug/blacklist /etc/hotplug/blacklist_backup
$ sudo gedit /etc/hotplug/blacklist - 依赖错误显示, 在文件结尾添加下面行
pciehp
shpchp
hw_random - 保存编辑的文件 (sample)
- 阅读 主题
-
$ sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup
$ sudo gedit /boot/grub/menu.lst - 查找这个片段
...
title Ubuntu, kernel 2.6.8.1-4-386
root (hd0,0)
kernel /boot/vmlinuz-2.6.8.1-4-386 root=/dev/hda1 ro quiet splash
... - 用下面的行替换
title Ubuntu, kernel 2.6.8.1-4-386
root (hd0,0)
kernel /boot/vmlinuz-2.6.8.1-4-386 root=/dev/hda1 ro quiet splash acpi=off apm=off - 保存编辑的文件 (sample)
-
$ sudo cp /etc/modules /etc/modules_backup
$ sudo gedit /etc/modules - 在文件结尾增加下面行
apm
- 保存编辑的文件 (sample)
- 阅读 主题
-
$ gst-register-0.8
- 阅读 主题
-
$ sudo cp /etc/default/rcS /etc/default/rcS_backup
$ sudo gedit /etc/default/rcS - 找到这一行
...
UTC=yes
... - 用下面的行替换
UTC=no
- 保存编辑的文件 (sample)
- 系统 -> 系统管理 -> 时间和日期
设置当前日期和时间
-
$ sudo /etc/init.d/hwclock.sh restart
- 阅读 主题
-
$ sudo rm -fr $HOME/.Trash/
鸣谢
This guide was made possible thanks to these people, for which would like to express my greatest appreciation. Please accept my apologies in advance if I have missed out your Web site/name
People from these Web sites
People from these forums
People from these IRC channel
People that contributed in this guide (sorted by name/nick)
- dare2dreamer
- Emmanuel SCHRODER
- Gabriel Molina
- Julien Rottenberg
- Matjaz Horvat
- Michael Schroeder
- Gave the design/template for the beautified version of this guide (XHTML, CSS)
- Rancoras
- People that gave some inputs and corrections to this guide
- clparker
- jdong
- Khad Young
- khermans
- Oliver Grawert
- phatbob
- Rodd R. Ahrenstorff
- Samuel Wright
- Simon Taplin
- Please accept my apologies in advance if I have missed out your name/nick. Just send me an email, and I will be glad to put you on the list here
This How-to applies to: 4.10