ºìÁªLinuxÃÅ»§
Linux°ïÖú

ÔÚLinuxÏÂÓÃÃüÁîÐÐÖÐÍæ×ªÒôÀÖ¿â

·¢²¼Ê±¼ä:2014-05-31 14:50:01À´Ô´:ºìÁª×÷Õß:velcbo
À´Ô´£ºLinuxÖйú

LinuxϵÄÃüÁîÐпÉÄÜÊǶÔÓÚÐÂÊÖ¶øÑÔ×î¿Ö²ÀµÄ¾­ÀúÁË¡£ÎҼǵû¨·ÑÈô¸ÉСʱÀ´³¢ÊÔ¸ãÃ÷°×Öն˱¬³öµÄ´íÎóÐÅÏ¢¡£µ±È»£¬ÕâÊÇÍêȫֵµÃµÄ£¡Èç¹ûÏÖÔÚÈÃÎÒÖ»ÄÜÌôÒ»¸öÈÃÐÂÊÖѧϰѧϰÃüÁîÐеÄÔ­Òò£¬ÄÇ¿ÉÄܾÍÊÇÓÃÃüÁîÐÐÀ´Õû¸ö¹ÜÀíÒôÀÖ¿â¡£ÔÚÕâ¸öÊÂÇéÉÏ£¬ÎÒϲ»¶ÓõÄÈí¼þ½Ð×öcmus£¬ÊÇ"C* MUsic Player"(CÒôÀÖ²¥·ÅÆ÷)µÄ¼òд£¬ËüÍêÈ«ÓÉCд³É¡£

cmusÊÇÒ»¸öÄÚÖÃÁËÒôƵ²¥·ÅÆ÷µÄÇ¿´óµÄÒôÀÖÎļþ¹ÜÀíÆ÷¡£ÓÃËüµÄ»ùÓÚncursesµÄÃüÁîÐнçÃæ£¬Äã¿ÉÒÔä¯ÀÀÄãµÄÒôÀֿ⣬²¢´Ó²¥·ÅÁбí»ò¶ÓÁÐÖв¥·ÅÒôÀÖ£¬ÕâÒ»Çж¼ÊÇÔÚÃüÁîÐÐÏ¡£

LinuxÉϰ²×°cmus

Ê×ÏÈ£¬ÄãÐèÒª°´ÕÕÈçϽ¨ÒéÉèÖò¢°²×°cmus¡£

ÔÚUbuntu, Debian »òÕßLinux MintÖÐ:

$ sudo apt-get install cmus

ÔÚFedoraÉÏ£¬Ê×ÏÈÆôÓÃRPM Fusion²Ö¿â£¬½Ó×ÅÔËÐÐ:

$ sudo yum install cmus

ÔÚCentOSÉÏ£¬Ê×ÏÈÆôÓÃRepoforge²Ö¿â£¬½Ó×ÅÔËÐÐ:

$ sudo yum install cmus

ÔÚArchlinuxÉÏ:

$ sudo pacman -S cmus

°²×°ÍêÖ®ºó£¬ÔÚÃüÁîÐÐÏÂÈçÏÂÊäÈë¾Í¿ÉÔËÐÐcums:

$ cmus

µ¼ÈëÒôÀÖÎļþµ½ cmus

µÚÒ»¼þÒª×öµÄÊÂÇéÊǵ¼ÈëÄãµÄÒôÀÖÎļþµ½ÄãµÄ¿âÖС£Õâ¸ö¹ý³Ì¿ÉÒÔ¿´³öÁ½¸öÊÂÇ飺¿ì½Ý·½Ê½Êܵ½ÁËvimµÄÃüÁîģʽµÄÆô·¢£»»¹ÓÐcmusÔËÐеĺܿ졣ÎÒÒѾ­ÔÚ20ÃëÖ®Äڳɹ¦µØµ¼ÈëÁ˳¬¹ý1000Ê׸裡¶øÔÚiTunes»òÕ߯äËûÈκÎͼÐÎÒôÀÖ¿âÈí¼þÏÂÊÔһϵ¼È룬ÎÒÏëÄã»áÓÐ×ã¹»µÄʱ¼äÀ´×öÒ»·Ý»¨Éú½´ÈýÃ÷ÖÎ :>¡£

ÒªÔÚcmusÏÂÃæµ¼ÈëÒôÀÖ£¬ÊäÈëÏÂÃæµÄÏñvimÒ»ÑùµÄÃüÁî¡£

:a /path/to/your/music/folder

ÔÚÎÒµÄXubuntuÉÏ£¬ÎÒÕâô×ö:

:a /home/adrien/Music/

