WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: skype install script  (Read 24215 times)

Offline jur

  • Hero Member
  • *****
  • Posts: 863
    • cycling photo essays
Re: skype install script
« Reply #15 on: November 27, 2009, 01:20:37 AM »
I get this message:
Code: [Select]
tc@box:~$ skype
/usr/local/skype/skype: error while loading shared libraries: libasound.so.2: cannot open shared object file: No such file or directory
I have Xlibs_support and a lot of other deps... am running OSS...  ???

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: skype install script
« Reply #16 on: November 27, 2009, 01:43:54 AM »
yes...requires libasound.tczl   

Offline jur

  • Hero Member
  • *****
  • Posts: 863
    • cycling photo essays
Re: skype install script
« Reply #17 on: November 27, 2009, 02:13:15 AM »
Thanks very much for this!

Submit skype to the repo? Or is it better at this stage to rebuild it self?

Offline jur

  • Hero Member
  • *****
  • Posts: 863
    • cycling photo essays
Re: skype install script
« Reply #18 on: November 27, 2009, 02:27:46 AM »
I am not getting sound... but OSS sound works on my netbook. Does Skype require alsa sound or can it be configured?

Offline jpeters

  • Restricted
  • Hero Member
  • *****
  • Posts: 1017
Re: skype install script
« Reply #19 on: November 27, 2009, 02:47:34 AM »
I know the windows and old static versions were running with OSS, but not sure with the present version (I'm running alsa).  Leaving as a script has some advantages for quick updating, although it's true that some associate "terminal" with the disease model.    
« Last Edit: November 27, 2009, 09:21:23 AM by jpeters »

Offline Tarkus

  • Newbie
  • *
  • Posts: 18
Re: skype install script
« Reply #20 on: January 19, 2011, 03:04:16 AM »
Hey! I know this is not a new thread, but I think it's the right place to post my problem... I tried to use the script but Skype does not get installed... I had to change the old version number of the Skype package in the script for the new one. Also, I commented the M5D lines as it always prompts the "Download failed. aborting" message (with the old and the new versions). The issue is that the installation stops after the following line:

Code: [Select]
skype_static-2.1.0.81/LICENSE
I attached the modified script and a files search that I performed.

Any suggestion is welcomed :)

[deleted duplicate attachments]
« Last Edit: January 19, 2011, 10:38:35 AM by ^thehatsrule^ »

Offline Tarkus

  • Newbie
  • *
  • Posts: 18
Re: skype install script
« Reply #21 on: January 23, 2011, 08:32:23 PM »
Hey! I've updated the install script (including the checksum :P):

Code: [Select]
#!/bin/bash
# Installer of Skype.

set -e

NAME=skype
VERSION=2.1.0.81
DOWNLOAD=http://www.skype.com/go/getskype-linux-beta-static
SOURCE=skype_static-2.1.0.81.tar.bz2
MD5SUM=137a4a749c8fb3b76c3410514c7e2053
TMPDIR=/tmp/skypedownload-2.1.0.81
PKG="$TMPDIR"/pkg
LIST="$TMPDIR"/"$NAME".list
SRCDIR=/tmp

download() {
cd "$SRCDIR"
if [ -e "$SOURCE" ]; then
if [ $(md5sum "$SOURCE" | cut -c1-32) != "$MD5SUM" ]; then
rm "$SOURCE"
fi
fi
if [ ! -e "$SOURCE" ]; then
wget "$DOWNLOAD"/"$SOURCE"
fi
if [ $(md5sum "$SOURCE" | cut -c1-32) = "$MD5SUM" ]; then
echo "md5sum passed."
else
echo "Download failed. aborting"
exit 1;
fi
}

if [ -e "$TMPDIR" ]; then
rm -r "$TMPDIR"
fi
mkdir -p "$TMPDIR"
if [ ! -e "$PKG"/usr/local/tce.menu ]; then
mkdir -p "$PKG"/usr/local/tce.menu
fi
download &&
tar xjvf "$SRCDIR"/"$SOURCE" -C "$PKG"/usr/local/
mv "$PKG"/usr/local/skype_static-2.1.0.81 "$PKG"/usr/local/skype
mkdir -p "$PKG"/usr/local/tce.menu
echo "<JWM>" > "$PKG"/usr/local/tce.menu/skype
echo "<Program label="\"Skype"\">/usr/local/skype/skype</Program>" >> "$PKG"/usr/local/tce.menu/skype
echo "</JWM>" >> "$PKG"/usr/local/tce.menu/skype

