bit-tech.net

Build your own server

Comments 201 to 225 of 586

Reply
yehoshua.number23 27th August 2007, 09:36 Quote
Grrr! >:( Did that and i get the same error in the vnc viewer 'Failed to connect to server'
Glider 27th August 2007, 09:55 Quote
Weird, but no worries, time to bring out the debugging info...

Can you post the output of:
Code:
sudo /usr/sbin/sshd -d -p 12345

(if it doesn't stop, just exit it with "<ctrl> + c" when it stops working.)

EDIT: for the VNC server, is X started, and are you trying to start it as a regular user (so not with sudo or after a "sudo su")?
yehoshua.number23 27th August 2007, 10:24 Quote
sshd version OpenSSH_4.3p2 Debian-8ubuntu1
read PEM private key done: type RSA
private host key: #0 type 1 RSA
read PEM private key done: type DSA
private host key: #1 type 2 DSA
rexec-argv[0]='/usr/sbin/sshd'
rexec-argv[1]='-d'
rexec-argv[2]='-p'
rexec-argv[3]='12345'
Bind to port 12345 on ::.
Server listening on :: port 12345
Bind to port 12345 on 0.0.0.0.

I'm getting that error message in XP when i try to access my server using UltraVNC (sorry should've explained better)
Glider 27th August 2007, 10:28 Quote
Ok... That means it works... :s

Try individually stopping and starting the server...
Code:
sudo /etc/init.d/ssh stop
sudo /etc/init.d/ssh start

I'm starting to get the feeling there's something wrong with your init script.
yehoshua.number23 27th August 2007, 10:36 Quote
Okay .. So now it says '[ok]' instead of '[fail]' but when i try to access my server from my XP laptop it using the UltraVNC Viewer it still can't connect
completemadness 27th August 2007, 11:50 Quote
but does putty work ?

if putty works, then you do "sharex11vnc" and ultravnc should work
Glider 27th August 2007, 12:23 Quote
Yeah, now you have a running SSH server, and you can remotely log in through SSH, you still need to start the VNC server, like completemadness said.
yehoshua.number23 28th August 2007, 12:33 Quote
Ok, both SSH and VNC are running on my server.

Both PuTTy and UltraVNC aren't connecting. PuTTy says 'Network error: Connection refused' and UltraVNC says 'Failed to connect to server!'. I, like most, have an internet connection through a router and am wondering if the IP i'm entering is wrong. I enter in the only IP that the 'ifconfig' command gives me that PuTTy doesn't say 'IP doesn't exist' to (127.0.0.1).

Does this sound right?

Also, a little off topic but i noticed whenever i use terminal i have to log back in and select 'failsafe terminal' from the sessions where as in the tutorial the screen shots show terminal in a window on top of the Xubuntu desktop. Normal?
Glider 28th August 2007, 13:09 Quote
You are still behind the router (LAN) so that shouldn't matter.

You however shouldn't be connecting to 127.0.0.1 from an other PC, because that is the localhost adress (so localhost on the other pc = the other pc).

do
Code:
sudo ifconfig | grep 192

That should give you the correct IP adress.
completemadness 28th August 2007, 17:30 Quote
Quote:
Originally Posted by yehoshua.number23
Also, a little off topic but i noticed whenever i use terminal i have to log back in and select 'failsafe terminal' from the sessions where as in the tutorial the screen shots show terminal in a window on top of the Xubuntu desktop. Normal?
its in like applications -> (first menu) -> terminal

you dont need to relog to get the terminal ;)
yehoshua.number23 29th August 2007, 05:19 Quote
Yes i realize where terminal is, but when I click on it the screen flicks black, some stuff comes up then I'm being taken back to the login screen and to use terminal i have to select failsafe terminal from the sessions otherwise it just logs me back in to the desktop with nothing.

When i do 'ifconfig' the only IP's it gives me are 'inet addr: 127.0.0.1', 'inet addr:169.254.8.207' and 'Bcast: 169.254.255.255' although there is a bit of the resultant 'ifconfig' that gets cut off at the top because the failsafe terminal window is too small and i can't seem to scroll up.
yehoshua.number23 29th August 2007, 05:27 Quote
Ok so i tried with PuTTy again just now with the IP '169.254.8.207' and instead of the connection refused error i get a 'Connection timed out' error, better? Worse? More helpful? :?
ajsd34 29th August 2007, 14:43 Quote
I am a noob and need some help. I have everything working except for the Torrentflux part. I keep receiving this message:

PARSE error: syntax error, unexpected T_STRING, expecting '(' in /var/www/tf/config.php on line 36

Please help
Glider 29th August 2007, 15:36 Quote
Can you copy/paste line 36 of the config (and some before and after?)
completemadness 29th August 2007, 16:05 Quote
Quote:
Originally Posted by yehoshua.number23
Ok so i tried with PuTTy again just now with the IP '169.254.8.207' and instead of the connection refused error i get a 'Connection timed out' error, better? Worse? More helpful? :?
That sounds like a public IP address ?

is this computer in a DMZ zone, or do you not actually use a router ?
ajsd34 29th August 2007, 16:14 Quote
Quote:
Originally Posted by Glider
Can you copy/paste line 36 of the config (and some before and after?)

/**************************************************************************/
// YOUR DATABASE CONNECTION INFORMATION
/**************************************************************************/
// Check the adodb/drivers/ directory for support for your database
// you may choose from many (mysql is the default)
$cfg["db_type"] = "mysql"; // mysql, postgres7 view adodb/drivers/
$cfg["db_host"] = "localhost"; // DB host computer name or IP
$cfg["db_name"] = "torrentflux"; // Name of the Database
$cfg["db_user"] = "root"; // username for your MySQL database
$cfg["db_pass"] = "basher"; // password
for database
/**************************************************************************/
Glider 29th August 2007, 16:22 Quote
Quote:
Originally Posted by ajsd34

