WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Anyone booted TCL from NIC(Ethernet)?  (Read 3325 times)

Offline limeblack

  • Jr. Member
  • **
  • Posts: 69
Anyone booted TCL from NIC(Ethernet)?
« on: February 21, 2017, 02:58:38 PM »
So its funny now a days laptops/desktops are less likely to have cd drives unfortunately.

Has anyone gotten TCL to boot from the Ethernet port?

I am actually working with a desktop computer which can't boot from USB(to old) and some idiot thought it would be a good idea to remove the dvd drive.  I would prefer if I didn't have to open up the computer but will if I have to.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Anyone booted TCL from NIC(Ethernet)?
« Reply #1 on: February 21, 2017, 03:08:15 PM »
It is covered in the wiki.

Offline limeblack

  • Jr. Member
  • **
  • Posts: 69
Re: Anyone booted TCL from NIC(Ethernet)?
« Reply #2 on: February 21, 2017, 03:10:13 PM »
I apologize http://wiki.tinycorelinux.net/wiki:netbooting?s[]=boot&s[]=ethernet

I searched boot nic with no search results.

So TC Terminal Server comes preinstalled?
« Last Edit: February 21, 2017, 03:18:03 PM by limeblack »

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11691
Re: Anyone booted TCL from NIC(Ethernet)?
« Reply #3 on: February 21, 2017, 03:20:58 PM »
Hi limeblack
I've never used  Terminal Server  , but if you click on  Control Panel  there is a button labeled  Terminal Server.

Offline Misalf

  • Hero Member
  • *****
  • Posts: 1702
Re: Anyone booted TCL from NIC(Ethernet)?
« Reply #4 on: February 21, 2017, 03:29:40 PM »
To boot from USB on hardware that doesn't support it, there is Plop Boot Manager
https://www.plop.at/en/bootmanager/index.html
Download a copy and keep it handy: Core book ;)

Offline andyj

  • Hero Member
  • *****
  • Posts: 1036
Re: Anyone booted TCL from NIC(Ethernet)?
« Reply #5 on: February 21, 2017, 03:59:01 PM »
I do it all the time. It's how I boot my VM's on my ESX boxes. One machine somewhere needs to be a TFTP/PXE server, and the same or another needs to be a DHCP/BOOTP server if the PXE server address isn't directly entered into the BIOS. Then you'll need a way to get the extensions installed. I used HTTP, but I hear NFS and TFTP work too.

Offline limeblack

  • Jr. Member
  • **
  • Posts: 69
Re: Anyone booted TCL from NIC(Ethernet)?
« Reply #6 on: February 21, 2017, 09:19:02 PM »
Do you have to have a router to do this?

Offline andyj

  • Hero Member
  • *****
  • Posts: 1036
Re: Anyone booted TCL from NIC(Ethernet)?
« Reply #7 on: February 21, 2017, 10:14:23 PM »
Since I'm doing it all in VM's on the same ESX server it's a virtual switch, no routing. DHCP/BOOTP is a broadcast, so you'd have to have a local server or a router that could forward DHCP broadcast requests. If you configure the PXE BIOS with the address and gateway then no special router config should be required. Just let port 69 through for TFTP.  /opt/bootlocal.sh on the PXE server has this:

/usr/bin/udpsvd -E 0 69 tftpd /opt/tftproot &
/opt/dhcpd.sh &
/opt/lighttpd.sh &

dhcpd.sh handles bootp:

#!/bin/sh
#
/usr/local/sbin/dhcpd -cf /usr/local/etc/bootp.conf -lf /mnt/sda1/tce64/bootp.leases \
  -tf /var/log/bootp.log -pf /var/run/bootp.pid eth0 >>/var/log/bootp-sh.log 2>&1 &

lighttpd.sh serves up extensions from the local tce directory:

#!/bin/sh
#
HTTPD=/usr/local/sbin/lighttpd
HTTPD_ROOT=/mnt/sda1/tce64
HTTPD_CONF=$HTTPD_ROOT/lighttpd.conf
cat >$HTTPD_CONF <<EOF
server.document-root = "/"
server.bind = "192.168.1.10"
server.port = 80
server.username = "nobody"
server.groupname = "nogroup"
server.chroot = "$HTTPD_ROOT"
EOF
$HTTPD -D -m /usr/local/lib/lighttpd -f $HTTPD_CONF &

A boot file in pxelinux.cfg looks like this (to start a PostgreSQL server):

DEFAULT pxe
LABEL pxe
KERNEL pxelinux.cfg/default-boot/vmlinuz64-7.2
INITRD pxelinux.cfg/default-boot/rootfs64-7.2.gz,pxelinux.cfg/default-boot/modules64-7.2.gz,pxelinux.cfg/default-boot/my-pgsql-data.gz
APPEND printk.time=1 syslog quiet noswap nozswap tce=/ httplist=192.168.1.10:/pgsql.lst

The third initrd file my-pgsql-data.gz is a "mydata" style filesystem for the target system but in compressed CPIO format.

Offline limeblack

  • Jr. Member
  • **
  • Posts: 69
Re: Anyone booted TCL from NIC(Ethernet)?
« Reply #8 on: February 23, 2017, 07:57:56 PM »
Thank you andyj!  I'm afraid that looks complex enough that I may mess something up.  I'm going to experiment with what you gave me.

Plop Boot Manager looks like a really good idea.

I have 2 computers connected by ethernet would Plot boot manager allow me to boot one off the other?
« Last Edit: February 23, 2017, 08:01:35 PM by limeblack »

Offline limeblack

  • Jr. Member
  • **
  • Posts: 69
Re: Anyone booted TCL from NIC(Ethernet)?
« Reply #9 on: February 24, 2017, 03:58:26 PM »
So I gave the following options for Terminal Server.

1st IP to ?hare?
192.168.0.30

Last IP to share?
192.168.0.60

netcard to use
eth0

IDNS Servers to share
[Return]

Subnet of shared IPs.
255.255.255.0

Gateway to share.
10.0.0.1

any additional boot options?

The thing appears to connect and then gives me a

ftpd: timeout.
ftpd: timeout.
ftpd: timeout.
ftpd: timeout.
« Last Edit: February 24, 2017, 04:11:30 PM by limeblack »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11049
Re: Anyone booted TCL from NIC(Ethernet)?
« Reply #10 on: February 25, 2017, 03:49:35 AM »
If the computers are not connected to a DHCP server (router), but directly with a cable, you need to give the server computer a manual IP before starting the terminal server.
The only barriers that can stop you are the ones you create yourself.

Offline limeblack

  • Jr. Member
  • **
  • Posts: 69
Re: Anyone booted TCL from NIC(Ethernet)?
« Reply #11 on: February 25, 2017, 01:11:59 PM »
I have it connect to a router because I would assume this would make it easier to get it working.

Does anyone mind sharing what the output I should be using for each of these commands.
Gateway is easy I get that from ifconfig or ip route show. 

1st IP to Share?
?

Last IP to share?
?

netcard to use
eth0

IDNS Servers to share
[Return]

Subnet of shared IPs.
?

Gateway to share.
// last value on the 1st row
ip route show