Update for creating Fedora 21 live usb with persistence

I’ve done quite a few of these installations now and have refined the configuration quite a bit. This version also adds helpful details.
To prepare:
authenticate with wifi lan
open terminal
# yum install livecd-tools
insert target USB
# dmesg
see something like:
[ 1613.056043] scsi 9:0:0:0: Direct-Access     SanDisk  Cruzer Contour   4.13 PQ: 0 ANSI: 2
[ 1613.057801] sd 9:0:0:0: Attached scsi generic sg4 type 0
[ 1613.059534] sd 9:0:0:0: [sdd] 32112269 512-byte logical blocks: (16.4 GB/15.3 GiB)
[ 1613.060376] sd 9:0:0:0: [sdd] Write Protect is off
[ 1613.060383] sd 9:0:0:0: [sdd] Mode Sense: 03 00 00 00
[ 1613.061176] sd 9:0:0:0: [sdd] No Caching mode page found
[ 1613.061182] sd 9:0:0:0: [sdd] Assuming drive cache: write through
[ 1613.075279]  sdd: sdd1
[ 1613.079792] sd 9:0:0:0: [sdd] Attached SCSI removable disk
[ 1613.611180] EXT4-fs (sdd1): mounted filesystem with ordered data mode. Opts: (null)
[ 1613.611194] SELinux: initialized (dev sdd1, type ext4), uses xattr
/dev/sdd will be the adress of this target USB
# df -Th will also display it
/dev/sdd1           ext4       15G  1.6G   13G  11% /run/media/liveuser/fedora21
or hit window key, type disk and a utility will come up showing details on all mounted devices.
The USB was automatically mounted when it was plugged in. The following command won’t complete until you unmount it for safety.
# umount /dev/sdd
Command to create USB with data persistence for Sandisk Cruzer 16GB:
# livecd-iso-to-disk –format –overlay-size-mb 8000 –home-size-mb 5065 –delete-home –unencrypted-home –label fedora21 /run/media/liveuser/2A00BAF300BAC55B/Users/Guest/Desktop/Downloads/Fedora-Live-Workstation-x86_64-21-5.iso /dev/sdd1
Same command for Voyager GT 4GB
# livecd-iso-to-disk –format –overlay-size-mb 2173 –label fed21-voyager /run/media/liveuser/2A00BAF300BAC55B/Users/Guest/Desktop/Downloads/Fedora-Live-Workstation-x86_64-21-5.iso /dev/sdd1
Actually, that command didn’t work. The USB wasn’t bootable. The following worked. I also got a warning that the label should probably be all caps, thus the change there.
livecd-iso-to-disk –format –reset-mbr –efi –overlay-size-mb 2200 –label fed21v /run/media/liveuser/2A00BAF300BAC55B/Users/Guest/Downloads/Fedora-Live-Xfce-x86_64-21-5.iso /dev/sdd
Tip: You can use the top command to show memory, cpu and processes. To just show memory usage you can use ‘free’.
The Fedora-Live-Xfce is very nice low memory Fedora ‘Spin’.
Items to configure:
vpn
Hi Kor, you would just install openvpNote: I’m avoiding installing this as it uses a lot more memory than the pre-installed firefox. I just install the Lastpass addon to firefox.n, normally *yum install openvpn* you may need to add the epel repo. Download our configs from our downloads page torguard.net/downloads.php – unzip them to /etc/openvpn

Then rename whichever config you want to connect to from extension .ovpn to .conf and run like so:

cd /etc/openvpn
openvpn some_config.conf
It will then ask for your user/pass to connect.
use the mv command to rename
edit the config file:
     replace
          auth-user-pass
     with
         auth-nocache
         auth-user-pass auth.txt
create script:
     #!/bin/bash
     openvpn /etc/openvpn/TorGuard.USA-LA.conf

wifi
time
printer
Applications to install:
google-chrome-stable
Note: I’m avoiding installing this as it uses a lot more memory than the pre-installed firefox. I just install the Lastpass addon to firefox.
# su –
# cat << EOF > /etc/yum.repos.d/google-chrome.repo
[google-chrome]
name=google-chrome – $basearch
baseurl=http://dl.google.com/linux/chrome/rpm/stable/$basearch
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub
EOF
# yum install google-chrome-stable
hugin
filezilla
vim
Optional:
livecd-tools
liveusb-creator
UNetbootin

Author: korkiley

Systems Administrator at University of Vermont (retired as of 7/1/2012) Married Favorite Activities: Condor Glider Online Competition, Developing web sites, making espresso, and keeping a blog

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s