guys need your help on this boxs now Seedbox Gentoo
What kind of set up will you go for torrenting and ftp
Printable View
guys need your help on this boxs now Seedbox Gentoo
What kind of set up will you go for torrenting and ftp
I'd recommend utorrent &vsftpd. Gentoo is very good, but not ideal for a server. Because the package management (called emerge) is based on compiling the source codes which takes time. You need to learn emerge... gentoo.org has very good documentation.
vsftpd does perfect for me, I use WSFTP_Pro as my Win Client on my home PC, increase the connections to 12, and it maxes out my 20MB+ home line, perfect.
Utorrent & Webui work ok from POV as well.
By all means not an expert, just passing on what works for me :)
Damn, they gave it to the noobs who cant even setup it.
j/k, imho its not a win to emulate windows with only 256ram - i had timeouts every second hour in webui.
i'd go for rtorrent instead, but i wouldnt complain to, its freebie :>
thanks i'll pass the info on to my mate who got Gentoo Seedbox
What does time outs mean ?
Because i've had 2 in the last 15 hours or so and when it does time out the speeds drop a bit and when i reload there back up again ?
Ok so still getting no where, installed fluxbox as you said
"yum install fluxbox"
it went for a little bit and then displayed this:
"Finished
Parsing package install arguments
Nothing to do"
then brought me back the command line. So then I typed:
"nano ~/.vnc/xstartup"
and deleted everything and then type:
"fluxbox"
wrote it, and then exited nano, and typed this in the command line
"service vncserver restart"
it brings up
"Shutting down VNC server: [OK]
Starting VNC server: no displays configured [OK]"
Then I start up vnc viewer on my personal computer...log in
it just brings up the terminal and utorrent
I searched for about 2 hours before posting here to see what I did wrong...but I have no clue lol.
vncserver isn't running as a service. Here is how to restart it:
exit utorrent
type in putty:
vncserver -kill :1
vncserver :1
Once you login again, right click on the desktop for the fluxbox menu to start xterm.
I knew it was something simple.
Works great now...time to play with the toy :happy:
Ok, now Im setting up my vsftp...I put ssl, generated certificate..etc etc.
Added this to my vsftpd.conf file:
ssl_enable=YES
allow_anon_ssl=NO
force_local_data_ssl=NO
force_local_logins_ssl=NO
ssl_tlsv1=YES
ssl_sslv2=NO
ssl_sslv3=NO
rsa_cert_file=/etc/vsftpd/vsftpd.pem
listen_port=XXXX
I made the user groups and everything is set up right per the tutorials:
http://www.linuxhomenetworking.com/w...P_Server_Setup
When I connect, everything exchanges fine...but after user pass is sent..i get this:
------------------------------------------------------
*** CuteFTP 8.1 - build Nov 12 2007 ***
STATUS:> [2/26/2008 9:45:54 PM] Getting listing ""...
STATUS:> [2/26/2008 9:45:54 PM] Connecting to FTP server...
STATUS:> [2/26/2008 9:45:54 PM] Socket connected. Waiting for welcome message...
[2/26/2008 9:45:55 PM] 220 (vsFTPd 2.0.5)
STATUS:> [2/26/2008 9:45:55 PM] Connected. Authenticating...
COMMAND:> [2/26/2008 9:45:55 PM] AUTH TLS
[2/26/2008 9:45:55 PM] 234 Proceed with negotiation.
STATUS:> [2/26/2008 9:45:55 PM] Establishing SSL session...
STATUS:> [2/26/2008 9:45:55 PM] Initializing SSL module.
STATUS:> [2/26/2008 9:45:55 PM] Connected. Exchanging encryption keys...
Session Cipher: None
STATUS:> [2/26/2008 9:45:57 PM] SSL Connect time: 1466 ms.
STATUS:> [2/26/2008 9:45:57 PM] SSL encrypted session established.
COMMAND:> [2/26/2008 9:45:57 PM] PBSZ 0
[2/26/2008 9:45:57 PM] 200 PBSZ set to 0.
COMMAND:> [2/26/2008 9:45:57 PM] USER test
[2/26/2008 9:45:57 PM] 331 Please specify the password.
COMMAND:> [2/26/2008 9:45:57 PM] PASS *****
ERROR:> [2/26/2008 9:45:59 PM] Can't read from control socket. Socket error = #0.
----------------------------------------------
any ideas guys?
I have no clue about that cryptic error. I have ssl working fine on my server, the difference is I'm login as a normal local user without setting up the extra ftpusers group and users. Here is the difference in my config:
force_local_logins_ssl=YES
ssl_sslv2=YES
ssl_sslv3=YES
But I think that shouldn't matter since your log indicate you got past the ssl part. And I also have the same vsftpd version. So maybe try login with root to see if the problem might be with your ftp user.
Oops, my bad, root is denied login by default. Maybe instead, try creating a new normal login:
useradd -G users,wheel username
passwd username
and try login with that through ftp.
Heh, you should avoid using root as much as possible. It's there for security reasons as that account is the one hackers try to crack the most.
figured it out...
Also, how do i set the home directory to
/home
i try to add a user
useradd -G users,wheel username -d /home
but it brings this up:
useradd: warning: the home directory already exists
not copying any file from skel directory into it
What i want is, so when a user logs in, they go to that directory right away and only have access to that directory
thanks!
ya i know, i just wanted to get this damn thing working...i removed it after i got it going ;-)
Nice, cheers :)
You should compile everything in this thread and make a tutorial. This is invaluable to new linux users.
Let me know if you need any linux help.
When you create a new user without the -d syntax, the default home is /home/username. This is the user you should be using for everything (running utorrent & ftp), not root. utorrent will save data to /home/username by default, and ftp login will also start in the same location.
Thats the plan, i just need to figure it out first ><
Well I did that df command you did up there, and /home is where all my space is, so I set utorrent to download directly to there.
When I login via ftp with the account I just made (not the root), I get defaulted to:
/root
to get to home, i type
/home
also, I just noticed that when I disable the root from accessing via ftp, all the other accounts wont work either.
When I allow root to access via ftp....all the accounts work
Any ideas on whats causing that?
I changed the default dir where anon logs in:
anon_root=/data/directory
to
anon_root=/home
Now, when I log in to ftp stuff as a user, it defaults to
/home/user
and all I have to do is click the up directory button, works for me :)
ahhh man you're so lucky, how did you get that offer?
I have a doubt remaining. can we run torrents on the seedbox safely ?
Well,after a whole day of torment,i finally did it. Never seen the blasted linux thing before,but now my fedora box is ready for action. :D
Thx to Sgt,naq,fisherman,fatcat and the rest of you guys. :cheers:
Just have one question...what ports do i have to leave open for torrenting? Just one random one i choose or do i have to leave 80,81 or some other for trackers to work?
I was thinking of blocking everything except one for ssh,one for ftp and one for utorrent. Is that ok?
How-to(what do i have to write in putty/iptables) do it,would be greatly appreciated.
My eyes will popout if i read one more tutorial. :D
You can do that to block your ports, thats fine.
I recommend switching your port for ssh:
nano etc/ssh/sshd_config
Uncomment the port part where you see it say port 22, remove the 22 and make it some random number. Just better that way.
Same with FTP, use some random port number, make sure you have it set up on ssl...
http://wiki.vpslink.com/index.php?title=Configuring_vsftpd_for_secure_connections_(TLS/SSL/SFTP)
http://www.linuxhomenetworking.com/w...P_Server_Setup
and thats as far as I have gotten really in the past day. Set up utorrent, webui, ftp, vnc, fluxbox, and just enjoying it for now.
I also recommend changing the password for the root access if you havent disabled it.
type:
passwd root
and enter in new password
right now naq and me are setting up a more appropriate tutorial with screenshots and what not, well he started it, im just helping.
not bad for 1 day of linux huh ;-)
Great,thx for the speedy reply.
I've done all of that,changed default ports,removed root ....all of the things mentioned on this thread. All i have to now is close everything and leave those 3 ports open. But i must rest first. :D
edit: ok ,seems i have a problem. when i close vnc viever on my computer utorrent on wine also closes.
Also, when i type in 'wine utorrent' i get missing file error and i have to go to putty again and do wget . Although the utorrent.exe is on the seedbox(i see it through ftp,it's in /home).
Very strange,dunno what to do,what am i doing wrong.
wine utorrent looks in your system32 folder, it should show where it is looking, what you do is log in via ssh ftp, copy the utorrent.exe in your program files and put the copy in that system 32 file. I had the same issue, then it should start fine. (it might bring up a bunch of text prior to starting, Im still trying to figure out what causes that, but utorrent seems to be working fine, so if it aint broken dont fix it attitude here lol
Not sure about the other error, make sure you just x out vnc window, and do not close windows within vnc.
I am also on ovh fedora and followed the leeware guide to install and run the utorrent but i am running out of space (its default by utorrent) so i think i need to change the default storing location but i have no idea how to do it as i dont use linux. So can please anyone help me step by step for it. I am using TightVnc and putty if it helps. Thanks
in utorrent, change your downloads location to:
/home
that will sort you out.
hehe, me offering nix advice :lol:
thanks SgtMajor, it appears the problem is solved
and what else have you done beside all this simple installation that helped you with your box, can you share.
Thanks again for the help
Read this whole thread, yes - all the way through! both fatcat & myself went through all the teething problems, when you find something that you would like to attempt, or you think you could need, and you are not sure what it is & why, then ask the questions.
What suits me, or fatcat, may not necessarily suit you.
ya you might be lucky with ftp install like Sgt was, or you might have a mysterious problem that noone on the planet can figure out ...until naq comes along and saves the day.
He is putting together a full guide for pretty much every distro atm. I think all my questioning caused him to get off his lazy butt and do it :P
I have read what he has so far and pretty much it is basically what this whole thread has in it, except condensed very nicely for different distros. I am looking forward to the next copy he sends me to linux noob test before posting here! :lol:
ok i am reading it now. just to inform you, i simultaneously downloaded two good seeded files from TL and my speeds were mostly in the range of 8-10.5 mbps. Yet to look for upload speeds though which is heavily leeched. What abt your speeds.