个人工具

“UbuntuHelp:FromGentooToKubuntu”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
(新页面: {{From|https://help.ubuntu.com/community/FromGentooToKubuntu}} {{Languages|UbuntuHelp:FromGentooToKubuntu}} The basic things that Gentoo users moving to Kubuntu should know are that: *Ku...)
 
第2行: 第2行:
 
{{Languages|UbuntuHelp:FromGentooToKubuntu}}
 
{{Languages|UbuntuHelp:FromGentooToKubuntu}}
 
The basic things that Gentoo users moving to Kubuntu should know are that:
 
The basic things that Gentoo users moving to Kubuntu should know are that:
 
 
*Kubuntu is of course, 20x easier to install than Gentoo of course (yes, you were waiting for that line anyway!)
 
*Kubuntu is of course, 20x easier to install than Gentoo of course (yes, you were waiting for that line anyway!)
 
 
*Packages for some window managers on Kubuntu use unified Debian menus. Sometimes you do not have to worry about writing your own menus if you want, as it's done for you!
 
*Packages for some window managers on Kubuntu use unified Debian menus. Sometimes you do not have to worry about writing your own menus if you want, as it's done for you!
 
 
*Do you like making bootsplashes? Kubuntu 5.10 has a new graphical splash screen, for the Gentoo pimper in you!
 
*Do you like making bootsplashes? Kubuntu 5.10 has a new graphical splash screen, for the Gentoo pimper in you!
 
 
*Package installation on Kubuntu is much quicker, as it uses binary packages instead of compiling source code.
 
*Package installation on Kubuntu is much quicker, as it uses binary packages instead of compiling source code.
 
 
*By default, there are no root users on Kubuntu. If you are asked for a root password, use your user password instead!
 
*By default, there are no root users on Kubuntu. If you are asked for a root password, use your user password instead!
 
 
=== Getting Used to a GUI That Works ===
 
=== Getting Used to a GUI That Works ===
 
 
The biggest thing that can slow you down going from gentoo to Ubuntu is the belief that getting things done requires sitting at the CLI as root, believing that nothing important can be done at the GUI.  To correct this thinking, every time you think, "I need the CLI now", instead go looking for the GUI tool.  Chances are that it's there.  On Ubuntu these are under "System -> Administration" on the menu.  As a simple example, go to "Users and Groups" on this menu and you can assign users the ability to use hot-plugged devices by editing their properties.  To a gentoo user we know that what Ubuntu did was add them to a group in /etc/group, but ain't it nice to have a GUI that knows what we mean!
 
The biggest thing that can slow you down going from gentoo to Ubuntu is the belief that getting things done requires sitting at the CLI as root, believing that nothing important can be done at the GUI.  To correct this thinking, every time you think, "I need the CLI now", instead go looking for the GUI tool.  Chances are that it's there.  On Ubuntu these are under "System -> Administration" on the menu.  As a simple example, go to "Users and Groups" on this menu and you can assign users the ability to use hot-plugged devices by editing their properties.  To a gentoo user we know that what Ubuntu did was add them to a group in /etc/group, but ain't it nice to have a GUI that knows what we mean!
 
 
=== Installing New Software ===
 
=== Installing New Software ===
 
 
In Kubuntu, there are two ways to install new packages: either by using Adept, a new graphical package manager that uses APT, or the APT program from the command line. The GUI is quick and easy to use, but APT from the command line will be more familiar to former Gentoo users. Using APT is similar to Portage, except it installs binary packages instead of compiling source code.  
 
In Kubuntu, there are two ways to install new packages: either by using Adept, a new graphical package manager that uses APT, or the APT program from the command line. The GUI is quick and easy to use, but APT from the command line will be more familiar to former Gentoo users. Using APT is similar to Portage, except it installs binary packages instead of compiling source code.  
 
 
First, you will need to update your APT repositories, this is similar to "emerge --sync" in Gentoo.
 
First, you will need to update your APT repositories, this is similar to "emerge --sync" in Gentoo.
 
'''sudo apt-get update'''
 
'''sudo apt-get update'''
 
 
Then, for example, we will install the Thunderbird mail client, replace "thunderbird" with your desired package:
 
Then, for example, we will install the Thunderbird mail client, replace "thunderbird" with your desired package:
 
'''sudo apt-get install thunderbird'''
 
'''sudo apt-get install thunderbird'''
 
This is simliar to "emerge thunderbird" under Gentoo.
 
This is simliar to "emerge thunderbird" under Gentoo.
 
 
If an application requires new or updated packages, you will be asked if you want to confirm the changes that APT will automatically do. Then, just wait a few seconds and APT will start downloading the packages and install them for you.
 
If an application requires new or updated packages, you will be asked if you want to confirm the changes that APT will automatically do. Then, just wait a few seconds and APT will start downloading the packages and install them for you.
 
 
=== Other key APT commands ===
 
=== Other key APT commands ===
 
'''sudo apt-get install ''package name'' ''' - Installs or upgrades the package specified to the newest version
 
'''sudo apt-get install ''package name'' ''' - Installs or upgrades the package specified to the newest version
 
 
'''sudo apt-get dist-upgrade''' - Uses APTs abilities to automatically upgrade '''ALL''' packages on the system.
 
'''sudo apt-get dist-upgrade''' - Uses APTs abilities to automatically upgrade '''ALL''' packages on the system.
 
 
=== USE flags? What USE flags? (or Things you are safe to forget) ===
 
=== USE flags? What USE flags? (or Things you are safe to forget) ===
 
On Kubuntu, throw all that mumbo-jumbo about USE flags, masked packages and all that other stuff. All the compilation specifics about Portage are out the window on Kubuntu, so do not worry about it! Also, do not worry about messing with configuration to get stuff to work. APT does even automatically updates your configuration when installing stuff, so you do not have to do it!
 
On Kubuntu, throw all that mumbo-jumbo about USE flags, masked packages and all that other stuff. All the compilation specifics about Portage are out the window on Kubuntu, so do not worry about it! Also, do not worry about messing with configuration to get stuff to work. APT does even automatically updates your configuration when installing stuff, so you do not have to do it!
 
 
=== I Must go Root! ===
 
=== I Must go Root! ===
 
 
If you absolutely must, type "sudo su", and you will be root.  Obviously you must be logged in as that superuser account that was created at login.
 
If you absolutely must, type "sudo su", and you will be root.  Obviously you must be logged in as that superuser account that was created at login.
 
 
=== Configuration ===
 
=== Configuration ===
 
==== Managing Repositories ====
 
==== Managing Repositories ====
 
 
There is a file called /etc/apt/sources.list which contains URLs for each "repository" of packages on your system. If you are asked to modify sources or add a repository, this is where to look. ''kdesu kedit /etc/apt/sources.list'' will open the file for editing. This file on Kubuntu is commented with information for enabling some repositories, such as Universe and Multiverse.
 
There is a file called /etc/apt/sources.list which contains URLs for each "repository" of packages on your system. If you are asked to modify sources or add a repository, this is where to look. ''kdesu kedit /etc/apt/sources.list'' will open the file for editing. This file on Kubuntu is commented with information for enabling some repositories, such as Universe and Multiverse.
 
 
=== "But I still wanna compile stuff!" ===
 
=== "But I still wanna compile stuff!" ===
 
 
Do not worry, you can still compile things under Kubuntu, just like on Gentoo.
 
Do not worry, you can still compile things under Kubuntu, just like on Gentoo.
 
 
You can install a package called "apt-build" which builds any package you want and missing dependencies.  It allows you to override the compiler and specify additional compiler options.
 
You can install a package called "apt-build" which builds any package you want and missing dependencies.  It allows you to override the compiler and specify additional compiler options.
 
 
If you just need to build a single package, you can run:
 
If you just need to build a single package, you can run:
 
* ''' sudo apt-get build-dep ''package'' ''' - to install all missing dependencies for building, then
 
* ''' sudo apt-get build-dep ''package'' ''' - to install all missing dependencies for building, then
第58行: 第35行:
 
* ''' ( cd ''package''* ; dpkg-buildpackage -rfakeroot ) ''' - to build the package, and finally
 
* ''' ( cd ''package''* ; dpkg-buildpackage -rfakeroot ) ''' - to build the package, and finally
 
* ''' sudo apt-get install ''package''*.deb - to install the newly build package
 
* ''' sudo apt-get install ''package''*.deb - to install the newly build package
 
 
For more information about transitioning from emerge to apt have a look at [http://gentoo-wiki.com/TIP_Converting_from_or_to_Debian this] page:
 
For more information about transitioning from emerge to apt have a look at [http://gentoo-wiki.com/TIP_Converting_from_or_to_Debian this] page:
 
 
 
----
 
----
 
[[category:CategoryDocumentation]] [[category:CategoryCleanup]]
 
[[category:CategoryDocumentation]] [[category:CategoryCleanup]]
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2007年11月30日 (五) 17:22的版本

The basic things that Gentoo users moving to Kubuntu should know are that:

  • Kubuntu is of course, 20x easier to install than Gentoo of course (yes, you were waiting for that line anyway!)
  • Packages for some window managers on Kubuntu use unified Debian menus. Sometimes you do not have to worry about writing your own menus if you want, as it's done for you!
  • Do you like making bootsplashes? Kubuntu 5.10 has a new graphical splash screen, for the Gentoo pimper in you!
  • Package installation on Kubuntu is much quicker, as it uses binary packages instead of compiling source code.
  • By default, there are no root users on Kubuntu. If you are asked for a root password, use your user password instead!

Getting Used to a GUI That Works

The biggest thing that can slow you down going from gentoo to Ubuntu is the belief that getting things done requires sitting at the CLI as root, believing that nothing important can be done at the GUI. To correct this thinking, every time you think, "I need the CLI now", instead go looking for the GUI tool. Chances are that it's there. On Ubuntu these are under "System -> Administration" on the menu. As a simple example, go to "Users and Groups" on this menu and you can assign users the ability to use hot-plugged devices by editing their properties. To a gentoo user we know that what Ubuntu did was add them to a group in /etc/group, but ain't it nice to have a GUI that knows what we mean!

Installing New Software

In Kubuntu, there are two ways to install new packages: either by using Adept, a new graphical package manager that uses APT, or the APT program from the command line. The GUI is quick and easy to use, but APT from the command line will be more familiar to former Gentoo users. Using APT is similar to Portage, except it installs binary packages instead of compiling source code. First, you will need to update your APT repositories, this is similar to "emerge --sync" in Gentoo. sudo apt-get update Then, for example, we will install the Thunderbird mail client, replace "thunderbird" with your desired package: sudo apt-get install thunderbird This is simliar to "emerge thunderbird" under Gentoo. If an application requires new or updated packages, you will be asked if you want to confirm the changes that APT will automatically do. Then, just wait a few seconds and APT will start downloading the packages and install them for you.

Other key APT commands

sudo apt-get install package name - Installs or upgrades the package specified to the newest version sudo apt-get dist-upgrade - Uses APTs abilities to automatically upgrade ALL packages on the system.

USE flags? What USE flags? (or Things you are safe to forget)

On Kubuntu, throw all that mumbo-jumbo about USE flags, masked packages and all that other stuff. All the compilation specifics about Portage are out the window on Kubuntu, so do not worry about it! Also, do not worry about messing with configuration to get stuff to work. APT does even automatically updates your configuration when installing stuff, so you do not have to do it!

I Must go Root!

If you absolutely must, type "sudo su", and you will be root. Obviously you must be logged in as that superuser account that was created at login.

Configuration

Managing Repositories

There is a file called /etc/apt/sources.list which contains URLs for each "repository" of packages on your system. If you are asked to modify sources or add a repository, this is where to look. kdesu kedit /etc/apt/sources.list will open the file for editing. This file on Kubuntu is commented with information for enabling some repositories, such as Universe and Multiverse.

"But I still wanna compile stuff!"

Do not worry, you can still compile things under Kubuntu, just like on Gentoo. You can install a package called "apt-build" which builds any package you want and missing dependencies. It allows you to override the compiler and specify additional compiler options. If you just need to build a single package, you can run:

  • sudo apt-get build-dep package - to install all missing dependencies for building, then
  • sudo apt-get source package - to get the package source,
  • ( cd package* ; dpkg-buildpackage -rfakeroot ) - to build the package, and finally
  • sudo apt-get install package*.deb - to install the newly build package

For more information about transitioning from emerge to apt have a look at this page: