Šta je novo?

Najbolji sistem za boot sa USB za klient masinu

Bane R

Čuven
VIP član
Učlanjen(a)
03.07.2000
Poruke
6,775
Poena
810
Mucim se sa ovim http://www.core.net.nz/index.php?productID=229&PHPSESSID=626a42705ebc1e9b10aca9b43c9de931

i bootovanim puppy linuxom sa usba.

Problem je sto mi browser, bilo seamonkey, bilo firefox, nekada prsne sam od sebe. Nekada - kada se iole malo vise namuci.

Treba mi najvise za web, ali je pozeljno da ima sto vise stvari i obavezno je da ima neku aplikaciju za remote desktop na win 2003.

Je l ima nesto bolje, brze, mocnije, stabilnije od ovog puppy linuxa...

Hvala :).
 
Vector Linux je dobar, medjutim on nema remote desktop aplikaciju preinstaliranu tako da bi morao da se iscimas oko toga.

Zato ces morati da se igras Bob the Buildera i uhvatis se u kostac sa Slaxom. Ja sam poceo a ti zavrsi ;)

P.S. Jedino sto sam dodao je ono sto tebi treba - TightVNC za koji pise da je experimentalni module, tako da moguce da nece najsrecnije raditi. Iskren da budem nisam nikad koristio Slax ali mi se cini kao najbolje resenje a i hteo sam da pomognem :)
 
Ma ok, u principu znam da instaliram nešto na linuxu, čak i ako nije preko nekog ***** wizarda :)...
 
Probaj i Slitaz.
Dolazi sa rdesktop-om a ISO je tezak oko 30mb.
 
Nadam se da pravljenje boot USBa nije teško. Obzirom da je Puppy imao neku varijantu: nareže se na CD, bootuje se sistem, na taj sistem se prilkjuči USB i od njega napravi boot usb sistem :).
 
Tako je u vecini mini distribucija.
 
How to put Slax to USB drive or disk

Slax for USB is a Slax distribution in TAR format, designed to be unpacked to a writable disk. If you don't know what TAR format is, you may imagine it as a ZIP archive. Extract (unzip) the archive directly to your USB flash key, to an MP3 player or even to a Hard Disk. Most archival programs can extract TAR without any problem. Slax for USB is set to save all changes you make to the boot device (disk), so it will behave like a normally installed operating system.



How to make it bootable

When Slax is unpacked to your device, it will create '/boot/' and '/slax/' directories there. Only one more step is needed to make Slax boot from your USB device or disk: you have to manually navigate to the newly created /boot/ directory and run bootinst.sh script (if you are in Linux) or bootinst.bat script (if you are in Windows).

The method mentioned above will simply install syslinux bootloader to your device's MBR (master boot record). Syslinux works only on FAT filesystem (which is widely used on most USB flash keys, Cameras and MP3 players). If your device or disk is formated using a different filesystem (it is strongly recommended to use a native Linux filesystem like XFS), you will have to use 'liloinst.sh' script instead. Currently, liloinst doesn't provide the same nice boot menu like syslinux, but this will be implemented soon.



The difference between Slax for CD and Slax for USB

Both the variants are exactly the same. The only difference is in the distribution format. ISO is prepared for people who need a bootable CD. TAR is for people who need to extract the contents to disk. But as mentioned, the Slax inside is completely the same. You don't need to download Slax for USB if you have the ISO and you know how to extract it's content. Also, you don't need to download ISO, if you have tar and you know how to make a bootable CD from it.

http://www.slax.org/documentation_install_slax.php
 
Evo ti ISO to USB skripta.

Kod:
#!/bin/bash

export PATH=/sbin:/usr/sbin:$PATH

usage() {
    echo "$0 [--reset-mbr] [--noverify] <isopath> <usbstick device>"
    exit 1
}

cleanup() {
    [ -d "$CDMNT" ] && umount $CDMNT && rmdir $CDMNT
    [ -d "$USBMNT" ] && umount $USBMNT && rmdir $USBMNT
}

