https://wiki.ubuntu.org.cn/api.php?action=feedcontributions&user=Convice&feedformat=atomUbuntu中文 - 用户贡献 [zh-hans]2024-03-29T15:46:18Z用户贡献MediaWiki 1.26.3https://wiki.ubuntu.org.cn/index.php?title=UbuntuHelp:UsingTheTerminal/zh&diff=77419UbuntuHelp:UsingTheTerminal/zh2008-03-22T06:00:45Z<p>Convice:新页面: {{Translation}}<br>{{From|https://help.ubuntu.com/community/UsingTheTerminal}}<br>{{Translator|convice}}<br>{{Languages|UbuntuHelp:UsingTheTerminal}}<br><br></p>
<hr />
<div>{{Translation}}<br>{{From|https://help.ubuntu.com/community/UsingTheTerminal}}<br>{{Translator|convice}}<br>{{Languages|UbuntuHelp:UsingTheTerminal}}<br><br></div>Convicehttps://wiki.ubuntu.org.cn/index.php?title=UbuntuHelp:SystemAdministration/zh&diff=77418UbuntuHelp:SystemAdministration/zh2008-03-22T05:53:04Z<p>Convice:</p>
<hr />
<div>{{Translation}}<br>{{From|https:https://help.ubuntu.com/community/SystemAdministration}}<br>{{Translator|convice}}<br>{{Languages|UbuntuHelp:SystemAdministration}}<br><br />
<br />
<br><br />
<br />
# 标题:系统管理<br />
<br />
{| cellspacing="0" border="1"<br />
|-<br />
| {i} '''系统管理''' 是索引页 [[UbuntuHelp:UserDocumentation|用户文档]] 系 <br />
列的一部分. 在更改页面之前,请阅读 [[UbuntuHelp:WikiGuide|Wiki指南]]<br />
<br />
|}<br />
<br />
=== 系统管理 ===<br />
<br />
==== 命令行 ====<br />
<br />
* [[UbuntuHelp:UsingTheTerminal|UsingTheTerminal]] - Basic guide on using<br />
<br />
the command line.<br />
<br />
* [[UbuntuHelp:UsingTheTerminal|使用终端]] - 关于如何使用命令行终端的基本指<br />
<br />
南。<br />
<br />
==== 疑难排解 ====<br />
<br />
* [[UbuntuHelp:BasicTroubleshooting|Basic Troubleshooting]] - Where to<br />
<br />
start when things don't work<br />
<br />
* [[UbuntuHelp:BasicTroubleshooting|基本疑难排解]] - 当事情不正常时如何开始?<br />
<br />
==== 用户 ====<br />
<br />
* [[UbuntuHelp:AddUsersHowto|AddUsersHowto]] - Add users to your system<br />
* [[UbuntuHelp:AddUsersHowto|如何增加用户]] - 在你的系统中增加用户<br />
<br />
==== 给用户发送提示 ====<br />
<br />
* [[UbuntuHelp:BroadcastAlertWithSound|BroadcastAlertWithSound]] - Send<br />
<br />
pop-up alerts with sound<br />
<br />
* [[UbuntuHelp:BroadcastAlertWithSound|广播声音提示]] - 发送弹出式声音提示<br />
<br />
==== 权限 ====<br />
<br />
* [[UbuntuHelp:FilePermissions|FilePermissions]] - Understanding and using<br />
<br />
file permissions<br />
<br />
* [[UbuntuHelp:FilePermissions|文件权限]] - 理解并使用文件权限<br />
<br />
==== 备份 ====<br />
<br />
* [[UbuntuHelp:BackupYourSystem|BackupYourSystem]] - this page describes<br />
<br />
how to backup your system<br />
<br />
* [[UbuntuHelp:BackupYourSystem|备份你的系统]] - 这页描述了如何备份你的系统<br />
<br />
==== 软件 ====<br />
<br />
* [[UbuntuHelp:SoftwareManagement|SoftwareManagement]] - All guides<br />
<br />
regarding adding/removing/updating software<br />
<br />
* [[UbuntuHelp:SoftwareManagement|软件件管理]] - 关于增加、删除、升级软件的<br />
<br />
指南<br />
<br />
==== 日志文件 ====<br />
<br />
* [[UbuntuHelp:LinuxLogFiles|LinuxLogFiles]] - Information on system logs,<br />
<br />
application logs, and syslogd<br />
<br />
* [[UbuntuHelp:LinuxLogFiles|Linux日志文件]] - 关于系统日志、应用日志和<br />
<br />
syslogd的信息<br />
<br />
==== Cron (计划任务) ====<br />
<br />
* [[UbuntuHelp:CronHowto|CronHowto]] - guide to cron, to schedule commands<br />
* [[UbuntuHelp:CronHowto|如何使用Cron]] - cron指南,计划任务指南<br />
<br />
=== 配置 ===<br />
<br />
==== 系统配置 ====<br />
<br />
===== 启动 =====<br />
<br />
* [[UbuntuHelp:GrubHowto|GrubHowto]] - learn about the grub boot manager<br />
* [[UbuntuHelp:GrubHowto/ChangeDefaultOS|GrubHowto/ChangeDefaultOS]] -<br />
<br />
Change the default operating system that boots in Grub<br />
<br />
* [[UbuntuHelp:BootServices|Boot Services]] - Disable start of unnecessary<br />
<br />
services during boot.<br />
<br />
* [[UbuntuHelp:BootText|Boot Text]] - Spice up your boot text (font<br />
<br />
resolution and color)<br />
<br />
* [[UbuntuHelp:Upower|Upower]] - is a next generation bootsplash for linux<br />
<br />
systems<br />
<br />
* [[UbuntuHelp:GrubHowto|如何使用Grub]] - 学习如何使用grub启动管理器<br />
* [[UbuntuHelp:GrubHowto/ChangeDefaultOS|如何使用grub更改默认操作系统]] -<br />
<br />
更改在grub中默认启动的操作系统<br />
<br />
* [[UbuntuHelp:BootServices|启动服务]] - 取消在系统启动过程中启动的不必要服<br />
<br />
务<br />
<br />
* [[UbuntuHelp:BootText|启动文字项]] - 美化你的启动文字项(字体方案和颜色)<br />
* [[UbuntuHelp:Upower|Upower]] - 它是Linux的下一代启动工具<br />
<br />
<br><br />
<br />
===== 内核 =====<br />
<br />
* [[UbuntuHelp:KernelHowto|KernelHowto]] - make a custom kernel for your<br />
<br />
system<br />
<br />
* [[UbuntuHelp:KernelHowto|KernelHowto]] - 为你的系统定制内核<br />
<br />
===== 时间 &amp; 日期 =====<br />
<br />
* [[UbuntuHelp:ChangeTimezoneHowto|ChangeTimezoneHowto]] - change your<br />
<br />
timezone<br />
<br />
* [[UbuntuHelp:ChangeTimezoneHowto|更改时区]] - 更改你的时区<br />
<br />
==== 桌面配置 ====<br />
<br />
===== Gnome/Nautilus =====<br />
<br />
* [[UbuntuHelp:GnomeMenuEditingHowTo|GnomeMenuEditingHowTo]] - various ways<br />
<br />
to add items to your Gnome menu<br />
<br />
* [[UbuntuHelp:NautilusScriptsHowto|NautilusScriptsHowto]] - enhance<br />
<br />
nautilus by adding scripts<br />
<br />
* [[UbuntuHelp:GnomeComputerMenu|Gnome Computer Menu]] - How to add missing<br />
<br />
disks in computer:///<br />
<br />
* [[UbuntuHelp:Nautilus Scripts|Nautilus Scripts]] - Using nautilus scripts<br />
<br />
to extend the functionality of nautilus.<br />
<br />
* [[UbuntuHelp:GnomeMenuEditingHowTo|如何编辑Gnome菜单]] - 在你的Gnome菜单<br />
<br />
中增加条目的各种方法<br />
<br />
* [[UbuntuHelp:NautilusScriptsHowto|如何使用Nautilus脚本]] - 通过添加脚本来<br />
<br />
增强Nautilus<br />
<br />
* [[UbuntuHelp:GnomeComputerMenu|Gnome Computer Menu]] - How to add missing<br />
<br />
disks in computer:///<br />
<br />
* [[UbuntuHelp:Nautilus Scripts|Nautilus 脚本]] - 使用nautilus脚本来扩展<br />
<br />
Nautilus的功能<br />
<br />
===== 性能 =====<br />
<br />
* [[UbuntuHelp:LowEndSystemSupport|Speeding up Ubuntu on Low End Systems:]]<br />
<br />
- Making the desktop interface snappier on machines without much memory<br />
<br />
* [[UbuntuHelp:Kernel/Compile|Building a custom kernel]] - Low-level<br />
<br />
tweaking.<br />
<br />
* [[UbuntuHelp:LowEndSystemSupport|加速在低配置机器上的 ubuntu]] - 使在内存<br />
<br />
很少的机器上的桌面更快<br />
<br />
* [[UbuntuHelp:Kernel/Compile|构建自定义的内核]] - 底层的性能改进<br />
<br />
===== 视觉提升 =====<br />
<br />
* [[UbuntuHelp:UbuntuEyeCandy|Eye Candy]] - changing wallpaper &amp;<br />
<br />
themes, as well as other functional visual enhancements.<br />
<br />
* [[UbuntuHelp:UbuntuEyeCandy|Eye Candy]] - 更换墙纸 &amp; 主题, 还有其它视<br />
<br />
觉提升功能<br />
<br />
----<br />
<br />
[[Category:CategoryDocumentation]] [[Category:UbuntuHelp]]</div>Convicehttps://wiki.ubuntu.org.cn/index.php?title=UbuntuHelp:SystemAdministration/zh&diff=77375UbuntuHelp:SystemAdministration/zh2008-03-19T12:04:08Z<p>Convice:</p>
<hr />
<div>{{Translation}}<br>{{From|https:https://help.ubuntu.com/community/SystemAdministration}}<br>{{Translator|convice}}<br>{{Languages|UbuntuHelp:SystemAdministration}}<br><br />
<br />
<br><br />
<br />
# title System Administration<br />
<br />
{| cellspacing="0" border="1"<br />
|-<br />
| {i} '''SystemAdministration''' is part of the [[UbuntuHelp:UserDocumentation|UserDocumentation]] series of index pages. Please read the [[UbuntuHelp:WikiGuide|WikiGuide]] <br />
prior to making changes.<br />
<br />
|}<br />
<br />
=== 系统管理 ===<br />
<br />
==== 命令行 ====<br />
<br />
* [[UbuntuHelp:UsingTheTerminal|UsingTheTerminal]] - Basic guide on using the command line.<br />
* [[UbuntuHelp:UsingTheTerminal|使用终端]] - 关于如何使用命令行终端的基本指南。<br />
<br />
==== 疑难排解 ====<br />
<br />
* [[UbuntuHelp:BasicTroubleshooting|Basic Troubleshooting]] - Where to start when things don't work<br />
* [[UbuntuHelp:BasicTroubleshooting|基本疑难排解]] - 当事情不正常时如何开始?<br />
<br />
==== 用户 ====<br />
<br />
* [[UbuntuHelp:AddUsersHowto|AddUsersHowto]] - Add users to your system<br />
* [[UbuntuHelp:AddUsersHowto|如何增加用户]] - 在你的系统中增加用户<br />
<br />
==== 给用户发送提示 ====<br />
<br />
* [[UbuntuHelp:BroadcastAlertWithSound|BroadcastAlertWithSound]] - Send pop-up alerts with sound<br />
* [[UbuntuHelp:BroadcastAlertWithSound|广播声音提示]] - 发送弹出式声音提示<br />
<br />
==== 权限 ====<br />
<br />
* [[UbuntuHelp:FilePermissions|FilePermissions]] - Understanding and using file permissions<br />
* [[UbuntuHelp:FilePermissions|文件权限]] - 理解并使用文件权限<br />
<br />
==== 备份 ====<br />
<br />
* [[UbuntuHelp:BackupYourSystem|BackupYourSystem]] - this page describes how to backup your system<br />
* [[UbuntuHelp:BackupYourSystem|备份你的系统]] - 这页描述了如何备份你的系统<br />
<br />
==== 软件 ====<br />
<br />
* [[UbuntuHelp:SoftwareManagement|SoftwareManagement]] - All guides regarding adding/removing/updating software<br />
* [[UbuntuHelp:SoftwareManagement|软件件管理]] - 关于增加、删除、升级软件的指南<br />
<br />
==== 日志文件 ====<br />
<br />
* [[UbuntuHelp:LinuxLogFiles|LinuxLogFiles]] - Information on system logs, application logs, and syslogd<br />
* [[UbuntuHelp:LinuxLogFiles|Linux日志文件]] - 关于系统日志、应用日志和syslogd的信息<br />
<br />
==== Cron (计划任务) ====<br />
<br />
* [[UbuntuHelp:CronHowto|CronHowto]] - guide to cron, to schedule commands<br />
* [[UbuntuHelp:CronHowto|如何使用Cron]] - cron指南,计划任务指南<br />
<br />
=== 配置 ===<br />
<br />
==== 系统配置 ====<br />
<br />
===== 启动 =====<br />
<br />
* [[UbuntuHelp:GrubHowto|GrubHowto]] - learn about the grub boot manager<br />
* [[UbuntuHelp:GrubHowto/ChangeDefaultOS|GrubHowto/ChangeDefaultOS]] - Change the default operating system that boots in Grub<br />
* [[UbuntuHelp:BootServices|Boot Services]] - Disable start of unnecessary services during boot.<br />
* [[UbuntuHelp:BootText|Boot Text]] - Spice up your boot text (font resolution and color)<br />
* [[UbuntuHelp:Upower|Upower]] - is a next generation bootsplash for linux systems<br />
<br />
* [[UbuntuHelp:GrubHowto|如何使用Grub]] - 学习如何使用grub启动管理器<br />
* [[UbuntuHelp:GrubHowto/ChangeDefaultOS|如何使用grub更改默认操作系统]] - 更改在grub中默认启动的操作系统<br />
* [[UbuntuHelp:BootServices|启动服务]] - 取消在系统启动过程中启动的不必要服务<br />
* [[UbuntuHelp:BootText|启动文字项]] - 美化你的启动文字项(字体方案和颜色)<br />
* [[UbuntuHelp:Upower|Upower]] - 它是Linux的下一代启动工具<br />
<br />
<br><br />
<br />
===== 内核 =====<br />
<br />
* [[UbuntuHelp:KernelHowto|KernelHowto]] - make a custom kernel for your system<br />
* [[UbuntuHelp:KernelHowto|KernelHowto]] - 为你的系统定制内核</div>Convicehttps://wiki.ubuntu.org.cn/index.php?title=UbuntuHelp:SystemAdministration/zh&diff=77370UbuntuHelp:SystemAdministration/zh2008-03-19T06:19:28Z<p>Convice:</p>
<hr />
<div>{{Translation}}<br>{{From|https:https://help.ubuntu.com/community/SystemAdministration}}<br>{{Translator|convice}}<br>{{Languages|UbuntuHelp:SystemAdministration}}<br><br />
<br />
<br><br />
<br />
# title System Administration<br />
<br />
{| cellspacing="0" border="1"<br />
|-<br />
| {i} '''SystemAdministration''' is part of the [[UbuntuHelp:UserDocumentation|UserDocumentation]] series of index pages. Please read the [[UbuntuHelp:WikiGuide|WikiGuide]] <br />
<br />
prior to making changes.<br />
|}<br />
<br />
=== Administration ===<br />
<br />
==== 命令行 ====<br />
<br />
* [[UbuntuHelp:UsingTheTerminal|UsingTheTerminal]] - Basic guide on using the command line.<br />
* [[UbuntuHelp:UsingTheTerminal|使用终端]] - 关于如何使用终端的基本指南。<br />
<br />
==== 疑难排解 ====<br />
<br />
* [[UbuntuHelp:BasicTroubleshooting|Basic Troubleshooting]] - Where to start when things don't work<br />
* [[UbuntuHelp:BasicTroubleshooting|基本疑难排解]] - 当事情不正常时如何开始?<br />
<br />
==== 用户 ====<br />
<br />
* [[UbuntuHelp:AddUsersHowto|AddUsersHowto]] - Add users to your system<br />
* [[UbuntuHelp:AddUsersHowto|怎样增加用户]] - 在你的系统中增加用户<br />
<br />
==== 给用户发送提示 ====<br />
<br />
* [[UbuntuHelp:BroadcastAlertWithSound|BroadcastAlertWithSound]] - Send pop-up alerts with sound<br />
<br />
==== 权限 ====<br />
<br />
* [[UbuntuHelp:FilePermissions|FilePermissions]] - Understanding and using file permissions<br />
* [[UbuntuHelp:FilePermissions|文件权限]] - 理解并使用文件权限<br />
<br />
==== 备份 ====<br />
<br />
* [[UbuntuHelp:BackupYourSystem|BackupYourSystem]] - this page describes how to backup your system<br />
* [[UbuntuHelp:BackupYourSystem|备份你的系统]] - 这页描述了如何备份你的系统<br />
<br />
==== 软件 ====<br />
<br />
* [[UbuntuHelp:SoftwareManagement|SoftwareManagement]] - All guides regarding adding/removing/updating software<br />
* [[UbuntuHelp:SoftwareManagement|软件件管理]] - 关系增加、删除、升级软件的所有指南<br />
<br />
==== 日志文件 ====<br />
<br />
* [[UbuntuHelp:LinuxLogFiles|LinuxLogFiles]] - Information on system logs, application logs, and syslogd<br />
* [[UbuntuHelp:LinuxLogFiles|Linux日志文件]] - 关于系统日志、应用日志和syslogd的信息<br />
<br />
==== Cron (Scheduling) ====<br />
<br />
* [[UbuntuHelp:CronHowto|CronHowto]] - guide to cron, to schedule commands<br />
<br />
=== Configuration ===<br />
<br />
==== System Configuration ====<br />
<br />
===== Boot =====<br />
<br />
* [[UbuntuHelp:GrubHowto|GrubHowto]] - learn about the grub boot manager<br />
* [[UbuntuHelp:GrubHowto/ChangeDefaultOS|GrubHowto/ChangeDefaultOS]] - Change the default operating system that boots in Grub<br />
* [[UbuntuHelp:BootServices|Boot Services]] - Disable start of unnecessary services during boot.<br />
* [[UbuntuHelp:BootText|Boot Text]] - Spice up your boot text (font resolution and color)<br />
* [[UbuntuHelp:Upower|Upower]] - is a next generation bootsplash for linux systems<br />
<br />
===== Kernel =====<br />
<br />
* [[UbuntuHelp:KernelHowto|KernelHowto]] - make a custom kernel for your system<br />
<br />
===== Time &amp; Date =====<br />
<br />
* [[UbuntuHelp:ChangeTimezoneHowto|ChangeTimezoneHowto]] - change your timezone<br />
<br />
==== Desktop Configuration ====<br />
<br />
===== Gnome/Nautilus =====<br />
<br />
* [[UbuntuHelp:GnomeMenuEditingHowTo|GnomeMenuEditingHowTo]] - various ways to add items to your Gnome menu<br />
* [[UbuntuHelp:NautilusScriptsHowto|NautilusScriptsHowto]] - enhance nautilus by adding scripts<br />
* [[UbuntuHelp:GnomeComputerMenu|Gnome Computer Menu]] - How to add missing disks in computer:///<br />
* [[UbuntuHelp:Nautilus Scripts|Nautilus Scripts]] - Using nautilus scripts to extend the functionality of nautilus.<br />
<br />
===== Performance =====<br />
<br />
* [[UbuntuHelp:LowEndSystemSupport|Speeding up Ubuntu on Low End Systems:]] - Making the desktop interface snappier on machines without much memory<br />
* [[UbuntuHelp:Kernel/Compile|Building a custom kernel]] - Low-level tweaking.<br />
<br />
===== Visual Enhancements =====<br />
<br />
* [[UbuntuHelp:UbuntuEyeCandy|Eye Candy]] - changing wallpaper &amp; themes, as well as other functional visual enhancements.<br />
<br />
----<br />
<br />
{| cellspacing="0"<br />
|-<br />
| <br />
|}<br />
<br />
[[Category:CategoryDocumentation]] [[Category:UbuntuHelp]]</div>Convicehttps://wiki.ubuntu.org.cn/index.php?title=UbuntuHelp:SystemAdministration/zh&diff=77369UbuntuHelp:SystemAdministration/zh2008-03-19T06:18:42Z<p>Convice:</p>
<hr />
<div>{{Translation}}<br>{{From|https:https://help.ubuntu.com/community/SystemAdministration}}<br>{{Translator|convice}}<br>{{Languages|UbuntuHelp:SystemAdministration}}<br><br />
<br />
<br />
# title System Administration<br />
<br />
{| cellspacing="0"<br />
|-<br />
| <br />
|}<br />
<br />
[[Category:CategoryDocumentation]] [[Category:UbuntuHelp]]</div>Convicehttps://wiki.ubuntu.org.cn/index.php?title=UbuntuHelp:SystemAdministration/zh&diff=77368UbuntuHelp:SystemAdministration/zh2008-03-19T06:17:31Z<p>Convice:</p>
<hr />
<div>{{Translation}}<br>{{From|https:https://help.ubuntu.com/community/SystemAdministration}}<br>{{Translator|convice}}<br>{{Languages|UbuntuHelp:SystemAdministration}}<br><br />
<br />
{{From|https://help.ubuntu.com/community/SystemAdministration}} {{Languages|UbuntuHelp:SystemAdministration}}<br />
<br />
# title System Administration<br />
<br />
{| cellspacing="0"<br />
|-<br />
| <br />
|}<br />
<br />
[[Category:CategoryDocumentation]] [[Category:UbuntuHelp]]</div>Convicehttps://wiki.ubuntu.org.cn/index.php?title=UbuntuHelp:SystemAdministration/zh&diff=77367UbuntuHelp:SystemAdministration/zh2008-03-19T06:13:44Z<p>Convice:新页面: {{From|https://help.ubuntu.com/community/SystemAdministration}} {{Languages|UbuntuHelp:SystemAdministration}} # title System Administration {| cellspacing="0" |- | |} [[Category:Categ...</p>
<hr />
<div>{{From|https://help.ubuntu.com/community/SystemAdministration}} {{Languages|UbuntuHelp:SystemAdministration}}<br />
<br />
# title System Administration<br />
<br />
{| cellspacing="0"<br />
|-<br />
| <br />
|}<br />
<br />
[[Category:CategoryDocumentation]] [[Category:UbuntuHelp]]</div>Convicehttps://wiki.ubuntu.org.cn/index.php?title=UbuntuHelp:SystemAdministration&diff=77312UbuntuHelp:SystemAdministration2008-03-17T15:53:23Z<p>Convice:</p>
<hr />
<div>{{From|https://help.ubuntu.com/community/SystemAdministration}}<br />
{{Languages|UbuntuHelp:SystemAdministration}}<br />
#title System Administration<br />
{|border="1" cellspacing="0"<br />
| {i} [[UbuntuHelp:SystemAdministration|SystemAdministration]] is part of the [[UbuntuHelp:UserDocumentation|UserDocumentation]] series of index pages. Please read the [[UbuntuHelp:WikiGuide|WikiGuide]] prior to making changes.<br />
|}<br />
=== Administration ===<br />
==== Command-Line ====<br />
<br />
* [[UbuntuHelp:UsingTheTerminal|UsingTheTerminal]] - Basic guide on using the command line.<br />
<br />
==== Troubleshooting ====<br />
* [[UbuntuHelp:BasicTroubleshooting|Basic Troubleshooting]] - Where to start when things don't work<br />
==== Users ====<br />
* [[UbuntuHelp:AddUsersHowto|AddUsersHowto]] - Add users to your system<br />
==== Send Alerts to Users ====<br />
* [[UbuntuHelp:BroadcastAlertWithSound|BroadcastAlertWithSound]] - Send pop-up alerts with sound<br />
==== Permissions ====<br />
* [[UbuntuHelp:FilePermissions|FilePermissions]] - Understanding and using file permissions<br />
==== Backups ====<br />
* [[UbuntuHelp:BackupYourSystem|BackupYourSystem]] - this page describes how to backup your system<br />
==== Software ====<br />
* [[UbuntuHelp:SoftwareManagement|SoftwareManagement]] - All guides regarding adding/removing/updating software<br />
==== Log Files ====<br />
* [[UbuntuHelp:LinuxLogFiles|LinuxLogFiles]] - Information on system logs, application logs, and syslogd<br />
==== Cron (Scheduling) ====<br />
* [[UbuntuHelp:CronHowto|CronHowto]] - guide to cron, to schedule commands<br />
=== Configuration ===<br />
==== System Configuration ====<br />
===== Boot =====<br />
* [[UbuntuHelp:GrubHowto|GrubHowto]] - learn about the grub boot manager<br />
* [[UbuntuHelp:GrubHowto/ChangeDefaultOS|GrubHowto/ChangeDefaultOS]] - Change the default operating system that boots in Grub<br />
* [[UbuntuHelp:BootServices|Boot Services]] - Disable start of unnecessary services during boot.<br />
* [[UbuntuHelp:BootText|Boot Text]] - Spice up your boot text (font resolution and color)<br />
* [[UbuntuHelp:Upower|Upower]] - is a next generation bootsplash for linux systems<br />
===== Kernel =====<br />
* [[UbuntuHelp:KernelHowto|KernelHowto]] - make a custom kernel for your system<br />
===== Time & Date =====<br />
* [[UbuntuHelp:ChangeTimezoneHowto|ChangeTimezoneHowto]] - change your timezone<br />
==== Desktop Configuration ====<br />
===== Gnome/Nautilus =====<br />
* [[UbuntuHelp:GnomeMenuEditingHowTo|GnomeMenuEditingHowTo]] - various ways to add items to your Gnome menu<br />
* [[UbuntuHelp:NautilusScriptsHowto|NautilusScriptsHowto]] - enhance nautilus by adding scripts<br />
* [[UbuntuHelp:GnomeComputerMenu|Gnome Computer Menu]] - How to add missing disks in computer:///<br />
* [[UbuntuHelp:Nautilus Scripts|Nautilus Scripts]] - Using nautilus scripts to extend the functionality of nautilus.<br />
===== Performance =====<br />
* [[UbuntuHelp:LowEndSystemSupport|Speeding up Ubuntu on Low End Systems:]] - Making the desktop interface snappier on machines without much memory<br />
* [[UbuntuHelp:Kernel/Compile|Building a custom kernel]] - Low-level tweaking.<br />
===== Visual Enhancements =====<br />
* [[UbuntuHelp:UbuntuEyeCandy|Eye Candy]] - changing wallpaper & themes, as well as other functional visual enhancements.<br />
----<br />
[[category:CategoryDocumentation]]<br />
<br />
[[category:UbuntuHelp]]</div>Convicehttps://wiki.ubuntu.org.cn/index.php?title=Ubuntu:Gutsy/zh&diff=75360Ubuntu:Gutsy/zh2007-12-30T14:09:30Z<p>Convice:</p>
<hr />
<div>{{Translation}} {{From|http://ubuntuguide.org/Ubuntu:Gutsy}} {{Languages|Ubuntu:Gutsy}} {{Translator|zhan convice}}<br />
<br />
= '''''Ubuntu 7.10 (Gutsy Gibbon)''''' =<br />
<br />
'''Ubuntu Gutsy Gibbon, the successor of Feisty Fawn was released on Oct 18th, 2007. Please help test and perfect this guide.''' '''Ubuntu Gutsy Gibbon, Feisty Fawn 的後续版本,于 2007 年 10 月 18 日已经发布。请帮忙测试和完善这份指南'''<br />
<br />
This guide was started by [[User:Jiyuu0|Chua Wen Kiat]] (Kuala Lumpur, Malaysia). It is now being maintained by the [http://linux.edu.lv/index.php?newlang=english Linux Center] of [http://www.lu.lv/eng/ University of Latvia], and everyone else who is willing to contribute.<br />
<br />
这份指南由 [[User:Jiyuu0|Chua Wen Kiat]] (Kuala Lumpur, Malaysia). 发起。现在它由[http://www.lu.lv/eng/ Latvia 大学]的[http://linux.edu.lv/index.php?newlang=english Linux 中心]和所有愿意贡献的其他人们共同维护。<br />
<br />
This guide can be discussed at the official [http://www.ubuntuforums.org/forumdisplay.php?f=78 UbuntuGuide.org Forum] at ubuntuforums.org. Stop by and join the discussion.<br />
<br />
这份手册可以在官方论坛 ubuntuforums.org 的[http://www.ubuntuforums.org/forumdisplay.php?f=78 UbuntuGuide.org 论坛] 讨论。加入讨论吧。<br />
<br />
== '''''前言''''' ==<br />
<br />
=== 关于 Gutsy ===<br />
<br />
* On October 18, 2007 Ubuntu 7.10 was released.<br />
* It was code named Gutsy Gibbon and is the successor to Ubuntu 7.04 Feisty Fawn (Feisty+1 or the very next release after Feisty)<br />
* Gutsy will be supported for 18 months on both desktops and servers.<br />
* Users requiring a longer support lifetime on servers may choose to continue using Ubuntu 6.06 LTS, with security support until 2011, rather than upgrade to or install 7.10.<br />
<br />
* 2007 年 10 月 18 日,Ubuntu 7.10 发布。<br />
* 它被命名为 Gutsy Gibbon,它是 Ubuntu 7.04 Feisty Fawn 的後续版本(Feisty +1 或紧接 Feisty 之後发布的版本)<br />
* Gutsy 将在桌面和服务器版本上提供 18 个月的支持<br />
* 要求更长期服务器版本支持的用户可以选择 Ubuntu 6.06 LTS ,而不是更新到 7.10, 因为 6.06 的安全支持直到 2011 年。<br />
<br />
=== 如何找出您正在使用的 Ubuntu 版本 ===<br />
<br />
* Read [[|#General Notes]]<br />
* In Gutsy goto System -&gt; Administration -&gt; System Monitor -&gt; System Tab<br />
<br />
or on all versions and derivatives of Ubuntu use this command:<br />
<br />
lsb_release -a<br />
<br />
* 读一下 [[|#General Notes]]<br />
* 在 Gutsy 中,到系统-&gt;管理-&gt;系统监视器-&gt;系统标示 查看<br />
<br />
或者在所有的 Ubuntu 版本和衍生版本中,使用这个命令:<br />
<br />
lsb_release -a<br />
<br />
=== Ubuntu 的更新的版本 ===<br />
<br />
* Ubuntu uses a six month release cycle<br />
* These releases occur in April and October<br />
* The next release is scheduled for April 24, 2008 and will be Ubuntu 8.04 (Hardy Heron) which is Gutsy+1.<br />
* Hardy Heron will be a LTS (Long Term Support) release and will be supported with security updates for five years on the server and three years on the desktop.<br />
<br />
* Ubuntu 采用 6 个月的发行周期<br />
* 一般发布在 4 月和 10 月<br />
* 下一次的发布计划在 2008 年 4 月 24 日,并命名为 Ubuntu 8.04(Hardy Heron)即 Gutsy+1。<br />
* Hardy Heron 将是 LTS(长期支持)版本,将提供 5 年的服务器版本安全支持和 3 年的桌面版本支持。<br />
<br />
=== Ubuntu 的老版本 ===<br />
<br />
* '''[[Ubuntu:Feisty|7.04 (Feisty Fawn)]]'''<br />
<br />
* '''[[Ubuntu:Edgy|6.10 (Edgy Eft)]]'''<br />
<br />
* '''[[Ubuntu dapper|6.06 (Dapper Drake)]]'''<br />
<br />
If you are using an outdated version of Ubuntu, you should consider updating it to Gutsy. There have been considerable improvements to this version, and the updater used in Gutsy will ease transitions to future versions. If you are in a production environment, or if everything works perfectly for you, you may wish to stay with a Long-Term Support (LTS) version.<br />
<br />
如果您试用一个 Ubuntu 的过时的版本,您应该考虑将其升级到 Gutsy。 这个版本有相当多的改进,并且和将来的版本更加容易整合。如果您使用其作为一个生产环境,或您认为所有的事情都很完美,您可以考虑仍然使用长期支持版本(LTS)。<br />
<br />
* [http://www.ubuntu.com/getubuntu/upgrading Ubuntu 升级页面]<br />
<br />
* Dapper is latest LTS and the next version Gutsy+1 will be the next LTS released.<br />
<br />
* Read [https://lists.ubuntu.com/archives/ubuntu-devel-announce/2007-April/000276.html Introduction to Gutsy Gibbon] from April 2007<br />
<br />
* Dapper 是最新的 LTS 版本,Gutsy+1 的新版本将是下一个 LTS 版本。<br />
<br />
* 读一下从 2007 年 4 月开始的[https://lists.ubuntu.com/archives/ubuntu-devel-announce/2007-April/000276.html Gutsy Gibbon 简介]<br />
<br />
=== General Notes ===<br />
<br />
# 这是一个非官方的 Ubuntu 7.10 (Gutsy Gibbon) 初学者向导. 它与 Ubuntu和 Canonical 公司都没有关系.<br />
# 这个向导发自于官方论坛([http://www.ubuntuforums.org/forumdisplay.php?f=78 UbuntuGuide.org Forum] at ubuntuforums.org).欢迎参与讨论。<br />
# If you see a bluish box, this means you have to execute the commands in Terminal mode (Applications -&gt; Accesories -&gt; Terminal) or use the content of that box as mentioned in some other instructions.<br />
# 在终端模式,你也可以用“复制”“粘贴”来代替用键盘键入命令,这样往往可以有效的防止输入错误。(Ctrl+c=复制,Shift+Insert=粘贴)<br />
# "sudo" 表示 "'''s'''ubstitute '''u'''ser '''do'''". Sudo 需要你提供密码(密码不会在终端中回显). 你可以利用sudo代替另一个用户在计算机上操作-比如&nbsp; sudo -u peter &lt;命令&gt; 将会以peter的身份在计算机上执行此命令。<br><br />
# 欲获得更多关于命令的信息,请参阅手册页。例如,在终端中输入“man sudo”可以获得与sudo相关的信息。<br />
# 你也可以使用更新管理器来代替"apt-get"(系统-系统管理-更新管理器)<br />
# "apt-get"和"wget"都需要网络连接来下载安装和更新程序<br><br />
# 所以涉及 "aptitude"的选项都可以用"apt-get"替代.当然可以继续使用"aptitude",但是这可能会造成一些依赖性上的问题。<br><br />
# 可以点击右键选择“链接另存为”来下载文件,但必须保证文件的名字和拓展名都是正确的<br />
# 如果你有意向帮助Ubuntu本土化,请访问 https://launchpad.net/<br />
# 善待他人的理念永远和Ubuntu一起伴随着你...<br />
# ''如果使用的是64位的版本,请在“i386”用“amd64”代替''<br />
<br />
=== 外部链接申明 ===<br />
<br />
这份指南中的很多部分都有外部链接,这可以使这份指南更加精悍,然而Ubuntugide.org不能保证每个链接都是有效的。我们不能对本指南以外的一些拓展链接负责,如果你发现哪个链接是无效的,那请在此处报告问题,或者为我们修正那些指向错误的外部链接。因为有你,我们才能做的更加完美。<br />
<br />
==== ''关于链接出错'' ====<br />
<br />
''如果您发现某个链接是错误的或者无法找到相关信息,那请将此连接贴到此处,包括您是在哪段里找到此链接的。谢谢合作!''<br />
<br />
=== 关于Ubuntu以及官方的一些相关内容<br> ===<br />
<br />
==== Ubuntu 7.10的相关指导 ====<br />
<br />
* [http://www.ubuntu.com/ Ubuntu官方网站]<br />
* [http://www.ubuntu.com/products/whatisubuntu 官方介绍关于Ubuntu]<br />
* [http://ubuntuforums.org/ Ubuntu官方论坛]<br />
* [http://en.wikipedia.org/wiki/Ubuntu_(Linux_distribution) 维基百科: Ubuntu版本介绍 (Linux 发行版)]<br />
* [http://www.ubuntugeek.com/ Ubuntu Geek 网站包括很多关于Ubuntu 的指导性文章]<br />
* [http://www.ubuntutips.net/ Ubuntu小窍门]<br />
<br />
<br><br />
<br />
===== Ubuntu截图 =====<br />
<br />
[http://www.debianadmin.com/ubuntu-710-gutsy-gibbon-screenshots-tour.html Ubuntu 7.10 截图展示&nbsp;]<br />
<br />
==== Kubuntu 7.10的相关指导<br> ====<br />
<br />
* [http://www.kubuntu.org/ Kubuntu官方网站]<br />
* [http://www.kubuntuguide.org/ Kubuntuguide.org]<br />
* [http://www.kubuntu.org/docs/about-kubuntu/C/index.html 官方介绍关于Kubuntu]<br />
* [http://kubuntuforums.net/forums/index.php Kubuntu官方论坛]<br />
* [http://en.wikipedia.org/wiki/Kubuntu Wikipedia: Kubuntu]<br />
<br />
===== Kubuntu Screenshots =====<br />
<br />
[http://www.debianadmin.com/kubuntu-710-gutsy-gibbon-screenshots-tour.html Kubuntu 7.10 Screenshots Gallery]<br />
<br />
==== Xubuntu 7.10 Guides and Links ====<br />
<br />
* [http://www.xubuntu.org/ Xubuntu Official Website]<br />
* [http://en.wikipedia.org/wiki/Xubuntu Wikipedia: Xubuntu]<br />
* [http://www.xubuntuguide.org Xubuntuguide.org]<br />
<br />
===== Xubuntu Screenshots =====<br />
<br />
[http://www.debianadmin.com/xubuntu-710-gutsy-gibbon-screenshots-tour.html Xubuntu 7.10 Screenshots Gallery]<br />
<br />
==== Edubuntu 7.10 Guides and Links ====<br />
<br />
[http://www.edubuntu.org/ Offical Edubuntu Website] [http://en.wikipedia.org/wiki/Edubuntu Wikipedia: Edubuntu]<br />
<br />
==== Gobuntu 7.10 Guides and Links ====<br />
<br />
[http://en.wikipedia.org/wiki/Gobuntu Wikipedia: Gobuntu]<br />
<br />
=== 翻译和本地化 ===<br />
<br />
Chinese, Japanese, Portuguese and most European languages have better support in Ubuntu than any other languages. If your language do not have enough support, then you can help Ubuntu by translating it in your preferred language. To translate, visit https://translations.launchpad.net/ubuntu and login (register if not already registered). Choose your preferred language and start translating.<br />
<br />
Ubuntu对中文,日文,葡萄牙文及其它的欧洲语言的支持比对其它语言的支持要好。如果你的语言没有足够的支持的话,那么您可以帮助Ubuntu翻译成你喜欢的语言。翻译请访问 [https://translations.launchpad.net/ubuntu translations.launchpad.net/ubuntu] 并登录(如果没有注册的话请先注册)。选择你喜欢的语言并开始翻译。<br />
<br />
== '''''更新升级和安装软件''''' ==<br />
<br />
=== 怎样加入新的软件仓库 ===<br />
<br />
''Work in Progress''<br />
<br />
==== 使用菜单 ====<br />
<br />
* Choose distribution-friendly repositories. These are part of the Ubuntu distribution system. This is the recommended method.<br />
<br />
* 选择版本友好的软件仓库。这是Ubuntu发行系统的一部分。这是推荐的方法。<br />
<br />
System--&gt;Administration--&gt;Software Sources<br />
<br />
系统--&gt;管理--&gt;软件源<br />
<br />
Check the repositories you think you will need (main, universe, restricted, multiverse). You probably won't need the 'sources' repository.<br />
<br />
检查你认为你将要用到的软件仓库(main, universe, restricted, multiverse)。你可能不需要源码软件仓库。<br />
<br />
* Add any third-party repositories. Such repositories are not monitored in any way. Some are quite popular, however. Use any third-party repository at your own risk.<br />
<br />
* 增加第三方软件仓库。这些软件仓库不会被监视,然而,有些十分流行。使用第三方软件仓库会增加你的风险。<br />
<br />
System--&gt;Administration--&gt;Software Sources--&gt;Third-party software--&gt;Add<br />
<br />
系统--&gt;管理--&gt;软件源--&gt;第三方软件--&gt;加入<br />
<br />
Add the name of your repository. In this example, we will use Medibuntu, a popular third-party repository not affiliated with Ubuntu in any way.<br />
<br />
为你的软件仓库命名。在这个例子中,我们将要用Medibuntu,一个十分流行但是没有被Ubuntu接纳的软件仓库。<br />
<br />
''APT line:'' deb http://packages.medibuntu.org/ gutsy free non-free<br />
<br />
* Download any needed gpg keys and add them to the keylist. This key verifies the repository to your system. The Medibuntu repository (not affiliated with Ubuntu) example is shown:<br />
<br />
wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add -<br />
<br />
==== 手动方法 ====<br />
<br />
* Create a backup of your current list of sources.<br />
<br />
* 备份你现有的软件源列表<br />
<br />
sudo cp -p /etc/apt/sources.list /etc/apt/sources.list_backup<br />
<br />
* Open the list of sources in a text editor<br />
<br />
* 用一个文本编辑器打开软件源列表<br />
<br />
Ubuntu users:<br />
<br />
Ubuntu用户:<br />
<br />
sudo gedit /etc/apt/sources.list<br />
<br />
* Replace everything with the following lines<br />
<br />
* 用下面的行复盖所有<br />
<br />
:To use your local mirror you can add "''cc.''" before ''archive.ubuntu.com'' (cc = your country code)<br />
:e.g. ''<nowiki>deb http://lv.archive.ubuntu.com/ubuntu gutsy main restricted universe multiverse</nowiki>''<br />
<br />
deb http://us.archive.ubuntu.com/ubuntu/ gutsy main restricted<br />
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy main restricted<br />
<br />
## Major bug fix updates produced after the final release of the<br />
## distribution.<br />
<br />
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted<br />
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted<br />
<br />
##Universe<br />
<br />
deb http://us.archive.ubuntu.com/ubuntu/ gutsy universe<br />
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy universe<br />
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates universe<br />
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates universe<br />
<br />
## Multiverse<br />
<br />
deb http://us.archive.ubuntu.com/ubuntu/ gutsy multiverse<br />
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy multiverse<br />
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates multiverse<br />
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates multiverse<br />
<br />
## Backports<br />
<br />
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse<br />
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse<br />
<br />
## Canonical Partner Repository <br />
<br />
deb http://archive.canonical.com/ubuntu gutsy partner<br />
deb-src http://archive.canonical.com/ubuntu gutsy partner<br />
deb http://security.ubuntu.com/ubuntu gutsy-security main restricted<br />
deb-src http://security.ubuntu.com/ubuntu gutsy-security main restricted<br />
deb http://security.ubuntu.com/ubuntu gutsy-security universe<br />
deb-src http://security.ubuntu.com/ubuntu gutsy-security universe<br />
deb http://security.ubuntu.com/ubuntu gutsy-security multiverse<br />
deb-src http://security.ubuntu.com/ubuntu gutsy-security multiverse<br />
<br />
## PLF REPOSITORY (Unsupported. May contain illegal packages. Use at own risk.)<br />
deb http://packages.medibuntu.org/ gutsy free non-free<br />
<br />
* Save the edited file<br />
<br />
* 保存编辑好的文件<br />
<br />
wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add -<br />
sudo apt-get update<br />
<br />
=== 怎样从Feisty 升级到 Gutsy ===<br />
<br />
* [http://www.ubuntugeek.com/upgrade-ubuntu-704-feisty-fawn-to-ubuntu-710-gutsy-gibbon.html 一步一步地按照屏幕显示的升级向导把Ubuntu Feisty 升级到 Gutsy]<br />
<br />
=== How to edit Automatic Updates ===<br />
<br />
* Enable automatic updates from the menu:<br />
<br />
System--&gt;Administration--&gt;Software Sources--&gt;Updates<br />
<br />
Select Important Security Updates and Recommended Security Updates and any other desired updates. Choose frequency of updates.<br />
<br />
=== How to manually update Ubuntu ===<br />
<br />
* Read [[|#General Notes]]<br />
* Read [[|#How to add extra repositories]]<br />
<br />
* From the command line:<br />
<br />
use http://www.ubuntu-nl.org/source-o-matic/ page to generate the /etc/apt/sources.list file<br />
<br />
take a backup of your existing /etc/apt/sources.list file<br />
<br />
create a new /etc/apt/sources.list file from the generated page available on the browser<br />
<br />
now run the following commands<br />
<br />
sudo apt-get update<br />
sudo apt-get upgrade<br />
sudo apt-get dist-upgrade<br />
<br />
* From the menu:<br />
<br />
System -&gt; Administration -&gt; Update Manager<br />
<br />
== '''''Add-on Applications''''' ==<br />
<br />
=== Miscellaneous Applications ===<br />
<br />
''The application in this section need a home. If Editors have the time, please place these apps in an appropriate category. If the category doesn't exist then make it. Destroy this message when complete. Thanks. --[[User:KrazyPenguin|KrazyPenguin]] 06:16, 27 October 2007 (EEST)''<br />
<br />
==== Hotwire - Graphical terminal for Ubuntu ====<br />
<br />
If you want graphical terminal for Ubuntu check this Very Useful<br />
<br />
* [http://www.ubuntugeek.com/hotwire-graphical-terminal-for-ubuntu.html Hotwire Installation Guide]<br />
<br />
==== How to install Epiphany web browser in Ubuntu ====<br />
<br />
If you want to How to install Epiphany web browser in Ubuntu follow this procedure<br />
<br />
* [http://www.ubuntugeek.com/how-to-install-epiphany-web-browser-in-ubuntu.html Epiphany web browser in Ubuntu]<br />
<br />
==== Midori - a lightweight web browser in Ubuntu ====<br />
<br />
If you want to How to install Midori web browser in Ubuntu follow this procedure<br />
<br />
* [http://www.ubuntugeek.com/midori-a-lightweight-web-browser.html Midori web browser in Ubuntu]<br />
<br />
==== apturl - protocol handler in Ubuntu Gutsy Gibbon ====<br />
<br />
If you want to install ubuntu package from web browser here is simple tool<br />
<br />
* [http://www.ubuntugeek.com/apturl-protocol-handler-in-ubuntu-gutsy-gibbon.html apturl Setup guide]<br />
<br />
==== sysvconfig - utility for configuring init script links ====<br />
<br />
sysvconfig - utility for configuring init script links,service command in ubuntu<br />
<br />
* [http://www.ubuntugeek.com/sysvconfig-utility-for-configuring-init-script-links.html sysvconfig - utility for configuring init script links]<br />
<br />
==== Howto Install qBittorrent in Ubuntu Gutsy ====<br />
<br />
sysvconfig - utility for configuring init script links,service command in ubuntu<br />
<br />
* [http://www.ubuntugeek.com/howto-install-qbittorrent-in-ubuntu-gutsy.html Howto Install qBittorrent in Ubuntu Gutsy]<br />
<br />
==== Enable Drag and Drop capabilities to aMSN ====<br />
<br />
* [http://www.ubuntugeek.com/how-to-enable-drag-and-drop-capabilities-to-amsn.html Enable Drag and Drop capabilities to aMSN]<br />
<br />
==== Mount/Unmount .iso Images in oneclick ====<br />
<br />
* [http://www.ubuntugeek.com/easy-way-of-mountunmount-iso-images-in-ubuntu.html Mount/Unmount .iso Images in oneclick in Ubuntu]<br />
<br />
==== Startup Manager ====<br />
<br />
StartUp Manager - change settings in Grub, Grub2 and Usplash<br />
<br />
* [http://www.ubuntugeek.com/startup-manager-change-settings-in-grub-grub2-and-usplash.html change settings in Grub, Grub2 and Usplash]<br />
<br />
==== Adobe Reader Gutsy amd64/i386 ====<br />
<br />
* [http://www.ubuntugeek.com/how-to-install-adobe-pdf-reader-811-with-plug-in-for-mozilla-firefox-in-gutsy-gibbon.html Acrobat Reader 8 with firefox plugins step by step installation guide]<br />
<br />
First<br />
<br />
echo "deb http://packages.medibuntu.org/ gutsy free non-free" | sudo tee -a /etc/apt/sources.list<br />
<br />
Second<br />
<br />
wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add - &amp;&amp; sudo apt-get update<br />
<br />
Third we add plug ins and Reader<br />
<br />
sudo aptitude install acroread acroread-plugins acroread-escript<br />
<br />
You can also install the plug-in for Firefox<br />
<br />
sudo aptitude install mozilla-acroread<br />
<br />
Enjoy Adobe Reader<br />
<br />
==== OpenOffice add ons ====<br />
<br />
Opening .docx files in OpenOffice for Ubuntu (This will work with other distros)<br />
<br />
First we need to download the converter, it can be found here&gt; [http://download.novell.com/SummaryFree.jsp?buildid=ESrjfdE4U58%7E] Download the "odf-converter-1.0.0-5.i586.rpm"<br />
<br />
Now install alien, if you have not yet<br />
<br />
sudo apt-get install alien<br />
<br />
Then we need to convert it, we do not want a .deb package for this, so we use the -ct switch not the -k The -ct converts it to a .tgz<br />
<br />
sudo alien -ct odf-converter-1.0.0-5.i586.rpm<br />
<br />
Once it is converted you need to unpack it<br />
<br />
tar xvf odf-converter-1.0.0.tgz<br />
<br />
Now there should be three dirs on you desktop or where ever you un tared these.<br />
<br />
You now need to run<br />
<br />
sudo cp usr/lib/ooo-2.0/program/OdfConverter /usr/lib/openoffice/program/<br />
<br />
sudo cp usr/lib/ooo-2.0/share/registry/modules/org/openoffice/TypeDetection/Filter/MOOXFilter_cpp.xcu /usr/lib/openoffice/share/registry/modules/org/openoffice/TypeDetection/Filter<br />
<br />
sudo cp usr/lib/ooo-2.0/share/registry/modules/org/openoffice/TypeDetection/Types/MOOXTypeDetection.xcu /usr/lib/openoffice/share/registry/modules/org/openoffice/TypeDetection/Types<br />
<br />
Then you are done, you can now open and edit .docx files '''ONLY''' I will post the others when I find them.<br />
<br />
There is an alternative to installing the "odf converter" on Ubuntu 7.10 (Gutsy). The 3 simple steps are as follows:<br />
<br />
(make sure you are logged in as root first, so from the terminal, type '''sudo su -''' and type in your password when prompted)<br />
<br />
Step 1: echo "deb http://ubuntu.org.ua/ getdeb/" &gt;&gt;/etc/apt/sources.list<br />
<br />
Step 2: apt-get update<br />
<br />
Step 3: apt-get install odf-converter<br />
<br />
I did the 3 steps above and got it working on my machine. Please do let me know if anyone is having any problems with it.<br />
<br />
==== Genealogical Research and Analysis Management Program (Gramps) ====<br />
<br />
GRAMPS, the Genealogical Research and Analysis Management Programming System, is an Open Source genealogy program written in Python, using the GTK/GNOME interface. GRAMPS has the ability to import GEDCOM files that are used in such programs as FamilyTree Maker for Windows and can produce reports in various formats such as the popular ABIWord and OpenOffice.org formats as well as HTML and PDF.<br />
<br />
sudo apt-get install gramps<br />
<br />
=== 桌面 ===<br />
<br />
==== Howto Tweak Ubuntu System ====<br />
<br />
If you want to tweak ubuntu check this<br />
<br />
* [http://www.ubuntugeek.com/howto-tweak-ubuntu.html Howto Tweak Ubuntu System]<br />
<br />
==== AMOR - a creature for your desktop ====<br />
<br />
If you want to add some fun to your ubuntu desktop this is for you<br />
<br />
* [http://www.ubuntugeek.com/amor-a-creature-for-your-desktop.html AMOR - a creature for your desktop]<br />
<br />
==== Advanced Desktop Effects (Compiz Fusion) ====<br />
<br />
Ubuntu 7.10 Gutsy Gibbon comes shipped with Compiz Fusion pre-installed, which means less tinkering with sensitive configuration files. For most part, Compiz needs proprietary drivers for your graphics card to work properly, so make sure you install those if needed.<br />
<br />
To enable desktop effects, turn them on by navigating your GNOME-menu to '''System &gt; Preferences &gt; Appearance'''. Under the tab ''Visual Effects'' you'll find three settings; ''None'', ''Normal'' and ''Extra''. To turn Compiz on, choose one of the two latter.<br />
<br />
If you wish to customize your Compiz options and plugins, such as animations and Desktop Cube, first install the configuration tool:<br />
<br />
sudo apt-get install [http://packages.ubuntu.com/gutsy/x11/compizconfig-settings-manager compizconfig-settings-manager] <br />
<br />
Then either choose the now available '''''Custom''''' and '''''Preferences''''' from the above ''Visual Effects'' menu, or start the settings manager via the menu '''System &gt; Preferences &gt; Advanced Desktop Effects Settings'''. You can also start the application from the terminal or run dialog ('''ALT + F2'''), using the command '''ccsm'''.<br />
<br />
==== ATI users and Compiz ====<br />
<br />
Some ATI cards don't need their proprietary drivers to work with Compiz as the open-sourced driver ('''radeon''') also has support for 3D acceleration. However, the open-sourced driver isn't as fast as the closed-sourced ('''fglrx''') one, so if you need the proprietary one you'll have to tinker around in the terminal a little.<br />
<br />
<br> 1. After you've installed the driver, either through the proprietary manager or directly from [http://ati.amd.com/support/driver.html ATI's site], you'll have to setup the Xorg configuration file to work with your new driver. Always remember to back up the original file before altering, in case something goes wrong. Open up a terminal and enter:<br />
<br />
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.bak<br />
sudo aticonfig --initial --input=/etc/X11/xorg.conf<br />
<br />
This will disable the default '''radeon''' driver and replace it with ATI's own.<br />
<br />
<br> 2. Now, let's tell Compiz not to care about drivers that are blacklisted:<br />
<br />
echo SKIP_CHECKS="yes" &gt;&gt; $HOME/.config/compiz/compiz-manager<br />
<br />
Alternatively, you could whitelist the driver, which is a much prettier solution. Run this command to edit the Compiz startup-script:<br />
<br />
gksudo gedit /usr/bin/compiz<br />
<br />
Search for '''Driver whitelist''' and add '''''fglrx''''' to the end of the line, like this:<br />
<br />
# Driver whitelist<br />
WHITELIST="nvidia intel ati radeon i810 fglrx"<br />
<br />
<br> 3. Reboot your computer, login and enable Compiz as mentioned above '''et voilà'''! Behold Compiz and ATI hugging.<br />
<br />
==== Live system monitoring ====<br />
<br />
sudo apt-get install netspeed<br />
<br />
Right click on the free area of the upper panel and select "Add to Panel...". Add "System Monitor" and "Network Monitor". Right Click on System Monitor and select Preferences. Add the monitor resources that you want to monitor.<br />
<br />
==== Desktop session recording ====<br />
<br />
It is possible to record the whole desktop session along with mouse pointer and sound system. It is a very useful tool for video screenshot as ordinary still picture screenshots generated by pressing Print Screen cannot demonstrate everything. Three applications that can do this for you are Istanbul, Wink and gtk-recordMyDesktop.<br />
<br />
====== Istanbul ======<br />
<br />
sudo apt-get install istanbul<br />
<br />
====== Wink ======<br />
<br />
sudo apt-get install wink<br />
<br />
====== gtk-recordMyDesktop ======<br />
<br />
sudo apt-get install gtk-recordmydesktop<br />
<br />
==== International Clock Gnome Applet (OpenSuse contribution) ====<br />
<br />
To switch to the new international clock applet download it from [http://brainstormingproject.free.fr/intlclock_1.0-1ubuntu0_i386.deb Here] <!--{11990239384210} --> then install it with dpkg. <!--{11990239384211} --><br />
<br />
Remove the old clock gnome applet right-clicking on it and then add a new applet to the panel with a right-click too over the empty place:<br />
<br />
&gt;Add to panel...&gt;Miscellaneous&gt;International Clock&gt;Add<br />
<br />
You got it.<br />
<br />
Add World Map and choose World locations using its Preferences menu<br />
<br />
=== 备份 ===<br />
<br />
Ubuntu Backup Options If you want to backup your Ubuntu Desktop Use Sbackup<br />
<br />
* [http://www.ubuntugeek.com/backup-and-restore-your-ubuntu-system-using-sbackup.html Sbackup Installation and setup guide]<br />
<br />
rdiff-backup Use rdiff-backup ubuntu<br />
<br />
* [http://www.ubuntugeek.com/backup-ubuntu-using-rdiff-backup.html rdiff-backup Setp Tutorial]<br />
<br />
=== 游戏 ===<br />
<br />
==== Frozen Bubble ====<br />
<br />
To install Frozen Bubble simply run:<br />
<br />
sudo apt-get install frozen-bubble<br />
<br />
or use Synaptic Package Manager under System &gt; Administration menu, to locate and install the package.<br />
<br />
==== How to solve Sudoku ====<br />
<br />
There is a simple [http://tamal.nath.googlepages.com/sudoku.pl Perl script] for solving gnome-sudoku. It does not support trial-and-error.<br />
<br />
==== Super Nintendo Emulator (ZSNES) 1.510 for i386/AMD64 ====<br />
<br />
* Read [[|#General Notes]]<br />
<br />
''For support or questions see http://ubuntuforums.org/showthread.php?t=588744''<br />
<br />
''ZSNES 1.51 is included in the Official Gutsy i386 repos. However, there is no official AMD64 version, and the i386 version is known to have issues in Gutsy (see http://ubuntuforums.org/showthread.php?t=571666). There is a workaround available for i386 users who are experiencing this error (see http://ubuntuforums.org/showpost.php?p=3604026&amp;postcount=22).''<br />
<br />
* Add a 3rd Party Repository<br />
<br />
echo "deb http://packages.dfreer.org gutsy main" | sudo tee -a /etc/apt/sources.list<br />
wget http://packages.dfreer.org/7572013D.gpg -O- | sudo apt-key add -<br />
sudo apt-get update<br />
<br />
* Install using one of the lines below<br />
<br />
sudo apt-get install zsnes32 #for amd64 users<br />
sudo apt-get install zsnes #for everyone else<br />
<br />
* Applications &gt; Games &gt; zsnes or zsnes32<br />
<br />
==== Playstation Emulator (pSX) 1.13 for i386/AMD64 ====<br />
<br />
* Read [[|#General Notes]]<br />
<br />
''For support or questions see http://ubuntuforums.org/showthread.php?t=394097''<br />
<br />
* Add a 3rd Party Repository<br />
<br />
echo "deb http://packages.dfreer.org gutsy main" | sudo tee -a /etc/apt/sources.list<br />
wget http://packages.dfreer.org/7572013D.gpg -O- | sudo apt-key add -<br />
sudo apt-get update<br />
<br />
* Install using one of the lines below<br />
<br />
sudo apt-get install psx32 #for amd64 users<br />
sudo apt-get install psx #for everyone else<br />
<br />
* Applications &gt; Games &gt; pSX or pSX32<br />
<br />
==== KDE games ====<br />
<br />
To install the games from KDE 3 (recommended for Kubuntu users), install the package kdegames. This can be done with:<br />
<br />
sudo apt-get install kdegames<br />
<br />
==== UrbanTerror 4.0 ====<br />
<br />
* UrbanTerror 4.0 is a Multi-player First Person Shooter. The Game uses the open source quake 3 engine and features many real weapons and free to use servers for multi-player functionality.<br />
<br />
''More information can be found at [http://www.urbanterror.net UrbanTerror]''<br />
<br />
* You can manually download and install UrbanTerror from the following webpage [http://www.urbanterror.net/page.php?6 UrbanTerror_Download]<br />
* Or you can enjoy an automated install by downloading and executing the linux install script from either of the following links: [http://89.106.68.26/linux/urbanterror4/urt40-linux-installer.sh urt40-linux-installer.sh_1] or [http://vlaai.snt.utwente.nl/pub/games/urbanterror/urt40-linux-installer.sh urt40-linux-installer.sh_2]<br />
<br />
* After downloading the script open Terminal into your download directory then make the script executable with the following command:<br />
<br />
sudo chmod +x urt40-linux-installer.sh<br />
<br />
* Now double click on the script to execute and follow the directions<br />
* The install will take awhile as the script executes a download of the necessary files which are about 541MB<br />
* After the install you will have a nice UrbanTerror icon on your desktop (unless you installed as root)<br />
<br />
''This easy install script is courtesy of Nexu from the UrbanTerror Forums.''<br />
<br />
=== CD/DVD ===<br />
<br />
==== How to rip a DVD video ====<br />
<br />
dvd::rip is a full featured DVD copy program written in Perl. It provides an easy to use but feature-rich Gtk+ GUI to control almost all aspects of the ripping and transcoding process. It uses the widely known video processing swissknife transcode and many other Open Source tools.<br />
<br />
sudo apt-get install dvdrip<br />
<br />
==== How to burn video DVD ====<br />
<br />
dvdauthor is a program that will generate a DVD movie from a valid mpeg2 stream that should play when you put it in a DVD player.<br />
<br />
sudo apt-get install dvdauthor<br />
<br />
==== How to burn a CD/DVD ====<br />
<br />
nautilus-cd-burner is a basic and pre-installed program to write a CD or DVD. Serpentine is a pre-installed audio CD creator program. Serpentine can convert flac and mp3 on the fly, when making audio cds. [http://www.nero.com/ena/linux3.html nerolinux] is a non-free CD/DVD/Blu-Ray/HD-DVD recorder. k3b is a great CD/DVD writing tool for KDE (ideal for Kubuntu users). But if you are looking for GTK/Gnome alternatives, then [http://packages.ubuntu.com/gutsy/gnome/brasero brasero], [http://packages.ubuntu.com/gutsy/otherosfs/gcdw cdw/gcdw], [http://packages.ubuntu.com/gutsy/sound/gcdmaster gcdmaster], [http://packages.ubuntu.com/gutsy/gnome/graveman graveman] and [http://packages.ubuntu.com/gutsy/gnome/gnomebaker gnomebaker] might impress you.<br />
<br />
[http://packages.ubuntu.com/gutsy/otherosfs/dvdisaster dvdisaster] provides a margin of safety against data loss on CD and DVD media caused by scratches or aging media. It creates error correction data which is used to recover unreadable sectors if the disc becomes damaged at a later time.<br />
<br />
=== 互联网 ===<br />
<br />
==== Browser Plug-ins ====<br />
<br />
Ubuntu automatically installs plug-ins required to browse a site in Firefox. But if you want to install plug-ins run the following in Terminal:<br />
<br />
For Java plug-in:<br />
<br />
sudo apt-get install sun-java6-plugin<br />
<br />
For Flash plug-in:<br />
<br />
sudo apt-get install flashplugin-nonfree<br />
<br />
Or if you want to support the open source flash plugin:<br />
<br />
sudo apt-get install mozilla-plugin-gnash<br />
<br />
For VLC plug-in (automatically installs VLC also):<br />
<br />
sudo apt-get install mozilla-plugin-vlc<br />
<br />
For MPlayer plug-in (automatically installs MPlayer also):<br />
<br />
sudo apt-get install mozilla-mplayer<br />
<br />
For Real player plug-in (automatically installs helix-player):<br />
<br />
sudo apt-get install mozilla-helix-player<br />
<br />
For kaffeine plug-in (automatically installs kaffeine also):<br />
<br />
sudo apt-get install kaffeine-mozilla<br />
<br />
For image-zoom plug-in (to zoom images in a page):<br />
<br />
sudo apt-get install mozilla-imagezoom<br />
<br />
For adblock plug-in (to block ads in a web page):<br />
<br />
sudo apt-get install mozilla-firefox-adblock<br />
<br />
Gutsy includes the option to add extensions to Firefox through the Ubuntu repositories. The option to add these extensions is included by default. To see and add Ubuntu Add-ons:<br />
<br />
* In Firefox, Go to Tools &gt; Add-ons<br />
* Click "Get Ubuntu Addons"<br />
* To see all available add-ons, click the list next to "Show:" and choose "All Available Applications"<br />
* Choose whichever add-ons you want, and click "Apply Changes"<br />
* You can see which add-ons you've installed in the normal Firefox add-on box.<br />
<br />
(Note: All Ubuntu add-ons are also available through the Synaptic package manager.)<br />
<br />
===== Shockwave =====<br />
<br />
''There is no version of Shockwave for Ubuntu/Linux but WINE can be used to run it.'' ''This method will result in 2 Firefox Browsers installed on the computer.'' ''Only use the WINE version when using a website that requires it.'' ''The native version of Firefox will give better computer performance, so it should used in all other occurrences.''<br />
<br />
* Install WINE<br />
* Download and install Firefox for Windows<br />
* Download and install Shockwave for Windows<br />
<br />
==== Download Manager (Downloader for X) ====<br />
<br />
To install Downloader for X simply run:<br />
<br />
sudo apt-get install d4x<br />
<br />
or use Synaptic Package Manager under System &gt; Administration menu, to locate and install the "d4x" package.<br />
<br />
==== FTP client (FileZilla) ====<br />
<br />
FileZilla is a powerful FTP client that came from windows enviroment. Reaching its third version it became cross-platform and is available through the Ubuntu Gutsy Repositories.<br />
<br />
To install FileZilla FTP client simply run:<br />
<br />
sudo apt-get install filezilla<br />
<br />
or use Synaptic Package Manager under System &gt; Administration menu, to locate and install the "filezilla" package.<br />
<br />
==== Configuring Evolution for Gmail ====<br />
<br />
Visit http://mail.google.com/mail/ and click settings (should be in top right corner). Select Forwarding and POP/IMAP.<br />
<br />
* If you want to use POP, select either "Enable POP for all mail (even mail that's already been downloaded)" or "Enable POP only for mail that arrives from now on".<br />
* If you want to use IMAP, select "Enable IMAP".<br />
<br />
Save changes.<br />
<br />
Open Evolution from Applications -&gt; Internet -&gt; Evolution Mail. If no mail account has been created before, a mail account setup wizard will automatically be opened. Otherwise open it from Edit -&gt; preferences -&gt; Mail Accounts -&gt; Add. Click Forward. Enter your email address for Gmail (including @gmail.com). Click Forward.<br />
<br />
* If you have enabled POP from Gmail set "Server Type" to POP, "Server" to pop.gmail.com, and "Use Secure Connection" to "SSL encryption".<br />
* If you have enabled IMAP from Gmail, set "Server Type" to IMAP, "Server" to imap.gmail.com, and "Use Secure Connection" to "SSL encryption".<br />
<br />
Click Forward. Click Forward. Set "Server" to smtp.gmail.com, and "Use Secure Connection" to "SSL encryption". Click Forward. Click Forward. Click Apply.<br />
<br />
Note that IMAP support for GMAIL is being rolled-out currently (Oct. 2007) but is not available to everyone with a GMAIL account yet. So use POP until IMAP is available for every user.<br />
<br />
==== SwiftFox ====<br />
<br />
Swiftfox is the Firefox web browser, but built with optimizations to increase speed on specific CPU types. It is compatible with all Firefox extensions and themes, and uses the same settings location as Firefox, so you can use both transparently.<br />
<br />
Instructions from [http://getswiftfox.com/debian.htm getswiftfox.com]<br />
<br />
* Add the Swiftfox repository<br />
<br />
sudo gedit /etc/apt/sources.list<br />
<br />
* Add this line at the bottom<br />
<br />
deb http://getswiftfox.com/builds/debian unstable non-free<br />
<br />
* Update apt sources<br />
<br />
sudo apt-get update<br />
<br />
* Check your CPU compatibility [http://getswiftfox.com/proc.htm here]<br />
* Install your version of Swiftfox<br />
<br />
sudo apt-get install swiftfox-pentium4<br />
<br />
* Run with<br />
<br />
Programs &gt; Internet &gt; Swiftfox<br />
<br />
* There is also an [[http://www.getswiftfox.com/installer.htm installer]] available that is distro independent. It is a script that downloads and installs Swiftfox in the /opt directory and attempts to use existing Firefox plugins. The installer is probably the best way for most non-Ubuntu and non-Debian users to install Swiftfox.<br />
<br />
==== Azureus (Java BitTorrent client) ====<br />
<br />
The simplest way to install Azureus is:<br />
<br />
sudo apt-get install [http://packages.ubuntu.com/gutsy/net/azureus azureus] <br />
<br />
But it has lots of dependencies. An alternate method is discussed [http://azureus.sourceforge.net/howto_linux.php here]. Additionally you can create a file /usr/share/applications/Azureus.desktop containing the following lines to make it appear in the main menu:<br />
<br />
[Desktop Entry]<br />
Encoding=UTF-8<br />
Type=Application<br />
Terminal=false<br />
Name=Azureus<br />
Exec=/usr/local/azureus/azureus<br />
Comment=Java BitTorrent client<br />
Categories=Application;Network;<br />
MimeType=application/x-bittorrent;<br />
Icon=/usr/local/azureus/Azureus.png<br />
<br />
(here it is assumed that azureus is installed in /usr/local directory)<br />
<br />
Update: A brand-new Azureus package is now available in gutsy-backports, which is highly preferable to the version in the main repositories. It fixes many stability problems and is compiled using icedtea/Java 7. By the time you read this, it may be available in the main repositories. Therefore you might want to make sure you have the gutsy-backports repository enabled before installing azureus via apt-get.<br />
<br />
==== Deluge (A lightweight BitTorrent client written in python) ====<br />
<br />
If you want a client with lower memory and CPU usage than Azureus you might want to try out Deluge. However, due to stability problems with the version available in the [http://packages.ubuntu.com/gutsy/net/deluge-torrent Ubuntu repository], it's probably better to install the latest version using the handy Gutsy-specific package from [http://deluge-torrent.org/downloads-ubuntu the official Deluge website]. To install, just click on the debian package for your version and architecture ('''i386''' for 32-bit systems and '''x86_64''' for 64-bit systems) and choose to run it with GDebi package installer.<br />
<br />
==== DC++ client (Linuxdcpp) ====<br />
<br />
* Install:<br />
<br />
sudo apt-get install linuxdcpp<br />
<br />
* Then go<br />
<br />
Main Menu-&gt;Intenet-&gt;DC++<br />
<br />
=== 多媒体播放器 ===<br />
<br />
==== 怎样安装 Mplayer 和 Multimedia Codecs(解码器) ====<br />
<br />
&nbsp;&nbsp; 安装 mplayer 和 codecs的简单向导<br />
<br />
* [http://www.ubuntugeek.com/install-mplayer-and-multimedia-codecs-libdvdcss2w32codecs-in-ubuntu-710-gutsy-gibbon.html Mplayer 和 Multimedia Codecs的安装指导手册]<br />
<br />
* 从[http://sourceforge.net/project/showfiles.php?group_id=185512 这里] 下载 [http://smplayer.sourceforge.net/ SMPlayer] (MPlayer的一个很棒的前端) 然后双击安装它。 smplayer这个前端也可以在软件包管理器中安装。<br />
<br />
===== &nbsp; 关于64位版本 Mplayer 对 wmv9 格式支持问题<br> =====<br />
<br />
&nbsp;&nbsp;&nbsp; AMD64版本的Mplayer不能正确的播放wmv9格式的文件。 要播放wmv9,你需要安装32位版本的mplayer, 和所有需要的解码器.。相较于我新安装的Gutsy,我不需要额外安装它所依赖的库文件,这让配置mplayer的工作简单多了。这就是说,做完这些步骤后你就可以随时观赏wmv9的文件了。<br />
<br />
'''下载&nbsp; mplayer32 for Edgy 的版本 (被证明能稳定地工作) 放到临时的文件夹中。'''<br />
<br />
mkdir mplayer32temp<br />
cd mplayer32temp<br />
wget http://folk.ntnu.no/grannas/debs/mplayer32_20070130-1_amd64.deb<br />
<br />
'''解开你刚才下载的这个压缩包,放到合适的地方''' ''(按 'n'当 问你是否要为文件更换位置)''<br />
<br />
sudo dpkg -x mplayer32_20070130-1_amd64.deb ./<br />
sudo mv -i usr/bin/* /usr/bin/<br />
sudo mv -i usr/lib32/* /usr/lib32/<br />
<br />
'''从mplayerrhq 获取最新的 win32 codecs (下面命令中是10月7日版本, 2007), 解压缩然后安装''' ''(同样, 在问到更换位置时按'n' )''<br />
<br />
wget http://www3.mplayerhq.hu/MPlayer/releases/codecs/essential-20071007.tar.bz2<br />
tar jxfv essential-20071007.tar.bz2<br />
sudo mv -i essential-20071007/* /usr/lib/win32/<br />
<br />
'''播放 wmv9 影片.(享受它)'''<br />
<br />
mplayer32 foobar.wmv<br />
<br />
<br><br />
<br />
==== 怎样安装 amaroK 多媒体播放器 ====<br />
<br />
* 注意: KDE 环境下, Amarok 已经默认安装 。<br />
<br />
sudo apt-get install amarok<br />
<br />
* 从菜单启动:<br />
<br />
Applications -&gt; Sound &amp; Video -&gt; amaroK<br />
<br />
====== 怎样卸载 amaroK ======<br />
<br />
sudo apt-get --purge autoremove amarok<br />
<br />
==== 怎样获得MP3文件播放时的鼠标滑过预览 ====<br />
<br />
sudo apt-get install mpg321<br />
sudo apt-get install ubuntu-restricted-extras<br />
sudo apt-get install pulseaudio<br />
sudo apt-get install pulseaudio-esound-compat<br />
sudo apt-get install libasound2-plugins<br />
<br />
这个方法可能会破坏Skype软件的声音系统<br />
<br />
你也能通过下面的步骤实现鼠标滑过预览:<br />
<br />
sudo apt-get install mpg321<br />
sudo apt-get install mpg123-esd<br />
sudo apt-get install vorbis-tools<br />
sudo apt-get install esound<br />
sudo apt-get install ubuntu-restricted-extras<br />
<br />
这样系统中的Skype会保持正常功能<br />
<br />
==== 怎样安装VLC媒体播放器 ====<br />
<br />
sudo apt-get install vlc<br />
<br />
卸载VLC媒体播放器:<br />
<br />
sudo apt-get --purge autoremove vlc<br />
<br />
==== 怎样安装 Banshee 音乐管理和播放器<br> ====<br />
<br />
sudo apt-get install banshee<br />
<br />
卸载:<br />
<br />
sudo apt-get --purge autoremove banshee<br />
<br />
==== How to encode/decode audios ====<br />
<br />
There is a great command line tool, sox which not just a ordinary encoder/decoder but a good composer. Read its manual for more information.<br />
<br />
''Input(s) → Balancing → Combiner → Effects → Output''<br />
<br />
sudo apt-get install sox<br />
<br />
sox cannot handle Real Audio format. For that you need mplayer which converts a .rm file to a .wav file and then use sox to convert wave file to other file.<br />
<br />
mplayer -ao pcm:file=output.wav input.rm<br />
<br />
==== How to encode/decode videos ====<br />
<br />
mencoder, avidemux, transcode, ffmpeg2theora, etc. are some video converting tools. Read their manuals for information.<br />
<br />
sudo apt-get install mencoder avidemux transcode ffmpeg2theora<br />
<br />
==== How to edit audios ====<br />
<br />
sudo apt-get install lmms<br />
sudo apt-get install audacity<br />
<br />
==== How to edit videos ====<br />
<br />
sudo apt-get install ubuntustudio-video<br />
<br />
==== Text-to-Speech ====<br />
<br />
Visit https://help.ubuntu.com/community/TextToSpeech<br />
<br />
=== Programming / Web Development ===<br />
<br />
==== Quanta Plus ====<br />
<br />
(Quanta is a KDE application, but also works on GNOME.) To install Quanta, HTML/XML/PHP/Etc Web Creation Software:<br />
<br />
sudo apt-get install quanta kompare kxsldbg cervisia<br />
<br />
Applications &gt; Programming &gt; Quanta Plus<br />
<br />
==== Netbeans IDE ====<br />
<br />
Netbeans is a platform independent IDE for Java. But it also supports C/C++, Ruby, portals and lots of other stuffs as plug-ins. At the point of writing, version 5.5.1 is the latest stable release and can be installed by:<br />
<br />
sudo apt-get install netbeans5.5<br />
<br />
Alternately you can download [http://www.netbeans.org/community/releases/60/index.html Netbeans 6.0] and install it manually. The size of the installation package varies from 11 MB to 200 MB.<br />
<br />
===== Netbeans with Web &amp; Java EE pack =====<br />
<br />
If you want to use NetBeans for web development and want to integrate with Java EE, download the "Netbeans with Web &amp; Java EE" pack. The plug-in mechanism of installing additional modules are not recommended as it installs it on user directory (~/.netbeans/6.0beta2/modules/) rather than system-wide installation directory (/usr/local/netbeans-6.0beta2/nb6.0/modules/).<br />
<br />
Netbeans with Web &amp; Java EE pack comes with 2 built in runtime environments:<br />
<br />
* GlassFish V2 Build 58g<br />
* Apache Tomcat 6.0.14<br />
<br />
Those are ideal for both development and production use. Thus you do not have to install either Sun Java Application Server of Apache Tomcat separately. Also uninstalling Netbeans will not uninstall them. You have to uninstall them separately.<br />
<br />
But in case you want to install the servers separately, you typically have to run Netbeans as root. Alternately, you can also change the configuration files' owner/group and permissions of Tomcat and GlassFish to work with Netbeans.<br />
<br />
==== Eclipse IDE ====<br />
<br />
[http://packages.ubuntu.com/gutsy/devel/eclipse Eclipse IDE] is an alternative of [http://packages.ubuntu.com/gutsy/devel/netbeans5.5 Netbeans IDE]. Actually, it is somewhat more popular among Linux users. You can install eclipse directly from [http://www.eclipse.org/downloads/ Eclipse website] or can install it using apt-get:<br />
<br />
sudo apt-get install eclipse<br />
<br />
==== Anjuta IDE ====<br />
<br />
[http://anjuta.sourceforge.net/ Anjuta] is an IDE used primarily for C/C++ development. Not as robust as other itegrated development environments. However, tt does feature some useful plugins that provide functionality that most other IDE's have. (GUI development, project wizards, etc.)<br />
<br />
sudo apt-get install anjuta<br />
<br />
=== Utilities ===<br />
<br />
==== Compression tools ====<br />
<br />
Zip, Gzip and Bzip2 are the most popular compression tools available in almost every every Linux. But of late two new compression tools available: p7zip (http://7-zip.org/), ace and rar (http://www.rarlab.com/). 7-zip is a open-source project, but rar and ace are not.<br />
<br />
sudo apt-get install rar unrar<br />
sudo apt-get install p7zip-full<br />
sudo apt-get install unace<br />
<br />
Ark is the compression tool for kde, and has support for more formats including rar.<br />
<br />
sudo apt-get install ark<br />
<br />
==== Clipboard Manager (Glipper) ====<br />
<br />
To install Glipper simply run:<br />
<br />
sudo apt-get install glipper<br />
<br />
or use Synaptic Package Manager under System &gt; Administration menu, to locate and install the "glipper" package.<br />
<br />
==== Password Manager (KeePassX) ====<br />
<br />
KeePass is a crossplatform password manager. To install it simply run:<br />
<br />
sudo apt-get install keepassx<br />
<br />
or use Synaptic Package Manager under System &gt; Administration menu, to locate and install the "keepassx" package.<br />
<br />
==== How to fix/integrate bluetooth with nautilus ====<br />
<br />
On Some systems bluetooth "Browse Device" fuction doesn't work properly.<br />
<br />
To Fix This:<br />
<br />
sudo apt-get install gnome-vfs-obexftp<br />
<br />
or<br />
<br />
sudo aptitude install gnome-vfs-obexftp<br />
<br />
==== 怎样安装 Google Earth (地球仪软件) ====<br />
<br />
Google earth是一个世界地图查看器. 它可以3D的形式显示的建筑以及桥梁. 默认的时候它是显示的是静态的图片. 最新版式中包含了鸟瞰世界的功能. 点击 [http://earth.google.com/ 这里] 查看更多相关的信息.<br />
<br />
Google Earth is available in the Medibuntu Package archive. To install google-earth from Medibuntu:<br />
<br />
echo "deb http://packages.medibuntu.org/ gutsy free non-free" | sudo tee -a /etc/apt/sources.list<br />
wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add - &amp;&amp; sudo apt-get update<br />
sudo aptitude install googleearth<br />
<br />
除此之外你还可以直接从Google下载安装程序进行安装:<br />
<br />
[http://earth.google.com/download-earth.html 下载] Google Earth到你的桌面. 打开终端并运行n:<br />
<br />
chmod +x Desktop/GoogleEarthLinux.bin<br />
sudo Desktop/GoogleEarthLinux.bin<br />
<br />
按照说明完成安装. 卸载Google earth,执行以下命令:<br />
<br />
sudo su<br />
/opt/google-earth/uninstall<br />
<br />
==== 怎样安装 Picasa (Google 开发的照片管理工具) ====<br />
<br />
Picasa 是一款帮助你立即查找、编辑和共享在你的电脑上的所有照片的软件. Picasa makes advanced editing simple by putting one-click fixes and powerful effects at your fingertips. And Picasa makes it a snap to share your pictures – you can email, print photos home, and even post pictures on your own blog. You can install it in four ways:<br />
<br />
* [http://picasa.google.com/linux/download.html 下载] 直接下载 Debian/Ubuntu (DEB包) 安装.<br />
* 访问 http://www.google.com/linuxrepositories/ 阅读怎样添加 Google 源的说明.然後运行:<br />
<br />
sudo apt-get install picasa<br />
<br />
* [http://picasa.google.com/linux/download.html 下载] 自解压安装程序并按照说明配置 Google Earth.<br />
* 安装Windows (需要WINE支持).<br />
<br />
==== How to install Google Desktop (search utility) ====<br />
<br />
Google Desktop is a desktop search application that gives you easy access to information on your computer and from the web. Desktop makes searching your own email, files, music, photos, and more as easy as searching the web with Google. You can download Google Desktop in two ways:<br />
<br />
* Download and install the Debian package directly from http://desktop.google.com/en/linux/download.html<br />
* Visit http://www.google.com/linuxrepositories/ and see the instructions about how to add Google repository. Then run:<br />
<br />
sudo apt-get install google-desktop-linux<br />
<br />
==== How to install ntop (network monitoring utility) ====<br />
<br />
Ntop is a network monitoring utility. You can monitor local devices as well as devices with Netflow output (like a Cisco router). It's very easy to install too, open a terminal and type:<br />
<br />
sudo apt-get install ntop<br />
<br />
Now that it is installed, you have to do some basic setup. Once again, in the terminal, type:<br />
<br />
sudo ntop<br />
<br />
You will be asked for a password, and then to confirm the password. This will be the admin password for the ntop web interface. Next, we want to install "Dot", which is a part of the "Graphviz" package:<br />
<br />
sudo apt-get install graphviz<br />
<br />
Now, again in the terminal type:<br />
<br />
sudo /etc/init.d/ntop start<br />
<br />
Thats it! ntop is running! Try browsing to http://127.0.0.1:3000 to get started. You will have to add the path to dot to the ntop configuration.<br />
<br />
Admin -&gt; Configure (Enter admin user/pass) -&gt; Preferences<br />
<br />
At the bottom add a new preference:<br />
<br />
dot.path /usr/bin/dot<br />
<br />
You should now have a network map for the local interface under IP -&gt; Local -&gt; Network Traffic Map<br />
<br />
Visit http://www.ntop.org/ for more information.<br />
<br />
==== How to install applications for study of religious texts ====<br />
<br />
* For study of Bible see [http://gnomesword.sourceforge.net/ GnomeSword]<br />
* For study of Quran see [http://sourceforge.net/projects/zekr/ Zekr]<br />
<br />
===== How to install Gnomesword (Bible study program) =====<br />
<br />
* Read [[|#General Notes]]<br />
* Read [[|#How to add extra repositories]]<br />
* This installs the english version of the program.<br />
<br />
sudo apt-get install gnomesword sword-language-pack-en sword-text-web<br />
<br />
* If you require other languages type:<br />
<br />
sudo apt-cache search bible<br />
<br />
* Take a look at the sword-language-pack's and the sword-text's for additional languages and install as needed.<br />
<br />
Gnomesword is found under Applications--&gt;Accessories.<br />
<br />
* Under KDE, use kio-sword instead of Gnomesword:<br />
<br />
sudo apt-get install kio-sword<br />
<br />
===== How to install a Quran researching tool (Zekr) =====<br />
<br />
[http://siahe.com/zekr/ Zekr] is an open platform Quran study tool for simply browsing and researching on the Quran.<br />
<br />
sudo wget http://siahe.com/zekr/apt/sources.list.d/gutsy.list -O /etc/apt/sources.list.d/zekr.list <br />
wget -q http://siahe.com/zekr/apt/zekr.debian.gpg -O- | sudo apt-key add - <br />
sudo apt-get update <br />
sudo apt-get install zekr ttf-me-quran ttf-sil-scheherazade<br />
sudo apt-get install ttf-farsiweb flashplugin-nonfree<br />
<br />
* Zekr comes with extra Quran translations in Persian, Urdu, French, Russian, English, Turkish, Bosnian, Dutch packaged as zekr-quran-translations-XY where XY is the ISO code of the language. Run<br />
<br />
apt-cache search zekr-quran-translations<br />
<br />
in a shell to list them all. Then among the result list choose the appropriate package and install it: For example if you want to install English Quran Translations run the following command:<br />
<br />
sudo apt-get install zekr-quran-translations-en<br />
<br />
* For more info see [http://www.siahe.com/zekr/wiki/index.php?title=Installation#Ubuntu.2FDebian Zekr wiki].<br />
<br />
==== How to install applications for Education ====<br />
<br />
===== How to install Mnemosyne =====<br />
<br />
[http://mnemosyne-proj.sourceforge.net/ Mnemosyne] is a sophisticated free flash-card tool which optimizes your learning process. To install the latest version in the repositories run the following command<br />
<br />
sudo apt-get install mnemosyne<br />
<br />
or use Synaptic Package Manager under System =&gt; Administration menu, to locate and install the mnemosyne package.<br />
<br />
To install the latest version (the one in the repository is somewhat out of date) first install the dependencies:<br />
<br />
sudo apt-get install python python-pygame python-qt3 python-support python-xml<br />
<br />
then download the latest source package from [http://mnemosyne-proj.sourceforge.net/ here]:<br />
<br />
wget http://superb-east.dl.sourceforge.net/sourceforge/mnemosyne-proj/mnemosyne-0.9.10.tgz<br />
(correct as of 11 Nov 2007)<br />
<br />
Decompress it:<br />
<br />
tar -xzf mnemosyne-0.9.10.tgz<br />
<br />
go to the directory<br />
<br />
cd mnemosyne-0.9.10/<br />
<br />
run this command to install it:<br />
<br />
sudo python setup.py install<br />
<br />
To create a launcher for it in your Applications Menu:<br />
<br />
System =&gt; Preferences =&gt; Main Menu =&gt; Education (or wherever) =&gt; New Item:<br />
Name: Mnemosyne<br />
Command: mnemosyne<br />
<br />
== '''''安全&nbsp;''''' ==<br />
<br />
=== 怎样重设用户密码 ===<br />
<br />
sudo apt-get install john<br />
sudo john /etc/shadow<br />
<br />
=== 怎样重设ROOT用户的密码 ===<br />
<br />
重启Ubuntu进入安全模式并输入:<br />
<br />
passwd<br />
<br />
<br />
<br />
来修ROOT用的密码<br />
<br />
=== 怎样创建或修改GRUB启动菜单的密码 ===<br />
<br />
请点击[http://ubuntuguide.org/wiki/Ubuntu:Feisty#How_to_change_GRUB_menu_password_if_forgotten 这里].<br />
<br />
=== 如果忘记GRUB启动菜单的密码怎样修改root用户的密码 ===<br />
<br />
点击 [http://ubuntuguide.org/wiki/Ubuntu:Feisty#How_to_use_Ubuntu_Installation_CD.2C_to_gain_root_user_access 这里]. To prevent this, you have to set a bios password and set hard disk as the first boot device.<br />
<br />
== '''''服务器<br>''''' ==<br />
<br />
=== Samba 服务器<br> ===<br />
<br />
==== 怎样安装 Samba 服务器来共享文件以及文件夹<br> ====<br />
<br />
* 阅读 [[|#General Notes]]<br />
* 阅读 [[|#How to add extra repositories]]<br />
<br />
sudo apt-get install samba smbfs<br />
<br />
==== 怎样添加/修改/删除网络用户 ====<br />
<br />
* 阅读 [[|#General Notes]]<br />
* 阅读 [[|#How to install Samba Server for files/folders sharing service]]<br />
* To add network user <br />
** Read [[|#How to add/edit/delete system users]]<br />
<br />
sudo smbpasswd -a system_username<br />
gksudo gedit /etc/samba/smbusers<br />
<br />
* <br />
** Insert the following line into the new file<br />
<br />
system_username = "network username"<br />
<br />
* <br />
** Save the edited file<br />
* To edit network user<br />
<br />
sudo smbpasswd -a system_username<br />
<br />
* To delete network user<br />
<br />
sudo smbpasswd -x system_username<br />
<br />
==== How to share home folders with read only or read/write permission (Authentication=Yes) ====<br />
<br />
* Read [[|#General Notes]]<br />
* Read [[|#How to install Samba Server for files/folders sharing service]]<br />
<br />
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup<br />
gksudo gedit /etc/samba/smb.conf<br />
<br />
* Find this line<br />
<br />
...<br />
; security = user<br />
...<br />
<br />
* Replace with the following lines<br />
<br />
security = user<br />
username map = /etc/samba/smbusers<br />
<br />
* Remove the&nbsp;; in front of the following lines (there will text in between explaining what they do):<br />
<br />
;[homes]<br />
;comment = Home Directories<br />
;browseable = no<br />
;valid users = %S<br />
;writable = yes<br />
<br />
* <br />
** If you want other network users to be able to edit to the folder then change<br />
<br />
# By default, the home directories are exported read-only. Change next<br />
# parameter to 'yes' if you want to be able to write to them.<br />
&nbsp;; writable = no<br />
<br />
* <br />
** Replace with the following lines<br />
<br />
writable = yes<br />
<br />
* Save the edited file<br />
* Read [[|#How to add/edit/delete network users]]<br />
<br />
sudo testparm<br />
sudo /etc/init.d/samba restart<br />
<br />
==== How to share group folders with read only permission (Authentication=Yes) ====<br />
<br />
* Read [[|#General Notes]]<br />
* Read [[|#How to install Samba Server for files/folders sharing service]]<br />
<br />
sudo mkdir /home/group<br />
sudo chmod 777 /home/group/<br />
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup<br />
gksudo gedit /etc/samba/smb.conf<br />
<br />
* Find this line<br />
<br />
...<br />
; security = user<br />
...<br />
<br />
* Replace with the following lines<br />
<br />
security = user<br />
username map = /etc/samba/smbusers<br />
<br />
* Append the following lines at the end of file<br />
<br />
[Group]<br />
comment = Group Folder<br />
path = /home/group<br />
public = yes<br />
writable = no<br />
valid users = system_username1 system_username2<br />
create mask = 0700<br />
directory mask = 0700<br />
force user = nobody<br />
force group = nogroup<br />
<br />
* Or if you want other network users to be able to edit to the folder change<br />
<br />
writable = yes<br />
<br />
* Save the edited file<br />
* Read [[|#How to add/edit/delete network users]]<br />
<br />
sudo testparm<br />
sudo /etc/init.d/samba restart<br />
<br />
==== How to share public folders with read only or read/write permissions (Authentication=Yes) ====<br />
<br />
* Read [[|#General Notes]]<br />
* Read [[|#How to install Samba Server for files/folders sharing service]]<br />
<br />
sudo mkdir /home/public<br />
sudo chmod 777 /home/public/<br />
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup<br />
gksudo gedit /etc/samba/smb.conf<br />
<br />
* Find this line<br />
<br />
...<br />
; security = user<br />
...<br />
<br />
* Replace with the following lines<br />
<br />
security = user<br />
username map = /etc/samba/smbusers<br />
<br />
Then follow either 1. or 2.<br />
<br />
* 1. Save the edited file.<br />
<br />
sudo testparm<br />
sudo /etc/init.d/samba restart<br />
<br />
* 1. Right click the folder and select 'Share folder'. Then change 'Do not share' to share with the network you would like.<br />
* 1. In Share Properties note the read box. If you want other network users to be able to edit to the folder un-tick this.<br />
<br />
'''OR'''<br />
<br />
* 2. Append the following lines at the end of file<br />
<br />
[public]<br />
comment = Public Folder<br />
path = /home/public<br />
public = yes<br />
writable = yes<br />
create mask = 0777<br />
directory mask = 0777<br />
force user = nobody <br />
force group = nogroup<br />
<br />
* 2. Or if you want other network users to be able to edit to the folder<br />
<br />
writable = yes<br />
<br />
* 2. Save the edited file<br />
* 2. Read [[|#How to add/edit/delete network users]]<br />
<br />
sudo testparm<br />
sudo /etc/init.d/samba restart<br />
<br />
<br><br />
<br />
==== How to share public folders with read only or read/write permissions (Authentication=No) ====<br />
<br />
* Read [[|#General Notes]]<br />
* Read [[|#How to install Samba Server for files/folders sharing service]]<br />
<br />
sudo mkdir /home/public<br />
sudo chmod 777 /home/public/<br />
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup<br />
gksudo gedit /etc/samba/smb.conf<br />
<br />
* Find this line<br />
<br />
...<br />
; security = user<br />
...<br />
<br />
* Replace with the following line<br />
<br />
security = share<br />
<br />
Then follow either 1. or 2.<br />
<br />
* 1. Save the edited file.<br />
<br />
sudo testparm<br />
sudo /etc/init.d/samba restart<br />
<br />
* 1. Right click the folder and select 'Share folder'. Then change 'Do not share' to share with the network you would like.<br />
* 1. In Share Properties note the read box. If you want other network users to be able to edit to the folder un-tick this.<br />
<br />
'''OR'''<br />
<br />
* 2. Append the following lines at the end of /etc/samba/smb.conf (for a read-only folder)<br />
<br />
[public]<br />
comment = Public Folder<br />
path = /home/public<br />
public = yes<br />
writable = no<br />
create mask = 0777<br />
directory mask = 0777<br />
force user = nobody<br />
force group = nogroup<br />
<br />
* 2. Or if you want other network users to be able to edit to the folder<br />
<br />
writable = yes<br />
<br />
<br><br />
<br />
* 2. Save the edited file<br />
<br />
sudo testparm<br />
sudo /etc/init.d/samba restart<br />
<br />
==== How to print on remote Ubuntu machine via samba ====<br />
<br />
* Read [[|#Print Server (cupsd)]]<br />
* Make sure your Ubuntu printers are configured properly.<br />
<br />
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.backup<br />
gedit /etc/samba/smb.conf<br />
<br />
:''Find the following lines''<br />
<br />
...<br />
# printing = cups<br />
# printcap name = cups<br />
...<br />
<br />
:''and uncomment them.''<br />
<br />
printing = cups<br />
printcap name = cups<br />
<br />
:''Restart cups server''<br />
<br />
sudo /etc/init.d/cupsys restart<br />
<br />
:''Now printers working on your Ubuntu machine should be acessible via samba.''<br />
<br />
<br><br />
<br />
=== iTunes-compatible Media server ===<br />
<br />
If you want iTunes-compatible Media server in Ubuntu try this<br />
<br />
* [http://www.ubuntugeek.com/howto-setup-itunes-compatible-media-server-in-ubuntu.html iTunes-compatible Media server Step By Step Guide]<br />
<br />
=== GLPI - IT and asset Managemet Software ===<br />
<br />
If you want IT and asset Managemet Software in Ubuntu try this<br />
<br />
* [http://www.ubuntugeek.com/glpi-it-and-asset-managemet-software.html IT and asset Managemet Software Setup Guide]<br />
<br />
=== PostgreSQL ===<br />
<br />
Postgresql is a well supported and open source database server. There is a long debate regarding whether MySQL is better or PostgreSQL. Actually, there are similar debates like it: Gnome vs KDE, Perl vs Python, PHP vs JSP, Java vs .Net (or Mono). But from installation point of view, it has been seen that PostgreSQL is lighter and requires less dependency than MySQL.<br />
<br />
==== Installing PostgreSQL ====<br />
<br />
To Install PostgreSQL (both client and server):<br />
<br />
sudo apt-get install postgresql-8.2<br />
<br />
To install PostgreSQL documentation:<br />
<br />
sudo apt-get install postgresql-doc-8.2<br />
<br />
To install JDBC3 driver for PostgreSQL:<br />
<br />
sudo apt-get install libpg-java<br />
<br />
To enable php support for PostgreSQL:<br />
<br />
sudo apt-get install php5-pgsql<br />
<br />
To do administrative works graphically:<br />
<br />
sudo apt-get install pgadmin3<br />
<br />
To do web-based administrative works:<br />
<br />
sudo apt-get install phppgadmin<br />
<br />
==== Configuring PostgreSQL ====<br />
<br />
To use postgresql, create a database instance and a user/role:<br />
<br />
sudo -u postgres createdb $USER<br />
sudo -u postgres createuser $USER<br />
<br />
Making both database instance and user/role as your login ID lets you to start PostgreSQL client very easily:<br />
<br />
psql<br />
<br />
To login as the administrator:<br />
<br />
sudo -u postgres psql<br />
<br />
To be able to login from remote machine or from PHP or through JDBC driver, you have to set your password from PostgreSQL client (psql):<br />
<br />
ALTER USER user PASSWORD 'pass';<br />
<br />
replace user and pass by your user name and password respectively. To test whether remote login works or not, run:<br />
<br />
psql -h host -p 5432 -d database -U user<br />
<br />
Visit http://www.php.net/manual/en/ref.pgsql.php to see how php works with PostgreSQL.<br />
<br />
==== Using pgadmin3 ====<br />
<br />
To configure PostgreSQL using pgadmin3:<br />
<br />
* Open psql client as administrator postgres (see above Configure PostgreSQL)<br />
* Change the password for the administrator postgres (see above)<br />
* Open Applications -&gt; System Tools -&gt; pgAdmin III from main menu.<br />
* Open File -&gt; Add Server...<br />
* Set Address to localhost or 127.0.0.1 (or something you have set)<br />
* Give a Description by which this connection will be identified.<br />
* Accept default port (5432), SSL (_blank_), Maintenance DB (postgres) and Username (postgres)<br />
* set the Password that you have set earlier. Click OK.<br />
<br />
==== Using phppgadmin ====<br />
<br />
To configure PostgreSQL using phppgadmin run:<br />
<br />
sudo ln -s /usr/share/phppgadmin /var/www/phpPgAdmin<br />
<br />
Set a password for administrator: postgres (see [[|#Configuring_PostgreSQL]]).<br />
<br />
Open /etc/phppgadmin/config.inc.php and change:<br />
<br />
$conf['extra_login_security'] = false;<br />
<br />
It will enable administrative login. Finally visit http://localhost/phpPgAdmin/ to login.<br />
<br />
==== Using PostgreSQL with OpenOffice ====<br />
<br />
* Open Applications -&gt; Office -&gt; OpenOffice.org Database.<br />
* Select 'Connect to an existing database'. From the list select JDBC and click Next.<br />
* Make Datasource URL to:<br />
<br />
jdbc:postgresql://localhost/database<br />
<br />
Replace localhost by your hostname, database by the database instance you have created.<br />
<br />
* Set JDBC driver class to:<br />
<br />
org.postgresql.Driver<br />
<br />
* Click 'Test class' to make sure JDBC driver class connects Datasource URL properly. Click Next.<br />
* Type your User name and select 'Password required' option.<br />
* Click Test connection. A popup dialog will appear. Enter your password and click OK.<br />
* If everything works properly, then a confirmation dialog will appear.<br />
* Click Next. Some optional settings will appear. Click Finish to complete.<br />
<br />
==== Using PostgreSQL JDBC driver ====<br />
<br />
The following Java code is a simple program to illustrate how JDBC can be used with Postgresql:<br />
<br />
// pgVersion.java<br />
<br />
import java.sql.*;<br />
<br />
class pgVersion {<br />
public static void main(String arg[]) throws Exception {<br />
if(arg.length!=4) {<br />
System.out.println("usage: java pgVersion host database user password");<br />
return;<br />
}<br />
// Class.forName("org.postgresql.Driver");<br />
Driver driver=new org.postgresql.Driver();<br />
DriverManager.registerDriver(driver);<br />
String url="jdbc:postgresql://"+arg[0]+"/"+arg[1]+"?user="+arg[2]+"&amp;password="+arg[3];<br />
Connection conn=DriverManager.getConnection(url);<br />
Statement stat=conn.createStatement();<br />
ResultSet rs=stat.executeQuery("SELECT version()");<br />
rs.next();<br />
System.out.println(rs.getString("version"));<br />
rs.close();<br />
stat.close();<br />
conn.close();<br />
DriverManager.deregisterDriver(driver);<br />
}<br />
}<br />
<br />
You can run the former code in two ways:<br />
<br />
* Using CLASSPATH environment variable:<br />
<br />
export CLASSPATH=/usr/share/java/postgresql.jar:.<br />
javac pgVersion.java<br />
java pgVersion host database user password<br />
<br />
Here host, database, user and password should be substituted according to your configuration. To make $CLASSPATH permanent, you have to save the command in either /etc/bash.bashrc or ~/.bashrc.<br />
<br />
* Alternately, you can run as follows:<br />
<br />
javac -classpath /usr/share/java/postgresql.jar pgVersion.java<br />
java -classpath /usr/share/java/postgresql.jar:. pgVersion host database user password<br />
<br />
The output is as expected:<br />
<br />
PostgreSQL 8.2.5 on i486-pc-linux-gnu, compiled by GCC cc (GCC) 4.1.3 20070831 (prerelease) (Ubuntu 4.1.2-16ubuntu1)<br />
<br />
=== MySQL ===<br />
<br />
According to [http://en.wikipedia.org/wiki/Comparison_of_relational_database_management_systems this page] both MySQL and PostgreSQL are good alternatives of proprietary softwares like DB2, Sybase, Oracle, SQL Server etc.<br />
<br />
To install both the server and client:<br />
<br />
sudo apt-get install mysql-server-5.0<br />
<br />
[http://db4free.net/ db4free] is a great database server for tryout different things remotely. If you want to use this site, then you do not have to install MySQL server. Just install the [http://packages.ubuntu.com/gutsy/misc/mysql-client-5.0 client], [http://packages.ubuntu.com/gutsy/misc/mysql-doc-5.0 documentation] and [http://packages.ubuntu.com/gutsy/web/php5-mysql php] or [http://packages.ubuntu.com/gutsy/libs/libmysql-java jdbc] connectivity.<br />
<br />
=== IBM DB2 ===<br />
<br />
Visit [http://www.ibm.com/software/ here] for software available from IBM. According to [http://www.ibm.com/software/data/db2/linux/validate/ this page], DB2 can be installed on ubuntu.<br />
<br />
==== Download ====<br />
<br />
To download DB2 trial [http://www.ibm.com/software/data/db2/9/download.html visit here] and select: IBM DB2 9.5 Data Server trial. Then you have to sign in (create an account if not already created) in order to download. Choose either of the following:<br />
<br />
* DB2 9.5 data server trial for Linux(R) on AMD64 and Intel(R) EM64T systems (x64)<br />
* DB2 9.5 data server trial for Linux(R) on System z<br />
<br />
Then answer questions and click 'I confirm' at the bottom. Finally click 'I confirm' button to start downloading.<br />
<br />
Alternately, [http://www.ibm.com/software/data/db2/9/download.html visit here] and select: IBM DB2 9.5 Express-C. Then choose DB2 Express-C 9.5 for Linux and click continue. Then answer questions and click 'I confirm' at the bottom. Finally select either of the following:<br />
<br />
* DB2 Express-C for Linux operating system, 32-bit architecture<br />
* DB2 Express-C for Linux operating system, 64-bit architecture<br />
<br />
click 'I confirm' button to start downloading.<br />
<br />
==== Installing DB2 ====<br />
<br />
I choose 'DB2 Express-C for Linux operating system, 32-bit architecture' to demonstrate how to install. If you have chosen a different version, make necessary changes accordingly. Let's assume the downloaded file is on your home directory. Then do the following:<br />
<br />
tar -xf db2exc_950_LNX_x86.tar.gz<br />
cd ~/exp<br />
sudo apt-get install libaio1<br />
sudo ./db2setup<br />
<br />
Select 'Install a Product' from the left side of the generated window and click 'Install New'. Another window will be opened. Then following the instructions to complete the installation. You are encouraged to create new user and groups (dasusr1/dasadm1, db2inst1/db2iadm1, db2fenc1/db2fadm1) during installation.<br />
<br />
==== Uninstalling DB2 ====<br />
<br />
If you have installed with all default settings (as mentioned above) then just running the following commands would remove the db2 completely. In case you have changed something during installation, then make appropriate changes accordingly.<br />
<br />
cd /opt/ibm/db2/V9.5<br />
./instance/db2ilist<br />
sudo instance/db2idrop db2inst1<br />
sudo install/db2_deinstall -a<br />
cd &amp;&amp; sudo rm -r /opt/ibm/<br />
sudo userdel -r dasusr1<br />
sudo userdel -r db2fenc1<br />
sudo userdel -r db2inst1<br />
sudo groupdel dasadm1<br />
sudo groupdel db2fadm1<br />
sudo groupdel db2iadm1<br />
<br />
Before running those commands, please make sure:<br />
<br />
* Make sure, db2 is not running.<br />
* Identify DB2 installation directory (E.g /opt/ibm/db2/V9.5)<br />
* Identify DB2 instances (using db2ilist command, see the second command)<br />
* Drop each and every instances (using db2idrop command, third command)<br />
* If you have other IBM softwares in /opt/ibm then remove only /opt/ibm/db2 directory.<br />
* Delete user and group accounts that you have created for db2.<br />
<br />
=== Oracle database ===<br />
<br />
* Download [http://www.oracle.com/technology/software/products/database/index.html Oracle database] XE from [http://www.oracle.com/technology/software/products/database/xe/htdocs/102xelinsoft.html here]. Then follow the [http://www.oracle.com/technology/software/products/database/xe/files/install.102/b25144/toc.htm instructions] to complete the installation.<br />
* Alternately, visit [http://www.oracle.com/technology/tech/linux/install/index.html this page] to see some installation guides provided by some users. [http://www.davidpashley.com/articles/oracle-install.html This page] is particularly seems very useful. (--[[User:Tamal|Tamal]] 07:51, 14 November 2007 (EET))<br />
<br />
A problem might occur if your swap space is less than 1 GB. In that case you have to do the following:<br />
<br />
* Turn off the swap space. (run 'man swapoff' for help)<br />
* Resize the swap partition. (run 'man fdisk' and 'man cfdisk' for help)<br />
* Restart the system. (not mandatory, but recommended)<br />
* Edit the /etc/fstab file to update the UUID of the swap partition. ([[|#How_to_find_the_UUID_of_a_device]])<br />
* Turn on the swap space. (run 'man swapon' for help)<br />
<br />
=== SSH ===<br />
<br />
==== How to install SSH Server for remote administration service ====<br />
<br />
* Read [[|#General Notes]]<br />
* Read [[|#How to add extra repositories]]<br />
<br />
sudo apt-get install ssh<br />
<br />
==== How to SSH into remote Ubuntu host ====<br />
<br />
* Read [[|#General Notes]]<br />
<br />
The Ubuntu host must be running the SSH Server. Read [[|#How to install SSH Server for remote administration service]].<br />
<br />
In this example:<br />
<br />
Remote Ubuntu machine: 192.168.0.2 username is a valid user on the remote host<br />
<br />
ssh username@192.168.0.2<br />
<br />
You can tunnel to a URL as well:<br />
<br />
ssh username@foobar.dyndns.org<br />
<br />
If your LAN uses a dynamic IP to connect to the Internet, you can use a Dynamic IP service (such as DynDNS) to assign a static URL to your LAN (foobar.dyndns.org, for example). An SSH request over the Internet to your URL (e.g. foobar.dyndns.org) would then be routed by the DynDNS service to your modem/router. Your router must then be set to forward the port used for the SSH tunnel to your host machine on the LAN. (SSH tunnels generally occur by default over port 22, but it can be changed (see below)).<br />
<br />
For some humor: Read Etymology of foobar. You can explicitly select the port number (instead of port 22) for the SSH tunnel:<br />
<br />
ssh username@foobar.dyndns.org:11022<br />
<br />
However, if you do this, the host SSH server must be listening on the same port (port 11022 in the example). The port to listen to can be set in the ssdh_config file of the OpenSSH server (provided in Ubuntu) on your host. Also, your router must be configured to forward port 11022 to your OpenSSH host.<br />
<br />
==== How to change SSH Server Port Number ====<br />
<br />
* Read [[|#General Notes]]<br />
* Read [[|#How to install SSH Server for remote administration service]]<br />
<br />
Open /etc/ssh/sshd_config for editing<br />
<br />
gksu gedit /etc/ssh/sshd_config<br />
<br />
Look for the line<br />
<br />
# What ports, IPs and protocols we listen for<br />
Port 22<br />
<br />
Change 22 to the value you want, then save and restart the SSH server<br />
<br />
sudo /etc/init.d/ssh restart<br />
<br />
==== Using SSH to Port Forward ====<br />
<br />
* Read [[|#General Notes]]<br />
* The Ubuntu host must be running the SSH Server. Read [[|#How to install SSH Server for remote administration service]].<br />
* The format of the client command to create an SSH tunnel to an OpenSSH host listening on the default port 22 is:<br />
<br />
ssh -L &lt;local port&gt;:&lt;remote computer&gt;:&lt;remote port&gt; &lt;user&gt;@&lt;remote ip&gt;<br />
<br />
An example is:<br />
<br />
ssh -L 6669:94.92.10.15:6667 foowho<br />
<br />
In this example, local port 6669 on the local client computer is tunneled by encrypted SSH over the default port 22 to the router at 94.92.10.15. The router must be set up to forward port 22 to whatever the internal LAN IP (such as 192.168.0.56) of the SSH host is. The host is running OpenSSH (ssdh service) and is set to listen to port 22. It then routes the incoming data to the host port 6667, where presumably some other program is waiting for data. foowho has an account on the host running the OpenSSH server.<br />
<br />
SSH tunnels can also be established using URLs and even alternate ports. An example is:<br />
<br />
ssh -L 5900:foobar.dyndns.org:5900 foowho -p 11022<br />
<br />
In this example, local port 5900 on the client is forwarded through an SSH tunnel on port 11022 to foobar.dyndns.org. The DNS service translates foobar.dyndns.org into the appropriate WAN (Internet) IP address, where the router is listening. The router is set up to forward port 11022 to the LAN machine hosting the OpenSSH server, which is listening on port 11022. It then sends the data to whatever program is running on port 5900 on the host.<br />
<br />
* You can forward a local port to a different port on the remote host.<br />
<br />
:Example: Make port 80 (web server/browser) on the remote host at 10.0.2.10 available locally as port 81<br />
<br />
ssh -L 81:10.0.2.10:80 user@office.net<br />
<br />
* You can create secure SSH tunnels to multiple hosts using multiple ports.<br />
<br />
ssh -L 81:10.0.2.10:80 -L 82:10.0.2.20:80 -L 83:10.0.2.30:80 user@office.net<br />
<br />
Now, local port 81 locally forwards to port 80 on the host at 10.0.2.10, local port 82 forwards to port 80 on the host at 10.0.2.20 and local port 83 forwards to port 80 on the host at 10.0.2.30. In this example, user has an account on all three host machines at 10.0.2.10, 10.0.2.20, and 10.0.2.30.<br />
<br />
* Once port forwarding is set up by ssh, an application is directed to the SSH tunnel for port usage by using the loopback as the destination.<br />
<br />
:Example 1:<br />
<br />
ssh -L 81:10.0.2.10:80 user@office.net<br />
<br />
<nowiki>http://localhost:81</nowiki> or <nowiki>http://127.0.0.1/:81</nowiki> <br />
<br />
will direct a web browser to use port 81 locally, which is being redirected by SSH to port 80 on the remote host at 10.0.2.10.<br />
<br />
:Example 2:<br />
<br />
ssh -L 5900:foobar.dyndns.org:5900 foowho<br />
vncviewer 127.0.0.1 or vncviewer localhost<br />
<br />
will direct vncviewer (which uses port 5900 by default) to direct its traffic through the ssh tunnel to the host at foobar.dyndns.org, where, presumably, a VNC server is listening on port 5900.<br />
<br />
==== SSH Filesystem ====<br />
<br />
install package: sshfs, see http://fuse.sourceforge.net/sshfs.html<br />
<br />
sudo aptitude update<br />
sudo aptitude install sshfs<br />
<br />
Optionally, add user to group fuse to manage mount-point permissions.<br />
<br />
sudo adduser &lt;local user&gt; fuse<br />
<br />
(propogate new group membership: restart or open new shell, e.g., Ctrl+Alt+F1)<br />
<br />
Create writable mount point, e.g, &lt;mount point&gt; = /media/remote<br />
<br />
sudo mkdir &lt;mount point&gt;<br />
sudo chgrp fuse &lt;mount point&gt;<br />
sudo chmod 775 &lt;mount point&gt;<br />
<br />
Mount command<br />
<br />
sshfs [&lt;user&gt;@]&lt;host&gt;:[&lt;path&gt;] &lt;mount point&gt;<br />
<br />
Unmount command<br />
<br />
fusermount -u &lt;mount point&gt;<br />
<br />
=== Ubuntu 7.10 LAMP Server ===<br />
<br />
If you are looking for simple LAMP Server setup in 15min including webmin installation this is for you<br />
<br />
* [http://www.ubuntugeek.com/ubuntu-710-gutsy-gibbon-lamp-server-setup.html Ubuntu 7.10 LAMP Server Step By Step Guide]<br />
<br />
(This requires the server version of Gutsy Gibbon, not the standard desktop edition)<br />
<br />
=== How to Install Webmin ===<br />
<br />
Webmin is an browser-based administration tool for Apache, PHP, MySQL, and Much More.<br />
<br />
wget http://prdownloads.sourceforge.net/webadmin/webmin_1.370_all.deb<br />
<br />
<br />
<br />
sudo apt-get install libnet-ssleay-perl libauthen-pam-perl libio-pty-perl libmd5-perl<br />
<br />
sudo passwd root (Enter new root password, retype)<br />
<br />
sudo dpkg -i webmin_1.370_all.deb<br />
<br />
To use webmin, type the following in a browser: (Make sure to use HTTPS not HTTP)<br />
<br />
* [https://localhost:10000]<br />
<br />
=== Sun Java Application Server (Java EE) ===<br />
<br />
[http://docs.sun.com/app/docs/coll/1343.4 Official documentation]<br />
<br />
==== Installing Application Server ====<br />
<br />
Sun Java Application Server is the heart of Java EE. [http://java.sun.com/javaee/downloads/index.jsp Download] either of the following versions:<br />
<br />
* Java EE 5 SDK Update 3<br />
* Java Application Platform SDK Update 3 Beta<br />
* Sun Java System Application Server 9.1 (under individual download section)<br />
<br />
Alternately you can download GlassFish application server (community maintained):<br />
<br />
* With [http://dlc.sun.com.edgesuite.net/netbeans/6.0/beta2/ Netbeans] Web &amp; Java EE pack<br />
* Download [https://glassfish.dev.java.net/public/downloadsindex.html GlassFish] directly<br />
<br />
Make the download file executable and run as root by:<br />
<br />
chmod +x Desktop/filename<br />
sudo ./Desktop/filename<br />
<br />
Lets assume $JAVAEE_HOME indicates the installation directory. The default installation directory for Sun Java System Application Server 9.1 is /opt/SUNWappserver/. Now, either add $JAVAEE_HOME/bin in your PATH or make a link of asadmin and asant in your path by<br />
<br />
sudo ln -s $JAVAEE_HOME/bin/asadmin /usr/local/bin/asadmin<br />
sudo ln -s $JAVAEE_HOME/bin/asant /usr/local/bin/ant<br />
<br />
The command 'asadmin' is the main and most important command for Java Application server. [http://ant.apache.org/ Ant] is also useful to automate building process.<br />
<br />
==== Application Server configuration ====<br />
<br />
When Java EE installs, a domain 'domain1' is automatically installed with it in $JAVAEE_HOME/domains/ which is the default directory for all domains. Generally this directory ($JAVAEE_HOME/domains/) is not writable. So, as a unprivileged user you can create your own domain in your home directory.<br />
<br />
===== Application Server domain settings =====<br />
<br />
To create, start, stop and delete a domain in your home directory:<br />
<br />
asadmin create-domain --adminport 4848 --domaindir ~ mydomain<br />
asadmin start-domain --domaindir ~ mydomain<br />
asadmin stop-domain --domaindir ~ mydomain<br />
asadmin delete-domain --domaindir ~ mydomain<br />
<br />
Alternately you can make $JAVAEE_HOME/domains/ writable to do domain-related works from default domain directory. E.g.<br />
<br />
sudo chmod a+w $JAVAEE_HOME/domains/<br />
asadmin create-domain --adminport 4848 mydomain<br />
asadmin start-domain mydomain<br />
asadmin stop-domain mydomain<br />
asadmin delete-domain mydomain<br />
<br />
If you have only one domain in the default domains directory ($JAVAEE_HOME/domains/) then you do not have to give the domain name to start or stop a domain. E.g.<br />
<br />
asadmin start-domain<br />
asadmin stop-domain<br />
<br />
You can save the login information to ~/.asadminpass file in order to administer an application server domain from command line. If you do not login, you have to provide username and password for each administrative work (analogous to su and sudo commands). To login:<br />
<br />
asadmin login --host localhost --port 4848<br />
<br />
Deploying and un-deploying a web or ejb module is very easy. Just do the following:<br />
<br />
asadmin deploy test1.war<br />
asadmin deploy test2.ear<br />
<br />
asadmin undeploy test1.war<br />
asadmin undeploy test2.ear<br />
<br />
===== Application Server data Source settings =====<br />
<br />
DataSource configuration can be done easily from web based administration console. Here command line method is given:<br />
<br />
sudo ln -s /usr/share/java/postgresql.jar /opt/SUNWappserver/domains/domain1/lib/postgresql.jar<br />
asadmin create-jdbc-connection-pool --datasourceclassname org.postgresql.ds.PGSimpleDataSource --property<br />
serverName=localhost:portNumber=5432:databaseName=database:user=user:password=pass jdbc/postgresql<br />
asadmin create-jdbc-resource --connectionpoolid jdbc/postgresql database<br />
<br />
First, we have made this driver accessible from the domain. In the second command, we have created a data source connection pool which has been assigned a JNDI name in the third command. Here all the colon (:) separated values are database related. Change them according to your database settings. Now you can create a Connection by, e.g.:<br />
<br />
Context ic = new InitialContext();<br />
DataSource ds = (DataSource)ic.lookup("database");<br />
Connection conn = ds.getConnection();<br />
<br />
To see available data sources and their corresponding JNDI names:<br />
<br />
asadmin list-jdbc-connection-pools<br />
asadmin list-jdbc-resources<br />
<br />
To delete both connection pool, you have to delete JNDI name first. E.g.<br />
<br />
asadmin delete-jdbc-resource database<br />
asadmin delete-jdbc-connection-pool jdbc/postgresql<br />
<br />
=== Tomcat 6 ===<br />
<br />
==== Installing tomcat ====<br />
<br />
Tomcat can be found in [http://packages.ubuntu.com/gutsy/web/tomcat5.5 universe] repository but it has some drawbacks (e.g. lots of dependencies, unavailability of version 6.x, do not use Sun Java). Thus manual installation is recommended.<br />
<br />
Download latest stable version of tomcat from [http://tomcat.apache.org/download-60.cgi here] and extract it in /usr/local as root. Add "JAVA_HOME=/usr/lib/jvm/java-6-sun/" to /usr/local/apache-tomcat-6.x.x/bin/setclasspath.sh after the first occurrence of "CLASSPATH=". Make sure that sun-java6-jre is installed. Make a soft-link of /usr/local/apache-tomcat-6.x.x/bin/catalina.sh as /usr/local/bin/tomcat to access easily. Optionally you can remove .exe and .bat files and edit .sh files to remove cygwin, os400 and darwin related codes.<br />
<br />
Although not necessary, but the [http://packages.ubuntu.com/gutsy/devel/ant ant] program would be useful here. You can also install its [http://packages.ubuntu.com/gutsy/devel/ant-doc documentation].<br />
<br />
==== OpenEJB Server ====<br />
<br />
[http://openejb.apache.org/ OpenEJB] is an open source, modular, configurable, and extendable EJB Container System and EJB Server. [http://openejb.apache.org/tomcat.html Visit here] to see the installation instructions for OpenEJB under Tomcat 6.<br />
<br />
==== Using tomcat with NetBeans ====<br />
<br />
You have to make the configuration files readable because Netbeans generally do not run with administrative privilege. To use Tomcat with with NetBeans, you have to set a user with manager role. A typcal $CATALINA_HOME/conf/tomcat-users.xml file would look like:<br />
<br />
&lt;?xml version='1.0' encoding='utf-8'?&gt;<br />
&lt;tomcat-users&gt;<br />
&lt;role rolename="admin"/&gt;<br />
&lt;role rolename="manager"/&gt;<br />
&lt;role rolename="tomcat"/&gt;<br />
&lt;user username="admin" password="admin" roles="admin"/&gt;<br />
&lt;user username="manager" password="manager" roles="manager"/&gt;<br />
&lt;user username="tomcat" password="tomcat" roles="tomcat"/&gt;<br />
&lt;/tomcat-users&gt;<br />
<br />
Edit this file after you have started tomcat once. Any data placed in the &lt;tomcat-users&gt; element is erased during the first start of tomcat. You can also use tomcat that comes with NetBeans web &amp; Java EE pack.<br />
<br />
==== Configure Database Connection Pool (DBCP) of Tomcat ====<br />
<br />
A database connection pool creates and manages a pool of connections to a database. Recycling and reusing already existing connections to a dB is more efficient than opening a new connection. It is still possible and valid to open and close connection for each servlet/jsp (visit [[|#Using_JDBC_driver]] for details).<br />
<br />
Before proceeding, let's assume that $CATALINA_HOME denotes tomcat installation directory (typically: /usr/local/apache-tomcat-6.0.14).<br />
<br />
echo $CATALINA_HOME<br />
sudo ln -s /usr/share/java/postgresql.jar $CATALINA_HOME/lib/postgresql.jar<br />
sudo mkdir $CATALINA_HOME/webapps/dataSourceTest<br />
sudo chown $USER:$USER $CATALINA_HOME/webapps/dataSourceTest<br />
cd $CATALINA_HOME/webapps/dataSourceTest<br />
mkdir META-INF WEB-INF WEB-INF/classes<br />
<br />
Create WEB-INF/web.xml and set its content:<br />
<br />
&lt;?xml version="1.0" encoding="UTF-8"?&gt;<br />
<br />
&lt;web-app xmlns="http://java.sun.com/xml/ns/javaee"<br />
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"<br />
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"<br />
version="2.5"&gt;<br />
<br />
&lt;resource-ref&gt;<br />
&lt;description&gt;PostgreSQL connectivity&lt;/description&gt;<br />
&lt;res-ref-name&gt;jdbc/postgresql&lt;/res-ref-name&gt;<br />
&lt;res-type&gt;javax.sql.DataSource&lt;/res-type&gt;<br />
&lt;res-auth&gt;Container&lt;/res-auth&gt;<br />
&lt;/resource-ref&gt;<br />
<br />
&lt;description&gt;<br />
Page for testing<br />
&lt;/description&gt;<br />
&lt;display-name&gt;Testing page&lt;/display-name&gt;<br />
&lt;servlet&gt;<br />
&lt;servlet-name&gt;pgsqlVersion&lt;/servlet-name&gt;<br />
&lt;servlet-class&gt;pgsqlVersion&lt;/servlet-class&gt;<br />
&lt;/servlet&gt;<br />
&lt;servlet-mapping&gt;<br />
&lt;servlet-name&gt;pgsqlVersion&lt;/servlet-name&gt;<br />
&lt;url-pattern&gt;/pgsqlVersion&lt;/url-pattern&gt;<br />
&lt;/servlet-mapping&gt;<br />
&lt;/web-app&gt;<br />
<br />
Create META-INF/context.xml and set its content (replace hostname, database instance name, user id and password):<br />
<br />
&lt;?xml version="1.0" encoding="UTF-8"?&gt;<br />
&lt;Context&gt;<br />
&lt;Resource<br />
name="jdbc/postgresql"<br />
auth="Container"<br />
type="javax.sql.DataSource"<br />
driverClassName="org.postgresql.Driver"<br />
url="jdbc:postgresql://host/database"<br />
username="user"<br />
password="password"<br />
maxActive="20"<br />
maxIdle="10"<br />
maxWait="-1"/&gt;<br />
&lt;WatchedResource&gt;WEB-INF/web.xml&lt;/WatchedResource&gt;<br />
&lt;WatchedResource&gt;META-INF/context.xml&lt;/WatchedResource&gt;<br />
&lt;/Context&gt;<br />
<br />
Create pgsqlVersion.java and set its content:<br />
<br />
import java.io.*;<br />
import java.sql.*;<br />
import javax.sql.*;<br />
import javax.naming.*;<br />
import javax.servlet.*;<br />
public class pgsqlVersion extends GenericServlet {<br />
public void service(ServletRequest request, ServletResponse response) {<br />
try {<br />
response.setContentType("text/html");<br />
PrintWriter pw=response.getWriter();<br />
Context initContext = new InitialContext();<br />
Context envContext = (Context)initContext.lookup("java:/comp/env");<br />
DataSource ds = (DataSource)envContext.lookup("jdbc/postgresql");<br />
Connection conn = ds.getConnection();<br />
Statement stat=conn.createStatement();<br />
ResultSet rs=stat.executeQuery("SELECT version()");<br />
rs.next();<br />
pw.println(rs.getString("version"));<br />
rs.close();<br />
stat.close();<br />
} catch(Exception e) { }<br />
}<br />
}<br />
<br />
Create index.html and set its content:<br />
<br />
&lt;title&gt;PostgreSQL datasource&lt;/title&gt;&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"<br />
"http://www.w3.org/TR/html4/frameset.dtd"&gt;<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Then compile the servlet:<br />
<br />
export CLASSPATH=$CATALINA_HOME/lib/postgresql.jar:$CATALINA_HOME/lib/servlet-api.jar:.<br />
javac -d WEB-INF/classes/ pgsqlVersion.java<br />
<br />
Finally, visit http: //host:8080/dataSourceTest. Thats all!<br />
<br />
<br><br />
<br />
=== Nagios Network Monitoring Server ===<br />
<br />
* [http://www.ubuntugeek.com/nagios-network-monitoring-system-setup-in-ubuntu.html Nagios Monitoring Server Setup Guide]<br />
<br />
It should be noted that this howto instructs you to build nagios from its sources, while it exists on the official repositories.<br />
<br />
=== NFS Server ===<br />
<br />
* Read [http://nfs.sourceforge.net Linux NFS FAQ]<br />
* Run this command for each computer to determine the IP Addresses for each one:<br />
<br />
ifconfig<br />
<br />
==== Installing NFS Server ====<br />
<br />
sudo apt-get install nfs-kernel-server nfs-common portmap<br />
<br />
Reconfigure Portmap to not bind to loopback interface:<br />
<br />
sudo dpkg-reconfigure portmap <br />
sudo /etc/init.d/portmap restart<br />
<br />
Define which folders to share (export):<br />
<br />
sudo nano /etc/exports<br />
<br />
Add share (export) definitions:<br />
<br />
This will export path to all IP addresses between 192.168.1.1 and 192.168.1.254 with Read/Write access:<br />
<br />
/path/to/shared/files 192.168.1.0/24(rw,no_root_squash,async)<br />
<br />
This will export path to all IP addresses between 192.168.1.1 and 192.168.1.254 with Read Only access:<br />
<br />
/path/to/shared/files 192.168.1.0/24(ro,async)<br />
<br />
''192.168.1.0/24 above would be the clients IP Address''<br />
<br />
When finished, save changes and restart the NFS Server:<br />
<br />
sudo /etc/init.d/nfs-kernel-server restart<br />
<br />
Export your new configuration:<br />
<br />
sudo exportfs -a<br />
<br />
==== Installing NFS Client ====<br />
<br />
sudo apt-get install portmap nfs-common<br />
<br />
==== Mounting Manually ====<br />
<br />
cd ~<br />
mkdir temp<br />
sudo mount 192.168.1.1:/path/to/shared/files temp<br />
<br />
''192.168.1.1 above would be the Servers IP Address''<br />
<br />
You may need to restart NFS services:<br />
<br />
sudo /etc/init.d/portmap restart<br />
sudo /etc/init.d/nfs-common restart<br />
<br />
==== Mounting Automatically ====<br />
<br />
Create mountpoint:<br />
<br />
sudo mkdir /mnt/files<br />
<br />
Edit configuration:<br />
<br />
gksudo gedit /etc/fstab<br />
<br />
Add something similar to below:<br />
<br />
192.168.1.1:/path/to/shared/files /mnt/files nfs rsize=8192,wsize=8192,timeo=14,intr 0 0<br />
<br />
Test new configuration:<br />
<br />
sudo mount -a<br />
<br />
Reboot to test automatic mounting.<br />
<br />
== '''''硬件''''' ==<br />
<br />
=== NVidia 驱动 ===<br />
<br />
首先,弄清楚你清楚你是什么内核运行以下命令查看:<br />
<br />
user@localhost:~$ uname -a<br />
Linux localhost 2.6.22-14-generic #1 SMP Sun Oct 14 23:05:12 GMT 2007 i686 GNU/Linux<br />
<br />
I have the '''generic''' kernel, so I need to install the following:<br />
<br />
sudo apt-get install linux-restricted-modules-generic<br />
<br />
<br> After that's done, go to '''''System &gt; Administration &gt; Restricted Drivers Manager''''' and turn on the driver.<br />
<br />
Some users may receive an error screen: "The software source for the packsge nvidia-glx-new is not enabled." This can be overcome by going to '''''System &gt; Administration &gt; Software Sources''''' and ticking all the boxes under the heading "Downloadable from the Internet", click close and then allow Ubuntu to reload the package lists. The NVidia drivers can then be enabled using the method above.<br />
<br />
You can optionally prevent showing NVidia logo on startup by:<br />
<br />
sudo nvidia-xconfig --no-logo<br />
<br />
=== Wacom tablet ===<br />
<br />
By default, options for the Wacom tablet are commented out. Type the following command to edit the '''xorg.conf''' file.<br />
<br />
gksu gedit /etc/X11/xorg.conf<br />
<br />
Uncomment the following by removing the "#" or just replace the tree lines:<br />
<br />
InputDevice "stylus" "SendCoreEvents"<br />
InputDevice "cursor" "SendCoreEvents"<br />
InputDevice "eraser" "SendCoreEvents"<br />
<br />
Save and restart your X-session by typing '''CTRL-ALT-BACKSPACE'''.<br />
<br />
=== Microsoft Intellimouse ===<br />
<br />
To get the scroll wheel and side buttons to be recognized, change your '''/etc/X11/xorg.conf''' mouse section to look like the following:<br />
<br />
Section "InputDevice"<br />
<br />
Identifier "Configured Mouse"<br />
Driver "mouse"<br />
Option "CorePointer"<br />
Option "Device" "/dev/input/mice" <br />
Option "Protocol" "ExplorerPS/2"<br />
Option "ZAxisMapping" "4 5"<br />
Option "Emulate3Buttons" "true"<br />
Option "Buttons" "7" <br />
Option "ButtonMapping" "1 2 3 6 7"<br />
<br />
EndSection<br />
<br />
If you want the wheel scroll button to scroll in firefox rather than the side buttons make "ZAxisMapping" "6 7" and "ButtonMapping" "1 2 3 4 5".<br />
<br />
At this point you can reboot your computer or restart X (Ctrl-Alt-BackSpace) to see if your forward/back buttons work in FireFox. You can test in a terminal with '''xev'''.<br />
<br />
=== Logitech Marble Mouse ===<br />
<br />
To get the scrollwheel effect on Logitech trackball (Marble Mouse), change your '''/etc/X11/xorg.conf''' mouse section to look like the following:<br />
<br />
Section "InputDevice"<br />
<br />
Identifier "MarbleMouse"<br />
Driver "mouse"<br />
Option "Protocol" "auto"<br />
Option "Device" "/dev/input/mice"<br />
Option "Buttons" "5"<br />
Option "ButtonMapping" "1 8 3 6 7"<br />
Option "EmulateWheel" "true"<br />
Option "EmulateWheelTimeout" "300" # msec<br />
Option "EmulateWheelButton" "6"<br />
Option "YAxisMapping" "4 5"<br />
<br />
EndSection<br />
<br />
Make sure that you have "MarbleMouse" under the server layout section as well.<br />
<br />
The big left and right buttons work normally (click, right click) and pressing them at the same time acts as a middle click. Holding the small left button will let you scroll up and down with the trackball. Clicking small left and right buttons will let you go back/forward in firefox.<br />
<br />
Thanks to imjustabill and Buffalo Soldier from the Ubuntu Forum. This works well on my computer.<br />
<br />
=== Logitech MX510 ===<br />
<br />
To have the extra buttons on your MX510 working with X, you'll have to install and configure the evdev-drivers. Open up a terminal and enter:<br />
<br />
sudo apt-get install [http://packages.ubuntu.com/gutsy/x11/xserver-xorg-input-evdev xserver-xorg-input-evdev] <br />
<br />
Now, all you have to do is configure Xorg to work with the new driver. Always remember to back up original files before altering:<br />
<br />
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.bak<br />
gksudo gedit /etc/X11/xorg.conf<br />
<br />
Locate and replace the '''InputDevice''' section which holds the information for your mouse, for example with the identifier '''Configured Mouse''', and replace it with:<br />
<br />
<nowiki>Section "InputDevice"<br />
Identifier "Configured Mouse"<br />
Driver "evdev"<br />
Option "CorePointer"<br />
Option "Name" "Logitech MX510"<br />
EndSection</nowiki> <br />
<br />
Logout or kill the X session using '''&lt;CTRL&gt;&lt;ALT&gt;&lt;BACKSPACE&gt;''' and login again. This should get all of your buttons and scrollwheel up and running, and even let you navigate the webbrowser history using the thumb buttons on the side.<br />
<br />
=== Disable CAPS LOCK ===<br />
<br />
I like to remap mine to '''&lt;Ctrl&gt;'''. Just run gnome-keyboard-properties with "System &gt; Preferences &gt; Keyboard", click on the "Layout Options" tab and then on the arrow next to "Ctrl key position". Selecting "Make CapsLock an additional Ctrl" does the trick.<br />
<br />
=== Enabling NUM LOCK at boot ===<br />
<br />
The Default behavior is for the NUM LOCK key to be off; if you are on a desktop and have a keypad though, entering digits from it can be much quicker and you may wish to have it enabled for entering login password, etc. Here's how:<br />
<br />
* From Synaptic, download and install "numlockx," or, from the command line;<br />
<br />
sudo apt-get install numlockx<br />
<br />
* To get it working, you now have to edit the appropriate startup file. First, make sure you have a working backup of the file:<br />
<br />
sudo cp /etc/gdm/Init/Default /etc/gdm/Init/Default.bak<br />
<br />
* Next, modify the gdm/Init file. In terminal:<br />
<br />
gksudo gedit /etc/gdm/Init/Default<br />
<br />
* Scroll down to the end of the file, and above the line that says "exit 0" add the following:<br />
<br />
if [ -x /usr/bin/numlockx ]; then<br />
/usr/bin/numlockx on <br />
fi<br />
<br />
* Next time you reboot, your NUM LOCK should default to "on."<br />
<br />
=== BSNL Broadband (dataone) speedup ===<br />
<br />
BSNL Broadband or Dataone provides high speed (2Mbps) Internet connectivity in India. The DNS servers provided by the BSNL (61.1.96.69 and 61.1.96.71) are very slow. Instead use Either of these:<br />
<br />
208.67.222.222 and 208.67.220.220 or<br />
<br />
4.2.2.1 and 4.2.2.2 or<br />
<br />
search Google for free DNS service providers.<br />
<br />
=== Citrix ICA client ===<br />
<br />
The Citrix client no longer suffers from any of the previous Ubuntu version's problems of UTF8 font issues, OpenMotif depends, or flaky/broken browser integration. It just works!<br />
<br />
* Download the latest en.linuxx86.tar.gz (currently v10.6) from [http://www.citrix.com/ Citrix.com] and save to your desktop<br />
* Right-click tar.gz file, and '''Extract Here'''<br />
* Open a Terminal<br />
<br />
Programs &gt; Accessories &gt; Terminal<br />
<br />
* Change to the directory where we extracted the client<br />
<br />
cd Desktop/en.linuxx86<br />
<br />
* Run the setup program<br />
<br />
./setupwfc<br />
<br />
* Select the defaults<br />
<br />
Now, web files from Metaframe Presentation Server, Citrix Access Gateway, etc webpages will work fine in Firefox.<br />
<br />
Someone may wish to add an entry on how to use the client to connect to a local Citrix farm.<br />
<br />
=== WINE ===<br />
<br />
Latest install instructions are always at: [http://www.winehq.org/site/download-deb WineHQ.org]<br />
<br />
Add repository key:<br />
<br />
wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | sudo apt-key add -<br />
<br />
Add repository to apt sources:<br />
<br />
sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/gutsy.list -O /etc/apt/sources.list.d/winehq.list<br />
<br />
Update apt sources:<br />
<br />
sudo apt-get update<br />
<br />
Install WINE:<br />
<br />
sudo apt-get install wine<br />
<br />
The program menu then appears in Programs under Wine, or double-click a Windows/DOS .exe file.<br />
<br />
==== Install Internet Explorer 6 for Wine ====<br />
<br />
IE 6 is not recommended for general usage, but some Windows packages (installed under Wine) require IE6 to complete installation. Furthermore, IE 6 is useful for checking code for developers who want to see how their web pages appear under IE 6.<br />
<br />
Install the required package cabextract from Synaptic Package Manager (or from apt-get install cabextract).<br />
<br />
Download and run the IEs4Linux installation script from the IEs4Linux website:<br />
<br />
wget http://www.tatanka.com.br/ies4linux/downloads/ies4linux-latest.tar.gz<br />
tar zxvf ies4linux-latest.tar.gz<br />
cd ies4linux-*<br />
./ies4linux<br />
<br />
<br> There is a beta version of the install at http://www.tatanka.com.br/ies4linux/downloads<br />
<br />
'''If you hit advance you have the option to install IE7. I have not gotten it to work as of yet, but IE6 installs with no issues on amd64 and i386'''<br />
<br />
Accept all the defaults for installation.<br />
<br />
==== Wine-Doors ====<br />
<br />
Wine-Doors http://www.wine-doors.org/ packages Windows applications for Wine. The current package list includes Internet Explorer 6.<br />
<br />
Debian/Ubuntu package (single click) available for [http://www.wine-doors.org/wordpress/?page_id=3 download].<br />
<br />
=== VMWare Server ===<br />
<br />
Until the Commercial Ubuntu repository includes the VMWare Server, you can use the following 'How To' to compile from source.<br />
<br />
* [http://www.ubuntugeek.com/how-to-install-vmware-server-in-ubuntu-710-gutsy-gibbon.html Step By Step Vmware server setup guide including Screenshots]<br />
<br />
==== VMWare Tools ====<br />
<br />
If you want to install VMware tools on ubuntu gutsy follow this steps<br />
<br />
* [http://www.ubuntugeek.com/howto-install-vmware-tools-in-ubuntu.html VMWare Tools Setup Guide Incliding Screenshots]<br />
<br />
To be able to use usb devices look at following bug comment at https://bugs.launchpad.net/ubuntu/+source/kvm/+bug/156085/comments/5<br />
<br />
=== How to install Broadcom wireless driver ===<br />
<br />
* This worked for me Kubuntu 7.10 32 bit but there are several ways<br />
<br />
* First, make sure you have the appropriate hardware<br />
<br />
lspci | grep Broadcom<br />
<br />
* Output should match this<br />
<br />
02:03.0 Network controller: Broadcom Corporation BCM4306 802.11b/g Wireless LAN Controller (rev 02)<br />
<br />
* Then you have to add a repository<br />
<br />
gksu gedit /etc/apt/sources.list<br />
<br />
* Add<br />
<br />
deb http://ubuntu.cafuego.net gutsy-cafuego bcm43xx<br />
<br />
* Then do this to add the signature<br />
<br />
wget http://ubuntu.cafuego.net/AF425CB5.gpg -O- | sudo apt-key add -<br />
<br />
* Back in the console<br />
<br />
sudo apt-get update<br />
sudo apt-get install bcm43xx-firmware <br />
<br />
* Just press yes, let it install, and reboot! Thanks to Pete and the 7.04 guide for this.<br />
<br />
== Requests ==<br />
<br />
If you have requests that you would like to be part of this guide, write them in [[Ubuntu talk:Gutsy|Ubuntu_talk:Gutsy]].<br />
<br />
== '''''Troubleshooting''''' ==<br />
<br />
Place solutions to problems you have encountered with Gutsy here. They may be workarounds to bugs or other solutions to other problems.<br />
<br />
=== OpenOffice spell checking problem ===<br />
<br />
This problem is not a bug at all. Some Languages do not have spell checking support, while others do. For example, "English (India)" does not support spell checking but "English (USA)" does. Just go to<br />
<br />
Tools -&gt; Options -&gt; Language Settings -&gt; Languages<br />
<br />
and select a Western language that has a check mark beside the language name. That's it.<br />
<br />
If you want to add languages that support spell checking, install the package myspell-&lt;language&gt; where &lt;language&gt; is the desired language, e.g.:<br />
<br />
sudo apt-get install myspell-fr <br />
<br />
to install the French dictionary.<br />
<br />
=== Alternative of SCIM to switch keyboard layout ===<br />
<br />
SCIM might not work properly under Gutsy Gibbon, although works fine under Feisty Fawn. Until the problem is fixed, you can use the alternative method to switch keyboard layout.<br />
<br />
* Go to System -&gt; Administration -&gt; Language Support and install the languages you want to use.<br />
* Open System -&gt; Preferences -&gt; Keyboard and add the layout that you want to use from Layouts tab.<br />
* Right click on the free space of upper panel and select "Add to panel...". Add Keyboard Indicator.<br />
<br />
=== Fix Slow boot/faulty splash screen ===<br />
<br />
if your system is booting slowly or your ubuntu splash screen is not being displayed it could be that Usplash has created the splash screen incorrectly<br />
<br />
1) edit /boot/grub/menu.lst<br />
<br />
sudo gedit /boot/grub/menu.lst<br />
<br />
At the very end of the kernel line after "splash" , add<br />
<br />
"vga=***" <br />
<br />
replace *** with the code from the table below that corresponds with the resolution and colour setting you are using<br />
<br />
{| cellspacing="0" cellpadding="5" border="1" align="center"<br />
|-<br />
| Screen<br />
| 640x480<br />
| 800x600<br />
| 1024x768<br />
| 1280x1024<br />
| 1600x1200<br />
|-<br />
| Colors<br />
| <br />
| <br />
| <br />
| <br />
| <br />
|-<br />
| 256<br />
| 769<br />
| 771<br />
| 773<br />
| 775<br />
| 796<br />
|-<br />
| 32,768<br />
| 784<br />
| 787<br />
| 790<br />
| 793<br />
| 797<br />
|-<br />
| 65,536<br />
| 785<br />
| 788<br />
| 791<br />
| 794<br />
| 798<br />
|-<br />
| 16.8M<br />
| 786<br />
| 789<br />
| 792<br />
| 795<br />
| 799<br />
|}<br />
<br />
the line should look something like this<br />
<br />
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=20fd9912-6383-4860-9cd8-88a11909d715 ro quiet splash vga=791<br />
<br />
Save that file, close it,<br />
<br />
2) edit /etc/usplash.conf<br />
<br />
sudo gedit /etc/usplash.conf<br />
<br />
change the resolution to the one you set in the previous step save and close<br />
<br />
3) rebuild the bootsplash screen<br />
<br />
sudo update-initramfs -u -k `uname -r`<br />
<br />
This rebuilds the image that Grub uses to start the system.<br />
<br />
4) reboot<br />
<br />
=== Logout problem ===<br />
<br />
Some users have have faced a hangout problem when whey press the quit button. Currently the following symptom and work-around have been noticed:<br />
<br />
* Press Ctrl-Alt-Backspace to kill X-Window and show the GDM screen.<br />
* gnome-power-manager service should be on. You can enable it from System-&gt;Preferences-&gt;Sessions.<br />
* Wait for 1 minute. The quit window will appear. (the logout problem will vanish for some times).<br />
* For some users, removing .config/autostart/ directory worked.<br />
<br />
== Tips And Tricks ==<br />
<br />
It is pointless to add the tricks that is already added in [[Ubuntu:Feisty#Tips And Tricks|Ubuntu:Feisty#Tips_And_Tricks]]. So, only new tricks are added.<br />
<br />
=== What to do when Ubuntu freezes ===<br />
<br />
There are different reasons for a computer to crash - there can be a programming bug, a memory issue, or other. When your computer seems to be dead, don't panic! And don't reach for that power button! There are '''five''' simple things you can try before killing the power:<br />
<br />
# Is the computer frozen? Try going into one of the VTs by pressing '''&lt;Ctrl&gt;&lt;Alt&gt;''' and '''F1'''. This way you may still have control of the computer and manage to kill the application which caused the problem. '''''More on killing applications later.'''''<br />
# If you can't change into a VT, try to kill the X session. This can be done by pressing '''&lt;Ctrl&gt;&lt;Alt&gt;&lt;Backspace&gt;'''. All applications that were opened during the session will automatically be killed, so you should gain control over the computer after you've been sent back to the login screen.<br />
# OK, so you can't kill X or go into VT. Let's do a reboot, which can safely be done by pressing '''&lt;Ctrl&gt;&lt;Alt&gt;&lt;Delete&gt;'''. The machine will beep and start running the shutdown scripts.<br />
# If for some reason one or more of the shutdown scripts should die, and the computer stops the rebooting process, press the key combination again to ''force a reboot''. This not safe if the scripts haven't gotten around to unmount the local filesystems.<br />
# Final way out: Your computer doesn't obey and none of above methods seem to give any response. Here's a little trick that might help, not known to many Linux users! The kernel has a small userspace communication line opened, so even if the computer has crashed badly (I haven't tried this during kernel-panic, though, can anyone confirm?) you can make it reboot safely. This method ''is'' safe, but should be used '''''only if everything else fails'''''! Hold down '''&lt;Ctrl&gt;''', '''&lt;Alt&gt;''' and '''&lt;PrtScrn/SysRq&gt;'''. While holding down these, type the following letters - in order - '''R E I S U B'''. The computer will unmount any filesystems that are locally mounted, and safely bring down the system. If you have trouble remembering the letter combination; think '''''busier''''', only ''backwards''.<br />
<br />
=== How to find the UUID of a device ===<br />
<br />
* This is useful if changes are made to the partition table or a new hard drive is added to the computer.<br />
* When the UUID(s) change an error will be caused during boot.<br />
* Pressing &lt;Ctrl&gt;-D will allow the boot to continue but to fix the problem:<br />
<br />
-&gt; Open fstab file:<br />
<br />
sudo gedit /etc/fstab<br />
<br />
-&gt; In another terminal run this commmand:<br />
<br />
ls -l /dev/disk/by-uuid/ <br />
<br />
-&gt; Or you can type this to list all of your devices:<br />
<br />
blkid<br />
<br />
* Compare the UUID's and any that are different in fstab from the list must be changed. The easiest way is copy and paste.<br />
* Some other things may have to be edited as well like the mount point, type (ext2, ext3, ntfs, etc) , options, dump, pass, etc.<br />
<br />
''For more help editing fstab look [http://ubuntuforums.org/showthread.php?t=283131 Here:]''<br />
<br />
* To list the UUID of a specific device:<br />
<br />
sudo vol_id -u device<br />
<br />
* Where device might be /dev/sdxy.<br />
<br />
''Example: sudo vol_id -u /dev/sda1''<br />
<br />
=== Enable vim syntax highlighting ===<br />
<br />
The source of vi/vim command is vim-tiny package which does not support syntax highlighting. Install vim:<br />
<br />
sudo apt-get install vim<br />
<br />
Then open /etc/vim/vimrc and uncomment '''syntax on'''<br />
<br />
Replace<br />
<br />
"syntax on<br />
<br />
With<br />
<br />
syntax on<br />
<br />
=== HAL ===<br />
<br />
If you have problem failed to initialize HAL, and devices such as card reader,or shutdown problem, power meter doesn´t appear..please find this line in /etc/init.d/rc<br />
<br />
sudo vim /etc/init.d/rc find this line&nbsp;: CONCURRENCY=shell<br />
<br />
To fix this:<br />
<br />
sudo nautilus<br />
<br />
<br />
<br />
Navigate to /etc/ look for the folder '''rc2.d''' rename '''s12hal''' to '''s13hal'''<br />
<br />
the problem was HAL loading before DBUS and causing such error. this should fiz the problem, if not<br />
<br />
sudo gedit /etc/init.d/rc<br />
<br />
and turn CONCURRENCY=shell to CONCURRENCY=none<br />
<br />
=== Enable Sirius Internet Radio for Firefox ===<br />
<br />
* Install [[Ubuntu:VLC|VLC]]<br />
* Install the [https://addons.mozilla.org/en-US/firefox/addon/446 firefox media player connectivity plugin]<br />
<br />
Launch the player from [http://www.sirius.com/servlet/ContentServer?pagename=Sirius/Page&c=FlexContent&cid=1191942072317&flash=noflash| www.sirius.com]. After authenticating, you will now be able to select which stream to play. Selecting the stream will launch vlc.<br />
<br />
=== Remove unwanted language/locale files ===<br />
<br />
sudo apt-get install localepurge<br />
sudo localepurge<br />
<br />
=== Auto starting pidgin at login ===<br />
<br />
Goto System -&gt; Preferences -&gt; Sessions. Click Add. A popup window will appear. Set Name to "Pidgin" and Command to "/usr/bin/pidgin". Click OK. Make sure that it is enabled.<br />
<br />
=== sudo/gksu without password ===<br />
<br />
EDITOR=gedit gksu visudo<br />
<br />
Find "Defaults&nbsp;!lecture,tty_tickets,!fqdn" and replace by "Defaults timestamp_timeout=-1".<br />
<br />
=== Speed-up Ubuntu ===<br />
<br />
Open System -&gt; Preferences -&gt; Sessions and remove the startup programs that you do not need (e.g. Bluetooth Manager, Evolution Alarm Notifier, Restricted Driver Manager, Tracker, User folders update, Visual).<br />
<br />
Open System -&gt; Preferences -&gt; Appearance and make Visual Effects to None.<br />
<br />
Open System -&gt; Administration -&gt; Services and disable the services that you do not need (e.g. alsa-utils, bluetooth, brltty, hdparm, acpid, apmd, screen).<br />
<br />
=== How to change the USplash Screen on startup/shutdown ===<br />
<br />
When you add another Desktop Environment, the USplash screen may change (saying Kubuntu instead of Ubuntu). If you want to change it, do the following:<br />
<br />
sudo update-alternatives --config usplash-artwork.so<br />
<br />
This will bring up a list of installed USplash screens. Type the number that corresponds to the one you want and press Enter. Then type:<br />
<br />
sudo dpkg-reconfigure usplash<br />
<br />
Then reboot.<br />
<br />
== '''''Guide Development''''' ==<br />
<br />
''Note: This section was taken from the Feisty Guide and edited appropriately.''<br />
<br />
Place ideas here to increase the look and performance of this guide.<br />
<br />
* Add a new section for Gnome Themes from http://art.gnome.org and KDE Themes from http://www.kde-look.org/.<br />
* Have entries under their headings in alphabetical order.<br />
* Try to keep the guide neat and clutter free.<br />
* Possible "Short Version" Table of contents without each "How to".<br />
* Add a [top] link to the end of each article.<br />
* If possible, include a 'find/search' function to easily access queries. <br />
** This can be done in Firefox with &lt;Ctrl&gt;-F.<br />
* instead of 'apt-get install', there could be the new Gutsy [http://www.ubuntugeek.com/apturl-protocol-handler-in-ubuntu-gutsy-gibbon.html apturl] feature for easier installation of software</div>Convicehttps://wiki.ubuntu.org.cn/index.php?title=Ubuntu:Gutsy/zh&diff=75358Ubuntu:Gutsy/zh2007-12-30T12:42:06Z<p>Convice:</p>
<hr />
<div>{{Translation}} {{From|http://ubuntuguide.org/Ubuntu:Gutsy}} {{Languages|Ubuntu:Gutsy}} {{Translator|zhan 译者2}}<br />
<br />
= ''''' Ubuntu 7.10 (Gutsy Gibbon) ''''' =<br />
<br />
'''Ubuntu Gutsy Gibbon, the successor of Feisty Fawn was released on Oct 18th, 2007. Please help test and perfect this guide.'''<br />
'''Ubuntu Gutsy Gibbon, Feisty Fawn 的后续版本,于 2007 年 10 月 18 日已经发布。请帮忙测试和完善这份指南'''<br />
<br />
This guide was started by [[User:Jiyuu0|Chua Wen Kiat]] (Kuala Lumpur, Malaysia). <br />
It is now being maintained by the [http://linux.edu.lv/index.php?newlang=english Linux Center] of [http://www.lu.lv/eng/ University of Latvia], and everyone else who is willing to contribute.<br />
<br />
这份指南由 [[User:Jiyuu0|Chua Wen Kiat]] (Kuala Lumpur, Malaysia). 发起。现在它由[http://www.lu.lv/eng/ Latvia 大学]的[http://linux.edu.lv/index.php?newlang=english Linux 中心]和所有愿意贡献的其他人们共同维护。<br />
<br />
This guide can be discussed at the official [http://www.ubuntuforums.org/forumdisplay.php?f=78 UbuntuGuide.org Forum] at ubuntuforums.org. Stop by and join the discussion. <br />
<br />
这份手册可以在官方论坛 ubuntuforums.org 的[http://www.ubuntuforums.org/forumdisplay.php?f=78 UbuntuGuide.org 论坛]<br />
讨论。加入讨论吧。<br />
<br />
== ''''' 前言 ''''' ==<br />
<br />
=== 关于 Gutsy ===<br />
<br />
* On October 18, 2007 Ubuntu 7.10 was released.<br />
* It was code named Gutsy Gibbon and is the successor to Ubuntu 7.04 Feisty Fawn (Feisty+1 or the very next release after Feisty)<br />
* Gutsy will be supported for 18 months on both desktops and servers.<br />
* Users requiring a longer support lifetime on servers may choose to continue using Ubuntu 6.06 LTS, with security support until 2011, rather than upgrade to or install 7.10.<br />
<br />
* 2007 年 10 月 18 日,Ubuntu 7.10 发布。<br />
* 它被命名为 Gutsy Gibbon,它是 Ubuntu 7.04 Feisty Fawn 的后续版本(Feisty +1 或紧接 Feisty 之后发布的版本)<br />
* Gutsy 将在桌面和服务器版本上提供 18 个月的支持<br />
* 要求更长期服务器版本支持的用户可以选择 Ubuntu 6.06 LTS ,而不是更新到 7.10, 因为 6.06 的安全支持直到 2011 年。<br />
<br />
=== 如何找出您正在使用的 Ubuntu 版本 ===<br />
<br />
* Read [[#General Notes]]<br />
*In Gutsy goto System -> Administration -> System Monitor -> System Tab<br />
<br />
or on all versions and derivatives of Ubuntu use this command:<br />
<br />
lsb_release -a<br />
<br />
* 读一下 [[#General Notes]]<br />
* 在 Gutsy 中,到系统->管理->系统监视器->系统标示 查看<br />
或者在所有的 Ubuntu 版本和衍生版本中,使用这个命令:<br />
<br />
lsb_release -a<br />
<br />
=== Ubuntu 的更新的版本 ===<br />
<br />
* Ubuntu uses a six month release cycle<br />
* These releases occur in April and October<br />
* The next release is scheduled for April 24, 2008 and will be Ubuntu 8.04 (Hardy Heron) which is Gutsy+1.<br />
* Hardy Heron will be a LTS (Long Term Support) release and will be supported with security updates for five years on the server and three years on the desktop.<br />
<br />
* Ubuntu 采用 6 个月的发行周期<br />
* 一般发布在 4 月和 10 月<br />
* 下一次的发布计划在 2008 年 4 月 24 日,并命名为 Ubuntu 8.04(Hardy Heron)即 Gutsy+1。<br />
* Hardy Heron 将是 LTS(长期支持)版本,将提供 5 年的服务器版本安全支持和 3 年的桌面版本支持。<br />
<br />
=== Ubuntu 的老版本 ===<br />
<br />
* '''[[Ubuntu:Feisty | 7.04 (Feisty Fawn)]]'''<br />
<br />
* '''[[Ubuntu:Edgy | 6.10 (Edgy Eft)]]'''<br />
<br />
* '''[[Ubuntu_dapper | 6.06 (Dapper Drake)]]'''<br />
<br />
If you are using an outdated version of Ubuntu, you should consider updating it to Gutsy. There have been considerable improvements to this version, and the updater used in Gutsy will ease transitions to future versions. If you are in a production environment, or if everything works perfectly for you, you may wish to stay with a Long-Term Support (LTS) version.<br />
<br />
如果您试用一个 Ubuntu 的过时的版本,您应该考虑将其升级到 Gutsy。 这个版本有相当多的改进,并且和将来的版本更加容易整合。如果您使用其作为一个生产环境,或您认为所有的事情都很完美,您可以考虑仍然使用长期支持版本(LTS)。<br />
<br />
*[http://www.ubuntu.com/getubuntu/upgrading Ubuntu 升级页面]<br />
<br />
* Dapper is latest LTS and the next version Gutsy+1 will be the next LTS released.<br />
<br />
*Read [https://lists.ubuntu.com/archives/ubuntu-devel-announce/2007-April/000276.html Introduction to Gutsy Gibbon] from April 2007<br />
<br />
* Dapper 是最新的 LTS 版本,Gutsy+1 的新版本将是下一个 LTS 版本。<br />
<br />
* 读一下从 2007 年 4 月开始的[https://lists.ubuntu.com/archives/ubuntu-devel-announce/2007-April/000276.html Gutsy Gibbon 简介] <br />
<br />
=== General Notes ===<br />
<br />
# 这是一个非官方的 Ubuntu 7.10 (Gutsy Gibbon) 初学者向导. 它与 Ubuntu和 Canonical 公司都没有关系.<br />
# 这个向导发自于官方论坛([http://www.ubuntuforums.org/forumdisplay.php?f=78 UbuntuGuide.org Forum] at ubuntuforums.org).欢迎参与讨论。<br />
# If you see a bluish box, this means you have to execute the commands in Terminal mode (Applications -&gt; Accesories -&gt; Terminal) or use the content of that box as mentioned in some other instructions.<br />
# 在终端模式,你也可以用“复制”“粘贴”来代替用键盘键入命令,这样往往可以有效的防止输入错误。(Ctrl+c=复制,Shift+Insert=粘贴)<br />
# "sudo" 表示 "'''s'''ubstitute '''u'''ser '''do'''". Sudo 需要你提供密码(密码不会在终端中回显). 你可以利用sudo代替另一个用户在计算机上操作-比如&nbsp; sudo -u peter &lt;命令&gt; 将会以peter的身份在计算机上执行此命令。<br><br />
# 欲获得更多关于命令的信息,请参阅手册页。例如,在终端中输入“man sudo”可以获得与sudo相关的信息。<br />
# 你也可以使用更新管理器来代替"apt-get"(系统-系统管理-更新管理器)<br />
# "apt-get"和"wget"都需要网络连接来下载安装和更新程序<br><br />
# 所以涉及 "aptitude"的选项都可以用"apt-get"替代.当然可以继续使用"aptitude",但是这可能会造成一些依赖性上的问题。<br><br />
# 可以点击右键选择“链接另存为”来下载文件,但必须保证文件的名字和拓展名都是正确的<br />
# 如果你有意向帮助Ubuntu本土化,请访问 https://launchpad.net/<br />
# 善待他人的理念永远和Ubuntu一起伴随着你...<br />
# ''如果使用的是64位的版本,请在“i386”用“amd64”代替''<br />
<br />
=== 外部链接申明 ===<br />
<br />
这份指南中的很多部分都有外部链接,这可以使这份指南更加精悍,然而Ubuntugide.org不能保证每个链接都是有效的。我们不能对本指南以外的一些拓展链接负责,如果你发现哪个链接是无效的,那请在此处报告问题,或者为我们修正那些指向错误的外部链接。因为有你,我们才能做的更加完美。<br />
<br />
==== ''关于链接出错'' ====<br />
<br />
''如果您发现某个链接是错误的或者无法找到相关信息,那请将此连接贴到此处,包括您是在哪段里找到此链接的。谢谢合作!''<br />
<br />
=== 关于Ubuntu以及官方的一些相关内容<br> ===<br />
<br />
==== Ubuntu 7.10的相关指导 ====<br />
<br />
* [http://www.ubuntu.com/ Ubuntu官方网站]<br />
* [http://www.ubuntu.com/products/whatisubuntu 官方介绍关于Ubuntu]<br />
* [http://ubuntuforums.org/ Ubuntu官方论坛]<br />
* [http://en.wikipedia.org/wiki/Ubuntu_(Linux_distribution) 维基百科: Ubuntu版本介绍 (Linux 发行版)]<br />
* [http://www.ubuntugeek.com/ Ubuntu Geek 网站包括很多关于Ubuntu 的指导性文章]<br />
* [http://www.ubuntutips.net/ Ubuntu小窍门]<br />
<br />
<br><br />
<br />
===== Ubuntu截图 =====<br />
<br />
[http://www.debianadmin.com/ubuntu-710-gutsy-gibbon-screenshots-tour.html Ubuntu 7.10 截图展示&nbsp;]<br />
<br />
==== Kubuntu 7.10的相关指导<br> ====<br />
<br />
* [http://www.kubuntu.org/ Kubuntu官方网站]<br />
* [http://www.kubuntuguide.org/ Kubuntuguide.org]<br />
* [http://www.kubuntu.org/docs/about-kubuntu/C/index.html 官方介绍关于Kubuntu]<br />
* [http://kubuntuforums.net/forums/index.php Kubuntu官方论坛]<br />
* [http://en.wikipedia.org/wiki/Kubuntu Wikipedia: Kubuntu]<br />
<br />
===== Kubuntu Screenshots =====<br />
<br />
[http://www.debianadmin.com/kubuntu-710-gutsy-gibbon-screenshots-tour.html Kubuntu 7.10 Screenshots Gallery]<br />
<br />
==== Xubuntu 7.10 Guides and Links ====<br />
<br />
* [http://www.xubuntu.org/ Xubuntu Official Website]<br />
* [http://en.wikipedia.org/wiki/Xubuntu Wikipedia: Xubuntu]<br />
* [http://www.xubuntuguide.org Xubuntuguide.org]<br />
<br />
===== Xubuntu Screenshots =====<br />
<br />
[http://www.debianadmin.com/xubuntu-710-gutsy-gibbon-screenshots-tour.html Xubuntu 7.10 Screenshots Gallery]<br />
<br />
==== Edubuntu 7.10 Guides and Links ====<br />
<br />
[http://www.edubuntu.org/ Offical Edubuntu Website] [http://en.wikipedia.org/wiki/Edubuntu Wikipedia: Edubuntu]<br />
<br />
==== Gobuntu 7.10 Guides and Links ====<br />
<br />
[http://en.wikipedia.org/wiki/Gobuntu Wikipedia: Gobuntu]<br />
<br />
=== 翻译和本地化 ===<br />
<br />
Chinese, Japanese, Portuguese and most European languages have better support in Ubuntu than any other languages. If your language do not have enough support, then you can help Ubuntu by translating it in your preferred language. To translate, visit https://translations.launchpad.net/ubuntu and login (register if not already registered). Choose your preferred language and start translating.<br />
<br />
Ubuntu对中文,日文,葡萄牙文及其它的欧洲语言的支持比对其它语言的支持要好。如果你的语言没有足够的支持的话,那么您可以帮助Ubuntu翻译成你喜欢的语言。翻译请访问 [https://translations.launchpad.net/ubuntu translations.launchpad.net/ubuntu] 并登录(如果没有注册的话请先注册)。选择你喜欢的语言并开始翻译。<br />
<br />
== '''''更新升级和安装软件''''' ==<br />
<br />
=== 怎样加入新的软件仓库 ===<br />
<br />
''Work in Progress''<br />
<br />
==== 使用菜单 ====<br />
<br />
* Choose distribution-friendly repositories. These are part of the Ubuntu distribution system. This is the recommended method.<br />
<br />
* 选择版本友好的软件仓库。这是Ubuntu发行系统的一部分。这是推荐的方法。<br />
<br />
System--&gt;Administration--&gt;Software Sources<br />
<br />
系统--&gt;管理--&gt;软件源<br />
<br />
Check the repositories you think you will need (main, universe, restricted, multiverse). You probably won't need the 'sources' repository.<br />
<br />
检查你认为你将要用到的软件仓库(main, universe, restricted, multiverse)。你可能不需要源码软件仓库。<br />
<br />
* Add any third-party repositories. Such repositories are not monitored in any way. Some are quite popular, however. Use any third-party repository at your own risk.<br />
<br />
* 增加第三方软件仓库。这些软件仓库不会被监视,然而,有些十分流行。使用第三方软件仓库会增加你的风险。<br />
<br />
System--&gt;Administration--&gt;Software Sources--&gt;Third-party software--&gt;Add<br />
<br />
系统--&gt;管理--&gt;软件源--&gt;第三方软件--&gt;加入<br />
<br />
Add the name of your repository. In this example, we will use Medibuntu, a popular third-party repository not affiliated with Ubuntu in any way.<br />
<br />
为你的软件仓库命名。在这个例子中,我们将要用Medibuntu,一个十分流行但是没有被Ubuntu接纳的软件仓库。<br />
<br />
''APT line:'' deb http://packages.medibuntu.org/ gutsy free non-free<br />
<br />
* Download any needed gpg keys and add them to the keylist. This key verifies the repository to your system. The Medibuntu repository (not affiliated with Ubuntu) example is shown:<br />
<br />
wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add -<br />
<br />
==== 手动方法 ====<br />
<br />
* Create a backup of your current list of sources.<br />
<br />
* 备份你现有的软件源列表<br />
<br />
sudo cp -p /etc/apt/sources.list /etc/apt/sources.list_backup<br />
<br />
* Open the list of sources in a text editor<br />
<br />
* 用一个文本编辑器打开软件源列表<br />
<br />
Ubuntu users:<br />
<br />
Ubuntu用户:<br />
<br />
sudo gedit /etc/apt/sources.list<br />
<br />
* Replace everything with the following lines<br />
<br />
* 用下面的行覆盖所有<br />
<br />
:To use your local mirror you can add "''cc.''" before ''archive.ubuntu.com'' (cc = your country code)<br />
:e.g. ''<nowiki>deb http://lv.archive.ubuntu.com/ubuntu gutsy main restricted universe multiverse</nowiki>''<br />
<br />
deb http://us.archive.ubuntu.com/ubuntu/ gutsy main restricted<br />
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy main restricted<br />
<br />
## Major bug fix updates produced after the final release of the<br />
## distribution.<br />
<br />
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted<br />
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted<br />
<br />
##Universe<br />
<br />
deb http://us.archive.ubuntu.com/ubuntu/ gutsy universe<br />
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy universe<br />
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates universe<br />
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates universe<br />
<br />
## Multiverse<br />
<br />
deb http://us.archive.ubuntu.com/ubuntu/ gutsy multiverse<br />
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy multiverse<br />
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates multiverse<br />
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates multiverse<br />
<br />
## Backports<br />
<br />
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse<br />
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse<br />
<br />
## Canonical Partner Repository <br />
<br />
deb http://archive.canonical.com/ubuntu gutsy partner<br />
deb-src http://archive.canonical.com/ubuntu gutsy partner<br />
deb http://security.ubuntu.com/ubuntu gutsy-security main restricted<br />
deb-src http://security.ubuntu.com/ubuntu gutsy-security main restricted<br />
deb http://security.ubuntu.com/ubuntu gutsy-security universe<br />
deb-src http://security.ubuntu.com/ubuntu gutsy-security universe<br />
deb http://security.ubuntu.com/ubuntu gutsy-security multiverse<br />
deb-src http://security.ubuntu.com/ubuntu gutsy-security multiverse<br />
<br />
## PLF REPOSITORY (Unsupported. May contain illegal packages. Use at own risk.)<br />
deb http://packages.medibuntu.org/ gutsy free non-free<br />
<br />
* Save the edited file<br />
<br />
* 保存编辑好的文件<br />
<br />
wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add -<br />
sudo apt-get update<br />
<br />
=== 怎样从Feisty 升级到 Gutsy ===<br />
<br />
* [http://www.ubuntugeek.com/upgrade-ubuntu-704-feisty-fawn-to-ubuntu-710-gutsy-gibbon.html 一步一步地按照屏幕显示的升级向导把Ubuntu Feisty 升级到 Gutsy]<br />
<br />
=== How to edit Automatic Updates ===<br />
<br />
* Enable automatic updates from the menu:<br />
<br />
System--&gt;Administration--&gt;Software Sources--&gt;Updates<br />
<br />
Select Important Security Updates and Recommended Security Updates and any other desired updates. Choose frequency of updates.<br />
<br />
=== How to manually update Ubuntu ===<br />
<br />
* Read [[|#General Notes]]<br />
* Read [[|#How to add extra repositories]]<br />
<br />
* From the command line:<br />
<br />
use http://www.ubuntu-nl.org/source-o-matic/ page to generate the /etc/apt/sources.list file<br />
<br />
take a backup of your existing /etc/apt/sources.list file<br />
<br />
create a new /etc/apt/sources.list file from the generated page available on the browser<br />
<br />
now run the following commands<br />
<br />
sudo apt-get update<br />
sudo apt-get upgrade<br />
sudo apt-get dist-upgrade<br />
<br />
* From the menu:<br />
<br />
System -&gt; Administration -&gt; Update Manager<br />
<br />
== ''''' Add-on Applications ''''' ==<br />
<br />
=== Miscellaneous Applications ===<br />
'' The application in this section need a home. If Editors have the time, please place these apps in an appropriate category. If the category doesn't exist then make it. Destroy this message when complete. Thanks. --[[User:KrazyPenguin|KrazyPenguin]] 06:16, 27 October 2007 (EEST)''<br />
<br />
==== Hotwire - Graphical terminal for Ubuntu ====<br />
If you want graphical terminal for Ubuntu check this Very Useful<br />
*[http://www.ubuntugeek.com/hotwire-graphical-terminal-for-ubuntu.html Hotwire Installation Guide]<br />
==== How to install Epiphany web browser in Ubuntu ====<br />
If you want to How to install Epiphany web browser in Ubuntu follow this procedure<br />
*[http://www.ubuntugeek.com/how-to-install-epiphany-web-browser-in-ubuntu.html Epiphany web browser in Ubuntu]<br />
==== Midori - a lightweight web browser in Ubuntu ====<br />
If you want to How to install Midori web browser in Ubuntu follow this procedure<br />
*[http://www.ubuntugeek.com/midori-a-lightweight-web-browser.html Midori web browser in Ubuntu]<br />
<br />
==== apturl - protocol handler in Ubuntu Gutsy Gibbon ====<br />
If you want to install ubuntu package from web browser here is simple tool<br />
*[http://www.ubuntugeek.com/apturl-protocol-handler-in-ubuntu-gutsy-gibbon.html apturl Setup guide]<br />
==== sysvconfig - utility for configuring init script links ====<br />
sysvconfig - utility for configuring init script links,service command in ubuntu<br />
*[http://www.ubuntugeek.com/sysvconfig-utility-for-configuring-init-script-links.html sysvconfig - utility for configuring init script links]<br />
==== Howto Install qBittorrent in Ubuntu Gutsy ====<br />
sysvconfig - utility for configuring init script links,service command in ubuntu<br />
*[http://www.ubuntugeek.com/howto-install-qbittorrent-in-ubuntu-gutsy.html Howto Install qBittorrent in Ubuntu Gutsy]<br />
<br />
==== Enable Drag and Drop capabilities to aMSN ====<br />
*[http://www.ubuntugeek.com/how-to-enable-drag-and-drop-capabilities-to-amsn.html Enable Drag and Drop capabilities to aMSN ]<br />
<br />
==== Mount/Unmount .iso Images in oneclick ====<br />
*[http://www.ubuntugeek.com/easy-way-of-mountunmount-iso-images-in-ubuntu.html Mount/Unmount .iso Images in oneclick in Ubuntu]<br />
==== Startup Manager ====<br />
StartUp Manager - change settings in Grub, Grub2 and Usplash<br />
*[http://www.ubuntugeek.com/startup-manager-change-settings-in-grub-grub2-and-usplash.html change settings in Grub, Grub2 and Usplash]<br />
<br />
==== Adobe Reader Gutsy amd64/i386 ====<br />
<br />
*[http://www.ubuntugeek.com/how-to-install-adobe-pdf-reader-811-with-plug-in-for-mozilla-firefox-in-gutsy-gibbon.html Acrobat Reader 8 with firefox plugins step by step installation guide]<br />
First<br />
echo "deb http://packages.medibuntu.org/ gutsy free non-free" | sudo tee -a /etc/apt/sources.list<br />
<br />
Second<br />
wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add - && sudo apt-get update<br />
<br />
Third we add plug ins and Reader<br />
sudo aptitude install acroread acroread-plugins acroread-escript<br />
<br />
You can also install the plug-in for Firefox<br />
sudo aptitude install mozilla-acroread<br />
<br />
Enjoy Adobe Reader<br />
<br />
==== OpenOffice add ons ====<br />
Opening .docx files in OpenOffice for Ubuntu (This will work with other distros)<br />
<br />
First we need to download the converter, it can be found here> [http://download.novell.com/SummaryFree.jsp?buildid=ESrjfdE4U58%7E]<br />
Download the "odf-converter-1.0.0-5.i586.rpm"<br />
<br />
Now install alien, if you have not yet<br />
<br />
sudo apt-get install alien<br />
<br />
Then we need to convert it, we do not want a .deb package for this, so we use the -ct switch not the -k<br />
The -ct converts it to a .tgz<br />
<br />
sudo alien -ct odf-converter-1.0.0-5.i586.rpm<br />
<br />
Once it is converted you need to unpack it<br />
<br />
tar xvf odf-converter-1.0.0.tgz<br />
<br />
Now there should be three dirs on you desktop or where ever you un tared these.<br />
<br />
You now need to run<br />
<br />
sudo cp usr/lib/ooo-2.0/program/OdfConverter /usr/lib/openoffice/program/<br />
<br />
sudo cp usr/lib/ooo-2.0/share/registry/modules/org/openoffice/TypeDetection/Filter/MOOXFilter_cpp.xcu /usr/lib/openoffice/share/registry/modules/org/openoffice/TypeDetection/Filter<br />
<br />
sudo cp usr/lib/ooo-2.0/share/registry/modules/org/openoffice/TypeDetection/Types/MOOXTypeDetection.xcu /usr/lib/openoffice/share/registry/modules/org/openoffice/TypeDetection/Types<br />
<br />
Then you are done, you can now open and edit .docx files '''ONLY''' I will post the others when I find them.<br />
<br />
There is an alternative to installing the "odf converter" on Ubuntu 7.10 (Gutsy). The 3 simple steps are as follows:<br />
<br />
(make sure you are logged in as root first, so from the terminal, type '''sudo su -''' and type in your password when prompted) <br />
<br />
Step 1: echo "deb http://ubuntu.org.ua/ getdeb/" >>/etc/apt/sources.list<br />
<br />
Step 2: apt-get update<br />
<br />
Step 3: apt-get install odf-converter<br />
<br />
I did the 3 steps above and got it working on my machine. Please do let me know if anyone is having any problems with it.<br />
<br />
====Genealogical Research and Analysis Management Program (Gramps)====<br />
GRAMPS, the Genealogical Research and Analysis Management Programming System, is an Open Source genealogy program written in Python, using the GTK/GNOME interface. GRAMPS has the ability to import GEDCOM files that are used in such programs as FamilyTree Maker for Windows and can produce reports in various formats such as the popular ABIWord and OpenOffice.org formats as well as HTML and PDF.<br />
sudo apt-get install gramps<br />
<br />
=== 桌面 ===<br />
<br />
==== Howto Tweak Ubuntu System ====<br />
<br />
If you want to tweak ubuntu check this<br />
<br />
* [http://www.ubuntugeek.com/howto-tweak-ubuntu.html Howto Tweak Ubuntu System]<br />
<br />
==== AMOR - a creature for your desktop ====<br />
<br />
If you want to add some fun to your ubuntu desktop this is for you<br />
<br />
* [http://www.ubuntugeek.com/amor-a-creature-for-your-desktop.html AMOR - a creature for your desktop]<br />
<br />
==== Advanced Desktop Effects (Compiz Fusion) ====<br />
<br />
Ubuntu 7.10 Gutsy Gibbon comes shipped with Compiz Fusion pre-installed, which means less tinkering with sensitive configuration files. For most part, Compiz needs proprietary drivers for your graphics card to work properly, so make sure you install those if needed.<br />
<br />
To enable desktop effects, turn them on by navigating your GNOME-menu to '''System &gt; Preferences &gt; Appearance'''. Under the tab ''Visual Effects'' you'll find three settings; ''None'', ''Normal'' and ''Extra''. To turn Compiz on, choose one of the two latter.<br />
<br />
If you wish to customize your Compiz options and plugins, such as animations and Desktop Cube, first install the configuration tool:<br />
<br />
sudo apt-get install [http://packages.ubuntu.com/gutsy/x11/compizconfig-settings-manager compizconfig-settings-manager] <br />
<br />
Then either choose the now available '''''Custom''''' and '''''Preferences''''' from the above ''Visual Effects'' menu, or start the settings manager via the menu '''System &gt; Preferences &gt; Advanced Desktop Effects Settings'''. You can also start the application from the terminal or run dialog ('''ALT + F2'''), using the command '''ccsm'''.<br />
<br />
==== ATI users and Compiz ====<br />
<br />
Some ATI cards don't need their proprietary drivers to work with Compiz as the open-sourced driver ('''radeon''') also has support for 3D acceleration. However, the open-sourced driver isn't as fast as the closed-sourced ('''fglrx''') one, so if you need the proprietary one you'll have to tinker around in the terminal a little.<br />
<br />
<br> 1. After you've installed the driver, either through the proprietary manager or directly from [http://ati.amd.com/support/driver.html ATI's site], you'll have to setup the Xorg configuration file to work with your new driver. Always remember to back up the original file before altering, in case something goes wrong. Open up a terminal and enter:<br />
<br />
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.bak<br />
sudo aticonfig --initial --input=/etc/X11/xorg.conf<br />
<br />
This will disable the default '''radeon''' driver and replace it with ATI's own.<br />
<br />
<br> 2. Now, let's tell Compiz not to care about drivers that are blacklisted:<br />
<br />
echo SKIP_CHECKS="yes" &gt;&gt; $HOME/.config/compiz/compiz-manager<br />
<br />
Alternatively, you could whitelist the driver, which is a much prettier solution. Run this command to edit the Compiz startup-script:<br />
<br />
gksudo gedit /usr/bin/compiz<br />
<br />
Search for '''Driver whitelist''' and add '''''fglrx''''' to the end of the line, like this:<br />
<br />
# Driver whitelist<br />
WHITELIST="nvidia intel ati radeon i810 fglrx"<br />
<br />
<br> 3. Reboot your computer, login and enable Compiz as mentioned above '''et voilà'''! Behold Compiz and ATI hugging.<br />
<br />
==== Live system monitoring ====<br />
<br />
sudo apt-get install netspeed<br />
<br />
Right click on the free area of the upper panel and select "Add to Panel...". Add "System Monitor" and "Network Monitor". Right Click on System Monitor and select Preferences. Add the monitor resources that you want to monitor.<br />
<br />
==== Desktop session recording ====<br />
<br />
It is possible to record the whole desktop session along with mouse pointer and sound system. It is a very useful tool for video screenshot as ordinary still picture screenshots generated by pressing Print Screen cannot demonstrate everything. Three applications that can do this for you are Istanbul, Wink and gtk-recordMyDesktop.<br />
<br />
====== Istanbul ======<br />
<br />
sudo apt-get install istanbul<br />
<br />
====== Wink ======<br />
<br />
sudo apt-get install wink<br />
<br />
====== gtk-recordMyDesktop ======<br />
<br />
sudo apt-get install gtk-recordmydesktop<br />
<br />
==== International Clock Gnome Applet (OpenSuse contribution) ====<br />
<br />
To switch to the new international clock applet download it from [http://brainstormingproject.free.fr/intlclock_1.0-1ubuntu0_i386.deb Here] <!--{11987330273590} --> then install it with dpkg. <!--{11987330273591} --><br />
<br />
Remove the old clock gnome applet right-clicking on it and then add a new applet to the panel with a right-click too over the empty place:<br />
<br />
&gt;Add to panel...&gt;Miscellaneous&gt;International Clock&gt;Add<br />
<br />
You got it.<br />
<br />
Add World Map and choose World locations using its Preferences menu<br />
<br />
=== 备份 ===<br />
<br />
Ubuntu Backup Options<br />
If you want to backup your Ubuntu Desktop Use Sbackup<br />
<br />
* [http://www.ubuntugeek.com/backup-and-restore-your-ubuntu-system-using-sbackup.html Sbackup Installation and setup guide]<br />
<br />
rdiff-backup<br />
Use rdiff-backup ubuntu<br />
<br />
* [http://www.ubuntugeek.com/backup-ubuntu-using-rdiff-backup.html rdiff-backup Setp Tutorial]<br />
<br />
=== 游戏 ===<br />
<br />
==== Frozen Bubble ====<br />
<br />
To install Frozen Bubble simply run:<br />
<br />
sudo apt-get install frozen-bubble<br />
<br />
or use Synaptic Package Manager under System &gt; Administration menu, to locate and install the package.<br />
<br />
==== How to solve Sudoku ====<br />
<br />
There is a simple [http://tamal.nath.googlepages.com/sudoku.pl Perl script] for solving gnome-sudoku. It does not support trial-and-error.<br />
<br />
==== Super Nintendo Emulator (ZSNES) 1.510 for i386/AMD64 ====<br />
<br />
* Read [[|#General Notes]]<br />
<br />
''For support or questions see http://ubuntuforums.org/showthread.php?t=588744''<br />
<br />
''ZSNES 1.51 is included in the Official Gutsy i386 repos. However, there is no official AMD64 version, and the i386 version is known to have issues in Gutsy (see http://ubuntuforums.org/showthread.php?t=571666). There is a workaround available for i386 users who are experiencing this error (see http://ubuntuforums.org/showpost.php?p=3604026&amp;postcount=22).''<br />
<br />
* Add a 3rd Party Repository<br />
<br />
echo "deb http://packages.dfreer.org gutsy main" | sudo tee -a /etc/apt/sources.list<br />
wget http://packages.dfreer.org/7572013D.gpg -O- | sudo apt-key add -<br />
sudo apt-get update<br />
<br />
* Install using one of the lines below<br />
<br />
sudo apt-get install zsnes32 #for amd64 users<br />
sudo apt-get install zsnes #for everyone else<br />
<br />
* Applications &gt; Games &gt; zsnes or zsnes32<br />
<br />
==== Playstation Emulator (pSX) 1.13 for i386/AMD64 ====<br />
<br />
* Read [[|#General Notes]]<br />
<br />
''For support or questions see http://ubuntuforums.org/showthread.php?t=394097''<br />
<br />
* Add a 3rd Party Repository<br />
<br />
echo "deb http://packages.dfreer.org gutsy main" | sudo tee -a /etc/apt/sources.list<br />
wget http://packages.dfreer.org/7572013D.gpg -O- | sudo apt-key add -<br />
sudo apt-get update<br />
<br />
* Install using one of the lines below<br />
<br />
sudo apt-get install psx32 #for amd64 users<br />
sudo apt-get install psx #for everyone else<br />
<br />
* Applications &gt; Games &gt; pSX or pSX32<br />
<br />
==== KDE games ====<br />
<br />
To install the games from KDE 3 (recommended for Kubuntu users), install the package kdegames. This can be done with:<br />
<br />
sudo apt-get install kdegames<br />
<br />
==== UrbanTerror 4.0 ====<br />
<br />
* UrbanTerror 4.0 is a Multi-player First Person Shooter. The Game uses the open source quake 3 engine and features many real weapons and free to use servers for multi-player functionality.<br />
<br />
''More information can be found at [http://www.urbanterror.net UrbanTerror]''<br />
<br />
* You can manually download and install UrbanTerror from the following webpage [http://www.urbanterror.net/page.php?6 UrbanTerror_Download]<br />
* Or you can enjoy an automated install by downloading and executing the linux install script from either of the following links: [http://89.106.68.26/linux/urbanterror4/urt40-linux-installer.sh urt40-linux-installer.sh_1] or [http://vlaai.snt.utwente.nl/pub/games/urbanterror/urt40-linux-installer.sh urt40-linux-installer.sh_2]<br />
<br />
* After downloading the script open Terminal into your download directory then make the script executable with the following command:<br />
<br />
sudo chmod +x urt40-linux-installer.sh<br />
<br />
* Now double click on the script to execute and follow the directions<br />
* The install will take awhile as the script executes a download of the necessary files which are about 541MB<br />
* After the install you will have a nice UrbanTerror icon on your desktop (unless you installed as root)<br />
<br />
''This easy install script is courtesy of Nexu from the UrbanTerror Forums.''<br />
<br />
=== CD/DVD ===<br />
==== How to rip a DVD video ====<br />
dvd::rip is a full featured DVD copy program written in Perl. It provides an easy to use but feature-rich Gtk+ GUI to control almost all aspects of the ripping and transcoding process. It uses the widely known video processing swissknife transcode and many other Open Source tools.<br />
sudo apt-get install dvdrip<br />
<br />
==== How to burn video DVD ====<br />
dvdauthor is a program that will generate a DVD movie from a valid mpeg2 stream that should play when you put it in a DVD player.<br />
sudo apt-get install dvdauthor<br />
<br />
==== How to burn a CD/DVD ====<br />
nautilus-cd-burner is a basic and pre-installed program to write a CD or DVD. Serpentine is a pre-installed audio CD creator program. Serpentine can convert flac and mp3 on the fly, when making audio cds.<br />
[http://www.nero.com/ena/linux3.html nerolinux] is a non-free CD/DVD/Blu-Ray/HD-DVD recorder. k3b is a great CD/DVD writing tool for KDE (ideal for Kubuntu users). But if you are looking for GTK/Gnome alternatives, then [http://packages.ubuntu.com/gutsy/gnome/brasero brasero], [http://packages.ubuntu.com/gutsy/otherosfs/gcdw cdw/gcdw], [http://packages.ubuntu.com/gutsy/sound/gcdmaster gcdmaster], [http://packages.ubuntu.com/gutsy/gnome/graveman graveman] and [http://packages.ubuntu.com/gutsy/gnome/gnomebaker gnomebaker] might impress you.<br />
<br />
[http://packages.ubuntu.com/gutsy/otherosfs/dvdisaster dvdisaster] provides a margin of safety against data loss on CD and DVD media caused by scratches or aging media. It creates error correction data which is used to recover unreadable sectors if the disc becomes damaged at a later time.<br />
<br />
=== 互联网 ===<br />
<br />
==== Browser Plug-ins ====<br />
<br />
Ubuntu automatically installs plug-ins required to browse a site in Firefox. But if you want to install plug-ins run the following in Terminal:<br />
<br />
For Java plug-in:<br />
<br />
sudo apt-get install sun-java6-plugin<br />
<br />
For Flash plug-in:<br />
<br />
sudo apt-get install flashplugin-nonfree<br />
<br />
Or if you want to support the open source flash plugin:<br />
<br />
sudo apt-get install mozilla-plugin-gnash<br />
<br />
For VLC plug-in (automatically installs VLC also):<br />
<br />
sudo apt-get install mozilla-plugin-vlc<br />
<br />
For MPlayer plug-in (automatically installs MPlayer also):<br />
<br />
sudo apt-get install mozilla-mplayer<br />
<br />
For Real player plug-in (automatically installs helix-player):<br />
<br />
sudo apt-get install mozilla-helix-player<br />
<br />
For kaffeine plug-in (automatically installs kaffeine also):<br />
<br />
sudo apt-get install kaffeine-mozilla<br />
<br />
For image-zoom plug-in (to zoom images in a page):<br />
<br />
sudo apt-get install mozilla-imagezoom<br />
<br />
For adblock plug-in (to block ads in a web page):<br />
<br />
sudo apt-get install mozilla-firefox-adblock<br />
<br />
Gutsy includes the option to add extensions to Firefox through the Ubuntu repositories. The option to add these extensions is included by default. To see and add Ubuntu Add-ons:<br />
<br />
* In Firefox, Go to Tools &gt; Add-ons<br />
* Click "Get Ubuntu Addons"<br />
* To see all available add-ons, click the list next to "Show:" and choose "All Available Applications"<br />
* Choose whichever add-ons you want, and click "Apply Changes"<br />
* You can see which add-ons you've installed in the normal Firefox add-on box.<br />
<br />
(Note: All Ubuntu add-ons are also available through the Synaptic package manager.)<br />
<br />
===== Shockwave =====<br />
<br />
''There is no version of Shockwave for Ubuntu/Linux but WINE can be used to run it.'' ''This method will result in 2 Firefox Browsers installed on the computer.'' ''Only use the WINE version when using a website that requires it.'' ''The native version of Firefox will give better computer performance, so it should used in all other occurrences.''<br />
<br />
* Install WINE<br />
* Download and install Firefox for Windows<br />
* Download and install Shockwave for Windows<br />
<br />
==== Download Manager (Downloader for X) ====<br />
<br />
To install Downloader for X simply run:<br />
<br />
sudo apt-get install d4x<br />
<br />
or use Synaptic Package Manager under System &gt; Administration menu, to locate and install the "d4x" package.<br />
<br />
==== FTP client (FileZilla) ====<br />
<br />
FileZilla is a powerful FTP client that came from windows enviroment. Reaching its third version it became cross-platform and is available through the Ubuntu Gutsy Repositories.<br />
<br />
To install FileZilla FTP client simply run:<br />
<br />
sudo apt-get install filezilla<br />
<br />
or use Synaptic Package Manager under System &gt; Administration menu, to locate and install the "filezilla" package.<br />
<br />
==== Configuring Evolution for Gmail ====<br />
<br />
Visit http://mail.google.com/mail/ and click settings (should be in top right corner). Select Forwarding and POP/IMAP.<br />
<br />
* If you want to use POP, select either "Enable POP for all mail (even mail that's already been downloaded)" or "Enable POP only for mail that arrives from now on".<br />
* If you want to use IMAP, select "Enable IMAP".<br />
<br />
Save changes.<br />
<br />
Open Evolution from Applications -&gt; Internet -&gt; Evolution Mail. If no mail account has been created before, a mail account setup wizard will automatically be opened. Otherwise open it from Edit -&gt; preferences -&gt; Mail Accounts -&gt; Add. Click Forward. Enter your email address for Gmail (including @gmail.com). Click Forward.<br />
<br />
* If you have enabled POP from Gmail set "Server Type" to POP, "Server" to pop.gmail.com, and "Use Secure Connection" to "SSL encryption".<br />
* If you have enabled IMAP from Gmail, set "Server Type" to IMAP, "Server" to imap.gmail.com, and "Use Secure Connection" to "SSL encryption".<br />
<br />
Click Forward. Click Forward. Set "Server" to smtp.gmail.com, and "Use Secure Connection" to "SSL encryption". Click Forward. Click Forward. Click Apply.<br />
<br />
Note that IMAP support for GMAIL is being rolled-out currently (Oct. 2007) but is not available to everyone with a GMAIL account yet. So use POP until IMAP is available for every user.<br />
<br />
==== SwiftFox ====<br />
<br />
Swiftfox is the Firefox web browser, but built with optimizations to increase speed on specific CPU types. It is compatible with all Firefox extensions and themes, and uses the same settings location as Firefox, so you can use both transparently.<br />
<br />
Instructions from [http://getswiftfox.com/debian.htm getswiftfox.com]<br />
<br />
* Add the Swiftfox repository<br />
<br />
sudo gedit /etc/apt/sources.list<br />
<br />
* Add this line at the bottom<br />
<br />
deb http://getswiftfox.com/builds/debian unstable non-free<br />
<br />
* Update apt sources<br />
<br />
sudo apt-get update<br />
<br />
* Check your CPU compatibility [http://getswiftfox.com/proc.htm here]<br />
* Install your version of Swiftfox<br />
<br />
sudo apt-get install swiftfox-pentium4<br />
<br />
* Run with<br />
<br />
Programs &gt; Internet &gt; Swiftfox<br />
<br />
* There is also an [[http://www.getswiftfox.com/installer.htm installer]] available that is distro independent. It is a script that downloads and installs Swiftfox in the /opt directory and attempts to use existing Firefox plugins. The installer is probably the best way for most non-Ubuntu and non-Debian users to install Swiftfox.<br />
<br />
==== Azureus (Java BitTorrent client) ====<br />
<br />
The simplest way to install Azureus is:<br />
<br />
sudo apt-get install [http://packages.ubuntu.com/gutsy/net/azureus azureus] <br />
<br />
But it has lots of dependencies. An alternate method is discussed [http://azureus.sourceforge.net/howto_linux.php here]. Additionally you can create a file /usr/share/applications/Azureus.desktop containing the following lines to make it appear in the main menu:<br />
<br />
[Desktop Entry]<br />
Encoding=UTF-8<br />
Type=Application<br />
Terminal=false<br />
Name=Azureus<br />
Exec=/usr/local/azureus/azureus<br />
Comment=Java BitTorrent client<br />
Categories=Application;Network;<br />
MimeType=application/x-bittorrent;<br />
Icon=/usr/local/azureus/Azureus.png<br />
<br />
(here it is assumed that azureus is installed in /usr/local directory)<br />
<br />
Update: A brand-new Azureus package is now available in gutsy-backports, which is highly preferable to the version in the main repositories. It fixes many stability problems and is compiled using icedtea/Java 7. By the time you read this, it may be available in the main repositories. Therefore you might want to make sure you have the gutsy-backports repository enabled before installing azureus via apt-get.<br />
<br />
==== Deluge (A lightweight BitTorrent client written in python) ====<br />
<br />
If you want a client with lower memory and CPU usage than Azureus you might want to try out Deluge. However, due to stability problems with the version available in the [http://packages.ubuntu.com/gutsy/net/deluge-torrent Ubuntu repository], it's probably better to install the latest version using the handy Gutsy-specific package from [http://deluge-torrent.org/downloads-ubuntu the official Deluge website]. To install, just click on the debian package for your version and architecture ('''i386''' for 32-bit systems and '''x86_64''' for 64-bit systems) and choose to run it with GDebi package installer.<br />
<br />
==== DC++ client (Linuxdcpp) ====<br />
<br />
* Install:<br />
<br />
sudo apt-get install linuxdcpp<br />
<br />
* Then go<br />
<br />
Main Menu-&gt;Intenet-&gt;DC++<br />
<br />
=== 多媒体播放器 ===<br />
<br />
==== 怎样安装 Mplayer 和 Multimedia Codecs(解码器) ====<br />
<br />
&nbsp;&nbsp; 安装 mplayer 和 codecs的简单向导<br />
<br />
* [http://www.ubuntugeek.com/install-mplayer-and-multimedia-codecs-libdvdcss2w32codecs-in-ubuntu-710-gutsy-gibbon.html Mplayer 和 Multimedia Codecs的安装指导手册]<br />
<br />
* 从[http://sourceforge.net/project/showfiles.php?group_id=185512 这里] 下载 [http://smplayer.sourceforge.net/ SMPlayer] (MPlayer的一个很棒的前端) 然後双击安装它。 smplayer这个前端也可以在软件包管理器中安装。<br />
<br />
===== &nbsp; 关于64位版本 Mplayer 对 wmv9 格式支持问题<br> =====<br />
<br />
&nbsp;&nbsp;&nbsp; AMD64版本的Mplayer不能正确的播放wmv9格式的文件。 要播放wmv9,你需要安装32位版本的mplayer, 和所有需要的解码器.。相较于我新安装的Gutsy,我不需要额外安装它所依赖的库文件,这让配置mplayer的工作简单多了。这就是说,做完这些步骤後你就可以随时观赏wmv9的文件了。<br />
<br />
'''下载&nbsp; mplayer32 for Edgy 的版本 (被证明能稳定地工作) 放到临时的文件夹中。'''<br />
<br />
mkdir mplayer32temp<br />
cd mplayer32temp<br />
wget http://folk.ntnu.no/grannas/debs/mplayer32_20070130-1_amd64.deb<br />
<br />
'''解开你刚才下载的这个压缩包,放到合适的地方''' ''(按 'n'当 问你是否要为文件更换位置)''<br />
<br />
sudo dpkg -x mplayer32_20070130-1_amd64.deb ./<br />
sudo mv -i usr/bin/* /usr/bin/<br />
sudo mv -i usr/lib32/* /usr/lib32/<br />
<br />
'''从mplayerrhq 获取最新的 win32 codecs (下面命令中是10月7日版本, 2007), 解压缩然後安装''' ''(同样, 在问到更换位置时按'n' )''<br />
<br />
wget http://www3.mplayerhq.hu/MPlayer/releases/codecs/essential-20071007.tar.bz2<br />
tar jxfv essential-20071007.tar.bz2<br />
sudo mv -i essential-20071007/* /usr/lib/win32/<br />
<br />
'''播放 wmv9 影片.(享受它)'''<br />
<br />
mplayer32 foobar.wmv<br />
<br />
<br><br />
<br />
==== 怎样安装 amaroK 多媒体播放器 ====<br />
<br />
* 注意: KDE 环境下, Amarok 已经默认安装 。<br />
<br />
sudo apt-get install amarok<br />
<br />
* 从菜单启动:<br />
<br />
Applications -&gt; Sound &amp; Video -&gt; amaroK<br />
<br />
====== 怎样卸载 amaroK ======<br />
<br />
sudo apt-get --purge autoremove amarok<br />
<br />
====怎样获得MP3文件播放时的鼠标滑过预览 ====<br />
<br />
sudo apt-get install mpg321<br />
sudo apt-get install ubuntu-restricted-extras<br />
sudo apt-get install pulseaudio<br />
sudo apt-get install pulseaudio-esound-compat<br />
sudo apt-get install libasound2-plugins<br />
<br />
这个方法可能会破坏Skype软件的声音系统<br />
<br />
你也能通过下面的步骤实现鼠标滑过预览:<br />
<br />
sudo apt-get install mpg321<br />
sudo apt-get install mpg123-esd<br />
sudo apt-get install vorbis-tools<br />
sudo apt-get install esound<br />
sudo apt-get install ubuntu-restricted-extras<br />
<br />
这样系统中的Skype会保持正常功能<br />
<br />
==== 怎样安装VLC媒体播放器 ====<br />
<br />
sudo apt-get install vlc<br />
<br />
卸载VLC媒体播放器:<br />
<br />
sudo apt-get --purge autoremove vlc<br />
<br />
==== 怎样安装 Banshee 音乐管理和播放器<br> ====<br />
<br />
sudo apt-get install banshee<br />
<br />
卸载:<br />
<br />
sudo apt-get --purge autoremove banshee<br />
<br />
==== How to encode/decode audios ====<br />
<br />
There is a great command line tool, sox which not just a ordinary encoder/decoder but a good composer. Read its manual for more information.<br />
<br />
''Input(s) → Balancing → Combiner → Effects → Output''<br />
<br />
sudo apt-get install sox<br />
<br />
sox cannot handle Real Audio format. For that you need mplayer which converts a .rm file to a .wav file and then use sox to convert wave file to other file.<br />
<br />
mplayer -ao pcm:file=output.wav input.rm<br />
<br />
==== How to encode/decode videos ====<br />
<br />
mencoder, avidemux, transcode, ffmpeg2theora, etc. are some video converting tools. Read their manuals for information.<br />
<br />
sudo apt-get install mencoder avidemux transcode ffmpeg2theora<br />
<br />
==== How to edit audios ====<br />
<br />
sudo apt-get install lmms<br />
sudo apt-get install audacity<br />
<br />
==== How to edit videos ====<br />
<br />
sudo apt-get install ubuntustudio-video<br />
<br />
==== Text-to-Speech ====<br />
<br />
Visit https://help.ubuntu.com/community/TextToSpeech<br />
<br />
=== Programming / Web Development ===<br />
<br />
==== Quanta Plus ====<br />
<br />
(Quanta is a KDE application, but also works on GNOME.)<br />
To install Quanta, HTML/XML/PHP/Etc Web Creation Software:<br />
<br />
sudo apt-get install quanta kompare kxsldbg cervisia<br />
<br />
Applications > Programming > Quanta Plus<br />
<br />
==== Netbeans IDE ====<br />
Netbeans is a platform independent IDE for Java. But it also supports C/C++, Ruby, portals and lots of other stuffs as plug-ins. At the point of writing, version 5.5.1 is the latest stable release and can be installed by:<br />
sudo apt-get install netbeans5.5<br />
Alternately you can download [http://www.netbeans.org/community/releases/60/index.html Netbeans 6.0] and install it manually. The size of the installation package varies from 11 MB to 200 MB.<br />
<br />
===== Netbeans with Web & Java EE pack =====<br />
If you want to use NetBeans for web development and want to integrate with Java EE, download the "Netbeans with Web & Java EE" pack. The plug-in mechanism of installing additional modules are not recommended as it installs it on user directory (~/.netbeans/6.0beta2/modules/) rather than system-wide installation directory (/usr/local/netbeans-6.0beta2/nb6.0/modules/).<br />
<br />
Netbeans with Web & Java EE pack comes with 2 built in runtime environments:<br />
* GlassFish V2 Build 58g<br />
* Apache Tomcat 6.0.14<br />
Those are ideal for both development and production use. Thus you do not have to install either Sun Java Application Server of Apache Tomcat separately. Also uninstalling Netbeans will not uninstall them. You have to uninstall them separately.<br />
<br />
But in case you want to install the servers separately, you typically have to run Netbeans as root.<br />
Alternately, you can also change the configuration files' owner/group and permissions of Tomcat and GlassFish to work with Netbeans.<br />
<br />
==== Eclipse IDE ====<br />
[http://packages.ubuntu.com/gutsy/devel/eclipse Eclipse IDE] is an alternative of [http://packages.ubuntu.com/gutsy/devel/netbeans5.5 Netbeans IDE]. Actually, it is somewhat more popular among Linux users. You can install eclipse directly from [http://www.eclipse.org/downloads/ Eclipse website] or can install it using apt-get:<br />
sudo apt-get install eclipse<br />
<br />
==== Anjuta IDE ====<br />
[http://anjuta.sourceforge.net/ Anjuta] is an IDE used primarily for C/C++ development. Not as robust as other itegrated development environments. However, tt does feature some useful plugins that provide functionality that most other IDE's have. (GUI development, project wizards, etc.)<br />
sudo apt-get install anjuta<br />
<br />
=== Utilities ===<br />
<br />
==== Compression tools ====<br />
Zip, Gzip and Bzip2 are the most popular compression tools available in almost every every Linux. But of late two new compression tools available: p7zip (http://7-zip.org/), ace and rar (http://www.rarlab.com/). 7-zip is a open-source project, but rar and ace are not.<br />
<br />
sudo apt-get install rar unrar<br />
sudo apt-get install p7zip-full<br />
sudo apt-get install unace<br />
<br />
Ark is the compression tool for kde, and has support for more formats including rar.<br />
<br />
sudo apt-get install ark<br />
<br />
==== Clipboard Manager (Glipper) ====<br />
<br />
To install Glipper simply run:<br />
sudo apt-get install glipper<br />
or use Synaptic Package Manager under System > Administration menu, to locate and install the "glipper" package.<br />
<br />
==== Password Manager (KeePassX) ====<br />
<br />
KeePass is a crossplatform password manager.<br />
To install it simply run:<br />
sudo apt-get install keepassx<br />
or use Synaptic Package Manager under System > Administration menu, to locate and install the "keepassx" package.<br />
<br />
==== How to fix/integrate bluetooth with nautilus ====<br />
<br />
On Some systems bluetooth "Browse Device" fuction doesn't work properly.<br />
<br />
To Fix This:<br />
<br />
sudo apt-get install gnome-vfs-obexftp<br />
<br />
or<br />
<br />
sudo aptitude install gnome-vfs-obexftp<br />
<br />
==== 怎样安装 Google Earth (地球仪软件) ====<br />
<br />
Google earth是一个世界地图查看器. 它可以3D的形式显示的建筑以及桥梁. 默认的时候它是显示的是静态的图片. 最新版式中包含了鸟瞰世界的功能. 点击 [http://earth.google.com/ 这里] 查看更多相关的信息.<br />
<br />
Google Earth is available in the Medibuntu Package archive. To install google-earth from Medibuntu:<br />
<br />
echo "deb http://packages.medibuntu.org/ gutsy free non-free" | sudo tee -a /etc/apt/sources.list<br />
wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add - &amp;&amp; sudo apt-get update<br />
sudo aptitude install googleearth<br />
<br />
除此之外你还可以直接从Google下载安装程序进行安装:<br />
<br />
[http://earth.google.com/download-earth.html 下载] Google Earth到你的桌面. 打开终端并运行n:<br />
<br />
chmod +x Desktop/GoogleEarthLinux.bin<br />
sudo Desktop/GoogleEarthLinux.bin<br />
<br />
按照说明完成安装. 卸载Google earth,执行以下命令:<br />
<br />
sudo su<br />
/opt/google-earth/uninstall<br />
<br />
==== 怎样安装 Picasa (Google 开发的照片管理工具) ====<br />
<br />
Picasa 是一款帮助你立即查找、编辑和共享在你的电脑上的所有照片的软件. Picasa makes advanced editing simple by putting one-click fixes and powerful effects at your fingertips. And Picasa makes it a snap to share your pictures – you can email, print photos home, and even post pictures on your own blog. You can install it in four ways:<br />
<br />
* [http://picasa.google.com/linux/download.html 下载] 直接下载 Debian/Ubuntu (DEB包) 安装.<br />
* 访问 http://www.google.com/linuxrepositories/ 阅读怎样添加 Google 源的说明.然后运行:<br />
<br />
sudo apt-get install picasa<br />
<br />
* [http://picasa.google.com/linux/download.html 下载] 自解压安装程序并按照说明配置 Google Earth.<br />
* 安装Windows (需要WINE支持).<br />
<br />
==== How to install Google Desktop (search utility) ====<br />
Google Desktop is a desktop search application that gives you easy access to information on your computer and from the web. Desktop makes searching your own email, files, music, photos, and more as easy as searching the web with Google. You can download Google Desktop in two ways:<br />
* Download and install the Debian package directly from http://desktop.google.com/en/linux/download.html<br />
* Visit http://www.google.com/linuxrepositories/ and see the instructions about how to add Google repository. Then run:<br />
sudo apt-get install google-desktop-linux<br />
<br />
==== How to install ntop (network monitoring utility) ====<br />
Ntop is a network monitoring utility. You can monitor local devices as well as devices with Netflow output (like a Cisco router). It's very easy to install too, open a terminal and type:<br />
<br />
sudo apt-get install ntop<br />
<br />
Now that it is installed, you have to do some basic setup. Once again, in the terminal, type:<br />
<br />
sudo ntop<br />
<br />
You will be asked for a password, and then to confirm the password. This will be the admin password for the ntop web interface. Next, we want to install "Dot", which is a part of the "Graphviz" package:<br />
<br />
sudo apt-get install graphviz<br />
<br />
Now, again in the terminal type:<br />
<br />
sudo /etc/init.d/ntop start<br />
<br />
Thats it! ntop is running! Try browsing to http://127.0.0.1:3000 to get started. You will have to add the path to dot to the ntop configuration. <br />
<br />
Admin -> Configure (Enter admin user/pass) -> Preferences<br />
<br />
At the bottom add a new preference:<br />
<br />
dot.path /usr/bin/dot<br />
<br />
You should now have a network map for the local interface under IP -> Local -> Network Traffic Map<br />
<br />
Visit http://www.ntop.org/ for more information.<br />
<br />
==== How to install applications for study of religious texts ====<br />
<br />
* For study of Bible see [http://gnomesword.sourceforge.net/ GnomeSword]<br />
* For study of Quran see [http://sourceforge.net/projects/zekr/ Zekr]<br />
<br />
===== How to install Gnomesword (Bible study program)=====<br />
*Read [[#General Notes]] <br />
*Read [[#How to add extra repositories]]<br />
*This installs the english version of the program.<br />
<br />
sudo apt-get install gnomesword sword-language-pack-en sword-text-web<br />
<br />
*If you require other languages type:<br />
<br />
sudo apt-cache search bible<br />
<br />
*Take a look at the sword-language-pack's and the sword-text's for additional languages and install as needed. <br />
<br />
Gnomesword is found under Applications-->Accessories.<br />
<br />
*Under KDE, use kio-sword instead of Gnomesword:<br />
<br />
sudo apt-get install kio-sword<br />
<br />
===== How to install a Quran researching tool (Zekr) ===== <br />
[http://siahe.com/zekr/ Zekr] is an open platform Quran study tool for simply browsing and researching on the Quran. <br />
<br />
sudo wget http://siahe.com/zekr/apt/sources.list.d/gutsy.list -O /etc/apt/sources.list.d/zekr.list <br />
wget -q http://siahe.com/zekr/apt/zekr.debian.gpg -O- | sudo apt-key add - <br />
sudo apt-get update <br />
sudo apt-get install zekr ttf-me-quran ttf-sil-scheherazade<br />
sudo apt-get install ttf-farsiweb flashplugin-nonfree<br />
<br />
*Zekr comes with extra Quran translations in Persian, Urdu, French, Russian, English, Turkish, Bosnian, Dutch packaged as zekr-quran-translations-XY where XY is the ISO code of the language. Run<br />
apt-cache search zekr-quran-translations<br />
<br />
in a shell to list them all. Then among the result list choose the appropriate package and install it: For example if you want to install English Quran Translations run the following command:<br />
sudo apt-get install zekr-quran-translations-en<br />
<br />
*For more info see [http://www.siahe.com/zekr/wiki/index.php?title=Installation#Ubuntu.2FDebian Zekr wiki].<br />
<br />
==== How to install applications for Education ====<br />
===== How to install Mnemosyne =====<br />
<br />
[http://mnemosyne-proj.sourceforge.net/ Mnemosyne] is a sophisticated free flash-card tool which optimizes your learning process. To install the latest version in the repositories run the following command<br />
sudo apt-get install mnemosyne<br />
or use Synaptic Package Manager under System => Administration menu, to locate and install the mnemosyne package.<br />
<br />
To install the latest version (the one in the repository is somewhat out of date) first install the dependencies:<br />
sudo apt-get install python python-pygame python-qt3 python-support python-xml<br />
then download the latest source package from [http://mnemosyne-proj.sourceforge.net/ here]:<br />
wget http://superb-east.dl.sourceforge.net/sourceforge/mnemosyne-proj/mnemosyne-0.9.10.tgz<br />
(correct as of 11 Nov 2007)<br />
Decompress it:<br />
tar -xzf mnemosyne-0.9.10.tgz<br />
go to the directory<br />
cd mnemosyne-0.9.10/<br />
run this command to install it:<br />
sudo python setup.py install<br />
To create a launcher for it in your Applications Menu:<br />
System => Preferences => Main Menu => Education (or wherever) => New Item:<br />
Name: Mnemosyne<br />
Command: mnemosyne<br />
<br />
== '''''安全&nbsp;''''' ==<br />
<br />
=== 怎样重设用户密码 ===<br />
<br />
sudo apt-get install john<br />
sudo john /etc/shadow<br />
<br />
=== 怎样重设ROOT用户的密码 ===<br />
<br />
重启Ubuntu进入安全模式并输入:<br />
<br />
passwd<br />
<br />
<br />
来修ROOT用的密码<br />
<br />
=== 怎样创建或修改GRUB启动菜单的密码 ===<br />
<br />
请点击[http://ubuntuguide.org/wiki/Ubuntu:Feisty#How_to_change_GRUB_menu_password_if_forgotten 这里].<br />
<br />
=== 如果忘记GRUB启动菜单的密码怎样修改root用户的密码 ===<br />
<br />
点击 [http://ubuntuguide.org/wiki/Ubuntu:Feisty#How_to_use_Ubuntu_Installation_CD.2C_to_gain_root_user_access 这里]. To prevent this, you have to set a bios password and set hard disk as the first boot device.<br />
<br />
== '''''服务器<br>''''' ==<br />
<br />
=== Samba 服务器<br> ===<br />
<br />
==== 怎样安装 Samba 服务器来共享文件以及文件夹<br> ====<br />
<br />
* 阅读 [[|#General Notes]]<br />
* 阅读 [[|#How to add extra repositories]]<br />
<br />
sudo apt-get install samba smbfs<br />
<br />
==== 怎样添加/修改/删除网络用户 ====<br />
<br />
* 阅读 [[|#General Notes]]<br />
* 阅读 [[|#How to install Samba Server for files/folders sharing service]]<br />
* To add network user <br />
** Read [[|#How to add/edit/delete system users]]<br />
<br />
sudo smbpasswd -a system_username<br />
gksudo gedit /etc/samba/smbusers<br />
<br />
* <br />
** Insert the following line into the new file<br />
<br />
system_username = "network username"<br />
<br />
* <br />
** Save the edited file<br />
* To edit network user<br />
<br />
sudo smbpasswd -a system_username<br />
<br />
* To delete network user<br />
<br />
sudo smbpasswd -x system_username<br />
<br />
==== How to share home folders with read only or read/write permission (Authentication=Yes) ====<br />
<br />
* Read [[|#General Notes]]<br />
* Read [[|#How to install Samba Server for files/folders sharing service]]<br />
<br />
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup<br />
gksudo gedit /etc/samba/smb.conf<br />
<br />
* Find this line<br />
<br />
...<br />
; security = user<br />
...<br />
<br />
* Replace with the following lines<br />
<br />
security = user<br />
username map = /etc/samba/smbusers<br />
<br />
* Remove the&nbsp;; in front of the following lines (there will text in between explaining what they do):<br />
<br />
;[homes]<br />
;comment = Home Directories<br />
;browseable = no<br />
;valid users = %S<br />
;writable = yes<br />
<br />
* <br />
** If you want other network users to be able to edit to the folder then change<br />
<br />
# By default, the home directories are exported read-only. Change next<br />
# parameter to 'yes' if you want to be able to write to them.<br />
&nbsp;; writable = no<br />
<br />
* <br />
** Replace with the following lines<br />
<br />
writable = yes<br />
<br />
* Save the edited file<br />
* Read [[|#How to add/edit/delete network users]]<br />
<br />
sudo testparm<br />
sudo /etc/init.d/samba restart<br />
<br />
==== How to share group folders with read only permission (Authentication=Yes) ====<br />
<br />
* Read [[|#General Notes]]<br />
* Read [[|#How to install Samba Server for files/folders sharing service]]<br />
<br />
sudo mkdir /home/group<br />
sudo chmod 777 /home/group/<br />
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup<br />
gksudo gedit /etc/samba/smb.conf<br />
<br />
* Find this line<br />
<br />
...<br />
; security = user<br />
...<br />
<br />
* Replace with the following lines<br />
<br />
security = user<br />
username map = /etc/samba/smbusers<br />
<br />
* Append the following lines at the end of file<br />
<br />
[Group]<br />
comment = Group Folder<br />
path = /home/group<br />
public = yes<br />
writable = no<br />
valid users = system_username1 system_username2<br />
create mask = 0700<br />
directory mask = 0700<br />
force user = nobody<br />
force group = nogroup<br />
<br />
* Or if you want other network users to be able to edit to the folder change<br />
<br />
writable = yes<br />
<br />
* Save the edited file<br />
* Read [[|#How to add/edit/delete network users]]<br />
<br />
sudo testparm<br />
sudo /etc/init.d/samba restart<br />
<br />
==== How to share public folders with read only or read/write permissions (Authentication=Yes) ====<br />
<br />
* Read [[|#General Notes]]<br />
* Read [[|#How to install Samba Server for files/folders sharing service]]<br />
<br />
sudo mkdir /home/public<br />
sudo chmod 777 /home/public/<br />
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup<br />
gksudo gedit /etc/samba/smb.conf<br />
<br />
* Find this line<br />
<br />
...<br />
; security = user<br />
...<br />
<br />
* Replace with the following lines<br />
<br />
security = user<br />
username map = /etc/samba/smbusers<br />
<br />
Then follow either 1. or 2.<br />
<br />
* 1. Save the edited file.<br />
<br />
sudo testparm<br />
sudo /etc/init.d/samba restart<br />
<br />
* 1. Right click the folder and select 'Share folder'. Then change 'Do not share' to share with the network you would like.<br />
* 1. In Share Properties note the read box. If you want other network users to be able to edit to the folder un-tick this.<br />
<br />
'''OR'''<br />
<br />
* 2. Append the following lines at the end of file<br />
<br />
[public]<br />
comment = Public Folder<br />
path = /home/public<br />
public = yes<br />
writable = yes<br />
create mask = 0777<br />
directory mask = 0777<br />
force user = nobody <br />
force group = nogroup<br />
<br />
* 2. Or if you want other network users to be able to edit to the folder<br />
<br />
writable = yes<br />
<br />
* 2. Save the edited file<br />
* 2. Read [[|#How to add/edit/delete network users]]<br />
<br />
sudo testparm<br />
sudo /etc/init.d/samba restart<br />
<br />
<br><br />
<br />
==== How to share public folders with read only or read/write permissions (Authentication=No) ====<br />
<br />
* Read [[|#General Notes]]<br />
* Read [[|#How to install Samba Server for files/folders sharing service]]<br />
<br />
sudo mkdir /home/public<br />
sudo chmod 777 /home/public/<br />
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup<br />
gksudo gedit /etc/samba/smb.conf<br />
<br />
* Find this line<br />
<br />
...<br />
; security = user<br />
...<br />
<br />
* Replace with the following line<br />
<br />
security = share<br />
<br />
Then follow either 1. or 2.<br />
<br />
* 1. Save the edited file.<br />
<br />
sudo testparm<br />
sudo /etc/init.d/samba restart<br />
<br />
* 1. Right click the folder and select 'Share folder'. Then change 'Do not share' to share with the network you would like.<br />
* 1. In Share Properties note the read box. If you want other network users to be able to edit to the folder un-tick this.<br />
<br />
'''OR'''<br />
<br />
* 2. Append the following lines at the end of /etc/samba/smb.conf (for a read-only folder)<br />
<br />
[public]<br />
comment = Public Folder<br />
path = /home/public<br />
public = yes<br />
writable = no<br />
create mask = 0777<br />
directory mask = 0777<br />
force user = nobody<br />
force group = nogroup<br />
<br />
* 2. Or if you want other network users to be able to edit to the folder<br />
<br />
writable = yes<br />
<br />
<br><br />
<br />
* 2. Save the edited file<br />
<br />
sudo testparm<br />
sudo /etc/init.d/samba restart<br />
<br />
==== How to print on remote Ubuntu machine via samba ====<br />
<br />
* Read [[|#Print Server (cupsd)]]<br />
* Make sure your Ubuntu printers are configured properly.<br />
<br />
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.backup<br />
gedit /etc/samba/smb.conf<br />
<br />
:''Find the following lines''<br />
<br />
...<br />
# printing = cups<br />
# printcap name = cups<br />
...<br />
<br />
:''and uncomment them.''<br />
<br />
printing = cups<br />
printcap name = cups<br />
<br />
:''Restart cups server''<br />
<br />
sudo /etc/init.d/cupsys restart<br />
<br />
:''Now printers working on your Ubuntu machine should be acessible via samba.''<br />
<br />
<br><br />
<br />
=== iTunes-compatible Media server ===<br />
<br />
If you want iTunes-compatible Media server in Ubuntu try this<br />
<br />
* [http://www.ubuntugeek.com/howto-setup-itunes-compatible-media-server-in-ubuntu.html iTunes-compatible Media server Step By Step Guide]<br />
<br />
=== GLPI - IT and asset Managemet Software ===<br />
<br />
If you want IT and asset Managemet Software in Ubuntu try this<br />
<br />
* [http://www.ubuntugeek.com/glpi-it-and-asset-managemet-software.html IT and asset Managemet Software Setup Guide]<br />
<br />
=== PostgreSQL ===<br />
<br />
Postgresql is a well supported and open source database server. There is a long debate regarding whether MySQL is better or PostgreSQL. Actually, there are similar debates like it: Gnome vs KDE, Perl vs Python, PHP vs JSP, Java vs .Net (or Mono). But from installation point of view, it has been seen that PostgreSQL is lighter and requires less dependency than MySQL.<br />
<br />
==== Installing PostgreSQL ====<br />
<br />
To Install PostgreSQL (both client and server):<br />
<br />
sudo apt-get install postgresql-8.2<br />
<br />
To install PostgreSQL documentation:<br />
<br />
sudo apt-get install postgresql-doc-8.2<br />
<br />
To install JDBC3 driver for PostgreSQL:<br />
<br />
sudo apt-get install libpg-java<br />
<br />
To enable php support for PostgreSQL:<br />
<br />
sudo apt-get install php5-pgsql<br />
<br />
To do administrative works graphically:<br />
<br />
sudo apt-get install pgadmin3<br />
<br />
To do web-based administrative works:<br />
<br />
sudo apt-get install phppgadmin<br />
<br />
==== Configuring PostgreSQL ====<br />
<br />
To use postgresql, create a database instance and a user/role:<br />
<br />
sudo -u postgres createdb $USER<br />
sudo -u postgres createuser $USER<br />
<br />
Making both database instance and user/role as your login ID lets you to start PostgreSQL client very easily:<br />
<br />
psql<br />
<br />
To login as the administrator:<br />
<br />
sudo -u postgres psql<br />
<br />
To be able to login from remote machine or from PHP or through JDBC driver, you have to set your password from PostgreSQL client (psql):<br />
<br />
ALTER USER user PASSWORD 'pass';<br />
<br />
replace user and pass by your user name and password respectively. To test whether remote login works or not, run:<br />
<br />
psql -h host -p 5432 -d database -U user<br />
<br />
Visit http://www.php.net/manual/en/ref.pgsql.php to see how php works with PostgreSQL.<br />
<br />
==== Using pgadmin3 ====<br />
<br />
To configure PostgreSQL using pgadmin3:<br />
<br />
* Open psql client as administrator postgres (see above Configure PostgreSQL)<br />
* Change the password for the administrator postgres (see above)<br />
* Open Applications -&gt; System Tools -&gt; pgAdmin III from main menu.<br />
* Open File -&gt; Add Server...<br />
* Set Address to localhost or 127.0.0.1 (or something you have set)<br />
* Give a Description by which this connection will be identified.<br />
* Accept default port (5432), SSL (_blank_), Maintenance DB (postgres) and Username (postgres)<br />
* set the Password that you have set earlier. Click OK.<br />
<br />
==== Using phppgadmin ====<br />
<br />
To configure PostgreSQL using phppgadmin run:<br />
<br />
sudo ln -s /usr/share/phppgadmin /var/www/phpPgAdmin<br />
<br />
Set a password for administrator: postgres (see [[|#Configuring_PostgreSQL]]).<br />
<br />
Open /etc/phppgadmin/config.inc.php and change:<br />
<br />
$conf['extra_login_security'] = false;<br />
<br />
It will enable administrative login. Finally visit http://localhost/phpPgAdmin/ to login.<br />
<br />
==== Using PostgreSQL with OpenOffice ====<br />
<br />
* Open Applications -&gt; Office -&gt; OpenOffice.org Database.<br />
* Select 'Connect to an existing database'. From the list select JDBC and click Next.<br />
* Make Datasource URL to:<br />
<br />
jdbc:postgresql://localhost/database<br />
<br />
Replace localhost by your hostname, database by the database instance you have created.<br />
<br />
* Set JDBC driver class to:<br />
<br />
org.postgresql.Driver<br />
<br />
* Click 'Test class' to make sure JDBC driver class connects Datasource URL properly. Click Next.<br />
* Type your User name and select 'Password required' option.<br />
* Click Test connection. A popup dialog will appear. Enter your password and click OK.<br />
* If everything works properly, then a confirmation dialog will appear.<br />
* Click Next. Some optional settings will appear. Click Finish to complete.<br />
<br />
==== Using PostgreSQL JDBC driver ====<br />
<br />
The following Java code is a simple program to illustrate how JDBC can be used with Postgresql:<br />
<br />
// pgVersion.java<br />
<br />
import java.sql.*;<br />
<br />
class pgVersion {<br />
public static void main(String arg[]) throws Exception {<br />
if(arg.length!=4) {<br />
System.out.println("usage: java pgVersion host database user password");<br />
return;<br />
}<br />
// Class.forName("org.postgresql.Driver");<br />
Driver driver=new org.postgresql.Driver();<br />
DriverManager.registerDriver(driver);<br />
String url="jdbc:postgresql://"+arg[0]+"/"+arg[1]+"?user="+arg[2]+"&amp;password="+arg[3];<br />
Connection conn=DriverManager.getConnection(url);<br />
Statement stat=conn.createStatement();<br />
ResultSet rs=stat.executeQuery("SELECT version()");<br />
rs.next();<br />
System.out.println(rs.getString("version"));<br />
rs.close();<br />
stat.close();<br />
conn.close();<br />
DriverManager.deregisterDriver(driver);<br />
}<br />
}<br />
<br />
You can run the former code in two ways:<br />
<br />
* Using CLASSPATH environment variable:<br />
<br />
export CLASSPATH=/usr/share/java/postgresql.jar:.<br />
javac pgVersion.java<br />
java pgVersion host database user password<br />
<br />
Here host, database, user and password should be substituted according to your configuration. To make $CLASSPATH permanent, you have to save the command in either /etc/bash.bashrc or ~/.bashrc.<br />
<br />
* Alternately, you can run as follows:<br />
<br />
javac -classpath /usr/share/java/postgresql.jar pgVersion.java<br />
java -classpath /usr/share/java/postgresql.jar:. pgVersion host database user password<br />
<br />
The output is as expected:<br />
<br />
PostgreSQL 8.2.5 on i486-pc-linux-gnu, compiled by GCC cc (GCC) 4.1.3 20070831 (prerelease) (Ubuntu 4.1.2-16ubuntu1)<br />
<br />
=== MySQL ===<br />
<br />
According to [http://en.wikipedia.org/wiki/Comparison_of_relational_database_management_systems this page] both MySQL and PostgreSQL are good alternatives of proprietary softwares like DB2, Sybase, Oracle, SQL Server etc.<br />
<br />
To install both the server and client:<br />
<br />
sudo apt-get install mysql-server-5.0<br />
<br />
[http://db4free.net/ db4free] is a great database server for tryout different things remotely. If you want to use this site, then you do not have to install MySQL server. Just install the [http://packages.ubuntu.com/gutsy/misc/mysql-client-5.0 client], [http://packages.ubuntu.com/gutsy/misc/mysql-doc-5.0 documentation] and [http://packages.ubuntu.com/gutsy/web/php5-mysql php] or [http://packages.ubuntu.com/gutsy/libs/libmysql-java jdbc] connectivity.<br />
<br />
=== IBM DB2 ===<br />
<br />
Visit [http://www.ibm.com/software/ here] for software available from IBM. According to [http://www.ibm.com/software/data/db2/linux/validate/ this page], DB2 can be installed on ubuntu.<br />
<br />
==== Download ====<br />
<br />
To download DB2 trial [http://www.ibm.com/software/data/db2/9/download.html visit here] and select: IBM DB2 9.5 Data Server trial. Then you have to sign in (create an account if not already created) in order to download. Choose either of the following:<br />
<br />
* DB2 9.5 data server trial for Linux(R) on AMD64 and Intel(R) EM64T systems (x64)<br />
* DB2 9.5 data server trial for Linux(R) on System z<br />
<br />
Then answer questions and click 'I confirm' at the bottom. Finally click 'I confirm' button to start downloading.<br />
<br />
Alternately, [http://www.ibm.com/software/data/db2/9/download.html visit here] and select: IBM DB2 9.5 Express-C. Then choose DB2 Express-C 9.5 for Linux and click continue. Then answer questions and click 'I confirm' at the bottom. Finally select either of the following:<br />
<br />
* DB2 Express-C for Linux operating system, 32-bit architecture<br />
* DB2 Express-C for Linux operating system, 64-bit architecture<br />
<br />
click 'I confirm' button to start downloading.<br />
<br />
==== Installing DB2 ====<br />
<br />
I choose 'DB2 Express-C for Linux operating system, 32-bit architecture' to demonstrate how to install. If you have chosen a different version, make necessary changes accordingly. Let's assume the downloaded file is on your home directory. Then do the following:<br />
<br />
tar -xf db2exc_950_LNX_x86.tar.gz<br />
cd ~/exp<br />
sudo apt-get install libaio1<br />
sudo ./db2setup<br />
<br />
Select 'Install a Product' from the left side of the generated window and click 'Install New'. Another window will be opened. Then following the instructions to complete the installation. You are encouraged to create new user and groups (dasusr1/dasadm1, db2inst1/db2iadm1, db2fenc1/db2fadm1) during installation.<br />
<br />
==== Uninstalling DB2 ====<br />
<br />
If you have installed with all default settings (as mentioned above) then just running the following commands would remove the db2 completely. In case you have changed something during installation, then make appropriate changes accordingly.<br />
<br />
cd /opt/ibm/db2/V9.5<br />
./instance/db2ilist<br />
sudo instance/db2idrop db2inst1<br />
sudo install/db2_deinstall -a<br />
cd &amp;&amp; sudo rm -r /opt/ibm/<br />
sudo userdel -r dasusr1<br />
sudo userdel -r db2fenc1<br />
sudo userdel -r db2inst1<br />
sudo groupdel dasadm1<br />
sudo groupdel db2fadm1<br />
sudo groupdel db2iadm1<br />
<br />
Before running those commands, please make sure:<br />
<br />
* Make sure, db2 is not running.<br />
* Identify DB2 installation directory (E.g /opt/ibm/db2/V9.5)<br />
* Identify DB2 instances (using db2ilist command, see the second command)<br />
* Drop each and every instances (using db2idrop command, third command)<br />
* If you have other IBM softwares in /opt/ibm then remove only /opt/ibm/db2 directory.<br />
* Delete user and group accounts that you have created for db2.<br />
<br />
=== Oracle database ===<br />
<br />
* Download [http://www.oracle.com/technology/software/products/database/index.html Oracle database] XE from [http://www.oracle.com/technology/software/products/database/xe/htdocs/102xelinsoft.html here]. Then follow the [http://www.oracle.com/technology/software/products/database/xe/files/install.102/b25144/toc.htm instructions] to complete the installation.<br />
* Alternately, visit [http://www.oracle.com/technology/tech/linux/install/index.html this page] to see some installation guides provided by some users. [http://www.davidpashley.com/articles/oracle-install.html This page] is particularly seems very useful. (--[[User:Tamal|Tamal]] 07:51, 14 November 2007 (EET))<br />
<br />
A problem might occur if your swap space is less than 1 GB. In that case you have to do the following:<br />
<br />
* Turn off the swap space. (run 'man swapoff' for help)<br />
* Resize the swap partition. (run 'man fdisk' and 'man cfdisk' for help)<br />
* Restart the system. (not mandatory, but recommended)<br />
* Edit the /etc/fstab file to update the UUID of the swap partition. ([[|#How_to_find_the_UUID_of_a_device]])<br />
* Turn on the swap space. (run 'man swapon' for help)<br />
<br />
=== SSH ===<br />
<br />
==== How to install SSH Server for remote administration service ====<br />
<br />
* Read [[|#General Notes]]<br />
* Read [[|#How to add extra repositories]]<br />
<br />
sudo apt-get install ssh<br />
<br />
==== How to SSH into remote Ubuntu host ====<br />
<br />
* Read [[|#General Notes]]<br />
<br />
The Ubuntu host must be running the SSH Server. Read [[|#How to install SSH Server for remote administration service]].<br />
<br />
In this example:<br />
<br />
Remote Ubuntu machine: 192.168.0.2 username is a valid user on the remote host<br />
<br />
ssh username@192.168.0.2<br />
<br />
You can tunnel to a URL as well:<br />
<br />
ssh username@foobar.dyndns.org<br />
<br />
If your LAN uses a dynamic IP to connect to the Internet, you can use a Dynamic IP service (such as DynDNS) to assign a static URL to your LAN (foobar.dyndns.org, for example). An SSH request over the Internet to your URL (e.g. foobar.dyndns.org) would then be routed by the DynDNS service to your modem/router. Your router must then be set to forward the port used for the SSH tunnel to your host machine on the LAN. (SSH tunnels generally occur by default over port 22, but it can be changed (see below)).<br />
<br />
For some humor: Read Etymology of foobar. You can explicitly select the port number (instead of port 22) for the SSH tunnel:<br />
<br />
ssh username@foobar.dyndns.org:11022<br />
<br />
However, if you do this, the host SSH server must be listening on the same port (port 11022 in the example). The port to listen to can be set in the ssdh_config file of the OpenSSH server (provided in Ubuntu) on your host. Also, your router must be configured to forward port 11022 to your OpenSSH host.<br />
<br />
==== How to change SSH Server Port Number ====<br />
<br />
* Read [[|#General Notes]]<br />
* Read [[|#How to install SSH Server for remote administration service]]<br />
<br />
Open /etc/ssh/sshd_config for editing<br />
<br />
gksu gedit /etc/ssh/sshd_config<br />
<br />
Look for the line<br />
<br />
# What ports, IPs and protocols we listen for<br />
Port 22<br />
<br />
Change 22 to the value you want, then save and restart the SSH server<br />
<br />
sudo /etc/init.d/ssh restart<br />
<br />
==== Using SSH to Port Forward ====<br />
<br />
* Read [[|#General Notes]]<br />
* The Ubuntu host must be running the SSH Server. Read [[|#How to install SSH Server for remote administration service]].<br />
* The format of the client command to create an SSH tunnel to an OpenSSH host listening on the default port 22 is:<br />
<br />
ssh -L &lt;local port&gt;:&lt;remote computer&gt;:&lt;remote port&gt; &lt;user&gt;@&lt;remote ip&gt;<br />
<br />
An example is:<br />
<br />
ssh -L 6669:94.92.10.15:6667 foowho<br />
<br />
In this example, local port 6669 on the local client computer is tunneled by encrypted SSH over the default port 22 to the router at 94.92.10.15. The router must be set up to forward port 22 to whatever the internal LAN IP (such as 192.168.0.56) of the SSH host is. The host is running OpenSSH (ssdh service) and is set to listen to port 22. It then routes the incoming data to the host port 6667, where presumably some other program is waiting for data. foowho has an account on the host running the OpenSSH server.<br />
<br />
SSH tunnels can also be established using URLs and even alternate ports. An example is:<br />
<br />
ssh -L 5900:foobar.dyndns.org:5900 foowho -p 11022<br />
<br />
In this example, local port 5900 on the client is forwarded through an SSH tunnel on port 11022 to foobar.dyndns.org. The DNS service translates foobar.dyndns.org into the appropriate WAN (Internet) IP address, where the router is listening. The router is set up to forward port 11022 to the LAN machine hosting the OpenSSH server, which is listening on port 11022. It then sends the data to whatever program is running on port 5900 on the host.<br />
<br />
* You can forward a local port to a different port on the remote host.<br />
<br />
:Example: Make port 80 (web server/browser) on the remote host at 10.0.2.10 available locally as port 81<br />
<br />
ssh -L 81:10.0.2.10:80 user@office.net<br />
<br />
* You can create secure SSH tunnels to multiple hosts using multiple ports.<br />
<br />
ssh -L 81:10.0.2.10:80 -L 82:10.0.2.20:80 -L 83:10.0.2.30:80 user@office.net<br />
<br />
Now, local port 81 locally forwards to port 80 on the host at 10.0.2.10, local port 82 forwards to port 80 on the host at 10.0.2.20 and local port 83 forwards to port 80 on the host at 10.0.2.30. In this example, user has an account on all three host machines at 10.0.2.10, 10.0.2.20, and 10.0.2.30.<br />
<br />
* Once port forwarding is set up by ssh, an application is directed to the SSH tunnel for port usage by using the loopback as the destination.<br />
<br />
:Example 1:<br />
<br />
ssh -L 81:10.0.2.10:80 user@office.net<br />
<br />
<nowiki>http://localhost:81</nowiki> or <nowiki>http://127.0.0.1/:81</nowiki> <br />
<br />
will direct a web browser to use port 81 locally, which is being redirected by SSH to port 80 on the remote host at 10.0.2.10.<br />
<br />
:Example 2:<br />
<br />
ssh -L 5900:foobar.dyndns.org:5900 foowho<br />
vncviewer 127.0.0.1 or vncviewer localhost<br />
<br />
will direct vncviewer (which uses port 5900 by default) to direct its traffic through the ssh tunnel to the host at foobar.dyndns.org, where, presumably, a VNC server is listening on port 5900.<br />
<br />
==== SSH Filesystem ====<br />
<br />
install package: sshfs, see http://fuse.sourceforge.net/sshfs.html<br />
<br />
sudo aptitude update<br />
sudo aptitude install sshfs<br />
<br />
Optionally, add user to group fuse to manage mount-point permissions.<br />
<br />
sudo adduser &lt;local user&gt; fuse<br />
<br />
(propogate new group membership: restart or open new shell, e.g., Ctrl+Alt+F1)<br />
<br />
Create writable mount point, e.g, &lt;mount point&gt; = /media/remote<br />
<br />
sudo mkdir &lt;mount point&gt;<br />
sudo chgrp fuse &lt;mount point&gt;<br />
sudo chmod 775 &lt;mount point&gt;<br />
<br />
Mount command<br />
<br />
sshfs [&lt;user&gt;@]&lt;host&gt;:[&lt;path&gt;] &lt;mount point&gt;<br />
<br />
Unmount command<br />
<br />
fusermount -u &lt;mount point&gt;<br />
<br />
=== Ubuntu 7.10 LAMP Server ===<br />
<br />
If you are looking for simple LAMP Server setup in 15min including webmin installation this is for you<br />
<br />
* [http://www.ubuntugeek.com/ubuntu-710-gutsy-gibbon-lamp-server-setup.html Ubuntu 7.10 LAMP Server Step By Step Guide]<br />
<br />
(This requires the server version of Gutsy Gibbon, not the standard desktop edition)<br />
<br />
=== How to Install Webmin ===<br />
<br />
Webmin is an browser-based administration tool for Apache, PHP, MySQL, and Much More.<br />
<br />
wget http://prdownloads.sourceforge.net/webadmin/webmin_1.370_all.deb<br />
<br />
<br />
sudo apt-get install libnet-ssleay-perl libauthen-pam-perl libio-pty-perl libmd5-perl<br />
<br />
sudo passwd root (Enter new root password, retype)<br />
<br />
sudo dpkg -i webmin_1.370_all.deb<br />
<br />
To use webmin, type the following in a browser: (Make sure to use HTTPS not HTTP)<br />
<br />
* [https://localhost:10000]<br />
<br />
=== Sun Java Application Server (Java EE) ===<br />
<br />
[http://docs.sun.com/app/docs/coll/1343.4 Official documentation]<br />
<br />
==== Installing Application Server ====<br />
<br />
Sun Java Application Server is the heart of Java EE. [http://java.sun.com/javaee/downloads/index.jsp Download] either of the following versions:<br />
<br />
* Java EE 5 SDK Update 3<br />
* Java Application Platform SDK Update 3 Beta<br />
* Sun Java System Application Server 9.1 (under individual download section)<br />
<br />
Alternately you can download GlassFish application server (community maintained):<br />
<br />
* With [http://dlc.sun.com.edgesuite.net/netbeans/6.0/beta2/ Netbeans] Web &amp; Java EE pack<br />
* Download [https://glassfish.dev.java.net/public/downloadsindex.html GlassFish] directly<br />
<br />
Make the download file executable and run as root by:<br />
<br />
chmod +x Desktop/filename<br />
sudo ./Desktop/filename<br />
<br />
Lets assume $JAVAEE_HOME indicates the installation directory. The default installation directory for Sun Java System Application Server 9.1 is /opt/SUNWappserver/. Now, either add $JAVAEE_HOME/bin in your PATH or make a link of asadmin and asant in your path by<br />
<br />
sudo ln -s $JAVAEE_HOME/bin/asadmin /usr/local/bin/asadmin<br />
sudo ln -s $JAVAEE_HOME/bin/asant /usr/local/bin/ant<br />
<br />
The command 'asadmin' is the main and most important command for Java Application server. [http://ant.apache.org/ Ant] is also useful to automate building process.<br />
<br />
==== Application Server configuration ====<br />
<br />
When Java EE installs, a domain 'domain1' is automatically installed with it in $JAVAEE_HOME/domains/ which is the default directory for all domains. Generally this directory ($JAVAEE_HOME/domains/) is not writable. So, as a unprivileged user you can create your own domain in your home directory.<br />
<br />
===== Application Server domain settings =====<br />
<br />
To create, start, stop and delete a domain in your home directory:<br />
<br />
asadmin create-domain --adminport 4848 --domaindir ~ mydomain<br />
asadmin start-domain --domaindir ~ mydomain<br />
asadmin stop-domain --domaindir ~ mydomain<br />
asadmin delete-domain --domaindir ~ mydomain<br />
<br />
Alternately you can make $JAVAEE_HOME/domains/ writable to do domain-related works from default domain directory. E.g.<br />
<br />
sudo chmod a+w $JAVAEE_HOME/domains/<br />
asadmin create-domain --adminport 4848 mydomain<br />
asadmin start-domain mydomain<br />
asadmin stop-domain mydomain<br />
asadmin delete-domain mydomain<br />
<br />
If you have only one domain in the default domains directory ($JAVAEE_HOME/domains/) then you do not have to give the domain name to start or stop a domain. E.g.<br />
<br />
asadmin start-domain<br />
asadmin stop-domain<br />
<br />
You can save the login information to ~/.asadminpass file in order to administer an application server domain from command line. If you do not login, you have to provide username and password for each administrative work (analogous to su and sudo commands). To login:<br />
<br />
asadmin login --host localhost --port 4848<br />
<br />
Deploying and un-deploying a web or ejb module is very easy. Just do the following:<br />
<br />
asadmin deploy test1.war<br />
asadmin deploy test2.ear<br />
<br />
asadmin undeploy test1.war<br />
asadmin undeploy test2.ear<br />
<br />
===== Application Server data Source settings =====<br />
<br />
DataSource configuration can be done easily from web based administration console. Here command line method is given:<br />
<br />
sudo ln -s /usr/share/java/postgresql.jar /opt/SUNWappserver/domains/domain1/lib/postgresql.jar<br />
asadmin create-jdbc-connection-pool --datasourceclassname org.postgresql.ds.PGSimpleDataSource --property<br />
serverName=localhost:portNumber=5432:databaseName=database:user=user:password=pass jdbc/postgresql<br />
asadmin create-jdbc-resource --connectionpoolid jdbc/postgresql database<br />
<br />
First, we have made this driver accessible from the domain. In the second command, we have created a data source connection pool which has been assigned a JNDI name in the third command. Here all the colon (:) separated values are database related. Change them according to your database settings. Now you can create a Connection by, e.g.:<br />
<br />
Context ic = new InitialContext();<br />
DataSource ds = (DataSource)ic.lookup("database");<br />
Connection conn = ds.getConnection();<br />
<br />
To see available data sources and their corresponding JNDI names:<br />
<br />
asadmin list-jdbc-connection-pools<br />
asadmin list-jdbc-resources<br />
<br />
To delete both connection pool, you have to delete JNDI name first. E.g.<br />
<br />
asadmin delete-jdbc-resource database<br />
asadmin delete-jdbc-connection-pool jdbc/postgresql<br />
<br />
=== Tomcat 6 ===<br />
<br />
==== Installing tomcat ====<br />
<br />
Tomcat can be found in [http://packages.ubuntu.com/gutsy/web/tomcat5.5 universe] repository but it has some drawbacks (e.g. lots of dependencies, unavailability of version 6.x, do not use Sun Java). Thus manual installation is recommended.<br />
<br />
Download latest stable version of tomcat from [http://tomcat.apache.org/download-60.cgi here] and extract it in /usr/local as root. Add "JAVA_HOME=/usr/lib/jvm/java-6-sun/" to /usr/local/apache-tomcat-6.x.x/bin/setclasspath.sh after the first occurrence of "CLASSPATH=". Make sure that sun-java6-jre is installed. Make a soft-link of /usr/local/apache-tomcat-6.x.x/bin/catalina.sh as /usr/local/bin/tomcat to access easily. Optionally you can remove .exe and .bat files and edit .sh files to remove cygwin, os400 and darwin related codes.<br />
<br />
Although not necessary, but the [http://packages.ubuntu.com/gutsy/devel/ant ant] program would be useful here. You can also install its [http://packages.ubuntu.com/gutsy/devel/ant-doc documentation].<br />
<br />
==== OpenEJB Server ====<br />
<br />
[http://openejb.apache.org/ OpenEJB] is an open source, modular, configurable, and extendable EJB Container System and EJB Server. [http://openejb.apache.org/tomcat.html Visit here] to see the installation instructions for OpenEJB under Tomcat 6.<br />
<br />
==== Using tomcat with NetBeans ====<br />
<br />
You have to make the configuration files readable because Netbeans generally do not run with administrative privilege. To use Tomcat with with NetBeans, you have to set a user with manager role. A typcal $CATALINA_HOME/conf/tomcat-users.xml file would look like:<br />
<br />
&lt;?xml version='1.0' encoding='utf-8'?&gt;<br />
&lt;tomcat-users&gt;<br />
&lt;role rolename="admin"/&gt;<br />
&lt;role rolename="manager"/&gt;<br />
&lt;role rolename="tomcat"/&gt;<br />
&lt;user username="admin" password="admin" roles="admin"/&gt;<br />
&lt;user username="manager" password="manager" roles="manager"/&gt;<br />
&lt;user username="tomcat" password="tomcat" roles="tomcat"/&gt;<br />
&lt;/tomcat-users&gt;<br />
<br />
Edit this file after you have started tomcat once. Any data placed in the &lt;tomcat-users&gt; element is erased during the first start of tomcat. You can also use tomcat that comes with NetBeans web &amp; Java EE pack.<br />
<br />
==== Configure Database Connection Pool (DBCP) of Tomcat ====<br />
<br />
A database connection pool creates and manages a pool of connections to a database. Recycling and reusing already existing connections to a dB is more efficient than opening a new connection. It is still possible and valid to open and close connection for each servlet/jsp (visit [[|#Using_JDBC_driver]] for details).<br />
<br />
Before proceeding, let's assume that $CATALINA_HOME denotes tomcat installation directory (typically: /usr/local/apache-tomcat-6.0.14).<br />
<br />
echo $CATALINA_HOME<br />
sudo ln -s /usr/share/java/postgresql.jar $CATALINA_HOME/lib/postgresql.jar<br />
sudo mkdir $CATALINA_HOME/webapps/dataSourceTest<br />
sudo chown $USER:$USER $CATALINA_HOME/webapps/dataSourceTest<br />
cd $CATALINA_HOME/webapps/dataSourceTest<br />
mkdir META-INF WEB-INF WEB-INF/classes<br />
<br />
Create WEB-INF/web.xml and set its content:<br />
<br />
&lt;?xml version="1.0" encoding="UTF-8"?&gt;<br />
<br />
&lt;web-app xmlns="http://java.sun.com/xml/ns/javaee"<br />
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"<br />
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"<br />
version="2.5"&gt;<br />
<br />
&lt;resource-ref&gt;<br />
&lt;description&gt;PostgreSQL connectivity&lt;/description&gt;<br />
&lt;res-ref-name&gt;jdbc/postgresql&lt;/res-ref-name&gt;<br />
&lt;res-type&gt;javax.sql.DataSource&lt;/res-type&gt;<br />
&lt;res-auth&gt;Container&lt;/res-auth&gt;<br />
&lt;/resource-ref&gt;<br />
<br />
&lt;description&gt;<br />
Page for testing<br />
&lt;/description&gt;<br />
&lt;display-name&gt;Testing page&lt;/display-name&gt;<br />
&lt;servlet&gt;<br />
&lt;servlet-name&gt;pgsqlVersion&lt;/servlet-name&gt;<br />
&lt;servlet-class&gt;pgsqlVersion&lt;/servlet-class&gt;<br />
&lt;/servlet&gt;<br />
&lt;servlet-mapping&gt;<br />
&lt;servlet-name&gt;pgsqlVersion&lt;/servlet-name&gt;<br />
&lt;url-pattern&gt;/pgsqlVersion&lt;/url-pattern&gt;<br />
&lt;/servlet-mapping&gt;<br />
&lt;/web-app&gt;<br />
<br />
Create META-INF/context.xml and set its content (replace hostname, database instance name, user id and password):<br />
<br />
&lt;?xml version="1.0" encoding="UTF-8"?&gt;<br />
&lt;Context&gt;<br />
&lt;Resource<br />
name="jdbc/postgresql"<br />
auth="Container"<br />
type="javax.sql.DataSource"<br />
driverClassName="org.postgresql.Driver"<br />
url="jdbc:postgresql://host/database"<br />
username="user"<br />
password="password"<br />
maxActive="20"<br />
maxIdle="10"<br />
maxWait="-1"/&gt;<br />
&lt;WatchedResource&gt;WEB-INF/web.xml&lt;/WatchedResource&gt;<br />
&lt;WatchedResource&gt;META-INF/context.xml&lt;/WatchedResource&gt;<br />
&lt;/Context&gt;<br />
<br />
Create pgsqlVersion.java and set its content:<br />
<br />
import java.io.*;<br />
import java.sql.*;<br />
import javax.sql.*;<br />
import javax.naming.*;<br />
import javax.servlet.*;<br />
public class pgsqlVersion extends GenericServlet {<br />
public void service(ServletRequest request, ServletResponse response) {<br />
try {<br />
response.setContentType("text/html");<br />
PrintWriter pw=response.getWriter();<br />
Context initContext = new InitialContext();<br />
Context envContext = (Context)initContext.lookup("java:/comp/env");<br />
DataSource ds = (DataSource)envContext.lookup("jdbc/postgresql");<br />
Connection conn = ds.getConnection();<br />
Statement stat=conn.createStatement();<br />
ResultSet rs=stat.executeQuery("SELECT version()");<br />
rs.next();<br />
pw.println(rs.getString("version"));<br />
rs.close();<br />
stat.close();<br />
} catch(Exception e) { }<br />
}<br />
}<br />
<br />
Create index.html and set its content:<br />
<br />
<title>PostgreSQL datasource</title>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"<br />
"http://www.w3.org/TR/html4/frameset.dtd"&gt;<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Then compile the servlet:<br />
<br />
export CLASSPATH=$CATALINA_HOME/lib/postgresql.jar:$CATALINA_HOME/lib/servlet-api.jar:.<br />
javac -d WEB-INF/classes/ pgsqlVersion.java<br />
<br />
Finally, visit http: //host:8080/dataSourceTest. Thats all!<br />
<br />
<br><br />
<br />
=== Nagios Network Monitoring Server ===<br />
<br />
* [http://www.ubuntugeek.com/nagios-network-monitoring-system-setup-in-ubuntu.html Nagios Monitoring Server Setup Guide]<br />
<br />
It should be noted that this howto instructs you to build nagios from its sources, while it exists on the official repositories.<br />
<br />
=== NFS Server ===<br />
<br />
* Read [http://nfs.sourceforge.net Linux NFS FAQ]<br />
* Run this command for each computer to determine the IP Addresses for each one:<br />
<br />
ifconfig<br />
<br />
==== Installing NFS Server ====<br />
<br />
sudo apt-get install nfs-kernel-server nfs-common portmap<br />
<br />
Reconfigure Portmap to not bind to loopback interface:<br />
<br />
sudo dpkg-reconfigure portmap <br />
sudo /etc/init.d/portmap restart<br />
<br />
Define which folders to share (export):<br />
<br />
sudo nano /etc/exports<br />
<br />
Add share (export) definitions:<br />
<br />
This will export path to all IP addresses between 192.168.1.1 and 192.168.1.254 with Read/Write access:<br />
<br />
/path/to/shared/files 192.168.1.0/24(rw,no_root_squash,async)<br />
<br />
This will export path to all IP addresses between 192.168.1.1 and 192.168.1.254 with Read Only access:<br />
<br />
/path/to/shared/files 192.168.1.0/24(ro,async)<br />
<br />
''192.168.1.0/24 above would be the clients IP Address''<br />
<br />
When finished, save changes and restart the NFS Server:<br />
<br />
sudo /etc/init.d/nfs-kernel-server restart<br />
<br />
Export your new configuration:<br />
<br />
sudo exportfs -a<br />
<br />
==== Installing NFS Client ====<br />
<br />
sudo apt-get install portmap nfs-common<br />
<br />
==== Mounting Manually ====<br />
<br />
cd ~<br />
mkdir temp<br />
sudo mount 192.168.1.1:/path/to/shared/files temp<br />
<br />
''192.168.1.1 above would be the Servers IP Address''<br />
<br />
You may need to restart NFS services:<br />
<br />
sudo /etc/init.d/portmap restart<br />
sudo /etc/init.d/nfs-common restart<br />
<br />
==== Mounting Automatically ====<br />
<br />
Create mountpoint:<br />
<br />
sudo mkdir /mnt/files<br />
<br />
Edit configuration:<br />
<br />
gksudo gedit /etc/fstab<br />
<br />
Add something similar to below:<br />
<br />
192.168.1.1:/path/to/shared/files /mnt/files nfs rsize=8192,wsize=8192,timeo=14,intr 0 0<br />
<br />
Test new configuration:<br />
<br />
sudo mount -a<br />
<br />
Reboot to test automatic mounting.<br />
<br />
== '''''硬件''''' ==<br />
<br />
=== NVidia 驱动 ===<br />
<br />
首先,弄清楚你清楚你是什么内核运行以下命令查看:<br />
<br />
user@localhost:~$ uname -a<br />
Linux localhost 2.6.22-14-generic #1 SMP Sun Oct 14 23:05:12 GMT 2007 i686 GNU/Linux<br />
<br />
I have the '''generic''' kernel, so I need to install the following:<br />
<br />
sudo apt-get install linux-restricted-modules-generic<br />
<br />
<br> After that's done, go to '''''System &gt; Administration &gt; Restricted Drivers Manager''''' and turn on the driver.<br />
<br />
Some users may receive an error screen: "The software source for the packsge nvidia-glx-new is not enabled." This can be overcome by going to '''''System &gt; Administration &gt; Software Sources''''' and ticking all the boxes under the heading "Downloadable from the Internet", click close and then allow Ubuntu to reload the package lists. The NVidia drivers can then be enabled using the method above.<br />
<br />
You can optionally prevent showing NVidia logo on startup by:<br />
<br />
sudo nvidia-xconfig --no-logo<br />
<br />
=== Wacom tablet ===<br />
<br />
By default, options for the Wacom tablet are commented out. Type the following command to edit the '''xorg.conf''' file.<br />
<br />
gksu gedit /etc/X11/xorg.conf<br />
<br />
Uncomment the following by removing the "#" or just replace the tree lines:<br />
<br />
InputDevice "stylus" "SendCoreEvents"<br />
InputDevice "cursor" "SendCoreEvents"<br />
InputDevice "eraser" "SendCoreEvents"<br />
<br />
Save and restart your X-session by typing '''CTRL-ALT-BACKSPACE'''.<br />
<br />
=== Microsoft Intellimouse ===<br />
<br />
To get the scroll wheel and side buttons to be recognized, change your '''/etc/X11/xorg.conf''' mouse section to look like the following:<br />
<br />
Section "InputDevice"<br />
<br />
Identifier "Configured Mouse"<br />
Driver "mouse"<br />
Option "CorePointer"<br />
Option "Device" "/dev/input/mice" <br />
Option "Protocol" "ExplorerPS/2"<br />
Option "ZAxisMapping" "4 5"<br />
Option "Emulate3Buttons" "true"<br />
Option "Buttons" "7" <br />
Option "ButtonMapping" "1 2 3 6 7"<br />
<br />
EndSection<br />
<br />
If you want the wheel scroll button to scroll in firefox rather than the side buttons make "ZAxisMapping" "6 7" and "ButtonMapping" "1 2 3 4 5".<br />
<br />
At this point you can reboot your computer or restart X (Ctrl-Alt-BackSpace) to see if your forward/back buttons work in FireFox. You can test in a terminal with '''xev'''.<br />
<br />
=== Logitech Marble Mouse ===<br />
<br />
To get the scrollwheel effect on Logitech trackball (Marble Mouse), change your '''/etc/X11/xorg.conf''' mouse section to look like the following:<br />
<br />
Section "InputDevice"<br />
<br />
Identifier "MarbleMouse"<br />
Driver "mouse"<br />
Option "Protocol" "auto"<br />
Option "Device" "/dev/input/mice"<br />
Option "Buttons" "5"<br />
Option "ButtonMapping" "1 8 3 6 7"<br />
Option "EmulateWheel" "true"<br />
Option "EmulateWheelTimeout" "300" # msec<br />
Option "EmulateWheelButton" "6"<br />
Option "YAxisMapping" "4 5"<br />
<br />
EndSection<br />
<br />
Make sure that you have "MarbleMouse" under the server layout section as well.<br />
<br />
The big left and right buttons work normally (click, right click) and pressing them at the same time acts as a middle click. Holding the small left button will let you scroll up and down with the trackball. Clicking small left and right buttons will let you go back/forward in firefox.<br />
<br />
Thanks to imjustabill and Buffalo Soldier from the Ubuntu Forum. This works well on my computer.<br />
<br />
=== Logitech MX510 ===<br />
<br />
To have the extra buttons on your MX510 working with X, you'll have to install and configure the evdev-drivers. Open up a terminal and enter:<br />
<br />
sudo apt-get install [http://packages.ubuntu.com/gutsy/x11/xserver-xorg-input-evdev xserver-xorg-input-evdev] <br />
<br />
Now, all you have to do is configure Xorg to work with the new driver. Always remember to back up original files before altering:<br />
<br />
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.bak<br />
gksudo gedit /etc/X11/xorg.conf<br />
<br />
Locate and replace the '''InputDevice''' section which holds the information for your mouse, for example with the identifier '''Configured Mouse''', and replace it with:<br />
<br />
<nowiki>Section "InputDevice"<br />
Identifier "Configured Mouse"<br />
Driver "evdev"<br />
Option "CorePointer"<br />
Option "Name" "Logitech MX510"<br />
EndSection</nowiki> <br />
<br />
Logout or kill the X session using '''&lt;CTRL&gt;&lt;ALT&gt;&lt;BACKSPACE&gt;''' and login again. This should get all of your buttons and scrollwheel up and running, and even let you navigate the webbrowser history using the thumb buttons on the side.<br />
<br />
=== Disable CAPS LOCK ===<br />
<br />
I like to remap mine to '''&lt;Ctrl&gt;'''. Just run gnome-keyboard-properties with "System &gt; Preferences &gt; Keyboard", click on the "Layout Options" tab and then on the arrow next to "Ctrl key position". Selecting "Make CapsLock an additional Ctrl" does the trick.<br />
<br />
=== Enabling NUM LOCK at boot ===<br />
<br />
The Default behavior is for the NUM LOCK key to be off; if you are on a desktop and have a keypad though, entering digits from it can be much quicker and you may wish to have it enabled for entering login password, etc. Here's how:<br />
<br />
* From Synaptic, download and install "numlockx," or, from the command line;<br />
<br />
sudo apt-get install numlockx<br />
<br />
* To get it working, you now have to edit the appropriate startup file. First, make sure you have a working backup of the file:<br />
<br />
sudo cp /etc/gdm/Init/Default /etc/gdm/Init/Default.bak<br />
<br />
* Next, modify the gdm/Init file. In terminal:<br />
<br />
gksudo gedit /etc/gdm/Init/Default<br />
<br />
* Scroll down to the end of the file, and above the line that says "exit 0" add the following:<br />
<br />
if [ -x /usr/bin/numlockx ]; then<br />
/usr/bin/numlockx on <br />
fi<br />
<br />
* Next time you reboot, your NUM LOCK should default to "on."<br />
<br />
=== BSNL Broadband (dataone) speedup ===<br />
<br />
BSNL Broadband or Dataone provides high speed (2Mbps) Internet connectivity in India. The DNS servers provided by the BSNL (61.1.96.69 and 61.1.96.71) are very slow. Instead use Either of these:<br />
<br />
208.67.222.222 and 208.67.220.220 or<br />
<br />
4.2.2.1 and 4.2.2.2 or<br />
<br />
search Google for free DNS service providers.<br />
<br />
=== Citrix ICA client ===<br />
<br />
The Citrix client no longer suffers from any of the previous Ubuntu version's problems of UTF8 font issues, OpenMotif depends, or flaky/broken browser integration. It just works!<br />
<br />
* Download the latest en.linuxx86.tar.gz (currently v10.6) from [http://www.citrix.com/ Citrix.com] and save to your desktop<br />
* Right-click tar.gz file, and '''Extract Here'''<br />
* Open a Terminal<br />
<br />
Programs &gt; Accessories &gt; Terminal<br />
<br />
* Change to the directory where we extracted the client<br />
<br />
cd Desktop/en.linuxx86<br />
<br />
* Run the setup program<br />
<br />
./setupwfc<br />
<br />
* Select the defaults<br />
<br />
Now, web files from Metaframe Presentation Server, Citrix Access Gateway, etc webpages will work fine in Firefox.<br />
<br />
Someone may wish to add an entry on how to use the client to connect to a local Citrix farm.<br />
<br />
=== WINE ===<br />
<br />
Latest install instructions are always at: [http://www.winehq.org/site/download-deb WineHQ.org]<br />
<br />
Add repository key:<br />
<br />
wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | sudo apt-key add -<br />
<br />
Add repository to apt sources:<br />
<br />
sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/gutsy.list -O /etc/apt/sources.list.d/winehq.list<br />
<br />
Update apt sources:<br />
<br />
sudo apt-get update<br />
<br />
Install WINE:<br />
<br />
sudo apt-get install wine<br />
<br />
The program menu then appears in Programs under Wine, or double-click a Windows/DOS .exe file.<br />
<br />
==== Install Internet Explorer 6 for Wine ====<br />
<br />
IE 6 is not recommended for general usage, but some Windows packages (installed under Wine) require IE6 to complete installation. Furthermore, IE 6 is useful for checking code for developers who want to see how their web pages appear under IE 6.<br />
<br />
Install the required package cabextract from Synaptic Package Manager (or from apt-get install cabextract).<br />
<br />
Download and run the IEs4Linux installation script from the IEs4Linux website:<br />
<br />
wget http://www.tatanka.com.br/ies4linux/downloads/ies4linux-latest.tar.gz<br />
tar zxvf ies4linux-latest.tar.gz<br />
cd ies4linux-*<br />
./ies4linux<br />
<br />
<br> There is a beta version of the install at http://www.tatanka.com.br/ies4linux/downloads<br />
<br />
'''If you hit advance you have the option to install IE7. I have not gotten it to work as of yet, but IE6 installs with no issues on amd64 and i386'''<br />
<br />
Accept all the defaults for installation.<br />
<br />
==== Wine-Doors ====<br />
<br />
Wine-Doors http://www.wine-doors.org/ packages Windows applications for Wine. The current package list includes Internet Explorer 6.<br />
<br />
Debian/Ubuntu package (single click) available for [http://www.wine-doors.org/wordpress/?page_id=3 download].<br />
<br />
=== VMWare Server ===<br />
<br />
Until the Commercial Ubuntu repository includes the VMWare Server, you can use the following 'How To' to compile from source.<br />
<br />
* [http://www.ubuntugeek.com/how-to-install-vmware-server-in-ubuntu-710-gutsy-gibbon.html Step By Step Vmware server setup guide including Screenshots]<br />
<br />
==== VMWare Tools ====<br />
<br />
If you want to install VMware tools on ubuntu gutsy follow this steps<br />
<br />
* [http://www.ubuntugeek.com/howto-install-vmware-tools-in-ubuntu.html VMWare Tools Setup Guide Incliding Screenshots]<br />
<br />
To be able to use usb devices look at following bug comment at https://bugs.launchpad.net/ubuntu/+source/kvm/+bug/156085/comments/5<br />
<br />
=== How to install Broadcom wireless driver ===<br />
<br />
* This worked for me Kubuntu 7.10 32 bit but there are several ways<br />
<br />
* First, make sure you have the appropriate hardware<br />
<br />
lspci | grep Broadcom<br />
<br />
* Output should match this<br />
<br />
02:03.0 Network controller: Broadcom Corporation BCM4306 802.11b/g Wireless LAN Controller (rev 02)<br />
<br />
* Then you have to add a repository<br />
<br />
gksu gedit /etc/apt/sources.list<br />
<br />
* Add<br />
<br />
deb http://ubuntu.cafuego.net gutsy-cafuego bcm43xx<br />
<br />
* Then do this to add the signature<br />
<br />
wget http://ubuntu.cafuego.net/AF425CB5.gpg -O- | sudo apt-key add -<br />
<br />
* Back in the console<br />
<br />
sudo apt-get update<br />
sudo apt-get install bcm43xx-firmware <br />
<br />
* Just press yes, let it install, and reboot! Thanks to Pete and the 7.04 guide for this.<br />
<br />
== Requests ==<br />
If you have requests that you would like to be part of this guide, write them in [[Ubuntu_talk:Gutsy]].<br />
<br />
== ''''' Troubleshooting ''''' ==<br />
<br />
Place solutions to problems you have encountered with Gutsy here.<br />
They may be workarounds to bugs or other solutions to other problems.<br />
<br />
=== OpenOffice spell checking problem ===<br />
This problem is not a bug at all. Some Languages do not have spell checking support, while others do. For example, "English (India)" does not support spell checking but "English (USA)" does. Just go to<br />
Tools -> Options -> Language Settings -> Languages<br />
and select a Western language that has a check mark beside the language name. That's it.<br />
<br />
If you want to add languages that support spell checking, install the package myspell-<language> where <language> is the desired language, e.g.:<br />
sudo apt-get install myspell-fr <br />
to install the French dictionary.<br />
<br />
=== Alternative of SCIM to switch keyboard layout ===<br />
SCIM might not work properly under Gutsy Gibbon, although works fine under Feisty Fawn. Until the problem is fixed, you can use the alternative method to switch keyboard layout.<br />
<br />
*Go to System -> Administration -> Language Support and install the languages you want to use.<br />
*Open System -> Preferences -> Keyboard and add the layout that you want to use from Layouts tab.<br />
*Right click on the free space of upper panel and select "Add to panel...". Add Keyboard Indicator.<br />
<br />
===Fix Slow boot/faulty splash screen===<br />
<br />
if your system is booting slowly or your ubuntu splash screen is not being displayed it could be that Usplash has created the splash screen incorrectly<br />
<br />
1) edit /boot/grub/menu.lst<br />
sudo gedit /boot/grub/menu.lst<br />
<br />
At the very end of the kernel line after "splash" , add <br />
"vga=***" <br />
replace *** with the code from the table below that corresponds with the resolution <br />
and colour setting you are using<br />
<br />
{| border="1" cellspacing="0" cellpadding="5" align="center"<br />
! Screen<br />
! 640x480<br />
! 800x600<br />
! 1024x768<br />
! 1280x1024<br />
! 1600x1200 <br />
|- <br />
| Colors<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
| 256<br />
| 769<br />
| 771<br />
| 773<br />
| 775<br />
| 796<br />
|-<br />
| 32,768<br />
| 784<br />
| 787<br />
| 790<br />
| 793<br />
| 797<br />
|-<br />
| 65,536<br />
| 785<br />
| 788<br />
| 791<br />
| 794<br />
| 798<br />
|-<br />
| 16.8M<br />
| 786<br />
| 789<br />
| 792<br />
| 795<br />
| 799<br />
|}<br />
<br />
the line should look something like this<br />
<br />
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=20fd9912-6383-4860-9cd8-88a11909d715 ro quiet splash vga=791<br />
<br />
Save that file, close it, <br />
<br />
2) edit /etc/usplash.conf<br />
sudo gedit /etc/usplash.conf<br />
<br />
change the resolution to the one you set in the previous step save and close<br />
<br />
3) rebuild the bootsplash screen<br />
<br />
sudo update-initramfs -u -k `uname -r`<br />
<br />
This rebuilds the image that Grub uses to start the system.<br />
<br />
4) reboot<br />
<br />
=== Logout problem === <br />
Some users have have faced a hangout problem when whey press the quit button. Currently the following symptom and work-around have been noticed: <br />
* Press Ctrl-Alt-Backspace to kill X-Window and show the GDM screen. <br />
* gnome-power-manager service should be on. You can enable it from System->Preferences->Sessions.<br />
* Wait for 1 minute. The quit window will appear. (the logout problem will vanish for some times).<br />
* For some users, removing .config/autostart/ directory worked.<br />
== Tips And Tricks ==<br />
It is pointless to add the tricks that is already added in [[Ubuntu:Feisty#Tips_And_Tricks]]. So, only new tricks are added.<br />
<br />
=== What to do when Ubuntu freezes ===<br />
There are different reasons for a computer to crash - there can be a programming bug, a memory issue, or other. When your computer seems to be dead, don't panic! And don't reach for that power button!<br />
There are '''five''' simple things you can try before killing the power:<br />
<br />
# Is the computer frozen? Try going into one of the VTs by pressing '''<Ctrl><Alt>''' and '''F1'''. This way you may still have control of the computer and manage to kill the application which caused the problem. '''''More on killing applications later.'''''<br />
# If you can't change into a VT, try to kill the X session. This can be done by pressing '''<Ctrl><Alt><Backspace>'''. All applications that were opened during the session will automatically be killed, so you should gain control over the computer after you've been sent back to the login screen.<br />
# OK, so you can't kill X or go into VT. Let's do a reboot, which can safely be done by pressing '''<Ctrl><Alt><Delete>'''. The machine will beep and start running the shutdown scripts.<br />
# If for some reason one or more of the shutdown scripts should die, and the computer stops the rebooting process, press the key combination again to ''force a reboot''. This not safe if the scripts haven't gotten around to unmount the local filesystems.<br />
# Final way out: Your computer doesn't obey and none of above methods seem to give any response. Here's a little trick that might help, not known to many Linux users! The kernel has a small userspace communication line opened, so even if the computer has crashed badly (I haven't tried this during kernel-panic, though, can anyone confirm?) you can make it reboot safely. This method ''is'' safe, but should be used '''''only if everything else fails'''''! Hold down '''<Ctrl>''', '''<Alt>''' and '''<PrtScrn/SysRq>'''. While holding down these, type the following letters - in order - '''R E I S U B'''. The computer will unmount any filesystems that are locally mounted, and safely bring down the system. If you have trouble remembering the letter combination; think '''''busier''''', only ''backwards''.<br />
<br />
=== How to find the UUID of a device ===<br />
* This is useful if changes are made to the partition table or a new hard drive is added to the computer.<br />
* When the UUID(s) change an error will be caused during boot.<br />
* Pressing <Ctrl>-D will allow the boot to continue but to fix the problem:<br />
-> Open fstab file:<br />
sudo gedit /etc/fstab<br />
-> In another terminal run this commmand: <br />
ls -l /dev/disk/by-uuid/ <br />
-> Or you can type this to list all of your devices:<br />
blkid<br />
<br />
* Compare the UUID's and any that are different in fstab from the list must be changed. The easiest way is copy and paste.<br />
* Some other things may have to be edited as well like the mount point, type (ext2, ext3, ntfs, etc) , options, dump, pass, etc.<br />
''For more help editing fstab look [http://ubuntuforums.org/showthread.php?t=283131 Here:]''<br />
<br />
* To list the UUID of a specific device:<br />
sudo vol_id -u device<br />
<br />
* Where device might be /dev/sdxy.<br />
'' Example: sudo vol_id -u /dev/sda1 ''<br />
<br />
=== Enable vim syntax highlighting ===<br />
The source of vi/vim command is vim-tiny package which does not support syntax highlighting. Install vim:<br />
sudo apt-get install vim<br />
Then open /etc/vim/vimrc and uncomment '''syntax on'''<br />
<br />
Replace<br />
"syntax on<br />
<br />
With<br />
syntax on<br />
<br />
=== HAL ===<br />
If you have problem failed to initialize HAL, and devices such as card reader,or shutdown problem, power meter doesn´t appear..please find this line in /etc/init.d/rc<br />
<br />
sudo vim /etc/init.d/rc<br />
find this line :<br />
CONCURRENCY=shell<br />
<br />
To fix this:<br />
<br />
sudo nautilus<br />
<br />
Navigate to /etc/<br />
look for the folder '''rc2.d'''<br />
rename '''s12hal''' to '''s13hal<br />
'''<br />
<br />
the problem was HAL loading before DBUS and causing such error.<br />
this should fiz the problem, if not<br />
<br />
sudo gedit /etc/init.d/rc<br />
<br />
and turn<br />
CONCURRENCY=shell to CONCURRENCY=none<br />
<br />
=== Enable Sirius Internet Radio for Firefox ===<br />
*Install [[#How to install VLC media player| VLC]]<br />
*Install the [https://addons.mozilla.org/en-US/firefox/addon/446 firefox media player connectivity plugin]<br />
<br />
Launch the player from [http://www.sirius.com/servlet/ContentServer?pagename=Sirius/Page&c=FlexContent&cid=1191942072317&flash=noflash| www.sirius.com]. After authenticating, you will now be able to select which stream to play. Selecting the stream will launch vlc.<br />
<br />
=== Remove unwanted language/locale files ===<br />
sudo apt-get install localepurge<br />
sudo localepurge<br />
<br />
=== Auto starting pidgin at login ===<br />
Goto System -> Preferences -> Sessions. Click Add. A popup window will appear. Set Name to "Pidgin" and Command to "/usr/bin/pidgin". Click OK. Make sure that it is enabled.<br />
<br />
=== sudo/gksu without password ===<br />
EDITOR=gedit gksu visudo<br />
Find "Defaults !lecture,tty_tickets,!fqdn" and replace by "Defaults timestamp_timeout=-1".<br />
<br />
=== Speed-up Ubuntu ===<br />
Open System -> Preferences -> Sessions and remove the startup programs that you do not need (e.g. Bluetooth Manager, Evolution Alarm Notifier, Restricted Driver Manager, Tracker, User folders update, Visual).<br />
<br />
Open System -> Preferences -> Appearance and make Visual Effects to None.<br />
<br />
Open System -> Administration -> Services and disable the services that you do not need (e.g. alsa-utils, bluetooth, brltty, hdparm, acpid, apmd, screen).<br />
<br />
=== How to change the USplash Screen on startup/shutdown ===<br />
<br />
When you add another Desktop Environment, the USplash screen may change (saying Kubuntu instead of Ubuntu). If you want to change it, do the following:<br />
<br />
sudo update-alternatives --config usplash-artwork.so<br />
<br />
This will bring up a list of installed USplash screens. Type the number that corresponds to the one you want and press Enter. Then type:<br />
<br />
sudo dpkg-reconfigure usplash<br />
<br />
Then reboot.<br />
<br />
== ''''' Guide Development ''''' ==<br />
<br />
'' Note: This section was taken from the Feisty Guide and edited appropriately.''<br />
<br />
Place ideas here to increase the look and performance of this guide.<br />
<br />
* Add a new section for Gnome Themes from http://art.gnome.org and KDE Themes from http://www.kde-look.org/.<br />
* Have entries under their headings in alphabetical order.<br />
* Try to keep the guide neat and clutter free.<br />
* Possible "Short Version" Table of contents without each "How to".<br />
* Add a [top] link to the end of each article.<br />
* If possible, include a 'find/search' function to easily access queries.<br />
** This can be done in Firefox with <Ctrl>-F.<br />
* instead of 'apt-get install', there could be the new Gutsy [http://www.ubuntugeek.com/apturl-protocol-handler-in-ubuntu-gutsy-gibbon.html apturl] feature for easier installation of software</div>Convicehttps://wiki.ubuntu.org.cn/index.php?title=Ubuntu:Gutsy/zh&diff=75357Ubuntu:Gutsy/zh2007-12-30T12:36:08Z<p>Convice:</p>
<hr />
<div>{{Translation}} {{From|http://ubuntuguide.org/Ubuntu:Gutsy}} {{Languages|Ubuntu:Gutsy}} {{Translator|zhan 译者2}}<br />
<br />
= ''''' Ubuntu 7.10 (Gutsy Gibbon) ''''' =<br />
<br />
'''Ubuntu Gutsy Gibbon, the successor of Feisty Fawn was released on Oct 18th, 2007. Please help test and perfect this guide.'''<br />
'''Ubuntu Gutsy Gibbon, Feisty Fawn 的后续版本,于 2007 年 10 月 18 日已经发布。请帮忙测试和完善这份指南'''<br />
<br />
This guide was started by [[User:Jiyuu0|Chua Wen Kiat]] (Kuala Lumpur, Malaysia). <br />
It is now being maintained by the [http://linux.edu.lv/index.php?newlang=english Linux Center] of [http://www.lu.lv/eng/ University of Latvia], and everyone else who is willing to contribute.<br />
<br />
这份指南由 [[User:Jiyuu0|Chua Wen Kiat]] (Kuala Lumpur, Malaysia). 发起。现在它由[http://www.lu.lv/eng/ Latvia 大学]的[http://linux.edu.lv/index.php?newlang=english Linux 中心]和所有愿意贡献的其他人们共同维护。<br />
<br />
This guide can be discussed at the official [http://www.ubuntuforums.org/forumdisplay.php?f=78 UbuntuGuide.org Forum] at ubuntuforums.org. Stop by and join the discussion. <br />
<br />
这份手册可以在官方论坛 ubuntuforums.org 的[http://www.ubuntuforums.org/forumdisplay.php?f=78 UbuntuGuide.org 论坛]<br />
讨论。加入讨论吧。<br />
<br />
== ''''' 前言 ''''' ==<br />
<br />
=== 关于 Gutsy ===<br />
<br />
* On October 18, 2007 Ubuntu 7.10 was released.<br />
* It was code named Gutsy Gibbon and is the successor to Ubuntu 7.04 Feisty Fawn (Feisty+1 or the very next release after Feisty)<br />
* Gutsy will be supported for 18 months on both desktops and servers.<br />
* Users requiring a longer support lifetime on servers may choose to continue using Ubuntu 6.06 LTS, with security support until 2011, rather than upgrade to or install 7.10.<br />
<br />
* 2007 年 10 月 18 日,Ubuntu 7.10 发布。<br />
* 它被命名为 Gutsy Gibbon,它是 Ubuntu 7.04 Feisty Fawn 的后续版本(Feisty +1 或紧接 Feisty 之后发布的版本)<br />
* Gutsy 将在桌面和服务器版本上提供 18 个月的支持<br />
* 要求更长期服务器版本支持的用户可以选择 Ubuntu 6.06 LTS ,而不是更新到 7.10, 因为 6.06 的安全支持直到 2011 年。<br />
<br />
=== 如何找出您正在使用的 Ubuntu 版本 ===<br />
<br />
* Read [[#General Notes]]<br />
*In Gutsy goto System -> Administration -> System Monitor -> System Tab<br />
<br />
or on all versions and derivatives of Ubuntu use this command:<br />
<br />
lsb_release -a<br />
<br />
* 读一下 [[#General Notes]]<br />
* 在 Gutsy 中,到系统->管理->系统监视器->系统标示 查看<br />
或者在所有的 Ubuntu 版本和衍生版本中,使用这个命令:<br />
<br />
lsb_release -a<br />
<br />
=== Ubuntu 的更新的版本 ===<br />
<br />
* Ubuntu uses a six month release cycle<br />
* These releases occur in April and October<br />
* The next release is scheduled for April 24, 2008 and will be Ubuntu 8.04 (Hardy Heron) which is Gutsy+1.<br />
* Hardy Heron will be a LTS (Long Term Support) release and will be supported with security updates for five years on the server and three years on the desktop.<br />
<br />
* Ubuntu 采用 6 个月的发行周期<br />
* 一般发布在 4 月和 10 月<br />
* 下一次的发布计划在 2008 年 4 月 24 日,并命名为 Ubuntu 8.04(Hardy Heron)即 Gutsy+1。<br />
* Hardy Heron 将是 LTS(长期支持)版本,将提供 5 年的服务器版本安全支持和 3 年的桌面版本支持。<br />
<br />
=== Ubuntu 的老版本 ===<br />
<br />
* '''[[Ubuntu:Feisty | 7.04 (Feisty Fawn)]]'''<br />
<br />
* '''[[Ubuntu:Edgy | 6.10 (Edgy Eft)]]'''<br />
<br />
* '''[[Ubuntu_dapper | 6.06 (Dapper Drake)]]'''<br />
<br />
If you are using an outdated version of Ubuntu, you should consider updating it to Gutsy. There have been considerable improvements to this version, and the updater used in Gutsy will ease transitions to future versions. If you are in a production environment, or if everything works perfectly for you, you may wish to stay with a Long-Term Support (LTS) version.<br />
<br />
如果您试用一个 Ubuntu 的过时的版本,您应该考虑将其升级到 Gutsy。 这个版本有相当多的改进,并且和将来的版本更加容易整合。如果您使用其作为一个生产环境,或您认为所有的事情都很完美,您可以考虑仍然使用长期支持版本(LTS)。<br />
<br />
*[http://www.ubuntu.com/getubuntu/upgrading Ubuntu 升级页面]<br />
<br />
* Dapper is latest LTS and the next version Gutsy+1 will be the next LTS released.<br />
<br />
*Read [https://lists.ubuntu.com/archives/ubuntu-devel-announce/2007-April/000276.html Introduction to Gutsy Gibbon] from April 2007<br />
<br />
* Dapper 是最新的 LTS 版本,Gutsy+1 的新版本将是下一个 LTS 版本。<br />
<br />
* 读一下从 2007 年 4 月开始的[https://lists.ubuntu.com/archives/ubuntu-devel-announce/2007-April/000276.html Gutsy Gibbon 简介] <br />
<br />
=== General Notes ===<br />
<br />
# 这是一个非官方的 Ubuntu 7.10 (Gutsy Gibbon) 初学者向导. 它与 Ubuntu和 Canonical 公司都没有关系.<br />
# 这个向导发自于官方论坛([http://www.ubuntuforums.org/forumdisplay.php?f=78 UbuntuGuide.org Forum] at ubuntuforums.org).欢迎参与讨论。<br />
# If you see a bluish box, this means you have to execute the commands in Terminal mode (Applications -&gt; Accesories -&gt; Terminal) or use the content of that box as mentioned in some other instructions.<br />
# 在终端模式,你也可以用“复制”“粘贴”来代替用键盘键入命令,这样往往可以有效的防止输入错误。(Ctrl+c=复制,Shift+Insert=粘贴)<br />
# "sudo" 表示 "'''s'''ubstitute '''u'''ser '''do'''". Sudo 需要你提供密码(密码不会在终端中回显). 你可以利用sudo代替另一个用户在计算机上操作-比如&nbsp; sudo -u peter &lt;命令&gt; 将会以peter的身份在计算机上执行此命令。<br><br />
# 欲获得更多关于命令的信息,请参阅手册页。例如,在终端中输入“man sudo”可以获得与sudo相关的信息。<br />
# 你也可以使用更新管理器来代替"apt-get"(系统-系统管理-更新管理器)<br />
# "apt-get"和"wget"都需要网络连接来下载安装和更新程序<br><br />
# 所以涉及 "aptitude"的选项都可以用"apt-get"替代.当然可以继续使用"aptitude",但是这可能会造成一些依赖性上的问题。<br><br />
# 可以点击右键选择“链接另存为”来下载文件,但必须保证文件的名字和拓展名都是正确的<br />
# 如果你有意向帮助Ubuntu本土化,请访问 https://launchpad.net/<br />
# 善待他人的理念永远和Ubuntu一起伴随着你...<br />
# ''如果使用的是64位的版本,请在“i386”用“amd64”代替''<br />
<br />
=== 外部链接申明 ===<br />
<br />
这份指南中的很多部分都有外部链接,这可以使这份指南更加精悍,然而Ubuntugide.org不能保证每个链接都是有效的。我们不能对本指南以外的一些拓展链接负责,如果你发现哪个链接是无效的,那请在此处报告问题,或者为我们修正那些指向错误的外部链接。因为有你,我们才能做的更加完美。<br />
<br />
==== ''关于链接出错'' ====<br />
<br />
''如果您发现某个链接是错误的或者无法找到相关信息,那请将此连接贴到此处,包括您是在哪段里找到此链接的。谢谢合作!''<br />
<br />
=== 关于Ubuntu以及官方的一些相关内容<br> ===<br />
<br />
==== Ubuntu 7.10的相关指导 ====<br />
<br />
* [http://www.ubuntu.com/ Ubuntu官方网站]<br />
* [http://www.ubuntu.com/products/whatisubuntu 官方介绍关于Ubuntu]<br />
* [http://ubuntuforums.org/ Ubuntu官方论坛]<br />
* [http://en.wikipedia.org/wiki/Ubuntu_(Linux_distribution) 维基百科: Ubuntu版本介绍 (Linux 发行版)]<br />
* [http://www.ubuntugeek.com/ Ubuntu Geek 网站包括很多关于Ubuntu 的指导性文章]<br />
* [http://www.ubuntutips.net/ Ubuntu小窍门]<br />
<br />
<br><br />
<br />
===== Ubuntu截图 =====<br />
<br />
[http://www.debianadmin.com/ubuntu-710-gutsy-gibbon-screenshots-tour.html Ubuntu 7.10 截图展示&nbsp;]<br />
<br />
==== Kubuntu 7.10的相关指导<br> ====<br />
<br />
* [http://www.kubuntu.org/ Kubuntu官方网站]<br />
* [http://www.kubuntuguide.org/ Kubuntuguide.org]<br />
* [http://www.kubuntu.org/docs/about-kubuntu/C/index.html 官方介绍关于Kubuntu]<br />
* [http://kubuntuforums.net/forums/index.php Kubuntu官方论坛]<br />
* [http://en.wikipedia.org/wiki/Kubuntu Wikipedia: Kubuntu]<br />
<br />
===== Kubuntu Screenshots =====<br />
<br />
[http://www.debianadmin.com/kubuntu-710-gutsy-gibbon-screenshots-tour.html Kubuntu 7.10 Screenshots Gallery]<br />
<br />
==== Xubuntu 7.10 Guides and Links ====<br />
<br />
* [http://www.xubuntu.org/ Xubuntu Official Website]<br />
* [http://en.wikipedia.org/wiki/Xubuntu Wikipedia: Xubuntu]<br />
* [http://www.xubuntuguide.org Xubuntuguide.org]<br />
<br />
===== Xubuntu Screenshots =====<br />
<br />
[http://www.debianadmin.com/xubuntu-710-gutsy-gibbon-screenshots-tour.html Xubuntu 7.10 Screenshots Gallery]<br />
<br />
==== Edubuntu 7.10 Guides and Links ====<br />
<br />
[http://www.edubuntu.org/ Offical Edubuntu Website] [http://en.wikipedia.org/wiki/Edubuntu Wikipedia: Edubuntu]<br />
<br />
==== Gobuntu 7.10 Guides and Links ====<br />
<br />
[http://en.wikipedia.org/wiki/Gobuntu Wikipedia: Gobuntu]<br />
<br />
=== 翻译和本地化 ===<br />
<br />
Chinese, Japanese, Portuguese and most European languages have better support in Ubuntu than any other languages. If your language do not have enough support, then you can help Ubuntu by translating it in your preferred language. To translate, visit https://translations.launchpad.net/ubuntu and login (register if not already registered). Choose your preferred language and start translating.<br />
<br />
Ubuntu对中文,日文,葡萄牙文及其它的欧洲语言的支持比对其它语言的支持要好。如果你的语言没有足够的支持的话,那么您可以帮助Ubuntu翻译成你喜欢的语言。翻译请访问 [https://translations.launchpad.net/ubuntu translations.launchpad.net/ubuntu] 并登录(如果没有注册的话请先注册)。选择你喜欢的语言并开始翻译。<br />
<br />
== '''''更新升级和安装软件''''' ==<br />
<br />
=== 怎样加入新的软件仓库 ===<br />
<br />
''Work in Progress''<br />
<br />
==== 使用菜单 ====<br />
<br />
* Choose distribution-friendly repositories. These are part of the Ubuntu distribution system. This is the recommended method.<br />
<br />
* 选择版本友好的软件仓库。这是Ubuntu发行系统的一部分。这是推荐的方法。<br />
<br />
System--&gt;Administration--&gt;Software Sources<br />
<br />
系统--&gt;管理--&gt;软件源<br />
<br />
Check the repositories you think you will need (main, universe, restricted, multiverse). You probably won't need the 'sources' repository.<br />
<br />
检查你认为你将要用到的软件仓库(main, universe, restricted, multiverse)。你可能不需要源码软件仓库。<br />
<br />
* Add any third-party repositories. Such repositories are not monitored in any way. Some are quite popular, however. Use any third-party repository at your own risk.<br />
<br />
* 增加第三方软件仓库。这些软件仓库不会被监视,然而,有些十分流行。使用第三方软件仓库会增加你的风险。<br />
<br />
System--&gt;Administration--&gt;Software Sources--&gt;Third-party software--&gt;Add<br />
<br />
系统--&gt;管理--&gt;软件源--&gt;第三方软件--&gt;加入<br />
<br />
Add the name of your repository. In this example, we will use Medibuntu, a popular third-party repository not affiliated with Ubuntu in any way.<br />
<br />
为你的软件仓库命名。在这个例子中,我们将要用Medibuntu,一个十分流行但是没有被Ubuntu接纳的软件仓库。<br />
<br />
''APT line:'' deb http://packages.medibuntu.org/ gutsy free non-free<br />
<br />
* Download any needed gpg keys and add them to the keylist. This key verifies the repository to your system. The Medibuntu repository (not affiliated with Ubuntu) example is shown:<br />
<br />
wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add -<br />
<br />
==== Manual Method ====<br />
<br />
* Create a backup of your current list of sources.<br />
<br />
sudo cp -p /etc/apt/sources.list /etc/apt/sources.list_backup<br />
<br />
* Open the list of sources in a text editor<br />
<br />
Ubuntu users:<br />
<br />
sudo gedit /etc/apt/sources.list<br />
<br />
* Replace everything with the following lines<br />
<br />
:To use your local mirror you can add "''cc.''" before ''archive.ubuntu.com'' (cc = your country code)<br />
:e.g. ''<nowiki>deb http://lv.archive.ubuntu.com/ubuntu gutsy main restricted universe multiverse</nowiki>''<br />
<br />
deb http://us.archive.ubuntu.com/ubuntu/ gutsy main restricted<br />
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy main restricted<br />
<br />
## Major bug fix updates produced after the final release of the<br />
## distribution.<br />
<br />
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted<br />
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted<br />
<br />
##Universe<br />
<br />
deb http://us.archive.ubuntu.com/ubuntu/ gutsy universe<br />
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy universe<br />
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates universe<br />
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates universe<br />
<br />
## Multiverse<br />
<br />
deb http://us.archive.ubuntu.com/ubuntu/ gutsy multiverse<br />
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy multiverse<br />
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates multiverse<br />
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates multiverse<br />
<br />
## Backports<br />
<br />
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse<br />
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse<br />
<br />
## Canonical Partner Repository <br />
<br />
deb http://archive.canonical.com/ubuntu gutsy partner<br />
deb-src http://archive.canonical.com/ubuntu gutsy partner<br />
deb http://security.ubuntu.com/ubuntu gutsy-security main restricted<br />
deb-src http://security.ubuntu.com/ubuntu gutsy-security main restricted<br />
deb http://security.ubuntu.com/ubuntu gutsy-security universe<br />
deb-src http://security.ubuntu.com/ubuntu gutsy-security universe<br />
deb http://security.ubuntu.com/ubuntu gutsy-security multiverse<br />
deb-src http://security.ubuntu.com/ubuntu gutsy-security multiverse<br />
<br />
## PLF REPOSITORY (Unsupported. May contain illegal packages. Use at own risk.)<br />
deb http://packages.medibuntu.org/ gutsy free non-free<br />
<br />
* Save the edited file<br />
<br />
wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add -<br />
sudo apt-get update<br />
<br />
=== 怎样从Feisty 升级到 Gutsy ===<br />
<br />
* [http://www.ubuntugeek.com/upgrade-ubuntu-704-feisty-fawn-to-ubuntu-710-gutsy-gibbon.html 一步一步地按照屏幕显示的升级向导把Ubuntu Feisty 升级到 Gutsy]<br />
<br />
=== How to edit Automatic Updates ===<br />
<br />
* Enable automatic updates from the menu:<br />
<br />
System--&gt;Administration--&gt;Software Sources--&gt;Updates<br />
<br />
Select Important Security Updates and Recommended Security Updates and any other desired updates. Choose frequency of updates.<br />
<br />
=== How to manually update Ubuntu ===<br />
<br />
* Read [[|#General Notes]]<br />
* Read [[|#How to add extra repositories]]<br />
<br />
* From the command line:<br />
<br />
use http://www.ubuntu-nl.org/source-o-matic/ page to generate the /etc/apt/sources.list file<br />
<br />
take a backup of your existing /etc/apt/sources.list file<br />
<br />
create a new /etc/apt/sources.list file from the generated page available on the browser<br />
<br />
now run the following commands<br />
<br />
sudo apt-get update<br />
sudo apt-get upgrade<br />
sudo apt-get dist-upgrade<br />
<br />
* From the menu:<br />
<br />
System -&gt; Administration -&gt; Update Manager<br />
<br />
== ''''' Add-on Applications ''''' ==<br />
<br />
=== Miscellaneous Applications ===<br />
'' The application in this section need a home. If Editors have the time, please place these apps in an appropriate category. If the category doesn't exist then make it. Destroy this message when complete. Thanks. --[[User:KrazyPenguin|KrazyPenguin]] 06:16, 27 October 2007 (EEST)''<br />
<br />
==== Hotwire - Graphical terminal for Ubuntu ====<br />
If you want graphical terminal for Ubuntu check this Very Useful<br />
*[http://www.ubuntugeek.com/hotwire-graphical-terminal-for-ubuntu.html Hotwire Installation Guide]<br />
==== How to install Epiphany web browser in Ubuntu ====<br />
If you want to How to install Epiphany web browser in Ubuntu follow this procedure<br />
*[http://www.ubuntugeek.com/how-to-install-epiphany-web-browser-in-ubuntu.html Epiphany web browser in Ubuntu]<br />
==== Midori - a lightweight web browser in Ubuntu ====<br />
If you want to How to install Midori web browser in Ubuntu follow this procedure<br />
*[http://www.ubuntugeek.com/midori-a-lightweight-web-browser.html Midori web browser in Ubuntu]<br />
<br />
==== apturl - protocol handler in Ubuntu Gutsy Gibbon ====<br />
If you want to install ubuntu package from web browser here is simple tool<br />
*[http://www.ubuntugeek.com/apturl-protocol-handler-in-ubuntu-gutsy-gibbon.html apturl Setup guide]<br />
==== sysvconfig - utility for configuring init script links ====<br />
sysvconfig - utility for configuring init script links,service command in ubuntu<br />
*[http://www.ubuntugeek.com/sysvconfig-utility-for-configuring-init-script-links.html sysvconfig - utility for configuring init script links]<br />
==== Howto Install qBittorrent in Ubuntu Gutsy ====<br />
sysvconfig - utility for configuring init script links,service command in ubuntu<br />
*[http://www.ubuntugeek.com/howto-install-qbittorrent-in-ubuntu-gutsy.html Howto Install qBittorrent in Ubuntu Gutsy]<br />
<br />
==== Enable Drag and Drop capabilities to aMSN ====<br />
*[http://www.ubuntugeek.com/how-to-enable-drag-and-drop-capabilities-to-amsn.html Enable Drag and Drop capabilities to aMSN ]<br />
<br />
==== Mount/Unmount .iso Images in oneclick ====<br />
*[http://www.ubuntugeek.com/easy-way-of-mountunmount-iso-images-in-ubuntu.html Mount/Unmount .iso Images in oneclick in Ubuntu]<br />
==== Startup Manager ====<br />
StartUp Manager - change settings in Grub, Grub2 and Usplash<br />
*[http://www.ubuntugeek.com/startup-manager-change-settings-in-grub-grub2-and-usplash.html change settings in Grub, Grub2 and Usplash]<br />
<br />
==== Adobe Reader Gutsy amd64/i386 ====<br />
<br />
*[http://www.ubuntugeek.com/how-to-install-adobe-pdf-reader-811-with-plug-in-for-mozilla-firefox-in-gutsy-gibbon.html Acrobat Reader 8 with firefox plugins step by step installation guide]<br />
First<br />
echo "deb http://packages.medibuntu.org/ gutsy free non-free" | sudo tee -a /etc/apt/sources.list<br />
<br />
Second<br />
wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add - && sudo apt-get update<br />
<br />
Third we add plug ins and Reader<br />
sudo aptitude install acroread acroread-plugins acroread-escript<br />
<br />
You can also install the plug-in for Firefox<br />
sudo aptitude install mozilla-acroread<br />
<br />
Enjoy Adobe Reader<br />
<br />
==== OpenOffice add ons ====<br />
Opening .docx files in OpenOffice for Ubuntu (This will work with other distros)<br />
<br />
First we need to download the converter, it can be found here> [http://download.novell.com/SummaryFree.jsp?buildid=ESrjfdE4U58%7E]<br />
Download the "odf-converter-1.0.0-5.i586.rpm"<br />
<br />
Now install alien, if you have not yet<br />
<br />
sudo apt-get install alien<br />
<br />
Then we need to convert it, we do not want a .deb package for this, so we use the -ct switch not the -k<br />
The -ct converts it to a .tgz<br />
<br />
sudo alien -ct odf-converter-1.0.0-5.i586.rpm<br />
<br />
Once it is converted you need to unpack it<br />
<br />
tar xvf odf-converter-1.0.0.tgz<br />
<br />
Now there should be three dirs on you desktop or where ever you un tared these.<br />
<br />
You now need to run<br />
<br />
sudo cp usr/lib/ooo-2.0/program/OdfConverter /usr/lib/openoffice/program/<br />
<br />
sudo cp usr/lib/ooo-2.0/share/registry/modules/org/openoffice/TypeDetection/Filter/MOOXFilter_cpp.xcu /usr/lib/openoffice/share/registry/modules/org/openoffice/TypeDetection/Filter<br />
<br />
sudo cp usr/lib/ooo-2.0/share/registry/modules/org/openoffice/TypeDetection/Types/MOOXTypeDetection.xcu /usr/lib/openoffice/share/registry/modules/org/openoffice/TypeDetection/Types<br />
<br />
Then you are done, you can now open and edit .docx files '''ONLY''' I will post the others when I find them.<br />
<br />
There is an alternative to installing the "odf converter" on Ubuntu 7.10 (Gutsy). The 3 simple steps are as follows:<br />
<br />
(make sure you are logged in as root first, so from the terminal, type '''sudo su -''' and type in your password when prompted) <br />
<br />
Step 1: echo "deb http://ubuntu.org.ua/ getdeb/" >>/etc/apt/sources.list<br />
<br />
Step 2: apt-get update<br />
<br />
Step 3: apt-get install odf-converter<br />
<br />
I did the 3 steps above and got it working on my machine. Please do let me know if anyone is having any problems with it.<br />
<br />
====Genealogical Research and Analysis Management Program (Gramps)====<br />
GRAMPS, the Genealogical Research and Analysis Management Programming System, is an Open Source genealogy program written in Python, using the GTK/GNOME interface. GRAMPS has the ability to import GEDCOM files that are used in such programs as FamilyTree Maker for Windows and can produce reports in various formats such as the popular ABIWord and OpenOffice.org formats as well as HTML and PDF.<br />
sudo apt-get install gramps<br />
<br />
=== 桌面 ===<br />
<br />
==== Howto Tweak Ubuntu System ====<br />
<br />
If you want to tweak ubuntu check this<br />
<br />
* [http://www.ubuntugeek.com/howto-tweak-ubuntu.html Howto Tweak Ubuntu System]<br />
<br />
==== AMOR - a creature for your desktop ====<br />
<br />
If you want to add some fun to your ubuntu desktop this is for you<br />
<br />
* [http://www.ubuntugeek.com/amor-a-creature-for-your-desktop.html AMOR - a creature for your desktop]<br />
<br />
==== Advanced Desktop Effects (Compiz Fusion) ====<br />
<br />
Ubuntu 7.10 Gutsy Gibbon comes shipped with Compiz Fusion pre-installed, which means less tinkering with sensitive configuration files. For most part, Compiz needs proprietary drivers for your graphics card to work properly, so make sure you install those if needed.<br />
<br />
To enable desktop effects, turn them on by navigating your GNOME-menu to '''System &gt; Preferences &gt; Appearance'''. Under the tab ''Visual Effects'' you'll find three settings; ''None'', ''Normal'' and ''Extra''. To turn Compiz on, choose one of the two latter.<br />
<br />
If you wish to customize your Compiz options and plugins, such as animations and Desktop Cube, first install the configuration tool:<br />
<br />
sudo apt-get install [http://packages.ubuntu.com/gutsy/x11/compizconfig-settings-manager compizconfig-settings-manager] <br />
<br />
Then either choose the now available '''''Custom''''' and '''''Preferences''''' from the above ''Visual Effects'' menu, or start the settings manager via the menu '''System &gt; Preferences &gt; Advanced Desktop Effects Settings'''. You can also start the application from the terminal or run dialog ('''ALT + F2'''), using the command '''ccsm'''.<br />
<br />
==== ATI users and Compiz ====<br />
<br />
Some ATI cards don't need their proprietary drivers to work with Compiz as the open-sourced driver ('''radeon''') also has support for 3D acceleration. However, the open-sourced driver isn't as fast as the closed-sourced ('''fglrx''') one, so if you need the proprietary one you'll have to tinker around in the terminal a little.<br />
<br />
<br> 1. After you've installed the driver, either through the proprietary manager or directly from [http://ati.amd.com/support/driver.html ATI's site], you'll have to setup the Xorg configuration file to work with your new driver. Always remember to back up the original file before altering, in case something goes wrong. Open up a terminal and enter:<br />
<br />
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.bak<br />
sudo aticonfig --initial --input=/etc/X11/xorg.conf<br />
<br />
This will disable the default '''radeon''' driver and replace it with ATI's own.<br />
<br />
<br> 2. Now, let's tell Compiz not to care about drivers that are blacklisted:<br />
<br />
echo SKIP_CHECKS="yes" &gt;&gt; $HOME/.config/compiz/compiz-manager<br />
<br />
Alternatively, you could whitelist the driver, which is a much prettier solution. Run this command to edit the Compiz startup-script:<br />
<br />
gksudo gedit /usr/bin/compiz<br />
<br />
Search for '''Driver whitelist''' and add '''''fglrx''''' to the end of the line, like this:<br />
<br />
# Driver whitelist<br />
WHITELIST="nvidia intel ati radeon i810 fglrx"<br />
<br />
<br> 3. Reboot your computer, login and enable Compiz as mentioned above '''et voilà'''! Behold Compiz and ATI hugging.<br />
<br />
==== Live system monitoring ====<br />
<br />
sudo apt-get install netspeed<br />
<br />
Right click on the free area of the upper panel and select "Add to Panel...". Add "System Monitor" and "Network Monitor". Right Click on System Monitor and select Preferences. Add the monitor resources that you want to monitor.<br />
<br />
==== Desktop session recording ====<br />
<br />
It is possible to record the whole desktop session along with mouse pointer and sound system. It is a very useful tool for video screenshot as ordinary still picture screenshots generated by pressing Print Screen cannot demonstrate everything. Three applications that can do this for you are Istanbul, Wink and gtk-recordMyDesktop.<br />
<br />
====== Istanbul ======<br />
<br />
sudo apt-get install istanbul<br />
<br />
====== Wink ======<br />
<br />
sudo apt-get install wink<br />
<br />
====== gtk-recordMyDesktop ======<br />
<br />
sudo apt-get install gtk-recordmydesktop<br />
<br />
==== International Clock Gnome Applet (OpenSuse contribution) ====<br />
<br />
To switch to the new international clock applet download it from [http://brainstormingproject.free.fr/intlclock_1.0-1ubuntu0_i386.deb Here] <!--{11987330273590} --> then install it with dpkg. <!--{11987330273591} --><br />
<br />
Remove the old clock gnome applet right-clicking on it and then add a new applet to the panel with a right-click too over the empty place:<br />
<br />
&gt;Add to panel...&gt;Miscellaneous&gt;International Clock&gt;Add<br />
<br />
You got it.<br />
<br />
Add World Map and choose World locations using its Preferences menu<br />
<br />
=== 备份 ===<br />
<br />
Ubuntu Backup Options<br />
If you want to backup your Ubuntu Desktop Use Sbackup<br />
<br />
* [http://www.ubuntugeek.com/backup-and-restore-your-ubuntu-system-using-sbackup.html Sbackup Installation and setup guide]<br />
<br />
rdiff-backup<br />
Use rdiff-backup ubuntu<br />
<br />
* [http://www.ubuntugeek.com/backup-ubuntu-using-rdiff-backup.html rdiff-backup Setp Tutorial]<br />
<br />
=== 游戏 ===<br />
<br />
==== Frozen Bubble ====<br />
<br />
To install Frozen Bubble simply run:<br />
<br />
sudo apt-get install frozen-bubble<br />
<br />
or use Synaptic Package Manager under System &gt; Administration menu, to locate and install the package.<br />
<br />
==== How to solve Sudoku ====<br />
<br />
There is a simple [http://tamal.nath.googlepages.com/sudoku.pl Perl script] for solving gnome-sudoku. It does not support trial-and-error.<br />
<br />
==== Super Nintendo Emulator (ZSNES) 1.510 for i386/AMD64 ====<br />
<br />
* Read [[|#General Notes]]<br />
<br />
''For support or questions see http://ubuntuforums.org/showthread.php?t=588744''<br />
<br />
''ZSNES 1.51 is included in the Official Gutsy i386 repos. However, there is no official AMD64 version, and the i386 version is known to have issues in Gutsy (see http://ubuntuforums.org/showthread.php?t=571666). There is a workaround available for i386 users who are experiencing this error (see http://ubuntuforums.org/showpost.php?p=3604026&amp;postcount=22).''<br />
<br />
* Add a 3rd Party Repository<br />
<br />
echo "deb http://packages.dfreer.org gutsy main" | sudo tee -a /etc/apt/sources.list<br />
wget http://packages.dfreer.org/7572013D.gpg -O- | sudo apt-key add -<br />
sudo apt-get update<br />
<br />
* Install using one of the lines below<br />
<br />
sudo apt-get install zsnes32 #for amd64 users<br />
sudo apt-get install zsnes #for everyone else<br />
<br />
* Applications &gt; Games &gt; zsnes or zsnes32<br />
<br />
==== Playstation Emulator (pSX) 1.13 for i386/AMD64 ====<br />
<br />
* Read [[|#General Notes]]<br />
<br />
''For support or questions see http://ubuntuforums.org/showthread.php?t=394097''<br />
<br />
* Add a 3rd Party Repository<br />
<br />
echo "deb http://packages.dfreer.org gutsy main" | sudo tee -a /etc/apt/sources.list<br />
wget http://packages.dfreer.org/7572013D.gpg -O- | sudo apt-key add -<br />
sudo apt-get update<br />
<br />
* Install using one of the lines below<br />
<br />
sudo apt-get install psx32 #for amd64 users<br />
sudo apt-get install psx #for everyone else<br />
<br />
* Applications &gt; Games &gt; pSX or pSX32<br />
<br />
==== KDE games ====<br />
<br />
To install the games from KDE 3 (recommended for Kubuntu users), install the package kdegames. This can be done with:<br />
<br />
sudo apt-get install kdegames<br />
<br />
==== UrbanTerror 4.0 ====<br />
<br />
* UrbanTerror 4.0 is a Multi-player First Person Shooter. The Game uses the open source quake 3 engine and features many real weapons and free to use servers for multi-player functionality.<br />
<br />
''More information can be found at [http://www.urbanterror.net UrbanTerror]''<br />
<br />
* You can manually download and install UrbanTerror from the following webpage [http://www.urbanterror.net/page.php?6 UrbanTerror_Download]<br />
* Or you can enjoy an automated install by downloading and executing the linux install script from either of the following links: [http://89.106.68.26/linux/urbanterror4/urt40-linux-installer.sh urt40-linux-installer.sh_1] or [http://vlaai.snt.utwente.nl/pub/games/urbanterror/urt40-linux-installer.sh urt40-linux-installer.sh_2]<br />
<br />
* After downloading the script open Terminal into your download directory then make the script executable with the following command:<br />
<br />
sudo chmod +x urt40-linux-installer.sh<br />
<br />
* Now double click on the script to execute and follow the directions<br />
* The install will take awhile as the script executes a download of the necessary files which are about 541MB<br />
* After the install you will have a nice UrbanTerror icon on your desktop (unless you installed as root)<br />
<br />
''This easy install script is courtesy of Nexu from the UrbanTerror Forums.''<br />
<br />
=== CD/DVD ===<br />
==== How to rip a DVD video ====<br />
dvd::rip is a full featured DVD copy program written in Perl. It provides an easy to use but feature-rich Gtk+ GUI to control almost all aspects of the ripping and transcoding process. It uses the widely known video processing swissknife transcode and many other Open Source tools.<br />
sudo apt-get install dvdrip<br />
<br />
==== How to burn video DVD ====<br />
dvdauthor is a program that will generate a DVD movie from a valid mpeg2 stream that should play when you put it in a DVD player.<br />
sudo apt-get install dvdauthor<br />
<br />
==== How to burn a CD/DVD ====<br />
nautilus-cd-burner is a basic and pre-installed program to write a CD or DVD. Serpentine is a pre-installed audio CD creator program. Serpentine can convert flac and mp3 on the fly, when making audio cds.<br />
[http://www.nero.com/ena/linux3.html nerolinux] is a non-free CD/DVD/Blu-Ray/HD-DVD recorder. k3b is a great CD/DVD writing tool for KDE (ideal for Kubuntu users). But if you are looking for GTK/Gnome alternatives, then [http://packages.ubuntu.com/gutsy/gnome/brasero brasero], [http://packages.ubuntu.com/gutsy/otherosfs/gcdw cdw/gcdw], [http://packages.ubuntu.com/gutsy/sound/gcdmaster gcdmaster], [http://packages.ubuntu.com/gutsy/gnome/graveman graveman] and [http://packages.ubuntu.com/gutsy/gnome/gnomebaker gnomebaker] might impress you.<br />
<br />
[http://packages.ubuntu.com/gutsy/otherosfs/dvdisaster dvdisaster] provides a margin of safety against data loss on CD and DVD media caused by scratches or aging media. It creates error correction data which is used to recover unreadable sectors if the disc becomes damaged at a later time.<br />
<br />
=== 互联网 ===<br />
<br />
==== Browser Plug-ins ====<br />
<br />
Ubuntu automatically installs plug-ins required to browse a site in Firefox. But if you want to install plug-ins run the following in Terminal:<br />
<br />
For Java plug-in:<br />
<br />
sudo apt-get install sun-java6-plugin<br />
<br />
For Flash plug-in:<br />
<br />
sudo apt-get install flashplugin-nonfree<br />
<br />
Or if you want to support the open source flash plugin:<br />
<br />
sudo apt-get install mozilla-plugin-gnash<br />
<br />
For VLC plug-in (automatically installs VLC also):<br />
<br />
sudo apt-get install mozilla-plugin-vlc<br />
<br />
For MPlayer plug-in (automatically installs MPlayer also):<br />
<br />
sudo apt-get install mozilla-mplayer<br />
<br />
For Real player plug-in (automatically installs helix-player):<br />
<br />
sudo apt-get install mozilla-helix-player<br />
<br />
For kaffeine plug-in (automatically installs kaffeine also):<br />
<br />
sudo apt-get install kaffeine-mozilla<br />
<br />
For image-zoom plug-in (to zoom images in a page):<br />
<br />
sudo apt-get install mozilla-imagezoom<br />
<br />
For adblock plug-in (to block ads in a web page):<br />
<br />
sudo apt-get install mozilla-firefox-adblock<br />
<br />
Gutsy includes the option to add extensions to Firefox through the Ubuntu repositories. The option to add these extensions is included by default. To see and add Ubuntu Add-ons:<br />
<br />
* In Firefox, Go to Tools &gt; Add-ons<br />
* Click "Get Ubuntu Addons"<br />
* To see all available add-ons, click the list next to "Show:" and choose "All Available Applications"<br />
* Choose whichever add-ons you want, and click "Apply Changes"<br />
* You can see which add-ons you've installed in the normal Firefox add-on box.<br />
<br />
(Note: All Ubuntu add-ons are also available through the Synaptic package manager.)<br />
<br />
===== Shockwave =====<br />
<br />
''There is no version of Shockwave for Ubuntu/Linux but WINE can be used to run it.'' ''This method will result in 2 Firefox Browsers installed on the computer.'' ''Only use the WINE version when using a website that requires it.'' ''The native version of Firefox will give better computer performance, so it should used in all other occurrences.''<br />
<br />
* Install WINE<br />
* Download and install Firefox for Windows<br />
* Download and install Shockwave for Windows<br />
<br />
==== Download Manager (Downloader for X) ====<br />
<br />
To install Downloader for X simply run:<br />
<br />
sudo apt-get install d4x<br />
<br />
or use Synaptic Package Manager under System &gt; Administration menu, to locate and install the "d4x" package.<br />
<br />
==== FTP client (FileZilla) ====<br />
<br />
FileZilla is a powerful FTP client that came from windows enviroment. Reaching its third version it became cross-platform and is available through the Ubuntu Gutsy Repositories.<br />
<br />
To install FileZilla FTP client simply run:<br />
<br />
sudo apt-get install filezilla<br />
<br />
or use Synaptic Package Manager under System &gt; Administration menu, to locate and install the "filezilla" package.<br />
<br />
==== Configuring Evolution for Gmail ====<br />
<br />
Visit http://mail.google.com/mail/ and click settings (should be in top right corner). Select Forwarding and POP/IMAP.<br />
<br />
* If you want to use POP, select either "Enable POP for all mail (even mail that's already been downloaded)" or "Enable POP only for mail that arrives from now on".<br />
* If you want to use IMAP, select "Enable IMAP".<br />
<br />
Save changes.<br />
<br />
Open Evolution from Applications -&gt; Internet -&gt; Evolution Mail. If no mail account has been created before, a mail account setup wizard will automatically be opened. Otherwise open it from Edit -&gt; preferences -&gt; Mail Accounts -&gt; Add. Click Forward. Enter your email address for Gmail (including @gmail.com). Click Forward.<br />
<br />
* If you have enabled POP from Gmail set "Server Type" to POP, "Server" to pop.gmail.com, and "Use Secure Connection" to "SSL encryption".<br />
* If you have enabled IMAP from Gmail, set "Server Type" to IMAP, "Server" to imap.gmail.com, and "Use Secure Connection" to "SSL encryption".<br />
<br />
Click Forward. Click Forward. Set "Server" to smtp.gmail.com, and "Use Secure Connection" to "SSL encryption". Click Forward. Click Forward. Click Apply.<br />
<br />
Note that IMAP support for GMAIL is being rolled-out currently (Oct. 2007) but is not available to everyone with a GMAIL account yet. So use POP until IMAP is available for every user.<br />
<br />
==== SwiftFox ====<br />
<br />
Swiftfox is the Firefox web browser, but built with optimizations to increase speed on specific CPU types. It is compatible with all Firefox extensions and themes, and uses the same settings location as Firefox, so you can use both transparently.<br />
<br />
Instructions from [http://getswiftfox.com/debian.htm getswiftfox.com]<br />
<br />
* Add the Swiftfox repository<br />
<br />
sudo gedit /etc/apt/sources.list<br />
<br />
* Add this line at the bottom<br />
<br />
deb http://getswiftfox.com/builds/debian unstable non-free<br />
<br />
* Update apt sources<br />
<br />
sudo apt-get update<br />
<br />
* Check your CPU compatibility [http://getswiftfox.com/proc.htm here]<br />
* Install your version of Swiftfox<br />
<br />
sudo apt-get install swiftfox-pentium4<br />
<br />
* Run with<br />
<br />
Programs &gt; Internet &gt; Swiftfox<br />
<br />
* There is also an [[http://www.getswiftfox.com/installer.htm installer]] available that is distro independent. It is a script that downloads and installs Swiftfox in the /opt directory and attempts to use existing Firefox plugins. The installer is probably the best way for most non-Ubuntu and non-Debian users to install Swiftfox.<br />
<br />
==== Azureus (Java BitTorrent client) ====<br />
<br />
The simplest way to install Azureus is:<br />
<br />
sudo apt-get install [http://packages.ubuntu.com/gutsy/net/azureus azureus] <br />
<br />
But it has lots of dependencies. An alternate method is discussed [http://azureus.sourceforge.net/howto_linux.php here]. Additionally you can create a file /usr/share/applications/Azureus.desktop containing the following lines to make it appear in the main menu:<br />
<br />
[Desktop Entry]<br />
Encoding=UTF-8<br />
Type=Application<br />
Terminal=false<br />
Name=Azureus<br />
Exec=/usr/local/azureus/azureus<br />
Comment=Java BitTorrent client<br />
Categories=Application;Network;<br />
MimeType=application/x-bittorrent;<br />
Icon=/usr/local/azureus/Azureus.png<br />
<br />
(here it is assumed that azureus is installed in /usr/local directory)<br />
<br />
Update: A brand-new Azureus package is now available in gutsy-backports, which is highly preferable to the version in the main repositories. It fixes many stability problems and is compiled using icedtea/Java 7. By the time you read this, it may be available in the main repositories. Therefore you might want to make sure you have the gutsy-backports repository enabled before installing azureus via apt-get.<br />
<br />
==== Deluge (A lightweight BitTorrent client written in python) ====<br />
<br />
If you want a client with lower memory and CPU usage than Azureus you might want to try out Deluge. However, due to stability problems with the version available in the [http://packages.ubuntu.com/gutsy/net/deluge-torrent Ubuntu repository], it's probably better to install the latest version using the handy Gutsy-specific package from [http://deluge-torrent.org/downloads-ubuntu the official Deluge website]. To install, just click on the debian package for your version and architecture ('''i386''' for 32-bit systems and '''x86_64''' for 64-bit systems) and choose to run it with GDebi package installer.<br />
<br />
==== DC++ client (Linuxdcpp) ====<br />
<br />
* Install:<br />
<br />
sudo apt-get install linuxdcpp<br />
<br />
* Then go<br />
<br />
Main Menu-&gt;Intenet-&gt;DC++<br />
<br />
=== 多媒体播放器 ===<br />
<br />
==== 怎样安装 Mplayer 和 Multimedia Codecs(解码器) ====<br />
<br />
&nbsp;&nbsp; 安装 mplayer 和 codecs的简单向导<br />
<br />
* [http://www.ubuntugeek.com/install-mplayer-and-multimedia-codecs-libdvdcss2w32codecs-in-ubuntu-710-gutsy-gibbon.html Mplayer 和 Multimedia Codecs的安装指导手册]<br />
<br />
* 从[http://sourceforge.net/project/showfiles.php?group_id=185512 这里] 下载 [http://smplayer.sourceforge.net/ SMPlayer] (MPlayer的一个很棒的前端) 然後双击安装它。 smplayer这个前端也可以在软件包管理器中安装。<br />
<br />
===== &nbsp; 关于64位版本 Mplayer 对 wmv9 格式支持问题<br> =====<br />
<br />
&nbsp;&nbsp;&nbsp; AMD64版本的Mplayer不能正确的播放wmv9格式的文件。 要播放wmv9,你需要安装32位版本的mplayer, 和所有需要的解码器.。相较于我新安装的Gutsy,我不需要额外安装它所依赖的库文件,这让配置mplayer的工作简单多了。这就是说,做完这些步骤後你就可以随时观赏wmv9的文件了。<br />
<br />
'''下载&nbsp; mplayer32 for Edgy 的版本 (被证明能稳定地工作) 放到临时的文件夹中。'''<br />
<br />
mkdir mplayer32temp<br />
cd mplayer32temp<br />
wget http://folk.ntnu.no/grannas/debs/mplayer32_20070130-1_amd64.deb<br />
<br />
'''解开你刚才下载的这个压缩包,放到合适的地方''' ''(按 'n'当 问你是否要为文件更换位置)''<br />
<br />
sudo dpkg -x mplayer32_20070130-1_amd64.deb ./<br />
sudo mv -i usr/bin/* /usr/bin/<br />
sudo mv -i usr/lib32/* /usr/lib32/<br />
<br />
'''从mplayerrhq 获取最新的 win32 codecs (下面命令中是10月7日版本, 2007), 解压缩然後安装''' ''(同样, 在问到更换位置时按'n' )''<br />
<br />
wget http://www3.mplayerhq.hu/MPlayer/releases/codecs/essential-20071007.tar.bz2<br />
tar jxfv essential-20071007.tar.bz2<br />
sudo mv -i essential-20071007/* /usr/lib/win32/<br />
<br />
'''播放 wmv9 影片.(享受它)'''<br />
<br />
mplayer32 foobar.wmv<br />
<br />
<br><br />
<br />
==== 怎样安装 amaroK 多媒体播放器 ====<br />
<br />
* 注意: KDE 环境下, Amarok 已经默认安装 。<br />
<br />
sudo apt-get install amarok<br />
<br />
* 从菜单启动:<br />
<br />
Applications -&gt; Sound &amp; Video -&gt; amaroK<br />
<br />
====== 怎样卸载 amaroK ======<br />
<br />
sudo apt-get --purge autoremove amarok<br />
<br />
====怎样获得MP3文件播放时的鼠标滑过预览 ====<br />
<br />
sudo apt-get install mpg321<br />
sudo apt-get install ubuntu-restricted-extras<br />
sudo apt-get install pulseaudio<br />
sudo apt-get install pulseaudio-esound-compat<br />
sudo apt-get install libasound2-plugins<br />
<br />
这个方法可能会破坏Skype软件的声音系统<br />
<br />
你也能通过下面的步骤实现鼠标滑过预览:<br />
<br />
sudo apt-get install mpg321<br />
sudo apt-get install mpg123-esd<br />
sudo apt-get install vorbis-tools<br />
sudo apt-get install esound<br />
sudo apt-get install ubuntu-restricted-extras<br />
<br />
这样系统中的Skype会保持正常功能<br />
<br />
==== 怎样安装VLC媒体播放器 ====<br />
<br />
sudo apt-get install vlc<br />
<br />
卸载VLC媒体播放器:<br />
<br />
sudo apt-get --purge autoremove vlc<br />
<br />
==== 怎样安装 Banshee 音乐管理和播放器<br> ====<br />
<br />
sudo apt-get install banshee<br />
<br />
卸载:<br />
<br />
sudo apt-get --purge autoremove banshee<br />
<br />
==== How to encode/decode audios ====<br />
<br />
There is a great command line tool, sox which not just a ordinary encoder/decoder but a good composer. Read its manual for more information.<br />
<br />
''Input(s) → Balancing → Combiner → Effects → Output''<br />
<br />
sudo apt-get install sox<br />
<br />
sox cannot handle Real Audio format. For that you need mplayer which converts a .rm file to a .wav file and then use sox to convert wave file to other file.<br />
<br />
mplayer -ao pcm:file=output.wav input.rm<br />
<br />
==== How to encode/decode videos ====<br />
<br />
mencoder, avidemux, transcode, ffmpeg2theora, etc. are some video converting tools. Read their manuals for information.<br />
<br />
sudo apt-get install mencoder avidemux transcode ffmpeg2theora<br />
<br />
==== How to edit audios ====<br />
<br />
sudo apt-get install lmms<br />
sudo apt-get install audacity<br />
<br />
==== How to edit videos ====<br />
<br />
sudo apt-get install ubuntustudio-video<br />
<br />
==== Text-to-Speech ====<br />
<br />
Visit https://help.ubuntu.com/community/TextToSpeech<br />
<br />
=== Programming / Web Development ===<br />
<br />
==== Quanta Plus ====<br />
<br />
(Quanta is a KDE application, but also works on GNOME.)<br />
To install Quanta, HTML/XML/PHP/Etc Web Creation Software:<br />
<br />
sudo apt-get install quanta kompare kxsldbg cervisia<br />
<br />
Applications > Programming > Quanta Plus<br />
<br />
==== Netbeans IDE ====<br />
Netbeans is a platform independent IDE for Java. But it also supports C/C++, Ruby, portals and lots of other stuffs as plug-ins. At the point of writing, version 5.5.1 is the latest stable release and can be installed by:<br />
sudo apt-get install netbeans5.5<br />
Alternately you can download [http://www.netbeans.org/community/releases/60/index.html Netbeans 6.0] and install it manually. The size of the installation package varies from 11 MB to 200 MB.<br />
<br />
===== Netbeans with Web & Java EE pack =====<br />
If you want to use NetBeans for web development and want to integrate with Java EE, download the "Netbeans with Web & Java EE" pack. The plug-in mechanism of installing additional modules are not recommended as it installs it on user directory (~/.netbeans/6.0beta2/modules/) rather than system-wide installation directory (/usr/local/netbeans-6.0beta2/nb6.0/modules/).<br />
<br />
Netbeans with Web & Java EE pack comes with 2 built in runtime environments:<br />
* GlassFish V2 Build 58g<br />
* Apache Tomcat 6.0.14<br />
Those are ideal for both development and production use. Thus you do not have to install either Sun Java Application Server of Apache Tomcat separately. Also uninstalling Netbeans will not uninstall them. You have to uninstall them separately.<br />
<br />
But in case you want to install the servers separately, you typically have to run Netbeans as root.<br />
Alternately, you can also change the configuration files' owner/group and permissions of Tomcat and GlassFish to work with Netbeans.<br />
<br />
==== Eclipse IDE ====<br />
[http://packages.ubuntu.com/gutsy/devel/eclipse Eclipse IDE] is an alternative of [http://packages.ubuntu.com/gutsy/devel/netbeans5.5 Netbeans IDE]. Actually, it is somewhat more popular among Linux users. You can install eclipse directly from [http://www.eclipse.org/downloads/ Eclipse website] or can install it using apt-get:<br />
sudo apt-get install eclipse<br />
<br />
==== Anjuta IDE ====<br />
[http://anjuta.sourceforge.net/ Anjuta] is an IDE used primarily for C/C++ development. Not as robust as other itegrated development environments. However, tt does feature some useful plugins that provide functionality that most other IDE's have. (GUI development, project wizards, etc.)<br />
sudo apt-get install anjuta<br />
<br />
=== Utilities ===<br />
<br />
==== Compression tools ====<br />
Zip, Gzip and Bzip2 are the most popular compression tools available in almost every every Linux. But of late two new compression tools available: p7zip (http://7-zip.org/), ace and rar (http://www.rarlab.com/). 7-zip is a open-source project, but rar and ace are not.<br />
<br />
sudo apt-get install rar unrar<br />
sudo apt-get install p7zip-full<br />
sudo apt-get install unace<br />
<br />
Ark is the compression tool for kde, and has support for more formats including rar.<br />
<br />
sudo apt-get install ark<br />
<br />
==== Clipboard Manager (Glipper) ====<br />
<br />
To install Glipper simply run:<br />
sudo apt-get install glipper<br />
or use Synaptic Package Manager under System > Administration menu, to locate and install the "glipper" package.<br />
<br />
==== Password Manager (KeePassX) ====<br />
<br />
KeePass is a crossplatform password manager.<br />
To install it simply run:<br />
sudo apt-get install keepassx<br />
or use Synaptic Package Manager under System > Administration menu, to locate and install the "keepassx" package.<br />
<br />
==== How to fix/integrate bluetooth with nautilus ====<br />
<br />
On Some systems bluetooth "Browse Device" fuction doesn't work properly.<br />
<br />
To Fix This:<br />
<br />
sudo apt-get install gnome-vfs-obexftp<br />
<br />
or<br />
<br />
sudo aptitude install gnome-vfs-obexftp<br />
<br />
==== 怎样安装 Google Earth (地球仪软件) ====<br />
<br />
Google earth是一个世界地图查看器. 它可以3D的形式显示的建筑以及桥梁. 默认的时候它是显示的是静态的图片. 最新版式中包含了鸟瞰世界的功能. 点击 [http://earth.google.com/ 这里] 查看更多相关的信息.<br />
<br />
Google Earth is available in the Medibuntu Package archive. To install google-earth from Medibuntu:<br />
<br />
echo "deb http://packages.medibuntu.org/ gutsy free non-free" | sudo tee -a /etc/apt/sources.list<br />
wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add - &amp;&amp; sudo apt-get update<br />
sudo aptitude install googleearth<br />
<br />
除此之外你还可以直接从Google下载安装程序进行安装:<br />
<br />
[http://earth.google.com/download-earth.html 下载] Google Earth到你的桌面. 打开终端并运行n:<br />
<br />
chmod +x Desktop/GoogleEarthLinux.bin<br />
sudo Desktop/GoogleEarthLinux.bin<br />
<br />
按照说明完成安装. 卸载Google earth,执行以下命令:<br />
<br />
sudo su<br />
/opt/google-earth/uninstall<br />
<br />
==== 怎样安装 Picasa (Google 开发的照片管理工具) ====<br />
<br />
Picasa 是一款帮助你立即查找、编辑和共享在你的电脑上的所有照片的软件. Picasa makes advanced editing simple by putting one-click fixes and powerful effects at your fingertips. And Picasa makes it a snap to share your pictures – you can email, print photos home, and even post pictures on your own blog. You can install it in four ways:<br />
<br />
* [http://picasa.google.com/linux/download.html 下载] 直接下载 Debian/Ubuntu (DEB包) 安装.<br />
* 访问 http://www.google.com/linuxrepositories/ 阅读怎样添加 Google 源的说明.然后运行:<br />
<br />
sudo apt-get install picasa<br />
<br />
* [http://picasa.google.com/linux/download.html 下载] 自解压安装程序并按照说明配置 Google Earth.<br />
* 安装Windows (需要WINE支持).<br />
<br />
==== How to install Google Desktop (search utility) ====<br />
Google Desktop is a desktop search application that gives you easy access to information on your computer and from the web. Desktop makes searching your own email, files, music, photos, and more as easy as searching the web with Google. You can download Google Desktop in two ways:<br />
* Download and install the Debian package directly from http://desktop.google.com/en/linux/download.html<br />
* Visit http://www.google.com/linuxrepositories/ and see the instructions about how to add Google repository. Then run:<br />
sudo apt-get install google-desktop-linux<br />
<br />
==== How to install ntop (network monitoring utility) ====<br />
Ntop is a network monitoring utility. You can monitor local devices as well as devices with Netflow output (like a Cisco router). It's very easy to install too, open a terminal and type:<br />
<br />
sudo apt-get install ntop<br />
<br />
Now that it is installed, you have to do some basic setup. Once again, in the terminal, type:<br />
<br />
sudo ntop<br />
<br />
You will be asked for a password, and then to confirm the password. This will be the admin password for the ntop web interface. Next, we want to install "Dot", which is a part of the "Graphviz" package:<br />
<br />
sudo apt-get install graphviz<br />
<br />
Now, again in the terminal type:<br />
<br />
sudo /etc/init.d/ntop start<br />
<br />
Thats it! ntop is running! Try browsing to http://127.0.0.1:3000 to get started. You will have to add the path to dot to the ntop configuration. <br />
<br />
Admin -> Configure (Enter admin user/pass) -> Preferences<br />
<br />
At the bottom add a new preference:<br />
<br />
dot.path /usr/bin/dot<br />
<br />
You should now have a network map for the local interface under IP -> Local -> Network Traffic Map<br />
<br />
Visit http://www.ntop.org/ for more information.<br />
<br />
==== How to install applications for study of religious texts ====<br />
<br />
* For study of Bible see [http://gnomesword.sourceforge.net/ GnomeSword]<br />
* For study of Quran see [http://sourceforge.net/projects/zekr/ Zekr]<br />
<br />
===== How to install Gnomesword (Bible study program)=====<br />
*Read [[#General Notes]] <br />
*Read [[#How to add extra repositories]]<br />
*This installs the english version of the program.<br />
<br />
sudo apt-get install gnomesword sword-language-pack-en sword-text-web<br />
<br />
*If you require other languages type:<br />
<br />
sudo apt-cache search bible<br />
<br />
*Take a look at the sword-language-pack's and the sword-text's for additional languages and install as needed. <br />
<br />
Gnomesword is found under Applications-->Accessories.<br />
<br />
*Under KDE, use kio-sword instead of Gnomesword:<br />
<br />
sudo apt-get install kio-sword<br />
<br />
===== How to install a Quran researching tool (Zekr) ===== <br />
[http://siahe.com/zekr/ Zekr] is an open platform Quran study tool for simply browsing and researching on the Quran. <br />
<br />
sudo wget http://siahe.com/zekr/apt/sources.list.d/gutsy.list -O /etc/apt/sources.list.d/zekr.list <br />
wget -q http://siahe.com/zekr/apt/zekr.debian.gpg -O- | sudo apt-key add - <br />
sudo apt-get update <br />
sudo apt-get install zekr ttf-me-quran ttf-sil-scheherazade<br />
sudo apt-get install ttf-farsiweb flashplugin-nonfree<br />
<br />
*Zekr comes with extra Quran translations in Persian, Urdu, French, Russian, English, Turkish, Bosnian, Dutch packaged as zekr-quran-translations-XY where XY is the ISO code of the language. Run<br />
apt-cache search zekr-quran-translations<br />
<br />
in a shell to list them all. Then among the result list choose the appropriate package and install it: For example if you want to install English Quran Translations run the following command:<br />
sudo apt-get install zekr-quran-translations-en<br />
<br />
*For more info see [http://www.siahe.com/zekr/wiki/index.php?title=Installation#Ubuntu.2FDebian Zekr wiki].<br />
<br />
==== How to install applications for Education ====<br />
===== How to install Mnemosyne =====<br />
<br />
[http://mnemosyne-proj.sourceforge.net/ Mnemosyne] is a sophisticated free flash-card tool which optimizes your learning process. To install the latest version in the repositories run the following command<br />
sudo apt-get install mnemosyne<br />
or use Synaptic Package Manager under System => Administration menu, to locate and install the mnemosyne package.<br />
<br />
To install the latest version (the one in the repository is somewhat out of date) first install the dependencies:<br />
sudo apt-get install python python-pygame python-qt3 python-support python-xml<br />
then download the latest source package from [http://mnemosyne-proj.sourceforge.net/ here]:<br />
wget http://superb-east.dl.sourceforge.net/sourceforge/mnemosyne-proj/mnemosyne-0.9.10.tgz<br />
(correct as of 11 Nov 2007)<br />
Decompress it:<br />
tar -xzf mnemosyne-0.9.10.tgz<br />
go to the directory<br />
cd mnemosyne-0.9.10/<br />
run this command to install it:<br />
sudo python setup.py install<br />
To create a launcher for it in your Applications Menu:<br />
System => Preferences => Main Menu => Education (or wherever) => New Item:<br />
Name: Mnemosyne<br />
Command: mnemosyne<br />
<br />
== '''''安全&nbsp;''''' ==<br />
<br />
=== 怎样重设用户密码 ===<br />
<br />
sudo apt-get install john<br />
sudo john /etc/shadow<br />
<br />
=== 怎样重设ROOT用户的密码 ===<br />
<br />
重启Ubuntu进入安全模式并输入:<br />
<br />
passwd<br />
<br />
<br />
来修ROOT用的密码<br />
<br />
=== 怎样创建或修改GRUB启动菜单的密码 ===<br />
<br />
请点击[http://ubuntuguide.org/wiki/Ubuntu:Feisty#How_to_change_GRUB_menu_password_if_forgotten 这里].<br />
<br />
=== 如果忘记GRUB启动菜单的密码怎样修改root用户的密码 ===<br />
<br />
点击 [http://ubuntuguide.org/wiki/Ubuntu:Feisty#How_to_use_Ubuntu_Installation_CD.2C_to_gain_root_user_access 这里]. To prevent this, you have to set a bios password and set hard disk as the first boot device.<br />
<br />
== '''''服务器<br>''''' ==<br />
<br />
=== Samba 服务器<br> ===<br />
<br />
==== 怎样安装 Samba 服务器来共享文件以及文件夹<br> ====<br />
<br />
* 阅读 [[|#General Notes]]<br />
* 阅读 [[|#How to add extra repositories]]<br />
<br />
sudo apt-get install samba smbfs<br />
<br />
==== 怎样添加/修改/删除网络用户 ====<br />
<br />
* 阅读 [[|#General Notes]]<br />
* 阅读 [[|#How to install Samba Server for files/folders sharing service]]<br />
* To add network user <br />
** Read [[|#How to add/edit/delete system users]]<br />
<br />
sudo smbpasswd -a system_username<br />
gksudo gedit /etc/samba/smbusers<br />
<br />
* <br />
** Insert the following line into the new file<br />
<br />
system_username = "network username"<br />
<br />
* <br />
** Save the edited file<br />
* To edit network user<br />
<br />
sudo smbpasswd -a system_username<br />
<br />
* To delete network user<br />
<br />
sudo smbpasswd -x system_username<br />
<br />
==== How to share home folders with read only or read/write permission (Authentication=Yes) ====<br />
<br />
* Read [[|#General Notes]]<br />
* Read [[|#How to install Samba Server for files/folders sharing service]]<br />
<br />
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup<br />
gksudo gedit /etc/samba/smb.conf<br />
<br />
* Find this line<br />
<br />
...<br />
; security = user<br />
...<br />
<br />
* Replace with the following lines<br />
<br />
security = user<br />
username map = /etc/samba/smbusers<br />
<br />
* Remove the&nbsp;; in front of the following lines (there will text in between explaining what they do):<br />
<br />
;[homes]<br />
;comment = Home Directories<br />
;browseable = no<br />
;valid users = %S<br />
;writable = yes<br />
<br />
* <br />
** If you want other network users to be able to edit to the folder then change<br />
<br />
# By default, the home directories are exported read-only. Change next<br />
# parameter to 'yes' if you want to be able to write to them.<br />
&nbsp;; writable = no<br />
<br />
* <br />
** Replace with the following lines<br />
<br />
writable = yes<br />
<br />
* Save the edited file<br />
* Read [[|#How to add/edit/delete network users]]<br />
<br />
sudo testparm<br />
sudo /etc/init.d/samba restart<br />
<br />
==== How to share group folders with read only permission (Authentication=Yes) ====<br />
<br />
* Read [[|#General Notes]]<br />
* Read [[|#How to install Samba Server for files/folders sharing service]]<br />
<br />
sudo mkdir /home/group<br />
sudo chmod 777 /home/group/<br />
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup<br />
gksudo gedit /etc/samba/smb.conf<br />
<br />
* Find this line<br />
<br />
...<br />
; security = user<br />
...<br />
<br />
* Replace with the following lines<br />
<br />
security = user<br />
username map = /etc/samba/smbusers<br />
<br />
* Append the following lines at the end of file<br />
<br />
[Group]<br />
comment = Group Folder<br />
path = /home/group<br />
public = yes<br />
writable = no<br />
valid users = system_username1 system_username2<br />
create mask = 0700<br />
directory mask = 0700<br />
force user = nobody<br />
force group = nogroup<br />
<br />
* Or if you want other network users to be able to edit to the folder change<br />
<br />
writable = yes<br />
<br />
* Save the edited file<br />
* Read [[|#How to add/edit/delete network users]]<br />
<br />
sudo testparm<br />
sudo /etc/init.d/samba restart<br />
<br />
==== How to share public folders with read only or read/write permissions (Authentication=Yes) ====<br />
<br />
* Read [[|#General Notes]]<br />
* Read [[|#How to install Samba Server for files/folders sharing service]]<br />
<br />
sudo mkdir /home/public<br />
sudo chmod 777 /home/public/<br />
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup<br />
gksudo gedit /etc/samba/smb.conf<br />
<br />
* Find this line<br />
<br />
...<br />
; security = user<br />
...<br />
<br />
* Replace with the following lines<br />
<br />
security = user<br />
username map = /etc/samba/smbusers<br />
<br />
Then follow either 1. or 2.<br />
<br />
* 1. Save the edited file.<br />
<br />
sudo testparm<br />
sudo /etc/init.d/samba restart<br />
<br />
* 1. Right click the folder and select 'Share folder'. Then change 'Do not share' to share with the network you would like.<br />
* 1. In Share Properties note the read box. If you want other network users to be able to edit to the folder un-tick this.<br />
<br />
'''OR'''<br />
<br />
* 2. Append the following lines at the end of file<br />
<br />
[public]<br />
comment = Public Folder<br />
path = /home/public<br />
public = yes<br />
writable = yes<br />
create mask = 0777<br />
directory mask = 0777<br />
force user = nobody <br />
force group = nogroup<br />
<br />
* 2. Or if you want other network users to be able to edit to the folder<br />
<br />
writable = yes<br />
<br />
* 2. Save the edited file<br />
* 2. Read [[|#How to add/edit/delete network users]]<br />
<br />
sudo testparm<br />
sudo /etc/init.d/samba restart<br />
<br />
<br><br />
<br />
==== How to share public folders with read only or read/write permissions (Authentication=No) ====<br />
<br />
* Read [[|#General Notes]]<br />
* Read [[|#How to install Samba Server for files/folders sharing service]]<br />
<br />
sudo mkdir /home/public<br />
sudo chmod 777 /home/public/<br />
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup<br />
gksudo gedit /etc/samba/smb.conf<br />
<br />
* Find this line<br />
<br />
...<br />
; security = user<br />
...<br />
<br />
* Replace with the following line<br />
<br />
security = share<br />
<br />
Then follow either 1. or 2.<br />
<br />
* 1. Save the edited file.<br />
<br />
sudo testparm<br />
sudo /etc/init.d/samba restart<br />
<br />
* 1. Right click the folder and select 'Share folder'. Then change 'Do not share' to share with the network you would like.<br />
* 1. In Share Properties note the read box. If you want other network users to be able to edit to the folder un-tick this.<br />
<br />
'''OR'''<br />
<br />
* 2. Append the following lines at the end of /etc/samba/smb.conf (for a read-only folder)<br />
<br />
[public]<br />
comment = Public Folder<br />
path = /home/public<br />
public = yes<br />
writable = no<br />
create mask = 0777<br />
directory mask = 0777<br />
force user = nobody<br />
force group = nogroup<br />
<br />
* 2. Or if you want other network users to be able to edit to the folder<br />
<br />
writable = yes<br />
<br />
<br><br />
<br />
* 2. Save the edited file<br />
<br />
sudo testparm<br />
sudo /etc/init.d/samba restart<br />
<br />
==== How to print on remote Ubuntu machine via samba ====<br />
<br />
* Read [[|#Print Server (cupsd)]]<br />
* Make sure your Ubuntu printers are configured properly.<br />
<br />
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.backup<br />
gedit /etc/samba/smb.conf<br />
<br />
:''Find the following lines''<br />
<br />
...<br />
# printing = cups<br />
# printcap name = cups<br />
...<br />
<br />
:''and uncomment them.''<br />
<br />
printing = cups<br />
printcap name = cups<br />
<br />
:''Restart cups server''<br />
<br />
sudo /etc/init.d/cupsys restart<br />
<br />
:''Now printers working on your Ubuntu machine should be acessible via samba.''<br />
<br />
<br><br />
<br />
=== iTunes-compatible Media server ===<br />
<br />
If you want iTunes-compatible Media server in Ubuntu try this<br />
<br />
* [http://www.ubuntugeek.com/howto-setup-itunes-compatible-media-server-in-ubuntu.html iTunes-compatible Media server Step By Step Guide]<br />
<br />
=== GLPI - IT and asset Managemet Software ===<br />
<br />
If you want IT and asset Managemet Software in Ubuntu try this<br />
<br />
* [http://www.ubuntugeek.com/glpi-it-and-asset-managemet-software.html IT and asset Managemet Software Setup Guide]<br />
<br />
=== PostgreSQL ===<br />
<br />
Postgresql is a well supported and open source database server. There is a long debate regarding whether MySQL is better or PostgreSQL. Actually, there are similar debates like it: Gnome vs KDE, Perl vs Python, PHP vs JSP, Java vs .Net (or Mono). But from installation point of view, it has been seen that PostgreSQL is lighter and requires less dependency than MySQL.<br />
<br />
==== Installing PostgreSQL ====<br />
<br />
To Install PostgreSQL (both client and server):<br />
<br />
sudo apt-get install postgresql-8.2<br />
<br />
To install PostgreSQL documentation:<br />
<br />
sudo apt-get install postgresql-doc-8.2<br />
<br />
To install JDBC3 driver for PostgreSQL:<br />
<br />
sudo apt-get install libpg-java<br />
<br />
To enable php support for PostgreSQL:<br />
<br />
sudo apt-get install php5-pgsql<br />
<br />
To do administrative works graphically:<br />
<br />
sudo apt-get install pgadmin3<br />
<br />
To do web-based administrative works:<br />
<br />
sudo apt-get install phppgadmin<br />
<br />
==== Configuring PostgreSQL ====<br />
<br />
To use postgresql, create a database instance and a user/role:<br />
<br />
sudo -u postgres createdb $USER<br />
sudo -u postgres createuser $USER<br />
<br />
Making both database instance and user/role as your login ID lets you to start PostgreSQL client very easily:<br />
<br />
psql<br />
<br />
To login as the administrator:<br />
<br />
sudo -u postgres psql<br />
<br />
To be able to login from remote machine or from PHP or through JDBC driver, you have to set your password from PostgreSQL client (psql):<br />
<br />
ALTER USER user PASSWORD 'pass';<br />
<br />
replace user and pass by your user name and password respectively. To test whether remote login works or not, run:<br />
<br />
psql -h host -p 5432 -d database -U user<br />
<br />
Visit http://www.php.net/manual/en/ref.pgsql.php to see how php works with PostgreSQL.<br />
<br />
==== Using pgadmin3 ====<br />
<br />
To configure PostgreSQL using pgadmin3:<br />
<br />
* Open psql client as administrator postgres (see above Configure PostgreSQL)<br />
* Change the password for the administrator postgres (see above)<br />
* Open Applications -&gt; System Tools -&gt; pgAdmin III from main menu.<br />
* Open File -&gt; Add Server...<br />
* Set Address to localhost or 127.0.0.1 (or something you have set)<br />
* Give a Description by which this connection will be identified.<br />
* Accept default port (5432), SSL (_blank_), Maintenance DB (postgres) and Username (postgres)<br />
* set the Password that you have set earlier. Click OK.<br />
<br />
==== Using phppgadmin ====<br />
<br />
To configure PostgreSQL using phppgadmin run:<br />
<br />
sudo ln -s /usr/share/phppgadmin /var/www/phpPgAdmin<br />
<br />
Set a password for administrator: postgres (see [[|#Configuring_PostgreSQL]]).<br />
<br />
Open /etc/phppgadmin/config.inc.php and change:<br />
<br />
$conf['extra_login_security'] = false;<br />
<br />
It will enable administrative login. Finally visit http://localhost/phpPgAdmin/ to login.<br />
<br />
==== Using PostgreSQL with OpenOffice ====<br />
<br />
* Open Applications -&gt; Office -&gt; OpenOffice.org Database.<br />
* Select 'Connect to an existing database'. From the list select JDBC and click Next.<br />
* Make Datasource URL to:<br />
<br />
jdbc:postgresql://localhost/database<br />
<br />
Replace localhost by your hostname, database by the database instance you have created.<br />
<br />
* Set JDBC driver class to:<br />
<br />
org.postgresql.Driver<br />
<br />
* Click 'Test class' to make sure JDBC driver class connects Datasource URL properly. Click Next.<br />
* Type your User name and select 'Password required' option.<br />
* Click Test connection. A popup dialog will appear. Enter your password and click OK.<br />
* If everything works properly, then a confirmation dialog will appear.<br />
* Click Next. Some optional settings will appear. Click Finish to complete.<br />
<br />
==== Using PostgreSQL JDBC driver ====<br />
<br />
The following Java code is a simple program to illustrate how JDBC can be used with Postgresql:<br />
<br />
// pgVersion.java<br />
<br />
import java.sql.*;<br />
<br />
class pgVersion {<br />
public static void main(String arg[]) throws Exception {<br />
if(arg.length!=4) {<br />
System.out.println("usage: java pgVersion host database user password");<br />
return;<br />
}<br />
// Class.forName("org.postgresql.Driver");<br />
Driver driver=new org.postgresql.Driver();<br />
DriverManager.registerDriver(driver);<br />
String url="jdbc:postgresql://"+arg[0]+"/"+arg[1]+"?user="+arg[2]+"&amp;password="+arg[3];<br />
Connection conn=DriverManager.getConnection(url);<br />
Statement stat=conn.createStatement();<br />
ResultSet rs=stat.executeQuery("SELECT version()");<br />
rs.next();<br />
System.out.println(rs.getString("version"));<br />
rs.close();<br />
stat.close();<br />
conn.close();<br />
DriverManager.deregisterDriver(driver);<br />
}<br />
}<br />
<br />
You can run the former code in two ways:<br />
<br />
* Using CLASSPATH environment variable:<br />
<br />
export CLASSPATH=/usr/share/java/postgresql.jar:.<br />
javac pgVersion.java<br />
java pgVersion host database user password<br />
<br />
Here host, database, user and password should be substituted according to your configuration. To make $CLASSPATH permanent, you have to save the command in either /etc/bash.bashrc or ~/.bashrc.<br />
<br />
* Alternately, you can run as follows:<br />
<br />
javac -classpath /usr/share/java/postgresql.jar pgVersion.java<br />
java -classpath /usr/share/java/postgresql.jar:. pgVersion host database user password<br />
<br />
The output is as expected:<br />
<br />
PostgreSQL 8.2.5 on i486-pc-linux-gnu, compiled by GCC cc (GCC) 4.1.3 20070831 (prerelease) (Ubuntu 4.1.2-16ubuntu1)<br />
<br />
=== MySQL ===<br />
<br />
According to [http://en.wikipedia.org/wiki/Comparison_of_relational_database_management_systems this page] both MySQL and PostgreSQL are good alternatives of proprietary softwares like DB2, Sybase, Oracle, SQL Server etc.<br />
<br />
To install both the server and client:<br />
<br />
sudo apt-get install mysql-server-5.0<br />
<br />
[http://db4free.net/ db4free] is a great database server for tryout different things remotely. If you want to use this site, then you do not have to install MySQL server. Just install the [http://packages.ubuntu.com/gutsy/misc/mysql-client-5.0 client], [http://packages.ubuntu.com/gutsy/misc/mysql-doc-5.0 documentation] and [http://packages.ubuntu.com/gutsy/web/php5-mysql php] or [http://packages.ubuntu.com/gutsy/libs/libmysql-java jdbc] connectivity.<br />
<br />
=== IBM DB2 ===<br />
<br />
Visit [http://www.ibm.com/software/ here] for software available from IBM. According to [http://www.ibm.com/software/data/db2/linux/validate/ this page], DB2 can be installed on ubuntu.<br />
<br />
==== Download ====<br />
<br />
To download DB2 trial [http://www.ibm.com/software/data/db2/9/download.html visit here] and select: IBM DB2 9.5 Data Server trial. Then you have to sign in (create an account if not already created) in order to download. Choose either of the following:<br />
<br />
* DB2 9.5 data server trial for Linux(R) on AMD64 and Intel(R) EM64T systems (x64)<br />
* DB2 9.5 data server trial for Linux(R) on System z<br />
<br />
Then answer questions and click 'I confirm' at the bottom. Finally click 'I confirm' button to start downloading.<br />
<br />
Alternately, [http://www.ibm.com/software/data/db2/9/download.html visit here] and select: IBM DB2 9.5 Express-C. Then choose DB2 Express-C 9.5 for Linux and click continue. Then answer questions and click 'I confirm' at the bottom. Finally select either of the following:<br />
<br />
* DB2 Express-C for Linux operating system, 32-bit architecture<br />
* DB2 Express-C for Linux operating system, 64-bit architecture<br />
<br />
click 'I confirm' button to start downloading.<br />
<br />
==== Installing DB2 ====<br />
<br />
I choose 'DB2 Express-C for Linux operating system, 32-bit architecture' to demonstrate how to install. If you have chosen a different version, make necessary changes accordingly. Let's assume the downloaded file is on your home directory. Then do the following:<br />
<br />
tar -xf db2exc_950_LNX_x86.tar.gz<br />
cd ~/exp<br />
sudo apt-get install libaio1<br />
sudo ./db2setup<br />
<br />
Select 'Install a Product' from the left side of the generated window and click 'Install New'. Another window will be opened. Then following the instructions to complete the installation. You are encouraged to create new user and groups (dasusr1/dasadm1, db2inst1/db2iadm1, db2fenc1/db2fadm1) during installation.<br />
<br />
==== Uninstalling DB2 ====<br />
<br />
If you have installed with all default settings (as mentioned above) then just running the following commands would remove the db2 completely. In case you have changed something during installation, then make appropriate changes accordingly.<br />
<br />
cd /opt/ibm/db2/V9.5<br />
./instance/db2ilist<br />
sudo instance/db2idrop db2inst1<br />
sudo install/db2_deinstall -a<br />
cd &amp;&amp; sudo rm -r /opt/ibm/<br />
sudo userdel -r dasusr1<br />
sudo userdel -r db2fenc1<br />
sudo userdel -r db2inst1<br />
sudo groupdel dasadm1<br />
sudo groupdel db2fadm1<br />
sudo groupdel db2iadm1<br />
<br />
Before running those commands, please make sure:<br />
<br />
* Make sure, db2 is not running.<br />
* Identify DB2 installation directory (E.g /opt/ibm/db2/V9.5)<br />
* Identify DB2 instances (using db2ilist command, see the second command)<br />
* Drop each and every instances (using db2idrop command, third command)<br />
* If you have other IBM softwares in /opt/ibm then remove only /opt/ibm/db2 directory.<br />
* Delete user and group accounts that you have created for db2.<br />
<br />
=== Oracle database ===<br />
<br />
* Download [http://www.oracle.com/technology/software/products/database/index.html Oracle database] XE from [http://www.oracle.com/technology/software/products/database/xe/htdocs/102xelinsoft.html here]. Then follow the [http://www.oracle.com/technology/software/products/database/xe/files/install.102/b25144/toc.htm instructions] to complete the installation.<br />
* Alternately, visit [http://www.oracle.com/technology/tech/linux/install/index.html this page] to see some installation guides provided by some users. [http://www.davidpashley.com/articles/oracle-install.html This page] is particularly seems very useful. (--[[User:Tamal|Tamal]] 07:51, 14 November 2007 (EET))<br />
<br />
A problem might occur if your swap space is less than 1 GB. In that case you have to do the following:<br />
<br />
* Turn off the swap space. (run 'man swapoff' for help)<br />
* Resize the swap partition. (run 'man fdisk' and 'man cfdisk' for help)<br />
* Restart the system. (not mandatory, but recommended)<br />
* Edit the /etc/fstab file to update the UUID of the swap partition. ([[|#How_to_find_the_UUID_of_a_device]])<br />
* Turn on the swap space. (run 'man swapon' for help)<br />
<br />
=== SSH ===<br />
<br />
==== How to install SSH Server for remote administration service ====<br />
<br />
* Read [[|#General Notes]]<br />
* Read [[|#How to add extra repositories]]<br />
<br />
sudo apt-get install ssh<br />
<br />
==== How to SSH into remote Ubuntu host ====<br />
<br />
* Read [[|#General Notes]]<br />
<br />
The Ubuntu host must be running the SSH Server. Read [[|#How to install SSH Server for remote administration service]].<br />
<br />
In this example:<br />
<br />
Remote Ubuntu machine: 192.168.0.2 username is a valid user on the remote host<br />
<br />
ssh username@192.168.0.2<br />
<br />
You can tunnel to a URL as well:<br />
<br />
ssh username@foobar.dyndns.org<br />
<br />
If your LAN uses a dynamic IP to connect to the Internet, you can use a Dynamic IP service (such as DynDNS) to assign a static URL to your LAN (foobar.dyndns.org, for example). An SSH request over the Internet to your URL (e.g. foobar.dyndns.org) would then be routed by the DynDNS service to your modem/router. Your router must then be set to forward the port used for the SSH tunnel to your host machine on the LAN. (SSH tunnels generally occur by default over port 22, but it can be changed (see below)).<br />
<br />
For some humor: Read Etymology of foobar. You can explicitly select the port number (instead of port 22) for the SSH tunnel:<br />
<br />
ssh username@foobar.dyndns.org:11022<br />
<br />
However, if you do this, the host SSH server must be listening on the same port (port 11022 in the example). The port to listen to can be set in the ssdh_config file of the OpenSSH server (provided in Ubuntu) on your host. Also, your router must be configured to forward port 11022 to your OpenSSH host.<br />
<br />
==== How to change SSH Server Port Number ====<br />
<br />
* Read [[|#General Notes]]<br />
* Read [[|#How to install SSH Server for remote administration service]]<br />
<br />
Open /etc/ssh/sshd_config for editing<br />
<br />
gksu gedit /etc/ssh/sshd_config<br />
<br />
Look for the line<br />
<br />
# What ports, IPs and protocols we listen for<br />
Port 22<br />
<br />
Change 22 to the value you want, then save and restart the SSH server<br />
<br />
sudo /etc/init.d/ssh restart<br />
<br />
==== Using SSH to Port Forward ====<br />
<br />
* Read [[|#General Notes]]<br />
* The Ubuntu host must be running the SSH Server. Read [[|#How to install SSH Server for remote administration service]].<br />
* The format of the client command to create an SSH tunnel to an OpenSSH host listening on the default port 22 is:<br />
<br />
ssh -L &lt;local port&gt;:&lt;remote computer&gt;:&lt;remote port&gt; &lt;user&gt;@&lt;remote ip&gt;<br />
<br />
An example is:<br />
<br />
ssh -L 6669:94.92.10.15:6667 foowho<br />
<br />
In this example, local port 6669 on the local client computer is tunneled by encrypted SSH over the default port 22 to the router at 94.92.10.15. The router must be set up to forward port 22 to whatever the internal LAN IP (such as 192.168.0.56) of the SSH host is. The host is running OpenSSH (ssdh service) and is set to listen to port 22. It then routes the incoming data to the host port 6667, where presumably some other program is waiting for data. foowho has an account on the host running the OpenSSH server.<br />
<br />
SSH tunnels can also be established using URLs and even alternate ports. An example is:<br />
<br />
ssh -L 5900:foobar.dyndns.org:5900 foowho -p 11022<br />
<br />
In this example, local port 5900 on the client is forwarded through an SSH tunnel on port 11022 to foobar.dyndns.org. The DNS service translates foobar.dyndns.org into the appropriate WAN (Internet) IP address, where the router is listening. The router is set up to forward port 11022 to the LAN machine hosting the OpenSSH server, which is listening on port 11022. It then sends the data to whatever program is running on port 5900 on the host.<br />
<br />
* You can forward a local port to a different port on the remote host.<br />
<br />
:Example: Make port 80 (web server/browser) on the remote host at 10.0.2.10 available locally as port 81<br />
<br />
ssh -L 81:10.0.2.10:80 user@office.net<br />
<br />
* You can create secure SSH tunnels to multiple hosts using multiple ports.<br />
<br />
ssh -L 81:10.0.2.10:80 -L 82:10.0.2.20:80 -L 83:10.0.2.30:80 user@office.net<br />
<br />
Now, local port 81 locally forwards to port 80 on the host at 10.0.2.10, local port 82 forwards to port 80 on the host at 10.0.2.20 and local port 83 forwards to port 80 on the host at 10.0.2.30. In this example, user has an account on all three host machines at 10.0.2.10, 10.0.2.20, and 10.0.2.30.<br />
<br />
* Once port forwarding is set up by ssh, an application is directed to the SSH tunnel for port usage by using the loopback as the destination.<br />
<br />
:Example 1:<br />
<br />
ssh -L 81:10.0.2.10:80 user@office.net<br />
<br />
<nowiki>http://localhost:81</nowiki> or <nowiki>http://127.0.0.1/:81</nowiki> <br />
<br />
will direct a web browser to use port 81 locally, which is being redirected by SSH to port 80 on the remote host at 10.0.2.10.<br />
<br />
:Example 2:<br />
<br />
ssh -L 5900:foobar.dyndns.org:5900 foowho<br />
vncviewer 127.0.0.1 or vncviewer localhost<br />
<br />
will direct vncviewer (which uses port 5900 by default) to direct its traffic through the ssh tunnel to the host at foobar.dyndns.org, where, presumably, a VNC server is listening on port 5900.<br />
<br />
==== SSH Filesystem ====<br />
<br />
install package: sshfs, see http://fuse.sourceforge.net/sshfs.html<br />
<br />
sudo aptitude update<br />
sudo aptitude install sshfs<br />
<br />
Optionally, add user to group fuse to manage mount-point permissions.<br />
<br />
sudo adduser &lt;local user&gt; fuse<br />
<br />
(propogate new group membership: restart or open new shell, e.g., Ctrl+Alt+F1)<br />
<br />
Create writable mount point, e.g, &lt;mount point&gt; = /media/remote<br />
<br />
sudo mkdir &lt;mount point&gt;<br />
sudo chgrp fuse &lt;mount point&gt;<br />
sudo chmod 775 &lt;mount point&gt;<br />
<br />
Mount command<br />
<br />
sshfs [&lt;user&gt;@]&lt;host&gt;:[&lt;path&gt;] &lt;mount point&gt;<br />
<br />
Unmount command<br />
<br />
fusermount -u &lt;mount point&gt;<br />
<br />
=== Ubuntu 7.10 LAMP Server ===<br />
<br />
If you are looking for simple LAMP Server setup in 15min including webmin installation this is for you<br />
<br />
* [http://www.ubuntugeek.com/ubuntu-710-gutsy-gibbon-lamp-server-setup.html Ubuntu 7.10 LAMP Server Step By Step Guide]<br />
<br />
(This requires the server version of Gutsy Gibbon, not the standard desktop edition)<br />
<br />
=== How to Install Webmin ===<br />
<br />
Webmin is an browser-based administration tool for Apache, PHP, MySQL, and Much More.<br />
<br />
wget http://prdownloads.sourceforge.net/webadmin/webmin_1.370_all.deb<br />
<br />
<br />
sudo apt-get install libnet-ssleay-perl libauthen-pam-perl libio-pty-perl libmd5-perl<br />
<br />
sudo passwd root (Enter new root password, retype)<br />
<br />
sudo dpkg -i webmin_1.370_all.deb<br />
<br />
To use webmin, type the following in a browser: (Make sure to use HTTPS not HTTP)<br />
<br />
* [https://localhost:10000]<br />
<br />
=== Sun Java Application Server (Java EE) ===<br />
<br />
[http://docs.sun.com/app/docs/coll/1343.4 Official documentation]<br />
<br />
==== Installing Application Server ====<br />
<br />
Sun Java Application Server is the heart of Java EE. [http://java.sun.com/javaee/downloads/index.jsp Download] either of the following versions:<br />
<br />
* Java EE 5 SDK Update 3<br />
* Java Application Platform SDK Update 3 Beta<br />
* Sun Java System Application Server 9.1 (under individual download section)<br />
<br />
Alternately you can download GlassFish application server (community maintained):<br />
<br />
* With [http://dlc.sun.com.edgesuite.net/netbeans/6.0/beta2/ Netbeans] Web &amp; Java EE pack<br />
* Download [https://glassfish.dev.java.net/public/downloadsindex.html GlassFish] directly<br />
<br />
Make the download file executable and run as root by:<br />
<br />
chmod +x Desktop/filename<br />
sudo ./Desktop/filename<br />
<br />
Lets assume $JAVAEE_HOME indicates the installation directory. The default installation directory for Sun Java System Application Server 9.1 is /opt/SUNWappserver/. Now, either add $JAVAEE_HOME/bin in your PATH or make a link of asadmin and asant in your path by<br />
<br />
sudo ln -s $JAVAEE_HOME/bin/asadmin /usr/local/bin/asadmin<br />
sudo ln -s $JAVAEE_HOME/bin/asant /usr/local/bin/ant<br />
<br />
The command 'asadmin' is the main and most important command for Java Application server. [http://ant.apache.org/ Ant] is also useful to automate building process.<br />
<br />
==== Application Server configuration ====<br />
<br />
When Java EE installs, a domain 'domain1' is automatically installed with it in $JAVAEE_HOME/domains/ which is the default directory for all domains. Generally this directory ($JAVAEE_HOME/domains/) is not writable. So, as a unprivileged user you can create your own domain in your home directory.<br />
<br />
===== Application Server domain settings =====<br />
<br />
To create, start, stop and delete a domain in your home directory:<br />
<br />
asadmin create-domain --adminport 4848 --domaindir ~ mydomain<br />
asadmin start-domain --domaindir ~ mydomain<br />
asadmin stop-domain --domaindir ~ mydomain<br />
asadmin delete-domain --domaindir ~ mydomain<br />
<br />
Alternately you can make $JAVAEE_HOME/domains/ writable to do domain-related works from default domain directory. E.g.<br />
<br />
sudo chmod a+w $JAVAEE_HOME/domains/<br />
asadmin create-domain --adminport 4848 mydomain<br />
asadmin start-domain mydomain<br />
asadmin stop-domain mydomain<br />
asadmin delete-domain mydomain<br />
<br />
If you have only one domain in the default domains directory ($JAVAEE_HOME/domains/) then you do not have to give the domain name to start or stop a domain. E.g.<br />
<br />
asadmin start-domain<br />
asadmin stop-domain<br />
<br />
You can save the login information to ~/.asadminpass file in order to administer an application server domain from command line. If you do not login, you have to provide username and password for each administrative work (analogous to su and sudo commands). To login:<br />
<br />
asadmin login --host localhost --port 4848<br />
<br />
Deploying and un-deploying a web or ejb module is very easy. Just do the following:<br />
<br />
asadmin deploy test1.war<br />
asadmin deploy test2.ear<br />
<br />
asadmin undeploy test1.war<br />
asadmin undeploy test2.ear<br />
<br />
===== Application Server data Source settings =====<br />
<br />
DataSource configuration can be done easily from web based administration console. Here command line method is given:<br />
<br />
sudo ln -s /usr/share/java/postgresql.jar /opt/SUNWappserver/domains/domain1/lib/postgresql.jar<br />
asadmin create-jdbc-connection-pool --datasourceclassname org.postgresql.ds.PGSimpleDataSource --property<br />
serverName=localhost:portNumber=5432:databaseName=database:user=user:password=pass jdbc/postgresql<br />
asadmin create-jdbc-resource --connectionpoolid jdbc/postgresql database<br />
<br />
First, we have made this driver accessible from the domain. In the second command, we have created a data source connection pool which has been assigned a JNDI name in the third command. Here all the colon (:) separated values are database related. Change them according to your database settings. Now you can create a Connection by, e.g.:<br />
<br />
Context ic = new InitialContext();<br />
DataSource ds = (DataSource)ic.lookup("database");<br />
Connection conn = ds.getConnection();<br />
<br />
To see available data sources and their corresponding JNDI names:<br />
<br />
asadmin list-jdbc-connection-pools<br />
asadmin list-jdbc-resources<br />
<br />
To delete both connection pool, you have to delete JNDI name first. E.g.<br />
<br />
asadmin delete-jdbc-resource database<br />
asadmin delete-jdbc-connection-pool jdbc/postgresql<br />
<br />
=== Tomcat 6 ===<br />
<br />
==== Installing tomcat ====<br />
<br />
Tomcat can be found in [http://packages.ubuntu.com/gutsy/web/tomcat5.5 universe] repository but it has some drawbacks (e.g. lots of dependencies, unavailability of version 6.x, do not use Sun Java). Thus manual installation is recommended.<br />
<br />
Download latest stable version of tomcat from [http://tomcat.apache.org/download-60.cgi here] and extract it in /usr/local as root. Add "JAVA_HOME=/usr/lib/jvm/java-6-sun/" to /usr/local/apache-tomcat-6.x.x/bin/setclasspath.sh after the first occurrence of "CLASSPATH=". Make sure that sun-java6-jre is installed. Make a soft-link of /usr/local/apache-tomcat-6.x.x/bin/catalina.sh as /usr/local/bin/tomcat to access easily. Optionally you can remove .exe and .bat files and edit .sh files to remove cygwin, os400 and darwin related codes.<br />
<br />
Although not necessary, but the [http://packages.ubuntu.com/gutsy/devel/ant ant] program would be useful here. You can also install its [http://packages.ubuntu.com/gutsy/devel/ant-doc documentation].<br />
<br />
==== OpenEJB Server ====<br />
<br />
[http://openejb.apache.org/ OpenEJB] is an open source, modular, configurable, and extendable EJB Container System and EJB Server. [http://openejb.apache.org/tomcat.html Visit here] to see the installation instructions for OpenEJB under Tomcat 6.<br />
<br />
==== Using tomcat with NetBeans ====<br />
<br />
You have to make the configuration files readable because Netbeans generally do not run with administrative privilege. To use Tomcat with with NetBeans, you have to set a user with manager role. A typcal $CATALINA_HOME/conf/tomcat-users.xml file would look like:<br />
<br />
&lt;?xml version='1.0' encoding='utf-8'?&gt;<br />
&lt;tomcat-users&gt;<br />
&lt;role rolename="admin"/&gt;<br />
&lt;role rolename="manager"/&gt;<br />
&lt;role rolename="tomcat"/&gt;<br />
&lt;user username="admin" password="admin" roles="admin"/&gt;<br />
&lt;user username="manager" password="manager" roles="manager"/&gt;<br />
&lt;user username="tomcat" password="tomcat" roles="tomcat"/&gt;<br />
&lt;/tomcat-users&gt;<br />
<br />
Edit this file after you have started tomcat once. Any data placed in the &lt;tomcat-users&gt; element is erased during the first start of tomcat. You can also use tomcat that comes with NetBeans web &amp; Java EE pack.<br />
<br />
==== Configure Database Connection Pool (DBCP) of Tomcat ====<br />
<br />
A database connection pool creates and manages a pool of connections to a database. Recycling and reusing already existing connections to a dB is more efficient than opening a new connection. It is still possible and valid to open and close connection for each servlet/jsp (visit [[|#Using_JDBC_driver]] for details).<br />
<br />
Before proceeding, let's assume that $CATALINA_HOME denotes tomcat installation directory (typically: /usr/local/apache-tomcat-6.0.14).<br />
<br />
echo $CATALINA_HOME<br />
sudo ln -s /usr/share/java/postgresql.jar $CATALINA_HOME/lib/postgresql.jar<br />
sudo mkdir $CATALINA_HOME/webapps/dataSourceTest<br />
sudo chown $USER:$USER $CATALINA_HOME/webapps/dataSourceTest<br />
cd $CATALINA_HOME/webapps/dataSourceTest<br />
mkdir META-INF WEB-INF WEB-INF/classes<br />
<br />
Create WEB-INF/web.xml and set its content:<br />
<br />
&lt;?xml version="1.0" encoding="UTF-8"?&gt;<br />
<br />
&lt;web-app xmlns="http://java.sun.com/xml/ns/javaee"<br />
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"<br />
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"<br />
version="2.5"&gt;<br />
<br />
&lt;resource-ref&gt;<br />
&lt;description&gt;PostgreSQL connectivity&lt;/description&gt;<br />
&lt;res-ref-name&gt;jdbc/postgresql&lt;/res-ref-name&gt;<br />
&lt;res-type&gt;javax.sql.DataSource&lt;/res-type&gt;<br />
&lt;res-auth&gt;Container&lt;/res-auth&gt;<br />
&lt;/resource-ref&gt;<br />
<br />
&lt;description&gt;<br />
Page for testing<br />
&lt;/description&gt;<br />
&lt;display-name&gt;Testing page&lt;/display-name&gt;<br />
&lt;servlet&gt;<br />
&lt;servlet-name&gt;pgsqlVersion&lt;/servlet-name&gt;<br />
&lt;servlet-class&gt;pgsqlVersion&lt;/servlet-class&gt;<br />
&lt;/servlet&gt;<br />
&lt;servlet-mapping&gt;<br />
&lt;servlet-name&gt;pgsqlVersion&lt;/servlet-name&gt;<br />
&lt;url-pattern&gt;/pgsqlVersion&lt;/url-pattern&gt;<br />
&lt;/servlet-mapping&gt;<br />
&lt;/web-app&gt;<br />
<br />
Create META-INF/context.xml and set its content (replace hostname, database instance name, user id and password):<br />
<br />
&lt;?xml version="1.0" encoding="UTF-8"?&gt;<br />
&lt;Context&gt;<br />
&lt;Resource<br />
name="jdbc/postgresql"<br />
auth="Container"<br />
type="javax.sql.DataSource"<br />
driverClassName="org.postgresql.Driver"<br />
url="jdbc:postgresql://host/database"<br />
username="user"<br />
password="password"<br />
maxActive="20"<br />
maxIdle="10"<br />
maxWait="-1"/&gt;<br />
&lt;WatchedResource&gt;WEB-INF/web.xml&lt;/WatchedResource&gt;<br />
&lt;WatchedResource&gt;META-INF/context.xml&lt;/WatchedResource&gt;<br />
&lt;/Context&gt;<br />
<br />
Create pgsqlVersion.java and set its content:<br />
<br />
import java.io.*;<br />
import java.sql.*;<br />
import javax.sql.*;<br />
import javax.naming.*;<br />
import javax.servlet.*;<br />
public class pgsqlVersion extends GenericServlet {<br />
public void service(ServletRequest request, ServletResponse response) {<br />
try {<br />
response.setContentType("text/html");<br />
PrintWriter pw=response.getWriter();<br />
Context initContext = new InitialContext();<br />
Context envContext = (Context)initContext.lookup("java:/comp/env");<br />
DataSource ds = (DataSource)envContext.lookup("jdbc/postgresql");<br />
Connection conn = ds.getConnection();<br />
Statement stat=conn.createStatement();<br />
ResultSet rs=stat.executeQuery("SELECT version()");<br />
rs.next();<br />
pw.println(rs.getString("version"));<br />
rs.close();<br />
stat.close();<br />
} catch(Exception e) { }<br />
}<br />
}<br />
<br />
Create index.html and set its content:<br />
<br />
<title>PostgreSQL datasource</title>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"<br />
"http://www.w3.org/TR/html4/frameset.dtd"&gt;<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Then compile the servlet:<br />
<br />
export CLASSPATH=$CATALINA_HOME/lib/postgresql.jar:$CATALINA_HOME/lib/servlet-api.jar:.<br />
javac -d WEB-INF/classes/ pgsqlVersion.java<br />
<br />
Finally, visit http: //host:8080/dataSourceTest. Thats all!<br />
<br />
<br><br />
<br />
=== Nagios Network Monitoring Server ===<br />
<br />
* [http://www.ubuntugeek.com/nagios-network-monitoring-system-setup-in-ubuntu.html Nagios Monitoring Server Setup Guide]<br />
<br />
It should be noted that this howto instructs you to build nagios from its sources, while it exists on the official repositories.<br />
<br />
=== NFS Server ===<br />
<br />
* Read [http://nfs.sourceforge.net Linux NFS FAQ]<br />
* Run this command for each computer to determine the IP Addresses for each one:<br />
<br />
ifconfig<br />
<br />
==== Installing NFS Server ====<br />
<br />
sudo apt-get install nfs-kernel-server nfs-common portmap<br />
<br />
Reconfigure Portmap to not bind to loopback interface:<br />
<br />
sudo dpkg-reconfigure portmap <br />
sudo /etc/init.d/portmap restart<br />
<br />
Define which folders to share (export):<br />
<br />
sudo nano /etc/exports<br />
<br />
Add share (export) definitions:<br />
<br />
This will export path to all IP addresses between 192.168.1.1 and 192.168.1.254 with Read/Write access:<br />
<br />
/path/to/shared/files 192.168.1.0/24(rw,no_root_squash,async)<br />
<br />
This will export path to all IP addresses between 192.168.1.1 and 192.168.1.254 with Read Only access:<br />
<br />
/path/to/shared/files 192.168.1.0/24(ro,async)<br />
<br />
''192.168.1.0/24 above would be the clients IP Address''<br />
<br />
When finished, save changes and restart the NFS Server:<br />
<br />
sudo /etc/init.d/nfs-kernel-server restart<br />
<br />
Export your new configuration:<br />
<br />
sudo exportfs -a<br />
<br />
==== Installing NFS Client ====<br />
<br />
sudo apt-get install portmap nfs-common<br />
<br />
==== Mounting Manually ====<br />
<br />
cd ~<br />
mkdir temp<br />
sudo mount 192.168.1.1:/path/to/shared/files temp<br />
<br />
''192.168.1.1 above would be the Servers IP Address''<br />
<br />
You may need to restart NFS services:<br />
<br />
sudo /etc/init.d/portmap restart<br />
sudo /etc/init.d/nfs-common restart<br />
<br />
==== Mounting Automatically ====<br />
<br />
Create mountpoint:<br />
<br />
sudo mkdir /mnt/files<br />
<br />
Edit configuration:<br />
<br />
gksudo gedit /etc/fstab<br />
<br />
Add something similar to below:<br />
<br />
192.168.1.1:/path/to/shared/files /mnt/files nfs rsize=8192,wsize=8192,timeo=14,intr 0 0<br />
<br />
Test new configuration:<br />
<br />
sudo mount -a<br />
<br />
Reboot to test automatic mounting.<br />
<br />
== '''''硬件''''' ==<br />
<br />
=== NVidia 驱动 ===<br />
<br />
首先,弄清楚你清楚你是什么内核运行以下命令查看:<br />
<br />
user@localhost:~$ uname -a<br />
Linux localhost 2.6.22-14-generic #1 SMP Sun Oct 14 23:05:12 GMT 2007 i686 GNU/Linux<br />
<br />
I have the '''generic''' kernel, so I need to install the following:<br />
<br />
sudo apt-get install linux-restricted-modules-generic<br />
<br />
<br> After that's done, go to '''''System &gt; Administration &gt; Restricted Drivers Manager''''' and turn on the driver.<br />
<br />
Some users may receive an error screen: "The software source for the packsge nvidia-glx-new is not enabled." This can be overcome by going to '''''System &gt; Administration &gt; Software Sources''''' and ticking all the boxes under the heading "Downloadable from the Internet", click close and then allow Ubuntu to reload the package lists. The NVidia drivers can then be enabled using the method above.<br />
<br />
You can optionally prevent showing NVidia logo on startup by:<br />
<br />
sudo nvidia-xconfig --no-logo<br />
<br />
=== Wacom tablet ===<br />
<br />
By default, options for the Wacom tablet are commented out. Type the following command to edit the '''xorg.conf''' file.<br />
<br />
gksu gedit /etc/X11/xorg.conf<br />
<br />
Uncomment the following by removing the "#" or just replace the tree lines:<br />
<br />
InputDevice "stylus" "SendCoreEvents"<br />
InputDevice "cursor" "SendCoreEvents"<br />
InputDevice "eraser" "SendCoreEvents"<br />
<br />
Save and restart your X-session by typing '''CTRL-ALT-BACKSPACE'''.<br />
<br />
=== Microsoft Intellimouse ===<br />
<br />
To get the scroll wheel and side buttons to be recognized, change your '''/etc/X11/xorg.conf''' mouse section to look like the following:<br />
<br />
Section "InputDevice"<br />
<br />
Identifier "Configured Mouse"<br />
Driver "mouse"<br />
Option "CorePointer"<br />
Option "Device" "/dev/input/mice" <br />
Option "Protocol" "ExplorerPS/2"<br />
Option "ZAxisMapping" "4 5"<br />
Option "Emulate3Buttons" "true"<br />
Option "Buttons" "7" <br />
Option "ButtonMapping" "1 2 3 6 7"<br />
<br />
EndSection<br />
<br />
If you want the wheel scroll button to scroll in firefox rather than the side buttons make "ZAxisMapping" "6 7" and "ButtonMapping" "1 2 3 4 5".<br />
<br />
At this point you can reboot your computer or restart X (Ctrl-Alt-BackSpace) to see if your forward/back buttons work in FireFox. You can test in a terminal with '''xev'''.<br />
<br />
=== Logitech Marble Mouse ===<br />
<br />
To get the scrollwheel effect on Logitech trackball (Marble Mouse), change your '''/etc/X11/xorg.conf''' mouse section to look like the following:<br />
<br />
Section "InputDevice"<br />
<br />
Identifier "MarbleMouse"<br />
Driver "mouse"<br />
Option "Protocol" "auto"<br />
Option "Device" "/dev/input/mice"<br />
Option "Buttons" "5"<br />
Option "ButtonMapping" "1 8 3 6 7"<br />
Option "EmulateWheel" "true"<br />
Option "EmulateWheelTimeout" "300" # msec<br />
Option "EmulateWheelButton" "6"<br />
Option "YAxisMapping" "4 5"<br />
<br />
EndSection<br />
<br />
Make sure that you have "MarbleMouse" under the server layout section as well.<br />
<br />
The big left and right buttons work normally (click, right click) and pressing them at the same time acts as a middle click. Holding the small left button will let you scroll up and down with the trackball. Clicking small left and right buttons will let you go back/forward in firefox.<br />
<br />
Thanks to imjustabill and Buffalo Soldier from the Ubuntu Forum. This works well on my computer.<br />
<br />
=== Logitech MX510 ===<br />
<br />
To have the extra buttons on your MX510 working with X, you'll have to install and configure the evdev-drivers. Open up a terminal and enter:<br />
<br />
sudo apt-get install [http://packages.ubuntu.com/gutsy/x11/xserver-xorg-input-evdev xserver-xorg-input-evdev] <br />
<br />
Now, all you have to do is configure Xorg to work with the new driver. Always remember to back up original files before altering:<br />
<br />
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.bak<br />
gksudo gedit /etc/X11/xorg.conf<br />
<br />
Locate and replace the '''InputDevice''' section which holds the information for your mouse, for example with the identifier '''Configured Mouse''', and replace it with:<br />
<br />
<nowiki>Section "InputDevice"<br />
Identifier "Configured Mouse"<br />
Driver "evdev"<br />
Option "CorePointer"<br />
Option "Name" "Logitech MX510"<br />
EndSection</nowiki> <br />
<br />
Logout or kill the X session using '''&lt;CTRL&gt;&lt;ALT&gt;&lt;BACKSPACE&gt;''' and login again. This should get all of your buttons and scrollwheel up and running, and even let you navigate the webbrowser history using the thumb buttons on the side.<br />
<br />
=== Disable CAPS LOCK ===<br />
<br />
I like to remap mine to '''&lt;Ctrl&gt;'''. Just run gnome-keyboard-properties with "System &gt; Preferences &gt; Keyboard", click on the "Layout Options" tab and then on the arrow next to "Ctrl key position". Selecting "Make CapsLock an additional Ctrl" does the trick.<br />
<br />
=== Enabling NUM LOCK at boot ===<br />
<br />
The Default behavior is for the NUM LOCK key to be off; if you are on a desktop and have a keypad though, entering digits from it can be much quicker and you may wish to have it enabled for entering login password, etc. Here's how:<br />
<br />
* From Synaptic, download and install "numlockx," or, from the command line;<br />
<br />
sudo apt-get install numlockx<br />
<br />
* To get it working, you now have to edit the appropriate startup file. First, make sure you have a working backup of the file:<br />
<br />
sudo cp /etc/gdm/Init/Default /etc/gdm/Init/Default.bak<br />
<br />
* Next, modify the gdm/Init file. In terminal:<br />
<br />
gksudo gedit /etc/gdm/Init/Default<br />
<br />
* Scroll down to the end of the file, and above the line that says "exit 0" add the following:<br />
<br />
if [ -x /usr/bin/numlockx ]; then<br />
/usr/bin/numlockx on <br />
fi<br />
<br />
* Next time you reboot, your NUM LOCK should default to "on."<br />
<br />
=== BSNL Broadband (dataone) speedup ===<br />
<br />
BSNL Broadband or Dataone provides high speed (2Mbps) Internet connectivity in India. The DNS servers provided by the BSNL (61.1.96.69 and 61.1.96.71) are very slow. Instead use Either of these:<br />
<br />
208.67.222.222 and 208.67.220.220 or<br />
<br />
4.2.2.1 and 4.2.2.2 or<br />
<br />
search Google for free DNS service providers.<br />
<br />
=== Citrix ICA client ===<br />
<br />
The Citrix client no longer suffers from any of the previous Ubuntu version's problems of UTF8 font issues, OpenMotif depends, or flaky/broken browser integration. It just works!<br />
<br />
* Download the latest en.linuxx86.tar.gz (currently v10.6) from [http://www.citrix.com/ Citrix.com] and save to your desktop<br />
* Right-click tar.gz file, and '''Extract Here'''<br />
* Open a Terminal<br />
<br />
Programs &gt; Accessories &gt; Terminal<br />
<br />
* Change to the directory where we extracted the client<br />
<br />
cd Desktop/en.linuxx86<br />
<br />
* Run the setup program<br />
<br />
./setupwfc<br />
<br />
* Select the defaults<br />
<br />
Now, web files from Metaframe Presentation Server, Citrix Access Gateway, etc webpages will work fine in Firefox.<br />
<br />
Someone may wish to add an entry on how to use the client to connect to a local Citrix farm.<br />
<br />
=== WINE ===<br />
<br />
Latest install instructions are always at: [http://www.winehq.org/site/download-deb WineHQ.org]<br />
<br />
Add repository key:<br />
<br />
wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | sudo apt-key add -<br />
<br />
Add repository to apt sources:<br />
<br />
sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/gutsy.list -O /etc/apt/sources.list.d/winehq.list<br />
<br />
Update apt sources:<br />
<br />
sudo apt-get update<br />
<br />
Install WINE:<br />
<br />
sudo apt-get install wine<br />
<br />
The program menu then appears in Programs under Wine, or double-click a Windows/DOS .exe file.<br />
<br />
==== Install Internet Explorer 6 for Wine ====<br />
<br />
IE 6 is not recommended for general usage, but some Windows packages (installed under Wine) require IE6 to complete installation. Furthermore, IE 6 is useful for checking code for developers who want to see how their web pages appear under IE 6.<br />
<br />
Install the required package cabextract from Synaptic Package Manager (or from apt-get install cabextract).<br />
<br />
Download and run the IEs4Linux installation script from the IEs4Linux website:<br />
<br />
wget http://www.tatanka.com.br/ies4linux/downloads/ies4linux-latest.tar.gz<br />
tar zxvf ies4linux-latest.tar.gz<br />
cd ies4linux-*<br />
./ies4linux<br />
<br />
<br> There is a beta version of the install at http://www.tatanka.com.br/ies4linux/downloads<br />
<br />
'''If you hit advance you have the option to install IE7. I have not gotten it to work as of yet, but IE6 installs with no issues on amd64 and i386'''<br />
<br />
Accept all the defaults for installation.<br />
<br />
==== Wine-Doors ====<br />
<br />
Wine-Doors http://www.wine-doors.org/ packages Windows applications for Wine. The current package list includes Internet Explorer 6.<br />
<br />
Debian/Ubuntu package (single click) available for [http://www.wine-doors.org/wordpress/?page_id=3 download].<br />
<br />
=== VMWare Server ===<br />
<br />
Until the Commercial Ubuntu repository includes the VMWare Server, you can use the following 'How To' to compile from source.<br />
<br />
* [http://www.ubuntugeek.com/how-to-install-vmware-server-in-ubuntu-710-gutsy-gibbon.html Step By Step Vmware server setup guide including Screenshots]<br />
<br />
==== VMWare Tools ====<br />
<br />
If you want to install VMware tools on ubuntu gutsy follow this steps<br />
<br />
* [http://www.ubuntugeek.com/howto-install-vmware-tools-in-ubuntu.html VMWare Tools Setup Guide Incliding Screenshots]<br />
<br />
To be able to use usb devices look at following bug comment at https://bugs.launchpad.net/ubuntu/+source/kvm/+bug/156085/comments/5<br />
<br />
=== How to install Broadcom wireless driver ===<br />
<br />
* This worked for me Kubuntu 7.10 32 bit but there are several ways<br />
<br />
* First, make sure you have the appropriate hardware<br />
<br />
lspci | grep Broadcom<br />
<br />
* Output should match this<br />
<br />
02:03.0 Network controller: Broadcom Corporation BCM4306 802.11b/g Wireless LAN Controller (rev 02)<br />
<br />
* Then you have to add a repository<br />
<br />
gksu gedit /etc/apt/sources.list<br />
<br />
* Add<br />
<br />
deb http://ubuntu.cafuego.net gutsy-cafuego bcm43xx<br />
<br />
* Then do this to add the signature<br />
<br />
wget http://ubuntu.cafuego.net/AF425CB5.gpg -O- | sudo apt-key add -<br />
<br />
* Back in the console<br />
<br />
sudo apt-get update<br />
sudo apt-get install bcm43xx-firmware <br />
<br />
* Just press yes, let it install, and reboot! Thanks to Pete and the 7.04 guide for this.<br />
<br />
== Requests ==<br />
If you have requests that you would like to be part of this guide, write them in [[Ubuntu_talk:Gutsy]].<br />
<br />
== ''''' Troubleshooting ''''' ==<br />
<br />
Place solutions to problems you have encountered with Gutsy here.<br />
They may be workarounds to bugs or other solutions to other problems.<br />
<br />
=== OpenOffice spell checking problem ===<br />
This problem is not a bug at all. Some Languages do not have spell checking support, while others do. For example, "English (India)" does not support spell checking but "English (USA)" does. Just go to<br />
Tools -> Options -> Language Settings -> Languages<br />
and select a Western language that has a check mark beside the language name. That's it.<br />
<br />
If you want to add languages that support spell checking, install the package myspell-<language> where <language> is the desired language, e.g.:<br />
sudo apt-get install myspell-fr <br />
to install the French dictionary.<br />
<br />
=== Alternative of SCIM to switch keyboard layout ===<br />
SCIM might not work properly under Gutsy Gibbon, although works fine under Feisty Fawn. Until the problem is fixed, you can use the alternative method to switch keyboard layout.<br />
<br />
*Go to System -> Administration -> Language Support and install the languages you want to use.<br />
*Open System -> Preferences -> Keyboard and add the layout that you want to use from Layouts tab.<br />
*Right click on the free space of upper panel and select "Add to panel...". Add Keyboard Indicator.<br />
<br />
===Fix Slow boot/faulty splash screen===<br />
<br />
if your system is booting slowly or your ubuntu splash screen is not being displayed it could be that Usplash has created the splash screen incorrectly<br />
<br />
1) edit /boot/grub/menu.lst<br />
sudo gedit /boot/grub/menu.lst<br />
<br />
At the very end of the kernel line after "splash" , add <br />
"vga=***" <br />
replace *** with the code from the table below that corresponds with the resolution <br />
and colour setting you are using<br />
<br />
{| border="1" cellspacing="0" cellpadding="5" align="center"<br />
! Screen<br />
! 640x480<br />
! 800x600<br />
! 1024x768<br />
! 1280x1024<br />
! 1600x1200 <br />
|- <br />
| Colors<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
| 256<br />
| 769<br />
| 771<br />
| 773<br />
| 775<br />
| 796<br />
|-<br />
| 32,768<br />
| 784<br />
| 787<br />
| 790<br />
| 793<br />
| 797<br />
|-<br />
| 65,536<br />
| 785<br />
| 788<br />
| 791<br />
| 794<br />
| 798<br />
|-<br />
| 16.8M<br />
| 786<br />
| 789<br />
| 792<br />
| 795<br />
| 799<br />
|}<br />
<br />
the line should look something like this<br />
<br />
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=20fd9912-6383-4860-9cd8-88a11909d715 ro quiet splash vga=791<br />
<br />
Save that file, close it, <br />
<br />
2) edit /etc/usplash.conf<br />
sudo gedit /etc/usplash.conf<br />
<br />
change the resolution to the one you set in the previous step save and close<br />
<br />
3) rebuild the bootsplash screen<br />
<br />
sudo update-initramfs -u -k `uname -r`<br />
<br />
This rebuilds the image that Grub uses to start the system.<br />
<br />
4) reboot<br />
<br />
=== Logout problem === <br />
Some users have have faced a hangout problem when whey press the quit button. Currently the following symptom and work-around have been noticed: <br />
* Press Ctrl-Alt-Backspace to kill X-Window and show the GDM screen. <br />
* gnome-power-manager service should be on. You can enable it from System->Preferences->Sessions.<br />
* Wait for 1 minute. The quit window will appear. (the logout problem will vanish for some times).<br />
* For some users, removing .config/autostart/ directory worked.<br />
== Tips And Tricks ==<br />
It is pointless to add the tricks that is already added in [[Ubuntu:Feisty#Tips_And_Tricks]]. So, only new tricks are added.<br />
<br />
=== What to do when Ubuntu freezes ===<br />
There are different reasons for a computer to crash - there can be a programming bug, a memory issue, or other. When your computer seems to be dead, don't panic! And don't reach for that power button!<br />
There are '''five''' simple things you can try before killing the power:<br />
<br />
# Is the computer frozen? Try going into one of the VTs by pressing '''<Ctrl><Alt>''' and '''F1'''. This way you may still have control of the computer and manage to kill the application which caused the problem. '''''More on killing applications later.'''''<br />
# If you can't change into a VT, try to kill the X session. This can be done by pressing '''<Ctrl><Alt><Backspace>'''. All applications that were opened during the session will automatically be killed, so you should gain control over the computer after you've been sent back to the login screen.<br />
# OK, so you can't kill X or go into VT. Let's do a reboot, which can safely be done by pressing '''<Ctrl><Alt><Delete>'''. The machine will beep and start running the shutdown scripts.<br />
# If for some reason one or more of the shutdown scripts should die, and the computer stops the rebooting process, press the key combination again to ''force a reboot''. This not safe if the scripts haven't gotten around to unmount the local filesystems.<br />
# Final way out: Your computer doesn't obey and none of above methods seem to give any response. Here's a little trick that might help, not known to many Linux users! The kernel has a small userspace communication line opened, so even if the computer has crashed badly (I haven't tried this during kernel-panic, though, can anyone confirm?) you can make it reboot safely. This method ''is'' safe, but should be used '''''only if everything else fails'''''! Hold down '''<Ctrl>''', '''<Alt>''' and '''<PrtScrn/SysRq>'''. While holding down these, type the following letters - in order - '''R E I S U B'''. The computer will unmount any filesystems that are locally mounted, and safely bring down the system. If you have trouble remembering the letter combination; think '''''busier''''', only ''backwards''.<br />
<br />
=== How to find the UUID of a device ===<br />
* This is useful if changes are made to the partition table or a new hard drive is added to the computer.<br />
* When the UUID(s) change an error will be caused during boot.<br />
* Pressing <Ctrl>-D will allow the boot to continue but to fix the problem:<br />
-> Open fstab file:<br />
sudo gedit /etc/fstab<br />
-> In another terminal run this commmand: <br />
ls -l /dev/disk/by-uuid/ <br />
-> Or you can type this to list all of your devices:<br />
blkid<br />
<br />
* Compare the UUID's and any that are different in fstab from the list must be changed. The easiest way is copy and paste.<br />
* Some other things may have to be edited as well like the mount point, type (ext2, ext3, ntfs, etc) , options, dump, pass, etc.<br />
''For more help editing fstab look [http://ubuntuforums.org/showthread.php?t=283131 Here:]''<br />
<br />
* To list the UUID of a specific device:<br />
sudo vol_id -u device<br />
<br />
* Where device might be /dev/sdxy.<br />
'' Example: sudo vol_id -u /dev/sda1 ''<br />
<br />
=== Enable vim syntax highlighting ===<br />
The source of vi/vim command is vim-tiny package which does not support syntax highlighting. Install vim:<br />
sudo apt-get install vim<br />
Then open /etc/vim/vimrc and uncomment '''syntax on'''<br />
<br />
Replace<br />
"syntax on<br />
<br />
With<br />
syntax on<br />
<br />
=== HAL ===<br />
If you have problem failed to initialize HAL, and devices such as card reader,or shutdown problem, power meter doesn´t appear..please find this line in /etc/init.d/rc<br />
<br />
sudo vim /etc/init.d/rc<br />
find this line :<br />
CONCURRENCY=shell<br />
<br />
To fix this:<br />
<br />
sudo nautilus<br />
<br />
Navigate to /etc/<br />
look for the folder '''rc2.d'''<br />
rename '''s12hal''' to '''s13hal<br />
'''<br />
<br />
the problem was HAL loading before DBUS and causing such error.<br />
this should fiz the problem, if not<br />
<br />
sudo gedit /etc/init.d/rc<br />
<br />
and turn<br />
CONCURRENCY=shell to CONCURRENCY=none<br />
<br />
=== Enable Sirius Internet Radio for Firefox ===<br />
*Install [[#How to install VLC media player| VLC]]<br />
*Install the [https://addons.mozilla.org/en-US/firefox/addon/446 firefox media player connectivity plugin]<br />
<br />
Launch the player from [http://www.sirius.com/servlet/ContentServer?pagename=Sirius/Page&c=FlexContent&cid=1191942072317&flash=noflash| www.sirius.com]. After authenticating, you will now be able to select which stream to play. Selecting the stream will launch vlc.<br />
<br />
=== Remove unwanted language/locale files ===<br />
sudo apt-get install localepurge<br />
sudo localepurge<br />
<br />
=== Auto starting pidgin at login ===<br />
Goto System -> Preferences -> Sessions. Click Add. A popup window will appear. Set Name to "Pidgin" and Command to "/usr/bin/pidgin". Click OK. Make sure that it is enabled.<br />
<br />
=== sudo/gksu without password ===<br />
EDITOR=gedit gksu visudo<br />
Find "Defaults !lecture,tty_tickets,!fqdn" and replace by "Defaults timestamp_timeout=-1".<br />
<br />
=== Speed-up Ubuntu ===<br />
Open System -> Preferences -> Sessions and remove the startup programs that you do not need (e.g. Bluetooth Manager, Evolution Alarm Notifier, Restricted Driver Manager, Tracker, User folders update, Visual).<br />
<br />
Open System -> Preferences -> Appearance and make Visual Effects to None.<br />
<br />
Open System -> Administration -> Services and disable the services that you do not need (e.g. alsa-utils, bluetooth, brltty, hdparm, acpid, apmd, screen).<br />
<br />
=== How to change the USplash Screen on startup/shutdown ===<br />
<br />
When you add another Desktop Environment, the USplash screen may change (saying Kubuntu instead of Ubuntu). If you want to change it, do the following:<br />
<br />
sudo update-alternatives --config usplash-artwork.so<br />
<br />
This will bring up a list of installed USplash screens. Type the number that corresponds to the one you want and press Enter. Then type:<br />
<br />
sudo dpkg-reconfigure usplash<br />
<br />
Then reboot.<br />
<br />
== ''''' Guide Development ''''' ==<br />
<br />
'' Note: This section was taken from the Feisty Guide and edited appropriately.''<br />
<br />
Place ideas here to increase the look and performance of this guide.<br />
<br />
* Add a new section for Gnome Themes from http://art.gnome.org and KDE Themes from http://www.kde-look.org/.<br />
* Have entries under their headings in alphabetical order.<br />
* Try to keep the guide neat and clutter free.<br />
* Possible "Short Version" Table of contents without each "How to".<br />
* Add a [top] link to the end of each article.<br />
* If possible, include a 'find/search' function to easily access queries.<br />
** This can be done in Firefox with <Ctrl>-F.<br />
* instead of 'apt-get install', there could be the new Gutsy [http://www.ubuntugeek.com/apturl-protocol-handler-in-ubuntu-gutsy-gibbon.html apturl] feature for easier installation of software</div>Convicehttps://wiki.ubuntu.org.cn/index.php?title=Ubuntu:Gutsy/zh&diff=75356Ubuntu:Gutsy/zh2007-12-30T12:03:52Z<p>Convice:</p>
<hr />
<div>{{Translation}} {{From|http://ubuntuguide.org/Ubuntu:Gutsy}} {{Languages|Ubuntu:Gutsy}} {{Translator|zhan 译者2}}<br />
<br />
= ''''' Ubuntu 7.10 (Gutsy Gibbon) ''''' =<br />
<br />
'''Ubuntu Gutsy Gibbon, the successor of Feisty Fawn was released on Oct 18th, 2007. Please help test and perfect this guide.'''<br />
'''Ubuntu Gutsy Gibbon, Feisty Fawn 的后续版本,于 2007 年 10 月 18 日已经发布。请帮忙测试和完善这份指南'''<br />
<br />
This guide was started by [[User:Jiyuu0|Chua Wen Kiat]] (Kuala Lumpur, Malaysia). <br />
It is now being maintained by the [http://linux.edu.lv/index.php?newlang=english Linux Center] of [http://www.lu.lv/eng/ University of Latvia], and everyone else who is willing to contribute.<br />
<br />
这份指南由 [[User:Jiyuu0|Chua Wen Kiat]] (Kuala Lumpur, Malaysia). 发起。现在它由[http://www.lu.lv/eng/ Latvia 大学]的[http://linux.edu.lv/index.php?newlang=english Linux 中心]和所有愿意贡献的其他人们共同维护。<br />
<br />
This guide can be discussed at the official [http://www.ubuntuforums.org/forumdisplay.php?f=78 UbuntuGuide.org Forum] at ubuntuforums.org. Stop by and join the discussion. <br />
<br />
这份手册可以在官方论坛 ubuntuforums.org 的[http://www.ubuntuforums.org/forumdisplay.php?f=78 UbuntuGuide.org 论坛]<br />
讨论。加入讨论吧。<br />
<br />
== ''''' 前言 ''''' ==<br />
<br />
=== 关于 Gutsy ===<br />
<br />
* On October 18, 2007 Ubuntu 7.10 was released.<br />
* It was code named Gutsy Gibbon and is the successor to Ubuntu 7.04 Feisty Fawn (Feisty+1 or the very next release after Feisty)<br />
* Gutsy will be supported for 18 months on both desktops and servers.<br />
* Users requiring a longer support lifetime on servers may choose to continue using Ubuntu 6.06 LTS, with security support until 2011, rather than upgrade to or install 7.10.<br />
<br />
* 2007 年 10 月 18 日,Ubuntu 7.10 发布。<br />
* 它被命名为 Gutsy Gibbon,它是 Ubuntu 7.04 Feisty Fawn 的后续版本(Feisty +1 或紧接 Feisty 之后发布的版本)<br />
* Gutsy 将在桌面和服务器版本上提供 18 个月的支持<br />
* 要求更长期服务器版本支持的用户可以选择 Ubuntu 6.06 LTS ,而不是更新到 7.10, 因为 6.06 的安全支持直到 2011 年。<br />
<br />
=== 如何找出您正在使用的 Ubuntu 版本 ===<br />
<br />
* Read [[#General Notes]]<br />
*In Gutsy goto System -> Administration -> System Monitor -> System Tab<br />
<br />
or on all versions and derivatives of Ubuntu use this command:<br />
<br />
lsb_release -a<br />
<br />
* 读一下 [[#General Notes]]<br />
* 在 Gutsy 中,到系统->管理->系统监视器->系统标示 查看<br />
或者在所有的 Ubuntu 版本和衍生版本中,使用这个命令:<br />
<br />
lsb_release -a<br />
<br />
=== Ubuntu 的更新的版本 ===<br />
<br />
* Ubuntu uses a six month release cycle<br />
* These releases occur in April and October<br />
* The next release is scheduled for April 24, 2008 and will be Ubuntu 8.04 (Hardy Heron) which is Gutsy+1.<br />
* Hardy Heron will be a LTS (Long Term Support) release and will be supported with security updates for five years on the server and three years on the desktop.<br />
<br />
* Ubuntu 采用 6 个月的发行周期<br />
* 一般发布在 4 月和 10 月<br />
* 下一次的发布计划在 2008 年 4 月 24 日,并命名为 Ubuntu 8.04(Hardy Heron)即 Gutsy+1。<br />
* Hardy Heron 将是 LTS(长期支持)版本,将提供 5 年的服务器版本安全支持和 3 年的桌面版本支持。<br />
<br />
=== Ubuntu 的老版本 ===<br />
<br />
* '''[[Ubuntu:Feisty | 7.04 (Feisty Fawn)]]'''<br />
<br />
* '''[[Ubuntu:Edgy | 6.10 (Edgy Eft)]]'''<br />
<br />
* '''[[Ubuntu_dapper | 6.06 (Dapper Drake)]]'''<br />
<br />
If you are using an outdated version of Ubuntu, you should consider updating it to Gutsy. There have been considerable improvements to this version, and the updater used in Gutsy will ease transitions to future versions. If you are in a production environment, or if everything works perfectly for you, you may wish to stay with a Long-Term Support (LTS) version.<br />
<br />
如果您试用一个 Ubuntu 的过时的版本,您应该考虑将其升级到 Gutsy。 这个版本有相当多的改进,并且和将来的版本更加容易整合。如果您使用其作为一个生产环境,或您认为所有的事情都很完美,您可以考虑仍然使用长期支持版本(LTS)。<br />
<br />
*[http://www.ubuntu.com/getubuntu/upgrading Ubuntu 升级页面]<br />
<br />
* Dapper is latest LTS and the next version Gutsy+1 will be the next LTS released.<br />
<br />
*Read [https://lists.ubuntu.com/archives/ubuntu-devel-announce/2007-April/000276.html Introduction to Gutsy Gibbon] from April 2007<br />
<br />
* Dapper 是最新的 LTS 版本,Gutsy+1 的新版本将是下一个 LTS 版本。<br />
<br />
* 读一下从 2007 年 4 月开始的[https://lists.ubuntu.com/archives/ubuntu-devel-announce/2007-April/000276.html Gutsy Gibbon 简介] <br />
<br />
=== General Notes ===<br />
<br />
# 这是一个非官方的 Ubuntu 7.10 (Gutsy Gibbon) 初学者向导. 它与 Ubuntu和 Canonical 公司都没有关系.<br />
# 这个向导发自于官方论坛([http://www.ubuntuforums.org/forumdisplay.php?f=78 UbuntuGuide.org Forum] at ubuntuforums.org).欢迎参与讨论。<br />
# If you see a bluish box, this means you have to execute the commands in Terminal mode (Applications -&gt; Accesories -&gt; Terminal) or use the content of that box as mentioned in some other instructions.<br />
# 在终端模式,你也可以用“复制”“粘贴”来代替用键盘键入命令,这样往往可以有效的防止输入错误。(Ctrl+c=复制,Shift+Insert=粘贴)<br />
# "sudo" 表示 "'''s'''ubstitute '''u'''ser '''do'''". Sudo 需要你提供密码(密码不会在终端中回显). 你可以利用sudo代替另一个用户在计算机上操作-比如&nbsp; sudo -u peter &lt;命令&gt; 将会以peter的身份在计算机上执行此命令。<br><br />
# 欲获得更多关于命令的信息,请参阅手册页。例如,在终端中输入“man sudo”可以获得与sudo相关的信息。<br />
# 你也可以使用更新管理器来代替"apt-get"(系统-系统管理-更新管理器)<br />
# "apt-get"和"wget"都需要网络连接来下载安装和更新程序<br><br />
# 所以涉及 "aptitude"的选项都可以用"apt-get"替代.当然可以继续使用"aptitude",但是这可能会造成一些依赖性上的问题。<br><br />
# 可以点击右键选择“链接另存为”来下载文件,但必须保证文件的名字和拓展名都是正确的<br />
# 如果你有意向帮助Ubuntu本土化,请访问 https://launchpad.net/<br />
# 善待他人的理念永远和Ubuntu一起伴随着你...<br />
# ''如果使用的是64位的版本,请在“i386”用“amd64”代替''<br />
<br />
=== 外部链接申明 ===<br />
<br />
这份指南中的很多部分都有外部链接,这可以使这份指南更加精悍,然而Ubuntugide.org不能保证每个链接都是有效的。我们不能对本指南以外的一些拓展链接负责,如果你发现哪个链接是无效的,那请在此处报告问题,或者为我们修正那些指向错误的外部链接。因为有你,我们才能做的更加完美。<br />
<br />
==== ''关于链接出错'' ====<br />
<br />
''如果您发现某个链接是错误的或者无法找到相关信息,那请将此连接贴到此处,包括您是在哪段里找到此链接的。谢谢合作!''<br />
<br />
=== 关于Ubuntu以及官方的一些相关内容<br> ===<br />
<br />
==== Ubuntu 7.10的相关指导 ====<br />
<br />
* [http://www.ubuntu.com/ Ubuntu官方网站]<br />
* [http://www.ubuntu.com/products/whatisubuntu 官方介绍关于Ubuntu]<br />
* [http://ubuntuforums.org/ Ubuntu官方论坛]<br />
* [http://en.wikipedia.org/wiki/Ubuntu_(Linux_distribution) 维基百科: Ubuntu版本介绍 (Linux 发行版)]<br />
* [http://www.ubuntugeek.com/ Ubuntu Geek 网站包括很多关于Ubuntu 的指导性文章]<br />
* [http://www.ubuntutips.net/ Ubuntu小窍门]<br />
<br />
<br><br />
<br />
===== Ubuntu截图 =====<br />
<br />
[http://www.debianadmin.com/ubuntu-710-gutsy-gibbon-screenshots-tour.html Ubuntu 7.10 截图展示&nbsp;]<br />
<br />
==== Kubuntu 7.10的相关指导<br> ====<br />
<br />
* [http://www.kubuntu.org/ Kubuntu官方网站]<br />
* [http://www.kubuntuguide.org/ Kubuntuguide.org]<br />
* [http://www.kubuntu.org/docs/about-kubuntu/C/index.html 官方介绍关于Kubuntu]<br />
* [http://kubuntuforums.net/forums/index.php Kubuntu官方论坛]<br />
* [http://en.wikipedia.org/wiki/Kubuntu Wikipedia: Kubuntu]<br />
<br />
===== Kubuntu Screenshots =====<br />
<br />
[http://www.debianadmin.com/kubuntu-710-gutsy-gibbon-screenshots-tour.html Kubuntu 7.10 Screenshots Gallery]<br />
<br />
==== Xubuntu 7.10 Guides and Links ====<br />
<br />
* [http://www.xubuntu.org/ Xubuntu Official Website]<br />
* [http://en.wikipedia.org/wiki/Xubuntu Wikipedia: Xubuntu]<br />
* [http://www.xubuntuguide.org Xubuntuguide.org]<br />
<br />
===== Xubuntu Screenshots =====<br />
<br />
[http://www.debianadmin.com/xubuntu-710-gutsy-gibbon-screenshots-tour.html Xubuntu 7.10 Screenshots Gallery]<br />
<br />
==== Edubuntu 7.10 Guides and Links ====<br />
<br />
[http://www.edubuntu.org/ Offical Edubuntu Website] [http://en.wikipedia.org/wiki/Edubuntu Wikipedia: Edubuntu]<br />
<br />
==== Gobuntu 7.10 Guides and Links ====<br />
<br />
[http://en.wikipedia.org/wiki/Gobuntu Wikipedia: Gobuntu]<br />
<br />
=== 翻译和本地化 ===<br />
<br />
Chinese, Japanese, Portuguese and most European languages have better support in Ubuntu than any other languages. If your language do not have enough support, then you can help Ubuntu by translating it in your preferred language. To translate, visit https://translations.launchpad.net/ubuntu and login (register if not already registered). Choose your preferred language and start translating.<br />
<br />
Ubuntu对中文,日文,葡萄牙文及其它的欧洲语言的支持比对其它语言的支持要好。如果你的语言没有足够的支持的话,那么您可以帮助Ubuntu翻译成你喜欢的语言。翻译请访问 [https://translations.launchpad.net/ubuntu translations.launchpad.net/ubuntu] 并登录(如果没有注册的话请先注册)。选择你喜欢的语言并开始翻译。<br />
<br />
== ''''' Updates and Upgrades and Installing Software''''' ==<br />
<br />
=== How to add extra repositories ===<br />
''Work in Progress''<br />
<br />
==== Menu Method ====<br />
*Choose distribution-friendly repositories. These are part of the Ubuntu distribution system. This is the recommended method.<br />
<br />
System-->Administration-->Software Sources<br />
<br />
Check the repositories you think you will need (main, universe, restricted, multiverse). You probably won't need the 'sources' repository.<br />
<br />
*Add any third-party repositories. Such repositories are not monitored in any way. Some are quite popular, however. Use any third-party repository at your own risk. <br />
<br />
System-->Administration-->Software Sources-->Third-party software-->Add<br />
<br />
Add the name of your repository. In this example, we will use Medibuntu, a popular third-party repository not affiliated with Ubuntu in any way.<br />
<br />
<i>APT line:</i> deb http://packages.medibuntu.org/ gutsy free non-free<br />
<br />
*Download any needed gpg keys and add them to the keylist. This key verifies the repository to your system. The Medibuntu repository (not affiliated with Ubuntu) example is shown:<br />
wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add -<br />
<br />
==== Manual Method ====<br />
<br />
* Create a backup of your current list of sources. <br />
sudo cp -p /etc/apt/sources.list /etc/apt/sources.list_backup<br />
<br />
* Open the list of sources in a text editor <br />
<br />
Ubuntu users: <br />
sudo gedit /etc/apt/sources.list<br />
<br />
* Replace everything with the following lines <br />
<br />
:To use your local mirror you can add "''cc.''" before ''archive.ubuntu.com'' (cc = your country code) <br />
:e.g. ''<nowiki>deb http://lv.archive.ubuntu.com/ubuntu gutsy main restricted universe multiverse</nowiki>''<br />
<br />
deb http://us.archive.ubuntu.com/ubuntu/ gutsy main restricted<br />
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy main restricted<br />
<br />
## Major bug fix updates produced after the final release of the<br />
## distribution.<br />
<br />
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted<br />
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted<br />
<br />
##Universe<br />
<br />
deb http://us.archive.ubuntu.com/ubuntu/ gutsy universe<br />
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy universe<br />
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates universe<br />
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates universe<br />
<br />
## Multiverse<br />
<br />
deb http://us.archive.ubuntu.com/ubuntu/ gutsy multiverse<br />
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy multiverse<br />
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates multiverse<br />
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates multiverse<br />
<br />
## Backports<br />
<br />
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse<br />
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse<br />
<br />
## Canonical Partner Repository <br />
<br />
deb http://archive.canonical.com/ubuntu gutsy partner<br />
deb-src http://archive.canonical.com/ubuntu gutsy partner<br />
deb http://security.ubuntu.com/ubuntu gutsy-security main restricted<br />
deb-src http://security.ubuntu.com/ubuntu gutsy-security main restricted<br />
deb http://security.ubuntu.com/ubuntu gutsy-security universe<br />
deb-src http://security.ubuntu.com/ubuntu gutsy-security universe<br />
deb http://security.ubuntu.com/ubuntu gutsy-security multiverse<br />
deb-src http://security.ubuntu.com/ubuntu gutsy-security multiverse<br />
<br />
## PLF REPOSITORY (Unsupported. May contain illegal packages. Use at own risk.)<br />
deb http://packages.medibuntu.org/ gutsy free non-free<br />
<br />
* Save the edited file <br />
<br />
wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add -<br />
sudo apt-get update<br />
<br />
=== 怎样从Feisty 升级到 Gutsy ===<br />
<br />
* [http://www.ubuntugeek.com/upgrade-ubuntu-704-feisty-fawn-to-ubuntu-710-gutsy-gibbon.html 一步一步地按照屏幕显示的升级向导把Ubuntu Feisty 升级到 Gutsy]<br />
<br />
=== How to edit Automatic Updates ===<br />
<br />
*Enable automatic updates from the menu:<br />
<br />
System-->Administration-->Software Sources-->Updates<br />
<br />
Select Important Security Updates and Recommended Security Updates and any other desired updates.<br />
Choose frequency of updates.<br />
<br />
=== How to manually update Ubuntu ===<br />
<br />
*Read [[#General Notes]]<br />
*Read [[#How to add extra repositories]]<br />
<br />
*From the command line:<br />
use http://www.ubuntu-nl.org/source-o-matic/ page to generate the /etc/apt/sources.list file<br />
<br />
take a backup of your existing /etc/apt/sources.list file<br />
<br />
create a new /etc/apt/sources.list file from the generated page available on the browser<br />
<br />
now run the following commands<br />
<br />
sudo apt-get update<br />
sudo apt-get upgrade<br />
sudo apt-get dist-upgrade<br />
<br />
*From the menu:<br />
<br />
System -> Administration -> Update Manager<br />
<br />
== ''''' Add-on Applications ''''' ==<br />
<br />
=== Miscellaneous Applications ===<br />
'' The application in this section need a home. If Editors have the time, please place these apps in an appropriate category. If the category doesn't exist then make it. Destroy this message when complete. Thanks. --[[User:KrazyPenguin|KrazyPenguin]] 06:16, 27 October 2007 (EEST)''<br />
<br />
==== Hotwire - Graphical terminal for Ubuntu ====<br />
If you want graphical terminal for Ubuntu check this Very Useful<br />
*[http://www.ubuntugeek.com/hotwire-graphical-terminal-for-ubuntu.html Hotwire Installation Guide]<br />
==== How to install Epiphany web browser in Ubuntu ====<br />
If you want to How to install Epiphany web browser in Ubuntu follow this procedure<br />
*[http://www.ubuntugeek.com/how-to-install-epiphany-web-browser-in-ubuntu.html Epiphany web browser in Ubuntu]<br />
==== Midori - a lightweight web browser in Ubuntu ====<br />
If you want to How to install Midori web browser in Ubuntu follow this procedure<br />
*[http://www.ubuntugeek.com/midori-a-lightweight-web-browser.html Midori web browser in Ubuntu]<br />
<br />
==== apturl - protocol handler in Ubuntu Gutsy Gibbon ====<br />
If you want to install ubuntu package from web browser here is simple tool<br />
*[http://www.ubuntugeek.com/apturl-protocol-handler-in-ubuntu-gutsy-gibbon.html apturl Setup guide]<br />
==== sysvconfig - utility for configuring init script links ====<br />
sysvconfig - utility for configuring init script links,service command in ubuntu<br />
*[http://www.ubuntugeek.com/sysvconfig-utility-for-configuring-init-script-links.html sysvconfig - utility for configuring init script links]<br />
==== Howto Install qBittorrent in Ubuntu Gutsy ====<br />
sysvconfig - utility for configuring init script links,service command in ubuntu<br />
*[http://www.ubuntugeek.com/howto-install-qbittorrent-in-ubuntu-gutsy.html Howto Install qBittorrent in Ubuntu Gutsy]<br />
<br />
==== Enable Drag and Drop capabilities to aMSN ====<br />
*[http://www.ubuntugeek.com/how-to-enable-drag-and-drop-capabilities-to-amsn.html Enable Drag and Drop capabilities to aMSN ]<br />
<br />
==== Mount/Unmount .iso Images in oneclick ====<br />
*[http://www.ubuntugeek.com/easy-way-of-mountunmount-iso-images-in-ubuntu.html Mount/Unmount .iso Images in oneclick in Ubuntu]<br />
==== Startup Manager ====<br />
StartUp Manager - change settings in Grub, Grub2 and Usplash<br />
*[http://www.ubuntugeek.com/startup-manager-change-settings-in-grub-grub2-and-usplash.html change settings in Grub, Grub2 and Usplash]<br />
<br />
==== Adobe Reader Gutsy amd64/i386 ====<br />
<br />
*[http://www.ubuntugeek.com/how-to-install-adobe-pdf-reader-811-with-plug-in-for-mozilla-firefox-in-gutsy-gibbon.html Acrobat Reader 8 with firefox plugins step by step installation guide]<br />
First<br />
echo "deb http://packages.medibuntu.org/ gutsy free non-free" | sudo tee -a /etc/apt/sources.list<br />
<br />
Second<br />
wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add - && sudo apt-get update<br />
<br />
Third we add plug ins and Reader<br />
sudo aptitude install acroread acroread-plugins acroread-escript<br />
<br />
You can also install the plug-in for Firefox<br />
sudo aptitude install mozilla-acroread<br />
<br />
Enjoy Adobe Reader<br />
<br />
==== OpenOffice add ons ====<br />
Opening .docx files in OpenOffice for Ubuntu (This will work with other distros)<br />
<br />
First we need to download the converter, it can be found here> [http://download.novell.com/SummaryFree.jsp?buildid=ESrjfdE4U58%7E]<br />
Download the "odf-converter-1.0.0-5.i586.rpm"<br />
<br />
Now install alien, if you have not yet<br />
<br />
sudo apt-get install alien<br />
<br />
Then we need to convert it, we do not want a .deb package for this, so we use the -ct switch not the -k<br />
The -ct converts it to a .tgz<br />
<br />
sudo alien -ct odf-converter-1.0.0-5.i586.rpm<br />
<br />
Once it is converted you need to unpack it<br />
<br />
tar xvf odf-converter-1.0.0.tgz<br />
<br />
Now there should be three dirs on you desktop or where ever you un tared these.<br />
<br />
You now need to run<br />
<br />
sudo cp usr/lib/ooo-2.0/program/OdfConverter /usr/lib/openoffice/program/<br />
<br />
sudo cp usr/lib/ooo-2.0/share/registry/modules/org/openoffice/TypeDetection/Filter/MOOXFilter_cpp.xcu /usr/lib/openoffice/share/registry/modules/org/openoffice/TypeDetection/Filter<br />
<br />
sudo cp usr/lib/ooo-2.0/share/registry/modules/org/openoffice/TypeDetection/Types/MOOXTypeDetection.xcu /usr/lib/openoffice/share/registry/modules/org/openoffice/TypeDetection/Types<br />
<br />
Then you are done, you can now open and edit .docx files '''ONLY''' I will post the others when I find them.<br />
<br />
There is an alternative to installing the "odf converter" on Ubuntu 7.10 (Gutsy). The 3 simple steps are as follows:<br />
<br />
(make sure you are logged in as root first, so from the terminal, type '''sudo su -''' and type in your password when prompted) <br />
<br />
Step 1: echo "deb http://ubuntu.org.ua/ getdeb/" >>/etc/apt/sources.list<br />
<br />
Step 2: apt-get update<br />
<br />
Step 3: apt-get install odf-converter<br />
<br />
I did the 3 steps above and got it working on my machine. Please do let me know if anyone is having any problems with it.<br />
<br />
====Genealogical Research and Analysis Management Program (Gramps)====<br />
GRAMPS, the Genealogical Research and Analysis Management Programming System, is an Open Source genealogy program written in Python, using the GTK/GNOME interface. GRAMPS has the ability to import GEDCOM files that are used in such programs as FamilyTree Maker for Windows and can produce reports in various formats such as the popular ABIWord and OpenOffice.org formats as well as HTML and PDF.<br />
sudo apt-get install gramps<br />
<br />
=== 桌面 ===<br />
<br />
==== Howto Tweak Ubuntu System ====<br />
<br />
If you want to tweak ubuntu check this<br />
<br />
* [http://www.ubuntugeek.com/howto-tweak-ubuntu.html Howto Tweak Ubuntu System]<br />
<br />
==== AMOR - a creature for your desktop ====<br />
<br />
If you want to add some fun to your ubuntu desktop this is for you<br />
<br />
* [http://www.ubuntugeek.com/amor-a-creature-for-your-desktop.html AMOR - a creature for your desktop]<br />
<br />
==== Advanced Desktop Effects (Compiz Fusion) ====<br />
<br />
Ubuntu 7.10 Gutsy Gibbon comes shipped with Compiz Fusion pre-installed, which means less tinkering with sensitive configuration files. For most part, Compiz needs proprietary drivers for your graphics card to work properly, so make sure you install those if needed.<br />
<br />
To enable desktop effects, turn them on by navigating your GNOME-menu to '''System &gt; Preferences &gt; Appearance'''. Under the tab ''Visual Effects'' you'll find three settings; ''None'', ''Normal'' and ''Extra''. To turn Compiz on, choose one of the two latter.<br />
<br />
If you wish to customize your Compiz options and plugins, such as animations and Desktop Cube, first install the configuration tool:<br />
<br />
sudo apt-get install [http://packages.ubuntu.com/gutsy/x11/compizconfig-settings-manager compizconfig-settings-manager] <br />
<br />
Then either choose the now available '''''Custom''''' and '''''Preferences''''' from the above ''Visual Effects'' menu, or start the settings manager via the menu '''System &gt; Preferences &gt; Advanced Desktop Effects Settings'''. You can also start the application from the terminal or run dialog ('''ALT + F2'''), using the command '''ccsm'''.<br />
<br />
==== ATI users and Compiz ====<br />
<br />
Some ATI cards don't need their proprietary drivers to work with Compiz as the open-sourced driver ('''radeon''') also has support for 3D acceleration. However, the open-sourced driver isn't as fast as the closed-sourced ('''fglrx''') one, so if you need the proprietary one you'll have to tinker around in the terminal a little.<br />
<br />
<br> 1. After you've installed the driver, either through the proprietary manager or directly from [http://ati.amd.com/support/driver.html ATI's site], you'll have to setup the Xorg configuration file to work with your new driver. Always remember to back up the original file before altering, in case something goes wrong. Open up a terminal and enter:<br />
<br />
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.bak<br />
sudo aticonfig --initial --input=/etc/X11/xorg.conf<br />
<br />
This will disable the default '''radeon''' driver and replace it with ATI's own.<br />
<br />
<br> 2. Now, let's tell Compiz not to care about drivers that are blacklisted:<br />
<br />
echo SKIP_CHECKS="yes" &gt;&gt; $HOME/.config/compiz/compiz-manager<br />
<br />
Alternatively, you could whitelist the driver, which is a much prettier solution. Run this command to edit the Compiz startup-script:<br />
<br />
gksudo gedit /usr/bin/compiz<br />
<br />
Search for '''Driver whitelist''' and add '''''fglrx''''' to the end of the line, like this:<br />
<br />
# Driver whitelist<br />
WHITELIST="nvidia intel ati radeon i810 fglrx"<br />
<br />
<br> 3. Reboot your computer, login and enable Compiz as mentioned above '''et voilà'''! Behold Compiz and ATI hugging.<br />
<br />
==== Live system monitoring ====<br />
<br />
sudo apt-get install netspeed<br />
<br />
Right click on the free area of the upper panel and select "Add to Panel...". Add "System Monitor" and "Network Monitor". Right Click on System Monitor and select Preferences. Add the monitor resources that you want to monitor.<br />
<br />
==== Desktop session recording ====<br />
<br />
It is possible to record the whole desktop session along with mouse pointer and sound system. It is a very useful tool for video screenshot as ordinary still picture screenshots generated by pressing Print Screen cannot demonstrate everything. Three applications that can do this for you are Istanbul, Wink and gtk-recordMyDesktop.<br />
<br />
====== Istanbul ======<br />
<br />
sudo apt-get install istanbul<br />
<br />
====== Wink ======<br />
<br />
sudo apt-get install wink<br />
<br />
====== gtk-recordMyDesktop ======<br />
<br />
sudo apt-get install gtk-recordmydesktop<br />
<br />
==== International Clock Gnome Applet (OpenSuse contribution) ====<br />
<br />
To switch to the new international clock applet download it from [http://brainstormingproject.free.fr/intlclock_1.0-1ubuntu0_i386.deb Here] <!--{11987330273590} --> then install it with dpkg. <!--{11987330273591} --><br />
<br />
Remove the old clock gnome applet right-clicking on it and then add a new applet to the panel with a right-click too over the empty place:<br />
<br />
&gt;Add to panel...&gt;Miscellaneous&gt;International Clock&gt;Add<br />
<br />
You got it.<br />
<br />
Add World Map and choose World locations using its Preferences menu<br />
<br />
=== 备份 ===<br />
<br />
Ubuntu Backup Options<br />
If you want to backup your Ubuntu Desktop Use Sbackup<br />
<br />
* [http://www.ubuntugeek.com/backup-and-restore-your-ubuntu-system-using-sbackup.html Sbackup Installation and setup guide]<br />
<br />
rdiff-backup<br />
Use rdiff-backup ubuntu<br />
<br />
* [http://www.ubuntugeek.com/backup-ubuntu-using-rdiff-backup.html rdiff-backup Setp Tutorial]<br />
<br />
=== 游戏 ===<br />
<br />
==== Frozen Bubble ====<br />
<br />
To install Frozen Bubble simply run:<br />
<br />
sudo apt-get install frozen-bubble<br />
<br />
or use Synaptic Package Manager under System &gt; Administration menu, to locate and install the package.<br />
<br />
==== How to solve Sudoku ====<br />
<br />
There is a simple [http://tamal.nath.googlepages.com/sudoku.pl Perl script] for solving gnome-sudoku. It does not support trial-and-error.<br />
<br />
==== Super Nintendo Emulator (ZSNES) 1.510 for i386/AMD64 ====<br />
<br />
* Read [[|#General Notes]]<br />
<br />
''For support or questions see http://ubuntuforums.org/showthread.php?t=588744''<br />
<br />
''ZSNES 1.51 is included in the Official Gutsy i386 repos. However, there is no official AMD64 version, and the i386 version is known to have issues in Gutsy (see http://ubuntuforums.org/showthread.php?t=571666). There is a workaround available for i386 users who are experiencing this error (see http://ubuntuforums.org/showpost.php?p=3604026&amp;postcount=22).''<br />
<br />
* Add a 3rd Party Repository<br />
<br />
echo "deb http://packages.dfreer.org gutsy main" | sudo tee -a /etc/apt/sources.list<br />
wget http://packages.dfreer.org/7572013D.gpg -O- | sudo apt-key add -<br />
sudo apt-get update<br />
<br />
* Install using one of the lines below<br />
<br />
sudo apt-get install zsnes32 #for amd64 users<br />
sudo apt-get install zsnes #for everyone else<br />
<br />
* Applications &gt; Games &gt; zsnes or zsnes32<br />
<br />
==== Playstation Emulator (pSX) 1.13 for i386/AMD64 ====<br />
<br />
* Read [[|#General Notes]]<br />
<br />
''For support or questions see http://ubuntuforums.org/showthread.php?t=394097''<br />
<br />
* Add a 3rd Party Repository<br />
<br />
echo "deb http://packages.dfreer.org gutsy main" | sudo tee -a /etc/apt/sources.list<br />
wget http://packages.dfreer.org/7572013D.gpg -O- | sudo apt-key add -<br />
sudo apt-get update<br />
<br />
* Install using one of the lines below<br />
<br />
sudo apt-get install psx32 #for amd64 users<br />
sudo apt-get install psx #for everyone else<br />
<br />
* Applications &gt; Games &gt; pSX or pSX32<br />
<br />
==== KDE games ====<br />
<br />
To install the games from KDE 3 (recommended for Kubuntu users), install the package kdegames. This can be done with:<br />
<br />
sudo apt-get install kdegames<br />
<br />
==== UrbanTerror 4.0 ====<br />
<br />
* UrbanTerror 4.0 is a Multi-player First Person Shooter. The Game uses the open source quake 3 engine and features many real weapons and free to use servers for multi-player functionality.<br />
<br />
''More information can be found at [http://www.urbanterror.net UrbanTerror]''<br />
<br />
* You can manually download and install UrbanTerror from the following webpage [http://www.urbanterror.net/page.php?6 UrbanTerror_Download]<br />
* Or you can enjoy an automated install by downloading and executing the linux install script from either of the following links: [http://89.106.68.26/linux/urbanterror4/urt40-linux-installer.sh urt40-linux-installer.sh_1] or [http://vlaai.snt.utwente.nl/pub/games/urbanterror/urt40-linux-installer.sh urt40-linux-installer.sh_2]<br />
<br />
* After downloading the script open Terminal into your download directory then make the script executable with the following command:<br />
<br />
sudo chmod +x urt40-linux-installer.sh<br />
<br />
* Now double click on the script to execute and follow the directions<br />
* The install will take awhile as the script executes a download of the necessary files which are about 541MB<br />
* After the install you will have a nice UrbanTerror icon on your desktop (unless you installed as root)<br />
<br />
''This easy install script is courtesy of Nexu from the UrbanTerror Forums.''<br />
<br />
=== CD/DVD ===<br />
==== How to rip a DVD video ====<br />
dvd::rip is a full featured DVD copy program written in Perl. It provides an easy to use but feature-rich Gtk+ GUI to control almost all aspects of the ripping and transcoding process. It uses the widely known video processing swissknife transcode and many other Open Source tools.<br />
sudo apt-get install dvdrip<br />
<br />
==== How to burn video DVD ====<br />
dvdauthor is a program that will generate a DVD movie from a valid mpeg2 stream that should play when you put it in a DVD player.<br />
sudo apt-get install dvdauthor<br />
<br />
==== How to burn a CD/DVD ====<br />
nautilus-cd-burner is a basic and pre-installed program to write a CD or DVD. Serpentine is a pre-installed audio CD creator program. Serpentine can convert flac and mp3 on the fly, when making audio cds.<br />
[http://www.nero.com/ena/linux3.html nerolinux] is a non-free CD/DVD/Blu-Ray/HD-DVD recorder. k3b is a great CD/DVD writing tool for KDE (ideal for Kubuntu users). But if you are looking for GTK/Gnome alternatives, then [http://packages.ubuntu.com/gutsy/gnome/brasero brasero], [http://packages.ubuntu.com/gutsy/otherosfs/gcdw cdw/gcdw], [http://packages.ubuntu.com/gutsy/sound/gcdmaster gcdmaster], [http://packages.ubuntu.com/gutsy/gnome/graveman graveman] and [http://packages.ubuntu.com/gutsy/gnome/gnomebaker gnomebaker] might impress you.<br />
<br />
[http://packages.ubuntu.com/gutsy/otherosfs/dvdisaster dvdisaster] provides a margin of safety against data loss on CD and DVD media caused by scratches or aging media. It creates error correction data which is used to recover unreadable sectors if the disc becomes damaged at a later time.<br />
<br />
=== 互联网 ===<br />
<br />
==== Browser Plug-ins ====<br />
<br />
Ubuntu automatically installs plug-ins required to browse a site in Firefox. But if you want to install plug-ins run the following in Terminal:<br />
<br />
For Java plug-in:<br />
<br />
sudo apt-get install sun-java6-plugin<br />
<br />
For Flash plug-in:<br />
<br />
sudo apt-get install flashplugin-nonfree<br />
<br />
Or if you want to support the open source flash plugin:<br />
<br />
sudo apt-get install mozilla-plugin-gnash<br />
<br />
For VLC plug-in (automatically installs VLC also):<br />
<br />
sudo apt-get install mozilla-plugin-vlc<br />
<br />
For MPlayer plug-in (automatically installs MPlayer also):<br />
<br />
sudo apt-get install mozilla-mplayer<br />
<br />
For Real player plug-in (automatically installs helix-player):<br />
<br />
sudo apt-get install mozilla-helix-player<br />
<br />
For kaffeine plug-in (automatically installs kaffeine also):<br />
<br />
sudo apt-get install kaffeine-mozilla<br />
<br />
For image-zoom plug-in (to zoom images in a page):<br />
<br />
sudo apt-get install mozilla-imagezoom<br />
<br />
For adblock plug-in (to block ads in a web page):<br />
<br />
sudo apt-get install mozilla-firefox-adblock<br />
<br />
Gutsy includes the option to add extensions to Firefox through the Ubuntu repositories. The option to add these extensions is included by default. To see and add Ubuntu Add-ons:<br />
<br />
* In Firefox, Go to Tools &gt; Add-ons<br />
* Click "Get Ubuntu Addons"<br />
* To see all available add-ons, click the list next to "Show:" and choose "All Available Applications"<br />
* Choose whichever add-ons you want, and click "Apply Changes"<br />
* You can see which add-ons you've installed in the normal Firefox add-on box.<br />
<br />
(Note: All Ubuntu add-ons are also available through the Synaptic package manager.)<br />
<br />
===== Shockwave =====<br />
<br />
''There is no version of Shockwave for Ubuntu/Linux but WINE can be used to run it.'' ''This method will result in 2 Firefox Browsers installed on the computer.'' ''Only use the WINE version when using a website that requires it.'' ''The native version of Firefox will give better computer performance, so it should used in all other occurrences.''<br />
<br />
* Install WINE<br />
* Download and install Firefox for Windows<br />
* Download and install Shockwave for Windows<br />
<br />
==== Download Manager (Downloader for X) ====<br />
<br />
To install Downloader for X simply run:<br />
<br />
sudo apt-get install d4x<br />
<br />
or use Synaptic Package Manager under System &gt; Administration menu, to locate and install the "d4x" package.<br />
<br />
==== FTP client (FileZilla) ====<br />
<br />
FileZilla is a powerful FTP client that came from windows enviroment. Reaching its third version it became cross-platform and is available through the Ubuntu Gutsy Repositories.<br />
<br />
To install FileZilla FTP client simply run:<br />
<br />
sudo apt-get install filezilla<br />
<br />
or use Synaptic Package Manager under System &gt; Administration menu, to locate and install the "filezilla" package.<br />
<br />
==== Configuring Evolution for Gmail ====<br />
<br />
Visit http://mail.google.com/mail/ and click settings (should be in top right corner). Select Forwarding and POP/IMAP.<br />
<br />
* If you want to use POP, select either "Enable POP for all mail (even mail that's already been downloaded)" or "Enable POP only for mail that arrives from now on".<br />
* If you want to use IMAP, select "Enable IMAP".<br />
<br />
Save changes.<br />
<br />
Open Evolution from Applications -&gt; Internet -&gt; Evolution Mail. If no mail account has been created before, a mail account setup wizard will automatically be opened. Otherwise open it from Edit -&gt; preferences -&gt; Mail Accounts -&gt; Add. Click Forward. Enter your email address for Gmail (including @gmail.com). Click Forward.<br />
<br />
* If you have enabled POP from Gmail set "Server Type" to POP, "Server" to pop.gmail.com, and "Use Secure Connection" to "SSL encryption".<br />
* If you have enabled IMAP from Gmail, set "Server Type" to IMAP, "Server" to imap.gmail.com, and "Use Secure Connection" to "SSL encryption".<br />
<br />
Click Forward. Click Forward. Set "Server" to smtp.gmail.com, and "Use Secure Connection" to "SSL encryption". Click Forward. Click Forward. Click Apply.<br />
<br />
Note that IMAP support for GMAIL is being rolled-out currently (Oct. 2007) but is not available to everyone with a GMAIL account yet. So use POP until IMAP is available for every user.<br />
<br />
==== SwiftFox ====<br />
<br />
Swiftfox is the Firefox web browser, but built with optimizations to increase speed on specific CPU types. It is compatible with all Firefox extensions and themes, and uses the same settings location as Firefox, so you can use both transparently.<br />
<br />
Instructions from [http://getswiftfox.com/debian.htm getswiftfox.com]<br />
<br />
* Add the Swiftfox repository<br />
<br />
sudo gedit /etc/apt/sources.list<br />
<br />
* Add this line at the bottom<br />
<br />
deb http://getswiftfox.com/builds/debian unstable non-free<br />
<br />
* Update apt sources<br />
<br />
sudo apt-get update<br />
<br />
* Check your CPU compatibility [http://getswiftfox.com/proc.htm here]<br />
* Install your version of Swiftfox<br />
<br />
sudo apt-get install swiftfox-pentium4<br />
<br />
* Run with<br />
<br />
Programs &gt; Internet &gt; Swiftfox<br />
<br />
* There is also an [[http://www.getswiftfox.com/installer.htm installer]] available that is distro independent. It is a script that downloads and installs Swiftfox in the /opt directory and attempts to use existing Firefox plugins. The installer is probably the best way for most non-Ubuntu and non-Debian users to install Swiftfox.<br />
<br />
==== Azureus (Java BitTorrent client) ====<br />
<br />
The simplest way to install Azureus is:<br />
<br />
sudo apt-get install [http://packages.ubuntu.com/gutsy/net/azureus azureus] <br />
<br />
But it has lots of dependencies. An alternate method is discussed [http://azureus.sourceforge.net/howto_linux.php here]. Additionally you can create a file /usr/share/applications/Azureus.desktop containing the following lines to make it appear in the main menu:<br />
<br />
[Desktop Entry]<br />
Encoding=UTF-8<br />
Type=Application<br />
Terminal=false<br />
Name=Azureus<br />
Exec=/usr/local/azureus/azureus<br />
Comment=Java BitTorrent client<br />
Categories=Application;Network;<br />
MimeType=application/x-bittorrent;<br />
Icon=/usr/local/azureus/Azureus.png<br />
<br />
(here it is assumed that azureus is installed in /usr/local directory)<br />
<br />
Update: A brand-new Azureus package is now available in gutsy-backports, which is highly preferable to the version in the main repositories. It fixes many stability problems and is compiled using icedtea/Java 7. By the time you read this, it may be available in the main repositories. Therefore you might want to make sure you have the gutsy-backports repository enabled before installing azureus via apt-get.<br />
<br />
==== Deluge (A lightweight BitTorrent client written in python) ====<br />
<br />
If you want a client with lower memory and CPU usage than Azureus you might want to try out Deluge. However, due to stability problems with the version available in the [http://packages.ubuntu.com/gutsy/net/deluge-torrent Ubuntu repository], it's probably better to install the latest version using the handy Gutsy-specific package from [http://deluge-torrent.org/downloads-ubuntu the official Deluge website]. To install, just click on the debian package for your version and architecture ('''i386''' for 32-bit systems and '''x86_64''' for 64-bit systems) and choose to run it with GDebi package installer.<br />
<br />
==== DC++ client (Linuxdcpp) ====<br />
<br />
* Install:<br />
<br />
sudo apt-get install linuxdcpp<br />
<br />
* Then go<br />
<br />
Main Menu-&gt;Intenet-&gt;DC++<br />
<br />
=== 多媒体播放器 ===<br />
<br />
==== 怎样安装 Mplayer 和 Multimedia Codecs(解码器) ====<br />
<br />
&nbsp;&nbsp; 安装 mplayer 和 codecs的简单向导<br />
<br />
* [http://www.ubuntugeek.com/install-mplayer-and-multimedia-codecs-libdvdcss2w32codecs-in-ubuntu-710-gutsy-gibbon.html Mplayer 和 Multimedia Codecs的安装指导手册]<br />
<br />
* 从[http://sourceforge.net/project/showfiles.php?group_id=185512 这里] 下载 [http://smplayer.sourceforge.net/ SMPlayer] (MPlayer的一个很棒的前端) 然後双击安装它。 smplayer这个前端也可以在软件包管理器中安装。<br />
<br />
===== &nbsp; 关于64位版本 Mplayer 对 wmv9 格式支持问题<br> =====<br />
<br />
&nbsp;&nbsp;&nbsp; AMD64版本的Mplayer不能正确的播放wmv9格式的文件。 要播放wmv9,你需要安装32位版本的mplayer, 和所有需要的解码器.。相较于我新安装的Gutsy,我不需要额外安装它所依赖的库文件,这让配置mplayer的工作简单多了。这就是说,做完这些步骤後你就可以随时观赏wmv9的文件了。<br />
<br />
'''下载&nbsp; mplayer32 for Edgy 的版本 (被证明能稳定地工作) 放到临时的文件夹中。'''<br />
<br />
mkdir mplayer32temp<br />
cd mplayer32temp<br />
wget http://folk.ntnu.no/grannas/debs/mplayer32_20070130-1_amd64.deb<br />
<br />
'''解开你刚才下载的这个压缩包,放到合适的地方''' ''(按 'n'当 问你是否要为文件更换位置)''<br />
<br />
sudo dpkg -x mplayer32_20070130-1_amd64.deb ./<br />
sudo mv -i usr/bin/* /usr/bin/<br />
sudo mv -i usr/lib32/* /usr/lib32/<br />
<br />
'''从mplayerrhq 获取最新的 win32 codecs (下面命令中是10月7日版本, 2007), 解压缩然後安装''' ''(同样, 在问到更换位置时按'n' )''<br />
<br />
wget http://www3.mplayerhq.hu/MPlayer/releases/codecs/essential-20071007.tar.bz2<br />
tar jxfv essential-20071007.tar.bz2<br />
sudo mv -i essential-20071007/* /usr/lib/win32/<br />
<br />
'''播放 wmv9 影片.(享受它)'''<br />
<br />
mplayer32 foobar.wmv<br />
<br />
<br><br />
<br />
==== 怎样安装 amaroK 多媒体播放器 ====<br />
<br />
* 注意: KDE 环境下, Amarok 已经默认安装 。<br />
<br />
sudo apt-get install amarok<br />
<br />
* 从菜单启动:<br />
<br />
Applications -&gt; Sound &amp; Video -&gt; amaroK<br />
<br />
====== 怎样卸载 amaroK ======<br />
<br />
sudo apt-get --purge autoremove amarok<br />
<br />
====怎样获得MP3文件播放时的鼠标滑过预览 ====<br />
<br />
sudo apt-get install mpg321<br />
sudo apt-get install ubuntu-restricted-extras<br />
sudo apt-get install pulseaudio<br />
sudo apt-get install pulseaudio-esound-compat<br />
sudo apt-get install libasound2-plugins<br />
<br />
这个方法可能会破坏Skype软件的声音系统<br />
<br />
你也能通过下面的步骤实现鼠标滑过预览:<br />
<br />
sudo apt-get install mpg321<br />
sudo apt-get install mpg123-esd<br />
sudo apt-get install vorbis-tools<br />
sudo apt-get install esound<br />
sudo apt-get install ubuntu-restricted-extras<br />
<br />
这样系统中的Skype会保持正常功能<br />
<br />
==== 怎样安装VLC媒体播放器 ====<br />
<br />
sudo apt-get install vlc<br />
<br />
卸载VLC媒体播放器:<br />
<br />
sudo apt-get --purge autoremove vlc<br />
<br />
==== 怎样安装 Banshee 音乐管理和播放器<br> ====<br />
<br />
sudo apt-get install banshee<br />
<br />
卸载:<br />
<br />
sudo apt-get --purge autoremove banshee<br />
<br />
==== How to encode/decode audios ====<br />
<br />
There is a great command line tool, sox which not just a ordinary encoder/decoder but a good composer. Read its manual for more information.<br />
<br />
''Input(s) → Balancing → Combiner → Effects → Output''<br />
<br />
sudo apt-get install sox<br />
<br />
sox cannot handle Real Audio format. For that you need mplayer which converts a .rm file to a .wav file and then use sox to convert wave file to other file.<br />
<br />
mplayer -ao pcm:file=output.wav input.rm<br />
<br />
==== How to encode/decode videos ====<br />
<br />
mencoder, avidemux, transcode, ffmpeg2theora, etc. are some video converting tools. Read their manuals for information.<br />
<br />
sudo apt-get install mencoder avidemux transcode ffmpeg2theora<br />
<br />
==== How to edit audios ====<br />
<br />
sudo apt-get install lmms<br />
sudo apt-get install audacity<br />
<br />
==== How to edit videos ====<br />
<br />
sudo apt-get install ubuntustudio-video<br />
<br />
==== Text-to-Speech ====<br />
<br />
Visit https://help.ubuntu.com/community/TextToSpeech<br />
<br />
=== Programming / Web Development ===<br />
<br />
==== Quanta Plus ====<br />
<br />
(Quanta is a KDE application, but also works on GNOME.)<br />
To install Quanta, HTML/XML/PHP/Etc Web Creation Software:<br />
<br />
sudo apt-get install quanta kompare kxsldbg cervisia<br />
<br />
Applications > Programming > Quanta Plus<br />
<br />
==== Netbeans IDE ====<br />
Netbeans is a platform independent IDE for Java. But it also supports C/C++, Ruby, portals and lots of other stuffs as plug-ins. At the point of writing, version 5.5.1 is the latest stable release and can be installed by:<br />
sudo apt-get install netbeans5.5<br />
Alternately you can download [http://www.netbeans.org/community/releases/60/index.html Netbeans 6.0] and install it manually. The size of the installation package varies from 11 MB to 200 MB.<br />
<br />
===== Netbeans with Web & Java EE pack =====<br />
If you want to use NetBeans for web development and want to integrate with Java EE, download the "Netbeans with Web & Java EE" pack. The plug-in mechanism of installing additional modules are not recommended as it installs it on user directory (~/.netbeans/6.0beta2/modules/) rather than system-wide installation directory (/usr/local/netbeans-6.0beta2/nb6.0/modules/).<br />
<br />
Netbeans with Web & Java EE pack comes with 2 built in runtime environments:<br />
* GlassFish V2 Build 58g<br />
* Apache Tomcat 6.0.14<br />
Those are ideal for both development and production use. Thus you do not have to install either Sun Java Application Server of Apache Tomcat separately. Also uninstalling Netbeans will not uninstall them. You have to uninstall them separately.<br />
<br />
But in case you want to install the servers separately, you typically have to run Netbeans as root.<br />
Alternately, you can also change the configuration files' owner/group and permissions of Tomcat and GlassFish to work with Netbeans.<br />
<br />
==== Eclipse IDE ====<br />
[http://packages.ubuntu.com/gutsy/devel/eclipse Eclipse IDE] is an alternative of [http://packages.ubuntu.com/gutsy/devel/netbeans5.5 Netbeans IDE]. Actually, it is somewhat more popular among Linux users. You can install eclipse directly from [http://www.eclipse.org/downloads/ Eclipse website] or can install it using apt-get:<br />
sudo apt-get install eclipse<br />
<br />
==== Anjuta IDE ====<br />
[http://anjuta.sourceforge.net/ Anjuta] is an IDE used primarily for C/C++ development. Not as robust as other itegrated development environments. However, tt does feature some useful plugins that provide functionality that most other IDE's have. (GUI development, project wizards, etc.)<br />
sudo apt-get install anjuta<br />
<br />
=== Utilities ===<br />
<br />
==== Compression tools ====<br />
Zip, Gzip and Bzip2 are the most popular compression tools available in almost every every Linux. But of late two new compression tools available: p7zip (http://7-zip.org/), ace and rar (http://www.rarlab.com/). 7-zip is a open-source project, but rar and ace are not.<br />
<br />
sudo apt-get install rar unrar<br />
sudo apt-get install p7zip-full<br />
sudo apt-get install unace<br />
<br />
Ark is the compression tool for kde, and has support for more formats including rar.<br />
<br />
sudo apt-get install ark<br />
<br />
==== Clipboard Manager (Glipper) ====<br />
<br />
To install Glipper simply run:<br />
sudo apt-get install glipper<br />
or use Synaptic Package Manager under System > Administration menu, to locate and install the "glipper" package.<br />
<br />
==== Password Manager (KeePassX) ====<br />
<br />
KeePass is a crossplatform password manager.<br />
To install it simply run:<br />
sudo apt-get install keepassx<br />
or use Synaptic Package Manager under System > Administration menu, to locate and install the "keepassx" package.<br />
<br />
==== How to fix/integrate bluetooth with nautilus ====<br />
<br />
On Some systems bluetooth "Browse Device" fuction doesn't work properly.<br />
<br />
To Fix This:<br />
<br />
sudo apt-get install gnome-vfs-obexftp<br />
<br />
or<br />
<br />
sudo aptitude install gnome-vfs-obexftp<br />
<br />
==== 怎样安装 Google Earth (地球仪软件) ====<br />
<br />
Google earth是一个世界地图查看器. 它可以3D的形式显示的建筑以及桥梁. 默认的时候它是显示的是静态的图片. 最新版式中包含了鸟瞰世界的功能. 点击 [http://earth.google.com/ 这里] 查看更多相关的信息.<br />
<br />
Google Earth is available in the Medibuntu Package archive. To install google-earth from Medibuntu:<br />
<br />
echo "deb http://packages.medibuntu.org/ gutsy free non-free" | sudo tee -a /etc/apt/sources.list<br />
wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add - &amp;&amp; sudo apt-get update<br />
sudo aptitude install googleearth<br />
<br />
除此之外你还可以直接从Google下载安装程序进行安装:<br />
<br />
[http://earth.google.com/download-earth.html 下载] Google Earth到你的桌面. 打开终端并运行n:<br />
<br />
chmod +x Desktop/GoogleEarthLinux.bin<br />
sudo Desktop/GoogleEarthLinux.bin<br />
<br />
按照说明完成安装. 卸载Google earth,执行以下命令:<br />
<br />
sudo su<br />
/opt/google-earth/uninstall<br />
<br />
==== 怎样安装 Picasa (Google 开发的照片管理工具) ====<br />
<br />
Picasa 是一款帮助你立即查找、编辑和共享在你的电脑上的所有照片的软件. Picasa makes advanced editing simple by putting one-click fixes and powerful effects at your fingertips. And Picasa makes it a snap to share your pictures – you can email, print photos home, and even post pictures on your own blog. You can install it in four ways:<br />
<br />
* [http://picasa.google.com/linux/download.html 下载] 直接下载 Debian/Ubuntu (DEB包) 安装.<br />
* 访问 http://www.google.com/linuxrepositories/ 阅读怎样添加 Google 源的说明.然后运行:<br />
<br />
sudo apt-get install picasa<br />
<br />
* [http://picasa.google.com/linux/download.html 下载] 自解压安装程序并按照说明配置 Google Earth.<br />
* 安装Windows (需要WINE支持).<br />
<br />
==== How to install Google Desktop (search utility) ====<br />
Google Desktop is a desktop search application that gives you easy access to information on your computer and from the web. Desktop makes searching your own email, files, music, photos, and more as easy as searching the web with Google. You can download Google Desktop in two ways:<br />
* Download and install the Debian package directly from http://desktop.google.com/en/linux/download.html<br />
* Visit http://www.google.com/linuxrepositories/ and see the instructions about how to add Google repository. Then run:<br />
sudo apt-get install google-desktop-linux<br />
<br />
==== How to install ntop (network monitoring utility) ====<br />
Ntop is a network monitoring utility. You can monitor local devices as well as devices with Netflow output (like a Cisco router). It's very easy to install too, open a terminal and type:<br />
<br />
sudo apt-get install ntop<br />
<br />
Now that it is installed, you have to do some basic setup. Once again, in the terminal, type:<br />
<br />
sudo ntop<br />
<br />
You will be asked for a password, and then to confirm the password. This will be the admin password for the ntop web interface. Next, we want to install "Dot", which is a part of the "Graphviz" package:<br />
<br />
sudo apt-get install graphviz<br />
<br />
Now, again in the terminal type:<br />
<br />
sudo /etc/init.d/ntop start<br />
<br />
Thats it! ntop is running! Try browsing to http://127.0.0.1:3000 to get started. You will have to add the path to dot to the ntop configuration. <br />
<br />
Admin -> Configure (Enter admin user/pass) -> Preferences<br />
<br />
At the bottom add a new preference:<br />
<br />
dot.path /usr/bin/dot<br />
<br />
You should now have a network map for the local interface under IP -> Local -> Network Traffic Map<br />
<br />
Visit http://www.ntop.org/ for more information.<br />
<br />
==== How to install applications for study of religious texts ====<br />
<br />
* For study of Bible see [http://gnomesword.sourceforge.net/ GnomeSword]<br />
* For study of Quran see [http://sourceforge.net/projects/zekr/ Zekr]<br />
<br />
===== How to install Gnomesword (Bible study program)=====<br />
*Read [[#General Notes]] <br />
*Read [[#How to add extra repositories]]<br />
*This installs the english version of the program.<br />
<br />
sudo apt-get install gnomesword sword-language-pack-en sword-text-web<br />
<br />
*If you require other languages type:<br />
<br />
sudo apt-cache search bible<br />
<br />
*Take a look at the sword-language-pack's and the sword-text's for additional languages and install as needed. <br />
<br />
Gnomesword is found under Applications-->Accessories.<br />
<br />
*Under KDE, use kio-sword instead of Gnomesword:<br />
<br />
sudo apt-get install kio-sword<br />
<br />
===== How to install a Quran researching tool (Zekr) ===== <br />
[http://siahe.com/zekr/ Zekr] is an open platform Quran study tool for simply browsing and researching on the Quran. <br />
<br />
sudo wget http://siahe.com/zekr/apt/sources.list.d/gutsy.list -O /etc/apt/sources.list.d/zekr.list <br />
wget -q http://siahe.com/zekr/apt/zekr.debian.gpg -O- | sudo apt-key add - <br />
sudo apt-get update <br />
sudo apt-get install zekr ttf-me-quran ttf-sil-scheherazade<br />
sudo apt-get install ttf-farsiweb flashplugin-nonfree<br />
<br />
*Zekr comes with extra Quran translations in Persian, Urdu, French, Russian, English, Turkish, Bosnian, Dutch packaged as zekr-quran-translations-XY where XY is the ISO code of the language. Run<br />
apt-cache search zekr-quran-translations<br />
<br />
in a shell to list them all. Then among the result list choose the appropriate package and install it: For example if you want to install English Quran Translations run the following command:<br />
sudo apt-get install zekr-quran-translations-en<br />
<br />
*For more info see [http://www.siahe.com/zekr/wiki/index.php?title=Installation#Ubuntu.2FDebian Zekr wiki].<br />
<br />
==== How to install applications for Education ====<br />
===== How to install Mnemosyne =====<br />
<br />
[http://mnemosyne-proj.sourceforge.net/ Mnemosyne] is a sophisticated free flash-card tool which optimizes your learning process. To install the latest version in the repositories run the following command<br />
sudo apt-get install mnemosyne<br />
or use Synaptic Package Manager under System => Administration menu, to locate and install the mnemosyne package.<br />
<br />
To install the latest version (the one in the repository is somewhat out of date) first install the dependencies:<br />
sudo apt-get install python python-pygame python-qt3 python-support python-xml<br />
then download the latest source package from [http://mnemosyne-proj.sourceforge.net/ here]:<br />
wget http://superb-east.dl.sourceforge.net/sourceforge/mnemosyne-proj/mnemosyne-0.9.10.tgz<br />
(correct as of 11 Nov 2007)<br />
Decompress it:<br />
tar -xzf mnemosyne-0.9.10.tgz<br />
go to the directory<br />
cd mnemosyne-0.9.10/<br />
run this command to install it:<br />
sudo python setup.py install<br />
To create a launcher for it in your Applications Menu:<br />
System => Preferences => Main Menu => Education (or wherever) => New Item:<br />
Name: Mnemosyne<br />
Command: mnemosyne<br />
<br />
== '''''安全&nbsp;''''' ==<br />
<br />
=== 怎样重设用户密码 ===<br />
<br />
sudo apt-get install john<br />
sudo john /etc/shadow<br />
<br />
=== 怎样重设ROOT用户的密码 ===<br />
<br />
重启Ubuntu进入安全模式并输入:<br />
<br />
passwd<br />
<br />
<br />
来修ROOT用的密码<br />
<br />
=== 怎样创建或修改GRUB启动菜单的密码 ===<br />
<br />
请点击[http://ubuntuguide.org/wiki/Ubuntu:Feisty#How_to_change_GRUB_menu_password_if_forgotten 这里].<br />
<br />
=== 如果忘记GRUB启动菜单的密码怎样修改root用户的密码 ===<br />
<br />
点击 [http://ubuntuguide.org/wiki/Ubuntu:Feisty#How_to_use_Ubuntu_Installation_CD.2C_to_gain_root_user_access 这里]. To prevent this, you have to set a bios password and set hard disk as the first boot device.<br />
<br />
== '''''服务器<br>''''' ==<br />
<br />
=== Samba 服务器<br> ===<br />
<br />
==== 怎样安装 Samba 服务器来共享文件以及文件夹<br> ====<br />
<br />
* 阅读 [[|#General Notes]]<br />
* 阅读 [[|#How to add extra repositories]]<br />
<br />
sudo apt-get install samba smbfs<br />
<br />
==== 怎样添加/修改/删除网络用户 ====<br />
<br />
* 阅读 [[|#General Notes]]<br />
* 阅读 [[|#How to install Samba Server for files/folders sharing service]]<br />
* To add network user <br />
** Read [[|#How to add/edit/delete system users]]<br />
<br />
sudo smbpasswd -a system_username<br />
gksudo gedit /etc/samba/smbusers<br />
<br />
* <br />
** Insert the following line into the new file<br />
<br />
system_username = "network username"<br />
<br />
* <br />
** Save the edited file<br />
* To edit network user<br />
<br />
sudo smbpasswd -a system_username<br />
<br />
* To delete network user<br />
<br />
sudo smbpasswd -x system_username<br />
<br />
==== How to share home folders with read only or read/write permission (Authentication=Yes) ====<br />
<br />
* Read [[|#General Notes]]<br />
* Read [[|#How to install Samba Server for files/folders sharing service]]<br />
<br />
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup<br />
gksudo gedit /etc/samba/smb.conf<br />
<br />
* Find this line<br />
<br />
...<br />
; security = user<br />
...<br />
<br />
* Replace with the following lines<br />
<br />
security = user<br />
username map = /etc/samba/smbusers<br />
<br />
* Remove the&nbsp;; in front of the following lines (there will text in between explaining what they do):<br />
<br />
;[homes]<br />
;comment = Home Directories<br />
;browseable = no<br />
;valid users = %S<br />
;writable = yes<br />
<br />
* <br />
** If you want other network users to be able to edit to the folder then change<br />
<br />
# By default, the home directories are exported read-only. Change next<br />
# parameter to 'yes' if you want to be able to write to them.<br />
&nbsp;; writable = no<br />
<br />
* <br />
** Replace with the following lines<br />
<br />
writable = yes<br />
<br />
* Save the edited file<br />
* Read [[|#How to add/edit/delete network users]]<br />
<br />
sudo testparm<br />
sudo /etc/init.d/samba restart<br />
<br />
==== How to share group folders with read only permission (Authentication=Yes) ====<br />
<br />
* Read [[|#General Notes]]<br />
* Read [[|#How to install Samba Server for files/folders sharing service]]<br />
<br />
sudo mkdir /home/group<br />
sudo chmod 777 /home/group/<br />
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup<br />
gksudo gedit /etc/samba/smb.conf<br />
<br />
* Find this line<br />
<br />
...<br />
; security = user<br />
...<br />
<br />
* Replace with the following lines<br />
<br />
security = user<br />
username map = /etc/samba/smbusers<br />
<br />
* Append the following lines at the end of file<br />
<br />
[Group]<br />
comment = Group Folder<br />
path = /home/group<br />
public = yes<br />
writable = no<br />
valid users = system_username1 system_username2<br />
create mask = 0700<br />
directory mask = 0700<br />
force user = nobody<br />
force group = nogroup<br />
<br />
* Or if you want other network users to be able to edit to the folder change<br />
<br />
writable = yes<br />
<br />
* Save the edited file<br />
* Read [[|#How to add/edit/delete network users]]<br />
<br />
sudo testparm<br />
sudo /etc/init.d/samba restart<br />
<br />
==== How to share public folders with read only or read/write permissions (Authentication=Yes) ====<br />
<br />
* Read [[|#General Notes]]<br />
* Read [[|#How to install Samba Server for files/folders sharing service]]<br />
<br />
sudo mkdir /home/public<br />
sudo chmod 777 /home/public/<br />
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup<br />
gksudo gedit /etc/samba/smb.conf<br />
<br />
* Find this line<br />
<br />
...<br />
; security = user<br />
...<br />
<br />
* Replace with the following lines<br />
<br />
security = user<br />
username map = /etc/samba/smbusers<br />
<br />
Then follow either 1. or 2.<br />
<br />
* 1. Save the edited file.<br />
<br />
sudo testparm<br />
sudo /etc/init.d/samba restart<br />
<br />
* 1. Right click the folder and select 'Share folder'. Then change 'Do not share' to share with the network you would like.<br />
* 1. In Share Properties note the read box. If you want other network users to be able to edit to the folder un-tick this.<br />
<br />
'''OR'''<br />
<br />
* 2. Append the following lines at the end of file<br />
<br />
[public]<br />
comment = Public Folder<br />
path = /home/public<br />
public = yes<br />
writable = yes<br />
create mask = 0777<br />
directory mask = 0777<br />
force user = nobody <br />
force group = nogroup<br />
<br />
* 2. Or if you want other network users to be able to edit to the folder<br />
<br />
writable = yes<br />
<br />
* 2. Save the edited file<br />
* 2. Read [[|#How to add/edit/delete network users]]<br />
<br />
sudo testparm<br />
sudo /etc/init.d/samba restart<br />
<br />
<br><br />
<br />
==== How to share public folders with read only or read/write permissions (Authentication=No) ====<br />
<br />
* Read [[|#General Notes]]<br />
* Read [[|#How to install Samba Server for files/folders sharing service]]<br />
<br />
sudo mkdir /home/public<br />
sudo chmod 777 /home/public/<br />
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup<br />
gksudo gedit /etc/samba/smb.conf<br />
<br />
* Find this line<br />
<br />
...<br />
; security = user<br />
...<br />
<br />
* Replace with the following line<br />
<br />
security = share<br />
<br />
Then follow either 1. or 2.<br />
<br />
* 1. Save the edited file.<br />
<br />
sudo testparm<br />
sudo /etc/init.d/samba restart<br />
<br />
* 1. Right click the folder and select 'Share folder'. Then change 'Do not share' to share with the network you would like.<br />
* 1. In Share Properties note the read box. If you want other network users to be able to edit to the folder un-tick this.<br />
<br />
'''OR'''<br />
<br />
* 2. Append the following lines at the end of /etc/samba/smb.conf (for a read-only folder)<br />
<br />
[public]<br />
comment = Public Folder<br />
path = /home/public<br />
public = yes<br />
writable = no<br />
create mask = 0777<br />
directory mask = 0777<br />
force user = nobody<br />
force group = nogroup<br />
<br />
* 2. Or if you want other network users to be able to edit to the folder<br />
<br />
writable = yes<br />
<br />
<br><br />
<br />
* 2. Save the edited file<br />
<br />
sudo testparm<br />
sudo /etc/init.d/samba restart<br />
<br />
==== How to print on remote Ubuntu machine via samba ====<br />
<br />
* Read [[|#Print Server (cupsd)]]<br />
* Make sure your Ubuntu printers are configured properly.<br />
<br />
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.backup<br />
gedit /etc/samba/smb.conf<br />
<br />
:''Find the following lines''<br />
<br />
...<br />
# printing = cups<br />
# printcap name = cups<br />
...<br />
<br />
:''and uncomment them.''<br />
<br />
printing = cups<br />
printcap name = cups<br />
<br />
:''Restart cups server''<br />
<br />
sudo /etc/init.d/cupsys restart<br />
<br />
:''Now printers working on your Ubuntu machine should be acessible via samba.''<br />
<br />
<br><br />
<br />
=== iTunes-compatible Media server ===<br />
<br />
If you want iTunes-compatible Media server in Ubuntu try this<br />
<br />
* [http://www.ubuntugeek.com/howto-setup-itunes-compatible-media-server-in-ubuntu.html iTunes-compatible Media server Step By Step Guide]<br />
<br />
=== GLPI - IT and asset Managemet Software ===<br />
<br />
If you want IT and asset Managemet Software in Ubuntu try this<br />
<br />
* [http://www.ubuntugeek.com/glpi-it-and-asset-managemet-software.html IT and asset Managemet Software Setup Guide]<br />
<br />
=== PostgreSQL ===<br />
<br />
Postgresql is a well supported and open source database server. There is a long debate regarding whether MySQL is better or PostgreSQL. Actually, there are similar debates like it: Gnome vs KDE, Perl vs Python, PHP vs JSP, Java vs .Net (or Mono). But from installation point of view, it has been seen that PostgreSQL is lighter and requires less dependency than MySQL.<br />
<br />
==== Installing PostgreSQL ====<br />
<br />
To Install PostgreSQL (both client and server):<br />
<br />
sudo apt-get install postgresql-8.2<br />
<br />
To install PostgreSQL documentation:<br />
<br />
sudo apt-get install postgresql-doc-8.2<br />
<br />
To install JDBC3 driver for PostgreSQL:<br />
<br />
sudo apt-get install libpg-java<br />
<br />
To enable php support for PostgreSQL:<br />
<br />
sudo apt-get install php5-pgsql<br />
<br />
To do administrative works graphically:<br />
<br />
sudo apt-get install pgadmin3<br />
<br />
To do web-based administrative works:<br />
<br />
sudo apt-get install phppgadmin<br />
<br />
==== Configuring PostgreSQL ====<br />
<br />
To use postgresql, create a database instance and a user/role:<br />
<br />
sudo -u postgres createdb $USER<br />
sudo -u postgres createuser $USER<br />
<br />
Making both database instance and user/role as your login ID lets you to start PostgreSQL client very easily:<br />
<br />
psql<br />
<br />
To login as the administrator:<br />
<br />
sudo -u postgres psql<br />
<br />
To be able to login from remote machine or from PHP or through JDBC driver, you have to set your password from PostgreSQL client (psql):<br />
<br />
ALTER USER user PASSWORD 'pass';<br />
<br />
replace user and pass by your user name and password respectively. To test whether remote login works or not, run:<br />
<br />
psql -h host -p 5432 -d database -U user<br />
<br />
Visit http://www.php.net/manual/en/ref.pgsql.php to see how php works with PostgreSQL.<br />
<br />
==== Using pgadmin3 ====<br />
<br />
To configure PostgreSQL using pgadmin3:<br />
<br />
* Open psql client as administrator postgres (see above Configure PostgreSQL)<br />
* Change the password for the administrator postgres (see above)<br />
* Open Applications -&gt; System Tools -&gt; pgAdmin III from main menu.<br />
* Open File -&gt; Add Server...<br />
* Set Address to localhost or 127.0.0.1 (or something you have set)<br />
* Give a Description by which this connection will be identified.<br />
* Accept default port (5432), SSL (_blank_), Maintenance DB (postgres) and Username (postgres)<br />
* set the Password that you have set earlier. Click OK.<br />
<br />
==== Using phppgadmin ====<br />
<br />
To configure PostgreSQL using phppgadmin run:<br />
<br />
sudo ln -s /usr/share/phppgadmin /var/www/phpPgAdmin<br />
<br />
Set a password for administrator: postgres (see [[|#Configuring_PostgreSQL]]).<br />
<br />
Open /etc/phppgadmin/config.inc.php and change:<br />
<br />
$conf['extra_login_security'] = false;<br />
<br />
It will enable administrative login. Finally visit http://localhost/phpPgAdmin/ to login.<br />
<br />
==== Using PostgreSQL with OpenOffice ====<br />
<br />
* Open Applications -&gt; Office -&gt; OpenOffice.org Database.<br />
* Select 'Connect to an existing database'. From the list select JDBC and click Next.<br />
* Make Datasource URL to:<br />
<br />
jdbc:postgresql://localhost/database<br />
<br />
Replace localhost by your hostname, database by the database instance you have created.<br />
<br />
* Set JDBC driver class to:<br />
<br />
org.postgresql.Driver<br />
<br />
* Click 'Test class' to make sure JDBC driver class connects Datasource URL properly. Click Next.<br />
* Type your User name and select 'Password required' option.<br />
* Click Test connection. A popup dialog will appear. Enter your password and click OK.<br />
* If everything works properly, then a confirmation dialog will appear.<br />
* Click Next. Some optional settings will appear. Click Finish to complete.<br />
<br />
==== Using PostgreSQL JDBC driver ====<br />
<br />
The following Java code is a simple program to illustrate how JDBC can be used with Postgresql:<br />
<br />
// pgVersion.java<br />
<br />
import java.sql.*;<br />
<br />
class pgVersion {<br />
public static void main(String arg[]) throws Exception {<br />
if(arg.length!=4) {<br />
System.out.println("usage: java pgVersion host database user password");<br />
return;<br />
}<br />
// Class.forName("org.postgresql.Driver");<br />
Driver driver=new org.postgresql.Driver();<br />
DriverManager.registerDriver(driver);<br />
String url="jdbc:postgresql://"+arg[0]+"/"+arg[1]+"?user="+arg[2]+"&amp;password="+arg[3];<br />
Connection conn=DriverManager.getConnection(url);<br />
Statement stat=conn.createStatement();<br />
ResultSet rs=stat.executeQuery("SELECT version()");<br />
rs.next();<br />
System.out.println(rs.getString("version"));<br />
rs.close();<br />
stat.close();<br />
conn.close();<br />
DriverManager.deregisterDriver(driver);<br />
}<br />
}<br />
<br />
You can run the former code in two ways:<br />
<br />
* Using CLASSPATH environment variable:<br />
<br />
export CLASSPATH=/usr/share/java/postgresql.jar:.<br />
javac pgVersion.java<br />
java pgVersion host database user password<br />
<br />
Here host, database, user and password should be substituted according to your configuration. To make $CLASSPATH permanent, you have to save the command in either /etc/bash.bashrc or ~/.bashrc.<br />
<br />
* Alternately, you can run as follows:<br />
<br />
javac -classpath /usr/share/java/postgresql.jar pgVersion.java<br />
java -classpath /usr/share/java/postgresql.jar:. pgVersion host database user password<br />
<br />
The output is as expected:<br />
<br />
PostgreSQL 8.2.5 on i486-pc-linux-gnu, compiled by GCC cc (GCC) 4.1.3 20070831 (prerelease) (Ubuntu 4.1.2-16ubuntu1)<br />
<br />
=== MySQL ===<br />
<br />
According to [http://en.wikipedia.org/wiki/Comparison_of_relational_database_management_systems this page] both MySQL and PostgreSQL are good alternatives of proprietary softwares like DB2, Sybase, Oracle, SQL Server etc.<br />
<br />
To install both the server and client:<br />
<br />
sudo apt-get install mysql-server-5.0<br />
<br />
[http://db4free.net/ db4free] is a great database server for tryout different things remotely. If you want to use this site, then you do not have to install MySQL server. Just install the [http://packages.ubuntu.com/gutsy/misc/mysql-client-5.0 client], [http://packages.ubuntu.com/gutsy/misc/mysql-doc-5.0 documentation] and [http://packages.ubuntu.com/gutsy/web/php5-mysql php] or [http://packages.ubuntu.com/gutsy/libs/libmysql-java jdbc] connectivity.<br />
<br />
=== IBM DB2 ===<br />
<br />
Visit [http://www.ibm.com/software/ here] for software available from IBM. According to [http://www.ibm.com/software/data/db2/linux/validate/ this page], DB2 can be installed on ubuntu.<br />
<br />
==== Download ====<br />
<br />
To download DB2 trial [http://www.ibm.com/software/data/db2/9/download.html visit here] and select: IBM DB2 9.5 Data Server trial. Then you have to sign in (create an account if not already created) in order to download. Choose either of the following:<br />
<br />
* DB2 9.5 data server trial for Linux(R) on AMD64 and Intel(R) EM64T systems (x64)<br />
* DB2 9.5 data server trial for Linux(R) on System z<br />
<br />
Then answer questions and click 'I confirm' at the bottom. Finally click 'I confirm' button to start downloading.<br />
<br />
Alternately, [http://www.ibm.com/software/data/db2/9/download.html visit here] and select: IBM DB2 9.5 Express-C. Then choose DB2 Express-C 9.5 for Linux and click continue. Then answer questions and click 'I confirm' at the bottom. Finally select either of the following:<br />
<br />
* DB2 Express-C for Linux operating system, 32-bit architecture<br />
* DB2 Express-C for Linux operating system, 64-bit architecture<br />
<br />
click 'I confirm' button to start downloading.<br />
<br />
==== Installing DB2 ====<br />
<br />
I choose 'DB2 Express-C for Linux operating system, 32-bit architecture' to demonstrate how to install. If you have chosen a different version, make necessary changes accordingly. Let's assume the downloaded file is on your home directory. Then do the following:<br />
<br />
tar -xf db2exc_950_LNX_x86.tar.gz<br />
cd ~/exp<br />
sudo apt-get install libaio1<br />
sudo ./db2setup<br />
<br />
Select 'Install a Product' from the left side of the generated window and click 'Install New'. Another window will be opened. Then following the instructions to complete the installation. You are encouraged to create new user and groups (dasusr1/dasadm1, db2inst1/db2iadm1, db2fenc1/db2fadm1) during installation.<br />
<br />
==== Uninstalling DB2 ====<br />
<br />
If you have installed with all default settings (as mentioned above) then just running the following commands would remove the db2 completely. In case you have changed something during installation, then make appropriate changes accordingly.<br />
<br />
cd /opt/ibm/db2/V9.5<br />
./instance/db2ilist<br />
sudo instance/db2idrop db2inst1<br />
sudo install/db2_deinstall -a<br />
cd &amp;&amp; sudo rm -r /opt/ibm/<br />
sudo userdel -r dasusr1<br />
sudo userdel -r db2fenc1<br />
sudo userdel -r db2inst1<br />
sudo groupdel dasadm1<br />
sudo groupdel db2fadm1<br />
sudo groupdel db2iadm1<br />
<br />
Before running those commands, please make sure:<br />
<br />
* Make sure, db2 is not running.<br />
* Identify DB2 installation directory (E.g /opt/ibm/db2/V9.5)<br />
* Identify DB2 instances (using db2ilist command, see the second command)<br />
* Drop each and every instances (using db2idrop command, third command)<br />
* If you have other IBM softwares in /opt/ibm then remove only /opt/ibm/db2 directory.<br />
* Delete user and group accounts that you have created for db2.<br />
<br />
=== Oracle database ===<br />
<br />
* Download [http://www.oracle.com/technology/software/products/database/index.html Oracle database] XE from [http://www.oracle.com/technology/software/products/database/xe/htdocs/102xelinsoft.html here]. Then follow the [http://www.oracle.com/technology/software/products/database/xe/files/install.102/b25144/toc.htm instructions] to complete the installation.<br />
* Alternately, visit [http://www.oracle.com/technology/tech/linux/install/index.html this page] to see some installation guides provided by some users. [http://www.davidpashley.com/articles/oracle-install.html This page] is particularly seems very useful. (--[[User:Tamal|Tamal]] 07:51, 14 November 2007 (EET))<br />
<br />
A problem might occur if your swap space is less than 1 GB. In that case you have to do the following:<br />
<br />
* Turn off the swap space. (run 'man swapoff' for help)<br />
* Resize the swap partition. (run 'man fdisk' and 'man cfdisk' for help)<br />
* Restart the system. (not mandatory, but recommended)<br />
* Edit the /etc/fstab file to update the UUID of the swap partition. ([[|#How_to_find_the_UUID_of_a_device]])<br />
* Turn on the swap space. (run 'man swapon' for help)<br />
<br />
=== SSH ===<br />
<br />
==== How to install SSH Server for remote administration service ====<br />
<br />
* Read [[|#General Notes]]<br />
* Read [[|#How to add extra repositories]]<br />
<br />
sudo apt-get install ssh<br />
<br />
==== How to SSH into remote Ubuntu host ====<br />
<br />
* Read [[|#General Notes]]<br />
<br />
The Ubuntu host must be running the SSH Server. Read [[|#How to install SSH Server for remote administration service]].<br />
<br />
In this example:<br />
<br />
Remote Ubuntu machine: 192.168.0.2 username is a valid user on the remote host<br />
<br />
ssh username@192.168.0.2<br />
<br />
You can tunnel to a URL as well:<br />
<br />
ssh username@foobar.dyndns.org<br />
<br />
If your LAN uses a dynamic IP to connect to the Internet, you can use a Dynamic IP service (such as DynDNS) to assign a static URL to your LAN (foobar.dyndns.org, for example). An SSH request over the Internet to your URL (e.g. foobar.dyndns.org) would then be routed by the DynDNS service to your modem/router. Your router must then be set to forward the port used for the SSH tunnel to your host machine on the LAN. (SSH tunnels generally occur by default over port 22, but it can be changed (see below)).<br />
<br />
For some humor: Read Etymology of foobar. You can explicitly select the port number (instead of port 22) for the SSH tunnel:<br />
<br />
ssh username@foobar.dyndns.org:11022<br />
<br />
However, if you do this, the host SSH server must be listening on the same port (port 11022 in the example). The port to listen to can be set in the ssdh_config file of the OpenSSH server (provided in Ubuntu) on your host. Also, your router must be configured to forward port 11022 to your OpenSSH host.<br />
<br />
==== How to change SSH Server Port Number ====<br />
<br />
* Read [[|#General Notes]]<br />
* Read [[|#How to install SSH Server for remote administration service]]<br />
<br />
Open /etc/ssh/sshd_config for editing<br />
<br />
gksu gedit /etc/ssh/sshd_config<br />
<br />
Look for the line<br />
<br />
# What ports, IPs and protocols we listen for<br />
Port 22<br />
<br />
Change 22 to the value you want, then save and restart the SSH server<br />
<br />
sudo /etc/init.d/ssh restart<br />
<br />
==== Using SSH to Port Forward ====<br />
<br />
* Read [[|#General Notes]]<br />
* The Ubuntu host must be running the SSH Server. Read [[|#How to install SSH Server for remote administration service]].<br />
* The format of the client command to create an SSH tunnel to an OpenSSH host listening on the default port 22 is:<br />
<br />
ssh -L &lt;local port&gt;:&lt;remote computer&gt;:&lt;remote port&gt; &lt;user&gt;@&lt;remote ip&gt;<br />
<br />
An example is:<br />
<br />
ssh -L 6669:94.92.10.15:6667 foowho<br />
<br />
In this example, local port 6669 on the local client computer is tunneled by encrypted SSH over the default port 22 to the router at 94.92.10.15. The router must be set up to forward port 22 to whatever the internal LAN IP (such as 192.168.0.56) of the SSH host is. The host is running OpenSSH (ssdh service) and is set to listen to port 22. It then routes the incoming data to the host port 6667, where presumably some other program is waiting for data. foowho has an account on the host running the OpenSSH server.<br />
<br />
SSH tunnels can also be established using URLs and even alternate ports. An example is:<br />
<br />
ssh -L 5900:foobar.dyndns.org:5900 foowho -p 11022<br />
<br />
In this example, local port 5900 on the client is forwarded through an SSH tunnel on port 11022 to foobar.dyndns.org. The DNS service translates foobar.dyndns.org into the appropriate WAN (Internet) IP address, where the router is listening. The router is set up to forward port 11022 to the LAN machine hosting the OpenSSH server, which is listening on port 11022. It then sends the data to whatever program is running on port 5900 on the host.<br />
<br />
* You can forward a local port to a different port on the remote host.<br />
<br />
:Example: Make port 80 (web server/browser) on the remote host at 10.0.2.10 available locally as port 81<br />
<br />
ssh -L 81:10.0.2.10:80 user@office.net<br />
<br />
* You can create secure SSH tunnels to multiple hosts using multiple ports.<br />
<br />
ssh -L 81:10.0.2.10:80 -L 82:10.0.2.20:80 -L 83:10.0.2.30:80 user@office.net<br />
<br />
Now, local port 81 locally forwards to port 80 on the host at 10.0.2.10, local port 82 forwards to port 80 on the host at 10.0.2.20 and local port 83 forwards to port 80 on the host at 10.0.2.30. In this example, user has an account on all three host machines at 10.0.2.10, 10.0.2.20, and 10.0.2.30.<br />
<br />
* Once port forwarding is set up by ssh, an application is directed to the SSH tunnel for port usage by using the loopback as the destination.<br />
<br />
:Example 1:<br />
<br />
ssh -L 81:10.0.2.10:80 user@office.net<br />
<br />
<nowiki>http://localhost:81</nowiki> or <nowiki>http://127.0.0.1/:81</nowiki> <br />
<br />
will direct a web browser to use port 81 locally, which is being redirected by SSH to port 80 on the remote host at 10.0.2.10.<br />
<br />
:Example 2:<br />
<br />
ssh -L 5900:foobar.dyndns.org:5900 foowho<br />
vncviewer 127.0.0.1 or vncviewer localhost<br />
<br />
will direct vncviewer (which uses port 5900 by default) to direct its traffic through the ssh tunnel to the host at foobar.dyndns.org, where, presumably, a VNC server is listening on port 5900.<br />
<br />
==== SSH Filesystem ====<br />
<br />
install package: sshfs, see http://fuse.sourceforge.net/sshfs.html<br />
<br />
sudo aptitude update<br />
sudo aptitude install sshfs<br />
<br />
Optionally, add user to group fuse to manage mount-point permissions.<br />
<br />
sudo adduser &lt;local user&gt; fuse<br />
<br />
(propogate new group membership: restart or open new shell, e.g., Ctrl+Alt+F1)<br />
<br />
Create writable mount point, e.g, &lt;mount point&gt; = /media/remote<br />
<br />
sudo mkdir &lt;mount point&gt;<br />
sudo chgrp fuse &lt;mount point&gt;<br />
sudo chmod 775 &lt;mount point&gt;<br />
<br />
Mount command<br />
<br />
sshfs [&lt;user&gt;@]&lt;host&gt;:[&lt;path&gt;] &lt;mount point&gt;<br />
<br />
Unmount command<br />
<br />
fusermount -u &lt;mount point&gt;<br />
<br />
=== Ubuntu 7.10 LAMP Server ===<br />
<br />
If you are looking for simple LAMP Server setup in 15min including webmin installation this is for you<br />
<br />
* [http://www.ubuntugeek.com/ubuntu-710-gutsy-gibbon-lamp-server-setup.html Ubuntu 7.10 LAMP Server Step By Step Guide]<br />
<br />
(This requires the server version of Gutsy Gibbon, not the standard desktop edition)<br />
<br />
=== How to Install Webmin ===<br />
<br />
Webmin is an browser-based administration tool for Apache, PHP, MySQL, and Much More.<br />
<br />
wget http://prdownloads.sourceforge.net/webadmin/webmin_1.370_all.deb<br />
<br />
<br />
sudo apt-get install libnet-ssleay-perl libauthen-pam-perl libio-pty-perl libmd5-perl<br />
<br />
sudo passwd root (Enter new root password, retype)<br />
<br />
sudo dpkg -i webmin_1.370_all.deb<br />
<br />
To use webmin, type the following in a browser: (Make sure to use HTTPS not HTTP)<br />
<br />
* [https://localhost:10000]<br />
<br />
=== Sun Java Application Server (Java EE) ===<br />
<br />
[http://docs.sun.com/app/docs/coll/1343.4 Official documentation]<br />
<br />
==== Installing Application Server ====<br />
<br />
Sun Java Application Server is the heart of Java EE. [http://java.sun.com/javaee/downloads/index.jsp Download] either of the following versions:<br />
<br />
* Java EE 5 SDK Update 3<br />
* Java Application Platform SDK Update 3 Beta<br />
* Sun Java System Application Server 9.1 (under individual download section)<br />
<br />
Alternately you can download GlassFish application server (community maintained):<br />
<br />
* With [http://dlc.sun.com.edgesuite.net/netbeans/6.0/beta2/ Netbeans] Web &amp; Java EE pack<br />
* Download [https://glassfish.dev.java.net/public/downloadsindex.html GlassFish] directly<br />
<br />
Make the download file executable and run as root by:<br />
<br />
chmod +x Desktop/filename<br />
sudo ./Desktop/filename<br />
<br />
Lets assume $JAVAEE_HOME indicates the installation directory. The default installation directory for Sun Java System Application Server 9.1 is /opt/SUNWappserver/. Now, either add $JAVAEE_HOME/bin in your PATH or make a link of asadmin and asant in your path by<br />
<br />
sudo ln -s $JAVAEE_HOME/bin/asadmin /usr/local/bin/asadmin<br />
sudo ln -s $JAVAEE_HOME/bin/asant /usr/local/bin/ant<br />
<br />
The command 'asadmin' is the main and most important command for Java Application server. [http://ant.apache.org/ Ant] is also useful to automate building process.<br />
<br />
==== Application Server configuration ====<br />
<br />
When Java EE installs, a domain 'domain1' is automatically installed with it in $JAVAEE_HOME/domains/ which is the default directory for all domains. Generally this directory ($JAVAEE_HOME/domains/) is not writable. So, as a unprivileged user you can create your own domain in your home directory.<br />
<br />
===== Application Server domain settings =====<br />
<br />
To create, start, stop and delete a domain in your home directory:<br />
<br />
asadmin create-domain --adminport 4848 --domaindir ~ mydomain<br />
asadmin start-domain --domaindir ~ mydomain<br />
asadmin stop-domain --domaindir ~ mydomain<br />
asadmin delete-domain --domaindir ~ mydomain<br />
<br />
Alternately you can make $JAVAEE_HOME/domains/ writable to do domain-related works from default domain directory. E.g.<br />
<br />
sudo chmod a+w $JAVAEE_HOME/domains/<br />
asadmin create-domain --adminport 4848 mydomain<br />
asadmin start-domain mydomain<br />
asadmin stop-domain mydomain<br />
asadmin delete-domain mydomain<br />
<br />
If you have only one domain in the default domains directory ($JAVAEE_HOME/domains/) then you do not have to give the domain name to start or stop a domain. E.g.<br />
<br />
asadmin start-domain<br />
asadmin stop-domain<br />
<br />
You can save the login information to ~/.asadminpass file in order to administer an application server domain from command line. If you do not login, you have to provide username and password for each administrative work (analogous to su and sudo commands). To login:<br />
<br />
asadmin login --host localhost --port 4848<br />
<br />
Deploying and un-deploying a web or ejb module is very easy. Just do the following:<br />
<br />
asadmin deploy test1.war<br />
asadmin deploy test2.ear<br />
<br />
asadmin undeploy test1.war<br />
asadmin undeploy test2.ear<br />
<br />
===== Application Server data Source settings =====<br />
<br />
DataSource configuration can be done easily from web based administration console. Here command line method is given:<br />
<br />
sudo ln -s /usr/share/java/postgresql.jar /opt/SUNWappserver/domains/domain1/lib/postgresql.jar<br />
asadmin create-jdbc-connection-pool --datasourceclassname org.postgresql.ds.PGSimpleDataSource --property<br />
serverName=localhost:portNumber=5432:databaseName=database:user=user:password=pass jdbc/postgresql<br />
asadmin create-jdbc-resource --connectionpoolid jdbc/postgresql database<br />
<br />
First, we have made this driver accessible from the domain. In the second command, we have created a data source connection pool which has been assigned a JNDI name in the third command. Here all the colon (:) separated values are database related. Change them according to your database settings. Now you can create a Connection by, e.g.:<br />
<br />
Context ic = new InitialContext();<br />
DataSource ds = (DataSource)ic.lookup("database");<br />
Connection conn = ds.getConnection();<br />
<br />
To see available data sources and their corresponding JNDI names:<br />
<br />
asadmin list-jdbc-connection-pools<br />
asadmin list-jdbc-resources<br />
<br />
To delete both connection pool, you have to delete JNDI name first. E.g.<br />
<br />
asadmin delete-jdbc-resource database<br />
asadmin delete-jdbc-connection-pool jdbc/postgresql<br />
<br />
=== Tomcat 6 ===<br />
<br />
==== Installing tomcat ====<br />
<br />
Tomcat can be found in [http://packages.ubuntu.com/gutsy/web/tomcat5.5 universe] repository but it has some drawbacks (e.g. lots of dependencies, unavailability of version 6.x, do not use Sun Java). Thus manual installation is recommended.<br />
<br />
Download latest stable version of tomcat from [http://tomcat.apache.org/download-60.cgi here] and extract it in /usr/local as root. Add "JAVA_HOME=/usr/lib/jvm/java-6-sun/" to /usr/local/apache-tomcat-6.x.x/bin/setclasspath.sh after the first occurrence of "CLASSPATH=". Make sure that sun-java6-jre is installed. Make a soft-link of /usr/local/apache-tomcat-6.x.x/bin/catalina.sh as /usr/local/bin/tomcat to access easily. Optionally you can remove .exe and .bat files and edit .sh files to remove cygwin, os400 and darwin related codes.<br />
<br />
Although not necessary, but the [http://packages.ubuntu.com/gutsy/devel/ant ant] program would be useful here. You can also install its [http://packages.ubuntu.com/gutsy/devel/ant-doc documentation].<br />
<br />
==== OpenEJB Server ====<br />
<br />
[http://openejb.apache.org/ OpenEJB] is an open source, modular, configurable, and extendable EJB Container System and EJB Server. [http://openejb.apache.org/tomcat.html Visit here] to see the installation instructions for OpenEJB under Tomcat 6.<br />
<br />
==== Using tomcat with NetBeans ====<br />
<br />
You have to make the configuration files readable because Netbeans generally do not run with administrative privilege. To use Tomcat with with NetBeans, you have to set a user with manager role. A typcal $CATALINA_HOME/conf/tomcat-users.xml file would look like:<br />
<br />
&lt;?xml version='1.0' encoding='utf-8'?&gt;<br />
&lt;tomcat-users&gt;<br />
&lt;role rolename="admin"/&gt;<br />
&lt;role rolename="manager"/&gt;<br />
&lt;role rolename="tomcat"/&gt;<br />
&lt;user username="admin" password="admin" roles="admin"/&gt;<br />
&lt;user username="manager" password="manager" roles="manager"/&gt;<br />
&lt;user username="tomcat" password="tomcat" roles="tomcat"/&gt;<br />
&lt;/tomcat-users&gt;<br />
<br />
Edit this file after you have started tomcat once. Any data placed in the &lt;tomcat-users&gt; element is erased during the first start of tomcat. You can also use tomcat that comes with NetBeans web &amp; Java EE pack.<br />
<br />
==== Configure Database Connection Pool (DBCP) of Tomcat ====<br />
<br />
A database connection pool creates and manages a pool of connections to a database. Recycling and reusing already existing connections to a dB is more efficient than opening a new connection. It is still possible and valid to open and close connection for each servlet/jsp (visit [[|#Using_JDBC_driver]] for details).<br />
<br />
Before proceeding, let's assume that $CATALINA_HOME denotes tomcat installation directory (typically: /usr/local/apache-tomcat-6.0.14).<br />
<br />
echo $CATALINA_HOME<br />
sudo ln -s /usr/share/java/postgresql.jar $CATALINA_HOME/lib/postgresql.jar<br />
sudo mkdir $CATALINA_HOME/webapps/dataSourceTest<br />
sudo chown $USER:$USER $CATALINA_HOME/webapps/dataSourceTest<br />
cd $CATALINA_HOME/webapps/dataSourceTest<br />
mkdir META-INF WEB-INF WEB-INF/classes<br />
<br />
Create WEB-INF/web.xml and set its content:<br />
<br />
&lt;?xml version="1.0" encoding="UTF-8"?&gt;<br />
<br />
&lt;web-app xmlns="http://java.sun.com/xml/ns/javaee"<br />
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"<br />
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"<br />
version="2.5"&gt;<br />
<br />
&lt;resource-ref&gt;<br />
&lt;description&gt;PostgreSQL connectivity&lt;/description&gt;<br />
&lt;res-ref-name&gt;jdbc/postgresql&lt;/res-ref-name&gt;<br />
&lt;res-type&gt;javax.sql.DataSource&lt;/res-type&gt;<br />
&lt;res-auth&gt;Container&lt;/res-auth&gt;<br />
&lt;/resource-ref&gt;<br />
<br />
&lt;description&gt;<br />
Page for testing<br />
&lt;/description&gt;<br />
&lt;display-name&gt;Testing page&lt;/display-name&gt;<br />
&lt;servlet&gt;<br />
&lt;servlet-name&gt;pgsqlVersion&lt;/servlet-name&gt;<br />
&lt;servlet-class&gt;pgsqlVersion&lt;/servlet-class&gt;<br />
&lt;/servlet&gt;<br />
&lt;servlet-mapping&gt;<br />
&lt;servlet-name&gt;pgsqlVersion&lt;/servlet-name&gt;<br />
&lt;url-pattern&gt;/pgsqlVersion&lt;/url-pattern&gt;<br />
&lt;/servlet-mapping&gt;<br />
&lt;/web-app&gt;<br />
<br />
Create META-INF/context.xml and set its content (replace hostname, database instance name, user id and password):<br />
<br />
&lt;?xml version="1.0" encoding="UTF-8"?&gt;<br />
&lt;Context&gt;<br />
&lt;Resource<br />
name="jdbc/postgresql"<br />
auth="Container"<br />
type="javax.sql.DataSource"<br />
driverClassName="org.postgresql.Driver"<br />
url="jdbc:postgresql://host/database"<br />
username="user"<br />
password="password"<br />
maxActive="20"<br />
maxIdle="10"<br />
maxWait="-1"/&gt;<br />
&lt;WatchedResource&gt;WEB-INF/web.xml&lt;/WatchedResource&gt;<br />
&lt;WatchedResource&gt;META-INF/context.xml&lt;/WatchedResource&gt;<br />
&lt;/Context&gt;<br />
<br />
Create pgsqlVersion.java and set its content:<br />
<br />
import java.io.*;<br />
import java.sql.*;<br />
import javax.sql.*;<br />
import javax.naming.*;<br />
import javax.servlet.*;<br />
public class pgsqlVersion extends GenericServlet {<br />
public void service(ServletRequest request, ServletResponse response) {<br />
try {<br />
response.setContentType("text/html");<br />
PrintWriter pw=response.getWriter();<br />
Context initContext = new InitialContext();<br />
Context envContext = (Context)initContext.lookup("java:/comp/env");<br />
DataSource ds = (DataSource)envContext.lookup("jdbc/postgresql");<br />
Connection conn = ds.getConnection();<br />
Statement stat=conn.createStatement();<br />
ResultSet rs=stat.executeQuery("SELECT version()");<br />
rs.next();<br />
pw.println(rs.getString("version"));<br />
rs.close();<br />
stat.close();<br />
} catch(Exception e) { }<br />
}<br />
}<br />
<br />
Create index.html and set its content:<br />
<br />
<title>PostgreSQL datasource</title>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"<br />
"http://www.w3.org/TR/html4/frameset.dtd"&gt;<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Then compile the servlet:<br />
<br />
export CLASSPATH=$CATALINA_HOME/lib/postgresql.jar:$CATALINA_HOME/lib/servlet-api.jar:.<br />
javac -d WEB-INF/classes/ pgsqlVersion.java<br />
<br />
Finally, visit http: //host:8080/dataSourceTest. Thats all!<br />
<br />
<br><br />
<br />
=== Nagios Network Monitoring Server ===<br />
<br />
* [http://www.ubuntugeek.com/nagios-network-monitoring-system-setup-in-ubuntu.html Nagios Monitoring Server Setup Guide]<br />
<br />
It should be noted that this howto instructs you to build nagios from its sources, while it exists on the official repositories.<br />
<br />
=== NFS Server ===<br />
<br />
* Read [http://nfs.sourceforge.net Linux NFS FAQ]<br />
* Run this command for each computer to determine the IP Addresses for each one:<br />
<br />
ifconfig<br />
<br />
==== Installing NFS Server ====<br />
<br />
sudo apt-get install nfs-kernel-server nfs-common portmap<br />
<br />
Reconfigure Portmap to not bind to loopback interface:<br />
<br />
sudo dpkg-reconfigure portmap <br />
sudo /etc/init.d/portmap restart<br />
<br />
Define which folders to share (export):<br />
<br />
sudo nano /etc/exports<br />
<br />
Add share (export) definitions:<br />
<br />
This will export path to all IP addresses between 192.168.1.1 and 192.168.1.254 with Read/Write access:<br />
<br />
/path/to/shared/files 192.168.1.0/24(rw,no_root_squash,async)<br />
<br />
This will export path to all IP addresses between 192.168.1.1 and 192.168.1.254 with Read Only access:<br />
<br />
/path/to/shared/files 192.168.1.0/24(ro,async)<br />
<br />
''192.168.1.0/24 above would be the clients IP Address''<br />
<br />
When finished, save changes and restart the NFS Server:<br />
<br />
sudo /etc/init.d/nfs-kernel-server restart<br />
<br />
Export your new configuration:<br />
<br />
sudo exportfs -a<br />
<br />
==== Installing NFS Client ====<br />
<br />
sudo apt-get install portmap nfs-common<br />
<br />
==== Mounting Manually ====<br />
<br />
cd ~<br />
mkdir temp<br />
sudo mount 192.168.1.1:/path/to/shared/files temp<br />
<br />
''192.168.1.1 above would be the Servers IP Address''<br />
<br />
You may need to restart NFS services:<br />
<br />
sudo /etc/init.d/portmap restart<br />
sudo /etc/init.d/nfs-common restart<br />
<br />
==== Mounting Automatically ====<br />
<br />
Create mountpoint:<br />
<br />
sudo mkdir /mnt/files<br />
<br />
Edit configuration:<br />
<br />
gksudo gedit /etc/fstab<br />
<br />
Add something similar to below:<br />
<br />
192.168.1.1:/path/to/shared/files /mnt/files nfs rsize=8192,wsize=8192,timeo=14,intr 0 0<br />
<br />
Test new configuration:<br />
<br />
sudo mount -a<br />
<br />
Reboot to test automatic mounting.<br />
<br />
== '''''硬件''''' ==<br />
<br />
=== NVidia 驱动 ===<br />
<br />
首先,弄清楚你清楚你是什么内核运行以下命令查看:<br />
<br />
user@localhost:~$ uname -a<br />
Linux localhost 2.6.22-14-generic #1 SMP Sun Oct 14 23:05:12 GMT 2007 i686 GNU/Linux<br />
<br />
I have the '''generic''' kernel, so I need to install the following:<br />
<br />
sudo apt-get install linux-restricted-modules-generic<br />
<br />
<br> After that's done, go to '''''System &gt; Administration &gt; Restricted Drivers Manager''''' and turn on the driver.<br />
<br />
Some users may receive an error screen: "The software source for the packsge nvidia-glx-new is not enabled." This can be overcome by going to '''''System &gt; Administration &gt; Software Sources''''' and ticking all the boxes under the heading "Downloadable from the Internet", click close and then allow Ubuntu to reload the package lists. The NVidia drivers can then be enabled using the method above.<br />
<br />
You can optionally prevent showing NVidia logo on startup by:<br />
<br />
sudo nvidia-xconfig --no-logo<br />
<br />
=== Wacom tablet ===<br />
<br />
By default, options for the Wacom tablet are commented out. Type the following command to edit the '''xorg.conf''' file.<br />
<br />
gksu gedit /etc/X11/xorg.conf<br />
<br />
Uncomment the following by removing the "#" or just replace the tree lines:<br />
<br />
InputDevice "stylus" "SendCoreEvents"<br />
InputDevice "cursor" "SendCoreEvents"<br />
InputDevice "eraser" "SendCoreEvents"<br />
<br />
Save and restart your X-session by typing '''CTRL-ALT-BACKSPACE'''.<br />
<br />
=== Microsoft Intellimouse ===<br />
<br />
To get the scroll wheel and side buttons to be recognized, change your '''/etc/X11/xorg.conf''' mouse section to look like the following:<br />
<br />
Section "InputDevice"<br />
<br />
Identifier "Configured Mouse"<br />
Driver "mouse"<br />
Option "CorePointer"<br />
Option "Device" "/dev/input/mice" <br />
Option "Protocol" "ExplorerPS/2"<br />
Option "ZAxisMapping" "4 5"<br />
Option "Emulate3Buttons" "true"<br />
Option "Buttons" "7" <br />
Option "ButtonMapping" "1 2 3 6 7"<br />
<br />
EndSection<br />
<br />
If you want the wheel scroll button to scroll in firefox rather than the side buttons make "ZAxisMapping" "6 7" and "ButtonMapping" "1 2 3 4 5".<br />
<br />
At this point you can reboot your computer or restart X (Ctrl-Alt-BackSpace) to see if your forward/back buttons work in FireFox. You can test in a terminal with '''xev'''.<br />
<br />
=== Logitech Marble Mouse ===<br />
<br />
To get the scrollwheel effect on Logitech trackball (Marble Mouse), change your '''/etc/X11/xorg.conf''' mouse section to look like the following:<br />
<br />
Section "InputDevice"<br />
<br />
Identifier "MarbleMouse"<br />
Driver "mouse"<br />
Option "Protocol" "auto"<br />
Option "Device" "/dev/input/mice"<br />
Option "Buttons" "5"<br />
Option "ButtonMapping" "1 8 3 6 7"<br />
Option "EmulateWheel" "true"<br />
Option "EmulateWheelTimeout" "300" # msec<br />
Option "EmulateWheelButton" "6"<br />
Option "YAxisMapping" "4 5"<br />
<br />
EndSection<br />
<br />
Make sure that you have "MarbleMouse" under the server layout section as well.<br />
<br />
The big left and right buttons work normally (click, right click) and pressing them at the same time acts as a middle click. Holding the small left button will let you scroll up and down with the trackball. Clicking small left and right buttons will let you go back/forward in firefox.<br />
<br />
Thanks to imjustabill and Buffalo Soldier from the Ubuntu Forum. This works well on my computer.<br />
<br />
=== Logitech MX510 ===<br />
<br />
To have the extra buttons on your MX510 working with X, you'll have to install and configure the evdev-drivers. Open up a terminal and enter:<br />
<br />
sudo apt-get install [http://packages.ubuntu.com/gutsy/x11/xserver-xorg-input-evdev xserver-xorg-input-evdev] <br />
<br />
Now, all you have to do is configure Xorg to work with the new driver. Always remember to back up original files before altering:<br />
<br />
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.bak<br />
gksudo gedit /etc/X11/xorg.conf<br />
<br />
Locate and replace the '''InputDevice''' section which holds the information for your mouse, for example with the identifier '''Configured Mouse''', and replace it with:<br />
<br />
<nowiki>Section "InputDevice"<br />
Identifier "Configured Mouse"<br />
Driver "evdev"<br />
Option "CorePointer"<br />
Option "Name" "Logitech MX510"<br />
EndSection</nowiki> <br />
<br />
Logout or kill the X session using '''&lt;CTRL&gt;&lt;ALT&gt;&lt;BACKSPACE&gt;''' and login again. This should get all of your buttons and scrollwheel up and running, and even let you navigate the webbrowser history using the thumb buttons on the side.<br />
<br />
=== Disable CAPS LOCK ===<br />
<br />
I like to remap mine to '''&lt;Ctrl&gt;'''. Just run gnome-keyboard-properties with "System &gt; Preferences &gt; Keyboard", click on the "Layout Options" tab and then on the arrow next to "Ctrl key position". Selecting "Make CapsLock an additional Ctrl" does the trick.<br />
<br />
=== Enabling NUM LOCK at boot ===<br />
<br />
The Default behavior is for the NUM LOCK key to be off; if you are on a desktop and have a keypad though, entering digits from it can be much quicker and you may wish to have it enabled for entering login password, etc. Here's how:<br />
<br />
* From Synaptic, download and install "numlockx," or, from the command line;<br />
<br />
sudo apt-get install numlockx<br />
<br />
* To get it working, you now have to edit the appropriate startup file. First, make sure you have a working backup of the file:<br />
<br />
sudo cp /etc/gdm/Init/Default /etc/gdm/Init/Default.bak<br />
<br />
* Next, modify the gdm/Init file. In terminal:<br />
<br />
gksudo gedit /etc/gdm/Init/Default<br />
<br />
* Scroll down to the end of the file, and above the line that says "exit 0" add the following:<br />
<br />
if [ -x /usr/bin/numlockx ]; then<br />
/usr/bin/numlockx on <br />
fi<br />
<br />
* Next time you reboot, your NUM LOCK should default to "on."<br />
<br />
=== BSNL Broadband (dataone) speedup ===<br />
<br />
BSNL Broadband or Dataone provides high speed (2Mbps) Internet connectivity in India. The DNS servers provided by the BSNL (61.1.96.69 and 61.1.96.71) are very slow. Instead use Either of these:<br />
<br />
208.67.222.222 and 208.67.220.220 or<br />
<br />
4.2.2.1 and 4.2.2.2 or<br />
<br />
search Google for free DNS service providers.<br />
<br />
=== Citrix ICA client ===<br />
<br />
The Citrix client no longer suffers from any of the previous Ubuntu version's problems of UTF8 font issues, OpenMotif depends, or flaky/broken browser integration. It just works!<br />
<br />
* Download the latest en.linuxx86.tar.gz (currently v10.6) from [http://www.citrix.com/ Citrix.com] and save to your desktop<br />
* Right-click tar.gz file, and '''Extract Here'''<br />
* Open a Terminal<br />
<br />
Programs &gt; Accessories &gt; Terminal<br />
<br />
* Change to the directory where we extracted the client<br />
<br />
cd Desktop/en.linuxx86<br />
<br />
* Run the setup program<br />
<br />
./setupwfc<br />
<br />
* Select the defaults<br />
<br />
Now, web files from Metaframe Presentation Server, Citrix Access Gateway, etc webpages will work fine in Firefox.<br />
<br />
Someone may wish to add an entry on how to use the client to connect to a local Citrix farm.<br />
<br />
=== WINE ===<br />
<br />
Latest install instructions are always at: [http://www.winehq.org/site/download-deb WineHQ.org]<br />
<br />
Add repository key:<br />
<br />
wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | sudo apt-key add -<br />
<br />
Add repository to apt sources:<br />
<br />
sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/gutsy.list -O /etc/apt/sources.list.d/winehq.list<br />
<br />
Update apt sources:<br />
<br />
sudo apt-get update<br />
<br />
Install WINE:<br />
<br />
sudo apt-get install wine<br />
<br />
The program menu then appears in Programs under Wine, or double-click a Windows/DOS .exe file.<br />
<br />
==== Install Internet Explorer 6 for Wine ====<br />
<br />
IE 6 is not recommended for general usage, but some Windows packages (installed under Wine) require IE6 to complete installation. Furthermore, IE 6 is useful for checking code for developers who want to see how their web pages appear under IE 6.<br />
<br />
Install the required package cabextract from Synaptic Package Manager (or from apt-get install cabextract).<br />
<br />
Download and run the IEs4Linux installation script from the IEs4Linux website:<br />
<br />
wget http://www.tatanka.com.br/ies4linux/downloads/ies4linux-latest.tar.gz<br />
tar zxvf ies4linux-latest.tar.gz<br />
cd ies4linux-*<br />
./ies4linux<br />
<br />
<br> There is a beta version of the install at http://www.tatanka.com.br/ies4linux/downloads<br />
<br />
'''If you hit advance you have the option to install IE7. I have not gotten it to work as of yet, but IE6 installs with no issues on amd64 and i386'''<br />
<br />
Accept all the defaults for installation.<br />
<br />
==== Wine-Doors ====<br />
<br />
Wine-Doors http://www.wine-doors.org/ packages Windows applications for Wine. The current package list includes Internet Explorer 6.<br />
<br />
Debian/Ubuntu package (single click) available for [http://www.wine-doors.org/wordpress/?page_id=3 download].<br />
<br />
=== VMWare Server ===<br />
<br />
Until the Commercial Ubuntu repository includes the VMWare Server, you can use the following 'How To' to compile from source.<br />
<br />
* [http://www.ubuntugeek.com/how-to-install-vmware-server-in-ubuntu-710-gutsy-gibbon.html Step By Step Vmware server setup guide including Screenshots]<br />
<br />
==== VMWare Tools ====<br />
<br />
If you want to install VMware tools on ubuntu gutsy follow this steps<br />
<br />
* [http://www.ubuntugeek.com/howto-install-vmware-tools-in-ubuntu.html VMWare Tools Setup Guide Incliding Screenshots]<br />
<br />
To be able to use usb devices look at following bug comment at https://bugs.launchpad.net/ubuntu/+source/kvm/+bug/156085/comments/5<br />
<br />
=== How to install Broadcom wireless driver ===<br />
<br />
* This worked for me Kubuntu 7.10 32 bit but there are several ways<br />
<br />
* First, make sure you have the appropriate hardware<br />
<br />
lspci | grep Broadcom<br />
<br />
* Output should match this<br />
<br />
02:03.0 Network controller: Broadcom Corporation BCM4306 802.11b/g Wireless LAN Controller (rev 02)<br />
<br />
* Then you have to add a repository<br />
<br />
gksu gedit /etc/apt/sources.list<br />
<br />
* Add<br />
<br />
deb http://ubuntu.cafuego.net gutsy-cafuego bcm43xx<br />
<br />
* Then do this to add the signature<br />
<br />
wget http://ubuntu.cafuego.net/AF425CB5.gpg -O- | sudo apt-key add -<br />
<br />
* Back in the console<br />
<br />
sudo apt-get update<br />
sudo apt-get install bcm43xx-firmware <br />
<br />
* Just press yes, let it install, and reboot! Thanks to Pete and the 7.04 guide for this.<br />
<br />
== Requests ==<br />
If you have requests that you would like to be part of this guide, write them in [[Ubuntu_talk:Gutsy]].<br />
<br />
== ''''' Troubleshooting ''''' ==<br />
<br />
Place solutions to problems you have encountered with Gutsy here.<br />
They may be workarounds to bugs or other solutions to other problems.<br />
<br />
=== OpenOffice spell checking problem ===<br />
This problem is not a bug at all. Some Languages do not have spell checking support, while others do. For example, "English (India)" does not support spell checking but "English (USA)" does. Just go to<br />
Tools -> Options -> Language Settings -> Languages<br />
and select a Western language that has a check mark beside the language name. That's it.<br />
<br />
If you want to add languages that support spell checking, install the package myspell-<language> where <language> is the desired language, e.g.:<br />
sudo apt-get install myspell-fr <br />
to install the French dictionary.<br />
<br />
=== Alternative of SCIM to switch keyboard layout ===<br />
SCIM might not work properly under Gutsy Gibbon, although works fine under Feisty Fawn. Until the problem is fixed, you can use the alternative method to switch keyboard layout.<br />
<br />
*Go to System -> Administration -> Language Support and install the languages you want to use.<br />
*Open System -> Preferences -> Keyboard and add the layout that you want to use from Layouts tab.<br />
*Right click on the free space of upper panel and select "Add to panel...". Add Keyboard Indicator.<br />
<br />
===Fix Slow boot/faulty splash screen===<br />
<br />
if your system is booting slowly or your ubuntu splash screen is not being displayed it could be that Usplash has created the splash screen incorrectly<br />
<br />
1) edit /boot/grub/menu.lst<br />
sudo gedit /boot/grub/menu.lst<br />
<br />
At the very end of the kernel line after "splash" , add <br />
"vga=***" <br />
replace *** with the code from the table below that corresponds with the resolution <br />
and colour setting you are using<br />
<br />
{| border="1" cellspacing="0" cellpadding="5" align="center"<br />
! Screen<br />
! 640x480<br />
! 800x600<br />
! 1024x768<br />
! 1280x1024<br />
! 1600x1200 <br />
|- <br />
| Colors<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
| 256<br />
| 769<br />
| 771<br />
| 773<br />
| 775<br />
| 796<br />
|-<br />
| 32,768<br />
| 784<br />
| 787<br />
| 790<br />
| 793<br />
| 797<br />
|-<br />
| 65,536<br />
| 785<br />
| 788<br />
| 791<br />
| 794<br />
| 798<br />
|-<br />
| 16.8M<br />
| 786<br />
| 789<br />
| 792<br />
| 795<br />
| 799<br />
|}<br />
<br />
the line should look something like this<br />
<br />
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=20fd9912-6383-4860-9cd8-88a11909d715 ro quiet splash vga=791<br />
<br />
Save that file, close it, <br />
<br />
2) edit /etc/usplash.conf<br />
sudo gedit /etc/usplash.conf<br />
<br />
change the resolution to the one you set in the previous step save and close<br />
<br />
3) rebuild the bootsplash screen<br />
<br />
sudo update-initramfs -u -k `uname -r`<br />
<br />
This rebuilds the image that Grub uses to start the system.<br />
<br />
4) reboot<br />
<br />
=== Logout problem === <br />
Some users have have faced a hangout problem when whey press the quit button. Currently the following symptom and work-around have been noticed: <br />
* Press Ctrl-Alt-Backspace to kill X-Window and show the GDM screen. <br />
* gnome-power-manager service should be on. You can enable it from System->Preferences->Sessions.<br />
* Wait for 1 minute. The quit window will appear. (the logout problem will vanish for some times).<br />
* For some users, removing .config/autostart/ directory worked.<br />
== Tips And Tricks ==<br />
It is pointless to add the tricks that is already added in [[Ubuntu:Feisty#Tips_And_Tricks]]. So, only new tricks are added.<br />
<br />
=== What to do when Ubuntu freezes ===<br />
There are different reasons for a computer to crash - there can be a programming bug, a memory issue, or other. When your computer seems to be dead, don't panic! And don't reach for that power button!<br />
There are '''five''' simple things you can try before killing the power:<br />
<br />
# Is the computer frozen? Try going into one of the VTs by pressing '''<Ctrl><Alt>''' and '''F1'''. This way you may still have control of the computer and manage to kill the application which caused the problem. '''''More on killing applications later.'''''<br />
# If you can't change into a VT, try to kill the X session. This can be done by pressing '''<Ctrl><Alt><Backspace>'''. All applications that were opened during the session will automatically be killed, so you should gain control over the computer after you've been sent back to the login screen.<br />
# OK, so you can't kill X or go into VT. Let's do a reboot, which can safely be done by pressing '''<Ctrl><Alt><Delete>'''. The machine will beep and start running the shutdown scripts.<br />
# If for some reason one or more of the shutdown scripts should die, and the computer stops the rebooting process, press the key combination again to ''force a reboot''. This not safe if the scripts haven't gotten around to unmount the local filesystems.<br />
# Final way out: Your computer doesn't obey and none of above methods seem to give any response. Here's a little trick that might help, not known to many Linux users! The kernel has a small userspace communication line opened, so even if the computer has crashed badly (I haven't tried this during kernel-panic, though, can anyone confirm?) you can make it reboot safely. This method ''is'' safe, but should be used '''''only if everything else fails'''''! Hold down '''<Ctrl>''', '''<Alt>''' and '''<PrtScrn/SysRq>'''. While holding down these, type the following letters - in order - '''R E I S U B'''. The computer will unmount any filesystems that are locally mounted, and safely bring down the system. If you have trouble remembering the letter combination; think '''''busier''''', only ''backwards''.<br />
<br />
=== How to find the UUID of a device ===<br />
* This is useful if changes are made to the partition table or a new hard drive is added to the computer.<br />
* When the UUID(s) change an error will be caused during boot.<br />
* Pressing <Ctrl>-D will allow the boot to continue but to fix the problem:<br />
-> Open fstab file:<br />
sudo gedit /etc/fstab<br />
-> In another terminal run this commmand: <br />
ls -l /dev/disk/by-uuid/ <br />
-> Or you can type this to list all of your devices:<br />
blkid<br />
<br />
* Compare the UUID's and any that are different in fstab from the list must be changed. The easiest way is copy and paste.<br />
* Some other things may have to be edited as well like the mount point, type (ext2, ext3, ntfs, etc) , options, dump, pass, etc.<br />
''For more help editing fstab look [http://ubuntuforums.org/showthread.php?t=283131 Here:]''<br />
<br />
* To list the UUID of a specific device:<br />
sudo vol_id -u device<br />
<br />
* Where device might be /dev/sdxy.<br />
'' Example: sudo vol_id -u /dev/sda1 ''<br />
<br />
=== Enable vim syntax highlighting ===<br />
The source of vi/vim command is vim-tiny package which does not support syntax highlighting. Install vim:<br />
sudo apt-get install vim<br />
Then open /etc/vim/vimrc and uncomment '''syntax on'''<br />
<br />
Replace<br />
"syntax on<br />
<br />
With<br />
syntax on<br />
<br />
=== HAL ===<br />
If you have problem failed to initialize HAL, and devices such as card reader,or shutdown problem, power meter doesn´t appear..please find this line in /etc/init.d/rc<br />
<br />
sudo vim /etc/init.d/rc<br />
find this line :<br />
CONCURRENCY=shell<br />
<br />
To fix this:<br />
<br />
sudo nautilus<br />
<br />
Navigate to /etc/<br />
look for the folder '''rc2.d'''<br />
rename '''s12hal''' to '''s13hal<br />
'''<br />
<br />
the problem was HAL loading before DBUS and causing such error.<br />
this should fiz the problem, if not<br />
<br />
sudo gedit /etc/init.d/rc<br />
<br />
and turn<br />
CONCURRENCY=shell to CONCURRENCY=none<br />
<br />
=== Enable Sirius Internet Radio for Firefox ===<br />
*Install [[#How to install VLC media player| VLC]]<br />
*Install the [https://addons.mozilla.org/en-US/firefox/addon/446 firefox media player connectivity plugin]<br />
<br />
Launch the player from [http://www.sirius.com/servlet/ContentServer?pagename=Sirius/Page&c=FlexContent&cid=1191942072317&flash=noflash| www.sirius.com]. After authenticating, you will now be able to select which stream to play. Selecting the stream will launch vlc.<br />
<br />
=== Remove unwanted language/locale files ===<br />
sudo apt-get install localepurge<br />
sudo localepurge<br />
<br />
=== Auto starting pidgin at login ===<br />
Goto System -> Preferences -> Sessions. Click Add. A popup window will appear. Set Name to "Pidgin" and Command to "/usr/bin/pidgin". Click OK. Make sure that it is enabled.<br />
<br />
=== sudo/gksu without password ===<br />
EDITOR=gedit gksu visudo<br />
Find "Defaults !lecture,tty_tickets,!fqdn" and replace by "Defaults timestamp_timeout=-1".<br />
<br />
=== Speed-up Ubuntu ===<br />
Open System -> Preferences -> Sessions and remove the startup programs that you do not need (e.g. Bluetooth Manager, Evolution Alarm Notifier, Restricted Driver Manager, Tracker, User folders update, Visual).<br />
<br />
Open System -> Preferences -> Appearance and make Visual Effects to None.<br />
<br />
Open System -> Administration -> Services and disable the services that you do not need (e.g. alsa-utils, bluetooth, brltty, hdparm, acpid, apmd, screen).<br />
<br />
=== How to change the USplash Screen on startup/shutdown ===<br />
<br />
When you add another Desktop Environment, the USplash screen may change (saying Kubuntu instead of Ubuntu). If you want to change it, do the following:<br />
<br />
sudo update-alternatives --config usplash-artwork.so<br />
<br />
This will bring up a list of installed USplash screens. Type the number that corresponds to the one you want and press Enter. Then type:<br />
<br />
sudo dpkg-reconfigure usplash<br />
<br />
Then reboot.<br />
<br />
== ''''' Guide Development ''''' ==<br />
<br />
'' Note: This section was taken from the Feisty Guide and edited appropriately.''<br />
<br />
Place ideas here to increase the look and performance of this guide.<br />
<br />
* Add a new section for Gnome Themes from http://art.gnome.org and KDE Themes from http://www.kde-look.org/.<br />
* Have entries under their headings in alphabetical order.<br />
* Try to keep the guide neat and clutter free.<br />
* Possible "Short Version" Table of contents without each "How to".<br />
* Add a [top] link to the end of each article.<br />
* If possible, include a 'find/search' function to easily access queries.<br />
** This can be done in Firefox with <Ctrl>-F.<br />
* instead of 'apt-get install', there could be the new Gutsy [http://www.ubuntugeek.com/apturl-protocol-handler-in-ubuntu-gutsy-gibbon.html apturl] feature for easier installation of software</div>Convicehttps://wiki.ubuntu.org.cn/index.php?title=Ubuntu:Gutsy/zh&diff=75355Ubuntu:Gutsy/zh2007-12-30T12:02:30Z<p>Convice:</p>
<hr />
<div>{{Translation}} {{From|http://ubuntuguide.org/Ubuntu:Gutsy}} {{Languages|Ubuntu:Gutsy}} {{Translator|zhan 译者2}}<br />
<br />
= ''''' Ubuntu 7.10 (Gutsy Gibbon) ''''' =<br />
<br />
'''Ubuntu Gutsy Gibbon, the successor of Feisty Fawn was released on Oct 18th, 2007. Please help test and perfect this guide.'''<br />
'''Ubuntu Gutsy Gibbon, Feisty Fawn 的后续版本,于 2007 年 10 月 18 日已经发布。请帮忙测试和完善这份指南'''<br />
<br />
This guide was started by [[User:Jiyuu0|Chua Wen Kiat]] (Kuala Lumpur, Malaysia). <br />
It is now being maintained by the [http://linux.edu.lv/index.php?newlang=english Linux Center] of [http://www.lu.lv/eng/ University of Latvia], and everyone else who is willing to contribute.<br />
<br />
这份指南由 [[User:Jiyuu0|Chua Wen Kiat]] (Kuala Lumpur, Malaysia). 发起。现在它由[http://www.lu.lv/eng/ Latvia 大学]的[http://linux.edu.lv/index.php?newlang=english Linux 中心]和所有愿意贡献的其他人们共同维护。<br />
<br />
This guide can be discussed at the official [http://www.ubuntuforums.org/forumdisplay.php?f=78 UbuntuGuide.org Forum] at ubuntuforums.org. Stop by and join the discussion. <br />
<br />
这份手册可以在官方论坛 ubuntuforums.org 的[http://www.ubuntuforums.org/forumdisplay.php?f=78 UbuntuGuide.org 论坛]<br />
讨论。加入讨论吧。<br />
<br />
== ''''' 前言 ''''' ==<br />
<br />
=== 关于 Gutsy ===<br />
<br />
* On October 18, 2007 Ubuntu 7.10 was released.<br />
* It was code named Gutsy Gibbon and is the successor to Ubuntu 7.04 Feisty Fawn (Feisty+1 or the very next release after Feisty)<br />
* Gutsy will be supported for 18 months on both desktops and servers.<br />
* Users requiring a longer support lifetime on servers may choose to continue using Ubuntu 6.06 LTS, with security support until 2011, rather than upgrade to or install 7.10.<br />
<br />
* 2007 年 10 月 18 日,Ubuntu 7.10 发布。<br />
* 它被命名为 Gutsy Gibbon,它是 Ubuntu 7.04 Feisty Fawn 的后续版本(Feisty +1 或紧接 Feisty 之后发布的版本)<br />
* Gutsy 将在桌面和服务器版本上提供 18 个月的支持<br />
* 要求更长期服务器版本支持的用户可以选择 Ubuntu 6.06 LTS ,而不是更新到 7.10, 因为 6.06 的安全支持直到 2011 年。<br />
<br />
=== 如何找出您正在使用的 Ubuntu 版本 ===<br />
<br />
* Read [[#General Notes]]<br />
*In Gutsy goto System -> Administration -> System Monitor -> System Tab<br />
<br />
or on all versions and derivatives of Ubuntu use this command:<br />
<br />
lsb_release -a<br />
<br />
* 读一下 [[#General Notes]]<br />
* 在 Gutsy 中,到系统->管理->系统监视器->系统标示 查看<br />
或者在所有的 Ubuntu 版本和衍生版本中,使用这个命令:<br />
<br />
lsb_release -a<br />
<br />
=== Ubuntu 的更新的版本 ===<br />
<br />
* Ubuntu uses a six month release cycle<br />
* These releases occur in April and October<br />
* The next release is scheduled for April 24, 2008 and will be Ubuntu 8.04 (Hardy Heron) which is Gutsy+1.<br />
* Hardy Heron will be a LTS (Long Term Support) release and will be supported with security updates for five years on the server and three years on the desktop.<br />
<br />
* Ubuntu 采用 6 个月的发行周期<br />
* 一般发布在 4 月和 10 月<br />
* 下一次的发布计划在 2008 年 4 月 24 日,并命名为 Ubuntu 8.04(Hardy Heron)即 Gutsy+1。<br />
* Hardy Heron 将是 LTS(长期支持)版本,将提供 5 年的服务器版本安全支持和 3 年的桌面版本支持。<br />
<br />
=== Ubuntu 的老版本 ===<br />
<br />
* '''[[Ubuntu:Feisty | 7.04 (Feisty Fawn)]]'''<br />
<br />
* '''[[Ubuntu:Edgy | 6.10 (Edgy Eft)]]'''<br />
<br />
* '''[[Ubuntu_dapper | 6.06 (Dapper Drake)]]'''<br />
<br />
If you are using an outdated version of Ubuntu, you should consider updating it to Gutsy. There have been considerable improvements to this version, and the updater used in Gutsy will ease transitions to future versions. If you are in a production environment, or if everything works perfectly for you, you may wish to stay with a Long-Term Support (LTS) version.<br />
<br />
如果您试用一个 Ubuntu 的过时的版本,您应该考虑将其升级到 Gutsy。 这个版本有相当多的改进,并且和将来的版本更加容易整合。如果您使用其作为一个生产环境,或您认为所有的事情都很完美,您可以考虑仍然使用长期支持版本(LTS)。<br />
<br />
*[http://www.ubuntu.com/getubuntu/upgrading Ubuntu 升级页面]<br />
<br />
* Dapper is latest LTS and the next version Gutsy+1 will be the next LTS released.<br />
<br />
*Read [https://lists.ubuntu.com/archives/ubuntu-devel-announce/2007-April/000276.html Introduction to Gutsy Gibbon] from April 2007<br />
<br />
* Dapper 是最新的 LTS 版本,Gutsy+1 的新版本将是下一个 LTS 版本。<br />
<br />
* 读一下从 2007 年 4 月开始的[https://lists.ubuntu.com/archives/ubuntu-devel-announce/2007-April/000276.html Gutsy Gibbon 简介] <br />
<br />
=== General Notes ===<br />
<br />
# 这是一个非官方的 Ubuntu 7.10 (Gutsy Gibbon) 初学者向导. 它与 Ubuntu和 Canonical 公司都没有关系.<br />
# 这个向导发自于官方论坛([http://www.ubuntuforums.org/forumdisplay.php?f=78 UbuntuGuide.org Forum] at ubuntuforums.org).欢迎参与讨论。<br />
# If you see a bluish box, this means you have to execute the commands in Terminal mode (Applications -&gt; Accesories -&gt; Terminal) or use the content of that box as mentioned in some other instructions.<br />
# 在终端模式,你也可以用“复制”“粘贴”来代替用键盘键入命令,这样往往可以有效的防止输入错误。(Ctrl+c=复制,Shift+Insert=粘贴)<br />
# "sudo" 表示 "'''s'''ubstitute '''u'''ser '''do'''". Sudo 需要你提供密码(密码不会在终端中回显). 你可以利用sudo代替另一个用户在计算机上操作-比如&nbsp; sudo -u peter &lt;命令&gt; 将会以peter的身份在计算机上执行此命令。<br><br />
# 欲获得更多关于命令的信息,请参阅手册页。例如,在终端中输入“man sudo”可以获得与sudo相关的信息。<br />
# 你也可以使用更新管理器来代替"apt-get"(系统-系统管理-更新管理器)<br />
# "apt-get"和"wget"都需要网络连接来下载安装和更新程序<br><br />
# 所以涉及 "aptitude"的选项都可以用"apt-get"替代.当然可以继续使用"aptitude",但是这可能会造成一些依赖性上的问题。<br><br />
# 可以点击右键选择“链接另存为”来下载文件,但必须保证文件的名字和拓展名都是正确的<br />
# 如果你有意向帮助Ubuntu本土化,请访问 https://launchpad.net/<br />
# 善待他人的理念永远和Ubuntu一起伴随着你...<br />
# ''如果使用的是64位的版本,请在“i386”用“amd64”代替''<br />
<br />
=== 外部链接申明 ===<br />
<br />
这份指南中的很多部分都有外部链接,这可以使这份指南更加精悍,然而Ubuntugide.org不能保证每个链接都是有效的。我们不能对本指南以外的一些拓展链接负责,如果你发现哪个链接是无效的,那请在此处报告问题,或者为我们修正那些指向错误的外部链接。因为有你,我们才能做的更加完美。<br />
<br />
==== ''关于链接出错'' ====<br />
<br />
''如果您发现某个链接是错误的或者无法找到相关信息,那请将此连接贴到此处,包括您是在哪段里找到此链接的。谢谢合作!''<br />
<br />
=== 关于Ubuntu以及官方的一些相关内容<br> ===<br />
<br />
==== Ubuntu 7.10的相关指导 ====<br />
<br />
* [http://www.ubuntu.com/ Ubuntu官方网站]<br />
* [http://www.ubuntu.com/products/whatisubuntu 官方介绍关于Ubuntu]<br />
* [http://ubuntuforums.org/ Ubuntu官方论坛]<br />
* [http://en.wikipedia.org/wiki/Ubuntu_(Linux_distribution) 维基百科: Ubuntu版本介绍 (Linux 发行版)]<br />
* [http://www.ubuntugeek.com/ Ubuntu Geek 网站包括很多关于Ubuntu 的指导性文章]<br />
* [http://www.ubuntutips.net/ Ubuntu小窍门]<br />
<br />
<br><br />
<br />
===== Ubuntu截图 =====<br />
<br />
[http://www.debianadmin.com/ubuntu-710-gutsy-gibbon-screenshots-tour.html Ubuntu 7.10 截图展示&nbsp;]<br />
<br />
==== Kubuntu 7.10的相关指导<br> ====<br />
<br />
* [http://www.kubuntu.org/ Kubuntu官方网站]<br />
* [http://www.kubuntuguide.org/ Kubuntuguide.org]<br />
* [http://www.kubuntu.org/docs/about-kubuntu/C/index.html 官方介绍关于Kubuntu]<br />
* [http://kubuntuforums.net/forums/index.php Kubuntu官方论坛]<br />
* [http://en.wikipedia.org/wiki/Kubuntu Wikipedia: Kubuntu]<br />
<br />
===== Kubuntu Screenshots =====<br />
<br />
[http://www.debianadmin.com/kubuntu-710-gutsy-gibbon-screenshots-tour.html Kubuntu 7.10 Screenshots Gallery]<br />
<br />
==== Xubuntu 7.10 Guides and Links ====<br />
<br />
* [http://www.xubuntu.org/ Xubuntu Official Website]<br />
* [http://en.wikipedia.org/wiki/Xubuntu Wikipedia: Xubuntu]<br />
* [http://www.xubuntuguide.org Xubuntuguide.org]<br />
<br />
===== Xubuntu Screenshots =====<br />
<br />
[http://www.debianadmin.com/xubuntu-710-gutsy-gibbon-screenshots-tour.html Xubuntu 7.10 Screenshots Gallery]<br />
<br />
==== Edubuntu 7.10 Guides and Links ====<br />
<br />
[http://www.edubuntu.org/ Offical Edubuntu Website] [http://en.wikipedia.org/wiki/Edubuntu Wikipedia: Edubuntu]<br />
<br />
==== Gobuntu 7.10 Guides and Links ====<br />
<br />
[http://en.wikipedia.org/wiki/Gobuntu Wikipedia: Gobuntu]<br />
<br />
=== 翻译和本地化 ===<br />
<br />
Chinese, Japanese, Portuguese and most European languages have better support in Ubuntu than any other languages. If your language do not have enough support, then you can help Ubuntu by translating it in your preferred language. To translate, visit https://translations.launchpad.net/ubuntu and login (register if not already registered). Choose your preferred language and start translating.<br />
<br />
Ubuntu对中文,日文,葡萄牙文及其它的欧洲语言的支持比对其它语言的支持要好。如果你的语言没有足够的支持的话,那么您可以帮助Ubuntu翻译成你喜欢的语言。翻译请访问 [https://translations.launchpad.net/ubuntu]并登录(如果没有注册的话请先注册)。选择你喜欢的语言并开始翻译。<br />
<br />
== ''''' Updates and Upgrades and Installing Software''''' ==<br />
<br />
=== How to add extra repositories ===<br />
''Work in Progress''<br />
<br />
==== Menu Method ====<br />
*Choose distribution-friendly repositories. These are part of the Ubuntu distribution system. This is the recommended method.<br />
<br />
System-->Administration-->Software Sources<br />
<br />
Check the repositories you think you will need (main, universe, restricted, multiverse). You probably won't need the 'sources' repository.<br />
<br />
*Add any third-party repositories. Such repositories are not monitored in any way. Some are quite popular, however. Use any third-party repository at your own risk. <br />
<br />
System-->Administration-->Software Sources-->Third-party software-->Add<br />
<br />
Add the name of your repository. In this example, we will use Medibuntu, a popular third-party repository not affiliated with Ubuntu in any way.<br />
<br />
<i>APT line:</i> deb http://packages.medibuntu.org/ gutsy free non-free<br />
<br />
*Download any needed gpg keys and add them to the keylist. This key verifies the repository to your system. The Medibuntu repository (not affiliated with Ubuntu) example is shown:<br />
wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add -<br />
<br />
==== Manual Method ====<br />
<br />
* Create a backup of your current list of sources. <br />
sudo cp -p /etc/apt/sources.list /etc/apt/sources.list_backup<br />
<br />
* Open the list of sources in a text editor <br />
<br />
Ubuntu users: <br />
sudo gedit /etc/apt/sources.list<br />
<br />
* Replace everything with the following lines <br />
<br />
:To use your local mirror you can add "''cc.''" before ''archive.ubuntu.com'' (cc = your country code) <br />
:e.g. ''<nowiki>deb http://lv.archive.ubuntu.com/ubuntu gutsy main restricted universe multiverse</nowiki>''<br />
<br />
deb http://us.archive.ubuntu.com/ubuntu/ gutsy main restricted<br />
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy main restricted<br />
<br />
## Major bug fix updates produced after the final release of the<br />
## distribution.<br />
<br />
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted<br />
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted<br />
<br />
##Universe<br />
<br />
deb http://us.archive.ubuntu.com/ubuntu/ gutsy universe<br />
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy universe<br />
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates universe<br />
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates universe<br />
<br />
## Multiverse<br />
<br />
deb http://us.archive.ubuntu.com/ubuntu/ gutsy multiverse<br />
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy multiverse<br />
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates multiverse<br />
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates multiverse<br />
<br />
## Backports<br />
<br />
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse<br />
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse<br />
<br />
## Canonical Partner Repository <br />
<br />
deb http://archive.canonical.com/ubuntu gutsy partner<br />
deb-src http://archive.canonical.com/ubuntu gutsy partner<br />
deb http://security.ubuntu.com/ubuntu gutsy-security main restricted<br />
deb-src http://security.ubuntu.com/ubuntu gutsy-security main restricted<br />
deb http://security.ubuntu.com/ubuntu gutsy-security universe<br />
deb-src http://security.ubuntu.com/ubuntu gutsy-security universe<br />
deb http://security.ubuntu.com/ubuntu gutsy-security multiverse<br />
deb-src http://security.ubuntu.com/ubuntu gutsy-security multiverse<br />
<br />
## PLF REPOSITORY (Unsupported. May contain illegal packages. Use at own risk.)<br />
deb http://packages.medibuntu.org/ gutsy free non-free<br />
<br />
* Save the edited file <br />
<br />
wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add -<br />
sudo apt-get update<br />
<br />
=== 怎样从Feisty 升级到 Gutsy ===<br />
<br />
* [http://www.ubuntugeek.com/upgrade-ubuntu-704-feisty-fawn-to-ubuntu-710-gutsy-gibbon.html 一步一步地按照屏幕显示的升级向导把Ubuntu Feisty 升级到 Gutsy]<br />
<br />
=== How to edit Automatic Updates ===<br />
<br />
*Enable automatic updates from the menu:<br />
<br />
System-->Administration-->Software Sources-->Updates<br />
<br />
Select Important Security Updates and Recommended Security Updates and any other desired updates.<br />
Choose frequency of updates.<br />
<br />
=== How to manually update Ubuntu ===<br />
<br />
*Read [[#General Notes]]<br />
*Read [[#How to add extra repositories]]<br />
<br />
*From the command line:<br />
use http://www.ubuntu-nl.org/source-o-matic/ page to generate the /etc/apt/sources.list file<br />
<br />
take a backup of your existing /etc/apt/sources.list file<br />
<br />
create a new /etc/apt/sources.list file from the generated page available on the browser<br />
<br />
now run the following commands<br />
<br />
sudo apt-get update<br />
sudo apt-get upgrade<br />
sudo apt-get dist-upgrade<br />
<br />
*From the menu:<br />
<br />
System -> Administration -> Update Manager<br />
<br />
== ''''' Add-on Applications ''''' ==<br />
<br />
=== Miscellaneous Applications ===<br />
'' The application in this section need a home. If Editors have the time, please place these apps in an appropriate category. If the category doesn't exist then make it. Destroy this message when complete. Thanks. --[[User:KrazyPenguin|KrazyPenguin]] 06:16, 27 October 2007 (EEST)''<br />
<br />
==== Hotwire - Graphical terminal for Ubuntu ====<br />
If you want graphical terminal for Ubuntu check this Very Useful<br />
*[http://www.ubuntugeek.com/hotwire-graphical-terminal-for-ubuntu.html Hotwire Installation Guide]<br />
==== How to install Epiphany web browser in Ubuntu ====<br />
If you want to How to install Epiphany web browser in Ubuntu follow this procedure<br />
*[http://www.ubuntugeek.com/how-to-install-epiphany-web-browser-in-ubuntu.html Epiphany web browser in Ubuntu]<br />
==== Midori - a lightweight web browser in Ubuntu ====<br />
If you want to How to install Midori web browser in Ubuntu follow this procedure<br />
*[http://www.ubuntugeek.com/midori-a-lightweight-web-browser.html Midori web browser in Ubuntu]<br />
<br />
==== apturl - protocol handler in Ubuntu Gutsy Gibbon ====<br />
If you want to install ubuntu package from web browser here is simple tool<br />
*[http://www.ubuntugeek.com/apturl-protocol-handler-in-ubuntu-gutsy-gibbon.html apturl Setup guide]<br />
==== sysvconfig - utility for configuring init script links ====<br />
sysvconfig - utility for configuring init script links,service command in ubuntu<br />
*[http://www.ubuntugeek.com/sysvconfig-utility-for-configuring-init-script-links.html sysvconfig - utility for configuring init script links]<br />
==== Howto Install qBittorrent in Ubuntu Gutsy ====<br />
sysvconfig - utility for configuring init script links,service command in ubuntu<br />
*[http://www.ubuntugeek.com/howto-install-qbittorrent-in-ubuntu-gutsy.html Howto Install qBittorrent in Ubuntu Gutsy]<br />
<br />
==== Enable Drag and Drop capabilities to aMSN ====<br />
*[http://www.ubuntugeek.com/how-to-enable-drag-and-drop-capabilities-to-amsn.html Enable Drag and Drop capabilities to aMSN ]<br />
<br />
==== Mount/Unmount .iso Images in oneclick ====<br />
*[http://www.ubuntugeek.com/easy-way-of-mountunmount-iso-images-in-ubuntu.html Mount/Unmount .iso Images in oneclick in Ubuntu]<br />
==== Startup Manager ====<br />
StartUp Manager - change settings in Grub, Grub2 and Usplash<br />
*[http://www.ubuntugeek.com/startup-manager-change-settings-in-grub-grub2-and-usplash.html change settings in Grub, Grub2 and Usplash]<br />
<br />
==== Adobe Reader Gutsy amd64/i386 ====<br />
<br />
*[http://www.ubuntugeek.com/how-to-install-adobe-pdf-reader-811-with-plug-in-for-mozilla-firefox-in-gutsy-gibbon.html Acrobat Reader 8 with firefox plugins step by step installation guide]<br />
First<br />
echo "deb http://packages.medibuntu.org/ gutsy free non-free" | sudo tee -a /etc/apt/sources.list<br />
<br />
Second<br />
wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add - && sudo apt-get update<br />
<br />
Third we add plug ins and Reader<br />
sudo aptitude install acroread acroread-plugins acroread-escript<br />
<br />
You can also install the plug-in for Firefox<br />
sudo aptitude install mozilla-acroread<br />
<br />
Enjoy Adobe Reader<br />
<br />
==== OpenOffice add ons ====<br />
Opening .docx files in OpenOffice for Ubuntu (This will work with other distros)<br />
<br />
First we need to download the converter, it can be found here> [http://download.novell.com/SummaryFree.jsp?buildid=ESrjfdE4U58%7E]<br />
Download the "odf-converter-1.0.0-5.i586.rpm"<br />
<br />
Now install alien, if you have not yet<br />
<br />
sudo apt-get install alien<br />
<br />
Then we need to convert it, we do not want a .deb package for this, so we use the -ct switch not the -k<br />
The -ct converts it to a .tgz<br />
<br />
sudo alien -ct odf-converter-1.0.0-5.i586.rpm<br />
<br />
Once it is converted you need to unpack it<br />
<br />
tar xvf odf-converter-1.0.0.tgz<br />
<br />
Now there should be three dirs on you desktop or where ever you un tared these.<br />
<br />
You now need to run<br />
<br />
sudo cp usr/lib/ooo-2.0/program/OdfConverter /usr/lib/openoffice/program/<br />
<br />
sudo cp usr/lib/ooo-2.0/share/registry/modules/org/openoffice/TypeDetection/Filter/MOOXFilter_cpp.xcu /usr/lib/openoffice/share/registry/modules/org/openoffice/TypeDetection/Filter<br />
<br />
sudo cp usr/lib/ooo-2.0/share/registry/modules/org/openoffice/TypeDetection/Types/MOOXTypeDetection.xcu /usr/lib/openoffice/share/registry/modules/org/openoffice/TypeDetection/Types<br />
<br />
Then you are done, you can now open and edit .docx files '''ONLY''' I will post the others when I find them.<br />
<br />
There is an alternative to installing the "odf converter" on Ubuntu 7.10 (Gutsy). The 3 simple steps are as follows:<br />
<br />
(make sure you are logged in as root first, so from the terminal, type '''sudo su -''' and type in your password when prompted) <br />
<br />
Step 1: echo "deb http://ubuntu.org.ua/ getdeb/" >>/etc/apt/sources.list<br />
<br />
Step 2: apt-get update<br />
<br />
Step 3: apt-get install odf-converter<br />
<br />
I did the 3 steps above and got it working on my machine. Please do let me know if anyone is having any problems with it.<br />
<br />
====Genealogical Research and Analysis Management Program (Gramps)====<br />
GRAMPS, the Genealogical Research and Analysis Management Programming System, is an Open Source genealogy program written in Python, using the GTK/GNOME interface. GRAMPS has the ability to import GEDCOM files that are used in such programs as FamilyTree Maker for Windows and can produce reports in various formats such as the popular ABIWord and OpenOffice.org formats as well as HTML and PDF.<br />
sudo apt-get install gramps<br />
<br />
=== 桌面 ===<br />
<br />
==== Howto Tweak Ubuntu System ====<br />
<br />
If you want to tweak ubuntu check this<br />
<br />
* [http://www.ubuntugeek.com/howto-tweak-ubuntu.html Howto Tweak Ubuntu System]<br />
<br />
==== AMOR - a creature for your desktop ====<br />
<br />
If you want to add some fun to your ubuntu desktop this is for you<br />
<br />
* [http://www.ubuntugeek.com/amor-a-creature-for-your-desktop.html AMOR - a creature for your desktop]<br />
<br />
==== Advanced Desktop Effects (Compiz Fusion) ====<br />
<br />
Ubuntu 7.10 Gutsy Gibbon comes shipped with Compiz Fusion pre-installed, which means less tinkering with sensitive configuration files. For most part, Compiz needs proprietary drivers for your graphics card to work properly, so make sure you install those if needed.<br />
<br />
To enable desktop effects, turn them on by navigating your GNOME-menu to '''System &gt; Preferences &gt; Appearance'''. Under the tab ''Visual Effects'' you'll find three settings; ''None'', ''Normal'' and ''Extra''. To turn Compiz on, choose one of the two latter.<br />
<br />
If you wish to customize your Compiz options and plugins, such as animations and Desktop Cube, first install the configuration tool:<br />
<br />
sudo apt-get install [http://packages.ubuntu.com/gutsy/x11/compizconfig-settings-manager compizconfig-settings-manager] <br />
<br />
Then either choose the now available '''''Custom''''' and '''''Preferences''''' from the above ''Visual Effects'' menu, or start the settings manager via the menu '''System &gt; Preferences &gt; Advanced Desktop Effects Settings'''. You can also start the application from the terminal or run dialog ('''ALT + F2'''), using the command '''ccsm'''.<br />
<br />
==== ATI users and Compiz ====<br />
<br />
Some ATI cards don't need their proprietary drivers to work with Compiz as the open-sourced driver ('''radeon''') also has support for 3D acceleration. However, the open-sourced driver isn't as fast as the closed-sourced ('''fglrx''') one, so if you need the proprietary one you'll have to tinker around in the terminal a little.<br />
<br />
<br> 1. After you've installed the driver, either through the proprietary manager or directly from [http://ati.amd.com/support/driver.html ATI's site], you'll have to setup the Xorg configuration file to work with your new driver. Always remember to back up the original file before altering, in case something goes wrong. Open up a terminal and enter:<br />
<br />
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.bak<br />
sudo aticonfig --initial --input=/etc/X11/xorg.conf<br />
<br />
This will disable the default '''radeon''' driver and replace it with ATI's own.<br />
<br />
<br> 2. Now, let's tell Compiz not to care about drivers that are blacklisted:<br />
<br />
echo SKIP_CHECKS="yes" &gt;&gt; $HOME/.config/compiz/compiz-manager<br />
<br />
Alternatively, you could whitelist the driver, which is a much prettier solution. Run this command to edit the Compiz startup-script:<br />
<br />
gksudo gedit /usr/bin/compiz<br />
<br />
Search for '''Driver whitelist''' and add '''''fglrx''''' to the end of the line, like this:<br />
<br />
# Driver whitelist<br />
WHITELIST="nvidia intel ati radeon i810 fglrx"<br />
<br />
<br> 3. Reboot your computer, login and enable Compiz as mentioned above '''et voilà'''! Behold Compiz and ATI hugging.<br />
<br />
==== Live system monitoring ====<br />
<br />
sudo apt-get install netspeed<br />
<br />
Right click on the free area of the upper panel and select "Add to Panel...". Add "System Monitor" and "Network Monitor". Right Click on System Monitor and select Preferences. Add the monitor resources that you want to monitor.<br />
<br />
==== Desktop session recording ====<br />
<br />
It is possible to record the whole desktop session along with mouse pointer and sound system. It is a very useful tool for video screenshot as ordinary still picture screenshots generated by pressing Print Screen cannot demonstrate everything. Three applications that can do this for you are Istanbul, Wink and gtk-recordMyDesktop.<br />
<br />
====== Istanbul ======<br />
<br />
sudo apt-get install istanbul<br />
<br />
====== Wink ======<br />
<br />
sudo apt-get install wink<br />
<br />
====== gtk-recordMyDesktop ======<br />
<br />
sudo apt-get install gtk-recordmydesktop<br />
<br />
==== International Clock Gnome Applet (OpenSuse contribution) ====<br />
<br />
To switch to the new international clock applet download it from [http://brainstormingproject.free.fr/intlclock_1.0-1ubuntu0_i386.deb Here] <!--{11987330273590} --> then install it with dpkg. <!--{11987330273591} --><br />
<br />
Remove the old clock gnome applet right-clicking on it and then add a new applet to the panel with a right-click too over the empty place:<br />
<br />
&gt;Add to panel...&gt;Miscellaneous&gt;International Clock&gt;Add<br />
<br />
You got it.<br />
<br />
Add World Map and choose World locations using its Preferences menu<br />
<br />
=== 备份 ===<br />
<br />
Ubuntu Backup Options<br />
If you want to backup your Ubuntu Desktop Use Sbackup<br />
<br />
* [http://www.ubuntugeek.com/backup-and-restore-your-ubuntu-system-using-sbackup.html Sbackup Installation and setup guide]<br />
<br />
rdiff-backup<br />
Use rdiff-backup ubuntu<br />
<br />
* [http://www.ubuntugeek.com/backup-ubuntu-using-rdiff-backup.html rdiff-backup Setp Tutorial]<br />
<br />
=== 游戏 ===<br />
<br />
==== Frozen Bubble ====<br />
<br />
To install Frozen Bubble simply run:<br />
<br />
sudo apt-get install frozen-bubble<br />
<br />
or use Synaptic Package Manager under System &gt; Administration menu, to locate and install the package.<br />
<br />
==== How to solve Sudoku ====<br />
<br />
There is a simple [http://tamal.nath.googlepages.com/sudoku.pl Perl script] for solving gnome-sudoku. It does not support trial-and-error.<br />
<br />
==== Super Nintendo Emulator (ZSNES) 1.510 for i386/AMD64 ====<br />
<br />
* Read [[|#General Notes]]<br />
<br />
''For support or questions see http://ubuntuforums.org/showthread.php?t=588744''<br />
<br />
''ZSNES 1.51 is included in the Official Gutsy i386 repos. However, there is no official AMD64 version, and the i386 version is known to have issues in Gutsy (see http://ubuntuforums.org/showthread.php?t=571666). There is a workaround available for i386 users who are experiencing this error (see http://ubuntuforums.org/showpost.php?p=3604026&amp;postcount=22).''<br />
<br />
* Add a 3rd Party Repository<br />
<br />
echo "deb http://packages.dfreer.org gutsy main" | sudo tee -a /etc/apt/sources.list<br />
wget http://packages.dfreer.org/7572013D.gpg -O- | sudo apt-key add -<br />
sudo apt-get update<br />
<br />
* Install using one of the lines below<br />
<br />
sudo apt-get install zsnes32 #for amd64 users<br />
sudo apt-get install zsnes #for everyone else<br />
<br />
* Applications &gt; Games &gt; zsnes or zsnes32<br />
<br />
==== Playstation Emulator (pSX) 1.13 for i386/AMD64 ====<br />
<br />
* Read [[|#General Notes]]<br />
<br />
''For support or questions see http://ubuntuforums.org/showthread.php?t=394097''<br />
<br />
* Add a 3rd Party Repository<br />
<br />
echo "deb http://packages.dfreer.org gutsy main" | sudo tee -a /etc/apt/sources.list<br />
wget http://packages.dfreer.org/7572013D.gpg -O- | sudo apt-key add -<br />
sudo apt-get update<br />
<br />
* Install using one of the lines below<br />
<br />
sudo apt-get install psx32 #for amd64 users<br />
sudo apt-get install psx #for everyone else<br />
<br />
* Applications &gt; Games &gt; pSX or pSX32<br />
<br />
==== KDE games ====<br />
<br />
To install the games from KDE 3 (recommended for Kubuntu users), install the package kdegames. This can be done with:<br />
<br />
sudo apt-get install kdegames<br />
<br />
==== UrbanTerror 4.0 ====<br />
<br />
* UrbanTerror 4.0 is a Multi-player First Person Shooter. The Game uses the open source quake 3 engine and features many real weapons and free to use servers for multi-player functionality.<br />
<br />
''More information can be found at [http://www.urbanterror.net UrbanTerror]''<br />
<br />
* You can manually download and install UrbanTerror from the following webpage [http://www.urbanterror.net/page.php?6 UrbanTerror_Download]<br />
* Or you can enjoy an automated install by downloading and executing the linux install script from either of the following links: [http://89.106.68.26/linux/urbanterror4/urt40-linux-installer.sh urt40-linux-installer.sh_1] or [http://vlaai.snt.utwente.nl/pub/games/urbanterror/urt40-linux-installer.sh urt40-linux-installer.sh_2]<br />
<br />
* After downloading the script open Terminal into your download directory then make the script executable with the following command:<br />
<br />
sudo chmod +x urt40-linux-installer.sh<br />
<br />
* Now double click on the script to execute and follow the directions<br />
* The install will take awhile as the script executes a download of the necessary files which are about 541MB<br />
* After the install you will have a nice UrbanTerror icon on your desktop (unless you installed as root)<br />
<br />
''This easy install script is courtesy of Nexu from the UrbanTerror Forums.''<br />
<br />
=== CD/DVD ===<br />
==== How to rip a DVD video ====<br />
dvd::rip is a full featured DVD copy program written in Perl. It provides an easy to use but feature-rich Gtk+ GUI to control almost all aspects of the ripping and transcoding process. It uses the widely known video processing swissknife transcode and many other Open Source tools.<br />
sudo apt-get install dvdrip<br />
<br />
==== How to burn video DVD ====<br />
dvdauthor is a program that will generate a DVD movie from a valid mpeg2 stream that should play when you put it in a DVD player.<br />
sudo apt-get install dvdauthor<br />
<br />
==== How to burn a CD/DVD ====<br />
nautilus-cd-burner is a basic and pre-installed program to write a CD or DVD. Serpentine is a pre-installed audio CD creator program. Serpentine can convert flac and mp3 on the fly, when making audio cds.<br />
[http://www.nero.com/ena/linux3.html nerolinux] is a non-free CD/DVD/Blu-Ray/HD-DVD recorder. k3b is a great CD/DVD writing tool for KDE (ideal for Kubuntu users). But if you are looking for GTK/Gnome alternatives, then [http://packages.ubuntu.com/gutsy/gnome/brasero brasero], [http://packages.ubuntu.com/gutsy/otherosfs/gcdw cdw/gcdw], [http://packages.ubuntu.com/gutsy/sound/gcdmaster gcdmaster], [http://packages.ubuntu.com/gutsy/gnome/graveman graveman] and [http://packages.ubuntu.com/gutsy/gnome/gnomebaker gnomebaker] might impress you.<br />
<br />
[http://packages.ubuntu.com/gutsy/otherosfs/dvdisaster dvdisaster] provides a margin of safety against data loss on CD and DVD media caused by scratches or aging media. It creates error correction data which is used to recover unreadable sectors if the disc becomes damaged at a later time.<br />
<br />
=== 互联网 ===<br />
<br />
==== Browser Plug-ins ====<br />
<br />
Ubuntu automatically installs plug-ins required to browse a site in Firefox. But if you want to install plug-ins run the following in Terminal:<br />
<br />
For Java plug-in:<br />
<br />
sudo apt-get install sun-java6-plugin<br />
<br />
For Flash plug-in:<br />
<br />
sudo apt-get install flashplugin-nonfree<br />
<br />
Or if you want to support the open source flash plugin:<br />
<br />
sudo apt-get install mozilla-plugin-gnash<br />
<br />
For VLC plug-in (automatically installs VLC also):<br />
<br />
sudo apt-get install mozilla-plugin-vlc<br />
<br />
For MPlayer plug-in (automatically installs MPlayer also):<br />
<br />
sudo apt-get install mozilla-mplayer<br />
<br />
For Real player plug-in (automatically installs helix-player):<br />
<br />
sudo apt-get install mozilla-helix-player<br />
<br />
For kaffeine plug-in (automatically installs kaffeine also):<br />
<br />
sudo apt-get install kaffeine-mozilla<br />
<br />
For image-zoom plug-in (to zoom images in a page):<br />
<br />
sudo apt-get install mozilla-imagezoom<br />
<br />
For adblock plug-in (to block ads in a web page):<br />
<br />
sudo apt-get install mozilla-firefox-adblock<br />
<br />
Gutsy includes the option to add extensions to Firefox through the Ubuntu repositories. The option to add these extensions is included by default. To see and add Ubuntu Add-ons:<br />
<br />
* In Firefox, Go to Tools &gt; Add-ons<br />
* Click "Get Ubuntu Addons"<br />
* To see all available add-ons, click the list next to "Show:" and choose "All Available Applications"<br />
* Choose whichever add-ons you want, and click "Apply Changes"<br />
* You can see which add-ons you've installed in the normal Firefox add-on box.<br />
<br />
(Note: All Ubuntu add-ons are also available through the Synaptic package manager.)<br />
<br />
===== Shockwave =====<br />
<br />
''There is no version of Shockwave for Ubuntu/Linux but WINE can be used to run it.'' ''This method will result in 2 Firefox Browsers installed on the computer.'' ''Only use the WINE version when using a website that requires it.'' ''The native version of Firefox will give better computer performance, so it should used in all other occurrences.''<br />
<br />
* Install WINE<br />
* Download and install Firefox for Windows<br />
* Download and install Shockwave for Windows<br />
<br />
==== Download Manager (Downloader for X) ====<br />
<br />
To install Downloader for X simply run:<br />
<br />
sudo apt-get install d4x<br />
<br />
or use Synaptic Package Manager under System &gt; Administration menu, to locate and install the "d4x" package.<br />
<br />
==== FTP client (FileZilla) ====<br />
<br />
FileZilla is a powerful FTP client that came from windows enviroment. Reaching its third version it became cross-platform and is available through the Ubuntu Gutsy Repositories.<br />
<br />
To install FileZilla FTP client simply run:<br />
<br />
sudo apt-get install filezilla<br />
<br />
or use Synaptic Package Manager under System &gt; Administration menu, to locate and install the "filezilla" package.<br />
<br />
==== Configuring Evolution for Gmail ====<br />
<br />
Visit http://mail.google.com/mail/ and click settings (should be in top right corner). Select Forwarding and POP/IMAP.<br />
<br />
* If you want to use POP, select either "Enable POP for all mail (even mail that's already been downloaded)" or "Enable POP only for mail that arrives from now on".<br />
* If you want to use IMAP, select "Enable IMAP".<br />
<br />
Save changes.<br />
<br />
Open Evolution from Applications -&gt; Internet -&gt; Evolution Mail. If no mail account has been created before, a mail account setup wizard will automatically be opened. Otherwise open it from Edit -&gt; preferences -&gt; Mail Accounts -&gt; Add. Click Forward. Enter your email address for Gmail (including @gmail.com). Click Forward.<br />
<br />
* If you have enabled POP from Gmail set "Server Type" to POP, "Server" to pop.gmail.com, and "Use Secure Connection" to "SSL encryption".<br />
* If you have enabled IMAP from Gmail, set "Server Type" to IMAP, "Server" to imap.gmail.com, and "Use Secure Connection" to "SSL encryption".<br />
<br />
Click Forward. Click Forward. Set "Server" to smtp.gmail.com, and "Use Secure Connection" to "SSL encryption". Click Forward. Click Forward. Click Apply.<br />
<br />
Note that IMAP support for GMAIL is being rolled-out currently (Oct. 2007) but is not available to everyone with a GMAIL account yet. So use POP until IMAP is available for every user.<br />
<br />
==== SwiftFox ====<br />
<br />
Swiftfox is the Firefox web browser, but built with optimizations to increase speed on specific CPU types. It is compatible with all Firefox extensions and themes, and uses the same settings location as Firefox, so you can use both transparently.<br />
<br />
Instructions from [http://getswiftfox.com/debian.htm getswiftfox.com]<br />
<br />
* Add the Swiftfox repository<br />
<br />
sudo gedit /etc/apt/sources.list<br />
<br />
* Add this line at the bottom<br />
<br />
deb http://getswiftfox.com/builds/debian unstable non-free<br />
<br />
* Update apt sources<br />
<br />
sudo apt-get update<br />
<br />
* Check your CPU compatibility [http://getswiftfox.com/proc.htm here]<br />
* Install your version of Swiftfox<br />
<br />
sudo apt-get install swiftfox-pentium4<br />
<br />
* Run with<br />
<br />
Programs &gt; Internet &gt; Swiftfox<br />
<br />
* There is also an [[http://www.getswiftfox.com/installer.htm installer]] available that is distro independent. It is a script that downloads and installs Swiftfox in the /opt directory and attempts to use existing Firefox plugins. The installer is probably the best way for most non-Ubuntu and non-Debian users to install Swiftfox.<br />
<br />
==== Azureus (Java BitTorrent client) ====<br />
<br />
The simplest way to install Azureus is:<br />
<br />
sudo apt-get install [http://packages.ubuntu.com/gutsy/net/azureus azureus] <br />
<br />
But it has lots of dependencies. An alternate method is discussed [http://azureus.sourceforge.net/howto_linux.php here]. Additionally you can create a file /usr/share/applications/Azureus.desktop containing the following lines to make it appear in the main menu:<br />
<br />
[Desktop Entry]<br />
Encoding=UTF-8<br />
Type=Application<br />
Terminal=false<br />
Name=Azureus<br />
Exec=/usr/local/azureus/azureus<br />
Comment=Java BitTorrent client<br />
Categories=Application;Network;<br />
MimeType=application/x-bittorrent;<br />
Icon=/usr/local/azureus/Azureus.png<br />
<br />
(here it is assumed that azureus is installed in /usr/local directory)<br />
<br />
Update: A brand-new Azureus package is now available in gutsy-backports, which is highly preferable to the version in the main repositories. It fixes many stability problems and is compiled using icedtea/Java 7. By the time you read this, it may be available in the main repositories. Therefore you might want to make sure you have the gutsy-backports repository enabled before installing azureus via apt-get.<br />
<br />
==== Deluge (A lightweight BitTorrent client written in python) ====<br />
<br />
If you want a client with lower memory and CPU usage than Azureus you might want to try out Deluge. However, due to stability problems with the version available in the [http://packages.ubuntu.com/gutsy/net/deluge-torrent Ubuntu repository], it's probably better to install the latest version using the handy Gutsy-specific package from [http://deluge-torrent.org/downloads-ubuntu the official Deluge website]. To install, just click on the debian package for your version and architecture ('''i386''' for 32-bit systems and '''x86_64''' for 64-bit systems) and choose to run it with GDebi package installer.<br />
<br />
==== DC++ client (Linuxdcpp) ====<br />
<br />
* Install:<br />
<br />
sudo apt-get install linuxdcpp<br />
<br />
* Then go<br />
<br />
Main Menu-&gt;Intenet-&gt;DC++<br />
<br />
=== 多媒体播放器 ===<br />
<br />
==== 怎样安装 Mplayer 和 Multimedia Codecs(解码器) ====<br />
<br />
&nbsp;&nbsp; 安装 mplayer 和 codecs的简单向导<br />
<br />
* [http://www.ubuntugeek.com/install-mplayer-and-multimedia-codecs-libdvdcss2w32codecs-in-ubuntu-710-gutsy-gibbon.html Mplayer 和 Multimedia Codecs的安装指导手册]<br />
<br />
* 从[http://sourceforge.net/project/showfiles.php?group_id=185512 这里] 下载 [http://smplayer.sourceforge.net/ SMPlayer] (MPlayer的一个很棒的前端) 然後双击安装它。 smplayer这个前端也可以在软件包管理器中安装。<br />
<br />
===== &nbsp; 关于64位版本 Mplayer 对 wmv9 格式支持问题<br> =====<br />
<br />
&nbsp;&nbsp;&nbsp; AMD64版本的Mplayer不能正确的播放wmv9格式的文件。 要播放wmv9,你需要安装32位版本的mplayer, 和所有需要的解码器.。相较于我新安装的Gutsy,我不需要额外安装它所依赖的库文件,这让配置mplayer的工作简单多了。这就是说,做完这些步骤後你就可以随时观赏wmv9的文件了。<br />
<br />
'''下载&nbsp; mplayer32 for Edgy 的版本 (被证明能稳定地工作) 放到临时的文件夹中。'''<br />
<br />
mkdir mplayer32temp<br />
cd mplayer32temp<br />
wget http://folk.ntnu.no/grannas/debs/mplayer32_20070130-1_amd64.deb<br />
<br />
'''解开你刚才下载的这个压缩包,放到合适的地方''' ''(按 'n'当 问你是否要为文件更换位置)''<br />
<br />
sudo dpkg -x mplayer32_20070130-1_amd64.deb ./<br />
sudo mv -i usr/bin/* /usr/bin/<br />
sudo mv -i usr/lib32/* /usr/lib32/<br />
<br />
'''从mplayerrhq 获取最新的 win32 codecs (下面命令中是10月7日版本, 2007), 解压缩然後安装''' ''(同样, 在问到更换位置时按'n' )''<br />
<br />
wget http://www3.mplayerhq.hu/MPlayer/releases/codecs/essential-20071007.tar.bz2<br />
tar jxfv essential-20071007.tar.bz2<br />
sudo mv -i essential-20071007/* /usr/lib/win32/<br />
<br />
'''播放 wmv9 影片.(享受它)'''<br />
<br />
mplayer32 foobar.wmv<br />
<br />
<br><br />
<br />
==== 怎样安装 amaroK 多媒体播放器 ====<br />
<br />
* 注意: KDE 环境下, Amarok 已经默认安装 。<br />
<br />
sudo apt-get install amarok<br />
<br />
* 从菜单启动:<br />
<br />
Applications -&gt; Sound &amp; Video -&gt; amaroK<br />
<br />
====== 怎样卸载 amaroK ======<br />
<br />
sudo apt-get --purge autoremove amarok<br />
<br />
====怎样获得MP3文件播放时的鼠标滑过预览 ====<br />
<br />
sudo apt-get install mpg321<br />
sudo apt-get install ubuntu-restricted-extras<br />
sudo apt-get install pulseaudio<br />
sudo apt-get install pulseaudio-esound-compat<br />
sudo apt-get install libasound2-plugins<br />
<br />
这个方法可能会破坏Skype软件的声音系统<br />
<br />
你也能通过下面的步骤实现鼠标滑过预览:<br />
<br />
sudo apt-get install mpg321<br />
sudo apt-get install mpg123-esd<br />
sudo apt-get install vorbis-tools<br />
sudo apt-get install esound<br />
sudo apt-get install ubuntu-restricted-extras<br />
<br />
这样系统中的Skype会保持正常功能<br />
<br />
==== 怎样安装VLC媒体播放器 ====<br />
<br />
sudo apt-get install vlc<br />
<br />
卸载VLC媒体播放器:<br />
<br />
sudo apt-get --purge autoremove vlc<br />
<br />
==== 怎样安装 Banshee 音乐管理和播放器<br> ====<br />
<br />
sudo apt-get install banshee<br />
<br />
卸载:<br />
<br />
sudo apt-get --purge autoremove banshee<br />
<br />
==== How to encode/decode audios ====<br />
<br />
There is a great command line tool, sox which not just a ordinary encoder/decoder but a good composer. Read its manual for more information.<br />
<br />
''Input(s) → Balancing → Combiner → Effects → Output''<br />
<br />
sudo apt-get install sox<br />
<br />
sox cannot handle Real Audio format. For that you need mplayer which converts a .rm file to a .wav file and then use sox to convert wave file to other file.<br />
<br />
mplayer -ao pcm:file=output.wav input.rm<br />
<br />
==== How to encode/decode videos ====<br />
<br />
mencoder, avidemux, transcode, ffmpeg2theora, etc. are some video converting tools. Read their manuals for information.<br />
<br />
sudo apt-get install mencoder avidemux transcode ffmpeg2theora<br />
<br />
==== How to edit audios ====<br />
<br />
sudo apt-get install lmms<br />
sudo apt-get install audacity<br />
<br />
==== How to edit videos ====<br />
<br />
sudo apt-get install ubuntustudio-video<br />
<br />
==== Text-to-Speech ====<br />
<br />
Visit https://help.ubuntu.com/community/TextToSpeech<br />
<br />
=== Programming / Web Development ===<br />
<br />
==== Quanta Plus ====<br />
<br />
(Quanta is a KDE application, but also works on GNOME.)<br />
To install Quanta, HTML/XML/PHP/Etc Web Creation Software:<br />
<br />
sudo apt-get install quanta kompare kxsldbg cervisia<br />
<br />
Applications > Programming > Quanta Plus<br />
<br />
==== Netbeans IDE ====<br />
Netbeans is a platform independent IDE for Java. But it also supports C/C++, Ruby, portals and lots of other stuffs as plug-ins. At the point of writing, version 5.5.1 is the latest stable release and can be installed by:<br />
sudo apt-get install netbeans5.5<br />
Alternately you can download [http://www.netbeans.org/community/releases/60/index.html Netbeans 6.0] and install it manually. The size of the installation package varies from 11 MB to 200 MB.<br />
<br />
===== Netbeans with Web & Java EE pack =====<br />
If you want to use NetBeans for web development and want to integrate with Java EE, download the "Netbeans with Web & Java EE" pack. The plug-in mechanism of installing additional modules are not recommended as it installs it on user directory (~/.netbeans/6.0beta2/modules/) rather than system-wide installation directory (/usr/local/netbeans-6.0beta2/nb6.0/modules/).<br />
<br />
Netbeans with Web & Java EE pack comes with 2 built in runtime environments:<br />
* GlassFish V2 Build 58g<br />
* Apache Tomcat 6.0.14<br />
Those are ideal for both development and production use. Thus you do not have to install either Sun Java Application Server of Apache Tomcat separately. Also uninstalling Netbeans will not uninstall them. You have to uninstall them separately.<br />
<br />
But in case you want to install the servers separately, you typically have to run Netbeans as root.<br />
Alternately, you can also change the configuration files' owner/group and permissions of Tomcat and GlassFish to work with Netbeans.<br />
<br />
==== Eclipse IDE ====<br />
[http://packages.ubuntu.com/gutsy/devel/eclipse Eclipse IDE] is an alternative of [http://packages.ubuntu.com/gutsy/devel/netbeans5.5 Netbeans IDE]. Actually, it is somewhat more popular among Linux users. You can install eclipse directly from [http://www.eclipse.org/downloads/ Eclipse website] or can install it using apt-get:<br />
sudo apt-get install eclipse<br />
<br />
==== Anjuta IDE ====<br />
[http://anjuta.sourceforge.net/ Anjuta] is an IDE used primarily for C/C++ development. Not as robust as other itegrated development environments. However, tt does feature some useful plugins that provide functionality that most other IDE's have. (GUI development, project wizards, etc.)<br />
sudo apt-get install anjuta<br />
<br />
=== Utilities ===<br />
<br />
==== Compression tools ====<br />
Zip, Gzip and Bzip2 are the most popular compression tools available in almost every every Linux. But of late two new compression tools available: p7zip (http://7-zip.org/), ace and rar (http://www.rarlab.com/). 7-zip is a open-source project, but rar and ace are not.<br />
<br />
sudo apt-get install rar unrar<br />
sudo apt-get install p7zip-full<br />
sudo apt-get install unace<br />
<br />
Ark is the compression tool for kde, and has support for more formats including rar.<br />
<br />
sudo apt-get install ark<br />
<br />
==== Clipboard Manager (Glipper) ====<br />
<br />
To install Glipper simply run:<br />
sudo apt-get install glipper<br />
or use Synaptic Package Manager under System > Administration menu, to locate and install the "glipper" package.<br />
<br />
==== Password Manager (KeePassX) ====<br />
<br />
KeePass is a crossplatform password manager.<br />
To install it simply run:<br />
sudo apt-get install keepassx<br />
or use Synaptic Package Manager under System > Administration menu, to locate and install the "keepassx" package.<br />
<br />
==== How to fix/integrate bluetooth with nautilus ====<br />
<br />
On Some systems bluetooth "Browse Device" fuction doesn't work properly.<br />
<br />
To Fix This:<br />
<br />
sudo apt-get install gnome-vfs-obexftp<br />
<br />
or<br />
<br />
sudo aptitude install gnome-vfs-obexftp<br />
<br />
==== 怎样安装 Google Earth (地球仪软件) ====<br />
<br />
Google earth是一个世界地图查看器. 它可以3D的形式显示的建筑以及桥梁. 默认的时候它是显示的是静态的图片. 最新版式中包含了鸟瞰世界的功能. 点击 [http://earth.google.com/ 这里] 查看更多相关的信息.<br />
<br />
Google Earth is available in the Medibuntu Package archive. To install google-earth from Medibuntu:<br />
<br />
echo "deb http://packages.medibuntu.org/ gutsy free non-free" | sudo tee -a /etc/apt/sources.list<br />
wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add - &amp;&amp; sudo apt-get update<br />
sudo aptitude install googleearth<br />
<br />
除此之外你还可以直接从Google下载安装程序进行安装:<br />
<br />
[http://earth.google.com/download-earth.html 下载] Google Earth到你的桌面. 打开终端并运行n:<br />
<br />
chmod +x Desktop/GoogleEarthLinux.bin<br />
sudo Desktop/GoogleEarthLinux.bin<br />
<br />
按照说明完成安装. 卸载Google earth,执行以下命令:<br />
<br />
sudo su<br />
/opt/google-earth/uninstall<br />
<br />
==== 怎样安装 Picasa (Google 开发的照片管理工具) ====<br />
<br />
Picasa 是一款帮助你立即查找、编辑和共享在你的电脑上的所有照片的软件. Picasa makes advanced editing simple by putting one-click fixes and powerful effects at your fingertips. And Picasa makes it a snap to share your pictures – you can email, print photos home, and even post pictures on your own blog. You can install it in four ways:<br />
<br />
* [http://picasa.google.com/linux/download.html 下载] 直接下载 Debian/Ubuntu (DEB包) 安装.<br />
* 访问 http://www.google.com/linuxrepositories/ 阅读怎样添加 Google 源的说明.然后运行:<br />
<br />
sudo apt-get install picasa<br />
<br />
* [http://picasa.google.com/linux/download.html 下载] 自解压安装程序并按照说明配置 Google Earth.<br />
* 安装Windows (需要WINE支持).<br />
<br />
==== How to install Google Desktop (search utility) ====<br />
Google Desktop is a desktop search application that gives you easy access to information on your computer and from the web. Desktop makes searching your own email, files, music, photos, and more as easy as searching the web with Google. You can download Google Desktop in two ways:<br />
* Download and install the Debian package directly from http://desktop.google.com/en/linux/download.html<br />
* Visit http://www.google.com/linuxrepositories/ and see the instructions about how to add Google repository. Then run:<br />
sudo apt-get install google-desktop-linux<br />
<br />
==== How to install ntop (network monitoring utility) ====<br />
Ntop is a network monitoring utility. You can monitor local devices as well as devices with Netflow output (like a Cisco router). It's very easy to install too, open a terminal and type:<br />
<br />
sudo apt-get install ntop<br />
<br />
Now that it is installed, you have to do some basic setup. Once again, in the terminal, type:<br />
<br />
sudo ntop<br />
<br />
You will be asked for a password, and then to confirm the password. This will be the admin password for the ntop web interface. Next, we want to install "Dot", which is a part of the "Graphviz" package:<br />
<br />
sudo apt-get install graphviz<br />
<br />
Now, again in the terminal type:<br />
<br />
sudo /etc/init.d/ntop start<br />
<br />
Thats it! ntop is running! Try browsing to http://127.0.0.1:3000 to get started. You will have to add the path to dot to the ntop configuration. <br />
<br />
Admin -> Configure (Enter admin user/pass) -> Preferences<br />
<br />
At the bottom add a new preference:<br />
<br />
dot.path /usr/bin/dot<br />
<br />
You should now have a network map for the local interface under IP -> Local -> Network Traffic Map<br />
<br />
Visit http://www.ntop.org/ for more information.<br />
<br />
==== How to install applications for study of religious texts ====<br />
<br />
* For study of Bible see [http://gnomesword.sourceforge.net/ GnomeSword]<br />
* For study of Quran see [http://sourceforge.net/projects/zekr/ Zekr]<br />
<br />
===== How to install Gnomesword (Bible study program)=====<br />
*Read [[#General Notes]] <br />
*Read [[#How to add extra repositories]]<br />
*This installs the english version of the program.<br />
<br />
sudo apt-get install gnomesword sword-language-pack-en sword-text-web<br />
<br />
*If you require other languages type:<br />
<br />
sudo apt-cache search bible<br />
<br />
*Take a look at the sword-language-pack's and the sword-text's for additional languages and install as needed. <br />
<br />
Gnomesword is found under Applications-->Accessories.<br />
<br />
*Under KDE, use kio-sword instead of Gnomesword:<br />
<br />
sudo apt-get install kio-sword<br />
<br />
===== How to install a Quran researching tool (Zekr) ===== <br />
[http://siahe.com/zekr/ Zekr] is an open platform Quran study tool for simply browsing and researching on the Quran. <br />
<br />
sudo wget http://siahe.com/zekr/apt/sources.list.d/gutsy.list -O /etc/apt/sources.list.d/zekr.list <br />
wget -q http://siahe.com/zekr/apt/zekr.debian.gpg -O- | sudo apt-key add - <br />
sudo apt-get update <br />
sudo apt-get install zekr ttf-me-quran ttf-sil-scheherazade<br />
sudo apt-get install ttf-farsiweb flashplugin-nonfree<br />
<br />
*Zekr comes with extra Quran translations in Persian, Urdu, French, Russian, English, Turkish, Bosnian, Dutch packaged as zekr-quran-translations-XY where XY is the ISO code of the language. Run<br />
apt-cache search zekr-quran-translations<br />
<br />
in a shell to list them all. Then among the result list choose the appropriate package and install it: For example if you want to install English Quran Translations run the following command:<br />
sudo apt-get install zekr-quran-translations-en<br />
<br />
*For more info see [http://www.siahe.com/zekr/wiki/index.php?title=Installation#Ubuntu.2FDebian Zekr wiki].<br />
<br />
==== How to install applications for Education ====<br />
===== How to install Mnemosyne =====<br />
<br />
[http://mnemosyne-proj.sourceforge.net/ Mnemosyne] is a sophisticated free flash-card tool which optimizes your learning process. To install the latest version in the repositories run the following command<br />
sudo apt-get install mnemosyne<br />
or use Synaptic Package Manager under System => Administration menu, to locate and install the mnemosyne package.<br />
<br />
To install the latest version (the one in the repository is somewhat out of date) first install the dependencies:<br />
sudo apt-get install python python-pygame python-qt3 python-support python-xml<br />
then download the latest source package from [http://mnemosyne-proj.sourceforge.net/ here]:<br />
wget http://superb-east.dl.sourceforge.net/sourceforge/mnemosyne-proj/mnemosyne-0.9.10.tgz<br />
(correct as of 11 Nov 2007)<br />
Decompress it:<br />
tar -xzf mnemosyne-0.9.10.tgz<br />
go to the directory<br />
cd mnemosyne-0.9.10/<br />
run this command to install it:<br />
sudo python setup.py install<br />
To create a launcher for it in your Applications Menu:<br />
System => Preferences => Main Menu => Education (or wherever) => New Item:<br />
Name: Mnemosyne<br />
Command: mnemosyne<br />
<br />
== '''''安全&nbsp;''''' ==<br />
<br />
=== 怎样重设用户密码 ===<br />
<br />
sudo apt-get install john<br />
sudo john /etc/shadow<br />
<br />
=== 怎样重设ROOT用户的密码 ===<br />
<br />
重启Ubuntu进入安全模式并输入:<br />
<br />
passwd<br />
<br />
<br />
来修ROOT用的密码<br />
<br />
=== 怎样创建或修改GRUB启动菜单的密码 ===<br />
<br />
请点击[http://ubuntuguide.org/wiki/Ubuntu:Feisty#How_to_change_GRUB_menu_password_if_forgotten 这里].<br />
<br />
=== 如果忘记GRUB启动菜单的密码怎样修改root用户的密码 ===<br />
<br />
点击 [http://ubuntuguide.org/wiki/Ubuntu:Feisty#How_to_use_Ubuntu_Installation_CD.2C_to_gain_root_user_access 这里]. To prevent this, you have to set a bios password and set hard disk as the first boot device.<br />
<br />
== '''''服务器<br>''''' ==<br />
<br />
=== Samba 服务器<br> ===<br />
<br />
==== 怎样安装 Samba 服务器来共享文件以及文件夹<br> ====<br />
<br />
* 阅读 [[|#General Notes]]<br />
* 阅读 [[|#How to add extra repositories]]<br />
<br />
sudo apt-get install samba smbfs<br />
<br />
==== 怎样添加/修改/删除网络用户 ====<br />
<br />
* 阅读 [[|#General Notes]]<br />
* 阅读 [[|#How to install Samba Server for files/folders sharing service]]<br />
* To add network user <br />
** Read [[|#How to add/edit/delete system users]]<br />
<br />
sudo smbpasswd -a system_username<br />
gksudo gedit /etc/samba/smbusers<br />
<br />
* <br />
** Insert the following line into the new file<br />
<br />
system_username = "network username"<br />
<br />
* <br />
** Save the edited file<br />
* To edit network user<br />
<br />
sudo smbpasswd -a system_username<br />
<br />
* To delete network user<br />
<br />
sudo smbpasswd -x system_username<br />
<br />
==== How to share home folders with read only or read/write permission (Authentication=Yes) ====<br />
<br />
* Read [[|#General Notes]]<br />
* Read [[|#How to install Samba Server for files/folders sharing service]]<br />
<br />
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup<br />
gksudo gedit /etc/samba/smb.conf<br />
<br />
* Find this line<br />
<br />
...<br />
; security = user<br />
...<br />
<br />
* Replace with the following lines<br />
<br />
security = user<br />
username map = /etc/samba/smbusers<br />
<br />
* Remove the&nbsp;; in front of the following lines (there will text in between explaining what they do):<br />
<br />
;[homes]<br />
;comment = Home Directories<br />
;browseable = no<br />
;valid users = %S<br />
;writable = yes<br />
<br />
* <br />
** If you want other network users to be able to edit to the folder then change<br />
<br />
# By default, the home directories are exported read-only. Change next<br />
# parameter to 'yes' if you want to be able to write to them.<br />
&nbsp;; writable = no<br />
<br />
* <br />
** Replace with the following lines<br />
<br />
writable = yes<br />
<br />
* Save the edited file<br />
* Read [[|#How to add/edit/delete network users]]<br />
<br />
sudo testparm<br />
sudo /etc/init.d/samba restart<br />
<br />
==== How to share group folders with read only permission (Authentication=Yes) ====<br />
<br />
* Read [[|#General Notes]]<br />
* Read [[|#How to install Samba Server for files/folders sharing service]]<br />
<br />
sudo mkdir /home/group<br />
sudo chmod 777 /home/group/<br />
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup<br />
gksudo gedit /etc/samba/smb.conf<br />
<br />
* Find this line<br />
<br />
...<br />
; security = user<br />
...<br />
<br />
* Replace with the following lines<br />
<br />
security = user<br />
username map = /etc/samba/smbusers<br />
<br />
* Append the following lines at the end of file<br />
<br />
[Group]<br />
comment = Group Folder<br />
path = /home/group<br />
public = yes<br />
writable = no<br />
valid users = system_username1 system_username2<br />
create mask = 0700<br />
directory mask = 0700<br />
force user = nobody<br />
force group = nogroup<br />
<br />
* Or if you want other network users to be able to edit to the folder change<br />
<br />
writable = yes<br />
<br />
* Save the edited file<br />
* Read [[|#How to add/edit/delete network users]]<br />
<br />
sudo testparm<br />
sudo /etc/init.d/samba restart<br />
<br />
==== How to share public folders with read only or read/write permissions (Authentication=Yes) ====<br />
<br />
* Read [[|#General Notes]]<br />
* Read [[|#How to install Samba Server for files/folders sharing service]]<br />
<br />
sudo mkdir /home/public<br />
sudo chmod 777 /home/public/<br />
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup<br />
gksudo gedit /etc/samba/smb.conf<br />
<br />
* Find this line<br />
<br />
...<br />
; security = user<br />
...<br />
<br />
* Replace with the following lines<br />
<br />
security = user<br />
username map = /etc/samba/smbusers<br />
<br />
Then follow either 1. or 2.<br />
<br />
* 1. Save the edited file.<br />
<br />
sudo testparm<br />
sudo /etc/init.d/samba restart<br />
<br />
* 1. Right click the folder and select 'Share folder'. Then change 'Do not share' to share with the network you would like.<br />
* 1. In Share Properties note the read box. If you want other network users to be able to edit to the folder un-tick this.<br />
<br />
'''OR'''<br />
<br />
* 2. Append the following lines at the end of file<br />
<br />
[public]<br />
comment = Public Folder<br />
path = /home/public<br />
public = yes<br />
writable = yes<br />
create mask = 0777<br />
directory mask = 0777<br />
force user = nobody <br />
force group = nogroup<br />
<br />
* 2. Or if you want other network users to be able to edit to the folder<br />
<br />
writable = yes<br />
<br />
* 2. Save the edited file<br />
* 2. Read [[|#How to add/edit/delete network users]]<br />
<br />
sudo testparm<br />
sudo /etc/init.d/samba restart<br />
<br />
<br><br />
<br />
==== How to share public folders with read only or read/write permissions (Authentication=No) ====<br />
<br />
* Read [[|#General Notes]]<br />
* Read [[|#How to install Samba Server for files/folders sharing service]]<br />
<br />
sudo mkdir /home/public<br />
sudo chmod 777 /home/public/<br />
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup<br />
gksudo gedit /etc/samba/smb.conf<br />
<br />
* Find this line<br />
<br />
...<br />
; security = user<br />
...<br />
<br />
* Replace with the following line<br />
<br />
security = share<br />
<br />
Then follow either 1. or 2.<br />
<br />
* 1. Save the edited file.<br />
<br />
sudo testparm<br />
sudo /etc/init.d/samba restart<br />
<br />
* 1. Right click the folder and select 'Share folder'. Then change 'Do not share' to share with the network you would like.<br />
* 1. In Share Properties note the read box. If you want other network users to be able to edit to the folder un-tick this.<br />
<br />
'''OR'''<br />
<br />
* 2. Append the following lines at the end of /etc/samba/smb.conf (for a read-only folder)<br />
<br />
[public]<br />
comment = Public Folder<br />
path = /home/public<br />
public = yes<br />
writable = no<br />
create mask = 0777<br />
directory mask = 0777<br />
force user = nobody<br />
force group = nogroup<br />
<br />
* 2. Or if you want other network users to be able to edit to the folder<br />
<br />
writable = yes<br />
<br />
<br><br />
<br />
* 2. Save the edited file<br />
<br />
sudo testparm<br />
sudo /etc/init.d/samba restart<br />
<br />
==== How to print on remote Ubuntu machine via samba ====<br />
<br />
* Read [[|#Print Server (cupsd)]]<br />
* Make sure your Ubuntu printers are configured properly.<br />
<br />
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.backup<br />
gedit /etc/samba/smb.conf<br />
<br />
:''Find the following lines''<br />
<br />
...<br />
# printing = cups<br />
# printcap name = cups<br />
...<br />
<br />
:''and uncomment them.''<br />
<br />
printing = cups<br />
printcap name = cups<br />
<br />
:''Restart cups server''<br />
<br />
sudo /etc/init.d/cupsys restart<br />
<br />
:''Now printers working on your Ubuntu machine should be acessible via samba.''<br />
<br />
<br><br />
<br />
=== iTunes-compatible Media server ===<br />
<br />
If you want iTunes-compatible Media server in Ubuntu try this<br />
<br />
* [http://www.ubuntugeek.com/howto-setup-itunes-compatible-media-server-in-ubuntu.html iTunes-compatible Media server Step By Step Guide]<br />
<br />
=== GLPI - IT and asset Managemet Software ===<br />
<br />
If you want IT and asset Managemet Software in Ubuntu try this<br />
<br />
* [http://www.ubuntugeek.com/glpi-it-and-asset-managemet-software.html IT and asset Managemet Software Setup Guide]<br />
<br />
=== PostgreSQL ===<br />
<br />
Postgresql is a well supported and open source database server. There is a long debate regarding whether MySQL is better or PostgreSQL. Actually, there are similar debates like it: Gnome vs KDE, Perl vs Python, PHP vs JSP, Java vs .Net (or Mono). But from installation point of view, it has been seen that PostgreSQL is lighter and requires less dependency than MySQL.<br />
<br />
==== Installing PostgreSQL ====<br />
<br />
To Install PostgreSQL (both client and server):<br />
<br />
sudo apt-get install postgresql-8.2<br />
<br />
To install PostgreSQL documentation:<br />
<br />
sudo apt-get install postgresql-doc-8.2<br />
<br />
To install JDBC3 driver for PostgreSQL:<br />
<br />
sudo apt-get install libpg-java<br />
<br />
To enable php support for PostgreSQL:<br />
<br />
sudo apt-get install php5-pgsql<br />
<br />
To do administrative works graphically:<br />
<br />
sudo apt-get install pgadmin3<br />
<br />
To do web-based administrative works:<br />
<br />
sudo apt-get install phppgadmin<br />
<br />
==== Configuring PostgreSQL ====<br />
<br />
To use postgresql, create a database instance and a user/role:<br />
<br />
sudo -u postgres createdb $USER<br />
sudo -u postgres createuser $USER<br />
<br />
Making both database instance and user/role as your login ID lets you to start PostgreSQL client very easily:<br />
<br />
psql<br />
<br />
To login as the administrator:<br />
<br />
sudo -u postgres psql<br />
<br />
To be able to login from remote machine or from PHP or through JDBC driver, you have to set your password from PostgreSQL client (psql):<br />
<br />
ALTER USER user PASSWORD 'pass';<br />
<br />
replace user and pass by your user name and password respectively. To test whether remote login works or not, run:<br />
<br />
psql -h host -p 5432 -d database -U user<br />
<br />
Visit http://www.php.net/manual/en/ref.pgsql.php to see how php works with PostgreSQL.<br />
<br />
==== Using pgadmin3 ====<br />
<br />
To configure PostgreSQL using pgadmin3:<br />
<br />
* Open psql client as administrator postgres (see above Configure PostgreSQL)<br />
* Change the password for the administrator postgres (see above)<br />
* Open Applications -&gt; System Tools -&gt; pgAdmin III from main menu.<br />
* Open File -&gt; Add Server...<br />
* Set Address to localhost or 127.0.0.1 (or something you have set)<br />
* Give a Description by which this connection will be identified.<br />
* Accept default port (5432), SSL (_blank_), Maintenance DB (postgres) and Username (postgres)<br />
* set the Password that you have set earlier. Click OK.<br />
<br />
==== Using phppgadmin ====<br />
<br />
To configure PostgreSQL using phppgadmin run:<br />
<br />
sudo ln -s /usr/share/phppgadmin /var/www/phpPgAdmin<br />
<br />
Set a password for administrator: postgres (see [[|#Configuring_PostgreSQL]]).<br />
<br />
Open /etc/phppgadmin/config.inc.php and change:<br />
<br />
$conf['extra_login_security'] = false;<br />
<br />
It will enable administrative login. Finally visit http://localhost/phpPgAdmin/ to login.<br />
<br />
==== Using PostgreSQL with OpenOffice ====<br />
<br />
* Open Applications -&gt; Office -&gt; OpenOffice.org Database.<br />
* Select 'Connect to an existing database'. From the list select JDBC and click Next.<br />
* Make Datasource URL to:<br />
<br />
jdbc:postgresql://localhost/database<br />
<br />
Replace localhost by your hostname, database by the database instance you have created.<br />
<br />
* Set JDBC driver class to:<br />
<br />
org.postgresql.Driver<br />
<br />
* Click 'Test class' to make sure JDBC driver class connects Datasource URL properly. Click Next.<br />
* Type your User name and select 'Password required' option.<br />
* Click Test connection. A popup dialog will appear. Enter your password and click OK.<br />
* If everything works properly, then a confirmation dialog will appear.<br />
* Click Next. Some optional settings will appear. Click Finish to complete.<br />
<br />
==== Using PostgreSQL JDBC driver ====<br />
<br />
The following Java code is a simple program to illustrate how JDBC can be used with Postgresql:<br />
<br />
// pgVersion.java<br />
<br />
import java.sql.*;<br />
<br />
class pgVersion {<br />
public static void main(String arg[]) throws Exception {<br />
if(arg.length!=4) {<br />
System.out.println("usage: java pgVersion host database user password");<br />
return;<br />
}<br />
// Class.forName("org.postgresql.Driver");<br />
Driver driver=new org.postgresql.Driver();<br />
DriverManager.registerDriver(driver);<br />
String url="jdbc:postgresql://"+arg[0]+"/"+arg[1]+"?user="+arg[2]+"&amp;password="+arg[3];<br />
Connection conn=DriverManager.getConnection(url);<br />
Statement stat=conn.createStatement();<br />
ResultSet rs=stat.executeQuery("SELECT version()");<br />
rs.next();<br />
System.out.println(rs.getString("version"));<br />
rs.close();<br />
stat.close();<br />
conn.close();<br />
DriverManager.deregisterDriver(driver);<br />
}<br />
}<br />
<br />
You can run the former code in two ways:<br />
<br />
* Using CLASSPATH environment variable:<br />
<br />
export CLASSPATH=/usr/share/java/postgresql.jar:.<br />
javac pgVersion.java<br />
java pgVersion host database user password<br />
<br />
Here host, database, user and password should be substituted according to your configuration. To make $CLASSPATH permanent, you have to save the command in either /etc/bash.bashrc or ~/.bashrc.<br />
<br />
* Alternately, you can run as follows:<br />
<br />
javac -classpath /usr/share/java/postgresql.jar pgVersion.java<br />
java -classpath /usr/share/java/postgresql.jar:. pgVersion host database user password<br />
<br />
The output is as expected:<br />
<br />
PostgreSQL 8.2.5 on i486-pc-linux-gnu, compiled by GCC cc (GCC) 4.1.3 20070831 (prerelease) (Ubuntu 4.1.2-16ubuntu1)<br />
<br />
=== MySQL ===<br />
<br />
According to [http://en.wikipedia.org/wiki/Comparison_of_relational_database_management_systems this page] both MySQL and PostgreSQL are good alternatives of proprietary softwares like DB2, Sybase, Oracle, SQL Server etc.<br />
<br />
To install both the server and client:<br />
<br />
sudo apt-get install mysql-server-5.0<br />
<br />
[http://db4free.net/ db4free] is a great database server for tryout different things remotely. If you want to use this site, then you do not have to install MySQL server. Just install the [http://packages.ubuntu.com/gutsy/misc/mysql-client-5.0 client], [http://packages.ubuntu.com/gutsy/misc/mysql-doc-5.0 documentation] and [http://packages.ubuntu.com/gutsy/web/php5-mysql php] or [http://packages.ubuntu.com/gutsy/libs/libmysql-java jdbc] connectivity.<br />
<br />
=== IBM DB2 ===<br />
<br />
Visit [http://www.ibm.com/software/ here] for software available from IBM. According to [http://www.ibm.com/software/data/db2/linux/validate/ this page], DB2 can be installed on ubuntu.<br />
<br />
==== Download ====<br />
<br />
To download DB2 trial [http://www.ibm.com/software/data/db2/9/download.html visit here] and select: IBM DB2 9.5 Data Server trial. Then you have to sign in (create an account if not already created) in order to download. Choose either of the following:<br />
<br />
* DB2 9.5 data server trial for Linux(R) on AMD64 and Intel(R) EM64T systems (x64)<br />
* DB2 9.5 data server trial for Linux(R) on System z<br />
<br />
Then answer questions and click 'I confirm' at the bottom. Finally click 'I confirm' button to start downloading.<br />
<br />
Alternately, [http://www.ibm.com/software/data/db2/9/download.html visit here] and select: IBM DB2 9.5 Express-C. Then choose DB2 Express-C 9.5 for Linux and click continue. Then answer questions and click 'I confirm' at the bottom. Finally select either of the following:<br />
<br />
* DB2 Express-C for Linux operating system, 32-bit architecture<br />
* DB2 Express-C for Linux operating system, 64-bit architecture<br />
<br />
click 'I confirm' button to start downloading.<br />
<br />
==== Installing DB2 ====<br />
<br />
I choose 'DB2 Express-C for Linux operating system, 32-bit architecture' to demonstrate how to install. If you have chosen a different version, make necessary changes accordingly. Let's assume the downloaded file is on your home directory. Then do the following:<br />
<br />
tar -xf db2exc_950_LNX_x86.tar.gz<br />
cd ~/exp<br />
sudo apt-get install libaio1<br />
sudo ./db2setup<br />
<br />
Select 'Install a Product' from the left side of the generated window and click 'Install New'. Another window will be opened. Then following the instructions to complete the installation. You are encouraged to create new user and groups (dasusr1/dasadm1, db2inst1/db2iadm1, db2fenc1/db2fadm1) during installation.<br />
<br />
==== Uninstalling DB2 ====<br />
<br />
If you have installed with all default settings (as mentioned above) then just running the following commands would remove the db2 completely. In case you have changed something during installation, then make appropriate changes accordingly.<br />
<br />
cd /opt/ibm/db2/V9.5<br />
./instance/db2ilist<br />
sudo instance/db2idrop db2inst1<br />
sudo install/db2_deinstall -a<br />
cd &amp;&amp; sudo rm -r /opt/ibm/<br />
sudo userdel -r dasusr1<br />
sudo userdel -r db2fenc1<br />
sudo userdel -r db2inst1<br />
sudo groupdel dasadm1<br />
sudo groupdel db2fadm1<br />
sudo groupdel db2iadm1<br />
<br />
Before running those commands, please make sure:<br />
<br />
* Make sure, db2 is not running.<br />
* Identify DB2 installation directory (E.g /opt/ibm/db2/V9.5)<br />
* Identify DB2 instances (using db2ilist command, see the second command)<br />
* Drop each and every instances (using db2idrop command, third command)<br />
* If you have other IBM softwares in /opt/ibm then remove only /opt/ibm/db2 directory.<br />
* Delete user and group accounts that you have created for db2.<br />
<br />
=== Oracle database ===<br />
<br />
* Download [http://www.oracle.com/technology/software/products/database/index.html Oracle database] XE from [http://www.oracle.com/technology/software/products/database/xe/htdocs/102xelinsoft.html here]. Then follow the [http://www.oracle.com/technology/software/products/database/xe/files/install.102/b25144/toc.htm instructions] to complete the installation.<br />
* Alternately, visit [http://www.oracle.com/technology/tech/linux/install/index.html this page] to see some installation guides provided by some users. [http://www.davidpashley.com/articles/oracle-install.html This page] is particularly seems very useful. (--[[User:Tamal|Tamal]] 07:51, 14 November 2007 (EET))<br />
<br />
A problem might occur if your swap space is less than 1 GB. In that case you have to do the following:<br />
<br />
* Turn off the swap space. (run 'man swapoff' for help)<br />
* Resize the swap partition. (run 'man fdisk' and 'man cfdisk' for help)<br />
* Restart the system. (not mandatory, but recommended)<br />
* Edit the /etc/fstab file to update the UUID of the swap partition. ([[|#How_to_find_the_UUID_of_a_device]])<br />
* Turn on the swap space. (run 'man swapon' for help)<br />
<br />
=== SSH ===<br />
<br />
==== How to install SSH Server for remote administration service ====<br />
<br />
* Read [[|#General Notes]]<br />
* Read [[|#How to add extra repositories]]<br />
<br />
sudo apt-get install ssh<br />
<br />
==== How to SSH into remote Ubuntu host ====<br />
<br />
* Read [[|#General Notes]]<br />
<br />
The Ubuntu host must be running the SSH Server. Read [[|#How to install SSH Server for remote administration service]].<br />
<br />
In this example:<br />
<br />
Remote Ubuntu machine: 192.168.0.2 username is a valid user on the remote host<br />
<br />
ssh username@192.168.0.2<br />
<br />
You can tunnel to a URL as well:<br />
<br />
ssh username@foobar.dyndns.org<br />
<br />
If your LAN uses a dynamic IP to connect to the Internet, you can use a Dynamic IP service (such as DynDNS) to assign a static URL to your LAN (foobar.dyndns.org, for example). An SSH request over the Internet to your URL (e.g. foobar.dyndns.org) would then be routed by the DynDNS service to your modem/router. Your router must then be set to forward the port used for the SSH tunnel to your host machine on the LAN. (SSH tunnels generally occur by default over port 22, but it can be changed (see below)).<br />
<br />
For some humor: Read Etymology of foobar. You can explicitly select the port number (instead of port 22) for the SSH tunnel:<br />
<br />
ssh username@foobar.dyndns.org:11022<br />
<br />
However, if you do this, the host SSH server must be listening on the same port (port 11022 in the example). The port to listen to can be set in the ssdh_config file of the OpenSSH server (provided in Ubuntu) on your host. Also, your router must be configured to forward port 11022 to your OpenSSH host.<br />
<br />
==== How to change SSH Server Port Number ====<br />
<br />
* Read [[|#General Notes]]<br />
* Read [[|#How to install SSH Server for remote administration service]]<br />
<br />
Open /etc/ssh/sshd_config for editing<br />
<br />
gksu gedit /etc/ssh/sshd_config<br />
<br />
Look for the line<br />
<br />
# What ports, IPs and protocols we listen for<br />
Port 22<br />
<br />
Change 22 to the value you want, then save and restart the SSH server<br />
<br />
sudo /etc/init.d/ssh restart<br />
<br />
==== Using SSH to Port Forward ====<br />
<br />
* Read [[|#General Notes]]<br />
* The Ubuntu host must be running the SSH Server. Read [[|#How to install SSH Server for remote administration service]].<br />
* The format of the client command to create an SSH tunnel to an OpenSSH host listening on the default port 22 is:<br />
<br />
ssh -L &lt;local port&gt;:&lt;remote computer&gt;:&lt;remote port&gt; &lt;user&gt;@&lt;remote ip&gt;<br />
<br />
An example is:<br />
<br />
ssh -L 6669:94.92.10.15:6667 foowho<br />
<br />
In this example, local port 6669 on the local client computer is tunneled by encrypted SSH over the default port 22 to the router at 94.92.10.15. The router must be set up to forward port 22 to whatever the internal LAN IP (such as 192.168.0.56) of the SSH host is. The host is running OpenSSH (ssdh service) and is set to listen to port 22. It then routes the incoming data to the host port 6667, where presumably some other program is waiting for data. foowho has an account on the host running the OpenSSH server.<br />
<br />
SSH tunnels can also be established using URLs and even alternate ports. An example is:<br />
<br />
ssh -L 5900:foobar.dyndns.org:5900 foowho -p 11022<br />
<br />
In this example, local port 5900 on the client is forwarded through an SSH tunnel on port 11022 to foobar.dyndns.org. The DNS service translates foobar.dyndns.org into the appropriate WAN (Internet) IP address, where the router is listening. The router is set up to forward port 11022 to the LAN machine hosting the OpenSSH server, which is listening on port 11022. It then sends the data to whatever program is running on port 5900 on the host.<br />
<br />
* You can forward a local port to a different port on the remote host.<br />
<br />
:Example: Make port 80 (web server/browser) on the remote host at 10.0.2.10 available locally as port 81<br />
<br />
ssh -L 81:10.0.2.10:80 user@office.net<br />
<br />
* You can create secure SSH tunnels to multiple hosts using multiple ports.<br />
<br />
ssh -L 81:10.0.2.10:80 -L 82:10.0.2.20:80 -L 83:10.0.2.30:80 user@office.net<br />
<br />
Now, local port 81 locally forwards to port 80 on the host at 10.0.2.10, local port 82 forwards to port 80 on the host at 10.0.2.20 and local port 83 forwards to port 80 on the host at 10.0.2.30. In this example, user has an account on all three host machines at 10.0.2.10, 10.0.2.20, and 10.0.2.30.<br />
<br />
* Once port forwarding is set up by ssh, an application is directed to the SSH tunnel for port usage by using the loopback as the destination.<br />
<br />
:Example 1:<br />
<br />
ssh -L 81:10.0.2.10:80 user@office.net<br />
<br />
<nowiki>http://localhost:81</nowiki> or <nowiki>http://127.0.0.1/:81</nowiki> <br />
<br />
will direct a web browser to use port 81 locally, which is being redirected by SSH to port 80 on the remote host at 10.0.2.10.<br />
<br />
:Example 2:<br />
<br />
ssh -L 5900:foobar.dyndns.org:5900 foowho<br />
vncviewer 127.0.0.1 or vncviewer localhost<br />
<br />
will direct vncviewer (which uses port 5900 by default) to direct its traffic through the ssh tunnel to the host at foobar.dyndns.org, where, presumably, a VNC server is listening on port 5900.<br />
<br />
==== SSH Filesystem ====<br />
<br />
install package: sshfs, see http://fuse.sourceforge.net/sshfs.html<br />
<br />
sudo aptitude update<br />
sudo aptitude install sshfs<br />
<br />
Optionally, add user to group fuse to manage mount-point permissions.<br />
<br />
sudo adduser &lt;local user&gt; fuse<br />
<br />
(propogate new group membership: restart or open new shell, e.g., Ctrl+Alt+F1)<br />
<br />
Create writable mount point, e.g, &lt;mount point&gt; = /media/remote<br />
<br />
sudo mkdir &lt;mount point&gt;<br />
sudo chgrp fuse &lt;mount point&gt;<br />
sudo chmod 775 &lt;mount point&gt;<br />
<br />
Mount command<br />
<br />
sshfs [&lt;user&gt;@]&lt;host&gt;:[&lt;path&gt;] &lt;mount point&gt;<br />
<br />
Unmount command<br />
<br />
fusermount -u &lt;mount point&gt;<br />
<br />
=== Ubuntu 7.10 LAMP Server ===<br />
<br />
If you are looking for simple LAMP Server setup in 15min including webmin installation this is for you<br />
<br />
* [http://www.ubuntugeek.com/ubuntu-710-gutsy-gibbon-lamp-server-setup.html Ubuntu 7.10 LAMP Server Step By Step Guide]<br />
<br />
(This requires the server version of Gutsy Gibbon, not the standard desktop edition)<br />
<br />
=== How to Install Webmin ===<br />
<br />
Webmin is an browser-based administration tool for Apache, PHP, MySQL, and Much More.<br />
<br />
wget http://prdownloads.sourceforge.net/webadmin/webmin_1.370_all.deb<br />
<br />
<br />
sudo apt-get install libnet-ssleay-perl libauthen-pam-perl libio-pty-perl libmd5-perl<br />
<br />
sudo passwd root (Enter new root password, retype)<br />
<br />
sudo dpkg -i webmin_1.370_all.deb<br />
<br />
To use webmin, type the following in a browser: (Make sure to use HTTPS not HTTP)<br />
<br />
* [https://localhost:10000]<br />
<br />
=== Sun Java Application Server (Java EE) ===<br />
<br />
[http://docs.sun.com/app/docs/coll/1343.4 Official documentation]<br />
<br />
==== Installing Application Server ====<br />
<br />
Sun Java Application Server is the heart of Java EE. [http://java.sun.com/javaee/downloads/index.jsp Download] either of the following versions:<br />
<br />
* Java EE 5 SDK Update 3<br />
* Java Application Platform SDK Update 3 Beta<br />
* Sun Java System Application Server 9.1 (under individual download section)<br />
<br />
Alternately you can download GlassFish application server (community maintained):<br />
<br />
* With [http://dlc.sun.com.edgesuite.net/netbeans/6.0/beta2/ Netbeans] Web &amp; Java EE pack<br />
* Download [https://glassfish.dev.java.net/public/downloadsindex.html GlassFish] directly<br />
<br />
Make the download file executable and run as root by:<br />
<br />
chmod +x Desktop/filename<br />
sudo ./Desktop/filename<br />
<br />
Lets assume $JAVAEE_HOME indicates the installation directory. The default installation directory for Sun Java System Application Server 9.1 is /opt/SUNWappserver/. Now, either add $JAVAEE_HOME/bin in your PATH or make a link of asadmin and asant in your path by<br />
<br />
sudo ln -s $JAVAEE_HOME/bin/asadmin /usr/local/bin/asadmin<br />
sudo ln -s $JAVAEE_HOME/bin/asant /usr/local/bin/ant<br />
<br />
The command 'asadmin' is the main and most important command for Java Application server. [http://ant.apache.org/ Ant] is also useful to automate building process.<br />
<br />
==== Application Server configuration ====<br />
<br />
When Java EE installs, a domain 'domain1' is automatically installed with it in $JAVAEE_HOME/domains/ which is the default directory for all domains. Generally this directory ($JAVAEE_HOME/domains/) is not writable. So, as a unprivileged user you can create your own domain in your home directory.<br />
<br />
===== Application Server domain settings =====<br />
<br />
To create, start, stop and delete a domain in your home directory:<br />
<br />
asadmin create-domain --adminport 4848 --domaindir ~ mydomain<br />
asadmin start-domain --domaindir ~ mydomain<br />
asadmin stop-domain --domaindir ~ mydomain<br />
asadmin delete-domain --domaindir ~ mydomain<br />
<br />
Alternately you can make $JAVAEE_HOME/domains/ writable to do domain-related works from default domain directory. E.g.<br />
<br />
sudo chmod a+w $JAVAEE_HOME/domains/<br />
asadmin create-domain --adminport 4848 mydomain<br />
asadmin start-domain mydomain<br />
asadmin stop-domain mydomain<br />
asadmin delete-domain mydomain<br />
<br />
If you have only one domain in the default domains directory ($JAVAEE_HOME/domains/) then you do not have to give the domain name to start or stop a domain. E.g.<br />
<br />
asadmin start-domain<br />
asadmin stop-domain<br />
<br />
You can save the login information to ~/.asadminpass file in order to administer an application server domain from command line. If you do not login, you have to provide username and password for each administrative work (analogous to su and sudo commands). To login:<br />
<br />
asadmin login --host localhost --port 4848<br />
<br />
Deploying and un-deploying a web or ejb module is very easy. Just do the following:<br />
<br />
asadmin deploy test1.war<br />
asadmin deploy test2.ear<br />
<br />
asadmin undeploy test1.war<br />
asadmin undeploy test2.ear<br />
<br />
===== Application Server data Source settings =====<br />
<br />
DataSource configuration can be done easily from web based administration console. Here command line method is given:<br />
<br />
sudo ln -s /usr/share/java/postgresql.jar /opt/SUNWappserver/domains/domain1/lib/postgresql.jar<br />
asadmin create-jdbc-connection-pool --datasourceclassname org.postgresql.ds.PGSimpleDataSource --property<br />
serverName=localhost:portNumber=5432:databaseName=database:user=user:password=pass jdbc/postgresql<br />
asadmin create-jdbc-resource --connectionpoolid jdbc/postgresql database<br />
<br />
First, we have made this driver accessible from the domain. In the second command, we have created a data source connection pool which has been assigned a JNDI name in the third command. Here all the colon (:) separated values are database related. Change them according to your database settings. Now you can create a Connection by, e.g.:<br />
<br />
Context ic = new InitialContext();<br />
DataSource ds = (DataSource)ic.lookup("database");<br />
Connection conn = ds.getConnection();<br />
<br />
To see available data sources and their corresponding JNDI names:<br />
<br />
asadmin list-jdbc-connection-pools<br />
asadmin list-jdbc-resources<br />
<br />
To delete both connection pool, you have to delete JNDI name first. E.g.<br />
<br />
asadmin delete-jdbc-resource database<br />
asadmin delete-jdbc-connection-pool jdbc/postgresql<br />
<br />
=== Tomcat 6 ===<br />
<br />
==== Installing tomcat ====<br />
<br />
Tomcat can be found in [http://packages.ubuntu.com/gutsy/web/tomcat5.5 universe] repository but it has some drawbacks (e.g. lots of dependencies, unavailability of version 6.x, do not use Sun Java). Thus manual installation is recommended.<br />
<br />
Download latest stable version of tomcat from [http://tomcat.apache.org/download-60.cgi here] and extract it in /usr/local as root. Add "JAVA_HOME=/usr/lib/jvm/java-6-sun/" to /usr/local/apache-tomcat-6.x.x/bin/setclasspath.sh after the first occurrence of "CLASSPATH=". Make sure that sun-java6-jre is installed. Make a soft-link of /usr/local/apache-tomcat-6.x.x/bin/catalina.sh as /usr/local/bin/tomcat to access easily. Optionally you can remove .exe and .bat files and edit .sh files to remove cygwin, os400 and darwin related codes.<br />
<br />
Although not necessary, but the [http://packages.ubuntu.com/gutsy/devel/ant ant] program would be useful here. You can also install its [http://packages.ubuntu.com/gutsy/devel/ant-doc documentation].<br />
<br />
==== OpenEJB Server ====<br />
<br />
[http://openejb.apache.org/ OpenEJB] is an open source, modular, configurable, and extendable EJB Container System and EJB Server. [http://openejb.apache.org/tomcat.html Visit here] to see the installation instructions for OpenEJB under Tomcat 6.<br />
<br />
==== Using tomcat with NetBeans ====<br />
<br />
You have to make the configuration files readable because Netbeans generally do not run with administrative privilege. To use Tomcat with with NetBeans, you have to set a user with manager role. A typcal $CATALINA_HOME/conf/tomcat-users.xml file would look like:<br />
<br />
&lt;?xml version='1.0' encoding='utf-8'?&gt;<br />
&lt;tomcat-users&gt;<br />
&lt;role rolename="admin"/&gt;<br />
&lt;role rolename="manager"/&gt;<br />
&lt;role rolename="tomcat"/&gt;<br />
&lt;user username="admin" password="admin" roles="admin"/&gt;<br />
&lt;user username="manager" password="manager" roles="manager"/&gt;<br />
&lt;user username="tomcat" password="tomcat" roles="tomcat"/&gt;<br />
&lt;/tomcat-users&gt;<br />
<br />
Edit this file after you have started tomcat once. Any data placed in the &lt;tomcat-users&gt; element is erased during the first start of tomcat. You can also use tomcat that comes with NetBeans web &amp; Java EE pack.<br />
<br />
==== Configure Database Connection Pool (DBCP) of Tomcat ====<br />
<br />
A database connection pool creates and manages a pool of connections to a database. Recycling and reusing already existing connections to a dB is more efficient than opening a new connection. It is still possible and valid to open and close connection for each servlet/jsp (visit [[|#Using_JDBC_driver]] for details).<br />
<br />
Before proceeding, let's assume that $CATALINA_HOME denotes tomcat installation directory (typically: /usr/local/apache-tomcat-6.0.14).<br />
<br />
echo $CATALINA_HOME<br />
sudo ln -s /usr/share/java/postgresql.jar $CATALINA_HOME/lib/postgresql.jar<br />
sudo mkdir $CATALINA_HOME/webapps/dataSourceTest<br />
sudo chown $USER:$USER $CATALINA_HOME/webapps/dataSourceTest<br />
cd $CATALINA_HOME/webapps/dataSourceTest<br />
mkdir META-INF WEB-INF WEB-INF/classes<br />
<br />
Create WEB-INF/web.xml and set its content:<br />
<br />
&lt;?xml version="1.0" encoding="UTF-8"?&gt;<br />
<br />
&lt;web-app xmlns="http://java.sun.com/xml/ns/javaee"<br />
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"<br />
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"<br />
version="2.5"&gt;<br />
<br />
&lt;resource-ref&gt;<br />
&lt;description&gt;PostgreSQL connectivity&lt;/description&gt;<br />
&lt;res-ref-name&gt;jdbc/postgresql&lt;/res-ref-name&gt;<br />
&lt;res-type&gt;javax.sql.DataSource&lt;/res-type&gt;<br />
&lt;res-auth&gt;Container&lt;/res-auth&gt;<br />
&lt;/resource-ref&gt;<br />
<br />
&lt;description&gt;<br />
Page for testing<br />
&lt;/description&gt;<br />
&lt;display-name&gt;Testing page&lt;/display-name&gt;<br />
&lt;servlet&gt;<br />
&lt;servlet-name&gt;pgsqlVersion&lt;/servlet-name&gt;<br />
&lt;servlet-class&gt;pgsqlVersion&lt;/servlet-class&gt;<br />
&lt;/servlet&gt;<br />
&lt;servlet-mapping&gt;<br />
&lt;servlet-name&gt;pgsqlVersion&lt;/servlet-name&gt;<br />
&lt;url-pattern&gt;/pgsqlVersion&lt;/url-pattern&gt;<br />
&lt;/servlet-mapping&gt;<br />
&lt;/web-app&gt;<br />
<br />
Create META-INF/context.xml and set its content (replace hostname, database instance name, user id and password):<br />
<br />
&lt;?xml version="1.0" encoding="UTF-8"?&gt;<br />
&lt;Context&gt;<br />
&lt;Resource<br />
name="jdbc/postgresql"<br />
auth="Container"<br />
type="javax.sql.DataSource"<br />
driverClassName="org.postgresql.Driver"<br />
url="jdbc:postgresql://host/database"<br />
username="user"<br />
password="password"<br />
maxActive="20"<br />
maxIdle="10"<br />
maxWait="-1"/&gt;<br />
&lt;WatchedResource&gt;WEB-INF/web.xml&lt;/WatchedResource&gt;<br />
&lt;WatchedResource&gt;META-INF/context.xml&lt;/WatchedResource&gt;<br />
&lt;/Context&gt;<br />
<br />
Create pgsqlVersion.java and set its content:<br />
<br />
import java.io.*;<br />
import java.sql.*;<br />
import javax.sql.*;<br />
import javax.naming.*;<br />
import javax.servlet.*;<br />
public class pgsqlVersion extends GenericServlet {<br />
public void service(ServletRequest request, ServletResponse response) {<br />
try {<br />
response.setContentType("text/html");<br />
PrintWriter pw=response.getWriter();<br />
Context initContext = new InitialContext();<br />
Context envContext = (Context)initContext.lookup("java:/comp/env");<br />
DataSource ds = (DataSource)envContext.lookup("jdbc/postgresql");<br />
Connection conn = ds.getConnection();<br />
Statement stat=conn.createStatement();<br />
ResultSet rs=stat.executeQuery("SELECT version()");<br />
rs.next();<br />
pw.println(rs.getString("version"));<br />
rs.close();<br />
stat.close();<br />
} catch(Exception e) { }<br />
}<br />
}<br />
<br />
Create index.html and set its content:<br />
<br />
<title>PostgreSQL datasource</title>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"<br />
"http://www.w3.org/TR/html4/frameset.dtd"&gt;<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Then compile the servlet:<br />
<br />
export CLASSPATH=$CATALINA_HOME/lib/postgresql.jar:$CATALINA_HOME/lib/servlet-api.jar:.<br />
javac -d WEB-INF/classes/ pgsqlVersion.java<br />
<br />
Finally, visit http: //host:8080/dataSourceTest. Thats all!<br />
<br />
<br><br />
<br />
=== Nagios Network Monitoring Server ===<br />
<br />
* [http://www.ubuntugeek.com/nagios-network-monitoring-system-setup-in-ubuntu.html Nagios Monitoring Server Setup Guide]<br />
<br />
It should be noted that this howto instructs you to build nagios from its sources, while it exists on the official repositories.<br />
<br />
=== NFS Server ===<br />
<br />
* Read [http://nfs.sourceforge.net Linux NFS FAQ]<br />
* Run this command for each computer to determine the IP Addresses for each one:<br />
<br />
ifconfig<br />
<br />
==== Installing NFS Server ====<br />
<br />
sudo apt-get install nfs-kernel-server nfs-common portmap<br />
<br />
Reconfigure Portmap to not bind to loopback interface:<br />
<br />
sudo dpkg-reconfigure portmap <br />
sudo /etc/init.d/portmap restart<br />
<br />
Define which folders to share (export):<br />
<br />
sudo nano /etc/exports<br />
<br />
Add share (export) definitions:<br />
<br />
This will export path to all IP addresses between 192.168.1.1 and 192.168.1.254 with Read/Write access:<br />
<br />
/path/to/shared/files 192.168.1.0/24(rw,no_root_squash,async)<br />
<br />
This will export path to all IP addresses between 192.168.1.1 and 192.168.1.254 with Read Only access:<br />
<br />
/path/to/shared/files 192.168.1.0/24(ro,async)<br />
<br />
''192.168.1.0/24 above would be the clients IP Address''<br />
<br />
When finished, save changes and restart the NFS Server:<br />
<br />
sudo /etc/init.d/nfs-kernel-server restart<br />
<br />
Export your new configuration:<br />
<br />
sudo exportfs -a<br />
<br />
==== Installing NFS Client ====<br />
<br />
sudo apt-get install portmap nfs-common<br />
<br />
==== Mounting Manually ====<br />
<br />
cd ~<br />
mkdir temp<br />
sudo mount 192.168.1.1:/path/to/shared/files temp<br />
<br />
''192.168.1.1 above would be the Servers IP Address''<br />
<br />
You may need to restart NFS services:<br />
<br />
sudo /etc/init.d/portmap restart<br />
sudo /etc/init.d/nfs-common restart<br />
<br />
==== Mounting Automatically ====<br />
<br />
Create mountpoint:<br />
<br />
sudo mkdir /mnt/files<br />
<br />
Edit configuration:<br />
<br />
gksudo gedit /etc/fstab<br />
<br />
Add something similar to below:<br />
<br />
192.168.1.1:/path/to/shared/files /mnt/files nfs rsize=8192,wsize=8192,timeo=14,intr 0 0<br />
<br />
Test new configuration:<br />
<br />
sudo mount -a<br />
<br />
Reboot to test automatic mounting.<br />
<br />
== '''''硬件''''' ==<br />
<br />
=== NVidia 驱动 ===<br />
<br />
首先,弄清楚你清楚你是什么内核运行以下命令查看:<br />
<br />
user@localhost:~$ uname -a<br />
Linux localhost 2.6.22-14-generic #1 SMP Sun Oct 14 23:05:12 GMT 2007 i686 GNU/Linux<br />
<br />
I have the '''generic''' kernel, so I need to install the following:<br />
<br />
sudo apt-get install linux-restricted-modules-generic<br />
<br />
<br> After that's done, go to '''''System &gt; Administration &gt; Restricted Drivers Manager''''' and turn on the driver.<br />
<br />
Some users may receive an error screen: "The software source for the packsge nvidia-glx-new is not enabled." This can be overcome by going to '''''System &gt; Administration &gt; Software Sources''''' and ticking all the boxes under the heading "Downloadable from the Internet", click close and then allow Ubuntu to reload the package lists. The NVidia drivers can then be enabled using the method above.<br />
<br />
You can optionally prevent showing NVidia logo on startup by:<br />
<br />
sudo nvidia-xconfig --no-logo<br />
<br />
=== Wacom tablet ===<br />
<br />
By default, options for the Wacom tablet are commented out. Type the following command to edit the '''xorg.conf''' file.<br />
<br />
gksu gedit /etc/X11/xorg.conf<br />
<br />
Uncomment the following by removing the "#" or just replace the tree lines:<br />
<br />
InputDevice "stylus" "SendCoreEvents"<br />
InputDevice "cursor" "SendCoreEvents"<br />
InputDevice "eraser" "SendCoreEvents"<br />
<br />
Save and restart your X-session by typing '''CTRL-ALT-BACKSPACE'''.<br />
<br />
=== Microsoft Intellimouse ===<br />
<br />
To get the scroll wheel and side buttons to be recognized, change your '''/etc/X11/xorg.conf''' mouse section to look like the following:<br />
<br />
Section "InputDevice"<br />
<br />
Identifier "Configured Mouse"<br />
Driver "mouse"<br />
Option "CorePointer"<br />
Option "Device" "/dev/input/mice" <br />
Option "Protocol" "ExplorerPS/2"<br />
Option "ZAxisMapping" "4 5"<br />
Option "Emulate3Buttons" "true"<br />
Option "Buttons" "7" <br />
Option "ButtonMapping" "1 2 3 6 7"<br />
<br />
EndSection<br />
<br />
If you want the wheel scroll button to scroll in firefox rather than the side buttons make "ZAxisMapping" "6 7" and "ButtonMapping" "1 2 3 4 5".<br />
<br />
At this point you can reboot your computer or restart X (Ctrl-Alt-BackSpace) to see if your forward/back buttons work in FireFox. You can test in a terminal with '''xev'''.<br />
<br />
=== Logitech Marble Mouse ===<br />
<br />
To get the scrollwheel effect on Logitech trackball (Marble Mouse), change your '''/etc/X11/xorg.conf''' mouse section to look like the following:<br />
<br />
Section "InputDevice"<br />
<br />
Identifier "MarbleMouse"<br />
Driver "mouse"<br />
Option "Protocol" "auto"<br />
Option "Device" "/dev/input/mice"<br />
Option "Buttons" "5"<br />
Option "ButtonMapping" "1 8 3 6 7"<br />
Option "EmulateWheel" "true"<br />
Option "EmulateWheelTimeout" "300" # msec<br />
Option "EmulateWheelButton" "6"<br />
Option "YAxisMapping" "4 5"<br />
<br />
EndSection<br />
<br />
Make sure that you have "MarbleMouse" under the server layout section as well.<br />
<br />
The big left and right buttons work normally (click, right click) and pressing them at the same time acts as a middle click. Holding the small left button will let you scroll up and down with the trackball. Clicking small left and right buttons will let you go back/forward in firefox.<br />
<br />
Thanks to imjustabill and Buffalo Soldier from the Ubuntu Forum. This works well on my computer.<br />
<br />
=== Logitech MX510 ===<br />
<br />
To have the extra buttons on your MX510 working with X, you'll have to install and configure the evdev-drivers. Open up a terminal and enter:<br />
<br />
sudo apt-get install [http://packages.ubuntu.com/gutsy/x11/xserver-xorg-input-evdev xserver-xorg-input-evdev] <br />
<br />
Now, all you have to do is configure Xorg to work with the new driver. Always remember to back up original files before altering:<br />
<br />
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.bak<br />
gksudo gedit /etc/X11/xorg.conf<br />
<br />
Locate and replace the '''InputDevice''' section which holds the information for your mouse, for example with the identifier '''Configured Mouse''', and replace it with:<br />
<br />
<nowiki>Section "InputDevice"<br />
Identifier "Configured Mouse"<br />
Driver "evdev"<br />
Option "CorePointer"<br />
Option "Name" "Logitech MX510"<br />
EndSection</nowiki> <br />
<br />
Logout or kill the X session using '''&lt;CTRL&gt;&lt;ALT&gt;&lt;BACKSPACE&gt;''' and login again. This should get all of your buttons and scrollwheel up and running, and even let you navigate the webbrowser history using the thumb buttons on the side.<br />
<br />
=== Disable CAPS LOCK ===<br />
<br />
I like to remap mine to '''&lt;Ctrl&gt;'''. Just run gnome-keyboard-properties with "System &gt; Preferences &gt; Keyboard", click on the "Layout Options" tab and then on the arrow next to "Ctrl key position". Selecting "Make CapsLock an additional Ctrl" does the trick.<br />
<br />
=== Enabling NUM LOCK at boot ===<br />
<br />
The Default behavior is for the NUM LOCK key to be off; if you are on a desktop and have a keypad though, entering digits from it can be much quicker and you may wish to have it enabled for entering login password, etc. Here's how:<br />
<br />
* From Synaptic, download and install "numlockx," or, from the command line;<br />
<br />
sudo apt-get install numlockx<br />
<br />
* To get it working, you now have to edit the appropriate startup file. First, make sure you have a working backup of the file:<br />
<br />
sudo cp /etc/gdm/Init/Default /etc/gdm/Init/Default.bak<br />
<br />
* Next, modify the gdm/Init file. In terminal:<br />
<br />
gksudo gedit /etc/gdm/Init/Default<br />
<br />
* Scroll down to the end of the file, and above the line that says "exit 0" add the following:<br />
<br />
if [ -x /usr/bin/numlockx ]; then<br />
/usr/bin/numlockx on <br />
fi<br />
<br />
* Next time you reboot, your NUM LOCK should default to "on."<br />
<br />
=== BSNL Broadband (dataone) speedup ===<br />
<br />
BSNL Broadband or Dataone provides high speed (2Mbps) Internet connectivity in India. The DNS servers provided by the BSNL (61.1.96.69 and 61.1.96.71) are very slow. Instead use Either of these:<br />
<br />
208.67.222.222 and 208.67.220.220 or<br />
<br />
4.2.2.1 and 4.2.2.2 or<br />
<br />
search Google for free DNS service providers.<br />
<br />
=== Citrix ICA client ===<br />
<br />
The Citrix client no longer suffers from any of the previous Ubuntu version's problems of UTF8 font issues, OpenMotif depends, or flaky/broken browser integration. It just works!<br />
<br />
* Download the latest en.linuxx86.tar.gz (currently v10.6) from [http://www.citrix.com/ Citrix.com] and save to your desktop<br />
* Right-click tar.gz file, and '''Extract Here'''<br />
* Open a Terminal<br />
<br />
Programs &gt; Accessories &gt; Terminal<br />
<br />
* Change to the directory where we extracted the client<br />
<br />
cd Desktop/en.linuxx86<br />
<br />
* Run the setup program<br />
<br />
./setupwfc<br />
<br />
* Select the defaults<br />
<br />
Now, web files from Metaframe Presentation Server, Citrix Access Gateway, etc webpages will work fine in Firefox.<br />
<br />
Someone may wish to add an entry on how to use the client to connect to a local Citrix farm.<br />
<br />
=== WINE ===<br />
<br />
Latest install instructions are always at: [http://www.winehq.org/site/download-deb WineHQ.org]<br />
<br />
Add repository key:<br />
<br />
wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | sudo apt-key add -<br />
<br />
Add repository to apt sources:<br />
<br />
sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/gutsy.list -O /etc/apt/sources.list.d/winehq.list<br />
<br />
Update apt sources:<br />
<br />
sudo apt-get update<br />
<br />
Install WINE:<br />
<br />
sudo apt-get install wine<br />
<br />
The program menu then appears in Programs under Wine, or double-click a Windows/DOS .exe file.<br />
<br />
==== Install Internet Explorer 6 for Wine ====<br />
<br />
IE 6 is not recommended for general usage, but some Windows packages (installed under Wine) require IE6 to complete installation. Furthermore, IE 6 is useful for checking code for developers who want to see how their web pages appear under IE 6.<br />
<br />
Install the required package cabextract from Synaptic Package Manager (or from apt-get install cabextract).<br />
<br />
Download and run the IEs4Linux installation script from the IEs4Linux website:<br />
<br />
wget http://www.tatanka.com.br/ies4linux/downloads/ies4linux-latest.tar.gz<br />
tar zxvf ies4linux-latest.tar.gz<br />
cd ies4linux-*<br />
./ies4linux<br />
<br />
<br> There is a beta version of the install at http://www.tatanka.com.br/ies4linux/downloads<br />
<br />
'''If you hit advance you have the option to install IE7. I have not gotten it to work as of yet, but IE6 installs with no issues on amd64 and i386'''<br />
<br />
Accept all the defaults for installation.<br />
<br />
==== Wine-Doors ====<br />
<br />
Wine-Doors http://www.wine-doors.org/ packages Windows applications for Wine. The current package list includes Internet Explorer 6.<br />
<br />
Debian/Ubuntu package (single click) available for [http://www.wine-doors.org/wordpress/?page_id=3 download].<br />
<br />
=== VMWare Server ===<br />
<br />
Until the Commercial Ubuntu repository includes the VMWare Server, you can use the following 'How To' to compile from source.<br />
<br />
* [http://www.ubuntugeek.com/how-to-install-vmware-server-in-ubuntu-710-gutsy-gibbon.html Step By Step Vmware server setup guide including Screenshots]<br />
<br />
==== VMWare Tools ====<br />
<br />
If you want to install VMware tools on ubuntu gutsy follow this steps<br />
<br />
* [http://www.ubuntugeek.com/howto-install-vmware-tools-in-ubuntu.html VMWare Tools Setup Guide Incliding Screenshots]<br />
<br />
To be able to use usb devices look at following bug comment at https://bugs.launchpad.net/ubuntu/+source/kvm/+bug/156085/comments/5<br />
<br />
=== How to install Broadcom wireless driver ===<br />
<br />
* This worked for me Kubuntu 7.10 32 bit but there are several ways<br />
<br />
* First, make sure you have the appropriate hardware<br />
<br />
lspci | grep Broadcom<br />
<br />
* Output should match this<br />
<br />
02:03.0 Network controller: Broadcom Corporation BCM4306 802.11b/g Wireless LAN Controller (rev 02)<br />
<br />
* Then you have to add a repository<br />
<br />
gksu gedit /etc/apt/sources.list<br />
<br />
* Add<br />
<br />
deb http://ubuntu.cafuego.net gutsy-cafuego bcm43xx<br />
<br />
* Then do this to add the signature<br />
<br />
wget http://ubuntu.cafuego.net/AF425CB5.gpg -O- | sudo apt-key add -<br />
<br />
* Back in the console<br />
<br />
sudo apt-get update<br />
sudo apt-get install bcm43xx-firmware <br />
<br />
* Just press yes, let it install, and reboot! Thanks to Pete and the 7.04 guide for this.<br />
<br />
== Requests ==<br />
If you have requests that you would like to be part of this guide, write them in [[Ubuntu_talk:Gutsy]].<br />
<br />
== ''''' Troubleshooting ''''' ==<br />
<br />
Place solutions to problems you have encountered with Gutsy here.<br />
They may be workarounds to bugs or other solutions to other problems.<br />
<br />
=== OpenOffice spell checking problem ===<br />
This problem is not a bug at all. Some Languages do not have spell checking support, while others do. For example, "English (India)" does not support spell checking but "English (USA)" does. Just go to<br />
Tools -> Options -> Language Settings -> Languages<br />
and select a Western language that has a check mark beside the language name. That's it.<br />
<br />
If you want to add languages that support spell checking, install the package myspell-<language> where <language> is the desired language, e.g.:<br />
sudo apt-get install myspell-fr <br />
to install the French dictionary.<br />
<br />
=== Alternative of SCIM to switch keyboard layout ===<br />
SCIM might not work properly under Gutsy Gibbon, although works fine under Feisty Fawn. Until the problem is fixed, you can use the alternative method to switch keyboard layout.<br />
<br />
*Go to System -> Administration -> Language Support and install the languages you want to use.<br />
*Open System -> Preferences -> Keyboard and add the layout that you want to use from Layouts tab.<br />
*Right click on the free space of upper panel and select "Add to panel...". Add Keyboard Indicator.<br />
<br />
===Fix Slow boot/faulty splash screen===<br />
<br />
if your system is booting slowly or your ubuntu splash screen is not being displayed it could be that Usplash has created the splash screen incorrectly<br />
<br />
1) edit /boot/grub/menu.lst<br />
sudo gedit /boot/grub/menu.lst<br />
<br />
At the very end of the kernel line after "splash" , add <br />
"vga=***" <br />
replace *** with the code from the table below that corresponds with the resolution <br />
and colour setting you are using<br />
<br />
{| border="1" cellspacing="0" cellpadding="5" align="center"<br />
! Screen<br />
! 640x480<br />
! 800x600<br />
! 1024x768<br />
! 1280x1024<br />
! 1600x1200 <br />
|- <br />
| Colors<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
| 256<br />
| 769<br />
| 771<br />
| 773<br />
| 775<br />
| 796<br />
|-<br />
| 32,768<br />
| 784<br />
| 787<br />
| 790<br />
| 793<br />
| 797<br />
|-<br />
| 65,536<br />
| 785<br />
| 788<br />
| 791<br />
| 794<br />
| 798<br />
|-<br />
| 16.8M<br />
| 786<br />
| 789<br />
| 792<br />
| 795<br />
| 799<br />
|}<br />
<br />
the line should look something like this<br />
<br />
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=20fd9912-6383-4860-9cd8-88a11909d715 ro quiet splash vga=791<br />
<br />
Save that file, close it, <br />
<br />
2) edit /etc/usplash.conf<br />
sudo gedit /etc/usplash.conf<br />
<br />
change the resolution to the one you set in the previous step save and close<br />
<br />
3) rebuild the bootsplash screen<br />
<br />
sudo update-initramfs -u -k `uname -r`<br />
<br />
This rebuilds the image that Grub uses to start the system.<br />
<br />
4) reboot<br />
<br />
=== Logout problem === <br />
Some users have have faced a hangout problem when whey press the quit button. Currently the following symptom and work-around have been noticed: <br />
* Press Ctrl-Alt-Backspace to kill X-Window and show the GDM screen. <br />
* gnome-power-manager service should be on. You can enable it from System->Preferences->Sessions.<br />
* Wait for 1 minute. The quit window will appear. (the logout problem will vanish for some times).<br />
* For some users, removing .config/autostart/ directory worked.<br />
== Tips And Tricks ==<br />
It is pointless to add the tricks that is already added in [[Ubuntu:Feisty#Tips_And_Tricks]]. So, only new tricks are added.<br />
<br />
=== What to do when Ubuntu freezes ===<br />
There are different reasons for a computer to crash - there can be a programming bug, a memory issue, or other. When your computer seems to be dead, don't panic! And don't reach for that power button!<br />
There are '''five''' simple things you can try before killing the power:<br />
<br />
# Is the computer frozen? Try going into one of the VTs by pressing '''<Ctrl><Alt>''' and '''F1'''. This way you may still have control of the computer and manage to kill the application which caused the problem. '''''More on killing applications later.'''''<br />
# If you can't change into a VT, try to kill the X session. This can be done by pressing '''<Ctrl><Alt><Backspace>'''. All applications that were opened during the session will automatically be killed, so you should gain control over the computer after you've been sent back to the login screen.<br />
# OK, so you can't kill X or go into VT. Let's do a reboot, which can safely be done by pressing '''<Ctrl><Alt><Delete>'''. The machine will beep and start running the shutdown scripts.<br />
# If for some reason one or more of the shutdown scripts should die, and the computer stops the rebooting process, press the key combination again to ''force a reboot''. This not safe if the scripts haven't gotten around to unmount the local filesystems.<br />
# Final way out: Your computer doesn't obey and none of above methods seem to give any response. Here's a little trick that might help, not known to many Linux users! The kernel has a small userspace communication line opened, so even if the computer has crashed badly (I haven't tried this during kernel-panic, though, can anyone confirm?) you can make it reboot safely. This method ''is'' safe, but should be used '''''only if everything else fails'''''! Hold down '''<Ctrl>''', '''<Alt>''' and '''<PrtScrn/SysRq>'''. While holding down these, type the following letters - in order - '''R E I S U B'''. The computer will unmount any filesystems that are locally mounted, and safely bring down the system. If you have trouble remembering the letter combination; think '''''busier''''', only ''backwards''.<br />
<br />
=== How to find the UUID of a device ===<br />
* This is useful if changes are made to the partition table or a new hard drive is added to the computer.<br />
* When the UUID(s) change an error will be caused during boot.<br />
* Pressing <Ctrl>-D will allow the boot to continue but to fix the problem:<br />
-> Open fstab file:<br />
sudo gedit /etc/fstab<br />
-> In another terminal run this commmand: <br />
ls -l /dev/disk/by-uuid/ <br />
-> Or you can type this to list all of your devices:<br />
blkid<br />
<br />
* Compare the UUID's and any that are different in fstab from the list must be changed. The easiest way is copy and paste.<br />
* Some other things may have to be edited as well like the mount point, type (ext2, ext3, ntfs, etc) , options, dump, pass, etc.<br />
''For more help editing fstab look [http://ubuntuforums.org/showthread.php?t=283131 Here:]''<br />
<br />
* To list the UUID of a specific device:<br />
sudo vol_id -u device<br />
<br />
* Where device might be /dev/sdxy.<br />
'' Example: sudo vol_id -u /dev/sda1 ''<br />
<br />
=== Enable vim syntax highlighting ===<br />
The source of vi/vim command is vim-tiny package which does not support syntax highlighting. Install vim:<br />
sudo apt-get install vim<br />
Then open /etc/vim/vimrc and uncomment '''syntax on'''<br />
<br />
Replace<br />
"syntax on<br />
<br />
With<br />
syntax on<br />
<br />
=== HAL ===<br />
If you have problem failed to initialize HAL, and devices such as card reader,or shutdown problem, power meter doesn´t appear..please find this line in /etc/init.d/rc<br />
<br />
sudo vim /etc/init.d/rc<br />
find this line :<br />
CONCURRENCY=shell<br />
<br />
To fix this:<br />
<br />
sudo nautilus<br />
<br />
Navigate to /etc/<br />
look for the folder '''rc2.d'''<br />
rename '''s12hal''' to '''s13hal<br />
'''<br />
<br />
the problem was HAL loading before DBUS and causing such error.<br />
this should fiz the problem, if not<br />
<br />
sudo gedit /etc/init.d/rc<br />
<br />
and turn<br />
CONCURRENCY=shell to CONCURRENCY=none<br />
<br />
=== Enable Sirius Internet Radio for Firefox ===<br />
*Install [[#How to install VLC media player| VLC]]<br />
*Install the [https://addons.mozilla.org/en-US/firefox/addon/446 firefox media player connectivity plugin]<br />
<br />
Launch the player from [http://www.sirius.com/servlet/ContentServer?pagename=Sirius/Page&c=FlexContent&cid=1191942072317&flash=noflash| www.sirius.com]. After authenticating, you will now be able to select which stream to play. Selecting the stream will launch vlc.<br />
<br />
=== Remove unwanted language/locale files ===<br />
sudo apt-get install localepurge<br />
sudo localepurge<br />
<br />
=== Auto starting pidgin at login ===<br />
Goto System -> Preferences -> Sessions. Click Add. A popup window will appear. Set Name to "Pidgin" and Command to "/usr/bin/pidgin". Click OK. Make sure that it is enabled.<br />
<br />
=== sudo/gksu without password ===<br />
EDITOR=gedit gksu visudo<br />
Find "Defaults !lecture,tty_tickets,!fqdn" and replace by "Defaults timestamp_timeout=-1".<br />
<br />
=== Speed-up Ubuntu ===<br />
Open System -> Preferences -> Sessions and remove the startup programs that you do not need (e.g. Bluetooth Manager, Evolution Alarm Notifier, Restricted Driver Manager, Tracker, User folders update, Visual).<br />
<br />
Open System -> Preferences -> Appearance and make Visual Effects to None.<br />
<br />
Open System -> Administration -> Services and disable the services that you do not need (e.g. alsa-utils, bluetooth, brltty, hdparm, acpid, apmd, screen).<br />
<br />
=== How to change the USplash Screen on startup/shutdown ===<br />
<br />
When you add another Desktop Environment, the USplash screen may change (saying Kubuntu instead of Ubuntu). If you want to change it, do the following:<br />
<br />
sudo update-alternatives --config usplash-artwork.so<br />
<br />
This will bring up a list of installed USplash screens. Type the number that corresponds to the one you want and press Enter. Then type:<br />
<br />
sudo dpkg-reconfigure usplash<br />
<br />
Then reboot.<br />
<br />
== ''''' Guide Development ''''' ==<br />
<br />
'' Note: This section was taken from the Feisty Guide and edited appropriately.''<br />
<br />
Place ideas here to increase the look and performance of this guide.<br />
<br />
* Add a new section for Gnome Themes from http://art.gnome.org and KDE Themes from http://www.kde-look.org/.<br />
* Have entries under their headings in alphabetical order.<br />
* Try to keep the guide neat and clutter free.<br />
* Possible "Short Version" Table of contents without each "How to".<br />
* Add a [top] link to the end of each article.<br />
* If possible, include a 'find/search' function to easily access queries.<br />
** This can be done in Firefox with <Ctrl>-F.<br />
* instead of 'apt-get install', there could be the new Gutsy [http://www.ubuntugeek.com/apturl-protocol-handler-in-ubuntu-gutsy-gibbon.html apturl] feature for easier installation of software</div>Convicehttps://wiki.ubuntu.org.cn/index.php?title=Ubuntu:Gutsy/zh&diff=75354Ubuntu:Gutsy/zh2007-12-30T12:01:32Z<p>Convice:</p>
<hr />
<div>{{Translation}} {{From|http://ubuntuguide.org/Ubuntu:Gutsy}} {{Languages|Ubuntu:Gutsy}} {{Translator|zhan 译者2}}<br />
<br />
= ''''' Ubuntu 7.10 (Gutsy Gibbon) ''''' =<br />
<br />
'''Ubuntu Gutsy Gibbon, the successor of Feisty Fawn was released on Oct 18th, 2007. Please help test and perfect this guide.'''<br />
'''Ubuntu Gutsy Gibbon, Feisty Fawn 的后续版本,于 2007 年 10 月 18 日已经发布。请帮忙测试和完善这份指南'''<br />
<br />
This guide was started by [[User:Jiyuu0|Chua Wen Kiat]] (Kuala Lumpur, Malaysia). <br />
It is now being maintained by the [http://linux.edu.lv/index.php?newlang=english Linux Center] of [http://www.lu.lv/eng/ University of Latvia], and everyone else who is willing to contribute.<br />
<br />
这份指南由 [[User:Jiyuu0|Chua Wen Kiat]] (Kuala Lumpur, Malaysia). 发起。现在它由[http://www.lu.lv/eng/ Latvia 大学]的[http://linux.edu.lv/index.php?newlang=english Linux 中心]和所有愿意贡献的其他人们共同维护。<br />
<br />
This guide can be discussed at the official [http://www.ubuntuforums.org/forumdisplay.php?f=78 UbuntuGuide.org Forum] at ubuntuforums.org. Stop by and join the discussion. <br />
<br />
这份手册可以在官方论坛 ubuntuforums.org 的[http://www.ubuntuforums.org/forumdisplay.php?f=78 UbuntuGuide.org 论坛]<br />
讨论。加入讨论吧。<br />
<br />
== ''''' 前言 ''''' ==<br />
<br />
=== 关于 Gutsy ===<br />
<br />
* On October 18, 2007 Ubuntu 7.10 was released.<br />
* It was code named Gutsy Gibbon and is the successor to Ubuntu 7.04 Feisty Fawn (Feisty+1 or the very next release after Feisty)<br />
* Gutsy will be supported for 18 months on both desktops and servers.<br />
* Users requiring a longer support lifetime on servers may choose to continue using Ubuntu 6.06 LTS, with security support until 2011, rather than upgrade to or install 7.10.<br />
<br />
* 2007 年 10 月 18 日,Ubuntu 7.10 发布。<br />
* 它被命名为 Gutsy Gibbon,它是 Ubuntu 7.04 Feisty Fawn 的后续版本(Feisty +1 或紧接 Feisty 之后发布的版本)<br />
* Gutsy 将在桌面和服务器版本上提供 18 个月的支持<br />
* 要求更长期服务器版本支持的用户可以选择 Ubuntu 6.06 LTS ,而不是更新到 7.10, 因为 6.06 的安全支持直到 2011 年。<br />
<br />
=== 如何找出您正在使用的 Ubuntu 版本 ===<br />
<br />
* Read [[#General Notes]]<br />
*In Gutsy goto System -> Administration -> System Monitor -> System Tab<br />
<br />
or on all versions and derivatives of Ubuntu use this command:<br />
<br />
lsb_release -a<br />
<br />
* 读一下 [[#General Notes]]<br />
* 在 Gutsy 中,到系统->管理->系统监视器->系统标示 查看<br />
或者在所有的 Ubuntu 版本和衍生版本中,使用这个命令:<br />
<br />
lsb_release -a<br />
<br />
=== Ubuntu 的更新的版本 ===<br />
<br />
* Ubuntu uses a six month release cycle<br />
* These releases occur in April and October<br />
* The next release is scheduled for April 24, 2008 and will be Ubuntu 8.04 (Hardy Heron) which is Gutsy+1.<br />
* Hardy Heron will be a LTS (Long Term Support) release and will be supported with security updates for five years on the server and three years on the desktop.<br />
<br />
* Ubuntu 采用 6 个月的发行周期<br />
* 一般发布在 4 月和 10 月<br />
* 下一次的发布计划在 2008 年 4 月 24 日,并命名为 Ubuntu 8.04(Hardy Heron)即 Gutsy+1。<br />
* Hardy Heron 将是 LTS(长期支持)版本,将提供 5 年的服务器版本安全支持和 3 年的桌面版本支持。<br />
<br />
=== Ubuntu 的老版本 ===<br />
<br />
* '''[[Ubuntu:Feisty | 7.04 (Feisty Fawn)]]'''<br />
<br />
* '''[[Ubuntu:Edgy | 6.10 (Edgy Eft)]]'''<br />
<br />
* '''[[Ubuntu_dapper | 6.06 (Dapper Drake)]]'''<br />
<br />
If you are using an outdated version of Ubuntu, you should consider updating it to Gutsy. There have been considerable improvements to this version, and the updater used in Gutsy will ease transitions to future versions. If you are in a production environment, or if everything works perfectly for you, you may wish to stay with a Long-Term Support (LTS) version.<br />
<br />
如果您试用一个 Ubuntu 的过时的版本,您应该考虑将其升级到 Gutsy。 这个版本有相当多的改进,并且和将来的版本更加容易整合。如果您使用其作为一个生产环境,或您认为所有的事情都很完美,您可以考虑仍然使用长期支持版本(LTS)。<br />
<br />
*[http://www.ubuntu.com/getubuntu/upgrading Ubuntu 升级页面]<br />
<br />
* Dapper is latest LTS and the next version Gutsy+1 will be the next LTS released.<br />
<br />
*Read [https://lists.ubuntu.com/archives/ubuntu-devel-announce/2007-April/000276.html Introduction to Gutsy Gibbon] from April 2007<br />
<br />
* Dapper 是最新的 LTS 版本,Gutsy+1 的新版本将是下一个 LTS 版本。<br />
<br />
* 读一下从 2007 年 4 月开始的[https://lists.ubuntu.com/archives/ubuntu-devel-announce/2007-April/000276.html Gutsy Gibbon 简介] <br />
<br />
=== General Notes ===<br />
<br />
# 这是一个非官方的 Ubuntu 7.10 (Gutsy Gibbon) 初学者向导. 它与 Ubuntu和 Canonical 公司都没有关系.<br />
# 这个向导发自于官方论坛([http://www.ubuntuforums.org/forumdisplay.php?f=78 UbuntuGuide.org Forum] at ubuntuforums.org).欢迎参与讨论。<br />
# If you see a bluish box, this means you have to execute the commands in Terminal mode (Applications -&gt; Accesories -&gt; Terminal) or use the content of that box as mentioned in some other instructions.<br />
# 在终端模式,你也可以用“复制”“粘贴”来代替用键盘键入命令,这样往往可以有效的防止输入错误。(Ctrl+c=复制,Shift+Insert=粘贴)<br />
# "sudo" 表示 "'''s'''ubstitute '''u'''ser '''do'''". Sudo 需要你提供密码(密码不会在终端中回显). 你可以利用sudo代替另一个用户在计算机上操作-比如&nbsp; sudo -u peter &lt;命令&gt; 将会以peter的身份在计算机上执行此命令。<br><br />
# 欲获得更多关于命令的信息,请参阅手册页。例如,在终端中输入“man sudo”可以获得与sudo相关的信息。<br />
# 你也可以使用更新管理器来代替"apt-get"(系统-系统管理-更新管理器)<br />
# "apt-get"和"wget"都需要网络连接来下载安装和更新程序<br><br />
# 所以涉及 "aptitude"的选项都可以用"apt-get"替代.当然可以继续使用"aptitude",但是这可能会造成一些依赖性上的问题。<br><br />
# 可以点击右键选择“链接另存为”来下载文件,但必须保证文件的名字和拓展名都是正确的<br />
# 如果你有意向帮助Ubuntu本土化,请访问 https://launchpad.net/<br />
# 善待他人的理念永远和Ubuntu一起伴随着你...<br />
# ''如果使用的是64位的版本,请在“i386”用“amd64”代替''<br />
<br />
=== 外部链接申明 ===<br />
<br />
这份指南中的很多部分都有外部链接,这可以使这份指南更加精悍,然而Ubuntugide.org不能保证每个链接都是有效的。我们不能对本指南以外的一些拓展链接负责,如果你发现哪个链接是无效的,那请在此处报告问题,或者为我们修正那些指向错误的外部链接。因为有你,我们才能做的更加完美。<br />
<br />
==== ''关于链接出错'' ====<br />
<br />
''如果您发现某个链接是错误的或者无法找到相关信息,那请将此连接贴到此处,包括您是在哪段里找到此链接的。谢谢合作!''<br />
<br />
=== 关于Ubuntu以及官方的一些相关内容<br> ===<br />
<br />
==== Ubuntu 7.10的相关指导 ====<br />
<br />
* [http://www.ubuntu.com/ Ubuntu官方网站]<br />
* [http://www.ubuntu.com/products/whatisubuntu 官方介绍关于Ubuntu]<br />
* [http://ubuntuforums.org/ Ubuntu官方论坛]<br />
* [http://en.wikipedia.org/wiki/Ubuntu_(Linux_distribution) 维基百科: Ubuntu版本介绍 (Linux 发行版)]<br />
* [http://www.ubuntugeek.com/ Ubuntu Geek 网站包括很多关于Ubuntu 的指导性文章]<br />
* [http://www.ubuntutips.net/ Ubuntu小窍门]<br />
<br />
<br><br />
<br />
===== Ubuntu截图 =====<br />
<br />
[http://www.debianadmin.com/ubuntu-710-gutsy-gibbon-screenshots-tour.html Ubuntu 7.10 截图展示&nbsp;]<br />
<br />
==== Kubuntu 7.10的相关指导<br> ====<br />
<br />
* [http://www.kubuntu.org/ Kubuntu官方网站]<br />
* [http://www.kubuntuguide.org/ Kubuntuguide.org]<br />
* [http://www.kubuntu.org/docs/about-kubuntu/C/index.html 官方介绍关于Kubuntu]<br />
* [http://kubuntuforums.net/forums/index.php Kubuntu官方论坛]<br />
* [http://en.wikipedia.org/wiki/Kubuntu Wikipedia: Kubuntu]<br />
<br />
===== Kubuntu Screenshots =====<br />
<br />
[http://www.debianadmin.com/kubuntu-710-gutsy-gibbon-screenshots-tour.html Kubuntu 7.10 Screenshots Gallery]<br />
<br />
==== Xubuntu 7.10 Guides and Links ====<br />
<br />
* [http://www.xubuntu.org/ Xubuntu Official Website]<br />
* [http://en.wikipedia.org/wiki/Xubuntu Wikipedia: Xubuntu]<br />
* [http://www.xubuntuguide.org Xubuntuguide.org]<br />
<br />
===== Xubuntu Screenshots =====<br />
<br />
[http://www.debianadmin.com/xubuntu-710-gutsy-gibbon-screenshots-tour.html Xubuntu 7.10 Screenshots Gallery]<br />
<br />
==== Edubuntu 7.10 Guides and Links ====<br />
<br />
[http://www.edubuntu.org/ Offical Edubuntu Website] [http://en.wikipedia.org/wiki/Edubuntu Wikipedia: Edubuntu]<br />
<br />
==== Gobuntu 7.10 Guides and Links ====<br />
<br />
[http://en.wikipedia.org/wiki/Gobuntu Wikipedia: Gobuntu]<br />
<br />
=== 翻译和本地化 ===<br />
<br />
Chinese, Japanese, Portuguese and most European languages have better support in Ubuntu than any other languages. If your language do not have enough support, then you can help Ubuntu by translating it in your preferred language. To translate, visit https://translations.launchpad.net/ubuntu and login (register if not already registered). Choose your preferred language and start translating.<br />
<br />
Ubuntu对中文,日文,葡萄牙文及其它的欧洲语言的支持比对其它语言的支持要好。如果你的语言没有足够的支持的话,那么您可以帮助Ubuntu翻译成你喜欢的语言。翻译请访问https://translations.launchpad.net/ubuntu并登录(如果没有注册的话请先注册)。选择你喜欢的语言并开始翻译。<br />
<br />
== ''''' Updates and Upgrades and Installing Software''''' ==<br />
<br />
=== How to add extra repositories ===<br />
''Work in Progress''<br />
<br />
==== Menu Method ====<br />
*Choose distribution-friendly repositories. These are part of the Ubuntu distribution system. This is the recommended method.<br />
<br />
System-->Administration-->Software Sources<br />
<br />
Check the repositories you think you will need (main, universe, restricted, multiverse). You probably won't need the 'sources' repository.<br />
<br />
*Add any third-party repositories. Such repositories are not monitored in any way. Some are quite popular, however. Use any third-party repository at your own risk. <br />
<br />
System-->Administration-->Software Sources-->Third-party software-->Add<br />
<br />
Add the name of your repository. In this example, we will use Medibuntu, a popular third-party repository not affiliated with Ubuntu in any way.<br />
<br />
<i>APT line:</i> deb http://packages.medibuntu.org/ gutsy free non-free<br />
<br />
*Download any needed gpg keys and add them to the keylist. This key verifies the repository to your system. The Medibuntu repository (not affiliated with Ubuntu) example is shown:<br />
wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add -<br />
<br />
==== Manual Method ====<br />
<br />
* Create a backup of your current list of sources. <br />
sudo cp -p /etc/apt/sources.list /etc/apt/sources.list_backup<br />
<br />
* Open the list of sources in a text editor <br />
<br />
Ubuntu users: <br />
sudo gedit /etc/apt/sources.list<br />
<br />
* Replace everything with the following lines <br />
<br />
:To use your local mirror you can add "''cc.''" before ''archive.ubuntu.com'' (cc = your country code) <br />
:e.g. ''<nowiki>deb http://lv.archive.ubuntu.com/ubuntu gutsy main restricted universe multiverse</nowiki>''<br />
<br />
deb http://us.archive.ubuntu.com/ubuntu/ gutsy main restricted<br />
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy main restricted<br />
<br />
## Major bug fix updates produced after the final release of the<br />
## distribution.<br />
<br />
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted<br />
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted<br />
<br />
##Universe<br />
<br />
deb http://us.archive.ubuntu.com/ubuntu/ gutsy universe<br />
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy universe<br />
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates universe<br />
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates universe<br />
<br />
## Multiverse<br />
<br />
deb http://us.archive.ubuntu.com/ubuntu/ gutsy multiverse<br />
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy multiverse<br />
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates multiverse<br />
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates multiverse<br />
<br />
## Backports<br />
<br />
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse<br />
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse<br />
<br />
## Canonical Partner Repository <br />
<br />
deb http://archive.canonical.com/ubuntu gutsy partner<br />
deb-src http://archive.canonical.com/ubuntu gutsy partner<br />
deb http://security.ubuntu.com/ubuntu gutsy-security main restricted<br />
deb-src http://security.ubuntu.com/ubuntu gutsy-security main restricted<br />
deb http://security.ubuntu.com/ubuntu gutsy-security universe<br />
deb-src http://security.ubuntu.com/ubuntu gutsy-security universe<br />
deb http://security.ubuntu.com/ubuntu gutsy-security multiverse<br />
deb-src http://security.ubuntu.com/ubuntu gutsy-security multiverse<br />
<br />
## PLF REPOSITORY (Unsupported. May contain illegal packages. Use at own risk.)<br />
deb http://packages.medibuntu.org/ gutsy free non-free<br />
<br />
* Save the edited file <br />
<br />
wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add -<br />
sudo apt-get update<br />
<br />
=== 怎样从Feisty 升级到 Gutsy ===<br />
<br />
* [http://www.ubuntugeek.com/upgrade-ubuntu-704-feisty-fawn-to-ubuntu-710-gutsy-gibbon.html 一步一步地按照屏幕显示的升级向导把Ubuntu Feisty 升级到 Gutsy]<br />
<br />
=== How to edit Automatic Updates ===<br />
<br />
*Enable automatic updates from the menu:<br />
<br />
System-->Administration-->Software Sources-->Updates<br />
<br />
Select Important Security Updates and Recommended Security Updates and any other desired updates.<br />
Choose frequency of updates.<br />
<br />
=== How to manually update Ubuntu ===<br />
<br />
*Read [[#General Notes]]<br />
*Read [[#How to add extra repositories]]<br />
<br />
*From the command line:<br />
use http://www.ubuntu-nl.org/source-o-matic/ page to generate the /etc/apt/sources.list file<br />
<br />
take a backup of your existing /etc/apt/sources.list file<br />
<br />
create a new /etc/apt/sources.list file from the generated page available on the browser<br />
<br />
now run the following commands<br />
<br />
sudo apt-get update<br />
sudo apt-get upgrade<br />
sudo apt-get dist-upgrade<br />
<br />
*From the menu:<br />
<br />
System -> Administration -> Update Manager<br />
<br />
== ''''' Add-on Applications ''''' ==<br />
<br />
=== Miscellaneous Applications ===<br />
'' The application in this section need a home. If Editors have the time, please place these apps in an appropriate category. If the category doesn't exist then make it. Destroy this message when complete. Thanks. --[[User:KrazyPenguin|KrazyPenguin]] 06:16, 27 October 2007 (EEST)''<br />
<br />
==== Hotwire - Graphical terminal for Ubuntu ====<br />
If you want graphical terminal for Ubuntu check this Very Useful<br />
*[http://www.ubuntugeek.com/hotwire-graphical-terminal-for-ubuntu.html Hotwire Installation Guide]<br />
==== How to install Epiphany web browser in Ubuntu ====<br />
If you want to How to install Epiphany web browser in Ubuntu follow this procedure<br />
*[http://www.ubuntugeek.com/how-to-install-epiphany-web-browser-in-ubuntu.html Epiphany web browser in Ubuntu]<br />
==== Midori - a lightweight web browser in Ubuntu ====<br />
If you want to How to install Midori web browser in Ubuntu follow this procedure<br />
*[http://www.ubuntugeek.com/midori-a-lightweight-web-browser.html Midori web browser in Ubuntu]<br />
<br />
==== apturl - protocol handler in Ubuntu Gutsy Gibbon ====<br />
If you want to install ubuntu package from web browser here is simple tool<br />
*[http://www.ubuntugeek.com/apturl-protocol-handler-in-ubuntu-gutsy-gibbon.html apturl Setup guide]<br />
==== sysvconfig - utility for configuring init script links ====<br />
sysvconfig - utility for configuring init script links,service command in ubuntu<br />
*[http://www.ubuntugeek.com/sysvconfig-utility-for-configuring-init-script-links.html sysvconfig - utility for configuring init script links]<br />
==== Howto Install qBittorrent in Ubuntu Gutsy ====<br />
sysvconfig - utility for configuring init script links,service command in ubuntu<br />
*[http://www.ubuntugeek.com/howto-install-qbittorrent-in-ubuntu-gutsy.html Howto Install qBittorrent in Ubuntu Gutsy]<br />
<br />
==== Enable Drag and Drop capabilities to aMSN ====<br />
*[http://www.ubuntugeek.com/how-to-enable-drag-and-drop-capabilities-to-amsn.html Enable Drag and Drop capabilities to aMSN ]<br />
<br />
==== Mount/Unmount .iso Images in oneclick ====<br />
*[http://www.ubuntugeek.com/easy-way-of-mountunmount-iso-images-in-ubuntu.html Mount/Unmount .iso Images in oneclick in Ubuntu]<br />
==== Startup Manager ====<br />
StartUp Manager - change settings in Grub, Grub2 and Usplash<br />
*[http://www.ubuntugeek.com/startup-manager-change-settings-in-grub-grub2-and-usplash.html change settings in Grub, Grub2 and Usplash]<br />
<br />
==== Adobe Reader Gutsy amd64/i386 ====<br />
<br />
*[http://www.ubuntugeek.com/how-to-install-adobe-pdf-reader-811-with-plug-in-for-mozilla-firefox-in-gutsy-gibbon.html Acrobat Reader 8 with firefox plugins step by step installation guide]<br />
First<br />
echo "deb http://packages.medibuntu.org/ gutsy free non-free" | sudo tee -a /etc/apt/sources.list<br />
<br />
Second<br />
wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add - && sudo apt-get update<br />
<br />
Third we add plug ins and Reader<br />
sudo aptitude install acroread acroread-plugins acroread-escript<br />
<br />
You can also install the plug-in for Firefox<br />
sudo aptitude install mozilla-acroread<br />
<br />
Enjoy Adobe Reader<br />
<br />
==== OpenOffice add ons ====<br />
Opening .docx files in OpenOffice for Ubuntu (This will work with other distros)<br />
<br />
First we need to download the converter, it can be found here> [http://download.novell.com/SummaryFree.jsp?buildid=ESrjfdE4U58%7E]<br />
Download the "odf-converter-1.0.0-5.i586.rpm"<br />
<br />
Now install alien, if you have not yet<br />
<br />
sudo apt-get install alien<br />
<br />
Then we need to convert it, we do not want a .deb package for this, so we use the -ct switch not the -k<br />
The -ct converts it to a .tgz<br />
<br />
sudo alien -ct odf-converter-1.0.0-5.i586.rpm<br />
<br />
Once it is converted you need to unpack it<br />
<br />
tar xvf odf-converter-1.0.0.tgz<br />
<br />
Now there should be three dirs on you desktop or where ever you un tared these.<br />
<br />
You now need to run<br />
<br />
sudo cp usr/lib/ooo-2.0/program/OdfConverter /usr/lib/openoffice/program/<br />
<br />
sudo cp usr/lib/ooo-2.0/share/registry/modules/org/openoffice/TypeDetection/Filter/MOOXFilter_cpp.xcu /usr/lib/openoffice/share/registry/modules/org/openoffice/TypeDetection/Filter<br />
<br />
sudo cp usr/lib/ooo-2.0/share/registry/modules/org/openoffice/TypeDetection/Types/MOOXTypeDetection.xcu /usr/lib/openoffice/share/registry/modules/org/openoffice/TypeDetection/Types<br />
<br />
Then you are done, you can now open and edit .docx files '''ONLY''' I will post the others when I find them.<br />
<br />
There is an alternative to installing the "odf converter" on Ubuntu 7.10 (Gutsy). The 3 simple steps are as follows:<br />
<br />
(make sure you are logged in as root first, so from the terminal, type '''sudo su -''' and type in your password when prompted) <br />
<br />
Step 1: echo "deb http://ubuntu.org.ua/ getdeb/" >>/etc/apt/sources.list<br />
<br />
Step 2: apt-get update<br />
<br />
Step 3: apt-get install odf-converter<br />
<br />
I did the 3 steps above and got it working on my machine. Please do let me know if anyone is having any problems with it.<br />
<br />
====Genealogical Research and Analysis Management Program (Gramps)====<br />
GRAMPS, the Genealogical Research and Analysis Management Programming System, is an Open Source genealogy program written in Python, using the GTK/GNOME interface. GRAMPS has the ability to import GEDCOM files that are used in such programs as FamilyTree Maker for Windows and can produce reports in various formats such as the popular ABIWord and OpenOffice.org formats as well as HTML and PDF.<br />
sudo apt-get install gramps<br />
<br />
=== 桌面 ===<br />
<br />
==== Howto Tweak Ubuntu System ====<br />
<br />
If you want to tweak ubuntu check this<br />
<br />
* [http://www.ubuntugeek.com/howto-tweak-ubuntu.html Howto Tweak Ubuntu System]<br />
<br />
==== AMOR - a creature for your desktop ====<br />
<br />
If you want to add some fun to your ubuntu desktop this is for you<br />
<br />
* [http://www.ubuntugeek.com/amor-a-creature-for-your-desktop.html AMOR - a creature for your desktop]<br />
<br />
==== Advanced Desktop Effects (Compiz Fusion) ====<br />
<br />
Ubuntu 7.10 Gutsy Gibbon comes shipped with Compiz Fusion pre-installed, which means less tinkering with sensitive configuration files. For most part, Compiz needs proprietary drivers for your graphics card to work properly, so make sure you install those if needed.<br />
<br />
To enable desktop effects, turn them on by navigating your GNOME-menu to '''System &gt; Preferences &gt; Appearance'''. Under the tab ''Visual Effects'' you'll find three settings; ''None'', ''Normal'' and ''Extra''. To turn Compiz on, choose one of the two latter.<br />
<br />
If you wish to customize your Compiz options and plugins, such as animations and Desktop Cube, first install the configuration tool:<br />
<br />
sudo apt-get install [http://packages.ubuntu.com/gutsy/x11/compizconfig-settings-manager compizconfig-settings-manager] <br />
<br />
Then either choose the now available '''''Custom''''' and '''''Preferences''''' from the above ''Visual Effects'' menu, or start the settings manager via the menu '''System &gt; Preferences &gt; Advanced Desktop Effects Settings'''. You can also start the application from the terminal or run dialog ('''ALT + F2'''), using the command '''ccsm'''.<br />
<br />
==== ATI users and Compiz ====<br />
<br />
Some ATI cards don't need their proprietary drivers to work with Compiz as the open-sourced driver ('''radeon''') also has support for 3D acceleration. However, the open-sourced driver isn't as fast as the closed-sourced ('''fglrx''') one, so if you need the proprietary one you'll have to tinker around in the terminal a little.<br />
<br />
<br> 1. After you've installed the driver, either through the proprietary manager or directly from [http://ati.amd.com/support/driver.html ATI's site], you'll have to setup the Xorg configuration file to work with your new driver. Always remember to back up the original file before altering, in case something goes wrong. Open up a terminal and enter:<br />
<br />
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.bak<br />
sudo aticonfig --initial --input=/etc/X11/xorg.conf<br />
<br />
This will disable the default '''radeon''' driver and replace it with ATI's own.<br />
<br />
<br> 2. Now, let's tell Compiz not to care about drivers that are blacklisted:<br />
<br />
echo SKIP_CHECKS="yes" &gt;&gt; $HOME/.config/compiz/compiz-manager<br />
<br />
Alternatively, you could whitelist the driver, which is a much prettier solution. Run this command to edit the Compiz startup-script:<br />
<br />
gksudo gedit /usr/bin/compiz<br />
<br />
Search for '''Driver whitelist''' and add '''''fglrx''''' to the end of the line, like this:<br />
<br />
# Driver whitelist<br />
WHITELIST="nvidia intel ati radeon i810 fglrx"<br />
<br />
<br> 3. Reboot your computer, login and enable Compiz as mentioned above '''et voilà'''! Behold Compiz and ATI hugging.<br />
<br />
==== Live system monitoring ====<br />
<br />
sudo apt-get install netspeed<br />
<br />
Right click on the free area of the upper panel and select "Add to Panel...". Add "System Monitor" and "Network Monitor". Right Click on System Monitor and select Preferences. Add the monitor resources that you want to monitor.<br />
<br />
==== Desktop session recording ====<br />
<br />
It is possible to record the whole desktop session along with mouse pointer and sound system. It is a very useful tool for video screenshot as ordinary still picture screenshots generated by pressing Print Screen cannot demonstrate everything. Three applications that can do this for you are Istanbul, Wink and gtk-recordMyDesktop.<br />
<br />
====== Istanbul ======<br />
<br />
sudo apt-get install istanbul<br />
<br />
====== Wink ======<br />
<br />
sudo apt-get install wink<br />
<br />
====== gtk-recordMyDesktop ======<br />
<br />
sudo apt-get install gtk-recordmydesktop<br />
<br />
==== International Clock Gnome Applet (OpenSuse contribution) ====<br />
<br />
To switch to the new international clock applet download it from [http://brainstormingproject.free.fr/intlclock_1.0-1ubuntu0_i386.deb Here] <!--{11987330273590} --> then install it with dpkg. <!--{11987330273591} --><br />
<br />
Remove the old clock gnome applet right-clicking on it and then add a new applet to the panel with a right-click too over the empty place:<br />
<br />
&gt;Add to panel...&gt;Miscellaneous&gt;International Clock&gt;Add<br />
<br />
You got it.<br />
<br />
Add World Map and choose World locations using its Preferences menu<br />
<br />
=== 备份 ===<br />
<br />
Ubuntu Backup Options<br />
If you want to backup your Ubuntu Desktop Use Sbackup<br />
<br />
* [http://www.ubuntugeek.com/backup-and-restore-your-ubuntu-system-using-sbackup.html Sbackup Installation and setup guide]<br />
<br />
rdiff-backup<br />
Use rdiff-backup ubuntu<br />
<br />
* [http://www.ubuntugeek.com/backup-ubuntu-using-rdiff-backup.html rdiff-backup Setp Tutorial]<br />
<br />
=== 游戏 ===<br />
<br />
==== Frozen Bubble ====<br />
<br />
To install Frozen Bubble simply run:<br />
<br />
sudo apt-get install frozen-bubble<br />
<br />
or use Synaptic Package Manager under System &gt; Administration menu, to locate and install the package.<br />
<br />
==== How to solve Sudoku ====<br />
<br />
There is a simple [http://tamal.nath.googlepages.com/sudoku.pl Perl script] for solving gnome-sudoku. It does not support trial-and-error.<br />
<br />
==== Super Nintendo Emulator (ZSNES) 1.510 for i386/AMD64 ====<br />
<br />
* Read [[|#General Notes]]<br />
<br />
''For support or questions see http://ubuntuforums.org/showthread.php?t=588744''<br />
<br />
''ZSNES 1.51 is included in the Official Gutsy i386 repos. However, there is no official AMD64 version, and the i386 version is known to have issues in Gutsy (see http://ubuntuforums.org/showthread.php?t=571666). There is a workaround available for i386 users who are experiencing this error (see http://ubuntuforums.org/showpost.php?p=3604026&amp;postcount=22).''<br />
<br />
* Add a 3rd Party Repository<br />
<br />
echo "deb http://packages.dfreer.org gutsy main" | sudo tee -a /etc/apt/sources.list<br />
wget http://packages.dfreer.org/7572013D.gpg -O- | sudo apt-key add -<br />
sudo apt-get update<br />
<br />
* Install using one of the lines below<br />
<br />
sudo apt-get install zsnes32 #for amd64 users<br />
sudo apt-get install zsnes #for everyone else<br />
<br />
* Applications &gt; Games &gt; zsnes or zsnes32<br />
<br />
==== Playstation Emulator (pSX) 1.13 for i386/AMD64 ====<br />
<br />
* Read [[|#General Notes]]<br />
<br />
''For support or questions see http://ubuntuforums.org/showthread.php?t=394097''<br />
<br />
* Add a 3rd Party Repository<br />
<br />
echo "deb http://packages.dfreer.org gutsy main" | sudo tee -a /etc/apt/sources.list<br />
wget http://packages.dfreer.org/7572013D.gpg -O- | sudo apt-key add -<br />
sudo apt-get update<br />
<br />
* Install using one of the lines below<br />
<br />
sudo apt-get install psx32 #for amd64 users<br />
sudo apt-get install psx #for everyone else<br />
<br />
* Applications &gt; Games &gt; pSX or pSX32<br />
<br />
==== KDE games ====<br />
<br />
To install the games from KDE 3 (recommended for Kubuntu users), install the package kdegames. This can be done with:<br />
<br />
sudo apt-get install kdegames<br />
<br />
==== UrbanTerror 4.0 ====<br />
<br />
* UrbanTerror 4.0 is a Multi-player First Person Shooter. The Game uses the open source quake 3 engine and features many real weapons and free to use servers for multi-player functionality.<br />
<br />
''More information can be found at [http://www.urbanterror.net UrbanTerror]''<br />
<br />
* You can manually download and install UrbanTerror from the following webpage [http://www.urbanterror.net/page.php?6 UrbanTerror_Download]<br />
* Or you can enjoy an automated install by downloading and executing the linux install script from either of the following links: [http://89.106.68.26/linux/urbanterror4/urt40-linux-installer.sh urt40-linux-installer.sh_1] or [http://vlaai.snt.utwente.nl/pub/games/urbanterror/urt40-linux-installer.sh urt40-linux-installer.sh_2]<br />
<br />
* After downloading the script open Terminal into your download directory then make the script executable with the following command:<br />
<br />
sudo chmod +x urt40-linux-installer.sh<br />
<br />
* Now double click on the script to execute and follow the directions<br />
* The install will take awhile as the script executes a download of the necessary files which are about 541MB<br />
* After the install you will have a nice UrbanTerror icon on your desktop (unless you installed as root)<br />
<br />
''This easy install script is courtesy of Nexu from the UrbanTerror Forums.''<br />
<br />
=== CD/DVD ===<br />
==== How to rip a DVD video ====<br />
dvd::rip is a full featured DVD copy program written in Perl. It provides an easy to use but feature-rich Gtk+ GUI to control almost all aspects of the ripping and transcoding process. It uses the widely known video processing swissknife transcode and many other Open Source tools.<br />
sudo apt-get install dvdrip<br />
<br />
==== How to burn video DVD ====<br />
dvdauthor is a program that will generate a DVD movie from a valid mpeg2 stream that should play when you put it in a DVD player.<br />
sudo apt-get install dvdauthor<br />
<br />
==== How to burn a CD/DVD ====<br />
nautilus-cd-burner is a basic and pre-installed program to write a CD or DVD. Serpentine is a pre-installed audio CD creator program. Serpentine can convert flac and mp3 on the fly, when making audio cds.<br />
[http://www.nero.com/ena/linux3.html nerolinux] is a non-free CD/DVD/Blu-Ray/HD-DVD recorder. k3b is a great CD/DVD writing tool for KDE (ideal for Kubuntu users). But if you are looking for GTK/Gnome alternatives, then [http://packages.ubuntu.com/gutsy/gnome/brasero brasero], [http://packages.ubuntu.com/gutsy/otherosfs/gcdw cdw/gcdw], [http://packages.ubuntu.com/gutsy/sound/gcdmaster gcdmaster], [http://packages.ubuntu.com/gutsy/gnome/graveman graveman] and [http://packages.ubuntu.com/gutsy/gnome/gnomebaker gnomebaker] might impress you.<br />
<br />
[http://packages.ubuntu.com/gutsy/otherosfs/dvdisaster dvdisaster] provides a margin of safety against data loss on CD and DVD media caused by scratches or aging media. It creates error correction data which is used to recover unreadable sectors if the disc becomes damaged at a later time.<br />
<br />
=== 互联网 ===<br />
<br />
==== Browser Plug-ins ====<br />
<br />
Ubuntu automatically installs plug-ins required to browse a site in Firefox. But if you want to install plug-ins run the following in Terminal:<br />
<br />
For Java plug-in:<br />
<br />
sudo apt-get install sun-java6-plugin<br />
<br />
For Flash plug-in:<br />
<br />
sudo apt-get install flashplugin-nonfree<br />
<br />
Or if you want to support the open source flash plugin:<br />
<br />
sudo apt-get install mozilla-plugin-gnash<br />
<br />
For VLC plug-in (automatically installs VLC also):<br />
<br />
sudo apt-get install mozilla-plugin-vlc<br />
<br />
For MPlayer plug-in (automatically installs MPlayer also):<br />
<br />
sudo apt-get install mozilla-mplayer<br />
<br />
For Real player plug-in (automatically installs helix-player):<br />
<br />
sudo apt-get install mozilla-helix-player<br />
<br />
For kaffeine plug-in (automatically installs kaffeine also):<br />
<br />
sudo apt-get install kaffeine-mozilla<br />
<br />
For image-zoom plug-in (to zoom images in a page):<br />
<br />
sudo apt-get install mozilla-imagezoom<br />
<br />
For adblock plug-in (to block ads in a web page):<br />
<br />
sudo apt-get install mozilla-firefox-adblock<br />
<br />
Gutsy includes the option to add extensions to Firefox through the Ubuntu repositories. The option to add these extensions is included by default. To see and add Ubuntu Add-ons:<br />
<br />
* In Firefox, Go to Tools &gt; Add-ons<br />
* Click "Get Ubuntu Addons"<br />
* To see all available add-ons, click the list next to "Show:" and choose "All Available Applications"<br />
* Choose whichever add-ons you want, and click "Apply Changes"<br />
* You can see which add-ons you've installed in the normal Firefox add-on box.<br />
<br />
(Note: All Ubuntu add-ons are also available through the Synaptic package manager.)<br />
<br />
===== Shockwave =====<br />
<br />
''There is no version of Shockwave for Ubuntu/Linux but WINE can be used to run it.'' ''This method will result in 2 Firefox Browsers installed on the computer.'' ''Only use the WINE version when using a website that requires it.'' ''The native version of Firefox will give better computer performance, so it should used in all other occurrences.''<br />
<br />
* Install WINE<br />
* Download and install Firefox for Windows<br />
* Download and install Shockwave for Windows<br />
<br />
==== Download Manager (Downloader for X) ====<br />
<br />
To install Downloader for X simply run:<br />
<br />
sudo apt-get install d4x<br />
<br />
or use Synaptic Package Manager under System &gt; Administration menu, to locate and install the "d4x" package.<br />
<br />
==== FTP client (FileZilla) ====<br />
<br />
FileZilla is a powerful FTP client that came from windows enviroment. Reaching its third version it became cross-platform and is available through the Ubuntu Gutsy Repositories.<br />
<br />
To install FileZilla FTP client simply run:<br />
<br />
sudo apt-get install filezilla<br />
<br />
or use Synaptic Package Manager under System &gt; Administration menu, to locate and install the "filezilla" package.<br />
<br />
==== Configuring Evolution for Gmail ====<br />
<br />
Visit http://mail.google.com/mail/ and click settings (should be in top right corner). Select Forwarding and POP/IMAP.<br />
<br />
* If you want to use POP, select either "Enable POP for all mail (even mail that's already been downloaded)" or "Enable POP only for mail that arrives from now on".<br />
* If you want to use IMAP, select "Enable IMAP".<br />
<br />
Save changes.<br />
<br />
Open Evolution from Applications -&gt; Internet -&gt; Evolution Mail. If no mail account has been created before, a mail account setup wizard will automatically be opened. Otherwise open it from Edit -&gt; preferences -&gt; Mail Accounts -&gt; Add. Click Forward. Enter your email address for Gmail (including @gmail.com). Click Forward.<br />
<br />
* If you have enabled POP from Gmail set "Server Type" to POP, "Server" to pop.gmail.com, and "Use Secure Connection" to "SSL encryption".<br />
* If you have enabled IMAP from Gmail, set "Server Type" to IMAP, "Server" to imap.gmail.com, and "Use Secure Connection" to "SSL encryption".<br />
<br />
Click Forward. Click Forward. Set "Server" to smtp.gmail.com, and "Use Secure Connection" to "SSL encryption". Click Forward. Click Forward. Click Apply.<br />
<br />
Note that IMAP support for GMAIL is being rolled-out currently (Oct. 2007) but is not available to everyone with a GMAIL account yet. So use POP until IMAP is available for every user.<br />
<br />
==== SwiftFox ====<br />
<br />
Swiftfox is the Firefox web browser, but built with optimizations to increase speed on specific CPU types. It is compatible with all Firefox extensions and themes, and uses the same settings location as Firefox, so you can use both transparently.<br />
<br />
Instructions from [http://getswiftfox.com/debian.htm getswiftfox.com]<br />
<br />
* Add the Swiftfox repository<br />
<br />
sudo gedit /etc/apt/sources.list<br />
<br />
* Add this line at the bottom<br />
<br />
deb http://getswiftfox.com/builds/debian unstable non-free<br />
<br />
* Update apt sources<br />
<br />
sudo apt-get update<br />
<br />
* Check your CPU compatibility [http://getswiftfox.com/proc.htm here]<br />
* Install your version of Swiftfox<br />
<br />
sudo apt-get install swiftfox-pentium4<br />
<br />
* Run with<br />
<br />
Programs &gt; Internet &gt; Swiftfox<br />
<br />
* There is also an [[http://www.getswiftfox.com/installer.htm installer]] available that is distro independent. It is a script that downloads and installs Swiftfox in the /opt directory and attempts to use existing Firefox plugins. The installer is probably the best way for most non-Ubuntu and non-Debian users to install Swiftfox.<br />
<br />
==== Azureus (Java BitTorrent client) ====<br />
<br />
The simplest way to install Azureus is:<br />
<br />
sudo apt-get install [http://packages.ubuntu.com/gutsy/net/azureus azureus] <br />
<br />
But it has lots of dependencies. An alternate method is discussed [http://azureus.sourceforge.net/howto_linux.php here]. Additionally you can create a file /usr/share/applications/Azureus.desktop containing the following lines to make it appear in the main menu:<br />
<br />
[Desktop Entry]<br />
Encoding=UTF-8<br />
Type=Application<br />
Terminal=false<br />
Name=Azureus<br />
Exec=/usr/local/azureus/azureus<br />
Comment=Java BitTorrent client<br />
Categories=Application;Network;<br />
MimeType=application/x-bittorrent;<br />
Icon=/usr/local/azureus/Azureus.png<br />
<br />
(here it is assumed that azureus is installed in /usr/local directory)<br />
<br />
Update: A brand-new Azureus package is now available in gutsy-backports, which is highly preferable to the version in the main repositories. It fixes many stability problems and is compiled using icedtea/Java 7. By the time you read this, it may be available in the main repositories. Therefore you might want to make sure you have the gutsy-backports repository enabled before installing azureus via apt-get.<br />
<br />
==== Deluge (A lightweight BitTorrent client written in python) ====<br />
<br />
If you want a client with lower memory and CPU usage than Azureus you might want to try out Deluge. However, due to stability problems with the version available in the [http://packages.ubuntu.com/gutsy/net/deluge-torrent Ubuntu repository], it's probably better to install the latest version using the handy Gutsy-specific package from [http://deluge-torrent.org/downloads-ubuntu the official Deluge website]. To install, just click on the debian package for your version and architecture ('''i386''' for 32-bit systems and '''x86_64''' for 64-bit systems) and choose to run it with GDebi package installer.<br />
<br />
==== DC++ client (Linuxdcpp) ====<br />
<br />
* Install:<br />
<br />
sudo apt-get install linuxdcpp<br />
<br />
* Then go<br />
<br />
Main Menu-&gt;Intenet-&gt;DC++<br />
<br />
=== 多媒体播放器 ===<br />
<br />
==== 怎样安装 Mplayer 和 Multimedia Codecs(解码器) ====<br />
<br />
&nbsp;&nbsp; 安装 mplayer 和 codecs的简单向导<br />
<br />
* [http://www.ubuntugeek.com/install-mplayer-and-multimedia-codecs-libdvdcss2w32codecs-in-ubuntu-710-gutsy-gibbon.html Mplayer 和 Multimedia Codecs的安装指导手册]<br />
<br />
* 从[http://sourceforge.net/project/showfiles.php?group_id=185512 这里] 下载 [http://smplayer.sourceforge.net/ SMPlayer] (MPlayer的一个很棒的前端) 然後双击安装它。 smplayer这个前端也可以在软件包管理器中安装。<br />
<br />
===== &nbsp; 关于64位版本 Mplayer 对 wmv9 格式支持问题<br> =====<br />
<br />
&nbsp;&nbsp;&nbsp; AMD64版本的Mplayer不能正确的播放wmv9格式的文件。 要播放wmv9,你需要安装32位版本的mplayer, 和所有需要的解码器.。相较于我新安装的Gutsy,我不需要额外安装它所依赖的库文件,这让配置mplayer的工作简单多了。这就是说,做完这些步骤後你就可以随时观赏wmv9的文件了。<br />
<br />
'''下载&nbsp; mplayer32 for Edgy 的版本 (被证明能稳定地工作) 放到临时的文件夹中。'''<br />
<br />
mkdir mplayer32temp<br />
cd mplayer32temp<br />
wget http://folk.ntnu.no/grannas/debs/mplayer32_20070130-1_amd64.deb<br />
<br />
'''解开你刚才下载的这个压缩包,放到合适的地方''' ''(按 'n'当 问你是否要为文件更换位置)''<br />
<br />
sudo dpkg -x mplayer32_20070130-1_amd64.deb ./<br />
sudo mv -i usr/bin/* /usr/bin/<br />
sudo mv -i usr/lib32/* /usr/lib32/<br />
<br />
'''从mplayerrhq 获取最新的 win32 codecs (下面命令中是10月7日版本, 2007), 解压缩然後安装''' ''(同样, 在问到更换位置时按'n' )''<br />
<br />
wget http://www3.mplayerhq.hu/MPlayer/releases/codecs/essential-20071007.tar.bz2<br />
tar jxfv essential-20071007.tar.bz2<br />
sudo mv -i essential-20071007/* /usr/lib/win32/<br />
<br />
'''播放 wmv9 影片.(享受它)'''<br />
<br />
mplayer32 foobar.wmv<br />
<br />
<br><br />
<br />
==== 怎样安装 amaroK 多媒体播放器 ====<br />
<br />
* 注意: KDE 环境下, Amarok 已经默认安装 。<br />
<br />
sudo apt-get install amarok<br />
<br />
* 从菜单启动:<br />
<br />
Applications -&gt; Sound &amp; Video -&gt; amaroK<br />
<br />
====== 怎样卸载 amaroK ======<br />
<br />
sudo apt-get --purge autoremove amarok<br />
<br />
====怎样获得MP3文件播放时的鼠标滑过预览 ====<br />
<br />
sudo apt-get install mpg321<br />
sudo apt-get install ubuntu-restricted-extras<br />
sudo apt-get install pulseaudio<br />
sudo apt-get install pulseaudio-esound-compat<br />
sudo apt-get install libasound2-plugins<br />
<br />
这个方法可能会破坏Skype软件的声音系统<br />
<br />
你也能通过下面的步骤实现鼠标滑过预览:<br />
<br />
sudo apt-get install mpg321<br />
sudo apt-get install mpg123-esd<br />
sudo apt-get install vorbis-tools<br />
sudo apt-get install esound<br />
sudo apt-get install ubuntu-restricted-extras<br />
<br />
这样系统中的Skype会保持正常功能<br />
<br />
==== 怎样安装VLC媒体播放器 ====<br />
<br />
sudo apt-get install vlc<br />
<br />
卸载VLC媒体播放器:<br />
<br />
sudo apt-get --purge autoremove vlc<br />
<br />
==== 怎样安装 Banshee 音乐管理和播放器<br> ====<br />
<br />
sudo apt-get install banshee<br />
<br />
卸载:<br />
<br />
sudo apt-get --purge autoremove banshee<br />
<br />
==== How to encode/decode audios ====<br />
<br />
There is a great command line tool, sox which not just a ordinary encoder/decoder but a good composer. Read its manual for more information.<br />
<br />
''Input(s) → Balancing → Combiner → Effects → Output''<br />
<br />
sudo apt-get install sox<br />
<br />
sox cannot handle Real Audio format. For that you need mplayer which converts a .rm file to a .wav file and then use sox to convert wave file to other file.<br />
<br />
mplayer -ao pcm:file=output.wav input.rm<br />
<br />
==== How to encode/decode videos ====<br />
<br />
mencoder, avidemux, transcode, ffmpeg2theora, etc. are some video converting tools. Read their manuals for information.<br />
<br />
sudo apt-get install mencoder avidemux transcode ffmpeg2theora<br />
<br />
==== How to edit audios ====<br />
<br />
sudo apt-get install lmms<br />
sudo apt-get install audacity<br />
<br />
==== How to edit videos ====<br />
<br />
sudo apt-get install ubuntustudio-video<br />
<br />
==== Text-to-Speech ====<br />
<br />
Visit https://help.ubuntu.com/community/TextToSpeech<br />
<br />
=== Programming / Web Development ===<br />
<br />
==== Quanta Plus ====<br />
<br />
(Quanta is a KDE application, but also works on GNOME.)<br />
To install Quanta, HTML/XML/PHP/Etc Web Creation Software:<br />
<br />
sudo apt-get install quanta kompare kxsldbg cervisia<br />
<br />
Applications > Programming > Quanta Plus<br />
<br />
==== Netbeans IDE ====<br />
Netbeans is a platform independent IDE for Java. But it also supports C/C++, Ruby, portals and lots of other stuffs as plug-ins. At the point of writing, version 5.5.1 is the latest stable release and can be installed by:<br />
sudo apt-get install netbeans5.5<br />
Alternately you can download [http://www.netbeans.org/community/releases/60/index.html Netbeans 6.0] and install it manually. The size of the installation package varies from 11 MB to 200 MB.<br />
<br />
===== Netbeans with Web & Java EE pack =====<br />
If you want to use NetBeans for web development and want to integrate with Java EE, download the "Netbeans with Web & Java EE" pack. The plug-in mechanism of installing additional modules are not recommended as it installs it on user directory (~/.netbeans/6.0beta2/modules/) rather than system-wide installation directory (/usr/local/netbeans-6.0beta2/nb6.0/modules/).<br />
<br />
Netbeans with Web & Java EE pack comes with 2 built in runtime environments:<br />
* GlassFish V2 Build 58g<br />
* Apache Tomcat 6.0.14<br />
Those are ideal for both development and production use. Thus you do not have to install either Sun Java Application Server of Apache Tomcat separately. Also uninstalling Netbeans will not uninstall them. You have to uninstall them separately.<br />
<br />
But in case you want to install the servers separately, you typically have to run Netbeans as root.<br />
Alternately, you can also change the configuration files' owner/group and permissions of Tomcat and GlassFish to work with Netbeans.<br />
<br />
==== Eclipse IDE ====<br />
[http://packages.ubuntu.com/gutsy/devel/eclipse Eclipse IDE] is an alternative of [http://packages.ubuntu.com/gutsy/devel/netbeans5.5 Netbeans IDE]. Actually, it is somewhat more popular among Linux users. You can install eclipse directly from [http://www.eclipse.org/downloads/ Eclipse website] or can install it using apt-get:<br />
sudo apt-get install eclipse<br />
<br />
==== Anjuta IDE ====<br />
[http://anjuta.sourceforge.net/ Anjuta] is an IDE used primarily for C/C++ development. Not as robust as other itegrated development environments. However, tt does feature some useful plugins that provide functionality that most other IDE's have. (GUI development, project wizards, etc.)<br />
sudo apt-get install anjuta<br />
<br />
=== Utilities ===<br />
<br />
==== Compression tools ====<br />
Zip, Gzip and Bzip2 are the most popular compression tools available in almost every every Linux. But of late two new compression tools available: p7zip (http://7-zip.org/), ace and rar (http://www.rarlab.com/). 7-zip is a open-source project, but rar and ace are not.<br />
<br />
sudo apt-get install rar unrar<br />
sudo apt-get install p7zip-full<br />
sudo apt-get install unace<br />
<br />
Ark is the compression tool for kde, and has support for more formats including rar.<br />
<br />
sudo apt-get install ark<br />
<br />
==== Clipboard Manager (Glipper) ====<br />
<br />
To install Glipper simply run:<br />
sudo apt-get install glipper<br />
or use Synaptic Package Manager under System > Administration menu, to locate and install the "glipper" package.<br />
<br />
==== Password Manager (KeePassX) ====<br />
<br />
KeePass is a crossplatform password manager.<br />
To install it simply run:<br />
sudo apt-get install keepassx<br />
or use Synaptic Package Manager under System > Administration menu, to locate and install the "keepassx" package.<br />
<br />
==== How to fix/integrate bluetooth with nautilus ====<br />
<br />
On Some systems bluetooth "Browse Device" fuction doesn't work properly.<br />
<br />
To Fix This:<br />
<br />
sudo apt-get install gnome-vfs-obexftp<br />
<br />
or<br />
<br />
sudo aptitude install gnome-vfs-obexftp<br />
<br />
==== 怎样安装 Google Earth (地球仪软件) ====<br />
<br />
Google earth是一个世界地图查看器. 它可以3D的形式显示的建筑以及桥梁. 默认的时候它是显示的是静态的图片. 最新版式中包含了鸟瞰世界的功能. 点击 [http://earth.google.com/ 这里] 查看更多相关的信息.<br />
<br />
Google Earth is available in the Medibuntu Package archive. To install google-earth from Medibuntu:<br />
<br />
echo "deb http://packages.medibuntu.org/ gutsy free non-free" | sudo tee -a /etc/apt/sources.list<br />
wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add - &amp;&amp; sudo apt-get update<br />
sudo aptitude install googleearth<br />
<br />
除此之外你还可以直接从Google下载安装程序进行安装:<br />
<br />
[http://earth.google.com/download-earth.html 下载] Google Earth到你的桌面. 打开终端并运行n:<br />
<br />
chmod +x Desktop/GoogleEarthLinux.bin<br />
sudo Desktop/GoogleEarthLinux.bin<br />
<br />
按照说明完成安装. 卸载Google earth,执行以下命令:<br />
<br />
sudo su<br />
/opt/google-earth/uninstall<br />
<br />
==== 怎样安装 Picasa (Google 开发的照片管理工具) ====<br />
<br />
Picasa 是一款帮助你立即查找、编辑和共享在你的电脑上的所有照片的软件. Picasa makes advanced editing simple by putting one-click fixes and powerful effects at your fingertips. And Picasa makes it a snap to share your pictures – you can email, print photos home, and even post pictures on your own blog. You can install it in four ways:<br />
<br />
* [http://picasa.google.com/linux/download.html 下载] 直接下载 Debian/Ubuntu (DEB包) 安装.<br />
* 访问 http://www.google.com/linuxrepositories/ 阅读怎样添加 Google 源的说明.然后运行:<br />
<br />
sudo apt-get install picasa<br />
<br />
* [http://picasa.google.com/linux/download.html 下载] 自解压安装程序并按照说明配置 Google Earth.<br />
* 安装Windows (需要WINE支持).<br />
<br />
==== How to install Google Desktop (search utility) ====<br />
Google Desktop is a desktop search application that gives you easy access to information on your computer and from the web. Desktop makes searching your own email, files, music, photos, and more as easy as searching the web with Google. You can download Google Desktop in two ways:<br />
* Download and install the Debian package directly from http://desktop.google.com/en/linux/download.html<br />
* Visit http://www.google.com/linuxrepositories/ and see the instructions about how to add Google repository. Then run:<br />
sudo apt-get install google-desktop-linux<br />
<br />
==== How to install ntop (network monitoring utility) ====<br />
Ntop is a network monitoring utility. You can monitor local devices as well as devices with Netflow output (like a Cisco router). It's very easy to install too, open a terminal and type:<br />
<br />
sudo apt-get install ntop<br />
<br />
Now that it is installed, you have to do some basic setup. Once again, in the terminal, type:<br />
<br />
sudo ntop<br />
<br />
You will be asked for a password, and then to confirm the password. This will be the admin password for the ntop web interface. Next, we want to install "Dot", which is a part of the "Graphviz" package:<br />
<br />
sudo apt-get install graphviz<br />
<br />
Now, again in the terminal type:<br />
<br />
sudo /etc/init.d/ntop start<br />
<br />
Thats it! ntop is running! Try browsing to http://127.0.0.1:3000 to get started. You will have to add the path to dot to the ntop configuration. <br />
<br />
Admin -> Configure (Enter admin user/pass) -> Preferences<br />
<br />
At the bottom add a new preference:<br />
<br />
dot.path /usr/bin/dot<br />
<br />
You should now have a network map for the local interface under IP -> Local -> Network Traffic Map<br />
<br />
Visit http://www.ntop.org/ for more information.<br />
<br />
==== How to install applications for study of religious texts ====<br />
<br />
* For study of Bible see [http://gnomesword.sourceforge.net/ GnomeSword]<br />
* For study of Quran see [http://sourceforge.net/projects/zekr/ Zekr]<br />
<br />
===== How to install Gnomesword (Bible study program)=====<br />
*Read [[#General Notes]] <br />
*Read [[#How to add extra repositories]]<br />
*This installs the english version of the program.<br />
<br />
sudo apt-get install gnomesword sword-language-pack-en sword-text-web<br />
<br />
*If you require other languages type:<br />
<br />
sudo apt-cache search bible<br />
<br />
*Take a look at the sword-language-pack's and the sword-text's for additional languages and install as needed. <br />
<br />
Gnomesword is found under Applications-->Accessories.<br />
<br />
*Under KDE, use kio-sword instead of Gnomesword:<br />
<br />
sudo apt-get install kio-sword<br />
<br />
===== How to install a Quran researching tool (Zekr) ===== <br />
[http://siahe.com/zekr/ Zekr] is an open platform Quran study tool for simply browsing and researching on the Quran. <br />
<br />
sudo wget http://siahe.com/zekr/apt/sources.list.d/gutsy.list -O /etc/apt/sources.list.d/zekr.list <br />
wget -q http://siahe.com/zekr/apt/zekr.debian.gpg -O- | sudo apt-key add - <br />
sudo apt-get update <br />
sudo apt-get install zekr ttf-me-quran ttf-sil-scheherazade<br />
sudo apt-get install ttf-farsiweb flashplugin-nonfree<br />
<br />
*Zekr comes with extra Quran translations in Persian, Urdu, French, Russian, English, Turkish, Bosnian, Dutch packaged as zekr-quran-translations-XY where XY is the ISO code of the language. Run<br />
apt-cache search zekr-quran-translations<br />
<br />
in a shell to list them all. Then among the result list choose the appropriate package and install it: For example if you want to install English Quran Translations run the following command:<br />
sudo apt-get install zekr-quran-translations-en<br />
<br />
*For more info see [http://www.siahe.com/zekr/wiki/index.php?title=Installation#Ubuntu.2FDebian Zekr wiki].<br />
<br />
==== How to install applications for Education ====<br />
===== How to install Mnemosyne =====<br />
<br />
[http://mnemosyne-proj.sourceforge.net/ Mnemosyne] is a sophisticated free flash-card tool which optimizes your learning process. To install the latest version in the repositories run the following command<br />
sudo apt-get install mnemosyne<br />
or use Synaptic Package Manager under System => Administration menu, to locate and install the mnemosyne package.<br />
<br />
To install the latest version (the one in the repository is somewhat out of date) first install the dependencies:<br />
sudo apt-get install python python-pygame python-qt3 python-support python-xml<br />
then download the latest source package from [http://mnemosyne-proj.sourceforge.net/ here]:<br />
wget http://superb-east.dl.sourceforge.net/sourceforge/mnemosyne-proj/mnemosyne-0.9.10.tgz<br />
(correct as of 11 Nov 2007)<br />
Decompress it:<br />
tar -xzf mnemosyne-0.9.10.tgz<br />
go to the directory<br />
cd mnemosyne-0.9.10/<br />
run this command to install it:<br />
sudo python setup.py install<br />
To create a launcher for it in your Applications Menu:<br />
System => Preferences => Main Menu => Education (or wherever) => New Item:<br />
Name: Mnemosyne<br />
Command: mnemosyne<br />
<br />
== '''''安全&nbsp;''''' ==<br />
<br />
=== 怎样重设用户密码 ===<br />
<br />
sudo apt-get install john<br />
sudo john /etc/shadow<br />
<br />
=== 怎样重设ROOT用户的密码 ===<br />
<br />
重启Ubuntu进入安全模式并输入:<br />
<br />
passwd<br />
<br />
<br />
来修ROOT用的密码<br />
<br />
=== 怎样创建或修改GRUB启动菜单的密码 ===<br />
<br />
请点击[http://ubuntuguide.org/wiki/Ubuntu:Feisty#How_to_change_GRUB_menu_password_if_forgotten 这里].<br />
<br />
=== 如果忘记GRUB启动菜单的密码怎样修改root用户的密码 ===<br />
<br />
点击 [http://ubuntuguide.org/wiki/Ubuntu:Feisty#How_to_use_Ubuntu_Installation_CD.2C_to_gain_root_user_access 这里]. To prevent this, you have to set a bios password and set hard disk as the first boot device.<br />
<br />
== '''''服务器<br>''''' ==<br />
<br />
=== Samba 服务器<br> ===<br />
<br />
==== 怎样安装 Samba 服务器来共享文件以及文件夹<br> ====<br />
<br />
* 阅读 [[|#General Notes]]<br />
* 阅读 [[|#How to add extra repositories]]<br />
<br />
sudo apt-get install samba smbfs<br />
<br />
==== 怎样添加/修改/删除网络用户 ====<br />
<br />
* 阅读 [[|#General Notes]]<br />
* 阅读 [[|#How to install Samba Server for files/folders sharing service]]<br />
* To add network user <br />
** Read [[|#How to add/edit/delete system users]]<br />
<br />
sudo smbpasswd -a system_username<br />
gksudo gedit /etc/samba/smbusers<br />
<br />
* <br />
** Insert the following line into the new file<br />
<br />
system_username = "network username"<br />
<br />
* <br />
** Save the edited file<br />
* To edit network user<br />
<br />
sudo smbpasswd -a system_username<br />
<br />
* To delete network user<br />
<br />
sudo smbpasswd -x system_username<br />
<br />
==== How to share home folders with read only or read/write permission (Authentication=Yes) ====<br />
<br />
* Read [[|#General Notes]]<br />
* Read [[|#How to install Samba Server for files/folders sharing service]]<br />
<br />
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup<br />
gksudo gedit /etc/samba/smb.conf<br />
<br />
* Find this line<br />
<br />
...<br />
; security = user<br />
...<br />
<br />
* Replace with the following lines<br />
<br />
security = user<br />
username map = /etc/samba/smbusers<br />
<br />
* Remove the&nbsp;; in front of the following lines (there will text in between explaining what they do):<br />
<br />
;[homes]<br />
;comment = Home Directories<br />
;browseable = no<br />
;valid users = %S<br />
;writable = yes<br />
<br />
* <br />
** If you want other network users to be able to edit to the folder then change<br />
<br />
# By default, the home directories are exported read-only. Change next<br />
# parameter to 'yes' if you want to be able to write to them.<br />
&nbsp;; writable = no<br />
<br />
* <br />
** Replace with the following lines<br />
<br />
writable = yes<br />
<br />
* Save the edited file<br />
* Read [[|#How to add/edit/delete network users]]<br />
<br />
sudo testparm<br />
sudo /etc/init.d/samba restart<br />
<br />
==== How to share group folders with read only permission (Authentication=Yes) ====<br />
<br />
* Read [[|#General Notes]]<br />
* Read [[|#How to install Samba Server for files/folders sharing service]]<br />
<br />
sudo mkdir /home/group<br />
sudo chmod 777 /home/group/<br />
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup<br />
gksudo gedit /etc/samba/smb.conf<br />
<br />
* Find this line<br />
<br />
...<br />
; security = user<br />
...<br />
<br />
* Replace with the following lines<br />
<br />
security = user<br />
username map = /etc/samba/smbusers<br />
<br />
* Append the following lines at the end of file<br />
<br />
[Group]<br />
comment = Group Folder<br />
path = /home/group<br />
public = yes<br />
writable = no<br />
valid users = system_username1 system_username2<br />
create mask = 0700<br />
directory mask = 0700<br />
force user = nobody<br />
force group = nogroup<br />
<br />
* Or if you want other network users to be able to edit to the folder change<br />
<br />
writable = yes<br />
<br />
* Save the edited file<br />
* Read [[|#How to add/edit/delete network users]]<br />
<br />
sudo testparm<br />
sudo /etc/init.d/samba restart<br />
<br />
==== How to share public folders with read only or read/write permissions (Authentication=Yes) ====<br />
<br />
* Read [[|#General Notes]]<br />
* Read [[|#How to install Samba Server for files/folders sharing service]]<br />
<br />
sudo mkdir /home/public<br />
sudo chmod 777 /home/public/<br />
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup<br />
gksudo gedit /etc/samba/smb.conf<br />
<br />
* Find this line<br />
<br />
...<br />
; security = user<br />
...<br />
<br />
* Replace with the following lines<br />
<br />
security = user<br />
username map = /etc/samba/smbusers<br />
<br />
Then follow either 1. or 2.<br />
<br />
* 1. Save the edited file.<br />
<br />
sudo testparm<br />
sudo /etc/init.d/samba restart<br />
<br />
* 1. Right click the folder and select 'Share folder'. Then change 'Do not share' to share with the network you would like.<br />
* 1. In Share Properties note the read box. If you want other network users to be able to edit to the folder un-tick this.<br />
<br />
'''OR'''<br />
<br />
* 2. Append the following lines at the end of file<br />
<br />
[public]<br />
comment = Public Folder<br />
path = /home/public<br />
public = yes<br />
writable = yes<br />
create mask = 0777<br />
directory mask = 0777<br />
force user = nobody <br />
force group = nogroup<br />
<br />
* 2. Or if you want other network users to be able to edit to the folder<br />
<br />
writable = yes<br />
<br />
* 2. Save the edited file<br />
* 2. Read [[|#How to add/edit/delete network users]]<br />
<br />
sudo testparm<br />
sudo /etc/init.d/samba restart<br />
<br />
<br><br />
<br />
==== How to share public folders with read only or read/write permissions (Authentication=No) ====<br />
<br />
* Read [[|#General Notes]]<br />
* Read [[|#How to install Samba Server for files/folders sharing service]]<br />
<br />
sudo mkdir /home/public<br />
sudo chmod 777 /home/public/<br />
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup<br />
gksudo gedit /etc/samba/smb.conf<br />
<br />
* Find this line<br />
<br />
...<br />
; security = user<br />
...<br />
<br />
* Replace with the following line<br />
<br />
security = share<br />
<br />
Then follow either 1. or 2.<br />
<br />
* 1. Save the edited file.<br />
<br />
sudo testparm<br />
sudo /etc/init.d/samba restart<br />
<br />
* 1. Right click the folder and select 'Share folder'. Then change 'Do not share' to share with the network you would like.<br />
* 1. In Share Properties note the read box. If you want other network users to be able to edit to the folder un-tick this.<br />
<br />
'''OR'''<br />
<br />
* 2. Append the following lines at the end of /etc/samba/smb.conf (for a read-only folder)<br />
<br />
[public]<br />
comment = Public Folder<br />
path = /home/public<br />
public = yes<br />
writable = no<br />
create mask = 0777<br />
directory mask = 0777<br />
force user = nobody<br />
force group = nogroup<br />
<br />
* 2. Or if you want other network users to be able to edit to the folder<br />
<br />
writable = yes<br />
<br />
<br><br />
<br />
* 2. Save the edited file<br />
<br />
sudo testparm<br />
sudo /etc/init.d/samba restart<br />
<br />
==== How to print on remote Ubuntu machine via samba ====<br />
<br />
* Read [[|#Print Server (cupsd)]]<br />
* Make sure your Ubuntu printers are configured properly.<br />
<br />
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.backup<br />
gedit /etc/samba/smb.conf<br />
<br />
:''Find the following lines''<br />
<br />
...<br />
# printing = cups<br />
# printcap name = cups<br />
...<br />
<br />
:''and uncomment them.''<br />
<br />
printing = cups<br />
printcap name = cups<br />
<br />
:''Restart cups server''<br />
<br />
sudo /etc/init.d/cupsys restart<br />
<br />
:''Now printers working on your Ubuntu machine should be acessible via samba.''<br />
<br />
<br><br />
<br />
=== iTunes-compatible Media server ===<br />
<br />
If you want iTunes-compatible Media server in Ubuntu try this<br />
<br />
* [http://www.ubuntugeek.com/howto-setup-itunes-compatible-media-server-in-ubuntu.html iTunes-compatible Media server Step By Step Guide]<br />
<br />
=== GLPI - IT and asset Managemet Software ===<br />
<br />
If you want IT and asset Managemet Software in Ubuntu try this<br />
<br />
* [http://www.ubuntugeek.com/glpi-it-and-asset-managemet-software.html IT and asset Managemet Software Setup Guide]<br />
<br />
=== PostgreSQL ===<br />
<br />
Postgresql is a well supported and open source database server. There is a long debate regarding whether MySQL is better or PostgreSQL. Actually, there are similar debates like it: Gnome vs KDE, Perl vs Python, PHP vs JSP, Java vs .Net (or Mono). But from installation point of view, it has been seen that PostgreSQL is lighter and requires less dependency than MySQL.<br />
<br />
==== Installing PostgreSQL ====<br />
<br />
To Install PostgreSQL (both client and server):<br />
<br />
sudo apt-get install postgresql-8.2<br />
<br />
To install PostgreSQL documentation:<br />
<br />
sudo apt-get install postgresql-doc-8.2<br />
<br />
To install JDBC3 driver for PostgreSQL:<br />
<br />
sudo apt-get install libpg-java<br />
<br />
To enable php support for PostgreSQL:<br />
<br />
sudo apt-get install php5-pgsql<br />
<br />
To do administrative works graphically:<br />
<br />
sudo apt-get install pgadmin3<br />
<br />
To do web-based administrative works:<br />
<br />
sudo apt-get install phppgadmin<br />
<br />
==== Configuring PostgreSQL ====<br />
<br />
To use postgresql, create a database instance and a user/role:<br />
<br />
sudo -u postgres createdb $USER<br />
sudo -u postgres createuser $USER<br />
<br />
Making both database instance and user/role as your login ID lets you to start PostgreSQL client very easily:<br />
<br />
psql<br />
<br />
To login as the administrator:<br />
<br />
sudo -u postgres psql<br />
<br />
To be able to login from remote machine or from PHP or through JDBC driver, you have to set your password from PostgreSQL client (psql):<br />
<br />
ALTER USER user PASSWORD 'pass';<br />
<br />
replace user and pass by your user name and password respectively. To test whether remote login works or not, run:<br />
<br />
psql -h host -p 5432 -d database -U user<br />
<br />
Visit http://www.php.net/manual/en/ref.pgsql.php to see how php works with PostgreSQL.<br />
<br />
==== Using pgadmin3 ====<br />
<br />
To configure PostgreSQL using pgadmin3:<br />
<br />
* Open psql client as administrator postgres (see above Configure PostgreSQL)<br />
* Change the password for the administrator postgres (see above)<br />
* Open Applications -&gt; System Tools -&gt; pgAdmin III from main menu.<br />
* Open File -&gt; Add Server...<br />
* Set Address to localhost or 127.0.0.1 (or something you have set)<br />
* Give a Description by which this connection will be identified.<br />
* Accept default port (5432), SSL (_blank_), Maintenance DB (postgres) and Username (postgres)<br />
* set the Password that you have set earlier. Click OK.<br />
<br />
==== Using phppgadmin ====<br />
<br />
To configure PostgreSQL using phppgadmin run:<br />
<br />
sudo ln -s /usr/share/phppgadmin /var/www/phpPgAdmin<br />
<br />
Set a password for administrator: postgres (see [[|#Configuring_PostgreSQL]]).<br />
<br />
Open /etc/phppgadmin/config.inc.php and change:<br />
<br />
$conf['extra_login_security'] = false;<br />
<br />
It will enable administrative login. Finally visit http://localhost/phpPgAdmin/ to login.<br />
<br />
==== Using PostgreSQL with OpenOffice ====<br />
<br />
* Open Applications -&gt; Office -&gt; OpenOffice.org Database.<br />
* Select 'Connect to an existing database'. From the list select JDBC and click Next.<br />
* Make Datasource URL to:<br />
<br />
jdbc:postgresql://localhost/database<br />
<br />
Replace localhost by your hostname, database by the database instance you have created.<br />
<br />
* Set JDBC driver class to:<br />
<br />
org.postgresql.Driver<br />
<br />
* Click 'Test class' to make sure JDBC driver class connects Datasource URL properly. Click Next.<br />
* Type your User name and select 'Password required' option.<br />
* Click Test connection. A popup dialog will appear. Enter your password and click OK.<br />
* If everything works properly, then a confirmation dialog will appear.<br />
* Click Next. Some optional settings will appear. Click Finish to complete.<br />
<br />
==== Using PostgreSQL JDBC driver ====<br />
<br />
The following Java code is a simple program to illustrate how JDBC can be used with Postgresql:<br />
<br />
// pgVersion.java<br />
<br />
import java.sql.*;<br />
<br />
class pgVersion {<br />
public static void main(String arg[]) throws Exception {<br />
if(arg.length!=4) {<br />
System.out.println("usage: java pgVersion host database user password");<br />
return;<br />
}<br />
// Class.forName("org.postgresql.Driver");<br />
Driver driver=new org.postgresql.Driver();<br />
DriverManager.registerDriver(driver);<br />
String url="jdbc:postgresql://"+arg[0]+"/"+arg[1]+"?user="+arg[2]+"&amp;password="+arg[3];<br />
Connection conn=DriverManager.getConnection(url);<br />
Statement stat=conn.createStatement();<br />
ResultSet rs=stat.executeQuery("SELECT version()");<br />
rs.next();<br />
System.out.println(rs.getString("version"));<br />
rs.close();<br />
stat.close();<br />
conn.close();<br />
DriverManager.deregisterDriver(driver);<br />
}<br />
}<br />
<br />
You can run the former code in two ways:<br />
<br />
* Using CLASSPATH environment variable:<br />
<br />
export CLASSPATH=/usr/share/java/postgresql.jar:.<br />
javac pgVersion.java<br />
java pgVersion host database user password<br />
<br />
Here host, database, user and password should be substituted according to your configuration. To make $CLASSPATH permanent, you have to save the command in either /etc/bash.bashrc or ~/.bashrc.<br />
<br />
* Alternately, you can run as follows:<br />
<br />
javac -classpath /usr/share/java/postgresql.jar pgVersion.java<br />
java -classpath /usr/share/java/postgresql.jar:. pgVersion host database user password<br />
<br />
The output is as expected:<br />
<br />
PostgreSQL 8.2.5 on i486-pc-linux-gnu, compiled by GCC cc (GCC) 4.1.3 20070831 (prerelease) (Ubuntu 4.1.2-16ubuntu1)<br />
<br />
=== MySQL ===<br />
<br />
According to [http://en.wikipedia.org/wiki/Comparison_of_relational_database_management_systems this page] both MySQL and PostgreSQL are good alternatives of proprietary softwares like DB2, Sybase, Oracle, SQL Server etc.<br />
<br />
To install both the server and client:<br />
<br />
sudo apt-get install mysql-server-5.0<br />
<br />
[http://db4free.net/ db4free] is a great database server for tryout different things remotely. If you want to use this site, then you do not have to install MySQL server. Just install the [http://packages.ubuntu.com/gutsy/misc/mysql-client-5.0 client], [http://packages.ubuntu.com/gutsy/misc/mysql-doc-5.0 documentation] and [http://packages.ubuntu.com/gutsy/web/php5-mysql php] or [http://packages.ubuntu.com/gutsy/libs/libmysql-java jdbc] connectivity.<br />
<br />
=== IBM DB2 ===<br />
<br />
Visit [http://www.ibm.com/software/ here] for software available from IBM. According to [http://www.ibm.com/software/data/db2/linux/validate/ this page], DB2 can be installed on ubuntu.<br />
<br />
==== Download ====<br />
<br />
To download DB2 trial [http://www.ibm.com/software/data/db2/9/download.html visit here] and select: IBM DB2 9.5 Data Server trial. Then you have to sign in (create an account if not already created) in order to download. Choose either of the following:<br />
<br />
* DB2 9.5 data server trial for Linux(R) on AMD64 and Intel(R) EM64T systems (x64)<br />
* DB2 9.5 data server trial for Linux(R) on System z<br />
<br />
Then answer questions and click 'I confirm' at the bottom. Finally click 'I confirm' button to start downloading.<br />
<br />
Alternately, [http://www.ibm.com/software/data/db2/9/download.html visit here] and select: IBM DB2 9.5 Express-C. Then choose DB2 Express-C 9.5 for Linux and click continue. Then answer questions and click 'I confirm' at the bottom. Finally select either of the following:<br />
<br />
* DB2 Express-C for Linux operating system, 32-bit architecture<br />
* DB2 Express-C for Linux operating system, 64-bit architecture<br />
<br />
click 'I confirm' button to start downloading.<br />
<br />
==== Installing DB2 ====<br />
<br />
I choose 'DB2 Express-C for Linux operating system, 32-bit architecture' to demonstrate how to install. If you have chosen a different version, make necessary changes accordingly. Let's assume the downloaded file is on your home directory. Then do the following:<br />
<br />
tar -xf db2exc_950_LNX_x86.tar.gz<br />
cd ~/exp<br />
sudo apt-get install libaio1<br />
sudo ./db2setup<br />
<br />
Select 'Install a Product' from the left side of the generated window and click 'Install New'. Another window will be opened. Then following the instructions to complete the installation. You are encouraged to create new user and groups (dasusr1/dasadm1, db2inst1/db2iadm1, db2fenc1/db2fadm1) during installation.<br />
<br />
==== Uninstalling DB2 ====<br />
<br />
If you have installed with all default settings (as mentioned above) then just running the following commands would remove the db2 completely. In case you have changed something during installation, then make appropriate changes accordingly.<br />
<br />
cd /opt/ibm/db2/V9.5<br />
./instance/db2ilist<br />
sudo instance/db2idrop db2inst1<br />
sudo install/db2_deinstall -a<br />
cd &amp;&amp; sudo rm -r /opt/ibm/<br />
sudo userdel -r dasusr1<br />
sudo userdel -r db2fenc1<br />
sudo userdel -r db2inst1<br />
sudo groupdel dasadm1<br />
sudo groupdel db2fadm1<br />
sudo groupdel db2iadm1<br />
<br />
Before running those commands, please make sure:<br />
<br />
* Make sure, db2 is not running.<br />
* Identify DB2 installation directory (E.g /opt/ibm/db2/V9.5)<br />
* Identify DB2 instances (using db2ilist command, see the second command)<br />
* Drop each and every instances (using db2idrop command, third command)<br />
* If you have other IBM softwares in /opt/ibm then remove only /opt/ibm/db2 directory.<br />
* Delete user and group accounts that you have created for db2.<br />
<br />
=== Oracle database ===<br />
<br />
* Download [http://www.oracle.com/technology/software/products/database/index.html Oracle database] XE from [http://www.oracle.com/technology/software/products/database/xe/htdocs/102xelinsoft.html here]. Then follow the [http://www.oracle.com/technology/software/products/database/xe/files/install.102/b25144/toc.htm instructions] to complete the installation.<br />
* Alternately, visit [http://www.oracle.com/technology/tech/linux/install/index.html this page] to see some installation guides provided by some users. [http://www.davidpashley.com/articles/oracle-install.html This page] is particularly seems very useful. (--[[User:Tamal|Tamal]] 07:51, 14 November 2007 (EET))<br />
<br />
A problem might occur if your swap space is less than 1 GB. In that case you have to do the following:<br />
<br />
* Turn off the swap space. (run 'man swapoff' for help)<br />
* Resize the swap partition. (run 'man fdisk' and 'man cfdisk' for help)<br />
* Restart the system. (not mandatory, but recommended)<br />
* Edit the /etc/fstab file to update the UUID of the swap partition. ([[|#How_to_find_the_UUID_of_a_device]])<br />
* Turn on the swap space. (run 'man swapon' for help)<br />
<br />
=== SSH ===<br />
<br />
==== How to install SSH Server for remote administration service ====<br />
<br />
* Read [[|#General Notes]]<br />
* Read [[|#How to add extra repositories]]<br />
<br />
sudo apt-get install ssh<br />
<br />
==== How to SSH into remote Ubuntu host ====<br />
<br />
* Read [[|#General Notes]]<br />
<br />
The Ubuntu host must be running the SSH Server. Read [[|#How to install SSH Server for remote administration service]].<br />
<br />
In this example:<br />
<br />
Remote Ubuntu machine: 192.168.0.2 username is a valid user on the remote host<br />
<br />
ssh username@192.168.0.2<br />
<br />
You can tunnel to a URL as well:<br />
<br />
ssh username@foobar.dyndns.org<br />
<br />
If your LAN uses a dynamic IP to connect to the Internet, you can use a Dynamic IP service (such as DynDNS) to assign a static URL to your LAN (foobar.dyndns.org, for example). An SSH request over the Internet to your URL (e.g. foobar.dyndns.org) would then be routed by the DynDNS service to your modem/router. Your router must then be set to forward the port used for the SSH tunnel to your host machine on the LAN. (SSH tunnels generally occur by default over port 22, but it can be changed (see below)).<br />
<br />
For some humor: Read Etymology of foobar. You can explicitly select the port number (instead of port 22) for the SSH tunnel:<br />
<br />
ssh username@foobar.dyndns.org:11022<br />
<br />
However, if you do this, the host SSH server must be listening on the same port (port 11022 in the example). The port to listen to can be set in the ssdh_config file of the OpenSSH server (provided in Ubuntu) on your host. Also, your router must be configured to forward port 11022 to your OpenSSH host.<br />
<br />
==== How to change SSH Server Port Number ====<br />
<br />
* Read [[|#General Notes]]<br />
* Read [[|#How to install SSH Server for remote administration service]]<br />
<br />
Open /etc/ssh/sshd_config for editing<br />
<br />
gksu gedit /etc/ssh/sshd_config<br />
<br />
Look for the line<br />
<br />
# What ports, IPs and protocols we listen for<br />
Port 22<br />
<br />
Change 22 to the value you want, then save and restart the SSH server<br />
<br />
sudo /etc/init.d/ssh restart<br />
<br />
==== Using SSH to Port Forward ====<br />
<br />
* Read [[|#General Notes]]<br />
* The Ubuntu host must be running the SSH Server. Read [[|#How to install SSH Server for remote administration service]].<br />
* The format of the client command to create an SSH tunnel to an OpenSSH host listening on the default port 22 is:<br />
<br />
ssh -L &lt;local port&gt;:&lt;remote computer&gt;:&lt;remote port&gt; &lt;user&gt;@&lt;remote ip&gt;<br />
<br />
An example is:<br />
<br />
ssh -L 6669:94.92.10.15:6667 foowho<br />
<br />
In this example, local port 6669 on the local client computer is tunneled by encrypted SSH over the default port 22 to the router at 94.92.10.15. The router must be set up to forward port 22 to whatever the internal LAN IP (such as 192.168.0.56) of the SSH host is. The host is running OpenSSH (ssdh service) and is set to listen to port 22. It then routes the incoming data to the host port 6667, where presumably some other program is waiting for data. foowho has an account on the host running the OpenSSH server.<br />
<br />
SSH tunnels can also be established using URLs and even alternate ports. An example is:<br />
<br />
ssh -L 5900:foobar.dyndns.org:5900 foowho -p 11022<br />
<br />
In this example, local port 5900 on the client is forwarded through an SSH tunnel on port 11022 to foobar.dyndns.org. The DNS service translates foobar.dyndns.org into the appropriate WAN (Internet) IP address, where the router is listening. The router is set up to forward port 11022 to the LAN machine hosting the OpenSSH server, which is listening on port 11022. It then sends the data to whatever program is running on port 5900 on the host.<br />
<br />
* You can forward a local port to a different port on the remote host.<br />
<br />
:Example: Make port 80 (web server/browser) on the remote host at 10.0.2.10 available locally as port 81<br />
<br />
ssh -L 81:10.0.2.10:80 user@office.net<br />
<br />
* You can create secure SSH tunnels to multiple hosts using multiple ports.<br />
<br />
ssh -L 81:10.0.2.10:80 -L 82:10.0.2.20:80 -L 83:10.0.2.30:80 user@office.net<br />
<br />
Now, local port 81 locally forwards to port 80 on the host at 10.0.2.10, local port 82 forwards to port 80 on the host at 10.0.2.20 and local port 83 forwards to port 80 on the host at 10.0.2.30. In this example, user has an account on all three host machines at 10.0.2.10, 10.0.2.20, and 10.0.2.30.<br />
<br />
* Once port forwarding is set up by ssh, an application is directed to the SSH tunnel for port usage by using the loopback as the destination.<br />
<br />
:Example 1:<br />
<br />
ssh -L 81:10.0.2.10:80 user@office.net<br />
<br />
<nowiki>http://localhost:81</nowiki> or <nowiki>http://127.0.0.1/:81</nowiki> <br />
<br />
will direct a web browser to use port 81 locally, which is being redirected by SSH to port 80 on the remote host at 10.0.2.10.<br />
<br />
:Example 2:<br />
<br />
ssh -L 5900:foobar.dyndns.org:5900 foowho<br />
vncviewer 127.0.0.1 or vncviewer localhost<br />
<br />
will direct vncviewer (which uses port 5900 by default) to direct its traffic through the ssh tunnel to the host at foobar.dyndns.org, where, presumably, a VNC server is listening on port 5900.<br />
<br />
==== SSH Filesystem ====<br />
<br />
install package: sshfs, see http://fuse.sourceforge.net/sshfs.html<br />
<br />
sudo aptitude update<br />
sudo aptitude install sshfs<br />
<br />
Optionally, add user to group fuse to manage mount-point permissions.<br />
<br />
sudo adduser &lt;local user&gt; fuse<br />
<br />
(propogate new group membership: restart or open new shell, e.g., Ctrl+Alt+F1)<br />
<br />
Create writable mount point, e.g, &lt;mount point&gt; = /media/remote<br />
<br />
sudo mkdir &lt;mount point&gt;<br />
sudo chgrp fuse &lt;mount point&gt;<br />
sudo chmod 775 &lt;mount point&gt;<br />
<br />
Mount command<br />
<br />
sshfs [&lt;user&gt;@]&lt;host&gt;:[&lt;path&gt;] &lt;mount point&gt;<br />
<br />
Unmount command<br />
<br />
fusermount -u &lt;mount point&gt;<br />
<br />
=== Ubuntu 7.10 LAMP Server ===<br />
<br />
If you are looking for simple LAMP Server setup in 15min including webmin installation this is for you<br />
<br />
* [http://www.ubuntugeek.com/ubuntu-710-gutsy-gibbon-lamp-server-setup.html Ubuntu 7.10 LAMP Server Step By Step Guide]<br />
<br />
(This requires the server version of Gutsy Gibbon, not the standard desktop edition)<br />
<br />
=== How to Install Webmin ===<br />
<br />
Webmin is an browser-based administration tool for Apache, PHP, MySQL, and Much More.<br />
<br />
wget http://prdownloads.sourceforge.net/webadmin/webmin_1.370_all.deb<br />
<br />
<br />
sudo apt-get install libnet-ssleay-perl libauthen-pam-perl libio-pty-perl libmd5-perl<br />
<br />
sudo passwd root (Enter new root password, retype)<br />
<br />
sudo dpkg -i webmin_1.370_all.deb<br />
<br />
To use webmin, type the following in a browser: (Make sure to use HTTPS not HTTP)<br />
<br />
* [https://localhost:10000]<br />
<br />
=== Sun Java Application Server (Java EE) ===<br />
<br />
[http://docs.sun.com/app/docs/coll/1343.4 Official documentation]<br />
<br />
==== Installing Application Server ====<br />
<br />
Sun Java Application Server is the heart of Java EE. [http://java.sun.com/javaee/downloads/index.jsp Download] either of the following versions:<br />
<br />
* Java EE 5 SDK Update 3<br />
* Java Application Platform SDK Update 3 Beta<br />
* Sun Java System Application Server 9.1 (under individual download section)<br />
<br />
Alternately you can download GlassFish application server (community maintained):<br />
<br />
* With [http://dlc.sun.com.edgesuite.net/netbeans/6.0/beta2/ Netbeans] Web &amp; Java EE pack<br />
* Download [https://glassfish.dev.java.net/public/downloadsindex.html GlassFish] directly<br />
<br />
Make the download file executable and run as root by:<br />
<br />
chmod +x Desktop/filename<br />
sudo ./Desktop/filename<br />
<br />
Lets assume $JAVAEE_HOME indicates the installation directory. The default installation directory for Sun Java System Application Server 9.1 is /opt/SUNWappserver/. Now, either add $JAVAEE_HOME/bin in your PATH or make a link of asadmin and asant in your path by<br />
<br />
sudo ln -s $JAVAEE_HOME/bin/asadmin /usr/local/bin/asadmin<br />
sudo ln -s $JAVAEE_HOME/bin/asant /usr/local/bin/ant<br />
<br />
The command 'asadmin' is the main and most important command for Java Application server. [http://ant.apache.org/ Ant] is also useful to automate building process.<br />
<br />
==== Application Server configuration ====<br />
<br />
When Java EE installs, a domain 'domain1' is automatically installed with it in $JAVAEE_HOME/domains/ which is the default directory for all domains. Generally this directory ($JAVAEE_HOME/domains/) is not writable. So, as a unprivileged user you can create your own domain in your home directory.<br />
<br />
===== Application Server domain settings =====<br />
<br />
To create, start, stop and delete a domain in your home directory:<br />
<br />
asadmin create-domain --adminport 4848 --domaindir ~ mydomain<br />
asadmin start-domain --domaindir ~ mydomain<br />
asadmin stop-domain --domaindir ~ mydomain<br />
asadmin delete-domain --domaindir ~ mydomain<br />
<br />
Alternately you can make $JAVAEE_HOME/domains/ writable to do domain-related works from default domain directory. E.g.<br />
<br />
sudo chmod a+w $JAVAEE_HOME/domains/<br />
asadmin create-domain --adminport 4848 mydomain<br />
asadmin start-domain mydomain<br />
asadmin stop-domain mydomain<br />
asadmin delete-domain mydomain<br />
<br />
If you have only one domain in the default domains directory ($JAVAEE_HOME/domains/) then you do not have to give the domain name to start or stop a domain. E.g.<br />
<br />
asadmin start-domain<br />
asadmin stop-domain<br />
<br />
You can save the login information to ~/.asadminpass file in order to administer an application server domain from command line. If you do not login, you have to provide username and password for each administrative work (analogous to su and sudo commands). To login:<br />
<br />
asadmin login --host localhost --port 4848<br />
<br />
Deploying and un-deploying a web or ejb module is very easy. Just do the following:<br />
<br />
asadmin deploy test1.war<br />
asadmin deploy test2.ear<br />
<br />
asadmin undeploy test1.war<br />
asadmin undeploy test2.ear<br />
<br />
===== Application Server data Source settings =====<br />
<br />
DataSource configuration can be done easily from web based administration console. Here command line method is given:<br />
<br />
sudo ln -s /usr/share/java/postgresql.jar /opt/SUNWappserver/domains/domain1/lib/postgresql.jar<br />
asadmin create-jdbc-connection-pool --datasourceclassname org.postgresql.ds.PGSimpleDataSource --property<br />
serverName=localhost:portNumber=5432:databaseName=database:user=user:password=pass jdbc/postgresql<br />
asadmin create-jdbc-resource --connectionpoolid jdbc/postgresql database<br />
<br />
First, we have made this driver accessible from the domain. In the second command, we have created a data source connection pool which has been assigned a JNDI name in the third command. Here all the colon (:) separated values are database related. Change them according to your database settings. Now you can create a Connection by, e.g.:<br />
<br />
Context ic = new InitialContext();<br />
DataSource ds = (DataSource)ic.lookup("database");<br />
Connection conn = ds.getConnection();<br />
<br />
To see available data sources and their corresponding JNDI names:<br />
<br />
asadmin list-jdbc-connection-pools<br />
asadmin list-jdbc-resources<br />
<br />
To delete both connection pool, you have to delete JNDI name first. E.g.<br />
<br />
asadmin delete-jdbc-resource database<br />
asadmin delete-jdbc-connection-pool jdbc/postgresql<br />
<br />
=== Tomcat 6 ===<br />
<br />
==== Installing tomcat ====<br />
<br />
Tomcat can be found in [http://packages.ubuntu.com/gutsy/web/tomcat5.5 universe] repository but it has some drawbacks (e.g. lots of dependencies, unavailability of version 6.x, do not use Sun Java). Thus manual installation is recommended.<br />
<br />
Download latest stable version of tomcat from [http://tomcat.apache.org/download-60.cgi here] and extract it in /usr/local as root. Add "JAVA_HOME=/usr/lib/jvm/java-6-sun/" to /usr/local/apache-tomcat-6.x.x/bin/setclasspath.sh after the first occurrence of "CLASSPATH=". Make sure that sun-java6-jre is installed. Make a soft-link of /usr/local/apache-tomcat-6.x.x/bin/catalina.sh as /usr/local/bin/tomcat to access easily. Optionally you can remove .exe and .bat files and edit .sh files to remove cygwin, os400 and darwin related codes.<br />
<br />
Although not necessary, but the [http://packages.ubuntu.com/gutsy/devel/ant ant] program would be useful here. You can also install its [http://packages.ubuntu.com/gutsy/devel/ant-doc documentation].<br />
<br />
==== OpenEJB Server ====<br />
<br />
[http://openejb.apache.org/ OpenEJB] is an open source, modular, configurable, and extendable EJB Container System and EJB Server. [http://openejb.apache.org/tomcat.html Visit here] to see the installation instructions for OpenEJB under Tomcat 6.<br />
<br />
==== Using tomcat with NetBeans ====<br />
<br />
You have to make the configuration files readable because Netbeans generally do not run with administrative privilege. To use Tomcat with with NetBeans, you have to set a user with manager role. A typcal $CATALINA_HOME/conf/tomcat-users.xml file would look like:<br />
<br />
&lt;?xml version='1.0' encoding='utf-8'?&gt;<br />
&lt;tomcat-users&gt;<br />
&lt;role rolename="admin"/&gt;<br />
&lt;role rolename="manager"/&gt;<br />
&lt;role rolename="tomcat"/&gt;<br />
&lt;user username="admin" password="admin" roles="admin"/&gt;<br />
&lt;user username="manager" password="manager" roles="manager"/&gt;<br />
&lt;user username="tomcat" password="tomcat" roles="tomcat"/&gt;<br />
&lt;/tomcat-users&gt;<br />
<br />
Edit this file after you have started tomcat once. Any data placed in the &lt;tomcat-users&gt; element is erased during the first start of tomcat. You can also use tomcat that comes with NetBeans web &amp; Java EE pack.<br />
<br />
==== Configure Database Connection Pool (DBCP) of Tomcat ====<br />
<br />
A database connection pool creates and manages a pool of connections to a database. Recycling and reusing already existing connections to a dB is more efficient than opening a new connection. It is still possible and valid to open and close connection for each servlet/jsp (visit [[|#Using_JDBC_driver]] for details).<br />
<br />
Before proceeding, let's assume that $CATALINA_HOME denotes tomcat installation directory (typically: /usr/local/apache-tomcat-6.0.14).<br />
<br />
echo $CATALINA_HOME<br />
sudo ln -s /usr/share/java/postgresql.jar $CATALINA_HOME/lib/postgresql.jar<br />
sudo mkdir $CATALINA_HOME/webapps/dataSourceTest<br />
sudo chown $USER:$USER $CATALINA_HOME/webapps/dataSourceTest<br />
cd $CATALINA_HOME/webapps/dataSourceTest<br />
mkdir META-INF WEB-INF WEB-INF/classes<br />
<br />
Create WEB-INF/web.xml and set its content:<br />
<br />
&lt;?xml version="1.0" encoding="UTF-8"?&gt;<br />
<br />
&lt;web-app xmlns="http://java.sun.com/xml/ns/javaee"<br />
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"<br />
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"<br />
version="2.5"&gt;<br />
<br />
&lt;resource-ref&gt;<br />
&lt;description&gt;PostgreSQL connectivity&lt;/description&gt;<br />
&lt;res-ref-name&gt;jdbc/postgresql&lt;/res-ref-name&gt;<br />
&lt;res-type&gt;javax.sql.DataSource&lt;/res-type&gt;<br />
&lt;res-auth&gt;Container&lt;/res-auth&gt;<br />
&lt;/resource-ref&gt;<br />
<br />
&lt;description&gt;<br />
Page for testing<br />
&lt;/description&gt;<br />
&lt;display-name&gt;Testing page&lt;/display-name&gt;<br />
&lt;servlet&gt;<br />
&lt;servlet-name&gt;pgsqlVersion&lt;/servlet-name&gt;<br />
&lt;servlet-class&gt;pgsqlVersion&lt;/servlet-class&gt;<br />
&lt;/servlet&gt;<br />
&lt;servlet-mapping&gt;<br />
&lt;servlet-name&gt;pgsqlVersion&lt;/servlet-name&gt;<br />
&lt;url-pattern&gt;/pgsqlVersion&lt;/url-pattern&gt;<br />
&lt;/servlet-mapping&gt;<br />
&lt;/web-app&gt;<br />
<br />
Create META-INF/context.xml and set its content (replace hostname, database instance name, user id and password):<br />
<br />
&lt;?xml version="1.0" encoding="UTF-8"?&gt;<br />
&lt;Context&gt;<br />
&lt;Resource<br />
name="jdbc/postgresql"<br />
auth="Container"<br />
type="javax.sql.DataSource"<br />
driverClassName="org.postgresql.Driver"<br />
url="jdbc:postgresql://host/database"<br />
username="user"<br />
password="password"<br />
maxActive="20"<br />
maxIdle="10"<br />
maxWait="-1"/&gt;<br />
&lt;WatchedResource&gt;WEB-INF/web.xml&lt;/WatchedResource&gt;<br />
&lt;WatchedResource&gt;META-INF/context.xml&lt;/WatchedResource&gt;<br />
&lt;/Context&gt;<br />
<br />
Create pgsqlVersion.java and set its content:<br />
<br />
import java.io.*;<br />
import java.sql.*;<br />
import javax.sql.*;<br />
import javax.naming.*;<br />
import javax.servlet.*;<br />
public class pgsqlVersion extends GenericServlet {<br />
public void service(ServletRequest request, ServletResponse response) {<br />
try {<br />
response.setContentType("text/html");<br />
PrintWriter pw=response.getWriter();<br />
Context initContext = new InitialContext();<br />
Context envContext = (Context)initContext.lookup("java:/comp/env");<br />
DataSource ds = (DataSource)envContext.lookup("jdbc/postgresql");<br />
Connection conn = ds.getConnection();<br />
Statement stat=conn.createStatement();<br />
ResultSet rs=stat.executeQuery("SELECT version()");<br />
rs.next();<br />
pw.println(rs.getString("version"));<br />
rs.close();<br />
stat.close();<br />
} catch(Exception e) { }<br />
}<br />
}<br />
<br />
Create index.html and set its content:<br />
<br />
<title>PostgreSQL datasource</title>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"<br />
"http://www.w3.org/TR/html4/frameset.dtd"&gt;<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Then compile the servlet:<br />
<br />
export CLASSPATH=$CATALINA_HOME/lib/postgresql.jar:$CATALINA_HOME/lib/servlet-api.jar:.<br />
javac -d WEB-INF/classes/ pgsqlVersion.java<br />
<br />
Finally, visit http: //host:8080/dataSourceTest. Thats all!<br />
<br />
<br><br />
<br />
=== Nagios Network Monitoring Server ===<br />
<br />
* [http://www.ubuntugeek.com/nagios-network-monitoring-system-setup-in-ubuntu.html Nagios Monitoring Server Setup Guide]<br />
<br />
It should be noted that this howto instructs you to build nagios from its sources, while it exists on the official repositories.<br />
<br />
=== NFS Server ===<br />
<br />
* Read [http://nfs.sourceforge.net Linux NFS FAQ]<br />
* Run this command for each computer to determine the IP Addresses for each one:<br />
<br />
ifconfig<br />
<br />
==== Installing NFS Server ====<br />
<br />
sudo apt-get install nfs-kernel-server nfs-common portmap<br />
<br />
Reconfigure Portmap to not bind to loopback interface:<br />
<br />
sudo dpkg-reconfigure portmap <br />
sudo /etc/init.d/portmap restart<br />
<br />
Define which folders to share (export):<br />
<br />
sudo nano /etc/exports<br />
<br />
Add share (export) definitions:<br />
<br />
This will export path to all IP addresses between 192.168.1.1 and 192.168.1.254 with Read/Write access:<br />
<br />
/path/to/shared/files 192.168.1.0/24(rw,no_root_squash,async)<br />
<br />
This will export path to all IP addresses between 192.168.1.1 and 192.168.1.254 with Read Only access:<br />
<br />
/path/to/shared/files 192.168.1.0/24(ro,async)<br />
<br />
''192.168.1.0/24 above would be the clients IP Address''<br />
<br />
When finished, save changes and restart the NFS Server:<br />
<br />
sudo /etc/init.d/nfs-kernel-server restart<br />
<br />
Export your new configuration:<br />
<br />
sudo exportfs -a<br />
<br />
==== Installing NFS Client ====<br />
<br />
sudo apt-get install portmap nfs-common<br />
<br />
==== Mounting Manually ====<br />
<br />
cd ~<br />
mkdir temp<br />
sudo mount 192.168.1.1:/path/to/shared/files temp<br />
<br />
''192.168.1.1 above would be the Servers IP Address''<br />
<br />
You may need to restart NFS services:<br />
<br />
sudo /etc/init.d/portmap restart<br />
sudo /etc/init.d/nfs-common restart<br />
<br />
==== Mounting Automatically ====<br />
<br />
Create mountpoint:<br />
<br />
sudo mkdir /mnt/files<br />
<br />
Edit configuration:<br />
<br />
gksudo gedit /etc/fstab<br />
<br />
Add something similar to below:<br />
<br />
192.168.1.1:/path/to/shared/files /mnt/files nfs rsize=8192,wsize=8192,timeo=14,intr 0 0<br />
<br />
Test new configuration:<br />
<br />
sudo mount -a<br />
<br />
Reboot to test automatic mounting.<br />
<br />
== '''''硬件''''' ==<br />
<br />
=== NVidia 驱动 ===<br />
<br />
首先,弄清楚你清楚你是什么内核运行以下命令查看:<br />
<br />
user@localhost:~$ uname -a<br />
Linux localhost 2.6.22-14-generic #1 SMP Sun Oct 14 23:05:12 GMT 2007 i686 GNU/Linux<br />
<br />
I have the '''generic''' kernel, so I need to install the following:<br />
<br />
sudo apt-get install linux-restricted-modules-generic<br />
<br />
<br> After that's done, go to '''''System &gt; Administration &gt; Restricted Drivers Manager''''' and turn on the driver.<br />
<br />
Some users may receive an error screen: "The software source for the packsge nvidia-glx-new is not enabled." This can be overcome by going to '''''System &gt; Administration &gt; Software Sources''''' and ticking all the boxes under the heading "Downloadable from the Internet", click close and then allow Ubuntu to reload the package lists. The NVidia drivers can then be enabled using the method above.<br />
<br />
You can optionally prevent showing NVidia logo on startup by:<br />
<br />
sudo nvidia-xconfig --no-logo<br />
<br />
=== Wacom tablet ===<br />
<br />
By default, options for the Wacom tablet are commented out. Type the following command to edit the '''xorg.conf''' file.<br />
<br />
gksu gedit /etc/X11/xorg.conf<br />
<br />
Uncomment the following by removing the "#" or just replace the tree lines:<br />
<br />
InputDevice "stylus" "SendCoreEvents"<br />
InputDevice "cursor" "SendCoreEvents"<br />
InputDevice "eraser" "SendCoreEvents"<br />
<br />
Save and restart your X-session by typing '''CTRL-ALT-BACKSPACE'''.<br />
<br />
=== Microsoft Intellimouse ===<br />
<br />
To get the scroll wheel and side buttons to be recognized, change your '''/etc/X11/xorg.conf''' mouse section to look like the following:<br />
<br />
Section "InputDevice"<br />
<br />
Identifier "Configured Mouse"<br />
Driver "mouse"<br />
Option "CorePointer"<br />
Option "Device" "/dev/input/mice" <br />
Option "Protocol" "ExplorerPS/2"<br />
Option "ZAxisMapping" "4 5"<br />
Option "Emulate3Buttons" "true"<br />
Option "Buttons" "7" <br />
Option "ButtonMapping" "1 2 3 6 7"<br />
<br />
EndSection<br />
<br />
If you want the wheel scroll button to scroll in firefox rather than the side buttons make "ZAxisMapping" "6 7" and "ButtonMapping" "1 2 3 4 5".<br />
<br />
At this point you can reboot your computer or restart X (Ctrl-Alt-BackSpace) to see if your forward/back buttons work in FireFox. You can test in a terminal with '''xev'''.<br />
<br />
=== Logitech Marble Mouse ===<br />
<br />
To get the scrollwheel effect on Logitech trackball (Marble Mouse), change your '''/etc/X11/xorg.conf''' mouse section to look like the following:<br />
<br />
Section "InputDevice"<br />
<br />
Identifier "MarbleMouse"<br />
Driver "mouse"<br />
Option "Protocol" "auto"<br />
Option "Device" "/dev/input/mice"<br />
Option "Buttons" "5"<br />
Option "ButtonMapping" "1 8 3 6 7"<br />
Option "EmulateWheel" "true"<br />
Option "EmulateWheelTimeout" "300" # msec<br />
Option "EmulateWheelButton" "6"<br />
Option "YAxisMapping" "4 5"<br />
<br />
EndSection<br />
<br />
Make sure that you have "MarbleMouse" under the server layout section as well.<br />
<br />
The big left and right buttons work normally (click, right click) and pressing them at the same time acts as a middle click. Holding the small left button will let you scroll up and down with the trackball. Clicking small left and right buttons will let you go back/forward in firefox.<br />
<br />
Thanks to imjustabill and Buffalo Soldier from the Ubuntu Forum. This works well on my computer.<br />
<br />
=== Logitech MX510 ===<br />
<br />
To have the extra buttons on your MX510 working with X, you'll have to install and configure the evdev-drivers. Open up a terminal and enter:<br />
<br />
sudo apt-get install [http://packages.ubuntu.com/gutsy/x11/xserver-xorg-input-evdev xserver-xorg-input-evdev] <br />
<br />
Now, all you have to do is configure Xorg to work with the new driver. Always remember to back up original files before altering:<br />
<br />
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.bak<br />
gksudo gedit /etc/X11/xorg.conf<br />
<br />
Locate and replace the '''InputDevice''' section which holds the information for your mouse, for example with the identifier '''Configured Mouse''', and replace it with:<br />
<br />
<nowiki>Section "InputDevice"<br />
Identifier "Configured Mouse"<br />
Driver "evdev"<br />
Option "CorePointer"<br />
Option "Name" "Logitech MX510"<br />
EndSection</nowiki> <br />
<br />
Logout or kill the X session using '''&lt;CTRL&gt;&lt;ALT&gt;&lt;BACKSPACE&gt;''' and login again. This should get all of your buttons and scrollwheel up and running, and even let you navigate the webbrowser history using the thumb buttons on the side.<br />
<br />
=== Disable CAPS LOCK ===<br />
<br />
I like to remap mine to '''&lt;Ctrl&gt;'''. Just run gnome-keyboard-properties with "System &gt; Preferences &gt; Keyboard", click on the "Layout Options" tab and then on the arrow next to "Ctrl key position". Selecting "Make CapsLock an additional Ctrl" does the trick.<br />
<br />
=== Enabling NUM LOCK at boot ===<br />
<br />
The Default behavior is for the NUM LOCK key to be off; if you are on a desktop and have a keypad though, entering digits from it can be much quicker and you may wish to have it enabled for entering login password, etc. Here's how:<br />
<br />
* From Synaptic, download and install "numlockx," or, from the command line;<br />
<br />
sudo apt-get install numlockx<br />
<br />
* To get it working, you now have to edit the appropriate startup file. First, make sure you have a working backup of the file:<br />
<br />
sudo cp /etc/gdm/Init/Default /etc/gdm/Init/Default.bak<br />
<br />
* Next, modify the gdm/Init file. In terminal:<br />
<br />
gksudo gedit /etc/gdm/Init/Default<br />
<br />
* Scroll down to the end of the file, and above the line that says "exit 0" add the following:<br />
<br />
if [ -x /usr/bin/numlockx ]; then<br />
/usr/bin/numlockx on <br />
fi<br />
<br />
* Next time you reboot, your NUM LOCK should default to "on."<br />
<br />
=== BSNL Broadband (dataone) speedup ===<br />
<br />
BSNL Broadband or Dataone provides high speed (2Mbps) Internet connectivity in India. The DNS servers provided by the BSNL (61.1.96.69 and 61.1.96.71) are very slow. Instead use Either of these:<br />
<br />
208.67.222.222 and 208.67.220.220 or<br />
<br />
4.2.2.1 and 4.2.2.2 or<br />
<br />
search Google for free DNS service providers.<br />
<br />
=== Citrix ICA client ===<br />
<br />
The Citrix client no longer suffers from any of the previous Ubuntu version's problems of UTF8 font issues, OpenMotif depends, or flaky/broken browser integration. It just works!<br />
<br />
* Download the latest en.linuxx86.tar.gz (currently v10.6) from [http://www.citrix.com/ Citrix.com] and save to your desktop<br />
* Right-click tar.gz file, and '''Extract Here'''<br />
* Open a Terminal<br />
<br />
Programs &gt; Accessories &gt; Terminal<br />
<br />
* Change to the directory where we extracted the client<br />
<br />
cd Desktop/en.linuxx86<br />
<br />
* Run the setup program<br />
<br />
./setupwfc<br />
<br />
* Select the defaults<br />
<br />
Now, web files from Metaframe Presentation Server, Citrix Access Gateway, etc webpages will work fine in Firefox.<br />
<br />
Someone may wish to add an entry on how to use the client to connect to a local Citrix farm.<br />
<br />
=== WINE ===<br />
<br />
Latest install instructions are always at: [http://www.winehq.org/site/download-deb WineHQ.org]<br />
<br />
Add repository key:<br />
<br />
wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | sudo apt-key add -<br />
<br />
Add repository to apt sources:<br />
<br />
sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/gutsy.list -O /etc/apt/sources.list.d/winehq.list<br />
<br />
Update apt sources:<br />
<br />
sudo apt-get update<br />
<br />
Install WINE:<br />
<br />
sudo apt-get install wine<br />
<br />
The program menu then appears in Programs under Wine, or double-click a Windows/DOS .exe file.<br />
<br />
==== Install Internet Explorer 6 for Wine ====<br />
<br />
IE 6 is not recommended for general usage, but some Windows packages (installed under Wine) require IE6 to complete installation. Furthermore, IE 6 is useful for checking code for developers who want to see how their web pages appear under IE 6.<br />
<br />
Install the required package cabextract from Synaptic Package Manager (or from apt-get install cabextract).<br />
<br />
Download and run the IEs4Linux installation script from the IEs4Linux website:<br />
<br />
wget http://www.tatanka.com.br/ies4linux/downloads/ies4linux-latest.tar.gz<br />
tar zxvf ies4linux-latest.tar.gz<br />
cd ies4linux-*<br />
./ies4linux<br />
<br />
<br> There is a beta version of the install at http://www.tatanka.com.br/ies4linux/downloads<br />
<br />
'''If you hit advance you have the option to install IE7. I have not gotten it to work as of yet, but IE6 installs with no issues on amd64 and i386'''<br />
<br />
Accept all the defaults for installation.<br />
<br />
==== Wine-Doors ====<br />
<br />
Wine-Doors http://www.wine-doors.org/ packages Windows applications for Wine. The current package list includes Internet Explorer 6.<br />
<br />
Debian/Ubuntu package (single click) available for [http://www.wine-doors.org/wordpress/?page_id=3 download].<br />
<br />
=== VMWare Server ===<br />
<br />
Until the Commercial Ubuntu repository includes the VMWare Server, you can use the following 'How To' to compile from source.<br />
<br />
* [http://www.ubuntugeek.com/how-to-install-vmware-server-in-ubuntu-710-gutsy-gibbon.html Step By Step Vmware server setup guide including Screenshots]<br />
<br />
==== VMWare Tools ====<br />
<br />
If you want to install VMware tools on ubuntu gutsy follow this steps<br />
<br />
* [http://www.ubuntugeek.com/howto-install-vmware-tools-in-ubuntu.html VMWare Tools Setup Guide Incliding Screenshots]<br />
<br />
To be able to use usb devices look at following bug comment at https://bugs.launchpad.net/ubuntu/+source/kvm/+bug/156085/comments/5<br />
<br />
=== How to install Broadcom wireless driver ===<br />
<br />
* This worked for me Kubuntu 7.10 32 bit but there are several ways<br />
<br />
* First, make sure you have the appropriate hardware<br />
<br />
lspci | grep Broadcom<br />
<br />
* Output should match this<br />
<br />
02:03.0 Network controller: Broadcom Corporation BCM4306 802.11b/g Wireless LAN Controller (rev 02)<br />
<br />
* Then you have to add a repository<br />
<br />
gksu gedit /etc/apt/sources.list<br />
<br />
* Add<br />
<br />
deb http://ubuntu.cafuego.net gutsy-cafuego bcm43xx<br />
<br />
* Then do this to add the signature<br />
<br />
wget http://ubuntu.cafuego.net/AF425CB5.gpg -O- | sudo apt-key add -<br />
<br />
* Back in the console<br />
<br />
sudo apt-get update<br />
sudo apt-get install bcm43xx-firmware <br />
<br />
* Just press yes, let it install, and reboot! Thanks to Pete and the 7.04 guide for this.<br />
<br />
== Requests ==<br />
If you have requests that you would like to be part of this guide, write them in [[Ubuntu_talk:Gutsy]].<br />
<br />
== ''''' Troubleshooting ''''' ==<br />
<br />
Place solutions to problems you have encountered with Gutsy here.<br />
They may be workarounds to bugs or other solutions to other problems.<br />
<br />
=== OpenOffice spell checking problem ===<br />
This problem is not a bug at all. Some Languages do not have spell checking support, while others do. For example, "English (India)" does not support spell checking but "English (USA)" does. Just go to<br />
Tools -> Options -> Language Settings -> Languages<br />
and select a Western language that has a check mark beside the language name. That's it.<br />
<br />
If you want to add languages that support spell checking, install the package myspell-<language> where <language> is the desired language, e.g.:<br />
sudo apt-get install myspell-fr <br />
to install the French dictionary.<br />
<br />
=== Alternative of SCIM to switch keyboard layout ===<br />
SCIM might not work properly under Gutsy Gibbon, although works fine under Feisty Fawn. Until the problem is fixed, you can use the alternative method to switch keyboard layout.<br />
<br />
*Go to System -> Administration -> Language Support and install the languages you want to use.<br />
*Open System -> Preferences -> Keyboard and add the layout that you want to use from Layouts tab.<br />
*Right click on the free space of upper panel and select "Add to panel...". Add Keyboard Indicator.<br />
<br />
===Fix Slow boot/faulty splash screen===<br />
<br />
if your system is booting slowly or your ubuntu splash screen is not being displayed it could be that Usplash has created the splash screen incorrectly<br />
<br />
1) edit /boot/grub/menu.lst<br />
sudo gedit /boot/grub/menu.lst<br />
<br />
At the very end of the kernel line after "splash" , add <br />
"vga=***" <br />
replace *** with the code from the table below that corresponds with the resolution <br />
and colour setting you are using<br />
<br />
{| border="1" cellspacing="0" cellpadding="5" align="center"<br />
! Screen<br />
! 640x480<br />
! 800x600<br />
! 1024x768<br />
! 1280x1024<br />
! 1600x1200 <br />
|- <br />
| Colors<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
| 256<br />
| 769<br />
| 771<br />
| 773<br />
| 775<br />
| 796<br />
|-<br />
| 32,768<br />
| 784<br />
| 787<br />
| 790<br />
| 793<br />
| 797<br />
|-<br />
| 65,536<br />
| 785<br />
| 788<br />
| 791<br />
| 794<br />
| 798<br />
|-<br />
| 16.8M<br />
| 786<br />
| 789<br />
| 792<br />
| 795<br />
| 799<br />
|}<br />
<br />
the line should look something like this<br />
<br />
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=20fd9912-6383-4860-9cd8-88a11909d715 ro quiet splash vga=791<br />
<br />
Save that file, close it, <br />
<br />
2) edit /etc/usplash.conf<br />
sudo gedit /etc/usplash.conf<br />
<br />
change the resolution to the one you set in the previous step save and close<br />
<br />
3) rebuild the bootsplash screen<br />
<br />
sudo update-initramfs -u -k `uname -r`<br />
<br />
This rebuilds the image that Grub uses to start the system.<br />
<br />
4) reboot<br />
<br />
=== Logout problem === <br />
Some users have have faced a hangout problem when whey press the quit button. Currently the following symptom and work-around have been noticed: <br />
* Press Ctrl-Alt-Backspace to kill X-Window and show the GDM screen. <br />
* gnome-power-manager service should be on. You can enable it from System->Preferences->Sessions.<br />
* Wait for 1 minute. The quit window will appear. (the logout problem will vanish for some times).<br />
* For some users, removing .config/autostart/ directory worked.<br />
== Tips And Tricks ==<br />
It is pointless to add the tricks that is already added in [[Ubuntu:Feisty#Tips_And_Tricks]]. So, only new tricks are added.<br />
<br />
=== What to do when Ubuntu freezes ===<br />
There are different reasons for a computer to crash - there can be a programming bug, a memory issue, or other. When your computer seems to be dead, don't panic! And don't reach for that power button!<br />
There are '''five''' simple things you can try before killing the power:<br />
<br />
# Is the computer frozen? Try going into one of the VTs by pressing '''<Ctrl><Alt>''' and '''F1'''. This way you may still have control of the computer and manage to kill the application which caused the problem. '''''More on killing applications later.'''''<br />
# If you can't change into a VT, try to kill the X session. This can be done by pressing '''<Ctrl><Alt><Backspace>'''. All applications that were opened during the session will automatically be killed, so you should gain control over the computer after you've been sent back to the login screen.<br />
# OK, so you can't kill X or go into VT. Let's do a reboot, which can safely be done by pressing '''<Ctrl><Alt><Delete>'''. The machine will beep and start running the shutdown scripts.<br />
# If for some reason one or more of the shutdown scripts should die, and the computer stops the rebooting process, press the key combination again to ''force a reboot''. This not safe if the scripts haven't gotten around to unmount the local filesystems.<br />
# Final way out: Your computer doesn't obey and none of above methods seem to give any response. Here's a little trick that might help, not known to many Linux users! The kernel has a small userspace communication line opened, so even if the computer has crashed badly (I haven't tried this during kernel-panic, though, can anyone confirm?) you can make it reboot safely. This method ''is'' safe, but should be used '''''only if everything else fails'''''! Hold down '''<Ctrl>''', '''<Alt>''' and '''<PrtScrn/SysRq>'''. While holding down these, type the following letters - in order - '''R E I S U B'''. The computer will unmount any filesystems that are locally mounted, and safely bring down the system. If you have trouble remembering the letter combination; think '''''busier''''', only ''backwards''.<br />
<br />
=== How to find the UUID of a device ===<br />
* This is useful if changes are made to the partition table or a new hard drive is added to the computer.<br />
* When the UUID(s) change an error will be caused during boot.<br />
* Pressing <Ctrl>-D will allow the boot to continue but to fix the problem:<br />
-> Open fstab file:<br />
sudo gedit /etc/fstab<br />
-> In another terminal run this commmand: <br />
ls -l /dev/disk/by-uuid/ <br />
-> Or you can type this to list all of your devices:<br />
blkid<br />
<br />
* Compare the UUID's and any that are different in fstab from the list must be changed. The easiest way is copy and paste.<br />
* Some other things may have to be edited as well like the mount point, type (ext2, ext3, ntfs, etc) , options, dump, pass, etc.<br />
''For more help editing fstab look [http://ubuntuforums.org/showthread.php?t=283131 Here:]''<br />
<br />
* To list the UUID of a specific device:<br />
sudo vol_id -u device<br />
<br />
* Where device might be /dev/sdxy.<br />
'' Example: sudo vol_id -u /dev/sda1 ''<br />
<br />
=== Enable vim syntax highlighting ===<br />
The source of vi/vim command is vim-tiny package which does not support syntax highlighting. Install vim:<br />
sudo apt-get install vim<br />
Then open /etc/vim/vimrc and uncomment '''syntax on'''<br />
<br />
Replace<br />
"syntax on<br />
<br />
With<br />
syntax on<br />
<br />
=== HAL ===<br />
If you have problem failed to initialize HAL, and devices such as card reader,or shutdown problem, power meter doesn´t appear..please find this line in /etc/init.d/rc<br />
<br />
sudo vim /etc/init.d/rc<br />
find this line :<br />
CONCURRENCY=shell<br />
<br />
To fix this:<br />
<br />
sudo nautilus<br />
<br />
Navigate to /etc/<br />
look for the folder '''rc2.d'''<br />
rename '''s12hal''' to '''s13hal<br />
'''<br />
<br />
the problem was HAL loading before DBUS and causing such error.<br />
this should fiz the problem, if not<br />
<br />
sudo gedit /etc/init.d/rc<br />
<br />
and turn<br />
CONCURRENCY=shell to CONCURRENCY=none<br />
<br />
=== Enable Sirius Internet Radio for Firefox ===<br />
*Install [[#How to install VLC media player| VLC]]<br />
*Install the [https://addons.mozilla.org/en-US/firefox/addon/446 firefox media player connectivity plugin]<br />
<br />
Launch the player from [http://www.sirius.com/servlet/ContentServer?pagename=Sirius/Page&c=FlexContent&cid=1191942072317&flash=noflash| www.sirius.com]. After authenticating, you will now be able to select which stream to play. Selecting the stream will launch vlc.<br />
<br />
=== Remove unwanted language/locale files ===<br />
sudo apt-get install localepurge<br />
sudo localepurge<br />
<br />
=== Auto starting pidgin at login ===<br />
Goto System -> Preferences -> Sessions. Click Add. A popup window will appear. Set Name to "Pidgin" and Command to "/usr/bin/pidgin". Click OK. Make sure that it is enabled.<br />
<br />
=== sudo/gksu without password ===<br />
EDITOR=gedit gksu visudo<br />
Find "Defaults !lecture,tty_tickets,!fqdn" and replace by "Defaults timestamp_timeout=-1".<br />
<br />
=== Speed-up Ubuntu ===<br />
Open System -> Preferences -> Sessions and remove the startup programs that you do not need (e.g. Bluetooth Manager, Evolution Alarm Notifier, Restricted Driver Manager, Tracker, User folders update, Visual).<br />
<br />
Open System -> Preferences -> Appearance and make Visual Effects to None.<br />
<br />
Open System -> Administration -> Services and disable the services that you do not need (e.g. alsa-utils, bluetooth, brltty, hdparm, acpid, apmd, screen).<br />
<br />
=== How to change the USplash Screen on startup/shutdown ===<br />
<br />
When you add another Desktop Environment, the USplash screen may change (saying Kubuntu instead of Ubuntu). If you want to change it, do the following:<br />
<br />
sudo update-alternatives --config usplash-artwork.so<br />
<br />
This will bring up a list of installed USplash screens. Type the number that corresponds to the one you want and press Enter. Then type:<br />
<br />
sudo dpkg-reconfigure usplash<br />
<br />
Then reboot.<br />
<br />
== ''''' Guide Development ''''' ==<br />
<br />
'' Note: This section was taken from the Feisty Guide and edited appropriately.''<br />
<br />
Place ideas here to increase the look and performance of this guide.<br />
<br />
* Add a new section for Gnome Themes from http://art.gnome.org and KDE Themes from http://www.kde-look.org/.<br />
* Have entries under their headings in alphabetical order.<br />
* Try to keep the guide neat and clutter free.<br />
* Possible "Short Version" Table of contents without each "How to".<br />
* Add a [top] link to the end of each article.<br />
* If possible, include a 'find/search' function to easily access queries.<br />
** This can be done in Firefox with <Ctrl>-F.<br />
* instead of 'apt-get install', there could be the new Gutsy [http://www.ubuntugeek.com/apturl-protocol-handler-in-ubuntu-gutsy-gibbon.html apturl] feature for easier installation of software</div>Convicehttps://wiki.ubuntu.org.cn/index.php?title=Ubuntu:Gutsy/zh&diff=75353Ubuntu:Gutsy/zh2007-12-30T11:55:03Z<p>Convice:</p>
<hr />
<div>{{Translation}} {{From|http://ubuntuguide.org/Ubuntu:Gutsy}} {{Languages|Ubuntu:Gutsy}} {{Translator|zhan 译者2}}<br />
<br />
= ''''' Ubuntu 7.10 (Gutsy Gibbon) ''''' =<br />
<br />
'''Ubuntu Gutsy Gibbon, the successor of Feisty Fawn was released on Oct 18th, 2007. Please help test and perfect this guide.'''<br />
'''Ubuntu Gutsy Gibbon, Feisty Fawn 的后续版本,于 2007 年 10 月 18 日已经发布。请帮忙测试和完善这份指南'''<br />
<br />
This guide was started by [[User:Jiyuu0|Chua Wen Kiat]] (Kuala Lumpur, Malaysia). <br />
It is now being maintained by the [http://linux.edu.lv/index.php?newlang=english Linux Center] of [http://www.lu.lv/eng/ University of Latvia], and everyone else who is willing to contribute.<br />
<br />
这份指南由 [[User:Jiyuu0|Chua Wen Kiat]] (Kuala Lumpur, Malaysia). 发起。现在它由[http://www.lu.lv/eng/ Latvia 大学]的[http://linux.edu.lv/index.php?newlang=english Linux 中心]和所有愿意贡献的其他人们共同维护。<br />
<br />
This guide can be discussed at the official [http://www.ubuntuforums.org/forumdisplay.php?f=78 UbuntuGuide.org Forum] at ubuntuforums.org. Stop by and join the discussion. <br />
<br />
这份手册可以在官方论坛 ubuntuforums.org 的[http://www.ubuntuforums.org/forumdisplay.php?f=78 UbuntuGuide.org 论坛]<br />
讨论。加入讨论吧。<br />
<br />
== ''''' 前言 ''''' ==<br />
<br />
=== 关于 Gutsy ===<br />
<br />
* On October 18, 2007 Ubuntu 7.10 was released.<br />
* It was code named Gutsy Gibbon and is the successor to Ubuntu 7.04 Feisty Fawn (Feisty+1 or the very next release after Feisty)<br />
* Gutsy will be supported for 18 months on both desktops and servers.<br />
* Users requiring a longer support lifetime on servers may choose to continue using Ubuntu 6.06 LTS, with security support until 2011, rather than upgrade to or install 7.10.<br />
<br />
* 2007 年 10 月 18 日,Ubuntu 7.10 发布。<br />
* 它被命名为 Gutsy Gibbon,它是 Ubuntu 7.04 Feisty Fawn 的后续版本(Feisty +1 或紧接 Feisty 之后发布的版本)<br />
* Gutsy 将在桌面和服务器版本上提供 18 个月的支持<br />
* 要求更长期服务器版本支持的用户可以选择 Ubuntu 6.06 LTS ,而不是更新到 7.10, 因为 6.06 的安全支持直到 2011 年。<br />
<br />
=== 如何找出您正在使用的 Ubuntu 版本 ===<br />
<br />
* Read [[#General Notes]]<br />
*In Gutsy goto System -> Administration -> System Monitor -> System Tab<br />
<br />
or on all versions and derivatives of Ubuntu use this command:<br />
<br />
lsb_release -a<br />
<br />
* 读一下 [[#General Notes]]<br />
* 在 Gutsy 中,到系统->管理->系统监视器->系统标示 查看<br />
或者在所有的 Ubuntu 版本和衍生版本中,使用这个命令:<br />
<br />
lsb_release -a<br />
<br />
=== Ubuntu 的更新的版本 ===<br />
<br />
* Ubuntu uses a six month release cycle<br />
* These releases occur in April and October<br />
* The next release is scheduled for April 24, 2008 and will be Ubuntu 8.04 (Hardy Heron) which is Gutsy+1.<br />
* Hardy Heron will be a LTS (Long Term Support) release and will be supported with security updates for five years on the server and three years on the desktop.<br />
<br />
* Ubuntu 采用 6 个月的发行周期<br />
* 一般发布在 4 月和 10 月<br />
* 下一次的发布计划在 2008 年 4 月 24 日,并命名为 Ubuntu 8.04(Hardy Heron)即 Gutsy+1。<br />
* Hardy Heron 将是 LTS(长期支持)版本,将提供 5 年的服务器版本安全支持和 3 年的桌面版本支持。<br />
<br />
=== Ubuntu 的老版本 ===<br />
<br />
* '''[[Ubuntu:Feisty | 7.04 (Feisty Fawn)]]'''<br />
<br />
* '''[[Ubuntu:Edgy | 6.10 (Edgy Eft)]]'''<br />
<br />
* '''[[Ubuntu_dapper | 6.06 (Dapper Drake)]]'''<br />
<br />
If you are using an outdated version of Ubuntu, you should consider updating it to Gutsy. There have been considerable improvements to this version, and the updater used in Gutsy will ease transitions to future versions. If you are in a production environment, or if everything works perfectly for you, you may wish to stay with a Long-Term Support (LTS) version.<br />
<br />
如果您试用一个 Ubuntu 的过时的版本,您应该考虑将其升级到 Gutsy。 这个版本有相当多的改进,并且和将来的版本更加容易整合。如果您使用其作为一个生产环境,或您认为所有的事情都很完美,您可以考虑仍然使用长期支持版本(LTS)。<br />
<br />
*[http://www.ubuntu.com/getubuntu/upgrading Ubuntu 升级页面]<br />
<br />
* Dapper is latest LTS and the next version Gutsy+1 will be the next LTS released.<br />
<br />
*Read [https://lists.ubuntu.com/archives/ubuntu-devel-announce/2007-April/000276.html Introduction to Gutsy Gibbon] from April 2007<br />
<br />
* Dapper 是最新的 LTS 版本,Gutsy+1 的新版本将是下一个 LTS 版本。<br />
<br />
* 读一下从 2007 年 4 月开始的[https://lists.ubuntu.com/archives/ubuntu-devel-announce/2007-April/000276.html Gutsy Gibbon 简介] <br />
<br />
=== General Notes ===<br />
<br />
# 这是一个非官方的 Ubuntu 7.10 (Gutsy Gibbon) 初学者向导. 它与 Ubuntu和 Canonical 公司都没有关系.<br />
# 这个向导发自于官方论坛([http://www.ubuntuforums.org/forumdisplay.php?f=78 UbuntuGuide.org Forum] at ubuntuforums.org).欢迎参与讨论。<br />
# If you see a bluish box, this means you have to execute the commands in Terminal mode (Applications -&gt; Accesories -&gt; Terminal) or use the content of that box as mentioned in some other instructions.<br />
# 在终端模式,你也可以用“复制”“粘贴”来代替用键盘键入命令,这样往往可以有效的防止输入错误。(Ctrl+c=复制,Shift+Insert=粘贴)<br />
# "sudo" 表示 "'''s'''ubstitute '''u'''ser '''do'''". Sudo 需要你提供密码(密码不会在终端中回显). 你可以利用sudo代替另一个用户在计算机上操作-比如&nbsp; sudo -u peter &lt;命令&gt; 将会以peter的身份在计算机上执行此命令。<br><br />
# 欲获得更多关于命令的信息,请参阅手册页。例如,在终端中输入“man sudo”可以获得与sudo相关的信息。<br />
# 你也可以使用更新管理器来代替"apt-get"(系统-系统管理-更新管理器)<br />
# "apt-get"和"wget"都需要网络连接来下载安装和更新程序<br><br />
# 所以涉及 "aptitude"的选项都可以用"apt-get"替代.当然可以继续使用"aptitude",但是这可能会造成一些依赖性上的问题。<br><br />
# 可以点击右键选择“链接另存为”来下载文件,但必须保证文件的名字和拓展名都是正确的<br />
# 如果你有意向帮助Ubuntu本土化,请访问 https://launchpad.net/<br />
# 善待他人的理念永远和Ubuntu一起伴随着你...<br />
# ''如果使用的是64位的版本,请在“i386”用“amd64”代替''<br />
<br />
=== 外部链接申明 ===<br />
<br />
这份指南中的很多部分都有外部链接,这可以使这份指南更加精悍,然而Ubuntugide.org不能保证每个链接都是有效的。我们不能对本指南以外的一些拓展链接负责,如果你发现哪个链接是无效的,那请在此处报告问题,或者为我们修正那些指向错误的外部链接。因为有你,我们才能做的更加完美。<br />
<br />
==== ''关于链接出错'' ====<br />
<br />
''如果您发现某个链接是错误的或者无法找到相关信息,那请将此连接贴到此处,包括您是在哪段里找到此链接的。谢谢合作!''<br />
<br />
=== 关于Ubuntu以及官方的一些相关内容<br> ===<br />
<br />
==== Ubuntu 7.10的相关指导 ====<br />
<br />
* [http://www.ubuntu.com/ Ubuntu官方网站]<br />
* [http://www.ubuntu.com/products/whatisubuntu 官方介绍关于Ubuntu]<br />
* [http://ubuntuforums.org/ Ubuntu官方论坛]<br />
* [http://en.wikipedia.org/wiki/Ubuntu_(Linux_distribution) 维基百科: Ubuntu版本介绍 (Linux 发行版)]<br />
* [http://www.ubuntugeek.com/ Ubuntu Geek 网站包括很多关于Ubuntu 的指导性文章]<br />
* [http://www.ubuntutips.net/ Ubuntu小窍门]<br />
<br />
<br><br />
<br />
===== Ubuntu截图 =====<br />
<br />
[http://www.debianadmin.com/ubuntu-710-gutsy-gibbon-screenshots-tour.html Ubuntu 7.10 截图展示&nbsp;]<br />
<br />
==== Kubuntu 7.10的相关指导<br> ====<br />
<br />
* [http://www.kubuntu.org/ Kubuntu官方网站]<br />
* [http://www.kubuntuguide.org/ Kubuntuguide.org]<br />
* [http://www.kubuntu.org/docs/about-kubuntu/C/index.html 官方介绍关于Kubuntu]<br />
* [http://kubuntuforums.net/forums/index.php Kubuntu官方论坛]<br />
* [http://en.wikipedia.org/wiki/Kubuntu Wikipedia: Kubuntu]<br />
<br />
===== Kubuntu Screenshots =====<br />
<br />
[http://www.debianadmin.com/kubuntu-710-gutsy-gibbon-screenshots-tour.html Kubuntu 7.10 Screenshots Gallery]<br />
<br />
==== Xubuntu 7.10 Guides and Links ====<br />
<br />
* [http://www.xubuntu.org/ Xubuntu Official Website]<br />
* [http://en.wikipedia.org/wiki/Xubuntu Wikipedia: Xubuntu]<br />
* [http://www.xubuntuguide.org Xubuntuguide.org]<br />
<br />
===== Xubuntu Screenshots =====<br />
<br />
[http://www.debianadmin.com/xubuntu-710-gutsy-gibbon-screenshots-tour.html Xubuntu 7.10 Screenshots Gallery]<br />
<br />
==== Edubuntu 7.10 Guides and Links ====<br />
<br />
[http://www.edubuntu.org/ Offical Edubuntu Website] [http://en.wikipedia.org/wiki/Edubuntu Wikipedia: Edubuntu]<br />
<br />
==== Gobuntu 7.10 Guides and Links ====<br />
<br />
[http://en.wikipedia.org/wiki/Gobuntu Wikipedia: Gobuntu]<br />
<br />
=== Translation and localization ===<br />
<br />
Chinese, Japanese, Portuguese and most European languages have better support in Ubuntu than any other languages. If your language do not have enough support, then you can help Ubuntu by translating it in your preferred language. To translate, visit https://translations.launchpad.net/ubuntu and login (register if not already registered). Choose your preferred language and start translating.<br />
<br />
== ''''' Updates and Upgrades and Installing Software''''' ==<br />
<br />
=== How to add extra repositories ===<br />
''Work in Progress''<br />
<br />
==== Menu Method ====<br />
*Choose distribution-friendly repositories. These are part of the Ubuntu distribution system. This is the recommended method.<br />
<br />
System-->Administration-->Software Sources<br />
<br />
Check the repositories you think you will need (main, universe, restricted, multiverse). You probably won't need the 'sources' repository.<br />
<br />
*Add any third-party repositories. Such repositories are not monitored in any way. Some are quite popular, however. Use any third-party repository at your own risk. <br />
<br />
System-->Administration-->Software Sources-->Third-party software-->Add<br />
<br />
Add the name of your repository. In this example, we will use Medibuntu, a popular third-party repository not affiliated with Ubuntu in any way.<br />
<br />
<i>APT line:</i> deb http://packages.medibuntu.org/ gutsy free non-free<br />
<br />
*Download any needed gpg keys and add them to the keylist. This key verifies the repository to your system. The Medibuntu repository (not affiliated with Ubuntu) example is shown:<br />
wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add -<br />
<br />
==== Manual Method ====<br />
<br />
* Create a backup of your current list of sources. <br />
sudo cp -p /etc/apt/sources.list /etc/apt/sources.list_backup<br />
<br />
* Open the list of sources in a text editor <br />
<br />
Ubuntu users: <br />
sudo gedit /etc/apt/sources.list<br />
<br />
* Replace everything with the following lines <br />
<br />
:To use your local mirror you can add "''cc.''" before ''archive.ubuntu.com'' (cc = your country code) <br />
:e.g. ''<nowiki>deb http://lv.archive.ubuntu.com/ubuntu gutsy main restricted universe multiverse</nowiki>''<br />
<br />
deb http://us.archive.ubuntu.com/ubuntu/ gutsy main restricted<br />
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy main restricted<br />
<br />
## Major bug fix updates produced after the final release of the<br />
## distribution.<br />
<br />
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted<br />
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates main restricted<br />
<br />
##Universe<br />
<br />
deb http://us.archive.ubuntu.com/ubuntu/ gutsy universe<br />
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy universe<br />
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates universe<br />
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates universe<br />
<br />
## Multiverse<br />
<br />
deb http://us.archive.ubuntu.com/ubuntu/ gutsy multiverse<br />
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy multiverse<br />
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-updates multiverse<br />
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-updates multiverse<br />
<br />
## Backports<br />
<br />
deb http://us.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse<br />
deb-src http://us.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse<br />
<br />
## Canonical Partner Repository <br />
<br />
deb http://archive.canonical.com/ubuntu gutsy partner<br />
deb-src http://archive.canonical.com/ubuntu gutsy partner<br />
deb http://security.ubuntu.com/ubuntu gutsy-security main restricted<br />
deb-src http://security.ubuntu.com/ubuntu gutsy-security main restricted<br />
deb http://security.ubuntu.com/ubuntu gutsy-security universe<br />
deb-src http://security.ubuntu.com/ubuntu gutsy-security universe<br />
deb http://security.ubuntu.com/ubuntu gutsy-security multiverse<br />
deb-src http://security.ubuntu.com/ubuntu gutsy-security multiverse<br />
<br />
## PLF REPOSITORY (Unsupported. May contain illegal packages. Use at own risk.)<br />
deb http://packages.medibuntu.org/ gutsy free non-free<br />
<br />
* Save the edited file <br />
<br />
wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add -<br />
sudo apt-get update<br />
<br />
=== 怎样从Feisty 升级到 Gutsy ===<br />
<br />
* [http://www.ubuntugeek.com/upgrade-ubuntu-704-feisty-fawn-to-ubuntu-710-gutsy-gibbon.html 一步一步地按照屏幕显示的升级向导把Ubuntu Feisty 升级到 Gutsy]<br />
<br />
=== How to edit Automatic Updates ===<br />
<br />
*Enable automatic updates from the menu:<br />
<br />
System-->Administration-->Software Sources-->Updates<br />
<br />
Select Important Security Updates and Recommended Security Updates and any other desired updates.<br />
Choose frequency of updates.<br />
<br />
=== How to manually update Ubuntu ===<br />
<br />
*Read [[#General Notes]]<br />
*Read [[#How to add extra repositories]]<br />
<br />
*From the command line:<br />
use http://www.ubuntu-nl.org/source-o-matic/ page to generate the /etc/apt/sources.list file<br />
<br />
take a backup of your existing /etc/apt/sources.list file<br />
<br />
create a new /etc/apt/sources.list file from the generated page available on the browser<br />
<br />
now run the following commands<br />
<br />
sudo apt-get update<br />
sudo apt-get upgrade<br />
sudo apt-get dist-upgrade<br />
<br />
*From the menu:<br />
<br />
System -> Administration -> Update Manager<br />
<br />
== ''''' Add-on Applications ''''' ==<br />
<br />
=== Miscellaneous Applications ===<br />
'' The application in this section need a home. If Editors have the time, please place these apps in an appropriate category. If the category doesn't exist then make it. Destroy this message when complete. Thanks. --[[User:KrazyPenguin|KrazyPenguin]] 06:16, 27 October 2007 (EEST)''<br />
<br />
==== Hotwire - Graphical terminal for Ubuntu ====<br />
If you want graphical terminal for Ubuntu check this Very Useful<br />
*[http://www.ubuntugeek.com/hotwire-graphical-terminal-for-ubuntu.html Hotwire Installation Guide]<br />
==== How to install Epiphany web browser in Ubuntu ====<br />
If you want to How to install Epiphany web browser in Ubuntu follow this procedure<br />
*[http://www.ubuntugeek.com/how-to-install-epiphany-web-browser-in-ubuntu.html Epiphany web browser in Ubuntu]<br />
==== Midori - a lightweight web browser in Ubuntu ====<br />
If you want to How to install Midori web browser in Ubuntu follow this procedure<br />
*[http://www.ubuntugeek.com/midori-a-lightweight-web-browser.html Midori web browser in Ubuntu]<br />
<br />
==== apturl - protocol handler in Ubuntu Gutsy Gibbon ====<br />
If you want to install ubuntu package from web browser here is simple tool<br />
*[http://www.ubuntugeek.com/apturl-protocol-handler-in-ubuntu-gutsy-gibbon.html apturl Setup guide]<br />
==== sysvconfig - utility for configuring init script links ====<br />
sysvconfig - utility for configuring init script links,service command in ubuntu<br />
*[http://www.ubuntugeek.com/sysvconfig-utility-for-configuring-init-script-links.html sysvconfig - utility for configuring init script links]<br />
==== Howto Install qBittorrent in Ubuntu Gutsy ====<br />
sysvconfig - utility for configuring init script links,service command in ubuntu<br />
*[http://www.ubuntugeek.com/howto-install-qbittorrent-in-ubuntu-gutsy.html Howto Install qBittorrent in Ubuntu Gutsy]<br />
<br />
==== Enable Drag and Drop capabilities to aMSN ====<br />
*[http://www.ubuntugeek.com/how-to-enable-drag-and-drop-capabilities-to-amsn.html Enable Drag and Drop capabilities to aMSN ]<br />
<br />
==== Mount/Unmount .iso Images in oneclick ====<br />
*[http://www.ubuntugeek.com/easy-way-of-mountunmount-iso-images-in-ubuntu.html Mount/Unmount .iso Images in oneclick in Ubuntu]<br />
==== Startup Manager ====<br />
StartUp Manager - change settings in Grub, Grub2 and Usplash<br />
*[http://www.ubuntugeek.com/startup-manager-change-settings-in-grub-grub2-and-usplash.html change settings in Grub, Grub2 and Usplash]<br />
<br />
==== Adobe Reader Gutsy amd64/i386 ====<br />
<br />
*[http://www.ubuntugeek.com/how-to-install-adobe-pdf-reader-811-with-plug-in-for-mozilla-firefox-in-gutsy-gibbon.html Acrobat Reader 8 with firefox plugins step by step installation guide]<br />
First<br />
echo "deb http://packages.medibuntu.org/ gutsy free non-free" | sudo tee -a /etc/apt/sources.list<br />
<br />
Second<br />
wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add - && sudo apt-get update<br />
<br />
Third we add plug ins and Reader<br />
sudo aptitude install acroread acroread-plugins acroread-escript<br />
<br />
You can also install the plug-in for Firefox<br />
sudo aptitude install mozilla-acroread<br />
<br />
Enjoy Adobe Reader<br />
<br />
==== OpenOffice add ons ====<br />
Opening .docx files in OpenOffice for Ubuntu (This will work with other distros)<br />
<br />
First we need to download the converter, it can be found here> [http://download.novell.com/SummaryFree.jsp?buildid=ESrjfdE4U58%7E]<br />
Download the "odf-converter-1.0.0-5.i586.rpm"<br />
<br />
Now install alien, if you have not yet<br />
<br />
sudo apt-get install alien<br />
<br />
Then we need to convert it, we do not want a .deb package for this, so we use the -ct switch not the -k<br />
The -ct converts it to a .tgz<br />
<br />
sudo alien -ct odf-converter-1.0.0-5.i586.rpm<br />
<br />
Once it is converted you need to unpack it<br />
<br />
tar xvf odf-converter-1.0.0.tgz<br />
<br />
Now there should be three dirs on you desktop or where ever you un tared these.<br />
<br />
You now need to run<br />
<br />
sudo cp usr/lib/ooo-2.0/program/OdfConverter /usr/lib/openoffice/program/<br />
<br />
sudo cp usr/lib/ooo-2.0/share/registry/modules/org/openoffice/TypeDetection/Filter/MOOXFilter_cpp.xcu /usr/lib/openoffice/share/registry/modules/org/openoffice/TypeDetection/Filter<br />
<br />
sudo cp usr/lib/ooo-2.0/share/registry/modules/org/openoffice/TypeDetection/Types/MOOXTypeDetection.xcu /usr/lib/openoffice/share/registry/modules/org/openoffice/TypeDetection/Types<br />
<br />
Then you are done, you can now open and edit .docx files '''ONLY''' I will post the others when I find them.<br />
<br />
There is an alternative to installing the "odf converter" on Ubuntu 7.10 (Gutsy). The 3 simple steps are as follows:<br />
<br />
(make sure you are logged in as root first, so from the terminal, type '''sudo su -''' and type in your password when prompted) <br />
<br />
Step 1: echo "deb http://ubuntu.org.ua/ getdeb/" >>/etc/apt/sources.list<br />
<br />
Step 2: apt-get update<br />
<br />
Step 3: apt-get install odf-converter<br />
<br />
I did the 3 steps above and got it working on my machine. Please do let me know if anyone is having any problems with it.<br />
<br />
====Genealogical Research and Analysis Management Program (Gramps)====<br />
GRAMPS, the Genealogical Research and Analysis Management Programming System, is an Open Source genealogy program written in Python, using the GTK/GNOME interface. GRAMPS has the ability to import GEDCOM files that are used in such programs as FamilyTree Maker for Windows and can produce reports in various formats such as the popular ABIWord and OpenOffice.org formats as well as HTML and PDF.<br />
sudo apt-get install gramps<br />
<br />
=== 桌面 ===<br />
<br />
==== Howto Tweak Ubuntu System ====<br />
<br />
If you want to tweak ubuntu check this<br />
<br />
* [http://www.ubuntugeek.com/howto-tweak-ubuntu.html Howto Tweak Ubuntu System]<br />
<br />
==== AMOR - a creature for your desktop ====<br />
<br />
If you want to add some fun to your ubuntu desktop this is for you<br />
<br />
* [http://www.ubuntugeek.com/amor-a-creature-for-your-desktop.html AMOR - a creature for your desktop]<br />
<br />
==== Advanced Desktop Effects (Compiz Fusion) ====<br />
<br />
Ubuntu 7.10 Gutsy Gibbon comes shipped with Compiz Fusion pre-installed, which means less tinkering with sensitive configuration files. For most part, Compiz needs proprietary drivers for your graphics card to work properly, so make sure you install those if needed.<br />
<br />
To enable desktop effects, turn them on by navigating your GNOME-menu to '''System &gt; Preferences &gt; Appearance'''. Under the tab ''Visual Effects'' you'll find three settings; ''None'', ''Normal'' and ''Extra''. To turn Compiz on, choose one of the two latter.<br />
<br />
If you wish to customize your Compiz options and plugins, such as animations and Desktop Cube, first install the configuration tool:<br />
<br />
sudo apt-get install [http://packages.ubuntu.com/gutsy/x11/compizconfig-settings-manager compizconfig-settings-manager] <br />
<br />
Then either choose the now available '''''Custom''''' and '''''Preferences''''' from the above ''Visual Effects'' menu, or start the settings manager via the menu '''System &gt; Preferences &gt; Advanced Desktop Effects Settings'''. You can also start the application from the terminal or run dialog ('''ALT + F2'''), using the command '''ccsm'''.<br />
<br />
==== ATI users and Compiz ====<br />
<br />
Some ATI cards don't need their proprietary drivers to work with Compiz as the open-sourced driver ('''radeon''') also has support for 3D acceleration. However, the open-sourced driver isn't as fast as the closed-sourced ('''fglrx''') one, so if you need the proprietary one you'll have to tinker around in the terminal a little.<br />
<br />
<br> 1. After you've installed the driver, either through the proprietary manager or directly from [http://ati.amd.com/support/driver.html ATI's site], you'll have to setup the Xorg configuration file to work with your new driver. Always remember to back up the original file before altering, in case something goes wrong. Open up a terminal and enter:<br />
<br />
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.bak<br />
sudo aticonfig --initial --input=/etc/X11/xorg.conf<br />
<br />
This will disable the default '''radeon''' driver and replace it with ATI's own.<br />
<br />
<br> 2. Now, let's tell Compiz not to care about drivers that are blacklisted:<br />
<br />
echo SKIP_CHECKS="yes" &gt;&gt; $HOME/.config/compiz/compiz-manager<br />
<br />
Alternatively, you could whitelist the driver, which is a much prettier solution. Run this command to edit the Compiz startup-script:<br />
<br />
gksudo gedit /usr/bin/compiz<br />
<br />
Search for '''Driver whitelist''' and add '''''fglrx''''' to the end of the line, like this:<br />
<br />
# Driver whitelist<br />
WHITELIST="nvidia intel ati radeon i810 fglrx"<br />
<br />
<br> 3. Reboot your computer, login and enable Compiz as mentioned above '''et voilà'''! Behold Compiz and ATI hugging.<br />
<br />
==== Live system monitoring ====<br />
<br />
sudo apt-get install netspeed<br />
<br />
Right click on the free area of the upper panel and select "Add to Panel...". Add "System Monitor" and "Network Monitor". Right Click on System Monitor and select Preferences. Add the monitor resources that you want to monitor.<br />
<br />
==== Desktop session recording ====<br />
<br />
It is possible to record the whole desktop session along with mouse pointer and sound system. It is a very useful tool for video screenshot as ordinary still picture screenshots generated by pressing Print Screen cannot demonstrate everything. Three applications that can do this for you are Istanbul, Wink and gtk-recordMyDesktop.<br />
<br />
====== Istanbul ======<br />
<br />
sudo apt-get install istanbul<br />
<br />
====== Wink ======<br />
<br />
sudo apt-get install wink<br />
<br />
====== gtk-recordMyDesktop ======<br />
<br />
sudo apt-get install gtk-recordmydesktop<br />
<br />
==== International Clock Gnome Applet (OpenSuse contribution) ====<br />
<br />
To switch to the new international clock applet download it from [http://brainstormingproject.free.fr/intlclock_1.0-1ubuntu0_i386.deb Here] <!--{11987330273590} --> then install it with dpkg. <!--{11987330273591} --><br />
<br />
Remove the old clock gnome applet right-clicking on it and then add a new applet to the panel with a right-click too over the empty place:<br />
<br />
&gt;Add to panel...&gt;Miscellaneous&gt;International Clock&gt;Add<br />
<br />
You got it.<br />
<br />
Add World Map and choose World locations using its Preferences menu<br />
<br />
=== 备份 ===<br />
<br />
Ubuntu Backup Options<br />
If you want to backup your Ubuntu Desktop Use Sbackup<br />
<br />
* [http://www.ubuntugeek.com/backup-and-restore-your-ubuntu-system-using-sbackup.html Sbackup Installation and setup guide]<br />
<br />
rdiff-backup<br />
Use rdiff-backup ubuntu<br />
<br />
* [http://www.ubuntugeek.com/backup-ubuntu-using-rdiff-backup.html rdiff-backup Setp Tutorial]<br />
<br />
=== 游戏 ===<br />
<br />
==== Frozen Bubble ====<br />
<br />
To install Frozen Bubble simply run:<br />
<br />
sudo apt-get install frozen-bubble<br />
<br />
or use Synaptic Package Manager under System &gt; Administration menu, to locate and install the package.<br />
<br />
==== How to solve Sudoku ====<br />
<br />
There is a simple [http://tamal.nath.googlepages.com/sudoku.pl Perl script] for solving gnome-sudoku. It does not support trial-and-error.<br />
<br />
==== Super Nintendo Emulator (ZSNES) 1.510 for i386/AMD64 ====<br />
<br />
* Read [[|#General Notes]]<br />
<br />
''For support or questions see http://ubuntuforums.org/showthread.php?t=588744''<br />
<br />
''ZSNES 1.51 is included in the Official Gutsy i386 repos. However, there is no official AMD64 version, and the i386 version is known to have issues in Gutsy (see http://ubuntuforums.org/showthread.php?t=571666). There is a workaround available for i386 users who are experiencing this error (see http://ubuntuforums.org/showpost.php?p=3604026&amp;postcount=22).''<br />
<br />
* Add a 3rd Party Repository<br />
<br />
echo "deb http://packages.dfreer.org gutsy main" | sudo tee -a /etc/apt/sources.list<br />
wget http://packages.dfreer.org/7572013D.gpg -O- | sudo apt-key add -<br />
sudo apt-get update<br />
<br />
* Install using one of the lines below<br />
<br />
sudo apt-get install zsnes32 #for amd64 users<br />
sudo apt-get install zsnes #for everyone else<br />
<br />
* Applications &gt; Games &gt; zsnes or zsnes32<br />
<br />
==== Playstation Emulator (pSX) 1.13 for i386/AMD64 ====<br />
<br />
* Read [[|#General Notes]]<br />
<br />
''For support or questions see http://ubuntuforums.org/showthread.php?t=394097''<br />
<br />
* Add a 3rd Party Repository<br />
<br />
echo "deb http://packages.dfreer.org gutsy main" | sudo tee -a /etc/apt/sources.list<br />
wget http://packages.dfreer.org/7572013D.gpg -O- | sudo apt-key add -<br />
sudo apt-get update<br />
<br />
* Install using one of the lines below<br />
<br />
sudo apt-get install psx32 #for amd64 users<br />
sudo apt-get install psx #for everyone else<br />
<br />
* Applications &gt; Games &gt; pSX or pSX32<br />
<br />
==== KDE games ====<br />
<br />
To install the games from KDE 3 (recommended for Kubuntu users), install the package kdegames. This can be done with:<br />
<br />
sudo apt-get install kdegames<br />
<br />
==== UrbanTerror 4.0 ====<br />
<br />
* UrbanTerror 4.0 is a Multi-player First Person Shooter. The Game uses the open source quake 3 engine and features many real weapons and free to use servers for multi-player functionality.<br />
<br />
''More information can be found at [http://www.urbanterror.net UrbanTerror]''<br />
<br />
* You can manually download and install UrbanTerror from the following webpage [http://www.urbanterror.net/page.php?6 UrbanTerror_Download]<br />
* Or you can enjoy an automated install by downloading and executing the linux install script from either of the following links: [http://89.106.68.26/linux/urbanterror4/urt40-linux-installer.sh urt40-linux-installer.sh_1] or [http://vlaai.snt.utwente.nl/pub/games/urbanterror/urt40-linux-installer.sh urt40-linux-installer.sh_2]<br />
<br />
* After downloading the script open Terminal into your download directory then make the script executable with the following command:<br />
<br />
sudo chmod +x urt40-linux-installer.sh<br />
<br />
* Now double click on the script to execute and follow the directions<br />
* The install will take awhile as the script executes a download of the necessary files which are about 541MB<br />
* After the install you will have a nice UrbanTerror icon on your desktop (unless you installed as root)<br />
<br />
''This easy install script is courtesy of Nexu from the UrbanTerror Forums.''<br />
<br />
=== CD/DVD ===<br />
==== How to rip a DVD video ====<br />
dvd::rip is a full featured DVD copy program written in Perl. It provides an easy to use but feature-rich Gtk+ GUI to control almost all aspects of the ripping and transcoding process. It uses the widely known video processing swissknife transcode and many other Open Source tools.<br />
sudo apt-get install dvdrip<br />
<br />
==== How to burn video DVD ====<br />
dvdauthor is a program that will generate a DVD movie from a valid mpeg2 stream that should play when you put it in a DVD player.<br />
sudo apt-get install dvdauthor<br />
<br />
==== How to burn a CD/DVD ====<br />
nautilus-cd-burner is a basic and pre-installed program to write a CD or DVD. Serpentine is a pre-installed audio CD creator program. Serpentine can convert flac and mp3 on the fly, when making audio cds.<br />
[http://www.nero.com/ena/linux3.html nerolinux] is a non-free CD/DVD/Blu-Ray/HD-DVD recorder. k3b is a great CD/DVD writing tool for KDE (ideal for Kubuntu users). But if you are looking for GTK/Gnome alternatives, then [http://packages.ubuntu.com/gutsy/gnome/brasero brasero], [http://packages.ubuntu.com/gutsy/otherosfs/gcdw cdw/gcdw], [http://packages.ubuntu.com/gutsy/sound/gcdmaster gcdmaster], [http://packages.ubuntu.com/gutsy/gnome/graveman graveman] and [http://packages.ubuntu.com/gutsy/gnome/gnomebaker gnomebaker] might impress you.<br />
<br />
[http://packages.ubuntu.com/gutsy/otherosfs/dvdisaster dvdisaster] provides a margin of safety against data loss on CD and DVD media caused by scratches or aging media. It creates error correction data which is used to recover unreadable sectors if the disc becomes damaged at a later time.<br />
<br />
=== 互联网 ===<br />
<br />
==== Browser Plug-ins ====<br />
<br />
Ubuntu automatically installs plug-ins required to browse a site in Firefox. But if you want to install plug-ins run the following in Terminal:<br />
<br />
For Java plug-in:<br />
<br />
sudo apt-get install sun-java6-plugin<br />
<br />
For Flash plug-in:<br />
<br />
sudo apt-get install flashplugin-nonfree<br />
<br />
Or if you want to support the open source flash plugin:<br />
<br />
sudo apt-get install mozilla-plugin-gnash<br />
<br />
For VLC plug-in (automatically installs VLC also):<br />
<br />
sudo apt-get install mozilla-plugin-vlc<br />
<br />
For MPlayer plug-in (automatically installs MPlayer also):<br />
<br />
sudo apt-get install mozilla-mplayer<br />
<br />
For Real player plug-in (automatically installs helix-player):<br />
<br />
sudo apt-get install mozilla-helix-player<br />
<br />
For kaffeine plug-in (automatically installs kaffeine also):<br />
<br />
sudo apt-get install kaffeine-mozilla<br />
<br />
For image-zoom plug-in (to zoom images in a page):<br />
<br />
sudo apt-get install mozilla-imagezoom<br />
<br />
For adblock plug-in (to block ads in a web page):<br />
<br />
sudo apt-get install mozilla-firefox-adblock<br />
<br />
Gutsy includes the option to add extensions to Firefox through the Ubuntu repositories. The option to add these extensions is included by default. To see and add Ubuntu Add-ons:<br />
<br />
* In Firefox, Go to Tools &gt; Add-ons<br />
* Click "Get Ubuntu Addons"<br />
* To see all available add-ons, click the list next to "Show:" and choose "All Available Applications"<br />
* Choose whichever add-ons you want, and click "Apply Changes"<br />
* You can see which add-ons you've installed in the normal Firefox add-on box.<br />
<br />
(Note: All Ubuntu add-ons are also available through the Synaptic package manager.)<br />
<br />
===== Shockwave =====<br />
<br />
''There is no version of Shockwave for Ubuntu/Linux but WINE can be used to run it.'' ''This method will result in 2 Firefox Browsers installed on the computer.'' ''Only use the WINE version when using a website that requires it.'' ''The native version of Firefox will give better computer performance, so it should used in all other occurrences.''<br />
<br />
* Install WINE<br />
* Download and install Firefox for Windows<br />
* Download and install Shockwave for Windows<br />
<br />
==== Download Manager (Downloader for X) ====<br />
<br />
To install Downloader for X simply run:<br />
<br />
sudo apt-get install d4x<br />
<br />
or use Synaptic Package Manager under System &gt; Administration menu, to locate and install the "d4x" package.<br />
<br />
==== FTP client (FileZilla) ====<br />
<br />
FileZilla is a powerful FTP client that came from windows enviroment. Reaching its third version it became cross-platform and is available through the Ubuntu Gutsy Repositories.<br />
<br />
To install FileZilla FTP client simply run:<br />
<br />
sudo apt-get install filezilla<br />
<br />
or use Synaptic Package Manager under System &gt; Administration menu, to locate and install the "filezilla" package.<br />
<br />
==== Configuring Evolution for Gmail ====<br />
<br />
Visit http://mail.google.com/mail/ and click settings (should be in top right corner). Select Forwarding and POP/IMAP.<br />
<br />
* If you want to use POP, select either "Enable POP for all mail (even mail that's already been downloaded)" or "Enable POP only for mail that arrives from now on".<br />
* If you want to use IMAP, select "Enable IMAP".<br />
<br />
Save changes.<br />
<br />
Open Evolution from Applications -&gt; Internet -&gt; Evolution Mail. If no mail account has been created before, a mail account setup wizard will automatically be opened. Otherwise open it from Edit -&gt; preferences -&gt; Mail Accounts -&gt; Add. Click Forward. Enter your email address for Gmail (including @gmail.com). Click Forward.<br />
<br />
* If you have enabled POP from Gmail set "Server Type" to POP, "Server" to pop.gmail.com, and "Use Secure Connection" to "SSL encryption".<br />
* If you have enabled IMAP from Gmail, set "Server Type" to IMAP, "Server" to imap.gmail.com, and "Use Secure Connection" to "SSL encryption".<br />
<br />
Click Forward. Click Forward. Set "Server" to smtp.gmail.com, and "Use Secure Connection" to "SSL encryption". Click Forward. Click Forward. Click Apply.<br />
<br />
Note that IMAP support for GMAIL is being rolled-out currently (Oct. 2007) but is not available to everyone with a GMAIL account yet. So use POP until IMAP is available for every user.<br />
<br />
==== SwiftFox ====<br />
<br />
Swiftfox is the Firefox web browser, but built with optimizations to increase speed on specific CPU types. It is compatible with all Firefox extensions and themes, and uses the same settings location as Firefox, so you can use both transparently.<br />
<br />
Instructions from [http://getswiftfox.com/debian.htm getswiftfox.com]<br />
<br />
* Add the Swiftfox repository<br />
<br />
sudo gedit /etc/apt/sources.list<br />
<br />
* Add this line at the bottom<br />
<br />
deb http://getswiftfox.com/builds/debian unstable non-free<br />
<br />
* Update apt sources<br />
<br />
sudo apt-get update<br />
<br />
* Check your CPU compatibility [http://getswiftfox.com/proc.htm here]<br />
* Install your version of Swiftfox<br />
<br />
sudo apt-get install swiftfox-pentium4<br />
<br />
* Run with<br />
<br />
Programs &gt; Internet &gt; Swiftfox<br />
<br />
* There is also an [[http://www.getswiftfox.com/installer.htm installer]] available that is distro independent. It is a script that downloads and installs Swiftfox in the /opt directory and attempts to use existing Firefox plugins. The installer is probably the best way for most non-Ubuntu and non-Debian users to install Swiftfox.<br />
<br />
==== Azureus (Java BitTorrent client) ====<br />
<br />
The simplest way to install Azureus is:<br />
<br />
sudo apt-get install [http://packages.ubuntu.com/gutsy/net/azureus azureus] <br />
<br />
But it has lots of dependencies. An alternate method is discussed [http://azureus.sourceforge.net/howto_linux.php here]. Additionally you can create a file /usr/share/applications/Azureus.desktop containing the following lines to make it appear in the main menu:<br />
<br />
[Desktop Entry]<br />
Encoding=UTF-8<br />
Type=Application<br />
Terminal=false<br />
Name=Azureus<br />
Exec=/usr/local/azureus/azureus<br />
Comment=Java BitTorrent client<br />
Categories=Application;Network;<br />
MimeType=application/x-bittorrent;<br />
Icon=/usr/local/azureus/Azureus.png<br />
<br />
(here it is assumed that azureus is installed in /usr/local directory)<br />
<br />
Update: A brand-new Azureus package is now available in gutsy-backports, which is highly preferable to the version in the main repositories. It fixes many stability problems and is compiled using icedtea/Java 7. By the time you read this, it may be available in the main repositories. Therefore you might want to make sure you have the gutsy-backports repository enabled before installing azureus via apt-get.<br />
<br />
==== Deluge (A lightweight BitTorrent client written in python) ====<br />
<br />
If you want a client with lower memory and CPU usage than Azureus you might want to try out Deluge. However, due to stability problems with the version available in the [http://packages.ubuntu.com/gutsy/net/deluge-torrent Ubuntu repository], it's probably better to install the latest version using the handy Gutsy-specific package from [http://deluge-torrent.org/downloads-ubuntu the official Deluge website]. To install, just click on the debian package for your version and architecture ('''i386''' for 32-bit systems and '''x86_64''' for 64-bit systems) and choose to run it with GDebi package installer.<br />
<br />
==== DC++ client (Linuxdcpp) ====<br />
<br />
* Install:<br />
<br />
sudo apt-get install linuxdcpp<br />
<br />
* Then go<br />
<br />
Main Menu-&gt;Intenet-&gt;DC++<br />
<br />
=== 多媒体播放器 ===<br />
<br />
==== 怎样安装 Mplayer 和 Multimedia Codecs(解码器) ====<br />
<br />
&nbsp;&nbsp; 安装 mplayer 和 codecs的简单向导<br />
<br />
* [http://www.ubuntugeek.com/install-mplayer-and-multimedia-codecs-libdvdcss2w32codecs-in-ubuntu-710-gutsy-gibbon.html Mplayer 和 Multimedia Codecs的安装指导手册]<br />
<br />
* 从[http://sourceforge.net/project/showfiles.php?group_id=185512 这里] 下载 [http://smplayer.sourceforge.net/ SMPlayer] (MPlayer的一个很棒的前端) 然後双击安装它。 smplayer这个前端也可以在软件包管理器中安装。<br />
<br />
===== &nbsp; 关于64位版本 Mplayer 对 wmv9 格式支持问题<br> =====<br />
<br />
&nbsp;&nbsp;&nbsp; AMD64版本的Mplayer不能正确的播放wmv9格式的文件。 要播放wmv9,你需要安装32位版本的mplayer, 和所有需要的解码器.。相较于我新安装的Gutsy,我不需要额外安装它所依赖的库文件,这让配置mplayer的工作简单多了。这就是说,做完这些步骤後你就可以随时观赏wmv9的文件了。<br />
<br />
'''下载&nbsp; mplayer32 for Edgy 的版本 (被证明能稳定地工作) 放到临时的文件夹中。'''<br />
<br />
mkdir mplayer32temp<br />
cd mplayer32temp<br />
wget http://folk.ntnu.no/grannas/debs/mplayer32_20070130-1_amd64.deb<br />
<br />
'''解开你刚才下载的这个压缩包,放到合适的地方''' ''(按 'n'当 问你是否要为文件更换位置)''<br />
<br />
sudo dpkg -x mplayer32_20070130-1_amd64.deb ./<br />
sudo mv -i usr/bin/* /usr/bin/<br />
sudo mv -i usr/lib32/* /usr/lib32/<br />
<br />
'''从mplayerrhq 获取最新的 win32 codecs (下面命令中是10月7日版本, 2007), 解压缩然後安装''' ''(同样, 在问到更换位置时按'n' )''<br />
<br />
wget http://www3.mplayerhq.hu/MPlayer/releases/codecs/essential-20071007.tar.bz2<br />
tar jxfv essential-20071007.tar.bz2<br />
sudo mv -i essential-20071007/* /usr/lib/win32/<br />
<br />
'''播放 wmv9 影片.(享受它)'''<br />
<br />
mplayer32 foobar.wmv<br />
<br />
<br><br />
<br />
==== 怎样安装 amaroK 多媒体播放器 ====<br />
<br />
* 注意: KDE 环境下, Amarok 已经默认安装 。<br />
<br />
sudo apt-get install amarok<br />
<br />
* 从菜单启动:<br />
<br />
Applications -&gt; Sound &amp; Video -&gt; amaroK<br />
<br />
====== 怎样卸载 amaroK ======<br />
<br />
sudo apt-get --purge autoremove amarok<br />
<br />
====怎样获得MP3文件播放时的鼠标滑过预览 ====<br />
<br />
sudo apt-get install mpg321<br />
sudo apt-get install ubuntu-restricted-extras<br />
sudo apt-get install pulseaudio<br />
sudo apt-get install pulseaudio-esound-compat<br />
sudo apt-get install libasound2-plugins<br />
<br />
这个方法可能会破坏Skype软件的声音系统<br />
<br />
你也能通过下面的步骤实现鼠标滑过预览:<br />
<br />
sudo apt-get install mpg321<br />
sudo apt-get install mpg123-esd<br />
sudo apt-get install vorbis-tools<br />
sudo apt-get install esound<br />
sudo apt-get install ubuntu-restricted-extras<br />
<br />
这样系统中的Skype会保持正常功能<br />
<br />
==== 怎样安装VLC媒体播放器 ====<br />
<br />
sudo apt-get install vlc<br />
<br />
卸载VLC媒体播放器:<br />
<br />
sudo apt-get --purge autoremove vlc<br />
<br />
==== 怎样安装 Banshee 音乐管理和播放器<br> ====<br />
<br />
sudo apt-get install banshee<br />
<br />
卸载:<br />
<br />
sudo apt-get --purge autoremove banshee<br />
<br />
==== How to encode/decode audios ====<br />
<br />
There is a great command line tool, sox which not just a ordinary encoder/decoder but a good composer. Read its manual for more information.<br />
<br />
''Input(s) → Balancing → Combiner → Effects → Output''<br />
<br />
sudo apt-get install sox<br />
<br />
sox cannot handle Real Audio format. For that you need mplayer which converts a .rm file to a .wav file and then use sox to convert wave file to other file.<br />
<br />
mplayer -ao pcm:file=output.wav input.rm<br />
<br />
==== How to encode/decode videos ====<br />
<br />
mencoder, avidemux, transcode, ffmpeg2theora, etc. are some video converting tools. Read their manuals for information.<br />
<br />
sudo apt-get install mencoder avidemux transcode ffmpeg2theora<br />
<br />
==== How to edit audios ====<br />
<br />
sudo apt-get install lmms<br />
sudo apt-get install audacity<br />
<br />
==== How to edit videos ====<br />
<br />
sudo apt-get install ubuntustudio-video<br />
<br />
==== Text-to-Speech ====<br />
<br />
Visit https://help.ubuntu.com/community/TextToSpeech<br />
<br />
=== Programming / Web Development ===<br />
<br />
==== Quanta Plus ====<br />
<br />
(Quanta is a KDE application, but also works on GNOME.)<br />
To install Quanta, HTML/XML/PHP/Etc Web Creation Software:<br />
<br />
sudo apt-get install quanta kompare kxsldbg cervisia<br />
<br />
Applications > Programming > Quanta Plus<br />
<br />
==== Netbeans IDE ====<br />
Netbeans is a platform independent IDE for Java. But it also supports C/C++, Ruby, portals and lots of other stuffs as plug-ins. At the point of writing, version 5.5.1 is the latest stable release and can be installed by:<br />
sudo apt-get install netbeans5.5<br />
Alternately you can download [http://www.netbeans.org/community/releases/60/index.html Netbeans 6.0] and install it manually. The size of the installation package varies from 11 MB to 200 MB.<br />
<br />
===== Netbeans with Web & Java EE pack =====<br />
If you want to use NetBeans for web development and want to integrate with Java EE, download the "Netbeans with Web & Java EE" pack. The plug-in mechanism of installing additional modules are not recommended as it installs it on user directory (~/.netbeans/6.0beta2/modules/) rather than system-wide installation directory (/usr/local/netbeans-6.0beta2/nb6.0/modules/).<br />
<br />
Netbeans with Web & Java EE pack comes with 2 built in runtime environments:<br />
* GlassFish V2 Build 58g<br />
* Apache Tomcat 6.0.14<br />
Those are ideal for both development and production use. Thus you do not have to install either Sun Java Application Server of Apache Tomcat separately. Also uninstalling Netbeans will not uninstall them. You have to uninstall them separately.<br />
<br />
But in case you want to install the servers separately, you typically have to run Netbeans as root.<br />
Alternately, you can also change the configuration files' owner/group and permissions of Tomcat and GlassFish to work with Netbeans.<br />
<br />
==== Eclipse IDE ====<br />
[http://packages.ubuntu.com/gutsy/devel/eclipse Eclipse IDE] is an alternative of [http://packages.ubuntu.com/gutsy/devel/netbeans5.5 Netbeans IDE]. Actually, it is somewhat more popular among Linux users. You can install eclipse directly from [http://www.eclipse.org/downloads/ Eclipse website] or can install it using apt-get:<br />
sudo apt-get install eclipse<br />
<br />
==== Anjuta IDE ====<br />
[http://anjuta.sourceforge.net/ Anjuta] is an IDE used primarily for C/C++ development. Not as robust as other itegrated development environments. However, tt does feature some useful plugins that provide functionality that most other IDE's have. (GUI development, project wizards, etc.)<br />
sudo apt-get install anjuta<br />
<br />
=== Utilities ===<br />
<br />
==== Compression tools ====<br />
Zip, Gzip and Bzip2 are the most popular compression tools available in almost every every Linux. But of late two new compression tools available: p7zip (http://7-zip.org/), ace and rar (http://www.rarlab.com/). 7-zip is a open-source project, but rar and ace are not.<br />
<br />
sudo apt-get install rar unrar<br />
sudo apt-get install p7zip-full<br />
sudo apt-get install unace<br />
<br />
Ark is the compression tool for kde, and has support for more formats including rar.<br />
<br />
sudo apt-get install ark<br />
<br />
==== Clipboard Manager (Glipper) ====<br />
<br />
To install Glipper simply run:<br />
sudo apt-get install glipper<br />
or use Synaptic Package Manager under System > Administration menu, to locate and install the "glipper" package.<br />
<br />
==== Password Manager (KeePassX) ====<br />
<br />
KeePass is a crossplatform password manager.<br />
To install it simply run:<br />
sudo apt-get install keepassx<br />
or use Synaptic Package Manager under System > Administration menu, to locate and install the "keepassx" package.<br />
<br />
==== How to fix/integrate bluetooth with nautilus ====<br />
<br />
On Some systems bluetooth "Browse Device" fuction doesn't work properly.<br />
<br />
To Fix This:<br />
<br />
sudo apt-get install gnome-vfs-obexftp<br />
<br />
or<br />
<br />
sudo aptitude install gnome-vfs-obexftp<br />
<br />
==== 怎样安装 Google Earth (地球仪软件) ====<br />
<br />
Google earth是一个世界地图查看器. 它可以3D的形式显示的建筑以及桥梁. 默认的时候它是显示的是静态的图片. 最新版式中包含了鸟瞰世界的功能. 点击 [http://earth.google.com/ 这里] 查看更多相关的信息.<br />
<br />
Google Earth is available in the Medibuntu Package archive. To install google-earth from Medibuntu:<br />
<br />
echo "deb http://packages.medibuntu.org/ gutsy free non-free" | sudo tee -a /etc/apt/sources.list<br />
wget -q http://packages.medibuntu.org/medibuntu-key.gpg -O- | sudo apt-key add - &amp;&amp; sudo apt-get update<br />
sudo aptitude install googleearth<br />
<br />
除此之外你还可以直接从Google下载安装程序进行安装:<br />
<br />
[http://earth.google.com/download-earth.html 下载] Google Earth到你的桌面. 打开终端并运行n:<br />
<br />
chmod +x Desktop/GoogleEarthLinux.bin<br />
sudo Desktop/GoogleEarthLinux.bin<br />
<br />
按照说明完成安装. 卸载Google earth,执行以下命令:<br />
<br />
sudo su<br />
/opt/google-earth/uninstall<br />
<br />
==== 怎样安装 Picasa (Google 开发的照片管理工具) ====<br />
<br />
Picasa 是一款帮助你立即查找、编辑和共享在你的电脑上的所有照片的软件. Picasa makes advanced editing simple by putting one-click fixes and powerful effects at your fingertips. And Picasa makes it a snap to share your pictures – you can email, print photos home, and even post pictures on your own blog. You can install it in four ways:<br />
<br />
* [http://picasa.google.com/linux/download.html 下载] 直接下载 Debian/Ubuntu (DEB包) 安装.<br />
* 访问 http://www.google.com/linuxrepositories/ 阅读怎样添加 Google 源的说明.然后运行:<br />
<br />
sudo apt-get install picasa<br />
<br />
* [http://picasa.google.com/linux/download.html 下载] 自解压安装程序并按照说明配置 Google Earth.<br />
* 安装Windows (需要WINE支持).<br />
<br />
==== How to install Google Desktop (search utility) ====<br />
Google Desktop is a desktop search application that gives you easy access to information on your computer and from the web. Desktop makes searching your own email, files, music, photos, and more as easy as searching the web with Google. You can download Google Desktop in two ways:<br />
* Download and install the Debian package directly from http://desktop.google.com/en/linux/download.html<br />
* Visit http://www.google.com/linuxrepositories/ and see the instructions about how to add Google repository. Then run:<br />
sudo apt-get install google-desktop-linux<br />
<br />
==== How to install ntop (network monitoring utility) ====<br />
Ntop is a network monitoring utility. You can monitor local devices as well as devices with Netflow output (like a Cisco router). It's very easy to install too, open a terminal and type:<br />
<br />
sudo apt-get install ntop<br />
<br />
Now that it is installed, you have to do some basic setup. Once again, in the terminal, type:<br />
<br />
sudo ntop<br />
<br />
You will be asked for a password, and then to confirm the password. This will be the admin password for the ntop web interface. Next, we want to install "Dot", which is a part of the "Graphviz" package:<br />
<br />
sudo apt-get install graphviz<br />
<br />
Now, again in the terminal type:<br />
<br />
sudo /etc/init.d/ntop start<br />
<br />
Thats it! ntop is running! Try browsing to http://127.0.0.1:3000 to get started. You will have to add the path to dot to the ntop configuration. <br />
<br />
Admin -> Configure (Enter admin user/pass) -> Preferences<br />
<br />
At the bottom add a new preference:<br />
<br />
dot.path /usr/bin/dot<br />
<br />
You should now have a network map for the local interface under IP -> Local -> Network Traffic Map<br />
<br />
Visit http://www.ntop.org/ for more information.<br />
<br />
==== How to install applications for study of religious texts ====<br />
<br />
* For study of Bible see [http://gnomesword.sourceforge.net/ GnomeSword]<br />
* For study of Quran see [http://sourceforge.net/projects/zekr/ Zekr]<br />
<br />
===== How to install Gnomesword (Bible study program)=====<br />
*Read [[#General Notes]] <br />
*Read [[#How to add extra repositories]]<br />
*This installs the english version of the program.<br />
<br />
sudo apt-get install gnomesword sword-language-pack-en sword-text-web<br />
<br />
*If you require other languages type:<br />
<br />
sudo apt-cache search bible<br />
<br />
*Take a look at the sword-language-pack's and the sword-text's for additional languages and install as needed. <br />
<br />
Gnomesword is found under Applications-->Accessories.<br />
<br />
*Under KDE, use kio-sword instead of Gnomesword:<br />
<br />
sudo apt-get install kio-sword<br />
<br />
===== How to install a Quran researching tool (Zekr) ===== <br />
[http://siahe.com/zekr/ Zekr] is an open platform Quran study tool for simply browsing and researching on the Quran. <br />
<br />
sudo wget http://siahe.com/zekr/apt/sources.list.d/gutsy.list -O /etc/apt/sources.list.d/zekr.list <br />
wget -q http://siahe.com/zekr/apt/zekr.debian.gpg -O- | sudo apt-key add - <br />
sudo apt-get update <br />
sudo apt-get install zekr ttf-me-quran ttf-sil-scheherazade<br />
sudo apt-get install ttf-farsiweb flashplugin-nonfree<br />
<br />
*Zekr comes with extra Quran translations in Persian, Urdu, French, Russian, English, Turkish, Bosnian, Dutch packaged as zekr-quran-translations-XY where XY is the ISO code of the language. Run<br />
apt-cache search zekr-quran-translations<br />
<br />
in a shell to list them all. Then among the result list choose the appropriate package and install it: For example if you want to install English Quran Translations run the following command:<br />
sudo apt-get install zekr-quran-translations-en<br />
<br />
*For more info see [http://www.siahe.com/zekr/wiki/index.php?title=Installation#Ubuntu.2FDebian Zekr wiki].<br />
<br />
==== How to install applications for Education ====<br />
===== How to install Mnemosyne =====<br />
<br />
[http://mnemosyne-proj.sourceforge.net/ Mnemosyne] is a sophisticated free flash-card tool which optimizes your learning process. To install the latest version in the repositories run the following command<br />
sudo apt-get install mnemosyne<br />
or use Synaptic Package Manager under System => Administration menu, to locate and install the mnemosyne package.<br />
<br />
To install the latest version (the one in the repository is somewhat out of date) first install the dependencies:<br />
sudo apt-get install python python-pygame python-qt3 python-support python-xml<br />
then download the latest source package from [http://mnemosyne-proj.sourceforge.net/ here]:<br />
wget http://superb-east.dl.sourceforge.net/sourceforge/mnemosyne-proj/mnemosyne-0.9.10.tgz<br />
(correct as of 11 Nov 2007)<br />
Decompress it:<br />
tar -xzf mnemosyne-0.9.10.tgz<br />
go to the directory<br />
cd mnemosyne-0.9.10/<br />
run this command to install it:<br />
sudo python setup.py install<br />
To create a launcher for it in your Applications Menu:<br />
System => Preferences => Main Menu => Education (or wherever) => New Item:<br />
Name: Mnemosyne<br />
Command: mnemosyne<br />
<br />
== '''''安全&nbsp;''''' ==<br />
<br />
=== 怎样重设用户密码 ===<br />
<br />
sudo apt-get install john<br />
sudo john /etc/shadow<br />
<br />
=== 怎样重设ROOT用户的密码 ===<br />
<br />
重启Ubuntu进入安全模式并输入:<br />
<br />
passwd<br />
<br />
<br />
来修ROOT用的密码<br />
<br />
=== 怎样创建或修改GRUB启动菜单的密码 ===<br />
<br />
请点击[http://ubuntuguide.org/wiki/Ubuntu:Feisty#How_to_change_GRUB_menu_password_if_forgotten 这里].<br />
<br />
=== 如果忘记GRUB启动菜单的密码怎样修改root用户的密码 ===<br />
<br />
点击 [http://ubuntuguide.org/wiki/Ubuntu:Feisty#How_to_use_Ubuntu_Installation_CD.2C_to_gain_root_user_access 这里]. To prevent this, you have to set a bios password and set hard disk as the first boot device.<br />
<br />
== '''''服务器<br>''''' ==<br />
<br />
=== Samba 服务器<br> ===<br />
<br />
==== 怎样安装 Samba 服务器来共享文件以及文件夹<br> ====<br />
<br />
* 阅读 [[|#General Notes]]<br />
* 阅读 [[|#How to add extra repositories]]<br />
<br />
sudo apt-get install samba smbfs<br />
<br />
==== 怎样添加/修改/删除网络用户 ====<br />
<br />
* 阅读 [[|#General Notes]]<br />
* 阅读 [[|#How to install Samba Server for files/folders sharing service]]<br />
* To add network user <br />
** Read [[|#How to add/edit/delete system users]]<br />
<br />
sudo smbpasswd -a system_username<br />
gksudo gedit /etc/samba/smbusers<br />
<br />
* <br />
** Insert the following line into the new file<br />
<br />
system_username = "network username"<br />
<br />
* <br />
** Save the edited file<br />
* To edit network user<br />
<br />
sudo smbpasswd -a system_username<br />
<br />
* To delete network user<br />
<br />
sudo smbpasswd -x system_username<br />
<br />
==== How to share home folders with read only or read/write permission (Authentication=Yes) ====<br />
<br />
* Read [[|#General Notes]]<br />
* Read [[|#How to install Samba Server for files/folders sharing service]]<br />
<br />
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup<br />
gksudo gedit /etc/samba/smb.conf<br />
<br />
* Find this line<br />
<br />
...<br />
; security = user<br />
...<br />
<br />
* Replace with the following lines<br />
<br />
security = user<br />
username map = /etc/samba/smbusers<br />
<br />
* Remove the&nbsp;; in front of the following lines (there will text in between explaining what they do):<br />
<br />
;[homes]<br />
;comment = Home Directories<br />
;browseable = no<br />
;valid users = %S<br />
;writable = yes<br />
<br />
* <br />
** If you want other network users to be able to edit to the folder then change<br />
<br />
# By default, the home directories are exported read-only. Change next<br />
# parameter to 'yes' if you want to be able to write to them.<br />
&nbsp;; writable = no<br />
<br />
* <br />
** Replace with the following lines<br />
<br />
writable = yes<br />
<br />
* Save the edited file<br />
* Read [[|#How to add/edit/delete network users]]<br />
<br />
sudo testparm<br />
sudo /etc/init.d/samba restart<br />
<br />
==== How to share group folders with read only permission (Authentication=Yes) ====<br />
<br />
* Read [[|#General Notes]]<br />
* Read [[|#How to install Samba Server for files/folders sharing service]]<br />
<br />
sudo mkdir /home/group<br />
sudo chmod 777 /home/group/<br />
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup<br />
gksudo gedit /etc/samba/smb.conf<br />
<br />
* Find this line<br />
<br />
...<br />
; security = user<br />
...<br />
<br />
* Replace with the following lines<br />
<br />
security = user<br />
username map = /etc/samba/smbusers<br />
<br />
* Append the following lines at the end of file<br />
<br />
[Group]<br />
comment = Group Folder<br />
path = /home/group<br />
public = yes<br />
writable = no<br />
valid users = system_username1 system_username2<br />
create mask = 0700<br />
directory mask = 0700<br />
force user = nobody<br />
force group = nogroup<br />
<br />
* Or if you want other network users to be able to edit to the folder change<br />
<br />
writable = yes<br />
<br />
* Save the edited file<br />
* Read [[|#How to add/edit/delete network users]]<br />
<br />
sudo testparm<br />
sudo /etc/init.d/samba restart<br />
<br />
==== How to share public folders with read only or read/write permissions (Authentication=Yes) ====<br />
<br />
* Read [[|#General Notes]]<br />
* Read [[|#How to install Samba Server for files/folders sharing service]]<br />
<br />
sudo mkdir /home/public<br />
sudo chmod 777 /home/public/<br />
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup<br />
gksudo gedit /etc/samba/smb.conf<br />
<br />
* Find this line<br />
<br />
...<br />
; security = user<br />
...<br />
<br />
* Replace with the following lines<br />
<br />
security = user<br />
username map = /etc/samba/smbusers<br />
<br />
Then follow either 1. or 2.<br />
<br />
* 1. Save the edited file.<br />
<br />
sudo testparm<br />
sudo /etc/init.d/samba restart<br />
<br />
* 1. Right click the folder and select 'Share folder'. Then change 'Do not share' to share with the network you would like.<br />
* 1. In Share Properties note the read box. If you want other network users to be able to edit to the folder un-tick this.<br />
<br />
'''OR'''<br />
<br />
* 2. Append the following lines at the end of file<br />
<br />
[public]<br />
comment = Public Folder<br />
path = /home/public<br />
public = yes<br />
writable = yes<br />
create mask = 0777<br />
directory mask = 0777<br />
force user = nobody <br />
force group = nogroup<br />
<br />
* 2. Or if you want other network users to be able to edit to the folder<br />
<br />
writable = yes<br />
<br />
* 2. Save the edited file<br />
* 2. Read [[|#How to add/edit/delete network users]]<br />
<br />
sudo testparm<br />
sudo /etc/init.d/samba restart<br />
<br />
<br><br />
<br />
==== How to share public folders with read only or read/write permissions (Authentication=No) ====<br />
<br />
* Read [[|#General Notes]]<br />
* Read [[|#How to install Samba Server for files/folders sharing service]]<br />
<br />
sudo mkdir /home/public<br />
sudo chmod 777 /home/public/<br />
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup<br />
gksudo gedit /etc/samba/smb.conf<br />
<br />
* Find this line<br />
<br />
...<br />
; security = user<br />
...<br />
<br />
* Replace with the following line<br />
<br />
security = share<br />
<br />
Then follow either 1. or 2.<br />
<br />
* 1. Save the edited file.<br />
<br />
sudo testparm<br />
sudo /etc/init.d/samba restart<br />
<br />
* 1. Right click the folder and select 'Share folder'. Then change 'Do not share' to share with the network you would like.<br />
* 1. In Share Properties note the read box. If you want other network users to be able to edit to the folder un-tick this.<br />
<br />
'''OR'''<br />
<br />
* 2. Append the following lines at the end of /etc/samba/smb.conf (for a read-only folder)<br />
<br />
[public]<br />
comment = Public Folder<br />
path = /home/public<br />
public = yes<br />
writable = no<br />
create mask = 0777<br />
directory mask = 0777<br />
force user = nobody<br />
force group = nogroup<br />
<br />
* 2. Or if you want other network users to be able to edit to the folder<br />
<br />
writable = yes<br />
<br />
<br><br />
<br />
* 2. Save the edited file<br />
<br />
sudo testparm<br />
sudo /etc/init.d/samba restart<br />
<br />
==== How to print on remote Ubuntu machine via samba ====<br />
<br />
* Read [[|#Print Server (cupsd)]]<br />
* Make sure your Ubuntu printers are configured properly.<br />
<br />
sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.backup<br />
gedit /etc/samba/smb.conf<br />
<br />
:''Find the following lines''<br />
<br />
...<br />
# printing = cups<br />
# printcap name = cups<br />
...<br />
<br />
:''and uncomment them.''<br />
<br />
printing = cups<br />
printcap name = cups<br />
<br />
:''Restart cups server''<br />
<br />
sudo /etc/init.d/cupsys restart<br />
<br />
:''Now printers working on your Ubuntu machine should be acessible via samba.''<br />
<br />
<br><br />
<br />
=== iTunes-compatible Media server ===<br />
<br />
If you want iTunes-compatible Media server in Ubuntu try this<br />
<br />
* [http://www.ubuntugeek.com/howto-setup-itunes-compatible-media-server-in-ubuntu.html iTunes-compatible Media server Step By Step Guide]<br />
<br />
=== GLPI - IT and asset Managemet Software ===<br />
<br />
If you want IT and asset Managemet Software in Ubuntu try this<br />
<br />
* [http://www.ubuntugeek.com/glpi-it-and-asset-managemet-software.html IT and asset Managemet Software Setup Guide]<br />
<br />
=== PostgreSQL ===<br />
<br />
Postgresql is a well supported and open source database server. There is a long debate regarding whether MySQL is better or PostgreSQL. Actually, there are similar debates like it: Gnome vs KDE, Perl vs Python, PHP vs JSP, Java vs .Net (or Mono). But from installation point of view, it has been seen that PostgreSQL is lighter and requires less dependency than MySQL.<br />
<br />
==== Installing PostgreSQL ====<br />
<br />
To Install PostgreSQL (both client and server):<br />
<br />
sudo apt-get install postgresql-8.2<br />
<br />
To install PostgreSQL documentation:<br />
<br />
sudo apt-get install postgresql-doc-8.2<br />
<br />
To install JDBC3 driver for PostgreSQL:<br />
<br />
sudo apt-get install libpg-java<br />
<br />
To enable php support for PostgreSQL:<br />
<br />
sudo apt-get install php5-pgsql<br />
<br />
To do administrative works graphically:<br />
<br />
sudo apt-get install pgadmin3<br />
<br />
To do web-based administrative works:<br />
<br />
sudo apt-get install phppgadmin<br />
<br />
==== Configuring PostgreSQL ====<br />
<br />
To use postgresql, create a database instance and a user/role:<br />
<br />
sudo -u postgres createdb $USER<br />
sudo -u postgres createuser $USER<br />
<br />
Making both database instance and user/role as your login ID lets you to start PostgreSQL client very easily:<br />
<br />
psql<br />
<br />
To login as the administrator:<br />
<br />
sudo -u postgres psql<br />
<br />
To be able to login from remote machine or from PHP or through JDBC driver, you have to set your password from PostgreSQL client (psql):<br />
<br />
ALTER USER user PASSWORD 'pass';<br />
<br />
replace user and pass by your user name and password respectively. To test whether remote login works or not, run:<br />
<br />
psql -h host -p 5432 -d database -U user<br />
<br />
Visit http://www.php.net/manual/en/ref.pgsql.php to see how php works with PostgreSQL.<br />
<br />
==== Using pgadmin3 ====<br />
<br />
To configure PostgreSQL using pgadmin3:<br />
<br />
* Open psql client as administrator postgres (see above Configure PostgreSQL)<br />
* Change the password for the administrator postgres (see above)<br />
* Open Applications -&gt; System Tools -&gt; pgAdmin III from main menu.<br />
* Open File -&gt; Add Server...<br />
* Set Address to localhost or 127.0.0.1 (or something you have set)<br />
* Give a Description by which this connection will be identified.<br />
* Accept default port (5432), SSL (_blank_), Maintenance DB (postgres) and Username (postgres)<br />
* set the Password that you have set earlier. Click OK.<br />
<br />
==== Using phppgadmin ====<br />
<br />
To configure PostgreSQL using phppgadmin run:<br />
<br />
sudo ln -s /usr/share/phppgadmin /var/www/phpPgAdmin<br />
<br />
Set a password for administrator: postgres (see [[|#Configuring_PostgreSQL]]).<br />
<br />
Open /etc/phppgadmin/config.inc.php and change:<br />
<br />
$conf['extra_login_security'] = false;<br />
<br />
It will enable administrative login. Finally visit http://localhost/phpPgAdmin/ to login.<br />
<br />
==== Using PostgreSQL with OpenOffice ====<br />
<br />
* Open Applications -&gt; Office -&gt; OpenOffice.org Database.<br />
* Select 'Connect to an existing database'. From the list select JDBC and click Next.<br />
* Make Datasource URL to:<br />
<br />
jdbc:postgresql://localhost/database<br />
<br />
Replace localhost by your hostname, database by the database instance you have created.<br />
<br />
* Set JDBC driver class to:<br />
<br />
org.postgresql.Driver<br />
<br />
* Click 'Test class' to make sure JDBC driver class connects Datasource URL properly. Click Next.<br />
* Type your User name and select 'Password required' option.<br />
* Click Test connection. A popup dialog will appear. Enter your password and click OK.<br />
* If everything works properly, then a confirmation dialog will appear.<br />
* Click Next. Some optional settings will appear. Click Finish to complete.<br />
<br />
==== Using PostgreSQL JDBC driver ====<br />
<br />
The following Java code is a simple program to illustrate how JDBC can be used with Postgresql:<br />
<br />
// pgVersion.java<br />
<br />
import java.sql.*;<br />
<br />
class pgVersion {<br />
public static void main(String arg[]) throws Exception {<br />
if(arg.length!=4) {<br />
System.out.println("usage: java pgVersion host database user password");<br />
return;<br />
}<br />
// Class.forName("org.postgresql.Driver");<br />
Driver driver=new org.postgresql.Driver();<br />
DriverManager.registerDriver(driver);<br />
String url="jdbc:postgresql://"+arg[0]+"/"+arg[1]+"?user="+arg[2]+"&amp;password="+arg[3];<br />
Connection conn=DriverManager.getConnection(url);<br />
Statement stat=conn.createStatement();<br />
ResultSet rs=stat.executeQuery("SELECT version()");<br />
rs.next();<br />
System.out.println(rs.getString("version"));<br />
rs.close();<br />
stat.close();<br />
conn.close();<br />
DriverManager.deregisterDriver(driver);<br />
}<br />
}<br />
<br />
You can run the former code in two ways:<br />
<br />
* Using CLASSPATH environment variable:<br />
<br />
export CLASSPATH=/usr/share/java/postgresql.jar:.<br />
javac pgVersion.java<br />
java pgVersion host database user password<br />
<br />
Here host, database, user and password should be substituted according to your configuration. To make $CLASSPATH permanent, you have to save the command in either /etc/bash.bashrc or ~/.bashrc.<br />
<br />
* Alternately, you can run as follows:<br />
<br />
javac -classpath /usr/share/java/postgresql.jar pgVersion.java<br />
java -classpath /usr/share/java/postgresql.jar:. pgVersion host database user password<br />
<br />
The output is as expected:<br />
<br />
PostgreSQL 8.2.5 on i486-pc-linux-gnu, compiled by GCC cc (GCC) 4.1.3 20070831 (prerelease) (Ubuntu 4.1.2-16ubuntu1)<br />
<br />
=== MySQL ===<br />
<br />
According to [http://en.wikipedia.org/wiki/Comparison_of_relational_database_management_systems this page] both MySQL and PostgreSQL are good alternatives of proprietary softwares like DB2, Sybase, Oracle, SQL Server etc.<br />
<br />
To install both the server and client:<br />
<br />
sudo apt-get install mysql-server-5.0<br />
<br />
[http://db4free.net/ db4free] is a great database server for tryout different things remotely. If you want to use this site, then you do not have to install MySQL server. Just install the [http://packages.ubuntu.com/gutsy/misc/mysql-client-5.0 client], [http://packages.ubuntu.com/gutsy/misc/mysql-doc-5.0 documentation] and [http://packages.ubuntu.com/gutsy/web/php5-mysql php] or [http://packages.ubuntu.com/gutsy/libs/libmysql-java jdbc] connectivity.<br />
<br />
=== IBM DB2 ===<br />
<br />
Visit [http://www.ibm.com/software/ here] for software available from IBM. According to [http://www.ibm.com/software/data/db2/linux/validate/ this page], DB2 can be installed on ubuntu.<br />
<br />
==== Download ====<br />
<br />
To download DB2 trial [http://www.ibm.com/software/data/db2/9/download.html visit here] and select: IBM DB2 9.5 Data Server trial. Then you have to sign in (create an account if not already created) in order to download. Choose either of the following:<br />
<br />
* DB2 9.5 data server trial for Linux(R) on AMD64 and Intel(R) EM64T systems (x64)<br />
* DB2 9.5 data server trial for Linux(R) on System z<br />
<br />
Then answer questions and click 'I confirm' at the bottom. Finally click 'I confirm' button to start downloading.<br />
<br />
Alternately, [http://www.ibm.com/software/data/db2/9/download.html visit here] and select: IBM DB2 9.5 Express-C. Then choose DB2 Express-C 9.5 for Linux and click continue. Then answer questions and click 'I confirm' at the bottom. Finally select either of the following:<br />
<br />
* DB2 Express-C for Linux operating system, 32-bit architecture<br />
* DB2 Express-C for Linux operating system, 64-bit architecture<br />
<br />
click 'I confirm' button to start downloading.<br />
<br />
==== Installing DB2 ====<br />
<br />
I choose 'DB2 Express-C for Linux operating system, 32-bit architecture' to demonstrate how to install. If you have chosen a different version, make necessary changes accordingly. Let's assume the downloaded file is on your home directory. Then do the following:<br />
<br />
tar -xf db2exc_950_LNX_x86.tar.gz<br />
cd ~/exp<br />
sudo apt-get install libaio1<br />
sudo ./db2setup<br />
<br />
Select 'Install a Product' from the left side of the generated window and click 'Install New'. Another window will be opened. Then following the instructions to complete the installation. You are encouraged to create new user and groups (dasusr1/dasadm1, db2inst1/db2iadm1, db2fenc1/db2fadm1) during installation.<br />
<br />
==== Uninstalling DB2 ====<br />
<br />
If you have installed with all default settings (as mentioned above) then just running the following commands would remove the db2 completely. In case you have changed something during installation, then make appropriate changes accordingly.<br />
<br />
cd /opt/ibm/db2/V9.5<br />
./instance/db2ilist<br />
sudo instance/db2idrop db2inst1<br />
sudo install/db2_deinstall -a<br />
cd &amp;&amp; sudo rm -r /opt/ibm/<br />
sudo userdel -r dasusr1<br />
sudo userdel -r db2fenc1<br />
sudo userdel -r db2inst1<br />
sudo groupdel dasadm1<br />
sudo groupdel db2fadm1<br />
sudo groupdel db2iadm1<br />
<br />
Before running those commands, please make sure:<br />
<br />
* Make sure, db2 is not running.<br />
* Identify DB2 installation directory (E.g /opt/ibm/db2/V9.5)<br />
* Identify DB2 instances (using db2ilist command, see the second command)<br />
* Drop each and every instances (using db2idrop command, third command)<br />
* If you have other IBM softwares in /opt/ibm then remove only /opt/ibm/db2 directory.<br />
* Delete user and group accounts that you have created for db2.<br />
<br />
=== Oracle database ===<br />
<br />
* Download [http://www.oracle.com/technology/software/products/database/index.html Oracle database] XE from [http://www.oracle.com/technology/software/products/database/xe/htdocs/102xelinsoft.html here]. Then follow the [http://www.oracle.com/technology/software/products/database/xe/files/install.102/b25144/toc.htm instructions] to complete the installation.<br />
* Alternately, visit [http://www.oracle.com/technology/tech/linux/install/index.html this page] to see some installation guides provided by some users. [http://www.davidpashley.com/articles/oracle-install.html This page] is particularly seems very useful. (--[[User:Tamal|Tamal]] 07:51, 14 November 2007 (EET))<br />
<br />
A problem might occur if your swap space is less than 1 GB. In that case you have to do the following:<br />
<br />
* Turn off the swap space. (run 'man swapoff' for help)<br />
* Resize the swap partition. (run 'man fdisk' and 'man cfdisk' for help)<br />
* Restart the system. (not mandatory, but recommended)<br />
* Edit the /etc/fstab file to update the UUID of the swap partition. ([[|#How_to_find_the_UUID_of_a_device]])<br />
* Turn on the swap space. (run 'man swapon' for help)<br />
<br />
=== SSH ===<br />
<br />
==== How to install SSH Server for remote administration service ====<br />
<br />
* Read [[|#General Notes]]<br />
* Read [[|#How to add extra repositories]]<br />
<br />
sudo apt-get install ssh<br />
<br />
==== How to SSH into remote Ubuntu host ====<br />
<br />
* Read [[|#General Notes]]<br />
<br />
The Ubuntu host must be running the SSH Server. Read [[|#How to install SSH Server for remote administration service]].<br />
<br />
In this example:<br />
<br />
Remote Ubuntu machine: 192.168.0.2 username is a valid user on the remote host<br />
<br />
ssh username@192.168.0.2<br />
<br />
You can tunnel to a URL as well:<br />
<br />
ssh username@foobar.dyndns.org<br />
<br />
If your LAN uses a dynamic IP to connect to the Internet, you can use a Dynamic IP service (such as DynDNS) to assign a static URL to your LAN (foobar.dyndns.org, for example). An SSH request over the Internet to your URL (e.g. foobar.dyndns.org) would then be routed by the DynDNS service to your modem/router. Your router must then be set to forward the port used for the SSH tunnel to your host machine on the LAN. (SSH tunnels generally occur by default over port 22, but it can be changed (see below)).<br />
<br />
For some humor: Read Etymology of foobar. You can explicitly select the port number (instead of port 22) for the SSH tunnel:<br />
<br />
ssh username@foobar.dyndns.org:11022<br />
<br />
However, if you do this, the host SSH server must be listening on the same port (port 11022 in the example). The port to listen to can be set in the ssdh_config file of the OpenSSH server (provided in Ubuntu) on your host. Also, your router must be configured to forward port 11022 to your OpenSSH host.<br />
<br />
==== How to change SSH Server Port Number ====<br />
<br />
* Read [[|#General Notes]]<br />
* Read [[|#How to install SSH Server for remote administration service]]<br />
<br />
Open /etc/ssh/sshd_config for editing<br />
<br />
gksu gedit /etc/ssh/sshd_config<br />
<br />
Look for the line<br />
<br />
# What ports, IPs and protocols we listen for<br />
Port 22<br />
<br />
Change 22 to the value you want, then save and restart the SSH server<br />
<br />
sudo /etc/init.d/ssh restart<br />
<br />
==== Using SSH to Port Forward ====<br />
<br />
* Read [[|#General Notes]]<br />
* The Ubuntu host must be running the SSH Server. Read [[|#How to install SSH Server for remote administration service]].<br />
* The format of the client command to create an SSH tunnel to an OpenSSH host listening on the default port 22 is:<br />
<br />
ssh -L &lt;local port&gt;:&lt;remote computer&gt;:&lt;remote port&gt; &lt;user&gt;@&lt;remote ip&gt;<br />
<br />
An example is:<br />
<br />
ssh -L 6669:94.92.10.15:6667 foowho<br />
<br />
In this example, local port 6669 on the local client computer is tunneled by encrypted SSH over the default port 22 to the router at 94.92.10.15. The router must be set up to forward port 22 to whatever the internal LAN IP (such as 192.168.0.56) of the SSH host is. The host is running OpenSSH (ssdh service) and is set to listen to port 22. It then routes the incoming data to the host port 6667, where presumably some other program is waiting for data. foowho has an account on the host running the OpenSSH server.<br />
<br />
SSH tunnels can also be established using URLs and even alternate ports. An example is:<br />
<br />
ssh -L 5900:foobar.dyndns.org:5900 foowho -p 11022<br />
<br />
In this example, local port 5900 on the client is forwarded through an SSH tunnel on port 11022 to foobar.dyndns.org. The DNS service translates foobar.dyndns.org into the appropriate WAN (Internet) IP address, where the router is listening. The router is set up to forward port 11022 to the LAN machine hosting the OpenSSH server, which is listening on port 11022. It then sends the data to whatever program is running on port 5900 on the host.<br />
<br />
* You can forward a local port to a different port on the remote host.<br />
<br />
:Example: Make port 80 (web server/browser) on the remote host at 10.0.2.10 available locally as port 81<br />
<br />
ssh -L 81:10.0.2.10:80 user@office.net<br />
<br />
* You can create secure SSH tunnels to multiple hosts using multiple ports.<br />
<br />
ssh -L 81:10.0.2.10:80 -L 82:10.0.2.20:80 -L 83:10.0.2.30:80 user@office.net<br />
<br />
Now, local port 81 locally forwards to port 80 on the host at 10.0.2.10, local port 82 forwards to port 80 on the host at 10.0.2.20 and local port 83 forwards to port 80 on the host at 10.0.2.30. In this example, user has an account on all three host machines at 10.0.2.10, 10.0.2.20, and 10.0.2.30.<br />
<br />
* Once port forwarding is set up by ssh, an application is directed to the SSH tunnel for port usage by using the loopback as the destination.<br />
<br />
:Example 1:<br />
<br />
ssh -L 81:10.0.2.10:80 user@office.net<br />
<br />
<nowiki>http://localhost:81</nowiki> or <nowiki>http://127.0.0.1/:81</nowiki> <br />
<br />
will direct a web browser to use port 81 locally, which is being redirected by SSH to port 80 on the remote host at 10.0.2.10.<br />
<br />
:Example 2:<br />
<br />
ssh -L 5900:foobar.dyndns.org:5900 foowho<br />
vncviewer 127.0.0.1 or vncviewer localhost<br />
<br />
will direct vncviewer (which uses port 5900 by default) to direct its traffic through the ssh tunnel to the host at foobar.dyndns.org, where, presumably, a VNC server is listening on port 5900.<br />
<br />
==== SSH Filesystem ====<br />
<br />
install package: sshfs, see http://fuse.sourceforge.net/sshfs.html<br />
<br />
sudo aptitude update<br />
sudo aptitude install sshfs<br />
<br />
Optionally, add user to group fuse to manage mount-point permissions.<br />
<br />
sudo adduser &lt;local user&gt; fuse<br />
<br />
(propogate new group membership: restart or open new shell, e.g., Ctrl+Alt+F1)<br />
<br />
Create writable mount point, e.g, &lt;mount point&gt; = /media/remote<br />
<br />
sudo mkdir &lt;mount point&gt;<br />
sudo chgrp fuse &lt;mount point&gt;<br />
sudo chmod 775 &lt;mount point&gt;<br />
<br />
Mount command<br />
<br />
sshfs [&lt;user&gt;@]&lt;host&gt;:[&lt;path&gt;] &lt;mount point&gt;<br />
<br />
Unmount command<br />
<br />
fusermount -u &lt;mount point&gt;<br />
<br />
=== Ubuntu 7.10 LAMP Server ===<br />
<br />
If you are looking for simple LAMP Server setup in 15min including webmin installation this is for you<br />
<br />
* [http://www.ubuntugeek.com/ubuntu-710-gutsy-gibbon-lamp-server-setup.html Ubuntu 7.10 LAMP Server Step By Step Guide]<br />
<br />
(This requires the server version of Gutsy Gibbon, not the standard desktop edition)<br />
<br />
=== How to Install Webmin ===<br />
<br />
Webmin is an browser-based administration tool for Apache, PHP, MySQL, and Much More.<br />
<br />
wget http://prdownloads.sourceforge.net/webadmin/webmin_1.370_all.deb<br />
<br />
<br />
sudo apt-get install libnet-ssleay-perl libauthen-pam-perl libio-pty-perl libmd5-perl<br />
<br />
sudo passwd root (Enter new root password, retype)<br />
<br />
sudo dpkg -i webmin_1.370_all.deb<br />
<br />
To use webmin, type the following in a browser: (Make sure to use HTTPS not HTTP)<br />
<br />
* [https://localhost:10000]<br />
<br />
=== Sun Java Application Server (Java EE) ===<br />
<br />
[http://docs.sun.com/app/docs/coll/1343.4 Official documentation]<br />
<br />
==== Installing Application Server ====<br />
<br />
Sun Java Application Server is the heart of Java EE. [http://java.sun.com/javaee/downloads/index.jsp Download] either of the following versions:<br />
<br />
* Java EE 5 SDK Update 3<br />
* Java Application Platform SDK Update 3 Beta<br />
* Sun Java System Application Server 9.1 (under individual download section)<br />
<br />
Alternately you can download GlassFish application server (community maintained):<br />
<br />
* With [http://dlc.sun.com.edgesuite.net/netbeans/6.0/beta2/ Netbeans] Web &amp; Java EE pack<br />
* Download [https://glassfish.dev.java.net/public/downloadsindex.html GlassFish] directly<br />
<br />
Make the download file executable and run as root by:<br />
<br />
chmod +x Desktop/filename<br />
sudo ./Desktop/filename<br />
<br />
Lets assume $JAVAEE_HOME indicates the installation directory. The default installation directory for Sun Java System Application Server 9.1 is /opt/SUNWappserver/. Now, either add $JAVAEE_HOME/bin in your PATH or make a link of asadmin and asant in your path by<br />
<br />
sudo ln -s $JAVAEE_HOME/bin/asadmin /usr/local/bin/asadmin<br />
sudo ln -s $JAVAEE_HOME/bin/asant /usr/local/bin/ant<br />
<br />
The command 'asadmin' is the main and most important command for Java Application server. [http://ant.apache.org/ Ant] is also useful to automate building process.<br />
<br />
==== Application Server configuration ====<br />
<br />
When Java EE installs, a domain 'domain1' is automatically installed with it in $JAVAEE_HOME/domains/ which is the default directory for all domains. Generally this directory ($JAVAEE_HOME/domains/) is not writable. So, as a unprivileged user you can create your own domain in your home directory.<br />
<br />
===== Application Server domain settings =====<br />
<br />
To create, start, stop and delete a domain in your home directory:<br />
<br />
asadmin create-domain --adminport 4848 --domaindir ~ mydomain<br />
asadmin start-domain --domaindir ~ mydomain<br />
asadmin stop-domain --domaindir ~ mydomain<br />
asadmin delete-domain --domaindir ~ mydomain<br />
<br />
Alternately you can make $JAVAEE_HOME/domains/ writable to do domain-related works from default domain directory. E.g.<br />
<br />
sudo chmod a+w $JAVAEE_HOME/domains/<br />
asadmin create-domain --adminport 4848 mydomain<br />
asadmin start-domain mydomain<br />
asadmin stop-domain mydomain<br />
asadmin delete-domain mydomain<br />
<br />
If you have only one domain in the default domains directory ($JAVAEE_HOME/domains/) then you do not have to give the domain name to start or stop a domain. E.g.<br />
<br />
asadmin start-domain<br />
asadmin stop-domain<br />
<br />
You can save the login information to ~/.asadminpass file in order to administer an application server domain from command line. If you do not login, you have to provide username and password for each administrative work (analogous to su and sudo commands). To login:<br />
<br />
asadmin login --host localhost --port 4848<br />
<br />
Deploying and un-deploying a web or ejb module is very easy. Just do the following:<br />
<br />
asadmin deploy test1.war<br />
asadmin deploy test2.ear<br />
<br />
asadmin undeploy test1.war<br />
asadmin undeploy test2.ear<br />
<br />
===== Application Server data Source settings =====<br />
<br />
DataSource configuration can be done easily from web based administration console. Here command line method is given:<br />
<br />
sudo ln -s /usr/share/java/postgresql.jar /opt/SUNWappserver/domains/domain1/lib/postgresql.jar<br />
asadmin create-jdbc-connection-pool --datasourceclassname org.postgresql.ds.PGSimpleDataSource --property<br />
serverName=localhost:portNumber=5432:databaseName=database:user=user:password=pass jdbc/postgresql<br />
asadmin create-jdbc-resource --connectionpoolid jdbc/postgresql database<br />
<br />
First, we have made this driver accessible from the domain. In the second command, we have created a data source connection pool which has been assigned a JNDI name in the third command. Here all the colon (:) separated values are database related. Change them according to your database settings. Now you can create a Connection by, e.g.:<br />
<br />
Context ic = new InitialContext();<br />
DataSource ds = (DataSource)ic.lookup("database");<br />
Connection conn = ds.getConnection();<br />
<br />
To see available data sources and their corresponding JNDI names:<br />
<br />
asadmin list-jdbc-connection-pools<br />
asadmin list-jdbc-resources<br />
<br />
To delete both connection pool, you have to delete JNDI name first. E.g.<br />
<br />
asadmin delete-jdbc-resource database<br />
asadmin delete-jdbc-connection-pool jdbc/postgresql<br />
<br />
=== Tomcat 6 ===<br />
<br />
==== Installing tomcat ====<br />
<br />
Tomcat can be found in [http://packages.ubuntu.com/gutsy/web/tomcat5.5 universe] repository but it has some drawbacks (e.g. lots of dependencies, unavailability of version 6.x, do not use Sun Java). Thus manual installation is recommended.<br />
<br />
Download latest stable version of tomcat from [http://tomcat.apache.org/download-60.cgi here] and extract it in /usr/local as root. Add "JAVA_HOME=/usr/lib/jvm/java-6-sun/" to /usr/local/apache-tomcat-6.x.x/bin/setclasspath.sh after the first occurrence of "CLASSPATH=". Make sure that sun-java6-jre is installed. Make a soft-link of /usr/local/apache-tomcat-6.x.x/bin/catalina.sh as /usr/local/bin/tomcat to access easily. Optionally you can remove .exe and .bat files and edit .sh files to remove cygwin, os400 and darwin related codes.<br />
<br />
Although not necessary, but the [http://packages.ubuntu.com/gutsy/devel/ant ant] program would be useful here. You can also install its [http://packages.ubuntu.com/gutsy/devel/ant-doc documentation].<br />
<br />
==== OpenEJB Server ====<br />
<br />
[http://openejb.apache.org/ OpenEJB] is an open source, modular, configurable, and extendable EJB Container System and EJB Server. [http://openejb.apache.org/tomcat.html Visit here] to see the installation instructions for OpenEJB under Tomcat 6.<br />
<br />
==== Using tomcat with NetBeans ====<br />
<br />
You have to make the configuration files readable because Netbeans generally do not run with administrative privilege. To use Tomcat with with NetBeans, you have to set a user with manager role. A typcal $CATALINA_HOME/conf/tomcat-users.xml file would look like:<br />
<br />
&lt;?xml version='1.0' encoding='utf-8'?&gt;<br />
&lt;tomcat-users&gt;<br />
&lt;role rolename="admin"/&gt;<br />
&lt;role rolename="manager"/&gt;<br />
&lt;role rolename="tomcat"/&gt;<br />
&lt;user username="admin" password="admin" roles="admin"/&gt;<br />
&lt;user username="manager" password="manager" roles="manager"/&gt;<br />
&lt;user username="tomcat" password="tomcat" roles="tomcat"/&gt;<br />
&lt;/tomcat-users&gt;<br />
<br />
Edit this file after you have started tomcat once. Any data placed in the &lt;tomcat-users&gt; element is erased during the first start of tomcat. You can also use tomcat that comes with NetBeans web &amp; Java EE pack.<br />
<br />
==== Configure Database Connection Pool (DBCP) of Tomcat ====<br />
<br />
A database connection pool creates and manages a pool of connections to a database. Recycling and reusing already existing connections to a dB is more efficient than opening a new connection. It is still possible and valid to open and close connection for each servlet/jsp (visit [[|#Using_JDBC_driver]] for details).<br />
<br />
Before proceeding, let's assume that $CATALINA_HOME denotes tomcat installation directory (typically: /usr/local/apache-tomcat-6.0.14).<br />
<br />
echo $CATALINA_HOME<br />
sudo ln -s /usr/share/java/postgresql.jar $CATALINA_HOME/lib/postgresql.jar<br />
sudo mkdir $CATALINA_HOME/webapps/dataSourceTest<br />
sudo chown $USER:$USER $CATALINA_HOME/webapps/dataSourceTest<br />
cd $CATALINA_HOME/webapps/dataSourceTest<br />
mkdir META-INF WEB-INF WEB-INF/classes<br />
<br />
Create WEB-INF/web.xml and set its content:<br />
<br />
&lt;?xml version="1.0" encoding="UTF-8"?&gt;<br />
<br />
&lt;web-app xmlns="http://java.sun.com/xml/ns/javaee"<br />
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"<br />
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"<br />
version="2.5"&gt;<br />
<br />
&lt;resource-ref&gt;<br />
&lt;description&gt;PostgreSQL connectivity&lt;/description&gt;<br />
&lt;res-ref-name&gt;jdbc/postgresql&lt;/res-ref-name&gt;<br />
&lt;res-type&gt;javax.sql.DataSource&lt;/res-type&gt;<br />
&lt;res-auth&gt;Container&lt;/res-auth&gt;<br />
&lt;/resource-ref&gt;<br />
<br />
&lt;description&gt;<br />
Page for testing<br />
&lt;/description&gt;<br />
&lt;display-name&gt;Testing page&lt;/display-name&gt;<br />
&lt;servlet&gt;<br />
&lt;servlet-name&gt;pgsqlVersion&lt;/servlet-name&gt;<br />
&lt;servlet-class&gt;pgsqlVersion&lt;/servlet-class&gt;<br />
&lt;/servlet&gt;<br />
&lt;servlet-mapping&gt;<br />
&lt;servlet-name&gt;pgsqlVersion&lt;/servlet-name&gt;<br />
&lt;url-pattern&gt;/pgsqlVersion&lt;/url-pattern&gt;<br />
&lt;/servlet-mapping&gt;<br />
&lt;/web-app&gt;<br />
<br />
Create META-INF/context.xml and set its content (replace hostname, database instance name, user id and password):<br />
<br />
&lt;?xml version="1.0" encoding="UTF-8"?&gt;<br />
&lt;Context&gt;<br />
&lt;Resource<br />
name="jdbc/postgresql"<br />
auth="Container"<br />
type="javax.sql.DataSource"<br />
driverClassName="org.postgresql.Driver"<br />
url="jdbc:postgresql://host/database"<br />
username="user"<br />
password="password"<br />
maxActive="20"<br />
maxIdle="10"<br />
maxWait="-1"/&gt;<br />
&lt;WatchedResource&gt;WEB-INF/web.xml&lt;/WatchedResource&gt;<br />
&lt;WatchedResource&gt;META-INF/context.xml&lt;/WatchedResource&gt;<br />
&lt;/Context&gt;<br />
<br />
Create pgsqlVersion.java and set its content:<br />
<br />
import java.io.*;<br />
import java.sql.*;<br />
import javax.sql.*;<br />
import javax.naming.*;<br />
import javax.servlet.*;<br />
public class pgsqlVersion extends GenericServlet {<br />
public void service(ServletRequest request, ServletResponse response) {<br />
try {<br />
response.setContentType("text/html");<br />
PrintWriter pw=response.getWriter();<br />
Context initContext = new InitialContext();<br />
Context envContext = (Context)initContext.lookup("java:/comp/env");<br />
DataSource ds = (DataSource)envContext.lookup("jdbc/postgresql");<br />
Connection conn = ds.getConnection();<br />
Statement stat=conn.createStatement();<br />
ResultSet rs=stat.executeQuery("SELECT version()");<br />
rs.next();<br />
pw.println(rs.getString("version"));<br />
rs.close();<br />
stat.close();<br />
} catch(Exception e) { }<br />
}<br />
}<br />
<br />
Create index.html and set its content:<br />
<br />
<title>PostgreSQL datasource</title>&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"<br />
"http://www.w3.org/TR/html4/frameset.dtd"&gt;<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
Then compile the servlet:<br />
<br />
export CLASSPATH=$CATALINA_HOME/lib/postgresql.jar:$CATALINA_HOME/lib/servlet-api.jar:.<br />
javac -d WEB-INF/classes/ pgsqlVersion.java<br />
<br />
Finally, visit http: //host:8080/dataSourceTest. Thats all!<br />
<br />
<br><br />
<br />
=== Nagios Network Monitoring Server ===<br />
<br />
* [http://www.ubuntugeek.com/nagios-network-monitoring-system-setup-in-ubuntu.html Nagios Monitoring Server Setup Guide]<br />
<br />
It should be noted that this howto instructs you to build nagios from its sources, while it exists on the official repositories.<br />
<br />
=== NFS Server ===<br />
<br />
* Read [http://nfs.sourceforge.net Linux NFS FAQ]<br />
* Run this command for each computer to determine the IP Addresses for each one:<br />
<br />
ifconfig<br />
<br />
==== Installing NFS Server ====<br />
<br />
sudo apt-get install nfs-kernel-server nfs-common portmap<br />
<br />
Reconfigure Portmap to not bind to loopback interface:<br />
<br />
sudo dpkg-reconfigure portmap <br />
sudo /etc/init.d/portmap restart<br />
<br />
Define which folders to share (export):<br />
<br />
sudo nano /etc/exports<br />
<br />
Add share (export) definitions:<br />
<br />
This will export path to all IP addresses between 192.168.1.1 and 192.168.1.254 with Read/Write access:<br />
<br />
/path/to/shared/files 192.168.1.0/24(rw,no_root_squash,async)<br />
<br />
This will export path to all IP addresses between 192.168.1.1 and 192.168.1.254 with Read Only access:<br />
<br />
/path/to/shared/files 192.168.1.0/24(ro,async)<br />
<br />
''192.168.1.0/24 above would be the clients IP Address''<br />
<br />
When finished, save changes and restart the NFS Server:<br />
<br />
sudo /etc/init.d/nfs-kernel-server restart<br />
<br />
Export your new configuration:<br />
<br />
sudo exportfs -a<br />
<br />
==== Installing NFS Client ====<br />
<br />
sudo apt-get install portmap nfs-common<br />
<br />
==== Mounting Manually ====<br />
<br />
cd ~<br />
mkdir temp<br />
sudo mount 192.168.1.1:/path/to/shared/files temp<br />
<br />
''192.168.1.1 above would be the Servers IP Address''<br />
<br />
You may need to restart NFS services:<br />
<br />
sudo /etc/init.d/portmap restart<br />
sudo /etc/init.d/nfs-common restart<br />
<br />
==== Mounting Automatically ====<br />
<br />
Create mountpoint:<br />
<br />
sudo mkdir /mnt/files<br />
<br />
Edit configuration:<br />
<br />
gksudo gedit /etc/fstab<br />
<br />
Add something similar to below:<br />
<br />
192.168.1.1:/path/to/shared/files /mnt/files nfs rsize=8192,wsize=8192,timeo=14,intr 0 0<br />
<br />
Test new configuration:<br />
<br />
sudo mount -a<br />
<br />
Reboot to test automatic mounting.<br />
<br />
== '''''硬件''''' ==<br />
<br />
=== NVidia 驱动 ===<br />
<br />
首先,弄清楚你清楚你是什么内核运行以下命令查看:<br />
<br />
user@localhost:~$ uname -a<br />
Linux localhost 2.6.22-14-generic #1 SMP Sun Oct 14 23:05:12 GMT 2007 i686 GNU/Linux<br />
<br />
I have the '''generic''' kernel, so I need to install the following:<br />
<br />
sudo apt-get install linux-restricted-modules-generic<br />
<br />
<br> After that's done, go to '''''System &gt; Administration &gt; Restricted Drivers Manager''''' and turn on the driver.<br />
<br />
Some users may receive an error screen: "The software source for the packsge nvidia-glx-new is not enabled." This can be overcome by going to '''''System &gt; Administration &gt; Software Sources''''' and ticking all the boxes under the heading "Downloadable from the Internet", click close and then allow Ubuntu to reload the package lists. The NVidia drivers can then be enabled using the method above.<br />
<br />
You can optionally prevent showing NVidia logo on startup by:<br />
<br />
sudo nvidia-xconfig --no-logo<br />
<br />
=== Wacom tablet ===<br />
<br />
By default, options for the Wacom tablet are commented out. Type the following command to edit the '''xorg.conf''' file.<br />
<br />
gksu gedit /etc/X11/xorg.conf<br />
<br />
Uncomment the following by removing the "#" or just replace the tree lines:<br />
<br />
InputDevice "stylus" "SendCoreEvents"<br />
InputDevice "cursor" "SendCoreEvents"<br />
InputDevice "eraser" "SendCoreEvents"<br />
<br />
Save and restart your X-session by typing '''CTRL-ALT-BACKSPACE'''.<br />
<br />
=== Microsoft Intellimouse ===<br />
<br />
To get the scroll wheel and side buttons to be recognized, change your '''/etc/X11/xorg.conf''' mouse section to look like the following:<br />
<br />
Section "InputDevice"<br />
<br />
Identifier "Configured Mouse"<br />
Driver "mouse"<br />
Option "CorePointer"<br />
Option "Device" "/dev/input/mice" <br />
Option "Protocol" "ExplorerPS/2"<br />
Option "ZAxisMapping" "4 5"<br />
Option "Emulate3Buttons" "true"<br />
Option "Buttons" "7" <br />
Option "ButtonMapping" "1 2 3 6 7"<br />
<br />
EndSection<br />
<br />
If you want the wheel scroll button to scroll in firefox rather than the side buttons make "ZAxisMapping" "6 7" and "ButtonMapping" "1 2 3 4 5".<br />
<br />
At this point you can reboot your computer or restart X (Ctrl-Alt-BackSpace) to see if your forward/back buttons work in FireFox. You can test in a terminal with '''xev'''.<br />
<br />
=== Logitech Marble Mouse ===<br />
<br />
To get the scrollwheel effect on Logitech trackball (Marble Mouse), change your '''/etc/X11/xorg.conf''' mouse section to look like the following:<br />
<br />
Section "InputDevice"<br />
<br />
Identifier "MarbleMouse"<br />
Driver "mouse"<br />
Option "Protocol" "auto"<br />
Option "Device" "/dev/input/mice"<br />
Option "Buttons" "5"<br />
Option "ButtonMapping" "1 8 3 6 7"<br />
Option "EmulateWheel" "true"<br />
Option "EmulateWheelTimeout" "300" # msec<br />
Option "EmulateWheelButton" "6"<br />
Option "YAxisMapping" "4 5"<br />
<br />
EndSection<br />
<br />
Make sure that you have "MarbleMouse" under the server layout section as well.<br />
<br />
The big left and right buttons work normally (click, right click) and pressing them at the same time acts as a middle click. Holding the small left button will let you scroll up and down with the trackball. Clicking small left and right buttons will let you go back/forward in firefox.<br />
<br />
Thanks to imjustabill and Buffalo Soldier from the Ubuntu Forum. This works well on my computer.<br />
<br />
=== Logitech MX510 ===<br />
<br />
To have the extra buttons on your MX510 working with X, you'll have to install and configure the evdev-drivers. Open up a terminal and enter:<br />
<br />
sudo apt-get install [http://packages.ubuntu.com/gutsy/x11/xserver-xorg-input-evdev xserver-xorg-input-evdev] <br />
<br />
Now, all you have to do is configure Xorg to work with the new driver. Always remember to back up original files before altering:<br />
<br />
sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.bak<br />
gksudo gedit /etc/X11/xorg.conf<br />
<br />
Locate and replace the '''InputDevice''' section which holds the information for your mouse, for example with the identifier '''Configured Mouse''', and replace it with:<br />
<br />
<nowiki>Section "InputDevice"<br />
Identifier "Configured Mouse"<br />
Driver "evdev"<br />
Option "CorePointer"<br />
Option "Name" "Logitech MX510"<br />
EndSection</nowiki> <br />
<br />
Logout or kill the X session using '''&lt;CTRL&gt;&lt;ALT&gt;&lt;BACKSPACE&gt;''' and login again. This should get all of your buttons and scrollwheel up and running, and even let you navigate the webbrowser history using the thumb buttons on the side.<br />
<br />
=== Disable CAPS LOCK ===<br />
<br />
I like to remap mine to '''&lt;Ctrl&gt;'''. Just run gnome-keyboard-properties with "System &gt; Preferences &gt; Keyboard", click on the "Layout Options" tab and then on the arrow next to "Ctrl key position". Selecting "Make CapsLock an additional Ctrl" does the trick.<br />
<br />
=== Enabling NUM LOCK at boot ===<br />
<br />
The Default behavior is for the NUM LOCK key to be off; if you are on a desktop and have a keypad though, entering digits from it can be much quicker and you may wish to have it enabled for entering login password, etc. Here's how:<br />
<br />
* From Synaptic, download and install "numlockx," or, from the command line;<br />
<br />
sudo apt-get install numlockx<br />
<br />
* To get it working, you now have to edit the appropriate startup file. First, make sure you have a working backup of the file:<br />
<br />
sudo cp /etc/gdm/Init/Default /etc/gdm/Init/Default.bak<br />
<br />
* Next, modify the gdm/Init file. In terminal:<br />
<br />
gksudo gedit /etc/gdm/Init/Default<br />
<br />
* Scroll down to the end of the file, and above the line that says "exit 0" add the following:<br />
<br />
if [ -x /usr/bin/numlockx ]; then<br />
/usr/bin/numlockx on <br />
fi<br />
<br />
* Next time you reboot, your NUM LOCK should default to "on."<br />
<br />
=== BSNL Broadband (dataone) speedup ===<br />
<br />
BSNL Broadband or Dataone provides high speed (2Mbps) Internet connectivity in India. The DNS servers provided by the BSNL (61.1.96.69 and 61.1.96.71) are very slow. Instead use Either of these:<br />
<br />
208.67.222.222 and 208.67.220.220 or<br />
<br />
4.2.2.1 and 4.2.2.2 or<br />
<br />
search Google for free DNS service providers.<br />
<br />
=== Citrix ICA client ===<br />
<br />
The Citrix client no longer suffers from any of the previous Ubuntu version's problems of UTF8 font issues, OpenMotif depends, or flaky/broken browser integration. It just works!<br />
<br />
* Download the latest en.linuxx86.tar.gz (currently v10.6) from [http://www.citrix.com/ Citrix.com] and save to your desktop<br />
* Right-click tar.gz file, and '''Extract Here'''<br />
* Open a Terminal<br />
<br />
Programs &gt; Accessories &gt; Terminal<br />
<br />
* Change to the directory where we extracted the client<br />
<br />
cd Desktop/en.linuxx86<br />
<br />
* Run the setup program<br />
<br />
./setupwfc<br />
<br />
* Select the defaults<br />
<br />
Now, web files from Metaframe Presentation Server, Citrix Access Gateway, etc webpages will work fine in Firefox.<br />
<br />
Someone may wish to add an entry on how to use the client to connect to a local Citrix farm.<br />
<br />
=== WINE ===<br />
<br />
Latest install instructions are always at: [http://www.winehq.org/site/download-deb WineHQ.org]<br />
<br />
Add repository key:<br />
<br />
wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | sudo apt-key add -<br />
<br />
Add repository to apt sources:<br />
<br />
sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/gutsy.list -O /etc/apt/sources.list.d/winehq.list<br />
<br />
Update apt sources:<br />
<br />
sudo apt-get update<br />
<br />
Install WINE:<br />
<br />
sudo apt-get install wine<br />
<br />
The program menu then appears in Programs under Wine, or double-click a Windows/DOS .exe file.<br />
<br />
==== Install Internet Explorer 6 for Wine ====<br />
<br />
IE 6 is not recommended for general usage, but some Windows packages (installed under Wine) require IE6 to complete installation. Furthermore, IE 6 is useful for checking code for developers who want to see how their web pages appear under IE 6.<br />
<br />
Install the required package cabextract from Synaptic Package Manager (or from apt-get install cabextract).<br />
<br />
Download and run the IEs4Linux installation script from the IEs4Linux website:<br />
<br />
wget http://www.tatanka.com.br/ies4linux/downloads/ies4linux-latest.tar.gz<br />
tar zxvf ies4linux-latest.tar.gz<br />
cd ies4linux-*<br />
./ies4linux<br />
<br />
<br> There is a beta version of the install at http://www.tatanka.com.br/ies4linux/downloads<br />
<br />
'''If you hit advance you have the option to install IE7. I have not gotten it to work as of yet, but IE6 installs with no issues on amd64 and i386'''<br />
<br />
Accept all the defaults for installation.<br />
<br />
==== Wine-Doors ====<br />
<br />
Wine-Doors http://www.wine-doors.org/ packages Windows applications for Wine. The current package list includes Internet Explorer 6.<br />
<br />
Debian/Ubuntu package (single click) available for [http://www.wine-doors.org/wordpress/?page_id=3 download].<br />
<br />
=== VMWare Server ===<br />
<br />
Until the Commercial Ubuntu repository includes the VMWare Server, you can use the following 'How To' to compile from source.<br />
<br />
* [http://www.ubuntugeek.com/how-to-install-vmware-server-in-ubuntu-710-gutsy-gibbon.html Step By Step Vmware server setup guide including Screenshots]<br />
<br />
==== VMWare Tools ====<br />
<br />
If you want to install VMware tools on ubuntu gutsy follow this steps<br />
<br />
* [http://www.ubuntugeek.com/howto-install-vmware-tools-in-ubuntu.html VMWare Tools Setup Guide Incliding Screenshots]<br />
<br />
To be able to use usb devices look at following bug comment at https://bugs.launchpad.net/ubuntu/+source/kvm/+bug/156085/comments/5<br />
<br />
=== How to install Broadcom wireless driver ===<br />
<br />
* This worked for me Kubuntu 7.10 32 bit but there are several ways<br />
<br />
* First, make sure you have the appropriate hardware<br />
<br />
lspci | grep Broadcom<br />
<br />
* Output should match this<br />
<br />
02:03.0 Network controller: Broadcom Corporation BCM4306 802.11b/g Wireless LAN Controller (rev 02)<br />
<br />
* Then you have to add a repository<br />
<br />
gksu gedit /etc/apt/sources.list<br />
<br />
* Add<br />
<br />
deb http://ubuntu.cafuego.net gutsy-cafuego bcm43xx<br />
<br />
* Then do this to add the signature<br />
<br />
wget http://ubuntu.cafuego.net/AF425CB5.gpg -O- | sudo apt-key add -<br />
<br />
* Back in the console<br />
<br />
sudo apt-get update<br />
sudo apt-get install bcm43xx-firmware <br />
<br />
* Just press yes, let it install, and reboot! Thanks to Pete and the 7.04 guide for this.<br />
<br />
== Requests ==<br />
If you have requests that you would like to be part of this guide, write them in [[Ubuntu_talk:Gutsy]].<br />
<br />
== ''''' Troubleshooting ''''' ==<br />
<br />
Place solutions to problems you have encountered with Gutsy here.<br />
They may be workarounds to bugs or other solutions to other problems.<br />
<br />
=== OpenOffice spell checking problem ===<br />
This problem is not a bug at all. Some Languages do not have spell checking support, while others do. For example, "English (India)" does not support spell checking but "English (USA)" does. Just go to<br />
Tools -> Options -> Language Settings -> Languages<br />
and select a Western language that has a check mark beside the language name. That's it.<br />
<br />
If you want to add languages that support spell checking, install the package myspell-<language> where <language> is the desired language, e.g.:<br />
sudo apt-get install myspell-fr <br />
to install the French dictionary.<br />
<br />
=== Alternative of SCIM to switch keyboard layout ===<br />
SCIM might not work properly under Gutsy Gibbon, although works fine under Feisty Fawn. Until the problem is fixed, you can use the alternative method to switch keyboard layout.<br />
<br />
*Go to System -> Administration -> Language Support and install the languages you want to use.<br />
*Open System -> Preferences -> Keyboard and add the layout that you want to use from Layouts tab.<br />
*Right click on the free space of upper panel and select "Add to panel...". Add Keyboard Indicator.<br />
<br />
===Fix Slow boot/faulty splash screen===<br />
<br />
if your system is booting slowly or your ubuntu splash screen is not being displayed it could be that Usplash has created the splash screen incorrectly<br />
<br />
1) edit /boot/grub/menu.lst<br />
sudo gedit /boot/grub/menu.lst<br />
<br />
At the very end of the kernel line after "splash" , add <br />
"vga=***" <br />
replace *** with the code from the table below that corresponds with the resolution <br />
and colour setting you are using<br />
<br />
{| border="1" cellspacing="0" cellpadding="5" align="center"<br />
! Screen<br />
! 640x480<br />
! 800x600<br />
! 1024x768<br />
! 1280x1024<br />
! 1600x1200 <br />
|- <br />
| Colors<br />
|<br />
|<br />
|<br />
|<br />
|<br />
|-<br />
| 256<br />
| 769<br />
| 771<br />
| 773<br />
| 775<br />
| 796<br />
|-<br />
| 32,768<br />
| 784<br />
| 787<br />
| 790<br />
| 793<br />
| 797<br />
|-<br />
| 65,536<br />
| 785<br />
| 788<br />
| 791<br />
| 794<br />
| 798<br />
|-<br />
| 16.8M<br />
| 786<br />
| 789<br />
| 792<br />
| 795<br />
| 799<br />
|}<br />
<br />
the line should look something like this<br />
<br />
kernel /boot/vmlinuz-2.6.22-14-generic root=UUID=20fd9912-6383-4860-9cd8-88a11909d715 ro quiet splash vga=791<br />
<br />
Save that file, close it, <br />
<br />
2) edit /etc/usplash.conf<br />
sudo gedit /etc/usplash.conf<br />
<br />
change the resolution to the one you set in the previous step save and close<br />
<br />
3) rebuild the bootsplash screen<br />
<br />
sudo update-initramfs -u -k `uname -r`<br />
<br />
This rebuilds the image that Grub uses to start the system.<br />
<br />
4) reboot<br />
<br />
=== Logout problem === <br />
Some users have have faced a hangout problem when whey press the quit button. Currently the following symptom and work-around have been noticed: <br />
* Press Ctrl-Alt-Backspace to kill X-Window and show the GDM screen. <br />
* gnome-power-manager service should be on. You can enable it from System->Preferences->Sessions.<br />
* Wait for 1 minute. The quit window will appear. (the logout problem will vanish for some times).<br />
* For some users, removing .config/autostart/ directory worked.<br />
== Tips And Tricks ==<br />
It is pointless to add the tricks that is already added in [[Ubuntu:Feisty#Tips_And_Tricks]]. So, only new tricks are added.<br />
<br />
=== What to do when Ubuntu freezes ===<br />
There are different reasons for a computer to crash - there can be a programming bug, a memory issue, or other. When your computer seems to be dead, don't panic! And don't reach for that power button!<br />
There are '''five''' simple things you can try before killing the power:<br />
<br />
# Is the computer frozen? Try going into one of the VTs by pressing '''<Ctrl><Alt>''' and '''F1'''. This way you may still have control of the computer and manage to kill the application which caused the problem. '''''More on killing applications later.'''''<br />
# If you can't change into a VT, try to kill the X session. This can be done by pressing '''<Ctrl><Alt><Backspace>'''. All applications that were opened during the session will automatically be killed, so you should gain control over the computer after you've been sent back to the login screen.<br />
# OK, so you can't kill X or go into VT. Let's do a reboot, which can safely be done by pressing '''<Ctrl><Alt><Delete>'''. The machine will beep and start running the shutdown scripts.<br />
# If for some reason one or more of the shutdown scripts should die, and the computer stops the rebooting process, press the key combination again to ''force a reboot''. This not safe if the scripts haven't gotten around to unmount the local filesystems.<br />
# Final way out: Your computer doesn't obey and none of above methods seem to give any response. Here's a little trick that might help, not known to many Linux users! The kernel has a small userspace communication line opened, so even if the computer has crashed badly (I haven't tried this during kernel-panic, though, can anyone confirm?) you can make it reboot safely. This method ''is'' safe, but should be used '''''only if everything else fails'''''! Hold down '''<Ctrl>''', '''<Alt>''' and '''<PrtScrn/SysRq>'''. While holding down these, type the following letters - in order - '''R E I S U B'''. The computer will unmount any filesystems that are locally mounted, and safely bring down the system. If you have trouble remembering the letter combination; think '''''busier''''', only ''backwards''.<br />
<br />
=== How to find the UUID of a device ===<br />
* This is useful if changes are made to the partition table or a new hard drive is added to the computer.<br />
* When the UUID(s) change an error will be caused during boot.<br />
* Pressing <Ctrl>-D will allow the boot to continue but to fix the problem:<br />
-> Open fstab file:<br />
sudo gedit /etc/fstab<br />
-> In another terminal run this commmand: <br />
ls -l /dev/disk/by-uuid/ <br />
-> Or you can type this to list all of your devices:<br />
blkid<br />
<br />
* Compare the UUID's and any that are different in fstab from the list must be changed. The easiest way is copy and paste.<br />
* Some other things may have to be edited as well like the mount point, type (ext2, ext3, ntfs, etc) , options, dump, pass, etc.<br />
''For more help editing fstab look [http://ubuntuforums.org/showthread.php?t=283131 Here:]''<br />
<br />
* To list the UUID of a specific device:<br />
sudo vol_id -u device<br />
<br />
* Where device might be /dev/sdxy.<br />
'' Example: sudo vol_id -u /dev/sda1 ''<br />
<br />
=== Enable vim syntax highlighting ===<br />
The source of vi/vim command is vim-tiny package which does not support syntax highlighting. Install vim:<br />
sudo apt-get install vim<br />
Then open /etc/vim/vimrc and uncomment '''syntax on'''<br />
<br />
Replace<br />
"syntax on<br />
<br />
With<br />
syntax on<br />
<br />
=== HAL ===<br />
If you have problem failed to initialize HAL, and devices such as card reader,or shutdown problem, power meter doesn´t appear..please find this line in /etc/init.d/rc<br />
<br />
sudo vim /etc/init.d/rc<br />
find this line :<br />
CONCURRENCY=shell<br />
<br />
To fix this:<br />
<br />
sudo nautilus<br />
<br />
Navigate to /etc/<br />
look for the folder '''rc2.d'''<br />
rename '''s12hal''' to '''s13hal<br />
'''<br />
<br />
the problem was HAL loading before DBUS and causing such error.<br />
this should fiz the problem, if not<br />
<br />
sudo gedit /etc/init.d/rc<br />
<br />
and turn<br />
CONCURRENCY=shell to CONCURRENCY=none<br />
<br />
=== Enable Sirius Internet Radio for Firefox ===<br />
*Install [[#How to install VLC media player| VLC]]<br />
*Install the [https://addons.mozilla.org/en-US/firefox/addon/446 firefox media player connectivity plugin]<br />
<br />
Launch the player from [http://www.sirius.com/servlet/ContentServer?pagename=Sirius/Page&c=FlexContent&cid=1191942072317&flash=noflash| www.sirius.com]. After authenticating, you will now be able to select which stream to play. Selecting the stream will launch vlc.<br />
<br />
=== Remove unwanted language/locale files ===<br />
sudo apt-get install localepurge<br />
sudo localepurge<br />
<br />
=== Auto starting pidgin at login ===<br />
Goto System -> Preferences -> Sessions. Click Add. A popup window will appear. Set Name to "Pidgin" and Command to "/usr/bin/pidgin". Click OK. Make sure that it is enabled.<br />
<br />
=== sudo/gksu without password ===<br />
EDITOR=gedit gksu visudo<br />
Find "Defaults !lecture,tty_tickets,!fqdn" and replace by "Defaults timestamp_timeout=-1".<br />
<br />
=== Speed-up Ubuntu ===<br />
Open System -> Preferences -> Sessions and remove the startup programs that you do not need (e.g. Bluetooth Manager, Evolution Alarm Notifier, Restricted Driver Manager, Tracker, User folders update, Visual).<br />
<br />
Open System -> Preferences -> Appearance and make Visual Effects to None.<br />
<br />
Open System -> Administration -> Services and disable the services that you do not need (e.g. alsa-utils, bluetooth, brltty, hdparm, acpid, apmd, screen).<br />
<br />
=== How to change the USplash Screen on startup/shutdown ===<br />
<br />
When you add another Desktop Environment, the USplash screen may change (saying Kubuntu instead of Ubuntu). If you want to change it, do the following:<br />
<br />
sudo update-alternatives --config usplash-artwork.so<br />
<br />
This will bring up a list of installed USplash screens. Type the number that corresponds to the one you want and press Enter. Then type:<br />
<br />
sudo dpkg-reconfigure usplash<br />
<br />
Then reboot.<br />
<br />
== ''''' Guide Development ''''' ==<br />
<br />
'' Note: This section was taken from the Feisty Guide and edited appropriately.''<br />
<br />
Place ideas here to increase the look and performance of this guide.<br />
<br />
* Add a new section for Gnome Themes from http://art.gnome.org and KDE Themes from http://www.kde-look.org/.<br />
* Have entries under their headings in alphabetical order.<br />
* Try to keep the guide neat and clutter free.<br />
* Possible "Short Version" Table of contents without each "How to".<br />
* Add a [top] link to the end of each article.<br />
* If possible, include a 'find/search' function to easily access queries.<br />
** This can be done in Firefox with <Ctrl>-F.<br />
* instead of 'apt-get install', there could be the new Gutsy [http://www.ubuntugeek.com/apturl-protocol-handler-in-ubuntu-gutsy-gibbon.html apturl] feature for easier installation of software</div>Convicehttps://wiki.ubuntu.org.cn/index.php?title=UbuntuHelp:FVWM/zh&diff=75196UbuntuHelp:FVWM/zh2007-12-23T06:28:39Z<p>Convice:</p>
<hr />
<div>{{Translation}} <br />
<br />
{{From|https://help.ubuntu.com/community/FVWM}} <br />
<br />
{{Translator|convice}} {{Languages|FVWM}}<br />
<br />
FVWM is an extremely customizable window manager, many would say it is pathologically customizable. It is also very extensible, lightweight, and fast. It is not for the non-technical. It is for those who know what they want and want the freedom to implement it. It can be as ugly and functional or as beautiful and full of gee-whiz embellishments as you like. The limits are your imagination and your skill. There are 3rd party projects to provide automatic configuration and themes (fvwm-themes and fvwm-crystal). FVWM itself provides a default configuration file generator, in which certain options can be chosen. The expectation, however, is that you want a configuration of your very own, and you can use these tools and others' configs as a starting point ([http://starshine.org/xteddy/thomas/fvwm/user_enumerate.html further explanation]).<br />
<br />
FVWM是一种高度可配置的窗口管理器,我们甚至可说它是“病态”的可配置。它也是可扩展的,轻量级的,快速的窗口管理器。它不适合非技术人士,只适合于那些知道他们想要什么并希望能自由的实现的那些人。它可以是很丑陋但功能强大,或者是充满了很多奇特的装饰,只要你喜欢。唯一的限制是你的想像力和技巧。有一些第三方项目提供了自动化的配置和主题(fvwm-themes和fvwm-crystal)。FVWM也提供一些配置文件产生器,它给你提供了一些特定的选项。如果你希望创建你自己的配置文件,你可以使用这些工具和别人的配置做为一个起点。<br />
([http://starshine.org/xteddy/thomas/fvwm/user_enumerate.html further explanation]).<br />
<br />
== Ubuntu specifics ==<br />
<br />
=== 安装 ===<br />
<br />
==== 从 Apt ====<br />
<br />
FVWM is easily installed into Ubuntu, as there is an fvwm package in the repositories. There are additional packages like fvwm-themes, which is a collection of canned FVWM configurations for those who want something that works right away.<br />
<br />
FVWM可以很容易的被安装到Ubuntu上,因为在软件仓库里有fvwm软件包。还有一些为那些想要马上能工作的人提供的附加软件包,它们包含了一些可用的FVWM配置文件。<br />
<br />
==== 从源码包安装 ====<br />
<br />
FVWM is an active project. Updates with bug fixes and new features are fairly frequent. Currently, FVWM maintains two states: a stable release (versions 2.4.X) and an unstable release (2.5.X). The unstable branch is the one that will eventually form the new stable set (and hence will evolve to 2.6.X as stable, and 2.7.X as being unstable). Given that the FVWM stable branch is quite old, a lot of the more "established" actions one would expect from a window manager is really only in the unstable branch at the moment. Not that "unstable" really means that it crashes every five minutes; it's just an indication that the branch is subject to development and change. Unless there's a very good reason (unlikely) then the 2.5.X branch is the one that should be used, as many people tailor their configs to use it, and usually give no consideration to FVWM 2.4.X. Prerequisite packages are<br />
<br />
FVWM是一个活跃的项目。Bug修正和新功能的升级十分频繁。目前,FVWM维护着两个版本分支:稳定版本(2.4.X)和不稳定版本(2.5.X)。不稳定分支最终会形成稳定版本。(2.6.X将会是下一个稳定版本分支,而2.7.X则是下一个非稳定版本)。FVWM的稳定分支已经很老了,目前,很多作为窗口管理器被期望的并已经完成的功能只有非稳定版本才有。“不稳定”并不意味着它将每五分钟崩溃一次,它只是表明了这个分支是被用于开发和改进的。除非有很好的理由不用它(未必有),2.5.X应该是我们使用的版本,因为很多人用它制作自己的配置,他们通常都不会考虑FVWM 2.4.X。需要预先安装的软件包有:build-essential,xorg-dev,fakeroot (用来制作 .deb包),debhelper (也是用于制作 .deb包). 一些几乎每个人都想要用的软件包有:libpng-dev (让 .png 格式的图片能用于图标) 和 libreadline-dev (它使 FvwmConsole 更好用). 下载tar包,像平常一样解压和configure. 不要简单的就使用make,用make deb-inplace来制作 .deb包, 然后用dpkg 安装.<br />
<br />
=== 集成 ===<br />
<br />
If you install from apt, then FVWM is already in GDM's list of sessions. If you install from source, you will have to choose "Default X session". You will also have to make a .xsession file. The simplest .xsession file simply contains the line "fvwm". .xsession is simply a shell script that is run when you log in from GDM. If there are any programs that you need to start before fvwm, put them in .xsession before "fvwm". It is also wise to make a .xinitrc that is a symlink to .xsession, so that fvwm starts up when you log in from the console. As an example, your ~/.xsesssion file might look like the following:<br />
<br />
<br>如果你使用apt安装,那FVWM就会直接出现在GDM的会话列表里面。如果你自己编译源码,那还需要设置“默认会话”。同时你还需要编写一个.xsession文件。在这个文件中需要简单的添加几行包含"fvwm"相关内容的语句。其实,简单而言,.xsession文件就是一个shell脚本,当你使用GDM登录时,这个脚本将被执行。如果你希望有些程序系统启动时先于FVWM启动,那请在.xsession文件中将相应语句添加在包含"fvwm"的语句之前。生成一个.xinitrc链接指向.xsession文件是一个明智之举,这样从控制台登录系统也可以启动fvwm。你的~/.xsession文件看起来应该和下面的示例相象:&nbsp;<br />
<pre>#!/bin/sh<br />
<br />
# Various other commands here, ensuring that they're backgrounded where necessary<br />
# i.e.:<br />
#<br />
# foo &amp;<br />
<br />
# Start FVWM<br />
exec fvwm</pre> <br />
Symlinking the above to ~/.xinitrc can be done as follows:<br />
<br />
使用下面的指令建立符号链接,将上面所示的.xsession文件链接到~/.xinitrc<br />
<pre>ln -s ~/.xsession ~/.xinitrc</pre> <br />
You can have a menu of most installed applications with Debian's menu system. Install the menu package<br />
<br />
<br><br />
<br />
在Debian的菜单系统中,你可以拥有一个包含了大部分已经安装的应用程序的菜单。使用以下指令安装菜单<br />
<pre>sudo apt-get install menu</pre> <br />
Then, to your<br />
<br />
<br> ~/.fvwm/config add<br />
<br />
<br> 然後,<br />
<br />
<br> 添加以下内容到~/.fvwm/config<br />
<pre>Read /etc/X11/fvwm/menudefs.hook</pre> <br />
Now you have access to a menu of installed programs, automatically categorized and updated. You can access this menu with the FVWM commands<br />
<br />
现在你可以进入包含了安装的应用程序的菜单中,自动分类和更新。你可以通过以下FVWM指令进入这个菜单<br />
<pre>Menu /Debian</pre> <br />
or<br />
<pre>Popup /Debian</pre><br />
<br />
=== 其它 ===<br />
<br />
There are reports of FVWM not working well under Xgl. This will be corrected when the users complain loudly enough, or someone submits a patch. FVWM works reasonably well with xcompmgr and the composite extension. If you use xcompmgr: Do not give icons titles:<br />
<br />
有报道说FVWM在Xgl下不能很好的运行。如果用户抱怨足够多或是有人提交了补丁的话,这个问题将被修正。FVWM和xcompmgr及其扩展能很好的一起运行。如果你用xcompmgr:不要给图标标题:<br />
<br />
<pre>Style *&nbsp;!IconTitle</pre> <br />
Restart FVWM after starting or stopping xcompmgr:<br />
<br />
当启动或停止xcompmgr时,需要重新启动FVWM。<br />
<br />
<pre># xcompmgr is finally pretty stable, but occasionally it gets screwy or dies<br />
# FVWM must be restarted after xcompmgr, otherwise edges don't work<br />
DestroyFunc RestartXCompMgr<br />
AddToFunc RestartXCompMgr<br />
+ I PipeRead 'killall xcompmgr &amp;&amp; exec xcompmgr -n &amp;&nbsp;; echo Restart'</pre><br />
<br />
== 扩展链接 ==<br />
<br />
* [http://www.fvwm.org FVWM Homepage]<br />
* [http://fvwm.lair.be FVWM Forums]<br />
* [http://fvwmwiki.bu-web.de/ FVWM Wiki]<br />
* [http://dev.gentoo.org/~taviso/fvwm2rc.html An elaborate config file, by Taviso]<br />
* [http://fvwm-themes.sourceforge.net/ The FVWM Themes Project]<br />
* [http://fvwm-crystal.org/ FVWM Crystal], 类似于FVWM Themes的一个项目<br />
* 来自Ubuntu用户的桌面截图<br />
* [http://ubuntuforums.org/gallery/showphoto.php?photo=1020&si=fvwm vwc]<br />
* [http://ubuntuforums.org/gallery/showphoto.php?photo=2211&si=fvwm sonik]<br />
* [http://ubuntuforums.org/gallery/showphoto.php?photo=1878&si=fvwm jpkotta]<br />
* [http://ubuntuforums.org/gallery/showphoto.php?photo=1431&si=fvwm Stormy Eyes]<br />
<br />
[[Category:UbuntuHelp]]</div>Convicehttps://wiki.ubuntu.org.cn/index.php?title=UbuntuHelp:FVWM/zh&diff=75195UbuntuHelp:FVWM/zh2007-12-23T06:26:33Z<p>Convice:</p>
<hr />
<div>{{Translation}} <br />
<br />
{{From|https://help.ubuntu.com/community/FVWM}} <br />
<br />
{{Translator|convice}} {{Languages|FVWM}}<br />
<br />
FVWM is an extremely customizable window manager, many would say it is pathologically customizable. It is also very extensible, lightweight, and fast. It is not for the non-technical. It is for those who know what they want and want the freedom to implement it. It can be as ugly and functional or as beautiful and full of gee-whiz embellishments as you like. The limits are your imagination and your skill. There are 3rd party projects to provide automatic configuration and themes (fvwm-themes and fvwm-crystal). FVWM itself provides a default configuration file generator, in which certain options can be chosen. The expectation, however, is that you want a configuration of your very own, and you can use these tools and others' configs as a starting point ([http://starshine.org/xteddy/thomas/fvwm/user_enumerate.html further explanation]).<br />
<br />
FVWM是一种高度可配置的窗口管理器,我们甚至可说它是“病态”的可配置。它也是可扩展的,轻量级的,快速的窗口管理器。它不适合非技术人士,只适合于那些知道他们想要什么并希望能自由的实现的那些人。它可以是很丑陋但功能强大,或者是充满了很多奇特的装饰,只要你喜欢。唯一的限制是你的想像力和技巧。有一些第三方项目提供了自动化的配置和主题(fvwm-themes和fvwm-crystal)。FVWM也提供一些配置文件产生器,它给你提供了一些特定的选项。如果你希望创建你自己的配置文件,你可以使用这些工具和别人的配置做为一个起点。<br />
([http://starshine.org/xteddy/thomas/fvwm/user_enumerate.html further explanation]).<br />
<br />
== Ubuntu specifics ==<br />
<br />
=== 安装 ===<br />
<br />
==== 从 Apt ====<br />
<br />
FVWM is easily installed into Ubuntu, as there is an fvwm package in the repositories. There are additional packages like fvwm-themes, which is a collection of canned FVWM configurations for those who want something that works right away.<br />
<br />
FVWM可以很容易的被安装到Ubuntu上,因为在软件仓库里有fvwm软件包。还有一些为那些想要马上能工作的人提供的附加软件包,它们包含了一些可用的FVWM配置文件。<br />
<br />
==== 从源码包安装 ====<br />
<br />
FVWM is an active project. Updates with bug fixes and new features are fairly frequent. Currently, FVWM maintains two states: a stable release (versions 2.4.X) and an unstable release (2.5.X). The unstable branch is the one that will eventually form the new stable set (and hence will evolve to 2.6.X as stable, and 2.7.X as being unstable). Given that the FVWM stable branch is quite old, a lot of the more "established" actions one would expect from a window manager is really only in the unstable branch at the moment. Not that "unstable" really means that it crashes every five minutes; it's just an indication that the branch is subject to development and change. Unless there's a very good reason (unlikely) then the 2.5.X branch is the one that should be used, as many people tailor their configs to use it, and usually give no consideration to FVWM 2.4.X. Prerequisite packages are<br />
<br />
FVWM是一个活跃的项目。Bug修正和新功能的升级十分频繁。目前,FVWM维护着两个版本分支:稳定版本(2.4.X)和不稳定版本(2.5.X)。不稳定分支最终会形成稳定版本。(2.6.X将会是下一个稳定版本分支,而2.7.X则是下一个非稳定版本)。FVWM的稳定分支已经很老了,目前,很多作为窗口管理器被期望的并已经完成的功能只有非稳定版本才有。“不稳定”并不意味着它将每五分钟崩溃一次,它只是表明了这个分支是被用于开发和改进的。除非有很好的理由不用它(未必有),2.5.X应该是我们使用的版本,因为很多人用它制作自己的配置,他们通常都不会考虑FVWM 2.4.X。需要预先安装的软件包有:build-essential,xorg-dev,fakeroot (用来制作 .deb包),debhelper (也是用于制作 .deb包). 一些几乎每个人都想要用的软件包有:libpng-dev (让 .png 格式的图片能用于图标) 和 libreadline-dev (它使 FvwmConsole 更好用). 下载tar包,像平常一样解压和configure. 不要简单的就使用make,用make deb-inplace来制作 .deb包, 然后用dpkg 安装.<br />
<br />
=== 集成 ===<br />
<br />
If you install from apt, then FVWM is already in GDM's list of sessions. If you install from source, you will have to choose "Default X session". You will also have to make a .xsession file. The simplest .xsession file simply contains the line "fvwm". .xsession is simply a shell script that is run when you log in from GDM. If there are any programs that you need to start before fvwm, put them in .xsession before "fvwm". It is also wise to make a .xinitrc that is a symlink to .xsession, so that fvwm starts up when you log in from the console. As an example, your ~/.xsesssion file might look like the following:<br />
<br />
<br>如果你使用apt安装,那FVWM就会直接出现在GDM的会话列表里面。如果你自己编译源码,那还需要设置“默认会话”。同时你还需要编写一个.xsession文件。在这个文件中需要简单的添加几行包含"fvwm"相关内容的语句。其实,简单而言,.xsession文件就是一个shell脚本,当你使用GDM登录时,这个脚本将被执行。如果你希望有些程序系统启动时先于FVWM启动,那请在.xsession文件中将相应语句添加在包含"fvwm"的语句之前。生成一个.xinitrc链接指向.xsession文件是一个明智之举,这样从控制台登录系统也可以启动fvwm。你的~/.xsession文件看起来应该和下面的示例相象:&nbsp;<br />
<pre>#!/bin/sh<br />
<br />
# Various other commands here, ensuring that they're backgrounded where necessary<br />
# i.e.:<br />
#<br />
# foo &amp;<br />
<br />
# Start FVWM<br />
exec fvwm</pre> <br />
Symlinking the above to ~/.xinitrc can be done as follows:<br />
<br />
使用下面的指令建立符号链接,将上面所示的.xsession文件链接到~/.xinitrc<br />
<pre>ln -s ~/.xsession ~/.xinitrc</pre> <br />
You can have a menu of most installed applications with Debian's menu system. Install the menu package<br />
<br />
<br><br />
<br />
在Debian的菜单系统中,你可以拥有一个包含了大部分已经安装的应用程序的菜单。使用以下指令安装菜单<br />
<pre>sudo apt-get install menu</pre> <br />
Then, to your<br />
<br />
<br> ~/.fvwm/config add<br />
<br />
<br> 然後,<br />
<br />
<br> 添加以下内容到~/.fvwm/config<br />
<pre>Read /etc/X11/fvwm/menudefs.hook</pre> <br />
Now you have access to a menu of installed programs, automatically categorized and updated. You can access this menu with the FVWM commands<br />
<br />
现在你可以进入包含了安装的应用程序的菜单中,自动分类和更新。你可以通过以下FVWM指令进入这个菜单<br />
<pre>Menu /Debian</pre> <br />
or<br />
<pre>Popup /Debian</pre><br />
<br />
=== 其它 ===<br />
<br />
There are reports of FVWM not working well under Xgl. This will be corrected when the users complain loudly enough, or someone submits a patch. FVWM works reasonably well with xcompmgr and the composite extension. If you use xcompmgr: Do not give icons titles:<br />
<br />
有报道说FVWM在Xgl下不能很好的运行。如果用户抱怨足够多或是有人提交了补丁的话,这个问题将被修正。FVWM和xcompmgr及其扩展能很好的一起运行。如果你用xcompmgr:不要给图标标题:<br />
<br />
<pre>Style *&nbsp;!IconTitle</pre> <br />
Restart FVWM after starting or stopping xcompmgr:<br />
<br />
当启动或停止xcompmgr时,需要重新启动FVWM。<br />
<br />
<pre># xcompmgr is finally pretty stable, but occasionally it gets screwy or dies<br />
# FVWM must be restarted after xcompmgr, otherwise edges don't work<br />
DestroyFunc RestartXCompMgr<br />
AddToFunc RestartXCompMgr<br />
+ I PipeRead 'killall xcompmgr &amp;&amp; exec xcompmgr -n &amp;&nbsp;; echo Restart'</pre><br />
<br />
== 扩展链接 ==<br />
<br />
* [http://www.fvwm.org FVWM Homepage]<br />
* [http://fvwm.lair.be FVWM Forums]<br />
* [http://fvwmwiki.bu-web.de/ FVWM Wiki]<br />
* [http://dev.gentoo.org/~taviso/fvwm2rc.html An elaborate config file, by Taviso]<br />
* [http://fvwm-themes.sourceforge.net/ The FVWM Themes Project]<br />
* [http://fvwm-crystal.org/ FVWM Crystal], a project similar to FVWM Themes<br />
* Screenshots from Ubuntu users<br />
* [http://ubuntuforums.org/gallery/showphoto.php?photo=1020&si=fvwm vwc]<br />
* [http://ubuntuforums.org/gallery/showphoto.php?photo=2211&si=fvwm sonik]<br />
* [http://ubuntuforums.org/gallery/showphoto.php?photo=1878&si=fvwm jpkotta]<br />
* [http://ubuntuforums.org/gallery/showphoto.php?photo=1431&si=fvwm Stormy Eyes]<br />
<br />
[[Category:UbuntuHelp]]</div>Convicehttps://wiki.ubuntu.org.cn/index.php?title=UbuntuHelp:FVWM/zh&diff=75194UbuntuHelp:FVWM/zh2007-12-23T06:21:31Z<p>Convice:</p>
<hr />
<div>{{Translation}} <br />
<br />
{{From|https://help.ubuntu.com/community/FVWM}} <br />
<br />
{{Translator|convice}} {{Languages|FVWM}}<br />
<br />
FVWM is an extremely customizable window manager, many would say it is pathologically customizable. It is also very extensible, lightweight, and fast. It is not for the non-technical. It is for those who know what they want and want the freedom to implement it. It can be as ugly and functional or as beautiful and full of gee-whiz embellishments as you like. The limits are your imagination and your skill. There are 3rd party projects to provide automatic configuration and themes (fvwm-themes and fvwm-crystal). FVWM itself provides a default configuration file generator, in which certain options can be chosen. The expectation, however, is that you want a configuration of your very own, and you can use these tools and others' configs as a starting point ([http://starshine.org/xteddy/thomas/fvwm/user_enumerate.html further explanation]).<br />
<br />
FVWM是一种高度可配置的窗口管理器,我们甚至可说它是“病态”的可配置。它也是可扩展的,轻量级的,快速的窗口管理器。它不适合非技术人士,只适合于那些知道他们想要什么并希望能自由的实现的那些人。它可以是很丑陋但功能强大,或者是充满了很多奇特的装饰,只要你喜欢。唯一的限制是你的想像力和技巧。有一些第三方项目提供了自动化的配置和主题(fvwm-themes和fvwm-crystal)。FVWM也提供一些配置文件产生器,它给你提供了一些特定的选项。如果你希望创建你自己的配置文件,你可以使用这些工具和别人的配置做为一个起点。<br />
([http://starshine.org/xteddy/thomas/fvwm/user_enumerate.html further explanation]).<br />
<br />
== Ubuntu specifics ==<br />
<br />
=== 安装 ===<br />
<br />
==== 从 Apt ====<br />
<br />
FVWM is easily installed into Ubuntu, as there is an fvwm package in the repositories. There are additional packages like fvwm-themes, which is a collection of canned FVWM configurations for those who want something that works right away.<br />
<br />
FVWM可以很容易的被安装到Ubuntu上,因为在软件仓库里有fvwm软件包。还有一些为那些想要马上能工作的人提供的附加软件包,它们包含了一些可用的FVWM配置文件。<br />
<br />
==== 从源码包安装 ====<br />
<br />
FVWM is an active project. Updates with bug fixes and new features are fairly frequent. Currently, FVWM maintains two states: a stable release (versions 2.4.X) and an unstable release (2.5.X). The unstable branch is the one that will eventually form the new stable set (and hence will evolve to 2.6.X as stable, and 2.7.X as being unstable). Given that the FVWM stable branch is quite old, a lot of the more "established" actions one would expect from a window manager is really only in the unstable branch at the moment. Not that "unstable" really means that it crashes every five minutes; it's just an indication that the branch is subject to development and change. Unless there's a very good reason (unlikely) then the 2.5.X branch is the one that should be used, as many people tailor their configs to use it, and usually give no consideration to FVWM 2.4.X. Prerequisite packages are<br />
<br />
FVWM是一个活跃的项目。Bug修正和新功能的升级十分频繁。目前,FVWM维护着两个版本分支:稳定版本(2.4.X)和不稳定版本(2.5.X)。不稳定分支最终会形成稳定版本。(2.6.X将会是下一个稳定版本分支,而2.7.X则是下一个非稳定版本)。FVWM的稳定分支已经很老了,目前,很多作为窗口管理器被期望的并已经完成的功能只有非稳定版本才有。“不稳定”并不意味着它将每五分钟崩溃一次,它只是表明了这个分支是被用于开发和改进的。除非有很好的理由不用它(未必有),2.5.X应该是我们使用的版本,因为很多人用它制作自己的配置,他们通常都不会考虑FVWM 2.4.X。需要预先安装的软件包有:build-essential,xorg-dev,fakeroot (用来制作 .deb包),debhelper (也是用于制作 .deb包). 一些几乎每个人都想要用的软件包有:libpng-dev (让 .png 格式的图片能用于图标) 和 libreadline-dev (它使 FvwmConsole 更好用). 下载tar包,像平常一样解压和configure. 不要简单的就使用make,用make deb-inplace来制作 .deb包, 然后用dpkg 安装.<br />
<br />
=== 集成 ===<br />
<br />
If you install from apt, then FVWM is already in GDM's list of sessions. If you install from source, you will have to choose "Default X session". You will also have to make a .xsession file. The simplest .xsession file simply contains the line "fvwm". .xsession is simply a shell script that is run when you log in from GDM. If there are any programs that you need to start before fvwm, put them in .xsession before "fvwm". It is also wise to make a .xinitrc that is a symlink to .xsession, so that fvwm starts up when you log in from the console. As an example, your ~/.xsesssion file might look like the following:<br />
<br />
<br>如果你使用apt安装,那FVWM就会直接出现在GDM的会话列表里面。如果你自己编译源码,那还需要设置“默认会话”。同时你还需要编写一个.xsession文件。在这个文件中需要简单的添加几行包含"fvwm"相关内容的语句。其实,简单而言,.xsession文件就是一个shell脚本,当你使用GDM登录时,这个脚本将被执行。如果你希望有些程序系统启动时先于FVWM启动,那请在.xsession文件中将相应语句添加在包含"fvwm"的语句之前。生成一个.xinitrc链接指向.xsession文件是一个明智之举,这样从控制台登录系统也可以启动fvwm。你的~/.xsession文件看起来应该和下面的示例相象:&nbsp;<br />
<pre>#!/bin/sh<br />
<br />
# Various other commands here, ensuring that they're backgrounded where necessary<br />
# i.e.:<br />
#<br />
# foo &amp;<br />
<br />
# Start FVWM<br />
exec fvwm</pre> <br />
Symlinking the above to ~/.xinitrc can be done as follows:<br />
<br />
使用下面的指令建立符号链接,将上面所示的.xsession文件链接到~/.xinitrc<br />
<pre>ln -s ~/.xsession ~/.xinitrc</pre> <br />
You can have a menu of most installed applications with Debian's menu system. Install the menu package<br />
<br />
<br><br />
<br />
在Debian的菜单系统中,你可以拥有一个包含了大部分已经安装的应用程序的菜单。使用以下指令安装菜单<br />
<pre>sudo apt-get install menu</pre> <br />
Then, to your<br />
<br />
<br> ~/.fvwm/config add<br />
<br />
<br> 然後,<br />
<br />
<br> 添加以下内容到~/.fvwm/config<br />
<pre>Read /etc/X11/fvwm/menudefs.hook</pre> <br />
Now you have access to a menu of installed programs, automatically categorized and updated. You can access this menu with the FVWM commands<br />
<br />
现在你可以进入包含了安装的应用程序的菜单中,自动分类和更新。你可以通过以下FVWM指令进入这个菜单<br />
<pre>Menu /Debian</pre> <br />
or<br />
<pre>Popup /Debian</pre><br />
<br />
=== 其它 ===<br />
<br />
There are reports of FVWM not working well under Xgl. This will be corrected when the users complain loudly enough, or someone submits a patch. FVWM works reasonably well with xcompmgr and the composite extension. If you use xcompmgr: Do not give icons titles:<br />
<br />
有报道说FVWM在Xgl下不能很好的运行。如果用户抱怨足够多或是有人提交了补丁的话,这个问题将被修正。FVWM和xcompmgr及其扩展能很好的一起运行。如果你用xcompmgr:不要给图标标题:<br />
<br />
<pre>Style *&nbsp;!IconTitle</pre> <br />
Restart FVWM after starting or stopping xcompmgr:<br />
<br />
当启动或停止xcompmgr时,需要重新启动FVWM。<br />
<br />
<pre># xcompmgr is finally pretty stable, but occasionally it gets screwy or dies<br />
# FVWM must be restarted after xcompmgr, otherwise edges don't work<br />
DestroyFunc RestartXCompMgr<br />
AddToFunc RestartXCompMgr<br />
+ I PipeRead 'killall xcompmgr &amp;&amp; exec xcompmgr -n &amp;&nbsp;; echo Restart'</pre><br />
<br />
== External Links ==<br />
<br />
* [http://www.fvwm.org FVWM Homepage]<br />
* [http://fvwm.lair.be FVWM Forums]<br />
* [http://fvwmwiki.bu-web.de/ FVWM Wiki]<br />
* [http://dev.gentoo.org/~taviso/fvwm2rc.html An elaborate config file, by Taviso]<br />
* [http://fvwm-themes.sourceforge.net/ The FVWM Themes Project]<br />
* [http://fvwm-crystal.org/ FVWM Crystal], a project similar to FVWM Themes<br />
* Screenshots from Ubuntu users<br />
* [http://ubuntuforums.org/gallery/showphoto.php?photo=1020&si=fvwm vwc]<br />
* [http://ubuntuforums.org/gallery/showphoto.php?photo=2211&si=fvwm sonik]<br />
* [http://ubuntuforums.org/gallery/showphoto.php?photo=1878&si=fvwm jpkotta]<br />
* [http://ubuntuforums.org/gallery/showphoto.php?photo=1431&si=fvwm Stormy Eyes]<br />
<br />
[[Category:UbuntuHelp]]</div>Convicehttps://wiki.ubuntu.org.cn/index.php?title=UbuntuHelp:FVWM/zh&diff=75193UbuntuHelp:FVWM/zh2007-12-23T06:21:12Z<p>Convice:</p>
<hr />
<div>{{Translation}} <br />
<br />
{{From|https://help.ubuntu.com/community/FVWM}} <br />
<br />
{{Translator|convice}} {{Languages|FVWM}}<br />
<br />
FVWM is an extremely customizable window manager, many would say it is pathologically customizable. It is also very extensible, lightweight, and fast. It is not for the non-technical. It is for those who know what they want and want the freedom to implement it. It can be as ugly and functional or as beautiful and full of gee-whiz embellishments as you like. The limits are your imagination and your skill. There are 3rd party projects to provide automatic configuration and themes (fvwm-themes and fvwm-crystal). FVWM itself provides a default configuration file generator, in which certain options can be chosen. The expectation, however, is that you want a configuration of your very own, and you can use these tools and others' configs as a starting point ([http://starshine.org/xteddy/thomas/fvwm/user_enumerate.html further explanation]).<br />
<br />
FVWM是一种高度可配置的窗口管理器,我们甚至可说它是“病态”的可配置。它也是可扩展的,轻量级的,快速的窗口管理器。它不适合非技术人士,只适合于那些知道他们想要什么并希望能自由的实现的那些人。它可以是很丑陋但功能强大,或者是充满了很多奇特的装饰,只要你喜欢。唯一的限制是你的想像力和技巧。有一些第三方项目提供了自动化的配置和主题(fvwm-themes和fvwm-crystal)。FVWM也提供一些配置文件产生器,它给你提供了一些特定的选项。如果你希望创建你自己的配置文件,你可以使用这些工具和别人的配置做为一个起点。<br />
([http://starshine.org/xteddy/thomas/fvwm/user_enumerate.html further explanation]).<br />
<br />
== Ubuntu specifics ==<br />
<br />
=== 安装 ===<br />
<br />
==== 从 Apt ====<br />
<br />
FVWM is easily installed into Ubuntu, as there is an fvwm package in the repositories. There are additional packages like fvwm-themes, which is a collection of canned FVWM configurations for those who want something that works right away.<br />
<br />
FVWM可以很容易的被安装到Ubuntu上,因为在软件仓库里有fvwm软件包。还有一些为那些想要马上能工作的人提供的附加软件包,它们包含了一些可用的FVWM配置文件。<br />
<br />
==== 从源码包安装 ====<br />
<br />
FVWM is an active project. Updates with bug fixes and new features are fairly frequent. Currently, FVWM maintains two states: a stable release (versions 2.4.X) and an unstable release (2.5.X). The unstable branch is the one that will eventually form the new stable set (and hence will evolve to 2.6.X as stable, and 2.7.X as being unstable). Given that the FVWM stable branch is quite old, a lot of the more "established" actions one would expect from a window manager is really only in the unstable branch at the moment. Not that "unstable" really means that it crashes every five minutes; it's just an indication that the branch is subject to development and change. Unless there's a very good reason (unlikely) then the 2.5.X branch is the one that should be used, as many people tailor their configs to use it, and usually give no consideration to FVWM 2.4.X. Prerequisite packages are<br />
<br />
FVWM是一个活跃的项目。Bug修正和新功能的升级十分频繁。目前,FVWM维护着两个版本分支:稳定版本(2.4.X)和不稳定版本(2.5.X)。不稳定分支最终会形成稳定版本。(2.6.X将会是下一个稳定版本分支,而2.7.X则是下一个非稳定版本)。FVWM的稳定分支已经很老了,目前,很多作为窗口管理器被期望的并已经完成的功能只有非稳定版本才有。“不稳定”并不意味着它将每五分钟崩溃一次,它只是表明了这个分支是被用于开发和改进的。除非有很好的理由不用它(未必有),2.5.X应该是我们使用的版本,因为很多人用它制作自己的配置,他们通常都不会考虑FVWM 2.4.X。需要预先安装的软件包有:build-essential,xorg-dev,fakeroot (用来制作 .deb包),debhelper (也是用于制作 .deb包). 一些几乎每个人都想要用的软件包有:libpng-dev (让 .png 格式的图片能用于图标) 和 libreadline-dev (它使 FvwmConsole 更好用). 下载tar包,像平常一样解压和configure. 不要简单的就使用make,用make deb-inplace来制作 .deb包, 然后用dpkg 安装.<br />
<br />
=== 集成 ===<br />
<br />
If you install from apt, then FVWM is already in GDM's list of sessions. If you install from source, you will have to choose "Default X session". You will also have to make a .xsession file. The simplest .xsession file simply contains the line "fvwm". .xsession is simply a shell script that is run when you log in from GDM. If there are any programs that you need to start before fvwm, put them in .xsession before "fvwm". It is also wise to make a .xinitrc that is a symlink to .xsession, so that fvwm starts up when you log in from the console. As an example, your ~/.xsesssion file might look like the following:<br>如果你使用apt安装,那FVWM就会直接出现在GDM的会话列表里面。如果你自己编译源码,那还需要设置“默认会话”。同时你还需要编写一个.xsession文件。在这个文件中需要简单的添加几行包含"fvwm"相关内容的语句。其实,简单而言,.xsession文件就是一个shell脚本,当你使用GDM登录时,这个脚本将被执行。如果你希望有些程序系统启动时先于FVWM启动,那请在.xsession文件中将相应语句添加在包含"fvwm"的语句之前。生成一个.xinitrc链接指向.xsession文件是一个明智之举,这样从控制台登录系统也可以启动fvwm。你的~/.xsession文件看起来应该和下面的示例相象:&nbsp;<br />
<pre>#!/bin/sh<br />
<br />
# Various other commands here, ensuring that they're backgrounded where necessary<br />
# i.e.:<br />
#<br />
# foo &amp;<br />
<br />
# Start FVWM<br />
exec fvwm</pre> <br />
Symlinking the above to ~/.xinitrc can be done as follows:<br />
<br />
使用下面的指令建立符号链接,将上面所示的.xsession文件链接到~/.xinitrc<br />
<pre>ln -s ~/.xsession ~/.xinitrc</pre> <br />
You can have a menu of most installed applications with Debian's menu system. Install the menu package<br />
<br />
<br />
<br />
在Debian的菜单系统中,你可以拥有一个包含了大部分已经安装的应用程序的菜单。使用以下指令安装菜单<br />
<pre>sudo apt-get install menu</pre> <br />
Then, to your<br />
<br />
<br> ~/.fvwm/config add<br />
<br />
<br> 然后,<br />
<br />
<br> 添加以下内容到~/.fvwm/config<br />
<pre>Read /etc/X11/fvwm/menudefs.hook</pre> <br />
Now you have access to a menu of installed programs, automatically categorized and updated. You can access this menu with the FVWM commands<br />
<br />
现在你可以进入包含了安装的应用程序的菜单中,自动分类和更新。你可以通过以下FVWM指令进入这个菜单<br />
<pre>Menu /Debian</pre> <br />
or<br />
<pre>Popup /Debian</pre><br />
<br />
=== 其它 ===<br />
<br />
There are reports of FVWM not working well under Xgl. This will be corrected when the users complain loudly enough, or someone submits a patch. FVWM works reasonably well with xcompmgr and the composite extension. If you use xcompmgr: Do not give icons titles:<br />
<br />
有报道说FVWM在Xgl下不能很好的运行。如果用户抱怨足够多或是有人提交了补丁的话,这个问题将被修正。FVWM和xcompmgr及其扩展能很好的一起运行。如果你用xcompmgr:不要给图标标题:<br />
<br />
<pre>Style *&nbsp;!IconTitle</pre> <br />
Restart FVWM after starting or stopping xcompmgr:<br />
<br />
当启动或停止xcompmgr时,需要重新启动FVWM。<br />
<br />
<pre># xcompmgr is finally pretty stable, but occasionally it gets screwy or dies<br />
# FVWM must be restarted after xcompmgr, otherwise edges don't work<br />
DestroyFunc RestartXCompMgr<br />
AddToFunc RestartXCompMgr<br />
+ I PipeRead 'killall xcompmgr &amp;&amp; exec xcompmgr -n &amp;&nbsp;; echo Restart'</pre><br />
<br />
== External Links ==<br />
<br />
* [http://www.fvwm.org FVWM Homepage]<br />
* [http://fvwm.lair.be FVWM Forums]<br />
* [http://fvwmwiki.bu-web.de/ FVWM Wiki]<br />
* [http://dev.gentoo.org/~taviso/fvwm2rc.html An elaborate config file, by Taviso]<br />
* [http://fvwm-themes.sourceforge.net/ The FVWM Themes Project]<br />
* [http://fvwm-crystal.org/ FVWM Crystal], a project similar to FVWM Themes<br />
* Screenshots from Ubuntu users<br />
* [http://ubuntuforums.org/gallery/showphoto.php?photo=1020&si=fvwm vwc]<br />
* [http://ubuntuforums.org/gallery/showphoto.php?photo=2211&si=fvwm sonik]<br />
* [http://ubuntuforums.org/gallery/showphoto.php?photo=1878&si=fvwm jpkotta]<br />
* [http://ubuntuforums.org/gallery/showphoto.php?photo=1431&si=fvwm Stormy Eyes]<br />
<br />
[[Category:UbuntuHelp]]</div>Convicehttps://wiki.ubuntu.org.cn/index.php?title=UbuntuHelp:FVWM/zh&diff=75192UbuntuHelp:FVWM/zh2007-12-23T06:18:13Z<p>Convice:</p>
<hr />
<div>{{Translation}} <br />
<br />
{{From|https://help.ubuntu.com/community/FVWM}} <br />
<br />
{{Translator|convice}} {{Languages|FVWM}}<br />
<br />
FVWM is an extremely customizable window manager, many would say it is pathologically customizable. It is also very extensible, lightweight, and fast. It is not for the non-technical. It is for those who know what they want and want the freedom to implement it. It can be as ugly and functional or as beautiful and full of gee-whiz embellishments as you like. The limits are your imagination and your skill. There are 3rd party projects to provide automatic configuration and themes (fvwm-themes and fvwm-crystal). FVWM itself provides a default configuration file generator, in which certain options can be chosen. The expectation, however, is that you want a configuration of your very own, and you can use these tools and others' configs as a starting point ([http://starshine.org/xteddy/thomas/fvwm/user_enumerate.html further explanation]).<br />
<br />
FVWM是一种高度可配置的窗口管理器,我们甚至可说它是“病态”的可配置。它也是可扩展的,轻量级的,快速的窗口管理器。它不适合非技术人士,只适合于那些知道他们想要什么并希望能自由的实现的那些人。它可以是很丑陋但功能强大,或者是充满了很多奇特的装饰,只要你喜欢。唯一的限制是你的想像力和技巧。有一些第三方项目提供了自动化的配置和主题(fvwm-themes和fvwm-crystal)。FVWM也提供一些配置文件产生器,它给你提供了一些特定的选项。如果你希望创建你自己的配置文件,你可以使用这些工具和别人的配置做为一个起点。<br />
([http://starshine.org/xteddy/thomas/fvwm/user_enumerate.html further explanation]).<br />
<br />
== Ubuntu specifics ==<br />
<br />
=== 安装 ===<br />
<br />
==== 从 Apt ====<br />
<br />
FVWM is easily installed into Ubuntu, as there is an fvwm package in the repositories. There are additional packages like fvwm-themes, which is a collection of canned FVWM configurations for those who want something that works right away.<br />
<br />
FVWM可以很容易的被安装到Ubuntu上,因为在软件仓库里有fvwm软件包。还有一些为那些想要马上能工作的人提供的附加软件包,它们包含了一些可用的FVWM配置文件。<br />
<br />
==== 从源码包安装 ====<br />
<br />
FVWM is an active project. Updates with bug fixes and new features are fairly frequent. Currently, FVWM maintains two states: a stable release (versions 2.4.X) and an unstable release (2.5.X). The unstable branch is the one that will eventually form the new stable set (and hence will evolve to 2.6.X as stable, and 2.7.X as being unstable). Given that the FVWM stable branch is quite old, a lot of the more "established" actions one would expect from a window manager is really only in the unstable branch at the moment. Not that "unstable" really means that it crashes every five minutes; it's just an indication that the branch is subject to development and change. Unless there's a very good reason (unlikely) then the 2.5.X branch is the one that should be used, as many people tailor their configs to use it, and usually give no consideration to FVWM 2.4.X. Prerequisite packages are<br />
<br />
FVWM是一个活跃的项目。Bug修正和新功能的升级十分频繁。目前,FVWM维护着两个版本分支:稳定版本(2.4.X)和不稳定版本(2.5.X)。不稳定分支最终会形成稳定版本。(2.6.X将会是下一个稳定版本分支,而2.7.X则是下一个非稳定版本)。FVWM的稳定分支已经很老了,目前,很多作为窗口管理器被期望的并已经完成的功能只有非稳定版本才有。“不稳定”并不意味着它将每五分钟崩溃一次,它只是表明了这个分支是被用于开发和改进的。除非有很好的理由不用它(未必有),2.5.X应该是我们使用的版本,因为很多人用它制作自己的配置,他们通常都不会考虑FVWM 2.4.X。需要预先安装的软件包有:build-essential,xorg-dev,fakeroot (用来制作 .deb包),debhelper (也是用于制作 .deb包). 一些几乎每个人都想要用的软件包有:libpng-dev (让 .png 格式的图片能用于图标) 和 libreadline-dev (它使 FvwmConsole 更好用). 下载tar包,像平常一样解压和configure. 不要简单的就使用make,用make deb-inplace来制作 .deb包, 然后用dpkg 安装.<br />
<br />
=== 集成 ===<br />
<br />
If you install from apt, then FVWM is already in GDM's list of sessions. If you install from source, you will have to choose "Default X session". You will also have to make a .xsession file. The simplest .xsession file simply contains the line "fvwm". .xsession is simply a shell script that is run when you log in from GDM. If there are any programs that you need to start before fvwm, put them in .xsession before "fvwm". It is also wise to make a .xinitrc that is a symlink to .xsession, so that fvwm starts up when you log in from the console. As an example, your ~/.xsesssion file might look like the following:<br>如果你使用apt安装,那FVWM就会直接出现在GDM的会话列表里面。如果你自己编译源码,那还需要设置“默认会话”。同时你还需要编写一个.xsession文件。在这个文件中需要简单的添加几行包含"fvwm"相关内容的语句。其实,简单而言,.xsession文件就是一个shell脚本,当你使用GDM登录时,这个脚本将被执行。如果你希望有些程序系统启动时先于FVWM启动,那请在.xsession文件中将相应语句添加在包含"fvwm"的语句之前。生成一个.xinitrc链接指向.xsession文件是一个明智之举,这样从控制台登录系统也可以启动fvwm。你的~/.xsession文件看起来应该和下面的示例相象:&nbsp;<br />
<pre>#!/bin/sh<br />
<br />
# Various other commands here, ensuring that they're backgrounded where necessary<br />
# i.e.:<br />
#<br />
# foo &amp;<br />
<br />
# Start FVWM<br />
exec fvwm</pre><br />
Symlinking the above to ~/.xinitrc can be done as follows:<br />
<br />
使用下面的指令建立符号链接,将上面所示的.xsession文件链接到~/.xinitrc<br />
<pre>ln -s ~/.xsession ~/.xinitrc</pre><br />
You can have a menu of most installed applications with Debian's menu system. Install the menu package<br />
<br />
在Debian的菜单系统中,你可以拥有一个包含了大部分已经安装的应用程序的菜单。使用以下指令安装菜单<br />
<pre>sudo apt-get install menu</pre><br />
<br />
Then, to your<br />
<br />
<br />
~/.fvwm/config add<br />
<br />
<br />
然後,<br />
<br />
<br />
添加以下内容到~/.fvwm/config<br />
<pre>Read /etc/X11/fvwm/menudefs.hook</pre><br />
Now you have access to a menu of installed programs, automatically categorized and updated. You can access this menu with the FVWM commands<br />
<br />
现在你可以进入包含了安装的应用程序的菜单中,自动分类和更新。你可以通过以下FVWM指令进入这个菜单<br />
<pre>Menu /Debian</pre><br />
or<br />
<pre>Popup /Debian</pre><br />
<br />
=== 其它 ===<br />
<br />
There are reports of FVWM not working well under Xgl. This will be corrected when the users complain loudly enough, or someone submits a patch. FVWM works reasonably well with xcompmgr and the composite extension. If you use xcompmgr: Do not give icons titles:<br />
<br />
有报道说FVWM在Xgl下不能很好的运行。如果用户抱怨足够多或是有人提交了补丁的话,这个问题将被修正。FVWM和xcompmgr及其扩展能很好的一起运行。如果你用xcompmgr:不要给图标标题:<br />
<br />
<pre>Style *&nbsp;!IconTitle</pre> <br />
Restart FVWM after starting or stopping xcompmgr:<br />
<br />
当启动或停止xcompmgr时,需要重新启动FVWM。<br />
<br />
<pre># xcompmgr is finally pretty stable, but occasionally it gets screwy or dies<br />
# FVWM must be restarted after xcompmgr, otherwise edges don't work<br />
DestroyFunc RestartXCompMgr<br />
AddToFunc RestartXCompMgr<br />
+ I PipeRead 'killall xcompmgr &amp;&amp; exec xcompmgr -n &amp;&nbsp;; echo Restart'</pre><br />
<br />
== External Links ==<br />
<br />
* [http://www.fvwm.org FVWM Homepage]<br />
* [http://fvwm.lair.be FVWM Forums]<br />
* [http://fvwmwiki.bu-web.de/ FVWM Wiki]<br />
* [http://dev.gentoo.org/~taviso/fvwm2rc.html An elaborate config file, by Taviso]<br />
* [http://fvwm-themes.sourceforge.net/ The FVWM Themes Project]<br />
* [http://fvwm-crystal.org/ FVWM Crystal], a project similar to FVWM Themes<br />
* Screenshots from Ubuntu users<br />
* [http://ubuntuforums.org/gallery/showphoto.php?photo=1020&si=fvwm vwc]<br />
* [http://ubuntuforums.org/gallery/showphoto.php?photo=2211&si=fvwm sonik]<br />
* [http://ubuntuforums.org/gallery/showphoto.php?photo=1878&si=fvwm jpkotta]<br />
* [http://ubuntuforums.org/gallery/showphoto.php?photo=1431&si=fvwm Stormy Eyes]<br />
<br />
[[Category:UbuntuHelp]]</div>Convicehttps://wiki.ubuntu.org.cn/index.php?title=UbuntuHelp:FVWM/zh&diff=75095UbuntuHelp:FVWM/zh2007-12-19T07:30:09Z<p>Convice:</p>
<hr />
<div>{{Translation}} <br />
<br />
{{From|https://help.ubuntu.com/community/FVWM}} <br />
<br />
{{Translator|convice}} {{Languages|FVWM}}<br />
<br />
FVWM is an extremely customizable window manager, many would say it is pathologically customizable. It is also very extensible, lightweight, and fast. It is not for the non-technical. It is for those who know what they want and want the freedom to implement it. It can be as ugly and functional or as beautiful and full of gee-whiz embellishments as you like. The limits are your imagination and your skill. There are 3rd party projects to provide automatic configuration and themes (fvwm-themes and fvwm-crystal). FVWM itself provides a default configuration file generator, in which certain options can be chosen. The expectation, however, is that you want a configuration of your very own, and you can use these tools and others' configs as a starting point ([http://starshine.org/xteddy/thomas/fvwm/user_enumerate.html further explanation]).<br />
<br />
FVWM是一种高度可配置的窗口管理器,我们甚至可说它是“病态”的可配置。它也是可扩展的,轻量级的,快速的窗口管理器。它不适合非技术人士,只适合于那些知道他们想要什么并希望能自由的实现的那些人。它可以是很丑陋但功能强大,或者是充满了很多奇特的装饰,只要你喜欢。唯一的限制是你的想像力和技巧。有一些第三方项目提供了自动化的配置和主题(fvwm-themes和fvwm-crystal)。FVWM也提供一些配置文件产生器,它给你提供了一些特定的选项。如果你希望创建你自己的配置文件,你可以使用这些工具和别人的配置做为一个起点。<br />
([http://starshine.org/xteddy/thomas/fvwm/user_enumerate.html further explanation]).<br />
<br />
== Ubuntu specifics ==<br />
<br />
=== 安装 ===<br />
<br />
==== 从 Apt ====<br />
<br />
FVWM is easily installed into Ubuntu, as there is an fvwm package in the repositories. There are additional packages like fvwm-themes, which is a collection of canned FVWM configurations for those who want something that works right away.<br />
<br />
FVWM可以很容易的被安装到Ubuntu上,因为在软件仓库里有fvwm软件包。还有一些为那些想要马上能工作的人提供的附加软件包,它们包含了一些可用的FVWM配置文件。<br />
<br />
==== 从源码包安装 ====<br />
<br />
FVWM is an active project. Updates with bug fixes and new features are fairly frequent. Currently, FVWM maintains two states: a stable release (versions 2.4.X) and an unstable release (2.5.X). The unstable branch is the one that will eventually form the new stable set (and hence will evolve to 2.6.X as stable, and 2.7.X as being unstable). Given that the FVWM stable branch is quite old, a lot of the more "established" actions one would expect from a window manager is really only in the unstable branch at the moment. Not that "unstable" really means that it crashes every five minutes; it's just an indication that the branch is subject to development and change. Unless there's a very good reason (unlikely) then the 2.5.X branch is the one that should be used, as many people tailor their configs to use it, and usually give no consideration to FVWM 2.4.X. Prerequisite packages are<br />
<br />
FVWM是一个活跃的项目。Bug修正和新功能的升级十分频繁。目前,FVWM维护着两个版本分支:稳定版本(2.4.X)和不稳定版本(2.5.X)。不稳定分支最终会形成稳定版本。(2.6.X将会是下一个稳定版本分支,而2.7.X则是下一个非稳定版本)。FVWM的稳定分支已经很老了,目前,很多作为窗口管理器被期望的并已经完成的功能只有非稳定版本才有。“不稳定”并不意味着它将每五分钟崩溃一次,它只是表明了这个分支是被用于开发和改进的。除非有很好的理由不用它(未必有),2.5.X应该是我们使用的版本,因为很多人用它制作自己的配置,他们通常都不会考虑FVWM 2.4.X。需要预先安装的软件包有:build-essential,xorg-dev,fakeroot (用来制作 .deb包),debhelper (也是用于制作 .deb包). 一些几乎每个人都想要用的软件包有:libpng-dev (让 .png 格式的图片能用于图标) 和 libreadline-dev (它使 FvwmConsole 更好用). 下载tar包,像平常一样解压和configure. 不要简单的就使用make,用make deb-inplace来制作 .deb包, 然后用dpkg 安装.<br />
<br />
=== 集成 ===<br />
<br />
If you install from apt, then FVWM is already in GDM's list of sessions. If you install from source, you will have to choose "Default X session". You will also have to make a .xsession file. The simplest .xsession file simply contains the line "fvwm". .xsession is simply a shell script that is run when you log in from GDM. If there are any programs that you need to start before fvwm, put them in .xsession before "fvwm". It is also wise to make a .xinitrc that is a symlink to .xsession, so that fvwm starts up when you log in from the console. As an example, your ~/.xsesssion file might look like the following:<br />
<pre>#!/bin/sh<br />
<br />
# Various other commands here, ensuring that they're backgrounded where necessary<br />
# i.e.:<br />
#<br />
# foo &amp;<br />
<br />
# Start FVWM<br />
exec fvwm</pre> <br />
Symlinking the above to ~/.xinitrc can be done as follows:<br />
<pre>ln -s ~/.xsession ~/.xinitrc</pre> <br />
You can have a menu of most installed applications with Debian's menu system. Install the menu package<br />
<pre>sudo apt-get install menu</pre> <br />
Then, to your ~/.fvwm/config add<br />
<pre>Read /etc/X11/fvwm/menudefs.hook</pre> <br />
Now you have access to a menu of installed programs, automatically categorized and updated. You can access this menu with the FVWM commands<br />
<pre>Menu /Debian</pre> <br />
or<br />
<pre>Popup /Debian</pre><br />
<br />
=== Other ===<br />
<br />
There are reports of FVWM not working well under Xgl. This will be corrected when the users complain loudly enough, or someone submits a patch. FVWM works reasonably well with xcompmgr and the composite extension. If you use xcompmgr: Do not give icons titles:<br />
<pre>Style *&nbsp;!IconTitle</pre> <br />
Restart FVWM after starting or stopping xcompmgr:<br />
<pre># xcompmgr is finally pretty stable, but occasionally it gets screwy or dies<br />
# FVWM must be restarted after xcompmgr, otherwise edges don't work<br />
DestroyFunc RestartXCompMgr<br />
AddToFunc RestartXCompMgr<br />
+ I PipeRead 'killall xcompmgr &amp;&amp; exec xcompmgr -n &amp;&nbsp;; echo Restart'</pre> <br />
== External Links ==<br />
<br />
* [http://www.fvwm.org FVWM Homepage]<br />
* [http://fvwm.lair.be FVWM Forums]<br />
* [http://fvwmwiki.bu-web.de/ FVWM Wiki]<br />
* [http://dev.gentoo.org/~taviso/fvwm2rc.html An elaborate config file, by Taviso]<br />
* [http://fvwm-themes.sourceforge.net/ The FVWM Themes Project]<br />
* [http://fvwm-crystal.org/ FVWM Crystal], a project similar to FVWM Themes<br />
* Screenshots from Ubuntu users<br />
* [http://ubuntuforums.org/gallery/showphoto.php?photo=1020&si=fvwm vwc]<br />
* [http://ubuntuforums.org/gallery/showphoto.php?photo=2211&si=fvwm sonik]<br />
* [http://ubuntuforums.org/gallery/showphoto.php?photo=1878&si=fvwm jpkotta]<br />
* [http://ubuntuforums.org/gallery/showphoto.php?photo=1431&si=fvwm Stormy Eyes]<br />
<br />
[[Category:UbuntuHelp]]</div>Convicehttps://wiki.ubuntu.org.cn/index.php?title=UbuntuHelp:FVWM/zh&diff=75093UbuntuHelp:FVWM/zh2007-12-19T07:12:44Z<p>Convice:</p>
<hr />
<div>{{Translation}} <br />
<br />
{{From|https://help.ubuntu.com/community/FVWM}} <br />
<br />
{{Translator|convice}} {{Languages|FVWM}}<br />
<br />
FVWM is an extremely customizable window manager, many would say it is pathologically customizable. It is also very extensible, lightweight, and fast. It is not for the non-technical. It is for those who know what they want and want the freedom to implement it. It can be as ugly and functional or as beautiful and full of gee-whiz embellishments as you like. The limits are your imagination and your skill. There are 3rd party projects to provide automatic configuration and themes (fvwm-themes and fvwm-crystal). FVWM itself provides a default configuration file generator, in which certain options can be chosen. The expectation, however, is that you want a configuration of your very own, and you can use these tools and others' configs as a starting point ([http://starshine.org/xteddy/thomas/fvwm/user_enumerate.html further explanation]).<br />
<br />
FVWM是一种高度可配置的窗口管理器,我们甚至可说它是“病态”的可配置。它也是可扩展的,轻量级的,快速的窗口管理器。它不适合非技术人士,只适合于那些知道他们想要什么并希望能自由的实现的那些人。它可以是很丑陋但功能强大,或者是充满了很多奇特的装饰,只要你喜欢。唯一的限制是你的想像力和技巧。有一些第三方项目提供了自动化的配置和主题(fvwm-themes和fvwm-crystal)。FVWM也提供一些配置文件产生器,它给你提供了一些特定的选项。如果你希望创建你自己的配置文件,你可以使用这些工具和别人的配置做为一个起点。<br />
([http://starshine.org/xteddy/thomas/fvwm/user_enumerate.html further explanation]).<br />
<br />
== Ubuntu specifics ==<br />
<br />
=== 安装 ===<br />
<br />
==== 从 Apt ====<br />
<br />
FVWM is easily installed into Ubuntu, as there is an fvwm package in the repositories. There are additional packages like fvwm-themes, which is a collection of canned FVWM configurations for those who want something that works right away.<br />
<br />
FVWM可以很容易的被安装到Ubuntu上,因为在软件仓库里有fvwm软件包。还有一些为那些想要马上能工作的人提供的附加软件包,它们包含了一些可用的FVWM配置文件。<br />
<br />
==== 从源码包安装 ====<br />
<br />
FVWM is an active project. Updates with bug fixes and new features are fairly frequent. Currently, FVWM maintains two states: a stable release (versions 2.4.X) and an unstable release (2.5.X). The unstable branch is the one that will eventually form the new stable set (and hence will evolve to 2.6.X as stable, and 2.7.X as being unstable). Given that the FVWM stable branch is quite old, a lot of the more "established" actions one would expect from a window manager is really only in the unstable branch at the moment. Not that "unstable" really means that it crashes every five minutes; it's just an indication that the branch is subject to development and change. Unless there's a very good reason (unlikely) then the 2.5.X branch is the one that should be used, as many people tailor their configs to use it, and usually give no consideration to FVWM 2.4.X. Prerequisite packages are<br />
<br />
FVWM是一个活跃的项目。Bug修正和新功能的升级十分频繁。目前,FVWM维护着两个版本分支:稳定版本(2.4.X)和不稳定版本(2.5.X)。不稳定分支最终会形成稳定版本。(2.6.X将会是下一个稳定版本分支,而2.7.X则是下一个非稳定版本)。FVWM的稳定分支已经很老了,目前,很多作为窗口管理器被期望的并已经完成的功能只有非稳定版本才有。“不稳定”并不意味着它将每五分钟崩溃一次,它只是表明了这个分支是被用于开发和改进的。除非有很好的理由不用它(未必有),2.5.X应该是我们使用的版本,因为很多人用它制作自己的配置,他们通常都不会考虑FVWM 2.4.X。需要预先安装的软件包有:build-essential,xorg-dev,fakeroot (用来制作 .deb包),debhelper (也是用于制作 .deb包). 一些几乎每个人都想要用的软件包有:libpng-dev (让 .png 格式的图片能用于图标) 和 libreadline-dev (它使 FvwmConsole 更好用). 下载tar包,像平常一样解压和configure. 不要简单的就使用make,用make deb-inplace来制作 .deb包, 然后用dpkg 安装.<br />
<br />
=== Integration ===<br />
<br />
If you install from apt, then FVWM is already in GDM's list of sessions. If you install from source, you will have to choose "Default X session". You will also have to make a .xsession file. The simplest .xsession file simply contains the line "fvwm". .xsession is simply a shell script that is run when you log in from GDM. If there are any programs that you need to start before fvwm, put them in .xsession before "fvwm". It is also wise to make a .xinitrc that is a symlink to .xsession, so that fvwm starts up when you log in from the console. As an example, your ~/.xsesssion file might look like the following:<br />
<pre>#!/bin/sh<br />
<br />
# Various other commands here, ensuring that they're backgrounded where necessary<br />
# i.e.:<br />
#<br />
# foo &amp;<br />
<br />
# Start FVWM<br />
exec fvwm</pre> <br />
Symlinking the above to ~/.xinitrc can be done as follows:<br />
<pre>ln -s ~/.xsession ~/.xinitrc</pre> <br />
You can have a menu of most installed applications with Debian's menu system. Install the menu package<br />
<pre>sudo apt-get install menu</pre> <br />
Then, to your ~/.fvwm/config add<br />
<pre>Read /etc/X11/fvwm/menudefs.hook</pre> <br />
Now you have access to a menu of installed programs, automatically categorized and updated. You can access this menu with the FVWM commands<br />
<pre>Menu /Debian</pre> <br />
or<br />
<pre>Popup /Debian</pre> <br />
=== Other ===<br />
<br />
There are reports of FVWM not working well under Xgl. This will be corrected when the users complain loudly enough, or someone submits a patch. FVWM works reasonably well with xcompmgr and the composite extension. If you use xcompmgr: Do not give icons titles:<br />
<pre>Style *&nbsp;!IconTitle</pre> <br />
Restart FVWM after starting or stopping xcompmgr:<br />
<pre># xcompmgr is finally pretty stable, but occasionally it gets screwy or dies<br />
# FVWM must be restarted after xcompmgr, otherwise edges don't work<br />
DestroyFunc RestartXCompMgr<br />
AddToFunc RestartXCompMgr<br />
+ I PipeRead 'killall xcompmgr &amp;&amp; exec xcompmgr -n &amp;&nbsp;; echo Restart'</pre> <br />
== External Links ==<br />
<br />
* [http://www.fvwm.org FVWM Homepage]<br />
* [http://fvwm.lair.be FVWM Forums]<br />
* [http://fvwmwiki.bu-web.de/ FVWM Wiki]<br />
* [http://dev.gentoo.org/~taviso/fvwm2rc.html An elaborate config file, by Taviso]<br />
* [http://fvwm-themes.sourceforge.net/ The FVWM Themes Project]<br />
* [http://fvwm-crystal.org/ FVWM Crystal], a project similar to FVWM Themes<br />
* Screenshots from Ubuntu users<br />
* [http://ubuntuforums.org/gallery/showphoto.php?photo=1020&si=fvwm vwc]<br />
* [http://ubuntuforums.org/gallery/showphoto.php?photo=2211&si=fvwm sonik]<br />
* [http://ubuntuforums.org/gallery/showphoto.php?photo=1878&si=fvwm jpkotta]<br />
* [http://ubuntuforums.org/gallery/showphoto.php?photo=1431&si=fvwm Stormy Eyes]<br />
<br />
[[Category:UbuntuHelp]]</div>Convicehttps://wiki.ubuntu.org.cn/index.php?title=UbuntuHelp:FVWM/zh&diff=75092UbuntuHelp:FVWM/zh2007-12-19T06:55:48Z<p>Convice:</p>
<hr />
<div>{{Translation}} <br />
<br />
{{From|https://help.ubuntu.com/community/FVWM}} <br />
<br />
{{Translator|convice}} {{Languages|FVWM}}<br />
<br />
FVWM is an extremely customizable window manager, many would say it is pathologically customizable. It is also very extensible, lightweight, and fast. It is not for the non-technical. It is for those who know what they want and want the freedom to implement it. It can be as ugly and functional or as beautiful and full of gee-whiz embellishments as you like. The limits are your imagination and your skill. There are 3rd party projects to provide automatic configuration and themes (fvwm-themes and fvwm-crystal). FVWM itself provides a default configuration file generator, in which certain options can be chosen. The expectation, however, is that you want a configuration of your very own, and you can use these tools and others' configs as a starting point ([http://starshine.org/xteddy/thomas/fvwm/user_enumerate.html further explanation]).<br />
<br />
FVWM是一种高度可配置的窗口管理器,我们甚至可说它是“病态”的可配置。它也是可扩展的,轻量级的,快速的窗口管理器。它不适合非技术人士,只适合于那些知道他们想要什么并希望能自由的实现的那些人。它可以是很丑陋但功能强大,或者是充满了很多奇特的装饰,只要你喜欢。唯一的限制是你的想像力和技巧。有一些第三方项目提供了自动化的配置和主题(fvwm-themes和fvwm-crystal)。FVWM也提供一些配置文件产生器,它给你提供了一些特定的选项。如果你希望创建你自己的配置文件,你可以使用这些工具和别人的配置做为一个起点。<br />
([http://starshine.org/xteddy/thomas/fvwm/user_enumerate.html further explanation]).<br />
<br />
== Ubuntu specifics ==<br />
<br />
=== 安装 ===<br />
<br />
==== 从 Apt ====<br />
<br />
FVWM is easily installed into Ubuntu, as there is an fvwm package in the repositories. There are additional packages like fvwm-themes, which is a collection of canned FVWM configurations for those who want something that works right away.<br />
<br />
FVWM可以很容易的被安装到Ubuntu上,因为在软件仓库里有fvwm软件包。还有一些为那些想要马上能工作的人提供的附加软件包,它们包含了一些可用的FVWM配置文件。<br />
<br />
==== 从源码包安装 ====<br />
<br />
FVWM is an active project. Updates with bug fixes and new features are fairly frequent. Currently, FVWM maintains two states: a stable release (versions 2.4.X) and an unstable release (2.5.X). The unstable branch is the one that will eventually form the new stable set (and hence will evolve to 2.6.X as stable, and 2.7.X as being unstable). Given that the FVWM stable branch is quite old, a lot of the more "established" actions one would expect from a window manager is really only in the unstable branch at the moment. Not that "unstable" really means that it crashes every five minutes; it's just an indication that the branch is subject to development and change. Unless there's a very good reason (unlikely) then the 2.5.X branch is the one that should be used, as many people tailor their configs to use it, and usually give no consideration to FVWM 2.4.X. Prerequisite packages are <br />
<br />
FVWM是一个活跃的项目。Bug修正和新功能的升级十分频繁。目前,FVWM维护着两个版本分支:稳定版本(2.4.X)和不稳定版本(2.5.X)。不稳定分支最终会形成稳定版本。<br />
<br />
<code><nowiki>build-essential</nowiki></code>, <code><nowiki>xorg-dev</nowiki></code>, <code><nowiki>fakeroot</nowiki></code> (for making the .deb), and <code><nowiki>debhelper</nowiki></code> (also for making the .deb). Some other small packages that generally everyone will want are <code><nowiki>libpng-dev</nowiki></code> (so .png images can be used for icons) and <code><nowiki>libreadline-dev</nowiki></code> (which makes <code><nowiki>FvwmConsole</nowiki></code> more pleasant). Download the tarball, extract it, and configure as usual. Instead of a simple <code><nowiki>make</nowiki></code>, do <code><nowiki>make deb-inplace</nowiki></code> to create a .deb, and then install it with <code><nowiki>dpkg</nowiki></code>.<br />
<br />
=== Integration ===<br />
<br />
If you install from apt, then FVWM is already in GDM's list of sessions. If you install from source, you will have to choose "Default X session". You will also have to make a .xsession file. The simplest .xsession file simply contains the line "fvwm". .xsession is simply a shell script that is run when you log in from GDM. If there are any programs that you need to start before fvwm, put them in .xsession before "fvwm". It is also wise to make a .xinitrc that is a symlink to .xsession, so that fvwm starts up when you log in from the console. As an example, your ~/.xsesssion file might look like the following:<br />
<pre>#!/bin/sh<br />
<br />
# Various other commands here, ensuring that they're backgrounded where necessary<br />
# i.e.:<br />
#<br />
# foo &amp;<br />
<br />
# Start FVWM<br />
exec fvwm</pre> <br />
Symlinking the above to ~/.xinitrc can be done as follows:<br />
<pre>ln -s ~/.xsession ~/.xinitrc</pre> <br />
You can have a menu of most installed applications with Debian's menu system. Install the menu package<br />
<pre>sudo apt-get install menu</pre> <br />
Then, to your ~/.fvwm/config add<br />
<pre>Read /etc/X11/fvwm/menudefs.hook</pre> <br />
Now you have access to a menu of installed programs, automatically categorized and updated. You can access this menu with the FVWM commands<br />
<pre>Menu /Debian</pre> <br />
or<br />
<pre>Popup /Debian</pre> <br />
=== Other ===<br />
<br />
There are reports of FVWM not working well under Xgl. This will be corrected when the users complain loudly enough, or someone submits a patch. FVWM works reasonably well with xcompmgr and the composite extension. If you use xcompmgr: Do not give icons titles:<br />
<pre>Style *&nbsp;!IconTitle</pre> <br />
Restart FVWM after starting or stopping xcompmgr:<br />
<pre># xcompmgr is finally pretty stable, but occasionally it gets screwy or dies<br />
# FVWM must be restarted after xcompmgr, otherwise edges don't work<br />
DestroyFunc RestartXCompMgr<br />
AddToFunc RestartXCompMgr<br />
+ I PipeRead 'killall xcompmgr &amp;&amp; exec xcompmgr -n &amp;&nbsp;; echo Restart'</pre> <br />
== External Links ==<br />
<br />
* [http://www.fvwm.org FVWM Homepage]<br />
* [http://fvwm.lair.be FVWM Forums]<br />
* [http://fvwmwiki.bu-web.de/ FVWM Wiki]<br />
* [http://dev.gentoo.org/~taviso/fvwm2rc.html An elaborate config file, by Taviso]<br />
* [http://fvwm-themes.sourceforge.net/ The FVWM Themes Project]<br />
* [http://fvwm-crystal.org/ FVWM Crystal], a project similar to FVWM Themes<br />
* Screenshots from Ubuntu users<br />
* [http://ubuntuforums.org/gallery/showphoto.php?photo=1020&si=fvwm vwc]<br />
* [http://ubuntuforums.org/gallery/showphoto.php?photo=2211&si=fvwm sonik]<br />
* [http://ubuntuforums.org/gallery/showphoto.php?photo=1878&si=fvwm jpkotta]<br />
* [http://ubuntuforums.org/gallery/showphoto.php?photo=1431&si=fvwm Stormy Eyes]<br />
<br />
[[Category:UbuntuHelp]]</div>Convicehttps://wiki.ubuntu.org.cn/index.php?title=UbuntuHelp:FVWM/zh&diff=75075UbuntuHelp:FVWM/zh2007-12-18T13:44:39Z<p>Convice:</p>
<hr />
<div>{{Translation}} <br />
<br />
{{From|https://help.ubuntu.com/community/FVWM}} <br />
<br />
{{Translator|convice}} {{Languages|FVWM}}<br />
<br />
FVWM is an extremely customizable window manager, many would say it is pathologically customizable. It is also very extensible, lightweight, and fast. It is not for the non-technical. It is for those who know what they want and want the freedom to implement it. It can be as ugly and functional or as beautiful and full of gee-whiz embellishments as you like. The limits are your imagination and your skill. There are 3rd party projects to provide automatic configuration and themes (fvwm-themes and fvwm-crystal). FVWM itself provides a default configuration file generator, in which certain options can be chosen. The expectation, however, is that you want a configuration of your very own, and you can use these tools and others' configs as a starting point ([http://starshine.org/xteddy/thomas/fvwm/user_enumerate.html further explanation]).<br />
<br />
FVWM是一种高度可配置的窗口管理器,我们甚至可说它是“病态”的可配置。它也是可扩展的,轻量级的,快速的窗口管理器。它不适合非技术人士,只适合于那些知道他们想要什么并希望能自由的实现的那些人。它可以是很丑陋但功能强大,或者是充满了很多奇特的装饰,只要你喜欢。唯一的限制是你的想像力和技巧。有一些第三方项目提供了自动化的配置和主题(fvwm-themes和fvwm-crystal)。FVWM也提供一些配置文件产生器,它给你提供了一些特定的选项。如果你希望创建你自己的配置文件,你可以使用这些工具和别人的配置做为一个起点。<br />
([http://starshine.org/xteddy/thomas/fvwm/user_enumerate.html further explanation]).<br />
<br />
== Ubuntu specifics ==<br />
<br />
=== 安装 ===<br />
<br />
==== 从 Apt ====<br />
<br />
FVWM is easily installed into Ubuntu, as there is an fvwm package in the repositories. There are additional packages like fvwm-themes, which is a collection of canned FVWM configurations for those who want something that works right away.<br />
<br />
FVWM可以很容易的被安装到Ubuntu上,因为在软件仓库里有fvwm软件包。还有一些为那些想要马上能让工作的人提供的附加软件包,它们包含了一些可用的FVWM配置文件。<br />
<br />
==== 从源码包安装 ====<br />
<br />
FVWM is an active project. Updates with bug fixes and new features are fairly frequent. Currently, FVWM maintains two states: a stable release (versions 2.4.X) and an unstable release (2.5.X). The unstable branch is the one that will eventually form the new stable set (and hence will evolve to 2.6.X as stable, and 2.7.X as being unstable). Given that the FVWM stable branch is quite old, a lot of the more "established" actions one would expect from a window manager is really only in the unstable branch at the moment. Not that "unstable" really means that it crashes every five minutes; it's just an indication that the branch is subject to development and change. Unless there's a very good reason (unlikely) then the 2.5.X branch is the one that should be used, as many people tailor their configs to use it, and usually give no consideration to FVWM 2.4.X. Prerequisite packages are <br />
<br />
FVWM是一个活跃的项目。Bug修正和新功能的升级十分频繁。目前,FVWM维护着两个版本分支:稳定版本(2.4.X)和不稳定版本(2.5.X)。不稳定分支最终会形成稳定版本。<br />
<br />
<code><nowiki>build-essential</nowiki></code>, <code><nowiki>xorg-dev</nowiki></code>, <code><nowiki>fakeroot</nowiki></code> (for making the .deb), and <code><nowiki>debhelper</nowiki></code> (also for making the .deb). Some other small packages that generally everyone will want are <code><nowiki>libpng-dev</nowiki></code> (so .png images can be used for icons) and <code><nowiki>libreadline-dev</nowiki></code> (which makes <code><nowiki>FvwmConsole</nowiki></code> more pleasant). Download the tarball, extract it, and configure as usual. Instead of a simple <code><nowiki>make</nowiki></code>, do <code><nowiki>make deb-inplace</nowiki></code> to create a .deb, and then install it with <code><nowiki>dpkg</nowiki></code>.<br />
<br />
=== Integration ===<br />
<br />
If you install from apt, then FVWM is already in GDM's list of sessions. If you install from source, you will have to choose "Default X session". You will also have to make a .xsession file. The simplest .xsession file simply contains the line "fvwm". .xsession is simply a shell script that is run when you log in from GDM. If there are any programs that you need to start before fvwm, put them in .xsession before "fvwm". It is also wise to make a .xinitrc that is a symlink to .xsession, so that fvwm starts up when you log in from the console. As an example, your ~/.xsesssion file might look like the following:<br />
<pre>#!/bin/sh<br />
<br />
# Various other commands here, ensuring that they're backgrounded where necessary<br />
# i.e.:<br />
#<br />
# foo &amp;<br />
<br />
# Start FVWM<br />
exec fvwm</pre> <br />
Symlinking the above to ~/.xinitrc can be done as follows:<br />
<pre>ln -s ~/.xsession ~/.xinitrc</pre> <br />
You can have a menu of most installed applications with Debian's menu system. Install the menu package<br />
<pre>sudo apt-get install menu</pre> <br />
Then, to your ~/.fvwm/config add<br />
<pre>Read /etc/X11/fvwm/menudefs.hook</pre> <br />
Now you have access to a menu of installed programs, automatically categorized and updated. You can access this menu with the FVWM commands<br />
<pre>Menu /Debian</pre> <br />
or<br />
<pre>Popup /Debian</pre> <br />
=== Other ===<br />
<br />
There are reports of FVWM not working well under Xgl. This will be corrected when the users complain loudly enough, or someone submits a patch. FVWM works reasonably well with xcompmgr and the composite extension. If you use xcompmgr: Do not give icons titles:<br />
<pre>Style *&nbsp;!IconTitle</pre> <br />
Restart FVWM after starting or stopping xcompmgr:<br />
<pre># xcompmgr is finally pretty stable, but occasionally it gets screwy or dies<br />
# FVWM must be restarted after xcompmgr, otherwise edges don't work<br />
DestroyFunc RestartXCompMgr<br />
AddToFunc RestartXCompMgr<br />
+ I PipeRead 'killall xcompmgr &amp;&amp; exec xcompmgr -n &amp;&nbsp;; echo Restart'</pre> <br />
== External Links ==<br />
<br />
* [http://www.fvwm.org FVWM Homepage]<br />
* [http://fvwm.lair.be FVWM Forums]<br />
* [http://fvwmwiki.bu-web.de/ FVWM Wiki]<br />
* [http://dev.gentoo.org/~taviso/fvwm2rc.html An elaborate config file, by Taviso]<br />
* [http://fvwm-themes.sourceforge.net/ The FVWM Themes Project]<br />
* [http://fvwm-crystal.org/ FVWM Crystal], a project similar to FVWM Themes<br />
* Screenshots from Ubuntu users<br />
* [http://ubuntuforums.org/gallery/showphoto.php?photo=1020&si=fvwm vwc]<br />
* [http://ubuntuforums.org/gallery/showphoto.php?photo=2211&si=fvwm sonik]<br />
* [http://ubuntuforums.org/gallery/showphoto.php?photo=1878&si=fvwm jpkotta]<br />
* [http://ubuntuforums.org/gallery/showphoto.php?photo=1431&si=fvwm Stormy Eyes]<br />
<br />
[[Category:UbuntuHelp]]</div>Convicehttps://wiki.ubuntu.org.cn/index.php?title=UbuntuHelp:FVWM&diff=75073UbuntuHelp:FVWM2007-12-18T12:28:17Z<p>Convice:</p>
<hr />
<div>{{From|https://help.ubuntu.com/community/FVWM}} <br />
{{Languages|UbuntuHelp:FVWM}}<br />
<br />
FVWM is an extremely customizable window manager, many would say it is pathologically customizable. It is also very extensible, lightweight, and fast. It is not for the non-technical. It is for those who know what they want and want the freedom to implement it. It can be as ugly and functional or as beautiful and full of gee-whiz embellishments as you like. The limits are your imagination and your skill. There are 3rd party projects to provide automatic configuration and themes (fvwm-themes and fvwm-crystal). FVWM itself provides a default configuration file generator, in which certain options can be chosen. The expectation, however, is that you want a configuration of your very own, and you can use these tools and others' configs as a starting point ([http://starshine.org/xteddy/thomas/fvwm/user_enumerate.html further explanation]).<br />
<br />
== Ubuntu specifics ==<br />
<br />
=== Installation ===<br />
<br />
==== From Apt ====<br />
<br />
FVWM is easily installed into Ubuntu, as there is an fvwm package in the repositories. There are additional packages like fvwm-themes, which is a collection of canned FVWM configurations for those who want something that works right away.<br />
<br />
==== From Source ====<br />
<br />
FVWM is an active project. Updates with bug fixes and new features are fairly frequent. Currently, FVWM maintains two states: a stable release (versions 2.4.X) and an unstable release (2.5.X). The unstable branch is the one that will eventually form the new stable set (and hence will evolve to 2.6.X as stable, and 2.7.X as being unstable). Given that the FVWM stable branch is quite old, a lot of the more "established" actions one would expect from a window manager is really only in the unstable branch at the moment. Not that "unstable" really means that it crashes every five minutes; it's just an indication that the branch is subject to development and change. Unless there's a very good reason (unlikely) then the 2.5.X branch is the one that should be used, as many people tailor their configs to use it, and usually give no consideration to FVWM 2.4.X. Prerequisite packages are <code><nowiki>build-essential</nowiki></code>, <code><nowiki>xorg-dev</nowiki></code>, <code><nowiki>fakeroot</nowiki></code> (for making the .deb), and <code><nowiki>debhelper</nowiki></code> (also for making the .deb). Some other small packages that generally everyone will want are <code><nowiki>libpng-dev</nowiki></code> (so .png images can be used for icons) and <code><nowiki>libreadline-dev</nowiki></code> (which makes <code><nowiki>FvwmConsole</nowiki></code> more pleasant). Download the tarball, extract it, and configure as usual. Instead of a simple <code><nowiki>make</nowiki></code>, do <code><nowiki>make deb-inplace</nowiki></code> to create a .deb, and then install it with <code><nowiki>dpkg</nowiki></code>.<br />
<br />
=== Integration ===<br />
<br />
If you install from apt, then FVWM is already in GDM's list of sessions. If you install from source, you will have to choose "Default X session". You will also have to make a .xsession file. The simplest .xsession file simply contains the line "fvwm". .xsession is simply a shell script that is run when you log in from GDM. If there are any programs that you need to start before fvwm, put them in .xsession before "fvwm". It is also wise to make a .xinitrc that is a symlink to .xsession, so that fvwm starts up when you log in from the console. As an example, your ~/.xsesssion file might look like the following:<br />
<pre>#!/bin/sh<br />
<br />
# Various other commands here, ensuring that they're backgrounded where necessary<br />
# i.e.:<br />
#<br />
# foo &amp;<br />
<br />
# Start FVWM<br />
exec fvwm</pre> <br />
Symlinking the above to ~/.xinitrc can be done as follows:<br />
<pre>ln -s ~/.xsession ~/.xinitrc</pre> <br />
You can have a menu of most installed applications with Debian's menu system. Install the menu package<br />
<pre>sudo apt-get install menu</pre> <br />
Then, to your ~/.fvwm/config add<br />
<pre>Read /etc/X11/fvwm/menudefs.hook</pre> <br />
Now you have access to a menu of installed programs, automatically categorized and updated. You can access this menu with the FVWM commands<br />
<pre>Menu /Debian</pre> <br />
or<br />
<pre>Popup /Debian</pre> <br />
=== Other ===<br />
<br />
There are reports of FVWM not working well under Xgl. This will be corrected when the users complain loudly enough, or someone submits a patch. FVWM works reasonably well with xcompmgr and the composite extension. If you use xcompmgr: Do not give icons titles:<br />
<pre>Style *&nbsp;!IconTitle</pre> <br />
Restart FVWM after starting or stopping xcompmgr:<br />
<pre># xcompmgr is finally pretty stable, but occasionally it gets screwy or dies<br />
# FVWM must be restarted after xcompmgr, otherwise edges don't work<br />
DestroyFunc RestartXCompMgr<br />
AddToFunc RestartXCompMgr<br />
+ I PipeRead 'killall xcompmgr &amp;&amp; exec xcompmgr -n &amp;&nbsp;; echo Restart'</pre> <br />
== External Links ==<br />
<br />
* [http://www.fvwm.org FVWM Homepage]<br />
* [http://fvwm.lair.be FVWM Forums]<br />
* [http://fvwmwiki.bu-web.de/ FVWM Wiki]<br />
* [http://dev.gentoo.org/~taviso/fvwm2rc.html An elaborate config file, by Taviso]<br />
* [http://fvwm-themes.sourceforge.net/ The FVWM Themes Project]<br />
* [http://fvwm-crystal.org/ FVWM Crystal], a project similar to FVWM Themes<br />
* Screenshots from Ubuntu users<br />
* [http://ubuntuforums.org/gallery/showphoto.php?photo=1020&si=fvwm vwc]<br />
* [http://ubuntuforums.org/gallery/showphoto.php?photo=2211&si=fvwm sonik]<br />
* [http://ubuntuforums.org/gallery/showphoto.php?photo=1878&si=fvwm jpkotta]<br />
* [http://ubuntuforums.org/gallery/showphoto.php?photo=1431&si=fvwm Stormy Eyes]<br />
<br />
[[Category:UbuntuHelp]]</div>Convicehttps://wiki.ubuntu.org.cn/index.php?title=UbuntuHelp:FVWM/zh&diff=75072UbuntuHelp:FVWM/zh2007-12-18T12:15:06Z<p>Convice:</p>
<hr />
<div>{{Translation}} {{From|https://help.ubuntu.com/community/FVWM}} {{Translator|convice}} {{Languages|FVWM}}<br />
<br />
FVWM is an extremely customizable window manager, many would say it is pathologically customizable. It is also very extensible, lightweight, and fast. It is not for the non-technical. It is for those who know what they want and want the freedom to implement it. It can be as ugly and functional or as beautiful and full of gee-whiz embellishments as you like. The limits are your imagination and your skill. There are 3rd party projects to provide automatic configuration and themes (fvwm-themes and fvwm-crystal). FVWM itself provides a default configuration file generator, in which certain options can be chosen. The expectation, however, is that you want a configuration of your very own, and you can use these tools and others' configs as a starting point ([http://starshine.org/xteddy/thomas/fvwm/user_enumerate.html further explanation]).<br />
<br />
FVWM是一种高度可配置的窗口管理器,我们甚至可说它是“病态”的可配置。它也是可扩展的,轻量级的,快速的窗口管理器。它不适合非技术人士,只适合于那些知道他们想要什么并希望能自由的实现的那些人。它可以是很丑陋但功能强大,或者是充满了很多奇特的装饰,只要你喜欢。唯一的限制是你的想像力和技巧。有一些第三方项目提供了自动化的配置和主题(fvwm-themes和fvwm-crystal)。FVWM也提供一些配置文件产生器,它给你提供了一些特定的选项。如果你希望创建你自己的配置文件,你可以使用这些工具和别人的配置做为一个起点。 <br />
<br />
== Ubuntu specifics ==<br />
<br />
=== Installation ===<br />
<br />
==== From Apt ====<br />
<br />
FVWM is easily installed into Ubuntu, as there is an fvwm package in the repositories. There are additional packages like fvwm-themes, which is a collection of canned FVWM configurations for those who want something that works right away.<br />
<br />
==== From Source ====<br />
<br />
FVWM is an active project. Updates with bug fixes and new features are fairly frequent. Currently, FVWM maintains two states: a stable release (versions 2.4.X) and an unstable release (2.5.X). The unstable branch is the one that will eventually form the new stable set (and hence will evolve to 2.6.X as stable, and 2.7.X as being unstable). Given that the FVWM stable branch is quite old, a lot of the more "established" actions one would expect from a window manager is really only in the unstable branch at the moment. Not that "unstable" really means that it crashes every five minutes; it's just an indication that the branch is subject to development and change. Unless there's a very good reason (unlikely) then the 2.5.X branch is the one that should be used, as many people tailor their configs to use it, and usually give no consideration to FVWM 2.4.X. Prerequisite packages are <code><nowiki>build-essential</nowiki></code>, <code><nowiki>xorg-dev</nowiki></code>, <code><nowiki>fakeroot</nowiki></code> (for making the .deb), and <code><nowiki>debhelper</nowiki></code> (also for making the .deb). Some other small packages that generally everyone will want are <code><nowiki>libpng-dev</nowiki></code> (so .png images can be used for icons) and <code><nowiki>libreadline-dev</nowiki></code> (which makes <code><nowiki>FvwmConsole</nowiki></code> more pleasant). Download the tarball, extract it, and configure as usual. Instead of a simple <code><nowiki>make</nowiki></code>, do <code><nowiki>make deb-inplace</nowiki></code> to create a .deb, and then install it with <code><nowiki>dpkg</nowiki></code>.<br />
<br />
=== Integration ===<br />
<br />
If you install from apt, then FVWM is already in GDM's list of sessions. If you install from source, you will have to choose "Default X session". You will also have to make a .xsession file. The simplest .xsession file simply contains the line "fvwm". .xsession is simply a shell script that is run when you log in from GDM. If there are any programs that you need to start before fvwm, put them in .xsession before "fvwm". It is also wise to make a .xinitrc that is a symlink to .xsession, so that fvwm starts up when you log in from the console. As an example, your ~/.xsesssion file might look like the following:<br />
<pre>#!/bin/sh<br />
<br />
# Various other commands here, ensuring that they're backgrounded where necessary<br />
# i.e.:<br />
#<br />
# foo &amp;<br />
<br />
# Start FVWM<br />
exec fvwm</pre><br />
Symlinking the above to ~/.xinitrc can be done as follows:<br />
<pre>ln -s ~/.xsession ~/.xinitrc</pre><br />
You can have a menu of most installed applications with Debian's menu system. Install the menu package<br />
<pre>sudo apt-get install menu</pre><br />
Then, to your ~/.fvwm/config add<br />
<pre>Read /etc/X11/fvwm/menudefs.hook</pre><br />
Now you have access to a menu of installed programs, automatically categorized and updated. You can access this menu with the FVWM commands<br />
<pre>Menu /Debian</pre><br />
or<br />
<pre>Popup /Debian</pre><br />
=== Other ===<br />
<br />
There are reports of FVWM not working well under Xgl. This will be corrected when the users complain loudly enough, or someone submits a patch. FVWM works reasonably well with xcompmgr and the composite extension. If you use xcompmgr: Do not give icons titles:<br />
<pre>Style *&nbsp;!IconTitle</pre><br />
Restart FVWM after starting or stopping xcompmgr:<br />
<pre># xcompmgr is finally pretty stable, but occasionally it gets screwy or dies<br />
# FVWM must be restarted after xcompmgr, otherwise edges don't work<br />
DestroyFunc RestartXCompMgr<br />
AddToFunc RestartXCompMgr<br />
+ I PipeRead 'killall xcompmgr &amp;&amp; exec xcompmgr -n &amp;&nbsp;; echo Restart'</pre><br />
== External Links ==<br />
<br />
* [http://www.fvwm.org FVWM Homepage]<br />
* [http://fvwm.lair.be FVWM Forums]<br />
* [http://fvwmwiki.bu-web.de/ FVWM Wiki]<br />
* [http://dev.gentoo.org/~taviso/fvwm2rc.html An elaborate config file, by Taviso]<br />
* [http://fvwm-themes.sourceforge.net/ The FVWM Themes Project]<br />
* [http://fvwm-crystal.org/ FVWM Crystal], a project similar to FVWM Themes<br />
* Screenshots from Ubuntu users<br />
* [http://ubuntuforums.org/gallery/showphoto.php?photo=1020&si=fvwm vwc]<br />
* [http://ubuntuforums.org/gallery/showphoto.php?photo=2211&si=fvwm sonik]<br />
* [http://ubuntuforums.org/gallery/showphoto.php?photo=1878&si=fvwm jpkotta]<br />
* [http://ubuntuforums.org/gallery/showphoto.php?photo=1431&si=fvwm Stormy Eyes]<br />
<br />
[[Category:UbuntuHelp]]</div>Convicehttps://wiki.ubuntu.org.cn/index.php?title=UbuntuHelp:FVWM/zh&diff=75070UbuntuHelp:FVWM/zh2007-12-18T11:16:41Z<p>Convice:</p>
<hr />
<div>{{Translation}}<br />
{{From|https://help.ubuntu.com/community/FVWM}}<br />
{{Translator|convice}}<br />
{{Languages|FVWM}}<br />
<br />
FVWM is an extremely customizable window manager, many would say it is pathologically customizable. It is also very extensible, lightweight, and fast. It is not for the non-technical. It is for those who know what they want and want the freedom to implement it. It can be as ugly and functional or as beautiful and full of gee-whiz embellishments as you like. The limits are your imagination and your skill. There are 3rd party projects to provide automatic configuration and themes (fvwm-themes and fvwm-crystal). FVWM itself provides a default configuration file generator, in which certain options can be chosen. The expectation, however, is that you want a configuration of your very own, and you can use these tools and others' configs as a starting point ([http://starshine.org/xteddy/thomas/fvwm/user_enumerate.html further explanation]).<br />
<br />
FVWM是一种高度可配置的窗口管理器,我们甚至可说它是“病态”的可配置。它也是可扩展的,轻量级的,快速的窗口管理器。它不适合非技术人士,只适合于那些知道他们想要什么并希望能自由的实现的那些人。<br />
<br />
== Ubuntu specifics ==<br />
<br />
=== Installation ===<br />
<br />
==== From Apt ====<br />
<br />
FVWM is easily installed into Ubuntu, as there is an fvwm package in the repositories. There are additional packages like fvwm-themes, which is a collection of canned FVWM configurations for those who want something that works right away.<br />
<br />
==== From Source ====<br />
<br />
FVWM is an active project. Updates with bug fixes and new features are fairly frequent. Currently, FVWM maintains two states: a stable release (versions 2.4.X) and an unstable release (2.5.X). The unstable branch is the one that will eventually form the new stable set (and hence will evolve to 2.6.X as stable, and 2.7.X as being unstable). Given that the FVWM stable branch is quite old, a lot of the more "established" actions one would expect from a window manager is really only in the unstable branch at the moment. Not that "unstable" really means that it crashes every five minutes; it's just an indication that the branch is subject to development and change. Unless there's a very good reason (unlikely) then the 2.5.X branch is the one that should be used, as many people tailor their configs to use it, and usually give no consideration to FVWM 2.4.X. Prerequisite packages are <code><nowiki>build-essential</nowiki></code>, <code><nowiki>xorg-dev</nowiki></code>, <code><nowiki>fakeroot</nowiki></code> (for making the .deb), and <code><nowiki>debhelper</nowiki></code> (also for making the .deb). Some other small packages that generally everyone will want are <code><nowiki>libpng-dev</nowiki></code> (so .png images can be used for icons) and <code><nowiki>libreadline-dev</nowiki></code> (which makes <code><nowiki>FvwmConsole</nowiki></code> more pleasant). Download the tarball, extract it, and configure as usual. Instead of a simple <code><nowiki>make</nowiki></code>, do <code><nowiki>make deb-inplace</nowiki></code> to create a .deb, and then install it with <code><nowiki>dpkg</nowiki></code>.<br />
<br />
=== Integration ===<br />
<br />
If you install from apt, then FVWM is already in GDM's list of sessions. If you install from source, you will have to choose "Default X session". You will also have to make a .xsession file. The simplest .xsession file simply contains the line "fvwm". .xsession is simply a shell script that is run when you log in from GDM. If there are any programs that you need to start before fvwm, put them in .xsession before "fvwm". It is also wise to make a .xinitrc that is a symlink to .xsession, so that fvwm starts up when you log in from the console. As an example, your ~/.xsesssion file might look like the following:<br />
<pre>#!/bin/sh<br />
<br />
# Various other commands here, ensuring that they're backgrounded where necessary<br />
# i.e.:<br />
#<br />
# foo &amp;<br />
<br />
# Start FVWM<br />
exec fvwm</pre><br />
Symlinking the above to ~/.xinitrc can be done as follows:<br />
<pre>ln -s ~/.xsession ~/.xinitrc</pre><br />
You can have a menu of most installed applications with Debian's menu system. Install the menu package<br />
<pre>sudo apt-get install menu</pre><br />
Then, to your ~/.fvwm/config add<br />
<pre>Read /etc/X11/fvwm/menudefs.hook</pre><br />
Now you have access to a menu of installed programs, automatically categorized and updated. You can access this menu with the FVWM commands<br />
<pre>Menu /Debian</pre><br />
or<br />
<pre>Popup /Debian</pre><br />
=== Other ===<br />
<br />
There are reports of FVWM not working well under Xgl. This will be corrected when the users complain loudly enough, or someone submits a patch. FVWM works reasonably well with xcompmgr and the composite extension. If you use xcompmgr: Do not give icons titles:<br />
<pre>Style *&nbsp;!IconTitle</pre><br />
Restart FVWM after starting or stopping xcompmgr:<br />
<pre># xcompmgr is finally pretty stable, but occasionally it gets screwy or dies<br />
# FVWM must be restarted after xcompmgr, otherwise edges don't work<br />
DestroyFunc RestartXCompMgr<br />
AddToFunc RestartXCompMgr<br />
+ I PipeRead 'killall xcompmgr &amp;&amp; exec xcompmgr -n &amp;&nbsp;; echo Restart'</pre><br />
== External Links ==<br />
<br />
* [http://www.fvwm.org FVWM Homepage]<br />
* [http://fvwm.lair.be FVWM Forums]<br />
* [http://fvwmwiki.bu-web.de/ FVWM Wiki]<br />
* [http://dev.gentoo.org/~taviso/fvwm2rc.html An elaborate config file, by Taviso]<br />
* [http://fvwm-themes.sourceforge.net/ The FVWM Themes Project]<br />
* [http://fvwm-crystal.org/ FVWM Crystal], a project similar to FVWM Themes<br />
* Screenshots from Ubuntu users<br />
* [http://ubuntuforums.org/gallery/showphoto.php?photo=1020&si=fvwm vwc]<br />
* [http://ubuntuforums.org/gallery/showphoto.php?photo=2211&si=fvwm sonik]<br />
* [http://ubuntuforums.org/gallery/showphoto.php?photo=1878&si=fvwm jpkotta]<br />
* [http://ubuntuforums.org/gallery/showphoto.php?photo=1431&si=fvwm Stormy Eyes]<br />
<br />
[[Category:UbuntuHelp]]</div>Convicehttps://wiki.ubuntu.org.cn/index.php?title=UbuntuHelp:FVWM/zh&diff=75018UbuntuHelp:FVWM/zh2007-12-17T14:49:11Z<p>Convice:</p>
<hr />
<div>{{From|https://help.ubuntu.com/community/FVWM}} <br />
{{Languages|UbuntuHelp:FVWM}} <br />
{{Translation}} <br />
{{Translator|convice}} <br />
<br />
FVWM is an extremely customizable window manager, many would say it is pathologically customizable. It is also very extensible, lightweight, and fast. It is not for the non-technical. It is for those who know what they want and want the freedom to implement it. It can be as ugly and functional or as beautiful and full of gee-whiz embellishments as you like. The limits are your imagination and your skill. There are 3rd party projects to provide automatic configuration and themes (fvwm-themes and fvwm-crystal). FVWM itself provides a default configuration file generator, in which certain options can be chosen. The expectation, however, is that you want a configuration of your very own, and you can use these tools and others' configs as a starting point ([http://starshine.org/xteddy/thomas/fvwm/user_enumerate.html further explanation]).<br />
<br />
FVWM是一种高度可配置的窗口管理器,我们甚至可说它是“病态”的可配置。它也是可扩展的,轻量级的,快速的窗口管理器。它不适合非技术人士,只适合于那些知道他们想要什么并希望能自由的实现的那些人。<br />
<br />
== Ubuntu specifics ==<br />
<br />
=== Installation ===<br />
<br />
==== From Apt ====<br />
<br />
FVWM is easily installed into Ubuntu, as there is an fvwm package in the repositories. There are additional packages like fvwm-themes, which is a collection of canned FVWM configurations for those who want something that works right away.<br />
<br />
==== From Source ====<br />
<br />
FVWM is an active project. Updates with bug fixes and new features are fairly frequent. Currently, FVWM maintains two states: a stable release (versions 2.4.X) and an unstable release (2.5.X). The unstable branch is the one that will eventually form the new stable set (and hence will evolve to 2.6.X as stable, and 2.7.X as being unstable). Given that the FVWM stable branch is quite old, a lot of the more "established" actions one would expect from a window manager is really only in the unstable branch at the moment. Not that "unstable" really means that it crashes every five minutes; it's just an indication that the branch is subject to development and change. Unless there's a very good reason (unlikely) then the 2.5.X branch is the one that should be used, as many people tailor their configs to use it, and usually give no consideration to FVWM 2.4.X. Prerequisite packages are <code><nowiki>build-essential</nowiki></code>, <code><nowiki>xorg-dev</nowiki></code>, <code><nowiki>fakeroot</nowiki></code> (for making the .deb), and <code><nowiki>debhelper</nowiki></code> (also for making the .deb). Some other small packages that generally everyone will want are <code><nowiki>libpng-dev</nowiki></code> (so .png images can be used for icons) and <code><nowiki>libreadline-dev</nowiki></code> (which makes <code><nowiki>FvwmConsole</nowiki></code> more pleasant). Download the tarball, extract it, and configure as usual. Instead of a simple <code><nowiki>make</nowiki></code>, do <code><nowiki>make deb-inplace</nowiki></code> to create a .deb, and then install it with <code><nowiki>dpkg</nowiki></code>.<br />
<br />
=== Integration ===<br />
<br />
If you install from apt, then FVWM is already in GDM's list of sessions. If you install from source, you will have to choose "Default X session". You will also have to make a .xsession file. The simplest .xsession file simply contains the line "fvwm". .xsession is simply a shell script that is run when you log in from GDM. If there are any programs that you need to start before fvwm, put them in .xsession before "fvwm". It is also wise to make a .xinitrc that is a symlink to .xsession, so that fvwm starts up when you log in from the console. As an example, your ~/.xsesssion file might look like the following:<br />
<pre>#!/bin/sh<br />
<br />
# Various other commands here, ensuring that they're backgrounded where necessary<br />
# i.e.:<br />
#<br />
# foo &amp;<br />
<br />
# Start FVWM<br />
exec fvwm</pre><br />
Symlinking the above to ~/.xinitrc can be done as follows:<br />
<pre>ln -s ~/.xsession ~/.xinitrc</pre><br />
You can have a menu of most installed applications with Debian's menu system. Install the menu package<br />
<pre>sudo apt-get install menu</pre><br />
Then, to your ~/.fvwm/config add<br />
<pre>Read /etc/X11/fvwm/menudefs.hook</pre><br />
Now you have access to a menu of installed programs, automatically categorized and updated. You can access this menu with the FVWM commands<br />
<pre>Menu /Debian</pre><br />
or<br />
<pre>Popup /Debian</pre><br />
=== Other ===<br />
<br />
There are reports of FVWM not working well under Xgl. This will be corrected when the users complain loudly enough, or someone submits a patch. FVWM works reasonably well with xcompmgr and the composite extension. If you use xcompmgr: Do not give icons titles:<br />
<pre>Style *&nbsp;!IconTitle</pre><br />
Restart FVWM after starting or stopping xcompmgr:<br />
<pre># xcompmgr is finally pretty stable, but occasionally it gets screwy or dies<br />
# FVWM must be restarted after xcompmgr, otherwise edges don't work<br />
DestroyFunc RestartXCompMgr<br />
AddToFunc RestartXCompMgr<br />
+ I PipeRead 'killall xcompmgr &amp;&amp; exec xcompmgr -n &amp;&nbsp;; echo Restart'</pre><br />
== External Links ==<br />
<br />
* [http://www.fvwm.org FVWM Homepage]<br />
* [http://fvwm.lair.be FVWM Forums]<br />
* [http://fvwmwiki.bu-web.de/ FVWM Wiki]<br />
* [http://dev.gentoo.org/~taviso/fvwm2rc.html An elaborate config file, by Taviso]<br />
* [http://fvwm-themes.sourceforge.net/ The FVWM Themes Project]<br />
* [http://fvwm-crystal.org/ FVWM Crystal], a project similar to FVWM Themes<br />
* Screenshots from Ubuntu users<br />
* [http://ubuntuforums.org/gallery/showphoto.php?photo=1020&si=fvwm vwc]<br />
* [http://ubuntuforums.org/gallery/showphoto.php?photo=2211&si=fvwm sonik]<br />
* [http://ubuntuforums.org/gallery/showphoto.php?photo=1878&si=fvwm jpkotta]<br />
* [http://ubuntuforums.org/gallery/showphoto.php?photo=1431&si=fvwm Stormy Eyes]<br />
<br />
[[Category:UbuntuHelp]]</div>Convicehttps://wiki.ubuntu.org.cn/index.php?title=UbuntuHelp:FVWM/zh&diff=75017UbuntuHelp:FVWM/zh2007-12-17T14:48:15Z<p>Convice:</p>
<hr />
<div>{{From|https://help.ubuntu.com/community/FVWM}} <br />
{{Languages|UbuntuHelp:FVWM}}<br />
{{Translation}}<br />
{{Translator|convice}} <br />
{{Languages|FVWM}} <br />
<br />
FVWM is an extremely customizable window manager, many would say it is pathologically customizable. It is also very extensible, lightweight, and fast. It is not for the non-technical. It is for those who know what they want and want the freedom to implement it. It can be as ugly and functional or as beautiful and full of gee-whiz embellishments as you like. The limits are your imagination and your skill. There are 3rd party projects to provide automatic configuration and themes (fvwm-themes and fvwm-crystal). FVWM itself provides a default configuration file generator, in which certain options can be chosen. The expectation, however, is that you want a configuration of your very own, and you can use these tools and others' configs as a starting point ([http://starshine.org/xteddy/thomas/fvwm/user_enumerate.html further explanation]).<br />
<br />
FVWM是一种高度可配置的窗口管理器,我们甚至可说它是“病态”的可配置。它也是可扩展的,轻量级的,快速的窗口管理器。它不适合非技术人士,只适合于那些知道他们想要什么并希望能自由的实现的那些人。<br />
<br />
== Ubuntu specifics ==<br />
<br />
=== Installation ===<br />
<br />
==== From Apt ====<br />
<br />
FVWM is easily installed into Ubuntu, as there is an fvwm package in the repositories. There are additional packages like fvwm-themes, which is a collection of canned FVWM configurations for those who want something that works right away.<br />
<br />
==== From Source ====<br />
<br />
FVWM is an active project. Updates with bug fixes and new features are fairly frequent. Currently, FVWM maintains two states: a stable release (versions 2.4.X) and an unstable release (2.5.X). The unstable branch is the one that will eventually form the new stable set (and hence will evolve to 2.6.X as stable, and 2.7.X as being unstable). Given that the FVWM stable branch is quite old, a lot of the more "established" actions one would expect from a window manager is really only in the unstable branch at the moment. Not that "unstable" really means that it crashes every five minutes; it's just an indication that the branch is subject to development and change. Unless there's a very good reason (unlikely) then the 2.5.X branch is the one that should be used, as many people tailor their configs to use it, and usually give no consideration to FVWM 2.4.X. Prerequisite packages are <code><nowiki>build-essential</nowiki></code>, <code><nowiki>xorg-dev</nowiki></code>, <code><nowiki>fakeroot</nowiki></code> (for making the .deb), and <code><nowiki>debhelper</nowiki></code> (also for making the .deb). Some other small packages that generally everyone will want are <code><nowiki>libpng-dev</nowiki></code> (so .png images can be used for icons) and <code><nowiki>libreadline-dev</nowiki></code> (which makes <code><nowiki>FvwmConsole</nowiki></code> more pleasant). Download the tarball, extract it, and configure as usual. Instead of a simple <code><nowiki>make</nowiki></code>, do <code><nowiki>make deb-inplace</nowiki></code> to create a .deb, and then install it with <code><nowiki>dpkg</nowiki></code>.<br />
<br />
=== Integration ===<br />
<br />
If you install from apt, then FVWM is already in GDM's list of sessions. If you install from source, you will have to choose "Default X session". You will also have to make a .xsession file. The simplest .xsession file simply contains the line "fvwm". .xsession is simply a shell script that is run when you log in from GDM. If there are any programs that you need to start before fvwm, put them in .xsession before "fvwm". It is also wise to make a .xinitrc that is a symlink to .xsession, so that fvwm starts up when you log in from the console. As an example, your ~/.xsesssion file might look like the following:<br />
<pre>#!/bin/sh<br />
<br />
# Various other commands here, ensuring that they're backgrounded where necessary<br />
# i.e.:<br />
#<br />
# foo &amp;<br />
<br />
# Start FVWM<br />
exec fvwm</pre><br />
Symlinking the above to ~/.xinitrc can be done as follows:<br />
<pre>ln -s ~/.xsession ~/.xinitrc</pre><br />
You can have a menu of most installed applications with Debian's menu system. Install the menu package<br />
<pre>sudo apt-get install menu</pre><br />
Then, to your ~/.fvwm/config add<br />
<pre>Read /etc/X11/fvwm/menudefs.hook</pre><br />
Now you have access to a menu of installed programs, automatically categorized and updated. You can access this menu with the FVWM commands<br />
<pre>Menu /Debian</pre><br />
or<br />
<pre>Popup /Debian</pre><br />
=== Other ===<br />
<br />
There are reports of FVWM not working well under Xgl. This will be corrected when the users complain loudly enough, or someone submits a patch. FVWM works reasonably well with xcompmgr and the composite extension. If you use xcompmgr: Do not give icons titles:<br />
<pre>Style *&nbsp;!IconTitle</pre><br />
Restart FVWM after starting or stopping xcompmgr:<br />
<pre># xcompmgr is finally pretty stable, but occasionally it gets screwy or dies<br />
# FVWM must be restarted after xcompmgr, otherwise edges don't work<br />
DestroyFunc RestartXCompMgr<br />
AddToFunc RestartXCompMgr<br />
+ I PipeRead 'killall xcompmgr &amp;&amp; exec xcompmgr -n &amp;&nbsp;; echo Restart'</pre><br />
== External Links ==<br />
<br />
* [http://www.fvwm.org FVWM Homepage]<br />
* [http://fvwm.lair.be FVWM Forums]<br />
* [http://fvwmwiki.bu-web.de/ FVWM Wiki]<br />
* [http://dev.gentoo.org/~taviso/fvwm2rc.html An elaborate config file, by Taviso]<br />
* [http://fvwm-themes.sourceforge.net/ The FVWM Themes Project]<br />
* [http://fvwm-crystal.org/ FVWM Crystal], a project similar to FVWM Themes<br />
* Screenshots from Ubuntu users<br />
* [http://ubuntuforums.org/gallery/showphoto.php?photo=1020&si=fvwm vwc]<br />
* [http://ubuntuforums.org/gallery/showphoto.php?photo=2211&si=fvwm sonik]<br />
* [http://ubuntuforums.org/gallery/showphoto.php?photo=1878&si=fvwm jpkotta]<br />
* [http://ubuntuforums.org/gallery/showphoto.php?photo=1431&si=fvwm Stormy Eyes]<br />
<br />
[[Category:UbuntuHelp]]</div>Convicehttps://wiki.ubuntu.org.cn/index.php?title=UbuntuHelp:FVWM/zh&diff=75016UbuntuHelp:FVWM/zh2007-12-17T14:25:21Z<p>Convice:新页面: {{Translation}} {{From|https://wiki.ubuntu.com/php5}} {{Translator|convice}} {{Languages|FVWM}} {{From|https://help.ubuntu.com/community/FVWM}} {{Languages|UbuntuHelp:FVWM}} FVWM is an e...</p>
<hr />
<div>{{Translation}}<br />
{{From|https://wiki.ubuntu.com/php5}}<br />
{{Translator|convice}}<br />
{{Languages|FVWM}}<br />
<br />
{{From|https://help.ubuntu.com/community/FVWM}} {{Languages|UbuntuHelp:FVWM}} FVWM is an extremely customizable window manager, many would say it is pathologically customizable. It is also very extensible, lightweight, and fast. It is not for the non-technical. It is for those who know what they want and want the freedom to implement it. It can be as ugly and functional or as beautiful and full of gee-whiz embellishments as you like. The limits are your imagination and your skill. There are 3rd party projects to provide automatic configuration and themes (fvwm-themes and fvwm-crystal). FVWM itself provides a default configuration file generator, in which certain options can be chosen. The expectation, however, is that you want a configuration of your very own, and you can use these tools and others' configs as a starting point ([http://starshine.org/xteddy/thomas/fvwm/user_enumerate.html further explanation]).<br />
<br />
== Ubuntu specifics ==<br />
<br />
=== Installation ===<br />
<br />
==== From Apt ====<br />
<br />
FVWM is easily installed into Ubuntu, as there is an fvwm package in the repositories. There are additional packages like fvwm-themes, which is a collection of canned FVWM configurations for those who want something that works right away.<br />
<br />
==== From Source ====<br />
<br />
FVWM is an active project. Updates with bug fixes and new features are fairly frequent. Currently, FVWM maintains two states: a stable release (versions 2.4.X) and an unstable release (2.5.X). The unstable branch is the one that will eventually form the new stable set (and hence will evolve to 2.6.X as stable, and 2.7.X as being unstable). Given that the FVWM stable branch is quite old, a lot of the more "established" actions one would expect from a window manager is really only in the unstable branch at the moment. Not that "unstable" really means that it crashes every five minutes; it's just an indication that the branch is subject to development and change. Unless there's a very good reason (unlikely) then the 2.5.X branch is the one that should be used, as many people tailor their configs to use it, and usually give no consideration to FVWM 2.4.X. Prerequisite packages are <code><nowiki>build-essential</nowiki></code>, <code><nowiki>xorg-dev</nowiki></code>, <code><nowiki>fakeroot</nowiki></code> (for making the .deb), and <code><nowiki>debhelper</nowiki></code> (also for making the .deb). Some other small packages that generally everyone will want are <code><nowiki>libpng-dev</nowiki></code> (so .png images can be used for icons) and <code><nowiki>libreadline-dev</nowiki></code> (which makes <code><nowiki>FvwmConsole</nowiki></code> more pleasant). Download the tarball, extract it, and configure as usual. Instead of a simple <code><nowiki>make</nowiki></code>, do <code><nowiki>make deb-inplace</nowiki></code> to create a .deb, and then install it with <code><nowiki>dpkg</nowiki></code>.<br />
<br />
=== Integration ===<br />
<br />
If you install from apt, then FVWM is already in GDM's list of sessions. If you install from source, you will have to choose "Default X session". You will also have to make a .xsession file. The simplest .xsession file simply contains the line "fvwm". .xsession is simply a shell script that is run when you log in from GDM. If there are any programs that you need to start before fvwm, put them in .xsession before "fvwm". It is also wise to make a .xinitrc that is a symlink to .xsession, so that fvwm starts up when you log in from the console. As an example, your ~/.xsesssion file might look like the following:<br />
<pre>#!/bin/sh<br />
<br />
# Various other commands here, ensuring that they're backgrounded where necessary<br />
# i.e.:<br />
#<br />
# foo &amp;<br />
<br />
# Start FVWM<br />
exec fvwm</pre><br />
Symlinking the above to ~/.xinitrc can be done as follows:<br />
<pre>ln -s ~/.xsession ~/.xinitrc</pre><br />
You can have a menu of most installed applications with Debian's menu system. Install the menu package<br />
<pre>sudo apt-get install menu</pre><br />
Then, to your ~/.fvwm/config add<br />
<pre>Read /etc/X11/fvwm/menudefs.hook</pre><br />
Now you have access to a menu of installed programs, automatically categorized and updated. You can access this menu with the FVWM commands<br />
<pre>Menu /Debian</pre><br />
or<br />
<pre>Popup /Debian</pre><br />
=== Other ===<br />
<br />
There are reports of FVWM not working well under Xgl. This will be corrected when the users complain loudly enough, or someone submits a patch. FVWM works reasonably well with xcompmgr and the composite extension. If you use xcompmgr: Do not give icons titles:<br />
<pre>Style *&nbsp;!IconTitle</pre><br />
Restart FVWM after starting or stopping xcompmgr:<br />
<pre># xcompmgr is finally pretty stable, but occasionally it gets screwy or dies<br />
# FVWM must be restarted after xcompmgr, otherwise edges don't work<br />
DestroyFunc RestartXCompMgr<br />
AddToFunc RestartXCompMgr<br />
+ I PipeRead 'killall xcompmgr &amp;&amp; exec xcompmgr -n &amp;&nbsp;; echo Restart'</pre><br />
== External Links ==<br />
<br />
* [http://www.fvwm.org FVWM Homepage]<br />
* [http://fvwm.lair.be FVWM Forums]<br />
* [http://fvwmwiki.bu-web.de/ FVWM Wiki]<br />
* [http://dev.gentoo.org/~taviso/fvwm2rc.html An elaborate config file, by Taviso]<br />
* [http://fvwm-themes.sourceforge.net/ The FVWM Themes Project]<br />
* [http://fvwm-crystal.org/ FVWM Crystal], a project similar to FVWM Themes<br />
* Screenshots from Ubuntu users<br />
* [http://ubuntuforums.org/gallery/showphoto.php?photo=1020&si=fvwm vwc]<br />
* [http://ubuntuforums.org/gallery/showphoto.php?photo=2211&si=fvwm sonik]<br />
* [http://ubuntuforums.org/gallery/showphoto.php?photo=1878&si=fvwm jpkotta]<br />
* [http://ubuntuforums.org/gallery/showphoto.php?photo=1431&si=fvwm Stormy Eyes]<br />
<br />
[[Category:UbuntuHelp]]</div>Convicehttps://wiki.ubuntu.org.cn/index.php?title=UbuntuHelp:FVWM&diff=75015UbuntuHelp:FVWM2007-12-17T14:23:22Z<p>Convice:</p>
<hr />
<div>{{From|https://help.ubuntu.com/community/FVWM}} {{Languages|UbuntuHelp:FVWM}} FVWM is an extremely customizable window manager, many would say it is pathologically customizable. It is also very extensible, lightweight, and fast. It is not for the non-technical. It is for those who know what they want and want the freedom to implement it. It can be as ugly and functional or as beautiful and full of gee-whiz embellishments as you like. The limits are your imagination and your skill. There are 3rd party projects to provide automatic configuration and themes (fvwm-themes and fvwm-crystal). FVWM itself provides a default configuration file generator, in which certain options can be chosen. The expectation, however, is that you want a configuration of your very own, and you can use these tools and others' configs as a starting point ([http://starshine.org/xteddy/thomas/fvwm/user_enumerate.html further explanation]).<br />
<br />
== Ubuntu specifics ==<br />
<br />
=== Installation ===<br />
<br />
==== From Apt ====<br />
<br />
FVWM is easily installed into Ubuntu, as there is an fvwm package in the repositories. There are additional packages like fvwm-themes, which is a collection of canned FVWM configurations for those who want something that works right away.<br />
<br />
==== From Source ====<br />
<br />
FVWM is an active project. Updates with bug fixes and new features are fairly frequent. Currently, FVWM maintains two states: a stable release (versions 2.4.X) and an unstable release (2.5.X). The unstable branch is the one that will eventually form the new stable set (and hence will evolve to 2.6.X as stable, and 2.7.X as being unstable). Given that the FVWM stable branch is quite old, a lot of the more "established" actions one would expect from a window manager is really only in the unstable branch at the moment. Not that "unstable" really means that it crashes every five minutes; it's just an indication that the branch is subject to development and change. Unless there's a very good reason (unlikely) then the 2.5.X branch is the one that should be used, as many people tailor their configs to use it, and usually give no consideration to FVWM 2.4.X. Prerequisite packages are <code><nowiki>build-essential</nowiki></code>, <code><nowiki>xorg-dev</nowiki></code>, <code><nowiki>fakeroot</nowiki></code> (for making the .deb), and <code><nowiki>debhelper</nowiki></code> (also for making the .deb). Some other small packages that generally everyone will want are <code><nowiki>libpng-dev</nowiki></code> (so .png images can be used for icons) and <code><nowiki>libreadline-dev</nowiki></code> (which makes <code><nowiki>FvwmConsole</nowiki></code> more pleasant). Download the tarball, extract it, and configure as usual. Instead of a simple <code><nowiki>make</nowiki></code>, do <code><nowiki>make deb-inplace</nowiki></code> to create a .deb, and then install it with <code><nowiki>dpkg</nowiki></code>.<br />
<br />
=== Integration ===<br />
<br />
If you install from apt, then FVWM is already in GDM's list of sessions. If you install from source, you will have to choose "Default X session". You will also have to make a .xsession file. The simplest .xsession file simply contains the line "fvwm". .xsession is simply a shell script that is run when you log in from GDM. If there are any programs that you need to start before fvwm, put them in .xsession before "fvwm". It is also wise to make a .xinitrc that is a symlink to .xsession, so that fvwm starts up when you log in from the console. As an example, your ~/.xsesssion file might look like the following:<br />
<pre>#!/bin/sh<br />
<br />
# Various other commands here, ensuring that they're backgrounded where necessary<br />
# i.e.:<br />
#<br />
# foo &amp;<br />
<br />
# Start FVWM<br />
exec fvwm</pre><br />
Symlinking the above to ~/.xinitrc can be done as follows:<br />
<pre>ln -s ~/.xsession ~/.xinitrc</pre><br />
You can have a menu of most installed applications with Debian's menu system. Install the menu package<br />
<pre>sudo apt-get install menu</pre><br />
Then, to your ~/.fvwm/config add<br />
<pre>Read /etc/X11/fvwm/menudefs.hook</pre><br />
Now you have access to a menu of installed programs, automatically categorized and updated. You can access this menu with the FVWM commands<br />
<pre>Menu /Debian</pre><br />
or<br />
<pre>Popup /Debian</pre><br />
=== Other ===<br />
<br />
There are reports of FVWM not working well under Xgl. This will be corrected when the users complain loudly enough, or someone submits a patch. FVWM works reasonably well with xcompmgr and the composite extension. If you use xcompmgr: Do not give icons titles:<br />
<pre>Style *&nbsp;!IconTitle</pre><br />
Restart FVWM after starting or stopping xcompmgr:<br />
<pre># xcompmgr is finally pretty stable, but occasionally it gets screwy or dies<br />
# FVWM must be restarted after xcompmgr, otherwise edges don't work<br />
DestroyFunc RestartXCompMgr<br />
AddToFunc RestartXCompMgr<br />
+ I PipeRead 'killall xcompmgr &amp;&amp; exec xcompmgr -n &amp;&nbsp;; echo Restart'</pre><br />
== External Links ==<br />
<br />
* [http://www.fvwm.org FVWM Homepage]<br />
* [http://fvwm.lair.be FVWM Forums]<br />
* [http://fvwmwiki.bu-web.de/ FVWM Wiki]<br />
* [http://dev.gentoo.org/~taviso/fvwm2rc.html An elaborate config file, by Taviso]<br />
* [http://fvwm-themes.sourceforge.net/ The FVWM Themes Project]<br />
* [http://fvwm-crystal.org/ FVWM Crystal], a project similar to FVWM Themes<br />
* Screenshots from Ubuntu users<br />
* [http://ubuntuforums.org/gallery/showphoto.php?photo=1020&si=fvwm vwc]<br />
* [http://ubuntuforums.org/gallery/showphoto.php?photo=2211&si=fvwm sonik]<br />
* [http://ubuntuforums.org/gallery/showphoto.php?photo=1878&si=fvwm jpkotta]<br />
* [http://ubuntuforums.org/gallery/showphoto.php?photo=1431&si=fvwm Stormy Eyes]<br />
<br />
[[Category:UbuntuHelp]]</div>Convicehttps://wiki.ubuntu.org.cn/index.php?title=%E4%BD%8E%E9%85%8D%E7%BD%AE%E7%94%B5%E8%84%91%E5%AE%89%E8%A3%85&diff=75001低配置电脑安装2007-12-17T10:54:28Z<p>Convice:</p>
<hr />
<div>{{Copyedit translation|from=https://wiki.ubuntu.com/Installation/LowMemorySystems}}<br />
<br />
{{From|https://wiki.ubuntu.com/Installation/LowMemorySystems}}<br />
{{Translator|convice}}<br />
{{Languages|Installation/LowMemorySystems}}<br />
<br />
<br />
<br />
<br />
'''How to install Ubuntu on low memory systems''' (Pentium III and earlier machines, with 32-192 MB RAM).<br />
<br />
<br>'''怎样在低内存的系统上安装Ubuntu(Pentium III或更早的,配有32-192MB内存的机器)'''<br />
<br />
<br><br />
<br />
==== 内存需求 ====<br />
<br />
Installing Ubuntu on any system requires at least 32Mb of memory: The text-based installer included with the alternate (install) CDs needs that much space to run reliably. Smaller memory configurations run into problems, and while not impossible, it can be very difficult to complete an installation with less than the minimum RAM requirement.<br />
<br />
在任何系统上安装Ubuntu至少需要32Mb内存:包含在alternate (install) CDs的基于字符的安装程序需要这些空间来可靠运行。更小的内存配置可能会遇到问题,虽然不是不可能,但如果内存小于最低的需求,要完成安装十分困难。<br />
<br />
Depending on the hardware requirements, you can expect a sparse Ubuntu system to boot to a graphical desktop on anywhere from 19Mb to 54Mb. That requirement will fluctuate with the system demands, and increase while the system is active. Swap space is crucial to low-memory machines, so don't be stingy when setting up your system.<br />
<br />
考虑硬件需求,你可以期望一个瘦小的Ubuntu系统在任何内存为19Mb到54Mb的电脑上启动并运行图形桌面。这个需求会随着系统的需求面浮动,当系统活跃的时候会增加。交换分区对于低内存的机器十分重要,所以当设置系统的时候别小器。<br />
<br />
==== 处理器 ====<br />
<br />
There is no practical speed requirement, although a slower processor will take more time to finish installing. Some Pentium machines will take hours to complete, simply because the CPU takes longer to finish. As a general benchmark, a 75Mhz machine finishes a command-line installation of Ubuntu 7.04 in about four hours, and a 120Mhz machine finishes in perhaps an hour less than that. 200Mhz and faster machines will see a still stronger improvement.<br />
<br />
对处理器的速度没有什么实际的需求,然而低速度的处理器将要花更多的时间来完成安装。仅仅是因为CPU花了太多的时间,一些Pentium机将要花费几个小时来完成安装。根据通常的基准测试,一台75Mhz的机器要4个小时来完成基于命令行的Ubuntu 7.04的安装,一台120Mhz的要比它少用一个小时。200Mhz或是更快的机器将会有更强的提升。<br />
<br />
If you do decide to install Ubuntu on a legacy machine, be patient. There will come times when you think the machine has stopped or is hung, when in fact it's still moving, albeit at a very slow rate.<br />
<br />
如果你决定在一台老的机器上安装Ubuntu,要有耐心。可能会出现好几次这样的情况:当你认为机器已经停止或挂起,其实它正在运行,虽然速度很慢。<br />
<br />
==== 磁盘空间需求 ====<br />
<br />
Disk space on an absolutely minimal installation can be reduced to as little as 500Mb. A fresh and clean server installation of Ubuntu 7.04 generally takes only 300Mb, although there will be minor variations on account of hardware differences.<br />
<br />
磁盘空间在绝对最小安装的情况下可以减少到500Mb。虽然对于不同的硬件会有很小的变化,一个干净的Ubuntu 7.04 服务器的安装通常只需要300Mb。<br />
<br />
==== 其它硬件上的考虑 ====<br />
<br />
These instructions assume you will have a working Internet connection and access to the [[UbuntuHelp:Repositories|universe and multiverse repositories]]. Configuring your hardware is not included on this page.<br />
<br />
这份指南假设你有一个可用的互联网连接并且可以访问[[UbuntuHelp:Repositories|universe and multiverse repositories]].它不包括对你硬件的配置。<br />
<br />
== 安装Ubuntu Server ==<br />
<br />
The server version of Ubuntu is a sparse command-line system, without any graphical elements. It's a text-only version of what lies underneath all the advanced graphical elements. It's also the starting point for a minimal installation.<br />
<br />
Ubuntu服务器版是一个精减的命令行系统,没有任何图形元素。它是一个位于高级图形元素之下的纯文本版本,是我们最小化安装的起点。<br />
<br />
==== Ubuntu 6.06 ====<br />
<br />
To install a base system, boot from the alternate (install) CD and choose "Install a server."<br />
<br />
Follow the prompts to complete installation.<br />
<br />
启动alternate(install)CD,选择"Install a server"。按提示完成安装。<br />
<br />
==== Ubuntu 6.10, 7.04, 或 7.10 ====<br />
<br />
To install a base system, boot from the alternate (install) CD and choose "Install a command-line system."<br />
<br />
Follow the prompts to complete installation.<br />
<br />
启动alternate(install)CD,选择"Install a command-line system."。按提示完成安装。<br />
<br />
=== 增加软件仓库 ===<br />
<br />
==== 更改源 ====<br />
<br />
Once the server install is complete, you will probably want to edit your [[UbuntuHelp:Sources.list|UbuntuHelp:sources.list]] file.<br />
<br />
当安装好Ubuntu服务器版後,你可能需要编辑你的[[UbuntuHelp:Sources.list|UbuntuHelp:sources.list]]文件。<br />
<br />
sudo nano /etc/apt/sources.list<br />
<br />
Uncomment all official repositories by removing # at the beginning of the line. Do not uncomment the narrative portions of that file; in other words, where you see a double hash mark (##) leave those lines alone.<br />
<br />
删除每一行开始的#号来消除对官方软件仓库的注释。不要消除文件里描述部分的注释,即以两个#号(##)开始的行。<br />
<br />
==== 更新和升级你的系统 ====<br />
<br />
Now you should update your system. Return to the command line and type:<br />
<br />
现在你应该更新你的系统。回到命令行输入:<br />
<br />
sudo aptitude updat<br />
<br />
It's probably also a good idea to upgrade your system at this point. Use this command to upgrade your system:<br />
<br />
这时升级你的系统也是个不错的主意。用这个命令升级你的系统。<br />
<br />
sudo aptitude upgrade (或者, 对于 Gutsy: sudo aptitude safe-upgrade)<br />
<br />
<br />
Now you should be ready to install a window manager and some programs.<br><br />
<br />
现在你应该已经可以安装窗口管理器和一些程序了。<br />
<br />
= 安装图形环境的准备工作 =<br />
<br />
The absolute minimum for any graphical environment is X.org<br />
<br />
最小的图形环境是X.org<br />
<br />
=== 安装X.org ===<br />
<br />
On Ubuntu Edgy (6.10), Feisty (7.04), and Gutsy (7.10), use the command:<br />
<br />
在 Ubuntu Edgy (6.10), Feisty (7.04), 和 Gutsy (7.10), 用下面的命令:<br />
<br />
sudo aptitude install xorg<br />
<br />
On Ubuntu Dapper (6.06), use the command:<br />
<br />
在 Ubuntu Dapper (6.06), 用下面的命令:<br />
<br />
sudo aptitude install x-window-system-core<br />
<br />
=== 启动X.org ===<br />
<br />
This package gives you the framework for an X session, complete with a variety of drivers and configuration files. Installing ''xorg'' (or ''x-window-system-core'') also triggers the self-configuration sequence, so when it finishes, your hardware should be ready to use, barring any errors or incompatibilities.<br />
<br />
通过一些驱动和配置文件,这个软件包给了你一个X对话的框架。安装“Xorg”或“x-window-system-core”还启动了自动配置队列,安装完成後,如果没有错误或不兼容,你的硬件应该已经可用了。<br />
<br />
It's important to note that installing ''xorg'' or ''x-window-system-core'' really doesn't leave you with much. You can start X at this point with this command:<br />
<br />
必须注意的是,安装“Xorg”或“x-window-system-core”不会给你很多。这时你可以用以下命令启动X:<br />
<br />
startx<br />
<br />
but without a window manager and some software, you probably won't get much done.<br />
<br />
但是没有窗口管理器和一些软件,你能做的很少。<br />
<br />
= 安装一个窗口管理器 =<br />
<br />
A window manager controls the placement and appearance of windows within a graphical user interface.<br />
<br />
窗口管理器通过图形用户界面控制窗口的位置有显示。<br />
<br />
There are many lightweight window managers that will give you better access to your system through the X layer. Each one has its own way of managing the desktop, and its own way of configuring themes and menus.<br />
<br />
有很多轻量级的窗口管理器可以使你更好的通过X层访问你的系统。每一种都有它们自己的方式来管理桌面,都有它们自己的方法来配置主题和菜单。<br />
<br />
== Openbox ==<br />
<br />
"Openbox" is one of the lightest, fastest window managers available, but can take some time to configure and set up. It has its origins in Blackbox, but newer versions are complete rewrites of the Blackbox code.<br />
<br />
"Openbox"是一种轻量级的快速的可用的窗口管理器,只是需要一些时间来安装和配置。它源于Blackbox,但是新版的全部重写了Blackbox的代码。<br />
<br />
Install Openbox with this command:<br />
<br />
用以下命令安装Openbox:<br />
<br />
sudo aptitude install openbox obconf openbox-themes<br />
<br />
<br />
These packages and their dependencies will allow you to build and configure an Openbox system, along with a choice of themes and some configuration options.<br />
<br />
这些软件包和它们的依赖软件包让你可以建立和配置Openbox系统,还有可选择的主题和一些配置选项。<br />
<br />
'''Note:''' Edgy (Ubuntu 6.10) users should note a small discrepancy in ''obconf'' that might prevent it from running. You can correct that with these commands ...<br />
<br />
'''注意:'''Edgy (Ubuntu 6.10)用户必须注意"obconf"一个可能会使其无法运行的小问题。你可以用下面的命令解决这个问题。<br />
<br />
cd /usr/lib<br />
sudo ln libobparser.so.0.4.0 libobparser.so.1<br />
sudo ln libobrender.so.0.4.0 libobrender.so.1<br />
sudo ldconfig -X<br />
<br />
<br />
Entering ''obconf'' in an X terminal window should now trigger the obconf dialogue.<br />
<br />
在X终端输入''obconf''将启动obconf对话。<br />
<br />
== IceWM ==<br />
<br />
"IceWM" has a very strong following as a good, clean, fast window manager that resembles a conventional "desktop" in many ways. Among many of its perks are themes that resemble the Windows XP desktop theme -- which may be appealing to you.<br />
<br />
"IceWM"很受欢迎,因为它是一个很好的,干净的,很快的窗口管理器,它还集成了一个可选择的桌面。在它的众多优点中有一个可能会吸引你:它集成了Windows XP桌面主题。<br />
<br />
Install IceWM with this command:<br />
<br />
用下面的命令安装IceWM:<br />
<br />
sudo aptitude install icewm iceconf icepref iceme icewm-themes<br />
<br />
<br />
When finished, you will have a number of configuration and menu options. You can start IceWM with the ''startx'' command.<br />
<br />
安装完成後,你将拥有一些配置和菜单选项。你可以用''startx''命令启动它。<br />
<br />
== Fluxbox ==<br />
<br />
"Fluxbox" is a beautiful, highly configurable desktop system that is easy on system resources without compromising on graphical appeal. Fluxbox is the default window manager for a number of Linux distributions, probably most notable among them being [http://www.damnsmalllinux.org/ Damn Small Linux].<br />
<br />
"Fluxbox" 是一种漂亮的,高度可配置的桌面系统,它对系统资源要求不高却没有损失图形的吸引力。"Fluxbox" 是许多Linux发开版的默认窗口管理器,可能大部分都在[http://www.damnsmalllinux.org/ Damn Small Linux]上。<br />
<br />
Install Fluxbox with this command:<br />
<br />
<br />
用下面的命令安装Fluxbox:<br />
<br />
sudo aptitude install fluxbox fluxconf<br />
<br />
Once installed, you can start Fluxbox with the ''startfluxbox'' command. Remember, if you enjoy working with Fluxbox, you should consider [http://www.fluxbuntu.org Fluxbuntu] as an option.<br />
<br />
安装好以後,你可以用''startfluxbox''命令启动它。记住,如果你很喜欢使用Fluxbox,你可以考虑 [http://www.fluxbuntu.org Fluxbuntu] 作为一种选择。<br />
<br />
== FVWM-Crystal ==<br />
<br />
"FVWM-Crystal" is a complete set of configuration scripts which sit atop of FVWM. FVWM-Crystal has support for integrated access to music players, terminal emulators and system monitors. It boasts some of the finest eye candy available to low-end machines, and is a snap to install.<br />
<br />
"FVWM-Crystal" 是基于FVWM的一些配置脚本。"FVWM-Crystal" 支持对音乐播放器,终端和系统监视的集成访问。它号称是在低配置机器上可用的最漂亮的窗口管理器,并且它可以很快的安装。<br />
<br />
For more information about building an FVWM-Crystal desktop, check out the ["FVWM-Crystal"] page.<br />
<br />
想知道更多关于安装FVWM-Crystal桌面的的信息,请访问["FVWM-Crystal"]。<br />
<br />
== XFCE ==<br />
<br />
XFCE is heavier than any of the systems mentioned so far, but has some added functions as a result. You can try XFCE alone if you like, but if you're keen on an XFCE installation, look into [http://www.xubuntu.org Xubuntu] as an option.<br />
<br />
XFCE 相对于目前已经提到的轻量级窗口管理器来说都更“重”,但是是因为增加了一些应用的。如果你喜欢,你可以单独党旗XFCE,但如果你一定要安装XFCE,请查看 [http://www.xubuntu.org Xubuntu]。<br />
<br />
Install XFCE alone, without Xubuntu, with this command:<br />
<br />
单独安装XFCE,而不是Xubuntu,请用下面的命令:<br />
<br />
sudo aptitude install xfce4<br />
<br />
It's worth noting that some Edgy users have difficulty starting XFCE from a minimal install. The normal start command for XFCE -- ''startxfce4'' -- doesn't seem to be properly configured in Edgy.<br />
<br />
对于Edgy用户来讲,这是没有用的,从最小化安装启动XFCE是有困难的。XFCE的启动命令-- ''startxfce4'' -- 看起来好像在Edgy上没有配置好。<br />
<br />
If you want the entire Xubuntu package, which includes a full suite of software and a lot of improvements, try this command:<br />
<br />
如果你想要一个完全的包括了一些软件和一些改进的Xubuntu包,请用下面的命令:<br />
<br />
sudo aptitude install xubuntu-desktop<br />
<br />
That will download quite a large amount of packages; you may want to consider installing Xubuntu fresh, from the [http://www.xubuntu.org/get installation ISO].<br />
<br />
这将要下载很多的软件包;你可能想从 [http://www.xubuntu.org/get installation ISO]干净的安装Xubuntu。<br />
<br />
Note: Xubuntu will use more system resources and may not be optimal for a low memory system with limited disk space, but it is lighter than a standard Ubuntu system.<br />
<br />
''注意:'' Xubuntu 将会使用更多的系统资源,而且可能对于一个硬盘空间和内存都有限的系统来讲不是最好的选择,但是它比标准的Ubuntu系统“轻”。<br />
<br />
= 安装软件 =<br />
<br />
Now that the graphical window manager is set up, it's time to add some necessary and recommended packages. These will add additional functionality and make using the system easier. Additionally, adding a graphical package manager will provide an easy method to manage installed applications and packages.<br />
<br />
现在图形窗口管理器已经设置好了,现在可以安装一些必须或推荐的软件包。这些软件包将会加入一些新的功能,使系统更容易使用。另外,安装一个图形化的软件包管理器将会使管理已安装的应用和软件包变得容易。<br />
<br />
== 登录管理器 ==<br />
<br />
Login managers will assist in choosing a graphical environment and will not require the user to start x.org to get into the window manager.<br />
<br />
登录管理器将帮助我们选择一个图形环境,而且不需要用户启动X.org就可以进入窗口管理器。<br />
<br />
It's important to note that it's not necessary to use a login manager. If you're willing to log in at the command line and start X manually, you can save yourself a lot of system resources -- and the time it takes to load them. That can be a more appealing option on older machines.<br />
<br />
要说明的是登录管理器并不是必须的。如果你喜欢在命令行界面登录然後手动启动X,你能节约很多系统资源和启动它们的时间。对于老的机器来说可能更有吸引力。<br />
<br />
=== GDM ===<br />
<br />
GDM is the Ubuntu default for a login manager. However, GDM has a reputation of being a heavyweight, and on a system that needs as little bulk as possible, you might find it to be a burden. If you've got a decent system, install it using:<br />
<br />
GDM是Ubuntu默认的登陆管理器,它被认为是一个重量级的管理器,在系统中它需要比较多的资源,所以你可能会发现它是一个负担。如果你有一个很好的系统,用以下命令安装它:<br />
<br />
sudo aptitude install gdm<br />
<br />
=== KDM ===<br />
<br />
KDM is another manager, but has the same heavy reputation as GDM.<br />
<br />
KDM是另一种管理器,它和GDM一样被认为是重量级的管理器。用以下命令安装:<br />
<br />
sudo aptitude install kdm<br />
<br />
=== XDM ===<br />
<br />
XDM is the login manager for straight X, and while less beautiful than GDM or KDM, it can perform in the same role without fuss.<br />
<br />
XDM是纯粹的X的登录管理器,它没有GDM和KDM漂亮,但它能像GDM和KDM那样很好的工作。用以下命令安装:<br />
<br />
sudo aptitude install xdm<br />
<br />
== 浏览器 ==<br />
<br />
Now that your system is up and running, it would be a good idea to add an internet browser to surf the web and get some use out of the machine!<br />
<br />
现在你的系统已经在运行了,现在可以安装一个因特网浏览器来上网冲浪。<br />
<br />
=== Firefox ===<br />
<br />
Web browsers come in many flavors, and the most prevalent -- Firefox -- can be laggy on low-memory or slow systems. Even the GNU version of Firefox, [https://wiki.ubuntu.com/IceWeasel Iceweasel] can be a bit heavy on older machines. If you've got at least 128 mb of memory, Firefox should work just fine.<br />
<br />
Firefox是适用于很多Linux发行版,是最流行的浏览器。它对于低内存或者低速的系统来讲,可能有点难以应付。甚至是GNU版本的Firefox,[https://wiki.ubuntu.com/IceWeasel Iceweasel] 对于老的机器来讲也有些“重”。如果你有多于128mb的内存,Firefox可以运行的很好。用以下命令安装它:<br />
<br />
sudo aptitude install firefox <br />
<br />
=== Dillo ===<br />
<br />
While not nearly as full-featured as Firefox, Dillo has the advantages of a very small footprint and few resource requirements.<br />
<br />
不像Firefox那样具有完全的功能,Dillo的优点是有一个很小的脚印和很小的资源需求。用以下命令安装它:<br />
<br />
sudo aptitude install dillo<br />
<br />
== iDesk ==<br />
<br />
Many lightweight desktop systems use [http://idesk.sourceforge.net/ iDesk] as a way of including customized, clickable icons directly on the desktop. iDesk is maintained in the Ubuntu repositories, and is installable from the command line with:<br />
<br />
很多轻量级的桌面系统用[http://idesk.sourceforge.net/ iDesk]来配置和使桌面上的图标可以被直接点击。iDesk包含在Ubuntu的软件仓库中,可以用以下命令安装它:<br />
<br />
sudo aptitude install idesk<br />
<br />
Consult the [http://idesk.sourceforge.net/ iDesk wiki] for instructions on how to configure and use iDesk. For icon sets, you may wish to search the repositories, or download them from third-party customization sites, such as [http://www.gnome-look.org Gnome-Look.org] and similar locations.<br />
<br />
访问[http://idesk.sourceforge.net/ iDesk wiki]来获取配置和使用iDesk的命令。你可能要搜索软件仓库或从第三方的配置网站上下载图标,像[http://www.gnome-look.org Gnome-Look.org]及相似的网站。<br />
<br />
== 文件管理器 ==<br />
<br />
Lightweight systems have a number of options available for graphical file management. Thunar is the default file manager in Xubuntu and many XFCE-based systems; it is installable alone with this command:<br />
<br />
轻量级的系统有多种可用的图形文件管理器。Thunar是Xubuntu和很多基于XFCE默认的系统,可以使用下面的命令单独安装它:<br />
<br />
sudo aptitude install thunar<br />
<br />
XFE is an even lighter file manager, intended to mimic the Windows Explorer interface. It has very few dependencies and is very fast.<br />
<br />
XFE是一种更“轻”的文件管理器,它模仿了Windwos Explorer接口。它只依赖很少的软件包而且非常快。用下面命令安装它:<br />
<br />
sudo aptitude install xfe<br />
<br />
ROX-Filer is another file management program, which makes extensive use of drag-and-drop principles. It does appear to have a large number of dependencies however, which means installing it may entail more external packages than you wish. Install ROX-Filer with this command:<br />
<br />
ROX-Filer也是一种文件管理器,它扩展了drag-and-drop原理。它依赖很多的软件包,这就意味着它需要比你想像的要多的扩展软件包。用下面命令安装它:<br />
<br />
sudo aptitude install rox-filer<br />
<br />
Nautilus is the default file manager for Ubuntu. It requires some more resources, but it has a lot of useful features. It can manage your desktop, show a wallpaper and desktop icons, which are automatically created for new devices (e.g. USB flash drives). Install Nautilus using this command:<br />
<br />
Nautilus是Ubuntu默认的文件管理器。它需要更多的资源,但它具有很多有用的特性。它能管理你的桌面,显示桌面背景和桌面图标,对于新的设备它们都可以自动创建。用下面命令安装它:<br />
<br />
sudo apt-get install nautilus<br />
<br />
To use it together with a window manager, execute the following command or add it to your autostart script. For example, use $HOME/.icewm/startup for IceWM.<br />
<br />
要让它和窗口管理器一起工作,需执行以下命令或者把命令加入到自动启动脚本。例如:对于IceWM,加入$HOME/.icewm/startup文件。<br />
<br />
nautilus --no-default-window &amp; <br />
<br />
Some other popular file managers include<br />
<br />
其它一些浒的文件管理器有:<br />
<br />
* [http://pcmanfm.sourceforge.net/ PCManFM];<br />
* [http://packages.ubuntu.com/edgy/utils/mc Midnight Commander], [http://tuxcmd.sourceforge.net/ Tux Commander] and [http://packages.ubuntu.com/edgy/gnome/gnome-commander Gnome Commander] (which all resemble the old Norton Commander interface);<br />
* [http://packages.ubuntu.com/edgy/x11/xffm4-filemanager xffm4-filemanager];<br />
* [http://step.polymtl.ca/~coyote/xvfilemgr_main.html XVFilemgr];<br />
* and [http://packages.ubuntu.com/edgy/kde/dolphin Dolphin], which is a file manager aimed at KDE and Kubuntu.<br />
<br />
There are many others. Some are available through the repositories; others will require you to download and install them through another source. Experiment with different file managers to see which ones appeal to you.<br />
<br />
这里有很多其它的文件管理器。其中一些可以通过软件仓库安装,一些必须通过源码下载和安装。尝试不同的文件管理器,看哪些能够吸引你。<br />
<br />
== 软件包管理器 ==<br />
<br />
Add a graphical package manager to install, remove and upgrade software packages and to add repositories without using the command line. Synaptic package manager is the standard and can be installed with this command:<br />
<br />
安装一个图形化的软件包管理器来安装,删除和升级软件包和增加软件仓库,可以让你不需要使用命令。新立得软件包管理器是标准的软件包管理工具。可以用下面命令来安装:<br />
<br />
sudo aptitude install synaptic<br />
<br />
You can use the package manager to add a word processor, such as Abiword, and other productivity software.<br />
<br />
你可以用软件包管理器来安装字处理器,像Abiword,或是其它的软件。<br />
<br />
= 安装一个完整的轻量级系统 =<br />
<br />
Building on the ideas above, here are some complete graphical systems, installable through a single command line. Feel free to mix and match between these options.<br />
<br />
基于以上的想法,我们可以用一条命令来安装一个完整的图形系统。你可以自由的组合这些选项。<br />
<br />
'''Remember: If you are using Dapper or earlier, replace "xorg" with "x-window-system-core"'''<br />
<br />
'''记住:如果你是在用Dapper或是更早的版本,用"x-window-system-core"代替"xorg"。'''<br />
<br />
* IceWM as a window manager, plus GDM, Firefox, Abiword and the Synaptic package manager:<br />
<br />
* IceWM是窗口管理器,加上GDM,Firefox,Abiword和新立得软件包管理器。<br />
<br />
sudo aptitude install gdm xorg xterm icewm menu mozilla-firefox abiword synaptic<br />
<br />
* XFCE and Firefox, with Synaptic package manager and KDM as the login manager:<br />
<br />
* XFCE,Firefox,再加上新立得软件包管理器和登录管理器KDM。<br />
<br />
sudo aptitude install kdm xorg xfce4 firefox synaptic<br />
<br />
* Fluxbox with Dillo, and XDM as a login manager:<br />
<br />
* Fluxbox,Dillo,和XDM<br />
<br />
sudo aptitude install fluxbox xorg xdm dillo<br />
<br />
* Openbox with no login manager, XFE as the file manager and xfce4-terminal as an X terminal, as well as Openbox themes and the Tango icon set:<br />
<br />
Openbox,XFE和xfce4-terminal还有Openbox主题及Tango图标。<br />
<br />
sudo aptitude install openbox obconf openbox-themes xfe xfce4-terminal tango-icon-theme-extras xorg<br />
<br />
Remember to check the repositories for more ideas on software and applications!<br />
<br />
记得查看软件仓库来获得更多的关于软件和应用的想法。<br />
<br />
= 低配置的选择 =<br />
<br />
For a minimalistic system that does not require as much configuration, you can install the alternate window managers after installing a full K/X/Ubuntu system, thus preinstalling much of the required software but keeping the speed. However, installing a full system does require more system resources.<br />
<br />
对于一个很小的系统并不需要太多的配置,在安装完完整的K/X/Ubuntu系统後你可以安装另一种窗口管理器来替代它,这样就可以安装很多必要软件并且保证运行速度。然而安装一个完整的系统的确需要更多的系统资源。<br />
<br />
= 扩展链接 =<br />
<br />
* [http://www.fluxbuntu.org FluxBuntu]: An Ubuntu variant with Fluxbox as the default window manager. An excellent place to start for a Fluxbox-based system.<br />
* [http://www.ubuntulite.org UbuntuLite]: An early project to build a stripped-down version of Ubuntu aimed at low-end machines. The project also seems to have stalled.<br />
* [http://alecjw.googlepages.com/cubuntu-commandlineubuntu Cubuntu] is not a graphical system; Cubuntu is a full-featured ''command line'' system, suitable for computers that can't handle any of the above options -- such as early Pentium or perhaps even 486-grade machines with as little as 16Mb RAM. And don't be skeptical: Even without a graphic environment, a computer can perform a lot more tasks than you would expect. B)<br />
* [http://www.enlightenment.org/ Enlightenment] is another window manager, but it is still in development and requires additional steps to install. However, it is very lightweight and functional.<br />
* [http://www.thinkgos.com/ gOS] is an operating system based on Ubuntu, uses a customized version of Enlightenment as its window manager, and is able to run on some older systems.<br />
<br />
CategoryDocumentation</div>Convicehttps://wiki.ubuntu.org.cn/index.php?title=%E4%BD%8E%E9%85%8D%E7%BD%AE%E7%94%B5%E8%84%91%E5%AE%89%E8%A3%85&diff=74938低配置电脑安装2007-12-16T12:05:19Z<p>Convice:</p>
<hr />
<div>{{Copyedit translation|from=https://wiki.ubuntu.com/Installation/LowMemorySystems}}<br />
<br />
{{From|https://wiki.ubuntu.com/Installation/LowMemorySystems}}<br />
{{Translator|convice}}<br />
{{Languages|Installation/LowMemorySystems}}<br />
<br />
<br />
<br />
<br />
'''How to install Ubuntu on low memory systems'''<br />
(Pentium III and earlier machines, with 32-192 MB RAM).<br />
<br />
<br />
'''怎样在低内存的系统上安装Ubuntu(Pentium III或更早的,配有32-192MB内存的机器)'''<br />
<br />
<br />
==== 内存需求 ====<br />
<br />
Installing Ubuntu on any system requires at least 32Mb of memory: The text-based installer included with the alternate (install) CDs needs that much space to run reliably. Smaller memory configurations run into problems, and while not impossible, it can be very difficult to complete an installation with less than the minimum RAM requirement.<br />
<br />
在任何系统上安装Ubuntu至少需要32Mb内存:包含在alternate (install) CDs的基于字符的安装程序需要这些空间来可靠运行。更小的内存配置可能会遇到问题,虽然不是不可能,但如果内存小于最低的需求,要完成安装十分困难。<br />
<br />
Depending on the hardware requirements, you can expect a sparse Ubuntu system to boot to a graphical desktop on anywhere from 19Mb to 54Mb. That requirement will fluctuate with the system demands, and increase while the system is active. Swap space is crucial to low-memory machines, so don't be stingy when setting up your system.<br />
<br />
考虑硬件需求,你可以期望一个瘦小的Ubuntu系统在任何内存为19Mb到54Mb的电脑上启动并运行图形桌面。这个需求会随着系统的需求面浮动,当系统活跃的时候会增加。交换分区对于低内存的机器十分重要,所以当设置系统的时候别小器。<br />
<br />
==== 处理器 ====<br />
<br />
There is no practical speed requirement, although a slower processor will take more time to finish installing. Some Pentium machines will take hours to complete, simply because the CPU takes longer to finish. As a general benchmark, a 75Mhz machine finishes a command-line installation of Ubuntu 7.04 in about four hours, and a 120Mhz machine finishes in perhaps an hour less than that. 200Mhz and faster machines will see a still stronger improvement.<br />
<br />
对处理器的速度没有什么实际的需求,然而低速度的处理器将要花更多的时间来完成安装。仅仅是因为CPU花了太多的时间,一些Pentium机将要花费几个小时来完成安装。根据通常的基准测试,一台75Mhz的机器要4个小时来完成基于命令行的Ubuntu 7.04的安装,一台120Mhz的要比它少用一个小时。200Mhz或是更快的机器将会有更强的提升。<br />
<br />
If you do decide to install Ubuntu on a legacy machine, be patient. There will come times when you think the machine has stopped or is hung, when in fact it's still moving, albeit at a very slow rate.<br />
<br />
如果你决定在一台老的机器上安装Ubuntu,要有耐心。可能会出现好几次这样的情况:当你认为机器已经停止或挂起,其实它正在运行,虽然速度很慢。<br />
<br />
==== 磁盘空间需求 ====<br />
<br />
Disk space on an absolutely minimal installation can be reduced to as little as 500Mb. A fresh and clean server installation of Ubuntu 7.04 generally takes only 300Mb, although there will be minor variations on account of hardware differences.<br />
<br />
磁盘空间在绝对最小安装的情况下可以减少到500Mb。虽然对于不同的硬件会有很小的变化,一个干净的Ubuntu 7.04 服务器的安装通常只需要300Mb。<br />
<br />
==== 其它硬件上的考虑 ====<br />
<br />
These instructions assume you will have a working Internet connection and access to the [[UbuntuHelp:Repositories|universe and multiverse repositories]]. Configuring your hardware is not included on this page.<br />
<br />
这份指南假设你有一个可用的互联网连接并且可以访问[[UbuntuHelp:Repositories|universe and multiverse repositories]].它不包括对你硬件的配置。<br />
<br />
== 安装Ubuntu Server ==<br />
<br />
The server version of Ubuntu is a sparse command-line system, without any graphical elements. It's a text-only version of what lies underneath all the advanced graphical elements. It's also the starting point for a minimal installation.<br />
<br />
Ubuntu服务器版是一个精减的命令行系统,没有任何图形元素。它是一个位于高级图形元素之下的纯文本版本,是我们最小化安装的起点。<br />
<br />
==== Ubuntu 6.06 ====<br />
<br />
To install a base system, boot from the alternate (install) CD and choose "Install a server."<br />
<br />
Follow the prompts to complete installation.<br />
<br />
启动alternate(install)CD,选择"Install a server"。按提示完成安装。<br />
<br />
==== Ubuntu 6.10, 7.04, 或 7.10 ====<br />
<br />
To install a base system, boot from the alternate (install) CD and choose "Install a command-line system."<br />
<br />
Follow the prompts to complete installation.<br />
<br />
启动alternate(install)CD,选择"Install a command-line system."。按提示完成安装。<br />
<br />
=== 增加软件仓库 ===<br />
<br />
==== 更改源 ====<br />
<br />
Once the server install is complete, you will probably want to edit your [[UbuntuHelp:Sources.list|UbuntuHelp:sources.list]] file.<br />
<br />
当安装好Ubuntu服务器版后,你可能需要编辑你的[[UbuntuHelp:Sources.list|UbuntuHelp:sources.list]]文件。<br />
<br />
sudo nano /etc/apt/sources.list<br />
<br />
Uncomment all official repositories by removing # at the beginning of the line. Do not uncomment the narrative portions of that file; in other words, where you see a double hash mark (##) leave those lines alone.<br />
<br />
删除每一行开始的#号来消除对官方软件仓库的注释。不要消除文件里描述部分的注释,即以两个#号(##)开始的行。<br />
<br />
==== 更新和升级你的系统 ====<br />
<br />
Now you should update your system. Return to the command line and type:<br />
<br />
现在你应该更新你的系统。回到命令行输入:<br />
<br />
sudo aptitude updat<br />
<br />
It's probably also a good idea to upgrade your system at this point. Use this command to upgrade your system:<br />
<br />
这时升级你的系统也是个不错的主意。用这个命令升级你的系统。<br />
<br />
sudo aptitude upgrade (或者, 对于 Gutsy: sudo aptitude safe-upgrade)<br />
<br />
<br />
Now you should be ready to install a window manager and some programs.<br><br />
<br />
现在你应该已经可以安装窗口管理器和一些程序了。<br />
<br />
= 安装图形环境的准备工作 =<br />
<br />
The absolute minimum for any graphical environment is X.org<br />
<br />
最小的图形环境是X.org<br />
<br />
=== 安装X.org ===<br />
<br />
On Ubuntu Edgy (6.10), Feisty (7.04), and Gutsy (7.10), use the command:<br />
<br />
在 Ubuntu Edgy (6.10), Feisty (7.04), 和 Gutsy (7.10), 用下面的命令:<br />
<br />
sudo aptitude install xorg<br />
<br />
On Ubuntu Dapper (6.06), use the command:<br />
<br />
在 Ubuntu Dapper (6.06), 用下面的命令:<br />
<br />
sudo aptitude install x-window-system-core<br />
<br />
=== 启动X.org ===<br />
<br />
This package gives you the framework for an X session, complete with a variety of drivers and configuration files. Installing ''xorg'' (or ''x-window-system-core'') also triggers the self-configuration sequence, so when it finishes, your hardware should be ready to use, barring any errors or incompatibilities.<br />
<br />
通过一些驱动和配置文件,这个软件包给了你一个X对话的框架。安装“Xorg”或“x-window-system-core”还启动了自动配置队列,安装完成后,如果没有错误或不兼容,你的硬件应该已经可用了。<br />
<br />
It's important to note that installing ''xorg'' or ''x-window-system-core'' really doesn't leave you with much. You can start X at this point with this command:<br />
<br />
必须注意的是,安装“Xorg”或“x-window-system-core”不会给你很多。这时你可以用以下命令启动X:<br />
<br />
startx<br />
<br />
but without a window manager and some software, you probably won't get much done.<br />
<br />
但是没有窗口管理器和一些软件,你能做的很少。<br />
<br />
= 安装一个窗口管理器 =<br />
<br />
A window manager controls the placement and appearance of windows within a graphical user interface.<br />
<br />
窗口管理器通过图形用户界面控制窗口的位置有显示。<br />
<br />
There are many lightweight window managers that will give you better access to your system through the X layer. Each one has its own way of managing the desktop, and its own way of configuring themes and menus.<br />
<br />
有很多轻量级的窗口管理器可以使你更好的通过X层访问你的系统。每一种都有它们自己的方式来管理桌面,都有它们自己的方法来配置主题和菜单。<br />
<br />
== Openbox ==<br />
<br />
"Openbox" is one of the lightest, fastest window managers available, but can take some time to configure and set up. It has its origins in Blackbox, but newer versions are complete rewrites of the Blackbox code.<br />
<br />
"Openbox"是一种轻量级的快速的可用的窗口管理器,只是需要一些时间来安装和配置。它源于Blackbox,但是新版的全部重写了Blackbox的代码。<br />
<br />
Install Openbox with this command:<br />
<br />
用以下命令安装Openbox:<br />
<br />
sudo aptitude install openbox obconf openbox-themes<br />
<br />
<br />
These packages and their dependencies will allow you to build and configure an Openbox system, along with a choice of themes and some configuration options.<br />
<br />
这些软件包和它们的依赖软件包让你可以建立和配置Openbox系统,还有可选择的主题和一些配置选项。<br />
<br />
'''Note:''' Edgy (Ubuntu 6.10) users should note a small discrepancy in ''obconf'' that might prevent it from running. You can correct that with these commands ...<br />
<br />
'''注意:'''Edgy (Ubuntu 6.10)用户必须注意"obconf"一个可能会使其无法运行的小问题。你可以用下面的命令解决这个问题。<br />
<br />
cd /usr/lib<br />
sudo ln libobparser.so.0.4.0 libobparser.so.1<br />
sudo ln libobrender.so.0.4.0 libobrender.so.1<br />
sudo ldconfig -X<br />
<br />
<br />
Entering ''obconf'' in an X terminal window should now trigger the obconf dialogue.<br />
<br />
在X终端输入''obconf''将启动obconf对话。<br />
<br />
== IceWM ==<br />
<br />
"IceWM" has a very strong following as a good, clean, fast window manager that resembles a conventional "desktop" in many ways. Among many of its perks are themes that resemble the Windows XP desktop theme -- which may be appealing to you.<br />
<br />
"IceWM"很受欢迎,因为它是一个很好的,干净的,很快的窗口管理器,它还集成了一个可选择的桌面。在它的众多优点中有一个可能会吸引你:它集成了Windows XP桌面主题。<br />
<br />
Install IceWM with this command:<br />
<br />
用下面的命令安装IceWM:<br />
<br />
sudo aptitude install icewm iceconf icepref iceme icewm-themes<br />
<br />
<br />
When finished, you will have a number of configuration and menu options. You can start IceWM with the ''startx'' command.<br />
<br />
安装完成后,你将拥有一些配置和菜单选项。你可以用''startx''命令启动它。<br />
<br />
== Fluxbox ==<br />
<br />
"Fluxbox" is a beautiful, highly configurable desktop system that is easy on system resources without compromising on graphical appeal. Fluxbox is the default window manager for a number of Linux distributions, probably most notable among them being [http://www.damnsmalllinux.org/ Damn Small Linux].<br />
<br />
"Fluxbox" 是一种漂亮的,高度可配置的桌面系统,它对系统资源要求不高却没有损失图形的吸引力。"Fluxbox" 是许多Linux发开版的默认窗口管理器,可能大部分都在[http://www.damnsmalllinux.org/ Damn Small Linux]上。<br />
<br />
Install Fluxbox with this command:<br />
<br />
<br />
用下面的命令安装Fluxbox:<br />
<br />
sudo aptitude install fluxbox fluxconf<br />
<br />
<br />
Once installed, you can start Fluxbox with the ''startfluxbox'' command. Remember, if you enjoy working with Fluxbox, you should consider [http://www.fluxbuntu.org Fluxbuntu] as an option.<br />
<br />
安装好以后,你可以用''startfluxbox''命令启动它。记住,如果你很喜欢使用Fluxbox,你可以考虑 [http://www.fluxbuntu.org Fluxbuntu] 作为一种选择。<br />
<br />
== FVWM-Crystal ==<br />
<br />
"FVWM-Crystal" is a complete set of configuration scripts which sit atop of FVWM. FVWM-Crystal has support for integrated access to music players, terminal emulators and system monitors. It boasts some of the finest eye candy available to low-end machines, and is a snap to install.<br />
<br />
"FVWM-Crystal" 是基于FVWM的一些配置脚本。"FVWM-Crystal" 支持对音乐播放器,终端和系统监视的集成访问。它号称是在低配置机器上可用的最漂亮的窗口管理器,并且它可以很快的安装。<br />
<br />
For more information about building an FVWM-Crystal desktop, check out the ["FVWM-Crystal"] page.<br />
<br />
想知道更多关于安装FVWM-Crystal桌面的的信息,请访问["FVWM-Crystal"]。<br />
<br />
== XFCE ==<br />
<br />
XFCE is heavier than any of the systems mentioned so far, but has some added functions as a result. You can try XFCE alone if you like, but if you're keen on an XFCE installation, look into [http://www.xubuntu.org Xubuntu] as an option.<br />
<br />
XFCE 相对于目前已经提到的轻量级窗口管理器来说都更“重”,但是是因为增加了一些应用的。如果你喜欢,你可以单独党旗XFCE,但如果你一定要安装XFCE,请查看 [http://www.xubuntu.org Xubuntu]。<br />
<br />
Install XFCE alone, without Xubuntu, with this command:<br />
<br />
单独安装XFCE,而不是Xubuntu,请用下面的命令:<br />
<br />
sudo aptitude install xfce4<br />
<br />
<br />
It's worth noting that some Edgy users have difficulty starting XFCE from a minimal install. The normal start command for XFCE -- ''startxfce4'' -- doesn't seem to be properly configured in Edgy.<br />
<br />
对于Edgy用户来讲,这是没有用的,从最小化安装启动XFCE是有困难的。XFCE的启动命令-- ''startxfce4'' -- 看起来好像在Edgy上没有配置好。<br />
<br />
If you want the entire Xubuntu package, which includes a full suite of software and a lot of improvements, try this command:<br />
<br />
如果你想要一个完全的包括了一些软件和一些改进的Xubuntu包,请用下面的命令:<br />
<br />
sudo aptitude install xubuntu-desktop<br />
<br />
<br />
That will download quite a large amount of packages; you may want to consider installing Xubuntu fresh, from the [http://www.xubuntu.org/get installation ISO].<br />
<br />
这将要下载很多的软件包;你可能想从 [http://www.xubuntu.org/get installation ISO]干净的安装Xubuntu。<br />
<br />
Note: Xubuntu will use more system resources and may not be optimal for a low memory system with limited disk space, but it is lighter than a standard Ubuntu system.<br />
<br />
''注意:'' Xubuntu 将会使用更多的系统资源,而且可能对于一个硬盘空间和内存都有限的系统来讲不是最好的选择,但是它比标准的Ubuntu系统“轻”。<br />
<br />
= 安装软件 =<br />
<br />
Now that the graphical window manager is set up, it's time to add some necessary and recommended packages. These will add additional functionality and make using the system easier. Additionally, adding a graphical package manager will provide an easy method to manage installed applications and packages.<br />
<br />
现在图形窗口管理器已经设置好了,现在可以安装一些必须或推荐的软件包。这些软件包将会加入一些新的功能,使系统更容易使用。另外,安装一个图形化的软件包管理器将会使管理已安装的应用和软件包变得容易。<br />
<br />
== 登录管理器 ==<br />
<br />
Login managers will assist in choosing a graphical environment and will not require the user to start x.org to get into the window manager.<br />
<br />
登录管理器将帮助我们选择一个图形环境,而且不需要用户启动X.org就可以进入窗口管理器。<br />
<br />
It's important to note that it's not necessary to use a login manager. If you're willing to log in at the command line and start X manually, you can save yourself a lot of system resources -- and the time it takes to load them. That can be a more appealing option on older machines.<br />
<br />
要说明的是登录管理器并不是必须的。如果你喜欢在命令行界面登录然后手动启动X,你能节约很多系统资源和启动它们的时间。对于老的机器来说可能更有吸引力。<br />
<br />
=== GDM ===<br />
<br />
GDM is the Ubuntu default for a login manager. However, GDM has a reputation of being a heavyweight, and on a system that needs as little bulk as possible, you might find it to be a burden. If you've got a decent system, install it using:<br />
<br />
GDM是Ubuntu默认的登陆管理器,它被认为是一个重量级的管理器,在系统中它需要比较多的资源,所以你可能会发现它是一个负担。如果你有一个很好的系统,用以下命令安装它:<br />
<br />
sudo aptitude install gdm<br />
<br />
<br />
=== KDM ===<br />
<br />
KDM is another manager, but has the same heavy reputation as GDM.<br />
<br />
KDM是另一种管理器,它和GDM一样被认为是重量级的管理器。用以下命令安装:<br />
<br />
sudo aptitude install kdm<br />
<br />
<br />
=== XDM ===<br />
<br />
XDM is the login manager for straight X, and while less beautiful than GDM or KDM, it can perform in the same role without fuss.<br />
<br />
XDM是纯粹的X的登录管理器,它没有GDM和KDM漂亮,但它能像GDM和KDM那样很好的工作。用以下命令安装:<br />
<br />
sudo aptitude install xdm<br />
<br />
<br />
== 浏览器 ==<br />
<br />
Now that your system is up and running, it would be a good idea to add an internet browser to surf the web and get some use out of the machine!<br />
<br />
现在你的系统已经在运行了,现在可以安装一个因特网浏览器来上网冲浪。<br />
<br />
=== Firefox ===<br />
<br />
Web browsers come in many flavors, and the most prevalent -- Firefox -- can be laggy on low-memory or slow systems. Even the GNU version of Firefox, [https://wiki.ubuntu.com/IceWeasel Iceweasel] can be a bit heavy on older machines. If you've got at least 128 mb of memory, Firefox should work just fine.<br />
<br />
Firefox是适用于很多Linux发行版,是最流行的浏览器。它对于低内存或者低速的系统来讲,可能有点难以应付。甚至是GNU版本的Firefox,[https://wiki.ubuntu.com/IceWeasel Iceweasel] 对于老的机器来讲也有些“重”。如果你有多于128mb的内存,Firefox可以运行的很好。用以下命令安装它:<br />
<br />
sudo aptitude install firefox <br />
<br />
<br />
=== Dillo ===<br />
<br />
While not nearly as full-featured as Firefox, Dillo has the advantages of a very small footprint and few resource requirements.<br />
<br />
不像Firefox那样具有完全的功能,Dillo的优点是有一个很小的脚印和很小的资源需求。用以下命令安装它:<br />
<br />
sudo aptitude install dillo<br />
<br />
<br />
<br />
== iDesk ==<br />
<br />
Many lightweight desktop systems use [http://idesk.sourceforge.net/ iDesk] as a way of including customized, clickable icons directly on the desktop. iDesk is maintained in the Ubuntu repositories, and is installable from the command line with:<br />
<br />
很多轻量级的桌面系统用[http://idesk.sourceforge.net/ iDesk]来配置和使桌面上的图标可以被直接点击。iDesk包含在Ubuntu的软件仓库中,可以用以下命令安装它:<br />
<br />
sudo aptitude install idesk<br />
<br />
<br />
Consult the [http://idesk.sourceforge.net/ iDesk wiki] for instructions on how to configure and use iDesk. For icon sets, you may wish to search the repositories, or download them from third-party customization sites, such as [http://www.gnome-look.org Gnome-Look.org] and similar locations.<br />
<br />
访问[http://idesk.sourceforge.net/ iDesk wiki]来获取配置和使用iDesk的命令。你可能要搜索软件仓库或从第三方的配置网站上下载图标,像[http://www.gnome-look.org Gnome-Look.org]及相似的网站。<br />
<br />
== 文件管理器 ==<br />
<br />
Lightweight systems have a number of options available for graphical file management. Thunar is the default file manager in Xubuntu and many XFCE-based systems; it is installable alone with this command:<br />
<br />
轻量级的系统有多种可用的图形文件管理器。Thunar是Xubuntu和很多基于XFCE默认的系统,可以使用下面的命令单独安装它:<br />
<br />
sudo aptitude install thunar<br />
<br />
<br />
XFE is an even lighter file manager, intended to mimic the Windows Explorer interface. It has very few dependencies and is very fast.<br />
<br />
XFE是一种更“轻”的文件管理器,它模仿了Windwos Explorer接口。它只依赖很少的软件包而且非常快。用下面命令安装它:<br />
<br />
sudo aptitude install xfe<br />
<br />
<br />
ROX-Filer is another file management program, which makes extensive use of drag-and-drop principles. It does appear to have a large number of dependencies however, which means installing it may entail more external packages than you wish. Install ROX-Filer with this command:<br />
<br />
ROX-Filer也是一种文件管理器,它扩展了drag-and-drop原理。它依赖很多的软件包,这就意味着它需要比你想像的要多的扩展软件包。用下面命令安装它:<br />
<br />
sudo aptitude install rox-filer<br />
<br />
<br />
Nautilus is the default file manager for Ubuntu. It requires some more resources, but it has a lot of useful features. It can manage your desktop, show a wallpaper and desktop icons, which are automatically created for new devices (e.g. USB flash drives). Install Nautilus using this command:<br />
<br />
Nautilus是Ubuntu默认的文件管理器。它需要更多的资源,但它具有很多有用的特性。它能管理你的桌面,显示桌面背景和桌面图标,对于新的设备它们都可以自动创建。用下面命令安装它:<br />
<br />
sudo apt-get install nautilus<br />
<br />
<br />
To use it together with a window manager, execute the following command or add it to your autostart script. For example, use $HOME/.icewm/startup for IceWM.<br />
<br />
要让它和窗口管理器一起工作,需执行以下命令或者把命令加入到自动启动脚本。例如:对于IceWM,加入$HOME/.icewm/startup文件。<br />
<br />
nautilus --no-default-window &amp; <br />
<br />
<br />
Some other popular file managers include<br />
<br />
其它一些浒的文件管理器有:<br />
<br />
* [http://pcmanfm.sourceforge.net/ PCManFM];<br />
* [http://packages.ubuntu.com/edgy/utils/mc Midnight Commander], [http://tuxcmd.sourceforge.net/ Tux Commander] and [http://packages.ubuntu.com/edgy/gnome/gnome-commander Gnome Commander] (which all resemble the old Norton Commander interface);<br />
* [http://packages.ubuntu.com/edgy/x11/xffm4-filemanager xffm4-filemanager];<br />
* [http://step.polymtl.ca/~coyote/xvfilemgr_main.html XVFilemgr];<br />
* and [http://packages.ubuntu.com/edgy/kde/dolphin Dolphin], which is a file manager aimed at KDE and Kubuntu.<br />
<br />
There are many others. Some are available through the repositories; others will require you to download and install them through another source. Experiment with different file managers to see which ones appeal to you.<br />
<br />
这里有很多其它的文件管理器。其中一些可以通过软件仓库安装,一些必须通过源码下载和安装。尝试不同的文件管理器,看哪些能够吸引你。<br />
<br />
== 软件包管理器 ==<br />
<br />
Add a graphical package manager to install, remove and upgrade software packages and to add repositories without using the command line. Synaptic package manager is the standard and can be installed with this command:<br />
<br />
安装一个图形化的软件包管理器来安装,删除和升级软件包和增加软件仓库,可以让你不需要使用命令。新立得软件包管理器是标准的软件包管理工具。可以用下面命令来安装:<br />
<br />
sudo aptitude install synaptic<br />
<br />
<br />
You can use the package manager to add a word processor, such as Abiword, and other productivity software.<br />
<br />
你可以用软件包管理器来安装字处理器,像Abiword,或是其它的软件。<br />
<br />
= 安装一个完整的轻量级系统 =<br />
<br />
Building on the ideas above, here are some complete graphical systems, installable through a single command line. Feel free to mix and match between these options.<br />
<br />
基于以上的想法,我们可以用一条命令来安装一个完整的图形系统。你可以自由的组合这些选项。<br />
<br />
'''Remember: If you are using Dapper or earlier, replace "xorg" with "x-window-system-core"'''<br />
<br />
'''记住:如果你是在用Dapper或是更早的版本,用"x-window-system-core"代替"xorg"。'''<br />
<br />
* IceWM as a window manager, plus GDM, Firefox, Abiword and the Synaptic package manager:<br />
<br />
* IceWM是窗口管理器,加上GDM,Firefox,Abiword和新立得软件包管理器。<br />
<br />
sudo aptitude install gdm xorg xterm icewm menu mozilla-firefox abiword synaptic<br />
<br />
<br />
* XFCE and Firefox, with Synaptic package manager and KDM as the login manager:<br />
<br />
* XFCE,Firefox,再加上新立得软件包管理器和登录管理器KDM。<br />
<br />
sudo aptitude install kdm xorg xfce4 firefox synaptic<br />
<br />
<br />
* Fluxbox with Dillo, and XDM as a login manager:<br />
<br />
* Fluxbox,Dillo,和XDM<br />
<br />
sudo aptitude install fluxbox xorg xdm dillo<br />
<br />
<br />
* Openbox with no login manager, XFE as the file manager and xfce4-terminal as an X terminal, as well as Openbox themes and the Tango icon set:<br />
<br />
Openbox,XFE和xfce4-terminal还有Openbox主题及Tango图标。<br />
<br />
sudo aptitude install openbox obconf openbox-themes xfe xfce4-terminal tango-icon-theme-extras xorg<br />
<br />
<br />
Remember to check the repositories for more ideas on software and applications!<br />
<br />
记得查看软件仓库来获得更多的关于软件和应用的想法。<br />
<br />
= 低配置的选择 =<br />
<br />
For a minimalistic system that does not require as much configuration, you can install the alternate window managers after installing a full K/X/Ubuntu system, thus preinstalling much of the required software but keeping the speed. However, installing a full system does require more system resources.<br />
<br />
对于一个很小的系统并不需要太多的配置,在安装完完整的K/X/Ubuntu系统后你可以安装另一种窗口管理器来替代它,这样就可以安装很多必要软件并且保证运行速度。然而安装一个完整的系统的确需要更多的系统资源。<br />
<br />
= 扩展链接 =<br />
<br />
* [http://www.fluxbuntu.org FluxBuntu]: An Ubuntu variant with Fluxbox as the default window manager. An excellent place to start for a Fluxbox-based system.<br />
* [http://www.ubuntulite.org UbuntuLite]: An early project to build a stripped-down version of Ubuntu aimed at low-end machines. The project also seems to have stalled.<br />
* [http://alecjw.googlepages.com/cubuntu-commandlineubuntu Cubuntu] is not a graphical system; Cubuntu is a full-featured ''command line'' system, suitable for computers that can't handle any of the above options -- such as early Pentium or perhaps even 486-grade machines with as little as 16Mb RAM. And don't be skeptical: Even without a graphic environment, a computer can perform a lot more tasks than you would expect. B)<br />
* [http://www.enlightenment.org/ Enlightenment] is another window manager, but it is still in development and requires additional steps to install. However, it is very lightweight and functional.<br />
* [http://www.thinkgos.com/ gOS] is an operating system based on Ubuntu, uses a customized version of Enlightenment as its window manager, and is able to run on some older systems.<br />
<br />
CategoryDocumentation</div>Convicehttps://wiki.ubuntu.org.cn/index.php?title=%E4%BD%8E%E9%85%8D%E7%BD%AE%E7%94%B5%E8%84%91%E5%AE%89%E8%A3%85&diff=74937低配置电脑安装2007-12-16T12:03:15Z<p>Convice:</p>
<hr />
<div>{{Copyedit translation|from=https://wiki.ubuntu.com/Installation/LowMemorySystems}}<br />
<br />
{{From|https://wiki.ubuntu.com/Installation/LowMemorySystems}}<br />
{{Translator|convice}}<br />
{{Languages|Installation/LowMemorySystems}}<br />
<br />
<br />
<br />
<br />
'''How to install Ubuntu on low memory systems'''<br />
(Pentium III and earlier machines, with 32-192 MB RAM).<br />
<br />
<br />
'''怎样在低内存的系统上安装Ubuntu(Pentium III或更早的,配有32-192MB内存的机器)'''<br />
<br />
<br />
==== 内存需求 ====<br />
<br />
Installing Ubuntu on any system requires at least 32Mb of memory: The text-based installer included with the alternate (install) CDs needs that much space to run reliably. Smaller memory configurations run into problems, and while not impossible, it can be very difficult to complete an installation with less than the minimum RAM requirement.<br />
<br />
在任何系统上安装Ubuntu至少需要32Mb内存:包含在alternate (install) CDs的基于字符的安装程序需要这些空间来可靠运行。更小的内存配置可能会遇到问题,虽然不是不可能,但如果内存小于最低的需求,要完成安装十分困难。<br />
<br />
Depending on the hardware requirements, you can expect a sparse Ubuntu system to boot to a graphical desktop on anywhere from 19Mb to 54Mb. That requirement will fluctuate with the system demands, and increase while the system is active. Swap space is crucial to low-memory machines, so don't be stingy when setting up your system.<br />
<br />
考虑硬件需求,你可以期望一个瘦小的Ubuntu系统在任何内存为19Mb到54Mb的电脑上启动并运行图形桌面。这个需求会随着系统的需求面浮动,当系统活跃的时候会增加。交换分区对于低内存的机器十分重要,所以当设置系统的时候别小器。<br />
<br />
==== 处理器 ====<br />
<br />
There is no practical speed requirement, although a slower processor will take more time to finish installing. Some Pentium machines will take hours to complete, simply because the CPU takes longer to finish. As a general benchmark, a 75Mhz machine finishes a command-line installation of Ubuntu 7.04 in about four hours, and a 120Mhz machine finishes in perhaps an hour less than that. 200Mhz and faster machines will see a still stronger improvement.<br />
<br />
对处理器的速度没有什么实际的需求,然而低速度的处理器将要花更多的时间来完成安装。仅仅是因为CPU花了太多的时间,一些Pentium机将要花费几个小时来完成安装。根据通常的基准测试,一台75Mhz的机器要4个小时来完成基于命令行的Ubuntu 7.04的安装,一台120Mhz的要比它少用一个小时。200Mhz或是更快的机器将会有更强的提升。<br />
<br />
If you do decide to install Ubuntu on a legacy machine, be patient. There will come times when you think the machine has stopped or is hung, when in fact it's still moving, albeit at a very slow rate.<br />
<br />
如果你决定在一台老的机器上安装Ubuntu,要有耐心。可能会出现好几次这样的情况:当你认为机器已经停止或挂起,其实它正在运行,虽然速度很慢。<br />
<br />
==== 磁盘空间需求 ====<br />
<br />
Disk space on an absolutely minimal installation can be reduced to as little as 500Mb. A fresh and clean server installation of Ubuntu 7.04 generally takes only 300Mb, although there will be minor variations on account of hardware differences.<br />
<br />
磁盘空间在绝对最小安装的情况下可以减少到500Mb。虽然对于不同的硬件会有很小的变化,一个干净的Ubuntu 7.04 服务器的安装通常只需要300Mb。<br />
<br />
==== 其它硬件上的考虑 ====<br />
<br />
These instructions assume you will have a working Internet connection and access to the [[UbuntuHelp:Repositories|universe and multiverse repositories]]. Configuring your hardware is not included on this page.<br />
<br />
这份指南假设你有一个可用的互联网连接并且可以访问[[UbuntuHelp:Repositories|universe and multiverse repositories]].它不包括对你硬件的配置。<br />
<br />
== 安装Ubuntu Server ==<br />
<br />
The server version of Ubuntu is a sparse command-line system, without any graphical elements. It's a text-only version of what lies underneath all the advanced graphical elements. It's also the starting point for a minimal installation.<br />
<br />
Ubuntu服务器版是一个精减的命令行系统,没有任何图形元素。它是一个位于高级图形元素之下的纯文本版本,是我们最小化安装的起点。<br />
<br />
==== Ubuntu 6.06 ====<br />
<br />
To install a base system, boot from the alternate (install) CD and choose "Install a server."<br />
<br />
Follow the prompts to complete installation.<br />
<br />
启动alternate(install)CD,选择"Install a server"。按提示完成安装。<br />
<br />
==== Ubuntu 6.10, 7.04, 或 7.10 ====<br />
<br />
To install a base system, boot from the alternate (install) CD and choose "Install a command-line system."<br />
<br />
Follow the prompts to complete installation.<br />
<br />
启动alternate(install)CD,选择"Install a command-line system."。按提示完成安装。<br />
<br />
=== 增加软件仓库 ===<br />
<br />
==== 更改源 ====<br />
<br />
Once the server install is complete, you will probably want to edit your [[UbuntuHelp:Sources.list|UbuntuHelp:sources.list]] file.<br />
<br />
当安装好Ubuntu服务器版后,你可能需要编辑你的[[UbuntuHelp:Sources.list|UbuntuHelp:sources.list]]文件。<br />
<br />
sudo nano /etc/apt/sources.list<br />
<br />
Uncomment all official repositories by removing # at the beginning of the line. Do not uncomment the narrative portions of that file; in other words, where you see a double hash mark (##) leave those lines alone.<br />
<br />
删除每一行开始的#号来消除对官方软件仓库的注释。不要消除文件里描述部分的注释,即以两个#号(##)开始的行。<br />
<br />
==== 更新和升级你的系统 ====<br />
<br />
Now you should update your system. Return to the command line and type:<br />
<br />
现在你应该更新你的系统。回到命令行输入:<br />
<br />
sudo aptitude updat<br />
<br />
It's probably also a good idea to upgrade your system at this point. Use this command to upgrade your system:<br />
<br />
这时升级你的系统也是个不错的主意。用这个命令升级你的系统。<br />
<br />
sudo aptitude upgrade (或者, 对于 Gutsy: sudo aptitude safe-upgrade)<br />
<br />
<br />
Now you should be ready to install a window manager and some programs.<br><br />
<br />
现在你应该已经可以安装窗口管理器和一些程序了。<br />
<br />
= 安装图形环境的准备工作 =<br />
<br />
The absolute minimum for any graphical environment is X.org<br />
<br />
最小的图形环境是X.org<br />
<br />
=== 安装X.org ===<br />
<br />
On Ubuntu Edgy (6.10), Feisty (7.04), and Gutsy (7.10), use the command:<br />
<br />
在 Ubuntu Edgy (6.10), Feisty (7.04), 和 Gutsy (7.10), 用下面的命令:<br />
<br />
sudo aptitude install xorg<br />
<br />
<br />
<br />
On Ubuntu Dapper (6.06), use the command:<br />
<br />
在 Ubuntu Dapper (6.06), 用下面的命令:<br />
<br />
sudo aptitude install x-window-system-core<br />
<br />
<br />
<br />
=== 启动X.org ===<br />
<br />
This package gives you the framework for an X session, complete with a variety of drivers and configuration files. Installing ''xorg'' (or ''x-window-system-core'') also triggers the self-configuration sequence, so when it finishes, your hardware should be ready to use, barring any errors or incompatibilities.<br />
<br />
通过一些驱动和配置文件,这个软件包给了你一个X对话的框架。安装“Xorg”或“x-window-system-core”还启动了自动配置队列,安装完成後,如果没有错误或不兼容,你的硬件应该已经可用了。<br />
<br />
It's important to note that installing ''xorg'' or ''x-window-system-core'' really doesn't leave you with much. You can start X at this point with this command:<br />
<br />
<br />
必须注意的是,安装“Xorg”或“x-window-system-core”不会给你很多。这时你可以用以下命令启动X:<br />
<br />
startx<br />
<br />
<br />
but without a window manager and some software, you probably won't get much done.<br />
<br />
但是没有窗口管理器和一些软件,你能做的很少。<br />
<br />
= 安装一个窗口管理器 =<br />
<br />
A window manager controls the placement and appearance of windows within a graphical user interface.<br />
<br />
窗口管理器通过图形用户界面控制窗口的位置有显示。<br />
<br />
There are many lightweight window managers that will give you better access to your system through the X layer. Each one has its own way of managing the desktop, and its own way of configuring themes and menus.<br />
<br />
有很多轻量级的窗口管理器可以使你更好的通过X层访问你的系统。每一种都有它们自己的方式来管理桌面,都有它们自己的方法来配置主题和菜单。<br />
<br />
== Openbox ==<br />
<br />
"Openbox" is one of the lightest, fastest window managers available, but can take some time to configure and set up. It has its origins in Blackbox, but newer versions are complete rewrites of the Blackbox code.<br />
<br />
"Openbox"是一种轻量级的快速的可用的窗口管理器,只是需要一些时间来安装和配置。它源于Blackbox,但是新版的全部重写了Blackbox的代码。<br />
<br />
Install Openbox with this command:<br />
<br />
用以下命令安装Openbox:<br />
<br />
sudo aptitude install openbox obconf openbox-themes<br />
<br />
<br />
These packages and their dependencies will allow you to build and configure an Openbox system, along with a choice of themes and some configuration options.<br />
<br />
这些软件包和它们的依赖软件包让你可以建立和配置Openbox系统,还有可选择的主题和一些配置选项。<br />
<br />
'''Note:''' Edgy (Ubuntu 6.10) users should note a small discrepancy in ''obconf'' that might prevent it from running. You can correct that with these commands ...<br />
<br />
'''注意:'''Edgy (Ubuntu 6.10)用户必须注意"obconf"一个可能会使其无法运行的小问题。你可以用下面的命令解决这个问题。<br />
<br />
cd /usr/lib<br />
sudo ln libobparser.so.0.4.0 libobparser.so.1<br />
sudo ln libobrender.so.0.4.0 libobrender.so.1<br />
sudo ldconfig -X<br />
<br />
<br />
Entering ''obconf'' in an X terminal window should now trigger the obconf dialogue.<br />
<br />
在X终端输入''obconf''将启动obconf对话。<br />
<br />
== IceWM ==<br />
<br />
"IceWM" has a very strong following as a good, clean, fast window manager that resembles a conventional "desktop" in many ways. Among many of its perks are themes that resemble the Windows XP desktop theme -- which may be appealing to you.<br />
<br />
"IceWM"很受欢迎,因为它是一个很好的,干净的,很快的窗口管理器,它还集成了一个可选择的桌面。在它的众多优点中有一个可能会吸引你:它集成了Windows XP桌面主题。<br />
<br />
Install IceWM with this command:<br />
<br />
用下面的命令安装IceWM:<br />
<br />
sudo aptitude install icewm iceconf icepref iceme icewm-themes<br />
<br />
<br />
When finished, you will have a number of configuration and menu options. You can start IceWM with the ''startx'' command.<br />
<br />
安装完成后,你将拥有一些配置和菜单选项。你可以用''startx''命令启动它。<br />
<br />
== Fluxbox ==<br />
<br />
"Fluxbox" is a beautiful, highly configurable desktop system that is easy on system resources without compromising on graphical appeal. Fluxbox is the default window manager for a number of Linux distributions, probably most notable among them being [http://www.damnsmalllinux.org/ Damn Small Linux].<br />
<br />
"Fluxbox" 是一种漂亮的,高度可配置的桌面系统,它对系统资源要求不高却没有损失图形的吸引力。"Fluxbox" 是许多Linux发开版的默认窗口管理器,可能大部分都在[http://www.damnsmalllinux.org/ Damn Small Linux]上。<br />
<br />
Install Fluxbox with this command:<br />
<br />
<br />
用下面的命令安装Fluxbox:<br />
<br />
sudo aptitude install fluxbox fluxconf<br />
<br />
<br />
Once installed, you can start Fluxbox with the ''startfluxbox'' command. Remember, if you enjoy working with Fluxbox, you should consider [http://www.fluxbuntu.org Fluxbuntu] as an option.<br />
<br />
安装好以后,你可以用''startfluxbox''命令启动它。记住,如果你很喜欢使用Fluxbox,你可以考虑 [http://www.fluxbuntu.org Fluxbuntu] 作为一种选择。<br />
<br />
== FVWM-Crystal ==<br />
<br />
"FVWM-Crystal" is a complete set of configuration scripts which sit atop of FVWM. FVWM-Crystal has support for integrated access to music players, terminal emulators and system monitors. It boasts some of the finest eye candy available to low-end machines, and is a snap to install.<br />
<br />
"FVWM-Crystal" 是基于FVWM的一些配置脚本。"FVWM-Crystal" 支持对音乐播放器,终端和系统监视的集成访问。它号称是在低配置机器上可用的最漂亮的窗口管理器,并且它可以很快的安装。<br />
<br />
For more information about building an FVWM-Crystal desktop, check out the ["FVWM-Crystal"] page.<br />
<br />
想知道更多关于安装FVWM-Crystal桌面的的信息,请访问["FVWM-Crystal"]。<br />
<br />
== XFCE ==<br />
<br />
XFCE is heavier than any of the systems mentioned so far, but has some added functions as a result. You can try XFCE alone if you like, but if you're keen on an XFCE installation, look into [http://www.xubuntu.org Xubuntu] as an option.<br />
<br />
XFCE 相对于目前已经提到的轻量级窗口管理器来说都更“重”,但是是因为增加了一些应用的。如果你喜欢,你可以单独党旗XFCE,但如果你一定要安装XFCE,请查看 [http://www.xubuntu.org Xubuntu]。<br />
<br />
Install XFCE alone, without Xubuntu, with this command:<br />
<br />
单独安装XFCE,而不是Xubuntu,请用下面的命令:<br />
<br />
sudo aptitude install xfce4<br />
<br />
<br />
It's worth noting that some Edgy users have difficulty starting XFCE from a minimal install. The normal start command for XFCE -- ''startxfce4'' -- doesn't seem to be properly configured in Edgy.<br />
<br />
对于Edgy用户来讲,这是没有用的,从最小化安装启动XFCE是有困难的。XFCE的启动命令-- ''startxfce4'' -- 看起来好像在Edgy上没有配置好。<br />
<br />
If you want the entire Xubuntu package, which includes a full suite of software and a lot of improvements, try this command:<br />
<br />
如果你想要一个完全的包括了一些软件和一些改进的Xubuntu包,请用下面的命令:<br />
<br />
sudo aptitude install xubuntu-desktop<br />
<br />
<br />
That will download quite a large amount of packages; you may want to consider installing Xubuntu fresh, from the [http://www.xubuntu.org/get installation ISO].<br />
<br />
这将要下载很多的软件包;你可能想从 [http://www.xubuntu.org/get installation ISO]干净的安装Xubuntu。<br />
<br />
Note: Xubuntu will use more system resources and may not be optimal for a low memory system with limited disk space, but it is lighter than a standard Ubuntu system.<br />
<br />
''注意:'' Xubuntu 将会使用更多的系统资源,而且可能对于一个硬盘空间和内存都有限的系统来讲不是最好的选择,但是它比标准的Ubuntu系统“轻”。<br />
<br />
= 安装软件 =<br />
<br />
Now that the graphical window manager is set up, it's time to add some necessary and recommended packages. These will add additional functionality and make using the system easier. Additionally, adding a graphical package manager will provide an easy method to manage installed applications and packages.<br />
<br />
现在图形窗口管理器已经设置好了,现在可以安装一些必须或推荐的软件包。这些软件包将会加入一些新的功能,使系统更容易使用。另外,安装一个图形化的软件包管理器将会使管理已安装的应用和软件包变得容易。<br />
<br />
== 登录管理器 ==<br />
<br />
Login managers will assist in choosing a graphical environment and will not require the user to start x.org to get into the window manager.<br />
<br />
登录管理器将帮助我们选择一个图形环境,而且不需要用户启动X.org就可以进入窗口管理器。<br />
<br />
It's important to note that it's not necessary to use a login manager. If you're willing to log in at the command line and start X manually, you can save yourself a lot of system resources -- and the time it takes to load them. That can be a more appealing option on older machines.<br />
<br />
要说明的是登录管理器并不是必须的。如果你喜欢在命令行界面登录然后手动启动X,你能节约很多系统资源和启动它们的时间。对于老的机器来说可能更有吸引力。<br />
<br />
=== GDM ===<br />
<br />
GDM is the Ubuntu default for a login manager. However, GDM has a reputation of being a heavyweight, and on a system that needs as little bulk as possible, you might find it to be a burden. If you've got a decent system, install it using:<br />
<br />
GDM是Ubuntu默认的登陆管理器,它被认为是一个重量级的管理器,在系统中它需要比较多的资源,所以你可能会发现它是一个负担。如果你有一个很好的系统,用以下命令安装它:<br />
<br />
sudo aptitude install gdm<br />
<br />
<br />
=== KDM ===<br />
<br />
KDM is another manager, but has the same heavy reputation as GDM.<br />
<br />
KDM是另一种管理器,它和GDM一样被认为是重量级的管理器。用以下命令安装:<br />
<br />
sudo aptitude install kdm<br />
<br />
<br />
=== XDM ===<br />
<br />
XDM is the login manager for straight X, and while less beautiful than GDM or KDM, it can perform in the same role without fuss.<br />
<br />
XDM是纯粹的X的登录管理器,它没有GDM和KDM漂亮,但它能像GDM和KDM那样很好的工作。用以下命令安装:<br />
<br />
sudo aptitude install xdm<br />
<br />
<br />
== 浏览器 ==<br />
<br />
Now that your system is up and running, it would be a good idea to add an internet browser to surf the web and get some use out of the machine!<br />
<br />
现在你的系统已经在运行了,现在可以安装一个因特网浏览器来上网冲浪。<br />
<br />
=== Firefox ===<br />
<br />
Web browsers come in many flavors, and the most prevalent -- Firefox -- can be laggy on low-memory or slow systems. Even the GNU version of Firefox, [https://wiki.ubuntu.com/IceWeasel Iceweasel] can be a bit heavy on older machines. If you've got at least 128 mb of memory, Firefox should work just fine.<br />
<br />
Firefox是适用于很多Linux发行版,是最流行的浏览器。它对于低内存或者低速的系统来讲,可能有点难以应付。甚至是GNU版本的Firefox,[https://wiki.ubuntu.com/IceWeasel Iceweasel] 对于老的机器来讲也有些“重”。如果你有多于128mb的内存,Firefox可以运行的很好。用以下命令安装它:<br />
<br />
sudo aptitude install firefox <br />
<br />
<br />
=== Dillo ===<br />
<br />
While not nearly as full-featured as Firefox, Dillo has the advantages of a very small footprint and few resource requirements.<br />
<br />
不像Firefox那样具有完全的功能,Dillo的优点是有一个很小的脚印和很小的资源需求。用以下命令安装它:<br />
<br />
sudo aptitude install dillo<br />
<br />
<br />
<br />
== iDesk ==<br />
<br />
Many lightweight desktop systems use [http://idesk.sourceforge.net/ iDesk] as a way of including customized, clickable icons directly on the desktop. iDesk is maintained in the Ubuntu repositories, and is installable from the command line with:<br />
<br />
很多轻量级的桌面系统用[http://idesk.sourceforge.net/ iDesk]来配置和使桌面上的图标可以被直接点击。iDesk包含在Ubuntu的软件仓库中,可以用以下命令安装它:<br />
<br />
sudo aptitude install idesk<br />
<br />
<br />
Consult the [http://idesk.sourceforge.net/ iDesk wiki] for instructions on how to configure and use iDesk. For icon sets, you may wish to search the repositories, or download them from third-party customization sites, such as [http://www.gnome-look.org Gnome-Look.org] and similar locations.<br />
<br />
访问[http://idesk.sourceforge.net/ iDesk wiki]来获取配置和使用iDesk的命令。你可能要搜索软件仓库或从第三方的配置网站上下载图标,像[http://www.gnome-look.org Gnome-Look.org]及相似的网站。<br />
<br />
== 文件管理器 ==<br />
<br />
Lightweight systems have a number of options available for graphical file management. Thunar is the default file manager in Xubuntu and many XFCE-based systems; it is installable alone with this command:<br />
<br />
轻量级的系统有多种可用的图形文件管理器。Thunar是Xubuntu和很多基于XFCE默认的系统,可以使用下面的命令单独安装它:<br />
<br />
sudo aptitude install thunar<br />
<br />
<br />
XFE is an even lighter file manager, intended to mimic the Windows Explorer interface. It has very few dependencies and is very fast.<br />
<br />
XFE是一种更“轻”的文件管理器,它模仿了Windwos Explorer接口。它只依赖很少的软件包而且非常快。用下面命令安装它:<br />
<br />
sudo aptitude install xfe<br />
<br />
<br />
ROX-Filer is another file management program, which makes extensive use of drag-and-drop principles. It does appear to have a large number of dependencies however, which means installing it may entail more external packages than you wish. Install ROX-Filer with this command:<br />
<br />
ROX-Filer也是一种文件管理器,它扩展了drag-and-drop原理。它依赖很多的软件包,这就意味着它需要比你想像的要多的扩展软件包。用下面命令安装它:<br />
<br />
sudo aptitude install rox-filer<br />
<br />
<br />
Nautilus is the default file manager for Ubuntu. It requires some more resources, but it has a lot of useful features. It can manage your desktop, show a wallpaper and desktop icons, which are automatically created for new devices (e.g. USB flash drives). Install Nautilus using this command:<br />
<br />
Nautilus是Ubuntu默认的文件管理器。它需要更多的资源,但它具有很多有用的特性。它能管理你的桌面,显示桌面背景和桌面图标,对于新的设备它们都可以自动创建。用下面命令安装它:<br />
<br />
sudo apt-get install nautilus<br />
<br />
<br />
To use it together with a window manager, execute the following command or add it to your autostart script. For example, use $HOME/.icewm/startup for IceWM.<br />
<br />
要让它和窗口管理器一起工作,需执行以下命令或者把命令加入到自动启动脚本。例如:对于IceWM,加入$HOME/.icewm/startup文件。<br />
<br />
nautilus --no-default-window &amp; <br />
<br />
<br />
Some other popular file managers include<br />
<br />
其它一些浒的文件管理器有:<br />
<br />
* [http://pcmanfm.sourceforge.net/ PCManFM];<br />
* [http://packages.ubuntu.com/edgy/utils/mc Midnight Commander], [http://tuxcmd.sourceforge.net/ Tux Commander] and [http://packages.ubuntu.com/edgy/gnome/gnome-commander Gnome Commander] (which all resemble the old Norton Commander interface);<br />
* [http://packages.ubuntu.com/edgy/x11/xffm4-filemanager xffm4-filemanager];<br />
* [http://step.polymtl.ca/~coyote/xvfilemgr_main.html XVFilemgr];<br />
* and [http://packages.ubuntu.com/edgy/kde/dolphin Dolphin], which is a file manager aimed at KDE and Kubuntu.<br />
<br />
There are many others. Some are available through the repositories; others will require you to download and install them through another source. Experiment with different file managers to see which ones appeal to you.<br />
<br />
这里有很多其它的文件管理器。其中一些可以通过软件仓库安装,一些必须通过源码下载和安装。尝试不同的文件管理器,看哪些能够吸引你。<br />
<br />
== 软件包管理器 ==<br />
<br />
Add a graphical package manager to install, remove and upgrade software packages and to add repositories without using the command line. Synaptic package manager is the standard and can be installed with this command:<br />
<br />
安装一个图形化的软件包管理器来安装,删除和升级软件包和增加软件仓库,可以让你不需要使用命令。新立得软件包管理器是标准的软件包管理工具。可以用下面命令来安装:<br />
<br />
sudo aptitude install synaptic<br />
<br />
<br />
You can use the package manager to add a word processor, such as Abiword, and other productivity software.<br />
<br />
你可以用软件包管理器来安装字处理器,像Abiword,或是其它的软件。<br />
<br />
= 安装一个完整的轻量级系统 =<br />
<br />
Building on the ideas above, here are some complete graphical systems, installable through a single command line. Feel free to mix and match between these options.<br />
<br />
基于以上的想法,我们可以用一条命令来安装一个完整的图形系统。你可以自由的组合这些选项。<br />
<br />
'''Remember: If you are using Dapper or earlier, replace "xorg" with "x-window-system-core"'''<br />
<br />
'''记住:如果你是在用Dapper或是更早的版本,用"x-window-system-core"代替"xorg"。'''<br />
<br />
* IceWM as a window manager, plus GDM, Firefox, Abiword and the Synaptic package manager:<br />
<br />
* IceWM是窗口管理器,加上GDM,Firefox,Abiword和新立得软件包管理器。<br />
<br />
sudo aptitude install gdm xorg xterm icewm menu mozilla-firefox abiword synaptic<br />
<br />
<br />
* XFCE and Firefox, with Synaptic package manager and KDM as the login manager:<br />
<br />
* XFCE,Firefox,再加上新立得软件包管理器和登录管理器KDM。<br />
<br />
sudo aptitude install kdm xorg xfce4 firefox synaptic<br />
<br />
<br />
* Fluxbox with Dillo, and XDM as a login manager:<br />
<br />
* Fluxbox,Dillo,和XDM<br />
<br />
sudo aptitude install fluxbox xorg xdm dillo<br />
<br />
<br />
* Openbox with no login manager, XFE as the file manager and xfce4-terminal as an X terminal, as well as Openbox themes and the Tango icon set:<br />
<br />
Openbox,XFE和xfce4-terminal还有Openbox主题及Tango图标。<br />
<br />
sudo aptitude install openbox obconf openbox-themes xfe xfce4-terminal tango-icon-theme-extras xorg<br />
<br />
<br />
Remember to check the repositories for more ideas on software and applications!<br />
<br />
记得查看软件仓库来获得更多的关于软件和应用的想法。<br />
<br />
= 低配置的选择 =<br />
<br />
For a minimalistic system that does not require as much configuration, you can install the alternate window managers after installing a full K/X/Ubuntu system, thus preinstalling much of the required software but keeping the speed. However, installing a full system does require more system resources.<br />
<br />
对于一个很小的系统并不需要太多的配置,在安装完完整的K/X/Ubuntu系统后你可以安装另一种窗口管理器来替代它,这样就可以安装很多必要软件并且保证运行速度。然而安装一个完整的系统的确需要更多的系统资源。<br />
<br />
= 扩展链接 =<br />
<br />
* [http://www.fluxbuntu.org FluxBuntu]: An Ubuntu variant with Fluxbox as the default window manager. An excellent place to start for a Fluxbox-based system.<br />
* [http://www.ubuntulite.org UbuntuLite]: An early project to build a stripped-down version of Ubuntu aimed at low-end machines. The project also seems to have stalled.<br />
* [http://alecjw.googlepages.com/cubuntu-commandlineubuntu Cubuntu] is not a graphical system; Cubuntu is a full-featured ''command line'' system, suitable for computers that can't handle any of the above options -- such as early Pentium or perhaps even 486-grade machines with as little as 16Mb RAM. And don't be skeptical: Even without a graphic environment, a computer can perform a lot more tasks than you would expect. B)<br />
* [http://www.enlightenment.org/ Enlightenment] is another window manager, but it is still in development and requires additional steps to install. However, it is very lightweight and functional.<br />
* [http://www.thinkgos.com/ gOS] is an operating system based on Ubuntu, uses a customized version of Enlightenment as its window manager, and is able to run on some older systems.<br />
<br />
CategoryDocumentation</div>Convicehttps://wiki.ubuntu.org.cn/index.php?title=%E4%BD%8E%E9%85%8D%E7%BD%AE%E7%94%B5%E8%84%91%E5%AE%89%E8%A3%85&diff=74911低配置电脑安装2007-12-15T14:50:09Z<p>Convice:</p>
<hr />
<div>{{Copyedit translation|from=https://wiki.ubuntu.com/Installation/LowMemorySystems}}<br />
<br />
{{From|https://wiki.ubuntu.com/Installation/LowMemorySystems}}<br />
{{Translator|convice}}<br />
{{Languages|Installation/LowMemorySystems}}<br />
<br />
<br />
<br />
<br />
'''How to install Ubuntu on low memory systems'''<br />
(Pentium III and earlier machines, with 32-192 MB RAM).<br />
<br />
<br />
'''怎样在低内存的系统上安装Ubuntu(Pentium III或更早的,配有32-192MB内存的机器)'''<br />
<br />
<br />
==== 内存需求 ====<br />
<br />
Installing Ubuntu on any system requires at least 32Mb of memory: The text-based installer included with the alternate (install) CDs needs that much space to run reliably. Smaller memory configurations run into problems, and while not impossible, it can be very difficult to complete an installation with less than the minimum RAM requirement.<br />
<br />
在任何系统上安装Ubuntu至少需要32Mb内存:包含在alternate (install) CDs的基于字符的安装程序需要这些空间来可靠运行。更小的内存配置可能会遇到问题,虽然不是不可能,但如果内存小于最低的需求,要完成安装十分困难。<br />
<br />
Depending on the hardware requirements, you can expect a sparse Ubuntu system to boot to a graphical desktop on anywhere from 19Mb to 54Mb. That requirement will fluctuate with the system demands, and increase while the system is active. Swap space is crucial to low-memory machines, so don't be stingy when setting up your system.<br />
<br />
考虑硬件需求,你可以期望一个瘦小的Ubuntu系统在任何内存为19Mb到54Mb的电脑上启动并运行图形桌面。这个需求会随着系统的需求面浮动,当系统活跃的时候会增加。交换分区对于低内存的机器十分重要,所以当设置系统的时候别小器。<br />
<br />
==== 处理器 ====<br />
<br />
There is no practical speed requirement, although a slower processor will take more time to finish installing. Some Pentium machines will take hours to complete, simply because the CPU takes longer to finish. As a general benchmark, a 75Mhz machine finishes a command-line installation of Ubuntu 7.04 in about four hours, and a 120Mhz machine finishes in perhaps an hour less than that. 200Mhz and faster machines will see a still stronger improvement.<br />
<br />
对处理器的速度没有什么实际的需求,然而低速度的处理器将要花更多的时间来完成安装。仅仅是因为CPU花了太多的时间,一些Pentium机将要花费几个小时来完成安装。根据通常的基准测试,一台75Mhz的机器要4个小时来完成基于命令行的Ubuntu 7.04的安装,一台120Mhz的要比它少用一个小时。200Mhz或是更快的机器将会有更强的提升。<br />
<br />
If you do decide to install Ubuntu on a legacy machine, be patient. There will come times when you think the machine has stopped or is hung, when in fact it's still moving, albeit at a very slow rate.<br />
<br />
如果你决定在一台老的机器上安装Ubuntu,要有耐心。可能会出现好几次这样的情况:当你认为机器已经停止或挂起,其实它正在运行,虽然速度很慢。<br />
<br />
==== 磁盘空间需求 ====<br />
<br />
Disk space on an absolutely minimal installation can be reduced to as little as 500Mb. A fresh and clean server installation of Ubuntu 7.04 generally takes only 300Mb, although there will be minor variations on account of hardware differences.<br />
<br />
磁盘空间在绝对最小安装的情况下可以减少到500Mb。虽然对于不同的硬件会有很小的变化,一个干净的Ubuntu 7.04 服务器的安装通常只需要300Mb。<br />
<br />
==== 其它硬件上的考虑 ====<br />
<br />
These instructions assume you will have a working Internet connection and access to the [[UbuntuHelp:Repositories|universe and multiverse repositories]]. Configuring your hardware is not included on this page.<br />
<br />
这份指南假设你有一个可用的互联网连接并且可以访问[[UbuntuHelp:Repositories|universe and multiverse repositories]].它不包括对你硬件的配置。<br />
<br />
== 安装Ubuntu Server ==<br />
<br />
The server version of Ubuntu is a sparse command-line system, without any graphical elements. It's a text-only version of what lies underneath all the advanced graphical elements. It's also the starting point for a minimal installation.<br />
<br />
Ubuntu服务器版是一个精减的命令行系统,没有任何图形元素。它是一个位于高级图形元素之下的纯文本版本。它是我们最小化安装的起点。<br />
<br />
==== Ubuntu 6.06 ====<br />
<br />
To install a base system, boot from the alternate (install) CD and choose "Install a server."<br />
<br />
Follow the prompts to complete installation.<br />
<br />
启动alternate(install)CD,选择"Install a server"。按提示完成安装。<br />
<br />
==== Ubuntu 6.10, 7.04, 或 7.10 ====<br />
<br />
To install a base system, boot from the alternate (install) CD and choose "Install a command-line system."<br />
<br />
Follow the prompts to complete installation.<br />
<br />
启动alternate(install)CD,选择"Install a command-line system."。按提示完成安装。<br />
<br />
=== 增加软件仓库 ===<br />
<br />
==== 更改源 ====<br />
<br />
Once the server install is complete, you will probably want to edit your [[UbuntuHelp:Sources.list|UbuntuHelp:sources.list]] file.<br />
<br />
当安装好Ubuntu服务器版後,你可能需要编辑你的[[UbuntuHelp:Sources.list|UbuntuHelp:sources.list]]文件。<br />
<br />
sudo nano /etc/apt/sources.list<br />
<br />
<br />
Uncomment all official repositories by removing # at the beginning of the line. Do not uncomment the narrative portions of that file; in other words, where you see a double hash mark (##) leave those lines alone.<br />
<br />
删除每一行开始的#号来消除对官方软件仓库的注释。不要消除文件里描述部分的注释,即以两个#号(##)开始的行。<br />
<br />
==== 更新和升级你的系统 ====<br />
<br />
Now you should update your system. Return to the command line and type:<br />
<br />
现在你应该更新你的系统。回到命令行输入:<br />
<br />
sudo aptitude update<br />
<br />
<br />
It's probably also a good idea to upgrade your system at this point. Use this command to upgrade your system:<br />
<br />
这时升级你的系统也是个不错的主意。用这个命令升级你的系统。<br />
<br />
sudo aptitude upgrade (或者, 对于 Gutsy: sudo aptitude safe-upgrade)<br />
<br />
<br />
Now you should be ready to install a window manager and some programs.<br><br />
<br />
现在你已经准备好了来安装窗口管理器和一些程序。<br />
<br />
= 安装图形环境的准备工作 =<br />
<br />
The absolute minimum for any graphical environment is X.org<br />
<br />
最小的图形环境是X.org<br />
<br />
=== 安装X.org ===<br />
<br />
On Ubuntu Edgy (6.10), Feisty (7.04), and Gutsy (7.10), use the command:<br />
<br />
在 Ubuntu Edgy (6.10), Feisty (7.04), 和 Gutsy (7.10), 用下面的命令:<br />
<br />
sudo aptitude install xorg<br />
<br />
<br />
<br />
On Ubuntu Dapper (6.06), use the command:<br />
<br />
在 Ubuntu Dapper (6.06), 用下面的命令:<br />
<br />
sudo aptitude install x-window-system-core<br />
<br />
<br />
<br />
=== 启动X.org ===<br />
<br />
This package gives you the framework for an X session, complete with a variety of drivers and configuration files. Installing ''xorg'' (or ''x-window-system-core'') also triggers the self-configuration sequence, so when it finishes, your hardware should be ready to use, barring any errors or incompatibilities.<br />
<br />
通过一些驱动和配置文件,这个软件包给了你一个X对话的框架。安装“Xorg”或“x-window-system-core”还启动了自动配置队列,安装完成後,如果没有错误或不兼容,你的硬件应该已经可用了。<br />
<br />
It's important to note that installing ''xorg'' or ''x-window-system-core'' really doesn't leave you with much. You can start X at this point with this command:<br />
<br />
<br />
必须注意的是,安装“Xorg”或“x-window-system-core”不会给你很多。这时你可以用以下命令启动X:<br />
<br />
startx<br />
<br />
<br />
but without a window manager and some software, you probably won't get much done.<br />
<br />
但是没有窗口管理器和一些软件,你能做的很少。<br />
<br />
= 安装一个窗口管理器 =<br />
<br />
A window manager controls the placement and appearance of windows within a graphical user interface.<br />
<br />
窗口管理器通过图形用户界面控制窗口的位置有显示。<br />
<br />
There are many lightweight window managers that will give you better access to your system through the X layer. Each one has its own way of managing the desktop, and its own way of configuring themes and menus.<br />
<br />
有很多轻量级的窗口管理器可以使你更好的通过X层访问你的系统。每一种都有它们自己的方式来管理桌面,都有它们自己的方法来配置主题和菜单。<br />
<br />
== Openbox ==<br />
<br />
"Openbox" is one of the lightest, fastest window managers available, but can take some time to configure and set up. It has its origins in Blackbox, but newer versions are complete rewrites of the Blackbox code.<br />
<br />
"Openbox"是一种轻量级的快速的可用的窗口管理器,只是需要一些时间来安装和配置。它源于Blackbox,但是新版的全部重写了Blackbox的代码。<br />
<br />
Install Openbox with this command:<br />
<br />
用以下命令安装Openbox:<br />
<br />
sudo aptitude install openbox obconf openbox-themes<br />
<br />
<br />
These packages and their dependencies will allow you to build and configure an Openbox system, along with a choice of themes and some configuration options.<br />
<br />
这些软件包和它们的依赖软件包让你可以建立和配置Openbox系统,还有可选择的主题和一些配置选项。<br />
<br />
'''Note:''' Edgy (Ubuntu 6.10) users should note a small discrepancy in ''obconf'' that might prevent it from running. You can correct that with these commands ...<br />
<br />
'''注意:'''Edgy (Ubuntu 6.10)用户必须注意"obconf"一个可能会使其无法运行的小问题。你可以用下面的命令解决这个问题。<br />
<br />
cd /usr/lib<br />
sudo ln libobparser.so.0.4.0 libobparser.so.1<br />
sudo ln libobrender.so.0.4.0 libobrender.so.1<br />
sudo ldconfig -X<br />
<br />
<br />
Entering ''obconf'' in an X terminal window should now trigger the obconf dialogue.<br />
<br />
在X终端输入''obconf''将启动obconf对话。<br />
<br />
== IceWM ==<br />
<br />
"IceWM" has a very strong following as a good, clean, fast window manager that resembles a conventional "desktop" in many ways. Among many of its perks are themes that resemble the Windows XP desktop theme -- which may be appealing to you.<br />
<br />
"IceWM"很受欢迎,因为它是一个很好的,干净的,很快的窗口管理器,它还集成了一个可选择的桌面。在它的众多优点中有一个可能会吸引你:它集成了Windows XP桌面主题。<br />
<br />
Install IceWM with this command:<br />
<br />
用下面的命令安装IceWM:<br />
<br />
sudo aptitude install icewm iceconf icepref iceme icewm-themes<br />
<br />
<br />
When finished, you will have a number of configuration and menu options. You can start IceWM with the ''startx'' command.<br />
<br />
安装完成后,你将拥有一些配置和菜单选项。你可以用''startx''命令启动它。<br />
<br />
== Fluxbox ==<br />
<br />
"Fluxbox" is a beautiful, highly configurable desktop system that is easy on system resources without compromising on graphical appeal. Fluxbox is the default window manager for a number of Linux distributions, probably most notable among them being [http://www.damnsmalllinux.org/ Damn Small Linux].<br />
<br />
"Fluxbox" 是一种漂亮的,高度可配置的桌面系统,它对系统资源要求不高却没有损失图形的吸引力。"Fluxbox" 是许多Linux发开版的默认窗口管理器,可能大部分都在[http://www.damnsmalllinux.org/ Damn Small Linux]上。<br />
<br />
Install Fluxbox with this command:<br />
<br />
<br />
用下面的命令安装Fluxbox:<br />
<br />
sudo aptitude install fluxbox fluxconf<br />
<br />
<br />
Once installed, you can start Fluxbox with the ''startfluxbox'' command. Remember, if you enjoy working with Fluxbox, you should consider [http://www.fluxbuntu.org Fluxbuntu] as an option.<br />
<br />
安装好以后,你可以用''startfluxbox''命令启动它。记住,如果你很喜欢使用Fluxbox,你可以考虑 [http://www.fluxbuntu.org Fluxbuntu] 作为一种选择。<br />
<br />
== FVWM-Crystal ==<br />
<br />
"FVWM-Crystal" is a complete set of configuration scripts which sit atop of FVWM. FVWM-Crystal has support for integrated access to music players, terminal emulators and system monitors. It boasts some of the finest eye candy available to low-end machines, and is a snap to install.<br />
<br />
"FVWM-Crystal" 是基于FVWM的一些配置脚本。"FVWM-Crystal" 支持对音乐播放器,终端和系统监视的集成访问。它号称是在低配置机器上可用的最漂亮的窗口管理器,并且它可以很快的安装。<br />
<br />
For more information about building an FVWM-Crystal desktop, check out the ["FVWM-Crystal"] page.<br />
<br />
想知道更多关于安装FVWM-Crystal桌面的的信息,请访问["FVWM-Crystal"]。<br />
<br />
== XFCE ==<br />
<br />
XFCE is heavier than any of the systems mentioned so far, but has some added functions as a result. You can try XFCE alone if you like, but if you're keen on an XFCE installation, look into [http://www.xubuntu.org Xubuntu] as an option.<br />
<br />
XFCE 相对于目前已经提到的轻量级窗口管理器来说都更“重”,但是是因为增加了一些应用的。如果你喜欢,你可以单独党旗XFCE,但如果你一定要安装XFCE,请查看 [http://www.xubuntu.org Xubuntu]。<br />
<br />
Install XFCE alone, without Xubuntu, with this command:<br />
<br />
单独安装XFCE,而不是Xubuntu,请用下面的命令:<br />
<br />
sudo aptitude install xfce4<br />
<br />
<br />
It's worth noting that some Edgy users have difficulty starting XFCE from a minimal install. The normal start command for XFCE -- ''startxfce4'' -- doesn't seem to be properly configured in Edgy.<br />
<br />
对于Edgy用户来讲,这是没有用的,从最小化安装启动XFCE是有困难的。XFCE的启动命令-- ''startxfce4'' -- 看起来好像在Edgy上没有配置好。<br />
<br />
If you want the entire Xubuntu package, which includes a full suite of software and a lot of improvements, try this command:<br />
<br />
如果你想要一个完全的包括了一些软件和一些改进的Xubuntu包,请用下面的命令:<br />
<br />
sudo aptitude install xubuntu-desktop<br />
<br />
<br />
That will download quite a large amount of packages; you may want to consider installing Xubuntu fresh, from the [http://www.xubuntu.org/get installation ISO].<br />
<br />
这将要下载很多的软件包;你可能想从 [http://www.xubuntu.org/get installation ISO]干净的安装Xubuntu。<br />
<br />
Note: Xubuntu will use more system resources and may not be optimal for a low memory system with limited disk space, but it is lighter than a standard Ubuntu system.<br />
<br />
''注意:'' Xubuntu 将会使用更多的系统资源,而且可能对于一个硬盘空间和内存都有限的系统来讲不是最好的选择,但是它比标准的Ubuntu系统“轻”。<br />
<br />
= 安装软件 =<br />
<br />
Now that the graphical window manager is set up, it's time to add some necessary and recommended packages. These will add additional functionality and make using the system easier. Additionally, adding a graphical package manager will provide an easy method to manage installed applications and packages.<br />
<br />
现在图形窗口管理器已经设置好了,现在可以安装一些必须或推荐的软件包。这些软件包将会加入一些新的功能,使系统更容易使用。另外,安装一个图形化的软件包管理器将会使管理已安装的应用和软件包变得容易。<br />
<br />
== 登录管理器 ==<br />
<br />
Login managers will assist in choosing a graphical environment and will not require the user to start x.org to get into the window manager.<br />
<br />
登录管理器将帮助我们选择一个图形环境,而且不需要用户启动X.org就可以进入窗口管理器。<br />
<br />
It's important to note that it's not necessary to use a login manager. If you're willing to log in at the command line and start X manually, you can save yourself a lot of system resources -- and the time it takes to load them. That can be a more appealing option on older machines.<br />
<br />
要说明的是登录管理器并不是必须的。如果你喜欢在命令行界面登录然后手动启动X,你能节约很多系统资源和启动它们的时间。对于老的机器来说可能更有吸引力。<br />
<br />
=== GDM ===<br />
<br />
GDM is the Ubuntu default for a login manager. However, GDM has a reputation of being a heavyweight, and on a system that needs as little bulk as possible, you might find it to be a burden. If you've got a decent system, install it using:<br />
<br />
GDM是Ubuntu默认的登陆管理器,它被认为是一个重量级的管理器,在系统中它需要比较多的资源,所以你可能会发现它是一个负担。如果你有一个很好的系统,用以下命令安装它:<br />
<br />
sudo aptitude install gdm<br />
<br />
<br />
=== KDM ===<br />
<br />
KDM is another manager, but has the same heavy reputation as GDM.<br />
<br />
KDM是另一种管理器,它和GDM一样被认为是重量级的管理器。用以下命令安装:<br />
<br />
sudo aptitude install kdm<br />
<br />
<br />
=== XDM ===<br />
<br />
XDM is the login manager for straight X, and while less beautiful than GDM or KDM, it can perform in the same role without fuss.<br />
<br />
XDM是纯粹的X的登录管理器,它没有GDM和KDM漂亮,但它能像GDM和KDM那样很好的工作。用以下命令安装:<br />
<br />
sudo aptitude install xdm<br />
<br />
<br />
== 浏览器 ==<br />
<br />
Now that your system is up and running, it would be a good idea to add an internet browser to surf the web and get some use out of the machine!<br />
<br />
现在你的系统已经在运行了,现在可以安装一个因特网浏览器来上网冲浪。<br />
<br />
=== Firefox ===<br />
<br />
Web browsers come in many flavors, and the most prevalent -- Firefox -- can be laggy on low-memory or slow systems. Even the GNU version of Firefox, [https://wiki.ubuntu.com/IceWeasel Iceweasel] can be a bit heavy on older machines. If you've got at least 128 mb of memory, Firefox should work just fine.<br />
<br />
Firefox是适用于很多Linux发行版,是最流行的浏览器。它对于低内存或者低速的系统来讲,可能有点难以应付。甚至是GNU版本的Firefox,[https://wiki.ubuntu.com/IceWeasel Iceweasel] 对于老的机器来讲也有些“重”。如果你有多于128mb的内存,Firefox可以运行的很好。用以下命令安装它:<br />
<br />
sudo aptitude install firefox <br />
<br />
<br />
=== Dillo ===<br />
<br />
While not nearly as full-featured as Firefox, Dillo has the advantages of a very small footprint and few resource requirements.<br />
<br />
不像Firefox那样具有完全的功能,Dillo的优点是有一个很小的脚印和很小的资源需求。用以下命令安装它:<br />
<br />
sudo aptitude install dillo<br />
<br />
<br />
<br />
== iDesk ==<br />
<br />
Many lightweight desktop systems use [http://idesk.sourceforge.net/ iDesk] as a way of including customized, clickable icons directly on the desktop. iDesk is maintained in the Ubuntu repositories, and is installable from the command line with:<br />
<br />
很多轻量级的桌面系统用[http://idesk.sourceforge.net/ iDesk]来配置和使桌面上的图标可以被直接点击。iDesk包含在Ubuntu的软件仓库中,可以用以下命令安装它:<br />
<br />
sudo aptitude install idesk<br />
<br />
<br />
Consult the [http://idesk.sourceforge.net/ iDesk wiki] for instructions on how to configure and use iDesk. For icon sets, you may wish to search the repositories, or download them from third-party customization sites, such as [http://www.gnome-look.org Gnome-Look.org] and similar locations.<br />
<br />
访问[http://idesk.sourceforge.net/ iDesk wiki]来获取配置和使用iDesk的命令。你可能要搜索软件仓库或从第三方的配置网站上下载图标,像[http://www.gnome-look.org Gnome-Look.org]及相似的网站。<br />
<br />
== 文件管理器 ==<br />
<br />
Lightweight systems have a number of options available for graphical file management. Thunar is the default file manager in Xubuntu and many XFCE-based systems; it is installable alone with this command:<br />
<br />
轻量级的系统有多种可用的图形文件管理器。Thunar是Xubuntu和很多基于XFCE默认的系统,可以使用下面的命令单独安装它:<br />
<br />
sudo aptitude install thunar<br />
<br />
<br />
XFE is an even lighter file manager, intended to mimic the Windows Explorer interface. It has very few dependencies and is very fast.<br />
<br />
XFE是一种更“轻”的文件管理器,它模仿了Windwos Explorer接口。它只依赖很少的软件包而且非常快。用下面命令安装它:<br />
<br />
sudo aptitude install xfe<br />
<br />
<br />
ROX-Filer is another file management program, which makes extensive use of drag-and-drop principles. It does appear to have a large number of dependencies however, which means installing it may entail more external packages than you wish. Install ROX-Filer with this command:<br />
<br />
ROX-Filer也是一种文件管理器,它扩展了drag-and-drop原理。它依赖很多的软件包,这就意味着它需要比你想像的要多的扩展软件包。用下面命令安装它:<br />
<br />
sudo aptitude install rox-filer<br />
<br />
<br />
Nautilus is the default file manager for Ubuntu. It requires some more resources, but it has a lot of useful features. It can manage your desktop, show a wallpaper and desktop icons, which are automatically created for new devices (e.g. USB flash drives). Install Nautilus using this command:<br />
<br />
Nautilus是Ubuntu默认的文件管理器。它需要更多的资源,但它具有很多有用的特性。它能管理你的桌面,显示桌面背景和桌面图标,对于新的设备它们都可以自动创建。用下面命令安装它:<br />
<br />
sudo apt-get install nautilus<br />
<br />
<br />
To use it together with a window manager, execute the following command or add it to your autostart script. For example, use $HOME/.icewm/startup for IceWM.<br />
<br />
要让它和窗口管理器一起工作,需执行以下命令或者把命令加入到自动启动脚本。例如:对于IceWM,加入$HOME/.icewm/startup文件。<br />
<br />
nautilus --no-default-window &amp; <br />
<br />
<br />
Some other popular file managers include<br />
<br />
其它一些浒的文件管理器有:<br />
<br />
* [http://pcmanfm.sourceforge.net/ PCManFM];<br />
* [http://packages.ubuntu.com/edgy/utils/mc Midnight Commander], [http://tuxcmd.sourceforge.net/ Tux Commander] and [http://packages.ubuntu.com/edgy/gnome/gnome-commander Gnome Commander] (which all resemble the old Norton Commander interface);<br />
* [http://packages.ubuntu.com/edgy/x11/xffm4-filemanager xffm4-filemanager];<br />
* [http://step.polymtl.ca/~coyote/xvfilemgr_main.html XVFilemgr];<br />
* and [http://packages.ubuntu.com/edgy/kde/dolphin Dolphin], which is a file manager aimed at KDE and Kubuntu.<br />
<br />
There are many others. Some are available through the repositories; others will require you to download and install them through another source. Experiment with different file managers to see which ones appeal to you.<br />
<br />
这里有很多其它的文件管理器。其中一些可以通过软件仓库安装,一些必须通过源码下载和安装。尝试不同的文件管理器,看哪些能够吸引你。<br />
<br />
== 软件包管理器 ==<br />
<br />
Add a graphical package manager to install, remove and upgrade software packages and to add repositories without using the command line. Synaptic package manager is the standard and can be installed with this command:<br />
<br />
安装一个图形化的软件包管理器来安装,删除和升级软件包和增加软件仓库,可以让你不需要使用命令。新立得软件包管理器是标准的软件包管理工具。可以用下面命令来安装:<br />
<br />
sudo aptitude install synaptic<br />
<br />
<br />
You can use the package manager to add a word processor, such as Abiword, and other productivity software.<br />
<br />
你可以用软件包管理器来安装字处理器,像Abiword,或是其它的软件。<br />
<br />
= 安装一个完整的轻量级系统 =<br />
<br />
Building on the ideas above, here are some complete graphical systems, installable through a single command line. Feel free to mix and match between these options.<br />
<br />
基于以上的想法,我们可以用一条命令来安装一个完整的图形系统。你可以自由的组合这些选项。<br />
<br />
'''Remember: If you are using Dapper or earlier, replace "xorg" with "x-window-system-core"'''<br />
<br />
'''记住:如果你是在用Dapper或是更早的版本,用"x-window-system-core"代替"xorg"。'''<br />
<br />
* IceWM as a window manager, plus GDM, Firefox, Abiword and the Synaptic package manager:<br />
<br />
* IceWM是窗口管理器,加上GDM,Firefox,Abiword和新立得软件包管理器。<br />
<br />
sudo aptitude install gdm xorg xterm icewm menu mozilla-firefox abiword synaptic<br />
<br />
<br />
* XFCE and Firefox, with Synaptic package manager and KDM as the login manager:<br />
<br />
* XFCE,Firefox,再加上新立得软件包管理器和登录管理器KDM。<br />
<br />
sudo aptitude install kdm xorg xfce4 firefox synaptic<br />
<br />
<br />
* Fluxbox with Dillo, and XDM as a login manager:<br />
<br />
* Fluxbox,Dillo,和XDM<br />
<br />
sudo aptitude install fluxbox xorg xdm dillo<br />
<br />
<br />
* Openbox with no login manager, XFE as the file manager and xfce4-terminal as an X terminal, as well as Openbox themes and the Tango icon set:<br />
<br />
Openbox,XFE和xfce4-terminal还有Openbox主题及Tango图标。<br />
<br />
sudo aptitude install openbox obconf openbox-themes xfe xfce4-terminal tango-icon-theme-extras xorg<br />
<br />
<br />
Remember to check the repositories for more ideas on software and applications!<br />
<br />
记得查看软件仓库来获得更多的关于软件和应用的想法。<br />
<br />
= 低配置的选择 =<br />
<br />
For a minimalistic system that does not require as much configuration, you can install the alternate window managers after installing a full K/X/Ubuntu system, thus preinstalling much of the required software but keeping the speed. However, installing a full system does require more system resources.<br />
<br />
对于一个很小的系统并不需要太多的配置,在安装完完整的K/X/Ubuntu系统后你可以安装另一种窗口管理器来替代它,这样就可以安装很多必要软件并且保证运行速度。然而安装一个完整的系统的确需要更多的系统资源。<br />
<br />
= 扩展链接 =<br />
<br />
* [http://www.fluxbuntu.org FluxBuntu]: An Ubuntu variant with Fluxbox as the default window manager. An excellent place to start for a Fluxbox-based system.<br />
* [http://www.ubuntulite.org UbuntuLite]: An early project to build a stripped-down version of Ubuntu aimed at low-end machines. The project also seems to have stalled.<br />
* [http://alecjw.googlepages.com/cubuntu-commandlineubuntu Cubuntu] is not a graphical system; Cubuntu is a full-featured ''command line'' system, suitable for computers that can't handle any of the above options -- such as early Pentium or perhaps even 486-grade machines with as little as 16Mb RAM. And don't be skeptical: Even without a graphic environment, a computer can perform a lot more tasks than you would expect. B)<br />
* [http://www.enlightenment.org/ Enlightenment] is another window manager, but it is still in development and requires additional steps to install. However, it is very lightweight and functional.<br />
* [http://www.thinkgos.com/ gOS] is an operating system based on Ubuntu, uses a customized version of Enlightenment as its window manager, and is able to run on some older systems.<br />
<br />
CategoryDocumentation</div>Convicehttps://wiki.ubuntu.org.cn/index.php?title=%E4%BD%8E%E9%85%8D%E7%BD%AE%E7%94%B5%E8%84%91%E5%AE%89%E8%A3%85&diff=74910低配置电脑安装2007-12-15T14:49:09Z<p>Convice:</p>
<hr />
<div>{{Copyedit translation|from=https://wiki.ubuntu.com/Installation/LowMemorySystems}}<br />
<br />
{{From|https://wiki.ubuntu.com/Installation/LowMemorySystems}}<br />
{{Translator|convice}}<br />
{{Languages|Installation/LowMemorySystems}}<br />
<br />
<br />
<br />
'''How to install Ubuntu on low memory systems'''<br />
(Pentium III and earlier machines, with 32-192 MB RAM).<br />
<br />
<br><br />
'''怎样在低内存的系统上安装Ubuntu(Pentium III或更早的,配有32-192MB内存的机器)'''<br />
<br />
==== 内存需求 ====<br />
<br />
Installing Ubuntu on any system requires at least 32Mb of memory: The text-based installer included with the alternate (install) CDs needs that much space to run reliably. Smaller memory configurations run into problems, and while not impossible, it can be very difficult to complete an installation with less than the minimum RAM requirement.<br />
<br />
在任何系统上安装Ubuntu至少需要32Mb内存:包含在alternate (install) CDs的基于字符的安装程序需要这些空间来可靠运行。更小的内存配置可能会遇到问题,虽然不是不可能,但如果内存小于最低的需求,要完成安装十分困难。<br />
<br />
Depending on the hardware requirements, you can expect a sparse Ubuntu system to boot to a graphical desktop on anywhere from 19Mb to 54Mb. That requirement will fluctuate with the system demands, and increase while the system is active. Swap space is crucial to low-memory machines, so don't be stingy when setting up your system.<br />
<br />
考虑硬件需求,你可以期望一个瘦小的Ubuntu系统在任何内存为19Mb到54Mb的电脑上启动并运行图形桌面。这个需求会随着系统的需求面浮动,当系统活跃的时候会增加。交换分区对于低内存的机器十分重要,所以当设置系统的时候别小器。<br />
<br />
==== 处理器 ====<br />
<br />
There is no practical speed requirement, although a slower processor will take more time to finish installing. Some Pentium machines will take hours to complete, simply because the CPU takes longer to finish. As a general benchmark, a 75Mhz machine finishes a command-line installation of Ubuntu 7.04 in about four hours, and a 120Mhz machine finishes in perhaps an hour less than that. 200Mhz and faster machines will see a still stronger improvement.<br />
<br />
对处理器的速度没有什么实际的需求,然而低速度的处理器将要花更多的时间来完成安装。仅仅是因为CPU花了太多的时间,一些Pentium机将要花费几个小时来完成安装。根据通常的基准测试,一台75Mhz的机器要4个小时来完成基于命令行的Ubuntu 7.04的安装,一台120Mhz的要比它少用一个小时。200Mhz或是更快的机器将会有更强的提升。<br />
<br />
If you do decide to install Ubuntu on a legacy machine, be patient. There will come times when you think the machine has stopped or is hung, when in fact it's still moving, albeit at a very slow rate.<br />
<br />
如果你决定在一台老的机器上安装Ubuntu,要有耐心。可能会出现好几次这样的情况:当你认为机器已经停止或挂起,其实它正在运行,虽然速度很慢。<br />
<br />
==== 磁盘空间需求 ====<br />
<br />
Disk space on an absolutely minimal installation can be reduced to as little as 500Mb. A fresh and clean server installation of Ubuntu 7.04 generally takes only 300Mb, although there will be minor variations on account of hardware differences.<br />
<br />
磁盘空间在绝对最小安装的情况下可以减少到500Mb。虽然对于不同的硬件会有很小的变化,一个干净的Ubuntu 7.04 服务器的安装通常只需要300Mb。<br />
<br />
==== 其它硬件上的考虑 ====<br />
<br />
These instructions assume you will have a working Internet connection and access to the [[UbuntuHelp:Repositories|universe and multiverse repositories]]. Configuring your hardware is not included on this page.<br />
<br />
这份指南假设你有一个可用的互联网连接并且可以访问[[UbuntuHelp:Repositories|universe and multiverse repositories]].它不包括对你硬件的配置。<br />
<br />
== 安装Ubuntu Server ==<br />
<br />
The server version of Ubuntu is a sparse command-line system, without any graphical elements. It's a text-only version of what lies underneath all the advanced graphical elements. It's also the starting point for a minimal installation.<br />
<br />
Ubuntu服务器版是一个精减的命令行系统,没有任何图形元素。它是一个位于高级图形元素之下的纯文本版本。它是我们最小化安装的起点。<br />
<br />
==== Ubuntu 6.06 ====<br />
<br />
To install a base system, boot from the alternate (install) CD and choose "Install a server."<br />
<br />
Follow the prompts to complete installation.<br />
<br />
启动alternate(install)CD,选择"Install a server"。按提示完成安装。<br />
<br />
==== Ubuntu 6.10, 7.04, 或 7.10 ====<br />
<br />
To install a base system, boot from the alternate (install) CD and choose "Install a command-line system."<br />
<br />
Follow the prompts to complete installation.<br />
<br />
启动alternate(install)CD,选择"Install a command-line system."。按提示完成安装。<br />
<br />
=== 增加软件仓库 ===<br />
<br />
==== 更改源 ====<br />
<br />
Once the server install is complete, you will probably want to edit your [[UbuntuHelp:Sources.list|UbuntuHelp:sources.list]] file.<br />
<br />
当安装好Ubuntu服务器版后,你可能需要编辑你的[[UbuntuHelp:Sources.list|UbuntuHelp:sources.list]]文件。<br />
<br />
sudo nano /etc/apt/sources.list<br />
<br />
Uncomment all official repositories by removing # at the beginning of the line. Do not uncomment the narrative portions of that file; in other words, where you see a double hash mark (##) leave those lines alone.<br />
<br />
删除每一行开始的#号来消除对官方软件仓库的注释。不要消除文件里描述部分的注释,即以两个#号(##)开始的行。<br />
<br />
==== 更新和升级你的系统 ====<br />
<br />
Now you should update your system. Return to the command line and type:<br />
<br />
现在你应该更新你的系统。回到命令行输入:<br />
<br />
sudo aptitude update<br />
<br />
It's probably also a good idea to upgrade your system at this point. Use this command to upgrade your system:<br />
<br />
这时升级你的系统也是个不错的主意。用这个命令升级你的系统。<br />
<br />
sudo aptitude upgrade (或者, 对于 Gutsy: sudo aptitude safe-upgrade)<br />
<br />
Now you should be ready to install a window manager and some programs.<br><br />
<br />
现在你已经准备好了来安装窗口管理器和一些程序。<br />
<br />
= 安装图形环境的准备工作 =<br />
<br />
The absolute minimum for any graphical environment is X.org<br />
<br />
最小的图形环境是X.org<br />
<br />
=== 安装X.org ===<br />
<br />
On Ubuntu Edgy (6.10), Feisty (7.04), and Gutsy (7.10), use the command:<br />
<br />
在 Ubuntu Edgy (6.10), Feisty (7.04), 和 Gutsy (7.10), 用下面的命令:<br />
<br />
sudo aptitude install xorg<br />
<br />
On Ubuntu Dapper (6.06), use the command:<br />
<br />
在 Ubuntu Dapper (6.06), 用下面的命令:<br />
<br />
sudo aptitude install x-window-system-core<br />
<br />
=== 启动X.org ===<br />
<br />
This package gives you the framework for an X session, complete with a variety of drivers and configuration files. Installing ''xorg'' (or ''x-window-system-core'') also triggers the self-configuration sequence, so when it finishes, your hardware should be ready to use, barring any errors or incompatibilities.<br />
<br />
通过一些驱动和配置文件,这个软件包给了你一个X对话的框架。安装“Xorg”或“x-window-system-core”还启动了自动配置队列,安装完成后,如果没有错误或不兼容,你的硬件应该已经可用了。<br />
<br />
It's important to note that installing ''xorg'' or ''x-window-system-core'' really doesn't leave you with much. You can start X at this point with this command:<br />
<br />
必须注意的是,安装“Xorg”或“x-window-system-core”不会给你很多。这时你可以用以下命令启动X:<br />
<br />
startx<br />
<br />
but without a window manager and some software, you probably won't get much done.<br />
<br />
但是没有窗口管理器和一些软件,你能做的很少。<br />
<br />
= 安装一个窗口管理器 =<br />
<br />
A window manager controls the placement and appearance of windows within a graphical user interface.<br />
<br />
窗口管理器通过图形用户界面控制窗口的位置有显示。<br />
<br />
There are many lightweight window managers that will give you better access to your system through the X layer. Each one has its own way of managing the desktop, and its own way of configuring themes and menus.<br />
<br />
有很多轻量级的窗口管理器可以使你更好的通过X层访问你的系统。每一种都有它们自己的方式来管理桌面,都有它们自己的方法来配置主题和菜单。<br />
<br />
== Openbox ==<br />
<br />
"Openbox" is one of the lightest, fastest window managers available, but can take some time to configure and set up. It has its origins in Blackbox, but newer versions are complete rewrites of the Blackbox code.<br />
<br />
"Openbox"是一种轻量级的快速的可用的窗口管理器,只是需要一些时间来安装和配置。它源于Blackbox,但是新版的全部重写了Blackbox的代码。<br />
<br />
Install Openbox with this command:<br />
<br />
用以下命令安装Openbox:<br />
<br />
sudo aptitude install openbox obconf openbox-themes<br />
<br />
These packages and their dependencies will allow you to build and configure an Openbox system, along with a choice of themes and some configuration options.<br />
<br />
这些软件包和它们的依赖软件包让你可以建立和配置Openbox系统,还有可选择的主题和一些配置选项。<br />
<br />
'''Note:''' Edgy (Ubuntu 6.10) users should note a small discrepancy in ''obconf'' that might prevent it from running. You can correct that with these commands ...<br />
<br />
'''注意:'''Edgy (Ubuntu 6.10)用户必须注意"obconf"一个可能会使其无法运行的小问题。你可以用下面的命令解决这个问题。<br />
<br />
cd /usr/lib<br />
sudo ln libobparser.so.0.4.0 libobparser.so.1<br />
sudo ln libobrender.so.0.4.0 libobrender.so.1<br />
sudo ldconfig -X<br />
<br />
Entering ''obconf'' in an X terminal window should now trigger the obconf dialogue.<br />
<br />
在X终端输入''obconf''将启动obconf对话。<br />
<br />
== IceWM ==<br />
<br />
"IceWM" has a very strong following as a good, clean, fast window manager that resembles a conventional "desktop" in many ways. Among many of its perks are themes that resemble the Windows XP desktop theme -- which may be appealing to you.<br />
<br />
"IceWM"很受欢迎,因为它是一个很好的,干净的,很快的窗口管理器,它还集成了一个可选择的桌面。在它的众多优点中有一个可能会吸引你:它集成了Windows XP桌面主题。<br />
<br />
Install IceWM with this command:<br />
<br />
用下面的命令安装IceWM:<br />
<br />
sudo aptitude install icewm iceconf icepref iceme icewm-themes<br />
<br />
When finished, you will have a number of configuration and menu options. You can start IceWM with the ''startx'' command.<br />
<br />
安装完成後,你将拥有一些配置和菜单选项。你可以用''startx''命令启动它。<br />
<br />
== Fluxbox ==<br />
<br />
"Fluxbox" is a beautiful, highly configurable desktop system that is easy on system resources without compromising on graphical appeal. Fluxbox is the default window manager for a number of Linux distributions, probably most notable among them being [http://www.damnsmalllinux.org/ Damn Small Linux].<br />
<br />
"Fluxbox" 是一种漂亮的,高度可配置的桌面系统,它对系统资源要求不高却没有损失图形的吸引力。"Fluxbox" 是许多Linux发开版的默认窗口管理器,可能大部分都在[http://www.damnsmalllinux.org/ Damn Small Linux]上。<br />
<br />
Install Fluxbox with this command:<br />
<br />
用下面的命令安装Fluxbox:<br />
<br />
sudo aptitude install fluxbox fluxconf<br />
<br />
Once installed, you can start Fluxbox with the ''startfluxbox'' command. Remember, if you enjoy working with Fluxbox, you should consider [http://www.fluxbuntu.org Fluxbuntu] as an option.<br />
<br />
安装好以後,你可以用''startfluxbox''命令启动它。记住,如果你很喜欢使用Fluxbox,你可以考虑 [http://www.fluxbuntu.org Fluxbuntu] 作为一种选择。<br />
<br />
== FVWM-Crystal ==<br />
<br />
"FVWM-Crystal" is a complete set of configuration scripts which sit atop of FVWM. FVWM-Crystal has support for integrated access to music players, terminal emulators and system monitors. It boasts some of the finest eye candy available to low-end machines, and is a snap to install.<br />
<br />
"FVWM-Crystal" 是基于FVWM的一些配置脚本。"FVWM-Crystal" 支持对音乐播放器,终端和系统监视的集成访问。它号称是在低配置机器上可用的最漂亮的窗口管理器,并且它可以很快的安装。<br />
<br />
For more information about building an FVWM-Crystal desktop, check out the ["FVWM-Crystal"] page.<br />
<br />
想知道更多关于安装FVWM-Crystal桌面的的信息,请访问["FVWM-Crystal"]。<br />
<br />
== XFCE ==<br />
<br />
XFCE is heavier than any of the systems mentioned so far, but has some added functions as a result. You can try XFCE alone if you like, but if you're keen on an XFCE installation, look into [http://www.xubuntu.org Xubuntu] as an option.<br />
<br />
XFCE 相对于目前已经提到的轻量级窗口管理器来说都更“重”,但是是因为增加了一些应用的。如果你喜欢,你可以单独党旗XFCE,但如果你一定要安装XFCE,请查看 [http://www.xubuntu.org Xubuntu]。<br />
<br />
Install XFCE alone, without Xubuntu, with this command:<br />
<br />
单独安装XFCE,而不是Xubuntu,请用下面的命令:<br />
<br />
sudo aptitude install xfce4<br />
<br />
It's worth noting that some Edgy users have difficulty starting XFCE from a minimal install. The normal start command for XFCE -- ''startxfce4'' -- doesn't seem to be properly configured in Edgy.<br />
<br />
对于Edgy用户来讲,这是没有用的,从最小化安装启动XFCE是有困难的。XFCE的启动命令-- ''startxfce4'' -- 看起来好像在Edgy上没有配置好。<br />
<br />
If you want the entire Xubuntu package, which includes a full suite of software and a lot of improvements, try this command:<br />
<br />
如果你想要一个完全的包括了一些软件和一些改进的Xubuntu包,请用下面的命令:<br />
<br />
sudo aptitude install xubuntu-desktop<br />
<br />
That will download quite a large amount of packages; you may want to consider installing Xubuntu fresh, from the [http://www.xubuntu.org/get installation ISO].<br />
<br />
这将要下载很多的软件包;你可能想从 [http://www.xubuntu.org/get installation ISO]干净的安装Xubuntu。<br />
<br />
Note: Xubuntu will use more system resources and may not be optimal for a low memory system with limited disk space, but it is lighter than a standard Ubuntu system.<br />
<br />
''注意:'' Xubuntu 将会使用更多的系统资源,而且可能对于一个硬盘空间和内存都有限的系统来讲不是最好的选择,但是它比标准的Ubuntu系统“轻”。<br />
<br />
= 安装软件 =<br />
<br />
Now that the graphical window manager is set up, it's time to add some necessary and recommended packages. These will add additional functionality and make using the system easier. Additionally, adding a graphical package manager will provide an easy method to manage installed applications and packages.<br />
<br />
现在图形窗口管理器已经设置好了,现在可以安装一些必须或推荐的软件包。这些软件包将会加入一些新的功能,使系统更容易使用。另外,安装一个图形化的软件包管理器将会使管理已安装的应用和软件包变得容易。<br />
<br />
== 登录管理器 ==<br />
<br />
Login managers will assist in choosing a graphical environment and will not require the user to start x.org to get into the window manager.<br />
<br />
登录管理器将帮助我们选择一个图形环境,而且不需要用户启动X.org就可以进入窗口管理器。<br />
<br />
It's important to note that it's not necessary to use a login manager. If you're willing to log in at the command line and start X manually, you can save yourself a lot of system resources -- and the time it takes to load them. That can be a more appealing option on older machines.<br />
<br />
要说明的是登录管理器并不是必须的。如果你喜欢在命令行界面登录然後手动启动X,你能节约很多系统资源和启动它们的时间。对于老的机器来说可能更有吸引力。<br />
<br />
=== GDM ===<br />
<br />
GDM is the Ubuntu default for a login manager. However, GDM has a reputation of being a heavyweight, and on a system that needs as little bulk as possible, you might find it to be a burden. If you've got a decent system, install it using:<br />
<br />
GDM是Ubuntu默认的登陆管理器,它被认为是一个重量级的管理器,在系统中它需要比较多的资源,所以你可能会发现它是一个负担。如果你有一个很好的系统,用以下命令安装它:<br />
<br />
sudo aptitude install gdm<br />
<br />
=== KDM ===<br />
<br />
KDM is another manager, but has the same heavy reputation as GDM.<br />
<br />
KDM是另一种管理器,它和GDM一样被认为是重量级的管理器。用以下命令安装:<br />
<br />
sudo aptitude install kdm<br />
<br />
=== XDM ===<br />
<br />
XDM is the login manager for straight X, and while less beautiful than GDM or KDM, it can perform in the same role without fuss.<br />
<br />
XDM是纯粹的X的登录管理器,它没有GDM和KDM漂亮,但它能像GDM和KDM那样很好的工作。用以下命令安装:<br />
<br />
sudo aptitude install xdm<br />
<br />
== 浏览器 ==<br />
<br />
Now that your system is up and running, it would be a good idea to add an internet browser to surf the web and get some use out of the machine!<br />
<br />
现在你的系统已经在运行了,现在可以安装一个因特网浏览器来上网冲浪。<br />
<br />
=== Firefox ===<br />
<br />
Web browsers come in many flavors, and the most prevalent -- Firefox -- can be laggy on low-memory or slow systems. Even the GNU version of Firefox, [https://wiki.ubuntu.com/IceWeasel Iceweasel] can be a bit heavy on older machines. If you've got at least 128 mb of memory, Firefox should work just fine.<br />
<br />
Firefox是适用于很多Linux发行版,是最流行的浏览器。它对于低内存或者低速的系统来讲,可能有点难以应付。甚至是GNU版本的Firefox,[https://wiki.ubuntu.com/IceWeasel Iceweasel] 对于老的机器来讲也有些“重”。如果你有多于128mb的内存,Firefox可以运行的很好。用以下命令安装它:<br />
<br />
sudo aptitude install firefox <br />
<br />
=== Dillo ===<br />
<br />
While not nearly as full-featured as Firefox, Dillo has the advantages of a very small footprint and few resource requirements.<br />
<br />
不像Firefox那样具有完全的功能,Dillo的优点是有一个很小的脚印和很小的资源需求。用以下命令安装它:<br />
<br />
sudo aptitude install dillo<br />
<br />
== iDesk ==<br />
<br />
Many lightweight desktop systems use [http://idesk.sourceforge.net/ iDesk] as a way of including customized, clickable icons directly on the desktop. iDesk is maintained in the Ubuntu repositories, and is installable from the command line with:<br />
<br />
很多轻量级的桌面系统用[http://idesk.sourceforge.net/ iDesk]来配置和使桌面上的图标可以被直接点击。iDesk包含在Ubuntu的软件仓库中,可以用以下命令安装它:<br />
<br />
sudo aptitude install idesk<br />
<br />
Consult the [http://idesk.sourceforge.net/ iDesk wiki] for instructions on how to configure and use iDesk. For icon sets, you may wish to search the repositories, or download them from third-party customization sites, such as [http://www.gnome-look.org Gnome-Look.org] and similar locations.<br />
<br />
访问[http://idesk.sourceforge.net/ iDesk wiki]来获取配置和使用iDesk的命令。你可能要搜索软件仓库或从第三方的配置网站上下载图标,像[http://www.gnome-look.org Gnome-Look.org]及相似的网站。<br />
<br />
== 文件管理器 ==<br />
<br />
Lightweight systems have a number of options available for graphical file management. Thunar is the default file manager in Xubuntu and many XFCE-based systems; it is installable alone with this command:<br />
<br />
轻量级的系统有多种可用的图形文件管理器。Thunar是Xubuntu和很多基于XFCE默认的系统,可以使用下面的命令单独安装它:<br />
<br />
sudo aptitude install thunar<br />
<br />
XFE is an even lighter file manager, intended to mimic the Windows Explorer interface. It has very few dependencies and is very fast.<br />
<br />
XFE是一种更“轻”的文件管理器,它模仿了Windwos Explorer接口。它只依赖很少的软件包而且非常快。用下面命令安装它:<br />
<br />
sudo aptitude install xfe<br />
<br />
ROX-Filer is another file management program, which makes extensive use of drag-and-drop principles. It does appear to have a large number of dependencies however, which means installing it may entail more external packages than you wish. Install ROX-Filer with this command:<br />
<br />
ROX-Filer也是一种文件管理器,它扩展了drag-and-drop原理。它依赖很多的软件包,这就意味着它需要比你想像的要多的扩展软件包。用下面命令安装它:<br />
<br />
sudo aptitude install rox-filer<br />
<br />
Nautilus is the default file manager for Ubuntu. It requires some more resources, but it has a lot of useful features. It can manage your desktop, show a wallpaper and desktop icons, which are automatically created for new devices (e.g. USB flash drives). Install Nautilus using this command:<br />
<br />
Nautilus是Ubuntu默认的文件管理器。它需要更多的资源,但它具有很多有用的特性。它能管理你的桌面,显示桌面背景和桌面图标,对于新的设备它们都可以自动创建。用下面命令安装它:<br />
<br />
sudo apt-get install nautilus<br />
<br />
To use it together with a window manager, execute the following command or add it to your autostart script. For example, use $HOME/.icewm/startup for IceWM.<br />
<br />
要让它和窗口管理器一起工作,需执行以下命令或者把命令加入到自动启动脚本。例如:对于IceWM,加入$HOME/.icewm/startup文件。<br />
<br />
nautilus --no-default-window &amp; <br />
<br />
Some other popular file managers include<br />
<br />
其它一些浒的文件管理器有:<br />
<br />
* [http://pcmanfm.sourceforge.net/ PCManFM];<br />
* [http://packages.ubuntu.com/edgy/utils/mc Midnight Commander], [http://tuxcmd.sourceforge.net/ Tux Commander] and [http://packages.ubuntu.com/edgy/gnome/gnome-commander Gnome Commander] (which all resemble the old Norton Commander interface);<br />
* [http://packages.ubuntu.com/edgy/x11/xffm4-filemanager xffm4-filemanager];<br />
* [http://step.polymtl.ca/~coyote/xvfilemgr_main.html XVFilemgr];<br />
* and [http://packages.ubuntu.com/edgy/kde/dolphin Dolphin], which is a file manager aimed at KDE and Kubuntu.<br />
<br />
There are many others. Some are available through the repositories; others will require you to download and install them through another source. Experiment with different file managers to see which ones appeal to you.<br />
<br />
这里有很多其它的文件管理器。其中一些可以通过软件仓库安装,一些必须通过源码下载和安装。尝试不同的文件管理器,看哪些能够吸引你。<br />
<br />
== 软件包管理器 ==<br />
<br />
Add a graphical package manager to install, remove and upgrade software packages and to add repositories without using the command line. Synaptic package manager is the standard and can be installed with this command:<br />
<br />
安装一个图形化的软件包管理器来安装,删除和升级软件包和增加软件仓库,可以让你不需要使用命令。新立得软件包管理器是标准的软件包管理工具。可以用下面命令来安装:<br />
<br />
sudo aptitude install synaptic<br />
<br />
You can use the package manager to add a word processor, such as Abiword, and other productivity software.<br />
<br />
你可以用软件包管理器来安装字处理器,像Abiword,或是其它的软件。<br />
<br />
= 安装一个完整的轻量级系统 =<br />
<br />
Building on the ideas above, here are some complete graphical systems, installable through a single command line. Feel free to mix and match between these options.<br />
<br />
基于以上的想法,我们可以用一条命令来安装一个完整的图形系统。你可以自由的组合这些选项。<br />
<br />
'''Remember: If you are using Dapper or earlier, replace "xorg" with "x-window-system-core"'''<br />
<br />
'''记住:如果你是在用Dapper或是更早的版本,用"x-window-system-core"代替"xorg"。'''<br />
<br />
* IceWM as a window manager, plus GDM, Firefox, Abiword and the Synaptic package manager:<br />
<br />
* IceWM是窗口管理器,加上GDM,Firefox,Abiword和新立得软件包管理器。<br />
<br />
sudo aptitude install gdm xorg xterm icewm menu mozilla-firefox abiword synaptic<br />
<br />
* XFCE and Firefox, with Synaptic package manager and KDM as the login manager:<br />
<br />
* XFCE,Firefox,再加上新立得软件包管理器和登录管理器KDM。<br />
<br />
sudo aptitude install kdm xorg xfce4 firefox synaptic<br />
<br />
* Fluxbox with Dillo, and XDM as a login manager:<br />
<br />
* Fluxbox,Dillo,和XDM<br />
<br />
sudo aptitude install fluxbox xorg xdm dillo<br />
<br />
* Openbox with no login manager, XFE as the file manager and xfce4-terminal as an X terminal, as well as Openbox themes and the Tango icon set:<br />
<br />
Openbox,XFE和xfce4-terminal还有Openbox主题及Tango图标。<br />
<br />
sudo aptitude install openbox obconf openbox-themes xfe xfce4-terminal tango-icon-theme-extras xorg<br />
<br />
Remember to check the repositories for more ideas on software and applications!<br />
<br />
记得查看软件仓库来获得更多的关于软件和应用的想法。<br />
<br />
= 低配置的选择 =<br />
<br />
For a minimalistic system that does not require as much configuration, you can install the alternate window managers after installing a full K/X/Ubuntu system, thus preinstalling much of the required software but keeping the speed. However, installing a full system does require more system resources.<br />
<br />
对于一个很小的系统并不需要太多的配置,在安装完完整的K/X/Ubuntu系统後你可以安装另一种窗口管理器来替代它,这样就可以安装很多必要软件并且保证运行速度。然而安装一个完整的系统的确需要更多的系统资源。<br />
<br />
= 扩展链接 =<br />
<br />
* [http://www.fluxbuntu.org FluxBuntu]: An Ubuntu variant with Fluxbox as the default window manager. An excellent place to start for a Fluxbox-based system.<br />
* [http://www.ubuntulite.org UbuntuLite]: An early project to build a stripped-down version of Ubuntu aimed at low-end machines. The project also seems to have stalled.<br />
* [http://alecjw.googlepages.com/cubuntu-commandlineubuntu Cubuntu] is not a graphical system; Cubuntu is a full-featured ''command line'' system, suitable for computers that can't handle any of the above options -- such as early Pentium or perhaps even 486-grade machines with as little as 16Mb RAM. And don't be skeptical: Even without a graphic environment, a computer can perform a lot more tasks than you would expect. B)<br />
* [http://www.enlightenment.org/ Enlightenment] is another window manager, but it is still in development and requires additional steps to install. However, it is very lightweight and functional.<br />
* [http://www.thinkgos.com/ gOS] is an operating system based on Ubuntu, uses a customized version of Enlightenment as its window manager, and is able to run on some older systems.<br />
<br />
CategoryDocumentation</div>Convicehttps://wiki.ubuntu.org.cn/index.php?title=%E4%BD%8E%E9%85%8D%E7%BD%AE%E7%94%B5%E8%84%91%E5%AE%89%E8%A3%85&diff=74909低配置电脑安装2007-12-15T14:33:13Z<p>Convice:</p>
<hr />
<div>{{Copyedit translation|from=https://wiki.ubuntu.com/Installation/LowMemorySystems}}<br />
<br />
{{From|https://wiki.ubuntu.com/Installation/LowMemorySystems}}<br />
{{Translator|convice}}<br />
{{Languages|Installation/LowMemorySystems}}<br />
<br />
<br />
'''How to install Ubuntu on low memory systems'''<br />
(Pentium III and earlier machines, with 32-192 MB RAM).<br />
<br />
<br />
'''怎样在低内存的系统上安装Ubuntu(Pentium III或更早的,配有32-192MB内存的机器)'''<br />
<br />
==== 内存需求 ====<br />
<br />
Installing Ubuntu on any system requires at least 32Mb of memory: The text-based installer included with the alternate (install) CDs needs that much space to run reliably. Smaller memory configurations run into problems, and while not impossible, it can be very difficult to complete an installation with less than the minimum RAM requirement.<br />
<br />
在任何系统上安装Ubuntu至少需要32Mb内存:包含在alternate (install) CDs的基于字符的安装程序需要这些空间来可靠运行。更小的内存配置可能会遇到问题,虽然不是不可能,但如果内存小于最低的需求,要完成安装十分困难。<br />
<br />
Depending on the hardware requirements, you can expect a sparse Ubuntu system to boot to a graphical desktop on anywhere from 19Mb to 54Mb. That requirement will fluctuate with the system demands, and increase while the system is active. Swap space is crucial to low-memory machines, so don't be stingy when setting up your system.<br />
<br />
考虑硬件需求,你可以期望一个瘦小的Ubuntu系统在任何内存为19Mb到54Mb的电脑上启动并运行图形桌面。这个需求会随着系统的需求面浮动,当系统活跃的时候会增加。交换分区对于低内存的机器十分重要,所以当设置系统的时候别小器。<br />
<br />
==== 处理器 ====<br />
<br />
There is no practical speed requirement, although a slower processor will take more time to finish installing. Some Pentium machines will take hours to complete, simply because the CPU takes longer to finish. As a general benchmark, a 75Mhz machine finishes a command-line installation of Ubuntu 7.04 in about four hours, and a 120Mhz machine finishes in perhaps an hour less than that. 200Mhz and faster machines will see a still stronger improvement.<br />
<br />
对处理器的速度没有什么实际的需求,然而低速度的处理器将要花更多的时间来完成安装。仅仅是因为CPU花了太多的时间,一些Pentium机将要花费几个小时来完成安装。根据通常的基准测试,一台75Mhz的机器要4个小时来完成基于命令行的Ubuntu 7.04的安装,一台120Mhz的要比它少用一个小时。200Mhz或是更快的机器将会有更强的提升。<br />
<br />
If you do decide to install Ubuntu on a legacy machine, be patient. There will come times when you think the machine has stopped or is hung, when in fact it's still moving, albeit at a very slow rate.<br />
<br />
如果你决定在一台老的机器上安装Ubuntu,要有耐心。可能会出现好几次这样的情况:当你认为机器已经停止或挂起,其实它正在运行,虽然速度很慢。<br />
<br />
==== 磁盘空间需求 ====<br />
<br />
Disk space on an absolutely minimal installation can be reduced to as little as 500Mb. A fresh and clean server installation of Ubuntu 7.04 generally takes only 300Mb, although there will be minor variations on account of hardware differences.<br />
<br />
磁盘空间在绝对最小安装的情况下可以减少到500Mb。虽然对于不同的硬件会有很小的变化,一个干净的Ubuntu 7.04 服务器的安装通常只需要300Mb。<br />
<br />
==== 其它硬件上的考虑 ====<br />
<br />
These instructions assume you will have a working Internet connection and access to the [[UbuntuHelp:Repositories|universe and multiverse repositories]]. Configuring your hardware is not included on this page.<br />
<br />
这份指南假设你有一个可用的互联网连接并且可以访问[[UbuntuHelp:Repositories|universe and multiverse repositories]].它不包括对你硬件的配置。<br />
<br />
<br><br />
<br />
== 安装Ubuntu Server ==<br />
<br />
The server version of Ubuntu is a sparse command-line system, without any graphical elements. It's a text-only version of what lies underneath all the advanced graphical elements. It's also the starting point for a minimal installation.<br />
<br />
Ubuntu服务器版是一个精减的命令行系统,没有任何图形元素。它是一个位于高级图形元素之下的纯文本版本。它是我们最小化安装的起点。<br />
<br />
==== Ubuntu 6.06 ====<br />
<br />
To install a base system, boot from the alternate (install) CD and choose "Install a server."<br />
<br />
Follow the prompts to complete installation.<br />
<br />
启动alternate(install)CD,选择"Install a server"。按提示完成安装。<br />
<br />
==== Ubuntu 6.10, 7.04, 或 7.10 ====<br />
<br />
To install a base system, boot from the alternate (install) CD and choose "Install a command-line system."<br />
<br />
Follow the prompts to complete installation.<br />
<br />
启动alternate(install)CD,选择"Install a command-line system."。按提示完成安装。<br />
<br />
=== 增加软件仓库 ===<br />
<br />
==== 更改源 ====<br />
<br />
Once the server install is complete, you will probably want to edit your [[UbuntuHelp:Sources.list|UbuntuHelp:sources.list]] file.<br />
<br />
当安装好Ubuntu服务器版後,你可能需要编辑你的[[UbuntuHelp:Sources.list|UbuntuHelp:sources.list]]文件。<br />
<br />
sudo nano /etc/apt/sources.list<br />
<br />
<br />
Uncomment all official repositories by removing # at the beginning of the line. Do not uncomment the narrative portions of that file; in other words, where you see a double hash mark (##) leave those lines alone.<br />
<br />
删除每一行开始的#号来消除对官方软件仓库的注释。不要消除文件里描述部分的注释,即以两个#号(##)开始的行。<br />
<br />
==== 更新和升级你的系统 ====<br />
<br />
Now you should update your system. Return to the command line and type:<br />
<br />
现在你应该更新你的系统。回到命令行输入:<br />
<br />
sudo aptitude update<br />
<br />
<br />
<br />
It's probably also a good idea to upgrade your system at this point. Use this command to upgrade your system:<br />
<br />
这时升级你的系统也是个不错的主意。用这个命令升级你的系统。<br />
<br />
sudo aptitude upgrade (或者, 对于 Gutsy: sudo aptitude safe-upgrade)<br />
<br />
<br />
<br />
Now you should be ready to install a window manager and some programs.<br><br />
<br />
现在你已经准备好了来安装窗口管理器和一些程序。<br />
<br />
= 安装图形环境的准备工作 =<br />
<br />
The absolute minimum for any graphical environment is X.org<br />
<br />
最小的图形环境是X.org<br />
<br />
=== 安装X.org ===<br />
<br />
On Ubuntu Edgy (6.10), Feisty (7.04), and Gutsy (7.10), use the command:<br />
<br />
在 Ubuntu Edgy (6.10), Feisty (7.04), 和 Gutsy (7.10), 用下面的命令: <br />
<br />
sudo aptitude install xorg<br />
<br />
On Ubuntu Dapper (6.06), use the command:<br />
<br />
在 Ubuntu Dapper (6.06), 用下面的命令: <br />
<br />
sudo aptitude install x-window-system-core<br />
<br />
=== 启动X.org ===<br />
<br />
This package gives you the framework for an X session, complete with a variety of drivers and configuration files. Installing ''xorg'' (or ''x-window-system-core'') also triggers the self-configuration sequence, so when it finishes, your hardware should be ready to use, barring any errors or incompatibilities.<br />
<br />
通过一些驱动和配置文件,这个软件包给了你一个X对话的框架。安装“Xorg”或“x-window-system-core”还启动了自动配置队列,安装完成後,如果没有错误或不兼容,你的硬件应该已经可用了。<br />
<br />
<br><br />
It's important to note that installing ''xorg'' or ''x-window-system-core'' really doesn't leave you with much. You can start X at this point with this command:<br />
<br />
必须注意的是,安装“Xorg”或“x-window-system-core”不会给你很多。这时你可以用以下命令启动X:<br />
<br />
startx<br />
<br />
<br />
but without a window manager and some software, you probably won't get much done.<br />
<br />
但是没有窗口管理器和一些软件,你能做的很少。<br />
<br />
= 安装一个窗口管理器 =<br />
<br />
A window manager controls the placement and appearance of windows within a graphical user interface.<br />
<br />
窗口管理器通过图形用户界面控制窗口的位置有显示。<br />
<br />
There are many lightweight window managers that will give you better access to your system through the X layer. Each one has its own way of managing the desktop, and its own way of configuring themes and menus.<br />
<br />
有很多轻量级的窗口管理器可以使你更好的通过X层访问你的系统。每一种都有它们自己的方式来管理桌面,都有它们自己的方法来配置主题和菜单。<br />
<br />
== Openbox ==<br />
<br />
"Openbox" is one of the lightest, fastest window managers available, but can take some time to configure and set up. It has its origins in Blackbox, but newer versions are complete rewrites of the Blackbox code.<br />
<br />
"Openbox"是一种轻量级的快速的可用的窗口管理器,只是需要一些时间来安装和配置。它源于Blackbox,但是新版的全部重写了Blackbox的代码。<br />
<br />
Install Openbox with this command:<br />
<br />
用以下命令安装Openbox:<br />
<br />
sudo aptitude install openbox obconf openbox-themes<br />
<br />
These packages and their dependencies will allow you to build and configure an Openbox system, along with a choice of themes and some configuration options.<br />
<br />
这些软件包和它们的依赖软件包让你可以建立和配置Openbox系统,还有可选择的主题和一些配置选项。<br />
<br />
'''Note:''' Edgy (Ubuntu 6.10) users should note a small discrepancy in ''obconf'' that might prevent it from running. You can correct that with these commands ...<br />
<br />
'''注意:'''Edgy (Ubuntu 6.10)用户必须注意"obconf"一个可能会使其无法运行的小问题。你可以用下面的命令解决这个问题。<br />
<br />
cd /usr/lib<br />
sudo ln libobparser.so.0.4.0 libobparser.so.1<br />
sudo ln libobrender.so.0.4.0 libobrender.so.1<br />
sudo ldconfig -X<br />
<br />
Entering ''obconf'' in an X terminal window should now trigger the obconf dialogue.<br />
<br />
在X终端输入''obconf''将启动obconf对话。<br />
<br />
== IceWM ==<br />
<br />
"IceWM" has a very strong following as a good, clean, fast window manager that resembles a conventional "desktop" in many ways. Among many of its perks are themes that resemble the Windows XP desktop theme -- which may be appealing to you.<br />
<br />
"IceWM"很受欢迎,因为它是一个很好的,干净的,很快的窗口管理器,它还集成了一个可选择的桌面。在它的众多优点中有一个可能会吸引你:它集成了Windows XP桌面主题。<br />
<br />
Install IceWM with this command:<br />
<br />
用下面的命令安装IceWM:<br />
<br />
sudo aptitude install icewm iceconf icepref iceme icewm-themes<br />
<br />
<br />
<br />
When finished, you will have a number of configuration and menu options. You can start IceWM with the ''startx'' command.<br />
<br />
安装完成后,你将拥有一些配置和菜单选项。你可以用''startx''命令启动它。<br />
<br />
== Fluxbox ==<br />
<br />
"Fluxbox" is a beautiful, highly configurable desktop system that is easy on system resources without compromising on graphical appeal. Fluxbox is the default window manager for a number of Linux distributions, probably most notable among them being [http://www.damnsmalllinux.org/ Damn Small Linux].<br />
<br />
"Fluxbox" 是一种漂亮的,高度可配置的桌面系统,它对系统资源要求不高却没有损失图形的吸引力。"Fluxbox" 是许多Linux发开版的默认窗口管理器,可能大部分都在[http://www.damnsmalllinux.org/ Damn Small Linux]上。<br />
<br />
<br />
<br />
Install Fluxbox with this command:<br />
<br />
<br />
用下面的命令安装Fluxbox:<br />
<br />
sudo aptitude install fluxbox fluxconf<br />
<br />
<br />
<br />
Once installed, you can start Fluxbox with the ''startfluxbox'' command. Remember, if you enjoy working with Fluxbox, you should consider [http://www.fluxbuntu.org Fluxbuntu] as an option.<br />
<br />
安装好以后,你可以用''startfluxbox''命令启动它。记住,如果你很喜欢使用Fluxbox,你可以考虑 [http://www.fluxbuntu.org Fluxbuntu] 作为一种选择。<br />
<br />
== FVWM-Crystal ==<br />
<br />
"FVWM-Crystal" is a complete set of configuration scripts which sit atop of FVWM. FVWM-Crystal has support for integrated access to music players, terminal emulators and system monitors. It boasts some of the finest eye candy available to low-end machines, and is a snap to install.<br />
<br />
"FVWM-Crystal" 是基于FVWM的一些配置脚本。"FVWM-Crystal" 支持对音乐播放器,终端和系统监视的集成访问。它号称是在低配置机器上可用的最漂亮的窗口管理器,并且它可以很快的安装。<br />
<br />
For more information about building an FVWM-Crystal desktop, check out the ["FVWM-Crystal"] page.<br />
<br />
想知道更多关于安装FVWM-Crystal桌面的的信息,请访问["FVWM-Crystal"]。<br />
<br />
== XFCE ==<br />
<br />
XFCE is heavier than any of the systems mentioned so far, but has some added functions as a result. You can try XFCE alone if you like, but if you're keen on an XFCE installation, look into [http://www.xubuntu.org Xubuntu] as an option.<br />
<br />
XFCE 相对于目前已经提到的轻量级窗口管理器来说都更“重”,但是是因为增加了一些应用的。如果你喜欢,你可以单独党旗XFCE,但如果你一定要安装XFCE,请查看 [http://www.xubuntu.org Xubuntu]。<br />
<br />
Install XFCE alone, without Xubuntu, with this command:<br />
<br />
单独安装XFCE,而不是Xubuntu,请用下面的命令:<br />
<br />
sudo aptitude install xfce4<br />
<br />
<br />
<br />
It's worth noting that some Edgy users have difficulty starting XFCE from a minimal install. The normal start command for XFCE -- ''startxfce4'' -- doesn't seem to be properly configured in Edgy.<br />
<br />
对于Edgy用户来讲,这是没有用的,从最小化安装启动XFCE是有困难的。XFCE的启动命令-- ''startxfce4'' -- 看起来好像在Edgy上没有配置好。<br />
<br />
If you want the entire Xubuntu package, which includes a full suite of software and a lot of improvements, try this command:<br />
<br />
如果你想要一个完全的包括了一些软件和一些改进的Xubuntu包,请用下面的命令:<br />
<br />
sudo aptitude install xubuntu-desktop<br />
<br />
<br />
<br />
That will download quite a large amount of packages; you may want to consider installing Xubuntu fresh, from the [http://www.xubuntu.org/get installation ISO].<br />
<br />
这将要下载很多的软件包;你可能想从 [http://www.xubuntu.org/get installation ISO]干净的安装Xubuntu。<br />
<br />
Note: Xubuntu will use more system resources and may not be optimal for a low memory system with limited disk space, but it is lighter than a standard Ubuntu system.<br />
<br />
''注意:'' Xubuntu 将会使用更多的系统资源,而且可能对于一个硬盘空间和内存都有限的系统来讲不是最好的选择,但是它比标准的Ubuntu系统“轻”。<br />
<br />
= 安装软件 =<br />
<br />
Now that the graphical window manager is set up, it's time to add some necessary and recommended packages. These will add additional functionality and make using the system easier. Additionally, adding a graphical package manager will provide an easy method to manage installed applications and packages.<br />
<br />
现在图形窗口管理器已经设置好了,现在可以安装一些必须或推荐的软件包。这些软件包将会加入一些新的功能,使系统更容易使用。另外,安装一个图形化的软件包管理器将会使管理已安装的应用和软件包变得容易。<br />
<br />
== 登录管理器 ==<br />
<br />
Login managers will assist in choosing a graphical environment and will not require the user to start x.org to get into the window manager.<br />
<br />
登录管理器将帮助我们选择一个图形环境,而且不需要用户启动X.org就可以进入窗口管理器。<br />
<br />
It's important to note that it's not necessary to use a login manager. If you're willing to log in at the command line and start X manually, you can save yourself a lot of system resources -- and the time it takes to load them. That can be a more appealing option on older machines.<br />
<br />
要说明的是登录管理器并不是必须的。如果你喜欢在命令行界面登录然后手动启动X,你能节约很多系统资源和启动它们的时间。对于老的机器来说可能更有吸引力。<br />
<br />
=== GDM ===<br />
<br />
GDM is the Ubuntu default for a login manager. However, GDM has a reputation of being a heavyweight, and on a system that needs as little bulk as possible, you might find it to be a burden. If you've got a decent system, install it using:<br />
<br />
GDM是Ubuntu默认的登陆管理器,它被认为是一个重量级的管理器,在系统中它需要比较多的资源,所以你可能会发现它是一个负担。如果你有一个很好的系统,用以下命令安装它:<br />
<br />
sudo aptitude install gdm<br />
<br />
<br />
<br />
=== KDM ===<br />
<br />
KDM is another manager, but has the same heavy reputation as GDM.<br />
<br />
KDM是另一种管理器,它和GDM一样被认为是重量级的管理器。用以下命令安装:<br />
<br />
sudo aptitude install kdm<br />
<br />
<br />
<br />
=== XDM ===<br />
<br />
XDM is the login manager for straight X, and while less beautiful than GDM or KDM, it can perform in the same role without fuss.<br />
<br />
XDM是纯粹的X的登录管理器,它没有GDM和KDM漂亮,但它能像GDM和KDM那样很好的工作。用以下命令安装:<br />
<br />
sudo aptitude install xdm<br />
<br />
<br />
<br />
== 浏览器 ==<br />
<br />
Now that your system is up and running, it would be a good idea to add an internet browser to surf the web and get some use out of the machine!<br />
<br />
现在你的系统已经在运行了,现在可以安装一个因特网浏览器来上网冲浪。<br />
<br />
=== Firefox ===<br />
<br />
Web browsers come in many flavors, and the most prevalent -- Firefox -- can be laggy on low-memory or slow systems. Even the GNU version of Firefox, [https://wiki.ubuntu.com/IceWeasel Iceweasel] can be a bit heavy on older machines. If you've got at least 128 mb of memory, Firefox should work just fine.<br />
<br />
Firefox是适用于很多Linux发行版,是最流行的浏览器。它对于低内存或者低速的系统来讲,可能有点难以应付。甚至是GNU版本的Firefox,[https://wiki.ubuntu.com/IceWeasel Iceweasel] 对于老的机器来讲也有些“重”。如果你有多于128mb的内存,Firefox可以运行的很好。用以下命令安装它:<br />
<br />
sudo aptitude install firefox <br />
<br />
<br />
<br />
=== Dillo ===<br />
<br />
While not nearly as full-featured as Firefox, Dillo has the advantages of a very small footprint and few resource requirements.<br />
<br />
不像Firefox那样具有完全的功能,Dillo的优点是有一个很小的脚印和很小的资源需求。用以下命令安装它:<br />
<br />
sudo aptitude install dillo<br />
<br />
<br />
<br />
== iDesk ==<br />
<br />
Many lightweight desktop systems use [http://idesk.sourceforge.net/ iDesk] as a way of including customized, clickable icons directly on the desktop. iDesk is maintained in the Ubuntu repositories, and is installable from the command line with:<br />
<br />
很多轻量级的桌面系统用[http://idesk.sourceforge.net/ iDesk]来配置和使桌面上的图标可以被直接点击。iDesk包含在Ubuntu的软件仓库中,可以用以下命令安装它:<br />
<br />
sudo aptitude install idesk<br />
<br />
<br />
<br />
Consult the [http://idesk.sourceforge.net/ iDesk wiki] for instructions on how to configure and use iDesk. For icon sets, you may wish to search the repositories, or download them from third-party customization sites, such as [http://www.gnome-look.org Gnome-Look.org] and similar locations.<br />
<br />
访问[http://idesk.sourceforge.net/ iDesk wiki]来获取配置和使用iDesk的命令。你可能要搜索软件仓库或从第三方的配置网站上下载图标,像[http://www.gnome-look.org Gnome-Look.org]及相似的网站。<br />
<br />
== 文件管理器 ==<br />
<br />
Lightweight systems have a number of options available for graphical file management. Thunar is the default file manager in Xubuntu and many XFCE-based systems; it is installable alone with this command:<br />
<br />
轻量级的系统有多种可用的图形文件管理器。Thunar是Xubuntu和很多基于XFCE默认的系统,可以使用下面的命令单独安装它:<br />
<br />
sudo aptitude install thunar<br />
<br />
<br />
<br />
XFE is an even lighter file manager, intended to mimic the Windows Explorer interface. It has very few dependencies and is very fast.<br />
<br />
XFE是一种更“轻”的文件管理器,它模仿了Windwos Explorer接口。它只依赖很少的软件包而且非常快。用下面命令安装它:<br />
<br />
sudo aptitude install xfe<br />
<br />
<br />
<br />
ROX-Filer is another file management program, which makes extensive use of drag-and-drop principles. It does appear to have a large number of dependencies however, which means installing it may entail more external packages than you wish. Install ROX-Filer with this command:<br />
<br />
ROX-Filer也是一种文件管理器,它扩展了drag-and-drop原理。它依赖很多的软件包,这就意味着它需要比你想像的要多的扩展软件包。用下面命令安装它:<br />
<br />
sudo aptitude install rox-filer<br />
<br />
<br />
<br />
Nautilus is the default file manager for Ubuntu. It requires some more resources, but it has a lot of useful features. It can manage your desktop, show a wallpaper and desktop icons, which are automatically created for new devices (e.g. USB flash drives). Install Nautilus using this command:<br />
<br />
Nautilus是Ubuntu默认的文件管理器。它需要更多的资源,但它具有很多有用的特性。它能管理你的桌面,显示桌面背景和桌面图标,对于新的设备它们都可以自动创建。用下面命令安装它:<br />
<br />
sudo apt-get install nautilus<br />
<br />
<br />
<br />
To use it together with a window manager, execute the following command or add it to your autostart script. For example, use $HOME/.icewm/startup for IceWM.<br />
<br />
要让它和窗口管理器一起工作,需执行以下命令或者把命令加入到自动启动脚本。例如:对于IceWM,加入$HOME/.icewm/startup文件。<br />
<br />
nautilus --no-default-window &amp; <br />
<br />
<br />
<br />
Some other popular file managers include<br />
<br />
其它一些浒的文件管理器有:<br />
<br />
* [http://pcmanfm.sourceforge.net/ PCManFM];<br />
* [http://packages.ubuntu.com/edgy/utils/mc Midnight Commander], [http://tuxcmd.sourceforge.net/ Tux Commander] and [http://packages.ubuntu.com/edgy/gnome/gnome-commander Gnome Commander] (which all resemble the old Norton Commander interface);<br />
* [http://packages.ubuntu.com/edgy/x11/xffm4-filemanager xffm4-filemanager];<br />
* [http://step.polymtl.ca/~coyote/xvfilemgr_main.html XVFilemgr];<br />
* and [http://packages.ubuntu.com/edgy/kde/dolphin Dolphin], which is a file manager aimed at KDE and Kubuntu.<br />
<br />
There are many others. Some are available through the repositories; others will require you to download and install them through another source. Experiment with different file managers to see which ones appeal to you.<br />
<br />
这里有很多其它的文件管理器。其中一些可以通过软件仓库安装,一些必须通过源码下载和安装。尝试不同的文件管理器,看哪些能够吸引你。<br />
<br />
== 软件包管理器 ==<br />
<br />
Add a graphical package manager to install, remove and upgrade software packages and to add repositories without using the command line. Synaptic package manager is the standard and can be installed with this command:<br />
<br />
安装一个图形化的软件包管理器来安装,删除和升级软件包和增加软件仓库,可以让你不需要使用命令。新立得软件包管理器是标准的软件包管理工具。可以用下面命令来安装:<br />
<br />
sudo aptitude install synaptic<br />
<br />
<br />
<br />
You can use the package manager to add a word processor, such as Abiword, and other productivity software.<br />
<br />
你可以用软件包管理器来安装字处理器,像Abiword,或是其它的软件。<br />
<br />
= 安装一个完整的轻量级系统 =<br />
<br />
Building on the ideas above, here are some complete graphical systems, installable through a single command line. Feel free to mix and match between these options.<br />
<br />
基于以上的想法,我们可以用一条命令来安装一个完整的图形系统。你可以自由的组合这些选项。<br />
<br />
'''Remember: If you are using Dapper or earlier, replace "xorg" with "x-window-system-core"'''<br />
<br />
'''记住:如果你是在用Dapper或是更早的版本,用"x-window-system-core"代替"xorg"。'''<br />
<br />
* IceWM as a window manager, plus GDM, Firefox, Abiword and the Synaptic package manager:<br />
<br />
* IceWM是窗口管理器,加上GDM,Firefox,Abiword和新立得软件包管理器。<br />
<br />
sudo aptitude install gdm xorg xterm icewm menu mozilla-firefox abiword synaptic<br />
<br />
<br />
<br />
* XFCE and Firefox, with Synaptic package manager and KDM as the login manager:<br />
<br />
* XFCE,Firefox,再加上新立得软件包管理器和登录管理器KDM。<br />
<br />
<br><br />
<br />
sudo aptitude install kdm xorg xfce4 firefox synaptic<br />
<br />
<br />
<br />
* Fluxbox with Dillo, and XDM as a login manager:<br />
<br />
* Fluxbox,Dillo,和XDM<br />
<br />
sudo aptitude install fluxbox xorg xdm dillo<br />
<br />
<br />
<br />
* Openbox with no login manager, XFE as the file manager and xfce4-terminal as an X terminal, as well as Openbox themes and the Tango icon set:<br />
<br />
Openbox,XFE和xfce4-terminal还有Openbox主题及Tango图标。<br />
<br />
sudo aptitude install openbox obconf openbox-themes xfe xfce4-terminal tango-icon-theme-extras xorg<br />
<br />
<br />
<br />
Remember to check the repositories for more ideas on software and applications!<br />
<br />
记得查看软件仓库来获得更多的关于软件和应用的想法。<br />
<br />
= 低配置的选择 =<br />
<br />
For a minimalistic system that does not require as much configuration, you can install the alternate window managers after installing a full K/X/Ubuntu system, thus preinstalling much of the required software but keeping the speed. However, installing a full system does require more system resources.<br />
<br />
对于一个很小的系统并不需要太多的配置,在安装完完整的K/X/Ubuntu系统后你可以安装另一种窗口管理器来替代它,这样就可以安装很多必要软件并且保证运行速度。然而安装一个完整的系统的确需要更多的系统资源。<br />
<br />
= 扩展链接 =<br />
<br />
* [http://www.fluxbuntu.org FluxBuntu]: An Ubuntu variant with Fluxbox as the default window manager. An excellent place to start for a Fluxbox-based system.<br />
* [http://www.ubuntulite.org UbuntuLite]: An early project to build a stripped-down version of Ubuntu aimed at low-end machines. The project also seems to have stalled.<br />
* [http://alecjw.googlepages.com/cubuntu-commandlineubuntu Cubuntu] is not a graphical system; Cubuntu is a full-featured ''command line'' system, suitable for computers that can't handle any of the above options -- such as early Pentium or perhaps even 486-grade machines with as little as 16Mb RAM. And don't be skeptical: Even without a graphic environment, a computer can perform a lot more tasks than you would expect. B)<br />
* [http://www.enlightenment.org/ Enlightenment] is another window manager, but it is still in development and requires additional steps to install. However, it is very lightweight and functional.<br />
* [http://www.thinkgos.com/ gOS] is an operating system based on Ubuntu, uses a customized version of Enlightenment as its window manager, and is able to run on some older systems.<br />
<br />
<br><br />
<br />
CategoryDocumentation</div>Convicehttps://wiki.ubuntu.org.cn/index.php?title=%E4%BD%8E%E9%85%8D%E7%BD%AE%E7%94%B5%E8%84%91%E5%AE%89%E8%A3%85&diff=74908低配置电脑安装2007-12-15T14:27:16Z<p>Convice:</p>
<hr />
<div>{{Copyedit translation|from=https://wiki.ubuntu.com/Installation/LowMemorySystems}}<br />
<br />
{{From|https://wiki.ubuntu.com/Installation/LowMemorySystems}}<br />
{{Translator|convice}}<br />
{{Languages|Installation/LowMemorySystems}}<br />
<br />
<br />
'''How to install Ubuntu on low memory systems'''<br />
(Pentium III and earlier machines, with 32-192 MB RAM).<br />
<br />
<br />
'''怎样在低内存的系统上安装Ubuntu(Pentium III或更早的,配有32-192MB内存的机器)'''<br />
<br />
==== 内存需求 ====<br />
<br />
Installing Ubuntu on any system requires at least 32Mb of memory: The text-based installer included with the alternate (install) CDs needs that much space to run reliably. Smaller memory configurations run into problems, and while not impossible, it can be very difficult to complete an installation with less than the minimum RAM requirement.<br />
<br />
在任何系统上安装Ubuntu至少需要32Mb内存:包含在alternate (install) CDs的基于字符的安装程序需要这些空间来可靠运行。更小的内存配置可能会遇到问题,虽然不是不可能,但如果内存小于最低的需求,要完成安装十分困难。<br />
<br />
Depending on the hardware requirements, you can expect a sparse Ubuntu system to boot to a graphical desktop on anywhere from 19Mb to 54Mb. That requirement will fluctuate with the system demands, and increase while the system is active. Swap space is crucial to low-memory machines, so don't be stingy when setting up your system.<br />
<br />
考虑硬件需求,你可以期望一个瘦小的Ubuntu系统在任何内存为19Mb到54Mb的电脑上启动并运行图形桌面。这个需求会随着系统的需求面浮动,当系统活跃的时候会增加。交换分区对于低内存的机器十分重要,所以当设置系统的时候别小器。<br />
<br />
==== 处理器 ====<br />
<br />
There is no practical speed requirement, although a slower processor will take more time to finish installing. Some Pentium machines will take hours to complete, simply because the CPU takes longer to finish. As a general benchmark, a 75Mhz machine finishes a command-line installation of Ubuntu 7.04 in about four hours, and a 120Mhz machine finishes in perhaps an hour less than that. 200Mhz and faster machines will see a still stronger improvement.<br />
<br />
对处理器的速度没有什么实际的需求,然而低速度的处理器将要花更多的时间来完成安装。仅仅是因为CPU花了太多的时间,一些Pentium机将要花费几个小时来完成安装。根据通常的基准测试,一台75Mhz的机器要4个小时来完成基于命令行的Ubuntu 7.04的安装,一台120Mhz的要比它少用一个小时。200Mhz或是更快的机器将会有更强的提升。<br />
<br />
If you do decide to install Ubuntu on a legacy machine, be patient. There will come times when you think the machine has stopped or is hung, when in fact it's still moving, albeit at a very slow rate.<br />
<br />
如果你决定在一台老的机器上安装Ubuntu,要有耐心。可能会出现好几次这样的情况:当你认为机器已经停止或挂起,其实它正在运行,虽然速度很慢。<br />
<br />
==== 磁盘空间需求 ====<br />
<br />
Disk space on an absolutely minimal installation can be reduced to as little as 500Mb. A fresh and clean server installation of Ubuntu 7.04 generally takes only 300Mb, although there will be minor variations on account of hardware differences.<br />
<br />
磁盘空间在绝对最小安装的情况下可以减少到500Mb。虽然对于不同的硬件会有很小的变化,一个干净的Ubuntu 7.04 服务器的安装通常只需要300Mb。<br />
<br />
==== 其它硬件上的考虑 ====<br />
<br />
These instructions assume you will have a working Internet connection and access to the [[UbuntuHelp:Repositories|universe and multiverse repositories]]. Configuring your hardware is not included on this page.<br />
<br />
这份指南假设你有一个可用的互联网连接并且可以访问[[UbuntuHelp:Repositories|universe and multiverse repositories]].它不包括对你硬件的配置。<br />
<br />
<br><br />
<br />
== 安装Ubuntu Server ==<br />
<br />
The server version of Ubuntu is a sparse command-line system, without any graphical elements. It's a text-only version of what lies underneath all the advanced graphical elements. It's also the starting point for a minimal installation.<br />
<br />
Ubuntu服务器版是一个精减的命令行系统,没有任何图形元素。它是一个位于高级图形元素之下的纯文本版本。它是我们最小化安装的起点。<br />
<br />
==== Ubuntu 6.06 ====<br />
<br />
To install a base system, boot from the alternate (install) CD and choose "Install a server."<br />
<br />
Follow the prompts to complete installation.<br />
<br />
启动alternate(install)CD,选择"Install a server"。按提示完成安装。<br />
<br />
==== Ubuntu 6.10, 7.04, 或 7.10 ====<br />
<br />
To install a base system, boot from the alternate (install) CD and choose "Install a command-line system."<br />
<br />
Follow the prompts to complete installation.<br />
<br />
启动alternate(install)CD,选择"Install a command-line system."。按提示完成安装。<br />
<br />
=== 增加软件仓库 ===<br />
<br />
==== 更改源 ====<br />
<br />
Once the server install is complete, you will probably want to edit your [[UbuntuHelp:Sources.list|UbuntuHelp:sources.list]] file.<br />
<br />
当安装好Ubuntu服务器版後,你可能需要编辑你的[[UbuntuHelp:Sources.list|UbuntuHelp:sources.list]]文件。<br />
<br />
sudo nano /etc/apt/sources.list<br />
<br />
<br />
Uncomment all official repositories by removing # at the beginning of the line. Do not uncomment the narrative portions of that file; in other words, where you see a double hash mark (##) leave those lines alone.<br />
<br />
删除每一行开始的#号来消除对官方软件仓库的注释。不要消除文件里描述部分的注释,即以两个#号(##)开始的行。<br />
<br />
==== 更新和升级你的系统 ====<br />
<br />
Now you should update your system. Return to the command line and type:<br />
<br />
现在你应该更新你的系统。回到命令行输入:<br />
<br />
sudo aptitude update<br />
<br />
<br />
<br />
It's probably also a good idea to upgrade your system at this point. Use this command to upgrade your system:<br />
<br />
这时升级你的系统也是个不错的主意。用这个命令升级你的系统。<br />
<br />
sudo aptitude upgrade (或者, 对于 Gutsy: sudo aptitude safe-upgrade)<br />
<br />
<br />
<br />
Now you should be ready to install a window manager and some programs.<br><br />
<br />
现在你已经准备好了来安装窗口管理器和一些程序。<br />
<br />
= 安装图形环境的准备工作 =<br />
<br />
The absolute minimum for any graphical environment is X.org<br />
<br />
最小的图形环境是X.org<br />
<br />
=== 安装X.org ===<br />
<br />
On Ubuntu Edgy (6.10), Feisty (7.04), and Gutsy (7.10), use the command:<br />
<br />
在 Ubuntu Edgy (6.10), Feisty (7.04), 和 Gutsy (7.10), 用下面的命令: <br />
<br />
sudo aptitude install xorg<br />
<br />
On Ubuntu Dapper (6.06), use the command:<br />
<br />
在 Ubuntu Dapper (6.06), 用下面的命令: <br />
<br />
sudo aptitude install x-window-system-core<br />
<br />
=== 启动X.org ===<br />
<br />
This package gives you the framework for an X session, complete with a variety of drivers and configuration files. Installing ''xorg'' (or ''x-window-system-core'') also triggers the self-configuration sequence, so when it finishes, your hardware should be ready to use, barring any errors or incompatibilities.<br />
<br />
通过一些驱动和配置文件,这个软件包给了你一个X对话的框架。安装“Xorg”或“x-window-system-core”还启动了自动配置队列,安装完成後,如果没有错误或不兼容,你的硬件应该已经可用了。<br />
<br />
<br><br />
It's important to note that installing ''xorg'' or ''x-window-system-core'' really doesn't leave you with much. You can start X at this point with this command:<br />
<br />
必须注意的是,安装“Xorg”或“x-window-system-core”不会给你很多。这时你可以用以下命令启动X:<br />
<br />
startx<br />
<br />
<br />
but without a window manager and some software, you probably won't get much done.<br />
<br />
但是没有窗口管理器和一些软件,你能做的很少。<br />
<br />
= 安装一个窗口管理器 =<br />
<br />
A window manager controls the placement and appearance of windows within a graphical user interface.<br />
<br />
窗口管理器通过图形用户界面控制窗口的位置有显示。<br />
<br />
There are many lightweight window managers that will give you better access to your system through the X layer. Each one has its own way of managing the desktop, and its own way of configuring themes and menus.<br />
<br />
有很多轻量级的窗口管理器可以使你更好的通过X层访问你的系统。每一种都有它们自己的方式来管理桌面,都有它们自己的方法来配置主题和菜单。<br />
<br />
== Openbox ==<br />
<br />
"Openbox" is one of the lightest, fastest window managers available, but can take some time to configure and set up. It has its origins in Blackbox, but newer versions are complete rewrites of the Blackbox code.<br />
<br />
"Openbox"是一种轻量级的快速的可用的窗口管理器,只是需要一些时间来安装和配置。它源于Blackbox,但是新版的全部重写了Blackbox的代码。<br />
<br />
Install Openbox with this command:<br />
<br />
用以下命令安装Openbox:<br />
<br />
&nbsp;sudo aptitude install openbox obconf openbox-themes<br />
<br />
These packages and their dependencies will allow you to build and configure an Openbox system, along with a choice of themes and some configuration options.<br />
<br />
这些软件包和它们的依赖软件包让你可以建立和配置Openbox系统,还有可选择的主题和一些配置选项。<br />
<br />
'''Note:''' Edgy (Ubuntu 6.10) users should note a small discrepancy in ''obconf'' that might prevent it from running. You can correct that with these commands ...<br />
<br />
'''注意:'''Edgy (Ubuntu 6.10)用户必须注意"obconf"一个可能会使其无法运行的小问题。你可以用下面的命令解决这个问题。<br />
<br />
cd /usr/lib<br />
sudo ln libobparser.so.0.4.0 libobparser.so.1<br />
sudo ln libobrender.so.0.4.0 libobrender.so.1<br />
sudo ldconfig -X<br />
<br />
<br />
Entering ''obconf'' in an X terminal window should now trigger the obconf dialogue.<br />
<br />
在X终端输入''obconf''将启动obconf对话。<br />
<br />
== IceWM ==<br />
<br />
"IceWM" has a very strong following as a good, clean, fast window manager that resembles a conventional "desktop" in many ways. Among many of its perks are themes that resemble the Windows XP desktop theme -- which may be appealing to you.<br />
<br />
"IceWM"很受欢迎,因为它是一个很好的,干净的,很快的窗口管理器,它还集成了一个可选择的桌面。在它的众多优点中有一个可能会吸引你:它集成了Windows XP桌面主题。<br />
<br />
Install IceWM with this command:<br />
<br />
用下面的命令安装IceWM:<br />
<br />
sudo aptitude install icewm iceconf icepref iceme icewm-themes<br />
<br />
<br />
<br />
When finished, you will have a number of configuration and menu options. You can start IceWM with the ''startx'' command.<br />
<br />
安装完成后,你将拥有一些配置和菜单选项。你可以用''startx''命令启动它。<br />
<br />
== Fluxbox ==<br />
<br />
"Fluxbox" is a beautiful, highly configurable desktop system that is easy on system resources without compromising on graphical appeal. Fluxbox is the default window manager for a number of Linux distributions, probably most notable among them being [http://www.damnsmalllinux.org/ Damn Small Linux].<br />
<br />
"Fluxbox" 是一种漂亮的,高度可配置的桌面系统,它对系统资源要求不高却没有损失图形的吸引力。"Fluxbox" 是许多Linux发开版的默认窗口管理器,可能大部分都在[http://www.damnsmalllinux.org/ Damn Small Linux]上。<br />
<br />
<br />
<br />
Install Fluxbox with this command:<br />
<br />
<br />
用下面的命令安装Fluxbox:<br />
<br />
sudo aptitude install fluxbox fluxconf<br />
<br />
<br />
<br />
Once installed, you can start Fluxbox with the ''startfluxbox'' command. Remember, if you enjoy working with Fluxbox, you should consider [http://www.fluxbuntu.org Fluxbuntu] as an option.<br />
<br />
安装好以后,你可以用''startfluxbox''命令启动它。记住,如果你很喜欢使用Fluxbox,你可以考虑 [http://www.fluxbuntu.org Fluxbuntu] 作为一种选择。<br />
<br />
== FVWM-Crystal ==<br />
<br />
"FVWM-Crystal" is a complete set of configuration scripts which sit atop of FVWM. FVWM-Crystal has support for integrated access to music players, terminal emulators and system monitors. It boasts some of the finest eye candy available to low-end machines, and is a snap to install.<br />
<br />
"FVWM-Crystal" 是基于FVWM的一些配置脚本。"FVWM-Crystal" 支持对音乐播放器,终端和系统监视的集成访问。它号称是在低配置机器上可用的最漂亮的窗口管理器,并且它可以很快的安装。<br />
<br />
For more information about building an FVWM-Crystal desktop, check out the ["FVWM-Crystal"] page.<br />
<br />
想知道更多关于安装FVWM-Crystal桌面的的信息,请访问["FVWM-Crystal"]。<br />
<br />
== XFCE ==<br />
<br />
XFCE is heavier than any of the systems mentioned so far, but has some added functions as a result. You can try XFCE alone if you like, but if you're keen on an XFCE installation, look into [http://www.xubuntu.org Xubuntu] as an option.<br />
<br />
XFCE 相对于目前已经提到的轻量级窗口管理器来说都更“重”,但是是因为增加了一些应用的。如果你喜欢,你可以单独党旗XFCE,但如果你一定要安装XFCE,请查看 [http://www.xubuntu.org Xubuntu]。<br />
<br />
Install XFCE alone, without Xubuntu, with this command:<br />
<br />
单独安装XFCE,而不是Xubuntu,请用下面的命令:<br />
<br />
sudo aptitude install xfce4<br />
<br />
<br />
<br />
It's worth noting that some Edgy users have difficulty starting XFCE from a minimal install. The normal start command for XFCE -- ''startxfce4'' -- doesn't seem to be properly configured in Edgy.<br />
<br />
对于Edgy用户来讲,这是没有用的,从最小化安装启动XFCE是有困难的。XFCE的启动命令-- ''startxfce4'' -- 看起来好像在Edgy上没有配置好。<br />
<br />
If you want the entire Xubuntu package, which includes a full suite of software and a lot of improvements, try this command:<br />
<br />
如果你想要一个完全的包括了一些软件和一些改进的Xubuntu包,请用下面的命令:<br />
<br />
sudo aptitude install xubuntu-desktop<br />
<br />
<br />
<br />
That will download quite a large amount of packages; you may want to consider installing Xubuntu fresh, from the [http://www.xubuntu.org/get installation ISO].<br />
<br />
这将要下载很多的软件包;你可能想从 [http://www.xubuntu.org/get installation ISO]干净的安装Xubuntu。<br />
<br />
Note: Xubuntu will use more system resources and may not be optimal for a low memory system with limited disk space, but it is lighter than a standard Ubuntu system.<br />
<br />
''注意:'' Xubuntu 将会使用更多的系统资源,而且可能对于一个硬盘空间和内存都有限的系统来讲不是最好的选择,但是它比标准的Ubuntu系统“轻”。<br />
<br />
= 安装软件 =<br />
<br />
Now that the graphical window manager is set up, it's time to add some necessary and recommended packages. These will add additional functionality and make using the system easier. Additionally, adding a graphical package manager will provide an easy method to manage installed applications and packages.<br />
<br />
现在图形窗口管理器已经设置好了,现在可以安装一些必须或推荐的软件包。这些软件包将会加入一些新的功能,使系统更容易使用。另外,安装一个图形化的软件包管理器将会使管理已安装的应用和软件包变得容易。<br />
<br />
== 登录管理器 ==<br />
<br />
Login managers will assist in choosing a graphical environment and will not require the user to start x.org to get into the window manager.<br />
<br />
登录管理器将帮助我们选择一个图形环境,而且不需要用户启动X.org就可以进入窗口管理器。<br />
<br />
It's important to note that it's not necessary to use a login manager. If you're willing to log in at the command line and start X manually, you can save yourself a lot of system resources -- and the time it takes to load them. That can be a more appealing option on older machines.<br />
<br />
要说明的是登录管理器并不是必须的。如果你喜欢在命令行界面登录然后手动启动X,你能节约很多系统资源和启动它们的时间。对于老的机器来说可能更有吸引力。<br />
<br />
=== GDM ===<br />
<br />
GDM is the Ubuntu default for a login manager. However, GDM has a reputation of being a heavyweight, and on a system that needs as little bulk as possible, you might find it to be a burden. If you've got a decent system, install it using:<br />
<br />
GDM是Ubuntu默认的登陆管理器,它被认为是一个重量级的管理器,在系统中它需要比较多的资源,所以你可能会发现它是一个负担。如果你有一个很好的系统,用以下命令安装它:<br />
<br />
sudo aptitude install gdm<br />
<br />
<br />
<br />
=== KDM ===<br />
<br />
KDM is another manager, but has the same heavy reputation as GDM.<br />
<br />
KDM是另一种管理器,它和GDM一样被认为是重量级的管理器。用以下命令安装:<br />
<br />
sudo aptitude install kdm<br />
<br />
<br />
<br />
=== XDM ===<br />
<br />
XDM is the login manager for straight X, and while less beautiful than GDM or KDM, it can perform in the same role without fuss.<br />
<br />
XDM是纯粹的X的登录管理器,它没有GDM和KDM漂亮,但它能像GDM和KDM那样很好的工作。用以下命令安装:<br />
<br />
sudo aptitude install xdm<br />
<br />
<br />
<br />
== 浏览器 ==<br />
<br />
Now that your system is up and running, it would be a good idea to add an internet browser to surf the web and get some use out of the machine!<br />
<br />
现在你的系统已经在运行了,现在可以安装一个因特网浏览器来上网冲浪。<br />
<br />
=== Firefox ===<br />
<br />
Web browsers come in many flavors, and the most prevalent -- Firefox -- can be laggy on low-memory or slow systems. Even the GNU version of Firefox, [https://wiki.ubuntu.com/IceWeasel Iceweasel] can be a bit heavy on older machines. If you've got at least 128 mb of memory, Firefox should work just fine.<br />
<br />
Firefox是适用于很多Linux发行版,是最流行的浏览器。它对于低内存或者低速的系统来讲,可能有点难以应付。甚至是GNU版本的Firefox,[https://wiki.ubuntu.com/IceWeasel Iceweasel] 对于老的机器来讲也有些“重”。如果你有多于128mb的内存,Firefox可以运行的很好。用以下命令安装它:<br />
<br />
sudo aptitude install firefox <br />
<br />
<br />
<br />
=== Dillo ===<br />
<br />
While not nearly as full-featured as Firefox, Dillo has the advantages of a very small footprint and few resource requirements.<br />
<br />
不像Firefox那样具有完全的功能,Dillo的优点是有一个很小的脚印和很小的资源需求。用以下命令安装它:<br />
<br />
sudo aptitude install dillo<br />
<br />
<br />
<br />
== iDesk ==<br />
<br />
Many lightweight desktop systems use [http://idesk.sourceforge.net/ iDesk] as a way of including customized, clickable icons directly on the desktop. iDesk is maintained in the Ubuntu repositories, and is installable from the command line with:<br />
<br />
很多轻量级的桌面系统用[http://idesk.sourceforge.net/ iDesk]来配置和使桌面上的图标可以被直接点击。iDesk包含在Ubuntu的软件仓库中,可以用以下命令安装它:<br />
<br />
sudo aptitude install idesk<br />
<br />
<br />
<br />
Consult the [http://idesk.sourceforge.net/ iDesk wiki] for instructions on how to configure and use iDesk. For icon sets, you may wish to search the repositories, or download them from third-party customization sites, such as [http://www.gnome-look.org Gnome-Look.org] and similar locations.<br />
<br />
访问[http://idesk.sourceforge.net/ iDesk wiki]来获取配置和使用iDesk的命令。你可能要搜索软件仓库或从第三方的配置网站上下载图标,像[http://www.gnome-look.org Gnome-Look.org]及相似的网站。<br />
<br />
== 文件管理器 ==<br />
<br />
Lightweight systems have a number of options available for graphical file management. Thunar is the default file manager in Xubuntu and many XFCE-based systems; it is installable alone with this command:<br />
<br />
轻量级的系统有多种可用的图形文件管理器。Thunar是Xubuntu和很多基于XFCE默认的系统,可以使用下面的命令单独安装它:<br />
<br />
sudo aptitude install thunar<br />
<br />
<br />
<br />
XFE is an even lighter file manager, intended to mimic the Windows Explorer interface. It has very few dependencies and is very fast.<br />
<br />
XFE是一种更“轻”的文件管理器,它模仿了Windwos Explorer接口。它只依赖很少的软件包而且非常快。用下面命令安装它:<br />
<br />
sudo aptitude install xfe<br />
<br />
<br />
<br />
ROX-Filer is another file management program, which makes extensive use of drag-and-drop principles. It does appear to have a large number of dependencies however, which means installing it may entail more external packages than you wish. Install ROX-Filer with this command:<br />
<br />
ROX-Filer也是一种文件管理器,它扩展了drag-and-drop原理。它依赖很多的软件包,这就意味着它需要比你想像的要多的扩展软件包。用下面命令安装它:<br />
<br />
sudo aptitude install rox-filer<br />
<br />
<br />
<br />
Nautilus is the default file manager for Ubuntu. It requires some more resources, but it has a lot of useful features. It can manage your desktop, show a wallpaper and desktop icons, which are automatically created for new devices (e.g. USB flash drives). Install Nautilus using this command:<br />
<br />
Nautilus是Ubuntu默认的文件管理器。它需要更多的资源,但它具有很多有用的特性。它能管理你的桌面,显示桌面背景和桌面图标,对于新的设备它们都可以自动创建。用下面命令安装它:<br />
<br />
sudo apt-get install nautilus<br />
<br />
<br />
<br />
To use it together with a window manager, execute the following command or add it to your autostart script. For example, use $HOME/.icewm/startup for IceWM.<br />
<br />
要让它和窗口管理器一起工作,需执行以下命令或者把命令加入到自动启动脚本。例如:对于IceWM,加入$HOME/.icewm/startup文件。<br />
<br />
nautilus --no-default-window &amp; <br />
<br />
<br />
<br />
Some other popular file managers include<br />
<br />
其它一些浒的文件管理器有:<br />
<br />
* [http://pcmanfm.sourceforge.net/ PCManFM];<br />
* [http://packages.ubuntu.com/edgy/utils/mc Midnight Commander], [http://tuxcmd.sourceforge.net/ Tux Commander] and [http://packages.ubuntu.com/edgy/gnome/gnome-commander Gnome Commander] (which all resemble the old Norton Commander interface);<br />
* [http://packages.ubuntu.com/edgy/x11/xffm4-filemanager xffm4-filemanager];<br />
* [http://step.polymtl.ca/~coyote/xvfilemgr_main.html XVFilemgr];<br />
* and [http://packages.ubuntu.com/edgy/kde/dolphin Dolphin], which is a file manager aimed at KDE and Kubuntu.<br />
<br />
There are many others. Some are available through the repositories; others will require you to download and install them through another source. Experiment with different file managers to see which ones appeal to you.<br />
<br />
这里有很多其它的文件管理器。其中一些可以通过软件仓库安装,一些必须通过源码下载和安装。尝试不同的文件管理器,看哪些能够吸引你。<br />
<br />
== 软件包管理器 ==<br />
<br />
Add a graphical package manager to install, remove and upgrade software packages and to add repositories without using the command line. Synaptic package manager is the standard and can be installed with this command:<br />
<br />
安装一个图形化的软件包管理器来安装,删除和升级软件包和增加软件仓库,可以让你不需要使用命令。新立得软件包管理器是标准的软件包管理工具。可以用下面命令来安装:<br />
<br />
sudo aptitude install synaptic<br />
<br />
<br />
<br />
You can use the package manager to add a word processor, such as Abiword, and other productivity software.<br />
<br />
你可以用软件包管理器来安装字处理器,像Abiword,或是其它的软件。<br />
<br />
= 安装一个完整的轻量级系统 =<br />
<br />
Building on the ideas above, here are some complete graphical systems, installable through a single command line. Feel free to mix and match between these options.<br />
<br />
基于以上的想法,我们可以用一条命令来安装一个完整的图形系统。你可以自由的组合这些选项。<br />
<br />
'''Remember: If you are using Dapper or earlier, replace "xorg" with "x-window-system-core"'''<br />
<br />
'''记住:如果你是在用Dapper或是更早的版本,用"x-window-system-core"代替"xorg"。'''<br />
<br />
* IceWM as a window manager, plus GDM, Firefox, Abiword and the Synaptic package manager:<br />
<br />
* IceWM是窗口管理器,加上GDM,Firefox,Abiword和新立得软件包管理器。<br />
<br />
sudo aptitude install gdm xorg xterm icewm menu mozilla-firefox abiword synaptic<br />
<br />
<br />
<br />
* XFCE and Firefox, with Synaptic package manager and KDM as the login manager:<br />
<br />
* XFCE,Firefox,再加上新立得软件包管理器和登录管理器KDM。<br />
<br />
<br><br />
<br />
sudo aptitude install kdm xorg xfce4 firefox synaptic<br />
<br />
<br />
<br />
* Fluxbox with Dillo, and XDM as a login manager:<br />
<br />
* Fluxbox,Dillo,和XDM<br />
<br />
sudo aptitude install fluxbox xorg xdm dillo<br />
<br />
<br />
<br />
* Openbox with no login manager, XFE as the file manager and xfce4-terminal as an X terminal, as well as Openbox themes and the Tango icon set:<br />
<br />
Openbox,XFE和xfce4-terminal还有Openbox主题及Tango图标。<br />
<br />
sudo aptitude install openbox obconf openbox-themes xfe xfce4-terminal tango-icon-theme-extras xorg<br />
<br />
<br />
<br />
Remember to check the repositories for more ideas on software and applications!<br />
<br />
记得查看软件仓库来获得更多的关于软件和应用的想法。<br />
<br />
= 低配置的选择 =<br />
<br />
For a minimalistic system that does not require as much configuration, you can install the alternate window managers after installing a full K/X/Ubuntu system, thus preinstalling much of the required software but keeping the speed. However, installing a full system does require more system resources.<br />
<br />
对于一个很小的系统并不需要太多的配置,在安装完完整的K/X/Ubuntu系统后你可以安装另一种窗口管理器来替代它,这样就可以安装很多必要软件并且保证运行速度。然而安装一个完整的系统的确需要更多的系统资源。<br />
<br />
= 扩展链接 =<br />
<br />
* [http://www.fluxbuntu.org FluxBuntu]: An Ubuntu variant with Fluxbox as the default window manager. An excellent place to start for a Fluxbox-based system.<br />
* [http://www.ubuntulite.org UbuntuLite]: An early project to build a stripped-down version of Ubuntu aimed at low-end machines. The project also seems to have stalled.<br />
* [http://alecjw.googlepages.com/cubuntu-commandlineubuntu Cubuntu] is not a graphical system; Cubuntu is a full-featured ''command line'' system, suitable for computers that can't handle any of the above options -- such as early Pentium or perhaps even 486-grade machines with as little as 16Mb RAM. And don't be skeptical: Even without a graphic environment, a computer can perform a lot more tasks than you would expect. B)<br />
* [http://www.enlightenment.org/ Enlightenment] is another window manager, but it is still in development and requires additional steps to install. However, it is very lightweight and functional.<br />
* [http://www.thinkgos.com/ gOS] is an operating system based on Ubuntu, uses a customized version of Enlightenment as its window manager, and is able to run on some older systems.<br />
<br />
<br><br />
<br />
CategoryDocumentation</div>Convicehttps://wiki.ubuntu.org.cn/index.php?title=%E4%BD%8E%E9%85%8D%E7%BD%AE%E7%94%B5%E8%84%91%E5%AE%89%E8%A3%85&diff=74907低配置电脑安装2007-12-15T14:26:26Z<p>Convice:</p>
<hr />
<div>{{Copyedit translation|from=https://wiki.ubuntu.com/Installation/LowMemorySystems}}<br />
<br />
{{From|https://wiki.ubuntu.com/Installation/LowMemorySystems}}<br />
{{Translator|convice}}<br />
{{Languages|Installation/LowMemorySystems}}<br />
<br />
<br />
'''How to install Ubuntu on low memory systems'''<br />
(Pentium III and earlier machines, with 32-192 MB RAM).<br />
<br />
<br />
'''怎样在低内存的系统上安装Ubuntu(Pentium III或更早的,配有32-192MB内存的机器)'''<br />
<br />
==== 内存需求 ====<br />
<br />
Installing Ubuntu on any system requires at least 32Mb of memory: The text-based installer included with the alternate (install) CDs needs that much space to run reliably. Smaller memory configurations run into problems, and while not impossible, it can be very difficult to complete an installation with less than the minimum RAM requirement.<br />
<br />
在任何系统上安装Ubuntu至少需要32Mb内存:包含在alternate (install) CDs的基于字符的安装程序需要这些空间来可靠运行。更小的内存配置可能会遇到问题,虽然不是不可能,但如果内存小于最低的需求,要完成安装十分困难。<br />
<br />
Depending on the hardware requirements, you can expect a sparse Ubuntu system to boot to a graphical desktop on anywhere from 19Mb to 54Mb. That requirement will fluctuate with the system demands, and increase while the system is active. Swap space is crucial to low-memory machines, so don't be stingy when setting up your system.<br />
<br />
考虑硬件需求,你可以期望一个瘦小的Ubuntu系统在任何内存为19Mb到54Mb的电脑上启动并运行图形桌面。这个需求会随着系统的需求面浮动,当系统活跃的时候会增加。交换分区对于低内存的机器十分重要,所以当设置系统的时候别小器。<br />
<br />
==== 处理器 ====<br />
<br />
There is no practical speed requirement, although a slower processor will take more time to finish installing. Some Pentium machines will take hours to complete, simply because the CPU takes longer to finish. As a general benchmark, a 75Mhz machine finishes a command-line installation of Ubuntu 7.04 in about four hours, and a 120Mhz machine finishes in perhaps an hour less than that. 200Mhz and faster machines will see a still stronger improvement.<br />
<br />
对处理器的速度没有什么实际的需求,然而低速度的处理器将要花更多的时间来完成安装。仅仅是因为CPU花了太多的时间,一些Pentium机将要花费几个小时来完成安装。根据通常的基准测试,一台75Mhz的机器要4个小时来完成基于命令行的Ubuntu 7.04的安装,一台120Mhz的要比它少用一个小时。200Mhz或是更快的机器将会有更强的提升。<br />
<br />
If you do decide to install Ubuntu on a legacy machine, be patient. There will come times when you think the machine has stopped or is hung, when in fact it's still moving, albeit at a very slow rate.<br />
<br />
如果你决定在一台老的机器上安装Ubuntu,要有耐心。可能会出现好几次这样的情况:当你认为机器已经停止或挂起,其实它正在运行,虽然速度很慢。<br />
<br />
==== 磁盘空间需求 ====<br />
<br />
Disk space on an absolutely minimal installation can be reduced to as little as 500Mb. A fresh and clean server installation of Ubuntu 7.04 generally takes only 300Mb, although there will be minor variations on account of hardware differences.<br />
<br />
磁盘空间在绝对最小安装的情况下可以减少到500Mb。虽然对于不同的硬件会有很小的变化,一个干净的Ubuntu 7.04 服务器的安装通常只需要300Mb。<br />
<br />
==== 其它硬件上的考虑 ====<br />
<br />
These instructions assume you will have a working Internet connection and access to the [[UbuntuHelp:Repositories|universe and multiverse repositories]]. Configuring your hardware is not included on this page.<br />
<br />
这份指南假设你有一个可用的互联网连接并且可以访问[[UbuntuHelp:Repositories|universe and multiverse repositories]].它不包括对你硬件的配置。<br />
<br />
<br><br />
<br />
== 安装Ubuntu Server ==<br />
<br />
The server version of Ubuntu is a sparse command-line system, without any graphical elements. It's a text-only version of what lies underneath all the advanced graphical elements. It's also the starting point for a minimal installation.<br />
<br />
Ubuntu服务器版是一个精减的命令行系统,没有任何图形元素。它是一个位于高级图形元素之下的纯文本版本。它是我们最小化安装的起点。<br />
<br />
==== Ubuntu 6.06 ====<br />
<br />
To install a base system, boot from the alternate (install) CD and choose "Install a server."<br />
<br />
Follow the prompts to complete installation.<br />
<br />
启动alternate(install)CD,选择"Install a server"。按提示完成安装。<br />
<br />
==== Ubuntu 6.10, 7.04, 或 7.10 ====<br />
<br />
To install a base system, boot from the alternate (install) CD and choose "Install a command-line system."<br />
<br />
Follow the prompts to complete installation.<br />
<br />
启动alternate(install)CD,选择"Install a command-line system."。按提示完成安装。<br />
<br />
=== 增加软件仓库 ===<br />
<br />
==== 更改源 ====<br />
<br />
Once the server install is complete, you will probably want to edit your [[UbuntuHelp:Sources.list|UbuntuHelp:sources.list]] file.<br />
<br />
当安装好Ubuntu服务器版後,你可能需要编辑你的[[UbuntuHelp:Sources.list|UbuntuHelp:sources.list]]文件。<br />
<br />
sudo nano /etc/apt/sources.list<br />
<br />
<br />
Uncomment all official repositories by removing # at the beginning of the line. Do not uncomment the narrative portions of that file; in other words, where you see a double hash mark (##) leave those lines alone.<br />
<br />
删除每一行开始的#号来消除对官方软件仓库的注释。不要消除文件里描述部分的注释,即以两个#号(##)开始的行。<br />
<br />
==== 更新和升级你的系统 ====<br />
<br />
Now you should update your system. Return to the command line and type:<br />
<br />
现在你应该更新你的系统。回到命令行输入:<br />
<br />
sudo aptitude update<br />
<br />
<br />
<br />
It's probably also a good idea to upgrade your system at this point. Use this command to upgrade your system:<br />
<br />
这时升级你的系统也是个不错的主意。用这个命令升级你的系统。<br />
<br />
sudo aptitude upgrade (或者, 对于 Gutsy: sudo aptitude safe-upgrade)<br />
<br />
<br />
<br />
Now you should be ready to install a window manager and some programs.<br><br />
<br />
现在你已经准备好了来安装窗口管理器和一些程序。<br />
<br />
= 安装图形环境的准备工作 =<br />
<br />
The absolute minimum for any graphical environment is X.org<br />
<br />
最小的图形环境是X.org<br />
<br />
=== 安装X.org ===<br />
<br />
On Ubuntu Edgy (6.10), Feisty (7.04), and Gutsy (7.10), use the command:<br />
<br />
在 Ubuntu Edgy (6.10), Feisty (7.04), 和 Gutsy (7.10), 用下面的命令: <br />
<br />
sudo aptitude install xorg<br />
<br />
On Ubuntu Dapper (6.06), use the command:<br />
<br />
在 Ubuntu Dapper (6.06), 用下面的命令: <br />
<br />
sudo aptitude install x-window-system-core<br />
<br />
=== 启动X.org ===<br />
<br />
This package gives you the framework for an X session, complete with a variety of drivers and configuration files. Installing ''xorg'' (or ''x-window-system-core'') also triggers the self-configuration sequence, so when it finishes, your hardware should be ready to use, barring any errors or incompatibilities.<br />
<br />
通过一些驱动和配置文件,这个软件包给了你一个X对话的框架。安装“Xorg”或“x-window-system-core”还启动了自动配置队列,安装完成後,如果没有错误或不兼容,你的硬件应该已经可用了。<br />
<br />
<br><br />
It's important to note that installing ''xorg'' or ''x-window-system-core'' really doesn't leave you with much. You can start X at this point with this command:<br />
<br />
必须注意的是,安装“Xorg”或“x-window-system-core”不会给你很多。这时你可以用以下命令启动X:<br />
<br />
startx<br />
<br />
<br />
but without a window manager and some software, you probably won't get much done.<br />
<br />
但是没有窗口管理器和一些软件,你能做的很少。<br />
<br />
= 安装一个窗口管理器 =<br />
<br />
A window manager controls the placement and appearance of windows within a graphical user interface.<br />
<br />
窗口管理器通过图形用户界面控制窗口的位置有显示。<br />
<br />
There are many lightweight window managers that will give you better access to your system through the X layer. Each one has its own way of managing the desktop, and its own way of configuring themes and menus.<br />
<br />
有很多轻量级的窗口管理器可以使你更好的通过X层访问你的系统。每一种都有它们自己的方式来管理桌面,都有它们自己的方法来配置主题和菜单。<br />
<br />
== Openbox ==<br />
<br />
"Openbox" is one of the lightest, fastest window managers available, but can take some time to configure and set up. It has its origins in Blackbox, but newer versions are complete rewrites of the Blackbox code.<br />
<br />
"Openbox"是一种轻量级的快速的可用的窗口管理器,只是需要一些时间来安装和配置。它源于Blackbox,但是新版的全部重写了Blackbox的代码。<br />
<br />
Install Openbox with this command:<br />
<br />
用以下命令安装Openbox:<br />
<br />
sudo aptitude install openbox obconf openbox-themes<br />
<br />
<br />
These packages and their dependencies will allow you to build and configure an Openbox system, along with a choice of themes and some configuration options.<br />
<br />
这些软件包和它们的依赖软件包让你可以建立和配置Openbox系统,还有可选择的主题和一些配置选项。<br />
<br />
'''Note:''' Edgy (Ubuntu 6.10) users should note a small discrepancy in ''obconf'' that might prevent it from running. You can correct that with these commands ...<br />
<br />
'''注意:'''Edgy (Ubuntu 6.10)用户必须注意"obconf"一个可能会使其无法运行的小问题。你可以用下面的命令解决这个问题。<br />
<br />
cd /usr/lib<br />
sudo ln libobparser.so.0.4.0 libobparser.so.1<br />
sudo ln libobrender.so.0.4.0 libobrender.so.1<br />
sudo ldconfig -X<br />
<br />
<br />
<br />
Entering ''obconf'' in an X terminal window should now trigger the obconf dialogue.<br />
<br />
在X终端输入''obconf''将启动obconf对话。<br />
<br />
== IceWM ==<br />
<br />
"IceWM" has a very strong following as a good, clean, fast window manager that resembles a conventional "desktop" in many ways. Among many of its perks are themes that resemble the Windows XP desktop theme -- which may be appealing to you.<br />
<br />
"IceWM"很受欢迎,因为它是一个很好的,干净的,很快的窗口管理器,它还集成了一个可选择的桌面。在它的众多优点中有一个可能会吸引你:它集成了Windows XP桌面主题。<br />
<br />
Install IceWM with this command:<br />
<br />
用下面的命令安装IceWM:<br />
<br />
sudo aptitude install icewm iceconf icepref iceme icewm-themes<br />
<br />
<br />
<br />
When finished, you will have a number of configuration and menu options. You can start IceWM with the ''startx'' command.<br />
<br />
安装完成后,你将拥有一些配置和菜单选项。你可以用''startx''命令启动它。<br />
<br />
== Fluxbox ==<br />
<br />
"Fluxbox" is a beautiful, highly configurable desktop system that is easy on system resources without compromising on graphical appeal. Fluxbox is the default window manager for a number of Linux distributions, probably most notable among them being [http://www.damnsmalllinux.org/ Damn Small Linux].<br />
<br />
"Fluxbox" 是一种漂亮的,高度可配置的桌面系统,它对系统资源要求不高却没有损失图形的吸引力。"Fluxbox" 是许多Linux发开版的默认窗口管理器,可能大部分都在[http://www.damnsmalllinux.org/ Damn Small Linux]上。<br />
<br />
<br />
<br />
Install Fluxbox with this command:<br />
<br />
<br />
用下面的命令安装Fluxbox:<br />
<br />
sudo aptitude install fluxbox fluxconf<br />
<br />
<br />
<br />
Once installed, you can start Fluxbox with the ''startfluxbox'' command. Remember, if you enjoy working with Fluxbox, you should consider [http://www.fluxbuntu.org Fluxbuntu] as an option.<br />
<br />
安装好以后,你可以用''startfluxbox''命令启动它。记住,如果你很喜欢使用Fluxbox,你可以考虑 [http://www.fluxbuntu.org Fluxbuntu] 作为一种选择。<br />
<br />
== FVWM-Crystal ==<br />
<br />
"FVWM-Crystal" is a complete set of configuration scripts which sit atop of FVWM. FVWM-Crystal has support for integrated access to music players, terminal emulators and system monitors. It boasts some of the finest eye candy available to low-end machines, and is a snap to install.<br />
<br />
"FVWM-Crystal" 是基于FVWM的一些配置脚本。"FVWM-Crystal" 支持对音乐播放器,终端和系统监视的集成访问。它号称是在低配置机器上可用的最漂亮的窗口管理器,并且它可以很快的安装。<br />
<br />
For more information about building an FVWM-Crystal desktop, check out the ["FVWM-Crystal"] page.<br />
<br />
想知道更多关于安装FVWM-Crystal桌面的的信息,请访问["FVWM-Crystal"]。<br />
<br />
== XFCE ==<br />
<br />
XFCE is heavier than any of the systems mentioned so far, but has some added functions as a result. You can try XFCE alone if you like, but if you're keen on an XFCE installation, look into [http://www.xubuntu.org Xubuntu] as an option.<br />
<br />
XFCE 相对于目前已经提到的轻量级窗口管理器来说都更“重”,但是是因为增加了一些应用的。如果你喜欢,你可以单独党旗XFCE,但如果你一定要安装XFCE,请查看 [http://www.xubuntu.org Xubuntu]。<br />
<br />
Install XFCE alone, without Xubuntu, with this command:<br />
<br />
单独安装XFCE,而不是Xubuntu,请用下面的命令:<br />
<br />
sudo aptitude install xfce4<br />
<br />
<br />
<br />
It's worth noting that some Edgy users have difficulty starting XFCE from a minimal install. The normal start command for XFCE -- ''startxfce4'' -- doesn't seem to be properly configured in Edgy.<br />
<br />
对于Edgy用户来讲,这是没有用的,从最小化安装启动XFCE是有困难的。XFCE的启动命令-- ''startxfce4'' -- 看起来好像在Edgy上没有配置好。<br />
<br />
If you want the entire Xubuntu package, which includes a full suite of software and a lot of improvements, try this command:<br />
<br />
如果你想要一个完全的包括了一些软件和一些改进的Xubuntu包,请用下面的命令:<br />
<br />
sudo aptitude install xubuntu-desktop<br />
<br />
<br />
<br />
That will download quite a large amount of packages; you may want to consider installing Xubuntu fresh, from the [http://www.xubuntu.org/get installation ISO].<br />
<br />
这将要下载很多的软件包;你可能想从 [http://www.xubuntu.org/get installation ISO]干净的安装Xubuntu。<br />
<br />
Note: Xubuntu will use more system resources and may not be optimal for a low memory system with limited disk space, but it is lighter than a standard Ubuntu system.<br />
<br />
''注意:'' Xubuntu 将会使用更多的系统资源,而且可能对于一个硬盘空间和内存都有限的系统来讲不是最好的选择,但是它比标准的Ubuntu系统“轻”。<br />
<br />
= 安装软件 =<br />
<br />
Now that the graphical window manager is set up, it's time to add some necessary and recommended packages. These will add additional functionality and make using the system easier. Additionally, adding a graphical package manager will provide an easy method to manage installed applications and packages.<br />
<br />
现在图形窗口管理器已经设置好了,现在可以安装一些必须或推荐的软件包。这些软件包将会加入一些新的功能,使系统更容易使用。另外,安装一个图形化的软件包管理器将会使管理已安装的应用和软件包变得容易。<br />
<br />
== 登录管理器 ==<br />
<br />
Login managers will assist in choosing a graphical environment and will not require the user to start x.org to get into the window manager.<br />
<br />
登录管理器将帮助我们选择一个图形环境,而且不需要用户启动X.org就可以进入窗口管理器。<br />
<br />
It's important to note that it's not necessary to use a login manager. If you're willing to log in at the command line and start X manually, you can save yourself a lot of system resources -- and the time it takes to load them. That can be a more appealing option on older machines.<br />
<br />
要说明的是登录管理器并不是必须的。如果你喜欢在命令行界面登录然后手动启动X,你能节约很多系统资源和启动它们的时间。对于老的机器来说可能更有吸引力。<br />
<br />
=== GDM ===<br />
<br />
GDM is the Ubuntu default for a login manager. However, GDM has a reputation of being a heavyweight, and on a system that needs as little bulk as possible, you might find it to be a burden. If you've got a decent system, install it using:<br />
<br />
GDM是Ubuntu默认的登陆管理器,它被认为是一个重量级的管理器,在系统中它需要比较多的资源,所以你可能会发现它是一个负担。如果你有一个很好的系统,用以下命令安装它:<br />
<br />
sudo aptitude install gdm<br />
<br />
<br />
<br />
=== KDM ===<br />
<br />
KDM is another manager, but has the same heavy reputation as GDM.<br />
<br />
KDM是另一种管理器,它和GDM一样被认为是重量级的管理器。用以下命令安装:<br />
<br />
sudo aptitude install kdm<br />
<br />
<br />
<br />
=== XDM ===<br />
<br />
XDM is the login manager for straight X, and while less beautiful than GDM or KDM, it can perform in the same role without fuss.<br />
<br />
XDM是纯粹的X的登录管理器,它没有GDM和KDM漂亮,但它能像GDM和KDM那样很好的工作。用以下命令安装:<br />
<br />
sudo aptitude install xdm<br />
<br />
<br />
<br />
== 浏览器 ==<br />
<br />
Now that your system is up and running, it would be a good idea to add an internet browser to surf the web and get some use out of the machine!<br />
<br />
现在你的系统已经在运行了,现在可以安装一个因特网浏览器来上网冲浪。<br />
<br />
=== Firefox ===<br />
<br />
Web browsers come in many flavors, and the most prevalent -- Firefox -- can be laggy on low-memory or slow systems. Even the GNU version of Firefox, [https://wiki.ubuntu.com/IceWeasel Iceweasel] can be a bit heavy on older machines. If you've got at least 128 mb of memory, Firefox should work just fine.<br />
<br />
Firefox是适用于很多Linux发行版,是最流行的浏览器。它对于低内存或者低速的系统来讲,可能有点难以应付。甚至是GNU版本的Firefox,[https://wiki.ubuntu.com/IceWeasel Iceweasel] 对于老的机器来讲也有些“重”。如果你有多于128mb的内存,Firefox可以运行的很好。用以下命令安装它:<br />
<br />
sudo aptitude install firefox <br />
<br />
<br />
<br />
=== Dillo ===<br />
<br />
While not nearly as full-featured as Firefox, Dillo has the advantages of a very small footprint and few resource requirements.<br />
<br />
不像Firefox那样具有完全的功能,Dillo的优点是有一个很小的脚印和很小的资源需求。用以下命令安装它:<br />
<br />
sudo aptitude install dillo<br />
<br />
<br />
<br />
== iDesk ==<br />
<br />
Many lightweight desktop systems use [http://idesk.sourceforge.net/ iDesk] as a way of including customized, clickable icons directly on the desktop. iDesk is maintained in the Ubuntu repositories, and is installable from the command line with:<br />
<br />
很多轻量级的桌面系统用[http://idesk.sourceforge.net/ iDesk]来配置和使桌面上的图标可以被直接点击。iDesk包含在Ubuntu的软件仓库中,可以用以下命令安装它:<br />
<br />
sudo aptitude install idesk<br />
<br />
<br />
<br />
Consult the [http://idesk.sourceforge.net/ iDesk wiki] for instructions on how to configure and use iDesk. For icon sets, you may wish to search the repositories, or download them from third-party customization sites, such as [http://www.gnome-look.org Gnome-Look.org] and similar locations.<br />
<br />
访问[http://idesk.sourceforge.net/ iDesk wiki]来获取配置和使用iDesk的命令。你可能要搜索软件仓库或从第三方的配置网站上下载图标,像[http://www.gnome-look.org Gnome-Look.org]及相似的网站。<br />
<br />
== 文件管理器 ==<br />
<br />
Lightweight systems have a number of options available for graphical file management. Thunar is the default file manager in Xubuntu and many XFCE-based systems; it is installable alone with this command:<br />
<br />
轻量级的系统有多种可用的图形文件管理器。Thunar是Xubuntu和很多基于XFCE默认的系统,可以使用下面的命令单独安装它:<br />
<br />
sudo aptitude install thunar<br />
<br />
<br />
<br />
XFE is an even lighter file manager, intended to mimic the Windows Explorer interface. It has very few dependencies and is very fast.<br />
<br />
XFE是一种更“轻”的文件管理器,它模仿了Windwos Explorer接口。它只依赖很少的软件包而且非常快。用下面命令安装它:<br />
<br />
sudo aptitude install xfe<br />
<br />
<br />
<br />
ROX-Filer is another file management program, which makes extensive use of drag-and-drop principles. It does appear to have a large number of dependencies however, which means installing it may entail more external packages than you wish. Install ROX-Filer with this command:<br />
<br />
ROX-Filer也是一种文件管理器,它扩展了drag-and-drop原理。它依赖很多的软件包,这就意味着它需要比你想像的要多的扩展软件包。用下面命令安装它:<br />
<br />
sudo aptitude install rox-filer<br />
<br />
<br />
<br />
Nautilus is the default file manager for Ubuntu. It requires some more resources, but it has a lot of useful features. It can manage your desktop, show a wallpaper and desktop icons, which are automatically created for new devices (e.g. USB flash drives). Install Nautilus using this command:<br />
<br />
Nautilus是Ubuntu默认的文件管理器。它需要更多的资源,但它具有很多有用的特性。它能管理你的桌面,显示桌面背景和桌面图标,对于新的设备它们都可以自动创建。用下面命令安装它:<br />
<br />
sudo apt-get install nautilus<br />
<br />
<br />
<br />
To use it together with a window manager, execute the following command or add it to your autostart script. For example, use $HOME/.icewm/startup for IceWM.<br />
<br />
要让它和窗口管理器一起工作,需执行以下命令或者把命令加入到自动启动脚本。例如:对于IceWM,加入$HOME/.icewm/startup文件。<br />
<br />
nautilus --no-default-window &amp; <br />
<br />
<br />
<br />
Some other popular file managers include<br />
<br />
其它一些浒的文件管理器有:<br />
<br />
* [http://pcmanfm.sourceforge.net/ PCManFM];<br />
* [http://packages.ubuntu.com/edgy/utils/mc Midnight Commander], [http://tuxcmd.sourceforge.net/ Tux Commander] and [http://packages.ubuntu.com/edgy/gnome/gnome-commander Gnome Commander] (which all resemble the old Norton Commander interface);<br />
* [http://packages.ubuntu.com/edgy/x11/xffm4-filemanager xffm4-filemanager];<br />
* [http://step.polymtl.ca/~coyote/xvfilemgr_main.html XVFilemgr];<br />
* and [http://packages.ubuntu.com/edgy/kde/dolphin Dolphin], which is a file manager aimed at KDE and Kubuntu.<br />
<br />
There are many others. Some are available through the repositories; others will require you to download and install them through another source. Experiment with different file managers to see which ones appeal to you.<br />
<br />
这里有很多其它的文件管理器。其中一些可以通过软件仓库安装,一些必须通过源码下载和安装。尝试不同的文件管理器,看哪些能够吸引你。<br />
<br />
== 软件包管理器 ==<br />
<br />
Add a graphical package manager to install, remove and upgrade software packages and to add repositories without using the command line. Synaptic package manager is the standard and can be installed with this command:<br />
<br />
安装一个图形化的软件包管理器来安装,删除和升级软件包和增加软件仓库,可以让你不需要使用命令。新立得软件包管理器是标准的软件包管理工具。可以用下面命令来安装:<br />
<br />
sudo aptitude install synaptic<br />
<br />
<br />
<br />
You can use the package manager to add a word processor, such as Abiword, and other productivity software.<br />
<br />
你可以用软件包管理器来安装字处理器,像Abiword,或是其它的软件。<br />
<br />
= 安装一个完整的轻量级系统 =<br />
<br />
Building on the ideas above, here are some complete graphical systems, installable through a single command line. Feel free to mix and match between these options.<br />
<br />
基于以上的想法,我们可以用一条命令来安装一个完整的图形系统。你可以自由的组合这些选项。<br />
<br />
'''Remember: If you are using Dapper or earlier, replace "xorg" with "x-window-system-core"'''<br />
<br />
'''记住:如果你是在用Dapper或是更早的版本,用"x-window-system-core"代替"xorg"。'''<br />
<br />
* IceWM as a window manager, plus GDM, Firefox, Abiword and the Synaptic package manager:<br />
<br />
* IceWM是窗口管理器,加上GDM,Firefox,Abiword和新立得软件包管理器。<br />
<br />
sudo aptitude install gdm xorg xterm icewm menu mozilla-firefox abiword synaptic<br />
<br />
<br />
<br />
* XFCE and Firefox, with Synaptic package manager and KDM as the login manager:<br />
<br />
* XFCE,Firefox,再加上新立得软件包管理器和登录管理器KDM。<br />
<br />
<br><br />
<br />
sudo aptitude install kdm xorg xfce4 firefox synaptic<br />
<br />
<br />
<br />
* Fluxbox with Dillo, and XDM as a login manager:<br />
<br />
* Fluxbox,Dillo,和XDM<br />
<br />
sudo aptitude install fluxbox xorg xdm dillo<br />
<br />
<br />
<br />
* Openbox with no login manager, XFE as the file manager and xfce4-terminal as an X terminal, as well as Openbox themes and the Tango icon set:<br />
<br />
Openbox,XFE和xfce4-terminal还有Openbox主题及Tango图标。<br />
<br />
sudo aptitude install openbox obconf openbox-themes xfe xfce4-terminal tango-icon-theme-extras xorg<br />
<br />
<br />
<br />
Remember to check the repositories for more ideas on software and applications!<br />
<br />
记得查看软件仓库来获得更多的关于软件和应用的想法。<br />
<br />
= 低配置的选择 =<br />
<br />
For a minimalistic system that does not require as much configuration, you can install the alternate window managers after installing a full K/X/Ubuntu system, thus preinstalling much of the required software but keeping the speed. However, installing a full system does require more system resources.<br />
<br />
对于一个很小的系统并不需要太多的配置,在安装完完整的K/X/Ubuntu系统后你可以安装另一种窗口管理器来替代它,这样就可以安装很多必要软件并且保证运行速度。然而安装一个完整的系统的确需要更多的系统资源。<br />
<br />
= 扩展链接 =<br />
<br />
* [http://www.fluxbuntu.org FluxBuntu]: An Ubuntu variant with Fluxbox as the default window manager. An excellent place to start for a Fluxbox-based system.<br />
* [http://www.ubuntulite.org UbuntuLite]: An early project to build a stripped-down version of Ubuntu aimed at low-end machines. The project also seems to have stalled.<br />
* [http://alecjw.googlepages.com/cubuntu-commandlineubuntu Cubuntu] is not a graphical system; Cubuntu is a full-featured ''command line'' system, suitable for computers that can't handle any of the above options -- such as early Pentium or perhaps even 486-grade machines with as little as 16Mb RAM. And don't be skeptical: Even without a graphic environment, a computer can perform a lot more tasks than you would expect. B)<br />
* [http://www.enlightenment.org/ Enlightenment] is another window manager, but it is still in development and requires additional steps to install. However, it is very lightweight and functional.<br />
* [http://www.thinkgos.com/ gOS] is an operating system based on Ubuntu, uses a customized version of Enlightenment as its window manager, and is able to run on some older systems.<br />
<br />
<br><br />
<br />
CategoryDocumentation</div>Convicehttps://wiki.ubuntu.org.cn/index.php?title=%E4%BD%8E%E9%85%8D%E7%BD%AE%E7%94%B5%E8%84%91%E5%AE%89%E8%A3%85&diff=74906低配置电脑安装2007-12-15T14:25:31Z<p>Convice:</p>
<hr />
<div>{{Copyedit translation|from=https://wiki.ubuntu.com/Installation/LowMemorySystems}}<br />
<br />
{{From|https://wiki.ubuntu.com/Installation/LowMemorySystems}}<br />
{{Translator|convice}}<br />
{{Languages|Installation/LowMemorySystems}}<br />
<br />
<br />
'''How to install Ubuntu on low memory systems'''<br />
(Pentium III and earlier machines, with 32-192 MB RAM).<br />
<br />
<br />
'''怎样在低内存的系统上安装Ubuntu(Pentium III或更早的,配有32-192MB内存的机器)'''<br />
<br />
==== 内存需求 ====<br />
<br />
Installing Ubuntu on any system requires at least 32Mb of memory: The text-based installer included with the alternate (install) CDs needs that much space to run reliably. Smaller memory configurations run into problems, and while not impossible, it can be very difficult to complete an installation with less than the minimum RAM requirement.<br />
<br />
在任何系统上安装Ubuntu至少需要32Mb内存:包含在alternate (install) CDs的基于字符的安装程序需要这些空间来可靠运行。更小的内存配置可能会遇到问题,虽然不是不可能,但如果内存小于最低的需求,要完成安装十分困难。<br />
<br />
Depending on the hardware requirements, you can expect a sparse Ubuntu system to boot to a graphical desktop on anywhere from 19Mb to 54Mb. That requirement will fluctuate with the system demands, and increase while the system is active. Swap space is crucial to low-memory machines, so don't be stingy when setting up your system.<br />
<br />
考虑硬件需求,你可以期望一个瘦小的Ubuntu系统在任何内存为19Mb到54Mb的电脑上启动并运行图形桌面。这个需求会随着系统的需求面浮动,当系统活跃的时候会增加。交换分区对于低内存的机器十分重要,所以当设置系统的时候别小器。<br />
<br />
==== 处理器 ====<br />
<br />
There is no practical speed requirement, although a slower processor will take more time to finish installing. Some Pentium machines will take hours to complete, simply because the CPU takes longer to finish. As a general benchmark, a 75Mhz machine finishes a command-line installation of Ubuntu 7.04 in about four hours, and a 120Mhz machine finishes in perhaps an hour less than that. 200Mhz and faster machines will see a still stronger improvement.<br />
<br />
对处理器的速度没有什么实际的需求,然而低速度的处理器将要花更多的时间来完成安装。仅仅是因为CPU花了太多的时间,一些Pentium机将要花费几个小时来完成安装。根据通常的基准测试,一台75Mhz的机器要4个小时来完成基于命令行的Ubuntu 7.04的安装,一台120Mhz的要比它少用一个小时。200Mhz或是更快的机器将会有更强的提升。<br />
<br />
If you do decide to install Ubuntu on a legacy machine, be patient. There will come times when you think the machine has stopped or is hung, when in fact it's still moving, albeit at a very slow rate.<br />
<br />
如果你决定在一台老的机器上安装Ubuntu,要有耐心。可能会出现好几次这样的情况:当你认为机器已经停止或挂起,其实它正在运行,虽然速度很慢。<br />
<br />
==== 磁盘空间需求 ====<br />
<br />
Disk space on an absolutely minimal installation can be reduced to as little as 500Mb. A fresh and clean server installation of Ubuntu 7.04 generally takes only 300Mb, although there will be minor variations on account of hardware differences.<br />
<br />
磁盘空间在绝对最小安装的情况下可以减少到500Mb。虽然对于不同的硬件会有很小的变化,一个干净的Ubuntu 7.04 服务器的安装通常只需要300Mb。<br />
<br />
==== 其它硬件上的考虑 ====<br />
<br />
These instructions assume you will have a working Internet connection and access to the [[UbuntuHelp:Repositories|universe and multiverse repositories]]. Configuring your hardware is not included on this page.<br />
<br />
这份指南假设你有一个可用的互联网连接并且可以访问[[UbuntuHelp:Repositories|universe and multiverse repositories]].它不包括对你硬件的配置。<br />
<br />
<br><br />
<br />
== 安装Ubuntu Server ==<br />
<br />
The server version of Ubuntu is a sparse command-line system, without any graphical elements. It's a text-only version of what lies underneath all the advanced graphical elements. It's also the starting point for a minimal installation.<br />
<br />
Ubuntu服务器版是一个精减的命令行系统,没有任何图形元素。它是一个位于高级图形元素之下的纯文本版本。它是我们最小化安装的起点。<br />
<br />
==== Ubuntu 6.06 ====<br />
<br />
To install a base system, boot from the alternate (install) CD and choose "Install a server."<br />
<br />
Follow the prompts to complete installation.<br />
<br />
启动alternate(install)CD,选择"Install a server"。按提示完成安装。<br />
<br />
==== Ubuntu 6.10, 7.04, 或 7.10 ====<br />
<br />
To install a base system, boot from the alternate (install) CD and choose "Install a command-line system."<br />
<br />
Follow the prompts to complete installation.<br />
<br />
启动alternate(install)CD,选择"Install a command-line system."。按提示完成安装。<br />
<br />
=== 增加软件仓库 ===<br />
<br />
==== 更改源 ====<br />
<br />
Once the server install is complete, you will probably want to edit your [[UbuntuHelp:Sources.list|UbuntuHelp:sources.list]] file.<br />
<br />
当安装好Ubuntu服务器版後,你可能需要编辑你的[[UbuntuHelp:Sources.list|UbuntuHelp:sources.list]]文件。<br />
<br />
sudo nano /etc/apt/sources.list<br />
<br />
<br />
Uncomment all official repositories by removing # at the beginning of the line. Do not uncomment the narrative portions of that file; in other words, where you see a double hash mark (##) leave those lines alone.<br />
<br />
删除每一行开始的#号来消除对官方软件仓库的注释。不要消除文件里描述部分的注释,即以两个#号(##)开始的行。<br />
<br />
==== 更新和升级你的系统 ====<br />
<br />
Now you should update your system. Return to the command line and type:<br />
<br />
现在你应该更新你的系统。回到命令行输入:<br />
<br />
sudo aptitude update<br />
<br />
<br />
<br />
It's probably also a good idea to upgrade your system at this point. Use this command to upgrade your system:<br />
<br />
这时升级你的系统也是个不错的主意。用这个命令升级你的系统。<br />
<br />
sudo aptitude upgrade (或者, 对于 Gutsy: sudo aptitude safe-upgrade)<br />
<br />
<br />
<br />
Now you should be ready to install a window manager and some programs.<br><br />
<br />
现在你已经准备好了来安装窗口管理器和一些程序。<br />
<br />
= 安装图形环境的准备工作 =<br />
<br />
The absolute minimum for any graphical environment is X.org<br />
<br />
最小的图形环境是X.org<br />
<br />
=== 安装X.org ===<br />
<br />
On Ubuntu Edgy (6.10), Feisty (7.04), and Gutsy (7.10), use the command:<br />
<br />
在 Ubuntu Edgy (6.10), Feisty (7.04), 和 Gutsy (7.10), 用下面的命令: <br />
<br />
sudo aptitude install xorg<br />
<br />
On Ubuntu Dapper (6.06), use the command:<br />
<br />
在 Ubuntu Dapper (6.06), 用下面的命令: <br />
<br />
sudo aptitude install x-window-system-core<br />
<br />
=== 启动X.org ===<br />
<br />
This package gives you the framework for an X session, complete with a variety of drivers and configuration files. Installing ''xorg'' (or ''x-window-system-core'') also triggers the self-configuration sequence, so when it finishes, your hardware should be ready to use, barring any errors or incompatibilities.<br />
<br />
通过一些驱动和配置文件,这个软件包给了你一个X对话的框架。安装“Xorg”或“x-window-system-core”还启动了自动配置队列,安装完成后,如果没有错误或不兼容,你的硬件应该已经可用了。<br />
<br />
<br />
It's important to note that installing ''xorg'' or ''x-window-system-core'' really doesn't leave you with much. You can start X at this point with this command:<br />
<br />
必须注意的是,安装“Xorg”或“x-window-system-core”不会给你很多。这时你可以用以下命令启动X:<br />
<br />
startx<br />
<br />
but without a window manager and some software, you probably won't get much done.<br />
<br />
但是没有窗口管理器和一些软件,你能做的很少。<br />
<br />
= 安装一个窗口管理器 =<br />
<br />
A window manager controls the placement and appearance of windows within a graphical user interface.<br />
<br />
窗口管理器通过图形用户界面控制窗口的位置有显示。<br />
<br />
There are many lightweight window managers that will give you better access to your system through the X layer. Each one has its own way of managing the desktop, and its own way of configuring themes and menus.<br />
<br />
有很多轻量级的窗口管理器可以使你更好的通过X层访问你的系统。每一种都有它们自己的方式来管理桌面,都有它们自己的方法来配置主题和菜单。<br />
<br />
== Openbox ==<br />
<br />
"Openbox" is one of the lightest, fastest window managers available, but can take some time to configure and set up. It has its origins in Blackbox, but newer versions are complete rewrites of the Blackbox code.<br />
<br />
"Openbox"是一种轻量级的快速的可用的窗口管理器,只是需要一些时间来安装和配置。它源于Blackbox,但是新版的全部重写了Blackbox的代码。<br />
<br />
Install Openbox with this command:<br />
<br />
用以下命令安装Openbox:<br />
<br />
sudo aptitude install openbox obconf openbox-themes<br />
<br />
<br />
These packages and their dependencies will allow you to build and configure an Openbox system, along with a choice of themes and some configuration options.<br />
<br />
这些软件包和它们的依赖软件包让你可以建立和配置Openbox系统,还有可选择的主题和一些配置选项。<br />
<br />
'''Note:''' Edgy (Ubuntu 6.10) users should note a small discrepancy in ''obconf'' that might prevent it from running. You can correct that with these commands ...<br />
<br />
'''注意:'''Edgy (Ubuntu 6.10)用户必须注意"obconf"一个可能会使其无法运行的小问题。你可以用下面的命令解决这个问题。<br />
<br />
cd /usr/lib<br />
sudo ln libobparser.so.0.4.0 libobparser.so.1<br />
sudo ln libobrender.so.0.4.0 libobrender.so.1<br />
sudo ldconfig -X<br />
<br />
<br />
<br />
Entering ''obconf'' in an X terminal window should now trigger the obconf dialogue.<br />
<br />
在X终端输入''obconf''将启动obconf对话。<br />
<br />
== IceWM ==<br />
<br />
"IceWM" has a very strong following as a good, clean, fast window manager that resembles a conventional "desktop" in many ways. Among many of its perks are themes that resemble the Windows XP desktop theme -- which may be appealing to you.<br />
<br />
"IceWM"很受欢迎,因为它是一个很好的,干净的,很快的窗口管理器,它还集成了一个可选择的桌面。在它的众多优点中有一个可能会吸引你:它集成了Windows XP桌面主题。<br />
<br />
Install IceWM with this command:<br />
<br />
用下面的命令安装IceWM:<br />
<br />
sudo aptitude install icewm iceconf icepref iceme icewm-themes<br />
<br />
<br />
<br />
When finished, you will have a number of configuration and menu options. You can start IceWM with the ''startx'' command.<br />
<br />
安装完成后,你将拥有一些配置和菜单选项。你可以用''startx''命令启动它。<br />
<br />
== Fluxbox ==<br />
<br />
"Fluxbox" is a beautiful, highly configurable desktop system that is easy on system resources without compromising on graphical appeal. Fluxbox is the default window manager for a number of Linux distributions, probably most notable among them being [http://www.damnsmalllinux.org/ Damn Small Linux].<br />
<br />
"Fluxbox" 是一种漂亮的,高度可配置的桌面系统,它对系统资源要求不高却没有损失图形的吸引力。"Fluxbox" 是许多Linux发开版的默认窗口管理器,可能大部分都在[http://www.damnsmalllinux.org/ Damn Small Linux]上。<br />
<br />
<br />
<br />
Install Fluxbox with this command:<br />
<br />
<br />
用下面的命令安装Fluxbox:<br />
<br />
sudo aptitude install fluxbox fluxconf<br />
<br />
<br />
<br />
Once installed, you can start Fluxbox with the ''startfluxbox'' command. Remember, if you enjoy working with Fluxbox, you should consider [http://www.fluxbuntu.org Fluxbuntu] as an option.<br />
<br />
安装好以后,你可以用''startfluxbox''命令启动它。记住,如果你很喜欢使用Fluxbox,你可以考虑 [http://www.fluxbuntu.org Fluxbuntu] 作为一种选择。<br />
<br />
== FVWM-Crystal ==<br />
<br />
"FVWM-Crystal" is a complete set of configuration scripts which sit atop of FVWM. FVWM-Crystal has support for integrated access to music players, terminal emulators and system monitors. It boasts some of the finest eye candy available to low-end machines, and is a snap to install.<br />
<br />
"FVWM-Crystal" 是基于FVWM的一些配置脚本。"FVWM-Crystal" 支持对音乐播放器,终端和系统监视的集成访问。它号称是在低配置机器上可用的最漂亮的窗口管理器,并且它可以很快的安装。<br />
<br />
For more information about building an FVWM-Crystal desktop, check out the ["FVWM-Crystal"] page.<br />
<br />
想知道更多关于安装FVWM-Crystal桌面的的信息,请访问["FVWM-Crystal"]。<br />
<br />
== XFCE ==<br />
<br />
XFCE is heavier than any of the systems mentioned so far, but has some added functions as a result. You can try XFCE alone if you like, but if you're keen on an XFCE installation, look into [http://www.xubuntu.org Xubuntu] as an option.<br />
<br />
XFCE 相对于目前已经提到的轻量级窗口管理器来说都更“重”,但是是因为增加了一些应用的。如果你喜欢,你可以单独党旗XFCE,但如果你一定要安装XFCE,请查看 [http://www.xubuntu.org Xubuntu]。<br />
<br />
Install XFCE alone, without Xubuntu, with this command:<br />
<br />
单独安装XFCE,而不是Xubuntu,请用下面的命令:<br />
<br />
sudo aptitude install xfce4<br />
<br />
<br />
<br />
It's worth noting that some Edgy users have difficulty starting XFCE from a minimal install. The normal start command for XFCE -- ''startxfce4'' -- doesn't seem to be properly configured in Edgy.<br />
<br />
对于Edgy用户来讲,这是没有用的,从最小化安装启动XFCE是有困难的。XFCE的启动命令-- ''startxfce4'' -- 看起来好像在Edgy上没有配置好。<br />
<br />
If you want the entire Xubuntu package, which includes a full suite of software and a lot of improvements, try this command:<br />
<br />
如果你想要一个完全的包括了一些软件和一些改进的Xubuntu包,请用下面的命令:<br />
<br />
sudo aptitude install xubuntu-desktop<br />
<br />
<br />
<br />
That will download quite a large amount of packages; you may want to consider installing Xubuntu fresh, from the [http://www.xubuntu.org/get installation ISO].<br />
<br />
这将要下载很多的软件包;你可能想从 [http://www.xubuntu.org/get installation ISO]干净的安装Xubuntu。<br />
<br />
Note: Xubuntu will use more system resources and may not be optimal for a low memory system with limited disk space, but it is lighter than a standard Ubuntu system.<br />
<br />
''注意:'' Xubuntu 将会使用更多的系统资源,而且可能对于一个硬盘空间和内存都有限的系统来讲不是最好的选择,但是它比标准的Ubuntu系统“轻”。<br />
<br />
= 安装软件 =<br />
<br />
Now that the graphical window manager is set up, it's time to add some necessary and recommended packages. These will add additional functionality and make using the system easier. Additionally, adding a graphical package manager will provide an easy method to manage installed applications and packages.<br />
<br />
现在图形窗口管理器已经设置好了,现在可以安装一些必须或推荐的软件包。这些软件包将会加入一些新的功能,使系统更容易使用。另外,安装一个图形化的软件包管理器将会使管理已安装的应用和软件包变得容易。<br />
<br />
== 登录管理器 ==<br />
<br />
Login managers will assist in choosing a graphical environment and will not require the user to start x.org to get into the window manager.<br />
<br />
登录管理器将帮助我们选择一个图形环境,而且不需要用户启动X.org就可以进入窗口管理器。<br />
<br />
It's important to note that it's not necessary to use a login manager. If you're willing to log in at the command line and start X manually, you can save yourself a lot of system resources -- and the time it takes to load them. That can be a more appealing option on older machines.<br />
<br />
要说明的是登录管理器并不是必须的。如果你喜欢在命令行界面登录然后手动启动X,你能节约很多系统资源和启动它们的时间。对于老的机器来说可能更有吸引力。<br />
<br />
=== GDM ===<br />
<br />
GDM is the Ubuntu default for a login manager. However, GDM has a reputation of being a heavyweight, and on a system that needs as little bulk as possible, you might find it to be a burden. If you've got a decent system, install it using:<br />
<br />
GDM是Ubuntu默认的登陆管理器,它被认为是一个重量级的管理器,在系统中它需要比较多的资源,所以你可能会发现它是一个负担。如果你有一个很好的系统,用以下命令安装它:<br />
<br />
sudo aptitude install gdm<br />
<br />
<br />
<br />
=== KDM ===<br />
<br />
KDM is another manager, but has the same heavy reputation as GDM.<br />
<br />
KDM是另一种管理器,它和GDM一样被认为是重量级的管理器。用以下命令安装:<br />
<br />
sudo aptitude install kdm<br />
<br />
<br />
<br />
=== XDM ===<br />
<br />
XDM is the login manager for straight X, and while less beautiful than GDM or KDM, it can perform in the same role without fuss.<br />
<br />
XDM是纯粹的X的登录管理器,它没有GDM和KDM漂亮,但它能像GDM和KDM那样很好的工作。用以下命令安装:<br />
<br />
sudo aptitude install xdm<br />
<br />
<br />
<br />
== 浏览器 ==<br />
<br />
Now that your system is up and running, it would be a good idea to add an internet browser to surf the web and get some use out of the machine!<br />
<br />
现在你的系统已经在运行了,现在可以安装一个因特网浏览器来上网冲浪。<br />
<br />
=== Firefox ===<br />
<br />
Web browsers come in many flavors, and the most prevalent -- Firefox -- can be laggy on low-memory or slow systems. Even the GNU version of Firefox, [https://wiki.ubuntu.com/IceWeasel Iceweasel] can be a bit heavy on older machines. If you've got at least 128 mb of memory, Firefox should work just fine.<br />
<br />
Firefox是适用于很多Linux发行版,是最流行的浏览器。它对于低内存或者低速的系统来讲,可能有点难以应付。甚至是GNU版本的Firefox,[https://wiki.ubuntu.com/IceWeasel Iceweasel] 对于老的机器来讲也有些“重”。如果你有多于128mb的内存,Firefox可以运行的很好。用以下命令安装它:<br />
<br />
sudo aptitude install firefox <br />
<br />
<br />
<br />
=== Dillo ===<br />
<br />
While not nearly as full-featured as Firefox, Dillo has the advantages of a very small footprint and few resource requirements.<br />
<br />
不像Firefox那样具有完全的功能,Dillo的优点是有一个很小的脚印和很小的资源需求。用以下命令安装它:<br />
<br />
sudo aptitude install dillo<br />
<br />
<br />
<br />
== iDesk ==<br />
<br />
Many lightweight desktop systems use [http://idesk.sourceforge.net/ iDesk] as a way of including customized, clickable icons directly on the desktop. iDesk is maintained in the Ubuntu repositories, and is installable from the command line with:<br />
<br />
很多轻量级的桌面系统用[http://idesk.sourceforge.net/ iDesk]来配置和使桌面上的图标可以被直接点击。iDesk包含在Ubuntu的软件仓库中,可以用以下命令安装它:<br />
<br />
sudo aptitude install idesk<br />
<br />
<br />
<br />
Consult the [http://idesk.sourceforge.net/ iDesk wiki] for instructions on how to configure and use iDesk. For icon sets, you may wish to search the repositories, or download them from third-party customization sites, such as [http://www.gnome-look.org Gnome-Look.org] and similar locations.<br />
<br />
访问[http://idesk.sourceforge.net/ iDesk wiki]来获取配置和使用iDesk的命令。你可能要搜索软件仓库或从第三方的配置网站上下载图标,像[http://www.gnome-look.org Gnome-Look.org]及相似的网站。<br />
<br />
== 文件管理器 ==<br />
<br />
Lightweight systems have a number of options available for graphical file management. Thunar is the default file manager in Xubuntu and many XFCE-based systems; it is installable alone with this command:<br />
<br />
轻量级的系统有多种可用的图形文件管理器。Thunar是Xubuntu和很多基于XFCE默认的系统,可以使用下面的命令单独安装它:<br />
<br />
sudo aptitude install thunar<br />
<br />
<br />
<br />
XFE is an even lighter file manager, intended to mimic the Windows Explorer interface. It has very few dependencies and is very fast.<br />
<br />
XFE是一种更“轻”的文件管理器,它模仿了Windwos Explorer接口。它只依赖很少的软件包而且非常快。用下面命令安装它:<br />
<br />
sudo aptitude install xfe<br />
<br />
<br />
<br />
ROX-Filer is another file management program, which makes extensive use of drag-and-drop principles. It does appear to have a large number of dependencies however, which means installing it may entail more external packages than you wish. Install ROX-Filer with this command:<br />
<br />
ROX-Filer也是一种文件管理器,它扩展了drag-and-drop原理。它依赖很多的软件包,这就意味着它需要比你想像的要多的扩展软件包。用下面命令安装它:<br />
<br />
sudo aptitude install rox-filer<br />
<br />
<br />
<br />
Nautilus is the default file manager for Ubuntu. It requires some more resources, but it has a lot of useful features. It can manage your desktop, show a wallpaper and desktop icons, which are automatically created for new devices (e.g. USB flash drives). Install Nautilus using this command:<br />
<br />
Nautilus是Ubuntu默认的文件管理器。它需要更多的资源,但它具有很多有用的特性。它能管理你的桌面,显示桌面背景和桌面图标,对于新的设备它们都可以自动创建。用下面命令安装它:<br />
<br />
sudo apt-get install nautilus<br />
<br />
<br />
<br />
To use it together with a window manager, execute the following command or add it to your autostart script. For example, use $HOME/.icewm/startup for IceWM.<br />
<br />
要让它和窗口管理器一起工作,需执行以下命令或者把命令加入到自动启动脚本。例如:对于IceWM,加入$HOME/.icewm/startup文件。<br />
<br />
nautilus --no-default-window &amp; <br />
<br />
<br />
<br />
Some other popular file managers include<br />
<br />
其它一些浒的文件管理器有:<br />
<br />
* [http://pcmanfm.sourceforge.net/ PCManFM];<br />
* [http://packages.ubuntu.com/edgy/utils/mc Midnight Commander], [http://tuxcmd.sourceforge.net/ Tux Commander] and [http://packages.ubuntu.com/edgy/gnome/gnome-commander Gnome Commander] (which all resemble the old Norton Commander interface);<br />
* [http://packages.ubuntu.com/edgy/x11/xffm4-filemanager xffm4-filemanager];<br />
* [http://step.polymtl.ca/~coyote/xvfilemgr_main.html XVFilemgr];<br />
* and [http://packages.ubuntu.com/edgy/kde/dolphin Dolphin], which is a file manager aimed at KDE and Kubuntu.<br />
<br />
There are many others. Some are available through the repositories; others will require you to download and install them through another source. Experiment with different file managers to see which ones appeal to you.<br />
<br />
这里有很多其它的文件管理器。其中一些可以通过软件仓库安装,一些必须通过源码下载和安装。尝试不同的文件管理器,看哪些能够吸引你。<br />
<br />
== 软件包管理器 ==<br />
<br />
Add a graphical package manager to install, remove and upgrade software packages and to add repositories without using the command line. Synaptic package manager is the standard and can be installed with this command:<br />
<br />
安装一个图形化的软件包管理器来安装,删除和升级软件包和增加软件仓库,可以让你不需要使用命令。新立得软件包管理器是标准的软件包管理工具。可以用下面命令来安装:<br />
<br />
sudo aptitude install synaptic<br />
<br />
<br />
<br />
You can use the package manager to add a word processor, such as Abiword, and other productivity software.<br />
<br />
你可以用软件包管理器来安装字处理器,像Abiword,或是其它的软件。<br />
<br />
= 安装一个完整的轻量级系统 =<br />
<br />
Building on the ideas above, here are some complete graphical systems, installable through a single command line. Feel free to mix and match between these options.<br />
<br />
基于以上的想法,我们可以用一条命令来安装一个完整的图形系统。你可以自由的组合这些选项。<br />
<br />
'''Remember: If you are using Dapper or earlier, replace "xorg" with "x-window-system-core"'''<br />
<br />
'''记住:如果你是在用Dapper或是更早的版本,用"x-window-system-core"代替"xorg"。'''<br />
<br />
* IceWM as a window manager, plus GDM, Firefox, Abiword and the Synaptic package manager:<br />
<br />
* IceWM是窗口管理器,加上GDM,Firefox,Abiword和新立得软件包管理器。<br />
<br />
sudo aptitude install gdm xorg xterm icewm menu mozilla-firefox abiword synaptic<br />
<br />
<br />
<br />
* XFCE and Firefox, with Synaptic package manager and KDM as the login manager:<br />
<br />
* XFCE,Firefox,再加上新立得软件包管理器和登录管理器KDM。<br />
<br />
<br><br />
<br />
sudo aptitude install kdm xorg xfce4 firefox synaptic<br />
<br />
<br />
<br />
* Fluxbox with Dillo, and XDM as a login manager:<br />
<br />
* Fluxbox,Dillo,和XDM<br />
<br />
sudo aptitude install fluxbox xorg xdm dillo<br />
<br />
<br />
<br />
* Openbox with no login manager, XFE as the file manager and xfce4-terminal as an X terminal, as well as Openbox themes and the Tango icon set:<br />
<br />
Openbox,XFE和xfce4-terminal还有Openbox主题及Tango图标。<br />
<br />
sudo aptitude install openbox obconf openbox-themes xfe xfce4-terminal tango-icon-theme-extras xorg<br />
<br />
<br />
<br />
Remember to check the repositories for more ideas on software and applications!<br />
<br />
记得查看软件仓库来获得更多的关于软件和应用的想法。<br />
<br />
= 低配置的选择 =<br />
<br />
For a minimalistic system that does not require as much configuration, you can install the alternate window managers after installing a full K/X/Ubuntu system, thus preinstalling much of the required software but keeping the speed. However, installing a full system does require more system resources.<br />
<br />
对于一个很小的系统并不需要太多的配置,在安装完完整的K/X/Ubuntu系统后你可以安装另一种窗口管理器来替代它,这样就可以安装很多必要软件并且保证运行速度。然而安装一个完整的系统的确需要更多的系统资源。<br />
<br />
= 扩展链接 =<br />
<br />
* [http://www.fluxbuntu.org FluxBuntu]: An Ubuntu variant with Fluxbox as the default window manager. An excellent place to start for a Fluxbox-based system.<br />
* [http://www.ubuntulite.org UbuntuLite]: An early project to build a stripped-down version of Ubuntu aimed at low-end machines. The project also seems to have stalled.<br />
* [http://alecjw.googlepages.com/cubuntu-commandlineubuntu Cubuntu] is not a graphical system; Cubuntu is a full-featured ''command line'' system, suitable for computers that can't handle any of the above options -- such as early Pentium or perhaps even 486-grade machines with as little as 16Mb RAM. And don't be skeptical: Even without a graphic environment, a computer can perform a lot more tasks than you would expect. B)<br />
* [http://www.enlightenment.org/ Enlightenment] is another window manager, but it is still in development and requires additional steps to install. However, it is very lightweight and functional.<br />
* [http://www.thinkgos.com/ gOS] is an operating system based on Ubuntu, uses a customized version of Enlightenment as its window manager, and is able to run on some older systems.<br />
<br />
<br><br />
<br />
CategoryDocumentation</div>Convicehttps://wiki.ubuntu.org.cn/index.php?title=%E4%BD%8E%E9%85%8D%E7%BD%AE%E7%94%B5%E8%84%91%E5%AE%89%E8%A3%85&diff=74904低配置电脑安装2007-12-15T14:21:56Z<p>Convice:</p>
<hr />
<div>{{Copyedit translation|from=https://wiki.ubuntu.com/Installation/LowMemorySystems}}<br />
{{From|https://wiki.ubuntu.com/Installation/LowMemorySystems}}<br />
{{Translator|convice}}<br />
{{Languages|Installation/LowMemorySystems}}<br />
<br />
'''How to install Ubuntu on low memory systems'''<br />
(Pentium III and earlier machines, with 32-192 MB RAM).<br />
<br />
'''怎样在低内存的系统上安装Ubuntu(Pentium III或更早的,配有32-192MB内存的机器)'''<br />
<br />
==== 内存需求 ====<br />
<br />
Installing Ubuntu on any system requires at least 32Mb of memory: The text-based installer included with the alternate (install) CDs needs that much space to run reliably. Smaller memory configurations run into problems, and while not impossible, it can be very difficult to complete an installation with less than the minimum RAM requirement.<br />
<br />
在任何系统上安装Ubuntu至少需要32Mb内存:包含在alternate (install) CDs的基于字符的安装程序需要这些空间来可靠运行。更小的内存配置可能会遇到问题,虽然不是不可能,但如果内存小于最低的需求,要完成安装十分困难。<br />
<br />
Depending on the hardware requirements, you can expect a sparse Ubuntu system to boot to a graphical desktop on anywhere from 19Mb to 54Mb. That requirement will fluctuate with the system demands, and increase while the system is active. Swap space is crucial to low-memory machines, so don't be stingy when setting up your system.<br />
<br />
考虑硬件需求,你可以期望一个瘦小的Ubuntu系统在任何内存为19Mb到54Mb的电脑上启动并运行图形桌面。这个需求会随着系统的需求面浮动,当系统活跃的时候会增加。交换分区对于低内存的机器十分重要,所以当设置系统的时候别小器。<br />
<br />
==== 处理器 ====<br />
<br />
There is no practical speed requirement, although a slower processor will take more time to finish installing. Some Pentium machines will take hours to complete, simply because the CPU takes longer to finish. As a general benchmark, a 75Mhz machine finishes a command-line installation of Ubuntu 7.04 in about four hours, and a 120Mhz machine finishes in perhaps an hour less than that. 200Mhz and faster machines will see a still stronger improvement.<br />
<br />
对处理器的速度没有什么实际的需求,然而低速度的处理器将要花更多的时间来完成安装。仅仅是因为CPU花了太多的时间,一些Pentium机将要花费几个小时来完成安装。根据通常的基准测试,一台75Mhz的机器要4个小时来完成基于命令行的Ubuntu 7.04的安装,一台120Mhz的要比它少用一个小时。200Mhz或是更快的机器将会有更强的提升。<br />
<br />
If you do decide to install Ubuntu on a legacy machine, be patient. There will come times when you think the machine has stopped or is hung, when in fact it's still moving, albeit at a very slow rate.<br />
<br />
如果你决定在一台老的机器上安装Ubuntu,要有耐心。可能会出现好几次这样的情况:当你认为机器已经停止或挂起,其实它正在运行,虽然速度很慢。<br />
<br />
==== 磁盘空间需求 ====<br />
<br />
Disk space on an absolutely minimal installation can be reduced to as little as 500Mb. A fresh and clean server installation of Ubuntu 7.04 generally takes only 300Mb, although there will be minor variations on account of hardware differences.<br />
<br />
磁盘空间在绝对最小安装的情况下可以减少到500Mb。虽然对于不同的硬件会有很小的变化,一个干净的Ubuntu 7.04 服务器的安装通常只需要300Mb。<br />
<br />
==== 其它硬件上的考虑 ====<br />
<br />
These instructions assume you will have a working Internet connection and access to the [[UbuntuHelp:Repositories|universe and multiverse repositories]]. Configuring your hardware is not included on this page.<br />
<br />
这份指南假设你有一个可用的互联网连接并且可以访问[[UbuntuHelp:Repositories|universe and multiverse repositories]].它不包括对你硬件的配置。<br />
<br />
<br />
== 安装Ubuntu Server ==<br />
<br />
The server version of Ubuntu is a sparse command-line system, without any graphical elements. It's a text-only version of what lies underneath all the advanced graphical elements. It's also the starting point for a minimal installation.<br />
<br />
Ubuntu服务器版是一个精减的命令行系统,没有任何图形元素。它是一个位于高级图形元素之下的纯文本版本。它是我们最小化安装的起点。<br />
<br />
==== Ubuntu 6.06 ====<br />
<br />
To install a base system, boot from the alternate (install) CD and choose "Install a server."<br />
<br />
Follow the prompts to complete installation.<br />
<br />
启动alternate(install)CD,选择"Install a server"。按提示完成安装。<br />
<br />
==== Ubuntu 6.10, 7.04, 或 7.10 ====<br />
<br />
To install a base system, boot from the alternate (install) CD and choose "Install a command-line system."<br />
<br />
Follow the prompts to complete installation.<br />
<br />
启动alternate(install)CD,选择"Install a command-line system."。按提示完成安装。<br />
<br />
=== 增加软件仓库 ===<br />
<br />
==== 更改源 ====<br />
<br />
Once the server install is complete, you will probably want to edit your [[UbuntuHelp:Sources.list|UbuntuHelp:sources.list]] file.<br />
<br />
当安装好Ubuntu服务器版后,你可能需要编辑你的[[UbuntuHelp:Sources.list|UbuntuHelp:sources.list]]文件。<br />
<br />
sudo nano /etc/apt/sources.list<br />
<br />
Uncomment all official repositories by removing # at the beginning of the line. Do not uncomment the narrative portions of that file; in other words, where you see a double hash mark (##) leave those lines alone.<br />
<br />
删除每一行开始的#号来消除对官方软件仓库的注释。不要消除文件里描述部分的注释,即以两个#号(##)开始的行。<br />
<br />
==== 更新和升级你的系统 ====<br />
<br />
Now you should update your system. Return to the command line and type:<br />
<br />
现在你应该更新你的系统。回到命令行输入:<br />
<br />
sudo aptitude update<br />
<br />
It's probably also a good idea to upgrade your system at this point. Use this command to upgrade your system:<br />
<br />
这时升级你的系统也是个不错的主意。用这个命令升级你的系统。<br />
<br />
sudo aptitude upgrade (或者, 对于 Gutsy: sudo aptitude safe-upgrade)<br />
<br />
Now you should be ready to install a window manager and some programs.<br><br />
<br />
现在你已经准备好了来安装窗口管理器和一些程序。<br />
<br />
= 安装图形环境的准备工作 =<br />
<br />
The absolute minimum for any graphical environment is X.org<br />
<br />
最小的图形环境是X.org<br />
<br />
=== &nbsp; ===<br />
<br />
=== 安装X.org ===<br />
<br />
On Ubuntu Edgy (6.10), Feisty (7.04), and Gutsy (7.10), use the command:<br />
在 Ubuntu Edgy (6.10), Feisty (7.04), 和 Gutsy (7.10), 用下面的命令:<br />
<br />
sudo aptitude install xorg<br />
<br />
On Ubuntu Dapper (6.06), use the command:<br />
在 Ubuntu Dapper (6.06), 用下面的命令:<br />
<br />
sudo aptitude install x-window-system-core<br />
<br />
=== 启动X.org ===<br />
<br />
This package gives you the framework for an X session, complete with a variety of drivers and configuration files. Installing ''xorg'' (or ''x-window-system-core'') also triggers the self-configuration sequence, so when it finishes, your hardware should be ready to use, barring any errors or incompatibilities.<br />
通过一些驱动和配置文件,这个软件包给了你一个X对话的框架。安装“Xorg”或“x-window-system-core”还启动了自动配置队列,安装完成後,如果没有错误或不兼容,你的硬件应该已经可用了。<br />
<br />
It's important to note that installing ''xorg'' or ''x-window-system-core'' really doesn't leave you with much. You can start X at this point with this command:<br />
必须注意的是,安装“Xorg”或“x-window-system-core”不会给你很多。这时你可以用以下命令启动X:<br />
<br />
startx<br />
<br />
but without a window manager and some software, you probably won't get much done.<br />
<br />
但是没有窗口管理器和一些软件,你能做的很少。<br />
<br />
= 安装一个窗口管理器 =<br />
<br />
A window manager controls the placement and appearance of windows within a graphical user interface.<br />
<br />
窗口管理器通过图形用户界面控制窗口的位置有显示。<br />
<br />
There are many lightweight window managers that will give you better access to your system through the X layer. Each one has its own way of managing the desktop, and its own way of configuring themes and menus.<br />
<br />
有很多轻量级的窗口管理器可以使你更好的通过X层访问你的系统。每一种都有它们自己的方式来管理桌面,都有它们自己的方法来配置主题和菜单。<br />
<br />
== Openbox ==<br />
<br />
"Openbox" is one of the lightest, fastest window managers available, but can take some time to configure and set up. It has its origins in Blackbox, but newer versions are complete rewrites of the Blackbox code.<br />
<br />
"Openbox"是一种轻量级的快速的可用的窗口管理器,只是需要一些时间来安装和配置。它源于Blackbox,但是新版的全部重写了Blackbox的代码。<br />
<br />
Install Openbox with this command:<br />
用以下命令安装Openbox:<br />
<br />
sudo aptitude install openbox obconf openbox-themes<br />
<br />
<br />
These packages and their dependencies will allow you to build and configure an Openbox system, along with a choice of themes and some configuration options.<br />
<br />
这些软件包和它们的依赖软件包让你可以建立和配置Openbox系统,还有可选择的主题和一些配置选项。<br />
<br />
'''Note:''' Edgy (Ubuntu 6.10) users should note a small discrepancy in ''obconf'' that might prevent it from running. You can correct that with these commands ...<br />
<br />
'''注意:'''Edgy (Ubuntu 6.10)用户必须注意"obconf"一个可能会使其无法运行的小问题。你可以用下面的命令解决这个问题。<br />
<br />
cd /usr/lib<br />
sudo ln libobparser.so.0.4.0 libobparser.so.1<br />
sudo ln libobrender.so.0.4.0 libobrender.so.1<br />
sudo ldconfig -X<br />
<br />
<br />
Entering ''obconf'' in an X terminal window should now trigger the obconf dialogue.<br />
<br />
在X终端输入''obconf''将启动obconf对话。<br />
<br />
== IceWM ==<br />
<br />
"IceWM" has a very strong following as a good, clean, fast window manager that resembles a conventional "desktop" in many ways. Among many of its perks are themes that resemble the Windows XP desktop theme -- which may be appealing to you.<br />
<br />
"IceWM"很受欢迎,因为它是一个很好的,干净的,很快的窗口管理器,它还集成了一个可选择的桌面。在它的众多优点中有一个可能会吸引你:它集成了Windows XP桌面主题。<br />
<br />
Install IceWM with this command:<br />
<br />
用下面的命令安装IceWM:<br />
<br />
sudo aptitude install icewm iceconf icepref iceme icewm-themes<br />
<br />
<br />
When finished, you will have a number of configuration and menu options. You can start IceWM with the ''startx'' command.<br />
<br />
安装完成後,你将拥有一些配置和菜单选项。你可以用''startx''命令启动它。<br />
<br />
== Fluxbox ==<br />
<br />
"Fluxbox" is a beautiful, highly configurable desktop system that is easy on system resources without compromising on graphical appeal. Fluxbox is the default window manager for a number of Linux distributions, probably most notable among them being [http://www.damnsmalllinux.org/ Damn Small Linux].<br />
<br />
"Fluxbox" 是一种漂亮的,高度可配置的桌面系统,它对系统资源要求不高却没有损失图形的吸引力。"Fluxbox" 是许多Linux发开版的默认窗口管理器,可能大部分都在[http://www.damnsmalllinux.org/ Damn Small Linux]上。<br />
<br />
<br><br />
Install Fluxbox with this command:<br />
<br />
用下面的命令安装Fluxbox:<br />
<br />
sudo aptitude install fluxbox fluxconf<br />
<br />
<br />
Once installed, you can start Fluxbox with the ''startfluxbox'' command. Remember, if you enjoy working with Fluxbox, you should consider [http://www.fluxbuntu.org Fluxbuntu] as an option.<br />
<br />
安装好以後,你可以用''startfluxbox''命令启动它。记住,如果你很喜欢使用Fluxbox,你可以考虑 [http://www.fluxbuntu.org Fluxbuntu] 作为一种选择。<br />
<br />
== FVWM-Crystal ==<br />
<br />
"FVWM-Crystal" is a complete set of configuration scripts which sit atop of FVWM. FVWM-Crystal has support for integrated access to music players, terminal emulators and system monitors. It boasts some of the finest eye candy available to low-end machines, and is a snap to install.<br />
<br />
"FVWM-Crystal" 是基于FVWM的一些配置脚本。"FVWM-Crystal" 支持对音乐播放器,终端和系统监视的集成访问。它号称是在低配置机器上可用的最漂亮的窗口管理器,并且它可以很快的安装。<br />
<br />
For more information about building an FVWM-Crystal desktop, check out the ["FVWM-Crystal"] page.<br />
<br />
想知道更多关于安装FVWM-Crystal桌面的的信息,请访问["FVWM-Crystal"]。<br />
<br />
== XFCE ==<br />
<br />
XFCE is heavier than any of the systems mentioned so far, but has some added functions as a result. You can try XFCE alone if you like, but if you're keen on an XFCE installation, look into [http://www.xubuntu.org Xubuntu] as an option.<br />
<br />
XFCE 相对于目前已经提到的轻量级窗口管理器来说都更“重”,但是是因为增加了一些应用的。如果你喜欢,你可以单独党旗XFCE,但如果你一定要安装XFCE,请查看 [http://www.xubuntu.org Xubuntu]。<br />
<br />
Install XFCE alone, without Xubuntu, with this command:<br />
<br />
单独安装XFCE,而不是Xubuntu,请用下面的命令:<br />
<br />
sudo aptitude install xfce4<br />
<br />
<br />
It's worth noting that some Edgy users have difficulty starting XFCE from a minimal install. The normal start command for XFCE -- ''startxfce4'' -- doesn't seem to be properly configured in Edgy.<br />
<br />
对于Edgy用户来讲,这是没有用的,从最小化安装启动XFCE是有困难的。XFCE的启动命令-- ''startxfce4'' -- 看起来好像在Edgy上没有配置好。<br />
<br />
If you want the entire Xubuntu package, which includes a full suite of software and a lot of improvements, try this command:<br />
<br />
如果你想要一个完全的包括了一些软件和一些改进的Xubuntu包,请用下面的命令:<br />
<br />
sudo aptitude install xubuntu-desktop<br />
<br />
<br />
That will download quite a large amount of packages; you may want to consider installing Xubuntu fresh, from the [http://www.xubuntu.org/get installation ISO].<br />
<br />
这将要下载很多的软件包;你可能想从 [http://www.xubuntu.org/get installation ISO]干净的安装Xubuntu。<br />
<br />
Note: Xubuntu will use more system resources and may not be optimal for a low memory system with limited disk space, but it is lighter than a standard Ubuntu system.<br />
<br />
''注意:'' Xubuntu 将会使用更多的系统资源,而且可能对于一个硬盘空间和内存都有限的系统来讲不是最好的选择,但是它比标准的Ubuntu系统“轻”。<br />
<br />
= 安装软件 =<br />
<br />
Now that the graphical window manager is set up, it's time to add some necessary and recommended packages. These will add additional functionality and make using the system easier. Additionally, adding a graphical package manager will provide an easy method to manage installed applications and packages.<br />
<br />
现在图形窗口管理器已经设置好了,现在可以安装一些必须或推荐的软件包。这些软件包将会加入一些新的功能,使系统更容易使用。另外,安装一个图形化的软件包管理器将会使管理已安装的应用和软件包变得容易。<br />
<br />
== 登录管理器 ==<br />
<br />
Login managers will assist in choosing a graphical environment and will not require the user to start x.org to get into the window manager.<br />
<br />
登录管理器将帮助我们选择一个图形环境,而且不需要用户启动X.org就可以进入窗口管理器。<br />
<br />
It's important to note that it's not necessary to use a login manager. If you're willing to log in at the command line and start X manually, you can save yourself a lot of system resources -- and the time it takes to load them. That can be a more appealing option on older machines.<br />
<br />
要说明的是登录管理器并不是必须的。如果你喜欢在命令行界面登录然後手动启动X,你能节约很多系统资源和启动它们的时间。对于老的机器来说可能更有吸引力。<br />
<br />
=== GDM ===<br />
<br />
GDM is the Ubuntu default for a login manager. However, GDM has a reputation of being a heavyweight, and on a system that needs as little bulk as possible, you might find it to be a burden. If you've got a decent system, install it using:<br />
<br />
GDM是Ubuntu默认的登陆管理器,它被认为是一个重量级的管理器,在系统中它需要比较多的资源,所以你可能会发现它是一个负担。如果你有一个很好的系统,用以下命令安装它:<br />
<br />
sudo aptitude install gdm<br />
<br />
<br />
=== KDM ===<br />
<br />
KDM is another manager, but has the same heavy reputation as GDM.<br />
<br />
KDM是另一种管理器,它和GDM一样被认为是重量级的管理器。用以下命令安装:<br />
<br />
sudo aptitude install kdm<br />
<br />
<br />
=== XDM ===<br />
<br />
XDM is the login manager for straight X, and while less beautiful than GDM or KDM, it can perform in the same role without fuss.<br />
<br />
XDM是纯粹的X的登录管理器,它没有GDM和KDM漂亮,但它能像GDM和KDM那样很好的工作。用以下命令安装:<br />
<br />
sudo aptitude install xdm<br />
<br />
<br />
== 浏览器 ==<br />
<br />
Now that your system is up and running, it would be a good idea to add an internet browser to surf the web and get some use out of the machine!<br />
<br />
现在你的系统已经在运行了,现在可以安装一个因特网浏览器来上网冲浪。<br />
<br />
=== Firefox ===<br />
<br />
Web browsers come in many flavors, and the most prevalent -- Firefox -- can be laggy on low-memory or slow systems. Even the GNU version of Firefox, [https://wiki.ubuntu.com/IceWeasel Iceweasel] can be a bit heavy on older machines. If you've got at least 128 mb of memory, Firefox should work just fine.<br />
<br />
Firefox是适用于很多Linux发行版,是最流行的浏览器。它对于低内存或者低速的系统来讲,可能有点难以应付。甚至是GNU版本的Firefox,[https://wiki.ubuntu.com/IceWeasel Iceweasel] 对于老的机器来讲也有些“重”。如果你有多于128mb的内存,Firefox可以运行的很好。用以下命令安装它:<br />
<br />
sudo aptitude install firefox <br />
<br />
<br />
=== Dillo ===<br />
<br />
While not nearly as full-featured as Firefox, Dillo has the advantages of a very small footprint and few resource requirements.<br />
<br />
不像Firefox那样具有完全的功能,Dillo的优点是有一个很小的脚印和很小的资源需求。用以下命令安装它:<br />
<br />
sudo aptitude install dillo<br />
<br />
<br />
== iDesk ==<br />
<br />
Many lightweight desktop systems use [http://idesk.sourceforge.net/ iDesk] as a way of including customized, clickable icons directly on the desktop. iDesk is maintained in the Ubuntu repositories, and is installable from the command line with:<br />
<br />
很多轻量级的桌面系统用[http://idesk.sourceforge.net/ iDesk]来配置和使桌面上的图标可以被直接点击。iDesk包含在Ubuntu的软件仓库中,可以用以下命令安装它:<br />
<br />
sudo aptitude install idesk<br />
<br />
<br />
Consult the [http://idesk.sourceforge.net/ iDesk wiki] for instructions on how to configure and use iDesk. For icon sets, you may wish to search the repositories, or download them from third-party customization sites, such as [http://www.gnome-look.org Gnome-Look.org] and similar locations.<br />
<br />
访问[http://idesk.sourceforge.net/ iDesk wiki]来获取配置和使用iDesk的命令。你可能要搜索软件仓库或从第三方的配置网站上下载图标,像[http://www.gnome-look.org Gnome-Look.org]及相似的网站。<br />
<br />
== 文件管理器 ==<br />
<br />
Lightweight systems have a number of options available for graphical file management. Thunar is the default file manager in Xubuntu and many XFCE-based systems; it is installable alone with this command:<br />
<br />
轻量级的系统有多种可用的图形文件管理器。Thunar是Xubuntu和很多基于XFCE默认的系统,可以使用下面的命令单独安装它:<br />
<br />
sudo aptitude install thunar<br />
<br />
<br />
XFE is an even lighter file manager, intended to mimic the Windows Explorer interface. It has very few dependencies and is very fast.<br />
<br />
XFE是一种更“轻”的文件管理器,它模仿了Windwos Explorer接口。它只依赖很少的软件包而且非常快。用下面命令安装它:<br />
<br />
sudo aptitude install xfe<br />
<br />
<br />
ROX-Filer is another file management program, which makes extensive use of drag-and-drop principles. It does appear to have a large number of dependencies however, which means installing it may entail more external packages than you wish. Install ROX-Filer with this command:<br />
<br />
ROX-Filer也是一种文件管理器,它扩展了drag-and-drop原理。它依赖很多的软件包,这就意味着它需要比你想像的要多的扩展软件包。用下面命令安装它:<br />
<br />
sudo aptitude install rox-filer<br />
<br />
<br />
Nautilus is the default file manager for Ubuntu. It requires some more resources, but it has a lot of useful features. It can manage your desktop, show a wallpaper and desktop icons, which are automatically created for new devices (e.g. USB flash drives). Install Nautilus using this command:<br />
<br />
Nautilus是Ubuntu默认的文件管理器。它需要更多的资源,但它具有很多有用的特性。它能管理你的桌面,显示桌面背景和桌面图标,对于新的设备它们都可以自动创建。用下面命令安装它:<br />
<br />
sudo apt-get install nautilus<br />
<br />
<br />
To use it together with a window manager, execute the following command or add it to your autostart script. For example, use $HOME/.icewm/startup for IceWM.<br />
<br />
要让它和窗口管理器一起工作,需执行以下命令或者把命令加入到自动启动脚本。例如:对于IceWM,加入$HOME/.icewm/startup文件。<br />
<br />
nautilus --no-default-window &amp; <br />
<br />
<br />
Some other popular file managers include<br />
<br />
其它一些浒的文件管理器有:<br />
<br />
* [http://pcmanfm.sourceforge.net/ PCManFM];<br />
* [http://packages.ubuntu.com/edgy/utils/mc Midnight Commander], [http://tuxcmd.sourceforge.net/ Tux Commander] and [http://packages.ubuntu.com/edgy/gnome/gnome-commander Gnome Commander] (which all resemble the old Norton Commander interface);<br />
* [http://packages.ubuntu.com/edgy/x11/xffm4-filemanager xffm4-filemanager];<br />
* [http://step.polymtl.ca/~coyote/xvfilemgr_main.html XVFilemgr];<br />
* and [http://packages.ubuntu.com/edgy/kde/dolphin Dolphin], which is a file manager aimed at KDE and Kubuntu.<br />
<br />
There are many others. Some are available through the repositories; others will require you to download and install them through another source. Experiment with different file managers to see which ones appeal to you.<br />
<br />
这里有很多其它的文件管理器。其中一些可以通过软件仓库安装,一些必须通过源码下载和安装。尝试不同的文件管理器,看哪些能够吸引你。<br />
<br />
== 软件包管理器 ==<br />
<br />
Add a graphical package manager to install, remove and upgrade software packages and to add repositories without using the command line. Synaptic package manager is the standard and can be installed with this command:<br />
<br />
安装一个图形化的软件包管理器来安装,删除和升级软件包和增加软件仓库,可以让你不需要使用命令。新立得软件包管理器是标准的软件包管理工具。可以用下面命令来安装:<br />
<br />
sudo aptitude install synaptic<br />
<br />
<br />
You can use the package manager to add a word processor, such as Abiword, and other productivity software.<br />
<br />
你可以用软件包管理器来安装字处理器,像Abiword,或是其它的软件。<br />
<br />
= 安装一个完整的轻量级系统 =<br />
<br />
Building on the ideas above, here are some complete graphical systems, installable through a single command line. Feel free to mix and match between these options.<br />
<br />
基于以上的想法,我们可以用一条命令来安装一个完整的图形系统。你可以自由的组合这些选项。<br />
<br />
'''Remember: If you are using Dapper or earlier, replace "xorg" with "x-window-system-core"'''<br />
<br />
'''记住:如果你是在用Dapper或是更早的版本,用"x-window-system-core"代替"xorg"。'''<br />
<br />
* IceWM as a window manager, plus GDM, Firefox, Abiword and the Synaptic package manager:<br />
<br />
* IceWM是窗口管理器,加上GDM,Firefox,Abiword和新立得软件包管理器。<br />
<br />
sudo aptitude install gdm xorg xterm icewm menu mozilla-firefox abiword synaptic<br />
<br />
<br />
* XFCE and Firefox, with Synaptic package manager and KDM as the login manager:<br />
<br />
* XFCE,Firefox,再加上新立得软件包管理器和登录管理器KDM。<br />
<br />
<br><br />
<br />
sudo aptitude install kdm xorg xfce4 firefox synaptic<br />
<br />
<br />
* Fluxbox with Dillo, and XDM as a login manager:<br />
<br />
* Fluxbox,Dillo,和XDM<br />
<br />
sudo aptitude install fluxbox xorg xdm dillo<br />
<br />
<br />
* Openbox with no login manager, XFE as the file manager and xfce4-terminal as an X terminal, as well as Openbox themes and the Tango icon set:<br />
<br />
Openbox,XFE和xfce4-terminal还有Openbox主题及Tango图标。<br />
<br />
sudo aptitude install openbox obconf openbox-themes xfe xfce4-terminal tango-icon-theme-extras xorg<br />
<br />
<br />
Remember to check the repositories for more ideas on software and applications!<br />
<br />
记得查看软件仓库来获得更多的关于软件和应用的想法。<br />
<br />
= 低配置的选择 =<br />
<br />
For a minimalistic system that does not require as much configuration, you can install the alternate window managers after installing a full K/X/Ubuntu system, thus preinstalling much of the required software but keeping the speed. However, installing a full system does require more system resources.<br />
<br />
对于一个很小的系统并不需要太多的配置,在安装完完整的K/X/Ubuntu系统後你可以安装另一种窗口管理器来替代它,这样就可以安装很多必要软件并且保证运行速度。然而安装一个完整的系统的确需要更多的系统资源。<br />
<br />
= 扩展链接 =<br />
<br />
* [http://www.fluxbuntu.org FluxBuntu]: An Ubuntu variant with Fluxbox as the default window manager. An excellent place to start for a Fluxbox-based system.<br />
* [http://www.ubuntulite.org UbuntuLite]: An early project to build a stripped-down version of Ubuntu aimed at low-end machines. The project also seems to have stalled.<br />
* [http://alecjw.googlepages.com/cubuntu-commandlineubuntu Cubuntu] is not a graphical system; Cubuntu is a full-featured ''command line'' system, suitable for computers that can't handle any of the above options -- such as early Pentium or perhaps even 486-grade machines with as little as 16Mb RAM. And don't be skeptical: Even without a graphic environment, a computer can perform a lot more tasks than you would expect. B)<br />
* [http://www.enlightenment.org/ Enlightenment] is another window manager, but it is still in development and requires additional steps to install. However, it is very lightweight and functional.<br />
* [http://www.thinkgos.com/ gOS] is an operating system based on Ubuntu, uses a customized version of Enlightenment as its window manager, and is able to run on some older systems.<br />
<br />
<br><br />
<br />
CategoryDocumentation</div>Convicehttps://wiki.ubuntu.org.cn/index.php?title=%E4%BD%8E%E9%85%8D%E7%BD%AE%E7%94%B5%E8%84%91%E5%AE%89%E8%A3%85&diff=74902低配置电脑安装2007-12-15T14:19:53Z<p>Convice:</p>
<hr />
<div>{{Copyedit translation|from=https://wiki.ubuntu.com/Installation/LowMemorySystems}}<br />
{{From|https://wiki.ubuntu.com/Installation/LowMemorySystems}}<br />
{{Translator|convice}}<br />
{{Languages|Installation/LowMemorySystems}}<br />
<br />
'''How to install Ubuntu on low memory systems <br />
(Pentium III and earlier machines, with 32-192 MB RAM).'''<br />
<br />
'''怎样在低内存的系统上安装Ubuntu(Pentium III或更早的,配有32-192MB内存的机器)'''<br />
<br />
==== 内存需求 ====<br />
<br />
Installing Ubuntu on any system requires at least 32Mb of memory: The text-based installer included with the alternate (install) CDs needs that much space to run reliably. Smaller memory configurations run into problems, and while not impossible, it can be very difficult to complete an installation with less than the minimum RAM requirement.<br />
<br />
在任何系统上安装Ubuntu至少需要32Mb内存:包含在alternate (install) CDs的基于字符的安装程序需要这些空间来可靠运行。更小的内存配置可能会遇到问题,虽然不是不可能,但如果内存小于最低的需求,要完成安装十分困难。<br />
<br />
Depending on the hardware requirements, you can expect a sparse Ubuntu system to boot to a graphical desktop on anywhere from 19Mb to 54Mb. That requirement will fluctuate with the system demands, and increase while the system is active. Swap space is crucial to low-memory machines, so don't be stingy when setting up your system.<br />
<br />
考虑硬件需求,你可以期望一个瘦小的Ubuntu系统在任何内存为19Mb到54Mb的电脑上启动并运行图形桌面。这个需求会随着系统的需求面浮动,当系统活跃的时候会增加。交换分区对于低内存的机器十分重要,所以当设置系统的时候别小器。<br />
<br />
==== 处理器 ====<br />
<br />
There is no practical speed requirement, although a slower processor will take more time to finish installing. Some Pentium machines will take hours to complete, simply because the CPU takes longer to finish. As a general benchmark, a 75Mhz machine finishes a command-line installation of Ubuntu 7.04 in about four hours, and a 120Mhz machine finishes in perhaps an hour less than that. 200Mhz and faster machines will see a still stronger improvement.<br />
<br />
对处理器的速度没有什么实际的需求,然而低速度的处理器将要花更多的时间来完成安装。仅仅是因为CPU花了太多的时间,一些Pentium机将要花费几个小时来完成安装。根据通常的基准测试,一台75Mhz的机器要4个小时来完成基于命令行的Ubuntu 7.04的安装,一台120Mhz的要比它少用一个小时。200Mhz或是更快的机器将会有更强的提升。<br />
<br />
If you do decide to install Ubuntu on a legacy machine, be patient. There will come times when you think the machine has stopped or is hung, when in fact it's still moving, albeit at a very slow rate.<br />
<br />
如果你决定在一台老的机器上安装Ubuntu,要有耐心。可能会出现好几次这样的情况:当你认为机器已经停止或挂起,其实它正在运行,虽然速度很慢。<br />
<br />
====磁盘空间需求====<br />
Disk space on an absolutely minimal installation can be reduced to as little as 500Mb. A fresh and clean server installation of Ubuntu 7.04 generally takes only 300Mb, although there will be minor variations on account of hardware differences.<br />
<br />
磁盘空间在绝对最小安装的情况下可以减少到500Mb。虽然对于不同的硬件会有很小的变化,一个干净的Ubuntu 7.04 服务器的安装通常只需要300Mb。<br />
<br />
====其它硬件上的考虑====<br />
These instructions assume you will have a working Internet connection and access to the [[UbuntuHelp:Repositories| universe and multiverse repositories]]. Configuring your hardware is not included on this page.<br />
<br />
这份指南假设你有一个可用的互联网连接并且可以访问[[UbuntuHelp:Repositories| universe and multiverse repositories]].它不包括对你硬件的配置。<br />
<br />
<br />
<br />
== 安装Ubuntu Server ==<br />
<br />
The server version of Ubuntu is a sparse command-line system, without any graphical elements. It's a text-only version of what lies underneath all the advanced graphical elements. It's also the starting point for a minimal installation.<br />
<br />
Ubuntu服务器版是一个精减的命令行系统,没有任何图形元素。它是一个位于高级图形元素之下的纯文本版本。它是我们最小化安装的起点。<br />
<br />
==== Ubuntu 6.06 ====<br />
<br />
To install a base system, boot from the alternate (install) CD and choose "Install a server."<br />
<br />
Follow the prompts to complete installation.<br />
<br />
启动alternate(install)CD,选择"Install a server"。按提示完成安装。<br />
<br />
==== Ubuntu 6.10, 7.04, 或 7.10 ====<br />
<br />
To install a base system, boot from the alternate (install) CD and choose "Install a command-line system."<br />
<br />
Follow the prompts to complete installation.<br />
<br />
启动alternate(install)CD,选择"Install a command-line system."。按提示完成安装。<br />
<br />
=== 增加软件仓库 ===<br />
<br />
==== 更改源 ====<br />
<br />
Once the server install is complete, you will probably want to edit your [[UbuntuHelp:Sources.list|UbuntuHelp:sources.list]] file.<br />
<br />
当安装好Ubuntu服务器版後,你可能需要编辑你的[[UbuntuHelp:Sources.list|UbuntuHelp:sources.list]]文件。<br />
<br />
sudo nano /etc/apt/sources.list<br />
<br />
Uncomment all official repositories by removing # at the beginning of the line. Do not uncomment the narrative portions of that file; in other words, where you see a double hash mark (##) leave those lines alone.<br />
<br />
删除每一行开始的#号来消除对官方软件仓库的注释。不要消除文件里描述部分的注释,即以两个#号(##)开始的行。<br />
<br />
==== 更新和升级你的系统 ====<br />
<br />
Now you should update your system. Return to the command line and type: <br />
<br />
现在你应该更新你的系统。回到命令行输入:<br />
<br />
sudo aptitude update<br />
<br />
It's probably also a good idea to upgrade your system at this point. Use this command to upgrade your system: <br />
<br />
这时升级你的系统也是个不错的主意。用这个命令升级你的系统。<br />
<br />
sudo aptitude upgrade (或者, 对于 Gutsy: sudo aptitude safe-upgrade)<br />
<br />
Now you should be ready to install a window manager and some programs.<br><br />
<br />
现在你已经准备好了来安装窗口管理器和一些程序。<br />
<br />
=安装图形环境的准备工作=<br />
<br />
The absolute minimum for any graphical environment is X.org<br />
<br />
最小的图形环境是X.org<br />
<br />
=== &nbsp; ===<br />
<br />
===安装X.org===<br />
<br />
On Ubuntu Edgy (6.10), Feisty (7.04), and Gutsy (7.10), use the command:<br />
在 Ubuntu Edgy (6.10), Feisty (7.04), 和 Gutsy (7.10), 用下面的命令:<br />
<br />
sudo aptitude install xorg<br />
<br />
On Ubuntu Dapper (6.06), use the command:<br />
在 Ubuntu Dapper (6.06), 用下面的命令:<br />
<br />
sudo aptitude install x-window-system-core<br />
<br />
=== &nbsp; ===<br />
<br />
===启动X.org===<br />
<br />
This package gives you the framework for an X session, complete with a variety of drivers and configuration files. Installing ''xorg'' (or ''x-window-system-core'') also triggers the self-configuration sequence, so when it finishes, your hardware should be ready to use, barring any errors or incompatibilities.<br />
通过一些驱动和配置文件,这个软件包给了你一个X对话的框架。安装“Xorg”或“x-window-system-core”还启动了自动配置队列,安装完成后,如果没有错误或不兼容,你的硬件应该已经可用了。<br />
<br />
It's important to note that installing ''xorg'' or ''x-window-system-core'' really doesn't leave you with much. You can start X at this point with this command:<br />
必须注意的是,安装“Xorg”或“x-window-system-core”不会给你很多。这时你可以用以下命令启动X:<br />
<br />
startx<br />
<br />
but without a window manager and some software, you probably won't get much done.<br />
但是没有窗口管理器和一些软件,你能做的很少。<br />
<br />
= 安装一个窗口管理器=<br />
<br />
A window manager controls the placement and appearance of windows within a graphical user interface. <br />
<br />
窗口管理器通过图形用户界面控制窗口的位置有显示。<br />
<br />
There are many lightweight window managers that will give you better access to your system through the X layer. Each one has its own way of managing the desktop, and its own way of configuring themes and menus.<br />
<br />
有很多轻量级的窗口管理器可以使你更好的通过X层访问你的系统。每一种都有它们自己的方式来管理桌面,都有它们自己的方法来配置主题和菜单。<br />
<br />
== Openbox ==<br />
<br />
"Openbox" is one of the lightest, fastest window managers available, but can take some time to configure and set up. It has its origins in Blackbox, but newer versions are complete rewrites of the Blackbox code.<br />
<br />
"Openbox"是一种轻量级的快速的可用的窗口管理器,只是需要一些时间来安装和配置。它源于Blackbox,但是新版的全部重写了Blackbox的代码。<br />
<br />
Install Openbox with this command:<br />
用以下命令安装Openbox:<br />
<br />
sudo aptitude install openbox obconf openbox-themes<br />
<br />
These packages and their dependencies will allow you to build and configure an Openbox system, along with a choice of themes and some configuration options.<br />
<br />
这些软件包和它们的依赖软件包让你可以建立和配置Openbox系统,还有可选择的主题和一些配置选项。<br />
<br />
'''Note:''' Edgy (Ubuntu 6.10) users should note a small discrepancy in ''obconf'' that might prevent it from running. You can correct that with these commands ...<br />
<br />
'''注意:'''Edgy (Ubuntu 6.10)用户必须注意"obconf"一个可能会使其无法运行的小问题。你可以用下面的命令解决这个问题。<br />
<br />
cd /usr/lib<br />
sudo ln libobparser.so.0.4.0 libobparser.so.1<br />
sudo ln libobrender.so.0.4.0 libobrender.so.1<br />
sudo ldconfig -X<br />
<br />
Entering ''obconf'' in an X terminal window should now trigger the obconf dialogue.<br />
<br />
在X终端输入''obconf''将启动obconf对话。<br />
<br />
== IceWM ==<br />
<br />
"IceWM" has a very strong following as a good, clean, fast window manager that resembles a conventional "desktop" in many ways. Among many of its perks are themes that resemble the Windows XP desktop theme -- which may be appealing to you.<br />
<br />
"IceWM"很受欢迎,因为它是一个很好的,干净的,很快的窗口管理器,它还集成了一个可选择的桌面。在它的众多优点中有一个可能会吸引你:它集成了Windows XP桌面主题。<br />
<br />
Install IceWM with this command:<br />
<br />
用下面的命令安装IceWM:<br />
<br />
sudo aptitude install icewm iceconf icepref iceme icewm-themes<br />
<br />
When finished, you will have a number of configuration and menu options. You can start IceWM with the ''startx'' command.<br />
<br />
安装完成后,你将拥有一些配置和菜单选项。你可以用''startx''命令启动它。<br />
<br />
== Fluxbox ==<br />
<br />
"Fluxbox" is a beautiful, highly configurable desktop system that is easy on system resources without compromising on graphical appeal. Fluxbox is the default window manager for a number of Linux distributions, probably most notable among them being [http://www.damnsmalllinux.org/ Damn Small Linux].<br />
<br />
"Fluxbox" 是一种漂亮的,高度可配置的桌面系统,它对系统资源要求不高却没有损失图形的吸引力。"Fluxbox" 是许多Linux发开版的默认窗口管理器,可能大部分都在[http://www.damnsmalllinux.org/ Damn Small Linux]上。<br />
<br />
<br />
Install Fluxbox with this command:<br />
<br />
用下面的命令安装Fluxbox:<br />
<br />
sudo aptitude install fluxbox fluxconf<br />
<br />
Once installed, you can start Fluxbox with the ''startfluxbox'' command. Remember, if you enjoy working with Fluxbox, you should consider [http://www.fluxbuntu.org Fluxbuntu] as an option.<br />
<br />
安装好以后,你可以用''startfluxbox''命令启动它。记住,如果你很喜欢使用Fluxbox,你可以考虑 [http://www.fluxbuntu.org Fluxbuntu] 作为一种选择。<br />
<br />
== FVWM-Crystal ==<br />
<br />
"FVWM-Crystal" is a complete set of configuration scripts which sit atop of FVWM. FVWM-Crystal has support for integrated access to music players, terminal emulators and system monitors. It boasts some of the finest eye candy available to low-end machines, and is a snap to install.<br />
<br />
"FVWM-Crystal" 是基于FVWM的一些配置脚本。"FVWM-Crystal" 支持对音乐播放器,终端和系统监视的集成访问。它号称是在低配置机器上可用的最漂亮的窗口管理器,并且它可以很快的安装。<br />
<br />
For more information about building an FVWM-Crystal desktop, check out the ["FVWM-Crystal"] page.<br />
<br />
想知道更多关于安装FVWM-Crystal桌面的的信息,请访问["FVWM-Crystal"]。<br />
<br />
== XFCE ==<br />
<br />
XFCE is heavier than any of the systems mentioned so far, but has some added functions as a result. You can try XFCE alone if you like, but if you're keen on an XFCE installation, look into [http://www.xubuntu.org Xubuntu] as an option.<br />
<br />
XFCE 相对于目前已经提到的轻量级窗口管理器来说都更“重”,但是是因为增加了一些应用的。如果你喜欢,你可以单独党旗XFCE,但如果你一定要安装XFCE,请查看 [http://www.xubuntu.org Xubuntu]。<br />
<br />
Install XFCE alone, without Xubuntu, with this command:<br />
<br />
单独安装XFCE,而不是Xubuntu,请用下面的命令:<br />
<br />
sudo aptitude install xfce4<br />
<br />
It's worth noting that some Edgy users have difficulty starting XFCE from a minimal install. The normal start command for XFCE -- ''startxfce4'' -- doesn't seem to be properly configured in Edgy.<br />
<br />
对于Edgy用户来讲,这是没有用的,从最小化安装启动XFCE是有困难的。XFCE的启动命令-- ''startxfce4'' -- 看起来好像在Edgy上没有配置好。<br />
<br />
If you want the entire Xubuntu package, which includes a full suite of software and a lot of improvements, try this command:<br />
<br />
如果你想要一个完全的包括了一些软件和一些改进的Xubuntu包,请用下面的命令:<br />
<br />
sudo aptitude install xubuntu-desktop<br />
<br />
That will download quite a large amount of packages; you may want to consider installing Xubuntu fresh, from the [http://www.xubuntu.org/get installation ISO]. <br />
<br />
这将要下载很多的软件包;你可能想从 [http://www.xubuntu.org/get installation ISO]干净的安装Xubuntu。<br />
<br />
Note: Xubuntu will use more system resources and may not be optimal for a low memory system with limited disk space, but it is lighter than a standard Ubuntu system.<br />
<br />
''注意:'' Xubuntu 将会使用更多的系统资源,而且可能对于一个硬盘空间和内存都有限的系统来讲不是最好的选择,但是它比标准的Ubuntu系统“轻”。<br />
<br />
= 安装软件 =<br />
<br />
Now that the graphical window manager is set up, it's time to add some necessary and recommended packages. These will add additional functionality and make using the system easier. Additionally, adding a graphical package manager will provide an easy method to manage installed applications and packages.<br />
<br />
现在图形窗口管理器已经设置好了,现在可以安装一些必须或推荐的软件包。这些软件包将会加入一些新的功能,使系统更容易使用。另外,安装一个图形化的软件包管理器将会使管理已安装的应用和软件包变得容易。<br />
<br />
== 登录管理器 ==<br />
<br />
Login managers will assist in choosing a graphical environment and will not require the user to start x.org to get into the window manager. <br />
<br />
登录管理器将帮助我们选择一个图形环境,而且不需要用户启动X.org就可以进入窗口管理器。<br />
<br />
It's important to note that it's not necessary to use a login manager. If you're willing to log in at the command line and start X manually, you can save yourself a lot of system resources -- and the time it takes to load them. That can be a more appealing option on older machines.<br />
<br />
要说明的是登录管理器并不是必须的。如果你喜欢在命令行界面登录然后手动启动X,你能节约很多系统资源和启动它们的时间。对于老的机器来说可能更有吸引力。<br />
<br />
=== GDM ===<br />
<br />
GDM is the Ubuntu default for a login manager. However, GDM has a reputation of being a heavyweight, and on a system that needs as little bulk as possible, you might find it to be a burden. If you've got a decent system, install it using:<br />
<br />
GDM是Ubuntu默认的登陆管理器,它被认为是一个重量级的管理器,在系统中它需要比较多的资源,所以你可能会发现它是一个负担。如果你有一个很好的系统,用以下命令安装它:<br />
<br />
sudo aptitude install gdm<br />
<br />
=== KDM ===<br />
<br />
KDM is another manager, but has the same heavy reputation as GDM.<br />
<br />
KDM是另一种管理器,它和GDM一样被认为是重量级的管理器。用以下命令安装:<br />
<br />
sudo aptitude install kdm<br />
<br />
=== XDM ===<br />
<br />
XDM is the login manager for straight X, and while less beautiful than GDM or KDM, it can perform in the same role without fuss.<br />
<br />
XDM是纯粹的X的登录管理器,它没有GDM和KDM漂亮,但它能像GDM和KDM那样很好的工作。用以下命令安装:<br />
<br />
sudo aptitude install xdm<br />
<br />
== 浏览器 ==<br />
<br />
Now that your system is up and running, it would be a good idea to add an internet browser to surf the web and get some use out of the machine!<br />
<br />
现在你的系统已经在运行了,现在可以安装一个因特网浏览器来上网冲浪。<br />
<br />
=== Firefox ===<br />
Web browsers come in many flavors, and the most prevalent -- Firefox -- can be laggy on low-memory or slow systems. Even the GNU version of Firefox, [https://wiki.ubuntu.com/IceWeasel Iceweasel] can be a bit heavy on older machines. If you've got at least 128 mb of memory, Firefox should work just fine.<br />
<br />
Firefox是适用于很多Linux发行版,是最流行的浏览器。它对于低内存或者低速的系统来讲,可能有点难以应付。甚至是GNU版本的Firefox,[https://wiki.ubuntu.com/IceWeasel Iceweasel] 对于老的机器来讲也有些“重”。如果你有多于128mb的内存,Firefox可以运行的很好。用以下命令安装它:<br />
<br />
sudo aptitude install firefox <br />
<br />
=== Dillo ===<br />
<br />
While not nearly as full-featured as Firefox, Dillo has the advantages of a very small footprint and few resource requirements.<br />
<br />
不像Firefox那样具有完全的功能,Dillo的优点是有一个很小的脚印和很小的资源需求。用以下命令安装它:<br />
<br />
sudo aptitude install dillo<br />
<br />
== iDesk ==<br />
<br />
Many lightweight desktop systems use [http://idesk.sourceforge.net/ iDesk] as a way of including customized, clickable icons directly on the desktop. iDesk is maintained in the Ubuntu repositories, and is installable from the command line with:<br />
<br />
很多轻量级的桌面系统用[http://idesk.sourceforge.net/ iDesk]来配置和使桌面上的图标可以被直接点击。iDesk包含在Ubuntu的软件仓库中,可以用以下命令安装它:<br />
<br />
sudo aptitude install idesk<br />
<br />
Consult the [http://idesk.sourceforge.net/ iDesk wiki] for instructions on how to configure and use iDesk. For icon sets, you may wish to search the repositories, or download them from third-party customization sites, such as [http://www.gnome-look.org Gnome-Look.org] and similar locations.<br />
<br />
访问[http://idesk.sourceforge.net/ iDesk wiki]来获取配置和使用iDesk的命令。你可能要搜索软件仓库或从第三方的配置网站上下载图标,像[http://www.gnome-look.org Gnome-Look.org]及相似的网站。<br />
<br />
== 文件管理器 ==<br />
<br />
Lightweight systems have a number of options available for graphical file management. Thunar is the default file manager in Xubuntu and many XFCE-based systems; it is installable alone with this command:<br />
<br />
轻量级的系统有多种可用的图形文件管理器。Thunar是Xubuntu和很多基于XFCE默认的系统,可以使用下面的命令单独安装它:<br />
<br />
sudo aptitude install thunar<br />
<br />
XFE is an even lighter file manager, intended to mimic the Windows Explorer interface. It has very few dependencies and is very fast.<br />
<br />
XFE是一种更“轻”的文件管理器,它模仿了Windwos Explorer接口。它只依赖很少的软件包而且非常快。用下面命令安装它:<br />
<br />
sudo aptitude install xfe<br />
<br />
ROX-Filer is another file management program, which makes extensive use of drag-and-drop principles. It does appear to have a large number of dependencies however, which means installing it may entail more external packages than you wish. Install ROX-Filer with this command:<br />
<br />
ROX-Filer也是一种文件管理器,它扩展了drag-and-drop原理。它依赖很多的软件包,这就意味着它需要比你想像的要多的扩展软件包。用下面命令安装它:<br />
<br />
sudo aptitude install rox-filer<br />
<br />
Nautilus is the default file manager for Ubuntu. It requires some more resources, but it has a lot of useful features. It can manage your desktop, show a wallpaper and desktop icons, which are automatically created for new devices (e.g. USB flash drives). Install Nautilus using this command:<br />
<br />
Nautilus是Ubuntu默认的文件管理器。它需要更多的资源,但它具有很多有用的特性。它能管理你的桌面,显示桌面背景和桌面图标,对于新的设备它们都可以自动创建。用下面命令安装它:<br />
<br />
sudo apt-get install nautilus<br />
<br />
To use it together with a window manager, execute the following command or add it to your autostart script. For example, use $HOME/.icewm/startup for IceWM.<br />
<br />
要让它和窗口管理器一起工作,需执行以下命令或者把命令加入到自动启动脚本。例如:对于IceWM,加入$HOME/.icewm/startup文件。<br />
<br />
nautilus --no-default-window &amp; <br />
<br />
Some other popular file managers include<br />
<br />
其它一些浒的文件管理器有:<br />
<br />
* [http://pcmanfm.sourceforge.net/ PCManFM];<br />
* [http://packages.ubuntu.com/edgy/utils/mc Midnight Commander], [http://tuxcmd.sourceforge.net/ Tux Commander] and [http://packages.ubuntu.com/edgy/gnome/gnome-commander Gnome Commander] (which all resemble the old Norton Commander interface);<br />
* [http://packages.ubuntu.com/edgy/x11/xffm4-filemanager xffm4-filemanager];<br />
* [http://step.polymtl.ca/~coyote/xvfilemgr_main.html XVFilemgr];<br />
* and [http://packages.ubuntu.com/edgy/kde/dolphin Dolphin], which is a file manager aimed at KDE and Kubuntu.<br />
<br />
There are many others. Some are available through the repositories; others will require you to download and install them through another source. Experiment with different file managers to see which ones appeal to you.<br />
<br />
这里有很多其它的文件管理器。其中一些可以通过软件仓库安装,一些必须通过源码下载和安装。尝试不同的文件管理器,看哪些能够吸引你。<br />
<br />
== 软件包管理器 ==<br />
<br />
Add a graphical package manager to install, remove and upgrade software packages and to add repositories without using the command line. Synaptic package manager is the standard and can be installed with this command:<br />
<br />
安装一个图形化的软件包管理器来安装,删除和升级软件包和增加软件仓库,可以让你不需要使用命令。新立得软件包管理器是标准的软件包管理工具。可以用下面命令来安装:<br />
<br />
sudo aptitude install synaptic<br />
<br />
You can use the package manager to add a word processor, such as Abiword, and other productivity software.<br />
<br />
你可以用软件包管理器来安装字处理器,像Abiword,或是其它的软件。<br />
<br />
= 安装一个完整的轻量级系统 =<br />
<br />
Building on the ideas above, here are some complete graphical systems, installable through a single command line. Feel free to mix and match between these options.<br />
<br />
基于以上的想法,我们可以用一条命令来安装一个完整的图形系统。你可以自由的组合这些选项。<br />
<br />
'''Remember: If you are using Dapper or earlier, replace "xorg" with "x-window-system-core"'''<br />
<br />
'''记住:如果你是在用Dapper或是更早的版本,用"x-window-system-core"代替"xorg"。<br />
<br />
* IceWM as a window manager, plus GDM, Firefox, Abiword and the Synaptic package manager:<br />
<br />
*IceWM是窗口管理器,加上GDM,Firefox,Abiword和新立得软件包管理器。<br />
<br />
sudo aptitude install gdm xorg xterm icewm menu mozilla-firefox abiword synaptic<br />
<br />
* XFCE and Firefox, with Synaptic package manager and KDM as the login manager:<br />
<br />
*XFCE,Firefox,再加上新立得软件包管理器和登录管理器KDM。<br />
<br />
<br />
sudo aptitude install kdm xorg xfce4 firefox synaptic<br />
<br />
* Fluxbox with Dillo, and XDM as a login manager:<br />
<br />
*Fluxbox,Dillo,和XDM <br />
<br />
sudo aptitude install fluxbox xorg xdm dillo<br />
<br />
* Openbox with no login manager, XFE as the file manager and xfce4-terminal as an X terminal, as well as Openbox themes and the Tango icon set:<br />
<br />
Openbox,XFE和xfce4-terminal还有Openbox主题及Tango图标。<br />
<br />
sudo aptitude install openbox obconf openbox-themes xfe xfce4-terminal tango-icon-theme-extras xorg<br />
<br />
Remember to check the repositories for more ideas on software and applications!<br />
<br />
记得查看软件仓库来获得更多的关于软件和应用的想法。<br />
<br />
= 低配置的选择 =<br />
<br />
For a minimalistic system that does not require as much configuration, you can install the alternate window managers after installing a full K/X/Ubuntu system, thus preinstalling much of the required software but keeping the speed. However, installing a full system does require more system resources.<br />
<br />
对于一个很小的系统并不需要太多的配置,在安装完完整的K/X/Ubuntu系统后你可以安装另一种窗口管理器来替代它,这样就可以安装很多必要软件并且保证运行速度。然而安装一个完整的系统的确需要更多的系统资源。<br />
<br />
= 扩展链接 =<br />
<br />
* [http://www.fluxbuntu.org FluxBuntu]: An Ubuntu variant with Fluxbox as the default window manager. An excellent place to start for a Fluxbox-based system. <br />
* [http://www.ubuntulite.org UbuntuLite]: An early project to build a stripped-down version of Ubuntu aimed at low-end machines. The project also seems to have stalled.<br />
* [http://alecjw.googlepages.com/cubuntu-commandlineubuntu Cubuntu] is not a graphical system; Cubuntu is a full-featured ''command line'' system, suitable for computers that can't handle any of the above options -- such as early Pentium or perhaps even 486-grade machines with as little as 16Mb RAM. And don't be skeptical: Even without a graphic environment, a computer can perform a lot more tasks than you would expect. B)<br />
* [http://www.enlightenment.org/ Enlightenment] is another window manager, but it is still in development and requires additional steps to install. However, it is very lightweight and functional. <br />
* [http://www.thinkgos.com/ gOS] is an operating system based on Ubuntu, uses a customized version of Enlightenment as its window manager, and is able to run on some older systems.<br />
<br />
<br />
<br />
CategoryDocumentation</div>Convicehttps://wiki.ubuntu.org.cn/index.php?title=%E4%BD%8E%E9%85%8D%E7%BD%AE%E7%94%B5%E8%84%91%E5%AE%89%E8%A3%85&diff=74901低配置电脑安装2007-12-15T14:19:30Z<p>Convice:</p>
<hr />
<div>{{Copyedit translation|from=https://wiki.ubuntu.com/Installation/LowMemorySystems}}<br />
{{From|https://wiki.ubuntu.com/Installation/LowMemorySystems}}<br />
{{Translator|convice}}<br />
{{Languages|Installation/LowMemorySystems}}<br />
<br />
'''How to install Ubuntu on low memory systems <br />
(Pentium III and earlier machines, with 32-192 MB RAM).'''<br />
<br />
'''怎样在低内存的系统上安装Ubuntu(Pentium III或更早的,配有32-192MB内存的机器)'''<br />
<br />
==== 内存需求 ====<br />
<br />
Installing Ubuntu on any system requires at least 32Mb of memory: The text-based installer included with the alternate (install) CDs needs that much space to run reliably. Smaller memory configurations run into problems, and while not impossible, it can be very difficult to complete an installation with less than the minimum RAM requirement.<br />
<br />
在任何系统上安装Ubuntu至少需要32Mb内存:包含在alternate (install) CDs的基于字符的安装程序需要这些空间来可靠运行。更小的内存配置可能会遇到问题,虽然不是不可能,但如果内存小于最低的需求,要完成安装十分困难。<br />
<br />
Depending on the hardware requirements, you can expect a sparse Ubuntu system to boot to a graphical desktop on anywhere from 19Mb to 54Mb. That requirement will fluctuate with the system demands, and increase while the system is active. Swap space is crucial to low-memory machines, so don't be stingy when setting up your system.<br />
<br />
考虑硬件需求,你可以期望一个瘦小的Ubuntu系统在任何内存为19Mb到54Mb的电脑上启动并运行图形桌面。这个需求会随着系统的需求面浮动,当系统活跃的时候会增加。交换分区对于低内存的机器十分重要,所以当设置系统的时候别小器。<br />
<br />
==== 处理器 ====<br />
<br />
There is no practical speed requirement, although a slower processor will take more time to finish installing. Some Pentium machines will take hours to complete, simply because the CPU takes longer to finish. As a general benchmark, a 75Mhz machine finishes a command-line installation of Ubuntu 7.04 in about four hours, and a 120Mhz machine finishes in perhaps an hour less than that. 200Mhz and faster machines will see a still stronger improvement.<br />
<br />
对处理器的速度没有什么实际的需求,然而低速度的处理器将要花更多的时间来完成安装。仅仅是因为CPU花了太多的时间,一些Pentium机将要花费几个小时来完成安装。根据通常的基准测试,一台75Mhz的机器要4个小时来完成基于命令行的Ubuntu 7.04的安装,一台120Mhz的要比它少用一个小时。200Mhz或是更快的机器将会有更强的提升。<br />
<br />
If you do decide to install Ubuntu on a legacy machine, be patient. There will come times when you think the machine has stopped or is hung, when in fact it's still moving, albeit at a very slow rate.<br />
<br />
如果你决定在一台老的机器上安装Ubuntu,要有耐心。可能会出现好几次这样的情况:当你认为机器已经停止或挂起,其实它正在运行,虽然速度很慢。<br />
<br />
====磁盘空间需求====<br />
Disk space on an absolutely minimal installation can be reduced to as little as 500Mb. A fresh and clean server installation of Ubuntu 7.04 generally takes only 300Mb, although there will be minor variations on account of hardware differences.<br />
<br />
磁盘空间在绝对最小安装的情况下可以减少到500Mb。虽然对于不同的硬件会有很小的变化,一个干净的Ubuntu 7.04 服务器的安装通常只需要300Mb。<br />
<br />
====其它硬件上的考虑====<br />
These instructions assume you will have a working Internet connection and access to the [[UbuntuHelp:Repositories| universe and multiverse repositories]]. Configuring your hardware is not included on this page.<br />
<br />
这份指南假设你有一个可用的互联网连接并且可以访问[[UbuntuHelp:Repositories| universe and multiverse repositories]].它不包括对你硬件的配置。<br />
<br />
<br />
<br />
== 安装Ubuntu Server ==<br />
<br />
The server version of Ubuntu is a sparse command-line system, without any graphical elements. It's a text-only version of what lies underneath all the advanced graphical elements. It's also the starting point for a minimal installation.<br />
<br />
Ubuntu服务器版是一个精减的命令行系统,没有任何图形元素。它是一个位于高级图形元素之下的纯文本版本。它是我们最小化安装的起点。<br />
<br />
==== Ubuntu 6.06 ====<br />
<br />
To install a base system, boot from the alternate (install) CD and choose "Install a server."<br />
<br />
Follow the prompts to complete installation.<br />
<br />
启动alternate(install)CD,选择"Install a server"。按提示完成安装。<br />
<br />
==== Ubuntu 6.10, 7.04, 或 7.10 ====<br />
<br />
To install a base system, boot from the alternate (install) CD and choose "Install a command-line system."<br />
<br />
Follow the prompts to complete installation.<br />
<br />
启动alternate(install)CD,选择"Install a command-line system."。按提示完成安装。<br />
<br />
=== 增加软件仓库 ===<br />
<br />
==== 更改源 ====<br />
<br />
Once the server install is complete, you will probably want to edit your [[UbuntuHelp:Sources.list|UbuntuHelp:sources.list]] file.<br />
<br />
当安装好Ubuntu服务器版後,你可能需要编辑你的[[UbuntuHelp:Sources.list|UbuntuHelp:sources.list]]文件。<br />
<br />
sudo nano /etc/apt/sources.list<br />
<br />
Uncomment all official repositories by removing # at the beginning of the line. Do not uncomment the narrative portions of that file; in other words, where you see a double hash mark (##) leave those lines alone.<br />
<br />
删除每一行开始的#号来消除对官方软件仓库的注释。不要消除文件里描述部分的注释,即以两个#号(##)开始的行。<br />
<br />
==== 更新和升级你的系统 ====<br />
<br />
Now you should update your system. Return to the command line and type: <br />
<br />
现在你应该更新你的系统。回到命令行输入:<br />
<br />
sudo aptitude update<br />
<br />
It's probably also a good idea to upgrade your system at this point. Use this command to upgrade your system: <br />
<br />
这时升级你的系统也是个不错的主意。用这个命令升级你的系统。<br />
<br />
sudo aptitude upgrade (或者, 对于 Gutsy: sudo aptitude safe-upgrade)<br />
<br />
Now you should be ready to install a window manager and some programs.<br><br />
<br />
现在你已经准备好了来安装窗口管理器和一些程序。<br />
<br />
=安装图形环境的准备工作=<br />
<br />
The absolute minimum for any graphical environment is X.org<br />
<br />
最小的图形环境是X.org<br />
<br />
=== &nbsp; ===<br />
<br />
===安装X.org===<br />
<br />
On Ubuntu Edgy (6.10), Feisty (7.04), and Gutsy (7.10), use the command:<br />
在 Ubuntu Edgy (6.10), Feisty (7.04), 和 Gutsy (7.10), 用下面的命令:<br />
<br />
sudo aptitude install xorg<br />
<br />
On Ubuntu Dapper (6.06), use the command:<br />
在 Ubuntu Dapper (6.06), 用下面的命令:<br />
<br />
sudo aptitude install x-window-system-core<br />
<br />
=== Starting X.org ===<br />
===启动X.org===<br />
<br />
This package gives you the framework for an X session, complete with a variety of drivers and configuration files. Installing ''xorg'' (or ''x-window-system-core'') also triggers the self-configuration sequence, so when it finishes, your hardware should be ready to use, barring any errors or incompatibilities.<br />
通过一些驱动和配置文件,这个软件包给了你一个X对话的框架。安装“Xorg”或“x-window-system-core”还启动了自动配置队列,安装完成后,如果没有错误或不兼容,你的硬件应该已经可用了。<br />
<br />
It's important to note that installing ''xorg'' or ''x-window-system-core'' really doesn't leave you with much. You can start X at this point with this command:<br />
必须注意的是,安装“Xorg”或“x-window-system-core”不会给你很多。这时你可以用以下命令启动X:<br />
<br />
startx<br />
<br />
but without a window manager and some software, you probably won't get much done.<br />
但是没有窗口管理器和一些软件,你能做的很少。<br />
<br />
= 安装一个窗口管理器=<br />
<br />
A window manager controls the placement and appearance of windows within a graphical user interface. <br />
<br />
窗口管理器通过图形用户界面控制窗口的位置有显示。<br />
<br />
There are many lightweight window managers that will give you better access to your system through the X layer. Each one has its own way of managing the desktop, and its own way of configuring themes and menus.<br />
<br />
有很多轻量级的窗口管理器可以使你更好的通过X层访问你的系统。每一种都有它们自己的方式来管理桌面,都有它们自己的方法来配置主题和菜单。<br />
<br />
== Openbox ==<br />
<br />
"Openbox" is one of the lightest, fastest window managers available, but can take some time to configure and set up. It has its origins in Blackbox, but newer versions are complete rewrites of the Blackbox code.<br />
<br />
"Openbox"是一种轻量级的快速的可用的窗口管理器,只是需要一些时间来安装和配置。它源于Blackbox,但是新版的全部重写了Blackbox的代码。<br />
<br />
Install Openbox with this command:<br />
用以下命令安装Openbox:<br />
<br />
sudo aptitude install openbox obconf openbox-themes<br />
<br />
These packages and their dependencies will allow you to build and configure an Openbox system, along with a choice of themes and some configuration options.<br />
<br />
这些软件包和它们的依赖软件包让你可以建立和配置Openbox系统,还有可选择的主题和一些配置选项。<br />
<br />
'''Note:''' Edgy (Ubuntu 6.10) users should note a small discrepancy in ''obconf'' that might prevent it from running. You can correct that with these commands ...<br />
<br />
'''注意:'''Edgy (Ubuntu 6.10)用户必须注意"obconf"一个可能会使其无法运行的小问题。你可以用下面的命令解决这个问题。<br />
<br />
cd /usr/lib<br />
sudo ln libobparser.so.0.4.0 libobparser.so.1<br />
sudo ln libobrender.so.0.4.0 libobrender.so.1<br />
sudo ldconfig -X<br />
<br />
Entering ''obconf'' in an X terminal window should now trigger the obconf dialogue.<br />
<br />
在X终端输入''obconf''将启动obconf对话。<br />
<br />
== IceWM ==<br />
<br />
"IceWM" has a very strong following as a good, clean, fast window manager that resembles a conventional "desktop" in many ways. Among many of its perks are themes that resemble the Windows XP desktop theme -- which may be appealing to you.<br />
<br />
"IceWM"很受欢迎,因为它是一个很好的,干净的,很快的窗口管理器,它还集成了一个可选择的桌面。在它的众多优点中有一个可能会吸引你:它集成了Windows XP桌面主题。<br />
<br />
Install IceWM with this command:<br />
<br />
用下面的命令安装IceWM:<br />
<br />
sudo aptitude install icewm iceconf icepref iceme icewm-themes<br />
<br />
When finished, you will have a number of configuration and menu options. You can start IceWM with the ''startx'' command.<br />
<br />
安装完成后,你将拥有一些配置和菜单选项。你可以用''startx''命令启动它。<br />
<br />
== Fluxbox ==<br />
<br />
"Fluxbox" is a beautiful, highly configurable desktop system that is easy on system resources without compromising on graphical appeal. Fluxbox is the default window manager for a number of Linux distributions, probably most notable among them being [http://www.damnsmalllinux.org/ Damn Small Linux].<br />
<br />
"Fluxbox" 是一种漂亮的,高度可配置的桌面系统,它对系统资源要求不高却没有损失图形的吸引力。"Fluxbox" 是许多Linux发开版的默认窗口管理器,可能大部分都在[http://www.damnsmalllinux.org/ Damn Small Linux]上。<br />
<br />
<br />
Install Fluxbox with this command:<br />
<br />
用下面的命令安装Fluxbox:<br />
<br />
sudo aptitude install fluxbox fluxconf<br />
<br />
Once installed, you can start Fluxbox with the ''startfluxbox'' command. Remember, if you enjoy working with Fluxbox, you should consider [http://www.fluxbuntu.org Fluxbuntu] as an option.<br />
<br />
安装好以后,你可以用''startfluxbox''命令启动它。记住,如果你很喜欢使用Fluxbox,你可以考虑 [http://www.fluxbuntu.org Fluxbuntu] 作为一种选择。<br />
<br />
== FVWM-Crystal ==<br />
<br />
"FVWM-Crystal" is a complete set of configuration scripts which sit atop of FVWM. FVWM-Crystal has support for integrated access to music players, terminal emulators and system monitors. It boasts some of the finest eye candy available to low-end machines, and is a snap to install.<br />
<br />
"FVWM-Crystal" 是基于FVWM的一些配置脚本。"FVWM-Crystal" 支持对音乐播放器,终端和系统监视的集成访问。它号称是在低配置机器上可用的最漂亮的窗口管理器,并且它可以很快的安装。<br />
<br />
For more information about building an FVWM-Crystal desktop, check out the ["FVWM-Crystal"] page.<br />
<br />
想知道更多关于安装FVWM-Crystal桌面的的信息,请访问["FVWM-Crystal"]。<br />
<br />
== XFCE ==<br />
<br />
XFCE is heavier than any of the systems mentioned so far, but has some added functions as a result. You can try XFCE alone if you like, but if you're keen on an XFCE installation, look into [http://www.xubuntu.org Xubuntu] as an option.<br />
<br />
XFCE 相对于目前已经提到的轻量级窗口管理器来说都更“重”,但是是因为增加了一些应用的。如果你喜欢,你可以单独党旗XFCE,但如果你一定要安装XFCE,请查看 [http://www.xubuntu.org Xubuntu]。<br />
<br />
Install XFCE alone, without Xubuntu, with this command:<br />
<br />
单独安装XFCE,而不是Xubuntu,请用下面的命令:<br />
<br />
sudo aptitude install xfce4<br />
<br />
It's worth noting that some Edgy users have difficulty starting XFCE from a minimal install. The normal start command for XFCE -- ''startxfce4'' -- doesn't seem to be properly configured in Edgy.<br />
<br />
对于Edgy用户来讲,这是没有用的,从最小化安装启动XFCE是有困难的。XFCE的启动命令-- ''startxfce4'' -- 看起来好像在Edgy上没有配置好。<br />
<br />
If you want the entire Xubuntu package, which includes a full suite of software and a lot of improvements, try this command:<br />
<br />
如果你想要一个完全的包括了一些软件和一些改进的Xubuntu包,请用下面的命令:<br />
<br />
sudo aptitude install xubuntu-desktop<br />
<br />
That will download quite a large amount of packages; you may want to consider installing Xubuntu fresh, from the [http://www.xubuntu.org/get installation ISO]. <br />
<br />
这将要下载很多的软件包;你可能想从 [http://www.xubuntu.org/get installation ISO]干净的安装Xubuntu。<br />
<br />
Note: Xubuntu will use more system resources and may not be optimal for a low memory system with limited disk space, but it is lighter than a standard Ubuntu system.<br />
<br />
''注意:'' Xubuntu 将会使用更多的系统资源,而且可能对于一个硬盘空间和内存都有限的系统来讲不是最好的选择,但是它比标准的Ubuntu系统“轻”。<br />
<br />
= 安装软件 =<br />
<br />
Now that the graphical window manager is set up, it's time to add some necessary and recommended packages. These will add additional functionality and make using the system easier. Additionally, adding a graphical package manager will provide an easy method to manage installed applications and packages.<br />
<br />
现在图形窗口管理器已经设置好了,现在可以安装一些必须或推荐的软件包。这些软件包将会加入一些新的功能,使系统更容易使用。另外,安装一个图形化的软件包管理器将会使管理已安装的应用和软件包变得容易。<br />
<br />
== 登录管理器 ==<br />
<br />
Login managers will assist in choosing a graphical environment and will not require the user to start x.org to get into the window manager. <br />
<br />
登录管理器将帮助我们选择一个图形环境,而且不需要用户启动X.org就可以进入窗口管理器。<br />
<br />
It's important to note that it's not necessary to use a login manager. If you're willing to log in at the command line and start X manually, you can save yourself a lot of system resources -- and the time it takes to load them. That can be a more appealing option on older machines.<br />
<br />
要说明的是登录管理器并不是必须的。如果你喜欢在命令行界面登录然后手动启动X,你能节约很多系统资源和启动它们的时间。对于老的机器来说可能更有吸引力。<br />
<br />
=== GDM ===<br />
<br />
GDM is the Ubuntu default for a login manager. However, GDM has a reputation of being a heavyweight, and on a system that needs as little bulk as possible, you might find it to be a burden. If you've got a decent system, install it using:<br />
<br />
GDM是Ubuntu默认的登陆管理器,它被认为是一个重量级的管理器,在系统中它需要比较多的资源,所以你可能会发现它是一个负担。如果你有一个很好的系统,用以下命令安装它:<br />
<br />
sudo aptitude install gdm<br />
<br />
=== KDM ===<br />
<br />
KDM is another manager, but has the same heavy reputation as GDM.<br />
<br />
KDM是另一种管理器,它和GDM一样被认为是重量级的管理器。用以下命令安装:<br />
<br />
sudo aptitude install kdm<br />
<br />
=== XDM ===<br />
<br />
XDM is the login manager for straight X, and while less beautiful than GDM or KDM, it can perform in the same role without fuss.<br />
<br />
XDM是纯粹的X的登录管理器,它没有GDM和KDM漂亮,但它能像GDM和KDM那样很好的工作。用以下命令安装:<br />
<br />
sudo aptitude install xdm<br />
<br />
== 浏览器 ==<br />
<br />
Now that your system is up and running, it would be a good idea to add an internet browser to surf the web and get some use out of the machine!<br />
<br />
现在你的系统已经在运行了,现在可以安装一个因特网浏览器来上网冲浪。<br />
<br />
=== Firefox ===<br />
Web browsers come in many flavors, and the most prevalent -- Firefox -- can be laggy on low-memory or slow systems. Even the GNU version of Firefox, [https://wiki.ubuntu.com/IceWeasel Iceweasel] can be a bit heavy on older machines. If you've got at least 128 mb of memory, Firefox should work just fine.<br />
<br />
Firefox是适用于很多Linux发行版,是最流行的浏览器。它对于低内存或者低速的系统来讲,可能有点难以应付。甚至是GNU版本的Firefox,[https://wiki.ubuntu.com/IceWeasel Iceweasel] 对于老的机器来讲也有些“重”。如果你有多于128mb的内存,Firefox可以运行的很好。用以下命令安装它:<br />
<br />
sudo aptitude install firefox <br />
<br />
=== Dillo ===<br />
<br />
While not nearly as full-featured as Firefox, Dillo has the advantages of a very small footprint and few resource requirements.<br />
<br />
不像Firefox那样具有完全的功能,Dillo的优点是有一个很小的脚印和很小的资源需求。用以下命令安装它:<br />
<br />
sudo aptitude install dillo<br />
<br />
== iDesk ==<br />
<br />
Many lightweight desktop systems use [http://idesk.sourceforge.net/ iDesk] as a way of including customized, clickable icons directly on the desktop. iDesk is maintained in the Ubuntu repositories, and is installable from the command line with:<br />
<br />
很多轻量级的桌面系统用[http://idesk.sourceforge.net/ iDesk]来配置和使桌面上的图标可以被直接点击。iDesk包含在Ubuntu的软件仓库中,可以用以下命令安装它:<br />
<br />
sudo aptitude install idesk<br />
<br />
Consult the [http://idesk.sourceforge.net/ iDesk wiki] for instructions on how to configure and use iDesk. For icon sets, you may wish to search the repositories, or download them from third-party customization sites, such as [http://www.gnome-look.org Gnome-Look.org] and similar locations.<br />
<br />
访问[http://idesk.sourceforge.net/ iDesk wiki]来获取配置和使用iDesk的命令。你可能要搜索软件仓库或从第三方的配置网站上下载图标,像[http://www.gnome-look.org Gnome-Look.org]及相似的网站。<br />
<br />
== 文件管理器 ==<br />
<br />
Lightweight systems have a number of options available for graphical file management. Thunar is the default file manager in Xubuntu and many XFCE-based systems; it is installable alone with this command:<br />
<br />
轻量级的系统有多种可用的图形文件管理器。Thunar是Xubuntu和很多基于XFCE默认的系统,可以使用下面的命令单独安装它:<br />
<br />
sudo aptitude install thunar<br />
<br />
XFE is an even lighter file manager, intended to mimic the Windows Explorer interface. It has very few dependencies and is very fast.<br />
<br />
XFE是一种更“轻”的文件管理器,它模仿了Windwos Explorer接口。它只依赖很少的软件包而且非常快。用下面命令安装它:<br />
<br />
sudo aptitude install xfe<br />
<br />
ROX-Filer is another file management program, which makes extensive use of drag-and-drop principles. It does appear to have a large number of dependencies however, which means installing it may entail more external packages than you wish. Install ROX-Filer with this command:<br />
<br />
ROX-Filer也是一种文件管理器,它扩展了drag-and-drop原理。它依赖很多的软件包,这就意味着它需要比你想像的要多的扩展软件包。用下面命令安装它:<br />
<br />
sudo aptitude install rox-filer<br />
<br />
Nautilus is the default file manager for Ubuntu. It requires some more resources, but it has a lot of useful features. It can manage your desktop, show a wallpaper and desktop icons, which are automatically created for new devices (e.g. USB flash drives). Install Nautilus using this command:<br />
<br />
Nautilus是Ubuntu默认的文件管理器。它需要更多的资源,但它具有很多有用的特性。它能管理你的桌面,显示桌面背景和桌面图标,对于新的设备它们都可以自动创建。用下面命令安装它:<br />
<br />
sudo apt-get install nautilus<br />
<br />
To use it together with a window manager, execute the following command or add it to your autostart script. For example, use $HOME/.icewm/startup for IceWM.<br />
<br />
要让它和窗口管理器一起工作,需执行以下命令或者把命令加入到自动启动脚本。例如:对于IceWM,加入$HOME/.icewm/startup文件。<br />
<br />
nautilus --no-default-window &amp; <br />
<br />
Some other popular file managers include<br />
<br />
其它一些浒的文件管理器有:<br />
<br />
* [http://pcmanfm.sourceforge.net/ PCManFM];<br />
* [http://packages.ubuntu.com/edgy/utils/mc Midnight Commander], [http://tuxcmd.sourceforge.net/ Tux Commander] and [http://packages.ubuntu.com/edgy/gnome/gnome-commander Gnome Commander] (which all resemble the old Norton Commander interface);<br />
* [http://packages.ubuntu.com/edgy/x11/xffm4-filemanager xffm4-filemanager];<br />
* [http://step.polymtl.ca/~coyote/xvfilemgr_main.html XVFilemgr];<br />
* and [http://packages.ubuntu.com/edgy/kde/dolphin Dolphin], which is a file manager aimed at KDE and Kubuntu.<br />
<br />
There are many others. Some are available through the repositories; others will require you to download and install them through another source. Experiment with different file managers to see which ones appeal to you.<br />
<br />
这里有很多其它的文件管理器。其中一些可以通过软件仓库安装,一些必须通过源码下载和安装。尝试不同的文件管理器,看哪些能够吸引你。<br />
<br />
== 软件包管理器 ==<br />
<br />
Add a graphical package manager to install, remove and upgrade software packages and to add repositories without using the command line. Synaptic package manager is the standard and can be installed with this command:<br />
<br />
安装一个图形化的软件包管理器来安装,删除和升级软件包和增加软件仓库,可以让你不需要使用命令。新立得软件包管理器是标准的软件包管理工具。可以用下面命令来安装:<br />
<br />
sudo aptitude install synaptic<br />
<br />
You can use the package manager to add a word processor, such as Abiword, and other productivity software.<br />
<br />
你可以用软件包管理器来安装字处理器,像Abiword,或是其它的软件。<br />
<br />
= 安装一个完整的轻量级系统 =<br />
<br />
Building on the ideas above, here are some complete graphical systems, installable through a single command line. Feel free to mix and match between these options.<br />
<br />
基于以上的想法,我们可以用一条命令来安装一个完整的图形系统。你可以自由的组合这些选项。<br />
<br />
'''Remember: If you are using Dapper or earlier, replace "xorg" with "x-window-system-core"'''<br />
<br />
'''记住:如果你是在用Dapper或是更早的版本,用"x-window-system-core"代替"xorg"。<br />
<br />
* IceWM as a window manager, plus GDM, Firefox, Abiword and the Synaptic package manager:<br />
<br />
*IceWM是窗口管理器,加上GDM,Firefox,Abiword和新立得软件包管理器。<br />
<br />
sudo aptitude install gdm xorg xterm icewm menu mozilla-firefox abiword synaptic<br />
<br />
* XFCE and Firefox, with Synaptic package manager and KDM as the login manager:<br />
<br />
*XFCE,Firefox,再加上新立得软件包管理器和登录管理器KDM。<br />
<br />
<br />
sudo aptitude install kdm xorg xfce4 firefox synaptic<br />
<br />
* Fluxbox with Dillo, and XDM as a login manager:<br />
<br />
*Fluxbox,Dillo,和XDM <br />
<br />
sudo aptitude install fluxbox xorg xdm dillo<br />
<br />
* Openbox with no login manager, XFE as the file manager and xfce4-terminal as an X terminal, as well as Openbox themes and the Tango icon set:<br />
<br />
Openbox,XFE和xfce4-terminal还有Openbox主题及Tango图标。<br />
<br />
sudo aptitude install openbox obconf openbox-themes xfe xfce4-terminal tango-icon-theme-extras xorg<br />
<br />
Remember to check the repositories for more ideas on software and applications!<br />
<br />
记得查看软件仓库来获得更多的关于软件和应用的想法。<br />
<br />
= 低配置的选择 =<br />
<br />
For a minimalistic system that does not require as much configuration, you can install the alternate window managers after installing a full K/X/Ubuntu system, thus preinstalling much of the required software but keeping the speed. However, installing a full system does require more system resources.<br />
<br />
对于一个很小的系统并不需要太多的配置,在安装完完整的K/X/Ubuntu系统后你可以安装另一种窗口管理器来替代它,这样就可以安装很多必要软件并且保证运行速度。然而安装一个完整的系统的确需要更多的系统资源。<br />
<br />
= 扩展链接 =<br />
<br />
* [http://www.fluxbuntu.org FluxBuntu]: An Ubuntu variant with Fluxbox as the default window manager. An excellent place to start for a Fluxbox-based system. <br />
* [http://www.ubuntulite.org UbuntuLite]: An early project to build a stripped-down version of Ubuntu aimed at low-end machines. The project also seems to have stalled.<br />
* [http://alecjw.googlepages.com/cubuntu-commandlineubuntu Cubuntu] is not a graphical system; Cubuntu is a full-featured ''command line'' system, suitable for computers that can't handle any of the above options -- such as early Pentium or perhaps even 486-grade machines with as little as 16Mb RAM. And don't be skeptical: Even without a graphic environment, a computer can perform a lot more tasks than you would expect. B)<br />
* [http://www.enlightenment.org/ Enlightenment] is another window manager, but it is still in development and requires additional steps to install. However, it is very lightweight and functional. <br />
* [http://www.thinkgos.com/ gOS] is an operating system based on Ubuntu, uses a customized version of Enlightenment as its window manager, and is able to run on some older systems.<br />
<br />
<br />
<br />
CategoryDocumentation</div>Convicehttps://wiki.ubuntu.org.cn/index.php?title=%E4%BD%8E%E9%85%8D%E7%BD%AE%E7%94%B5%E8%84%91%E5%AE%89%E8%A3%85&diff=74900低配置电脑安装2007-12-15T14:16:54Z<p>Convice:</p>
<hr />
<div>{{Copyedit translation|from=https://wiki.ubuntu.com/Installation/LowMemorySystems}}<br />
{{From|https://wiki.ubuntu.com/Installation/LowMemorySystems}}<br />
{{Translator|convice}}<br />
{{Languages|Installation/LowMemorySystems}}<br />
<br />
'''How to install Ubuntu on low memory systems <br />
(Pentium III and earlier machines, with 32-192 MB RAM).'''<br />
<br />
'''怎样在低内存的系统上安装Ubuntu(Pentium III或更早的,配有32-192MB内存的机器)'''<br />
<br />
==== 内存需求 ====<br />
<br />
Installing Ubuntu on any system requires at least 32Mb of memory: The text-based installer included with the alternate (install) CDs needs that much space to run reliably. Smaller memory configurations run into problems, and while not impossible, it can be very difficult to complete an installation with less than the minimum RAM requirement.<br />
<br />
在任何系统上安装Ubuntu至少需要32Mb内存:包含在alternate (install) CDs的基于字符的安装程序需要这些空间来可靠运行。更小的内存配置可能会遇到问题,虽然不是不可能,但如果内存小于最低的需求,要完成安装十分困难。<br />
<br />
Depending on the hardware requirements, you can expect a sparse Ubuntu system to boot to a graphical desktop on anywhere from 19Mb to 54Mb. That requirement will fluctuate with the system demands, and increase while the system is active. Swap space is crucial to low-memory machines, so don't be stingy when setting up your system.<br />
<br />
考虑硬件需求,你可以期望一个瘦小的Ubuntu系统在任何内存为19Mb到54Mb的电脑上启动并运行图形桌面。这个需求会随着系统的需求面浮动,当系统活跃的时候会增加。交换分区对于低内存的机器十分重要,所以当设置系统的时候别小器。<br />
<br />
==== 处理器 ====<br />
<br />
There is no practical speed requirement, although a slower processor will take more time to finish installing. Some Pentium machines will take hours to complete, simply because the CPU takes longer to finish. As a general benchmark, a 75Mhz machine finishes a command-line installation of Ubuntu 7.04 in about four hours, and a 120Mhz machine finishes in perhaps an hour less than that. 200Mhz and faster machines will see a still stronger improvement.<br />
<br />
对处理器的速度没有什么实际的需求,然而低速度的处理器将要花更多的时间来完成安装。仅仅是因为CPU花了太多的时间,一些Pentium机将要花费几个小时来完成安装。根据通常的基准测试,一台75Mhz的机器要4个小时来完成基于命令行的Ubuntu 7.04的安装,一台120Mhz的要比它少用一个小时。200Mhz或是更快的机器将会有更强的提升。<br />
<br />
If you do decide to install Ubuntu on a legacy machine, be patient. There will come times when you think the machine has stopped or is hung, when in fact it's still moving, albeit at a very slow rate.<br />
<br />
如果你决定在一台老的机器上安装Ubuntu,要有耐心。可能会出现好几次这样的情况:当你认为机器已经停止或挂起,其实它正在运行,虽然速度很慢。<br />
<br />
====磁盘空间需求====<br />
Disk space on an absolutely minimal installation can be reduced to as little as 500Mb. A fresh and clean server installation of Ubuntu 7.04 generally takes only 300Mb, although there will be minor variations on account of hardware differences.<br />
<br />
磁盘空间在绝对最小安装的情况下可以减少到500Mb。虽然对于不同的硬件会有很小的变化,一个干净的Ubuntu 7.04 服务器的安装通常只需要300Mb。<br />
<br />
====其它硬件上的考虑====<br />
These instructions assume you will have a working Internet connection and access to the [[UbuntuHelp:Repositories| universe and multiverse repositories]]. Configuring your hardware is not included on this page.<br />
<br />
这份指南假设你有一个可用的互联网连接并且可以访问[[UbuntuHelp:Repositories| universe and multiverse repositories]].它不包括对你硬件的配置。<br />
<br />
<br />
<br />
== 安装Ubuntu Server ==<br />
<br />
The server version of Ubuntu is a sparse command-line system, without any graphical elements. It's a text-only version of what lies underneath all the advanced graphical elements. It's also the starting point for a minimal installation.<br />
<br />
Ubuntu服务器版是一个精减的命令行系统,没有任何图形元素。它是一个位于高级图形元素之下的纯文本版本。它是我们最小化安装的起点。<br />
<br />
==== Ubuntu 6.06 ====<br />
<br />
To install a base system, boot from the alternate (install) CD and choose "Install a server."<br />
<br />
Follow the prompts to complete installation.<br />
<br />
启动alternate(install)CD,选择"Install a server"。按提示完成安装。<br />
<br />
==== Ubuntu 6.10, 7.04, 或 7.10 ====<br />
<br />
To install a base system, boot from the alternate (install) CD and choose "Install a command-line system."<br />
<br />
Follow the prompts to complete installation.<br />
<br />
启动alternate(install)CD,选择"Install a command-line system."。按提示完成安装。<br />
<br />
=== 增加软件仓库 ===<br />
<br />
==== 更改源 ====<br />
<br />
Once the server install is complete, you will probably want to edit your [[UbuntuHelp:Sources.list|UbuntuHelp:sources.list]] file.<br />
<br />
当安装好Ubuntu服务器版後,你可能需要编辑你的[[UbuntuHelp:Sources.list|UbuntuHelp:sources.list]]文件。<br />
<br />
sudo nano /etc/apt/sources.list<br />
<br />
Uncomment all official repositories by removing # at the beginning of the line. Do not uncomment the narrative portions of that file; in other words, where you see a double hash mark (##) leave those lines alone.<br />
<br />
删除每一行开始的#号来消除对官方软件仓库的注释。不要消除文件里描述部分的注释,即以两个#号(##)开始的行。<br />
<br />
==== 更新和升级你的系统 ====<br />
<br />
Now you should update your system. Return to the command line and type: <br />
<br />
现在你应该更新你的系统。回到命令行输入:<br />
<br />
sudo aptitude update<br />
<br />
It's probably also a good idea to upgrade your system at this point. Use this command to upgrade your system: <br />
<br />
这时升级你的系统也是个不错的主意。用这个命令升级你的系统。<br />
<br />
sudo aptitude upgrade (或者, 对于 Gutsy: sudo aptitude safe-upgrade)<br />
<br />
Now you should be ready to install a window manager and some programs.<br><br />
<br />
现在你已经准备好了来安装窗口管理器和一些程序。<br />
<br />
=安装图形环境的准备工作=<br />
<br />
The absolute minimum for any graphical environment is X.org<br />
<br />
最小的图形环境是X.org<br />
<br />
=== Installing X.org ===<br />
===安装X.org===<br />
<br />
On Ubuntu Edgy (6.10), Feisty (7.04), and Gutsy (7.10), use the command:<br />
在 Ubuntu Edgy (6.10), Feisty (7.04), 和 Gutsy (7.10), 用下面的命令:<br />
<br />
sudo aptitude install xorg<br />
<br />
On Ubuntu Dapper (6.06), use the command:<br />
在 Ubuntu Dapper (6.06), 用下面的命令:<br />
<br />
sudo aptitude install x-window-system-core<br />
<br />
=== Starting X.org ===<br />
===启动X.org===<br />
<br />
This package gives you the framework for an X session, complete with a variety of drivers and configuration files. Installing ''xorg'' (or ''x-window-system-core'') also triggers the self-configuration sequence, so when it finishes, your hardware should be ready to use, barring any errors or incompatibilities.<br />
通过一些驱动和配置文件,这个软件包给了你一个X对话的框架。安装“Xorg”或“x-window-system-core”还启动了自动配置队列,安装完成后,如果没有错误或不兼容,你的硬件应该已经可用了。<br />
<br />
It's important to note that installing ''xorg'' or ''x-window-system-core'' really doesn't leave you with much. You can start X at this point with this command:<br />
必须注意的是,安装“Xorg”或“x-window-system-core”不会给你很多。这时你可以用以下命令启动X:<br />
<br />
startx<br />
<br />
but without a window manager and some software, you probably won't get much done.<br />
但是没有窗口管理器和一些软件,你能做的很少。<br />
<br />
= 安装一个窗口管理器=<br />
<br />
A window manager controls the placement and appearance of windows within a graphical user interface. <br />
<br />
窗口管理器通过图形用户界面控制窗口的位置有显示。<br />
<br />
There are many lightweight window managers that will give you better access to your system through the X layer. Each one has its own way of managing the desktop, and its own way of configuring themes and menus.<br />
<br />
有很多轻量级的窗口管理器可以使你更好的通过X层访问你的系统。每一种都有它们自己的方式来管理桌面,都有它们自己的方法来配置主题和菜单。<br />
<br />
== Openbox ==<br />
<br />
"Openbox" is one of the lightest, fastest window managers available, but can take some time to configure and set up. It has its origins in Blackbox, but newer versions are complete rewrites of the Blackbox code.<br />
<br />
"Openbox"是一种轻量级的快速的可用的窗口管理器,只是需要一些时间来安装和配置。它源于Blackbox,但是新版的全部重写了Blackbox的代码。<br />
<br />
Install Openbox with this command:<br />
用以下命令安装Openbox:<br />
<br />
sudo aptitude install openbox obconf openbox-themes<br />
<br />
These packages and their dependencies will allow you to build and configure an Openbox system, along with a choice of themes and some configuration options.<br />
<br />
这些软件包和它们的依赖软件包让你可以建立和配置Openbox系统,还有可选择的主题和一些配置选项。<br />
<br />
'''Note:''' Edgy (Ubuntu 6.10) users should note a small discrepancy in ''obconf'' that might prevent it from running. You can correct that with these commands ...<br />
<br />
'''注意:'''Edgy (Ubuntu 6.10)用户必须注意"obconf"一个可能会使其无法运行的小问题。你可以用下面的命令解决这个问题。<br />
<br />
cd /usr/lib<br />
sudo ln libobparser.so.0.4.0 libobparser.so.1<br />
sudo ln libobrender.so.0.4.0 libobrender.so.1<br />
sudo ldconfig -X<br />
<br />
Entering ''obconf'' in an X terminal window should now trigger the obconf dialogue.<br />
<br />
在X终端输入''obconf''将启动obconf对话。<br />
<br />
== IceWM ==<br />
<br />
"IceWM" has a very strong following as a good, clean, fast window manager that resembles a conventional "desktop" in many ways. Among many of its perks are themes that resemble the Windows XP desktop theme -- which may be appealing to you.<br />
<br />
"IceWM"很受欢迎,因为它是一个很好的,干净的,很快的窗口管理器,它还集成了一个可选择的桌面。在它的众多优点中有一个可能会吸引你:它集成了Windows XP桌面主题。<br />
<br />
Install IceWM with this command:<br />
<br />
用下面的命令安装IceWM:<br />
<br />
sudo aptitude install icewm iceconf icepref iceme icewm-themes<br />
<br />
When finished, you will have a number of configuration and menu options. You can start IceWM with the ''startx'' command.<br />
<br />
安装完成后,你将拥有一些配置和菜单选项。你可以用''startx''命令启动它。<br />
<br />
== Fluxbox ==<br />
<br />
"Fluxbox" is a beautiful, highly configurable desktop system that is easy on system resources without compromising on graphical appeal. Fluxbox is the default window manager for a number of Linux distributions, probably most notable among them being [http://www.damnsmalllinux.org/ Damn Small Linux].<br />
<br />
"Fluxbox" 是一种漂亮的,高度可配置的桌面系统,它对系统资源要求不高却没有损失图形的吸引力。"Fluxbox" 是许多Linux发开版的默认窗口管理器,可能大部分都在[http://www.damnsmalllinux.org/ Damn Small Linux]上。<br />
<br />
<br />
Install Fluxbox with this command:<br />
<br />
用下面的命令安装Fluxbox:<br />
<br />
sudo aptitude install fluxbox fluxconf<br />
<br />
Once installed, you can start Fluxbox with the ''startfluxbox'' command. Remember, if you enjoy working with Fluxbox, you should consider [http://www.fluxbuntu.org Fluxbuntu] as an option.<br />
<br />
安装好以后,你可以用''startfluxbox''命令启动它。记住,如果你很喜欢使用Fluxbox,你可以考虑 [http://www.fluxbuntu.org Fluxbuntu] 作为一种选择。<br />
<br />
== FVWM-Crystal ==<br />
<br />
"FVWM-Crystal" is a complete set of configuration scripts which sit atop of FVWM. FVWM-Crystal has support for integrated access to music players, terminal emulators and system monitors. It boasts some of the finest eye candy available to low-end machines, and is a snap to install.<br />
<br />
"FVWM-Crystal" 是基于FVWM的一些配置脚本。"FVWM-Crystal" 支持对音乐播放器,终端和系统监视的集成访问。它号称是在低配置机器上可用的最漂亮的窗口管理器,并且它可以很快的安装。<br />
<br />
For more information about building an FVWM-Crystal desktop, check out the ["FVWM-Crystal"] page.<br />
<br />
想知道更多关于安装FVWM-Crystal桌面的的信息,请访问["FVWM-Crystal"]。<br />
<br />
== XFCE ==<br />
<br />
XFCE is heavier than any of the systems mentioned so far, but has some added functions as a result. You can try XFCE alone if you like, but if you're keen on an XFCE installation, look into [http://www.xubuntu.org Xubuntu] as an option.<br />
<br />
XFCE 相对于目前已经提到的轻量级窗口管理器来说都更“重”,但是是因为增加了一些应用的。如果你喜欢,你可以单独党旗XFCE,但如果你一定要安装XFCE,请查看 [http://www.xubuntu.org Xubuntu]。<br />
<br />
Install XFCE alone, without Xubuntu, with this command:<br />
<br />
单独安装XFCE,而不是Xubuntu,请用下面的命令:<br />
<br />
sudo aptitude install xfce4<br />
<br />
It's worth noting that some Edgy users have difficulty starting XFCE from a minimal install. The normal start command for XFCE -- ''startxfce4'' -- doesn't seem to be properly configured in Edgy.<br />
<br />
对于Edgy用户来讲,这是没有用的,从最小化安装启动XFCE是有困难的。XFCE的启动命令-- ''startxfce4'' -- 看起来好像在Edgy上没有配置好。<br />
<br />
If you want the entire Xubuntu package, which includes a full suite of software and a lot of improvements, try this command:<br />
<br />
如果你想要一个完全的包括了一些软件和一些改进的Xubuntu包,请用下面的命令:<br />
<br />
sudo aptitude install xubuntu-desktop<br />
<br />
That will download quite a large amount of packages; you may want to consider installing Xubuntu fresh, from the [http://www.xubuntu.org/get installation ISO]. <br />
<br />
这将要下载很多的软件包;你可能想从 [http://www.xubuntu.org/get installation ISO]干净的安装Xubuntu。<br />
<br />
Note: Xubuntu will use more system resources and may not be optimal for a low memory system with limited disk space, but it is lighter than a standard Ubuntu system.<br />
<br />
''注意:'' Xubuntu 将会使用更多的系统资源,而且可能对于一个硬盘空间和内存都有限的系统来讲不是最好的选择,但是它比标准的Ubuntu系统“轻”。<br />
<br />
= 安装软件 =<br />
<br />
Now that the graphical window manager is set up, it's time to add some necessary and recommended packages. These will add additional functionality and make using the system easier. Additionally, adding a graphical package manager will provide an easy method to manage installed applications and packages.<br />
<br />
现在图形窗口管理器已经设置好了,现在可以安装一些必须或推荐的软件包。这些软件包将会加入一些新的功能,使系统更容易使用。另外,安装一个图形化的软件包管理器将会使管理已安装的应用和软件包变得容易。<br />
<br />
== 登录管理器 ==<br />
<br />
Login managers will assist in choosing a graphical environment and will not require the user to start x.org to get into the window manager. <br />
<br />
登录管理器将帮助我们选择一个图形环境,而且不需要用户启动X.org就可以进入窗口管理器。<br />
<br />
It's important to note that it's not necessary to use a login manager. If you're willing to log in at the command line and start X manually, you can save yourself a lot of system resources -- and the time it takes to load them. That can be a more appealing option on older machines.<br />
<br />
要说明的是登录管理器并不是必须的。如果你喜欢在命令行界面登录然后手动启动X,你能节约很多系统资源和启动它们的时间。对于老的机器来说可能更有吸引力。<br />
<br />
=== GDM ===<br />
<br />
GDM is the Ubuntu default for a login manager. However, GDM has a reputation of being a heavyweight, and on a system that needs as little bulk as possible, you might find it to be a burden. If you've got a decent system, install it using:<br />
<br />
GDM是Ubuntu默认的登陆管理器,它被认为是一个重量级的管理器,在系统中它需要比较多的资源,所以你可能会发现它是一个负担。如果你有一个很好的系统,用以下命令安装它:<br />
<br />
sudo aptitude install gdm<br />
<br />
=== KDM ===<br />
<br />
KDM is another manager, but has the same heavy reputation as GDM.<br />
<br />
KDM是另一种管理器,它和GDM一样被认为是重量级的管理器。用以下命令安装:<br />
<br />
sudo aptitude install kdm<br />
<br />
=== XDM ===<br />
<br />
XDM is the login manager for straight X, and while less beautiful than GDM or KDM, it can perform in the same role without fuss.<br />
<br />
XDM是纯粹的X的登录管理器,它没有GDM和KDM漂亮,但它能像GDM和KDM那样很好的工作。用以下命令安装:<br />
<br />
sudo aptitude install xdm<br />
<br />
== 浏览器 ==<br />
<br />
Now that your system is up and running, it would be a good idea to add an internet browser to surf the web and get some use out of the machine!<br />
<br />
现在你的系统已经在运行了,现在可以安装一个因特网浏览器来上网冲浪。<br />
<br />
=== Firefox ===<br />
Web browsers come in many flavors, and the most prevalent -- Firefox -- can be laggy on low-memory or slow systems. Even the GNU version of Firefox, [https://wiki.ubuntu.com/IceWeasel Iceweasel] can be a bit heavy on older machines. If you've got at least 128 mb of memory, Firefox should work just fine.<br />
<br />
Firefox是适用于很多Linux发行版,是最流行的浏览器。它对于低内存或者低速的系统来讲,可能有点难以应付。甚至是GNU版本的Firefox,[https://wiki.ubuntu.com/IceWeasel Iceweasel] 对于老的机器来讲也有些“重”。如果你有多于128mb的内存,Firefox可以运行的很好。用以下命令安装它:<br />
<br />
sudo aptitude install firefox <br />
<br />
=== Dillo ===<br />
<br />
While not nearly as full-featured as Firefox, Dillo has the advantages of a very small footprint and few resource requirements.<br />
<br />
不像Firefox那样具有完全的功能,Dillo的优点是有一个很小的脚印和很小的资源需求。用以下命令安装它:<br />
<br />
sudo aptitude install dillo<br />
<br />
== iDesk ==<br />
<br />
Many lightweight desktop systems use [http://idesk.sourceforge.net/ iDesk] as a way of including customized, clickable icons directly on the desktop. iDesk is maintained in the Ubuntu repositories, and is installable from the command line with:<br />
<br />
很多轻量级的桌面系统用[http://idesk.sourceforge.net/ iDesk]来配置和使桌面上的图标可以被直接点击。iDesk包含在Ubuntu的软件仓库中,可以用以下命令安装它:<br />
<br />
sudo aptitude install idesk<br />
<br />
Consult the [http://idesk.sourceforge.net/ iDesk wiki] for instructions on how to configure and use iDesk. For icon sets, you may wish to search the repositories, or download them from third-party customization sites, such as [http://www.gnome-look.org Gnome-Look.org] and similar locations.<br />
<br />
访问[http://idesk.sourceforge.net/ iDesk wiki]来获取配置和使用iDesk的命令。你可能要搜索软件仓库或从第三方的配置网站上下载图标,像[http://www.gnome-look.org Gnome-Look.org]及相似的网站。<br />
<br />
== 文件管理器 ==<br />
<br />
Lightweight systems have a number of options available for graphical file management. Thunar is the default file manager in Xubuntu and many XFCE-based systems; it is installable alone with this command:<br />
<br />
轻量级的系统有多种可用的图形文件管理器。Thunar是Xubuntu和很多基于XFCE默认的系统,可以使用下面的命令单独安装它:<br />
<br />
sudo aptitude install thunar<br />
<br />
XFE is an even lighter file manager, intended to mimic the Windows Explorer interface. It has very few dependencies and is very fast.<br />
<br />
XFE是一种更“轻”的文件管理器,它模仿了Windwos Explorer接口。它只依赖很少的软件包而且非常快。用下面命令安装它:<br />
<br />
sudo aptitude install xfe<br />
<br />
ROX-Filer is another file management program, which makes extensive use of drag-and-drop principles. It does appear to have a large number of dependencies however, which means installing it may entail more external packages than you wish. Install ROX-Filer with this command:<br />
<br />
ROX-Filer也是一种文件管理器,它扩展了drag-and-drop原理。它依赖很多的软件包,这就意味着它需要比你想像的要多的扩展软件包。用下面命令安装它:<br />
<br />
sudo aptitude install rox-filer<br />
<br />
Nautilus is the default file manager for Ubuntu. It requires some more resources, but it has a lot of useful features. It can manage your desktop, show a wallpaper and desktop icons, which are automatically created for new devices (e.g. USB flash drives). Install Nautilus using this command:<br />
<br />
Nautilus是Ubuntu默认的文件管理器。它需要更多的资源,但它具有很多有用的特性。它能管理你的桌面,显示桌面背景和桌面图标,对于新的设备它们都可以自动创建。用下面命令安装它:<br />
<br />
sudo apt-get install nautilus<br />
<br />
To use it together with a window manager, execute the following command or add it to your autostart script. For example, use $HOME/.icewm/startup for IceWM.<br />
<br />
要让它和窗口管理器一起工作,需执行以下命令或者把命令加入到自动启动脚本。例如:对于IceWM,加入$HOME/.icewm/startup文件。<br />
<br />
nautilus --no-default-window &amp; <br />
<br />
Some other popular file managers include<br />
<br />
其它一些浒的文件管理器有:<br />
<br />
* [http://pcmanfm.sourceforge.net/ PCManFM];<br />
* [http://packages.ubuntu.com/edgy/utils/mc Midnight Commander], [http://tuxcmd.sourceforge.net/ Tux Commander] and [http://packages.ubuntu.com/edgy/gnome/gnome-commander Gnome Commander] (which all resemble the old Norton Commander interface);<br />
* [http://packages.ubuntu.com/edgy/x11/xffm4-filemanager xffm4-filemanager];<br />
* [http://step.polymtl.ca/~coyote/xvfilemgr_main.html XVFilemgr];<br />
* and [http://packages.ubuntu.com/edgy/kde/dolphin Dolphin], which is a file manager aimed at KDE and Kubuntu.<br />
<br />
There are many others. Some are available through the repositories; others will require you to download and install them through another source. Experiment with different file managers to see which ones appeal to you.<br />
<br />
这里有很多其它的文件管理器。其中一些可以通过软件仓库安装,一些必须通过源码下载和安装。尝试不同的文件管理器,看哪些能够吸引你。<br />
<br />
== 软件包管理器 ==<br />
<br />
Add a graphical package manager to install, remove and upgrade software packages and to add repositories without using the command line. Synaptic package manager is the standard and can be installed with this command:<br />
<br />
安装一个图形化的软件包管理器来安装,删除和升级软件包和增加软件仓库,可以让你不需要使用命令。新立得软件包管理器是标准的软件包管理工具。可以用下面命令来安装:<br />
<br />
sudo aptitude install synaptic<br />
<br />
You can use the package manager to add a word processor, such as Abiword, and other productivity software.<br />
<br />
你可以用软件包管理器来安装字处理器,像Abiword,或是其它的软件。<br />
<br />
= 安装一个完整的轻量级系统 =<br />
<br />
Building on the ideas above, here are some complete graphical systems, installable through a single command line. Feel free to mix and match between these options.<br />
<br />
基于以上的想法,我们可以用一条命令来安装一个完整的图形系统。你可以自由的组合这些选项。<br />
<br />
'''Remember: If you are using Dapper or earlier, replace "xorg" with "x-window-system-core"'''<br />
<br />
'''记住:如果你是在用Dapper或是更早的版本,用"x-window-system-core"代替"xorg"。<br />
<br />
* IceWM as a window manager, plus GDM, Firefox, Abiword and the Synaptic package manager:<br />
<br />
*IceWM是窗口管理器,加上GDM,Firefox,Abiword和新立得软件包管理器。<br />
<br />
sudo aptitude install gdm xorg xterm icewm menu mozilla-firefox abiword synaptic<br />
<br />
* XFCE and Firefox, with Synaptic package manager and KDM as the login manager:<br />
<br />
*XFCE,Firefox,再加上新立得软件包管理器和登录管理器KDM。<br />
<br />
<br />
sudo aptitude install kdm xorg xfce4 firefox synaptic<br />
<br />
* Fluxbox with Dillo, and XDM as a login manager:<br />
<br />
*Fluxbox,Dillo,和XDM <br />
<br />
sudo aptitude install fluxbox xorg xdm dillo<br />
<br />
* Openbox with no login manager, XFE as the file manager and xfce4-terminal as an X terminal, as well as Openbox themes and the Tango icon set:<br />
<br />
Openbox,XFE和xfce4-terminal还有Openbox主题及Tango图标。<br />
<br />
sudo aptitude install openbox obconf openbox-themes xfe xfce4-terminal tango-icon-theme-extras xorg<br />
<br />
Remember to check the repositories for more ideas on software and applications!<br />
<br />
记得查看软件仓库来获得更多的关于软件和应用的想法。<br />
<br />
= 低配置的选择 =<br />
<br />
For a minimalistic system that does not require as much configuration, you can install the alternate window managers after installing a full K/X/Ubuntu system, thus preinstalling much of the required software but keeping the speed. However, installing a full system does require more system resources.<br />
<br />
对于一个很小的系统并不需要太多的配置,在安装完完整的K/X/Ubuntu系统后你可以安装另一种窗口管理器来替代它,这样就可以安装很多必要软件并且保证运行速度。然而安装一个完整的系统的确需要更多的系统资源。<br />
<br />
= 扩展链接 =<br />
<br />
* [http://www.fluxbuntu.org FluxBuntu]: An Ubuntu variant with Fluxbox as the default window manager. An excellent place to start for a Fluxbox-based system. <br />
* [http://www.ubuntulite.org UbuntuLite]: An early project to build a stripped-down version of Ubuntu aimed at low-end machines. The project also seems to have stalled.<br />
* [http://alecjw.googlepages.com/cubuntu-commandlineubuntu Cubuntu] is not a graphical system; Cubuntu is a full-featured ''command line'' system, suitable for computers that can't handle any of the above options -- such as early Pentium or perhaps even 486-grade machines with as little as 16Mb RAM. And don't be skeptical: Even without a graphic environment, a computer can perform a lot more tasks than you would expect. B)<br />
* [http://www.enlightenment.org/ Enlightenment] is another window manager, but it is still in development and requires additional steps to install. However, it is very lightweight and functional. <br />
* [http://www.thinkgos.com/ gOS] is an operating system based on Ubuntu, uses a customized version of Enlightenment as its window manager, and is able to run on some older systems.<br />
<br />
<br />
<br />
CategoryDocumentation</div>Convicehttps://wiki.ubuntu.org.cn/index.php?title=%E4%BD%8E%E9%85%8D%E7%BD%AE%E7%94%B5%E8%84%91%E5%AE%89%E8%A3%85&diff=74896低配置电脑安装2007-12-15T14:12:06Z<p>Convice:</p>
<hr />
<div>{{Copyedit translation|from=https://wiki.ubuntu.com/Installation/LowMemorySystems}}<br />
{{From|https://wiki.ubuntu.com/Installation/LowMemorySystems}}<br />
{{Translator|convice}}<br />
{{Languages|Installation/LowMemorySystems}}<br />
<br />
'''How to install Ubuntu on low memory systems <br />
(Pentium III and earlier machines, with 32-192 MB RAM).'''<br />
<br />
'''怎样在低内存的系统上安装Ubuntu(Pentium III或更早的,配有32-192MB内存的机器)'''<br />
<br />
==== 内存需求 ====<br />
<br />
Installing Ubuntu on any system requires at least 32Mb of memory: The text-based installer included with the alternate (install) CDs needs that much space to run reliably. Smaller memory configurations run into problems, and while not impossible, it can be very difficult to complete an installation with less than the minimum RAM requirement.<br />
<br />
在任何系统上安装Ubuntu至少需要32Mb内存:包含在alternate (install) CDs的基于字符的安装程序需要这些空间来可靠运行。更小的内存配置可能会遇到问题,虽然不是不可能,但如果内存小于最低的需求,要完成安装十分困难。<br />
<br />
Depending on the hardware requirements, you can expect a sparse Ubuntu system to boot to a graphical desktop on anywhere from 19Mb to 54Mb. That requirement will fluctuate with the system demands, and increase while the system is active. Swap space is crucial to low-memory machines, so don't be stingy when setting up your system.<br />
<br />
考虑硬件需求,你可以期望一个瘦小的Ubuntu系统在任何内存为19Mb到54Mb的电脑上启动并运行图形桌面。这个需求会随着系统的需求面浮动,当系统活跃的时候会增加。交换分区对于低内存的机器十分重要,所以当设置系统的时候别小器。<br />
<br />
==== 处理器 ====<br />
<br />
There is no practical speed requirement, although a slower processor will take more time to finish installing. Some Pentium machines will take hours to complete, simply because the CPU takes longer to finish. As a general benchmark, a 75Mhz machine finishes a command-line installation of Ubuntu 7.04 in about four hours, and a 120Mhz machine finishes in perhaps an hour less than that. 200Mhz and faster machines will see a still stronger improvement.<br />
<br />
对处理器的速度没有什么实际的需求,然而低速度的处理器将要花更多的时间来完成安装。仅仅是因为CPU花了太多的时间,一些Pentium机将要花费几个小时来完成安装。根据通常的基准测试,一台75Mhz的机器要4个小时来完成基于命令行的Ubuntu 7.04的安装,一台120Mhz的要比它少用一个小时。200Mhz或是更快的机器将会有更强的提升。<br />
<br />
If you do decide to install Ubuntu on a legacy machine, be patient. There will come times when you think the machine has stopped or is hung, when in fact it's still moving, albeit at a very slow rate.<br />
<br />
如果你决定在一台老的机器上安装Ubuntu,要有耐心。可能会出现好几次这样的情况:当你认为机器已经停止或挂起,其实它正在运行,虽然速度很慢。<br />
<br />
====磁盘空间需求====<br />
Disk space on an absolutely minimal installation can be reduced to as little as 500Mb. A fresh and clean server installation of Ubuntu 7.04 generally takes only 300Mb, although there will be minor variations on account of hardware differences.<br />
<br />
磁盘空间在绝对最小安装的情况下可以减少到500Mb。虽然对于不同的硬件会有很小的变化,一个干净的Ubuntu 7.04 服务器的安装通常只需要300Mb。<br />
<br />
====其它硬件上的考虑====<br />
These instructions assume you will have a working Internet connection and access to the [[UbuntuHelp:Repositories| universe and multiverse repositories]]. Configuring your hardware is not included on this page.<br />
<br />
这份指南假设你有一个可用的互联网连接并且可以访问[[UbuntuHelp:Repositories| universe and multiverse repositories]].它不包括对你硬件的配置。<br />
<br />
<br />
<br />
== 安装Ubuntu Server ==<br />
<br />
The server version of Ubuntu is a sparse command-line system, without any graphical elements. It's a text-only version of what lies underneath all the advanced graphical elements. It's also the starting point for a minimal installation.<br />
<br />
Ubuntu服务器版是一个精减的命令行系统,没有任何图形元素。它是一个位于高级图形元素之下的纯文本版本。它是我们最小化安装的起点。<br />
<br />
==== Ubuntu 6.06 ====<br />
<br />
To install a base system, boot from the alternate (install) CD and choose "Install a server."<br />
<br />
Follow the prompts to complete installation.<br />
<br />
启动alternate(install)CD,选择"Install a server"。按提示完成安装。<br />
<br />
==== Ubuntu 6.10, 7.04, or 7.10 ====<br />
<br />
To install a base system, boot from the alternate (install) CD and choose "Install a command-line system."<br />
<br />
Follow the prompts to complete installation.<br />
<br />
启动alternate(install)CD,选择"Install a command-line system."。按提示完成安装。<br />
<br />
=== 增加软件仓库 ===<br />
<br />
==== 更改源 ====<br />
<br />
Once the server install is complete, you will probably want to edit your [[UbuntuHelp:Sources.list|UbuntuHelp:sources.list]] file.<br />
<br />
当安装好Ubuntu服务器版後,你可能需要编辑你的[[UbuntuHelp:Sources.list|UbuntuHelp:sources.list]]文件。<br />
<br />
sudo nano /etc/apt/sources.list<br />
<br />
Uncomment all official repositories by removing # at the beginning of the line. Do not uncomment the narrative portions of that file; in other words, where you see a double hash mark (##) leave those lines alone.<br />
<br />
删除每一行开始的#号来消除对官方软件仓库的注释。不要消除文件里描述部分的注释,即以两个#号(##)开始的行。<br />
<br />
==== 更新和升级你的系统 ====<br />
<br />
Now you should update your system. Return to the command line and type: <br />
<br />
现在你应该更新你的系统。回到命令行输入:<br />
<br />
sudo aptitude update<br />
<br />
It's probably also a good idea to upgrade your system at this point. Use this command to upgrade your system: <br />
<br />
这时升级你的系统也是个不错的主意。用这个命令升级你的系统。<br />
<br />
sudo aptitude upgrade (或者, 对于 Gutsy: sudo aptitude safe-upgrade)<br />
<br />
Now you should be ready to install a window manager and some programs.<br><br />
<br />
现在你已经准备好了来安装窗口管理器和一些程序。<br />
<br />
=安装图形环境的准备工作=<br />
<br />
The absolute minimum for any graphical environment is X.org<br />
<br />
最小的图形环境是X.org<br />
<br />
=== Installing X.org ===<br />
===安装X.org===<br />
<br />
On Ubuntu Edgy (6.10), Feisty (7.04), and Gutsy (7.10), use the command:<br />
在 Ubuntu Edgy (6.10), Feisty (7.04), 和 Gutsy (7.10), 用下面的命令:<br />
<br />
sudo aptitude install xorg<br />
<br />
On Ubuntu Dapper (6.06), use the command:<br />
在 Ubuntu Dapper (6.06), 用下面的命令:<br />
<br />
sudo aptitude install x-window-system-core<br />
<br />
=== Starting X.org ===<br />
===启动X.org===<br />
<br />
This package gives you the framework for an X session, complete with a variety of drivers and configuration files. Installing ''xorg'' (or ''x-window-system-core'') also triggers the self-configuration sequence, so when it finishes, your hardware should be ready to use, barring any errors or incompatibilities.<br />
通过一些驱动和配置文件,这个软件包给了你一个X对话的框架。安装“Xorg”或“x-window-system-core”还启动了自动配置队列,安装完成后,如果没有错误或不兼容,你的硬件应该已经可用了。<br />
<br />
It's important to note that installing ''xorg'' or ''x-window-system-core'' really doesn't leave you with much. You can start X at this point with this command:<br />
必须注意的是,安装“Xorg”或“x-window-system-core”不会给你很多。这时你可以用以下命令启动X:<br />
<br />
startx<br />
<br />
but without a window manager and some software, you probably won't get much done.<br />
但是没有窗口管理器和一些软件,你能做的很少。<br />
<br />
= 安装一个窗口管理器=<br />
<br />
A window manager controls the placement and appearance of windows within a graphical user interface. <br />
<br />
窗口管理器通过图形用户界面控制窗口的位置有显示。<br />
<br />
There are many lightweight window managers that will give you better access to your system through the X layer. Each one has its own way of managing the desktop, and its own way of configuring themes and menus.<br />
<br />
有很多轻量级的窗口管理器可以使你更好的通过X层访问你的系统。每一种都有它们自己的方式来管理桌面,都有它们自己的方法来配置主题和菜单。<br />
<br />
== Openbox ==<br />
<br />
"Openbox" is one of the lightest, fastest window managers available, but can take some time to configure and set up. It has its origins in Blackbox, but newer versions are complete rewrites of the Blackbox code.<br />
<br />
"Openbox"是一种轻量级的快速的可用的窗口管理器,只是需要一些时间来安装和配置。它源于Blackbox,但是新版的全部重写了Blackbox的代码。<br />
<br />
Install Openbox with this command:<br />
用以下命令安装Openbox:<br />
<br />
sudo aptitude install openbox obconf openbox-themes<br />
<br />
These packages and their dependencies will allow you to build and configure an Openbox system, along with a choice of themes and some configuration options.<br />
<br />
这些软件包和它们的依赖软件包让你可以建立和配置Openbox系统,还有可选择的主题和一些配置选项。<br />
<br />
'''Note:''' Edgy (Ubuntu 6.10) users should note a small discrepancy in ''obconf'' that might prevent it from running. You can correct that with these commands ...<br />
<br />
'''注意:'''Edgy (Ubuntu 6.10)用户必须注意"obconf"一个可能会使其无法运行的小问题。你可以用下面的命令解决这个问题。<br />
<br />
cd /usr/lib<br />
sudo ln libobparser.so.0.4.0 libobparser.so.1<br />
sudo ln libobrender.so.0.4.0 libobrender.so.1<br />
sudo ldconfig -X<br />
<br />
Entering ''obconf'' in an X terminal window should now trigger the obconf dialogue.<br />
<br />
在X终端输入''obconf''将启动obconf对话。<br />
<br />
== IceWM ==<br />
<br />
"IceWM" has a very strong following as a good, clean, fast window manager that resembles a conventional "desktop" in many ways. Among many of its perks are themes that resemble the Windows XP desktop theme -- which may be appealing to you.<br />
<br />
"IceWM"很受欢迎,因为它是一个很好的,干净的,很快的窗口管理器,它还集成了一个可选择的桌面。在它的众多优点中有一个可能会吸引你:它集成了Windows XP桌面主题。<br />
<br />
Install IceWM with this command:<br />
<br />
用下面的命令安装IceWM:<br />
<br />
sudo aptitude install icewm iceconf icepref iceme icewm-themes<br />
<br />
When finished, you will have a number of configuration and menu options. You can start IceWM with the ''startx'' command.<br />
<br />
安装完成后,你将拥有一些配置和菜单选项。你可以用''startx''命令启动它。<br />
<br />
== Fluxbox ==<br />
<br />
"Fluxbox" is a beautiful, highly configurable desktop system that is easy on system resources without compromising on graphical appeal. Fluxbox is the default window manager for a number of Linux distributions, probably most notable among them being [http://www.damnsmalllinux.org/ Damn Small Linux].<br />
<br />
"Fluxbox" 是一种漂亮的,高度可配置的桌面系统,它对系统资源要求不高却没有损失图形的吸引力。"Fluxbox" 是许多Linux发开版的默认窗口管理器,可能大部分都在[http://www.damnsmalllinux.org/ Damn Small Linux]上。<br />
<br />
<br />
Install Fluxbox with this command:<br />
<br />
用下面的命令安装Fluxbox:<br />
<br />
sudo aptitude install fluxbox fluxconf<br />
<br />
Once installed, you can start Fluxbox with the ''startfluxbox'' command. Remember, if you enjoy working with Fluxbox, you should consider [http://www.fluxbuntu.org Fluxbuntu] as an option.<br />
<br />
安装好以后,你可以用''startfluxbox''命令启动它。记住,如果你很喜欢使用Fluxbox,你可以考虑 [http://www.fluxbuntu.org Fluxbuntu] 作为一种选择。<br />
<br />
== FVWM-Crystal ==<br />
<br />
"FVWM-Crystal" is a complete set of configuration scripts which sit atop of FVWM. FVWM-Crystal has support for integrated access to music players, terminal emulators and system monitors. It boasts some of the finest eye candy available to low-end machines, and is a snap to install.<br />
<br />
"FVWM-Crystal" 是基于FVWM的一些配置脚本。"FVWM-Crystal" 支持对音乐播放器,终端和系统监视的集成访问。它号称是在低配置机器上可用的最漂亮的窗口管理器,并且它可以很快的安装。<br />
<br />
For more information about building an FVWM-Crystal desktop, check out the ["FVWM-Crystal"] page.<br />
<br />
想知道更多关于安装FVWM-Crystal桌面的的信息,请访问["FVWM-Crystal"]。<br />
<br />
== XFCE ==<br />
<br />
XFCE is heavier than any of the systems mentioned so far, but has some added functions as a result. You can try XFCE alone if you like, but if you're keen on an XFCE installation, look into [http://www.xubuntu.org Xubuntu] as an option.<br />
<br />
XFCE 相对于目前已经提到的轻量级窗口管理器来说都更“重”,但是是因为增加了一些应用的。如果你喜欢,你可以单独党旗XFCE,但如果你一定要安装XFCE,请查看 [http://www.xubuntu.org Xubuntu]。<br />
<br />
Install XFCE alone, without Xubuntu, with this command:<br />
<br />
单独安装XFCE,而不是Xubuntu,请用下面的命令:<br />
<br />
sudo aptitude install xfce4<br />
<br />
It's worth noting that some Edgy users have difficulty starting XFCE from a minimal install. The normal start command for XFCE -- ''startxfce4'' -- doesn't seem to be properly configured in Edgy.<br />
<br />
对于Edgy用户来讲,这是没有用的,从最小化安装启动XFCE是有困难的。XFCE的启动命令-- ''startxfce4'' -- 看起来好像在Edgy上没有配置好。<br />
<br />
If you want the entire Xubuntu package, which includes a full suite of software and a lot of improvements, try this command:<br />
<br />
如果你想要一个完全的包括了一些软件和一些改进的Xubuntu包,请用下面的命令:<br />
<br />
sudo aptitude install xubuntu-desktop<br />
<br />
That will download quite a large amount of packages; you may want to consider installing Xubuntu fresh, from the [http://www.xubuntu.org/get installation ISO]. <br />
<br />
这将要下载很多的软件包;你可能想从 [http://www.xubuntu.org/get installation ISO]干净的安装Xubuntu。<br />
<br />
Note: Xubuntu will use more system resources and may not be optimal for a low memory system with limited disk space, but it is lighter than a standard Ubuntu system.<br />
<br />
''注意:'' Xubuntu 将会使用更多的系统资源,而且可能对于一个硬盘空间和内存都有限的系统来讲不是最好的选择,但是它比标准的Ubuntu系统“轻”。<br />
<br />
= 安装软件 =<br />
<br />
Now that the graphical window manager is set up, it's time to add some necessary and recommended packages. These will add additional functionality and make using the system easier. Additionally, adding a graphical package manager will provide an easy method to manage installed applications and packages.<br />
<br />
现在图形窗口管理器已经设置好了,现在可以安装一些必须或推荐的软件包。这些软件包将会加入一些新的功能,使系统更容易使用。另外,安装一个图形化的软件包管理器将会使管理已安装的应用和软件包变得容易。<br />
<br />
== 登录管理器 ==<br />
<br />
Login managers will assist in choosing a graphical environment and will not require the user to start x.org to get into the window manager. <br />
<br />
登录管理器将帮助我们选择一个图形环境,而且不需要用户启动X.org就可以进入窗口管理器。<br />
<br />
It's important to note that it's not necessary to use a login manager. If you're willing to log in at the command line and start X manually, you can save yourself a lot of system resources -- and the time it takes to load them. That can be a more appealing option on older machines.<br />
<br />
要说明的是登录管理器并不是必须的。如果你喜欢在命令行界面登录然后手动启动X,你能节约很多系统资源和启动它们的时间。对于老的机器来说可能更有吸引力。<br />
<br />
=== GDM ===<br />
<br />
GDM is the Ubuntu default for a login manager. However, GDM has a reputation of being a heavyweight, and on a system that needs as little bulk as possible, you might find it to be a burden. If you've got a decent system, install it using:<br />
<br />
GDM是Ubuntu默认的登陆管理器,它被认为是一个重量级的管理器,在系统中它需要比较多的资源,所以你可能会发现它是一个负担。如果你有一个很好的系统,用以下命令安装它:<br />
<br />
sudo aptitude install gdm<br />
<br />
=== KDM ===<br />
<br />
KDM is another manager, but has the same heavy reputation as GDM.<br />
<br />
KDM是另一种管理器,它和GDM一样被认为是重量级的管理器。用以下命令安装:<br />
<br />
sudo aptitude install kdm<br />
<br />
=== XDM ===<br />
<br />
XDM is the login manager for straight X, and while less beautiful than GDM or KDM, it can perform in the same role without fuss.<br />
<br />
XDM是纯粹的X的登录管理器,它没有GDM和KDM漂亮,但它能像GDM和KDM那样很好的工作。用以下命令安装:<br />
<br />
sudo aptitude install xdm<br />
<br />
== 浏览器 ==<br />
<br />
Now that your system is up and running, it would be a good idea to add an internet browser to surf the web and get some use out of the machine!<br />
<br />
现在你的系统已经在运行了,现在可以安装一个因特网浏览器来上网冲浪。<br />
<br />
=== Firefox ===<br />
Web browsers come in many flavors, and the most prevalent -- Firefox -- can be laggy on low-memory or slow systems. Even the GNU version of Firefox, [https://wiki.ubuntu.com/IceWeasel Iceweasel] can be a bit heavy on older machines. If you've got at least 128 mb of memory, Firefox should work just fine.<br />
<br />
Firefox是适用于很多Linux发行版,是最流行的浏览器。它对于低内存或者低速的系统来讲,可能有点难以应付。甚至是GNU版本的Firefox,[https://wiki.ubuntu.com/IceWeasel Iceweasel] 对于老的机器来讲也有些“重”。如果你有多于128mb的内存,Firefox可以运行的很好。用以下命令安装它:<br />
<br />
sudo aptitude install firefox <br />
<br />
=== Dillo ===<br />
<br />
While not nearly as full-featured as Firefox, Dillo has the advantages of a very small footprint and few resource requirements.<br />
<br />
不像Firefox那样具有完全的功能,Dillo的优点是有一个很小的脚印和很小的资源需求。用以下命令安装它:<br />
<br />
sudo aptitude install dillo<br />
<br />
== iDesk ==<br />
<br />
Many lightweight desktop systems use [http://idesk.sourceforge.net/ iDesk] as a way of including customized, clickable icons directly on the desktop. iDesk is maintained in the Ubuntu repositories, and is installable from the command line with:<br />
<br />
很多轻量级的桌面系统用[http://idesk.sourceforge.net/ iDesk]来配置和使桌面上的图标可以被直接点击。iDesk包含在Ubuntu的软件仓库中,可以用以下命令安装它:<br />
<br />
sudo aptitude install idesk<br />
<br />
Consult the [http://idesk.sourceforge.net/ iDesk wiki] for instructions on how to configure and use iDesk. For icon sets, you may wish to search the repositories, or download them from third-party customization sites, such as [http://www.gnome-look.org Gnome-Look.org] and similar locations.<br />
<br />
访问[http://idesk.sourceforge.net/ iDesk wiki]来获取配置和使用iDesk的命令。你可能要搜索软件仓库或从第三方的配置网站上下载图标,像[http://www.gnome-look.org Gnome-Look.org]及相似的网站。<br />
<br />
== 文件管理器 ==<br />
<br />
Lightweight systems have a number of options available for graphical file management. Thunar is the default file manager in Xubuntu and many XFCE-based systems; it is installable alone with this command:<br />
<br />
轻量级的系统有多种可用的图形文件管理器。Thunar是Xubuntu和很多基于XFCE默认的系统,可以使用下面的命令单独安装它:<br />
<br />
sudo aptitude install thunar<br />
<br />
XFE is an even lighter file manager, intended to mimic the Windows Explorer interface. It has very few dependencies and is very fast.<br />
<br />
XFE是一种更“轻”的文件管理器,它模仿了Windwos Explorer接口。它只依赖很少的软件包而且非常快。用下面命令安装它:<br />
<br />
sudo aptitude install xfe<br />
<br />
ROX-Filer is another file management program, which makes extensive use of drag-and-drop principles. It does appear to have a large number of dependencies however, which means installing it may entail more external packages than you wish. Install ROX-Filer with this command:<br />
<br />
ROX-Filer也是一种文件管理器,它扩展了drag-and-drop原理。它依赖很多的软件包,这就意味着它需要比你想像的要多的扩展软件包。用下面命令安装它:<br />
<br />
sudo aptitude install rox-filer<br />
<br />
Nautilus is the default file manager for Ubuntu. It requires some more resources, but it has a lot of useful features. It can manage your desktop, show a wallpaper and desktop icons, which are automatically created for new devices (e.g. USB flash drives). Install Nautilus using this command:<br />
<br />
Nautilus是Ubuntu默认的文件管理器。它需要更多的资源,但它具有很多有用的特性。它能管理你的桌面,显示桌面背景和桌面图标,对于新的设备它们都可以自动创建。用下面命令安装它:<br />
<br />
sudo apt-get install nautilus<br />
<br />
To use it together with a window manager, execute the following command or add it to your autostart script. For example, use $HOME/.icewm/startup for IceWM.<br />
<br />
要让它和窗口管理器一起工作,需执行以下命令或者把命令加入到自动启动脚本。例如:对于IceWM,加入$HOME/.icewm/startup文件。<br />
<br />
nautilus --no-default-window &amp; <br />
<br />
Some other popular file managers include<br />
<br />
其它一些浒的文件管理器有:<br />
<br />
* [http://pcmanfm.sourceforge.net/ PCManFM];<br />
* [http://packages.ubuntu.com/edgy/utils/mc Midnight Commander], [http://tuxcmd.sourceforge.net/ Tux Commander] and [http://packages.ubuntu.com/edgy/gnome/gnome-commander Gnome Commander] (which all resemble the old Norton Commander interface);<br />
* [http://packages.ubuntu.com/edgy/x11/xffm4-filemanager xffm4-filemanager];<br />
* [http://step.polymtl.ca/~coyote/xvfilemgr_main.html XVFilemgr];<br />
* and [http://packages.ubuntu.com/edgy/kde/dolphin Dolphin], which is a file manager aimed at KDE and Kubuntu.<br />
<br />
There are many others. Some are available through the repositories; others will require you to download and install them through another source. Experiment with different file managers to see which ones appeal to you.<br />
<br />
这里有很多其它的文件管理器。其中一些可以通过软件仓库安装,一些必须通过源码下载和安装。尝试不同的文件管理器,看哪些能够吸引你。<br />
<br />
== 软件包管理器 ==<br />
<br />
Add a graphical package manager to install, remove and upgrade software packages and to add repositories without using the command line. Synaptic package manager is the standard and can be installed with this command:<br />
<br />
安装一个图形化的软件包管理器来安装,删除和升级软件包和增加软件仓库,可以让你不需要使用命令。新立得软件包管理器是标准的软件包管理工具。可以用下面命令来安装:<br />
<br />
sudo aptitude install synaptic<br />
<br />
You can use the package manager to add a word processor, such as Abiword, and other productivity software.<br />
<br />
你可以用软件包管理器来安装字处理器,像Abiword,或是其它的软件。<br />
<br />
= 安装一个完整的轻量级系统 =<br />
<br />
Building on the ideas above, here are some complete graphical systems, installable through a single command line. Feel free to mix and match between these options.<br />
<br />
基于以上的想法,我们可以用一条命令来安装一个完整的图形系统。你可以自由的组合这些选项。<br />
<br />
'''Remember: If you are using Dapper or earlier, replace "xorg" with "x-window-system-core"'''<br />
<br />
'''记住:如果你是在用Dapper或是更早的版本,用"x-window-system-core"代替"xorg"。<br />
<br />
* IceWM as a window manager, plus GDM, Firefox, Abiword and the Synaptic package manager:<br />
<br />
*IceWM是窗口管理器,加上GDM,Firefox,Abiword和新立得软件包管理器。<br />
<br />
sudo aptitude install gdm xorg xterm icewm menu mozilla-firefox abiword synaptic<br />
<br />
* XFCE and Firefox, with Synaptic package manager and KDM as the login manager:<br />
<br />
*XFCE,Firefox,再加上新立得软件包管理器和登录管理器KDM。<br />
<br />
<br />
sudo aptitude install kdm xorg xfce4 firefox synaptic<br />
<br />
* Fluxbox with Dillo, and XDM as a login manager:<br />
<br />
*Fluxbox,Dillo,和XDM <br />
<br />
sudo aptitude install fluxbox xorg xdm dillo<br />
<br />
* Openbox with no login manager, XFE as the file manager and xfce4-terminal as an X terminal, as well as Openbox themes and the Tango icon set:<br />
<br />
Openbox,XFE和xfce4-terminal还有Openbox主题及Tango图标。<br />
<br />
sudo aptitude install openbox obconf openbox-themes xfe xfce4-terminal tango-icon-theme-extras xorg<br />
<br />
Remember to check the repositories for more ideas on software and applications!<br />
<br />
记得查看软件仓库来获得更多的关于软件和应用的想法。<br />
<br />
= 低配置的选择 =<br />
<br />
For a minimalistic system that does not require as much configuration, you can install the alternate window managers after installing a full K/X/Ubuntu system, thus preinstalling much of the required software but keeping the speed. However, installing a full system does require more system resources.<br />
<br />
对于一个很小的系统并不需要太多的配置,在安装完完整的K/X/Ubuntu系统后你可以安装另一种窗口管理器来替代它,这样就可以安装很多必要软件并且保证运行速度。然而安装一个完整的系统的确需要更多的系统资源。<br />
<br />
= 扩展链接 =<br />
<br />
* [http://www.fluxbuntu.org FluxBuntu]: An Ubuntu variant with Fluxbox as the default window manager. An excellent place to start for a Fluxbox-based system. <br />
* [http://www.ubuntulite.org UbuntuLite]: An early project to build a stripped-down version of Ubuntu aimed at low-end machines. The project also seems to have stalled.<br />
* [http://alecjw.googlepages.com/cubuntu-commandlineubuntu Cubuntu] is not a graphical system; Cubuntu is a full-featured ''command line'' system, suitable for computers that can't handle any of the above options -- such as early Pentium or perhaps even 486-grade machines with as little as 16Mb RAM. And don't be skeptical: Even without a graphic environment, a computer can perform a lot more tasks than you would expect. B)<br />
* [http://www.enlightenment.org/ Enlightenment] is another window manager, but it is still in development and requires additional steps to install. However, it is very lightweight and functional. <br />
* [http://www.thinkgos.com/ gOS] is an operating system based on Ubuntu, uses a customized version of Enlightenment as its window manager, and is able to run on some older systems.<br />
<br />
<br />
<br />
CategoryDocumentation</div>Convicehttps://wiki.ubuntu.org.cn/index.php?title=%E4%BD%8E%E9%85%8D%E7%BD%AE%E7%94%B5%E8%84%91%E5%AE%89%E8%A3%85&diff=74892低配置电脑安装2007-12-15T14:07:53Z<p>Convice:</p>
<hr />
<div>{{Copyedit translation|from=https://wiki.ubuntu.com/Installation/LowMemorySystems}}<br />
{{From|https://wiki.ubuntu.com/Installation/LowMemorySystems}}<br />
{{Translator|convice}}<br />
{{Languages|Installation/LowMemorySystems}}<br />
<br />
'''How to install Ubuntu on low memory systems <br />
(Pentium III and earlier machines, with 32-192 MB RAM).'''<br />
<br />
'''怎样在低内存的系统上安装Ubuntu(Pentium III或更早的,配有32-192MB内存的机器)'''<br />
<br />
==== 内存需求 ====<br />
<br />
Installing Ubuntu on any system requires at least 32Mb of memory: The text-based installer included with the alternate (install) CDs needs that much space to run reliably. Smaller memory configurations run into problems, and while not impossible, it can be very difficult to complete an installation with less than the minimum RAM requirement.<br />
<br />
在任何系统上安装Ubuntu至少需要32Mb内存:包含在alternate (install) CDs的基于字符的安装程序需要这些空间来可靠运行。更小的内存配置可能会遇到问题,虽然不是不可能,但如果内存小于最低的需求,要完成安装十分困难。<br />
<br />
Depending on the hardware requirements, you can expect a sparse Ubuntu system to boot to a graphical desktop on anywhere from 19Mb to 54Mb. That requirement will fluctuate with the system demands, and increase while the system is active. Swap space is crucial to low-memory machines, so don't be stingy when setting up your system.<br />
<br />
考虑硬件需求,你可以期望一个瘦小的Ubuntu系统在任何内存为19Mb到54Mb的电脑上启动并运行图形桌面。这个需求会随着系统的需求面浮动,当系统活跃的时候会增加。交换分区对于低内存的机器十分重要,所以当设置系统的时候别小器。<br />
<br />
==== 处理器 ====<br />
<br />
There is no practical speed requirement, although a slower processor will take more time to finish installing. Some Pentium machines will take hours to complete, simply because the CPU takes longer to finish. As a general benchmark, a 75Mhz machine finishes a command-line installation of Ubuntu 7.04 in about four hours, and a 120Mhz machine finishes in perhaps an hour less than that. 200Mhz and faster machines will see a still stronger improvement.<br />
<br />
对处理器的速度没有什么实际的需求,虽然低速度的处理器将要花更多的时间来完成安装。仅仅是因为CPU花了太多的时间,一些Pentium机将要花费几个小时来完成安装。根据通常的基准测试,一台75Mhz的机器要4个小时来完成基于命令行的Ubuntu 7.04的安装,一台120Mhz的要比它少用一个小时。200Mhz或是更快的机器将会有更强的提升。<br />
<br />
If you do decide to install Ubuntu on a legacy machine, be patient. There will come times when you think the machine has stopped or is hung, when in fact it's still moving, albeit at a very slow rate.<br />
<br />
如果你决定在一台老式的机器上安装Ubuntu,要有耐心。可能会出现好几次这样的情况:当你认为机器已经停止或挂起,其实它正在运行,虽然速度很慢<br />
<br />
====磁盘空间需求====<br />
Disk space on an absolutely minimal installation can be reduced to as little as 500Mb. A fresh and clean server installation of Ubuntu 7.04 generally takes only 300Mb, although there will be minor variations on account of hardware differences.<br />
<br />
磁盘空间在绝对最小安装的情况下可以减少到500Mb。虽然对于不同的硬件会有很小的变化,一个干净的Ubuntu 7.04 服务器的安装通常只需要300Mb。<br />
<br />
====其它硬件上的考虑====<br />
These instructions assume you will have a working Internet connection and access to the [[UbuntuHelp:Repositories| universe and multiverse repositories]]. Configuring your hardware is not included on this page.<br />
<br />
这份指南假设你有一个可用的互联网连接并且可以访问[[UbuntuHelp:Repositories| universe and multiverse repositories]].它不包括对你硬件的配置。<br />
<br />
<br />
<br />
== 安装Ubuntu Server ==<br />
<br />
The server version of Ubuntu is a sparse command-line system, without any graphical elements. It's a text-only version of what lies underneath all the advanced graphical elements. It's also the starting point for a minimal installation.<br />
<br />
Ubuntu服务器版是一个精减的命令行系统,没有任何图形元素。它是一个位于高级图形元素之下的纯文本版本。它是我们最小化安装的起点。<br />
<br />
==== Ubuntu 6.06 ====<br />
<br />
To install a base system, boot from the alternate (install) CD and choose "Install a server."<br />
<br />
Follow the prompts to complete installation.<br />
<br />
启动alternate(install)CD,选择"Install a server"。按提示完成安装。<br />
<br />
==== Ubuntu 6.10, 7.04, or 7.10 ====<br />
<br />
To install a base system, boot from the alternate (install) CD and choose "Install a command-line system."<br />
<br />
Follow the prompts to complete installation.<br />
<br />
启动alternate(install)CD,选择"Install a command-line system."。按提示完成安装。<br />
<br />
=== 增加软件仓库 ===<br />
<br />
==== 更改源 ====<br />
<br />
Once the server install is complete, you will probably want to edit your [[UbuntuHelp:Sources.list|UbuntuHelp:sources.list]] file.<br />
<br />
当安装好Ubuntu服务器版後,你可能需要编辑你的[[UbuntuHelp:Sources.list|UbuntuHelp:sources.list]]文件。<br />
<br />
sudo nano /etc/apt/sources.list<br />
<br />
Uncomment all official repositories by removing # at the beginning of the line. Do not uncomment the narrative portions of that file; in other words, where you see a double hash mark (##) leave those lines alone.<br />
<br />
删除每一行开始的#号来消除对官方软件仓库的注释。不要消除文件里描述部分的注释,即以两个#号(##)开始的行。<br />
<br />
==== 更新和升级你的系统 ====<br />
<br />
Now you should update your system. Return to the command line and type: <br />
<br />
现在你应该更新你的系统。回到命令行输入:<br />
<br />
sudo aptitude update<br />
<br />
It's probably also a good idea to upgrade your system at this point. Use this command to upgrade your system: <br />
<br />
这时升级你的系统也是个不错的主意。用这个命令升级你的系统。<br />
<br />
sudo aptitude upgrade (或者, 对于 Gutsy: sudo aptitude safe-upgrade)<br />
<br />
Now you should be ready to install a window manager and some programs.<br><br />
<br />
现在你已经准备好了来安装窗口管理器和一些程序。<br />
<br />
=安装图形环境的准备工作=<br />
<br />
The absolute minimum for any graphical environment is X.org<br />
<br />
最小的图形环境是X.org<br />
<br />
=== Installing X.org ===<br />
===安装X.org===<br />
<br />
On Ubuntu Edgy (6.10), Feisty (7.04), and Gutsy (7.10), use the command:<br />
在 Ubuntu Edgy (6.10), Feisty (7.04), 和 Gutsy (7.10), 用下面的命令:<br />
<br />
sudo aptitude install xorg<br />
<br />
On Ubuntu Dapper (6.06), use the command:<br />
在 Ubuntu Dapper (6.06), 用下面的命令:<br />
<br />
sudo aptitude install x-window-system-core<br />
<br />
=== Starting X.org ===<br />
===启动X.org===<br />
<br />
This package gives you the framework for an X session, complete with a variety of drivers and configuration files. Installing ''xorg'' (or ''x-window-system-core'') also triggers the self-configuration sequence, so when it finishes, your hardware should be ready to use, barring any errors or incompatibilities.<br />
通过一些驱动和配置文件,这个软件包给了你一个X对话的框架。安装“Xorg”或“x-window-system-core”还启动了自动配置队列,安装完成后,如果没有错误或不兼容,你的硬件应该已经可用了。<br />
<br />
It's important to note that installing ''xorg'' or ''x-window-system-core'' really doesn't leave you with much. You can start X at this point with this command:<br />
必须注意的是,安装“Xorg”或“x-window-system-core”不会给你很多。这时你可以用以下命令启动X:<br />
<br />
startx<br />
<br />
but without a window manager and some software, you probably won't get much done.<br />
但是没有窗口管理器和一些软件,你能做的很少。<br />
<br />
= 安装一个窗口管理器=<br />
<br />
A window manager controls the placement and appearance of windows within a graphical user interface. <br />
<br />
窗口管理器通过图形用户界面控制窗口的位置有显示。<br />
<br />
There are many lightweight window managers that will give you better access to your system through the X layer. Each one has its own way of managing the desktop, and its own way of configuring themes and menus.<br />
<br />
有很多轻量级的窗口管理器可以使你更好的通过X层访问你的系统。每一种都有它们自己的方式来管理桌面,都有它们自己的方法来配置主题和菜单。<br />
<br />
== Openbox ==<br />
<br />
"Openbox" is one of the lightest, fastest window managers available, but can take some time to configure and set up. It has its origins in Blackbox, but newer versions are complete rewrites of the Blackbox code.<br />
<br />
"Openbox"是一种轻量级的快速的可用的窗口管理器,只是需要一些时间来安装和配置。它源于Blackbox,但是新版的全部重写了Blackbox的代码。<br />
<br />
Install Openbox with this command:<br />
用以下命令安装Openbox:<br />
<br />
sudo aptitude install openbox obconf openbox-themes<br />
<br />
These packages and their dependencies will allow you to build and configure an Openbox system, along with a choice of themes and some configuration options.<br />
<br />
这些软件包和它们的依赖软件包让你可以建立和配置Openbox系统,还有可选择的主题和一些配置选项。<br />
<br />
'''Note:''' Edgy (Ubuntu 6.10) users should note a small discrepancy in ''obconf'' that might prevent it from running. You can correct that with these commands ...<br />
<br />
'''注意:'''Edgy (Ubuntu 6.10)用户必须注意"obconf"一个可能会使其无法运行的小问题。你可以用下面的命令解决这个问题。<br />
<br />
cd /usr/lib<br />
sudo ln libobparser.so.0.4.0 libobparser.so.1<br />
sudo ln libobrender.so.0.4.0 libobrender.so.1<br />
sudo ldconfig -X<br />
<br />
Entering ''obconf'' in an X terminal window should now trigger the obconf dialogue.<br />
<br />
在X终端输入''obconf''将启动obconf对话。<br />
<br />
== IceWM ==<br />
<br />
"IceWM" has a very strong following as a good, clean, fast window manager that resembles a conventional "desktop" in many ways. Among many of its perks are themes that resemble the Windows XP desktop theme -- which may be appealing to you.<br />
<br />
"IceWM"很受欢迎,因为它是一个很好的,干净的,很快的窗口管理器,它还集成了一个可选择的桌面。在它的众多优点中有一个可能会吸引你:它集成了Windows XP桌面主题。<br />
<br />
Install IceWM with this command:<br />
<br />
用下面的命令安装IceWM:<br />
<br />
sudo aptitude install icewm iceconf icepref iceme icewm-themes<br />
<br />
When finished, you will have a number of configuration and menu options. You can start IceWM with the ''startx'' command.<br />
<br />
安装完成后,你将拥有一些配置和菜单选项。你可以用''startx''命令启动它。<br />
<br />
== Fluxbox ==<br />
<br />
"Fluxbox" is a beautiful, highly configurable desktop system that is easy on system resources without compromising on graphical appeal. Fluxbox is the default window manager for a number of Linux distributions, probably most notable among them being [http://www.damnsmalllinux.org/ Damn Small Linux].<br />
<br />
"Fluxbox" 是一种漂亮的,高度可配置的桌面系统,它对系统资源要求不高却没有损失图形的吸引力。"Fluxbox" 是许多Linux发开版的默认窗口管理器,可能大部分都在[http://www.damnsmalllinux.org/ Damn Small Linux]上。<br />
<br />
<br />
Install Fluxbox with this command:<br />
<br />
用下面的命令安装Fluxbox:<br />
<br />
sudo aptitude install fluxbox fluxconf<br />
<br />
Once installed, you can start Fluxbox with the ''startfluxbox'' command. Remember, if you enjoy working with Fluxbox, you should consider [http://www.fluxbuntu.org Fluxbuntu] as an option.<br />
<br />
安装好以后,你可以用''startfluxbox''命令启动它。记住,如果你很喜欢使用Fluxbox,你可以考虑 [http://www.fluxbuntu.org Fluxbuntu] 作为一种选择。<br />
<br />
== FVWM-Crystal ==<br />
<br />
"FVWM-Crystal" is a complete set of configuration scripts which sit atop of FVWM. FVWM-Crystal has support for integrated access to music players, terminal emulators and system monitors. It boasts some of the finest eye candy available to low-end machines, and is a snap to install.<br />
<br />
"FVWM-Crystal" 是基于FVWM的一些配置脚本。"FVWM-Crystal" 支持对音乐播放器,终端和系统监视的集成访问。它号称是在低配置机器上可用的最漂亮的窗口管理器,并且它可以很快的安装。<br />
<br />
For more information about building an FVWM-Crystal desktop, check out the ["FVWM-Crystal"] page.<br />
<br />
想知道更多关于安装FVWM-Crystal桌面的的信息,请访问["FVWM-Crystal"]。<br />
<br />
== XFCE ==<br />
<br />
XFCE is heavier than any of the systems mentioned so far, but has some added functions as a result. You can try XFCE alone if you like, but if you're keen on an XFCE installation, look into [http://www.xubuntu.org Xubuntu] as an option.<br />
<br />
XFCE 相对于目前已经提到的轻量级窗口管理器来说都更“重”,但是是因为增加了一些应用的。如果你喜欢,你可以单独党旗XFCE,但如果你一定要安装XFCE,请查看 [http://www.xubuntu.org Xubuntu]。<br />
<br />
Install XFCE alone, without Xubuntu, with this command:<br />
<br />
单独安装XFCE,而不是Xubuntu,请用下面的命令:<br />
<br />
sudo aptitude install xfce4<br />
<br />
It's worth noting that some Edgy users have difficulty starting XFCE from a minimal install. The normal start command for XFCE -- ''startxfce4'' -- doesn't seem to be properly configured in Edgy.<br />
<br />
对于Edgy用户来讲,这是没有用的,从最小化安装启动XFCE是有困难的。XFCE的启动命令-- ''startxfce4'' -- 看起来好像在Edgy上没有配置好。<br />
<br />
If you want the entire Xubuntu package, which includes a full suite of software and a lot of improvements, try this command:<br />
<br />
如果你想要一个完全的包括了一些软件和一些改进的Xubuntu包,请用下面的命令:<br />
<br />
sudo aptitude install xubuntu-desktop<br />
<br />
That will download quite a large amount of packages; you may want to consider installing Xubuntu fresh, from the [http://www.xubuntu.org/get installation ISO]. <br />
<br />
这将要下载很多的软件包;你可能想从 [http://www.xubuntu.org/get installation ISO]干净的安装Xubuntu。<br />
<br />
Note: Xubuntu will use more system resources and may not be optimal for a low memory system with limited disk space, but it is lighter than a standard Ubuntu system.<br />
<br />
''注意:'' Xubuntu 将会使用更多的系统资源,而且可能对于一个硬盘空间和内存都有限的系统来讲不是最好的选择,但是它比标准的Ubuntu系统“轻”。<br />
<br />
= 安装软件 =<br />
<br />
Now that the graphical window manager is set up, it's time to add some necessary and recommended packages. These will add additional functionality and make using the system easier. Additionally, adding a graphical package manager will provide an easy method to manage installed applications and packages.<br />
<br />
现在图形窗口管理器已经设置好了,现在可以安装一些必须或推荐的软件包。这些软件包将会加入一些新的功能,使系统更容易使用。另外,安装一个图形化的软件包管理器将会使管理已安装的应用和软件包变得容易。<br />
<br />
== 登录管理器 ==<br />
<br />
Login managers will assist in choosing a graphical environment and will not require the user to start x.org to get into the window manager. <br />
<br />
登录管理器将帮助我们选择一个图形环境,而且不需要用户启动X.org就可以进入窗口管理器。<br />
<br />
It's important to note that it's not necessary to use a login manager. If you're willing to log in at the command line and start X manually, you can save yourself a lot of system resources -- and the time it takes to load them. That can be a more appealing option on older machines.<br />
<br />
要说明的是登录管理器并不是必须的。如果你喜欢在命令行界面登录然后手动启动X,你能节约很多系统资源和启动它们的时间。对于老的机器来说可能更有吸引力。<br />
<br />
=== GDM ===<br />
<br />
GDM is the Ubuntu default for a login manager. However, GDM has a reputation of being a heavyweight, and on a system that needs as little bulk as possible, you might find it to be a burden. If you've got a decent system, install it using:<br />
<br />
GDM是Ubuntu默认的登陆管理器,它被认为是一个重量级的管理器,在系统中它需要比较多的资源,所以你可能会发现它是一个负担。如果你有一个很好的系统,用以下命令安装它:<br />
<br />
sudo aptitude install gdm<br />
<br />
=== KDM ===<br />
<br />
KDM is another manager, but has the same heavy reputation as GDM.<br />
<br />
KDM是另一种管理器,它和GDM一样被认为是重量级的管理器。用以下命令安装:<br />
<br />
sudo aptitude install kdm<br />
<br />
=== XDM ===<br />
<br />
XDM is the login manager for straight X, and while less beautiful than GDM or KDM, it can perform in the same role without fuss.<br />
<br />
XDM是纯粹的X的登录管理器,它没有GDM和KDM漂亮,但它能像GDM和KDM那样很好的工作。用以下命令安装:<br />
<br />
sudo aptitude install xdm<br />
<br />
== 浏览器 ==<br />
<br />
Now that your system is up and running, it would be a good idea to add an internet browser to surf the web and get some use out of the machine!<br />
<br />
现在你的系统已经在运行了,现在可以安装一个因特网浏览器来上网冲浪。<br />
<br />
=== Firefox ===<br />
Web browsers come in many flavors, and the most prevalent -- Firefox -- can be laggy on low-memory or slow systems. Even the GNU version of Firefox, [https://wiki.ubuntu.com/IceWeasel Iceweasel] can be a bit heavy on older machines. If you've got at least 128 mb of memory, Firefox should work just fine.<br />
<br />
Firefox是适用于很多Linux发行版,是最流行的浏览器。它对于低内存或者低速的系统来讲,可能有点难以应付。甚至是GNU版本的Firefox,[https://wiki.ubuntu.com/IceWeasel Iceweasel] 对于老的机器来讲也有些“重”。如果你有多于128mb的内存,Firefox可以运行的很好。用以下命令安装它:<br />
<br />
sudo aptitude install firefox <br />
<br />
=== Dillo ===<br />
<br />
While not nearly as full-featured as Firefox, Dillo has the advantages of a very small footprint and few resource requirements.<br />
<br />
不像Firefox那样具有完全的功能,Dillo的优点是有一个很小的脚印和很小的资源需求。用以下命令安装它:<br />
<br />
sudo aptitude install dillo<br />
<br />
== iDesk ==<br />
<br />
Many lightweight desktop systems use [http://idesk.sourceforge.net/ iDesk] as a way of including customized, clickable icons directly on the desktop. iDesk is maintained in the Ubuntu repositories, and is installable from the command line with:<br />
<br />
很多轻量级的桌面系统用[http://idesk.sourceforge.net/ iDesk]来配置和使桌面上的图标可以被直接点击。iDesk包含在Ubuntu的软件仓库中,可以用以下命令安装它:<br />
<br />
sudo aptitude install idesk<br />
<br />
Consult the [http://idesk.sourceforge.net/ iDesk wiki] for instructions on how to configure and use iDesk. For icon sets, you may wish to search the repositories, or download them from third-party customization sites, such as [http://www.gnome-look.org Gnome-Look.org] and similar locations.<br />
<br />
访问[http://idesk.sourceforge.net/ iDesk wiki]来获取配置和使用iDesk的命令。你可能要搜索软件仓库或从第三方的配置网站上下载图标,像[http://www.gnome-look.org Gnome-Look.org]及相似的网站。<br />
<br />
== 文件管理器 ==<br />
<br />
Lightweight systems have a number of options available for graphical file management. Thunar is the default file manager in Xubuntu and many XFCE-based systems; it is installable alone with this command:<br />
<br />
轻量级的系统有多种可用的图形文件管理器。Thunar是Xubuntu和很多基于XFCE默认的系统,可以使用下面的命令单独安装它:<br />
<br />
sudo aptitude install thunar<br />
<br />
XFE is an even lighter file manager, intended to mimic the Windows Explorer interface. It has very few dependencies and is very fast.<br />
<br />
XFE是一种更“轻”的文件管理器,它模仿了Windwos Explorer接口。它只依赖很少的软件包而且非常快。用下面命令安装它:<br />
<br />
sudo aptitude install xfe<br />
<br />
ROX-Filer is another file management program, which makes extensive use of drag-and-drop principles. It does appear to have a large number of dependencies however, which means installing it may entail more external packages than you wish. Install ROX-Filer with this command:<br />
<br />
ROX-Filer也是一种文件管理器,它扩展了drag-and-drop原理。它依赖很多的软件包,这就意味着它需要比你想像的要多的扩展软件包。用下面命令安装它:<br />
<br />
sudo aptitude install rox-filer<br />
<br />
Nautilus is the default file manager for Ubuntu. It requires some more resources, but it has a lot of useful features. It can manage your desktop, show a wallpaper and desktop icons, which are automatically created for new devices (e.g. USB flash drives). Install Nautilus using this command:<br />
<br />
Nautilus是Ubuntu默认的文件管理器。它需要更多的资源,但它具有很多有用的特性。它能管理你的桌面,显示桌面背景和桌面图标,对于新的设备它们都可以自动创建。用下面命令安装它:<br />
<br />
sudo apt-get install nautilus<br />
<br />
To use it together with a window manager, execute the following command or add it to your autostart script. For example, use $HOME/.icewm/startup for IceWM.<br />
<br />
要让它和窗口管理器一起工作,需执行以下命令或者把命令加入到自动启动脚本。例如:对于IceWM,加入$HOME/.icewm/startup文件。<br />
<br />
nautilus --no-default-window &amp; <br />
<br />
Some other popular file managers include<br />
<br />
其它一些浒的文件管理器有:<br />
<br />
* [http://pcmanfm.sourceforge.net/ PCManFM];<br />
* [http://packages.ubuntu.com/edgy/utils/mc Midnight Commander], [http://tuxcmd.sourceforge.net/ Tux Commander] and [http://packages.ubuntu.com/edgy/gnome/gnome-commander Gnome Commander] (which all resemble the old Norton Commander interface);<br />
* [http://packages.ubuntu.com/edgy/x11/xffm4-filemanager xffm4-filemanager];<br />
* [http://step.polymtl.ca/~coyote/xvfilemgr_main.html XVFilemgr];<br />
* and [http://packages.ubuntu.com/edgy/kde/dolphin Dolphin], which is a file manager aimed at KDE and Kubuntu.<br />
<br />
There are many others. Some are available through the repositories; others will require you to download and install them through another source. Experiment with different file managers to see which ones appeal to you.<br />
<br />
这里有很多其它的文件管理器。其中一些可以通过软件仓库安装,一些必须通过源码下载和安装。尝试不同的文件管理器,看哪些能够吸引你。<br />
<br />
== 软件包管理器 ==<br />
<br />
Add a graphical package manager to install, remove and upgrade software packages and to add repositories without using the command line. Synaptic package manager is the standard and can be installed with this command:<br />
<br />
安装一个图形化的软件包管理器来安装,删除和升级软件包和增加软件仓库,可以让你不需要使用命令。新立得软件包管理器是标准的软件包管理工具。可以用下面命令来安装:<br />
<br />
sudo aptitude install synaptic<br />
<br />
You can use the package manager to add a word processor, such as Abiword, and other productivity software.<br />
<br />
你可以用软件包管理器来安装字处理器,像Abiword,或是其它的软件。<br />
<br />
= 安装一个完整的轻量级系统 =<br />
<br />
Building on the ideas above, here are some complete graphical systems, installable through a single command line. Feel free to mix and match between these options.<br />
<br />
基于以上的想法,我们可以用一条命令来安装一个完整的图形系统。你可以自由的组合这些选项。<br />
<br />
'''Remember: If you are using Dapper or earlier, replace "xorg" with "x-window-system-core"'''<br />
<br />
'''记住:如果你是在用Dapper或是更早的版本,用"x-window-system-core"代替"xorg"。<br />
<br />
* IceWM as a window manager, plus GDM, Firefox, Abiword and the Synaptic package manager:<br />
<br />
*IceWM是窗口管理器,加上GDM,Firefox,Abiword和新立得软件包管理器。<br />
<br />
sudo aptitude install gdm xorg xterm icewm menu mozilla-firefox abiword synaptic<br />
<br />
* XFCE and Firefox, with Synaptic package manager and KDM as the login manager:<br />
<br />
*XFCE,Firefox,再加上新立得软件包管理器和登录管理器KDM。<br />
<br />
<br />
sudo aptitude install kdm xorg xfce4 firefox synaptic<br />
<br />
* Fluxbox with Dillo, and XDM as a login manager:<br />
<br />
*Fluxbox,Dillo,和XDM <br />
<br />
sudo aptitude install fluxbox xorg xdm dillo<br />
<br />
* Openbox with no login manager, XFE as the file manager and xfce4-terminal as an X terminal, as well as Openbox themes and the Tango icon set:<br />
<br />
Openbox,XFE和xfce4-terminal还有Openbox主题及Tango图标。<br />
<br />
sudo aptitude install openbox obconf openbox-themes xfe xfce4-terminal tango-icon-theme-extras xorg<br />
<br />
Remember to check the repositories for more ideas on software and applications!<br />
<br />
记得查看软件仓库来获得更多的关于软件和应用的想法。<br />
<br />
= 低配置的选择 =<br />
<br />
For a minimalistic system that does not require as much configuration, you can install the alternate window managers after installing a full K/X/Ubuntu system, thus preinstalling much of the required software but keeping the speed. However, installing a full system does require more system resources.<br />
<br />
对于一个很小的系统并不需要太多的配置,在安装完完整的K/X/Ubuntu系统后你可以安装另一种窗口管理器来替代它,这样就可以安装很多必要软件并且保证运行速度。然而安装一个完整的系统的确需要更多的系统资源。<br />
<br />
= 扩展链接 =<br />
<br />
* [http://www.fluxbuntu.org FluxBuntu]: An Ubuntu variant with Fluxbox as the default window manager. An excellent place to start for a Fluxbox-based system. <br />
* [http://www.ubuntulite.org UbuntuLite]: An early project to build a stripped-down version of Ubuntu aimed at low-end machines. The project also seems to have stalled.<br />
* [http://alecjw.googlepages.com/cubuntu-commandlineubuntu Cubuntu] is not a graphical system; Cubuntu is a full-featured ''command line'' system, suitable for computers that can't handle any of the above options -- such as early Pentium or perhaps even 486-grade machines with as little as 16Mb RAM. And don't be skeptical: Even without a graphic environment, a computer can perform a lot more tasks than you would expect. B)<br />
* [http://www.enlightenment.org/ Enlightenment] is another window manager, but it is still in development and requires additional steps to install. However, it is very lightweight and functional. <br />
* [http://www.thinkgos.com/ gOS] is an operating system based on Ubuntu, uses a customized version of Enlightenment as its window manager, and is able to run on some older systems.<br />
<br />
<br />
<br />
CategoryDocumentation</div>Convicehttps://wiki.ubuntu.org.cn/index.php?title=%E4%BD%8E%E9%85%8D%E7%BD%AE%E7%94%B5%E8%84%91%E5%AE%89%E8%A3%85&diff=72722低配置电脑安装2007-12-07T11:47:04Z<p>Convice:</p>
<hr />
<div>{{Copyedit translation|from=https://wiki.ubuntu.com/Installation/LowMemorySystems}}<br />
{{From|https://wiki.ubuntu.com/Installation/LowMemorySystems}}<br />
{{Translator|convice}}<br />
{{Languages|Installation/LowMemorySystems}}<br />
<br />
'''How to install Ubuntu on low memory systems <br />
(Pentium III and earlier machines, with 32-192 MB RAM).'''<br />
<br />
'''怎样在低内存的系统上安装Ubuntu(Pentium III或更早的,配有32-192MB内存的机器)'''<br />
<br />
====内存需求====<br />
<br />
Installing Ubuntu on any system requires at least 32Mb of memory: The text-based installer included with the alternate (install) CDs needs that much space to run reliably. Smaller memory configurations run into problems, and while not impossible, it can be very difficult to complete an installation with less than the minimum RAM requirement.<br />
<br />
在任何系统上安装Ubuntu至少需要32Mb内存:包含在alternate (install) CDs的基于字符的安装程序需要这些空间来可靠运行。更小的内存配置可能会遇到问题,虽然不是不可能,但如果内存小于最低的需求,要完成安装十分困难。<br />
<br />
Depending on the hardware requirements, you can expect a sparse Ubuntu system to boot to a graphical desktop on anywhere from 19Mb to 54Mb. That requirement will fluctuate with the system demands, and increase while the system is active. Swap space is crucial to low-memory machines, so don't be stingy when setting up your system.<br />
<br />
由于硬件需求,你可以期望一个瘦小的Ubuntu系统在任何内存从19Mb到54Mb的地方启动。这个需求会随着系统的需求面浮动,当系统活跃的时候会增加。交换分区对于低内存的机器十分重要,所以当设置系统的时候别小器。<br />
<br />
<br />
<br />
==== 处理器 ====<br />
<br />
There is no practical speed requirement, although a slower processor will take more time to finish installing. Some Pentium machines will take hours to complete, simply because the CPU takes longer to finish. As a general benchmark, a 75Mhz machine finishes a command-line installation of Ubuntu 7.04 in about four hours, and a 120Mhz machine finishes in perhaps an hour less than that. 200Mhz and faster machines will see a still stronger improvement.<br />
<br />
对处理器的速度没有什么实际的需求,虽然低速度的处理器将要花更多的时间来完成安装。仅仅是因为CPU花了太多的时间,一些Pentium机将要花费几个小时来完成安装。根据通常的基准测试,一台75Mhz的机器要4个小时来完成基于命令行的Ubuntu 7.04的安装,一台120Mhz的要比它少用一个小时。200Mhz或是更快的机器将会有更强的提升。<br />
<br />
If you do decide to install Ubuntu on a legacy machine, be patient. There will come times when you think the machine has stopped or is hung, when in fact it's still moving, albeit at a very slow rate.<br />
<br />
如果你决定在一台老式的机器上安装Ubuntu,要有耐心。可能会出现好几次这样的情况:当你认为机器已经停止或挂起,其实它正在运行,虽然速度很慢<br />
<br />
====磁盘空间需求====<br />
Disk space on an absolutely minimal installation can be reduced to as little as 500Mb. A fresh and clean server installation of Ubuntu 7.04 generally takes only 300Mb, although there will be minor variations on account of hardware differences.<br />
<br />
磁盘空间在绝对最小安装的情况下可以减少到500Mb。虽然对于不同的硬件会有很小的变化,一个干净的Ubuntu 7.04 服务器的安装通常只需要300Mb。<br />
<br />
====其它硬件上的考虑====<br />
These instructions assume you will have a working Internet connection and access to the [[UbuntuHelp:Repositories| universe and multiverse repositories]]. Configuring your hardware is not included on this page.<br />
<br />
这份指南假设你有一个可用的互联网连接并且可以访问[[UbuntuHelp:Repositories| universe and multiverse repositories]].它不包括对你硬件的配置。<br />
<br />
<br />
<br />
== 安装Ubuntu Server ==<br />
<br />
The server version of Ubuntu is a sparse command-line system, without any graphical elements. It's a text-only version of what lies underneath all the advanced graphical elements. It's also the starting point for a minimal installation.<br />
<br />
Ubuntu服务器版是一个精减的命令行系统,没有任何图形元素。它是一个位于高级图形元素之下的纯文本版本。它是我们最小化安装的起点。<br />
<br />
==== Ubuntu 6.06 ====<br />
<br />
To install a base system, boot from the alternate (install) CD and choose "Install a server."<br />
<br />
Follow the prompts to complete installation.<br />
<br />
启动alternate(install)CD,选择"Install a server"。按提示完成安装。<br />
<br />
==== Ubuntu 6.10, 7.04, or 7.10 ====<br />
<br />
To install a base system, boot from the alternate (install) CD and choose "Install a command-line system."<br />
<br />
Follow the prompts to complete installation.<br />
<br />
启动alternate(install)CD,选择"Install a command-line system."。按提示完成安装。<br />
<br />
=== 增加软件仓库 ===<br />
<br />
==== 更改源 ====<br />
<br />
Once the server install is complete, you will probably want to edit your [[UbuntuHelp:Sources.list|UbuntuHelp:sources.list]] file.<br />
<br />
当安装好Ubuntu服务器版後,你可能需要编辑你的[[UbuntuHelp:Sources.list|UbuntuHelp:sources.list]]文件。<br />
<br />
sudo nano /etc/apt/sources.list<br />
<br />
Uncomment all official repositories by removing # at the beginning of the line. Do not uncomment the narrative portions of that file; in other words, where you see a double hash mark (##) leave those lines alone.<br />
<br />
删除每一行开始的#号来消除对官方软件仓库的注释。不要消除文件里描述部分的注释,即以两个#号(##)开始的行。<br />
<br />
==== 更新和升级你的系统 ====<br />
<br />
Now you should update your system. Return to the command line and type: <br />
<br />
现在你应该更新你的系统。回到命令行输入:<br />
<br />
sudo aptitude update<br />
<br />
It's probably also a good idea to upgrade your system at this point. Use this command to upgrade your system: <br />
<br />
这时升级你的系统也是个不错的主意。用这个命令升级你的系统。<br />
<br />
sudo aptitude upgrade (或者, 对于 Gutsy: sudo aptitude safe-upgrade)<br />
<br />
Now you should be ready to install a window manager and some programs.<br><br />
<br />
现在你已经准备好了来安装窗口管理器和一些程序。<br />
<br />
=安装图形环境的准备工作=<br />
<br />
The absolute minimum for any graphical environment is X.org<br />
<br />
最小的图形环境是X.org<br />
<br />
=== Installing X.org ===<br />
===安装X.org===<br />
<br />
On Ubuntu Edgy (6.10), Feisty (7.04), and Gutsy (7.10), use the command:<br />
在 Ubuntu Edgy (6.10), Feisty (7.04), 和 Gutsy (7.10), 用下面的命令:<br />
<br />
sudo aptitude install xorg<br />
<br />
On Ubuntu Dapper (6.06), use the command:<br />
在 Ubuntu Dapper (6.06), 用下面的命令:<br />
<br />
sudo aptitude install x-window-system-core<br />
<br />
=== Starting X.org ===<br />
===启动X.org===<br />
<br />
This package gives you the framework for an X session, complete with a variety of drivers and configuration files. Installing ''xorg'' (or ''x-window-system-core'') also triggers the self-configuration sequence, so when it finishes, your hardware should be ready to use, barring any errors or incompatibilities.<br />
通过一些驱动和配置文件,这个软件包给了你一个X对话的框架。安装“Xorg”或“x-window-system-core”还启动了自动配置队列,安装完成后,如果没有错误或不兼容,你的硬件应该已经可用了。<br />
<br />
It's important to note that installing ''xorg'' or ''x-window-system-core'' really doesn't leave you with much. You can start X at this point with this command:<br />
必须注意的是,安装“Xorg”或“x-window-system-core”不会给你很多。这时你可以用以下命令启动X:<br />
<br />
startx<br />
<br />
but without a window manager and some software, you probably won't get much done.<br />
但是没有窗口管理器和一些软件,你能做的很少。<br />
<br />
= 安装一个窗口管理器=<br />
<br />
A window manager controls the placement and appearance of windows within a graphical user interface. <br />
<br />
窗口管理器通过图形用户界面控制窗口的位置有显示。<br />
<br />
There are many lightweight window managers that will give you better access to your system through the X layer. Each one has its own way of managing the desktop, and its own way of configuring themes and menus.<br />
<br />
有很多轻量级的窗口管理器可以使你更好的通过X层访问你的系统。每一种都有它们自己的方式来管理桌面,都有它们自己的方法来配置主题和菜单。<br />
<br />
== Openbox ==<br />
<br />
"Openbox" is one of the lightest, fastest window managers available, but can take some time to configure and set up. It has its origins in Blackbox, but newer versions are complete rewrites of the Blackbox code.<br />
<br />
"Openbox"是一种轻量级的快速的可用的窗口管理器,只是需要一些时间来安装和配置。它源于Blackbox,但是新版的全部重写了Blackbox的代码。<br />
<br />
Install Openbox with this command:<br />
用以下命令安装Openbox:<br />
<br />
sudo aptitude install openbox obconf openbox-themes<br />
<br />
These packages and their dependencies will allow you to build and configure an Openbox system, along with a choice of themes and some configuration options.<br />
<br />
这些软件包和它们的依赖软件包让你可以建立和配置Openbox系统,还有可选择的主题和一些配置选项。<br />
<br />
'''Note:''' Edgy (Ubuntu 6.10) users should note a small discrepancy in ''obconf'' that might prevent it from running. You can correct that with these commands ...<br />
<br />
'''注意:'''Edgy (Ubuntu 6.10)用户必须注意"obconf"一个可能会使其无法运行的小问题。你可以用下面的命令解决这个问题。<br />
<br />
cd /usr/lib<br />
sudo ln libobparser.so.0.4.0 libobparser.so.1<br />
sudo ln libobrender.so.0.4.0 libobrender.so.1<br />
sudo ldconfig -X<br />
<br />
Entering ''obconf'' in an X terminal window should now trigger the obconf dialogue.<br />
<br />
在X终端输入''obconf''将启动obconf对话。<br />
<br />
== IceWM ==<br />
<br />
"IceWM" has a very strong following as a good, clean, fast window manager that resembles a conventional "desktop" in many ways. Among many of its perks are themes that resemble the Windows XP desktop theme -- which may be appealing to you.<br />
<br />
"IceWM"很受欢迎,因为它是一个很好的,干净的,很快的窗口管理器,它还集成了一个可选择的桌面。在它的众多优点中有一个可能会吸引你:它集成了Windows XP桌面主题。<br />
<br />
Install IceWM with this command:<br />
<br />
用下面的命令安装IceWM:<br />
<br />
sudo aptitude install icewm iceconf icepref iceme icewm-themes<br />
<br />
When finished, you will have a number of configuration and menu options. You can start IceWM with the ''startx'' command.<br />
<br />
安装完成后,你将拥有一些配置和菜单选项。你可以用''startx''命令启动它。<br />
<br />
== Fluxbox ==<br />
<br />
"Fluxbox" is a beautiful, highly configurable desktop system that is easy on system resources without compromising on graphical appeal. Fluxbox is the default window manager for a number of Linux distributions, probably most notable among them being [http://www.damnsmalllinux.org/ Damn Small Linux].<br />
<br />
"Fluxbox" 是一种漂亮的,高度可配置的桌面系统,它对系统资源要求不高却没有损失图形的吸引力。"Fluxbox" 是许多Linux发开版的默认窗口管理器,可能大部分都在[http://www.damnsmalllinux.org/ Damn Small Linux]上。<br />
<br />
<br />
Install Fluxbox with this command:<br />
<br />
用下面的命令安装Fluxbox:<br />
<br />
sudo aptitude install fluxbox fluxconf<br />
<br />
Once installed, you can start Fluxbox with the ''startfluxbox'' command. Remember, if you enjoy working with Fluxbox, you should consider [http://www.fluxbuntu.org Fluxbuntu] as an option.<br />
<br />
安装好以后,你可以用''startfluxbox''命令启动它。记住,如果你很喜欢使用Fluxbox,你可以考虑 [http://www.fluxbuntu.org Fluxbuntu] 作为一种选择。<br />
<br />
== FVWM-Crystal ==<br />
<br />
"FVWM-Crystal" is a complete set of configuration scripts which sit atop of FVWM. FVWM-Crystal has support for integrated access to music players, terminal emulators and system monitors. It boasts some of the finest eye candy available to low-end machines, and is a snap to install.<br />
<br />
"FVWM-Crystal" 是基于FVWM的一些配置脚本。"FVWM-Crystal" 支持对音乐播放器,终端和系统监视的集成访问。它号称是在低配置机器上可用的最漂亮的窗口管理器,并且它可以很快的安装。<br />
<br />
For more information about building an FVWM-Crystal desktop, check out the ["FVWM-Crystal"] page.<br />
<br />
想知道更多关于安装FVWM-Crystal桌面的的信息,请访问["FVWM-Crystal"]。<br />
<br />
== XFCE ==<br />
<br />
XFCE is heavier than any of the systems mentioned so far, but has some added functions as a result. You can try XFCE alone if you like, but if you're keen on an XFCE installation, look into [http://www.xubuntu.org Xubuntu] as an option.<br />
<br />
XFCE 相对于目前已经提到的轻量级窗口管理器来说都更“重”,但是是因为增加了一些应用的。如果你喜欢,你可以单独党旗XFCE,但如果你一定要安装XFCE,请查看 [http://www.xubuntu.org Xubuntu]。<br />
<br />
Install XFCE alone, without Xubuntu, with this command:<br />
<br />
单独安装XFCE,而不是Xubuntu,请用下面的命令:<br />
<br />
sudo aptitude install xfce4<br />
<br />
It's worth noting that some Edgy users have difficulty starting XFCE from a minimal install. The normal start command for XFCE -- ''startxfce4'' -- doesn't seem to be properly configured in Edgy.<br />
<br />
对于Edgy用户来讲,这是没有用的,从最小化安装启动XFCE是有困难的。XFCE的启动命令-- ''startxfce4'' -- 看起来好像在Edgy上没有配置好。<br />
<br />
If you want the entire Xubuntu package, which includes a full suite of software and a lot of improvements, try this command:<br />
<br />
如果你想要一个完全的包括了一些软件和一些改进的Xubuntu包,请用下面的命令:<br />
<br />
sudo aptitude install xubuntu-desktop<br />
<br />
That will download quite a large amount of packages; you may want to consider installing Xubuntu fresh, from the [http://www.xubuntu.org/get installation ISO]. <br />
<br />
这将要下载很多的软件包;你可能想从 [http://www.xubuntu.org/get installation ISO]干净的安装Xubuntu。<br />
<br />
Note: Xubuntu will use more system resources and may not be optimal for a low memory system with limited disk space, but it is lighter than a standard Ubuntu system.<br />
<br />
''注意:'' Xubuntu 将会使用更多的系统资源,而且可能对于一个硬盘空间和内存都有限的系统来讲不是最好的选择,但是它比标准的Ubuntu系统“轻”。<br />
<br />
= 安装软件 =<br />
<br />
Now that the graphical window manager is set up, it's time to add some necessary and recommended packages. These will add additional functionality and make using the system easier. Additionally, adding a graphical package manager will provide an easy method to manage installed applications and packages.<br />
<br />
现在图形窗口管理器已经设置好了,现在可以安装一些必须或推荐的软件包。这些软件包将会加入一些新的功能,使系统更容易使用。另外,安装一个图形化的软件包管理器将会使管理已安装的应用和软件包变得容易。<br />
<br />
== 登录管理器 ==<br />
<br />
Login managers will assist in choosing a graphical environment and will not require the user to start x.org to get into the window manager. <br />
<br />
登录管理器将帮助我们选择一个图形环境,而且不需要用户启动X.org就可以进入窗口管理器。<br />
<br />
It's important to note that it's not necessary to use a login manager. If you're willing to log in at the command line and start X manually, you can save yourself a lot of system resources -- and the time it takes to load them. That can be a more appealing option on older machines.<br />
<br />
要说明的是登录管理器并不是必须的。如果你喜欢在命令行界面登录然后手动启动X,你能节约很多系统资源和启动它们的时间。对于老的机器来说可能更有吸引力。<br />
<br />
=== GDM ===<br />
<br />
GDM is the Ubuntu default for a login manager. However, GDM has a reputation of being a heavyweight, and on a system that needs as little bulk as possible, you might find it to be a burden. If you've got a decent system, install it using:<br />
<br />
GDM是Ubuntu默认的登陆管理器,它被认为是一个重量级的管理器,在系统中它需要比较多的资源,所以你可能会发现它是一个负担。如果你有一个很好的系统,用以下命令安装它:<br />
<br />
sudo aptitude install gdm<br />
<br />
=== KDM ===<br />
<br />
KDM is another manager, but has the same heavy reputation as GDM.<br />
<br />
KDM是另一种管理器,它和GDM一样被认为是重量级的管理器。用以下命令安装:<br />
<br />
sudo aptitude install kdm<br />
<br />
=== XDM ===<br />
<br />
XDM is the login manager for straight X, and while less beautiful than GDM or KDM, it can perform in the same role without fuss.<br />
<br />
XDM是纯粹的X的登录管理器,它没有GDM和KDM漂亮,但它能像GDM和KDM那样很好的工作。用以下命令安装:<br />
<br />
sudo aptitude install xdm<br />
<br />
== 浏览器 ==<br />
<br />
Now that your system is up and running, it would be a good idea to add an internet browser to surf the web and get some use out of the machine!<br />
<br />
现在你的系统已经在运行了,现在可以安装一个因特网浏览器来上网冲浪。<br />
<br />
=== Firefox ===<br />
Web browsers come in many flavors, and the most prevalent -- Firefox -- can be laggy on low-memory or slow systems. Even the GNU version of Firefox, [https://wiki.ubuntu.com/IceWeasel Iceweasel] can be a bit heavy on older machines. If you've got at least 128 mb of memory, Firefox should work just fine.<br />
<br />
Firefox是适用于很多Linux发行版,是最流行的浏览器。它对于低内存或者低速的系统来讲,可能有点难以应付。甚至是GNU版本的Firefox,[https://wiki.ubuntu.com/IceWeasel Iceweasel] 对于老的机器来讲也有些“重”。如果你有多于128mb的内存,Firefox可以运行的很好。用以下命令安装它:<br />
<br />
sudo aptitude install firefox <br />
<br />
=== Dillo ===<br />
<br />
While not nearly as full-featured as Firefox, Dillo has the advantages of a very small footprint and few resource requirements.<br />
<br />
不像Firefox那样具有完全的功能,Dillo的优点是有一个很小的脚印和很小的资源需求。用以下命令安装它:<br />
<br />
sudo aptitude install dillo<br />
<br />
== iDesk ==<br />
<br />
Many lightweight desktop systems use [http://idesk.sourceforge.net/ iDesk] as a way of including customized, clickable icons directly on the desktop. iDesk is maintained in the Ubuntu repositories, and is installable from the command line with:<br />
<br />
很多轻量级的桌面系统用[http://idesk.sourceforge.net/ iDesk]来配置和使桌面上的图标可以被直接点击。iDesk包含在Ubuntu的软件仓库中,可以用以下命令安装它:<br />
<br />
sudo aptitude install idesk<br />
<br />
Consult the [http://idesk.sourceforge.net/ iDesk wiki] for instructions on how to configure and use iDesk. For icon sets, you may wish to search the repositories, or download them from third-party customization sites, such as [http://www.gnome-look.org Gnome-Look.org] and similar locations.<br />
<br />
访问[http://idesk.sourceforge.net/ iDesk wiki]来获取配置和使用iDesk的命令。你可能要搜索软件仓库或从第三方的配置网站上下载图标,像[http://www.gnome-look.org Gnome-Look.org]及相似的网站。<br />
<br />
== 文件管理器 ==<br />
<br />
Lightweight systems have a number of options available for graphical file management. Thunar is the default file manager in Xubuntu and many XFCE-based systems; it is installable alone with this command:<br />
<br />
轻量级的系统有多种可用的图形文件管理器。Thunar是Xubuntu和很多基于XFCE默认的系统,可以使用下面的命令单独安装它:<br />
<br />
sudo aptitude install thunar<br />
<br />
XFE is an even lighter file manager, intended to mimic the Windows Explorer interface. It has very few dependencies and is very fast.<br />
<br />
XFE是一种更“轻”的文件管理器,它模仿了Windwos Explorer接口。它只依赖很少的软件包而且非常快。用下面命令安装它:<br />
<br />
sudo aptitude install xfe<br />
<br />
ROX-Filer is another file management program, which makes extensive use of drag-and-drop principles. It does appear to have a large number of dependencies however, which means installing it may entail more external packages than you wish. Install ROX-Filer with this command:<br />
<br />
ROX-Filer也是一种文件管理器,它扩展了drag-and-drop原理。它依赖很多的软件包,这就意味着它需要比你想像的要多的扩展软件包。用下面命令安装它:<br />
<br />
sudo aptitude install rox-filer<br />
<br />
Nautilus is the default file manager for Ubuntu. It requires some more resources, but it has a lot of useful features. It can manage your desktop, show a wallpaper and desktop icons, which are automatically created for new devices (e.g. USB flash drives). Install Nautilus using this command:<br />
<br />
Nautilus是Ubuntu默认的文件管理器。它需要更多的资源,但它具有很多有用的特性。它能管理你的桌面,显示桌面背景和桌面图标,对于新的设备它们都可以自动创建。用下面命令安装它:<br />
<br />
sudo apt-get install nautilus<br />
<br />
To use it together with a window manager, execute the following command or add it to your autostart script. For example, use $HOME/.icewm/startup for IceWM.<br />
<br />
要让它和窗口管理器一起工作,需执行以下命令或者把命令加入到自动启动脚本。例如:对于IceWM,加入$HOME/.icewm/startup文件。<br />
<br />
nautilus --no-default-window &amp; <br />
<br />
Some other popular file managers include<br />
<br />
其它一些浒的文件管理器有:<br />
<br />
* [http://pcmanfm.sourceforge.net/ PCManFM];<br />
* [http://packages.ubuntu.com/edgy/utils/mc Midnight Commander], [http://tuxcmd.sourceforge.net/ Tux Commander] and [http://packages.ubuntu.com/edgy/gnome/gnome-commander Gnome Commander] (which all resemble the old Norton Commander interface);<br />
* [http://packages.ubuntu.com/edgy/x11/xffm4-filemanager xffm4-filemanager];<br />
* [http://step.polymtl.ca/~coyote/xvfilemgr_main.html XVFilemgr];<br />
* and [http://packages.ubuntu.com/edgy/kde/dolphin Dolphin], which is a file manager aimed at KDE and Kubuntu.<br />
<br />
There are many others. Some are available through the repositories; others will require you to download and install them through another source. Experiment with different file managers to see which ones appeal to you.<br />
<br />
这里有很多其它的文件管理器。其中一些可以通过软件仓库安装,一些必须通过源码下载和安装。尝试不同的文件管理器,看哪些能够吸引你。<br />
<br />
== 软件包管理器 ==<br />
<br />
Add a graphical package manager to install, remove and upgrade software packages and to add repositories without using the command line. Synaptic package manager is the standard and can be installed with this command:<br />
<br />
安装一个图形化的软件包管理器来安装,删除和升级软件包和增加软件仓库,可以让你不需要使用命令。新立得软件包管理器是标准的软件包管理工具。可以用下面命令来安装:<br />
<br />
sudo aptitude install synaptic<br />
<br />
You can use the package manager to add a word processor, such as Abiword, and other productivity software.<br />
<br />
你可以用软件包管理器来安装字处理器,像Abiword,或是其它的软件。<br />
<br />
= 安装一个完整的轻量级系统 =<br />
<br />
Building on the ideas above, here are some complete graphical systems, installable through a single command line. Feel free to mix and match between these options.<br />
<br />
基于以上的想法,我们可以用一条命令来安装一个完整的图形系统。你可以自由的组合这些选项。<br />
<br />
'''Remember: If you are using Dapper or earlier, replace "xorg" with "x-window-system-core"'''<br />
<br />
'''记住:如果你是在用Dapper或是更早的版本,用"x-window-system-core"代替"xorg"。<br />
<br />
* IceWM as a window manager, plus GDM, Firefox, Abiword and the Synaptic package manager:<br />
<br />
*IceWM是窗口管理器,加上GDM,Firefox,Abiword和新立得软件包管理器。<br />
<br />
sudo aptitude install gdm xorg xterm icewm menu mozilla-firefox abiword synaptic<br />
<br />
* XFCE and Firefox, with Synaptic package manager and KDM as the login manager:<br />
<br />
*XFCE,Firefox,再加上新立得软件包管理器和登录管理器KDM。<br />
<br />
<br />
sudo aptitude install kdm xorg xfce4 firefox synaptic<br />
<br />
* Fluxbox with Dillo, and XDM as a login manager:<br />
<br />
*Fluxbox,Dillo,和XDM <br />
<br />
sudo aptitude install fluxbox xorg xdm dillo<br />
<br />
* Openbox with no login manager, XFE as the file manager and xfce4-terminal as an X terminal, as well as Openbox themes and the Tango icon set:<br />
<br />
Openbox,XFE和xfce4-terminal还有Openbox主题及Tango图标。<br />
<br />
sudo aptitude install openbox obconf openbox-themes xfe xfce4-terminal tango-icon-theme-extras xorg<br />
<br />
Remember to check the repositories for more ideas on software and applications!<br />
<br />
记得查看软件仓库来获得更多的关于软件和应用的想法。<br />
<br />
= 低配置的选择 =<br />
<br />
For a minimalistic system that does not require as much configuration, you can install the alternate window managers after installing a full K/X/Ubuntu system, thus preinstalling much of the required software but keeping the speed. However, installing a full system does require more system resources.<br />
<br />
对于一个很小的系统并不需要太多的配置,在安装完完整的K/X/Ubuntu系统后你可以安装另一种窗口管理器来替代它,这样就可以安装很多必要软件并且保证运行速度。然而安装一个完整的系统的确需要更多的系统资源。<br />
<br />
= 扩展链接 =<br />
<br />
* [http://www.fluxbuntu.org FluxBuntu]: An Ubuntu variant with Fluxbox as the default window manager. An excellent place to start for a Fluxbox-based system. <br />
* [http://www.ubuntulite.org UbuntuLite]: An early project to build a stripped-down version of Ubuntu aimed at low-end machines. The project also seems to have stalled.<br />
* [http://alecjw.googlepages.com/cubuntu-commandlineubuntu Cubuntu] is not a graphical system; Cubuntu is a full-featured ''command line'' system, suitable for computers that can't handle any of the above options -- such as early Pentium or perhaps even 486-grade machines with as little as 16Mb RAM. And don't be skeptical: Even without a graphic environment, a computer can perform a lot more tasks than you would expect. B)<br />
* [http://www.enlightenment.org/ Enlightenment] is another window manager, but it is still in development and requires additional steps to install. However, it is very lightweight and functional. <br />
* [http://www.thinkgos.com/ gOS] is an operating system based on Ubuntu, uses a customized version of Enlightenment as its window manager, and is able to run on some older systems.<br />
<br />
<br />
<br />
CategoryDocumentation</div>Convicehttps://wiki.ubuntu.org.cn/index.php?title=%E4%BD%8E%E9%85%8D%E7%BD%AE%E7%94%B5%E8%84%91%E5%AE%89%E8%A3%85&diff=72721低配置电脑安装2007-12-07T11:46:39Z<p>Convice:</p>
<hr />
<div>{{Copyedit translation|from=https://wiki.ubuntu.com/Installation/LowMemorySystems}}<br />
{{From|https://wiki.ubuntu.com/Installation/LowMemorySystems}}<br />
{{Translator|convice}}<br />
{{Languages|Installation/LowMemorySystems}}<br />
<br />
'''How to install Ubuntu on low memory systems <br />
(Pentium III and earlier machines, with 32-192 MB RAM).'''<br />
'''怎样在低内存的系统上安装Ubuntu(Pentium III或更早的,配有32-192MB内存的机器)'''<br />
<br />
====内存需求====<br />
<br />
Installing Ubuntu on any system requires at least 32Mb of memory: The text-based installer included with the alternate (install) CDs needs that much space to run reliably. Smaller memory configurations run into problems, and while not impossible, it can be very difficult to complete an installation with less than the minimum RAM requirement.<br />
<br />
在任何系统上安装Ubuntu至少需要32Mb内存:包含在alternate (install) CDs的基于字符的安装程序需要这些空间来可靠运行。更小的内存配置可能会遇到问题,虽然不是不可能,但如果内存小于最低的需求,要完成安装十分困难。<br />
<br />
Depending on the hardware requirements, you can expect a sparse Ubuntu system to boot to a graphical desktop on anywhere from 19Mb to 54Mb. That requirement will fluctuate with the system demands, and increase while the system is active. Swap space is crucial to low-memory machines, so don't be stingy when setting up your system.<br />
<br />
由于硬件需求,你可以期望一个瘦小的Ubuntu系统在任何内存从19Mb到54Mb的地方启动。这个需求会随着系统的需求面浮动,当系统活跃的时候会增加。交换分区对于低内存的机器十分重要,所以当设置系统的时候别小器。<br />
<br />
<br />
<br />
==== 处理器 ====<br />
<br />
There is no practical speed requirement, although a slower processor will take more time to finish installing. Some Pentium machines will take hours to complete, simply because the CPU takes longer to finish. As a general benchmark, a 75Mhz machine finishes a command-line installation of Ubuntu 7.04 in about four hours, and a 120Mhz machine finishes in perhaps an hour less than that. 200Mhz and faster machines will see a still stronger improvement.<br />
<br />
对处理器的速度没有什么实际的需求,虽然低速度的处理器将要花更多的时间来完成安装。仅仅是因为CPU花了太多的时间,一些Pentium机将要花费几个小时来完成安装。根据通常的基准测试,一台75Mhz的机器要4个小时来完成基于命令行的Ubuntu 7.04的安装,一台120Mhz的要比它少用一个小时。200Mhz或是更快的机器将会有更强的提升。<br />
<br />
If you do decide to install Ubuntu on a legacy machine, be patient. There will come times when you think the machine has stopped or is hung, when in fact it's still moving, albeit at a very slow rate.<br />
<br />
如果你决定在一台老式的机器上安装Ubuntu,要有耐心。可能会出现好几次这样的情况:当你认为机器已经停止或挂起,其实它正在运行,虽然速度很慢<br />
<br />
====磁盘空间需求====<br />
Disk space on an absolutely minimal installation can be reduced to as little as 500Mb. A fresh and clean server installation of Ubuntu 7.04 generally takes only 300Mb, although there will be minor variations on account of hardware differences.<br />
<br />
磁盘空间在绝对最小安装的情况下可以减少到500Mb。虽然对于不同的硬件会有很小的变化,一个干净的Ubuntu 7.04 服务器的安装通常只需要300Mb。<br />
<br />
====其它硬件上的考虑====<br />
These instructions assume you will have a working Internet connection and access to the [[UbuntuHelp:Repositories| universe and multiverse repositories]]. Configuring your hardware is not included on this page.<br />
<br />
这份指南假设你有一个可用的互联网连接并且可以访问[[UbuntuHelp:Repositories| universe and multiverse repositories]].它不包括对你硬件的配置。<br />
<br />
<br />
<br />
== 安装Ubuntu Server ==<br />
<br />
The server version of Ubuntu is a sparse command-line system, without any graphical elements. It's a text-only version of what lies underneath all the advanced graphical elements. It's also the starting point for a minimal installation.<br />
<br />
Ubuntu服务器版是一个精减的命令行系统,没有任何图形元素。它是一个位于高级图形元素之下的纯文本版本。它是我们最小化安装的起点。<br />
<br />
==== Ubuntu 6.06 ====<br />
<br />
To install a base system, boot from the alternate (install) CD and choose "Install a server."<br />
<br />
Follow the prompts to complete installation.<br />
<br />
启动alternate(install)CD,选择"Install a server"。按提示完成安装。<br />
<br />
==== Ubuntu 6.10, 7.04, or 7.10 ====<br />
<br />
To install a base system, boot from the alternate (install) CD and choose "Install a command-line system."<br />
<br />
Follow the prompts to complete installation.<br />
<br />
启动alternate(install)CD,选择"Install a command-line system."。按提示完成安装。<br />
<br />
=== 增加软件仓库 ===<br />
<br />
==== 更改源 ====<br />
<br />
Once the server install is complete, you will probably want to edit your [[UbuntuHelp:Sources.list|UbuntuHelp:sources.list]] file.<br />
<br />
当安装好Ubuntu服务器版後,你可能需要编辑你的[[UbuntuHelp:Sources.list|UbuntuHelp:sources.list]]文件。<br />
<br />
sudo nano /etc/apt/sources.list<br />
<br />
Uncomment all official repositories by removing # at the beginning of the line. Do not uncomment the narrative portions of that file; in other words, where you see a double hash mark (##) leave those lines alone.<br />
<br />
删除每一行开始的#号来消除对官方软件仓库的注释。不要消除文件里描述部分的注释,即以两个#号(##)开始的行。<br />
<br />
==== 更新和升级你的系统 ====<br />
<br />
Now you should update your system. Return to the command line and type: <br />
<br />
现在你应该更新你的系统。回到命令行输入:<br />
<br />
sudo aptitude update<br />
<br />
It's probably also a good idea to upgrade your system at this point. Use this command to upgrade your system: <br />
<br />
这时升级你的系统也是个不错的主意。用这个命令升级你的系统。<br />
<br />
sudo aptitude upgrade (或者, 对于 Gutsy: sudo aptitude safe-upgrade)<br />
<br />
Now you should be ready to install a window manager and some programs.<br><br />
<br />
现在你已经准备好了来安装窗口管理器和一些程序。<br />
<br />
=安装图形环境的准备工作=<br />
<br />
The absolute minimum for any graphical environment is X.org<br />
<br />
最小的图形环境是X.org<br />
<br />
=== Installing X.org ===<br />
===安装X.org===<br />
<br />
On Ubuntu Edgy (6.10), Feisty (7.04), and Gutsy (7.10), use the command:<br />
在 Ubuntu Edgy (6.10), Feisty (7.04), 和 Gutsy (7.10), 用下面的命令:<br />
<br />
sudo aptitude install xorg<br />
<br />
On Ubuntu Dapper (6.06), use the command:<br />
在 Ubuntu Dapper (6.06), 用下面的命令:<br />
<br />
sudo aptitude install x-window-system-core<br />
<br />
=== Starting X.org ===<br />
===启动X.org===<br />
<br />
This package gives you the framework for an X session, complete with a variety of drivers and configuration files. Installing ''xorg'' (or ''x-window-system-core'') also triggers the self-configuration sequence, so when it finishes, your hardware should be ready to use, barring any errors or incompatibilities.<br />
通过一些驱动和配置文件,这个软件包给了你一个X对话的框架。安装“Xorg”或“x-window-system-core”还启动了自动配置队列,安装完成后,如果没有错误或不兼容,你的硬件应该已经可用了。<br />
<br />
It's important to note that installing ''xorg'' or ''x-window-system-core'' really doesn't leave you with much. You can start X at this point with this command:<br />
必须注意的是,安装“Xorg”或“x-window-system-core”不会给你很多。这时你可以用以下命令启动X:<br />
<br />
startx<br />
<br />
but without a window manager and some software, you probably won't get much done.<br />
但是没有窗口管理器和一些软件,你能做的很少。<br />
<br />
= 安装一个窗口管理器=<br />
<br />
A window manager controls the placement and appearance of windows within a graphical user interface. <br />
<br />
窗口管理器通过图形用户界面控制窗口的位置有显示。<br />
<br />
There are many lightweight window managers that will give you better access to your system through the X layer. Each one has its own way of managing the desktop, and its own way of configuring themes and menus.<br />
<br />
有很多轻量级的窗口管理器可以使你更好的通过X层访问你的系统。每一种都有它们自己的方式来管理桌面,都有它们自己的方法来配置主题和菜单。<br />
<br />
== Openbox ==<br />
<br />
"Openbox" is one of the lightest, fastest window managers available, but can take some time to configure and set up. It has its origins in Blackbox, but newer versions are complete rewrites of the Blackbox code.<br />
<br />
"Openbox"是一种轻量级的快速的可用的窗口管理器,只是需要一些时间来安装和配置。它源于Blackbox,但是新版的全部重写了Blackbox的代码。<br />
<br />
Install Openbox with this command:<br />
用以下命令安装Openbox:<br />
<br />
sudo aptitude install openbox obconf openbox-themes<br />
<br />
These packages and their dependencies will allow you to build and configure an Openbox system, along with a choice of themes and some configuration options.<br />
<br />
这些软件包和它们的依赖软件包让你可以建立和配置Openbox系统,还有可选择的主题和一些配置选项。<br />
<br />
'''Note:''' Edgy (Ubuntu 6.10) users should note a small discrepancy in ''obconf'' that might prevent it from running. You can correct that with these commands ...<br />
<br />
'''注意:'''Edgy (Ubuntu 6.10)用户必须注意"obconf"一个可能会使其无法运行的小问题。你可以用下面的命令解决这个问题。<br />
<br />
cd /usr/lib<br />
sudo ln libobparser.so.0.4.0 libobparser.so.1<br />
sudo ln libobrender.so.0.4.0 libobrender.so.1<br />
sudo ldconfig -X<br />
<br />
Entering ''obconf'' in an X terminal window should now trigger the obconf dialogue.<br />
<br />
在X终端输入''obconf''将启动obconf对话。<br />
<br />
== IceWM ==<br />
<br />
"IceWM" has a very strong following as a good, clean, fast window manager that resembles a conventional "desktop" in many ways. Among many of its perks are themes that resemble the Windows XP desktop theme -- which may be appealing to you.<br />
<br />
"IceWM"很受欢迎,因为它是一个很好的,干净的,很快的窗口管理器,它还集成了一个可选择的桌面。在它的众多优点中有一个可能会吸引你:它集成了Windows XP桌面主题。<br />
<br />
Install IceWM with this command:<br />
<br />
用下面的命令安装IceWM:<br />
<br />
sudo aptitude install icewm iceconf icepref iceme icewm-themes<br />
<br />
When finished, you will have a number of configuration and menu options. You can start IceWM with the ''startx'' command.<br />
<br />
安装完成后,你将拥有一些配置和菜单选项。你可以用''startx''命令启动它。<br />
<br />
== Fluxbox ==<br />
<br />
"Fluxbox" is a beautiful, highly configurable desktop system that is easy on system resources without compromising on graphical appeal. Fluxbox is the default window manager for a number of Linux distributions, probably most notable among them being [http://www.damnsmalllinux.org/ Damn Small Linux].<br />
<br />
"Fluxbox" 是一种漂亮的,高度可配置的桌面系统,它对系统资源要求不高却没有损失图形的吸引力。"Fluxbox" 是许多Linux发开版的默认窗口管理器,可能大部分都在[http://www.damnsmalllinux.org/ Damn Small Linux]上。<br />
<br />
<br />
Install Fluxbox with this command:<br />
<br />
用下面的命令安装Fluxbox:<br />
<br />
sudo aptitude install fluxbox fluxconf<br />
<br />
Once installed, you can start Fluxbox with the ''startfluxbox'' command. Remember, if you enjoy working with Fluxbox, you should consider [http://www.fluxbuntu.org Fluxbuntu] as an option.<br />
<br />
安装好以后,你可以用''startfluxbox''命令启动它。记住,如果你很喜欢使用Fluxbox,你可以考虑 [http://www.fluxbuntu.org Fluxbuntu] 作为一种选择。<br />
<br />
== FVWM-Crystal ==<br />
<br />
"FVWM-Crystal" is a complete set of configuration scripts which sit atop of FVWM. FVWM-Crystal has support for integrated access to music players, terminal emulators and system monitors. It boasts some of the finest eye candy available to low-end machines, and is a snap to install.<br />
<br />
"FVWM-Crystal" 是基于FVWM的一些配置脚本。"FVWM-Crystal" 支持对音乐播放器,终端和系统监视的集成访问。它号称是在低配置机器上可用的最漂亮的窗口管理器,并且它可以很快的安装。<br />
<br />
For more information about building an FVWM-Crystal desktop, check out the ["FVWM-Crystal"] page.<br />
<br />
想知道更多关于安装FVWM-Crystal桌面的的信息,请访问["FVWM-Crystal"]。<br />
<br />
== XFCE ==<br />
<br />
XFCE is heavier than any of the systems mentioned so far, but has some added functions as a result. You can try XFCE alone if you like, but if you're keen on an XFCE installation, look into [http://www.xubuntu.org Xubuntu] as an option.<br />
<br />
XFCE 相对于目前已经提到的轻量级窗口管理器来说都更“重”,但是是因为增加了一些应用的。如果你喜欢,你可以单独党旗XFCE,但如果你一定要安装XFCE,请查看 [http://www.xubuntu.org Xubuntu]。<br />
<br />
Install XFCE alone, without Xubuntu, with this command:<br />
<br />
单独安装XFCE,而不是Xubuntu,请用下面的命令:<br />
<br />
sudo aptitude install xfce4<br />
<br />
It's worth noting that some Edgy users have difficulty starting XFCE from a minimal install. The normal start command for XFCE -- ''startxfce4'' -- doesn't seem to be properly configured in Edgy.<br />
<br />
对于Edgy用户来讲,这是没有用的,从最小化安装启动XFCE是有困难的。XFCE的启动命令-- ''startxfce4'' -- 看起来好像在Edgy上没有配置好。<br />
<br />
If you want the entire Xubuntu package, which includes a full suite of software and a lot of improvements, try this command:<br />
<br />
如果你想要一个完全的包括了一些软件和一些改进的Xubuntu包,请用下面的命令:<br />
<br />
sudo aptitude install xubuntu-desktop<br />
<br />
That will download quite a large amount of packages; you may want to consider installing Xubuntu fresh, from the [http://www.xubuntu.org/get installation ISO]. <br />
<br />
这将要下载很多的软件包;你可能想从 [http://www.xubuntu.org/get installation ISO]干净的安装Xubuntu。<br />
<br />
Note: Xubuntu will use more system resources and may not be optimal for a low memory system with limited disk space, but it is lighter than a standard Ubuntu system.<br />
<br />
''注意:'' Xubuntu 将会使用更多的系统资源,而且可能对于一个硬盘空间和内存都有限的系统来讲不是最好的选择,但是它比标准的Ubuntu系统“轻”。<br />
<br />
= 安装软件 =<br />
<br />
Now that the graphical window manager is set up, it's time to add some necessary and recommended packages. These will add additional functionality and make using the system easier. Additionally, adding a graphical package manager will provide an easy method to manage installed applications and packages.<br />
<br />
现在图形窗口管理器已经设置好了,现在可以安装一些必须或推荐的软件包。这些软件包将会加入一些新的功能,使系统更容易使用。另外,安装一个图形化的软件包管理器将会使管理已安装的应用和软件包变得容易。<br />
<br />
== 登录管理器 ==<br />
<br />
Login managers will assist in choosing a graphical environment and will not require the user to start x.org to get into the window manager. <br />
<br />
登录管理器将帮助我们选择一个图形环境,而且不需要用户启动X.org就可以进入窗口管理器。<br />
<br />
It's important to note that it's not necessary to use a login manager. If you're willing to log in at the command line and start X manually, you can save yourself a lot of system resources -- and the time it takes to load them. That can be a more appealing option on older machines.<br />
<br />
要说明的是登录管理器并不是必须的。如果你喜欢在命令行界面登录然后手动启动X,你能节约很多系统资源和启动它们的时间。对于老的机器来说可能更有吸引力。<br />
<br />
=== GDM ===<br />
<br />
GDM is the Ubuntu default for a login manager. However, GDM has a reputation of being a heavyweight, and on a system that needs as little bulk as possible, you might find it to be a burden. If you've got a decent system, install it using:<br />
<br />
GDM是Ubuntu默认的登陆管理器,它被认为是一个重量级的管理器,在系统中它需要比较多的资源,所以你可能会发现它是一个负担。如果你有一个很好的系统,用以下命令安装它:<br />
<br />
sudo aptitude install gdm<br />
<br />
=== KDM ===<br />
<br />
KDM is another manager, but has the same heavy reputation as GDM.<br />
<br />
KDM是另一种管理器,它和GDM一样被认为是重量级的管理器。用以下命令安装:<br />
<br />
sudo aptitude install kdm<br />
<br />
=== XDM ===<br />
<br />
XDM is the login manager for straight X, and while less beautiful than GDM or KDM, it can perform in the same role without fuss.<br />
<br />
XDM是纯粹的X的登录管理器,它没有GDM和KDM漂亮,但它能像GDM和KDM那样很好的工作。用以下命令安装:<br />
<br />
sudo aptitude install xdm<br />
<br />
== 浏览器 ==<br />
<br />
Now that your system is up and running, it would be a good idea to add an internet browser to surf the web and get some use out of the machine!<br />
<br />
现在你的系统已经在运行了,现在可以安装一个因特网浏览器来上网冲浪。<br />
<br />
=== Firefox ===<br />
Web browsers come in many flavors, and the most prevalent -- Firefox -- can be laggy on low-memory or slow systems. Even the GNU version of Firefox, [https://wiki.ubuntu.com/IceWeasel Iceweasel] can be a bit heavy on older machines. If you've got at least 128 mb of memory, Firefox should work just fine.<br />
<br />
Firefox是适用于很多Linux发行版,是最流行的浏览器。它对于低内存或者低速的系统来讲,可能有点难以应付。甚至是GNU版本的Firefox,[https://wiki.ubuntu.com/IceWeasel Iceweasel] 对于老的机器来讲也有些“重”。如果你有多于128mb的内存,Firefox可以运行的很好。用以下命令安装它:<br />
<br />
sudo aptitude install firefox <br />
<br />
=== Dillo ===<br />
<br />
While not nearly as full-featured as Firefox, Dillo has the advantages of a very small footprint and few resource requirements.<br />
<br />
不像Firefox那样具有完全的功能,Dillo的优点是有一个很小的脚印和很小的资源需求。用以下命令安装它:<br />
<br />
sudo aptitude install dillo<br />
<br />
== iDesk ==<br />
<br />
Many lightweight desktop systems use [http://idesk.sourceforge.net/ iDesk] as a way of including customized, clickable icons directly on the desktop. iDesk is maintained in the Ubuntu repositories, and is installable from the command line with:<br />
<br />
很多轻量级的桌面系统用[http://idesk.sourceforge.net/ iDesk]来配置和使桌面上的图标可以被直接点击。iDesk包含在Ubuntu的软件仓库中,可以用以下命令安装它:<br />
<br />
sudo aptitude install idesk<br />
<br />
Consult the [http://idesk.sourceforge.net/ iDesk wiki] for instructions on how to configure and use iDesk. For icon sets, you may wish to search the repositories, or download them from third-party customization sites, such as [http://www.gnome-look.org Gnome-Look.org] and similar locations.<br />
<br />
访问[http://idesk.sourceforge.net/ iDesk wiki]来获取配置和使用iDesk的命令。你可能要搜索软件仓库或从第三方的配置网站上下载图标,像[http://www.gnome-look.org Gnome-Look.org]及相似的网站。<br />
<br />
== 文件管理器 ==<br />
<br />
Lightweight systems have a number of options available for graphical file management. Thunar is the default file manager in Xubuntu and many XFCE-based systems; it is installable alone with this command:<br />
<br />
轻量级的系统有多种可用的图形文件管理器。Thunar是Xubuntu和很多基于XFCE默认的系统,可以使用下面的命令单独安装它:<br />
<br />
sudo aptitude install thunar<br />
<br />
XFE is an even lighter file manager, intended to mimic the Windows Explorer interface. It has very few dependencies and is very fast.<br />
<br />
XFE是一种更“轻”的文件管理器,它模仿了Windwos Explorer接口。它只依赖很少的软件包而且非常快。用下面命令安装它:<br />
<br />
sudo aptitude install xfe<br />
<br />
ROX-Filer is another file management program, which makes extensive use of drag-and-drop principles. It does appear to have a large number of dependencies however, which means installing it may entail more external packages than you wish. Install ROX-Filer with this command:<br />
<br />
ROX-Filer也是一种文件管理器,它扩展了drag-and-drop原理。它依赖很多的软件包,这就意味着它需要比你想像的要多的扩展软件包。用下面命令安装它:<br />
<br />
sudo aptitude install rox-filer<br />
<br />
Nautilus is the default file manager for Ubuntu. It requires some more resources, but it has a lot of useful features. It can manage your desktop, show a wallpaper and desktop icons, which are automatically created for new devices (e.g. USB flash drives). Install Nautilus using this command:<br />
<br />
Nautilus是Ubuntu默认的文件管理器。它需要更多的资源,但它具有很多有用的特性。它能管理你的桌面,显示桌面背景和桌面图标,对于新的设备它们都可以自动创建。用下面命令安装它:<br />
<br />
sudo apt-get install nautilus<br />
<br />
To use it together with a window manager, execute the following command or add it to your autostart script. For example, use $HOME/.icewm/startup for IceWM.<br />
<br />
要让它和窗口管理器一起工作,需执行以下命令或者把命令加入到自动启动脚本。例如:对于IceWM,加入$HOME/.icewm/startup文件。<br />
<br />
nautilus --no-default-window &amp; <br />
<br />
Some other popular file managers include<br />
<br />
其它一些浒的文件管理器有:<br />
<br />
* [http://pcmanfm.sourceforge.net/ PCManFM];<br />
* [http://packages.ubuntu.com/edgy/utils/mc Midnight Commander], [http://tuxcmd.sourceforge.net/ Tux Commander] and [http://packages.ubuntu.com/edgy/gnome/gnome-commander Gnome Commander] (which all resemble the old Norton Commander interface);<br />
* [http://packages.ubuntu.com/edgy/x11/xffm4-filemanager xffm4-filemanager];<br />
* [http://step.polymtl.ca/~coyote/xvfilemgr_main.html XVFilemgr];<br />
* and [http://packages.ubuntu.com/edgy/kde/dolphin Dolphin], which is a file manager aimed at KDE and Kubuntu.<br />
<br />
There are many others. Some are available through the repositories; others will require you to download and install them through another source. Experiment with different file managers to see which ones appeal to you.<br />
<br />
这里有很多其它的文件管理器。其中一些可以通过软件仓库安装,一些必须通过源码下载和安装。尝试不同的文件管理器,看哪些能够吸引你。<br />
<br />
== 软件包管理器 ==<br />
<br />
Add a graphical package manager to install, remove and upgrade software packages and to add repositories without using the command line. Synaptic package manager is the standard and can be installed with this command:<br />
<br />
安装一个图形化的软件包管理器来安装,删除和升级软件包和增加软件仓库,可以让你不需要使用命令。新立得软件包管理器是标准的软件包管理工具。可以用下面命令来安装:<br />
<br />
sudo aptitude install synaptic<br />
<br />
You can use the package manager to add a word processor, such as Abiword, and other productivity software.<br />
<br />
你可以用软件包管理器来安装字处理器,像Abiword,或是其它的软件。<br />
<br />
= 安装一个完整的轻量级系统 =<br />
<br />
Building on the ideas above, here are some complete graphical systems, installable through a single command line. Feel free to mix and match between these options.<br />
<br />
基于以上的想法,我们可以用一条命令来安装一个完整的图形系统。你可以自由的组合这些选项。<br />
<br />
'''Remember: If you are using Dapper or earlier, replace "xorg" with "x-window-system-core"'''<br />
<br />
'''记住:如果你是在用Dapper或是更早的版本,用"x-window-system-core"代替"xorg"。<br />
<br />
* IceWM as a window manager, plus GDM, Firefox, Abiword and the Synaptic package manager:<br />
<br />
*IceWM是窗口管理器,加上GDM,Firefox,Abiword和新立得软件包管理器。<br />
<br />
sudo aptitude install gdm xorg xterm icewm menu mozilla-firefox abiword synaptic<br />
<br />
* XFCE and Firefox, with Synaptic package manager and KDM as the login manager:<br />
<br />
*XFCE,Firefox,再加上新立得软件包管理器和登录管理器KDM。<br />
<br />
<br />
sudo aptitude install kdm xorg xfce4 firefox synaptic<br />
<br />
* Fluxbox with Dillo, and XDM as a login manager:<br />
<br />
*Fluxbox,Dillo,和XDM <br />
<br />
sudo aptitude install fluxbox xorg xdm dillo<br />
<br />
* Openbox with no login manager, XFE as the file manager and xfce4-terminal as an X terminal, as well as Openbox themes and the Tango icon set:<br />
<br />
Openbox,XFE和xfce4-terminal还有Openbox主题及Tango图标。<br />
<br />
sudo aptitude install openbox obconf openbox-themes xfe xfce4-terminal tango-icon-theme-extras xorg<br />
<br />
Remember to check the repositories for more ideas on software and applications!<br />
<br />
记得查看软件仓库来获得更多的关于软件和应用的想法。<br />
<br />
= 低配置的选择 =<br />
<br />
For a minimalistic system that does not require as much configuration, you can install the alternate window managers after installing a full K/X/Ubuntu system, thus preinstalling much of the required software but keeping the speed. However, installing a full system does require more system resources.<br />
<br />
对于一个很小的系统并不需要太多的配置,在安装完完整的K/X/Ubuntu系统后你可以安装另一种窗口管理器来替代它,这样就可以安装很多必要软件并且保证运行速度。然而安装一个完整的系统的确需要更多的系统资源。<br />
<br />
= 扩展链接 =<br />
<br />
* [http://www.fluxbuntu.org FluxBuntu]: An Ubuntu variant with Fluxbox as the default window manager. An excellent place to start for a Fluxbox-based system. <br />
* [http://www.ubuntulite.org UbuntuLite]: An early project to build a stripped-down version of Ubuntu aimed at low-end machines. The project also seems to have stalled.<br />
* [http://alecjw.googlepages.com/cubuntu-commandlineubuntu Cubuntu] is not a graphical system; Cubuntu is a full-featured ''command line'' system, suitable for computers that can't handle any of the above options -- such as early Pentium or perhaps even 486-grade machines with as little as 16Mb RAM. And don't be skeptical: Even without a graphic environment, a computer can perform a lot more tasks than you would expect. B)<br />
* [http://www.enlightenment.org/ Enlightenment] is another window manager, but it is still in development and requires additional steps to install. However, it is very lightweight and functional. <br />
* [http://www.thinkgos.com/ gOS] is an operating system based on Ubuntu, uses a customized version of Enlightenment as its window manager, and is able to run on some older systems.<br />
<br />
<br />
<br />
CategoryDocumentation</div>Convicehttps://wiki.ubuntu.org.cn/index.php?title=%E4%BD%8E%E9%85%8D%E7%BD%AE%E7%94%B5%E8%84%91%E5%AE%89%E8%A3%85&diff=72720低配置电脑安装2007-12-07T11:40:47Z<p>Convice:</p>
<hr />
<div>{{Copyedit translation|from=https://wiki.ubuntu.com/LowMemorySysterms}}<br />
{{From|https://wiki.ubuntu.com/LowMemorySysterms}}<br />
{{Translator|convice}}<br />
<br />
<br />
====内存需求====<br />
<br />
Installing Ubuntu on any system requires at least 32Mb of memory: The text-based installer included with the alternate (install) CDs needs that much space to run reliably. Smaller memory configurations run into problems, and while not impossible, it can be very difficult to complete an installation with less than the minimum RAM requirement.<br />
<br />
在任何系统上安装Ubuntu至少需要32Mb内存:包含在alternate (install) CDs的基于字符的安装程序需要这些空间来可靠运行。更小的内存配置可能会遇到问题,虽然不是不可能,但如果内存小于最低的需求,要完成安装十分困难。<br />
<br />
Depending on the hardware requirements, you can expect a sparse Ubuntu system to boot to a graphical desktop on anywhere from 19Mb to 54Mb. That requirement will fluctuate with the system demands, and increase while the system is active. Swap space is crucial to low-memory machines, so don't be stingy when setting up your system.<br />
<br />
由于硬件需求,你可以期望一个瘦小的Ubuntu系统在任何内存从19Mb到54Mb的地方启动。这个需求会随着系统的需求面浮动,当系统活跃的时候会增加。交换分区对于低内存的机器十分重要,所以当设置系统的时候别小器。<br />
<br />
<br />
<br />
==== 处理器 ====<br />
<br />
There is no practical speed requirement, although a slower processor will take more time to finish installing. Some Pentium machines will take hours to complete, simply because the CPU takes longer to finish. As a general benchmark, a 75Mhz machine finishes a command-line installation of Ubuntu 7.04 in about four hours, and a 120Mhz machine finishes in perhaps an hour less than that. 200Mhz and faster machines will see a still stronger improvement.<br />
<br />
对处理器的速度没有什么实际的需求,虽然低速度的处理器将要花更多的时间来完成安装。仅仅是因为CPU花了太多的时间,一些Pentium机将要花费几个小时来完成安装。根据通常的基准测试,一台75Mhz的机器要4个小时来完成基于命令行的Ubuntu 7.04的安装,一台120Mhz的要比它少用一个小时。200Mhz或是更快的机器将会有更强的提升。<br />
<br />
If you do decide to install Ubuntu on a legacy machine, be patient. There will come times when you think the machine has stopped or is hung, when in fact it's still moving, albeit at a very slow rate.<br />
<br />
如果你决定在一台老式的机器上安装Ubuntu,要有耐心。可能会出现好几次这样的情况:当你认为机器已经停止或挂起,其实它正在运行,虽然速度很慢<br />
<br />
====磁盘空间需求====<br />
Disk space on an absolutely minimal installation can be reduced to as little as 500Mb. A fresh and clean server installation of Ubuntu 7.04 generally takes only 300Mb, although there will be minor variations on account of hardware differences.<br />
<br />
磁盘空间在绝对最小安装的情况下可以减少到500Mb。虽然对于不同的硬件会有很小的变化,一个干净的Ubuntu 7.04 服务器的安装通常只需要300Mb。<br />
<br />
====其它硬件上的考虑====<br />
These instructions assume you will have a working Internet connection and access to the [[UbuntuHelp:Repositories| universe and multiverse repositories]]. Configuring your hardware is not included on this page.<br />
<br />
这份指南假设你有一个可用的互联网连接并且可以访问[[UbuntuHelp:Repositories| universe and multiverse repositories]].它不包括对你硬件的配置。<br />
<br />
<br />
<br />
== 安装Ubuntu Server ==<br />
<br />
The server version of Ubuntu is a sparse command-line system, without any graphical elements. It's a text-only version of what lies underneath all the advanced graphical elements. It's also the starting point for a minimal installation.<br />
<br />
Ubuntu服务器版是一个精减的命令行系统,没有任何图形元素。它是一个位于高级图形元素之下的纯文本版本。它是我们最小化安装的起点。<br />
<br />
==== Ubuntu 6.06 ====<br />
<br />
To install a base system, boot from the alternate (install) CD and choose "Install a server."<br />
<br />
Follow the prompts to complete installation.<br />
<br />
启动alternate(install)CD,选择"Install a server"。按提示完成安装。<br />
<br />
==== Ubuntu 6.10, 7.04, or 7.10 ====<br />
<br />
To install a base system, boot from the alternate (install) CD and choose "Install a command-line system."<br />
<br />
Follow the prompts to complete installation.<br />
<br />
启动alternate(install)CD,选择"Install a command-line system."。按提示完成安装。<br />
<br />
=== 增加软件仓库 ===<br />
<br />
==== 更改源 ====<br />
<br />
Once the server install is complete, you will probably want to edit your [[UbuntuHelp:Sources.list|UbuntuHelp:sources.list]] file.<br />
<br />
当安装好Ubuntu服务器版後,你可能需要编辑你的[[UbuntuHelp:Sources.list|UbuntuHelp:sources.list]]文件。<br />
<br />
sudo nano /etc/apt/sources.list<br />
<br />
Uncomment all official repositories by removing # at the beginning of the line. Do not uncomment the narrative portions of that file; in other words, where you see a double hash mark (##) leave those lines alone.<br />
<br />
删除每一行开始的#号来消除对官方软件仓库的注释。不要消除文件里描述部分的注释,即以两个#号(##)开始的行。<br />
<br />
==== 更新和升级你的系统 ====<br />
<br />
Now you should update your system. Return to the command line and type: <br />
<br />
现在你应该更新你的系统。回到命令行输入:<br />
<br />
sudo aptitude update<br />
<br />
It's probably also a good idea to upgrade your system at this point. Use this command to upgrade your system: <br />
<br />
这时升级你的系统也是个不错的主意。用这个命令升级你的系统。<br />
<br />
sudo aptitude upgrade (或者, 对于 Gutsy: sudo aptitude safe-upgrade)<br />
<br />
Now you should be ready to install a window manager and some programs.<br><br />
<br />
现在你已经准备好了来安装窗口管理器和一些程序。<br />
<br />
=安装图形环境的准备工作=<br />
<br />
The absolute minimum for any graphical environment is X.org<br />
<br />
最小的图形环境是X.org<br />
<br />
=== Installing X.org ===<br />
===安装X.org===<br />
<br />
On Ubuntu Edgy (6.10), Feisty (7.04), and Gutsy (7.10), use the command:<br />
在 Ubuntu Edgy (6.10), Feisty (7.04), 和 Gutsy (7.10), 用下面的命令:<br />
<br />
sudo aptitude install xorg<br />
<br />
On Ubuntu Dapper (6.06), use the command:<br />
在 Ubuntu Dapper (6.06), 用下面的命令:<br />
<br />
sudo aptitude install x-window-system-core<br />
<br />
=== Starting X.org ===<br />
===启动X.org===<br />
<br />
This package gives you the framework for an X session, complete with a variety of drivers and configuration files. Installing ''xorg'' (or ''x-window-system-core'') also triggers the self-configuration sequence, so when it finishes, your hardware should be ready to use, barring any errors or incompatibilities.<br />
通过一些驱动和配置文件,这个软件包给了你一个X对话的框架。安装“Xorg”或“x-window-system-core”还启动了自动配置队列,安装完成后,如果没有错误或不兼容,你的硬件应该已经可用了。<br />
<br />
It's important to note that installing ''xorg'' or ''x-window-system-core'' really doesn't leave you with much. You can start X at this point with this command:<br />
必须注意的是,安装“Xorg”或“x-window-system-core”不会给你很多。这时你可以用以下命令启动X:<br />
<br />
startx<br />
<br />
but without a window manager and some software, you probably won't get much done.<br />
但是没有窗口管理器和一些软件,你能做的很少。<br />
<br />
= 安装一个窗口管理器=<br />
<br />
A window manager controls the placement and appearance of windows within a graphical user interface. <br />
<br />
窗口管理器通过图形用户界面控制窗口的位置有显示。<br />
<br />
There are many lightweight window managers that will give you better access to your system through the X layer. Each one has its own way of managing the desktop, and its own way of configuring themes and menus.<br />
<br />
有很多轻量级的窗口管理器可以使你更好的通过X层访问你的系统。每一种都有它们自己的方式来管理桌面,都有它们自己的方法来配置主题和菜单。<br />
<br />
== Openbox ==<br />
<br />
"Openbox" is one of the lightest, fastest window managers available, but can take some time to configure and set up. It has its origins in Blackbox, but newer versions are complete rewrites of the Blackbox code.<br />
<br />
"Openbox"是一种轻量级的快速的可用的窗口管理器,只是需要一些时间来安装和配置。它源于Blackbox,但是新版的全部重写了Blackbox的代码。<br />
<br />
Install Openbox with this command:<br />
用以下命令安装Openbox:<br />
<br />
sudo aptitude install openbox obconf openbox-themes<br />
<br />
These packages and their dependencies will allow you to build and configure an Openbox system, along with a choice of themes and some configuration options.<br />
<br />
这些软件包和它们的依赖软件包让你可以建立和配置Openbox系统,还有可选择的主题和一些配置选项。<br />
<br />
'''Note:''' Edgy (Ubuntu 6.10) users should note a small discrepancy in ''obconf'' that might prevent it from running. You can correct that with these commands ...<br />
<br />
'''注意:'''Edgy (Ubuntu 6.10)用户必须注意"obconf"一个可能会使其无法运行的小问题。你可以用下面的命令解决这个问题。<br />
<br />
cd /usr/lib<br />
sudo ln libobparser.so.0.4.0 libobparser.so.1<br />
sudo ln libobrender.so.0.4.0 libobrender.so.1<br />
sudo ldconfig -X<br />
<br />
Entering ''obconf'' in an X terminal window should now trigger the obconf dialogue.<br />
<br />
在X终端输入''obconf''将启动obconf对话。<br />
<br />
== IceWM ==<br />
<br />
"IceWM" has a very strong following as a good, clean, fast window manager that resembles a conventional "desktop" in many ways. Among many of its perks are themes that resemble the Windows XP desktop theme -- which may be appealing to you.<br />
<br />
"IceWM"很受欢迎,因为它是一个很好的,干净的,很快的窗口管理器,它还集成了一个可选择的桌面。在它的众多优点中有一个可能会吸引你:它集成了Windows XP桌面主题。<br />
<br />
Install IceWM with this command:<br />
<br />
用下面的命令安装IceWM:<br />
<br />
sudo aptitude install icewm iceconf icepref iceme icewm-themes<br />
<br />
When finished, you will have a number of configuration and menu options. You can start IceWM with the ''startx'' command.<br />
<br />
安装完成后,你将拥有一些配置和菜单选项。你可以用''startx''命令启动它。<br />
<br />
== Fluxbox ==<br />
<br />
"Fluxbox" is a beautiful, highly configurable desktop system that is easy on system resources without compromising on graphical appeal. Fluxbox is the default window manager for a number of Linux distributions, probably most notable among them being [http://www.damnsmalllinux.org/ Damn Small Linux].<br />
<br />
"Fluxbox" 是一种漂亮的,高度可配置的桌面系统,它对系统资源要求不高却没有损失图形的吸引力。"Fluxbox" 是许多Linux发开版的默认窗口管理器,可能大部分都在[http://www.damnsmalllinux.org/ Damn Small Linux]上。<br />
<br />
<br />
Install Fluxbox with this command:<br />
<br />
用下面的命令安装Fluxbox:<br />
<br />
sudo aptitude install fluxbox fluxconf<br />
<br />
Once installed, you can start Fluxbox with the ''startfluxbox'' command. Remember, if you enjoy working with Fluxbox, you should consider [http://www.fluxbuntu.org Fluxbuntu] as an option.<br />
<br />
安装好以后,你可以用''startfluxbox''命令启动它。记住,如果你很喜欢使用Fluxbox,你可以考虑 [http://www.fluxbuntu.org Fluxbuntu] 作为一种选择。<br />
<br />
== FVWM-Crystal ==<br />
<br />
"FVWM-Crystal" is a complete set of configuration scripts which sit atop of FVWM. FVWM-Crystal has support for integrated access to music players, terminal emulators and system monitors. It boasts some of the finest eye candy available to low-end machines, and is a snap to install.<br />
<br />
"FVWM-Crystal" 是基于FVWM的一些配置脚本。"FVWM-Crystal" 支持对音乐播放器,终端和系统监视的集成访问。它号称是在低配置机器上可用的最漂亮的窗口管理器,并且它可以很快的安装。<br />
<br />
For more information about building an FVWM-Crystal desktop, check out the ["FVWM-Crystal"] page.<br />
<br />
想知道更多关于安装FVWM-Crystal桌面的的信息,请访问["FVWM-Crystal"]。<br />
<br />
== XFCE ==<br />
<br />
XFCE is heavier than any of the systems mentioned so far, but has some added functions as a result. You can try XFCE alone if you like, but if you're keen on an XFCE installation, look into [http://www.xubuntu.org Xubuntu] as an option.<br />
<br />
XFCE 相对于目前已经提到的轻量级窗口管理器来说都更“重”,但是是因为增加了一些应用的。如果你喜欢,你可以单独党旗XFCE,但如果你一定要安装XFCE,请查看 [http://www.xubuntu.org Xubuntu]。<br />
<br />
Install XFCE alone, without Xubuntu, with this command:<br />
<br />
单独安装XFCE,而不是Xubuntu,请用下面的命令:<br />
<br />
sudo aptitude install xfce4<br />
<br />
It's worth noting that some Edgy users have difficulty starting XFCE from a minimal install. The normal start command for XFCE -- ''startxfce4'' -- doesn't seem to be properly configured in Edgy.<br />
<br />
对于Edgy用户来讲,这是没有用的,从最小化安装启动XFCE是有困难的。XFCE的启动命令-- ''startxfce4'' -- 看起来好像在Edgy上没有配置好。<br />
<br />
If you want the entire Xubuntu package, which includes a full suite of software and a lot of improvements, try this command:<br />
<br />
如果你想要一个完全的包括了一些软件和一些改进的Xubuntu包,请用下面的命令:<br />
<br />
sudo aptitude install xubuntu-desktop<br />
<br />
That will download quite a large amount of packages; you may want to consider installing Xubuntu fresh, from the [http://www.xubuntu.org/get installation ISO]. <br />
<br />
这将要下载很多的软件包;你可能想从 [http://www.xubuntu.org/get installation ISO]干净的安装Xubuntu。<br />
<br />
Note: Xubuntu will use more system resources and may not be optimal for a low memory system with limited disk space, but it is lighter than a standard Ubuntu system.<br />
<br />
''注意:'' Xubuntu 将会使用更多的系统资源,而且可能对于一个硬盘空间和内存都有限的系统来讲不是最好的选择,但是它比标准的Ubuntu系统“轻”。<br />
<br />
= 安装软件 =<br />
<br />
Now that the graphical window manager is set up, it's time to add some necessary and recommended packages. These will add additional functionality and make using the system easier. Additionally, adding a graphical package manager will provide an easy method to manage installed applications and packages.<br />
<br />
现在图形窗口管理器已经设置好了,现在可以安装一些必须或推荐的软件包。这些软件包将会加入一些新的功能,使系统更容易使用。另外,安装一个图形化的软件包管理器将会使管理已安装的应用和软件包变得容易。<br />
<br />
== 登录管理器 ==<br />
<br />
Login managers will assist in choosing a graphical environment and will not require the user to start x.org to get into the window manager. <br />
<br />
登录管理器将帮助我们选择一个图形环境,而且不需要用户启动X.org就可以进入窗口管理器。<br />
<br />
It's important to note that it's not necessary to use a login manager. If you're willing to log in at the command line and start X manually, you can save yourself a lot of system resources -- and the time it takes to load them. That can be a more appealing option on older machines.<br />
<br />
要说明的是登录管理器并不是必须的。如果你喜欢在命令行界面登录然后手动启动X,你能节约很多系统资源和启动它们的时间。对于老的机器来说可能更有吸引力。<br />
<br />
=== GDM ===<br />
<br />
GDM is the Ubuntu default for a login manager. However, GDM has a reputation of being a heavyweight, and on a system that needs as little bulk as possible, you might find it to be a burden. If you've got a decent system, install it using:<br />
<br />
GDM是Ubuntu默认的登陆管理器,它被认为是一个重量级的管理器,在系统中它需要比较多的资源,所以你可能会发现它是一个负担。如果你有一个很好的系统,用以下命令安装它:<br />
<br />
sudo aptitude install gdm<br />
<br />
=== KDM ===<br />
<br />
KDM is another manager, but has the same heavy reputation as GDM.<br />
<br />
KDM是另一种管理器,它和GDM一样被认为是重量级的管理器。用以下命令安装:<br />
<br />
sudo aptitude install kdm<br />
<br />
=== XDM ===<br />
<br />
XDM is the login manager for straight X, and while less beautiful than GDM or KDM, it can perform in the same role without fuss.<br />
<br />
XDM是纯粹的X的登录管理器,它没有GDM和KDM漂亮,但它能像GDM和KDM那样很好的工作。用以下命令安装:<br />
<br />
sudo aptitude install xdm<br />
<br />
== 浏览器 ==<br />
<br />
Now that your system is up and running, it would be a good idea to add an internet browser to surf the web and get some use out of the machine!<br />
<br />
现在你的系统已经在运行了,现在可以安装一个因特网浏览器来上网冲浪。<br />
<br />
=== Firefox ===<br />
Web browsers come in many flavors, and the most prevalent -- Firefox -- can be laggy on low-memory or slow systems. Even the GNU version of Firefox, [https://wiki.ubuntu.com/IceWeasel Iceweasel] can be a bit heavy on older machines. If you've got at least 128 mb of memory, Firefox should work just fine.<br />
<br />
Firefox是适用于很多Linux发行版,是最流行的浏览器。它对于低内存或者低速的系统来讲,可能有点难以应付。甚至是GNU版本的Firefox,[https://wiki.ubuntu.com/IceWeasel Iceweasel] 对于老的机器来讲也有些“重”。如果你有多于128mb的内存,Firefox可以运行的很好。用以下命令安装它:<br />
<br />
sudo aptitude install firefox <br />
<br />
=== Dillo ===<br />
<br />
While not nearly as full-featured as Firefox, Dillo has the advantages of a very small footprint and few resource requirements.<br />
<br />
不像Firefox那样具有完全的功能,Dillo的优点是有一个很小的脚印和很小的资源需求。用以下命令安装它:<br />
<br />
sudo aptitude install dillo<br />
<br />
== iDesk ==<br />
<br />
Many lightweight desktop systems use [http://idesk.sourceforge.net/ iDesk] as a way of including customized, clickable icons directly on the desktop. iDesk is maintained in the Ubuntu repositories, and is installable from the command line with:<br />
<br />
很多轻量级的桌面系统用[http://idesk.sourceforge.net/ iDesk]来配置和使桌面上的图标可以被直接点击。iDesk包含在Ubuntu的软件仓库中,可以用以下命令安装它:<br />
<br />
sudo aptitude install idesk<br />
<br />
Consult the [http://idesk.sourceforge.net/ iDesk wiki] for instructions on how to configure and use iDesk. For icon sets, you may wish to search the repositories, or download them from third-party customization sites, such as [http://www.gnome-look.org Gnome-Look.org] and similar locations.<br />
<br />
访问[http://idesk.sourceforge.net/ iDesk wiki]来获取配置和使用iDesk的命令。你可能要搜索软件仓库或从第三方的配置网站上下载图标,像[http://www.gnome-look.org Gnome-Look.org]及相似的网站。<br />
<br />
== 文件管理器 ==<br />
<br />
Lightweight systems have a number of options available for graphical file management. Thunar is the default file manager in Xubuntu and many XFCE-based systems; it is installable alone with this command:<br />
<br />
轻量级的系统有多种可用的图形文件管理器。Thunar是Xubuntu和很多基于XFCE默认的系统,可以使用下面的命令单独安装它:<br />
<br />
sudo aptitude install thunar<br />
<br />
XFE is an even lighter file manager, intended to mimic the Windows Explorer interface. It has very few dependencies and is very fast.<br />
<br />
XFE是一种更“轻”的文件管理器,它模仿了Windwos Explorer接口。它只依赖很少的软件包而且非常快。用下面命令安装它:<br />
<br />
sudo aptitude install xfe<br />
<br />
ROX-Filer is another file management program, which makes extensive use of drag-and-drop principles. It does appear to have a large number of dependencies however, which means installing it may entail more external packages than you wish. Install ROX-Filer with this command:<br />
<br />
ROX-Filer也是一种文件管理器,它扩展了drag-and-drop原理。它依赖很多的软件包,这就意味着它需要比你想像的要多的扩展软件包。用下面命令安装它:<br />
<br />
sudo aptitude install rox-filer<br />
<br />
Nautilus is the default file manager for Ubuntu. It requires some more resources, but it has a lot of useful features. It can manage your desktop, show a wallpaper and desktop icons, which are automatically created for new devices (e.g. USB flash drives). Install Nautilus using this command:<br />
<br />
Nautilus是Ubuntu默认的文件管理器。它需要更多的资源,但它具有很多有用的特性。它能管理你的桌面,显示桌面背景和桌面图标,对于新的设备它们都可以自动创建。用下面命令安装它:<br />
<br />
sudo apt-get install nautilus<br />
<br />
To use it together with a window manager, execute the following command or add it to your autostart script. For example, use $HOME/.icewm/startup for IceWM.<br />
<br />
要让它和窗口管理器一起工作,需执行以下命令或者把命令加入到自动启动脚本。例如:对于IceWM,加入$HOME/.icewm/startup文件。<br />
<br />
nautilus --no-default-window &amp; <br />
<br />
Some other popular file managers include<br />
<br />
其它一些浒的文件管理器有:<br />
<br />
* [http://pcmanfm.sourceforge.net/ PCManFM];<br />
* [http://packages.ubuntu.com/edgy/utils/mc Midnight Commander], [http://tuxcmd.sourceforge.net/ Tux Commander] and [http://packages.ubuntu.com/edgy/gnome/gnome-commander Gnome Commander] (which all resemble the old Norton Commander interface);<br />
* [http://packages.ubuntu.com/edgy/x11/xffm4-filemanager xffm4-filemanager];<br />
* [http://step.polymtl.ca/~coyote/xvfilemgr_main.html XVFilemgr];<br />
* and [http://packages.ubuntu.com/edgy/kde/dolphin Dolphin], which is a file manager aimed at KDE and Kubuntu.<br />
<br />
There are many others. Some are available through the repositories; others will require you to download and install them through another source. Experiment with different file managers to see which ones appeal to you.<br />
<br />
这里有很多其它的文件管理器。其中一些可以通过软件仓库安装,一些必须通过源码下载和安装。尝试不同的文件管理器,看哪些能够吸引你。<br />
<br />
== 软件包管理器 ==<br />
<br />
Add a graphical package manager to install, remove and upgrade software packages and to add repositories without using the command line. Synaptic package manager is the standard and can be installed with this command:<br />
<br />
安装一个图形化的软件包管理器来安装,删除和升级软件包和增加软件仓库,可以让你不需要使用命令。新立得软件包管理器是标准的软件包管理工具。可以用下面命令来安装:<br />
<br />
sudo aptitude install synaptic<br />
<br />
You can use the package manager to add a word processor, such as Abiword, and other productivity software.<br />
<br />
你可以用软件包管理器来安装字处理器,像Abiword,或是其它的软件。<br />
<br />
= 安装一个完整的轻量级系统 =<br />
<br />
Building on the ideas above, here are some complete graphical systems, installable through a single command line. Feel free to mix and match between these options.<br />
<br />
基于以上的想法,我们可以用一条命令来安装一个完整的图形系统。你可以自由的组合这些选项。<br />
<br />
'''Remember: If you are using Dapper or earlier, replace "xorg" with "x-window-system-core"'''<br />
<br />
'''记住:如果你是在用Dapper或是更早的版本,用"x-window-system-core"代替"xorg"。<br />
<br />
* IceWM as a window manager, plus GDM, Firefox, Abiword and the Synaptic package manager:<br />
<br />
*IceWM是窗口管理器,加上GDM,Firefox,Abiword和新立得软件包管理器。<br />
<br />
sudo aptitude install gdm xorg xterm icewm menu mozilla-firefox abiword synaptic<br />
<br />
* XFCE and Firefox, with Synaptic package manager and KDM as the login manager:<br />
<br />
*XFCE,Firefox,再加上新立得软件包管理器和登录管理器KDM。<br />
<br />
<br />
sudo aptitude install kdm xorg xfce4 firefox synaptic<br />
<br />
* Fluxbox with Dillo, and XDM as a login manager:<br />
<br />
*Fluxbox,Dillo,和XDM <br />
<br />
sudo aptitude install fluxbox xorg xdm dillo<br />
<br />
* Openbox with no login manager, XFE as the file manager and xfce4-terminal as an X terminal, as well as Openbox themes and the Tango icon set:<br />
<br />
Openbox,XFE和xfce4-terminal还有Openbox主题及Tango图标。<br />
<br />
sudo aptitude install openbox obconf openbox-themes xfe xfce4-terminal tango-icon-theme-extras xorg<br />
<br />
Remember to check the repositories for more ideas on software and applications!<br />
<br />
记得查看软件仓库来获得更多的关于软件和应用的想法。<br />
<br />
= 低配置的选择 =<br />
<br />
For a minimalistic system that does not require as much configuration, you can install the alternate window managers after installing a full K/X/Ubuntu system, thus preinstalling much of the required software but keeping the speed. However, installing a full system does require more system resources.<br />
<br />
对于一个很小的系统并不需要太多的配置,在安装完完整的K/X/Ubuntu系统后你可以安装另一种窗口管理器来替代它,这样就可以安装很多必要软件并且保证运行速度。然而安装一个完整的系统的确需要更多的系统资源。<br />
<br />
= 扩展链接 =<br />
<br />
* [http://www.fluxbuntu.org FluxBuntu]: An Ubuntu variant with Fluxbox as the default window manager. An excellent place to start for a Fluxbox-based system. <br />
* [http://www.ubuntulite.org UbuntuLite]: An early project to build a stripped-down version of Ubuntu aimed at low-end machines. The project also seems to have stalled.<br />
* [http://alecjw.googlepages.com/cubuntu-commandlineubuntu Cubuntu] is not a graphical system; Cubuntu is a full-featured ''command line'' system, suitable for computers that can't handle any of the above options -- such as early Pentium or perhaps even 486-grade machines with as little as 16Mb RAM. And don't be skeptical: Even without a graphic environment, a computer can perform a lot more tasks than you would expect. B)<br />
* [http://www.enlightenment.org/ Enlightenment] is another window manager, but it is still in development and requires additional steps to install. However, it is very lightweight and functional. <br />
* [http://www.thinkgos.com/ gOS] is an operating system based on Ubuntu, uses a customized version of Enlightenment as its window manager, and is able to run on some older systems.<br />
<br />
<br />
<br />
CategoryDocumentation</div>Convicehttps://wiki.ubuntu.org.cn/index.php?title=%E4%BD%8E%E9%85%8D%E7%BD%AE%E7%94%B5%E8%84%91%E5%AE%89%E8%A3%85&diff=72719低配置电脑安装2007-12-07T11:39:29Z<p>Convice:</p>
<hr />
<div>{{Copyedit translation|from=https://wiki.ubuntu.com/LowMemorySysterms}}<br />
{{From|https://wiki.ubuntu.com/LowMemorySysterms}}<br />
{{Translator|convice}}<br />
{{Installation|LowMemorySysterms}}<br />
<br />
====内存需求====<br />
<br />
Installing Ubuntu on any system requires at least 32Mb of memory: The text-based installer included with the alternate (install) CDs needs that much space to run reliably. Smaller memory configurations run into problems, and while not impossible, it can be very difficult to complete an installation with less than the minimum RAM requirement.<br />
<br />
在任何系统上安装Ubuntu至少需要32Mb内存:包含在alternate (install) CDs的基于字符的安装程序需要这些空间来可靠运行。更小的内存配置可能会遇到问题,虽然不是不可能,但如果内存小于最低的需求,要完成安装十分困难。<br />
<br />
Depending on the hardware requirements, you can expect a sparse Ubuntu system to boot to a graphical desktop on anywhere from 19Mb to 54Mb. That requirement will fluctuate with the system demands, and increase while the system is active. Swap space is crucial to low-memory machines, so don't be stingy when setting up your system.<br />
<br />
由于硬件需求,你可以期望一个瘦小的Ubuntu系统在任何内存从19Mb到54Mb的地方启动。这个需求会随着系统的需求面浮动,当系统活跃的时候会增加。交换分区对于低内存的机器十分重要,所以当设置系统的时候别小器。<br />
<br />
<br />
<br />
==== 处理器 ====<br />
<br />
There is no practical speed requirement, although a slower processor will take more time to finish installing. Some Pentium machines will take hours to complete, simply because the CPU takes longer to finish. As a general benchmark, a 75Mhz machine finishes a command-line installation of Ubuntu 7.04 in about four hours, and a 120Mhz machine finishes in perhaps an hour less than that. 200Mhz and faster machines will see a still stronger improvement.<br />
<br />
对处理器的速度没有什么实际的需求,虽然低速度的处理器将要花更多的时间来完成安装。仅仅是因为CPU花了太多的时间,一些Pentium机将要花费几个小时来完成安装。根据通常的基准测试,一台75Mhz的机器要4个小时来完成基于命令行的Ubuntu 7.04的安装,一台120Mhz的要比它少用一个小时。200Mhz或是更快的机器将会有更强的提升。<br />
<br />
If you do decide to install Ubuntu on a legacy machine, be patient. There will come times when you think the machine has stopped or is hung, when in fact it's still moving, albeit at a very slow rate.<br />
<br />
如果你决定在一台老式的机器上安装Ubuntu,要有耐心。可能会出现好几次这样的情况:当你认为机器已经停止或挂起,其实它正在运行,虽然速度很慢<br />
<br />
====磁盘空间需求====<br />
Disk space on an absolutely minimal installation can be reduced to as little as 500Mb. A fresh and clean server installation of Ubuntu 7.04 generally takes only 300Mb, although there will be minor variations on account of hardware differences.<br />
<br />
磁盘空间在绝对最小安装的情况下可以减少到500Mb。虽然对于不同的硬件会有很小的变化,一个干净的Ubuntu 7.04 服务器的安装通常只需要300Mb。<br />
<br />
====其它硬件上的考虑====<br />
These instructions assume you will have a working Internet connection and access to the [[UbuntuHelp:Repositories| universe and multiverse repositories]]. Configuring your hardware is not included on this page.<br />
<br />
这份指南假设你有一个可用的互联网连接并且可以访问[[UbuntuHelp:Repositories| universe and multiverse repositories]].它不包括对你硬件的配置。<br />
<br />
<br />
<br />
== 安装Ubuntu Server ==<br />
<br />
The server version of Ubuntu is a sparse command-line system, without any graphical elements. It's a text-only version of what lies underneath all the advanced graphical elements. It's also the starting point for a minimal installation.<br />
<br />
Ubuntu服务器版是一个精减的命令行系统,没有任何图形元素。它是一个位于高级图形元素之下的纯文本版本。它是我们最小化安装的起点。<br />
<br />
==== Ubuntu 6.06 ====<br />
<br />
To install a base system, boot from the alternate (install) CD and choose "Install a server."<br />
<br />
Follow the prompts to complete installation.<br />
<br />
启动alternate(install)CD,选择"Install a server"。按提示完成安装。<br />
<br />
==== Ubuntu 6.10, 7.04, or 7.10 ====<br />
<br />
To install a base system, boot from the alternate (install) CD and choose "Install a command-line system."<br />
<br />
Follow the prompts to complete installation.<br />
<br />
启动alternate(install)CD,选择"Install a command-line system."。按提示完成安装。<br />
<br />
=== 增加软件仓库 ===<br />
<br />
==== 更改源 ====<br />
<br />
Once the server install is complete, you will probably want to edit your [[UbuntuHelp:Sources.list|UbuntuHelp:sources.list]] file.<br />
<br />
当安装好Ubuntu服务器版後,你可能需要编辑你的[[UbuntuHelp:Sources.list|UbuntuHelp:sources.list]]文件。<br />
<br />
sudo nano /etc/apt/sources.list<br />
<br />
Uncomment all official repositories by removing # at the beginning of the line. Do not uncomment the narrative portions of that file; in other words, where you see a double hash mark (##) leave those lines alone.<br />
<br />
删除每一行开始的#号来消除对官方软件仓库的注释。不要消除文件里描述部分的注释,即以两个#号(##)开始的行。<br />
<br />
==== 更新和升级你的系统 ====<br />
<br />
Now you should update your system. Return to the command line and type: <br />
<br />
现在你应该更新你的系统。回到命令行输入:<br />
<br />
sudo aptitude update<br />
<br />
It's probably also a good idea to upgrade your system at this point. Use this command to upgrade your system: <br />
<br />
这时升级你的系统也是个不错的主意。用这个命令升级你的系统。<br />
<br />
sudo aptitude upgrade (或者, 对于 Gutsy: sudo aptitude safe-upgrade)<br />
<br />
Now you should be ready to install a window manager and some programs.<br><br />
<br />
现在你已经准备好了来安装窗口管理器和一些程序。<br />
<br />
=安装图形环境的准备工作=<br />
<br />
The absolute minimum for any graphical environment is X.org<br />
<br />
最小的图形环境是X.org<br />
<br />
=== Installing X.org ===<br />
===安装X.org===<br />
<br />
On Ubuntu Edgy (6.10), Feisty (7.04), and Gutsy (7.10), use the command:<br />
在 Ubuntu Edgy (6.10), Feisty (7.04), 和 Gutsy (7.10), 用下面的命令:<br />
<br />
sudo aptitude install xorg<br />
<br />
On Ubuntu Dapper (6.06), use the command:<br />
在 Ubuntu Dapper (6.06), 用下面的命令:<br />
<br />
sudo aptitude install x-window-system-core<br />
<br />
=== Starting X.org ===<br />
===启动X.org===<br />
<br />
This package gives you the framework for an X session, complete with a variety of drivers and configuration files. Installing ''xorg'' (or ''x-window-system-core'') also triggers the self-configuration sequence, so when it finishes, your hardware should be ready to use, barring any errors or incompatibilities.<br />
通过一些驱动和配置文件,这个软件包给了你一个X对话的框架。安装“Xorg”或“x-window-system-core”还启动了自动配置队列,安装完成后,如果没有错误或不兼容,你的硬件应该已经可用了。<br />
<br />
It's important to note that installing ''xorg'' or ''x-window-system-core'' really doesn't leave you with much. You can start X at this point with this command:<br />
必须注意的是,安装“Xorg”或“x-window-system-core”不会给你很多。这时你可以用以下命令启动X:<br />
<br />
startx<br />
<br />
but without a window manager and some software, you probably won't get much done.<br />
但是没有窗口管理器和一些软件,你能做的很少。<br />
<br />
= 安装一个窗口管理器=<br />
<br />
A window manager controls the placement and appearance of windows within a graphical user interface. <br />
<br />
窗口管理器通过图形用户界面控制窗口的位置有显示。<br />
<br />
There are many lightweight window managers that will give you better access to your system through the X layer. Each one has its own way of managing the desktop, and its own way of configuring themes and menus.<br />
<br />
有很多轻量级的窗口管理器可以使你更好的通过X层访问你的系统。每一种都有它们自己的方式来管理桌面,都有它们自己的方法来配置主题和菜单。<br />
<br />
== Openbox ==<br />
<br />
"Openbox" is one of the lightest, fastest window managers available, but can take some time to configure and set up. It has its origins in Blackbox, but newer versions are complete rewrites of the Blackbox code.<br />
<br />
"Openbox"是一种轻量级的快速的可用的窗口管理器,只是需要一些时间来安装和配置。它源于Blackbox,但是新版的全部重写了Blackbox的代码。<br />
<br />
Install Openbox with this command:<br />
用以下命令安装Openbox:<br />
<br />
sudo aptitude install openbox obconf openbox-themes<br />
<br />
These packages and their dependencies will allow you to build and configure an Openbox system, along with a choice of themes and some configuration options.<br />
<br />
这些软件包和它们的依赖软件包让你可以建立和配置Openbox系统,还有可选择的主题和一些配置选项。<br />
<br />
'''Note:''' Edgy (Ubuntu 6.10) users should note a small discrepancy in ''obconf'' that might prevent it from running. You can correct that with these commands ...<br />
<br />
'''注意:'''Edgy (Ubuntu 6.10)用户必须注意"obconf"一个可能会使其无法运行的小问题。你可以用下面的命令解决这个问题。<br />
<br />
cd /usr/lib<br />
sudo ln libobparser.so.0.4.0 libobparser.so.1<br />
sudo ln libobrender.so.0.4.0 libobrender.so.1<br />
sudo ldconfig -X<br />
<br />
Entering ''obconf'' in an X terminal window should now trigger the obconf dialogue.<br />
<br />
在X终端输入''obconf''将启动obconf对话。<br />
<br />
== IceWM ==<br />
<br />
"IceWM" has a very strong following as a good, clean, fast window manager that resembles a conventional "desktop" in many ways. Among many of its perks are themes that resemble the Windows XP desktop theme -- which may be appealing to you.<br />
<br />
"IceWM"很受欢迎,因为它是一个很好的,干净的,很快的窗口管理器,它还集成了一个可选择的桌面。在它的众多优点中有一个可能会吸引你:它集成了Windows XP桌面主题。<br />
<br />
Install IceWM with this command:<br />
<br />
用下面的命令安装IceWM:<br />
<br />
sudo aptitude install icewm iceconf icepref iceme icewm-themes<br />
<br />
When finished, you will have a number of configuration and menu options. You can start IceWM with the ''startx'' command.<br />
<br />
安装完成后,你将拥有一些配置和菜单选项。你可以用''startx''命令启动它。<br />
<br />
== Fluxbox ==<br />
<br />
"Fluxbox" is a beautiful, highly configurable desktop system that is easy on system resources without compromising on graphical appeal. Fluxbox is the default window manager for a number of Linux distributions, probably most notable among them being [http://www.damnsmalllinux.org/ Damn Small Linux].<br />
<br />
"Fluxbox" 是一种漂亮的,高度可配置的桌面系统,它对系统资源要求不高却没有损失图形的吸引力。"Fluxbox" 是许多Linux发开版的默认窗口管理器,可能大部分都在[http://www.damnsmalllinux.org/ Damn Small Linux]上。<br />
<br />
<br />
Install Fluxbox with this command:<br />
<br />
用下面的命令安装Fluxbox:<br />
<br />
sudo aptitude install fluxbox fluxconf<br />
<br />
Once installed, you can start Fluxbox with the ''startfluxbox'' command. Remember, if you enjoy working with Fluxbox, you should consider [http://www.fluxbuntu.org Fluxbuntu] as an option.<br />
<br />
安装好以后,你可以用''startfluxbox''命令启动它。记住,如果你很喜欢使用Fluxbox,你可以考虑 [http://www.fluxbuntu.org Fluxbuntu] 作为一种选择。<br />
<br />
== FVWM-Crystal ==<br />
<br />
"FVWM-Crystal" is a complete set of configuration scripts which sit atop of FVWM. FVWM-Crystal has support for integrated access to music players, terminal emulators and system monitors. It boasts some of the finest eye candy available to low-end machines, and is a snap to install.<br />
<br />
"FVWM-Crystal" 是基于FVWM的一些配置脚本。"FVWM-Crystal" 支持对音乐播放器,终端和系统监视的集成访问。它号称是在低配置机器上可用的最漂亮的窗口管理器,并且它可以很快的安装。<br />
<br />
For more information about building an FVWM-Crystal desktop, check out the ["FVWM-Crystal"] page.<br />
<br />
想知道更多关于安装FVWM-Crystal桌面的的信息,请访问["FVWM-Crystal"]。<br />
<br />
== XFCE ==<br />
<br />
XFCE is heavier than any of the systems mentioned so far, but has some added functions as a result. You can try XFCE alone if you like, but if you're keen on an XFCE installation, look into [http://www.xubuntu.org Xubuntu] as an option.<br />
<br />
XFCE 相对于目前已经提到的轻量级窗口管理器来说都更“重”,但是是因为增加了一些应用的。如果你喜欢,你可以单独党旗XFCE,但如果你一定要安装XFCE,请查看 [http://www.xubuntu.org Xubuntu]。<br />
<br />
Install XFCE alone, without Xubuntu, with this command:<br />
<br />
单独安装XFCE,而不是Xubuntu,请用下面的命令:<br />
<br />
sudo aptitude install xfce4<br />
<br />
It's worth noting that some Edgy users have difficulty starting XFCE from a minimal install. The normal start command for XFCE -- ''startxfce4'' -- doesn't seem to be properly configured in Edgy.<br />
<br />
对于Edgy用户来讲,这是没有用的,从最小化安装启动XFCE是有困难的。XFCE的启动命令-- ''startxfce4'' -- 看起来好像在Edgy上没有配置好。<br />
<br />
If you want the entire Xubuntu package, which includes a full suite of software and a lot of improvements, try this command:<br />
<br />
如果你想要一个完全的包括了一些软件和一些改进的Xubuntu包,请用下面的命令:<br />
<br />
sudo aptitude install xubuntu-desktop<br />
<br />
That will download quite a large amount of packages; you may want to consider installing Xubuntu fresh, from the [http://www.xubuntu.org/get installation ISO]. <br />
<br />
这将要下载很多的软件包;你可能想从 [http://www.xubuntu.org/get installation ISO]干净的安装Xubuntu。<br />
<br />
Note: Xubuntu will use more system resources and may not be optimal for a low memory system with limited disk space, but it is lighter than a standard Ubuntu system.<br />
<br />
''注意:'' Xubuntu 将会使用更多的系统资源,而且可能对于一个硬盘空间和内存都有限的系统来讲不是最好的选择,但是它比标准的Ubuntu系统“轻”。<br />
<br />
= 安装软件 =<br />
<br />
Now that the graphical window manager is set up, it's time to add some necessary and recommended packages. These will add additional functionality and make using the system easier. Additionally, adding a graphical package manager will provide an easy method to manage installed applications and packages.<br />
<br />
现在图形窗口管理器已经设置好了,现在可以安装一些必须或推荐的软件包。这些软件包将会加入一些新的功能,使系统更容易使用。另外,安装一个图形化的软件包管理器将会使管理已安装的应用和软件包变得容易。<br />
<br />
== 登录管理器 ==<br />
<br />
Login managers will assist in choosing a graphical environment and will not require the user to start x.org to get into the window manager. <br />
<br />
登录管理器将帮助我们选择一个图形环境,而且不需要用户启动X.org就可以进入窗口管理器。<br />
<br />
It's important to note that it's not necessary to use a login manager. If you're willing to log in at the command line and start X manually, you can save yourself a lot of system resources -- and the time it takes to load them. That can be a more appealing option on older machines.<br />
<br />
要说明的是登录管理器并不是必须的。如果你喜欢在命令行界面登录然后手动启动X,你能节约很多系统资源和启动它们的时间。对于老的机器来说可能更有吸引力。<br />
<br />
=== GDM ===<br />
<br />
GDM is the Ubuntu default for a login manager. However, GDM has a reputation of being a heavyweight, and on a system that needs as little bulk as possible, you might find it to be a burden. If you've got a decent system, install it using:<br />
<br />
GDM是Ubuntu默认的登陆管理器,它被认为是一个重量级的管理器,在系统中它需要比较多的资源,所以你可能会发现它是一个负担。如果你有一个很好的系统,用以下命令安装它:<br />
<br />
sudo aptitude install gdm<br />
<br />
=== KDM ===<br />
<br />
KDM is another manager, but has the same heavy reputation as GDM.<br />
<br />
KDM是另一种管理器,它和GDM一样被认为是重量级的管理器。用以下命令安装:<br />
<br />
sudo aptitude install kdm<br />
<br />
=== XDM ===<br />
<br />
XDM is the login manager for straight X, and while less beautiful than GDM or KDM, it can perform in the same role without fuss.<br />
<br />
XDM是纯粹的X的登录管理器,它没有GDM和KDM漂亮,但它能像GDM和KDM那样很好的工作。用以下命令安装:<br />
<br />
sudo aptitude install xdm<br />
<br />
== 浏览器 ==<br />
<br />
Now that your system is up and running, it would be a good idea to add an internet browser to surf the web and get some use out of the machine!<br />
<br />
现在你的系统已经在运行了,现在可以安装一个因特网浏览器来上网冲浪。<br />
<br />
=== Firefox ===<br />
Web browsers come in many flavors, and the most prevalent -- Firefox -- can be laggy on low-memory or slow systems. Even the GNU version of Firefox, [https://wiki.ubuntu.com/IceWeasel Iceweasel] can be a bit heavy on older machines. If you've got at least 128 mb of memory, Firefox should work just fine.<br />
<br />
Firefox是适用于很多Linux发行版,是最流行的浏览器。它对于低内存或者低速的系统来讲,可能有点难以应付。甚至是GNU版本的Firefox,[https://wiki.ubuntu.com/IceWeasel Iceweasel] 对于老的机器来讲也有些“重”。如果你有多于128mb的内存,Firefox可以运行的很好。用以下命令安装它:<br />
<br />
sudo aptitude install firefox <br />
<br />
=== Dillo ===<br />
<br />
While not nearly as full-featured as Firefox, Dillo has the advantages of a very small footprint and few resource requirements.<br />
<br />
不像Firefox那样具有完全的功能,Dillo的优点是有一个很小的脚印和很小的资源需求。用以下命令安装它:<br />
<br />
sudo aptitude install dillo<br />
<br />
== iDesk ==<br />
<br />
Many lightweight desktop systems use [http://idesk.sourceforge.net/ iDesk] as a way of including customized, clickable icons directly on the desktop. iDesk is maintained in the Ubuntu repositories, and is installable from the command line with:<br />
<br />
很多轻量级的桌面系统用[http://idesk.sourceforge.net/ iDesk]来配置和使桌面上的图标可以被直接点击。iDesk包含在Ubuntu的软件仓库中,可以用以下命令安装它:<br />
<br />
sudo aptitude install idesk<br />
<br />
Consult the [http://idesk.sourceforge.net/ iDesk wiki] for instructions on how to configure and use iDesk. For icon sets, you may wish to search the repositories, or download them from third-party customization sites, such as [http://www.gnome-look.org Gnome-Look.org] and similar locations.<br />
<br />
访问[http://idesk.sourceforge.net/ iDesk wiki]来获取配置和使用iDesk的命令。你可能要搜索软件仓库或从第三方的配置网站上下载图标,像[http://www.gnome-look.org Gnome-Look.org]及相似的网站。<br />
<br />
== 文件管理器 ==<br />
<br />
Lightweight systems have a number of options available for graphical file management. Thunar is the default file manager in Xubuntu and many XFCE-based systems; it is installable alone with this command:<br />
<br />
轻量级的系统有多种可用的图形文件管理器。Thunar是Xubuntu和很多基于XFCE默认的系统,可以使用下面的命令单独安装它:<br />
<br />
sudo aptitude install thunar<br />
<br />
XFE is an even lighter file manager, intended to mimic the Windows Explorer interface. It has very few dependencies and is very fast.<br />
<br />
XFE是一种更“轻”的文件管理器,它模仿了Windwos Explorer接口。它只依赖很少的软件包而且非常快。用下面命令安装它:<br />
<br />
sudo aptitude install xfe<br />
<br />
ROX-Filer is another file management program, which makes extensive use of drag-and-drop principles. It does appear to have a large number of dependencies however, which means installing it may entail more external packages than you wish. Install ROX-Filer with this command:<br />
<br />
ROX-Filer也是一种文件管理器,它扩展了drag-and-drop原理。它依赖很多的软件包,这就意味着它需要比你想像的要多的扩展软件包。用下面命令安装它:<br />
<br />
sudo aptitude install rox-filer<br />
<br />
Nautilus is the default file manager for Ubuntu. It requires some more resources, but it has a lot of useful features. It can manage your desktop, show a wallpaper and desktop icons, which are automatically created for new devices (e.g. USB flash drives). Install Nautilus using this command:<br />
<br />
Nautilus是Ubuntu默认的文件管理器。它需要更多的资源,但它具有很多有用的特性。它能管理你的桌面,显示桌面背景和桌面图标,对于新的设备它们都可以自动创建。用下面命令安装它:<br />
<br />
sudo apt-get install nautilus<br />
<br />
To use it together with a window manager, execute the following command or add it to your autostart script. For example, use $HOME/.icewm/startup for IceWM.<br />
<br />
要让它和窗口管理器一起工作,需执行以下命令或者把命令加入到自动启动脚本。例如:对于IceWM,加入$HOME/.icewm/startup文件。<br />
<br />
nautilus --no-default-window &amp; <br />
<br />
Some other popular file managers include<br />
<br />
其它一些浒的文件管理器有:<br />
<br />
* [http://pcmanfm.sourceforge.net/ PCManFM];<br />
* [http://packages.ubuntu.com/edgy/utils/mc Midnight Commander], [http://tuxcmd.sourceforge.net/ Tux Commander] and [http://packages.ubuntu.com/edgy/gnome/gnome-commander Gnome Commander] (which all resemble the old Norton Commander interface);<br />
* [http://packages.ubuntu.com/edgy/x11/xffm4-filemanager xffm4-filemanager];<br />
* [http://step.polymtl.ca/~coyote/xvfilemgr_main.html XVFilemgr];<br />
* and [http://packages.ubuntu.com/edgy/kde/dolphin Dolphin], which is a file manager aimed at KDE and Kubuntu.<br />
<br />
There are many others. Some are available through the repositories; others will require you to download and install them through another source. Experiment with different file managers to see which ones appeal to you.<br />
<br />
这里有很多其它的文件管理器。其中一些可以通过软件仓库安装,一些必须通过源码下载和安装。尝试不同的文件管理器,看哪些能够吸引你。<br />
<br />
== 软件包管理器 ==<br />
<br />
Add a graphical package manager to install, remove and upgrade software packages and to add repositories without using the command line. Synaptic package manager is the standard and can be installed with this command:<br />
<br />
安装一个图形化的软件包管理器来安装,删除和升级软件包和增加软件仓库,可以让你不需要使用命令。新立得软件包管理器是标准的软件包管理工具。可以用下面命令来安装:<br />
<br />
sudo aptitude install synaptic<br />
<br />
You can use the package manager to add a word processor, such as Abiword, and other productivity software.<br />
<br />
你可以用软件包管理器来安装字处理器,像Abiword,或是其它的软件。<br />
<br />
= 安装一个完整的轻量级系统 =<br />
<br />
Building on the ideas above, here are some complete graphical systems, installable through a single command line. Feel free to mix and match between these options.<br />
<br />
基于以上的想法,我们可以用一条命令来安装一个完整的图形系统。你可以自由的组合这些选项。<br />
<br />
'''Remember: If you are using Dapper or earlier, replace "xorg" with "x-window-system-core"'''<br />
<br />
'''记住:如果你是在用Dapper或是更早的版本,用"x-window-system-core"代替"xorg"。<br />
<br />
* IceWM as a window manager, plus GDM, Firefox, Abiword and the Synaptic package manager:<br />
<br />
*IceWM是窗口管理器,加上GDM,Firefox,Abiword和新立得软件包管理器。<br />
<br />
sudo aptitude install gdm xorg xterm icewm menu mozilla-firefox abiword synaptic<br />
<br />
* XFCE and Firefox, with Synaptic package manager and KDM as the login manager:<br />
<br />
*XFCE,Firefox,再加上新立得软件包管理器和登录管理器KDM。<br />
<br />
<br />
sudo aptitude install kdm xorg xfce4 firefox synaptic<br />
<br />
* Fluxbox with Dillo, and XDM as a login manager:<br />
<br />
*Fluxbox,Dillo,和XDM <br />
<br />
sudo aptitude install fluxbox xorg xdm dillo<br />
<br />
* Openbox with no login manager, XFE as the file manager and xfce4-terminal as an X terminal, as well as Openbox themes and the Tango icon set:<br />
<br />
Openbox,XFE和xfce4-terminal还有Openbox主题及Tango图标。<br />
<br />
sudo aptitude install openbox obconf openbox-themes xfe xfce4-terminal tango-icon-theme-extras xorg<br />
<br />
Remember to check the repositories for more ideas on software and applications!<br />
<br />
记得查看软件仓库来获得更多的关于软件和应用的想法。<br />
<br />
= 低配置的选择 =<br />
<br />
For a minimalistic system that does not require as much configuration, you can install the alternate window managers after installing a full K/X/Ubuntu system, thus preinstalling much of the required software but keeping the speed. However, installing a full system does require more system resources.<br />
<br />
对于一个很小的系统并不需要太多的配置,在安装完完整的K/X/Ubuntu系统后你可以安装另一种窗口管理器来替代它,这样就可以安装很多必要软件并且保证运行速度。然而安装一个完整的系统的确需要更多的系统资源。<br />
<br />
= 扩展链接 =<br />
<br />
* [http://www.fluxbuntu.org FluxBuntu]: An Ubuntu variant with Fluxbox as the default window manager. An excellent place to start for a Fluxbox-based system. <br />
* [http://www.ubuntulite.org UbuntuLite]: An early project to build a stripped-down version of Ubuntu aimed at low-end machines. The project also seems to have stalled.<br />
* [http://alecjw.googlepages.com/cubuntu-commandlineubuntu Cubuntu] is not a graphical system; Cubuntu is a full-featured ''command line'' system, suitable for computers that can't handle any of the above options -- such as early Pentium or perhaps even 486-grade machines with as little as 16Mb RAM. And don't be skeptical: Even without a graphic environment, a computer can perform a lot more tasks than you would expect. B)<br />
* [http://www.enlightenment.org/ Enlightenment] is another window manager, but it is still in development and requires additional steps to install. However, it is very lightweight and functional. <br />
* [http://www.thinkgos.com/ gOS] is an operating system based on Ubuntu, uses a customized version of Enlightenment as its window manager, and is able to run on some older systems.<br />
<br />
<br />
<br />
CategoryDocumentation</div>Convice