查看“DapperGuide”的源代码
来自Ubuntu中文
←
DapperGuide
跳到导航
跳到搜索
因为以下原因,您没有权限编辑该页面:
您请求的操作仅限属于该用户组的用户执行:
用户
您可以查看和复制此页面的源代码。
[[HTML(<a name="General_Notes"></a>)]] === 基本备注 === * 新手指南是一份非官方发行的文件。这份文件和Ubuntu 与 Canonical Ltd 都没有任何直接关系。 * 这份指南的内容都已经在一台使用Ubuntu 6.06 x86 安装光盘 (Dapper Drake) 完整安装的系统上测试过。 * 如果您看到青蓝色的方块,表示您需要在终端(应用程序 -> 附件 -> 终端)内执行上述的指令,或者使用其它方式执行上述的指令。 * 为了避免打字错误引起的问题,请在终端机善加使用复制与粘贴这两个指令(用鼠标右键点选 "复制" 或者 "粘贴"。您也可以利用 Ctrl+C 进行 "复制" 以及使用 Shift+Insert 进行粘贴。) * "sudo" 代表 superuser do (超级使用者执行)。执行 "sudo" 后将会出现提示字符串 "Password:",请输入使用者密码。 * 如果您需要了解任何一个命令的更多信息,您只须使用"man"命令来查阅它的帮助页面.譬如,"man sudo"会显示"sudo"命令的帮助页面。 * 如果您厌倦每次打 "apt-get" 指令,请参阅 [[DapperGuide#How_to_apt-get_the_easy_way_.28Synaptic.29 #如何简单的使用 apt-get(新立得)]]. * 使用 "apt-get" 和 "wget" 这两个指令来 安装 / 更新 / 下载程序时,请先确定您的系统已经连接上网络。 * 下载文档时, 用鼠标右键点击链接 -> 选择 "链接另存为..." -> 请确认文件名称和扩展名都正确无误。 * 如果您想要帮忙翻译 Ubuntu 或者其它方式帮助 Ubuntu 可以拜访 [[https://launchpad.net/]] * 愿 "humanity to others" 的精神长伴您左右... 如果你使用 Kubuntu 你不需要安装 '''gedit''' , 因为现在已经建立了动态链接由 '''gedit''' 到 '''kate''', 应此您可以在下面使用所有的命令并不会有问题. 顺便提一下, 如果你希望使用 gedit 作为你的编辑器, 这样: <pre><nowiki>sudo apt-get install gedit </nowiki></pre> 如果 "gedit" 命令 (动态链接) 无法工作, 您可以建立它: <pre><nowiki>sudo ln -s /usr/bin/kate /usr/bin/gedit </nowiki></pre> ''如果您在使用 64位版本请把 "i386" 换成 "amd64"'' [[HTML(<a name="Getting_Started"></a>)]] === 开始的第一步 === [[HTML(<a name="What_is_Ubuntu"></a>)]] ==== 什么是 Ubuntu ==== * [http://www.ubuntu.com/ubuntu] [[HTML(<a name="What_is_new_in_Ubuntu_6.06_Dapper_Drake"></a>)]] ==== 在 Ubuntu 6.06 Dapper Drake 有哪些新特性 ==== * [http://www.ubuntu.com/testing/dapperbeta] [[HTML(<a name="Where_to_view_Ubuntu_screenshots_.2F_screencast"></a>)]] ==== 何处可以看到 Ubuntu 屏幕抓图 ==== * [http://shots.osdir.com/slideshows/slideshow.php?release=659&slide=4&title=ubuntu+6.06+screenshots] * [http://www.phoronix.com/scan.php?page=article&item=481&num=1] '''视频''' * [http://osvids.com/files/page3-1034-pop.html] * [http://osvids.com/files/page3-1035-pop.html] * [http://osvids.com/files/page3-1036-pop.html] [[HTML(<a name="Where_to_view_Kubuntu_screenshots_.2F_screencast"></a>)]] ==== 何处可以看到 KUbuntu 屏幕抓图 ==== * [http://shots.osdir.com/slideshows/slideshow.php?release=662&slide=4&title=kubuntu+6.06+screenshots] * [http://www.phoronix.com/scan.php?page=article&item=320&num=1] '''视频''' * [http://osvids.com/files/page3-108-pop.html] [[HTML(<a name="Where_to_find_a_list_of_all_the_programs_and_libraries_that_come_with_Ubuntu"></a>)]] ==== 何处可以找到 Ubuntu 所有的程序/函数库的清单 ==== * dpkg -l命令的输出: [http://packages.ubuntu.com/dapper/allpackages.en.txt.gz Here] * [http://packages.ubuntu.com/dapper http://packages.ubuntu.com/dapper] * [http://distrowatch.com/table.php?distribution=ubuntu http://distrowatch.com/table.php?distribution=ubuntu] [[HTML(<a name="Where_to_download_Ubuntu"></a>)]] ==== 何处可以下载Ubuntu ==== * [http://releases.ubuntu.com/6.06/ http://releases.ubuntu.com/6.06/] [[HTML(<a name="Where_to_order_Ubuntu_CDs_absolutely_FREE"></a>)]] ==== 何处可以免费索取 Ubuntu 光盘片? ==== * [https://shipit.ubuntu.com https://shipit.ubuntu.com] 请注意光盘需要花费四到六周才能收到. 如果有可能鼓励您复制、修改和重新分发这些光盘。 [[HTML(<a name="Where_to_find_help_for_Ubuntu"></a>)]] ==== 何处可以找到关于 Ubuntu 的说明与帮助 ==== * 查看: '系统 -> 帮助 -> 系统文档'' * [https://help.ubuntu.com/ Official Documentation website] * [https://wiki.ubuntu.com/UserDocumentation Official User Documentation (wiki)] * [http://doc.gwos.org/index.php/Main_Page Ubuntu Document Storage Facility] * [http://www.ubuntu.com/community/lists Mailing Lists] * [http://www.ubuntu.com/community/forums Web Forums] * [irc://irc.freenode.net/ubuntu IRC Channel] * [http://www.ubuntu.org.cn 简体中文网站] * [http://forum.ubuntu.org.cn 简体中文网站论坛] * [irc://irc.freenode.net/ubuntu-cn 简体中文IRC 频道] [[HTML(<a name="Where_to_look_for_new_programs"></a>)]] ==== 何处可以找到新的程序 ==== * [http://gnomefiles.org/ http://gnomefiles.org/] * [http://www.kde-apps.org/ http://www.kde-apps.org/] * [http://freshmeat.net/browse/18/ http://freshmeat.net] * [http://sourceforge.net/ http://sourceforge.net/] [[HTML(<a name="Where_to_look_for_style_elements_for_your_desktop"></a>)]] ==== 何处可以找到关于桌面美化的数据 ==== * [http://www.gnome-look.org/] * [http://www.kde-look.org/] * [http://art.gnome.org/] [[HTML(<a name="Repositories"></a>)]] === 软件库 === [[HTML(<a name="How_to_add_extra_repositories"></a>)]] ==== 如何新增其他的软件库 ==== * [[DapperGuide#General_Notes|基本备注]] * 您也可以 [[DapperGuide#How_to_apt-get_the_easy_way_.28Synaptic.29 使用新立得(Synaptic)添加其它软件库。]]. 新用户可能会觉得通过新立得添加其他软件库会更顺手。 如果您依照以上的链接做了,就不需要查看以下部分了。 <pre><nowiki>sudo cp -p /etc/apt/sources.list /etc/apt/sources.list_backup gksudo gedit /etc/apt/sources.list </nowiki></pre> * 用以下内容替换文件中的所有内容 使用您的本地镜像,您可以增加 "''cc.''" 在 ''archive.ubuntu.com'' (cc = 你的国家代码) e.g. ''deb http://lv.archive.ubuntu.com/ubuntu dapper main restricted universe multiverse'' <pre><nowiki>## Add comments (##) in front of any line to remove it from being checked. deb http://archive.ubuntu.com/ubuntu dapper main restricted universe multiverse deb-src http://archive.ubuntu.com/ubuntu dapper main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu dapper-updates main restricted universe multiverse deb-src http://archive.ubuntu.com/ubuntu dapper-updates main restricted universe multiverse deb http://security.ubuntu.com/ubuntu dapper-security main restricted universe multiverse deb-src http://security.ubuntu.com/ubuntu dapper-security main restricted universe multiverse deb http://archive.ubuntu.com/ubuntu dapper-backports main restricted universe multiverse deb-src http://archive.ubuntu.com/ubuntu dapper-backports main restricted universe multiverse deb http://packages.freecontrib.org/plf dapper free non-free deb-src http://packages.freecontrib.org/plf dapper free non-free deb http://archive.canonical.com/ubuntu dapper-commercial main </nowiki></pre> * 保存编辑好的文件 <pre><nowiki>sudo apt-get update </nowiki></pre> * 您也可以产生您自己的 sources.list 发现其它的软件仓库: [http://www.ubuntulinux.nl/source-o-matic] * 您也可以使用下面非常完整的列表来覆盖您的 sources.list : [http://italy.copybase.ch/blog/lista-repository-sourceslist-ottimizzata-per-ubuntu-kubuntu-linux/ sources.list] (be sure to replace "it" from "it.archive.ubuntu.com" with your country code. Use at own risk. * ''Modify the default Ubuntu sources.list only if you understand what you're doing. Mixing repos can cause breakage.'' [[HTML(<a name="Ubuntu_Updates"></a>)]] === Ubuntu 升级 === [[HTML(<a name="How_to_manually_update_Ubuntu"></a>)]] ==== 如何手工升级 Ubuntu ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] <pre><nowiki>sudo apt-get update sudo apt-get upgrade </nowiki></pre> '''OR''' Use Update Manager: ''系统 -> 系统管理 -> Update Manager'' [[HTML(<a name="Add-On_Applications"></a>)]] === 新增其他应用程序 === [[HTML(<a name="How_to_use_Easy_Ubuntu"></a>)]] ==== 如何使用 Easy Ubuntu ==== * [[DapperGuide#General_Notes|基本备注]] * Easy Ubuntu is a small straight-forward utility that allows novice users to easily install a wide variety of content for Ubuntu such as media codecs, fonts, Macromedia Flash and Sun Java. <pre><nowiki>wget http://easyubuntu.freecontrib.org/files/easyubuntu-3.021.tar.gz tar -zxf easyubuntu-3.021.tar.gz cd easyubuntu sudo python easyubuntu.in </nowiki></pre> * From the Easy Ubuntu window, check the appropriate boxes to download and install content to Ubuntu. * Note: Users of the previous EasyUbuntu 3.0 version may experience issues with installing Flash and Java. [[HTML(<a name="How_to_install_Automatix_on_Ubuntu.2C_Kubuntu.2C_and_Xubuntu"></a>)]] ==== 如何安装 Automatix 在 Ubuntu, Kubuntu, 和 Xubuntu ==== * [[DapperGuide#General_Notes|基本备注]] * Automatix is a graphical interface for automating the installation of the most commonly requested applications in Ubuntu/Kubuntu/Xubuntu linux. * Note: Before installing, please note that certain codecs it provides may be prohibited in certain countries. You are responsible for ensuring those laws are not broken. * using your favorite text editor (kwrite, gedit) <pre><nowiki>gksudo kwrite /etc/apt/sources.list </nowiki></pre> * Uncomment the following lines <pre><nowiki>#deb http://archive.ubuntu.com/ubuntu dapper main #deb-src http://archive.ubuntu.com/ubuntu dapper main </nowiki></pre> * If you use Ubuntu or Xubuntu Dapper, add the following line to the end of the file. <pre><nowiki>deb http://www.getautomatix.com/apt dapper main </nowiki></pre> * If you use Kubuntu, add the following line to the end of the file. <pre><nowiki>deb http://www.getautomatix.com/apt kubuntu main </nowiki></pre> * Save the file and close it * Acquire GPG key <pre><nowiki>wget http://www.getautomatix.com/apt/key.gpg.asc gpg --import key.gpg.asc gpg --export --armor 521A9C7C | sudo apt-key add - </nowiki></pre> * Run the following commands to install Automatix <pre><nowiki>sudo apt-get update sudo apt-get install zenity sudo apt-get install automatix </nowiki></pre> * Automatix can be started from the command line <pre><nowiki>automatix </nowiki></pre> * It will be added to the Menu, as well <pre><nowiki>菜单 -> 系统 -> Automatix-Kubuntu </nowiki></pre> [[HTML(<a name="How_to_install_Clipboard_Daemon_for_GNOME"></a>)]] ==== 如何安装 Clipboard Daemon for GNOME ==== * [[DapperGuide#General_Notes|基本备注]] <pre><nowiki>wget -c http://easylinux.info/uploads/gnome-clipboard-daemon-1.0.bin.tar.bz2 sudo tar jxvf gnome-clipboard-daemon-1.0.bin.tar.bz2 -C /usr/bin/ sudo chown root:root /usr/bin/gnome-clipboard-daemon sudo chmod 755 /usr/bin/gnome-clipboard-daemon sudo gnome-clipboard-daemon & export EDITOR=gedit && crontab -e </nowiki></pre> * Add the following line at the end of file <pre><nowiki>@reboot gnome-clipboard-daemon </nowiki></pre> * 保存编辑好的文件 [[HTML(<a name="How_to_install_J2SE_Runtime_Environment_.28JRE.29_with_Plug-in_for_Mozilla_Firefox"></a>)]] ==== 如何安装 J2SE Runtime Environment (JRE) with Plug-in for Mozilla Firefox ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] <pre><nowiki>sudo apt-get install sun-java5-jre sun-java5-plugin </nowiki></pre> * When asked, agree with DLJ license terms. * To configure J2SE as the default JVM (necessary for programs such as Frostwire, RSSOwl and as a plugin for Mozilla Firefox): <pre><nowiki>sudo update-alternatives --config java </nowiki></pre> Then choose the option that corresponds to J2SE. [[HTML(<a name="How_to_install_JRE_v5.0_Update_8"></a>)]] ==== 如何安装 JRE v5.0 Update 8 ==== * [[DapperGuide#General_Notes|基本备注]] * Download the "Linux (self-extracting file)" from [http://java.com/en/download/manual.jsp] * Copy it to /usr/java/ <pre><nowiki>sudo chmod a+x jre-1_5_0_08-linux-i586.bin sudo ./jre-1_5_0_08-linux-i586.bin cd /usr/lib/firefox/plugins ln -s /usr/java/jre1.5.0_08/plugin/i386/ns7/libjavaplugin_oji.so cd /usr/lib/mozilla/plugins ln -s /usr/java/jre1.5.0_08/plugin/i386/ns7/libjavaplugin_oji.so </nowiki></pre> * 重启 Mozilla Firefox [[HTML(<a name="How_to_install_Flash_Player_.28Macromedia_Flash.29_Plug-in_for_Mozilla_Firefox"></a>)]] ==== 如何安装 Flash Player (Macromedia Flash) Plug-in for Mozilla Firefox ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] <pre><nowiki>sudo apt-get install flashplugin-nonfree sudo update-flashplugin </nowiki></pre> * 重启 Mozilla Firefox Note: if sound doesn't work in Flash Player (for example on YouTube): <pre><nowiki>sudo apt-get install alsa-oss gksudo gedit /etc/firefox/firefoxrc </nowiki></pre> Change: <pre><nowiki>FIREFOX_DSP="" </nowiki></pre> To: <pre><nowiki>FIREFOX_DSP="aoss" </nowiki></pre> * 重启 Mozilla Firefox. Now sound should work in Flash Player. [[HTML(<a name="How_to_install_PDF_Reader_.28Adobe_Acrobat_Reader.29_with_Plug-in_for_Mozilla_Firefox"></a>)]] ==== 如何安装 PDF Reader (Adobe Acrobat Reader) with Plug-in for Mozilla Firefox ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] <pre><nowiki>sudo apt-get install acroread mozilla-acroread acroread-plugins </nowiki></pre> * Read [DapperGuide#How_to_refresh_GNOME_panel #如何刷新 GNOME 面板] * 应用程序 -> 办公 -> Adobe Reader * 重启 Mozilla Firefox '''Note:''' Acrobat Reader 7.0 will not run if SCIM is running. You are running SCIM if you have installed another language to Ubuntu via 系统 -> 系统管理 -> Language Support. To circumvent, do the following <pre><nowiki>gksudo gedit /usr/bin/acroread </nowiki></pre> Change: <pre><nowiki>#!/bin/sh # </nowiki></pre> to: <pre><nowiki>#!/bin/sh # GTK_IM_MODULE=xim </nowiki></pre> Save the file. Now Acrobat Reader 7.0 should work. [[HTML(<a name="How_to_associate_Adobe_Acrobat_Reader_with_files_in_Nautilus"></a>)]] ==== 如何 associate Adobe Acrobat Reader with files in Nautilus ==== * Read [[DapperGuide#How_to_install_PDF_Reader_.28Adobe_Acrobat_Reader.29_with_Plug-in_for_Mozilla_Firefox|#How to install PDF Reader (Adobe Acrobat Reader) with Plug-in for Mozilla Firefox]] * Open Nautilus (Places -> Desktop) * Browse to a .pdf file * Right-click the .pdf file, select '''Properties''', go to the '''Open With''' tab, choose Adobe Reader. Now when you double-click on a .pdf file, it will be opened with Adobe Acrobat Reader. [[HTML(<a name="How_to_print_from_Adobe_Acrobat_Reader"></a>)]] ==== 如何 print from Adobe Acrobat Reader ==== * Read [[DapperGuide#How_to_install_PDF_Reader_.28Adobe_Acrobat_Reader.29_with_Plug-in_for_Mozilla_Firefox|#How to install PDF Reader (Adobe Acrobat Reader) with Plug-in for Mozilla Firefox]] * Read [DapperGuide#How_to_add_a_printer #How to add a printer] * 应用程序 -> 办公 -> Adobe Reader * File -> Print * In the '''Print Command''' box, append '''-d printername'''. For example, if your printer was named FS-1010, the Print Command would read: <pre><nowiki>/usr/bin/lp -d FS-1010 </nowiki></pre> [[HTML(<a name="How_to_install_Download_Manager_.28Downloader_for_X.29"></a>)]] ==== 如何安装 Download Manager (Downloader for X) ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] <pre><nowiki>sudo apt-get install d4x </nowiki></pre> * Read [[DapperGuide#How_to_refresh_GNOME_panel| #如何刷新 GNOME 面板]] * 应用程序 -> Internet -> Downloader for X [[HTML(<a name="How_to_install_FTP_Client_.28gFTP.29"></a>)]] ==== 如何安装 FTP Client (gFTP) ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] <pre><nowiki>sudo apt-get install gftp </nowiki></pre> * Read [[DapperGuide#How_to_refresh_GNOME_panel|#如何刷新 GNOME 面板]] * 应用程序 -> Internet -> gFTP [[HTML(<a name="How_to_install_File_share_utility_.28DC.2B.2B.29"></a>)]] ==== 如何安装 File share utility (DC++) ==== * [[DapperGuide#General_Notes|基本备注]] <pre><nowiki>wget -c http://easylinux.info/uploads/linuxdcpp.tar.gz sudo tar zxvf linuxdcpp.tar.gz -C /opt gksudo gedit /usr/share/applications/dcpp.desktop </nowiki></pre> * 插入下面的行到新文件 <pre><nowiki>[Desktop Entry] Encoding=UTF-8 Name=DC++ Exec=/opt/linuxdcpp/ldcpp Terminal=false Type=Application StartupNotify=true Icon=/opt/linuxdcpp/pixmaps/linuxdcpp.svg Categories=Application;Network; </nowiki></pre> * 保存编辑好的文件 * 应用程序 -> Internet -> DC++ [[HTML(<a name="How_to_install_P2P_BitTorrent_Client_.28Azureus.29"></a>)]] ==== 如何安装 P2P BitTorrent Client (Azureus) ==== * [[DapperGuide#General_Notes|基本备注]] <pre><nowiki>sudo apt-get install azureus </nowiki></pre> * 应用程序 -> Internet -> Azureus * (Alternative Method) The above method installs a version of Azureus compiled with gcj, the free alternative to Sun's Java. * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] * Read [DapperGuide#How_to_install_J2SE_Runtime_Environment_.28JRE.29_with_Plug-in_for_Mozilla_Firefox" #How to install J2SE Runtime Environment (JRE) with Plug-in for Mozilla Firefox] <pre><nowiki>wget [http://kent.dl.sourceforge.net/sourceforge/azureus/Azureus_2.5.0.0_linux.tar.bz2" title="http://kent.dl.sourceforge.net/sourceforge/azureus/Azureus 2.5.0.0 linux.tar.bz2" rel="nofollow">http://kent.dl.sourceforge.net/sourceforge/azureus/Azureus_2.5.0.0_linux.tar.bz2] sudo tar jxvf Azurues_2.5.0.0_linux.tar.bz2 -C /opt/ sudo gedit /usr/share/applications/azureus.desktop </nowiki></pre> * Add the following to the new file <pre><nowiki>[Desktop Entry] Name=Azureus Comment=A Bittorrent client Exec=/opt/azureus/azureus Icon=/opt/azureus/Azureus.png Terminal=false Type=Application Categories=Application;Network; </nowiki></pre> * 保存编辑好的文件 * 应用程序 -> Internet -> Azureus [[HTML(<a name="How_to_install_P2P_BitTorrent_Client_.28Bittornado.29"></a>)]] ==== 如何安装 P2P BitTorrent Client (Bittornado) ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] <pre><nowiki>sudo apt-get install bittornado sudo apt-get install bittornado-gui </nowiki></pre> * 应用程序 -> Internet -> Bittornado Client [[HTML(<a name="How_to_install_P2P_eMule_Client_.28aMule.29"></a>)]] ==== 如何安装 P2P eMule Client (aMule) ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] <pre><nowiki>sudo apt-get install amule </nowiki></pre> * Read [[DapperGuide#How_to_refresh_GNOME_panel| #如何刷新 GNOME 面板]] * 应用程序 -> Internet -> aMule [[HTML(<a name="How_to_install_P2P_Gnutella_Client_.28FrostWire.29"></a>)]] ==== 如何安装 P2P Gnutella Client (FrostWire) ==== * [[DapperGuide#General_Notes|基本备注]] * Read [[DapperGuide#How_to_install_J2SE_Runtime_Environment_.28JRE.29_with_Plug-in_for_Mozilla_Firefox| #How to install J2SE Runtime Environment (JRE) with Plug-in for Mozilla Firefox]] <pre><nowiki>wget -c http://www.users.on.net/%7Estubby/FrostWire-4.10.9-2.i586.deb sudo dpkg -i FrostWire-4.10.9-2.i586.deb </nowiki></pre> * 应用程序 -> Internet -> FrostWire [[HTML(<a name="How_to_install_Messenger_.28Skype.29"></a>)]] ==== 如何安装 Messenger (Skype) ==== * [[DapperGuide#General_Notes|基本备注]] <pre><nowiki>gksudo gedit /etc/apt/sources.list </nowiki></pre> * Add the following lines at the end of file <pre><nowiki>## Repository for Skype deb http://download.skype.com/linux/repos/debian/ stable non-free </nowiki></pre> * 保存编辑好的文件 <pre><nowiki>sudo apt-get update sudo apt-get install skype </nowiki></pre> * 应用程序 -> Internet -> Skype * For the Skype 1.3 Beta dowload the debian package [http://www.skype.com/download/skype/linux/13beta.html here] * In the terminal <pre><nowiki>sudo dpkg -i skype-beta-1.3.0.37-1_i386.deb </nowiki></pre> * 应用程序 -> Internet -> Skype [[HTML(<a name="How_to_install_WinPopup_.28LinPopUp.29"></a>)]] ==== 如何安装 WinPopup (LinPopUp) ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] * Read [[DapperGuide#How_to_install_Samba_Server_for_files.2Ffolders_sharing_service| #How to install Samba Server for files/folders sharing service]] <pre><nowiki>sudo apt-get install linpopup gksudo gedit /usr/share/applications/linpopup.desktop </nowiki></pre> * 插入下面的行到新文件 <pre><nowiki>[Desktop Entry] Name=LinPopUp Comment=LinPopUp Exec=linpopup Icon=/usr/share/pixmaps/linpopup.xpm Terminal=false Type=Application Categories=Application;Utility; </nowiki></pre> * 保存编辑好的文件 * Read [[DapperGuide#How_to_refresh_GNOME_panel| #如何刷新 GNOME 面板]] * 应用程序 -> Accessories -> LinPopUp [[HTML(<a name="How_to_install_Multimedia_Codecs"></a>)]] ==== 如何安装 Multimedia Codecs ==== Stubby: All known codecs work except for wmv * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] <pre><nowiki>sudo apt-get install gstreamer0.10-ffmpeg gstreamer0.10-gl gstreamer0.10-plugins-base \ gstreamer0.10-plugins-good gstreamer0.10-plugins-bad gstreamer0.10-plugins-bad-multiverse \ gstreamer0.10-plugins-ugly gstreamer0.10-plugins-ugly-multiverse w32codecs </nowiki></pre> * Read [[DapperGuide#How_to_restart_GNOME_without_rebooting_computer| #How to restart GNOME without rebooting computer]] [[HTML(<a name="How_to_install_DVD_playback_capability"></a>)]] ==== 如何安装 DVD playback capability ==== ironss: gstreamer dvd plugin is available as part of plugins-bad (or ugly?) and does not work reliably. However, Totem works with the xine backend to play back DVDs. This will keep you going until gstreamer gets dvd playback. Note that you do not have to install xine-ui or mplayer as suggested in * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] <pre><nowiki>sudo apt-get install libdvdread3 sudo /usr/share/doc/libdvdread3/examples/install-css.sh sudo apt-get install totem-xine </nowiki></pre> Stubby: gstreamer dvd plugin not ported to dapper yet. following instructions will not work properly * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] <pre><nowiki>sudo apt-get install libdvdcss2 </nowiki></pre> [[HTML(<a name="How_to_install_Multimedia_Player_.28xine-ui.29"></a>)]] ==== 如何安装 Multimedia Player (xine-ui) ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] * Read [[DapperGuide#How_to_install_Multimedia_Codecs| #How to install Multimedia Codecs]] * Read [[DapperGuide#How_to_install_DVD_playback_capability| #How to install DVD playback capability]] <pre><nowiki>sudo apt-get install xine-ui libxine-extracodecs </nowiki></pre> * Associate xine-ui to play multimedia files <pre><nowiki>gconftool-2 --type string --set /desktop/gnome/volume_manager/autoplay_dvd_command "xine dvd://" sudo rm -f /usr/share/applnk/Multimedia/xine.desktop sudo ln -fs /usr/share/xine/desktop/xine.desktop /usr/share/applications/ sudo cp /usr/share/applications/defaults.list /usr/share/applications/defaults.list_backup sudo sed -e 's/totem.desktop/xine.desktop/g' /usr/share/applications/defaults.list_backup > /tmp/defaults.list sudo mv /tmp/defaults.list /usr/share/applications/defaults.list </nowiki></pre> * Read [[DapperGuide#How_to_refresh_GNOME_panel| #如何刷新 GNOME 面板]] * Read [[DapperGuide#How_to_refresh_GNOME_desktop| #How to refresh GNOME desktop]] * 应用程序 -> 影音 -> xine [[HTML(<a name="How_to_install_Multimedia_Player_.28VLC.29_with_plug-in_for_Mozilla_Firefox"></a>)]] ==== 如何安装 Multimedia Player (VLC) with plug-in for Mozilla Firefox ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] <pre><nowiki>sudo apt-get install vlc vlc-plugin-* mozilla-plugin-vlc </nowiki></pre> * Inorder to stream video via vlc, you also need to install the following packages. <pre><nowiki>apt-get install avahi-daemon apt-get install avahi-utils </nowiki></pre> 应用程序 -> 影音 -> VLC Media Player [[HTML(<a name="How_to_install_Multimedia_Player_.28Mplayer.29_with_plug-in_for_Mozilla_Firefox"></a>)]] === 如何安装 Multimedia Player (Mplayer) with plug-in for Mozilla Firefox==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] <pre><nowiki>sudo apt-get install mozilla-mplayer </nowiki></pre> 应用程序 -> 影音 -> MPlayer Movie Player [[HTML(<a name="How_to_install_Multimedia_Player_.28Totem.29_with_plug-in_for_Mozilla_Firefox"></a>)]] ==== 如何安装 Multimedia Player (Totem) with plug-in for Mozilla Firefox ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] * Read [[DapperGuide#How_to_install_Multimedia_Codecs| #How to install Multimedia Codecs]] * Read [[DapperGuide#How_to_install_DVD_playback_capability| #How to install DVD playback capability]] <pre><nowiki>sudo apt-get install totem-gstreamer-firefox-plugin </nowiki></pre> * 重启 Mozilla Firefox [[HTML(<a name="How_to_install_Multimedia_Player_.28XMMS.29"></a>)]] ==== 如何安装 Multimedia Player (XMMS) ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] * Read [[DapperGuide#How_to_install_Multimedia_Codecs| #How to install Multimedia Codecs]] <pre><nowiki>sudo apt-get install xmms sudo apt-get install xmms-skins wget -c [http://easylinux.info/uploads/xmms-wma_1.0.4-2_i386.deb sudo dpkg -i xmms-wma_1.0.4-2_i386.deb </nowiki></pre> * Associate XMMS to play MP3/M3U/WAV files <pre><nowiki>sudo cp /usr/share/applications/defaults.list /usr/share/applications/defaults.list_backup sudo cp /usr/share/applications/defaults.list /tmp/defaults.list_tmp sudo sed -e 's/audio\/mpeg=.*/audio\/mpeg=XMMS.desktop/g' /tmp/defaults.list_tmp > /tmp/defaults.mp3 sudo sed -e 's/audio\/x-mpegurl=.*/audio\/x-mpegurl=XMMS.desktop/g' /tmp/defaults.mp3 > /tmp/defaults.m3u sudo sed -e 's/audio\/x-wav=.*/audio\/x-wav=XMMS.desktop/g' /tmp/defaults.m3u > /tmp/defaults.list sudo mv /tmp/defaults.list /usr/share/applications/defaults.list sudo rm -f /tmp/defaults.* </nowiki></pre> * Read [[DapperGuide#How_to_refresh_GNOME_panel| #如何刷新 GNOME 面板]] * Read [[DapperGuide#How_to_refresh_GNOME_desktop| #How to refresh GNOME desktop]] * 应用程序 -> 影音 -> XMMS [[HTML(<a name="How_to_install_Multimedia_Player_.28amaroK.29"></a>)]] ==== 如何安装 Multimedia Player (amaroK) ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] * Read [[DapperGuide#How_to_install_Multimedia_Codecs| #How to install Multimedia Codecs]] <pre><nowiki>sudo apt-get install amarok </nowiki></pre> * 应用程序 -> 影音 -> amaroK [[HTML(<a name="How_to_install_Multimedia_Player_.28RealPlayer_10.29"></a>)]] ==== 如何安装 Multimedia Player (RealPlayer 10) ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] <pre><nowiki>sudo apt-get install realplay </nowiki></pre> Note: 'realplay' installs RealPlayer 10 from PLF repository, which you should be enabled if you followed this guide. 'realplayer' installs RealPlayer 8 from multiverse. * 应用程序 -> 影音 -> RealPlayer 10 * It will also install all the necessary plugins automagically for it to view embedded real videos in Firefox * To avoid issues of flickering or screen going blank when switching windows, goto * RealPlayer 10 -> Tools -> Preferences -> Hardware -> Uncheck XVideo [[HTML(<a name="How_to_install_Stream_Directory_Browser_.28streamtuner.29"></a>)]] ==== 如何安装 Stream Directory Browser (streamtuner) ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] <pre><nowiki>sudo apt-get install streamtuner sudo apt-get install streamripper </nowiki></pre> * Read [[DapperGuide#How_to_refresh_GNOME_panel| #如何刷新 GNOME 面板]] * 应用程序 -> 影音 -> streamtuner [[HTML(<a name="How_to_install_Music_Organizer_.28Cowbell.29"></a>)]] ==== 如何安装 Music Organizer (Cowbell) ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] <pre><nowiki>sudo apt-get install cowbell </nowiki></pre> * 应用程序 -> 影音 -> Cowbell Music Organizer [[HTML(<a name="How_to_install_ID3_Tag_Editor_.28EasyTAG.29"></a>)]] ==== 如何安装 ID3 Tag Editor (EasyTAG) ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] <pre><nowiki>sudo apt-get install easytag </nowiki></pre> * Read [[DapperGuide#How_to_refresh_GNOME_panel| #如何刷新 GNOME 面板]] * 应用程序 -> 影音 -> EasyTAG [[HTML(<a name="How_to_install_Video_Editor_.28Kino.29"></a>)]] ==== 如何安装 Video Editor (Kino) ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] * Read [[DapperGuide#How_to_install_Multimedia_Codecs| #How to install Multimedia Codecs]] <pre><nowiki>sudo apt-get install kino sudo apt-get install kinoplus sudo apt-get install kino-timfx sudo apt-get install kino-dvtitler </nowiki></pre> * Read [[DapperGuide#How_to_refresh_GNOME_panel| #如何刷新 GNOME 面板]] * 应用程序 -> 影音 -> Kino Video Editor [[HTML(<a name="How_to_install_Audio_Editor_.28Audacity.29"></a>)]] ==== 如何安装 Audio Editor (Audacity) ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] * Read [[DapperGuide#How_to_install_Multimedia_Codecs| #How to install Multimedia Codecs]] <pre><nowiki>sudo apt-get install audacity </nowiki></pre> * Read [[DapperGuide#How_to_refresh_GNOME_panel| #如何刷新 GNOME 面板]] * 应用程序 -> 影音 -> Audacity [[HTML(<a name="How_to_install_Music_Manager_and_Player_.28Banshee.29"></a>)]] ==== 如何安装 Music Manager and Player (Banshee) ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] * Read [[DapperGuide#How_to_install_Multimedia_Codecs| #How to install Multimedia Codecs]] <pre><nowiki>sudo apt-get install banshee </nowiki></pre> [[HTML(<a name="How_to_install_DVD_Ripper_.28dvd::rip.29"></a>)]] ==== 如何安装 DVD Ripper (dvd::rip) ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] * Read [[DapperGuide#How_to_install_Multimedia_Codecs| #How to install Multimedia Codecs]] * Read [[DapperGuide#How_to_install_DVD_playback_capability| #How to install DVD playback capability]] * Read [[DapperGuide#How_to_install_Multimedia_Player_.28Totem.29_with_Plug-in_for_Mozilla_Firefox| #How to install Multimedia Player (Totem) with Plug-in for Mozilla Firefox]] * Read [[DapperGuide#How_to_install_RAR_Archiver_.28rar.29| #How to install RAR Archiver (rar)]] <pre><nowiki>sudo apt-get install dvdrip vcdimager cdrdao subtitleripper sudo ln -fs /usr/bin/rar /usr/bin/rar-2.80 gksudo gedit /usr/share/applications/dvdrip.desktop </nowiki></pre> * 插入下面的行到新文件 <pre><nowiki>[Desktop Entry] Name=dvd::rip Comment=dvd::rip Exec=dvdrip Icon=/usr/share/perl5/Video/DVDRip/icon.xpm Terminal=false Type=Application Categories=Application;AudioVideo; </nowiki></pre> * 保存编辑好的文件 * Read [[DapperGuide#How_to_refresh_GNOME_panel| #如何刷新 GNOME 面板]] * 应用程序 -> 影音 -> dvd::rip [[HTML(<a name="How_to_install_DVD_Ripper_.28AcidRip.29"></a>)]] ==== 如何安装 DVD Ripper (AcidRip) ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] * Read [[DapperGuide#How_to_install_Multimedia_Player_.28Mplayer.29_with_plug-in_for_Mozilla_Firefox| #How to install Multimedia Player (Mplayer) with plug-in for Mozilla Firefox]] <pre><nowiki>sudo apt-get install acidrip </nowiki></pre> * Read [[DapperGuide#How_to_refresh_GNOME_panel| #如何刷新 GNOME 面板]] '''Note:''' AcidRip will not recognize dvd if dma is turned on. If so undo the process [[DapperGuide#How_to_speed_up_CD.2FDVD-ROM| #How to speed up CD/DVD-ROM]]. [[HTML(<a name="How_to_install_CD_Ripper_.28Goobox.29"></a>)]] ==== 如何安装 CD Ripper (Goobox) ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] * Read [[DapperGuide#How_to_install_Multimedia_Codecs| #How to install Multimedia Codecs]] <pre><nowiki>sudo apt-get install goobox sudo rm -f /usr/share/applications/goobox.desktop gksudo gedit /usr/share/applications/goobox.desktop </nowiki></pre> * 插入下面的行到新文件 <pre><nowiki>[Desktop Entry] Name=CD Player & Ripper Comment=Play and extract CDs Exec=goobox Icon=goobox.png Terminal=false Type=Application Categories=Application;AudioVideo; </nowiki></pre> * 保存编辑好的文件 * Read [[DapperGuide#How_to_refresh_GNOME_panel| #如何刷新 GNOME 面板]] * 应用程序 -> 影音 -> CD Player & Ripper [[HTML(<a name="How_to_install_Image_Viewer_.28digiKam.29"></a>)]] ==== 如何安装 Image Viewer (digiKam) ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] <pre><nowiki>sudo apt-get install digikam digikamimageplugins kipi-plugins </nowiki></pre> * 应用程序 -> 图像 -> digikam [[HTML(<a name="How_to_install_Picasa_image_organizer"></a>)]] ==== 如何安装 Picasa image organizer ==== * [[DapperGuide#General_Notes|基本备注]] <pre><nowiki>gksudo gedit /etc/apt/sources.list </nowiki></pre> * Add the following lines at the end of file <pre><nowiki># Google Picasa for Linux repository deb http://dl.google.com/linux/deb/ stable non-free </nowiki></pre> * 保存编辑好的文件 <pre><nowiki>sudo apt-get update sudo apt-get install picasa </nowiki></pre> * 应用程序 -> 图像 -> Picasa [[HTML(<a name="How_to_install_Vector_Graphics_Editor_.28Inkscape.29"></a>)]] ==== 如何安装 Vector Graphics Editor (Inkscape) ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] <pre><nowiki>sudo apt-get install inkscape </nowiki></pre> Second installation [http://www.autopackage.org method]: <pre><nowiki>1. Download the [http://prdownloads.sourceforge.net/inkscape/inkscape-0.44.x86.package?download official Inkscape Linux installer]. 2. Choose a mirror and save it to your Desktop. 3. Right-click it, enable "Properties --> Permissions --> Owner:Execute" and close the dialogue box. (One-time procedure) 4. Double-click it and follow the instructions. 5. Install the support code system-wide, if you have the root password. (One-time procedure) </nowiki></pre> NOTE: You can and should install the program as a User, rather than Root. This is easily accomplished with the second method. [[HTML(<a name="How_to_install_Opera_web_browser"></a>)]] ==== 如何安装 Opera web browser ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] <pre><nowiki>sudo apt-get install opera </nowiki></pre> * 应用程序 -> Internet -> Opera * To get java working go to Tools->Preferences->Advanced->Content-> Check "Enable Java". Click the "Enable Java..." button enter "/usr/lib/jvm/java-1.5.0-sun/jre/lib/i386" (for sun java) in the new dialog and then click the "Validate Java Path" button. [[HTML(<a name="How_to_install_Email_Client_.28Mozilla_Thunderbird.29"></a>)]] ==== 如何安装 Email Client (Mozilla Thunderbird) ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] <pre><nowiki>sudo apt-get install mozilla-thunderbird </nowiki></pre> * Read [[DapperGuide#How_to_refresh_GNOME_panel| #如何刷新 GNOME 面板]] * 应用程序 -> Internet -> Thunderbird Mail Client [[HTML(<a name="How_to_install_Newsreader_.28Pan.29"></a>)]] ==== 如何安装 Newsreader (Pan) ==== * [[DapperGuide#General_Notes|基本备注]] <pre><nowiki>sudo apt-get install pan </nowiki></pre> * 应用程序 -> Internet -> Pan Newsreader [[HTML(<a name="How_to_install_RSS.2FRDF.2FAtom_Newsreader_.28RSSOwl.29"></a>)]] ==== 如何安装 RSS/RDF/Atom Newsreader (RSSOwl) ==== * [[DapperGuide#General_Notes|基本备注]] * Read [[DapperGuide#How_to_install_J2SE_Runtime_Environment_.28JRE.29_with_Plug-in_for_Mozilla_Firefox| #How to install J2SE Runtime Environment (JRE) with Plug-in for Mozilla Firefox]] <pre><nowiki>wget -c [http://easylinux.info/uploads/rssowl_linux_1_1_3_bin.tar.gz sudo tar zxvf rssowl_linux_1_1_3_bin.tar.gz -C /opt/ sudo chown -R root:root /opt/rssowl_linux_1_1_3_bin/ gksudo gedit /usr/bin/runRSSOwl.sh </nowiki></pre> * 插入下面的行到新文件 <pre><nowiki>export MOZILLA_FIVE_HOME=/usr/lib/mozilla-firefox export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${MOZILLA_FIVE_HOME}:${LD_LIBRARY_PATH} cd /opt/rssowl_linux_1_1_3_bin/ ./run.sh </nowiki></pre> * 保存编辑好的文件 <pre><nowiki>sudo chmod +x /usr/bin/runRSSOwl.sh gksudo gedit /usr/share/applications/RSSOwl.desktop </nowiki></pre> * 插入下面的行到新文件 <pre><nowiki>[Desktop Entry] Name=RSSOwl Comment=RSSOwl Exec=runRSSOwl.sh Icon=/opt/rssowl_linux_1_1_3_bin/rssowl.xpm Terminal=false Type=Application Categories=Application;Network; </nowiki></pre> * 保存编辑好的文件 * 应用程序 -> Internet -> RSSOwl [[HTML(<a name="How_to_install_Web_Authoring_System_.28Nvu.29"></a>)]] ==== 如何安装 Web Authoring System (Nvu) ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] <pre><nowiki>sudo apt-get install nvu sudo rm -f /usr/share/applications/nvu.desktop gksudo gedit /usr/share/applications/nvu.desktop </nowiki></pre> * 插入下面的行到新文件 <pre><nowiki>[Desktop Entry] Name=Nvu Comment=Web Development Editor Exec=nvu Icon=nvu.xpm Terminal=false Type=Application Categories=Application;Development; </nowiki></pre> * 保存编辑好的文件 * Read [[DapperGuide#How_to_refresh_GNOME_panel| #如何刷新 GNOME 面板]] * 应用程序 -> Internet -> Nvu [[HTML(<a name="How_to_install_Web_Development_Environment_.28quanta_plus.29"></a>)]] ==== 如何安装 Web Development Environment (quanta plus) ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] <pre><nowiki>sudo apt-get install quanta </nowiki></pre> * 应用程序 -> 编程 -> Quanta Plus [[HTML(<a name="How_to_install_Project_Management_Application_.28Planner.29"></a>)]] ==== 如何安装 Project Management Application (Planner) ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] <pre><nowiki>sudo apt-get install planner </nowiki></pre> * Read [[DapperGuide#How_to_refresh_GNOME_panel| #如何刷新 GNOME 面板]] * 应用程序 -> 办公 -> Project Management [[HTML(<a name="How_to_install_Accounting_Application_.28GnuCash.29"></a>)]] ==== 如何安装 Accounting Application (GnuCash) ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] <pre><nowiki>sudo apt-get install gnucash sudo rm -fr /usr/share/gnome/apps/Applications/ gksudo gedit /usr/share/applications/GnuCash.desktop </nowiki></pre> * 插入下面的行到新文件 <pre><nowiki>[Desktop Entry] Name=GnuCash Comment=GnuCash Personal Finance Exec=gnucash Icon=/usr/share/pixmaps/gnucash/gnucash-icon.png Terminal=false Type=Application Categories=Application;Office; </nowiki></pre> * 保存编辑好的文件 * Read [[DapperGuide#How_to_refresh_GNOME_panel| #如何刷新 GNOME 面板]] * 应用程序 -> 办公 -> GnuCash [[HTML(<a name="How_to_install_Desktop_Publishing_Application_.28Scribus.29"></a>)]] ==== 如何安装 Desktop Publishing Application (Scribus) ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] <pre><nowiki>sudo apt-get install scribus </nowiki></pre> * Read [[DapperGuide#How_to_refresh_GNOME_panel| #如何刷新 GNOME 面板]] * 应用程序 -> 办公 -> Scribus [[HTML(<a name="How_to_install_Diagram_Editor_.28Dia.29"></a>)]] ==== 如何安装 Diagram Editor (Dia) ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] <pre><nowiki>sudo apt-get install dia-gnome </nowiki></pre> * Read [[DapperGuide#How_to_refresh_GNOME_panel| #如何刷新 GNOME 面板]] * 应用程序 -> 图像 -> Dia [[HTML(<a name="How_to_install_Compiled_HTML_Help_.28CHM.29_Viewer_.28xCHM.29"></a>)]] ==== 如何安装 Compiled HTML Help (CHM) Viewer (xCHM) ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] <pre><nowiki>sudo apt-get install xchm </nowiki></pre> * Read [[DapperGuide#How_to_refresh_GNOME_panel| #如何刷新 GNOME 面板]] * 应用程序 -> 图像 -> xCHM [[HTML(<a name="How_to_install_CD.2FDVD_Burning_Application_.28GnomeBaker.29"></a>)]] ==== 如何安装 CD/DVD Burning Application (GnomeBaker) ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] <pre><nowiki>sudo apt-get install gnomebaker </nowiki></pre> * Read [[DapperGuide#How_to_refresh_GNOME_panel| #如何刷新 GNOME 面板]] * 应用程序 -> 影音 -> GnomeBaker [[HTML(<a name="How_to_install_CD.2FDVD_Burning_Application_.28K3b.29"></a>)]] ==== 如何安装 CD/DVD Burning Application (K3b) ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] <pre><nowiki>sudo apt-get install k3b libk3b2-mp3 </nowiki></pre> * 应用程序 -> 影音 -> K3b [[HTML(<a name="How_to_install_Dialup_PPP_Client_.28GNOME_PPP.29"></a>)]] ==== 如何安装 Dialup PPP Client (GNOME PPP) ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] <pre><nowiki>sudo apt-get install gnome-ppp </nowiki></pre> * Read [[DapperGuide#How_to_refresh_GNOME_panel| #如何刷新 GNOME 面板]] * 应用程序 -> Internet -> GNOME PPP [[HTML(<a name="How_to_install_Broadband_ADSL.2FPPPoE_Client_.28RP-PPPoE.29"></a>)]] ==== 如何安装 Broadband ADSL/PPPoE Client (RP-PPPoE) ==== * [[DapperGuide#General_Notes|基本备注]] * Read [[DapperGuide#How_to_install_Basic_Compilers_.28build-essential.29| #How to install Basic Compilers (build-essential)]] <pre><nowiki>wget -c http://easylinux.info/uploads/rp-pppoe-3.6.tar.gz sudo tar zxvf rp-pppoe-3.6.tar.gz -C /opt/ sudo chown -R root:root /opt/rp-pppoe-3.6/ gksudo gedit /usr/share/applications/RP-PPPoE.desktop </nowiki></pre> * 插入下面的行到新文件 <pre><nowiki>[Desktop Entry] Name=RP-PPPoE Comment=RP-PPPoE Exec=gksudo /opt/rp-pppoe-3.6/go-gui Icon=pppoeconf.xpm Terminal=false Type=Application Categories=Application;Network; </nowiki></pre> * 保存编辑好的文件 * Read [[DapperGuide#How_to_refresh_GNOME_panel| #如何刷新 GNOME 面板]] * 应用程序 -> Internet -> RP-PPPoE [[HTML(<a name="How_to_install_Boot-Up_Manager_.28BUM.29"></a>)]] ==== 如何安装 Boot-Up Manager (BUM) ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] <pre><nowiki>sudo apt-get install bum </nowiki></pre> * Read [[DapperGuide#How_to_refresh_GNOME_panel| #如何刷新 GNOME 面板]] * 系统 -> 系统管理 -> Boot-Up Manager [[HTML(<a name="How_to_install_Partition_Editor_.28GParted.29"></a>)]] ==== 如何安装 Partition Editor (GParted) ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] <pre><nowiki>sudo apt-get install gparted </nowiki></pre> * Read [[DapperGuide#How_to_refresh_GNOME_panel| #如何刷新 GNOME 面板]] * 应用程序 -> 系统工具 -> GParted [[HTML(<a name="How_to_install_Firewall_.28Firestarter.29"></a>)]] ==== 如何安装 Firewall (Firestarter) ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] <pre><nowiki>sudo apt-get install firestarter </nowiki></pre> * Read [[DapperGuide#How_to_refresh_GNOME_panel| #如何刷新 GNOME 面板]] * 应用程序 -> 系统工具 -> Firestarter [[HTML(<a name="How_to_install_network_traffic_analyzer_.28Ethereal.29"></a>)]] ==== 如何安装 network traffic analyzer (Ethereal) ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] <pre><nowiki>sudo apt-get install ethereal </nowiki></pre> * 应用程序 -> Internet -> Ethereal [[HTML(<a name="How_to_install_Vulnerability_Scanner_.28Nessus.29"></a>)]] ==== 如何安装 Vulnerability Scanner (Nessus) ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] <pre><nowiki>sudo apt-get install nessus sudo apt-get install nessusd sudo nessus-adduser sudo ln -fs /etc/init.d/nessusd /etc/rc2.d/S20nessusd sudo /etc/init.d/nessusd start gksudo gedit /usr/share/applications/Nessus.desktop </nowiki></pre> * 插入下面的行到新文件 <pre><nowiki>[Desktop Entry] Name=Nessus Comment=Nessus Exec=nessus Icon=/usr/share/pixmaps/nessus.xpm Terminal=false Type=Application Categories=Application;System; </nowiki></pre> * 保存编辑好的文件 * Read [[DapperGuide#How_to_refresh_GNOME_panel| #如何刷新 GNOME 面板]] * 应用程序 -> 系统工具 -> Nessus [[HTML(<a name="How_to_install_RAR_Archiver_.28rar.29"></a>)]] ==== 如何安装 RAR Archiver (rar) ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] <pre><nowiki>sudo apt-get install rar sudo ln -fs /usr/bin/rar /usr/bin/unrar </nowiki></pre> * 应用程序 -> Accessories -> Archive Manager [[HTML(<a name="How_to_install_Extra_Fonts"></a>)]] ==== 如何安装 Extra Fonts ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] <pre><nowiki>sudo apt-get install xfonts-intl-arabic sudo apt-get install xfonts-intl-asian sudo apt-get install xfonts-intl-chinese sudo apt-get install xfonts-intl-chinese-big sudo apt-get install xfonts-intl-european sudo apt-get install xfonts-intl-japanese sudo apt-get install xfonts-intl-japanese-big sudo apt-get install xfonts-intl-phonetic sudo apt-get install gsfonts-x11 sudo apt-get install msttcorefonts sudo fc-cache -f -v </nowiki></pre> * Read [[DapperGuide#How_to_restart_GNOME_without_rebooting_computer| #How to restart GNOME without rebooting computer]] ''Note: Ubuntu Dapper comes with the DejaVu fonts (derived from Bitstream Vera) and provides adequate support for Latin, Greek and Cyrillic based languages.'' [[HTML(<a name="How_to_install_Chinese_Input_Method_.28SCIM.29"></a>)]] ==== 如何安装 Chinese Input Method (SCIM) ==== '''The following advices are outdated and it could be hard to revert to normal afterwards. Please follow instead the official Ubuntu 6.06 Dapper Drake guide [https://wiki.ubuntu.com/InputMethods/SCIM/CJK_Chinese_Japanese_Korean_Input_Method_configuration_using_SCIM_in_Ubuntu_6%2e06_Dapper_Drake HERE]''' '''Please note that scim is now installed by default in Dapper, and installing Chinese, Japanese or Korean Support is done using System>Administration>Language Support. The wiki details the method more thoroughly''' * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] * Read [[DapperGuide#How_to_install_Extra_Fonts| #How to install Extra Fonts]] <pre><nowiki>sudo apt-get install scim sudo apt-get install scim-chinese sudo apt-get install scim-config-socket sudo apt-get install scim-gtk2-immodule sudo apt-get install scim-tables-zh wget -c http://easylinux.info/uploads/fireflysung-1.3.0.tar.gz sudo tar zxvf fireflysung-1.3.0.tar.gz -C /usr/share/fonts/truetype/ sudo chown -R root:root /usr/share/fonts/truetype/fireflysung-1.3.0/ sudo fc-cache -f -v </nowiki></pre> * 系统 -> Preferences -> SCIM Input Method Setup * To activate SCIM <pre><nowiki>Press 'Ctrl + Space' </nowiki></pre> [[HTML(<a name="How_to_install_Desktop_Applets_.28gDesklets.29"></a>)]] ==== 如何安装 Desktop Applets (gDesklets) ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] <pre><nowiki>sudo apt-get install gdesklets sudo apt-get install gdesklets-data </nowiki></pre> * Read [[DapperGuide#How_to_refresh_GNOME_panel| #如何刷新 GNOME 面板]] * 应用程序 -> Accessories -> gDesklets * For more info see: [http://www.gdesklets.org/] [[HTML(<a name="How_to_install_Basic_Compilers_.28build-essential.29"></a>)]] ==== 如何安装 Basic Compilers (build-essential) ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] <pre><nowiki>sudo apt-get install build-essential </nowiki></pre> [[HTML(<a name="How_to_install_Integrated_Development_Environment_.28Anjuta.29"></a>)]] ==== 如何安装 Integrated Development Environment (Anjuta) ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] <pre><nowiki>sudo apt-get install anjuta </nowiki></pre> * 应用程序 -> 编程 -> Anjuta IDE [[HTML(<a name="How_to_install_C.23_Integrated_Development_Environment_.28MonoDevelop.29"></a>)]] ==== 如何安装 C# Integrated Development Environment (MonoDevelop) ==== * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] <pre><nowiki>sudo apt-get install mono mono-gmcs mono-gac mono-utils monodevelop </nowiki></pre> [[HTML(<a name="How_to_install_3D_modeling_tool_.28Blender_3d.29"></a>)]] ==== 如何安装 3D modeling tool (Blender 3d) ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] <pre><nowiki>sudo apt-get install blender </nowiki></pre> * 应用程序 -> 图像 -> Blender 3D modeller [[HTML(<a name="How_to_install_game_Tuxracer"></a>)]] ==== 如何安装 game Tuxracer ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] <pre><nowiki>sudo apt-get install planetpenguin-racer planetpenguin-racer-data planetpenguin-racer-extras </nowiki></pre> * 应用程序 -> Games -> planetpenguin-racer [[HTML(<a name="How_to_install_game_Frozen-Bubble"></a>)]] ==== 如何安装 game Frozen-Bubble ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] <pre><nowiki>sudo apt-get install frozen-bubble </nowiki></pre> * 应用程序 -> Games -> Frozen-Bubble [[HTML(<a name="How_to_install_game_Scorched3D"></a>)]] ==== 如何安装 game Scorched3D ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] <pre><nowiki>sudo apt-get install scorched3d gksudo gedit /usr/share/applications/scorched3d.desktop </nowiki></pre> * 插入下面的行到新文件 <pre><nowiki>[Desktop Entry] Name=Scorched 3D Comment=A 3D Remake Of Scorched Earth Exec=scorched3d Icon= Terminal=false Type=Application Categories=Application;Game;ArcadeGame; </nowiki></pre> * 保存编辑好的文件 * Read [[DapperGuide#How_to_refresh_GNOME_panel| #如何刷新 GNOME 面板]] * 应用程序 -> Games -> Scorched 3D [[HTML(<a name="How_to_install_virtual_planetarium_.28Stellarium.29"></a>)]] ==== 如何安装 virtual planetarium (Stellarium) ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] <pre><nowiki>sudo apt-get install stellarium gksudo gedit /usr/share/applications/stellarium.desktop </nowiki></pre> * 插入下面的行到新文件 <pre><nowiki>[Desktop Entry] Name=Stellarium Comment=Virtual planetarium Exec=stellarium Terminal=false Type=Application Categories=Application;Education; </nowiki></pre> * 应用程序 -> Education -> Stellarium Second installation [http://www.autopackage.org method]: (version 0.6.2) <pre><nowiki>1. Download the [http://bylands.dur.ac.uk/%7Emh/stellarium-0.6.2.x86.package Stellarium Linux installer]. 2. Save it to your Desktop. 3. Right-click it, enable "Properties --> Permissions --> Owner:Execute" and close the dialogue box. (One-time procedure) 4. Double-click it and follow the instructions. 5. Install the support code system-wide, if you have the root password. (One-time procedure) </nowiki></pre> NOTE: You can and should install the program as a User, rather than Root. This is easily accomplished with the second method. [[HTML(<a name="How_to_install_Google_Toolbar_for_Firefox"></a>)]] ==== 如何安装 Google Toolbar for Firefox ==== The current version of Google Toolbar works fine with Firefox 1.5.0.5 in Ubuntu 6.06 In Firefox, click the link below [http://www.google.com/tools/firefox/toolbar/] then click on the big download button. [[HTML(<a name="How_to_install_Google_Earth"></a>)]] ==== 如何安装 Google Earth ==== * [[DapperGuide#General_Notes|基本备注]] <pre><nowiki>wget -c http://dl.google.com/earth/GE4/GoogleEarthLinux.bin sudo sh GoogleEarthLinux.bin </nowiki></pre> * Leave ''/usr/local/google-earth'' as the installation path * After installation click '''Exit'''. If you instead chose to run the application, read the Note below. <pre><nowiki>sudo cp /usr/local/google-earth/googleearth.desktop /usr/share/applications/ </nowiki></pre> * 应用程序 -> Internet -> Google Earth * ''Note:'' If you run Google Earth for the first time from the installer, it will require root privileges to run the next time. To fix that: <pre><nowiki>sudo chmod 777 -R ~/.googleearth </nowiki></pre> [[HTML(<a name="How_to_install_KDE_Edutainment_applications"></a>)]] ==== 如何安装 KDE Edutainment applications ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] <pre><nowiki>sudo apt-get install kdeedu </nowiki></pre> * 应用程序 -> Education -> ... [[HTML(<a name="How_to_install_Internet_Explorer_.2B_Flash_9"></a>)]] ==== 如何安装 Internet Explorer + Flash 9 ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] * Read [[DapperGuide#How_to_install_Windows_Applications_in_Linux_.28Wine.29| #How to install Windows_Applications in Linux (Wine)]] This will install a wine'd version of Internet Explorer 6 with Flash 9, as well as IE 5.5/5.01 if you really want them. * ''Note:'' Flash 9 will '''NOT''' be available in browsers other than IE. * Open a terminal and run this: <pre><nowiki>wget http://www.tatanka.com.br/ies4linux/downloads/ies4linux-2.0.tar.gz -O - | tar xvzf - </nowiki></pre> * Or, if that doesn't work, use this command: <pre><nowiki>wget http://modzer0.cs.uaf.edu/~hardwarehank/files/ies4linux-2.0.tar.gz -O - | tar xvzf - </nowiki></pre> * Then, just run it: <pre><nowiki>cd ies4linux-2.0 sh ies4linux </nowiki></pre> You don't have to run it as root (no sudo). If you do, it will make global symlinks, which is fine if you want that. Otherwise, it will use ~/bin. Read the README: <pre><nowiki>less README </nowiki></pre> [[HTML(<a name="How_to_install_Windows_Applications_in_Linux_.28Wine.29"></a>)]] ==== 如何安装 Windows Applications in Linux (Wine) ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] Wine Is Not an Emulator. Wine is an Open Source implementation of the Windows API on top of X and Unix. Think of Wine as a compatibility layer for running Windows programs. Wine does not require Microsoft Windows, as it is a completely free alternative implementation of the Windows API consisting of 100% non-Microsoft code, however Wine can optionally use native Windows DLLs if they are available. In other words, Wine will let you run Windows applications in Linux. * First, add repository for Wine: <pre><nowiki>gksudo gedit /etc/apt/sources.list </nowiki></pre> * Add the following lines at the end of this file <pre><nowiki># Repository for wine deb http://wine.budgetdedicated.com/apt dapper main deb-src http://wine.budgetdedicated.com/apt dapper main </nowiki></pre> * 保存编辑好的文件 <pre><nowiki>sudo apt-get update sudo apt-get install wine </nowiki></pre> * For more info see [http://www.winehq.com] [[HTML(<a name="How_to_install_a_Drop_Down_Terminal_like_in_First_Person_Shooters_.28tilda.29"></a>)]] ==== 如何安装 a Drop Down Terminal like in First Person Shooters (tilda) ==== * [[DapperGuide#General_Notes|基本备注]] Do you want a console like in a first person shooter? Tilda should take care of you. <pre><nowiki>sudo apt-get install tilda </nowiki></pre> * The default keybinding is F1. To change the default keybinding, either enter tilda -C at the terminal, or right click on the tilda terminal then click Preferences. While in preferences, you can change other things such as transparency, font, size, and window size. [[HTML(<a name="Other_Desktop_Environments"></a>)]] === Other Desktop Environments === [[HTML(<a name="How_to_install_KDE"></a>)]] ==== 如何安装 KDE ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] * You may also look at some [http://www.kde.org/screenshots/ KDE Screenshots] <pre><nowiki>sudo apt-get install kubuntu-desktop </nowiki></pre> ''Note: This installation will require ~400MB of disk space'' * 系统 -> Log Out -> Log Out * To log in to KDE click on ''Sessions'' and choose KDE [[HTML(<a name="How_to_install_XFCE"></a>)]] ==== 如何安装 XFCE ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] * You may also look at some [http://www.xfce.org/index.php?page=screenshots&lang=en XFCE Screenshots] <pre><nowiki>sudo apt-get install xubuntu-desktop </nowiki></pre> * 系统 -> Log Out -> Log Out * To log in to XFCE click on ''Sessions'' and choose XFCE [[HTML(<a name="How_to_install_XFCE_4.4_preview_versions_.284.3.90.1.29"></a>)]] ==== 如何安装 XFCE 4.4 preview versions (4.3.90.1) ==== * to install Xfce 4.4 beta 1 (4.3.90.1) on a fresh install of Dapper: * download the Xfce 4.4 preview versions installer (see [http://www.xfce.org]) <pre><nowiki>sudo apt-get install build-essential gcc pkg-config libglib2.0-0 \ libglib2.0-dev libgtk2.0-0 libgtk2.0-dev libxml++2.6c2a libxml++2.6-dev \ libvte-dev libvte4 a2ps libxpm-dev libxpm4 alsa-source alsa alsa-base \ alsa-oss alsa-utils libxml-parser-perl libpng12-0 libpng12-dev libdbh1.0-dev </nowiki></pre> <pre><nowiki>chmod +x xfce4-4.3.90.1-installer.bin sudo ./xfce4-4.3.90.1-installer.bin </nowiki></pre> * on installer, use default setting, except: ''Extensive Optimizations'', can be truned on for 386 ''Use ALSA for the Xfce Mixer'', can be turned off (see [http://forums.debian.net/viewtopic.php?t=4697&]) * finally to enable Xfce, you may need to enable it on the desktop manager (mark ''allow Xfce manage desktop'') [[HTML(<a name="How_to_install_FluxBox"></a>)]] ==== 如何安装 FluxBox ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] Here's some [http://fluxbox.org/screenshots.php Screenshots]. Fluxbox is a popular minimalist Window Manager. <pre><nowiki>sudo apt-get install fluxbox </nowiki></pre> [[HTML(<a name="Make_it_start_when_you_login_thru_GDM"></a>)]] ===== Make it start when you login thru GDM ===== <pre><nowiki>echo "exec startfluxbox" > ~/.xinitrc </nowiki></pre> [[HTML(<a name="Make_it_make_the_pretty_sound_on_login"></a>)]] ===== Make it make the pretty sound on login ===== <pre><nowiki>sudo apt-get install sox gedit ~/.fluxbox/startup </nowiki></pre> * 查找如下行: <pre><nowiki>exec /usr/local/bin/fluxbox </nowiki></pre> * Put this above it somewhere: <pre><nowiki>play /usr/share/sounds/login.wav > /dev/null 2>&1 & </nowiki></pre> * Listen happily. [[HTML(<a name="Eye_Candy"></a>)]] === Eye Candy === [[HTML(<a name="How_to_install_Xgl.2FCompiz_.28Nvidia.29"></a>)]] ==== 如何安装 Xgl/Compiz (Nvidia) ==== * For complete info on how to set up XGL on different cards and some tweaks see: [http://ubuntuforums.org/showthread.php?t=148351] * [[DapperGuide#General_Notes|基本备注]] * Read [[DapperGuide#How_to_install_Graphics_Driver_.28NVIDIA.29| #How to install Graphics Driver (NVIDIA)]] <pre><nowiki>sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup gksudo gedit /etc/X11/xorg.conf </nowiki></pre> * 查找下面的段 <pre><nowiki>Section "Module" Load "i2c" Load "bitmap" ... Load "type1" Load "vbe" EndSection </nowiki></pre> * Comment out dri and GLcore (if present) <pre><nowiki># Load "dri" # Load "GLcore" </nowiki></pre> * Make sure the glx module is loaded <pre><nowiki> Load "glx" </nowiki></pre> * 查找下面的段 (your values may vary) <pre><nowiki>Section "Device" Identifier "NVIDIA Corporation NV34M [GeForce FX Go5200]" Driver "nv" BusID "PCI:1:0:0" EndSection </nowiki></pre> * 使用下面的行替换, leaving the Identifier and BusID as it is <pre><nowiki>Section "Device" ... Driver "nvidia" ... Option "RenderAccel" "true" Option "AllowGLXWithComposite" "true" EndSection </nowiki></pre> * 查找下面的段 <pre><nowiki>Section "Screen" Identifier "Default Screen" Device "NVIDIA Corporation NV34M [GeForce FX Go5200]" Monitor "Generic Monitor" DefaultDepth 16 </nowiki></pre> * Make sure DefaultDepth is set to 24, if it isn't already <pre><nowiki> DefaultDepth 24 </nowiki></pre> * 保存编辑好的文件 * Install Xgl/Compiz <pre><nowiki>sudo apt-get install compiz xserver-xgl libgl1-mesa xserver-xorg libglitz-glx1 compiz-gnome sudo cp /etc/gdm/gdm.conf-custom /etc/gdm/gdm.conf-custom-backup gksudo gedit /etc/gdm/gdm.conf-custom </nowiki></pre> * Replace everything with the following lines <pre><nowiki># GDM Configuration Customization file. # # This file is the appropriate place for specifying your customizations to the # GDM configuration. If you run gdmsetup, it will automatically edit this # file for you and will cause the daemon and any running GDM GUI programs to # automatically update with the new configuration. Not all configuration # options are supported by gdmsetup, so to modify some values it may be # necessary to modify this file directly by hand. # # To hand-edit this file, simply add or modify the key=value combination in # the appropriate section in the template below. Refer to the comments in the # gdm.conf file for information about each option. Also refer to the reference # documentation. # # If you hand edit a GDM configuration file, you should run the following # command to get the GDM daemon to notice the change. Any running GDM GUI # programs will also be notified to update with the new configuration. # # gdmflexiserver --command="UPDATE_CONFIG <configuration key>" # # For example, the "Enable" key in the "[debug]" section would be specified by # "debug/Enable". # # You can also run gdm-restart or gdm-safe-restart to cause GDM to restart and # re-read the new configuration settings. You can also restart GDM by sending # a HUP or USR1 signal to the daemon. HUP behaves like gdm-restart and causes # any user session started by GDM to exit immediately while USR1 behaves like # gdm-safe-restart and will wait until all users log out before restarting GDM. # # For full reference documentation see the gnome help browser under # GNOME|System category. You can also find the docs in HTML form on # [http://www.gnome.org/projects/gdm/] # # NOTE: Lines that begin with "#" are considered comments. # # Have fun! [daemon] [security] [xdmcp] [gui] [greeter] [chooser] [debug] [servers]# Override display 1 to use Xgl 0=Xgl [server-Xgl] name=Xgl server command=/usr/bin/Xgl :0 -fullscreen -ac -accel glx:pbuffer -accel xv:fbo flexible=true </nowiki></pre> * Create a script that runs Xgl/Compiz on startup <pre><nowiki>gksudo gedit /usr/bin/thefuture </nowiki></pre> * 插入下面的行到新文件. Replace .us with appropriate keyboard binding for your region. Eg .gb for United Kingdom. For a full list of keyboard bindings, type ''ls /usr/share/xmodmap'' in a terminal. If unsure, leave as .us (United States) <pre><nowiki>#!/bin/bash gnome-window-decorator & compiz --replace gconf decoration wobbly fade minimize cube rotate zoom scale move resize place switcher & xmodmap /usr/share/xmodmap/xmodmap.us </nowiki></pre> * Save the file <pre><nowiki>sudo chmod 755 /usr/bin/thefuture </nowiki></pre> * To run compiz for this session <pre><nowiki>thefuture </nowiki></pre> * To have compiz load on startup ***** 系统 -> Preferences -> Sessions ***** Startup Programs -> Add <pre><nowiki>/usr/bin/thefuture </nowiki></pre> * ***** Click Ok, then Close ***** Read [[DapperGuide#How_to_restart_GNOME_without_rebooting_computer| #How to restart GNOME without rebooting computer]] * Troubleshooting ***** If Xgl/Compiz doesn't seem to work, or you get errors, simply restart your machine after adding "thefuture" to Startup programs ***** If moving windows slows down the system, run gconf-editor from the terminal. Find apps/compiz/general/screen0/options. Disable detect_refresh_rate and set refresh rate to 60. Everything should work fine now... ***** If you are using a non default keyboard layout (other language), you might have to change it back to what you need if the keyboard acts funny at System/Settings/Keyboard. ***** You can also set the Super-key to the windows button here. ***** If you don't want "bottom expanded panel", type "killall gnome-panel" in terminal. * Tips ***** Switch windows = Alt + Tab ***** Arrange and View All Windows = F12 turns on or off; clicking a window will zoom it to the front ***** Switch desktops on cube = Ctrl + Alt + Left/Right Arrow ***** Switch desktops on cube - with active window following = Ctrl + Shift + Alt + Left/Right Arrow ***** Rotate cube manually = Ctrl + Alt + left-click ***** Make window translucent/opaque = currently only possible with the "transset" utility ***** Zoom-in once = Super-key right-click ***** Zoom-in manually = Super-key + wheel mouse up ***** Zoom-out manually = Super-key + wheel mouse down ***** Move window = Alt + left-click ***** Snap Move window (will stick to borders) = Ctrl + Alt +left-click ***** Resize window = Alt + right-click [[HTML(<a name="How_to_install_Xgl.2FCompiz_.28ATI.29"></a>)]] ==== 如何安装 Xgl/Compiz (ATI) ==== * [[DapperGuide#General_Notes|基本备注]] * Read [[DapperGuide#How_to_install_Graphics_Driver_.28ATI.29| #How to install Graphics Driver (ATI)]] * See [http://wiki.cchtml.com/index.php/Xgl-Compiz-Dapper] [[HTML(<a name="How_to_install_alternate_boot_splash_screen"></a>)]] ==== 如何安装 alternate boot splash screen ==== * [[DapperGuide#General_Notes|基本备注]] * This installs a minimalistic splash screen that appears when the computer is booting up and shutting down. It is devoid of any text messages. <pre><nowiki>wget -c http://www.users.on.net/%7Estubby/usplash-minimalistic_0.1.deb sudo dpkg -i usplash-minimalistic_0.1.deb sudo update-alternatives --config usplash-artwork.so </nowiki></pre> * Select the minimalistic alternative (/usr/local/lib/usplash/minimalastic.so) by entering the corresponding number. If you ever want to revert back to the original splash, select the default (/usr/lib/usplash/usplash-default.so) * 重启 your computer to see the effects * See the official [https://help.ubuntu.com/community/USplashCustomizationHowto USplash Customization HOWTO] for more customization. [[HTML(<a name="Commercial_Applications"></a>)]] === Commercial Applications === [[HTML(<a name="How_to_install_Windows_9X.2FME.2F2000.2FXP_.28Win4Lin.29"></a>)]] ==== 如何安装 Windows 9X/ME/2000/XP (Win4Lin) ==== * [http://www.win4lin.com] [[HTML(<a name="How_to_install_Windows_Applications_.28CrossOver_Office.29"></a>)]] ==== 如何安装 Windows Applications (CrossOver Office) ==== * [http://www.codeweavers.com] [[HTML(<a name="How_to_install_Windows_Games_.28Cedega.29"></a>)]] ==== 如何安装 Windows Games (Cedega) ==== * [http://www.transgaming.com] [[HTML(<a name="User_Administration"></a>)]] === User Administration === [[HTML(<a name="How_to_set.2Fchange.2Fenable_root_user_password"></a>)]] ==== 如何 set/change/enable root user password ==== * [[DapperGuide#General_Notes|基本备注]] <pre><nowiki>sudo passwd root </nowiki></pre> [[HTML(<a name="How_to_disable_root_user_account"></a>)]] ==== 如何 disable root user account ==== * [[DapperGuide#General_Notes|基本备注]] <pre><nowiki>sudo passwd -l root </nowiki></pre> [[HTML(<a name="How_to_allow_root_user_to_login_into_GNOME"></a>)]] ==== 如何 allow root user to login into GNOME ==== * [[DapperGuide#General_Notes|基本备注]] * Read [[DapperGuide#How_to_set.2Fchange.2Fenable_root_user_password| #How to set/change/enable root user password]] * 系统 -> 系统管理 -> Login Screen Setup * Login Screen Setup <pre><nowiki>Security Tab -> Security -> Allow root to login with GDM ('''Checked''') </nowiki></pre> [[HTML(<a name="How_to_switch_to_root_user_in_Console_mode"></a>)]] ==== 如何 switch to root user in Console mode ==== * [[DapperGuide#General_Notes|基本备注]] <pre><nowiki>sudo -s -H Password: <specify user password> </nowiki></pre> [[HTML(<a name="How_to_add.2Fedit.2Fdelete_system_users"></a>)]] ==== 如何 add/edit/delete system users ==== * [[DapperGuide#General_Notes|基本备注]] * 系统 -> 系统管理 -> Users and Groups * Users and Groups <pre><nowiki>Users Tab -> Add User.../Properties/Delete </nowiki></pre> '''or''' <pre><nowiki>sudo useradd jim sudo userdel jim </nowiki></pre> * For more info read <pre><nowiki>man usermod </nowiki></pre> [[HTML(<a name="How_to_add.2Fedit.2Fdelete_system_groups"></a>)]] ==== 如何 add/edit/delete system groups ==== * [[DapperGuide#General_Notes|基本备注]] * 系统 -> 系统管理 -> Users and Groups * Users and Groups <pre><nowiki>Groups Tab -> Add Group.../Properties/Delete </nowiki></pre> [[HTML(<a name="How_to_automatic_login_into_GNOME_.28not_secure.29"></a>)]] ==== 如何 automatic login into GNOME (not secure) ==== * [[DapperGuide#General_Notes|基本备注]] * 系统 -> 系统管理 -> Login Window <pre><nowiki>Security Tab -> Enable Automatic Login ('''Checked''') Now choose a user from the drop-down menu. </nowiki></pre> [[HTML(<a name="How_to_allow_more_sudoers"></a>)]] ==== 如何 allow more sudoers ==== * [[DapperGuide#General_Notes|基本备注]] <pre><nowiki>EDITOR=gedit sudo visudo </nowiki></pre> * Append the following line at the end of file <pre><nowiki>system_username ALL=(ALL) ALL </nowiki></pre> * 保存编辑好的文件 '''OR''' since everyone in the '''admin''' group can use ''sudo'': <pre><nowiki>sudo adduser a_username admin </nowiki></pre> This appends the admin group to the user's supplementary group list. They will now have sudo access. [[HTML(<a name="How_to_use_.22sudo.22_without_prompt_for_password_.28not_secure.29"></a>)]] ==== 如何 use "sudo" without prompt for password (not secure) ==== * [[DapperGuide#General_Notes|基本备注]] <pre><nowiki>EDITOR=gedit sudo visudo </nowiki></pre> * 查找如下行 <pre><nowiki>... system_username ALL=(ALL) ALL ... </nowiki></pre> * 使用下面的行替换 <pre><nowiki>system_username ALL=(ALL) NOPASSWD: ALL </nowiki></pre> * 保存编辑好的文件 [[HTML(<a name="How_to_explicitly_destroy_the_.22sudo.22_session"></a>)]] ==== 如何 explicitly destroy the "sudo" session ==== * [[DapperGuide#General_Notes|基本备注]] <pre><nowiki>sudo -K </nowiki></pre> [[HTML(<a name="How_to_change_files.2Ffolders_permissions"></a>)]] ==== 如何 change files/folders permissions ==== * [[DapperGuide#General_Notes|基本备注]] <pre><nowiki>Right click on files/folders -> '''Properties''' </nowiki></pre> <pre><nowiki>Permissions Tab -> Read/Write/Execute (Checked the permissions for Owner/Group/Others) </nowiki></pre> [[HTML(<a name="How_to_change_files.2Ffolders_ownership"></a>)]] ==== 如何 change files/folders ownership ==== * [[DapperGuide#General_Notes|基本备注]] <pre><nowiki>sudo chown system_username /location_of_files_or_folders </nowiki></pre> [[HTML(<a name="How_to_change_files.2Ffolders_group_ownership"></a>)]] ==== 如何 change files/folders group ownership ==== * [[DapperGuide#General_Notes|基本备注]] <pre><nowiki>sudo chgrp system_groupname /location_of_files_or_folders </nowiki></pre> [[HTML(<a name="Hardware"></a>)]] === Hardware === [[HTML(<a name="Configure_Ubuntu_for_multi-button_Mouse"></a>)]] ==== Configure Ubuntu for multi-button Mouse ==== [[HTML(<a name="Activate_side-mouse-buttons_in_FireFox"></a>)]] ==== Activate side-mouse-buttons in FireFox ==== Just add two lines to xorg.conf will activate side-mouse-buttons in FireFox. This should work with most 5-button mouse. Here is a list of mice that worked with this instruction. <pre><nowiki>Logitech MX510 Logitech MX518 </nowiki></pre> Backup Gnome configuration file <pre><nowiki>sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.bak </nowiki></pre> Modify the Gnome configuration file <pre><nowiki>gksudo gedit /etc/X11/xorg.conf </nowiki></pre> Find the Input Device section for your mouse and add two lines as shown below. You may also increase the number of buttons if your mouse has more than 7, just fix the rest of the section based upon the number of buttons (remember back/forward, wheel click & tilt left/right all count as buttons) Change: <pre><nowiki>Section "InputDevice" Identifier "Configured Mouse" Driver "mouse" Option "CorePointer" ... Option "Protocol" "ExplorerPS/2" ... Option "Emulate3Buttons" "true" EndSection </nowiki></pre> to: <pre><nowiki>Section "InputDevice" Identifier "Configured Mouse" Driver "mouse" Option "CorePointer" ... Option "Protocol" "ExplorerPS/2" ... Option "Emulate3Buttons" "true" Option "Buttons" "7" Option "ButtonMapping" "1 2 3 6 7" EndSection </nowiki></pre> At this point you can reboot your computer or reboot Gnome (Ctrl-Alt-BackSpace) to see if your forward/back buttons work in FireFox. They still won't work in Nautilus yet until you install the imwheel dameon. [[HTML(<a name="Install_.26_Configure_IMWheel"></a>)]] ==== Install & Configure IMWheel ==== * Install IMWheel <pre><nowiki>sudo apt-get install imwheel </nowiki></pre> * Modify IMWheel configuration file <pre><nowiki>gksudo gedit /etc/X11/imwheel/imwheelrc </nowiki></pre> * Insert the following at the bottom of this existing file <pre><nowiki>".*" None, Up, Alt_L|Left None, Down, Alt_L|Right "(null)" None, Up, Alt_L|Left None, Down, Alt_L|Right </nowiki></pre> * Create IMWheel start-up script <pre><nowiki>sudo mkdir /home/login gksudo gedit /home/login/mouse </nowiki></pre> * Insert the following into this new file <pre><nowiki>#!/bin/sh exec xmodmap -e "pointer = 1 2 3 6 7 4 5" & exec imwheel -k -b "67" & exec $REALSTARTUP </nowiki></pre> * Grant execution for everyone to this new script <pre><nowiki>sudo chmod +x /home/login/mouse </nowiki></pre> * Configure this script to be executed at start-up ***** Select 'System' > 'Preferences' > 'Sessions' ***** Click the StartUp tab ***** Click Add, then input: /home/login/mouse ***** Click OK, then Close * Reboot your computer or your Gnome environment and then test your back/forward mouse buttons in Nautilus [[HTML(<a name="How_to_install_Graphics_Driver_.28NVIDIA.29"></a>)]] ==== 如何安装 Graphics Driver (NVIDIA) ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] <pre><nowiki>sudo apt-get install nvidia-glx nvidia-kernel-common sudo nvidia-glx-config enable </nowiki></pre> * Read [[DapperGuide#How_to_restart_GNOME_without_rebooting_computer| #How to restart GNOME without rebooting computer]] [[HTML(<a name="How_to_disable_NVIDIA_graphics_logo_on_GNOME_startup"></a>)]] ==== 如何 disable NVIDIA graphics logo on GNOME startup ==== * [[DapperGuide#General_Notes|基本备注]] * Read [[DapperGuide#How_to_install_Graphics_Driver_.28NVIDIA.29| #How to install Graphics Driver (NVIDIA)]] <pre><nowiki>sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup gksudo gedit /etc/X11/xorg.conf </nowiki></pre> * 查找下面的段 <pre><nowiki> ... Section "Device" Identifier "NVIDIA Corporation NV11 [GeForce2 MX/MX 400]" Driver "nvidia" BusID "PCI:1:0:0" ... </nowiki></pre> * Add the following line below it <pre><nowiki> Option "NoLogo" </nowiki></pre> * 保存编辑好的文件 * Read [[DapperGuide#How_to_restart_GNOME_without_rebooting_computer| #How to restart GNOME without rebooting computer]] [[HTML(<a name="How_to_install_Graphics_Driver_.28ATI.29"></a>)]] ==== 如何安装 Graphics Driver (ATI) ==== * See [http://wiki.cchtml.com/index.php/Ubuntu_Installation_Guide Unofficial ATI Linux driver wiki] * Or [http://ubuntuforums.org/showpost.php?p=423584 Ubuntuforums.org] [[HTML(<a name="How_to_monitor_CPU.2C_GPU_temperatures.2C_fan_speeds_and_voltages_.28GKrellM.29"></a>)]] ==== 如何 monitor CPU, GPU temperatures, fan speeds and voltages (GKrellM) ==== GKrellM is a hardware monitor that can display CPU and GPU temperatures, fan speeds, voltages, CPU load, network load, disk activity, memory usage, and swap usage. The installation is very easy, and configuration is just a few mouse-clicks. You can set alerts to warn you if the CPU is too hot or there is a fan failure.. * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] <pre><nowiki>sudo apt-get install gkrellm </nowiki></pre> To run the program <pre><nowiki>Click 应用程序 -> 系统工具 -> GKrellM </nowiki></pre> To configure the settings, <pre><nowiki>Right click on GKrellM -> Configuration </nowiki></pre> I was struggling with lm_sensors before, but it doesn't detect all of the sensors on my computer, and the installation/configuration is a bit tedious. Later I found "GKrellM", which works much better. It displays the GPU temperature on my nVidia 6600 GT out of the box. GKrellM also has plugins that show weather info, set reminders, etc. '''Add an audio alert (optional Step):''' Here is how to play an audio message when the CPU is too hot or a fan fails. First you need to find or record your own audio alert files. (I use Audacity to record my own.) Then go to: <pre><nowiki>Configuration -> Builtins folder (Left side)-> Sensors -> Temperatures folder (Right side)-> CPU -> Alerts Button </nowiki></pre> Paste ONE of the following lines into a Terminal window first to test the sound. If you have two sound cards, you can use "-ao oss:/dev/dsp1" option to route the sound to the second sound card. Modify the file path and name so it points to the correct file. If you can hear the sound, then copy that line to a command line text field on the GKrellM's Alerts window. <pre><nowiki>mplayer /home/myfolder/alert_messages/heat_alert.mp3 mplayer -ao oss:/dev/dsp1 /home/myfolder/alert_messages/heat_alert.mp3 </nowiki></pre> [[HTML(<a name="How_to_identify_Modem_chipset"></a>)]] ==== 如何 identify Modem chipset ==== * [[DapperGuide#General_Notes|基本备注]] * To install Modem chipset identifier * Read [[DapperGuide#How_to_install_Basic_Compilers_.28build-essential.29| #How to install Basic Compilers (build-essential)]] <pre><nowiki>wget -c http://easylinux.info/uploads/scanModem.gz gunzip -c scanModem.gz > scanModem chmod +x scanModem sudo cp scanModem /usr/bin/ </nowiki></pre> * To identify Modem chipset <pre><nowiki>sudo scanModem gedit Modem/ModemData.txt </nowiki></pre> [[HTML(<a name="How_to_install_Windows_Wireless_Drivers_.28Ndiswrapper.29"></a>)]] ==== 如何安装 Windows Wireless Drivers (Ndiswrapper) ==== * [[DapperGuide#General_Notes|基本备注]] * In order to install ndiswrapper you need a copy the windows drivers for your Wireless ethernet device. * This is only ment to be installed if your card isn't supported. * Please visit [http://ndiswrapper.sourceforge.net/mediawiki/index.php/List Official supported cards list] <pre><nowiki>sudo apt-get install ndiswrapper-utils sudo ndiswrapper -i /location_of_your_wireless_driver/your_driver.inf sudo ndiswrapper -l </nowiki></pre> * Unload ACX module and load ndiswrapper <pre><nowiki>lsmod | grep acx sudo rmmod acx (only if the module was found. It could also be acx_pci or similar) modprobe ndiswrapper </nowiki></pre> * Set ndiswrapper to load on startup <pre><nowiki>sudo ndiswrapper -m gksudo gedit /etc/modules </nowiki></pre> * Add the following module to the list <pre><nowiki>ndiswrapper </nowiki></pre> * Now you can configure your wireless card with ifconfig and iwconfig. ''e.g. Supposing wlan0 is your wireless device.'' <pre><nowiki>sudo iwconfig wlan0 essid "AP" key ababababababababab mode Managed iwconfig </nowiki></pre> * You sould now be able to see the MAC address of the access point and signal rate. [[HTML(<a name="How_to_install_Modem_Driver_.28SmartLink.29"></a>)]] ==== 如何安装 Modem Driver (SmartLink) ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] <pre><nowiki>uname -r (must be 2.6.10-5-386) wget -c http://easylinux.info/uploads/sl-modem-modules-2.6.10-5-386_2.9.9a-1ubuntu2+2.6.10-34_i386.deb sudo dpkg -i sl-modem-modules-*.deb sudo apt-get install sl-modem-daemon </nowiki></pre> [[HTML(<a name="How_to_configure_PalmOS_Devices"></a>)]] ==== 如何配置 PalmOS Devices ==== * [[DapperGuide#General_Notes|基本备注]] <pre><nowiki>gksudo gedit /etc/udev/rules.d/10-custom.rules </nowiki></pre> * Insert the following line into the new file <pre><nowiki>BUS="usb", SYSFS{product}="Palm Handheld*", KERNEL="ttyUSB*", NAME{ignore_remove}="pilot", MODE="666" </nowiki></pre> * 保存编辑好的文件 * Add the pilot-applet to the Taskbar by Right-Clicking on an empty spot * Follow the instructions on screen [[HTML(<a name="How_to_list_partition_tables"></a>)]] ==== 如何 list partition tables ==== * [[DapperGuide#General_Notes|基本备注]] <pre><nowiki>sudo fdisk -l </nowiki></pre> * You can also use 系统 -> 系统管理 -> Disks [[HTML(<a name="How_to_list_filesystem_disk_space_usage"></a>)]] ==== 如何 list filesystem disk space usage ==== * [[DapperGuide#General_Notes|基本备注]] <pre><nowiki>df -Th </nowiki></pre> * You can also use 系统 -> 系统管理 -> Disks [[HTML(<a name="How_to_list_mounted_devices"></a>)]] ==== 如何 list mounted devices ==== * [[DapperGuide#General_Notes|基本备注]] <pre><nowiki>mount </nowiki></pre> [[HTML(<a name="How_to_list_PCI_devices"></a>)]] ==== 如何 list PCI devices ==== * [[DapperGuide#General_Notes|基本备注]] <pre><nowiki>lspci </nowiki></pre> [[HTML(<a name="How_to_list_USB_devices"></a>)]] ==== 如何 list USB devices ==== * [[DapperGuide#General_Notes|基本备注]] <pre><nowiki>lsusb </nowiki></pre> [[HTML(<a name="How_to_speed_up_CD.2FDVD-ROM"></a>)]] ==== 如何 speed up CD/DVD-ROM ==== * [[DapperGuide#General_Notes|基本备注]] ''e.g. Assumed that /dev/cdrom is the location of CD/DVD-ROM'' <pre><nowiki>sudo hdparm -d1 /dev/cdrom sudo cp /etc/hdparm.conf /etc/hdparm.conf_backup gksudo gedit /etc/hdparm.conf </nowiki></pre> * 在文件的结束增加下面的行 <pre><nowiki>/dev/cdrom { dma = on } </nowiki></pre> * 保存编辑好的文件 [[HTML(<a name="How_to_mount.2Funmount_CD.2FDVD-ROM_manually.2C_and_show_all_hidden_and_associated_files.2Ffolders"></a>)]] ==== 如何 mount/unmount CD/DVD-ROM manually, and show all hidden and associated files/folders ==== * [[DapperGuide#General_Notes|基本备注]] ''e.g. Assumed that /media/cdrom0/ is the location of CD/DVD-ROM'' * To mount CD/DVD-ROM <pre><nowiki>sudo mount /media/cdrom0/ -o unhide </nowiki></pre> * To unmount CD/DVD-ROM <pre><nowiki>sudo umount /media/cdrom0/ </nowiki></pre> [[HTML(<a name="How_to_forcefully_unmount_CD.2FDVD-ROM_manually"></a>)]] ==== 如何 forcefully unmount CD/DVD-ROM manually ==== * [[DapperGuide#General_Notes|基本备注]] ''e.g. Assumed that /media/cdrom0/ is the location of CD/DVD-ROM'' <pre><nowiki>sudo umount /media/cdrom0/ -l </nowiki></pre> [[HTML(<a name="How_to_remount_.2Fetc.2Ffstab_without_rebooting"></a>)]] ==== 如何 remount /etc/fstab without rebooting ==== * [[DapperGuide#General_Notes|基本备注]] <pre><nowiki>sudo mount -a </nowiki></pre> [[HTML(<a name="How_to_install_a_Wacom_tablet"></a>)]] ==== 如何安装 a Wacom tablet ==== '''For a detailed guide with screenshots about how to configure the "Extended input devices" in your graphic applications, please follow the official Dapper guide at [https://wiki.ubuntu.com//Wacom]''' ''With the version of the Linux Wacom driver (0.7.2) in Ubuntu 6.06 Dapper Drake, if you unplug you tablet, it won't function when you plug it back in and you will have to restart X. For this reason, it is best to leave the tablet plugged in. This limitation will be removed when the 0.7.4 version of the driver is included in Ubuntu.'' * [[DapperGuide#General_Notes|基本备注]] * 1. Using Synaptic package manager1, check if the packages xserver-xorg-input-wacom and wacom-tools are already installed - if not, install them. If you prefer using the command line, you can also execute : <pre><nowiki> sudo apt-get install xserver-xorg-input-wacom wacom-tools </nowiki></pre> * 2. Save a copy of your /etc/X11/xorg.conf : <pre><nowiki> sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf.backup </nowiki></pre> * then edit it with the command line : <pre><nowiki> gksudo gedit /etc/X11/xorg.conf </nowiki></pre> * and change all /dev/wacom occurences into /dev/input/wacom (created by wacom-tools udev scripts), then save the file. * You should be ready to go after you have restarted X. Remember to configure the "Extended input devices" in your graphic applications (Gimp, Inkscape), however you can already check if it's working by moving your stylus on the tablet : the mouse cursor should go through the whole screen. [[HTML(<a name="CD.2FDVD_Burning"></a>)]] === CD/DVD Burning === [[HTML(<a name="How_to_blank_CD-RW.2FDVD-RW"></a>)]] ==== 如何 blank CD-RW/DVD-RW ==== * [[DapperGuide#General_Notes|基本备注]] ''e.g. Assumed that /dev/cdrom is the location of CD/DVD-ROM'' <pre><nowiki>sudo umount /dev/cdrom cdrecord dev=/dev/cdrom blank=fast </nowiki></pre> [[HTML(<a name="How_to_burn_files.2Ffolders_into_CD.2FDVD"></a>)]] ==== 如何 burn files/folders into CD/DVD ==== * [[DapperGuide#General_Notes|基本备注]] <pre><nowiki>nautilus burn:/// </nowiki></pre> * File Browser: CD/DVD Creator * Drag files/folders into window <pre><nowiki>File 菜单 -> Write to Disc... -> Write </nowiki></pre> [[HTML(<a name="How_to_burn_Image_.28ISO.29_files_into_CD.2FDVD"></a>)]] ==== 如何 burn Image (ISO) files into CD/DVD ==== * [[DapperGuide#General_Notes|基本备注]] <pre><nowiki>Right click on Image (ISO) file -> Write to Disc... -> Write </nowiki></pre> [[HTML(<a name="How_to_duplicate_CD.2FDVD"></a>)]] ==== 如何 duplicate CD/DVD ==== * [[DapperGuide#General_Notes|基本备注]] * Read [[DapperGuide#How_to_create_Image_.28ISO.29_files_from_CD.2FDVD| #How to create Image (ISO) files from CD/DVD]] * Read [[DapperGuide#How_to_burn_Image_.28ISO.29_files_into_CD.2FDVD| #How to burn Image (ISO) files into CD/DVD]] [[HTML(<a name="How_to_create_Image_.28ISO.29_files_from_CD.2FDVD"></a>)]] ==== 如何 create Image (ISO) files from CD/DVD ==== * [[DapperGuide#General_Notes|基本备注]] ''e.g. Assumed that /dev/cdrom is the location of CD/DVD-ROM'' <pre><nowiki>sudo umount /dev/cdrom dd if=/dev/cdrom of=file.iso bs=1024 </nowiki></pre> [[HTML(<a name="How_to_create_Image_.28ISO.29_files_from_folders"></a>)]] ==== 如何 create Image (ISO) files from folders ==== * [[DapperGuide#General_Notes|基本备注]] <pre><nowiki>mkisofs -o file.iso /location_of_folder/ </nowiki></pre> [[HTML(<a name="How_to_generate_MD5_checksum_files"></a>)]] ==== 如何 generate MD5 checksum files ==== * [[DapperGuide#General_Notes|基本备注]] <pre><nowiki>md5sum file.iso > file.iso.md5 </nowiki></pre> [[HTML(<a name="How_to_check_MD5_checksum_of_files"></a>)]] ==== 如何 check MD5 checksum of files ==== * [[DapperGuide#General_Notes|基本备注]] ''e.g. Assumed that file.iso and file.iso.md5 are in the same folder'' <pre><nowiki>md5sum -c file.iso.md5 </nowiki></pre> [[HTML(<a name="How_to_mount.2Funmount_Image_.28ISO.29_files_without_burning"></a>)]] ==== 如何 mount/unmount Image (ISO) files without burning ==== * [[DapperGuide#General_Notes|基本备注]] * To mount Image (ISO) file <pre><nowiki>sudo mkdir /media/iso sudo modprobe loop sudo mount file.iso /media/iso/ -t iso9660 -o loop </nowiki></pre> * To unmount Image (ISO) file <pre><nowiki>sudo umount /media/iso/ </nowiki></pre> [[HTML(<a name="How_to_set.2Fchange_the_burn_speed_for_CD.2FDVD_Burner"></a>)]] ==== 如何 set/change the burn speed for CD/DVD Burner ==== * [[DapperGuide#General_Notes|基本备注]] * 应用程序 -> 系统工具 -> Configuration Editor * Configuration Editor <pre><nowiki>/ -> apps -> nautilus-cd-burner -> default_speed (set/change the burn speed) </nowiki></pre> [[HTML(<a name="How_to_enable_burnproof_for_CD.2FDVD_Burner"></a>)]] ==== 如何 enable burnproof for CD/DVD Burner ==== * [[DapperGuide#General_Notes|基本备注]] * 应用程序 -> 系统工具 -> Configuration Editor * Configuration Editor <pre><nowiki>/ -> apps -> nautilus-cd-burner -> burnproof ('''Checked''') </nowiki></pre> [[HTML(<a name="How_to_enable_overburn_for_CD.2FDVD_Burner"></a>)]] ==== 如何 enable overburn for CD/DVD Burner ==== * [[DapperGuide#General_Notes|基本备注]] * 应用程序 -> 系统工具 -> Configuration Editor * Configuration Editor <pre><nowiki>/ -> apps -> nautilus-cd-burner -> overburn ('''Checked''') </nowiki></pre> [[HTML(<a name="Networking"></a>)]] === Networking === [[HTML(<a name="How_to_configure_Google_Talk"></a>)]] ==== 如何配置 Google Talk ==== * See the answer at [http://www.google.com/support/talk/bin/answer.py?answer=24073 Google Talk Help Center] [[HTML(<a name="How_to_activate.2Fdeactivate_network_connections"></a>)]] ==== 如何 activate/deactivate network connections ==== * [[DapperGuide#General_Notes|基本备注]] * 系统 -> 系统管理 -> Networking * Network settings <pre><nowiki>Connections Tab -> Select "Ethernet connection" -> Activate/Deactivate </nowiki></pre> [[HTML(<a name="How_to_configure_network_connections"></a>)]] ==== 如何配置 network connections ==== * [[DapperGuide#General_Notes|基本备注]] * 系统 -> 系统管理 -> Networking * Network settings <pre><nowiki>Connections Tab -> Select "Ethernet connection" -> '''Properties''' Connection -> Enable this connection ('''Checked''') Connection Settings -> Configuration: Select "DHCP/Static IP address" </nowiki></pre> <pre><nowiki>DNS Tab -> DNS Servers -> Add/Delete </nowiki></pre> * Read [[DapperGuide#How_to_activate.2Fdeactivate_network_connections| #How to activate/deactivate network connections]] [[HTML(<a name="How_to_configure_dialup_connections"></a>)]] ==== 如何配置 dialup connections ==== * [[DapperGuide#General_Notes|基本备注]] * To configure dialup <pre><nowiki>sudo pppconfig </nowiki></pre> * To connect dialup <pre><nowiki>sudo pon provider_name </nowiki></pre> * To disconnect dialup <pre><nowiki>sudo poff </nowiki></pre> [[HTML(<a name="How_to_configure_broadband_connections"></a>)]] ==== 如何配置 broadband connections ==== * [[DapperGuide#General_Notes|基本备注]] <pre><nowiki>sudo pppoeconf </nowiki></pre> [[HTML(<a name="How_to_change_computer_name"></a>)]] ==== 如何 change computer name ==== * [[DapperGuide#General_Notes|基本备注]] * 系统 -> 系统管理 -> Networking * Network settings <pre><nowiki>General Tab -> Host Settings -> Hostname: Specify the computer name </nowiki></pre> * Save and close all opened applications, Reboot computer [[HTML(<a name="How_to_change_computer_descriptions"></a>)]] ==== 如何 change computer descriptions ==== * [[DapperGuide#General_Notes|基本备注]] * Read [[DapperGuide#How_to_install_Samba_Server_for_files.2Ffolders_sharing_service| #How to install Samba Server for files/folders sharing service]] <pre><nowiki>sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup gksudo gedit /etc/samba/smb.conf </nowiki></pre> * 查找如下行 <pre><nowiki>... server string = %h server (Samba, Ubuntu) ... </nowiki></pre> * 使用下面的行替换 <pre><nowiki> server string = new_computer_descriptions </nowiki></pre> * 保存编辑好的文件 <pre><nowiki>sudo testparm sudo /etc/init.d/samba restart </nowiki></pre> [[HTML(<a name="How_to_change_computer_Domain.2FWorkgroup"></a>)]] ==== 如何 change computer Domain/Workgroup ==== * [[DapperGuide#General_Notes|基本备注]] * Read [[DapperGuide#How_to_install_Samba_Server_for_files.2Ffolders_sharing_service| #How to install Samba Server for files/folders sharing service]] <pre><nowiki>sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup gksudo gedit /etc/samba/smb.conf </nowiki></pre> * 查找如下行 <pre><nowiki>... workgroup = MSHOME ... </nowiki></pre> * 使用下面的行替换 <pre><nowiki> workgroup = new_domain_or_workgroup </nowiki></pre> * 保存编辑好的文件 <pre><nowiki>sudo testparm sudo /etc/init.d/samba restart </nowiki></pre> [[HTML(<a name="How_to_assign_Hostname_to_local_machine_with_dynamic_IP_using_free_DynDNS_service"></a>)]] ==== 如何 assign Hostname to local machine with dynamic IP using free DynDNS service ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] * Register free Dynamic DNS at [http://www.dyndns.com/services/dns/dyndns] <pre><nowiki>sudo apt-get install ipcheck gksudo gedit /etc/ppp/ip-up.d/dyndns_update.sh </nowiki></pre> * 插入下面的行到新文件 <pre><nowiki> #!/bin/sh USERNAME=myusername PASSWORD=mypassword HOSTNAME=myhostname.dyndns.org cd /root/ if [ -f /root/ipcheck.dat ]; then ipcheck -r checkip.dyndns.org:8245 $USERNAME $PASSWORD $HOSTNAME else ipcheck --makedat -r checkip.dyndns.org:8245 $USERNAME $PASSWORD $HOSTNAME fi </nowiki></pre> * 保存编辑好的文件 <pre><nowiki>sudo chmod 700 /etc/ppp/ip-up.d/dyndns_update.sh sudo sh /etc/ppp/ip-up.d/dyndns_update.sh </nowiki></pre> [[HTML(<a name="How_to_share_folders_the_easy_way"></a>)]] ==== 如何 share folders the easy way ==== * [[DapperGuide#General_Notes|基本备注]] * Read [[DapperGuide#How_to_install_Samba_Server_for_files.2Ffolders_sharing_service| #How to install Samba Server for files/folders sharing service]] <pre><nowiki>Right click on folder -> Share folder </nowiki></pre> <pre><nowiki>Shared folder -> Share with: Select "SMB" Share properties -> Name: Specify the share name </nowiki></pre> [[HTML(<a name="How_to_browse_network_computers"></a>)]] ==== 如何 browse network computers ==== * [[DapperGuide#General_Notes|基本备注]] ''e.g. Assumed that network connections have been configured properly'' '' If computers or network folders could not be found, try access them directly'' '' Read [[DapperGuide#How_to_access_network_folders_without_mounting| #How to access network folders without mounting]]'' * Places -> Network Servers [[HTML(<a name="How_to_access_network_folders_without_mounting"></a>)]] ==== 如何 access network folders without mounting ==== * [[DapperGuide#General_Notes|基本备注]] ''e.g. Assumed that network connections have been configured properly'' '' Network computer's IP: 192.168.0.1'' '' Shared folder's name: linux'' * Press 'Alt+F2' (Run Application...) and enter: <pre><nowiki>smb://192.168.0.1/linux </nowiki></pre> [[HTML(<a name="How_to_mount.2Funmount_network_folders_manually.2C_and_allow_all_users_to_read"></a>)]] ==== 如何 mount/unmount network folders manually, and allow all users to read ==== * [[DapperGuide#General_Notes|基本备注]] * Read [[DapperGuide#How_to_install_Samba_Server_for_files.2Ffolders_sharing_service| #How to install Samba Server for files/folders sharing service]] ''e.g. Assumed that network connections have been configured properly'' '' Network computer's IP: 192.168.0.1'' '' Network computer's Username: myusername'' '' Network computer's Password: mypassword'' '' Shared folder's name: linux'' '' Local mount folder: /media/sharename'' * To mount network folder <pre><nowiki>sudo mkdir /media/sharename sudo mount //192.168.0.1/linux /media/sharename/ -o username=myusername,password=mypassword </nowiki></pre> * To unmount network folder <pre><nowiki>sudo umount /media/sharename/ </nowiki></pre> [[HTML(<a name="How_to_mount.2Funmount_network_folders_manually.2C_and_allow_all_users_to_read.2Fwrite"></a>)]] ==== 如何 mount/unmount network folders manually, and allow all users to read/write ==== * [[DapperGuide#General_Notes|基本备注]] * Read [[DapperGuide#How_to_install_Samba_Server_for_files.2Ffolders_sharing_service| #How to install Samba Server for files/folders sharing service]] ''e.g. Assumed that network connections have been configured properly'' '' Network computer's IP: 192.168.0.1'' '' Network computer's Username: myusername'' '' Network computer's Password: mypassword'' '' Shared folder's name: linux'' '' Local mount folder: /media/sharename'' * To mount network folder <pre><nowiki>sudo mkdir /media/sharename sudo mount //192.168.0.1/linux /media/sharename/ -o username=myusername,password=mypassword,dmask=777,fmask=777 </nowiki></pre> * To unmount network folder <pre><nowiki>sudo umount /media/sharename/ </nowiki></pre> [[HTML(<a name="How_to_mount_network_folders_on_boot-up.2C_and_allow_all_users_to_read"></a>)]] ==== 如何 mount network folders on boot-up, and allow all users to read ==== * [[DapperGuide#General_Notes|基本备注]] * Read [[DapperGuide#How_to_install_Samba_Server_for_files.2Ffolders_sharing_service| #How to install Samba Server for files/folders sharing service]] ''e.g. Assumed that network connections have been configured properly'' '' Network computer's IP: 192.168.0.1'' '' Network computer's Username: myusername'' '' Network computer's Password: mypassword'' '' Shared folder's name: linux'' '' Local mount folder: /media/sharename'' <pre><nowiki>sudo mkdir /media/sharename gksudo gedit /root/.smbcredentials </nowiki></pre> * 插入下面的行到新文件 <pre><nowiki>username=myusername password=mypassword </nowiki></pre> * 保存编辑好的文件 <pre><nowiki>sudo chmod 700 /root/.smbcredentials sudo cp /etc/fstab /etc/fstab_backup gksudo gedit /etc/fstab </nowiki></pre> * Append the following line at the end of file <pre><nowiki>//192.168.0.1/linux /media/sharename smbfs credentials=/root/.smbcredentials 0 0 </nowiki></pre> * 保存编辑好的文件 * Read [[DapperGuide#How_to_remount_.2Fetc.2Ffstab_without_rebooting| #How to remount /etc/fstab without rebooting]] [[HTML(<a name="How_to_mount_network_folders_on_boot-up.2C_and_allow_all_users_to_read.2Fwrite"></a>)]] ==== 如何 mount network folders on boot-up, and allow all users to read/write ==== * [[DapperGuide#General_Notes|基本备注]] * Read [[DapperGuide#How_to_install_Samba_Server_for_files.2Ffolders_sharing_service| #How to install Samba Server for files/folders sharing service]] ''e.g. Assumed that network connections have been configured properly'' '' Network computer's IP: 192.168.0.1'' '' Network computer's Username: myusername'' '' Network computer's Password: mypassword'' '' Shared folder's name: linux'' '' Local mount folder: /media/sharename'' <pre><nowiki>sudo mkdir /media/sharename gksudo gedit /root/.smbcredentials </nowiki></pre> * 插入下面的行到新文件 <pre><nowiki>username=myusername password=mypassword </nowiki></pre> * 保存编辑好的文件 <pre><nowiki>sudo chmod 700 /root/.smbcredentials sudo cp /etc/fstab /etc/fstab_backup gksudo gedit /etc/fstab </nowiki></pre> * Append the following line at the end of file <pre><nowiki>//192.168.0.1/linux /media/sharename smbfs credentials=/root/.smbcredentials,dmask=777,fmask=777 0 0 </nowiki></pre> * 保存编辑好的文件 * Read [[DapperGuide#How_to_remount_.2Fetc.2Ffstab_without_rebooting| #How to remount /etc/fstab without rebooting]] [[HTML(<a name="How_to_get_ipw2200_and_wpa_to_work"></a>)]] ==== 如何 get ipw2200 and wpa to work ==== * See [http://www.ubuntuforums.org/showpost.php?p=130227p=423584 Ubuntuforuns.org how-tos] [[HTML(<a name="How_to_Configure_and_start_PPTP_tunnels_.28VPN.29"></a>)]] ==== 如何配置 and start PPTP tunnels (VPN) ==== * [[DapperGuide#General_Notes|基本备注]] * Use [http://pptpclient.sourceforge.net/howto-ubuntu.phtml these instructions] to automatically install PPTP Client '''OR''' * Install manually <pre><nowiki>wget -c http://linux.edu.lv/uploads/content/pptp.tar.gz tar zxvf pptp.tar.gz sudo sh ./pptp/install </nowiki></pre> * To configure PPTP Client <pre><nowiki>gksudo gedit /usr/share/applications/pptpconfig.desktop </nowiki></pre> * Replace content of this file with the following lines <pre><nowiki>[Desktop Entry] Name=PPTP Client Comment=Configure and start PPTP tunnels (VPN) Categories=Application;Network Encoding=UTF-8 Exec=gksudo pptpconfig Icon=gnome-remote-desktop.png StartupNotify=true Terminal=false Type=Application </nowiki></pre> * The above lines change the default file in three ways: the application is placed in the Application/Internet category, gksudo will make the application run as superuser and we put a nice icon thatappears in the menu. * Start the client with ''应用程序 -> Internet -> PPTP Client'' [[HTML(<a name="How_to_Configure_Ubuntu.2FKubuntu_with_WPA_using_Network-Manager"></a>)]] ==== 如何配置 Ubuntu/Kubuntu with WPA using Network-Manager ==== Ubuntu Dapper in typical cases can configure WPA to work out of the box with minimal hassle. You'll need to install network-manager. For Ubuntu: <pre><nowiki>sudo apt-get install network-manager-gnome </nowiki></pre> For Kubuntu (will install knetworkmanager): <pre><nowiki>sudo apt-get install network-manager-kde </nowiki></pre> Logout/Reboot. Ubuntu users should now see the NetworkManager Applet in the Gnome notification area. Kubuntu users will probably have to run knetworkmanager before they see NetworkManager in the systray. If instead, you get a "The NetworkManager applet could not find some required resources. It cannot continue." message, then: <pre><nowiki>sudo gtk-update-icon-cache -f /usr/share/icons/hicolor </nowiki></pre> Once Network-Manager is installed, click on the NM icon in the notification area (default is at the top right of Ubuntu/Gnome). Choose your network, then enter your passphrase. Type a password for the keyring, and you're set. If you don't see your network, click "Create New Wireless Network...", type your essid/networkname, then choose "WPA Personal" for wireless security. * Note: If you installed Kubuntu then installed ubuntu-desktop & network-manager-gnome, you may not be able to use network-manager in Gnome, if at all. In this case, you may have to use WPA Supplicant and do some manual editing of conf files to get WPA up and running. * Note: When you first log into Gnome/KDE, the keyring application will ask for a password. Future revisions of Network-Manager should resolve this. [[HTML(<a name="Remote_Desktop"></a>)]] === Remote Desktop === [[HTML(<a name="How_to_configure_remote_desktop_.28not_secure.29"></a>)]] ==== 如何配置 remote desktop (not secure) ==== * [[DapperGuide#General_Notes|基本备注]] ''Warning! Remote Desktop will only work if there's a GNOME login session'' '' Leaving computer with an unattended GNOME login session is not secure'' '' Use (系统 -> Lock Screen) and switch off the monitor when computer is left unattended'' * 系统 -> Preferences -> Remote Desktop * Remote Desktop Preferences <pre><nowiki>Sharing -> Allow other users to view your desktop ('''Checked''') Allow other users to control your desktop ('''Checked''') </nowiki></pre> <pre><nowiki>Security -> Ask you for confirmation (Un-Checked) Require the user to enter this password: ('''Checked''') Password: Specify the password </nowiki></pre> [[HTML(<a name="How_to_connect_into_remote_Ubuntu_desktop"></a>)]] ==== 如何 connect into remote Ubuntu desktop ==== * [[DapperGuide#General_Notes|基本备注]] ''e.g. Assumed that remote Ubuntu machine have configured Remote Desktop'' '' Read [[DapperGuide#How_to_configure_remote_desktop_.28not_secure.29| #How to configure remote desktop (not secure)]]'' '' Remote Ubuntu machine: 192.168.0.1'' <pre><nowiki>vncviewer -fullscreen 192.168.0.1:0 </nowiki></pre> * To quit vncviewer <pre><nowiki>Press 'F8' -> Quit viewer </nowiki></pre> [[HTML(<a name="How_to_connect_into_remote_Ubuntu_desktop_via_Windows_machine"></a>)]] ==== 如何 connect into remote Ubuntu desktop via Windows machine ==== * [[DapperGuide#General_Notes|基本备注]] ''e.g. Assumed that remote Ubuntu machine have configured Remote Desktop'' '' Read [[DapperGuide#How_to_configure_remote_desktop_.28not_secure.29| #How to configure remote desktop (not secure)]]'' '' Remote Ubuntu machine: 192.168.0.1'' * If you have a router remember to open the appropiate port. The default one is 5900 '' This process is called port forwarding [http://en.wikipedia.org/wiki/Port_forwarding port forwarding]'' * Download DotNetVNC: [http://dotnetvnc.sourceforge.net/ Here] '' this is a free DotNet version that require the DotNet framework available from microsoft [http://msdn.microsoft.com/netframework/ here]'' '' Remember that this is only one VNC client i've found searching in internet, search the one is more suitable for your interest'' * Open the VNC client you have chosen, and insert the connection string formatted like this <LINUX BOX IP><:DESKTOP NUMBER>|<::PORT> '' In example use: 192.168.1.2:0 or 192.168.1.2::5900 to connect to desktop 0, to connect to desktop 1 use 192.168.1.2:1 or 192.168.1.2::5901 and so on'' [[HTML(<a name="How_to_connect_into_remote_Ubuntu_desktop_via_OSX"></a>)]] ==== 如何 connect into remote Ubuntu desktop via OSX ==== * [[DapperGuide#General_Notes|基本备注]] ''e.g. Assumed that remote Ubuntu machine have configured Remote Desktop'' '' Read [[DapperGuide#How_to_configure_remote_desktop_.28not_secure.29| #How to configure remote desktop (not secure)]]'' '' Remote Ubuntu machine: 192.168.0.1'' * If you have a router remember to open the appropiate port the default one is 5900 '' This process is called port forwarding [http://en.wikipedia.org/wiki/Port_forwarding port forwarding]'' * Download ChickenOfTheVNC: [http://sourceforge.net/projects/cotvnc/ Here] * Open ChickenOfTheVNC, and insert the host (IP adress of remote machine), the display number (0 is default and is port 5900) and the password. '' In example use: Host: 192.168.0.1, Display 0, Password: password'' [[HTML(<a name="Windows"></a>)]] === Windows === [[HTML(<a name="How_to_mount.2Funmount_Windows_partitions_.28NTFS.29_manually.2C_and_allow_all_users_to_read_only"></a>)]] ==== 如何 mount/unmount Windows partitions (NTFS) manually, and allow all users to read only ==== * [[DapperGuide#General_Notes|基本备注]] * Read [[DapperGuide#How_to_list_partition_tables| #How to list partition tables]] ''e.g. Assumed that /dev/hda1 is the location of Windows partition (NTFS)'' '' Local mount folder: /media/windows'' * To mount Windows partition <pre><nowiki>sudo mkdir /media/windows sudo mount /dev/hda1 /media/windows/ -t ntfs -o nls=utf8,umask=0222 </nowiki></pre> * To unmount Windows partition <pre><nowiki>sudo umount /media/windows/ </nowiki></pre> [[HTML(<a name="How_to_mount.2Funmount_Windows_partitions_.28FAT.29_manually.2C_and_allow_all_users_to_read.2Fwrite"></a>)]] ==== 如何 mount/unmount Windows partitions (FAT) manually, and allow all users to read/write ==== * [[DapperGuide#General_Notes|基本备注]] * Read [[DapperGuide#How_to_list_partition_tables| #How to list partition tables]] ''e.g. Assumed that /dev/hda1 is the location of Windows partition (FAT)'' '' Local mount folder: /media/windows'' * To mount Windows partition <pre><nowiki>sudo mkdir /media/windows sudo mount /dev/hda1 /media/windows/ -t vfat -o iocharset=utf8,umask=000 </nowiki></pre> * To unmount Windows partition <pre><nowiki>sudo umount /media/windows/ </nowiki></pre> [[HTML(<a name="How_to_mount_Windows_partitions_.28NTFS.29_on_boot-up.2C_and_allow_all_users_to_read_only"></a>)]] ==== 如何 mount Windows partitions (NTFS) on boot-up, and allow all users to read only ==== * [[DapperGuide#General_Notes|基本备注]] * Read [[DapperGuide#How_to_list_partition_tables| #How to list partition tables]] ''e.g. Assumed that /dev/hda1 is the location of Windows partition (NTFS)'' '' Local mount folder: /media/windows'' <pre><nowiki>sudo mkdir /media/windows sudo cp /etc/fstab /etc/fstab_backup gksudo gedit /etc/fstab </nowiki></pre> * Append the following line at the end of file <pre><nowiki>/dev/hda1 /media/windows ntfs nls=utf8,umask=0222 0 0 </nowiki></pre> * 保存编辑好的文件 * Read [[DapperGuide#How_to_remount_.2Fetc.2Ffstab_without_rebooting| #How to remount /etc/fstab without rebooting]] [[HTML(<a name="How_to_mount_Windows_partitions_.28FAT.29_on_boot-up.2C_and_allow_all_users_to_read.2Fwrite"></a>)]] ==== 如何 mount Windows partitions (FAT) on boot-up, and allow all users to read/write ==== * [[DapperGuide#General_Notes|基本备注]] * Read [[DapperGuide#How_to_list_partition_tables| #How to list partition tables]] ''e.g. Assumed that /dev/hda1 is the location of Windows partition (FAT)'' '' Local mount folder: /media/windows'' <pre><nowiki>sudo mkdir /media/windows sudo cp /etc/fstab /etc/fstab_backup gksudo gedit /etc/fstab </nowiki></pre> * Append the following line at the end of file <pre><nowiki>/dev/hda1 /media/windows vfat iocharset=utf8,umask=000 0 0 </nowiki></pre> * 保存编辑好的文件 * Read [[DapperGuide#How_to_remount_.2Fetc.2Ffstab_without_rebooting| #How to remount /etc/fstab without rebooting]] [[HTML(<a name="How_to_mount_Windows_partitions_.28NTFS.29_on_boot-up.2C_and_allow_users_read_and_write_access"></a>)]] ==== 如何 mount Windows partitions (NTFS) on boot-up, and allow users read and write access ==== Warning: Ntfs writing support is still experimental. You should not enable it on production machines and/or volumes you don't have backups of. Proceed at your own risk! * [[DapperGuide#General_Notes|基本备注]] <pre><nowiki>sudo apt-get install libfuse2 fuse-utils </nowiki></pre> * Download the latest ntfsprogs package (these are from the Dapper repositories, so they are safe to install.) [http://archive.ubuntu.com/ubuntu/pool/main/l/linux-ntfs/libntfs8_1.12.1-1_i386.deb libntfs8] [http://archive.ubuntu.com/ubuntu/pool/main/l/linux-ntfs/ntfsprogs_1.12.1-1_i386.deb ntfsprogs] [http://archive.ubuntu.com/ubuntu/pool/main/f/fuse/libfuse2_2.4.2-0ubuntu3_i386.deb libfuse2] [http://archive.ubuntu.com/ubuntu/pool/universe/f/fuse/fuse-utils_2.4.2-0ubuntu3_i386.deb fuse-utils] * Install the downloaded packages <pre><nowiki>sudo dpkg -i libfuse2_*.deb fuse-utils_*.deb ntfsprogs_*.deb libntfs8_*.deb </nowiki></pre> * Add fuse to the list of modules to load <pre><nowiki>echo fuse | sudo tee -a /etc/modules </nowiki></pre> * Create a user group to access the ntfs disks <pre><nowiki>sudo addgroup ntfs </nowiki></pre> * The output should look something like this, remember the GID (the number printed after the group name) as it may differ and we will need it later: ''Adding group `ntfs' (1002)...'' ''Done.'' * Read [[DapperGuide#How_to_list_partition_tables| #How to list partition tables]] * Create the local mount folder and edit the fstab file to mount the disks to this folder. ''e.g. Assumed that /dev/hda1 is the location of Windows partition (NTFS)'' '' Local mount folder: /media/windows'' <pre><nowiki>sudo mkdir /media/windows sudo cp /etc/fstab /etc/fstab.bak gksudo gedit /etc/fstab </nowiki></pre> * Append the following line at the end of file, using the GID number previously. The umask following this GID allows write access just to owner (root) and group (ntfs), and read access to everyone. <pre><nowiki>/dev/hda1 /media/windows ntfs-fuse auto,gid=1002,umask=0002 0 0 </nowiki></pre> * 保存编辑好的文件. * Add users to the ntfs group, where "username" is the name of the user you would like to have write access <pre><nowiki>sudo adduser username ntfs </nowiki></pre> * Fix Dapper [https://launchpad.net/distros/ubuntu/+source/linux-ntfs/+bug/29865 bug #29865] of the linux-ntfs package: <pre><nowiki>sudo rm /sbin/mount.ntfs-fuse && sudo ln /usr/bin/ntfsmount /sbin/mount.ntfs-fuse </nowiki></pre> * If you reboot now, the disk will be writable to the selected users when they logon. If you want the changes to take effect immediately without rebooting, execute the following command, ignoring the errors about "/" and others not being unmounted. You'll have to logout from all your user sessions for the new group to be acknowledged (usually a logout from your graphical session and login back again will do it). <pre><nowiki>sudo modprobe fuse && sudo umount -a && sudo mount -a </nowiki></pre> * Further troubleshooting is listed at this [http://www.ubuntuforums.org/showthread.php?t=142481 comprehensive howto thread]. [[HTML(<a name="Security"></a>)]] === Security === [[HTML(<a name="What_are_the_basic_things_I_need_to_know_about_securing_my_Ubuntu"></a>)]] ==== What are the basic things I need to know about securing my Ubuntu ==== * [[DapperGuide#General_Notes|基本备注]] * Ensure hard drive is first in BIOS boot-up sequence ***** To prevent trespassers from using Linux Installation CD which allows them to gain root user access ***** To prevent trespassers from using Linux Live CD (e.g. UBUNTU/KNOPPIX/MEPIS) which allows them to destroy/browse/share the entire hard drive ***** To prevent trespassers from installing another Operating System * Ensure a password is set for BIOS ***** To prevent trespassers from changing the BIOS boot-up sequence * Ensure computer is located at a secured place ***** To prevent trespassers from removing computer's hard drive which allows them to destroy/browse/share the entire hard drive from a different computer ***** To prevent trespassers from removing computer's on-board battery which resets the BIOS password * Ensure passwords used on the system cannot be easily guessed ***** To prevent trespassers from cracking password file using brute force attacks (e.g. John the Ripper) ***** Create password with minimum length of 8 characters ***** Create password with mixture of characters/numbers, and upper/lower case * Ensure interactive editing control for GRUB menu is disabled ***** To prevent trespassers from modifying kernel boot-up arguments which allows them to have root user access ***** Read [[DapperGuide#How_to_disable_all_interactive_editing_control_for_GRUB_menu| #How to disable all interactive editing control for GRUB menu]] * Ensure history listing is disabled in Console mode ***** To prevent trespassers from seeing previously issued commands ***** Read [[DapperGuide#How_to_disable_history_listing_in_Console_mode| #How to disable history listing in Console mode]] * Ensure Ctrl+Alt+Del is disabled in Console mode ***** To prevent trespassers from restarting the system without permission in Console mode ***** Read [[[How to disable Ctrl+Alt+Del from restarting computer in Console mode]]] * Ensure interactive option is set for remove, copy and move of files/folders in Console mode ***** To prevent accidental removal/overwritten of files/folders ***** Read [[DapperGuide#How_to_enable_prompt_before_removal.2Foverwritten_of_files.2Ffolders_in_Console_mode| #How to enable prompt before removal/overwritten of files/folders in Console mode]] * For day to day usage, login as a normal user ***** To prevent accidental deletion/modification of system files/folders ***** Read [[DapperGuide#How_to_add.2Fedit.2Fdelete_system_users| #How to add/edit/delete system users]] * Disable root user account, use "sudo" instead ***** To reduce the amount of time spent with root privileges, and thus the risk of inadvertently executing a command as root ***** "sudo" provides a more useful audit trail (/var/log/auth.log) ***** Read [[DapperGuide#How_to_disable_root_user_account| #How to disable root user account]] * Install a Firewall ***** A firewall does not guarantee security but it is in most environments the first line of defense against network based attacks ***** Read [[DapperGuide#How_to_install_Firewall_.28Firestarter.29| #How to install Firewall (Firestarter)]] * Perform vulnerability test ***** Nessus is a great tool designed to automate the testing and discovery of known security problems ***** Read [[DapperGuide#How_to_install_Vulnerability_Scanner_.28Nessus.29| #How to install Vulnerability Scanner (Nessus)]] [[HTML(<a name="How_to_disable_all_interactive_editing_control_for_GRUB_menu"></a>)]] ==== 如何 disable all interactive editing control for GRUB menu ==== * [[DapperGuide#General_Notes|基本备注]] * Run This: <pre><nowiki>grub-md5-crypt </nowiki></pre> <pre><nowiki>Password: Retype password: $1$tumnZ1$xB/shuXs7MlawZXkLiBDV/ </nowiki></pre> * Backup your current configuration file <pre><nowiki>sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup gksudo gedit /boot/grub/menu.lst </nowiki></pre> * 查找下面的段 <pre><nowiki>... # If used in the first section of a menu file, disable all interactive editing # control (menu entry editor and command-line) and entries protected by the # command 'lock' # e.g. password topsecret # password --md5 $1$tumnZ1$xB/shuXs7MlawZXkLiBDV/ # password topsecret ... </nowiki></pre> * Add the following line below it <pre><nowiki>password --md5 $1$tumnZ1$xB/shuXs7MlawZXkLiBDV/ (encrypted password above) </nowiki></pre> * Find the section(s) that look like this (note the 'recovery mode' and the word 'single'): <pre><nowiki>... title Ubuntu, kernel 2.6.10-5-386 (recovery mode) root (hd0,1) kernel /boot/vmlinuz-2.6.10-5-386 root=/dev/hda2 ro single initrd /boot/initrd.img-2.6.10-5-386 savedefault boot ... </nowiki></pre> * Add lock between the title and root lines: <pre><nowiki>... title Ubuntu, kernel 2.6.10-5-386 (recovery mode) lock root (hd0,1) ... </nowiki></pre> * 保存编辑好的文件 This will make it so your grub console will require a password to edit the lines, and the recovery modes won't work unless the password is typed. To access the other grub options at the menu, follow the instructions at the bottom of the screen. It will be something like pressing '''p''' and typing your password. [[HTML(<a name="How_to_disable_history_listing_in_Console_mode"></a>)]] ==== 如何 disable history listing in Console mode ==== * [[DapperGuide#General_Notes|基本备注]] * From [http://gentoo-wiki.com/SECURITY_Adjusting_The_Way_Bash_History_Funtions Gentoo Wiki]: <pre><nowiki>rm -f .bash_history gedit ~/.bash_profile </nowiki></pre> * Add the following: <pre><nowiki>export HISTFILESIZE=4 unset HISTFILE=5 # Change this to a reasonable number of lines to save, I like to save only 100. export HISTSIZE=1 # Ignores duplicate lines next to each other export HISTCONTROL=ignoredups </nowiki></pre> This will disable Bash history for the user, retaining keystroke history and recall to use while limiting recall history to 100 lines. This will also not record duplicate lines next to each other. [[HTML(<a name="How_to_disable_Ctrl.2BAlt.2BDel_from_restarting_computer_in_Console_mode"></a>)]] ==== 如何 disable Ctrl+Alt+Del from restarting computer in Console mode ==== * [[DapperGuide#General_Notes|基本备注]] <pre><nowiki>sudo cp /etc/inittab /etc/inittab_backup gksudo gedit /etc/inittab </nowiki></pre> * 查找如下行 <pre><nowiki>... ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now ... </nowiki></pre> * 使用下面的行替换 <pre><nowiki>#ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now </nowiki></pre> * 保存编辑好的文件 <pre><nowiki>sudo telinit q </nowiki></pre> [[HTML(<a name="How_to_enable_prompt_before_removal.2Foverwritten_of_files.2Ffolders_in_Console_mode"></a>)]] ==== 如何 enable prompt before removal/overwritten of files/folders in Console mode ==== * [[DapperGuide#General_Notes|基本备注]] <pre><nowiki>sudo cp /etc/bash.bashrc /etc/bash.bashrc_backup gksudo gedit /etc/bash.bashrc </nowiki></pre> * 在文件的结束增加下面的行 <pre><nowiki>alias rm='rm -i' alias cp='cp -i' alias mv='mv -i' </nowiki></pre> * 保存编辑好的文件 [[HTML(<a name="How_to_setup_a_LoJack_system_for_your_laptop"></a>)]] ==== 如何 setup a [http://en.wikipedia.org/wiki/Lojack LoJack] system for your laptop ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] * Read [[DapperGuide#How_to_assign_Hostname_to_local_machine_with_dynamic_IP_using_free_DynDNS_service| #How to assign Hostname to local machine with dynamic IP using free DynDNS service]] '''What:''' Quote from Wikipedia: "LoJack is an aftermarket vehicle tracking system that allows cars to be tracked by police after being stolen. The manufacturer claims a 90% recovery rate. The name "LoJack" is a play on the word "hijack," meaning the theft of a vehicle through force." '''Why:''' If your laptop is ever stolen and connected to the Internet. You will be able to find out from what IP it connects to the Internet from and contact the authorities. '''How:''' * Get a free dynamic IP account from one of the many providers. Here we will use [https://www.dyndns.com/ DynDNS]. * Install ddclient. In the section [[DapperGuide#How_to_assign_Hostname_to_local_machine_with_dynamic_IP_using_free_DynDNS_service| #How to assign Hostname to local machine with dynamic IP using free DynDNS service]] we installed the package ''ipcheck'', here we prefer to use ''ddclient'' because it can get the IP from an external source on the Internet instead of getting it from a network adapter. <pre><nowiki>sudo apt-get install ddclient </nowiki></pre> * Edit the configuration file ''/etc/ddclient.conf'' using you fevorite text editor (emacs, gedit, kedit or even vi) <pre><nowiki>sudo emacs /etc/ddclient.conf </nowiki></pre> * Make it look like this: <pre><nowiki># Configuration file for ddclient generated by debconf # # /etc/ddclient.conf pid=/var/run/ddclient.pid protocol=dyndns2 use=web server=members.dyndns.org login=YourNameHere password='YourPasswordHere' YourHostNameHere.gotmyip.com </nowiki></pre> NOTE: *** Make sure that you use the ''web'' IP detection method. *** Specify your own user id instead of the place holder ''YourNameHere''. *** Specify your own password instead of the place holder ''YourPasswordHere'', make sure to surround it with single quotes. *** The last line should specify the hostname you registered with the dynamic IP service. * You can now start the ddclient daemon, or wait until your next reboot. <pre><nowiki>sudo /etc/init.d/ddclient start </nowiki></pre> * The hostname you registered with your dynamic IP service should be updated. You can test it with the ''ping'' command: <pre><nowiki>ping YourHostNameHere.gotmyip.com </nowiki></pre> Even if your laptop has a firewall that prevents pings the hostname should resolve to the IP of the network gateway that your laptop is connected to. Now all that is left is for someone to steal your laptop..... '''References:''' * [http://ddclient.sourceforge.net/index.php http://ddclient.sourceforge.net/index.php] [[HTML(<a name="Boot_menu"></a>)]] === Boot menu === [[HTML(<a name="How_to_gain_root_user_access_without_login"></a>)]] ==== 如何 gain root user access without login ==== * [[DapperGuide#General_Notes|基本备注]] * Easiest method (will not work if GRUB menu password is set) ***** Boot-up computer ***** If GRUB menu is hidden, press 'Esc' to enter the GRUB menu ***** Select <pre><nowiki>Ubuntu, kernel 2.6.10-5-386 (recovery mode) </nowiki></pre> * ***** Press 'Enter' to boot * Other methods ***** Read [[DapperGuide#How_to_modify_kernel_boot-up_arguments.2C_to_gain_root_user_access| #How to modify kernel boot-up arguments, to gain root user access]] ***** Read [[DapperGuide#How_to_use_Ubuntu_Installation_CD.2C_to_gain_root_user_access| #How to use Ubuntu Installation CD, to gain root user access]] [[HTML(<a name="How_to_modify_kernel_boot-up_arguments.2C_to_gain_root_user_access"></a>)]] ==== 如何 modify kernel boot-up arguments, to gain root user access ==== * [[DapperGuide#General_Notes|基本备注]] * Boot-up computer * If GRUB menu is hidden, press 'Esc' to enter the GRUB menu * If GRUB password is set, press 'p' to unlock the GRUB menu * Select <pre><nowiki>Ubuntu, kernel 2.6.10-5-386 </nowiki></pre> * Press 'e' to edit the commands before booting * Select <pre><nowiki>kernel /boot/vmlinuz-2.6.10-5-386 root=/dev/hda2 ro quiet splash </nowiki></pre> * Press 'e' to edit the selected command in the boot sequence * Add "rw init=/bin/bash" to the end of the arguments <pre><nowiki>grub edit> kernel /boot/vmlinuz-2.6.10-5-386 root=/dev/hda2 ro quiet splash rw init=/bin/bash </nowiki></pre> * Press 'b' to boot [[HTML(<a name="How_to_use_Ubuntu_Installation_CD.2C_to_gain_root_user_access"></a>)]] ==== 如何 use Ubuntu Installation CD, to gain root user access ==== * [[DapperGuide#General_Notes|基本备注]] * Boot-up computer into Ubuntu Installation CD * At "boot:" prompt, add "rescue" to the argument <pre><nowiki>boot: rescue </nowiki></pre> * Follow the instructions on screen [[HTML(<a name="How_to_change_root_user.2Fmain_user_password_if_forgotten"></a>)]] ==== 如何 change root user/main user password if forgotten ==== * [[DapperGuide#General_Notes|基本备注]] * Read [[DapperGuide#How_to_gain_root_user_access_without_login| #How to gain root user access without login]] * To change root user password <pre><nowiki># passwd root </nowiki></pre> * To change main user password <pre><nowiki># passwd system_main_username </nowiki></pre> [[HTML(<a name="How_to_change_GRUB_menu_password_if_forgotten"></a>)]] ==== 如何 change GRUB menu password if forgotten ==== * [[DapperGuide#General_Notes|基本备注]] <pre><nowiki>grub </nowiki></pre> <pre><nowiki>grub> md5crypt Password: ****** (ubuntu) Encrypted: $1$ZWnke0$1fzDBVjUcT1Mpdd4u/T961 (encrypted password) grub> quit </nowiki></pre> <pre><nowiki>sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup gksudo gedit /boot/grub/menu.lst </nowiki></pre> * 查找如下行 <pre><nowiki>... password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/ ... </nowiki></pre> * 使用下面的行替换 <pre><nowiki>password --md5 $1$ZWnke0$1fzDBVjUcT1Mpdd4u/T961 (encrypted password above) </nowiki></pre> * 保存编辑好的文件 [[HTML(<a name="How_to_restore_GRUB_menu_after_Windows_installation"></a>)]] ==== 如何 restore GRUB menu after Windows installation ==== * Use [http://adrian15.raulete.net/grub/tiki-index.php Super Grub Disk] * More info on how to use it [http://users.bigpond.net.au/hermanzone/SuperGrubDiskPage.html here] [[HTML(<a name="How_to_identify_the_name_of_the_boot_drive_.28hd0.2C_hd1.2C_hd2.2C_etc.29"></a>)]] ==== 如何 identify the name of the boot drive (hd0, hd1, hd2, etc) ==== Press "c" on boot menu. If you don't see a boot menu, press ESC key first when booting to show the boot menu. Type: <pre><nowiki>root (hd0,0) </nowiki></pre> Most likely you will get "(hd0,0) ext2fs", which should be your current Linux drive. Now change hd0 to hd1 to see what is there. <pre><nowiki>root (hd1,0) </nowiki></pre> If you get "(hd1,0) filesystem type unknown, partition type 0x7", then hd1 is a Windows drive. Now change hd1 to hd2, keep going until you reach hd7. [[HTML(<a name="How_to_add_Windows_entry_into_GRUB_menu"></a>)]] ==== 如何 add Windows entry into GRUB menu ==== * [[DapperGuide#General_Notes|基本备注]] * Read [[DapperGuide#How_to_list_partition_tables| #How to list partition tables]] ''e.g. Assumed that /dev/hda1 is the location of Windows partition'' <pre><nowiki>sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup gksudo gedit /boot/grub/menu.lst </nowiki></pre> * 在文件的结束增加下面的行 <pre><nowiki>title Microsoft Windows root (hd0,0) savedefault makeactive chainloader +1 </nowiki></pre> * 保存编辑好的文件 [[HTML(<a name="How_to_boot_into_Windows_installed_on_a_seperate_SATA_drive"></a>)]] ==== 如何 boot into Windows installed on a seperate SATA drive ==== * [[DapperGuide#General_Notes|基本备注]] * Read [[DapperGuide#How_to_identify_the_name_of_the_boot_drive_.28hd0.2C_hd1.2C_hd2.2C_etc.29| #How to identify the name of the boot drive (hd0, hd1, hd2, etc)]] This configuration applies to people who have Linux installed on a IDE drive, and Windows installed on a seperate SATA. The IDE drive boots first, so we need to add an entry to the boot menu on the Linux disk. Here we assume the name of your Windows drive is hd1. If you are not sure, click the link above to find out. <pre><nowiki>sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup gksudo gedit /boot/grub/menu.lst </nowiki></pre> * 在文件的结束增加下面的行. <pre><nowiki>title Windows XP on SATA drive map (hd0) (hd1) map (hd1) (hd0) chainloader (hd1,0)+1 </nowiki></pre> * 保存编辑好的文件 [[HTML(<a name="How_to_read_Linux_partitions_.28ext2.2C_ext3.29_in_Windows_machine"></a>)]] ==== 如何 read Linux partitions (ext2, ext3) in Windows machine ===== * [[DapperGuide#General_Notes|基本备注]] * Download Explore2fs: [http://easylinux.info/uploads/explore2fs-1.07.zip Here] OR * See [http://www.fs-driver.org/index.html www.fs-driver.org] [[HTML(<a name="Tips_.26_Tricks"></a>)]] === Tips & Tricks === [[HTML(<a name="How_to_restart_GNOME_without_rebooting_computer"></a>)]] ==== 如何 restart GNOME without rebooting computer ==== * [[DapperGuide#General_Notes|基本备注]] * Save and close all opened applications <pre><nowiki>Press 'Ctrl + Alt + Backspace' </nowiki></pre> or <pre><nowiki>sudo /etc/init.d/gdm restart </nowiki></pre> [[HTML(<a name="How_to_turn_on_Num_Lock_on_GNOME_startup"></a>)]] ==== 如何 turn on Num Lock on GNOME startup ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] <pre><nowiki>sudo apt-get install numlockx sudo cp /etc/X11/gdm/Init/Default /etc/X11/gdm/Init/Default_backup gksudo gedit /etc/X11/gdm/Init/Default </nowiki></pre> * 查找如下行 <pre><nowiki>... exit 0 </nowiki></pre> * Add the following lines above it <pre><nowiki>if [ -x /usr/bin/numlockx ]; then /usr/bin/numlockx on fi </nowiki></pre> * 保存编辑好的文件 * Read [[DapperGuide#How_to_restart_GNOME_without_rebooting_computer| #How to restart GNOME without rebooting computer]] [[HTML(<a name="How_to_remap_the_Caps_Lock_key_as_another_Control_key"></a>)]] ==== 如何 remap the Caps Lock key as another Control key ==== * [[DapperGuide#General_Notes|基本备注]] <pre><nowiki>gksudo gedit /etc/console-tools/remap </nowiki></pre> [[HTML(<a name="In_the_Console"></a>)]] ===== In the Console ===== * Change <pre><nowiki>#s/keycode 58 == Caps_Lock/keycode 58 == Control/; </nowiki></pre> to <pre><nowiki>s/keycode 58 == Caps_Lock/keycode 58 == Control/; </nowiki></pre> * Save your work <pre><nowiki>sudo /etc/init.d/console-screen.sh </nowiki></pre> * Try using it [[HTML(<a name="In_X_Windows"></a>)]] ===== In X Windows ===== <pre><nowiki>gksudo gedit ~/.Xmodmap </nowiki></pre> * Add this: <pre><nowiki>keycode 66 = Control_L clear Lock add Control = Control_L </nowiki></pre> * Now, apply the changes. <pre><nowiki>xmodmap ~/.Xmodmap </nowiki></pre> * To apply them on startup: <pre><nowiki>gedit ~/.xinitrc </nowiki></pre> * Make the first line this: <pre><nowiki>xmodmap ~/.Xmodmap </nowiki></pre> * 重启 X (Ctrl - Alt - Backspace) * Log In, a dialog should pop up, add .Xmodmap to the left side with the add button, and Save. [[HTML(<a name="How_to_run_programs_on_startup_when_login_into_GNOME"></a>)]] ==== 如何 run programs on startup when login into GNOME ==== * [[DapperGuide#General_Notes|基本备注]] * 系统 -> Preferences -> Sessions * Sessions <pre><nowiki>Startup Programs Tab -> Add/Edit/Delete </nowiki></pre> [[HTML(<a name="How_to_speed-up_your_Ubuntu_box"></a>)]] ==== 如何 speed-up your Ubuntu box ==== * Read the following post: [http://ubuntuforums.org/showthread.php?t=189192] [[HTML(<a name="How_to_switch_to_Console_mode_in_GNOME"></a>)]] ==== 如何 switch to Console mode in GNOME ==== * [[DapperGuide#General_Notes|基本备注]] * To switch to Console mode <pre><nowiki>Press 'Ctrl + Alt + F1' (F2 - F6) </nowiki></pre> * To switch between consles in Console mode <pre><nowiki>Press 'Alt + F1' (F2 - F6) </nowiki></pre> * To switch back to GNOME mode <pre><nowiki>Press 'Alt + F7' </nowiki></pre> [[HTML(<a name="How_to_disable_Ctrl.2BAlt.2BBackspace_from_restarting_X_in_GNOME"></a>)]] ==== 如何 disable Ctrl+Alt+Backspace from restarting X in GNOME ==== * [[DapperGuide#General_Notes|基本备注]] <pre><nowiki>sudo cp /etc/X11/xorg.conf /etc/X11/xorg.conf_backup gksudo gedit /etc/X11/xorg.conf </nowiki></pre> * 在文件的结束增加下面的行 <pre><nowiki>Section "ServerFlags" Option "DontZap" "yes" EndSection </nowiki></pre> * 保存编辑好的文件 * Read [[DapperGuide#How_to_restart_GNOME_without_rebooting_computer| #How to restart GNOME without rebooting computer]] [[HTML(<a name="How_to_enable_Ctrl.2BAlt.2BDel_to_open_System_Monitor_in_GNOME"></a>)]] ==== 如何 enable Ctrl+Alt+Del to open System Monitor in GNOME ==== * [[DapperGuide#General_Notes|基本备注]] <pre><nowiki>gconftool-2 -t str --set /apps/metacity/global_keybindings/run_command_9 "<Control><Alt>Delete" gconftool-2 -t str --set /apps/metacity/keybinding_commands/command_9 "gnome-system-monitor" </nowiki></pre> [[HTML(<a name="How_to_refresh_GNOME_desktop"></a>)]] ==== 如何 refresh GNOME desktop ==== * [[DapperGuide#General_Notes|基本备注]] <pre><nowiki>killall nautilus </nowiki></pre> [[HTML(<a name="How_to_refresh_GNOME_panel"></a>)]] ==== 如何 refresh GNOME panel ==== * [[DapperGuide#General_Notes|基本备注]] <pre><nowiki>killall gnome-panel </nowiki></pre> [[HTML(<a name="How_to_enable_autosave_in_Gedit_and_disable_creation_of_some_file.7E_files"></a>)]] ==== 如何 enable autosave in Gedit and disable creation of some_file~ files ==== * [[DapperGuide#General_Notes|基本备注]] * 应用程序 -> 系统工具 -> Configuration Editor * Configuration Editor <pre><nowiki>/ -> apps -> gedit-2 -> preferences -> editor -> save -> create_backup_copy ('''Unchecked''') / -> apps -> gedit-2 -> preferences -> editor -> save -> auto_save ('''Checked''') </nowiki></pre> [[HTML(<a name="How_to_show_all_hidden_files.2Ffolders_in_Nautilus"></a>)]] ==== 如何 show all hidden files/folders in Nautilus ==== * [[DapperGuide#General_Notes|基本备注]] * Places -> Home Folder * To temporary show all hidden files/folders in Nautilus <pre><nowiki>Press 'Ctrl + H' </nowiki></pre> * To permanently show all hidden files/folders in Nautilus <pre><nowiki>Edit 菜单 -> Preferences </nowiki></pre> <pre><nowiki>Views Tab -> Default View -> Show hidden and backup files ('''Checked''') </nowiki></pre> [[HTML(<a name="How_to_browse_files.2Ffolders_as_root_user_in_Nautilus"></a>)]] ==== 如何 browse files/folders as root user in Nautilus ==== * [[DapperGuide#General_Notes|基本备注]] * To install File Browser (Root) <pre><nowiki>gksudo gedit /usr/share/applications/Nautilus-root.desktop </nowiki></pre> * ***** 插入下面的行到新文件 <pre><nowiki>[Desktop Entry] Name=File Browser (Root) Comment=Browse the filesystem with the file manager Exec=gksudo "nautilus --browser %U" Icon=file-manager Terminal=false Type=Application Categories=Application;System; </nowiki></pre> * ***** 保存编辑好的文件 ***** Read [[DapperGuide#How_to_refresh_GNOME_panel| #如何刷新 GNOME 面板]] * To browse files/folders as root user in Nautilus ***** 应用程序 -> 系统工具 -> File Browser (Root) [[HTML(<a name="How_to_change_default_file_type_.22Open_with.22_program"></a>)]] ==== 如何 change default file type "Open with" program ==== * [[DapperGuide#General_Notes|基本备注]] <pre><nowiki>Right click on file -> '''Properties''' </nowiki></pre> <pre><nowiki>Open With Tab -> Add Select "Open with" program </nowiki></pre> <pre><nowiki>Select "Open with" program ('''Checked''') </nowiki></pre> [[HTML(<a name="How_to_change_preferred_email_client_to_Mozilla_Thunderbird"></a>)]] ==== 如何 change preferred email client to Mozilla Thunderbird ==== * [[DapperGuide#General_Notes|基本备注]] * Read [[DapperGuide#How_to_install_Email_Client_.28Mozilla_Thunderbird.29| #How to install Email Client (Mozilla Thunderbird)]] * 系统 -> Preferences -> Preferred Applications * Preferred Applications <pre><nowiki>Mail Reader Tab -> Default Mail Reader -> Command: mozilla-thunderbird %s </nowiki></pre> [[HTML(<a name="How_to_open_files_as_root_user_via_right_click"></a>)]] ==== 如何 open files as root user via right click ==== * [[DapperGuide#General_Notes|基本备注]] <pre><nowiki>gedit $HOME/.gnome2/nautilus-scripts/Open\ as\ root </nowiki></pre> * 插入下面的行到新文件 <pre><nowiki>for uri in $NAUTILUS_SCRIPT_SELECTED_URIS; do gksudo "gnome-open $uri" & done </nowiki></pre> * 保存编辑好的文件 <pre><nowiki>chmod +x $HOME/.gnome2/nautilus-scripts/Open\ as\ root </nowiki></pre> <pre><nowiki>Right click on file -> Scripts -> Open as root </nowiki></pre> [[HTML(<a name="How_to_disable_beep_sound_in_Terminal_mode"></a>)]] ==== 如何 disable beep sound in Terminal mode ==== Not for Dapper---- firingstone * [[DapperGuide#General_Notes|基本备注]] * 应用程序 -> Accessories -> Terminal * Terminal <pre><nowiki>Edit 菜单 -> Current Profile... </nowiki></pre> <pre><nowiki>General Tab -> General -> Terminal bell (Un-Checked) </nowiki></pre> [[HTML(<a name="How_to_handle_mss_protocol_in_Mozilla_Firefox"></a>)]] ==== 如何 handle mss protocol in Mozilla Firefox ==== * [[DapperGuide#General_Notes|基本备注]] * Read [[DapperGuide#How_to_install_VLC_Multimedia_Player_with_plug-in_for_Mozilla_Firefox| #How to install VLC Multimedia Player with plug-in for Mozilla Firefox]] * Open your firefox. * Type as url: about:config Now just right click somewhere into the main window. A little box with options to choose will appear. Choose '''"new"''', then '''"string"'''. Then copy the following line into the appearing text field: <pre><nowiki>network.protocol-handler.app.mms </nowiki></pre> Into the next text field copy this: <pre><nowiki>/usr/bin/X11/vlc </nowiki></pre> Now you do the same thing again, but this time you do not choose "string" but '''"boolean"''', and the line to copy is: <pre><nowiki>network.protocol-handler.external.mms </nowiki></pre> Then set <pre><nowiki>true </nowiki></pre> [[HTML(<a name="How_to_handle_rtsp_.28realmedia.29_protocol_in_Mozilla_Firefox"></a>)]] ==== 如何 handle rtsp (realmedia) protocol in Mozilla Firefox ==== * [[DapperGuide#General_Notes|基本备注]] * Read [[DapperGuide#How_to_install_Multimedia_Player_.28RealPlayer_10.29| #How to install Multimedia Player (RealPlayer 10)]] * Open your firefox. * Type as url: about:config Now just right click somewhere into the main window. A little box with options to choose will appear. Choose '''"new"''', then '''"string"'''. Then copy the following line into the appearing text field: <pre><nowiki>network.protocol-handler.app.rtsp </nowiki></pre> Into the next text field copy this: <pre><nowiki>/usr/bin/X11/realplay </nowiki></pre> Now you do the same thing again, but this time you do not choose "string" but '''"boolean"''', and the line to copy is: <pre><nowiki>network.protocol-handler.external.rtsp </nowiki></pre> Then set <pre><nowiki>true </nowiki></pre> [[HTML(<a name="How_to_load_Web_site_faster_in_Mozilla_Firefox"></a>)]] ==== 如何 load Web site faster in Mozilla Firefox ==== * [[DapperGuide#General_Notes|基本备注]] * 应用程序 -> Internet -> Firefox Web Browser * Mozilla Firefox <pre><nowiki>Address Bar -> about:config </nowiki></pre> <pre><nowiki>Filter: -> network.dns.disableIPv6 -> true network.http.pipelining -> true network.http.pipelining.maxrequests -> 8 network.http.proxy.pipelining -> true </nowiki></pre> * 重启 Mozilla Firefox [[HTML(<a name="How_to_disable_beep_sound_for_link_find_function_in_Mozilla_Firefox"></a>)]] ==== 如何 disable beep sound for link find function in Mozilla Firefox ==== * [[DapperGuide#General_Notes|基本备注]] * 应用程序 -> Internet -> Firefox Web Browser * Mozilla Firefox <pre><nowiki>Address Bar -> about:config </nowiki></pre> <pre><nowiki>Filter: -> accessibility.typeaheadfind.enablesound -> false </nowiki></pre> * 重启 Mozilla Firefox [[HTML(<a name="How_to_apt-get_the_easy_way_.28Synaptic.29"></a>)]] ==== 如何 apt-get the easy way (Synaptic) ==== * [[DapperGuide#General_Notes|基本备注]] * 系统 -> 系统管理 -> Synaptic Package Manager * To enable the extra Universe and Multiverse repositories ***** Settings -> Repositories ***** In the Installation Media tab, click Add. There are three separate repositories; Dapper Drake, Security Updates and Updates. Select each repository and check Officially supported, Restricted copyright, Community maintained (Universe) and Non-free (Multiverse). Ensure you click OK between each repository to save your changes ***** You should now see those three repositories under Channels. Make sure Officially supported, Restricted copyright, Community maintained (Universe) and Non-free (Multiverse) appears under each repository * To add backports and PLF (new versions of many applications. Unsupported. May contain illegal packages. Use at own risk.) ***** Settings -> Repositories ***** Click on Add and then Custom ***** Paste the following four lines into the box and click Add Repository, one line at a time: <pre><nowiki>deb http://archive.ubuntu.com/ubuntu dapper-backports main restricted universe multiverse deb-src http://archive.ubuntu.com/ubuntu dapper-backports main restricted universe multiverse </nowiki></pre> <pre><nowiki>deb http://packages.freecontrib.org/ubuntu/plf dapper free non-free deb-src http://packages.freecontrib.org/ubuntu/plf dapper free non-free </nowiki></pre> <pre><nowiki>deb http://archive.canonical.com/ubuntu dapper-commercial main </nowiki></pre> * To refresh the list of known packages (equivalent to apt-get update) <pre><nowiki>Edit 菜单 -> Reload Package Information </nowiki></pre> * To install all possible upgrades (equivalent to apt-get upgrade) <pre><nowiki>Edit 菜单 -> Mark All Upgrades... -> Default Upgrade Edit 菜单 -> Apply Marked Changes </nowiki></pre> * To search for a package (equivalent to apt-cache search package_name) <pre><nowiki>Edit 菜单 -> Search... Specify the package name </nowiki></pre> * To install the selected package (equivalent to apt-get install package_name) <pre><nowiki>Select "package_name" Package 菜单 -> Mark for Installation Edit 菜单 -> Apply Marked Changes </nowiki></pre> * To remove installed package (equivalent to apt-get remove package_name) <pre><nowiki>Select "package_name" Package 菜单 -> Mark for Removal Edit 菜单 -> Apply Marked Changes </nowiki></pre> [[HTML(<a name="What_packages_do_the_extra_repositories_provide"></a>)]] ==== What packages do the extra repositories provide ==== * [[DapperGuide#General_Notes|基本备注]] * Read [[DapperGuide#How_to_apt-get_the_easy_way_.28Synaptic.29| #How to apt-get the easy way (Synaptic)]] * The [http://packages.freecontrib.org/ubuntu/plf/ PLF repository] provides ***** DVD playback support (libdvdcss2) ***** Skype ***** Sun Java SDK (Software Development Kit) and JRE (Java Runtime Environment) ***** Opera Web browser ***** RealPlayer 10 ***** Win32 binary multimedia codecs [[HTML(<a name="How_to_install.2Funinstall_.deb_files"></a>)]] ==== 如何安装/uninstall .deb files ==== * [[DapperGuide#General_Notes|基本备注]] * To install .deb file <pre><nowiki>sudo dpkg -i package_file.deb </nowiki></pre> * To uninstall .deb file <pre><nowiki>sudo dpkg -r package_name </nowiki></pre> [[HTML(<a name="How_to_convert_.rpm_files_to_.deb_files"></a>)]] ==== 如何 convert .rpm files to .deb files ==== * [[DapperGuide#General_Notes|基本备注]] <pre><nowiki>sudo alien package_file.rpm </nowiki></pre> [[HTML(<a name="How_to_compile_.deb_files_from_source"></a>)]] ==== 如何 compile .deb files from source ==== * [[DapperGuide#General_Notes|基本备注]] * Read [[[How to add extra repositories]] <pre><nowiki>sudo apt-get install checkinstall </nowiki></pre> * Now when you compile something from source after you have run ''./configure'' and ''make'' you can make a .deb file and install it with ''checkinstall''. For more info go to [http://asic-linux.com.mx/%7Eizto/checkinstall/index.php CheclInstall home page] [[HTML(<a name="How_to_rename_all_files_in_directory_at_once"></a>)]] ==== 如何 rename all files in directory at once ==== * [[DapperGuide#General_Notes|基本备注]] * To install "mvb" file name renamer <pre><nowiki>wget -c http://easylinux.info/uploads/mvb_1.6.tgz sudo tar zxvf mvb_1.6.tgz -C /usr/share/ sudo chown -R root:root /usr/share/mvb_1.6/ sudo ln -fs /usr/share/mvb_1.6/mvb /usr/bin/mvb </nowiki></pre> * To rename all files in directory at once <pre><nowiki>mvb NEW_NAME </nowiki></pre> [[HTML(<a name="How_to_manipulate_all_image_files_in_directory_at_once"></a>)]] ==== 如何 manipulate all image files in directory at once ==== * [[DapperGuide#General_Notes|基本备注]] * To install bash batch image processing script ***** [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] <pre><nowiki>sudo apt-get install imagemagick wget -c http://easylinux.info/uploads/bbips.0.3.2.sh sudo cp bbips.0.3.2.sh /usr/bin/bbips sudo chmod 755 /usr/bin/bbips </nowiki></pre> * To manipulate all image files in directory at once <pre><nowiki>bbips </nowiki></pre> [[HTML(<a name="How_to_set_System-wide_Environment_Variables"></a>)]] ==== 如何 set System-wide Environment Variables ==== * [[DapperGuide#General_Notes|基本备注]] <pre><nowiki>sudo cp -p /etc/profile /etc/profile_backup gksudo gedit /etc/profile </nowiki></pre> * Append the System-wide Environment Variables at the end of file * 保存编辑好的文件 [[HTML(<a name="How_to_save_.22man.22_outputs_into_files"></a>)]] ==== 如何 save "man" outputs into files ==== * [[DapperGuide#General_Notes|基本备注]] <pre><nowiki>man command | col -b > file.txt </nowiki></pre> [[HTML(<a name="How_to_hide_GRUB_menu_on_boot-up"></a>)]] ==== 如何 hide GRUB menu on boot-up ==== * [[DapperGuide#General_Notes|基本备注]] <pre><nowiki>sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup gksudo gedit /boot/grub/menu.lst </nowiki></pre> * 查找如下行 <pre><nowiki>... #hiddenmenu ... </nowiki></pre> * 使用下面的行替换 <pre><nowiki>hiddenmenu </nowiki></pre> * 保存编辑好的文件 [[HTML(<a name="How_to_change_the_timeout_seconds_for_GRUB_menu_on_boot-up"></a>)]] ==== 如何 change the timeout seconds for GRUB menu on boot-up ==== * [[DapperGuide#General_Notes|基本备注]] <pre><nowiki>sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup gksudo gedit /boot/grub/menu.lst </nowiki></pre> * 查找如下行 <pre><nowiki>... timeout 3 ... </nowiki></pre> * 使用下面的行替换 <pre><nowiki>timeout X_seconds </nowiki></pre> * 保存编辑好的文件 [[HTML(<a name="How_to_change_default_Operating_System_boot-up_for_GRUB_menu"></a>)]] ==== 如何 change default Operating System boot-up for GRUB menu ===== * [[DapperGuide#General_Notes|基本备注]] <pre><nowiki>sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup gksudo gedit /boot/grub/menu.lst </nowiki></pre> * 查找如下行 <pre><nowiki>... default 0 ... </nowiki></pre> * 使用下面的行替换 <pre><nowiki>default X_sequence </nowiki></pre> * 保存编辑好的文件 [[HTML(<a name="How_to_display_Splash_Image_for_GRUB_menu_on_boot-up"></a>)]] ==== 如何 display Splash Image for GRUB menu on boot-up ==== * [[DapperGuide#General_Notes|基本备注]] ''e.g. Assumed that hd0,1 is the location of Ubuntu boot partition'' <pre><nowiki>wget -c http://easylinux.info/uploads/ubuntu.xpm.gz chmod 644 ubuntu.xpm.gz sudo mkdir /boot/grub/images sudo cp ubuntu.xpm.gz /boot/grub/images/ sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup gksudo gedit /boot/grub/menu.lst </nowiki></pre> * 查找下面的段 <pre><nowiki># menu.lst - See: grub(8), info grub, update-grub(8) # grub-install(8), grub-floppy(8), # grub-md5-crypt, /usr/share/doc/grub # and /usr/share/doc/grub-doc/. ... </nowiki></pre> * Add the following line below it <pre><nowiki>splashimage (hd0,1)/boot/grub/images/ubuntu.xpm.gz </nowiki></pre> * 保存编辑好的文件 [[HTML(<a name="How_to_convert_Wallpaper_to_Splash_Image_for_GRUB_menu"></a>)]] ==== 如何 convert Wallpaper to Splash Image for GRUB menu ==== * [[DapperGuide#General_Notes|基本备注]] ''e.g. Assumed that wallpaper.png is the Wallpaper to be converted to Splash Image'' '' splashimage.xpm.gz is the Splash Image for GRUB menu'' <pre><nowiki>convert -resize 640x480 -colors 14 wallpaper.png splashimage.xpm && gzip splashimage.xpm </nowiki></pre> * Read [[DapperGuide#How_to_display_Splash_Image_for_GRUB_menu_on_boot-up| #How to display Splash Image for GRUB menu on boot-up]] (use splashimage.xpm.gz instead of ubuntu.xpm.gz) [[HTML(<a name="How_to_display_only_one_kernel_on_GRUB_menu"></a>)]] ==== 如何 display only one kernel on GRUB menu ==== * [[DapperGuide#General_Notes|基本备注]] <pre><nowiki>sudo cp /boot/grub/menu.lst /boot/grub/menu.lst_backup-`date +%F` gksudo gedit /boot/grub/menu.lst </nowiki></pre> * 查找如下行 <pre><nowiki>... # howmany=all ... </nowiki></pre> * 使用下面的行替换 <pre><nowiki># howmany=1 </nowiki></pre> Where 1 means to keep the last kernel, 2 to keep the last 2 kernels, etc. Do not delete the # symbol. The menu will be updated once a new kernel will be updated by the system, not before. * 保存编辑好的文件 [[HTML(<a name="How_to_temporary_skip_boot-up_services"></a>)]] ==== 如何 temporary skip boot-up services ==== * [[DapperGuide#General_Notes|基本备注]] <pre><nowiki>Press 'Ctrl + C' </nowiki></pre> [[HTML(<a name="How_to_permanently_disable.2Fenable_boot-up_services"></a>)]] ==== 如何 permanently disable/enable boot-up services ==== * [[DapperGuide#General_Notes|基本备注]] * Read [[DapperGuide#How_to_install_Boot-Up_Manager_.28BUM.29| #How to install Boot-Up Manager (BUM)]] [[HTML(<a name="How_to_clean_.2Ftmp.2F_folder_contents_on_shutdown"></a>)]] ==== 如何 clean /tmp/ folder contents on shutdown ==== * [[DapperGuide#General_Notes|基本备注]] <pre><nowiki>sudo cp /etc/init.d/sysklogd /etc/init.d/sysklogd_backup gksudo gedit /etc/init.d/sysklogd </nowiki></pre> * 查找下面的段 <pre><nowiki>... stop) log_begin_msg "Stopping system log daemon..." start-stop-daemon --stop --quiet --oknodo --exec $binpath --pidfile $pidfile log_end_msg $? ... </nowiki></pre> * Add the following line below it <pre><nowiki> rm -fr /tmp/* /tmp/.??* </nowiki></pre> * 保存编辑好的文件 [[HTML(<a name="How_to_scroll_up_and_down_to_view_previous_outputs_in_Console_mode"></a>)]] ==== 如何 scroll up and down to view previous outputs in Console mode ==== * [[DapperGuide#General_Notes|基本备注]] * To scroll up to view previously outputs <pre><nowiki>Press 'Shift + Page Up' </nowiki></pre> * To scroll down to view previously outputs <pre><nowiki>Press 'Shift + Page Down' </nowiki></pre> [[HTML(<a name="How_to_find_out_which_version_of_Ubuntu_I_am_using"></a>)]] ==== 如何 find out which version of Ubuntu I am using ==== <pre><nowiki>cat /etc/issue </nowiki></pre> [[HTML(<a name="How_to_set_up_automatic_background_change_.28GNOME.29"></a>)]] ==== 如何 set up automatic background change (GNOME) ==== * [[DapperGuide#General_Notes|基本备注]] <pre><nowiki>mkdir ~/.backgrounds cd ~/.backgrounds wget -c http://easylinux.info/uploads/change_background.py chmod +x change_background.py </nowiki></pre> * To change desktop background every time you reboot your computer <pre><nowiki>export EDITOR=gedit && crontab -e </nowiki></pre> * Add the following line at the end of file <pre><nowiki>@reboot ~/.backgrounds/change_background.py </nowiki></pre> For more information about periodic processes see <pre><nowiki>man 5 crontab </nowiki></pre> * ~/.backgrounds is hidden directory, see [[DapperGuide#How_to_show_all_hidden_files.2Ffolders_in_Nautilus| #How to show all hidden files/folders in Nautilus]] * Copy images you wish to see on your background to ~/.backgrounds directory [[HTML(<a name="How_to_set_up_automatic_background_change_.28KDE.29"></a>)]] ==== 如何 set up automatic background change (KDE) ==== * [[DapperGuide#General_Notes|基本备注]] * Go to K-菜单 -> System Settings -> Desktop -> Background * Choose Slide Show * Press Setup... * Press Add... to add pictures you wish to see as desktop background * Set 'Change picture after' to desired picture rotation interval. * Press 'OK' [[HTML(<a name="How_to_add_keyboard_layouts_for_other_languages"></a>)]] ==== 如何 add keyboard layouts for other languages ==== * [[DapperGuide#General_Notes|基本备注]] * Go to 系统 -> Preferences -> Keyboard * Choose Layouts * Press Add... to add the secondary keyboard layout. It is simpler to have two layouts; the maximum is currently four for Xorg. * Choose Layout Options * Expand option Group Shift/Lock behaviour * Choose the key combination that enables you to switch between keyboard layouts. The default is by pressing both Alt keys at the same time. A common alternative is to use Alt+Shift. * Press Close. See [[DapperGuide#How_to_add_the_Keyboard_.28Layout.29_Indicator_applet| #How to add the Keyboard (Layout) Indicator applet]] to add the Keyboard Indicator applet. [[HTML(<a name="How_to_add_keyboard_layouts_toggle_for_other_languages_.28Xfce.29"></a>)]] ==== 如何 add keyboard layouts toggle for other languages (Xfce) ==== * use <tt>*.lst</tt> files on <tt>/etc/X11/xkb/rules</tt> to select ''2nd_laguage_code'' <pre><nowiki>setxkbmap -option grp:switch,grp:alt_shift,grp_led:scroll us,''2nd_laguage_code'' </nowiki></pre> * you can add it to a startup file, which will be set to be executed on startup, with the following lines (remember to 'chmod +x' the file): <pre><nowiki>#!/bin/tcsh setxkbmap -option grp:switch,grp:alt_shift,grp_led:scroll us,il </nowiki></pre> [[HTML(<a name="How_to_add_the_Keyboard_.28Layout.29_Indicator_applet"></a>)]] ==== 如何 add the Keyboard (Layout) Indicator applet ==== * [[DapperGuide#General_Notes|基本备注]] * Read [[DapperGuide#How_to_add_keyboard_layouts_for_other_languages| #How to add keyboard layouts for other languages]] * Right-click on empty space on the top panel so that you see the pop-up menu. * Click Add to Panel... * Choose Keyboard Indicator (it is under the Utilities section, at the end) The Keyboard Indicator applet appears on the panel. The default language should be USA for U.S. English. You can either right-click on this applet for more options or see above on how to configure. [[HTML(<a name="How_to_type_extended_characters"></a>)]] ==== 如何 type extended characters ==== * [[DapperGuide#General_Notes|基本备注]] * Read [[DapperGuide#How_to_add_keyboard_layouts_for_other_languages| #How to add keyboard layouts for other languages]] * Read [[DapperGuide#How_to_add_the_Keyboard_.28Layout.29_Indicator_applet| #How to add the Keyboard (Layout) Indicator applet]] * Add the keyboard layout US English International (with dead keys) * Make US English International (with dead keys) the default keyboard layout. The key marked ['"] is now a dead key. When you press it, nothing happens. However if you press a consonant immediately afterwards, the consonant appears with an accent. * ' + a = á * ' + e = é * and so on for i-í, o-ó, y-ý, c-ć, z-ź, n-ń, l-ĺ, u-ú, r-ŕ * " + a = ä * " + e = ë * and so on for y-ÿ, u-ü, i-ï, o-ö Similarly, ` and a consonant generates à, è, ù, ì, ò. Similarly, ~ and a consonant generates ã, ũ, ĩ, õ, ñ. To type ' and ", press RightAlt+' and RightAlt+" respectively. To type ' and ", you may also press '+<space> and "+<space> respectively. There are more characters available by keeping RightAlt pressed and typing a character. Therefore, * RightAlt+q = ä * RightAlt+w = å * RightAlt+e = é * RightAlt+r = ® * RightAlt+t = þ * RightAlt+y = ü * RightAlt+u = ú * RightAlt+i = í * RightAlt+o = ó * RightAlt+p = ö * RightAlt+[ and ] for « and » respectively. * RightAlt+a = á * RightAlt+s = ß * RightAlt+d = ð * RightAlt+l = ø * RightAlt+; = ¶ * RightAlt+: = ° * RightAlt+z = æ * RightAlt+c = © * RightAlt+n = ñ * RightAlt+m = µ * RightAlt+, = ç * RightAlt+/ = ¿ * RightAlt+1 = ¡ * RightAlt+2 = ² * RightAlt+3 = ³ * RightAlt+4 = ¤ * RightAlt+5 = € * RightAlt+6 = ¼ * RightAlt+7 = ½ * RightAlt+8 = ¾ * RightAlt+9 = ‘ * RightAlt+0 = ’ * RightAlt+- = ¥ * RightAlt+= = × * RightAlt+! = ¹ * RightAlt+@, then o = ő (and Ő). * RightAlt+#, then a = ā (and Ā). Similarly for ēĒ, ūŪ, īĪ, ōŌ. * RightAlt+$ = £ * RightAlt+% = * RightAlt+^ = * RightAlt+& = * RightAlt+*, then a = ą (and Ą). Similarly for ęĘ, įĮ. * RightAlt+(, then a = ă (and Ă) * RightAlt+(, then g = ğ (and Ğ) * RightAlt+), then a = å (and Å) * RightAlt+_ = * RightAlt++ = ÷ [[HTML(<a name="How_to_set_the_Compose_key_to_type_special_characters"></a>)]] ==== 如何 set the Compose key to type special characters ==== * [[DapperGuide#General_Notes|基本备注]] * Read [[DapperGuide#How_to_add_keyboard_layouts_for_other_languages| #How to add keyboard layouts for other languages]] * Read [[DapperGuide#How_to_add_the_Keyboard_.28Layout.29_Indicator_applet| #How to add the Keyboard (Layout) Indicator applet]] * Click '''System''', '''Preferences''', '''Keyboard'''. * Under '''Layout Options''', expand on '''Compose key position'''. * Choose '''Right-Win key is compose''', click Close. Now you can type extended characters using the RightWin key (next to AltGr), according to [http://cvs.gnome.org/viewcvs/gtk%2B/gtk/gtkimcontextsimple.c?view=markup this keyboard settings file]. Specifically, the lines that start with ''GDK_Multi_key'' are those that we can use here. The '''Compose''' key is actually '''GDK_Multi_key'''. Some examples, * RightWin + C + = produces € * RightWin + = + C produces € * RightWin + C + O produces © * RightWin + O + C produces © * RightWin + a + ' produces á * RightWin + a + " produces ä * RightWin + a + ` produces à * RightWin + a + ~ produces ã * RightWin + a + * produces å * RightWin + a + ^ produces â * RightWin + a + > produces â * RightWin + a + , produces ą * RightWin + e + - produces ē * RightWin + S + 1 produces ¹ * RightWin + S + 2 produces ² * RightWin + S + 3 produces ³ [[HTML(<a name="How_to_install_ubuntu-title_font_used_in_Ubuntu_logo"></a>)]] ==== 如何安装 ubuntu-title font used in Ubuntu logo ==== * [[DapperGuide#General_Notes|基本备注]] <pre><nowiki>sudo apt-get install ttf-ubuntu-title </nowiki></pre> Now you can use this font in your favorite applications [[HTML(<a name="Servers"></a>)]] === Servers === [[HTML(<a name="AntiVirus_Server"></a>)]] ==== AntiVirus Server ==== [[HTML(<a name="How_to_install_ClamAV_AntiVirus_Server"></a>)]] ==== 如何安装 ClamAV AntiVirus Server ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] <pre><nowiki>sudo apt-get install clamav </nowiki></pre> [[HTML(<a name="How_to_manually_update_virus_databases"></a>)]] ==== 如何 manually update virus databases ==== * [[DapperGuide#General_Notes|基本备注]] * Read [[DapperGuide#How_to_install_ClamAV_AntiVirus_Server| #How to install ClamAV AntiVirus Server]] <pre><nowiki>sudo freshclam </nowiki></pre> [[HTML(<a name="How_to_manually_scan_files.2Ffolders_for_viruses"></a>)]] ==== 如何 manually scan files/folders for viruses ==== * [[DapperGuide#General_Notes|基本备注]] * Read [[DapperGuide#How_to_install_ClamAV_AntiVirus_Server| #How to install ClamAV AntiVirus Server]] <pre><nowiki>sudo clamscan -r /location_of_files_or_folders </nowiki></pre> [[HTML(<a name="How_to_automatically_scan_files.2Ffolders_for_viruses"></a>)]] ==== 如何 automatically scan files/folders for viruses ==== * [[DapperGuide#General_Notes|基本备注]] * Read [[DapperGuide#How_to_install_ClamAV_AntiVirus_Server| #How to install ClamAV AntiVirus Server]] ''e.g. Automatically scan files/folders for viruses at midnight everyday'' '' * * * * * means minute hour date month year'' <pre><nowiki>export EDITOR=gedit && sudo crontab -e </nowiki></pre> * Append the following line at the end of file <pre><nowiki>00 00 * * * sudo clamscan -r /location_of_files_or_folders </nowiki></pre> * 保存编辑好的文件 [[HTML(<a name="Print_Server_.28cupsd.29"></a>)]] ==== Print Server (cupsd) ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] [[HTML(<a name="How_to_install_cupsd"></a>)]] ==== 如何安装 cupsd ==== ''Cupsd should be automatically installed during standard instaltion. Checkout if there is a file "/etc/init.d/cupsys". If you want to manually install it, do'' <pre><nowiki> sudo apt-get install cupsys* </nowiki></pre> [[HTML(<a name="How_to_add_a_printer"></a>)]] ==== 如何 add a printer ==== * Go to 系统 -> 系统管理 -> Printing. * Choose "Add printer". * "Add printer wizard" should start and tell you what to do. [[HTML(<a name="How_to_print_on_remote_Ubuntu_machine_from_another_Ubuntu_machine"></a>)]] ==== 如何 print on remote Ubuntu machine from another Ubuntu machine ==== * Make sure your local printer is well configured. * Server ip address: 192.168.0.1 * Client ip address: 192.168.0.23 * Server configuration <pre><nowiki> sudo cp /etc/cups/cupsd.conf /etc/cups/cupsd.conf.backup gksudo gedit /etc/cups/cupsd.conf </nowiki></pre> ''find the block'' <pre><nowiki><Location /> ... Allow localhost ... </Location> </nowiki></pre> '' and add the following line into it.'' <pre><nowiki> Allow 192.168.0.23 </nowiki></pre> ''Restart cups.'' <pre><nowiki> sudo /etc/init.d/cupsys restart </nowiki></pre> * ***** Client configuration <pre><nowiki> sudo cp /etc/cups/client.conf /etc/cups/client.conf.backup gksudo gedit /etc/cups/client.conf </nowiki></pre> ''And add the following line into it.'' <pre><nowiki> ServerName 192.168.0.1 </nowiki></pre> ''Restart cups.'' <pre><nowiki> sudo /etc/init.d/cupsys restart </nowiki></pre> ''Now try "lpq" and you should see something like'' <pre><nowiki> vitek@lightfox:~$ lpq HPLJ6P is ready no entries </nowiki></pre> [[HTML(<a name="How_to_print_on_remote_Ubuntu_machine_from_a_Windows_machine"></a>)]] ==== 如何 print on remote Ubuntu machine from a Windows machine ==== * Read [[DapperGuide#How_to_install_Samba_Server_for_files.2Ffolders_sharing_service| #How to install Samba Server for files/folders sharing service ]] * Read [[DapperGuide#How_to_print_on_remote_Ubuntu_machine_via_samba| #How to print on remote Ubuntu machine via samba]] [[HTML(<a name="Samba_Server"></a>)]] ==== Samba Server ==== [[HTML(<a name="How_to_install_Samba_Server_for_files.2Ffolders_sharing_service"></a>)]] ==== 如何安装 Samba Server for files/folders sharing service ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] <pre><nowiki>sudo apt-get install samba smbfs </nowiki></pre> [[HTML(<a name="How_to_add.2Fedit.2Fdelete_network_users"></a>)]] ==== 如何 add/edit/delete network users ==== * [[DapperGuide#General_Notes|基本备注]] * Read [[DapperGuide#How_to_install_Samba_Server_for_files.2Ffolders_sharing_service| #How to install Samba Server for files/folders sharing service]] * To add network user ***** Read [[DapperGuide#How_to_add.2Fedit.2Fdelete_system_users| #How to add/edit/delete system users]] <pre><nowiki>sudo smbpasswd -a system_username gksudo gedit /etc/samba/smbusers </nowiki></pre> * ***** Insert the following line into the new file <pre><nowiki>system_username = "network username" </nowiki></pre> * ***** 保存编辑好的文件 * To edit network user <pre><nowiki>sudo smbpasswd -a system_username </nowiki></pre> * To delete network user <pre><nowiki>sudo smbpasswd -x system_username </nowiki></pre> [[HTML(<a name="How_to_share_home_folders_with_read_only_permission_.28Authentication.3DYes.29"></a>)]] ==== 如何 share home folders with read only permission (Authentication=Yes) ==== * [[DapperGuide#General_Notes|基本备注]] * Read [[DapperGuide#How_to_install_Samba_Server_for_files.2Ffolders_sharing_service| #How to install Samba Server for files/folders sharing service]] <pre><nowiki>sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup gksudo gedit /etc/samba/smb.conf </nowiki></pre> * 查找如下行 <pre><nowiki>... ; security = user ... </nowiki></pre> * 使用下面的行替换 <pre><nowiki> security = user username map = /etc/samba/smbusers </nowiki></pre> * 保存编辑好的文件 * Read [[DapperGuide#How_to_add.2Fedit.2Fdelete_network_users| #How to add/edit/delete network users]] <pre><nowiki>sudo testparm sudo /etc/init.d/samba restart </nowiki></pre> [[HTML(<a name="How_to_share_home_folders_with_read.2Fwrite_permissions_.28Authentication.3DYes.29"></a>)]] ==== 如何 share home folders with read/write permissions (Authentication=Yes) ==== * [[DapperGuide#General_Notes|基本备注]] * Read [[DapperGuide#How_to_install_Samba_Server_for_files.2Ffolders_sharing_service| #How to install Samba Server for files/folders sharing service]] <pre><nowiki>sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup gksudo gedit /etc/samba/smb.conf </nowiki></pre> * 查找如下行 <pre><nowiki>... ; security = user ... </nowiki></pre> * 使用下面的行替换 <pre><nowiki> security = user username map = /etc/samba/smbusers </nowiki></pre> * 查找下面的段 <pre><nowiki>... # By default, the home directories are exported read-only. Change next # parameter to 'yes' if you want to be able to write to them. writable = no ... </nowiki></pre> * 使用下面的行替换 <pre><nowiki># By default, the home directories are exported read-only. Change next # parameter to 'yes' if you want to be able to write to them. writable = yes </nowiki></pre> * 保存编辑好的文件 * Read [[DapperGuide#How_to_add.2Fedit.2Fdelete_network_users| #How to add/edit/delete network users]] <pre><nowiki>sudo testparm sudo /etc/init.d/samba restart </nowiki></pre> [[HTML(<a name="How_to_share_group_folders_with_read_only_permission_.28Authentication.3DYes.29"></a>)]] ==== 如何 share group folders with read only permission (Authentication=Yes) ==== * [[DapperGuide#General_Notes|基本备注]] * Read [[DapperGuide#How_to_install_Samba_Server_for_files.2Ffolders_sharing_service| #How to install Samba Server for files/folders sharing service]] <pre><nowiki>sudo mkdir /home/group sudo chmod 777 /home/group/ sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup gksudo gedit /etc/samba/smb.conf </nowiki></pre> * 查找如下行 <pre><nowiki>... ; security = user ... </nowiki></pre> * 使用下面的行替换 <pre><nowiki> security = user username map = /etc/samba/smbusers </nowiki></pre> * 在文件的结束增加下面的行 <pre><nowiki>[Group] comment = Group Folder path = /home/group public = yes writable = no valid users = system_username1 system_username2 create mask = 0700 directory mask = 0700 force user = nobody force group = nogroup </nowiki></pre> * 保存编辑好的文件 * Read [[DapperGuide#How_to_add.2Fedit.2Fdelete_network_users| #How to add/edit/delete network users]] <pre><nowiki>sudo testparm sudo /etc/init.d/samba restart </nowiki></pre> [[HTML(<a name="How_to_share_group_folders_with_read.2Fwrite_permissions_.28Authentication.3DYes.29"></a>)]] ==== 如何 share group folders with read/write permissions (Authentication=Yes) ==== * [[DapperGuide#General_Notes|基本备注]] * Read [[DapperGuide#How_to_install_Samba_Server_for_files.2Ffolders_sharing_service| #How to install Samba Server for files/folders sharing service]] <pre><nowiki>sudo mkdir /home/group sudo chmod 777 /home/group/ sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup gksudo gedit /etc/samba/smb.conf </nowiki></pre> * 查找如下行 <pre><nowiki>... ; security = user ... </nowiki></pre> * 使用下面的行替换 <pre><nowiki> security = user username map = /etc/samba/smbusers </nowiki></pre> * 在文件的结束增加下面的行 <pre><nowiki>[Group] comment = Group Folder path = /home/group public = yes writable = yes valid users = system_username1 system_username2 create mask = 0700 directory mask = 0700 force user = nobody force group = nogroup </nowiki></pre> * 保存编辑好的文件 * Read [[DapperGuide#How_to_add.2Fedit.2Fdelete_network_users| #How to add/edit/delete network users]] <pre><nowiki>sudo testparm sudo /etc/init.d/samba restart </nowiki></pre> [[HTML(<a name="How_to_share_public_folders_with_read_only_permission_.28Authentication.3DYes.29"></a>)]] ==== 如何 share public folders with read only permission (Authentication=Yes) ==== * [[DapperGuide#General_Notes|基本备注]] * Read [[DapperGuide#How_to_install_Samba_Server_for_files.2Ffolders_sharing_service| #How to install Samba Server for files/folders sharing service]] <pre><nowiki>sudo mkdir /home/public sudo chmod 777 /home/public/ sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup gksudo gedit /etc/samba/smb.conf </nowiki></pre> * 查找如下行 <pre><nowiki>... ; security = user ... </nowiki></pre> * 使用下面的行替换 <pre><nowiki> security = user username map = /etc/samba/smbusers </nowiki></pre> * 在文件的结束增加下面的行 <pre><nowiki>[public] comment = Public Folder path = /home/public public = yes writable = no create mask = 0777 directory mask = 0777 force user = nobody force group = nogroup </nowiki></pre> * 保存编辑好的文件 * Read [[DapperGuide#How_to_add.2Fedit.2Fdelete_network_users| #How to add/edit/delete network users]] <pre><nowiki>sudo testparm sudo /etc/init.d/samba restart </nowiki></pre> [[HTML(<a name="How_to_share_public_folders_with_read.2Fwrite_permissions_.28Authentication.3DYes.29"></a>)]] ==== 如何 share public folders with read/write permissions (Authentication=Yes) ==== * [[DapperGuide#General_Notes|基本备注]] * Read [[DapperGuide#How_to_install_Samba_Server_for_files.2Ffolders_sharing_service| #How to install Samba Server for files/folders sharing service]] <pre><nowiki>sudo mkdir /home/public sudo chmod 777 /home/public/ sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup gksudo gedit /etc/samba/smb.conf </nowiki></pre> * 查找如下行 <pre><nowiki>... ; security = user ... </nowiki></pre> * 使用下面的行替换 <pre><nowiki> security = user username map = /etc/samba/smbusers </nowiki></pre> * 在文件的结束增加下面的行 <pre><nowiki>[public] comment = Public Folder path = /home/public public = yes writable = yes create mask = 0777 directory mask = 0777 force user = nobody force group = nogroup </nowiki></pre> * 保存编辑好的文件 * Read [[DapperGuide#How_to_add.2Fedit.2Fdelete_network_users| #How to add/edit/delete network users]] <pre><nowiki>sudo testparm sudo /etc/init.d/samba restart </nowiki></pre> [[HTML(<a name="How_to_share_public_folders_with_read_only_permission_.28Authentication.3DNo.29"></a>)]] ==== 如何 share public folders with read only permission (Authentication=No) ==== * [[DapperGuide#General_Notes|基本备注]] * Read [[DapperGuide#How_to_install_Samba_Server_for_files.2Ffolders_sharing_service| #How to install Samba Server for files/folders sharing service]] <pre><nowiki>sudo mkdir /home/public sudo chmod 777 /home/public/ sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup gksudo gedit /etc/samba/smb.conf </nowiki></pre> * 查找如下行 <pre><nowiki>... ; security = user ... </nowiki></pre> * 使用下面的行替换 <pre><nowiki> security = share </nowiki></pre> * 在文件的结束增加下面的行 <pre><nowiki>[public] comment = Public Folder path = /home/public public = yes writable = no create mask = 0777 directory mask = 0777 force user = nobody force group = nogroup </nowiki></pre> * 保存编辑好的文件 <pre><nowiki>sudo testparm sudo /etc/init.d/samba restart </nowiki></pre> [[HTML(<a name="How_to_share_public_folders_with_read.2Fwrite_permissions_.28Authentication.3DNo.29"></a>)]] ==== 如何 share public folders with read/write permissions (Authentication=No) ==== * [[DapperGuide#General_Notes|基本备注]] * Read [[DapperGuide#How_to_install_Samba_Server_for_files.2Ffolders_sharing_service| #How to install Samba Server for files/folders sharing service]] <pre><nowiki>sudo mkdir /home/public sudo chmod 777 /home/public/ sudo cp /etc/samba/smb.conf /etc/samba/smb.conf_backup gksudo gedit /etc/samba/smb.conf </nowiki></pre> * 查找如下行 <pre><nowiki>... ; security = user ... </nowiki></pre> * 使用下面的行替换 <pre><nowiki> security = share </nowiki></pre> * 在文件的结束增加下面的行 <pre><nowiki>[public] comment = Public Folder path = /home/public public = yes writable = yes create mask = 0777 directory mask = 0777 force user = nobody force group = nogroup </nowiki></pre> * 保存编辑好的文件 <pre><nowiki>sudo testparm sudo /etc/init.d/samba restart </nowiki></pre> [[HTML(<a name="How_to_print_on_remote_Ubuntu_machine_via_samba"></a>)]] ==== 如何 print on remote Ubuntu machine via samba ==== * Read [[DapperGuide#Print_Server_.28cupsd.29| #Print Server (cupsd)]] * Make sure your Ubuntu printers are configured properly. <pre><nowiki> sudo cp /etc/samba/smb.conf /etc/samba/smb.conf.backup gedit /etc/samba/smb.conf </nowiki></pre> ''Find the following lines'' <pre><nowiki> ... # printing = cups # printcap name = cups ... </nowiki></pre> '' and uncomment them.'' <pre><nowiki> printing = cups printcap name = cups </nowiki></pre> ''Restart cups server'' <pre><nowiki> sudo /etc/init.d/cupsys restart </nowiki></pre> '' Now printers working on your Ubuntu machine should be acessible via samba.'' [[HTML(<a name="SSH_Server"></a>)]] ==== SSH Server ==== [[HTML(<a name="How_to_install_SSH_Server_for_remote_administration_service"></a>)]] ==== 如何安装 SSH Server for remote administration service ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] <pre><nowiki>sudo apt-get install ssh </nowiki></pre> [[HTML(<a name="How_to_SSH_into_remote_Ubuntu_machine"></a>)]] ==== 如何 SSH into remote Ubuntu machine ==== * [[DapperGuide#General_Notes|基本备注]] ''e.g. Assumed that remote Ubuntu machine have installed SSH Server service'' '' Read [[DapperGuide#How_to_install_SSH_Server_for_remote_administration_service| #How to install SSH Server for remote administration service]]'' '' Remote Ubuntu machine: 192.168.0.1'' <pre><nowiki>ssh username@192.168.0.1 </nowiki></pre> [[HTML(<a name="How_to_copy_files.2Ffolders_from_remote_Ubuntu_machine_into_local_machine_.28scp.29"></a>)]] ==== 如何 copy files/folders from remote Ubuntu machine into local machine (scp) ==== * [[DapperGuide#General_Notes|基本备注]] ''e.g. Assumed that remote Ubuntu machine have installed SSH Server service'' '' Read [[DapperGuide#How_to_install_SSH_Server_for_remote_administration_service| #How to install SSH Server for remote administration service]]'' '' Remote Ubuntu machine: 192.168.0.1'' '' Remote files/folders location: /home/username/remotefile.txt'' '' Local machine save location: . (current directory)'' <pre><nowiki>scp -r username@192.168.0.1:/home/username/remotefile.txt . </nowiki></pre> [[HTML(<a name="How_to_copy_files.2Ffolders_from_local_machine_into_remote_Ubuntu_machine_.28scp.29"></a>)]] ==== 如何 copy files/folders from local machine into remote Ubuntu machine (scp) ==== * [[DapperGuide#General_Notes|基本备注]] ''e.g. Assumed that remote Ubuntu machine have installed SSH Server service'' '' Read [[DapperGuide#How_to_install_SSH_Server_for_remote_administration_service| #How to install SSH Server for remote administration service]]'' '' Local files/folders location: localfile.txt'' '' Remote Ubuntu machine: 192.168.0.1'' '' Remote Ubuntu machine save location: /home/username/'' <pre><nowiki>scp -r localfile.txt username@192.168.0.1:/home/username/ </nowiki></pre> [[HTML(<a name="How_to_copy_files.2Ffolders_from_remote_Ubuntu_machine_into_local_machine_.28rsync.29"></a>)]] ==== 如何 copy files/folders from remote Ubuntu machine into local machine (rsync) ==== * [[DapperGuide#General_Notes|基本备注]] ''e.g. Assumed that remote Ubuntu machine have installed SSH Server service'' '' Read [[DapperGuide#How_to_install_SSH_Server_for_remote_administration_service| #How to install SSH Server for remote administration service]]'' '' Remote Ubuntu machine: 192.168.0.1'' '' Remote files/folders location: /home/username/remotefile.txt'' '' Local machine save location: . (current directory)'' <pre><nowiki>rsync -v -u -a --delete --rsh=ssh --stats username@192.168.0.1:/home/username/remotefile.txt . </nowiki></pre> [[HTML(<a name="How_to_copy_files.2Ffolders_from_local_machine_into_remote_Ubuntu_machine_.28rsync.29"></a>)]] ==== 如何 copy files/folders from local machine into remote Ubuntu machine (rsync) ==== * [[DapperGuide#General_Notes|基本备注]] ''e.g. Assumed that remote Ubuntu machine have installed SSH Server service'' '' Read [[DapperGuide#How_to_install_SSH_Server_for_remote_administration_service| #How to install SSH Server for remote administration service]]'' '' Local files/folders location: localfile.txt'' '' Remote Ubuntu machine: 192.168.0.1'' '' Remote Ubuntu machine save location: /home/username/'' <pre><nowiki>rsync -v -u -a --delete --rsh=ssh --stats localfile.txt username@192.168.0.1:/home/username/ </nowiki></pre> [[HTML(<a name="How_to_mount_remote_folders_into_local_Ubuntu_machine_.28sshfs.29"></a>)]] ==== 如何 mount remote folders into local Ubuntu machine (sshfs) ==== * [[DapperGuide#General_Notes|基本备注]] ''e.g. Assumed that remote machine has installed SSH Server service'' '' Read [[DapperGuide#How_to_install_SSH_Server_for_remote_administration_service| #How to install SSH Server for remote administration service]]'' '' Remote machine: 192.168.0.1'' '' Remote machine folder location: /media/music'' * Install sshfs <pre><nowiki>sudo apt-get install sshfs </nowiki></pre> * Load kernel driver for sshfs <pre><nowiki>sudo modprobe fuse </nowiki></pre> * For permanent use add 'fuse' at the end of /etc/modules <pre><nowiki>gksudo gedit /etc/modules </nowiki></pre> * Join the 'fuse' user group <pre><nowiki>sudo adduser your_user_name fuse </nowiki></pre> * Logout and login for this to take effect. * Create local mountpoint in your home directory <pre><nowiki>mkdir ~/remote_music </nowiki></pre> * Mount the remote folder into ~/remote_music <pre><nowiki>sshfs 192.168.0.1:/media/music ~/remote_music </nowiki></pre> [[HTML(<a name="How_to_SSH_into_remote_Ubuntu_machine_via_Windows_machine"></a>)]] ==== 如何 SSH into remote Ubuntu machine via Windows machine ==== * [[DapperGuide#General_Notes|基本备注]] ''e.g. Assumed that remote Ubuntu machine have installed SSH Server service'' '' Read [[DapperGuide#How_to_install_SSH_Server_for_remote_administration_service| #How to install SSH Server for remote administration service]]'' * Download PuTTY: [http://the.earth.li/%7Esgtatham/putty/latest/x86/putty.exe Here] [[HTML(<a name="How_to_copy_files.2Ffolders_from.2Finto_remote_Ubuntu_machine_via_Windows_machine"></a>)]] ==== 如何 copy files/folders from/into remote Ubuntu machine via Windows machine ==== * [[DapperGuide#General_Notes|基本备注]] ''e.g. Assumed that remote Ubuntu machine have installed SSH Server service'' '' Read [[DapperGuide#How_to_install_SSH_Server_for_remote_administration_service| #How to install SSH Server for remote administration service]]'' * Download FileZilla: [http://prdownloads.sourceforge.net/filezilla/FileZilla_2_2_18_setup.exe?download Here] [[HTML(<a name="How_to_limit_the_user_accounts_that_can_connect_through_ssh_remotely"></a>)]] ==== 如何 limit the user accounts that can connect through ssh remotely ==== * [[DapperGuide#General_Notes|基本备注]] ''e.g. If you enable the SSH server, then any user with a valid account can connect remotely'' '' This can lead to security risks, as there exist remote password cracking tools that'' '' try common username/password pairs. '' * Keep a backup of the ssh server configuration file with ''sudo cp /etc/ssh/sshd_config /etc/ssh/sshd_config.ORIGINAL'' * Edit the configuration file ''gksudo gedit /etc/ssh/sshd_config'' * Change the parameter ''PermitRootLogin'' from ''yes'' to ''no''. The superuser must not be able to connect directly from remote. * Add the parameter ''AllowUsers'' and specify the usernames (space separated) that can connect remotely. * You can also use ''DenyUsers'' for fine-grained selection of users. * If you enable the openssh server and you have no intention for now to enable remote connections, you may add ''AllowUsers nosuchuserhere'' to disable anyone connecting. [[HTML(<a name="DHCP_Server"></a>)]] ==== DHCP Server ==== [[HTML(<a name="How_to_install_DHCP_Server_for_automatic_IP_addresses_assignment"></a>)]] ==== 如何安装 DHCP Server for automatic IP addresses assignment ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] ''e.g. Assumed that "eth0" is the interface for network card'' '' IP Address Range: 192.168.0.100 to 192.168.0.200'' '' Subnet Mask: 255.255.255.0'' '' DNS Servers: 202.188.0.133, 202.188.1.5'' '' Domains: tm.net.my'' '' Gateway Address: 192.168.0.1'' <pre><nowiki>sudo apt-get install dhcp3-server sudo cp /etc/default/dhcp3-server /etc/default/dhcp3-server_backup gksudo gedit /etc/default/dhcp3-server </nowiki></pre> * 查找如下行 <pre><nowiki>... INTERFACES="" </nowiki></pre> * 使用下面的行替换 <pre><nowiki>INTERFACES="eth0" </nowiki></pre> * 保存编辑好的文件 <pre><nowiki>sudo cp /etc/dhcp3/dhcpd.conf /etc/dhcp3/dhcpd.conf_backup gksudo gedit /etc/dhcp3/dhcpd.conf </nowiki></pre> * 查找下面的段 <pre><nowiki>... # option definitions common to all supported networks... option domain-name "example.org"; option domain-name-servers ns1.example.org, ns2.example.org; </nowiki></pre> <pre><nowiki>default-lease-time 600; max-lease-time 7200; ... </nowiki></pre> * 使用下面的行替换 <pre><nowiki># option definitions common to all supported networks... #option domain-name "example.org"; #option domain-name-servers ns1.example.org, ns2.example.org; </nowiki></pre> <pre><nowiki>#default-lease-time 600; #max-lease-time 7200; </nowiki></pre> * 查找下面的段 <pre><nowiki>... # A slightly different configuration for an internal subnet. #subnet 10.5.5.0 netmask 255.255.255.224 { # range 10.5.5.26 10.5.5.30; # option domain-name-servers ns1.internal.example.org; # option domain-name "internal.example.org"; # option routers 10.5.5.1; # option broadcast-address 10.5.5.31; # default-lease-time 600; # max-lease-time 7200; #} ... </nowiki></pre> * 使用下面的行替换 <pre><nowiki># A slightly different configuration for an internal subnet. subnet 192.168.0.0 netmask 255.255.255.0 { range 192.168.0.100 192.168.0.200; option domain-name-servers 202.188.0.133, 202.188.1.5; option domain-name "tm.net.my"; option routers 192.168.0.1; option broadcast-address 192.168.0.255; default-lease-time 600; max-lease-time 7200; } </nowiki></pre> * 保存编辑好的文件 <pre><nowiki>sudo /etc/init.d/dhcp3-server restart </nowiki></pre> [[HTML(<a name="Database_Server"></a>)]] ==== Database Server ==== [[HTML(<a name="How_to_install_MYSQL_Database_Server"></a>)]] ==== 如何安装 MYSQL Database Server ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] <pre><nowiki>sudo apt-get install mysql-server </nowiki></pre> * MySQL initially only allows connections from the localhost (127.0.0.1). We'll need to remove that restriction if you wish to make it accessible to everyone on the internet. Open the file /etc/mysql/my.cnf <pre><nowiki>gksudo gedit /etc/mysql/my.cnf </nowiki></pre> * Find the line ''bind-address = 127.0.0.1'' and comment it out <pre><nowiki>... #bind-address = 127.0.0.1 ... </nowiki></pre> * MySQL comes with no root password as default. This is a huge security risk. You'll need to set one. So that the local computer gets root access as well, you'll need to set a password for that too. The local-machine-name is the name of the computer you're working on. For more information see [http://dev.mysql.com/doc/mysql/en/default-privileges.html here] <pre><nowiki>mysqladmin -u root password your-new-password mysqladmin -h root@local-machine-name -u root password your-new-password sudo /etc/init.d/mysql restart </nowiki></pre> [[HTML(<a name="How_to_install_MYSQL_Administrator"></a>)]] ==== 如何安装 MYSQL Administrator ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] * Read [[DapperGuide#How_to_install_MYSQL_Database_Server| #How to install MYSQL Database Server]] <pre><nowiki>sudo apt-get install mysql-admin </nowiki></pre> * Read [[DapperGuide#How_to_refresh_GNOME_panel| #如何刷新 GNOME 面板]] * 应用程序 -> 系统工具 -> MySQL Administrator [[HTML(<a name="How_to_install_Oracle_Database_XE"></a>)]] ==== 如何安装 Oracle Database XE ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] * Read [http://www.oracle.com/technology/tech/linux/install/xe-on-kubuntu.html] * Add the following repository to your /etc/apt/sources.list: <pre><nowiki>deb http://oss.oracle.com/debian unstable main non-free </nowiki></pre> * Install the software using apt-get <pre><nowiki>sudo apt-get update sudo apt-get install oracle-xe </nowiki></pre> * Add your login to the 'dba' group (where your login name is ''username'') <pre><nowiki>sudo usermod -G dba -a ''username'' </nowiki></pre> [[HTML(<a name="Apache_HTTP_Server"></a>)]] ==== Apache HTTP Server ==== [[HTML(<a name="How_to_install_Apache_HTTP_Server_for_HTTP_.28Web.29_Server_service"></a>)]] ==== 如何安装 Apache HTTP Server for HTTP (Web) Server service ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] <pre><nowiki>sudo apt-get install apache2 </nowiki></pre> * [http://localhost] [[HTML(<a name="How_to_install_PHP_for_Apache_HTTP_Server"></a>)]] ==== 如何安装 PHP for Apache HTTP Server ==== [[HTML(<a name="How_to_install_PHP4"></a>)]] ===== 如何安装 PHP4 ===== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] * Read [[DapperGuide#How_to_install_Apache_HTTP_Server_for_HTTP_.28Web.29_Server_service| #How to install Apache HTTP Server for HTTP (Web) Server service]] <pre><nowiki>sudo apt-get install php4 sudo apt-get install libapache2-mod-php4 sudo /etc/init.d/apache2 restart </nowiki></pre> * To test if php4 installed correctly <pre><nowiki>gksudo gedit /var/www/testphp.php </nowiki></pre> * Insert the following line into the new file <pre><nowiki><?php phpinfo(); ?> </nowiki></pre> * 保存编辑好的文件 * [http://localhost/testphp.php] * Be sure to remove the file afterwards, as it may pose a security risk [[HTML(<a name="How_to_install_PHP5"></a>)]] ===== 如何安装 PHP5 ===== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] * Read [[DapperGuide#How_to_install_Apache_HTTP_Server_for_HTTP_.28Web.29_Server_service| #How to install Apache HTTP Server for HTTP (Web) Server service]] <pre><nowiki>sudo apt-get install php5 sudo apt-get install libapache2-mod-php5 sudo /etc/init.d/apache2 restart </nowiki></pre> * To test if php5 installed correctly <pre><nowiki>gksudo gedit /var/www/testphp.php </nowiki></pre> * Insert the following line into the new file <pre><nowiki><?php phpinfo(); ?> </nowiki></pre> * 保存编辑好的文件 * [http://localhost/testphp.php] * Be sure to remove the file afterwards, as it may pose a security risk [[HTML(<a name="How_to_install_MYSQL_for_Apache_HTTP_Server"></a>)]] ==== 如何安装 MYSQL for Apache HTTP Server ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] * Read [[DapperGuide#How_to_install_Apache_HTTP_Server_for_HTTP_.28Web.29_Server_service| #How to install Apache HTTP Server for HTTP (Web) Server service]] * Read [[DapperGuide#How_to_install_PHP_for_Apache_HTTP_Server| #How to install PHP for Apache HTTP Server]] * Read [[DapperGuide#How_to_install_MYSQL_Database_Server| #How to install MYSQL Database Server]] <pre><nowiki>sudo apt-get install libapache2-mod-auth-mysql </nowiki></pre> * Select either php4-mysql or php5-mysql depending on which version of PHP you installed <pre><nowiki>sudo apt-get install php<version-number>-mysql sudo apt-get install phpmyadmin </nowiki></pre> * To get PHP to work with MySQL, open the file (where <version> is either 4 or 5 depending on which PHP you installed) <pre><nowiki>gksudo gedit /etc/php<version>/apache2/php.ini </nowiki></pre> * You'll need to uncomment the ";extension=mysql.so" line so that it looks like this <pre><nowiki>... extension=mysql.so ... </nowiki></pre> * Save the file then exit <pre><nowiki>sudo /etc/init.d/apache2 restart </nowiki></pre> * [http://localhost/phpmyadmin] [[HTML(<a name="How_to_map_URLs_to_folders_outside_.2Fvar.2Fwww.2F"></a>)]] ==== 如何 map URLs to folders outside /var/www/ ==== * [[DapperGuide#General_Notes|基本备注]] * Read [[DapperGuide#How_to_install_Apache_HTTP_Server_for_HTTP_.28Web.29_Server_service| #How to install Apache HTTP Server for HTTP (Web) Server service]] <pre><nowiki>gksudo gedit /etc/apache2/conf.d/alias </nowiki></pre> * 插入下面的行到新文件 <pre><nowiki>Alias /URL-path /location_of_folder/ </nowiki></pre> <pre><nowiki><Directory /location_of_folder/> Options Indexes FollowSymLinks AllowOverride All Order allow,deny Allow from all </Directory> </nowiki></pre> * 保存编辑好的文件 <pre><nowiki>sudo /etc/init.d/apache2 restart </nowiki></pre> * [http://localhost/URL-path] [[HTML(<a name="How_to_change_the_default_port_number_for_Apache_HTTP_Server"></a>)]] ==== 如何 change the default port number for Apache HTTP Server ==== * [[DapperGuide#General_Notes|基本备注]] * Read [[DapperGuide#How_to_install_Apache_HTTP_Server_for_HTTP_.28Web.29_Server_service| #How to install Apache HTTP Server for HTTP (Web) Server service]] ''e.g. Assumed that new port number is 78'' <pre><nowiki>sudo cp /etc/apache2/ports.conf /etc/apache2/ports.conf_backup gksudo gedit /etc/apache2/ports.conf </nowiki></pre> * 查找如下行 <pre><nowiki>Listen 80 </nowiki></pre> * 使用下面的行替换 <pre><nowiki>Listen 78 </nowiki></pre> * 保存编辑好的文件 <pre><nowiki>sudo /etc/init.d/apache2 restart </nowiki></pre> * [http://localhost:78] [[HTML(<a name="How_to_parse_RSS_into_PHP_for_Apache_HTTP_Server"></a>)]] ==== 如何 parse RSS into PHP for Apache HTTP Server ==== * [[DapperGuide#General_Notes|基本备注]] * Read [[DapperGuide#How_to_install_Apache_HTTP_Server_for_HTTP_.28Web.29_Server_service| #How to install Apache HTTP Server for HTTP (Web) Server service]] * Read [[DapperGuide#How_to_install_PHP_for_Apache_HTTP_Server| #How to install PHP for Apache HTTP Server]] ''e.g. Assumed that RSS is DistroWatch.com - News'' <pre><nowiki>wget -c http://easylinux.info/uploads/magpierss-0.71.1.tar.gz sudo mkdir /var/www/feeds sudo tar zxvf magpierss-0.71.1.tar.gz -C /var/www/feeds/ sudo mv /var/www/feeds/magpierss-0.71.1/* /var/www/feeds/ sudo rm -fr /var/www/feeds/magpierss-0.71.1/ sudo chown -R www-data:root /var/www/feeds/ gksudo gedit /var/www/feeds/index.php </nowiki></pre> * 插入下面的行到新文件 <pre><nowiki> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <title>DistroWatch.com - News</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/> <style type="text/css"> /*<![CDATA[*/ /* DEFAULT TAG STYLES */ body { background: #ffffff; margin-left: 20px; font-family: bitstream vera sans,sans-serif; font-size: 9pt; } h1 { font-family: luxi sans,sans-serif; font-size: 15pt; } /*]]>*/ </style> </head> <body> <?php require_once 'rss_fetch.inc'; error_reporting(E_ERROR); $url = 'http://distrowatch.com/news/dw.xml'; $rss = fetch_rss($url); if ($rss) { echo "<h1>"; echo "<a href=$url>", $rss->channel[title], "</a><br/>"; echo "</h1>"; foreach ($rss->items as $item ) { $url = $item[link]; $title = $item[title]; $description = $item[description]; echo "<li>"; echo "<b>Topic:</b> <a href=$url><b>$title</b></a><br/><br/>"; echo "$description<br/><br/>"; echo "</li>"; } } else { echo "<a href=$url>", $url, "</a> - Server Down!<br/>"; } ?> </body> </html> </nowiki></pre> * 保存编辑好的文件 * [http://localhost/feeds/index.php] [[HTML(<a name="FTP_Server"></a>)]] ==== FTP Server ==== [[HTML(<a name="How_to_install_FTP_Server_for_File_Transfer_service"></a>)]] ==== 如何安装 FTP Server for File Transfer service ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] <pre><nowiki>sudo apt-get install proftpd </nowiki></pre> [[HTML(<a name="How_to_configure_FTP_user_to_be_.22jailed.22_.28chrooted.29_into_their_home_directory"></a>)]] ==== 如何配置 FTP user to be "jailed" (chrooted) into their home directory ==== * [[DapperGuide#General_Notes|基本备注]] * Read [[DapperGuide#How_to_install_FTP_Server_for_File_Transfer_service| #How to install FTP Server for File Transfer service]] <pre><nowiki>sudo cp /etc/proftpd.conf /etc/proftpd.conf_backup gksudo gedit /etc/proftpd.conf </nowiki></pre> * 查找下面的段 <pre><nowiki>... DenyFilter \*.*/ ... </nowiki></pre> * Add the following line below it <pre><nowiki>DefaultRoot ~ </nowiki></pre> * 保存编辑好的文件 <pre><nowiki>sudo /etc/init.d/proftpd restart </nowiki></pre> [[HTML(<a name="How_to_configure_FTP_Server_to_allow_anonymous_FTP_user_to_read_only"></a>)]] ==== 如何配置 FTP Server to allow anonymous FTP user to read only ==== * [[DapperGuide#General_Notes|基本备注]] * Read [[DapperGuide#How_to_install_FTP_Server_for_File_Transfer_service| #How to install FTP Server for File Transfer service]] <pre><nowiki>sudo cp /etc/proftpd.conf /etc/proftpd.conf_backup gksudo gedit /etc/proftpd.conf </nowiki></pre> * 在文件的结束增加下面的行 <pre><nowiki><Anonymous ~ftp> User ftp Group nogroup UserAlias anonymous ftp DirFakeUser on ftp DirFakeGroup on ftp RequireValidShell off MaxClients 10 DisplayLogin welcome.msg DisplayFirstChdir .message <Directory *> <Limit WRITE> DenyAll </Limit> </Directory> </Anonymous> </nowiki></pre> * 保存编辑好的文件 <pre><nowiki>sudo /etc/init.d/proftpd restart </nowiki></pre> [[HTML(<a name="How_to_configure_FTP_Server_to_allow_anonymous_FTP_user_to_read.2Fwrite"></a>)]] ==== 如何配置 FTP Server to allow anonymous FTP user to read/write ==== * [[DapperGuide#General_Notes|基本备注]] * Read [[DapperGuide#How_to_install_FTP_Server_for_File_Transfer_service| #How to install FTP Server for File Transfer service]] <pre><nowiki>sudo cp /etc/proftpd.conf /etc/proftpd.conf_backup gksudo gedit /etc/proftpd.conf </nowiki></pre> * 在文件的结束增加下面的行 <pre><nowiki><Anonymous ~ftp> User ftp Group nogroup UserAlias anonymous ftp DirFakeUser on ftp DirFakeGroup on ftp RequireValidShell off MaxClients 10 DisplayLogin welcome.msg DisplayFirstChdir .message </Anonymous> </nowiki></pre> * 保存编辑好的文件 <pre><nowiki>sudo /etc/init.d/proftpd restart </nowiki></pre> [[HTML(<a name="How_to_map_anonymous_FTP_user_to_folders_outside_.2Fhome.2Fftp.2F"></a>)]] ==== 如何 map anonymous FTP user to folders outside /home/ftp/ ==== * [[DapperGuide#General_Notes|基本备注]] * Read [[DapperGuide#How_to_install_FTP_Server_for_File_Transfer_service| #How to install FTP Server for File Transfer service]] <pre><nowiki>sudo cp /etc/proftpd.conf /etc/proftpd.conf_backup gksudo gedit /etc/proftpd.conf </nowiki></pre> * 在文件的结束增加下面的行 <pre><nowiki><Anonymous /location_of_folder/> User ftp Group nogroup UserAlias anonymous ftp DirFakeUser on ftp DirFakeGroup on ftp RequireValidShell off MaxClients 10 DisplayLogin welcome.msg DisplayFirstChdir .message <Directory *> <Limit WRITE> DenyAll </Limit> </Directory> </Anonymous> </nowiki></pre> * 保存编辑好的文件 <pre><nowiki>sudo /etc/init.d/proftpd restart </nowiki></pre> [[HTML(<a name="How_to_change_the_default_port_number_for_FTP_Server"></a>)]] ==== 如何 change the default port number for FTP Server ==== * [[DapperGuide#General_Notes|基本备注]] * Read [[DapperGuide#How_to_install_FTP_Server_for_File_Transfer_service| #How to install FTP Server for File Transfer service]] ''e.g. Assumed that new port number is 77'' <pre><nowiki>sudo cp /etc/proftpd.conf /etc/proftpd.conf_backup gksudo gedit /etc/proftpd.conf </nowiki></pre> * 查找如下行 <pre><nowiki>Port 21 </nowiki></pre> * 使用下面的行替换 <pre><nowiki>Port 77 </nowiki></pre> * 保存编辑好的文件 <pre><nowiki>sudo /etc/init.d/proftpd restart </nowiki></pre> [[HTML(<a name="How_to_ftp_into_remote_Ubuntu_machine_via_Windows_machine"></a>)]] ==== 如何 ftp into remote Ubuntu machine via Windows machine ==== * [[DapperGuide#General_Notes|基本备注]] ''e.g. Assumed that remote Ubuntu machine have installed FTP Server service'' '' Read [[DapperGuide#How_to_install_FTP_Server_for_File_Transfer_service| #How to install FTP Server for File Transfer service]]'' * Download FileZilla: [http://prdownloads.sourceforge.net/filezilla/FileZilla_2_2_18_setup.exe?download Here] [[HTML(<a name="Streaming_Media_Server"></a>)]] ==== Streaming Media Server ==== [[HTML(<a name="How_to_install_GNUMP3d_for_Streaming_Media_Server_service"></a>)]] ==== 如何安装 GNUMP3d for Streaming Media Server service ==== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] * Read [[DapperGuide#How_to_install_Apache_HTTP_Server_for_HTTP_.28Web.29_Server_service| #How to install Apache HTTP Server for HTTP (Web) Server service]] ''e.g. /var/music/ is the directory containing multimedia files'' <pre><nowiki>sudo apt-get install gnump3d </nowiki></pre> * [http://localhost:8888] [[HTML(<a name="How_to_change_the_default_directory_containing_multimedia_files_for_GNUMP3d"></a>)]] ==== 如何 change the default directory containing multimedia files for GNUMP3d ==== * [[DapperGuide#General_Notes|基本备注]] * Read [/DapperGuide#How_to_install_GNUMP3d_for_Streaming_Media_Server_service #How to install GNUMP3d for Streaming Media Server service] ''e.g. Assumed that new directory containing multimedia files is /home/music/'' <pre><nowiki>sudo cp /etc/gnump3d/gnump3d.conf /etc/gnump3d/gnump3d.conf_backup gksudo gedit /etc/gnump3d/gnump3d.conf </nowiki></pre> * 查找如下行 <pre><nowiki>root = /var/music </nowiki></pre> * 使用下面的行替换 <pre><nowiki>root = /home/music </nowiki></pre> * 查找如下行 <pre><nowiki>user = gnump3d </nowiki></pre> * 使用下面的行替换 <pre><nowiki>user = root </nowiki></pre> * 保存编辑好的文件 <pre><nowiki>sudo /etc/init.d/gnump3d restart </nowiki></pre> * [http://localhost:8888] [[HTML(<a name="How_to_change_the_default_port_number_for_GNUMP3d"></a>)]] ==== 如何 change the default port number for GNUMP3d ==== * [[DapperGuide#General_Notes|基本备注]] * Read [[DapperGuide/DapperGuide#How_to_install_GNUMP3d_for_Streaming_Media_Server_service| #How to install GNUMP3d for Streaming Media Server service]] ''e.g. Assumed that new port number is 7878'' <pre><nowiki>sudo cp /etc/gnump3d/gnump3d.conf /etc/gnump3d/gnump3d.conf_backup gksudo gedit /etc/gnump3d/gnump3d.conf </nowiki></pre> * 查找如下行 <pre><nowiki>port = 8888 </nowiki></pre> * 使用下面的行替换 <pre><nowiki>port = 7878 </nowiki></pre> * 保存编辑好的文件 <pre><nowiki>sudo /etc/init.d/gnump3d restart </nowiki></pre> * [http://localhost:7878] [[HTML(<a name="Image_Gallery_Server"></a>)]] ==== Image Gallery Server ==== * For a comparison between Gallery1 and Gallery2 see [http://codex.gallery2.org/index.php/G1-G2_Comparison here] [[HTML(<a name="Gallery1"></a>)]] ==== Gallery1 ==== [[HTML(<a name="How_to_install_Gallery1_for_Image_Gallery_Server_service"></a>)]] ===== 如何安装 Gallery1 for Image Gallery Server service ===== * [[DapperGuide#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] * Read [[DapperGuide/DapperGuide#How_to_install_Apache_HTTP_Server_for_HTTP_.28Web.29_Server_service|#How to install Apache HTTP Server for HTTP (Web) Server service]] * Read [[DapperGuide/DapperGuide#How_to_install_PHP_for_Apache_HTTP_Server|#How to install PHP for Apache HTTP Server]] <pre><nowiki>sudo apt-get install gallery (when prompted to restart Apache, choose No or Cancel) sudo apt-get install imagemagick sudo apt-get install jhead sudo apt-get install libjpeg-progs sudo /etc/init.d/apache2 restart sudo sh /usr/share/gallery/configure.sh </nowiki></pre> * [http://localhost/gallery/setup/index.php] * Gallery Configuration <pre><nowiki>Gallery Configuration Wizard: Step 1 Next Step -> </nowiki></pre> <pre><nowiki>Gallery Configuration Wizard: Step 2 General settings Tab -> Admin password: Specify the password Locations and URLs Tab -> Album directory: /var/www/albums/ Temporary directory: /tmp/ Gallery URL: http://localhost/gallery Albums URL: http://localhost/albums Next Step --> </nowiki></pre> <pre><nowiki>Gallery Configuration Wizard: Step 3 Next Step --> </nowiki></pre> <pre><nowiki>Gallery Configuration Wizard: Step 4 Save Config -> </nowiki></pre> * [http://localhost/gallery/albums.php] [[HTML(<a name="How_to_configure_Gallery1_to_be_accessible_via_Internet_.28Hostname_or_fix_IP.29_or_LAN_.28fix_IP.29"></a>)]] ===== 如何配置 Gallery1 to be accessible via Internet (Hostname or fix IP) or LAN (fix IP) ===== * [[DapperGuide#General_Notes|基本备注]] * Read [[DapperGuide#How_to_install_Gallery1_for_Image_Gallery_Server_service #How to install Gallery1 for Image Gallery Server service]] ''e.g. Assumed that network and internet connections have been configured properly'' '' Internet (Hostname or fix IP) or LAN (fix IP): [http://www.url.com]'' <pre><nowiki>sudo cp /etc/gallery/config.php /etc/gallery/config.php_backup gksudo gedit /etc/gallery/config.php </nowiki></pre> * 查找下面的段 <pre><nowiki>... $gallery->app->photoAlbumURL = "http://localhost/gallery"; $gallery->app->albumDirURL = "http://localhost/albums"; ... </nowiki></pre> * 使用下面的行替换 <pre><nowiki>$gallery->app->photoAlbumURL = "http://www.url.com/gallery"; $gallery->app->albumDirURL = "http://www.url.com/albums"; </nowiki></pre> * 保存编辑好的文件 * [http://www.url.com/gallery/albums.php] [[HTML(<a name="How_to_configure_Gallery1_to_be_accessible_via_LAN_.28dynamic_IP.29"></a>)]] ===== 如何配置 Gallery1 to be accessible via LAN (dynamic IP) ===== * [[DapperGuide#General_Notes|基本备注]] * Read [[DapperGuide#How_to_install_Gallery1_for_Image_Gallery_Server_service #How to install Gallery1 for Image Gallery Server service]] ''e.g. Assumed that network connections have been configured properly'' '' LAN (dynamic IP): 192.168.0.1'' <pre><nowiki>sudo cp /etc/gallery/config.php /etc/gallery/config.php_backup gksudo gedit /etc/gallery/config.php </nowiki></pre> * 查找下面的段 <pre><nowiki>... $gallery->app->photoAlbumURL = "http://localhost/gallery"; $gallery->app->albumDirURL = "http://localhost/albums"; ... </nowiki></pre> * 使用下面的行替换 <pre><nowiki>$gallery->app->photoAlbumURL = "/gallery"; $gallery->app->albumDirURL = "/albums"; </nowiki></pre> * 保存编辑好的文件 * [http://192.168.0.1/gallery/albums.php] [[HTML(<a name="How_to_backup.2Frestore_Gallery1_data"></a>)]] ===== 如何 backup/restore Gallery1 data ===== * [[DapperGuide#General_Notes|基本备注]] * To backup Gallery data <pre><nowiki>sudo tar zcvf gallery.tgz /var/www/albums/ /etc/gallery/ </nowiki></pre> * To restore Gallery data <pre><nowiki>sudo tar zxvf gallery.tgz -C / </nowiki></pre> [[HTML(<a name="Gallery2"></a>)]] ==== Gallery2 ==== [[HTML(<a name="How_to_install_Gallery2"></a>)]] ===== 如何安装 Gallery2 ===== [[HTML(<a name="How_to_configure_Gallery2"></a>)]] ===== 如何配置 Gallery2 ===== [[HTML(<a name="Troubleshooting"></a>)]] === Troubleshooting === [[HTML(<a name="Configuring_network_interfaces..._.28taking_too_long_to_load.29"></a>)]] ==== Configuring network interfaces... (taking too long to load) ==== * [[DapperGuide#General_Notes|基本备注]] * Read [[DapperGuide#How_to_temporary_skip_boot-up_services #How to temporary skip boot-up services]] [[HTML(<a name="Synchronizing_clock_to_ntp.ubuntulinux.org..._.28taking_too_long_to_load.29"></a>)]] ==== Synchronizing clock to ntp.ubuntulinux.org... (taking too long to load) ==== * [[DapperGuide#General_Notes|基本备注]] * Read [[DapperGuide#How_to_temporary_skip_boot-up_services #How to temporary skip boot-up services]] * Read [[DapperGuide#How_to_permanently_disable.2Fenable_boot-up_services #How to permanently disable/enable boot-up services]] <pre><nowiki>service_name = ntpdate </nowiki></pre> [[HTML(<a name="How_to_disable_system_time.2Fdate_from_being_reset_to_UTC_.28GMT.29"></a>)]] ==== 如何 disable system time/date from being reset to UTC (GMT) ==== * [[DapperGuide#General_Notes|基本备注]] <pre><nowiki>sudo cp /etc/default/rcS /etc/default/rcS_backup gksudo gedit /etc/default/rcS </nowiki></pre> * 查找如下行 <pre><nowiki>... UTC=yes ... </nowiki></pre> * 使用下面的行替换 <pre><nowiki>UTC=no </nowiki></pre> * 保存编辑好的文件 * 系统 -> 系统管理 -> 时间和日期 Set the correct time/date <pre><nowiki>sudo /etc/init.d/hwclock.sh restart </nowiki></pre> [[HTML(<a name="How_to_configure_sound_to_work_properly_in_GNOME"></a>)]] ==== 如何配置 sound to work properly in GNOME ==== * [[#General_Notes|基本备注]] * [[DapperGuide#How_to_add_extra_repositories|如何新增其他的软件库]] <pre><nowiki>sudo killall esd sudo cp /etc/esound/esd.conf /etc/esound/esd.conf_backup gksudo gedit /etc/esound/esd.conf </nowiki></pre> * 查找下面的段 <pre><nowiki>... auto_spawn=0 spawn_options=-terminate -nobeeps -as 5 ... </nowiki></pre> * 使用下面的行替换 <pre><nowiki>auto_spawn=1 spawn_options=-terminate -nobeeps -as 2 -d default </nowiki></pre> * 保存编辑好的文件 <pre><nowiki>sudo apt-get install libesd-alsa0 gksudo gedit /etc/asound.conf </nowiki></pre> * 插入下面的行到新文件 <pre><nowiki>pcm.card0 { type hw card 0 } pcm.!default { type plug slave.pcm "dmixer" } pcm.dmixer { type dmix ipc_key 1025 slave { pcm "hw:0,0" period_time 0 period_size 2048 buffer_size 32768 rate 48000 } bindings { 0 0 1 1 } } </nowiki></pre> * 保存编辑好的文件 <pre><nowiki>sudo ln -fs /usr/lib/libesd.so.0 /usr/lib/libesd.so.1 </nowiki></pre> <pre><nowiki>系统 -> Preferences -> Sound Sound preferences </nowiki></pre> <pre><nowiki>General Tab -> Sounds for events '''(Un-Checked)''' </nowiki></pre> * Save and close all opened applications, Reboot computer [[HTML(<a name="How_to_forcefully_empty_Trash_in_GNOME"></a>)]] ==== 如何 forcefully empty Trash in GNOME ==== * [[DapperGuide#General_Notes|基本备注]] <pre><nowiki>sudo rm -fr $HOME/.Trash/ </nowiki></pre> [[HTML(<a name="How_to_remove_duplicate_menu.2Fmenu_items_in_GNOME"></a>)]] ==== 如何 remove duplicate menu/menu items in GNOME ==== * [[DapperGuide#General_Notes|基本备注]] <pre><nowiki>rm -f $HOME/.config/menus/applications.menu </nowiki></pre> * Read [[DapperGuide#How_to_refresh_GNOME_panel #如何刷新 GNOME 面板]] [[HTML(<a name="How_to_refresh_Places_menu_in_GNOME_.28if_mounts_to_.2Fmedia.2F_in_.2Fetc.2Ffstab_does_not_show_up.29"></a>)]] ==== 如何 refresh Places menu in GNOME (if mounts to /media/ in /etc/fstab does not show up) ==== * [[DapperGuide#General_Notes|基本备注]] <pre><nowiki>sudo /etc/init.d/dbus-1 restart </nowiki></pre> [[HTML(<a name="How_to_consume_static_.28not_dhcp.29_wireless_LAN_.28WLAN.29_connection_.28KDE.29"></a>)]] ==== 如何 consume static (not dhcp) wireless LAN (WLAN) connection (KDE) ==== * I assume you have successfully consumed WLAN connection in Windows * To enable the network device please follow the following steps * Go to K-菜单 -> System Settings -> Network Settings * Enable Administrator mode * Select Network Interfaces tab and the wireless interface (usually ath0) to configure * Click Configure Interface... * Choose Manual or Automatic. Choose Manual * Fill the preferred IP address to identify your computer and the netmask. Choose to activate when computer starts * Click Advanced Settings to for more properties * Select Routes tab and fill the gateway IP address * Make sure you choose the correct device in the right dropdown (e.g. ath0) * Click apply to commit all changes * To choose wireless connection please follow the following steps * Go to K-菜单 -> Internet -> Wireless Assistant * Right click on preferred connection ssid * Choose and complete fields for Manual connection * Click Ok * Create connection configuration <pre><nowiki>gksudo gedit /etc/wpa_supplicant.conf </nowiki></pre> * 插入下面的行到新文件 <pre><nowiki>network={ ssid="YOUR_PREFERRED_CONNECTION_SSID" scan_ssid=1 proto=WPA key_mgmt=WPA-PSK psk="STRING_TO_GENERATE_PASSWORD" #psk=123456789 #you have option to use connection key instead of connection password } </nowiki></pre> * 保存编辑好的文件 * Create script to easily activate connection <pre><nowiki>gksudo gedit /etc/init.d/wifi_wpa.sh </nowiki></pre> * 插入下面的行到新文件 <pre><nowiki>#! /bin/sh # wifi: wpa_supplicant init echo " * [Wifi]: Enabling WPA supplicant..." if [ -x /sbin/wpa_supplicant ]; then /sbin/wpa_supplicant -B -i ath0 -c /etc/wpa_supplicant.conf -D madwifi -w fi exit 0 </nowiki></pre> * 保存编辑好的文件 * Make sure both file readable and executable <pre><nowiki>sudo chmod +r /etc/wpa_supplicant.conf sudo chmod +x /etc/init.d/wifi_wpa.sh </nowiki></pre> * make wireless connection automaticaly starts when computer starts <pre><nowiki>sudo ln -s /etc/init.d/wifi_wpa.sh /etc/rcS.d/S40netwifiwpa </nowiki></pre> * Close all opened applications, Reboot computer [[HTML(<a name="How_to_get_1400x1050_resolution_working"></a>)]] ==== 如何 get 1400x1050 resolution working ==== * See [[http://ubuntu.vdb-studios.be/installationDapper.php]] [[HTML(<a name="Upgrading_Ubuntu"></a>)]] === Upgrading Ubuntu === [[HTML(<a name="How_to_upgrade_from_Hoary_Hedgehog_-.3E_Breezy_Badger_-.3E_Dapper_Drake"></a>)]] ==== 如何 upgrade from Hoary Hedgehog -> Breezy Badger -> Dapper Drake ==== * First, make sure you're fully upgraded: <pre><nowiki>sudo apt-get update sudo apt-get upgrade sudo apt-get dist-upgrade </nowiki></pre> * If you don't have a CD available make SURE you comment/remove the line pertaining to your CD media <pre><nowiki>gksudo g /etc/apt/sources.list </nowiki></pre> '''/etc/apt/sources.list''' ''for an upgrade to breezy your sources.list should look something similar to this:'' <pre><nowiki>## Uncomment the following two lines to fetch updated software from the network deb http://us.archive.ubuntu.com/ubuntu breezy main restricted deb-src http://us.archive.ubuntu.com/ubuntu breezy main restricted deb http://us.archive.ubuntu.com/ubuntu breezy-updates main restricted deb-src http://us.archive.ubuntu.com/ubuntu breezy-updates main restricted deb http://us.archive.ubuntu.com/ubuntu breezy universe deb-src http://us.archive.ubuntu.com/ubuntu breezy universe deb http://security.ubuntu.com/ubuntu breezy-security main restricted deb-src http://security.ubuntu.com/ubuntu breezy-security main restricted deb http://security.ubuntu.com/ubuntu breezy-security universe deb-src http://security.ubuntu.com/ubuntu breezy-security universe</div> </nowiki></pre> * To upgrade from breezy to dapper, just replace (ctrl+h) all instances of 'breezy' with 'dapper' within the /etc/apt/sources.list * 保存这个文件. <pre><nowiki>sudo apt-get update sudo apt-get upgrade sudo apt-get dist-upgrade </nowiki></pre> * Save your session, reboot, and enjoy. NOTE: * I would NOT suggest upgrading directly from hoary to dapper. Upgrade: hoary->breezy->dapper [[HTML(<a name="How_to_upgrade_from_Dapper_Drake_to_Edgy_Eft_.28experimental.29"></a>)]] ==== 如何 upgrade from Dapper Drake to Edgy Eft (experimental) ==== * coming soon... ---- 原文出处:http://ubuntuguide.org/wiki/Dapper <br> 翻译人员: <br> 校对人员: <br> 贡献者: <br> 适用版本: <br> 文章状态:等待翻译 <br>
返回
DapperGuide
。
导航菜单
页面操作
页面
讨论
阅读
查看源代码
历史
页面操作
页面
讨论
更多
工具
个人工具
登录
导航
首页
最近更改
随机页面
页面分类
帮助
搜索
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息