1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Bits Build your own server

Discussion in 'Article Discussion' started by Da Dego, 5 Jun 2007.

  1. remeron

    remeron What's a Dremel?

    Joined:
    6 Dec 2007
    Posts:
    5
    Likes Received:
    0
    hi there, everything is up and working for me.
    but i can't figure out how to access my linux box (at home) thru internet with putty. i am trying to use putty to access my linux box to get into command line. when i'm at home, it works well locally (when i use my xp machine to putty to my linux box). but i can't from work. i've already registered with dyndns and i could access my utorrent webui (i'm using utorrent instead of torrentflux cause flux doesn't allow proxy) from work.

    help?
     
  2. Enforcer

    Enforcer What's a Dremel?

    Joined:
    12 Nov 2004
    Posts:
    87
    Likes Received:
    0
    Silly Question but the "server" can i just connect it to extra port on my router or does it need to be set up a special way?
     
  3. Glider

    Glider /dev/null

    Joined:
    2 Aug 2005
    Posts:
    4,173
    Likes Received:
    21
    Make sure the SSH port is redirected on your router ;)
    Just attach it like you would attach any pc.
     
  4. tstack77

    tstack77 What's a Dremel?

    Joined:
    4 Jan 2008
    Posts:
    2
    Likes Received:
    0
    I am having problems finishing up the ftp part here. I installed ProFTPd without a hitch but got the line 98 problem. Using the fix from 'TheEclipse' I changed the server name from Deepthought to my own but now get:

    * Starting ftp server proftpd
    - IPv6 getaddrinfo 'stack-server.stack' error: No address associated with hostname

    When I check my network properties I see that the correct ip address is associated so I have no clue what to try next. Any ideas?
     
  5. Glider

    Glider /dev/null

    Joined:
    2 Aug 2005
    Posts:
    4,173
    Likes Received:
    21
    Are you sure your hostname is associated with an IPv6 IP adress? I highly doubt that, because IPv6 adresses aren't all that readable, and everybody uses IPv4 adresses ;)

    Does the proftpdservice itself start?
     
  6. remeron

    remeron What's a Dremel?

    Joined:
    6 Dec 2007
    Posts:
    5
    Likes Received:
    0
    When you say that you mean, i need to port forward the SSH port on my router right?
    what's the port by the way..is it 22?

    Edit: It's okay now. It's just a matter of forwarding the SSH port on my router. silly me. thanks for a great guide Glider.
     
    Last edited: 5 Jan 2008
  7. tstack77

    tstack77 What's a Dremel?

    Joined:
    4 Jan 2008
    Posts:
    2
    Likes Received:
    0
    I started over and still had the problems with the line 98 issue. I decided to go with your change instead of TheEclipses (why, no clue). It still told me that no address is associated with the hostname, but i've read by searching these 400+ entries that it doesn't matter (why, no clue). Now i'm immediately running into problems with the "vncpasswd ~/.vnc/passwd" part the same way that Hu had on page 19:

    The program 'vncpasswd' can be found in the following packages:
    * vnc-common
    * vnc4-common
    Try: apt-get install <selected package>
    bash: vncpasswd: command not found

    Hu says that changing "vncpasswd ~/.vnc/passwd" to "x11vnc -storepasswd" fixes the problem (why, no clue). Is this true/recommended?

    Glider, I have no intention of sounding ungrateful here, but is it possible to go through your tut again and change the inconsistencies? I am really trying to understand/learn what I'm doing here but it seems i run into a new problem with every step. (I figured out the samba part from the beginning by creating a common workgroup with windows, that seems important for many other newbs).

    Please try your whole process from the beginning and notice what steps you might have left out. It will also save yourself the hassle of responding to everyone's individual problems.

    Seriously though, thanks for the time you've put in and I only hope to help.
     
  8. alexandeR

    alexandeR What's a Dremel?

    Joined:
    27 Dec 2007
    Posts:
    2
    Likes Received:
    0
    Thanks!
    I started it as root, that was the problem.
     
  9. acidfire

    acidfire What's a Dremel?

    Joined:
    11 May 2004
    Posts:
    259
    Likes Received:
    0
    Glider the guide was awesome! however, when I couldn't get your ftp config to work I tried Eclipse's and while the ftp starts ok, and I can connect, it seems to disconnect right away. Any idea why?
     
  10. Glider

    Glider /dev/null

    Joined:
    2 Aug 2005
    Posts:
    4,173
    Likes Received:
    21
    Are you using the correct username and password? Can you post the output of "sudo netstat -taunp"?
     
  11. acidfire

    acidfire What's a Dremel?

    Joined:
    11 May 2004
    Posts:
    259
    Likes Received:
    0
    Username and password are ok.

    Heres the info you requested:
    Code:
    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
    tcp        0      0 127.0.0.1:2208          0.0.0.0:*               LISTEN     4958/hpiod
    tcp        0      0 0.0.0.0:139             0.0.0.0:*               LISTEN     5049/smbd
    tcp        0      0 0.0.0.0:5900            0.0.0.0:*               LISTEN     5346/x11vnc
    tcp        0      0 0.0.0.0:21              0.0.0.0:*               LISTEN     5121/proftpd: (acce
    tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN     5777/cupsd
    tcp        0      0 0.0.0.0:445             0.0.0.0:*               LISTEN     5049/smbd
    tcp        0      0 127.0.0.1:2207          0.0.0.0:*               LISTEN     4961/python
    tcp        0      0 192.168.1.110:139       192.168.1.127:3958      ESTABLISHED7520/smbd
    tcp        0      0 192.168.1.110:445       192.168.1.124:49807     ESTABLISHED6220/smbd
    tcp        0      0 192.168.1.110:139       192.168.1.138:49218     ESTABLISHED7542/smbd
    tcp        0      0 192.168.1.110:139       192.168.1.132:62803     ESTABLISHED5869/smbd
    tcp        0      0 192.168.1.110:445       192.168.1.123:1750      ESTABLISHED7570/smbd
    tcp        0      0 192.168.1.110:139       192.168.1.128:49211     ESTABLISHED7517/smbd
    tcp        0      0 192.168.1.110:139       192.168.1.137:49176     ESTABLISHED7371/smbd
    tcp6       0      0 :::22                   :::*                    LISTEN     5069/sshd
    tcp6       0      0 ::ffff:192.168.1.110:22 ::ffff:192.168.1.:52628 ESTABLISHED7732/1
    udp        0      0 0.0.0.0:32768           0.0.0.0:*                          4811/avahi-daemon:
    udp        0      0 192.168.1.110:137       0.0.0.0:*                          5047/nmbd
    udp        0      0 0.0.0.0:137             0.0.0.0:*                          5047/nmbd
    udp        0      0 192.168.1.110:138       0.0.0.0:*                          5047/nmbd
    udp        0      0 0.0.0.0:138             0.0.0.0:*                          5047/nmbd
    udp        0      0 0.0.0.0:68              0.0.0.0:*                          4073/dhclient3
    udp        0      0 0.0.0.0:5353            0.0.0.0:*                          4811/avahi-daemon:
    
     
  12. Glider

    Glider /dev/null

    Joined:
    2 Aug 2005
    Posts:
    4,173
    Likes Received:
    21
    As you can see proftpd is clearly running and listening.

    Try to connect to it from the local machine:

    Code:
    ftp <IP>
    and see if you can connect locally
     
  13. acidfire

    acidfire What's a Dremel?

    Joined:
    11 May 2004
    Posts:
    259
    Likes Received:
    0
    and that works no problem, however through fireftp & smartftp on the local networks i can't seem to connect for long. I do get a 220 response but then the connection seems to drop.
     
  14. Glider

    Glider /dev/null

    Joined:
    2 Aug 2005
    Posts:
    4,173
    Likes Received:
    21
    Are you running any firewalls on your network?
     
  15. acidfire

    acidfire What's a Dremel?

    Joined:
    11 May 2004
    Posts:
    259
    Likes Received:
    0
    no, just the usual stuff blocking outside traffic, nothing inside.
     
  16. Glider

    Glider /dev/null

    Joined:
    2 Aug 2005
    Posts:
    4,173
    Likes Received:
    21
    And on the XP machine? That firewall does block outgoing connections... Server side everything seems fine...
     
  17. acidfire

    acidfire What's a Dremel?

    Joined:
    11 May 2004
    Posts:
    259
    Likes Received:
    0
    nope not on and still nothing :(
     
  18. remeron

    remeron What's a Dremel?

    Joined:
    6 Dec 2007
    Posts:
    5
    Likes Received:
    0
    i got my ssh to work (i am able to putty to my linux comp at home from work). but how do i get vnc to work?
    when i type "localhost:0" at the server field of ultravnc, it says connection error. i know i'm doing something wrong but can't figure out.
     
  19. remeron

    remeron What's a Dremel?

    Joined:
    6 Dec 2007
    Posts:
    5
    Likes Received:
    0
    update: figured out the vnc thing now. seems like everything i write here, i get an epiphany and manage to get things working.
     
  20. acidfire

    acidfire What's a Dremel?

    Joined:
    11 May 2004
    Posts:
    259
    Likes Received:
    0
    if it helps, this is what I get with ftp:
    220 DeepThought
    USER chrisg
    331 Password required for chrisg.
    PASS (password not shown)
    230 User chrisg logged in.
    NOOP
    200 NOOP command successful
    TYPE A
    200 Type set to A
    CWD /
    250 CWD command successful
    PASV
    227 Entering Passive Mode (192,168,1,110,56,251).
    LIST
    and this is where it hangs up and restarts the connection.
     
    Last edited: 9 Jan 2008
Tags: Add Tags

Share This Page