exitclean() {
    echo "Cleaning up to exit..."
    cleanup
    exit 1
}

getdisk() {
    DEV=$1

    p=$(udevinfo -q path -n $DEV)
    if [ -e /sys/$p/device ]; then
	device=$(basename /sys/$p)
    else
	device=$(basename $(readlink -f /sys/$p/../))
    fi
    if [ ! -e /sys/block/$device -o ! -e /dev/$device ]; then
	echo "Error finding block device of $DEV.  Aborting!"
	exitclean
    fi

    device="/dev/$device"
}

resetMBR() {
    getdisk $1
    cat /usr/lib/syslinux/mbr.bin > $device
}

checkMBR() {
    getdisk $1

    bs=$(mktemp /tmp/bs.XXXXXX)
    dd if=$device of=$bs bs=512 count=1 2>/dev/null || exit 2
    
    mbrword=$(hexdump -n 2 $bs |head -n 1|awk {'print $2;'})
    rm -f $bs
    if [ "$mbrword" = "0000" ]; then
	echo "MBR appears to be blank."
	echo "Do you want to replace the MBR on this device?"
	echo "Press Enter to continue or ctrl-c to abort"
	read
	resetMBR $1
    fi

    return 0
}

checkPartActive() {
    dev=$1
    getdisk $dev
    
    # if we're installing to whole-disk and not a partition, then we 
    # don't need to worry about being active
    if [ "$dev" = "$device" ]; then
	return
    fi

    if [ "$(/sbin/fdisk -l $device 2>/dev/null |grep $dev |awk {'print $2;'})" != "*" ]; then
	echo "Partition isn't marked bootable!"
	echo "You can mark the partition as bootable with "
        echo "    # /sbin/parted $device"
	echo "    (parted) toggle N boot"
	echo "    (parted) quit"
	exitclean
    fi
}

checkFilesystem() {
    dev=$1

    USBFS=$(/lib/udev/vol_id -t $dev)
    if [ "$USBFS" != "vfat" -a "$USBFS" != "msdos" -a "$USBFS" != "ext2" -a "$USBFS" != "ext3" ]; then
	echo "USB filesystem must be vfat or ext[23]"
	exitclean
    fi

    USBLABEL=$(/lib/udev/vol_id -u $dev)
    if [ -n "$USBLABEL" ]; then 
	USBLABEL="UUID=$USBLABEL" ; 
    else
	USBLABEL=$(/lib/udev/vol_id -l $dev)
	if [ -n "$USBLABEL" ]; then 
	    USBLABEL="LABEL=$USBLABEL" 
	else
	    echo "Need to have a filesystem label or UUID for your USB device"
	    if [ "$USBFS" = "vfat" -o "$USBFS" = "msdos" ]; then
		echo "Label can be set with /sbin/dosfslabel"
	    elif [ "$USBFS" = "ext2" -o "$USBFS" = "ext3" ]; then
		echo "Label can be set with /sbin/e2label"
	    fi
	    exitclean
	fi
    fi
}

checkSyslinuxVersion() {
    if [ ! -x /usr/bin/syslinux ]; then
	echo "You need to have syslinux installed to run this script"
	exit 1
    fi
    if ! syslinux 2>&1 | grep -qe -d; then
	SYSLINUXPATH=""
    else
	SYSLINUXPATH="syslinux"
	#menu texts are trimmed when syslinux is not in / no idea why
	SYSLINUXPATH=""
    fi
}

if [ $(id -u) != 0 ]; then 
    echo "You need to be root to run this script"
    exit 1
fi

while [ $# -gt 2 ]; do
    case $1 in
	--noverify)
	    noverify=1
	    ;;
	--reset-mbr|--resetmbr)
	    resetmbr=1
	    ;;
	*)
	    usage
	    ;;
    esac
    shift
done

ISO=$1
USBDEV=$2

