iSky installs iTunes, Internet Explorer and Skype on Ubuntu 9.04
UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
iSky installs iTunes, Internet Explorer and Skype on Ubuntu 9.04
iTUNES, INTERNET EXPLORER and SKYPE INSTALL EASILY AND WORK PERFECTLY
Hello all,
I'd like to announce a script I wrote called iSky. It is an interactive terminal-based installer for Skype, iTunes and Internet Explorer. It is designed for users with minimal expertise in Linux and Wine. iSky is currently for (K)Ubuntu 9.04, but other Ubuntu versions and then Distros will hopefully follow.
Put simply: By selecting "Install Dependencies", iSky automatically adds the WineHQ repos to the user's sources list.
Then, iSky installs the latest versions of wine and cabextract.
Users can then choose to install Skype, iTunes, or Internet Explorer.
The Skype option is merely a useful script which fetches and installs the package from the website, and saves the user from having to use nasty non-free repos, many of which hold out of date versions anyway.
The iTunes option fetches and installs iTunes 8.0 (under Wine). I have tested this, and it works like a charm. N.B: I do not own an ipod, but iTunes installs and runs perfectly.
The Internet Explorer option fetches the latest release of ies4linux, extracts the tarball and runs the installer that is a part of that project.
iSky is simply a shell script, so all that is needed is to download it from the site: https://sourceforge.net/projects/isky/
Copy it into the /usr/bin directory and then make it executable and run it. Contact me if you need baby-steps instructions as to how you do this.
So, please download it, let me know if you find it useful.
Contact me with questions, suggestions, thanks, rants etc etc
oh and yes I know Internet Explorer is a piece of crap, but some people are forced to use it for online banking etc, and if you ignore them they will go straight back to windows.
Skype is already in the Ubuntu repos. Does your script install the Windows version using wine? If so, is there a reason you prefer the Windows version in Ubuntu instead of the linux version in the Ubuntu repos?
Skype is already in the Ubuntu repos. Does your script install the Windows version using wine? If so, is there a reason you prefer the Windows version in Ubuntu instead of the linux version in the Ubuntu repos?
Hi, as far as I know, Skype isn't in the Ubuntu repos; it's in Medibuntu (an old version) and the Canonical partner Repo seems to have a version for MID's (these are things like hand-helds aren't they?) but I don't think it is in the standard ubuntu repos. My script uses wget to download the latest version from the Skype website then install it with gdebi.
To your other question, I wouldn't imagine the windows version would be at all functional through wine.
iSky is now at version 1.50, which solved a number of issues; the "Install Dependencies" option to install Wine has now been removed and incorporated into the script so that this is done automatically before the installation of either IE or iTunes. The Kubuntu version is now on a par with the standard version.
hi, i used ubuntu before, but never really liked it too much, but since i got a virus (last night), i was forced to reinstall ubuntu...
and about those baby steps... i think you should post them here :P
Hi, I tried to improve your script.
Hope you don't mind
Code:
#!/bin/bash
# Variables
WHO=$(id -un)
TMP=/tmp/iSky
# Functions
usage() {
echo "Usage:"
echo " -i, --install run installer"
echo " -h, --help show this message and exit"
echo ""
exit
}
install_wine() {
wget -q http://wine.budgetdedicated.com/apt/387EE263.gpg -O- | apt-key add -
wget http://wine.budgetdedicated.com/apt/sources.list.d/jaunty.list -O /etc/apt/sources.list.d/winehq.list
aptitude update
aptitude install wine cabextract
}
install_skype() {
wget http://www.skype.com/go/getskype-linux-beta-ubuntu-32 -O $TMP/skype.deb
echo -n "Installing skype... "
dpkg -i $TMP/iSky/skype.deb > /dev/null 2>&1
echo "Done"
echo "-- Skype installation complete! If there are error messages, check your internet connection and retry. Exiting..."
sleep 8s
}
install_itunes() {
wget http://download.oldapps.com/iTunes/iTunes8Setup.exe -O $TMP/iTunesinstaller.exe
echo -n "Installing itunes... "
wine $TMP/iTunesinstaller.exe > /dev/null 2>&1
echo "Done."
echo "-- iTunes installation complete! If there are error messages, check your internet connection and retry. Exiting..."
sleep 8s
}
install_ie() {
wget http://www.tatanka.com.br/ies4linux/downloads/ies4linux-latest.tar.gz -O $TMP/ies4linux-latest.tar.gz
cd $TMP
tar xvf ies4linux-latest.tar.gz
exec $TMP/ies4linux-*/ies4linux
echo -n "Installing ie... "
install -m 755 $TMP/bin/ie6 $PKG/usr/bin
echo "Done."
echo "-- Internet Explorer installation complete! If there are error messages, check your internet connection and retry. Exiting..."
sleep 8s
}
# Make sure the script is being run as root:
if [ "$WHO" != "root" ]; then
echo "You must be root!"
exit 1
fi
set -e
# Print help
#»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»
if [ "$1" = "-h" ] || [ "$1" = "--help" || -z "$1" ]; then
usage
fi
# Run installer
#»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»
if [ "$1" = -i || "$1" = "--install" ]; then
echo " _ ____ _ _ ____ ___
(_)/ ___| | | __ _ _ / | | ___| / _ \
| |\___ \ | |/ /| | | | | | |___ \ | | | |
| | ___) || < | |_| | | | _ ___) || |_| |
|_||____/ |_|\_\ \__, | |_|(_)|____/ \___/
|___/"
echo "Here you can install Skype, iTunes, Internet Explorer, or all three."
echo ""
echo "PLEASE NOTE: YOU MUST HAVE A WORKING INTERNET CONNECTION BEFORE PROCEEDING."
echo ""
echo -n "Please type either 'skype', 'itunes', 'ie', 'all', or 'no thanks'.> "
read a
rm -rf $TMP
mkdir -p $TMP
case $a in
'skype')
install_skype
exit
;;
'itunes')
install_wine
install_itunes
exit
;;
'ie')
install_wine
install_ie
exit
;;
'all')
install_wine
install_skype
install_itunes
install_ie
exit
;;
'no thanks')
echo "You made the right choice."
echo "»»»Itunes is not only proprietary, using proprietary music formats - there is no linux version and never will be.
Suitable alternatives for people who like ethical software are Rhythmbox and Amarok
»»»Skype is proprietary, meaning firstly that you can only use the official client, and secondly that you can only communicate with other people using the official client
Furthermore, there have been several allegations that Skype spies on parts of your computer it has no legitimate reason to access. It also collaborates with the Chinese Government on mass surveillance of its citizens.
A suitable, safe and free alternative would be any programme using the SIP protocol: Ekiga and qutecom spring to mind.
»»»Internet Explorer was Microsoft's attempt to strangle the World Wide Web. By bundling it with their Windoze operating system, they killed off Netscape Navigator and established an effective monopoly on the market. Now, thankfully, they are being punished for it by organisations such as the EU. However, many sites in countries such as Korea (essential ones such as banks) REQUIRE you to use this poorly designed, non-standards-compliant piece of crap.
There are many hundreds of free, open-source browsers available, all of them better than IE. Firefox is the most famous one."
echo ""
sleep 1000s
exit
;;
esac
fi
# Show help if argument not recognised
#»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»»
echo "Invalid command. Here's some help..."
usage
Last edited by piratesmack; 08-31-2009 at 02:47 PM.
Hi piratesmack, of course I don't mind! I won't make a secret of the fact I'm pretty much a beginner....
I liked your changes, but:
Running as root - this is only needed for the installation of the Skype .deb package, and the ies4linux actually encourages you not to give the installer root access....perhaps you could explain why you would have the script require the user be root?
The iTunes installer doesn't run automatically any more, I can see the code for it to do so is there, but it just doesn't....is this something to do with being root?
3. Line 63 needed a little alteration (I think),
Line 63 should be
Code:
if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
instead of
Code:
if [ "$1" = "-h" ] || [ "$1" = "--help" || -z "$1" ]; then
Other than that, I like this a lot! Once the issues above are sorted out / cleared up, would you object to your alterations being included and released?
I have a question: whenever I have installed iTunes via Wine, it's always hit and miss as to whether it works at all, and I usually miss out on some features - like the shop! What limitations are there in your install?
Hi piratesmack, of course I don't mind! I won't make a secret of the fact I'm pretty much a beginner....
I liked your changes, but:
Running as root - this is only needed for the installation of the Skype .deb package, and the ies4linux actually encourages you not to give the installer root access....perhaps you could explain why you would have the script require the user be root?
The iTunes installer doesn't run automatically any more, I can see the code for it to do so is there, but it just doesn't....is this something to do with being root?
3. Line 63 needed a little alteration (I think),
Line 63 should be
Code:
if [ "$1" = "-h" ] || [ "$1" = "--help" ]; then
instead of
Code:
if [ "$1" = "-h" ] || [ "$1" = "--help" || -z "$1" ]; then
Other than that, I like this a lot! Once the issues above are sorted out / cleared up, would you object to your alterations being included and released?
Eddie
1. The reason I did that was so the user can decide how to get administrator privileges. Not everyone likes sudo. But now that I think about it, running wine as root is a very bad idea, so I will take that out.
2. Yeah, that might be why. Running wine with sudo can screw things up.
3. oops, I meant to add || [ -z "$1" ]
That should check if the script was run without any parameters and print out the usage if it was.
I will work on the script some more tomorrow. I have a few more ideas to make it better.
No, I don't mind if you include any of the changes in your script.
Same reason as my need to add Miro's official Ubuntu repository to the sources instead of using the one that comes default in Ubuntu. It is to make sure that I get the latest version possible, yet still be stable, unlike libv4l-0 on Jaunty.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.