cd "$PKG"
######## Add Script
mkdir   usr/local/bin
sudo chmod 775 usr/local/bin
cat <<EOF> usr/local/bin/skype
#!/bin/sh
/usr/local/skype/skype
exit 0
EOF

sudo chmod +x usr/local/bin/skype


sudo chown -R root:staff ./
sudo chmod 775 usr/local/tce.* 

####################
sudo mksquashfs ./ /tmp/skype.tcz

sudo rm -r "$TMPDIR" "$SRCDIR"/"$SOURCE"

echo "skype.tcz is now in your /tmp directory."

sleep 4

For newbies as me --> save the script (attached to the post) into the home directory, then run the following commands in the terminal:

Code: [Select]
cd ~
sh skype.sh

Finally, go to AppBrowser and click the Local entry, enter /tmp/skype.tcz in the Filename box and click the OK button.

In order to launch it, enter skype in the terminal.
« Last Edit: January 25, 2011, 03:02:16 AM by Tarkus »

Offline Lee

  • Hero Member
  • *****
  • Posts: 645
    • My Core wiki user page
Re: skype install script
« Reply #22 on: January 24, 2011, 03:12:49 AM »
I tried the above script and he extension gets built and it loads OK, but when I try to make the test call to skype I get an error message indicating a problem with audio playback.

I'm on micro core 3.4.1 with core elements, jwm-snapshot and wbar.  I have qt-4.x-base.tcz, dbus.tcz, libasound.tcz and pulseaudio,tcz loaded.

Using OSS sound. And my headphones & microphone really do work.

Has anyone run into a similar problem?
32 bit core4.7.7, Xprogs, Xorg-7.6, wbar, jwm  |  - Testing -
PPR, data persistence through filetool.sh          |  32 bit core 8.0 alpha 1
USB Flash drive, one partition, ext2, grub4dos  | Otherwise similar

Offline nick65go

  • Hero Member
  • *****
  • Posts: 799
Re: skype install script
« Reply #23 on: January 24, 2011, 12:49:27 PM »
Lee, I am using TC 3.4.1

you could read here:
http://www.opensound.com/wiki/index.php/Configuring_Applications_for_OSSv4#Skype
Skype versions from 1.4 to 2.0 support OSS using a separate OSS-enabled binary. The regular binary will not work!

or my post here
http://forum.tinycorelinux.net/index.php?topic=7006.msg37306#msg37306
Warning! delete alsa-module from v4l-dvb-2.6.33.3-tinycore.tcz.DEP first, it is not need
from command: cat /mnt/sda4/tceUSB/optional/skypeOSS.tcz.DEP manually created
OSS.tcz
v4l-dvb-2.6.33.3-tinycore.tcz
libasound.tcz
Xorg-7.5-lib.tcz
fontconfig.tcz

I think the modules  alsa-module or pulseaudio prevent OSS to do its job;
If you wish skype + OSS sound, then try my solution first ;)
Start TC with bootcodes base norestore, to be sure you pinpoint the offending modules, Good luck!
« Last Edit: January 24, 2011, 12:57:49 PM by nick65go »

Offline grandma

  • Full Member
  • ***
  • Posts: 213
  • Never forget Grandma Loves You & made that candy4U
    • Back when a 10MB HD was $500 bucks
Re: skype install script
« Reply #24 on: May 01, 2011, 03:49:51 PM »
Thank you tarkus for the script  - hugs from grandma(assuming your script works that is)...

...oops spoke too soon.

YES it downloaded - had to go hunt it down in /tmp and found it there - have moved a backup copy to hard drive

YES it made the folders - under /tmp

Nothing in the folders - just a string of empty sub folders

Any ideas or suggestions?

Installing Skype was (still is) one of the key missing links in my "TC is an office" migrations and I believe warrants a huge step-by-step multi-language tutorial and reliable script, since everyone I deal with in business around the world uses Skype - almost without fail. I would not try to develop a TCZ though - have found Skype buggy and warning - DO NOT give your credit card to them. Their database got hacked and I got whacked for charges - took me 4 months to straighten that out with Skype and my bank. Got an apology from the Skype Prez, but suggest you use a "throw away" credit card if you use Skype and pay for services - the hackers even hit my bank account after my bank and Skype were on to them - heads up.
« Last Edit: May 01, 2011, 04:09:06 PM by grandma »
~ Luv Grandma
"When children of all nations
play in the sandbox together
all morning-all day-all week, and
one fine sunny day; all year long ...
... then war will become an ancient memory
and Grandma can knit that sweater
you'll hold near to your heart
until long after you're my age.

