LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 10-29-2010, 10:04 AM   #1
Blender3D
Member
 
Registered: Jun 2010
Distribution: Linux Mint 9 x64, Linux From Scratch
Posts: 46

Rep: Reputation: 17
Compiling over internet?


I have a really slow computer at home, and I got permission to SSH into my university's Linux servers (they have Intel Xeons, which will compile a bit faster than my AMD Athlon). The only problem is I don't have root access. They don't care if I hog their CPU (as they have like 100 of these monsters) either

Would it be possible for me to compile programs via SSH and send the compiled files back to my machine, assuming I have no root privileges on the SSH box? I'm not sure how it would work, but I'm wondering if it is even feasible, since I would love to be able to use my home computer while I'm performing an ALFS build...

Thanks to anybody who cares to look at this
 
Old 10-29-2010, 10:15 AM   #2
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
In general, compiling software requires no special privileges. Installing software, on the other hand, usually requires root privileges as you're typically writing to parts of the system which are read-only for ordinary users.

I don't have any experience with LFS, but my understanding is you chroot into a particular directory and use that to build your system. However, chrooting requires root permissions, so you might be out of luck there.
 
Old 10-29-2010, 10:19 AM   #3
Blender3D
Member
 
Registered: Jun 2010
Distribution: Linux Mint 9 x64, Linux From Scratch
Posts: 46

Original Poster
Rep: Reputation: 17
I tried chrooting before, but no luck. They don't want me running chroot-jails on their computers...

Would the program that I compile via their server be any different than the one I compile locally (assuming I override their compiler flags with my machine's native flags)? I have no problem with scripting it to transfer folders to and from to get it done... I'm guessing it will take just as long to transfer all of the stuff to/from as it would for me to compile it on my rig.
 
Old 10-29-2010, 10:25 AM   #4
pwc101
Senior Member
 
Registered: Oct 2005
Location: UK
Distribution: Slackware
Posts: 1,847

Rep: Reputation: 128Reputation: 128
Quote:
Originally Posted by Blender3D View Post
I tried chrooting before, but no luck. They don't want me running chroot-jails on their computers...
That is understandable.
Quote:
Originally Posted by Blender3D View Post
Would the program that I compile via their server be any different than the one I compile locally (assuming I override their compiler flags with my machine's native flags)?
As far as I understand it, the resultant code is essentially hardware independent.
Quote:
Originally Posted by Blender3D View Post
I have no problem with scripting it to transfer folders to and from to get it done... I'm guessing it will take just as long to transfer all of the stuff to/from as it would for me to compile it on my rig.
If those machines are connected to the internet, then you can use their (presumably faster) net connection to download the necessary files directly from their original source, rather than you uploading them from your machine. This would save you time uploading source files. The compiled binaries should be relatively small, certainly in comparison to the decompressed source code. I wouldn't have thought you'd lose out overall by having to download from their servers back to your computer. However, I don't know what kind of a connection you have.
 
Old 10-29-2010, 10:35 AM   #5
Blender3D
Member
 
Registered: Jun 2010
Distribution: Linux Mint 9 x64, Linux From Scratch
Posts: 46

Original Poster
Rep: Reputation: 17
Oh yes, they have a 50mb/s connection (I downloaded Ubuntu 10.10 x32 and x64 simultaneously in less than 1 minute). LFS packages should finish in about 20 seconds

I think I'm going to attempt this now
 
Old 10-29-2010, 10:57 AM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Wow, that must compile really fast, if you use something like make -j100
I "only" have six cores, and on my machine, using -j8, I have a SBU of 37 seconds.

Last edited by TobiSGD; 10-29-2010 at 10:58 AM.
 
Old 10-30-2010, 01:51 PM   #7
Blender3D
Member
 
Registered: Jun 2010
Distribution: Linux Mint 9 x64, Linux From Scratch
Posts: 46

Original Poster
Rep: Reputation: 17
Lol, I meant that it would download the packages in 20 seconds...

My SBU is ~ 200s, but I've got my rendering machine running! It performs about 20% faster than Ubuntu in CLI rendering. I'm quite pleased!
 
Old 10-30-2010, 06:04 PM   #8
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Hello Blender3D,

I'm using Gentoo on three of my computers. Also I use distcc to distribute compilingjobs over my network. This works very well since two of my machines have the same architecture (AMD K8). If you have different machines you'll have to build a toolchain on the other machine in order to enable the building of code for your machine. Building a toolchain will need rootpermssions. Another point is that distcc is running as a daemon on the "server". To start this daemon you'll also need rootpermissions. So my answer to your question is that it will be not possible to compile your code on the Universitymachines.
Otherwise distributed compiling is very fast (Kernel for my netbook in 3 minutes (after "make mrproper")), maybe it is possible for you to gain a second machine for this purpose.

Markus
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Various Compiling Errors (GCC compiling Openal, GUIlib, xmms-wma) gregorya Linux - Software 2 08-27-2004 05:03 AM
Compiling in ACPI support on Compaq 2135CA (system crashes while compiling) Dag Linux - Laptop and Netbook 20 07-30-2004 07:56 PM
Lost internet access after compiling Debian 2.4 robw Linux - Newbie 13 02-21-2004 05:04 AM
no internet after compiling 2.6 kernel pele_smk Slackware 3 01-05-2004 11:37 AM
Can't access the internet throught DCHP after compiling and installing a new kernel Rodcl Linux - Networking 4 08-23-2002 03:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 04:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration