Comments 501 to 526 of 584

Quote Glider 31st July 2008, 20:58
Quote:
Originally Posted by bgalfond
going to http://localhost/tf gives me:
Code:
Parse error: syntax error, unexpected T_VARIABLE in /var/www/tf/config.php on line 56
Well, can you post the contents of /var/www/tf/config.php around line 56 (from 50 to 60 or so)

EDIT: I read somewhere some distro's changed their default Apache2 install, is there an index.htm or index.html inside /var/www/ ? if so, try renaming it
Code:
mv /var/www/index.htm(l) /var/www/index2.htm(l)
Quote bgalfond 31st July 2008, 21:18
HA! changed it to index2.html and now I have my tree listing index2.html and tf/

I still have the parse error though, here is that code, and thanks again!
Code:
// ***************************************************************************
// ***************************************************************************
// DO NOT Edit below this line unless you know what you're doing.
// ***************************************************************************
// ***************************************************************************

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

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

// 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'];

?>
Quote Timmy_the_tortoise 31st July 2008, 21:25
I've got a couple of old PCs hanging about now.. Been thinking about possibly setting up a home server..

I might check this out later when I have the time and money for a new "project". *bookmarked*
Quote Glider 31st July 2008, 21:27
Hmm, that all looks good, can you post the entire config? (blank out the passwd;))

(guess you made an syntax error over there)
Quote bgalfond 31st July 2008, 22:00
Code:
/**************************************************************************/
// 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, postgres8 view adodb/drivers/
$cfg["db_host"] = "localhost";   // DB host computer name or IP
$cfg["db_name"] = "torrentflux"; // Name of the Database
$cfg["db_user"] = "ben";        // username for your MySQL database
$cfg["db_pass"] = "thanksforthehelp";            // password for 
database
/**************************************************************************/
Quote DougEdey 31st July 2008, 22:11
Looks like there's an extra line break, put the word "database" back to the end of the line above it (where it says "password for"), but it may just be a formatting error.
Quote bgalfond 31st July 2008, 22:21
yup, that line break was the problem. changed name back to root and all is well now. Thanks!
Quote Glider 31st July 2008, 22:30
That name should be the same as the one which set up the database, probably root :D
Quote jaxinabox 2nd August 2008, 21:20
Hi
This guide has been awesome. Thanks.
Now my problem. While setting up the VNC password I get "Couldn't open /root/.vnc/passwd for writing".
I've tried logging in as root and i get the same error. Did i miss something somewhere?
thanks again
Quote Glider 3rd August 2008, 10:46
Yes, VNC needs to be run as user, NOT as root...

So make sure you aren't root when you try to set the password.
Quote jaxinabox 3rd August 2008, 19:15
props again on this guide.

But that's the thing, i tried first as user but it didn't work, so i tried as root, hoping that what is was. Regardless i started from scratch and got pass that part. Now when I try and VNC in i get a "Local loop-back connection disabled" error.
Thanks
Quote Glider 4th August 2008, 15:52
Care to elaborate where you get the error? On the VNC server or what?
Quote bigc90210 7th August 2008, 11:55
excellent guide, thanks for making it!
Quote hartigan 10th August 2008, 03:20
Love this thread!! Thank you glider!!

I've copied the code from the instructions into the proftpd.conf file and when I restart the ftpserver I get:
Code:
* Starting ftp server proftpd                                                     
- warning: the DisplayFirstChdir directive is deprecated and will be removed in a future release.  Please use the DisplayChdir directive.
- warning: the DisplayFirstChdir directive is deprecated and will be removed in a future release.  Please use the DisplayChdir directive.
- Fatal: <Directory>: missing arguments on line 98 of '/etc/proftpd/proftpd.conf'
                                                                           [fail]

I'm not sure what I need to do to fix this. Any help would be appreciated!!
Quote Mattasp 11th August 2008, 10:06
Deam i cant change directory to samba? anyone why know why? it seems that i cant find the install package for "samba package server" i have tried too install all the samba's available at synaptic but when i go to terminal all i get when i got to root is :

root@ubuntu:/home/mattis# cd/etc/samba
bash: cd/etc/samba: No such file or directory

anyone able to help?
Quote Glider 11th August 2008, 11:17
Quote:
Originally Posted by Mattasp
Code:
root@ubuntu:/home/mattis# cd /etc/samba
Fixed that for you (there's a space between the command [cd] and the argument [/etc/samba])
Quote Mattasp 11th August 2008, 12:40
tnx allot ;)
Quote hartigan 12th August 2008, 22:03
n/m

I have to read through the thread for a config file, I guess.
Quote blaise 20th August 2008, 01:37
Hi all! Glider, amazing job with this guide. It's really opened my eyes to linux.

I've gone through the entire guide and had a few problems over the last week or so but I used the comments in this thread to troubleshoot them all.
I was going to stop after I was done installing putty and UVNC but then I thought, "What the heck...might as well setup the web-based torrenting"

I got up to the point where I entered a "chown 777 torrent" in the CLI. (After reading through the comments, I realize it should've been chmod instead of chown).
Anyway, I entered "chown 777 torrent" and the error message I got was "chown: changing ownership of 'torrent': Operation not permitted"
So immediately after that, I threw a "sudo chown 777 torrent" and I assumed it worked.
After I realized I should have used a chmod, I went ahead and ran "chmod 777 torrent" in the CLI.

At this point, I was able to login after clicking on the tf folder and changing/updating the path variable.
However, I am now unable to remotely view the contents of the linux box in my clients windows explorer via "\\my.ip.address\homes" and I am also unable to login remotely through ssh and UVNC viewer even though I had no problem before I did the "chmod" and "chown" commands.

I also tried pinging my IP but the request times out.

I've tried my best to google solutions as well as scavenge this amazing thread...but now I'm definitely stuck and any help would be appreciated.

Many thanks go out to glider, brett thomas (editor), and everyone else that has responded to this thread with valuable information!!!!!!
Quote Kebra 20th August 2008, 01:44
Maybe a stupid question but do we need to use Xubuntu 7.04 "Feisty Fawn" or can we use a newer version to follow this guide?

Nice work btw :)

Grtz
Quote blaise 20th August 2008, 02:15
Kebra, version 8.04 "Hardy Heron" will work as well. =)
Quote Glider 20th August 2008, 09:00
Ubuntu releases aren't quite like Windows versions... So no worries on breaking stuff
Quote Kebra 20th August 2008, 10:40
Ok thnx ^^
Quote Woodstock 20th August 2008, 10:58
kinda scary that this guide was released for ubuntu 7.04 (time wise)
Quote Glider 20th August 2008, 11:02
Quote:
Originally Posted by Woodstock
kinda scary that this guide was released for ubuntu 7.04 (time wise)
Quote:
Originally Posted by article
Published: 5th June 2007
And still being used now ;)
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.







Mobile Phones

LG Arena ReviewHTC Magic Review

Compare over 250 mobile phones &
52,000 deals!



Broadband

Mobile Broadband

Compare over 100 broadband & mobile broadband deals online!

Dragonage