try "root", not "admin"
PXE-Boot various systems
If you're looking to perform a lot of system recovery, or system installation, then network booting with PXE is ideal. PXE allows you to boot up a system and have it automatically get an IP address via DHCP and start booting a kernel over the network.
PXE itself stands for "Pre-boot eXecution Environment", which describes how it works in the sense that the clients using it haven't booted in a traditional manner.
I have this systems setup for PXE-Boot, which are working flawless:
- Ubuntu Live-CDs 32 and 64bit
- Kubuntu Live-CDs 32 and 64bit
- Linux Mint XY Cinnamon and KDE
- OpenELEC with /home on NFS
- ReDo 1.04
- Clonezilla with NFS-Share automounted (for Data-Recovery)
- PartedMagic ISO (is $4.99 lately)
- Desinfec't - AntivirusDVD from c't (german computer magazine)
- WinPE 3.0 ISO
2. Create a Share in OMV for TFTP and setup TFTP with it:
3. Create a Share in OMV for NFS
I have different NFS-Shares for this
a) for Images from Clonezilla (for Backup)
b) for OpenELEC-home. My OpenElec-Machine doesn't need a USB- or Harddrive with this. Thx to marcelbeck for the hint
c) a readonly NFS-Share for the PXE-Files extracted from the ISOs
4. Create a graphical Menu for PXE-Boot
I've setup my pxelinux to show a Main-menu and some submenus. So it's easier to read and to edit. Partedmagic is booted from ISO, because i can switch to a new iso very fast. DL, copy, rename, done
Here are some of my menus:
/pxelinux.cfg/menu-amd64Codeappend nfsroot=192.168.178.21:/export/NFS_PXE/ubuntu-12.04-desktop-amd64/ netboot=nfs ro file=/cdrom/preseed/ubuntu.seed boot=casper initrd=/bootfiles/ubuntu-12.04-desktop-amd64/casper/initrd.lz locale=de_DE bootkbd=de console-setup/layoutcode=de --append nfsroot=192.168.178.21:/export/NFS_PXE/kubuntu-12.04-desktop-amd64/ netboot=nfs ro file=/cdrom/preseed/kubuntu.seed boot=casper initrd=/bootfiles/kubuntu-12.04-desktop-amd64/casper//initrd.lz locale=de_DE bootkbd=de console-setup/layoutcode=de --append nfsroot=192.168.178.21:/export/NFS_PXE/mint14-cinnamon/ netboot=nfs ro file=/cdrom/preseed/mint.seed boot=casper initrd=/bootfiles/mint14-cinnamon/casper/initrd.lz locale=de_DE bootkbd=de console-setup/layoutcode=de --
/pxelinux.cfg/menu-dban (abstract) with a "fake-menu"Code
Tutorial Version 0.2:
move dropbox (binary) folders to /opt and create a link:
create a "Shared Folder" in OMV for your Dropbox-Content and link it with the Dropbox-(Document)-Folder in /home/user/
Put this in /etc/init.d/dropbox and edit line
to match a username in OMV, _not_ your dropbox-nameCode
dropbox should run on the next reboot
I've set up a NFS-Share on OMV. With a normal
on my Kubuntu-Machine, i got ~35MB/s transferspeed. While searching the net, i found these options: rsize=32768,wsize=32768
After mounting the NFS-Share with
gave me ~ 55MB/s, a boost of 20MB/s
Maybe someone find this helpful.
I ported a autoshutdown-script (thx chirikai for this) from FreeNAS to Debian/Ubuntu and now made some improvements. Features:
- Check, if PC is online (via IP)
- Check, if processes are running (smbd, nfsd, transmission-daemon...)
- Check, if there are connections on Ports (SSH, FTP, Bittorrent ...
- ^^^ if not, shutdwon, after a period of time
- Read actual IP(s) from ifconfig (eth0, eth1, bond0)
- define a timerange, in which OMV should stay up (whether other PCs are online or not)
- and many others
- Fake-Mode to test your settings. With this, OMV does not shutdown, but displays all what it does in the log
- the script waits 5 min after start (not in Fake-Mode)
Testers welcome I tried to keep the configuration very small and simple.
Thx to :arrow: marcelbeck for the GUI, all testers and bug-reporters.
Please report any issue related to the:
WebUI here: https://github.com/OMV-Plugins/openmediavault-autoshutdown/
installation process and the script itself here: https://github.com/OMV-Plugins/autoshutdown/
Install the Autoshutdown-Plugin from the stable repository: http://packages.omv-plugins.org/ in OMV
Use the deb from here. Make sure you install always the latest version.
For Expert-Settings in the config, please have a look at the included autoshutdown.default (/etc/autoshutdown.default) and the README