if [ -z "$ISO" -o ! -e "$ISO" ]; then
    usage
fi

if [ -z "$USBDEV" -o ! -b "$USBDEV" ]; then
    usage
fi

if [ -z "$noverify" ]; then
    # verify the image
    echo "Not verifying image...(no checkisomd5 in Ubuntu so skipping)!"
    #checkisomd5 --verbose $ISO
    if [ $? -ne 0 ]; then
	echo "Are you SURE you want to continue?"
	echo "Press Enter to continue or ctrl-c to abort"
	read
    fi
fi

# do some basic sanity checks.  
checkSyslinuxVersion 
checkFilesystem $USBDEV
checkPartActive $USBDEV
checkMBR $USBDEV
[ -n $resetmbr ] && resetMBR $USBDEV

# FIXME: would be better if we had better mountpoints
CDMNT=$(mktemp -d /media/cdtmp.XXXXXX)
mount -o loop $ISO $CDMNT || exitclean
USBMNT=$(mktemp -d /media/usbdev.XXXXXX)
mount $USBDEV $USBMNT || exitclean

trap exitclean SIGINT SIGTERM

if [ -d $USBMNT/casper ]; then
    echo "Already set up as live image.  Deleting old in fifteen seconds..."
    sleep 15

    rm -rf $USBMNT/casper
fi

echo "Copying live image to USB stick"
if [ ! -d $USBMNT/$SYSLINUXPATH ]; then mkdir $USBMNT/$SYSLINUXPATH ; fi

for file in \
	 README.diskdefines md5sum.txt \
	.disk casper pool dists preseed install;do
	cp -a $CDMNT/$file $USBMNT/
done

cp $CDMNT/isolinux/* $USBMNT/$SYSLINUXPATH

echo "Installing boot loader"
if [ "$USBFS" = "vfat" -o "$USBFS" = "msdos" ]; then
    # syslinux expects the config to be named syslinux.cfg 
    # and has to run with the file system unmounted
    mv $USBMNT/$SYSLINUXPATH/isolinux.cfg $USBMNT/$SYSLINUXPATH/syslinux.cfg
    cleanup
    if [ -n "$SYSLINUXPATH" ]; then
	syslinux -d $SYSLINUXPATH $USBDEV
    else
	syslinux $USBDEV
    fi
elif [ "$USBFS" = "ext2" -o "$USBFS" = "ext3" ]; then
    # extlinux expects the config to be named extlinux.conf
    # and has to be run with the file system mounted
    mv $USBMNT/$SYSLINUXPATH/isolinux.cfg $USBMNT/$SYSLINUXPATH/extlinux.conf
    extlinux -i $USBMNT/$SYSLINUXPATH
    cleanup
fi

echo "USB stick set up as live image!"
 
Poslednja izmena:
Slax zakon za te stvari.
 
Eh... taj Slax, neverovatno kako se dobro "pakuje", ali imam problem sa performansama i stabilnošću.

Evo da povučem paralelu sa Puppyem. Puppy mi je radio... onako... dok nisam namestio da se NE kopira na ram (jer rama i onako nemam). Takođe je pomoglo stabilnošću to što sam jednu (na usb napravljenu) particiju stavio kao swap particiju. Posle ove dve stvari, čini mi se da sam izvukao najbolje moguće.

Kada se Slax bootuje, on nudi opciju da se kopira na ram, ali kada izaberem regularno sve, ne znam da li se kopira na ram. Druga stvar je, da li će Slax, poput Puppya, automatski prepoznati da na raspolaganju ima swap particiju i koristiti je za to. Pošto se Slax otprilike ponaša kao Puppy u najgorem izdanju, ali siguran sam da može da se našteluje :).
 
Probaj knoppix 6.2,kod mene radi kao sat.Imas na njemu kad ga boot-ujes sa cd-a opciju da instaliras na usb.
 
Poslednja izmena:
Nazad
Vrh Dno