Server on startup


Forum: HD Install
Topic: Server on startup
started by: chickenman

Posted by chickenman on Aug. 09 2005,13:08
I want to know how I can get DSL to run an FTP server on bootup, because i plan on using an old box as a file server. I know how to run commands on startup, but what is the command to start the FTP deamon by shell?

Also I would like to get synergy going on a computer, I would also like this to startup with the computer, otherwise it would be quite annoying. (see < http://damnsmalllinux.org/cgi-bin....;t=7999 > ) But this requires X -does this mean I need to change the boot commands or is it the same? -provided I even get X going, its not looking good...

Cheers, Oscar

Posted by mikshaw on Aug. 09 2005,17:56
ftp server:
/usr/sbin/betaftpd from /opt/bootlocal.sh
If dsl fails to log in after this, the daemon might not be loading in the background.  Most daemons do, but i'm not sure about betaftpd.  If this is the case, add '&' after the command.

If you need synergy to start automatically, add it to /home/dsl/.xinitrc, before the fluxbox command.  It will start when X starts.  The '&' is most likely needed for this one.

Posted by chickenman on Aug. 11 2005,08:10
Thanks, you've really saved me a whole lot of messing around.

But unfortunatly it may be some time before i can relay the results of these operations as i wrote over my HDD's MBR and thats just where it starts to get annoying, because i require a third party MBR to boot from CD's...

It will take me a couple of hours work, but I have school work and regular work to do aswell - this is but a side-project

thanks for your help, hopefully i can get back sometime soon (or end up with some $$$ anyway...)

Posted by chickenman on Aug. 13 2005,13:40
... so one HDD later (I just got toooo pissed off when it started registering 1/3 its size...) and i am trying to install synergy.

The ftp on startup doent seem to work I blame the network not configuring, but i will sort it out.

Now, i have un-zipped synergy and I think I have installed Xfree86 (but it looks the same?! -this has GOT to be wrong..., well no errors...) So i am trying to "configure" the "make" of synergy.

...

15 minutes later and i am getting an error that I "need the XTest library to install Synergy"

What is this, how do I get it -is any of this correct?

I am really not too sure X is installed, it looks like fluxbox to me, is this because i am running the vesa driver?

somebody help please...

Posted by mikshaw on Aug. 13 2005,15:35
The x servers don't look any different at all.  If you followed the instructions fully, with the .xserverrc and XF86Config changes, you should now be running XFree86.
You do not, however, have X headers installed (unless you installed them separately).  These headers are required for compiling X programs.

Posted by chickenman on Aug. 14 2005,11:33
ok, how do i go about getting Xheaders?

Is there a .DSL or is it way more complex (probably the latter i am guessing)

Posted by chickenman on Aug. 19 2005,13:57
A quick google search reinforced my basic understanding that I didnt know what the hell is going on...

Could some kind person explain what xheaders are and where/how i can get/install them?

This is annoying...
I need help...

Posted by mikshaw on Aug. 19 2005,14:17
Headers are the same as includes.  I couldn't give you an official definition, but headers are used by a compiler to build programs against other programs and libs.  I assume this is to save having to include the same files with every program....if you build a program from source which uses X libraries (either links to those files or embeds them in the application) the X headers are needed during the compile process.
You can probably get what you need here:
< http://www.debian.org/distrib/packages >
The header packages typically have "-dev" at the end of the filename.

Posted by chickenman on Aug. 19 2005,14:47
I hate to be a nagging moron, and you can be sure to note that this sounded stupid in my head BEFORE i wrote it as well...

But i am not sure what I need to do. I need to find XFree86's dev package?

well i can see a lot of "_drv" ending files, but no "-dev"
these files should be INSIDE the xfree package or something right?

When i do get them, do i just put them anywhere or is there something i need to do so that Xfree86 will incoroprate them into its processes?

thanks for your help so far, i feel that I am just missing one little vital thing and its really annoying.

Posted by chickenman on Aug. 23 2005,07:56
ok, after a long stretch of failed attempts I have come to the conclusion that this is a lot harder than I had originally anticipated. Is it at all possible for someone else to compile this for me (and anyone else) using a better configured system?

all I need is an vesa version i suppose...


anyway, if somebody could do that it'd be GREAT (but I somehow doubt anyone will) any other advice is still welcome as I am a bit stuck...

Posted by mikshaw on Aug. 23 2005,14:19
Maybe i missed it, but did you try installing a Synaptic DEB package yet?
Posted by chickenman on Aug. 26 2005,08:04
Sorry about the late reply, i have had a lot of homework (and real work...) to do lately.

I dont know what a synaptic DEB package is, do i need an internet connection to install it?
could somebody claify about the DEB package, i did a quick search, it didn't get me very far

Posted by mikshaw on Aug. 26 2005,14:00
sorry...when I typed "Synaptic" I meant "Synergy".

A DEB package is a precompiled application built specifically for Debian-based systems.  It's the equivalent of RPM in RedHat-based systems.
The package is installed with the dpkg program. Locally it is done directly with "sudo dpkg -i </path/to/package.deb>", or remotely with "apt-get install <packagename>".
The dpkg program is available as a myDSL application, either from "system" in the repository or through the "enable apt" fluxbox menu item.
packages:
< http://www.debian.org/distrib/packages >

A few differences between using DEB and myDSL:
1) myDSL packages are stripped of anything non-vital.
2) myDSL packages include all dependencies necessary to run in a default DSL setup (unless otherwise noted in the info file).
3) DEB packages can be easily uninstalled (UCI can too, but it's not technically 'installed').
4) There are many, many more deb packages than myDSL packages.