Offline floppy

  • Hero Member
  • *****
  • Posts: 577
Re: skype install script
« Reply #25 on: May 02, 2011, 11:57:19 AM »
So far I remember, I used this script.
And I could not find where it was (not at boot if I remember).
Then I had to go to the appsaudit, the skype.tcz was in "local".
Then I installed it  with the option download.
And it was there for command line install.
I did not try to reproduce it.. just remembering.
AMD K6-IIIATZ 550MHz MB DFI K6xv3/+66
P4 HP DC7100 3GB 3GHz
Samsung NC10 boot from SD card port (via USB reader)
.. all TinyCore proofed

Offline jur

  • Hero Member
  • *****
  • Posts: 863
    • cycling photo essays
Re: skype install script
« Reply #26 on: May 02, 2011, 03:45:56 PM »
I used it not so long ago... would have to go through it to see what was wrong... I think there was a problem with the web link - the newest version is at a different address. I replaced the one in the script with the correct one and it worked after that.

Offline stevesr0

  • Newbie
  • *
  • Posts: 15
Re: skype install script
« Reply #27 on: May 25, 2011, 11:10:14 AM »
The script doesn't work for me.  I get "bus error".  Is this because I am running TCL (3.71rc1) as a live CD?

The errors seem to involve reading data or pages and reference the squash FS.  Or perhaps bad memory?

UPDATE: When I ran the command using sh first, I don't get the "bus error".  When I run the command without sh (or with bash before the command), I do.  The dmesg log looks the same in any event.

I haven't been able to capture most of the error that appears on the screen when I use "sh".  This indicates that the url for the download of the static skype app is incorrect, and thus the download fails.

I downloaded the app manually to the computer, so I can modify the script to the program location on the computer. 

But, for those using this script, the address listed doesn't get you to it without further modification.

Steve

Offline stevesr0

  • Newbie
  • *
  • Posts: 15
Re: skype install script
« Reply #28 on: May 25, 2011, 01:47:59 PM »
After I wrote my earlier reply, I saw the thread which described success by downloading the static app (tar.bz2) and untarring it to launch skype.

I just tried that with the 2.2.0.25 beta and it seems to work.

Steve

Offline grandma

  • Full Member
  • ***
  • Posts: 213
  • Never forget Grandma Loves You & made that candy4U
    • Back when a 10MB HD was $500 bucks
Re: skype install script
« Reply #29 on: June 07, 2011, 01:35:33 PM »
OK - so far my skype has been rather robust for over a month - used daily - no problems.

I also have Firefox and Flash running - and use ALSA modules.

Most of the problems I had were related to alsa - I had to write a script to automatically get the volume up (tired of poking around in there on each boot) - and I can actually hear my speakers POP to 80% when that runs. Basically the script loops through all alsa settings and if its boolean - goes to true - and if its an integer - reads the types of levels required and bumps them to 80% - you can always run alsagui after that to bring em down manually.

One of the things I added to that script was BEFORE bumping up volumes was related to the tce-unload.sh script I found here - I unload

flash
firefox
skype
all alsa mods

then I do everything in order

alsa stuff first
then flash
then firefox
then skype

It may work in a different sequence, but this seems to work well.

If you need copies of the various scripts - let me know - PM etc. and I will post them here. Since I USED to write shells scripts - and didn't for almost 15 years - my knitting may or may not suit your taste - but they work - darn near every time - and I always get mic and speakers and flash videos - all that - in firefox.

One warning: both in Windows and I find in TC - when you run skype all day things start to slow down - or get corrupt - or dysfunctional - not sure why but it seems to be a common issue with skype.

Second warning: December 2010 some Euro hackers hit my credit card and began making skype purchases. The folks at skype and my bank traced it back to Skype users - and the cc# was in the skype database. Even after dealing with that 9 hours of calls - and revoking/killing that card the same group hit my account again a month later - that was another nightmare of banking - I love skype, but the apology letter from the skype president and $30 voucher really didn't convince me to give them another credit card number and I suggest you don't either.

Heads up.
~ Luv Grandma
"When children of all nations
play in the sandbox together
all morning-all day-all week, and
one fine sunny day; all year long ...
... then war will become an ancient memory
and Grandma can knit that sweater
you'll hold near to your heart
until long after you're my age.