bit-tech.net

Build your own server

Comments 251 to 275 of 586

Reply
Glider 21st September 2007, 07:50 Quote
Quote:
Originally Posted by Woodstock
is the root part meant to be speach marks "root" or single quotes 'root', i only ask as the guide had speach and you just suggested single quotes.
is torrentflux dead?
Yes, you compare the output of 'whoami' with the string 'root'
Bar182 21st September 2007, 09:07 Quote
Hi guys I fixed PHPAdmin/MYSQL problem and I think I also know why alot of peoples VNC isnt working.

Here it is:

Basically when this is typed in these:

vncpasswd ~/.vnc/passwd
echo 5900 > ~/.vnc/port

It wont work if you selected UK keyboard when you installed Xubuntu. because the the tilde on an international US keyboard will come out like this instead "¬" (Without the quotes obviously)

another one to watch out for is an @ on the international keyboard is replaced by " and vice versa so watch that also.

So go back and do the vnc part again. :)

Go here: http://en.wikipedia.org/wiki/Keyboard_layout and see the different layouts of UK and US-int keyboards.
mull7of 21st September 2007, 09:47 Quote
Hi all--------------with a mixture of your help and using my small brain have got fileserserver up--------------don't worry I am sue to be back for further assist T
Bar182 21st September 2007, 10:02 Quote
Can someone please post the contents of their config.php file for me for torrentflux? Ive deleted the content somehow and its been saved.

Also Is there a security risk in having you MYSQL password the same as your user password?
Glider 21st September 2007, 11:42 Quote
Having the same passwords is a bad idea security wise, but don't be to pedantic about a home LAN server ;)

The (base) config:
[php]<?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"] = ""; // 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'];

?>
[/php]

EDIT:
Quote:
Originally Posted by Bar182

vncpasswd ~/.vnc/passwd
echo 5900 > ~/.vnc/port
You can replace the ~ with /home/<username>
carlosgpr 22nd September 2007, 04:50 Quote
i get the following error
[PHP]
Parse error: syntax error, unexpected '*' in /var/www/tf/config.php on line 50
[/PHP]

this is when I acces the tf link on localhost... im desperate...
Glider 22nd September 2007, 10:26 Quote
Well, like the error says, there's a syntax error around line 50... Can you post the config file?
carlosgpr 22nd September 2007, 16:28 Quote
I just erased the tf folder and did everything again... then it worked... very miserious, because i had tried to copy the config file you posted to no avail.
thank you so much for your response though, I will be enjoying this server a lot and all thanks to you.

Just one thing, I couldnt connect via vnc to my server with one of my laptops (mac), maybe is the client im using , it the vine client. Do you happen to know of a better option that resembles ultra vnc or help me in any way
DougEdey 22nd September 2007, 16:56 Quote
finally got round to doing what I needed, set up SSH and VNC in about 10 minutes. Nice and quick :D
Kirth 24th September 2007, 22:32 Quote
Hi there,

Had the same problem with VNC as several others (VNC authentication failed!), but haven't seen the solution yet that worked for me. I didn't follow the article to the letter and created the passwd and port file ("vncpasswd ~/.vnc/passwd" and "echo 5900 > ~/.vnc/port") with root privilege. Took me some time to find out that was not smart ... When I created these files without root privilege VNC worked like a charm!

Thanks Glider for an excellent article!
Glider 24th September 2007, 23:02 Quote
That's because the vnc server has to run as the user (for it to access the X session). If you create the files as root, the process can't read them (access denied).
iwog 26th September 2007, 17:33 Quote
Question, why am i getting this error?
Code:
geraint@Server-G:~$ vncpasswd ~/.vnc/passwd
Password:
Verify:
Couldn't open /home/geraint/.vnc/passwd for writing
geraint@Server-G:~$ 

I'm pretty sure this isn't vista and shouldn't suffer from "programme needs to be admin otherwise no saving in prog files" syndrome which my main rig does.
steveo_mcg 26th September 2007, 17:52 Quote
quickly check your permisions something may have go screwed up
Code:
 ls -lh 
