LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 08-24-2009, 06:26 AM   #1
randomsquires
LQ Newbie
 
Registered: Mar 2009
Posts: 8

Rep: Reputation: 1
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.

Thanks
Eddie
 
Old 08-26-2009, 05:26 AM   #2
tommcd
Senior Member
 
Registered: Jun 2006
Location: Philadelphia PA USA
Distribution: Lubuntu, Slackware
Posts: 2,230

Rep: Reputation: 293Reputation: 293Reputation: 293
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?
 
Old 08-28-2009, 06:04 AM   #3
randomsquires
LQ Newbie
 
Registered: Mar 2009
Posts: 8

Original Poster
Rep: Reputation: 1
Quote:
Originally Posted by tommcd View Post
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.

Thanks for your interest.
 
Old 08-28-2009, 09:21 AM   #4
randomsquires
LQ Newbie
 
Registered: Mar 2009
Posts: 8

Original Poster
Rep: Reputation: 1
Update: iSky 1.50

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.
 
Old 08-28-2009, 02:30 PM   #5
randomsquires
LQ Newbie
 
Registered: Mar 2009
Posts: 8

Original Poster
Rep: Reputation: 1
64-bit versions are now available for anyone who's interested; please let me know if there are any issues.
 
Old 08-29-2009, 12:00 PM   #6
bikekid2222
LQ Newbie
 
Registered: Aug 2009
Posts: 1

Rep: Reputation: 0
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
 
Old 08-31-2009, 01:22 PM   #7
piratesmack
Member
 
Registered: Feb 2009
Distribution: Slackware, Arch
Posts: 519

Rep: Reputation: 142Reputation: 142
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.
 
Old 09-01-2009, 01:20 AM   #8
vibinlakshman
Member
 
Registered: Dec 2008
Location: Kerala, India
Distribution: Ubuntu 11.10
Posts: 334

Rep: Reputation: 33
Cool

Great work man .. So simple .. Hats off to both Creator and Editor
 
Old 09-01-2009, 01:50 PM   #9
randomsquires
LQ Newbie
 
Registered: Mar 2009
Posts: 8

Original Poster
Rep: Reputation: 1
Piratesmack's changes

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:
  1. 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?
  2. 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
 
Old 09-01-2009, 03:28 PM   #10
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
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?
 
Old 09-01-2009, 07:48 PM   #11
piratesmack
Member
 
Registered: Feb 2009
Distribution: Slackware, Arch
Posts: 519

Rep: Reputation: 142Reputation: 142
Quote:
Originally Posted by randomsquires View Post
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:
  1. 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?
  2. 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.
 
Old 09-02-2009, 11:19 AM   #12
piratesmack
Member
 
Registered: Feb 2009
Distribution: Slackware, Arch
Posts: 519

Rep: Reputation: 142Reputation: 142
OK, here's the new script:
http://www.filefront.com/14450787/iSky%201.50.zip

I don't have access to an Ubuntu system at the moment, so I'm not sure if it works.

Just run build-deb.sh to build a deb, install it, and run "isky" in the terminal
 
Old 09-02-2009, 02:08 PM   #13
gotenks05
LQ Newbie
 
Registered: Mar 2008
Posts: 14

Rep: Reputation: 1
Uh, Skype's available on Ubuntu. Sure the repository may be old, but I can get the debian package from Skype themselves.
 
Old 09-02-2009, 07:30 PM   #14
spin498
LQ Newbie
 
Registered: Jan 2009
Posts: 15

Rep: Reputation: 0
Why do you want to?
 
Old 09-02-2009, 11:22 PM   #15
gotenks05
LQ Newbie
 
Registered: Mar 2008
Posts: 14

Rep: Reputation: 1
Quote:
Originally Posted by spin498 View Post
Why do you want to?
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu w/ firefox & internet explorer LAKEMIRIAM Linux - Newbie 15 12-05-2008 02:45 AM
LXer: How To Install The Internet Explorer On Ubuntu 8.04 LXer Syndicated Linux News 0 06-16-2008 10:00 AM
LXer: Running Internet Explorer in Ubuntu Linux LXer Syndicated Linux News 0 12-30-2006 10:54 AM
LXer: Running Internet Explorer in Debian and ubuntu Linux LXer Syndicated Linux News 2 12-15-2006 09:31 AM
using internet explorer in ubuntu Toaster Ubuntu 11 04-24-2005 07:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 12:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration