• Setup iSCSI Target on Ubuntu 10.10

    Just follow the thread of:

    http://linhost.info/2012/05/configure-ubuntu-to-serve-as-an-iscsi-target/

     

    Reference:

    http://caia.swin.edu.au/reports/130226A/CAIA-TR-130226A.pdf

    https://gist.github.com/Informatic/5893973

    CAIA-TR-130226A

    # Install iscsi
    sudo apt-get update
    sudo apt-get upgrade
    sudo apt-get install iscsitarget
    # Squeezy
    # apt-get install iscsitarget-dkms
    
    # Enable iscsi
    sudo sed -i "s/false/true/" /etc/default/iscsitarget
    
    # Add two file as iSCSI storage
    #   File1:  /data/tmp/win7_32.img
    #   File2:  /data/tmp/win7.img
    
    # Add following line into /etc/iet/ietd.conf
    Target iqn.2014-10.local.zhenglei:storage.sys0
        Lun 0 Path=/data/tmp/win7_32.img,Type=fileio,ScsiId=lun0,ScsiSN=lun0
    
    Target iqn.2014-10.local.zhenglei:storage.sys1
        Lun 0 Path=/data/tmp/win7.img,Type=fileio,ScsiId=lun1,ScsiSN=lun1
    
    # Start iSCSI service
    sudo service iscsitarget stop
    sudo service iscsitarget start
    
    # Testing on Windows7 (built in feature)
    # by searching iscsi keyword 
    
    
    31 10 月, 2014
  • Create USB image file with loop device

    # Install necessary tools

    apt-get clean

    apt-get update

    apt-get install kpartx

    #apt-get install gparted

    apt-get installed parted

    apt-get install qemu-utils

    apt-get install syslinux

    apt-get install dosfstools

     

    # Install ms-sys

    # wget http://superb-dca3.dl.sourceforge.net/project/ms-sys/ms-sys%20stable/2.4.0/ms-sys-2.4.0.tar.gz

    wget http://heanet.dl.sourceforge.net/project/ms-sys/ms-sys%20stable/2.4.1/ms-sys-2.4.1.tar.gz

    tar xvfz ms-sys-2.4.1.tar.gz

    cd ms-sys-2.4.1

    make

    make install

     

     

     

     

    30 10 月, 2014
  • AOE: ATA-over-Ethernet

    AoE runs on layer 2 Ethernet

    Non-routable

     

    http://en.wikipedia.org/wiki/ATA_over_Ethernet#Linux_target_support

     

    http://www.linux.com/community/blogs/129-servers/787919-linux-debian-with-pxe-and-aoe-server-to-install-windows-78

    29 10 月, 2014
  • Install Windows 7 Over PXE

    Save Lono:

    http://www.savelono.com/linux/how-to-install-windows-7-over-a-network-using-linux-pxe-dnsmasq-and-samba.html

    http://www.techbang.com/posts/4851-free-installation-of-windows-7-production-winpe-cd-rom

    http://technet.microsoft.com/en-us/library/cc766376.aspx

    http://technet.microsoft.com/en-us/library/dd744533%28v=ws.10%29.aspx

    http://reboot.pro/topic/8804-firadisk-latest-00130/ 

     http://blog.sina.com.cn/s/blog_509f7e730100w13d.html

    http://www.wcooke.org/wiki/Installing_Windows_using_PXELINUX

    Update:

    http://pnijjar.freeshell.org/2013/win7-pxe/

     

    copype.cmd x86 c:\winpe_x86
    Dism /Mount-Wim /WimFile:C:\winpe_x86\ISO\sources\boot.wim /index:1 /MountDir:C:\winpe_x86\mount
    # Optional,  add chinese font package
    Dism /image:C:\winpe_x86\mount /Add-Package /PackagePath:"C:\Program Files\Windows AIK\Tools\PETools\x86\WinPE_FPs\winpe-fontsupport-zh-cn.cab"
    # Optional,  add win pe setup package
    Dism /image:C:\winpe_x86\mount /Add-Package /PackagePath:"C:\Program Files\Windows AIK\Tools\PETools\x86\WinPE_FPs\winpe-setup.cab"
    Dism /image:c:\winpe_x86\mount /Get-Packages
    Dism /unmount-Wim /MountDir:C:\winpe_x86\mount /Commit
    
    
    25 10 月, 2014
  • Clonezilla with NFS repository

    Add boot parameter:

    ocs_prerun=”mount -t nfs imagehome.zhenglei.net:/data/partimag /home/partimag”

     

    Where:

    imagehome.zhenglei.net:    NFS server for Clonezilla

    /data/partimag:          NFS directory exported on NFS server for Clonezilla

    22 10 月, 2014
  • 转:ubuntu NFS

    http://os.51cto.com/art/201001/176511.htm

    对大家推荐很好使用的nfs服务系统之前,像让大家对Ubuntu nfs服务系统有所了解,然后对Ubuntu nfs服务系统全面讲解介绍,希望对大家有用配置Ubuntu nfs服务器,可见Ubuntu隶属于linux阵营。顺便问一句楼主既然没有文档何必一定要学ubuntu,还是学有文档的比较方便。

    在Ubuntu下安装、配置Ubuntu nfs服务的步骤如下:

    1、安装Ubuntu nfs
    Ubuntu上默认是没有安装Ubuntu nfs服务器的,因此我们首先安装Ubuntu nfs服务器端:$sudo apt-get install nfs-kernel-server
    在一些文档中,提出还需要使用apt-get来手动安装nfs的客户端nfs-common,以及端口映射器portmap,但其实这是没有必要的,因为在安装nfs-kernel-server时,apt会自动为我们把它们安装好。

    2、配置/etc/exports
    Ubuntu nfs允许挂载的目录及权限在文件/etc/exports中进行了定义。
    例如,我们要将根目录下的rootfs目录共享出来,那么我们需要在/etc/exports文件末尾添加如下一行:/rootfs *(rw,sync,no_root_squash)
    其 中:/rootfs是要共享的目录,*代表允许所有的网络段访问,rw是可读写权限,sync是资料同步写入内存和硬盘,no_root_squash是 Ubuntu nfs客户端分享目录使用者的权限,如果客户端使用的是root用户,那么对于该共享目录而言,该客户端就具有root权限。

    其它Ubuntu nfs常用的参数有:
    ro 只读访问
    rw 读写访问sync 所有数据在请求时写入共享
    async nfs在写入数据前可以响应请求
    secure nfs通过1024以下的安全TCP/IP端口发送
    insecure nfs通过1024以上的端口发送
    wdelay 如果多个用户要写入nfs目录,则归组写入(默认)
    no_wdelay 如果多个用户要写入nfs目录,则立即写入,当使用async时,无需此设置。
    hide 在nfs共享目录中不共享其子目录
    no_hide 共享nfs目录的子目录
    subtree_check 如果共享/usr/bin之类的子目录时,强制nfs检查父目录的权限(默认)
    no_subtree_check 和上面相对,不检查父目录权限
    all_squash 共享文件的UID和GID映射匿名用户anonymous,适合公用目录。
    no_all_squash 保留共享文件的UID和GID(默认)
    root_squash root用户的所有请求映射成如anonymous用户一样的权限(默认)
    no_root_squas root用户具有根目录的完全管理访问权限
    anonuid=xxx 指定nfs服务器/etc/passwd文件中匿名用户的UID
    anongid=xxx 指定nfs服务器/etc/passwd文件中匿名用户的GID

    3、Ubuntu nfs重启服务
    $sudo /etc/init.d/portmap restart
    $sudo /etc/init.d/nfs-kernel-server restart

    4、测试Ubuntu nfs
    此时可以运行以下命令来显示一下共享出来的目录:
    $showmount -e
    或者可以使用以下命令把它挂载在本地磁盘上,例如将/rootfs挂载到/mnt下:
    $ sudo mount -t nfs localhost:/rootfs /mnt
    可以运行df命令查看是否挂载成功。查看后可以使用以下命令卸载:
    $ sudo umount /mnt

     

     

    ###########################

    # eample #

    sudo apt-get install nfs-kernel-server

    cat /etc/exports

    /data/download/iso *(ro,insecure,all_squash)

    sudo service portmap restart

    sudo /etc/init.d/nfs-kernel-server restart

    showmount -e

    mkdir /tmp/iso

    sudo mount -t nfs 127.0.0.1:/data/download/iso /tmp/iso

    21 10 月, 2014
  • Change CloneZilla Font Size

    Add boot parameter:

    ocs_fontface=”TerminusBold”

      ocs_fontsize=”24×12″

    Refer to  /etc/default/console-setup

     

    21 10 月, 2014
  • setup Clonezilla live within PXE boot server

    Download Clonezilla Live ISO image (Debian)

    http://www.clonezilla.org/downloads.php

     

    Create mount point inside PXE root directory

    mkdir -p  /tftp/pxe/Clonezilla/amd64

    mkdir -p  /tftp/pxe/Clonezilla/i386

     

    Mount Clonezilla  ISO image as loop device

    mount -o loop -r -n -t iso9660 /tftp/pxe/Clonezilla/amd64  ~/iso/clonezilla-live-2.2.4-12-amd64.iso

    mount -o loop -r -n -t iso9660 /tftp/pxe/Clonezilla/i386  ~/iso/clonezilla-live-2.2.4-12-i686-pae.iso

     

    Create PXE SubMenu for CloneZilla

    DEFAULT /vesamenu.c32
    TIMEOUT 600
    PROMPT 0

    Label  Clonezilla_amd64_install
    kernel /Clonezilla/amd64/live/vmlinuz
    APPEND initrd=/Clonezilla/amd64/live/initrd.img boot=live config noswap nolocales edd=on nomodeset ocs_live_run=”ocs-live-general” ocs_live_extra_param=”” keyboard-layouts=”” ocs_live_batch=”no” locales=”” vga=788 nosplash noprompt fetch=http://apt.zhenglei.net/Clonezilla/amd64/filesystem.squashfs

    Label  Clonezilla_i686_install
    kernel /Clonezilla/i686/live/vmlinuz
    APPEND initrd=/Clonezilla/i686/live/initrd.img boot=live config noswap nolocales edd=on nomodeset ocs_live_run=”ocs-live-general” ocs_live_extra_param=”” keyboard-layouts=”” ocs_live_batch=”no” locales=”” vga=788 nosplash noprompt fetch=http://apt.zhenglei.net/Clonezilla/i686/filesystem.squashfs

     

    Refer to:

    http://www.clonezilla.org/clonezilla-live/boot-parameters/live-config.php

    Advanced Clonezilla Usage

    Advanced Clonezilla Usage.p102

    21 10 月, 2014
  • 转:Clonezilla-vs-FOG-The-clone-wars

    http://www.openlogic.com/wazi/bid/275172/Clonezilla-vs-FOG-The-clone-wars

    20 10 月, 2014
  • 转:企业级云存储评测:Box与Dropbox领衔的终极对决

    http://os.51cto.com/art/201402/430312_all.htm

     

     

    8 10 月, 2014
←上一页
1 … 24 25 26 27 28 … 50
下一页→