iwog 26th September 2007, 19:41 Quote
ok will give that a go in the morning/afternoon/whenever i sober up. But related to that should there be a .vnc folder in my home already or does it get created when the password does?
Glider 30th September 2007, 13:36 Quote
no, if the dir doesn't exist, you need to create it yourself
Code:
mkdir ~/.vnc
as regular user
suby 3rd October 2007, 00:41 Quote
Umm... I wanted to run Xubuntu on VirtualBox like you hinted you did. Except on my XP home laptop, I get 2 errors. When I enable IO APIC I get an error ""/bin/sh: can't access tty; job control turned off" and if I turn off IO APIC (forums recommend the setting to be on) the installation of Xubuntu stalls at 5% or around there are says "Failed to create a swap space". What can I do? I want to run a small server but keep my XP home OS there working.
Glider 3rd October 2007, 15:28 Quote
I usually turn of all ACPI related things on a server... No use having a server if it goes into power save after 5 minutes ;)
JrRRr 5th October 2007, 22:20 Quote
Quote:
Originally Posted by Glider
I usually turn of all ACPI related things on a server... No use having a server if it goes into power save after 5 minutes ;)

Hmm.. I actually would like that function in my server, since I'm not using the server 24/7. Is there an app in Linux where you can manage this? Would it be a problem for the network if part of the server went down in powersave (I'm thinking of the HD for the most part) I've tried with hdparm -S option but my WD SATA RE disks don't have that function (probably because they're RAID-editions) :?

But thanx Glider for the guide even though I din't follow it too much. I installed "Ubuntu Server" and that forced me to get to know CLI - so I'm learning something new every day! And thanx also for all the support you give to us "linux-server-administrator-wannabes" here in this thread, I've read some of them and I admire your patience! kudos!
Glider 6th October 2007, 11:11 Quote
acpid & cpufreqd are 2 daemons I run on my laptop to dynamically (adjustable) scale it's frequency from 1500MHz to 500MHz depending on load / prediction about load. It does it's work quite good, and got my battery life up from ~2,5hours in Windows (when it was new) to 4hours in Linux (now that it's a year older)

http://gentoo-wiki.com/ACPI

But I must warn you, ACPI tables are often written VERY poorly on systems. To get mine working I had to fix the DSDT table. This required extracting it from the memory, reverse engineering it (with a tool ;)) fixing the source code, recompiling it and reinstalling it.
http://gentoo-wiki.com/HOWTO_Fix_Common_ACPI_Problems
JrRRr 7th October 2007, 22:07 Quote
Quote:
Originally Posted by Glider
To get mine working I had to fix the DSDT table. This required extracting it from the memory, reverse engineering it (with a tool ;)) fixing the source code, recompiling it and reinstalling it.

Hmm.. so maybe not for me quite yet.. :) (recompiling gives me the shivers, It sounds so complex!) Thanx anyway. Hey another thing I might do: To shutdown the server.. ..is it safe to do so with the powerswich, or could i "program" it in a way that it would do a safe shutdown? That way, I can turn it of by night.. ..(and teach my wife to turn it on the next morning while I'm at work)
DougEdey 7th October 2007, 23:01 Quote
Search google for your system/motherboard and dsdt table.

I found a patched one for mine which works fine now. Except the battery is bat1 rather then bat0
Glider 8th October 2007, 15:28 Quote
Quote:
Originally Posted by JrRRr
Hmm.. so maybe not for me quite yet.. :) (recompiling gives me the shivers, It sounds so complex!) Thanx anyway. Hey another thing I might do: To shutdown the server.. ..is it safe to do so with the powerswich, or could i "program" it in a way that it would do a safe shutdown? That way, I can turn it of by night.. ..(and teach my wife to turn it on the next morning while I'm at work)

It isn't that complex... And like Doug said, there often are fixed DSDT's available.

The simplest way to shutdown at a given time is to create a crontab that issues 'halt'.
t_marinos 11th October 2007, 00:04 Quote
Hello!

I' am new with things. My question is : I am trying to install Xubuntu 7.04 and the system always crash . I have a PIII 733Mhz 194MB RAM . What is the problem ?

Thankss
Glider 11th October 2007, 00:12 Quote
It's hard to say by just knowing the general specs of your PC... RAM seems a bit low for the GUI installer but it all depends on where the system crashes.

Where does the system crash upon? Does it boot up to the GUI? Does the install wizzard work? Does the partitioning/copying start?
t_marinos 11th October 2007, 00:31 Quote
Its crash in Detecting System File in 15% every time , But is very slow in the installation wizard.
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