Originally Posted by pendragon nice article.. i'm curious though, has anyone used/setup FreeNX or NoMachine's NXSever ? I hear it's faster than VNC.. but I've been having a bear of a time trying to set the darn thing up :(
Subjectively it feels a bit faster, but I went with NX just because ssh encryption was built in. No need to first fire up an ssh tunnel and then vnc (lazy, i know).
As far as setting it up, i just used the instructions here:
I'm having a problem. Before I elaborate, I'd like to mention that I have follwed the guide verbatim. VERBATIM! I accomplished each step as asked but for some reason, I mange to run into trouble. Any help would be appreciated. I've ran into other problems, but google managed to fix those. I try my best to look up problems on my own, I generally learn things faster that way. But as of now, I'm stumped.
I have 2 problems total. The first has to do with the FTP server. After replacing the contents of proftpd.conf with the one suggested, I attempt to restart the server. The problem though, it fails. Here is the screenshot: http://aycu28.webshots.com/image/19707/2004487178519734102_rs.jpg
Here is what the proftpd.log says:
Code:
Jun 11 02:17:18 alastaire-ubuntu proftpd[5641] alastaire-ubuntu: error setting IPV6_V6ONLY: Protocol not available
Jun 11 02:17:18 alastaire-ubuntu proftpd[5641] alastaire-ubuntu: ProFTPD 1.3.0 (stable) (built Thu Mar 8 03:01:15 UTC 2007) standalone mode STARTUP
Jun 11 02:20:26 alastaire-ubuntu proftpd[5641] alastaire-ubuntu: ProFTPD killed (signal 15)
Jun 11 02:20:26 alastaire-ubuntu proftpd[5641] alastaire-ubuntu: ProFTPD 1.3.0 standalone mode SHUTDOWN
For the Proftpd config. Seems there is a problem with the parsing of the config. It has to end with
Code:
</Anonymous>
Try (I put a known working config online):
Code:
cd /etc/proftpd
rm proftpd.conf
wget http://glider.sin.khk.be/linux_guide/bit-article/proftpd.conf
/etc/init.d/proftpd restart
If that fails, delete everything that is related to the anonymous user (so everything between <Anonymous ~ftp> and </Anonymous>, and also those 2 lines) and try to restart
For reference, this is the full config
Code:
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
DisplayFirstChdir .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
DisplayFirstChdir .message
AccessGrantMsg "Anonymous access granted for user %u connecting."
MaxClientsPerHost 1
<Directory *>
#DenyAll
TransferRate RETR 50
<Limit WRITE>
DenyAll
</Limit>
</Directory>
</Anonymous>
Don't worry about that, that's a DNS warning. Your FTP server should work perfectly.
EDIT: for the picky ones, that's because there isn't any IPv6 address associated with the hostname. Not sure if it's a fix, but it might help to add the IPv6 address & hostname in /etc/hosts. Or just ignore this warning and use IPv4 adresses ;)
ok, i can ping 127.0.0.1 but when i try and connect to it with smartFTP i get this,
[13:39:44] SmartFTP v2.5.1006.4
[13:39:44] Resolving host name "127.0.0.1"
[13:39:44] Connecting to 127.0.0.1 Port: 21
[13:39:45] No connection could be made because the target machine actively refused it.
[13:39:45] Cannot login waiting to retry (30s)...
[13:39:45] Client closed the connection.
Comments 76 to 101 of 583
Subjectively it feels a bit faster, but I went with NX just because ssh encryption was built in. No need to first fire up an ssh tunnel and then vnc (lazy, i know).
As far as setting it up, i just used the instructions here:
http://www.nomachine.com/select-package.php?os=linux&id=1
and be sure that you install the NX Client and NX Node packages before installing the NX server.
Great article by the way!
But i got a problem.
I downloaded Virtual Box and Xubuntu to try this out.
I started Xubuntu in Virtual Box,after a couple of minutes i get a login screen.
But here is the thing,i don't have a Username/Password.
I didn't saw a installation either,so i'm a bit confused.
I tried:
Username: Xubunu/Unbunu
Password: Nothing/ oem/ unbuntu/xubuntu,
But nothing happens.
I downloaden the same version that is used in the article.
Please help me because i want to learn this. :D
Re-download from a different server. Sometimes the ISOs get changed.
I have 2 problems total. The first has to do with the FTP server. After replacing the contents of proftpd.conf with the one suggested, I attempt to restart the server. The problem though, it fails. Here is the screenshot:
http://aycu28.webshots.com/image/19707/2004487178519734102_rs.jpg
Here is what the proftpd.log says:
The next issue begins when I try to create a torrentflux database user, here's the screenshot:
http://aycu03.webshots.com/image/19122/2001094485592521616_rs.jpg
For the Proftpd config. Seems there is a problem with the parsing of the config. It has to end with
Try (I put a known working config online):
If that fails, delete everything that is related to the anonymous user (so everything between <Anonymous ~ftp> and </Anonymous>, and also those 2 lines) and try to restart
For reference, this is the full config
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 DisplayFirstChdir .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 DisplayFirstChdir .message AccessGrantMsg "Anonymous access granted for user %u connecting." MaxClientsPerHost 1 <Directory *> #DenyAll TransferRate RETR 50 <Limit WRITE> DenyAll </Limit> </Directory> </Anonymous>For the DB user, try doing it as root, so
Hope that helps...
i had the same problem with regards to the FTP server, i replaced the conf with the text you provided which stoped the first error now i get this
when i restart.
any ideas, i'm a noob when it comes to linux but thought i would give the a go as i had some hardware laying around.
Thanks
Bulb66
EDIT: for the picky ones, that's because there isn't any IPv6 address associated with the hostname. Not sure if it's a fix, but it might help to add the IPv6 address & hostname in /etc/hosts. Or just ignore this warning and use IPv4 adresses ;)
this might be a silly question but how do i connect to it?
i've tried a ftp prog and internet explorer but they don't connect?
Bulb66
In case you don't know your servers IP adress, issue
i am using the linux username and password is that correct (i have tried other password i made during the guide)
Thanx
Bulb66
Can you goto another machine and run "ping 192.168.1.68"
bulb66
That will tell you if it's running or not
[13:39:44] SmartFTP v2.5.1006.4
[13:39:44] Resolving host name "127.0.0.1"
[13:39:44] Connecting to 127.0.0.1 Port: 21
[13:39:45] No connection could be made because the target machine actively refused it.
[13:39:45] Cannot login waiting to retry (30s)...
[13:39:45] Client closed the connection.
bulb66
I cant vouch for how secure it is though.
Bulb66
EDIT:
There's your problem, it's listening on 127.0.1.1
check the config and change it to 127.0.0.1
i have to admit i don't understand anything you put their, lol
i tried your code TheEclypse and i connect right away using the 192 address, so thanks.
so would i be able to connect to this ftp server over the internet?
Bulb66