Bits Build your own server

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

  1. B_Dauterive

    B_Dauterive New Member

    Joined:
    23 Dec 2008
    Posts:
    7
    Likes Received:
    0
    Thanks for your prompt reply Glider:


    Yes I have installed x11vnc. My current setup is that I am applying the tutorial to Xubuntu 8.04 in hopes of setting up a server for my small home network. I want to be able to access it from my laptop during the day while I'm at college. The frustrating thing is that I dearly want to learn and be comfortable with linux and not be totally dependent on Windows.

    my home network is : two self-built desktops each running Xp Pro; Compaq V6110us laptop dual-boot with Xp Pro/ Vista Business ; an old Dell inspiron (I would like to make into a hardware firewall/router that would come later) and the Xubuntu file server. I also plan to setup another server to hold a small family web-site for family photos and also act as a bulletin board .
     
  2. Glider

    Glider /dev/null

    Joined:
    2 Aug 2005
    Posts:
    4,173
    Likes Received:
    21
    I get the feeling it isn't on, can you post the output of
    Code:
    dpkg -l |grep vnc
     
  3. B_Dauterive

    B_Dauterive New Member

    Joined:
    23 Dec 2008
    Posts:
    7
    Likes Received:
    0
    Here is the output I got. My server's name is "michele".

    ack@michelle:~$ dpkg -l |grep vnc
    ii libgtk-vnc-1.0-0 0.3.4-0ubuntu2 A VNC viewer widget for GTK+ (runtime libraries)
    ii libvncserver0 0.9.3.dfsg.1-1ubuntu1 API to write one's own vnc server
    ii tightvncserver 1.2.9-22 virtual network computing server software
    ii x11vnc 0.9.3.dfsg.1-1ubuntu1 VNC server to allow remote access to an existing X session
    jack@michelle:~$
     
  4. B_Dauterive

    B_Dauterive New Member

    Joined:
    23 Dec 2008
    Posts:
    7
    Likes Received:
    0
    Sorry text editor chopped the first post, here goes:

    jack@michelle:~$ dpkg -l |grep vnc
    ii libgtk-vnc-1.0-0 0.3.4-0ubuntu2 A VNC viewer widget for GTK+ (runtime libraries)
    ii libvncserver0 0.9.3.dfsg.1-1ubuntu1 API to write one's own vnc server
    ii tightvncserver 1.2.9-22 virtual network computing server software
    ii x11vnc 0.9.3.dfsg.1-1ubuntu1 VNC server to allow remote access to an existing X session
    jack@michelle:~$
     
  5. Glider

    Glider /dev/null

    Joined:
    2 Aug 2005
    Posts:
    4,173
    Likes Received:
    21
    It is indeed installed, does it work when you type 'x11vnc'? Maybe the userrights are fixed in the new release.
     
  6. B_Dauterive

    B_Dauterive New Member

    Joined:
    23 Dec 2008
    Posts:
    7
    Likes Received:
    0
    I have since got it working (sorta) and have moved on to installing Putty and UltraVnc. Everything went swimmingly with Putty but for some reason Ultravnc viewer cannot connect to the server. I keep getting a: " the plug-in cannot be loaded. etc" message.
     
  7. statmonkey

    statmonkey New Member

    Joined:
    5 Nov 2007
    Posts:
    15
    Likes Received:
    0
    Amazing this is still alive but deservedly so. At this point I have replicated the first two of these tutorials for (and with) 7 different friends and built the router box for two people besides myself. Of all the tutorials I have come across over the years this is certainly one of the most complete and most useful. Essentially I have been able to apply it to Ubuntu 7.1 - 8.1 and even tweaked my way around with a fedora box using the basics outlined here. Really hope there will be more things like this in the future. Thanks again Glider.
     
  8. Glider

    Glider /dev/null

    Joined:
    2 Aug 2005
    Posts:
    4,173
    Likes Received:
    21
    Mail your suggestions to Tim or another staff member ;)
     
  9. statmonkey

    statmonkey New Member

    Joined:
    5 Nov 2007
    Posts:
    15
    Likes Received:
    0
    Hmm, how to say this in a politically correct manner ... I believe the success and value of these tutorials lies in the way they were written and laid out and all due to the author. I don't remember how I stumbled across the first article but became a reader of this site due to it and the follow ups. I hope Glider, that you will continue to write this type of thing, you are obviously very good at it and have helped a lot of people. If you do write other things, I hope I can find them ... I read somewhere you were leaving the site and if it is true that is really a loss for bit-tech.
     
  10. tookie07

    tookie07 New Member

    Joined:
    19 Jan 2009
    Posts:
    2
    Likes Received:
    0
    Hi there, nice guide, i am getting an error when i try to connect to my server using Ultra VNC Viewer. It keeps saying Connection failed - error reading protocol version, possible causes: - you've forgotten to select a DSMPlugin and the server uses a DSMPlugin. it shows me this error after i type in the password even though i have use DSMPlugin checked.
     
  11. tookie07

    tookie07 New Member

    Joined:
    19 Jan 2009
    Posts:
    2
    Likes Received:
    0
    Hi there, nice guide, i am getting an error when i try to connect to my server using Ultra VNC Viewer. It keeps saying Connection failed - error reading protocol version, possible causes: - you've forgotten to select a DSMPlugin and the server uses a DSMPlugin. it shows me this error after i type in the password even though i have use DSMPlugin checked.
     
  12. Doomus

    Doomus New Member

    Joined:
    19 Jan 2009
    Posts:
    2
    Likes Received:
    0
    I am having a problem with the /proftpd/proftpd.conf section, then i try to reboot the ftp server, it tells me that im missing an augment on line 99 under <Directory>, any idea on what my problem is?

    great stuff btw ^^
     
  13. steveo_mcg

    steveo_mcg New Member

    Joined:
    26 May 2005
    Posts:
    5,841
    Likes Received:
    80
    Sure its not meant to read argument? In which case post your (anonymised) proftpd.conf and we can have a look.
     
  14. Doomus

    Doomus New Member

    Joined:
    19 Jan 2009
    Posts:
    2
    Likes Received:
    0
    its an exact copy paste of the directed information, i am also using a newer version of Xubuntu than the guide i beleive, but in any case:

    #
    # /etc/proftpd.conf -- This is a basic ProFTPD configuration file.
    # To really apply changes reload proftpd after modifications.
    #

    ServerName "FTP Server"
    Serverident on "FTP"
    ServerType standalone
    DeferWelcome off
    TimesGMT off


    MultilineRFC2228 on
    #DefaultServer on
    ShowSymlinks on

    TimeoutNoTransfer 600
    TimeoutStalled 600
    TimeoutIdle 1200

    DisplayLogin welcome.msg
    DisplayChdir .message
    ListOptions "-l"

    DenyFilter \*.*/

    AllowForeignAddress on
    AllowRetrieveRestart on

    # Uncomment this if you are using NIS or LDAP to retrieve passwords:
    #PersistentPasswd off

    # Uncomment this if you would use TLS module:
    #TLSEngine on

    # Uncomment this if you would use quota module:
    #Quotas on

    # Uncomment this if you would use ratio module:
    #Ratios on

    # Port 21 is the standard FTP port.
    Port 21
    SocketBindTight on

    PassivePorts 11000 20000


    # To prevent DoS attacks, set the maximum number of child processes
    # to 30. If you need to allow more than 30 concurrent connections
    # at once, simply increase this value. Note that this ONLY works
    # in standalone mode, in inetd mode you should use an inetd server
    # that allows you to limit maximum number of processes per service
    # (such as xinetd)
    MaxInstances 30

    # Set the user and group that the server normally runs at.
    User nobody
    Group nogroup

    # Umask 022 is a good standard umask to prevent new files and dirs
    # (second parm) from being group and world writable.
    Umask 022 022
    # Normally, we want files to be overwriteable.
    AllowOverwrite on

    AllowForeignAddress on
    AllowRetrieveRestart on
    AllowStoreRestart on

    # Speed up the server, no DNS lookups, just plain ip's. Turn off when being hax0r3d.
    UseReverseDNS off
    IdentLookups off

    DefaultRoot ~
    ExtendedLog /var/log/proftpd.all ALL


    # Delay engine reduces impact of the so-called Timing Attack described in
    # http://security.lss.hr/index.php?page=details&ID=LSS-2004-10-02
    # It is on by default.
    DelayEngine off

    <Anonymous ~ftp>
    User ftp
    Group nogroup
    UserAlias anonymous ftp
    DirFakeUser on ftp
    DirFakeGroup on ftp
    RequireValidShell off
    MaxClients 10
    DisplayLogin welcome.msg
    DisplayChdir .message <?-my version did not like DisplayFirstChdir, so i swited it to this and it works ->
    AccessGrantMsg "Anonymous access granted for user %u connecting."

    MaxClientsPerHost 1

    <Directory>
    #DenyAll
    TransferRate RETR 50
    <Limit WRITE>
    DenyAll
    </Limit>
    </Directory>

    Any help would be much apppritiated, and thsnks a bunch ^^
     
  15. JrRRr

    JrRRr Minecraft addict

    Joined:
    27 Mar 2003
    Posts:
    308
    Likes Received:
    6
    Same problem i discovered just now..
    Problem 1: <Directory> should be <Directory *>
    Problem 2: Ad a line after the last line (</Directory>) that reads </Anonymous> to close the argument correctly.
     
    Last edited: 26 Jan 2009
  16. Xjagdog

    Xjagdog New Member

    Joined:
    15 Feb 2009
    Posts:
    2
    Likes Received:
    0
    Hi Folks.
    I am a total newbie to Linux but thanks to this great article I am enjoying having a go at building a server with Xubuntu 8.10 or I was till I screwed up the network !!!.
    I got as far as connecting with ultravnc from another windows pc on the network and connecting to it from the internet from a friends pc. but somewhere along the way after a restart i think, the router gave the server a different IP address which stopped me connecting to it. So i decided to set the server to a static IP ( boy was that a daft idea ) ever since messing with the IP i am getting a red cross on the network icon and i can't get rid of it by changing the network back to DHCP.
    I would be grateful for any advice you could give.
     
  17. Andy Mc

    Andy Mc Well-Known Member

    Joined:
    23 May 2002
    Posts:
    1,718
    Likes Received:
    126
    When setting up the server did you configure it to have a static IP address? If so was it the same one as you have since setup in the router? If not then this may be your issue.

    At the terminal type:

    ifconfig

    and make sure that the entry for eth0 is the same IP as the one you have configured the router, if not then you will need to change the IP that your router is giving the server.
     
  18. Xjagdog

    Xjagdog New Member

    Joined:
    15 Feb 2009
    Posts:
    2
    Likes Received:
    0
    Thanks for the reply.
    It looks like you are right, I set the server up without a static IP.
    I found the answer on the ubuntugeek.com website which said there is a bug in Gnome network manager ( that is what I was using ) so I removed it and followed the instructions to set a static IP and it all worked fine no problem.

    Thanks again for the help, I am sure to be back the next time I trip up.
     
  19. cmagana523

    cmagana523 New Member

    Joined:
    19 Feb 2009
    Posts:
    1
    Likes Received:
    0
    Hello

    Another newbie here and I am having some trouble with this server deal. I got as far as configuring samba and creating a username and password at this point according to the article I should be able to connect to the server from another pc. My server is an old desktop and the other pc I have is a laptop running XP home if that helps any.

    Thanks in advance for any help
     
  20. TheMutt

    TheMutt New Member

    Joined:
    19 Feb 2009
    Posts:
    7
    Likes Received:
    0
    I was getting an error with VNC saying something about DMS I believe, but after some reading I determined I hadn't created the .vnc directory, so I did that, now when I try to connect with VNC, it just says "Failed to connect to server !"
    I can't figure out why. I'm new to Linux and any help is appreciated.

    (I know this isn't a very descriptive error, but if there are commands you want me to run and post the output of, I'll be happy to do that as quickly as I can.)

    Thanks in advance
     
Tags: Add Tags

Share This Page