Posted by chickenman on Aug. 27 2005,10:49
Ok, i downloaded the file and tried the command on it. I recivd the following error:

"bash: syntax error near unexpected tolken 'newline'"

What does this mean?

also, i noted the packages synergy requirers (see < http://packages.debian.org/stable/net/synergy > ) how many of these will i have allready, i have allready installed XFree86 and gcc... do I need others?

thanks for your help so far.

Posted by mikshaw on Aug. 27 2005,15:00
The error message looks incomplete to me.  I think there should be a specific syntax error listed, or a line number.  You are probably running a script that doesn't work with Busybox....i recommend upgrading to gnu-utils (also in the myDSL repository) if you will be installing debian packages.  I don't know how important it is overall, but some programs will not install with busybox.

Couldn't say exactly what is needed...i could look through DSL and compare versions of all the libs, but i'm not going to do that.  This is the biggest issue with using package managers in my opinion....dependencies are often very specific versions, and it's difficult to resolve all of them at once.  I hear apt-get tries to handle dependencies automatically, so if you have DSL online you should probably try that (sudo apt-get install synergy).

Posted by chickenman on Aug. 28 2005,06:05
I have installed gnu-utils and i still get the same error, do i need a diffrent command to use gnu-utils? because its doing exactly the same thing.

Also, the previously posted error was complete, I get that single line error every try (note that I accedently typed it with "tolken" insted of "token")

I would use apt-get but I dont have an internet connection on the computer. It is networked with a WXP computer by a switch, then the wxp computer has a wireless card in it that connects to the house network. The WXP system is set to she its internet -but it either doesnt or i cant configure one of the systems properly (I blame firewalls). I would just use the wireless card in the DSL machine and be done with it but DSL wont recognise the cheap wireless cards we use.

Is there a way to pre-download apt-get files then send them (yes i can send data through the switch) to a the DSL machine?

anyway, this error message is starting to really annoy me, is there some way of telling whats really wrong, or does the token thing make sense?

EDIT: noticed something intresting, I get the same error when the file doesn't exist. what does this mean?, is there something wrong with the dpkg command or something?

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.