个人工具

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

来自Ubuntu中文

跳转至: 导航, 搜索
(新页面: {{From|https://help.ubuntu.com/community/Songbird}} {{Languages|UbuntuHelp:Songbird}} == Introduction (from the Songbird website) == [http://www.songbirdnest.com/ Songbird]™ is a des...)
 
 
(未显示2个用户的11个中间版本)
第1行: 第1行:
 
{{From|https://help.ubuntu.com/community/Songbird}}
 
{{From|https://help.ubuntu.com/community/Songbird}}
 
{{Languages|UbuntuHelp:Songbird}}
 
{{Languages|UbuntuHelp:Songbird}}
 
 
 
== Introduction (from the Songbird website) ==
 
== Introduction (from the Songbird website) ==
 
 
[http://www.songbirdnest.com/ 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.
 
[http://www.songbirdnest.com/ 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.
 
+
Songbird 1.0, the first stable release of Songbird, is notable for providing numerous user-friendly ways to find music and the ease of downloading it.  Songbird is not part of Ubuntu yet, but it can be installed by downloading one of the packages listed below.
 +
[http://blog.songbirdnest.com/2010/04/02/songbird-singing-a-new-tune/ Songbird Singing a New Tune]
 +
== Installing Songbird with a .deb ==
 +
'''For Songbird version 1.4.3 '''
 +
'''From Skyzim'''
 +
Download the .deb file and double click on it when the download is finished. [http://skyzim.com/songbird-1-4-3-installer/ Download here.]. [From Skyzim.Com]
 +
'''From getdeb'''
 +
Find your version of ubuntu download the .deb file and double click on it when the download is finished. [http://www.getdeb.net/app/Songbird]. [From getdeb.net]
 +
After installing one of the .deb files, go to Applications - Sound and Video - Songbird to launch the program.
 +
(.debs provided by [http://skyzim.com/ Skyzim.Com] and [http://www.getdeb.net/ getdeb.net])
 
== Installing Songbird with a Script ==
 
== Installing Songbird with a Script ==
 
 
You can install Songbird using the script below. These instructions will help you run the installation script.
 
You can install Songbird using the script below. These instructions will help you run the installation script.
 
 
=== Getting the script ===
 
=== Getting the script ===
 
 
Open your favorite text editor (Gedit, Kate, Mousepad). You should get a blank document.
 
Open your favorite text editor (Gedit, Kate, Mousepad). You should get a blank document.
 
 
In that blank document, paste the following code:
 
In that blank document, paste the following code:
<pre><nowiki>#!/bin/bash
+
<pre><nowiki>
 +
#!/bin/bash
 
if [ -d /usr/local/bin/songbird ]; then
 
if [ -d /usr/local/bin/songbird ]; then
echo "
+
zenity --info --text="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."
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
"
+
exit
+
 
fi
 
fi
cd
+
 
 +
cd /tmp
 
uname -m > tmp.arch.txt
 
uname -m > tmp.arch.txt
 
if grep -q "64" tmp.arch.txt ; then
 
if grep -q "64" tmp.arch.txt ; then
echo "
+
anw=`zenity --question --text "You appear to have an AMD64 architecture. Do you want to install the 64-bit version of Songbird?"; echo $?`
You appear to have an AMD64 architecture. Do you want to install the 64-bit version of Songbird? [y/n]
+
if [ $anw = 0 ] ; then
"
+
gksudo "echo 0"
while true
+
wget http://www.xs4all.nl/~mgj1/Songbird/64.bit
do
+
URL=`head -n 1 64.bit | tail -n 1`
read ans
+
FILE=`head -n 2 64.bit | tail -n 1`
case $ans in
+
rm 64.bit
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 ;;
+
wget "$URL" 2>&1 | sed -u 's/.*\ \([0-9]\+%\)\ \+\([0-9.]\+\ [KMB\/s]\+\)$/\1\n# Downloading Songbird with \2/' | zenity --progress --auto-close --title="Downloading Songbird..."
[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 ;;
+
tar -xvzf "$FILE"
N|n) echo -n "We have not properly detected your architecture. Songbird installation script quitting." ; exit ;;
+
else
[Nn][Oo]) echo -n "We have not properly detected your architecture. Songbird installation script quitting." ; exit ;;
+
zenity --info --text="Installation cancelled."
*) echo -n "Invalid command. Please answer yes or no [y/n] " ;;
+
fi
esac
+
 
done
+
 
elif grep -q "86" tmp.arch.txt ; then
 
elif grep -q "86" tmp.arch.txt ; then
echo "
+
anw=`zenity --question --text "You appear to have an x86 architecture. Do you want to install the i686 version of Songbird?"; echo $?`
You appear to have an x86 architecture. Do you want to install the i686 version of Songbird? [y/n]
+
if [ $anw = 0 ] ; then
"
+
gksudo "echo 0"
while true
+
wget http://www.xs4all.nl/~mgj1/Songbird/32.bit
do
+
URL=`head -n 1 32.bit | tail -n 1`
read ans
+
FILE=`head -n 2 32.bit | tail -n 1`
case $ans in
+
rm 32.bit
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 ;;
+
wget "$URL" 2>&1 | sed -u 's/.*\ \([0-9]\+%\)\ \+\([0-9.]\+\ [KMB\/s]\+\)$/\1\n# Downloading Songbird with \2/' | zenity --progress --auto-close --title="Downloading Songbird..."
[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 ;;
+
tar -xvzf "$FILE"
N|n) echo -n "We have not properly detected your architecture. Songbird installation script quitting." ; exit ;;
+
else
[Nn][Oo]) echo -n "We have not properly detected your architecture. Songbird installation script quitting." ; exit ;;
+
zenity --info --text="Installation cancelled."
*) echo -n "Invalid command. Please answer yes or no [y/n] " ;;
+
fi
esac
+
done
+
 
else
 
else
echo "This script works for only x86 and AMD64 architectures."
+
zenity --info --text="This script works for only x86 and AMD64 architectures."
exit 1
+
 
fi
 
fi
 
rm tmp.arch.txt
 
rm tmp.arch.txt
echo "
+
gksudo "mv Songbird /usr/local/bin/songbird"
Moving Songbird to its own folder.
+
"
+
sudo mv Songbird /usr/local/bin/songbird
+
echo "
+
Removing the original .tar.gz
+
"
+
 
rm Songbird*.tar.gz
 
rm Songbird*.tar.gz
echo "
+
gksudo "rm /usr/bin/Songbird"
Making an executable for Songbird.
+
gksudo "rm -r /usr/bin/Songbird"
"
+
gksudo "ln -s /usr/local/bin/songbird/songbird /usr/bin/Songbird"
sudo ln -s /usr/local/bin/songbird/Songbird /usr/bin/Songbird
+
wget -c -q http://www.psychocats.net/ubuntu/songbirdicon.png
echo "
+
gksudo "mv songbirdicon.png /usr/share/pixmaps/songbird.png"
Downloading an icon for Songbird.
+
wget -c -q http://www.psychocats.net/ubuntu/songbird.desktop
"
+
gksudo "mv songbird.desktop /usr/share/applications/songbird.desktop"
wget -c http://www.psychocats.net/ubuntu/songbirdicon.png
+
zenity --info --text="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). \n \nEnjoy!"
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).
+
"
+
 
</nowiki></pre>
 
</nowiki></pre>
 
Then save the file on ''your desktop'' as the filename '''installsongbird.sh'''
 
Then save the file on ''your desktop'' as the filename '''installsongbird.sh'''
 
 
=== Making the script executable ===
 
=== Making the script executable ===
Paste these commands in [https://help.ubuntu.com/community/UsingTheTerminal#head-2fa31364ee2acb07982a2fd5f52c983130565f8f the terminal]:
+
Paste these commands in [[UbuntuHelp:UsingTheTerminal#head-2fa31364ee2acb07982a2fd5f52c983130565f8f|the|terminal]]:
<pre><nowiki>cd ~/Desktop
+
<pre><nowiki>
 +
cd ~/Desktop
 
chmod +x installsongbird.sh
 
chmod +x installsongbird.sh
 
</nowiki></pre>
 
</nowiki></pre>
 
+
=== Running the script ===
=== Run the script ===
+
Paste this command in [[UbuntuHelp:UsingTheTerminal#head-2fa31364ee2acb07982a2fd5f52c983130565f8f|the|terminal]]:
Paste this command in [https://help.ubuntu.com/community/UsingTheTerminal#head-2fa31364ee2acb07982a2fd5f52c983130565f8f the terminal]:
+
<pre><nowiki>
<pre><nowiki>./installsongbird.sh
+
./installsongbird.sh
 
</nowiki></pre>
 
</nowiki></pre>
 
 
Once the script runs, Songbird should be fully installed with a desktop launcher and a universally accessible executable.
 
Once the script runs, Songbird should be fully installed with a desktop launcher and a universally accessible executable.
 
 
== Using Songbird without Installing It ==
 
== 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.
 
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.
 
 
----
 
----
[[category:CategoryDocumentation]]
+
[[category:CategoryAudio]] [[category:CategoryInternet]]
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2010年5月20日 (四) 00:15的最新版本


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. Songbird 1.0, the first stable release of Songbird, is notable for providing numerous user-friendly ways to find music and the ease of downloading it. Songbird is not part of Ubuntu yet, but it can be installed by downloading one of the packages listed below. Songbird Singing a New Tune

Installing Songbird with a .deb

For Songbird version 1.4.3 From Skyzim Download the .deb file and double click on it when the download is finished. Download here.. [From Skyzim.Com] From getdeb Find your version of ubuntu download the .deb file and double click on it when the download is finished. [1]. [From getdeb.net] After installing one of the .deb files, go to Applications - Sound and Video - Songbird to launch the program. (.debs provided by Skyzim.Com and getdeb.net)

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
	zenity --info --text="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 /tmp
uname -m > tmp.arch.txt
if grep -q "64" tmp.arch.txt ; then
	anw=`zenity --question --text "You appear to have an AMD64 architecture. Do you want to install the 64-bit version of Songbird?"; echo $?`
	if [ $anw = 0 ] ; then
	gksudo "echo 0"
	wget http://www.xs4all.nl/~mgj1/Songbird/64.bit
	URL=`head -n 1 64.bit | tail -n 1`
	FILE=`head -n 2 64.bit | tail -n 1`
	rm 64.bit
	wget "$URL" 2>&1 | sed -u 's/.*\ \([0-9]\+%\)\ \+\([0-9.]\+\ [KMB\/s]\+\)$/\1\n# Downloading Songbird with \2/' | zenity --progress --auto-close --title="Downloading Songbird..."
	tar -xvzf "$FILE"
	else
	zenity --info --text="Installation cancelled."
	fi

elif grep -q "86" tmp.arch.txt ; then
	anw=`zenity --question --text "You appear to have an x86 architecture. Do you want to install the i686 version of Songbird?"; echo $?`
	if [ $anw = 0 ] ; then
	gksudo "echo 0"
	wget http://www.xs4all.nl/~mgj1/Songbird/32.bit
	URL=`head -n 1 32.bit | tail -n 1`
	FILE=`head -n 2 32.bit | tail -n 1`
	rm 32.bit
	wget "$URL" 2>&1 | sed -u 's/.*\ \([0-9]\+%\)\ \+\([0-9.]\+\ [KMB\/s]\+\)$/\1\n# Downloading Songbird with \2/' | zenity --progress --auto-close --title="Downloading Songbird..."
	tar -xvzf "$FILE"
	else
	zenity --info --text="Installation cancelled."
	fi
else
	zenity --info --text="This script works for only x86 and AMD64 architectures."
fi
rm tmp.arch.txt
gksudo "mv Songbird /usr/local/bin/songbird"
rm Songbird*.tar.gz
gksudo "rm /usr/bin/Songbird"
gksudo "rm -r /usr/bin/Songbird"
gksudo "ln -s /usr/local/bin/songbird/songbird /usr/bin/Songbird"
wget -c -q http://www.psychocats.net/ubuntu/songbirdicon.png
gksudo "mv songbirdicon.png /usr/share/pixmaps/songbird.png"
wget -c -q http://www.psychocats.net/ubuntu/songbird.desktop
gksudo "mv songbird.desktop /usr/share/applications/songbird.desktop"
zenity --info --text="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). \n \nEnjoy!"

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

Running 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.