特殊:Badtitle/NS100:Songbird

来自Ubuntu中文
Oneleaf留言 | 贡献2007年5月24日 (四) 14:50的版本 (新页面: {{From|https://help.ubuntu.com/community/Songbird}} {{Languages|UbuntuHelp:Songbird}} == Introduction (from the Songbird website) == [http://www.songbirdnest.com/ Songbird]™ is a des...)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳到导航跳到搜索
可打印版本不再受到支持且可能有渲染错误。请更新您的浏览器书签并改用浏览器默认打印功能。

{{#ifexist: :Songbird/zh | | {{#ifexist: Songbird/zh | | {{#ifeq: {{#titleparts:Songbird|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:Songbird|1|-1|}} | zh | | }}


Introduction (from the Songbird website)

Songbird™ is a desktop Web player, a digital jukebox and Web browser mash-up. Like Winamp, it supports extensions and skins feathers. Like Firefox®, it is built from Mozilla®, cross-platform and open source.

Installing Songbird with a Script

You can install Songbird using the script below. These instructions will help you run the installation script.

Getting the script

Open your favorite text editor (Gedit, Kate, Mousepad). You should get a blank document.

In that blank document, paste the following code:

#!/bin/bash
if [ -d /usr/local/bin/songbird ]; then
echo "
You appear to already have Songbird installed. To get the newest version, you should use the self-update function in Songbird instead of using this script.
"
exit
fi
cd
uname -m > tmp.arch.txt
if grep -q "64" tmp.arch.txt ; then
echo "
You appear to have an AMD64 architecture. Do you want to install the 64-bit version of Songbird? [y/n]
"
while true
do
read ans
case $ans in
Y|y) echo -n "Downloading Songbird from the internet--this could take several minutes, even on a broadband connection. Please be patient." ; wget -c http://download.songbirdnest.com/installer/linux/x86_64/Songbird_0_2_5_linux-x86_64.tar.gz ; echo -n "Unzipping the .tar.gz we downloaded." ; tar -xvzf Songbird_0_2_5_linux-x86_64.tar.gz ; break ;;
[Yy][Ee][Ss]) echo -n "Downloading Songbird from the internet--this could take several minutes, even on a broadband connection. Please be patient." ; wget -c http://download.songbirdnest.com/installer/linux/x86_64/Songbird_0_2_5_linux-x86_64.tar.gz ; echo -n "Unzipping the .tar.gz we downloaded." ; tar -xvzf Songbird_0_2_5_linux-x86_64.tar.gz ; break ;;
N|n) echo -n "We have not properly detected your architecture. Songbird installation script quitting." ; exit ;;
[Nn][Oo]) echo -n "We have not properly detected your architecture. Songbird installation script quitting." ; exit ;;
*) echo -n "Invalid command. Please answer yes or no [y/n] " ;;
esac
done
elif grep -q "86" tmp.arch.txt ; then
echo "
You appear to have an x86 architecture. Do you want to install the i686 version of Songbird? [y/n]
"
while true
do
read ans
case $ans in
Y|y) echo -n "Downloading Songbird from the internet--this could take several minutes, even on a broadband connection. Please be patient." ; wget -c http://download.songbirdnest.com/installer/linux/i686/Songbird_0_2_5_linux-i686.tar.gz ; echo -n "Unzipping the .tar.gz we downloaded." ; tar -xvzf Songbird_0_2_5_linux-i686.tar.gz ; break ;;
[Yy][Ee][Ss]) echo -n "Downloading Songbird from the internet--this could take several minutes, even on a broadband connection. Please be patient." ; wget -c http://download.songbirdnest.com/installer/linux/i686/Songbird_0_2_5_linux-i686.tar.gz ; echo -n "Unzipping the .tar.gz we downloaded." ; tar -xvzf Songbird_0_2_5_linux-i686.tar.gz ; break ;;
N|n) echo -n "We have not properly detected your architecture. Songbird installation script quitting." ; exit ;;
[Nn][Oo]) echo -n "We have not properly detected your architecture. Songbird installation script quitting." ; exit ;;
*) echo -n "Invalid command. Please answer yes or no [y/n] " ;;
esac
done
else
echo "This script works for only x86 and AMD64 architectures."
exit 1
fi
rm tmp.arch.txt
echo "
Moving Songbird to its own folder.
"
sudo mv Songbird /usr/local/bin/songbird
echo "
Removing the original .tar.gz
"
rm Songbird*.tar.gz
echo "
Making an executable for Songbird.
"
sudo ln -s /usr/local/bin/songbird/Songbird /usr/bin/Songbird
echo "
Downloading an icon for Songbird.
"
wget -c http://www.psychocats.net/ubuntu/songbirdicon.png
echo "
Putting the Songbird icon in the correct folder.
"
sudo mv songbirdicon.png /usr/share/pixmaps/songbird.png
echo "
Downloading the menu entry for Songbird.
"
wget -c http://www.psychocats.net/ubuntu/songbird.desktop
echo "
Moving the menu entry to the correct folder.
"
sudo mv songbird.desktop /usr/share/applications/songbird.desktop
echo "
After you refresh your menus, Songbird should be available as an application within the menus. If not, the launcher for Songbird should use the command Songbird (with a capital S).
"

Then save the file on your desktop as the filename installsongbird.sh

Making the script executable

Paste these commands in the terminal:

cd ~/Desktop
chmod +x installsongbird.sh

Run the script

Paste this command in the terminal:

./installsongbird.sh

Once the script runs, Songbird should be fully installed with a desktop launcher and a universally accessible executable.

Using Songbird without Installing It

If you don't want full integration of Songbird (hidden in a universally accessible place, launcher icon, etc.), you can just download the latest Songbird to your /home/username folder, double-click it (or single-click in Kubuntu), extract the .tar.gz file, enter the new songbird folder in your home directory and double-click (or single-click in Kubuntu) the Songbird file inside.