½ÓÏÂÀ´Õâ¸öĿ¼ÏÂËùÓеÄÒôÀÖÎļþ»áÁ¢Âí°´ÕÕÒÕÊõ¼Ò»òÕßר¼­µÄ·½Ê½ÅÅÁÐÏÔʾ¡£

¿ìËÙÈëÃÅ

ÔÚ¿ªÊ¼Ç°£¬Äã¿ÉÄÜÏ£Íû¼ÇסһЩ»ù±¾¿ì½Ý·½Ê½À´¿ªÊ¼²¥·ÅÄãµÄÒôÀÖ¡£ÕâÊÇcmusµÄΨһȱµã¡£³ý·ÇÄã¸Ä±äËüÃÇ£¬·ñÔòĬÈϵĿì½Ý·½Ê½²¢²»Ö±¹Û£¬²¢ÇÒÄã²»µÃ²»Ñ§Ï°ËüÃÇ¡£¼ò¶øÑÔÖ®:

x ²¥·Å»òÖØ²¥ÒôÀÖ
c ÔÝÍ£
b ²¥·ÅÏÂÒ»Ê×ÒôÀÖ
z ²¥·ÅǰһÊ×ÒôÀÖ
s ¼¤»îËæ»ú²¥·Å

¼Çס֮ºó£¬ÎÒÃǾÍ×¼±¸¿ªÊ¼ÁË£¡

How to set up RPMforge (now called Repoforge) repository on CentOS

Repoforge, previously known as RPMforge, maintains a repository of RPM packages for Red Hat Enterprise Linux (RHEL), CentOS and Scientific Linux. If you are a RHEL or CentOS user, I strongly suggest you set up Repoforge repository on your system, as it contains many useful software packages that are not available in existing stock repositories.

In order to set up Repoforge repository on CentOS, you first need to know the version of your CentOS as well as the underlying process architecture.

To find out which release version of CentOS you are using:
$ cat /etc/RedHat-release

CentOS release 6.3 (Final)

To check whether your CentOS is 32-bit (i.e., i686) or 64-bit (i.e., x86_64) based:
$ uname -a

Linux centos.domain 2.6.32-279.el6.x86_64 #1 SMP Fri Jun 22 12:19:21 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux

Now that you know enough about your CentOS system, let's go ahead and install RPMforge on CentOS.

For 32-bit CentOS 6.*:
$ sudo rpm -Uvh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.i686.rpm

For 64-bit CentOS 6.*:
$ sudo rpm -Uvh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm

For 32-bit CentOS 5.*:
$ sudo rpm -Uvh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el5.rf.i386.rpm

For 64-bit CentOS 5.*:
$ sudo rpm -Uvh http://pkgs.repoforge.org/rpmforge-release/rpmforge-release-0.5.3-1.el5.rf.x86_64.rpm

Once RPMforge is installed on your system, you can use yum to install all available packages from the Repoforge repo.

How to install RPM Fusion on Fedora or CentOS

RPM Fusion is a software repository that offers various free or non-free add-on packages that do not ship with the original Fedora distribution. RPM Fusion contains various useful packages that are not included in the Fedora distribution just because they do not meet Fedora's free software requirements.

In this post, I will explain how to set up RPM Fusion repository on Fedora or CentOS.

Once RPM Fusion is enabled on your system, you can install any package available from the repository simply by using yum command.

First of all, to check whether or not RPM Fusion is installed on your system, run the following command.
$ yum repolist | grep rpmfusion

If the above command does not produce any result, it means that RPM Fusion is not installed on your system.

RPM Fusion maintains two separate repositories for free and non-free packages. You can selectively enable either or both repositories as you want.
Set up RPM Fusion on Fedora

The following instruction works for Fedora 14 or higher.
To enable the free repository of RPM Fusion:
$ sudo yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm

To enable the non-free repository of RPM Fusion:
$ sudo yum localinstall --nogpgcheck http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm

Set up RPM Fusion on CentOS

In order to install RPM fusion on CentOS, you first need to enable EPEL repository first. After that, proceed as follows to set up RPM Fusion on CentOS.

To enable the free/non-free repositories of RPM Fusion on CentOS 6:
$ sudo yum localinstall --nogpgcheck http://download1.rpmfusion.org/free/el/updates/6/i386/rpmfusion-free-release-6-1.noarch.rpm http://download1.rpmfusion.org/nonfree/el/updates/6/i386/rpmfusion-nonfree-release-6-1.noarch.rpm

To enable the free/non-free repositories of RPM Fusion on CentOS 5:
$ sudo rpm -Uvh http://download1.rpmfusion.org/free/el/updates/5/i386/rpmfusion-free-release-5-1.noarch.rpm http://download1.rpmfusion.org/nonfree/el/updates/5/i386/rpmfusion-nonfree-release-5-1.noarch.rpm
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 0 ÌõÆÀÂÛ