Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have just created live ubuntu usb using Unetbootin and an ISO of Ubuntu 11.10.

Everything works fine but I miss skype. Can I add skype to the ISO somehow? Not to download it and install on usb after I boot from the usb? I want to have the iso ready for next usb.

share|improve this question
    
You should be able to do this using preseeding, but it's been so long that I'll have to refresh myself. I'll get right on that. –  Githlar Mar 5 '12 at 9:41
    
add comment

2 Answers

up vote 1 down vote accepted

Actually, I missed the point of your question. You want Skype installed on the USB from the get-go. My other answer pertains to installing Skype after Ubuntu installation to a hard drive.

Really, the only way to go about doing what you asked is to either remaster the filesystem.squashfs or install it into casper-rw. But, either will require being in a Linux system (even the LiveCD, but will require several gigs of RAM to work with). You might be able to do it in Cygwin, but it will require knowledge of how to acquire and install Ubuntu source code.

Creating a casper-rw is the same as intalling it after booting the Live USB with persistance, but that's not what you want.

If you're looking to have it installed in the main filesystem, here's what you'll need to do:

sudo unsquashfs /cdrom/casper/filesystem.squashfs
sudo mount --bind /dev squashfs-root
sudo mount -t proc none squashfs-root/proc
sudo mount -t sysfs none squashfs-root/sys
sudo mount -t devpts none squashfs-root/dev/pts
sudo cp /etc/resolv.conf squashfs-root/etc
sudo chroot squashfs-root
# export HOME=/root
# export LC_ALL=C
# dbus-uuidgen > /var/lib/dbus/machine-id
# dkpg-divert --local --rename --add /sbin/initctl
# ln -s /bin/true /sbin/initctl
# wget http://download.skype.com/linux/skype-ubuntu_2.2.0.35-1_i386.deb
# dpkg -i skype-ubuntu_2.2.0.35-1_i386.deb
# rm skype-ubuntu_2.2.0.35-1_i386.deb
or
# wget http://download.skype.com/linux/skype-ubuntu_2.2.0.35-1_amd64.deb
# dpkg -i skype-ubuntu_2.2.0.35-1_amd64.deb
# rm skype-ubuntu_2.2.0.35-1_i386.deb
# rm /etc/resolv.conf
# rm /var/lib/dbus/machine-id
# rm /sbin/initctl
# dpkg-divert --rename --remove /sbin/initctl
# exit
sudo umount squashfs-root/dev/pts
sudo umount squashfs-root/dev
sudo umount squashfs-root/proc
sudo umount squashfs-root/sys
sudo mksquashfs squashfs-root /cdrom/caser/filesystem.squashfs

All the above are if you're running from the LiveUSB, the only difference from Cygwin is the paths to your USB (referred to as /cdrom from the LiveUSB). Also, you'll have to compile squashfs-tools from inside cygwin. The source can be downloaded from packages.ubuntu.com/oneiric/squashfs-tools.

All-in-all, as you can see it's much easier to just install it once running the LiveUSB (if you stalled with a persistence file, you'll only have to install it once and you're set). If you want help on how to make a persistence file, I can show you that as well.

share|improve this answer
1  
Also, if you want to always have Skype pre-installed when making a LiveUSB, you'll have to add the filesystem.squashfs (from the code block which was copied back to /casper/filesystem.squashfs on the USB iteself) to the Ubuntu ISO using a program like MagicISO or PowerISO –  Githlar Mar 6 '12 at 6:43
add comment

This is untested, but can give you a nudge in the right direction. What you'll probably want to do is use a preseed file to run a command after install to add the Skype pacakge.

So, you'd add the Skype package onto the disk, then change the /preseed/ubuntu.seed file to something like this:

# Enable extras.ubuntu.com.
d-i    apt-setup/extras    boolean true
# Install the Ubuntu desktop.
tasksel    tasksel/first    multiselect ubuntu-desktop
# INSTALL SKYPE
d-i    preseed/late_command    cp /cdrom/skype-i386.deb /target
d-i    preseed/late_command    chroot /target dpkg -i /skype-i386.deb
d-i    preseed/late_command    rm /target/skype-i386.deb
# On live DVDs, don't spend huge amounts of time removing substantial
# application packages pulled in by language packs. Given that we clearly
# have the space to include them on the DVD, they're useful and we might as
# well keep them installed.
ubiquity    ubiquity/keep-installed string icedtea6-plugin openoffice.org

That should do it I believe. What it does it after installation, it will specifically install Skype into the system by running some manual command post-install but before restart.

share|improve this answer
    
How can I do this from Windows? I don't have ubuntu installed... –  Radek Mar 5 '12 at 23:35
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.