$cfg["db_pass"] = "basher"; // password
for database

Should be:
Code:
$cfg["db_pass"] = "basher";            // password for database
On one line ;)
ajsd34 29th August 2007, 16:30 Quote
Quote:
Originally Posted by Glider
Quote:
Originally Posted by ajsd34

$cfg["db_pass"] = "basher"; // password
for database

Should be:
Code:
$cfg["db_pass"] = "basher";            // password for database
On one line ;)

When I kmake that change I received this error:

\
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /var/www/tf/config.php:1) in /var/www/tf/functions.php on line 27

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /var/www/tf/config.php:1) in /var/www/tf/functions.php on line 27

Warning: Cannot modify header information - headers already sent by (output started at /var/www/tf/config.php:1) in /var/www/tf/functions.php on line 113

here is my entire config.php file:
\<?php

/*************************************************************
* TorrentFlux PHP Torrent Manager
* www.torrentflux.com
**************************************************************/
/*
This file is part of TorrentFlux.

TorrentFlux is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

TorrentFlux is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with TorrentFlux; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/


/**************************************************************************/
// YOUR DATABASE CONNECTION INFORMATION
/**************************************************************************/
// Check the adodb/drivers/ directory for support for your database
// you may choose from many (mysql is the default)
$cfg["db_type"] = "mysql"; // mysql, postgres7 view adodb/drivers/
$cfg["db_host"] = "localhost"; // DB host computer name or IP
$cfg["db_name"] = "torrentflux"; // Name of the Database
$cfg["db_user"] = "root"; // username for your MySQL database
$cfg["db_pass"] = "basher"; // password for database
/**************************************************************************/


/*****************************************************************************
TorrentFlux
Torrent (n.) A violent or rapid flow; a strong current; a flood;
as, a torrent vices; a torrent of eloquence.
Flux (n.) The act of flowing; a continuous moving on or passing by,
as of a flowing stream; constant succession; change.
*****************************************************************************/



// ***************************************************************************
// ***************************************************************************
// DO NOT Edit below this line unless you know what you're doing.
// ***************************************************************************
// ***************************************************************************

$cfg["pagetitle"] = "TorrentFlux";

// TorrentFlux Version
$cfg["version"] = "2.3";

// CONSTANTS
$cfg["constants"] = array();
$cfg["constants"]["url_upload"] = "URL Upload";
$cfg["constants"]["reset_owner"] = "Reset Owner";
$cfg["constants"]["start_torrent"] = "Started Torrent";
$cfg["constants"]["queued_torrent"] = "Queued Torrent";
$cfg["constants"]["unqueued_torrent"] = "Removed from Queue";
$cfg["constants"]["QManager"] = "QManager";
$cfg["constants"]["access_denied"] = "ACCESS DENIED";
$cfg["constants"]["delete_torrent"] = "Delete Torrent";
$cfg["constants"]["fm_delete"] = "File Manager Delete";
$cfg["constants"]["fm_download"] = "File Download";
$cfg["constants"]["kill_torrent"] = "Kill Torrent";
$cfg["constants"]["file_upload"] = "File Upload";
$cfg["constants"]["error"] = "ERROR";
$cfg["constants"]["hit"] = "HIT";
$cfg["constants"]["update"] = "UPDATE";
$cfg["constants"]["admin"] = "ADMIN";

asort($cfg["constants"]);

// Add file extensions here that you will allow to be uploaded
$cfg["file_types_array"] = array("torrent");

// Capture username
$cfg["user"] = "";
// Capture ip
$cfg["ip"] = $_SERVER['REMOTE_ADDR'];

?>
Glider 29th August 2007, 16:32 Quote
Quote:
Originally Posted by ajsd34

here is my entire config.php file:
\<?php

<SNIP>

?>

Remove the \, now the file is sent as HTML instead of PHP ;)
ajsd34 29th August 2007, 16:43 Quote
Quote:
Originally Posted by Glider
Quote:
Originally Posted by ajsd34

here is my entire config.php file:
\<?php

<SNIP>

?>

Remove the \, now the file is sent as HTML instead of PHP ;)

Great worked like a champ. thanks for all of your help. this is a great article.
yehoshua.number23 30th August 2007, 05:04 Quote
Quote:
Originally Posted by completemadness
That sounds like a public IP address ?

is this computer in a DMZ zone, or do you not actually use a router ?


No its not in a DMZ and yes I actually use a router :'(

Like i said in my previous reply, those are the only IPs i get given and the public is the only one that isn't refused. However, i think more information is being cutoff at the top in the failsafe terminal, as that's the only terminal that seems to work.
yehoshua.number23 30th August 2007, 05:12 Quote
Oh f**ks sake don't worry it was a complete blonde moment. Sorted :D Thanks anyways guys
yehoshua.number23 30th August 2007, 12:26 Quote
Hey sorry to bug you all again but is it just me or is torrentflux.com down?
iwog 30th August 2007, 13:56 Quote
Quote:
Originally Posted by yehoshua.number23
Hey sorry to bug you all again but is it just me or is torrentflux.com down?

Going with its down atm
Glider 30th August 2007, 14:22 Quote
Quote:
Originally Posted by yehoshua.number23
Hey sorry to bug you all again but is it just me or is torrentflux.com down?

So it seems...
Log in

You are not logged in, please login with your forum account below. If you don't already have an account please register to start contributing.



Discuss in the forums