bit-tech.net

Build your own server

Comments 176 to 200 of 586

Reply
starkiller 10th August 2007, 01:50 Quote
Hi great one this server thing is great my problem is I can't logg in to MySQL. So I install apache2, phpmyadmin and mysql-server-5.0. the test for apache works, but when click on the phpmyadmin link, it wonts to know wheather to save the page or find the program - in windows this would mean php isn't configured correctly, is that the case here? I have removed the three packages completely, restarted and re-install, but it does the same - HELP
Zeloz 12th August 2007, 10:29 Quote
Hello, this might sound a bit dumb but I guess I entered my password wrong in the UltraVNC situation. After writing vncpasswd ~/.vnc/passwd it asked me to write the password, well I did. I typed it two times wrongly in a row (same way wrong). Anyways, now I try to enter vncpasswd ~/.vnc/passwd and typed it correctly but it won't work now, it still says Wrong Password when trying to connect from my main computer to my server. Do I need to make a different command to change it?
chimaera 14th August 2007, 07:59 Quote
Quote:
Originally Posted by Zeloz
Hello, this might sound a bit dumb but I guess I entered my password wrong in the UltraVNC situation. After writing vncpasswd ~/.vnc/passwd it asked me to write the password, well I did. I typed it two times wrongly in a row (same way wrong). Anyways, now I try to enter vncpasswd ~/.vnc/passwd and typed it correctly but it won't work now, it still says Wrong Password when trying to connect from my main computer to my server. Do I need to make a different command to change it?

Now I've not actually bothered with VNC for my setup and I'm not 100% this would work but the first thing I'd try is:

sudo nano /home/[username].vnc/passwd


If you're lucky the password is held in plaintext so you'll be able to read what it is.

If not then I would probably delete it:

sudo cp /home/[username].vnc/passwd /home/[username].vnc/passwd.old
sudo rm -rf /home/[username].vnc/passwd


The first line makes a copy of the file (just in case of problems) and the second deletes the file. Then run the vncpasswd command again.
Glider 14th August 2007, 14:30 Quote
No need for all the sudo's, VNC password is stored as your user IIRC
Zeloz 14th August 2007, 16:11 Quote
Okay how do I find the passwd.

Chimaera, there don't seem to be such a file in my home folder. It says: "cp: cannot stat `/home/zambo.vnc/passwd': No such file or directory".
brbice 15th August 2007, 21:50 Quote
Replace all the contents of the file with the following. Make sure you replace "Name" and "Server Name" with the correct data from your XUbuntu installation!

Question: I am not clear on what "Name" and "Server Name" is on the XUbuntu install expamle? Would the "Name" be glider (what name do you want to use to log in) and "Server Name" be server (what is the name of this computer). Thanks in advance.

brbice
chimaera 16th August 2007, 08:16 Quote
Quote:
Originally Posted by Zeloz
Okay how do I find the passwd.

Chimaera, there don't seem to be such a file in my home folder. It says: "cp: cannot stat `/home/zambo.vnc/passwd': No such file or directory".

Your username is zambo? Then the path should be: /home/zambo/.vnc/passwd (note the additional slash between 'zambo' and '.vnc'
Zeloz 16th August 2007, 16:20 Quote
Brbice: How do I know my Server Name, I don't remember the name I putted to it when I installed XUbuntu. I'll try to scout around a bit. Reporting of my findings. :)

Chimaera: "cp: cannot stat `/home/zambo/.vnc/passwd': No such file or directory" still getting that message. I tried to reinstall the UltraVNC but it didn't work. :/

E: Yes my username is zambo.
TcZero 17th August 2007, 17:21 Quote
Thanks Glider for the tutorial!

I followed the tut closely and had the same VNC issues as discussed on post 114,
Connection failed - Error reading Protocol Version

Possible causes:
- You've forgotten to select a DSMPlugin and the Server uses a DSMPlugin
- Viewer and Server are not compatible (they use different RFB protocoles)
- Bad connection

I tried the fixes Glider suggested in post 115 with no luck. So I headed off to the x11vnc faq page. Here I found the command "x11vnc -auth /home/tdusold/.Xauthority -display :0" and after entering this into the CL it gives me a message that I am running x11vnc without a password. This done I can now start the VNC viewer and if I put in myserverip:0 (as opposed to localhost:0) into the server connection box, I can connect with a working VNC. If I close the viewer window when finished I have to re-enter the "x11vnc -auth /home/tdusold/.Xauthority -display :0" command before I can connect with VNC viewer again.

The question then is, is this secure? If not I would sure be up for suggestions.
Glider 19th August 2007, 08:51 Quote
Quote:
Originally Posted by brbice
Replace all the contents of the file with the following. Make sure you replace "Name" and "Server Name" with the correct data from your XUbuntu installation!

Question: I am not clear on what "Name" and "Server Name" is on the XUbuntu install expamle? Would the "Name" be glider (what name do you want to use to log in) and "Server Name" be server (what is the name of this computer).
You mean
Quote:
workgroup = "Name"
netbios name = "Server name"

workgroup = the name of the workgroup you have at home. Windows uses workgroups. This actually doesn't matter that much, because you don't have to be part of a workgroup to access it's shares.

netbios name = the name which the servers should be known by on other Windows PC's. I allways take the 'hostname' I set up during install

http://www.bit-tech.net/content_images/2007/06/build_your_own_server/small-server07.jpg (marked in blue)
Quote:
Originally Posted by TcZero
I followed the tut closely and had the same VNC issues as discussed on post 114,
Connection failed - Error reading Protocol Version

Possible causes:
- You've forgotten to select a DSMPlugin and the Server uses a DSMPlugin
- Viewer and Server are not compatible (they use different RFB protocoles)
- Bad connection

I tried the fixes Glider suggested in post 115 with no luck. So I headed off to the x11vnc faq page. Here I found the command "x11vnc -auth /home/tdusold/.Xauthority -display :0" and after entering this into the CL it gives me a message that I am running x11vnc without a password. This done I can now start the VNC viewer and if I put in myserverip:0 (as opposed to localhost:0) into the server connection box, I can connect with a working VNC. If I close the viewer window when finished I have to re-enter the "x11vnc -auth /home/tdusold/.Xauthority -display :0" command before I can connect with VNC viewer again.

The question then is, is this secure? If not I would sure be up for suggestions.
Code:
x11vnc -auth /home/tdusold/.Xauthority -display :0
This starts the server for user tdusold, is that your user or did you just copy paste the command?

Also, on my example I made an SSH tunnel and ran the connection through it. TBH, that's the only way I thrust VNC (as VNC is quite insecure). That's why I connected to localhost instead of the serverIP. Try creating a tunnel first. I think it will solve your issues and make the connection a lot more secure.
Zeloz 24th August 2007, 13:21 Quote
Brbice: How do I know my Server Name, I don't remember the name I putted to it when I installed XUbuntu. I'll try to scout around a bit. Reporting of my findings. :)

Chimaera: "cp: cannot stat `/home/zambo/.vnc/passwd': No such file or directory" still getting that message. I tried to reinstall the UltraVNC but it didn't work. :/

EDIT: Got it working when I enter the ip address of the machine, but not when I put localhost:0 .
completemadness 24th August 2007, 23:09 Quote
the servername is whatever you want

lets say you set the servername to dataserver
if you go into windows and type \\dataserver
it will come up with the network share, put whatever you want into that
starkiller 25th August 2007, 18:44 Quote
Hi great work here. I got suck on setup of torrentfluz, first I couldn't get on the site, I then found another to download the package. That was easily solved. It's the damn sql folder you said to cd to. I just can't find it on my setup of Xubuntu. Please help! Where is SQL sitting? for that matter the executables for MySQL?
starkiller 25th August 2007, 18:54 Quote
I had the same problem. I had everything working before then scrap the box. Put it back together again and it started doing this. I removed the vnc package completely along with the script from the tut. Then did it all over again. Before testing I restarted the box - I think thats required. I all works now.
starkiller 25th August 2007, 19:17 Quote
Quote:
Originally Posted by starkiller
Hi great work here. I got suck on setup of torrentfluz, first I couldn't get on the site, I then found another to download the package. That was easily solved. It's the damn sql folder you said to cd to. I just can't find it on my setup of Xubuntu. Please help! Where is SQL sitting? for that matter the executables for MySQL?

Sorry folks just found were the folder sits - in the decompressed folder of torrentfluz - you know it's not that easy learning this stuff :(
completemadness 26th August 2007, 11:48 Quote
it can be a bit confusing ;) glad you got it sorted though :)
yehoshua.number23 26th August 2007, 13:49 Quote
Hey guys,

I've followed the tutorial and gotten up the the stage where you use PuTTy to connect to your server. I always get the message 'connection refused'.
The VNC Viewer won't connect either.
Can anyone PLEASE help me?

Thanks,
Josh
Glider 26th August 2007, 13:55 Quote
Can you post the output of
Code:
sudo netstat -taunp
yehoshua.number23 26th August 2007, 14:09 Quote
Quote:
Originally Posted by Glider
Can you post the output of
Code:
sudo netstat -taunp

Hang on ..
yehoshua.number23 26th August 2007, 14:22 Quote
612/smbd
tcp 0 0 127.0.0.1:2207 0.0.0.0:* LISTEN 4
301/python
tcp6 0 0 :::21 :::* LISTEN 4
690/proftpd: (acce
tcp6 0 0 :::22 :::* LISTEN 4
641/sshd
udp 0 0 0.0.0.0:1024 0.0.0.0:* 4
180/avahi-daemon:
udp 0 0 10.1.1.2:137 0.0.0.0:* 4
589/nmbd
udp 0 0 0.0.0.0:137 0.0.0.0:* 4
589/nmbd
udp 0 0 10.1.1.2:138 0.0.0.0:* 4
589/nmbd
udp 0 0 0.0.0.0:138 0.0.0.0:* 4
589/nmbd
udp 0 0 0.0.0.0:68 0.0.0.0:* 3
542/dhclient3
udp 0 0 0.0.0.0:68 0.0.0.0:* 4
825/dhclient3
udp 0 0 0.0.0.0:5353 0.0.0.0:* 4
180/avahi-daemon:

That's all i got, hope it helps :|
Glider 26th August 2007, 14:42 Quote
Try:
Code:
sudo /etc/init.d/ssh start
(if it gives an error about no such file, try sshd instead of ssh) and check if you can connect through SSH

If that works, do
Code:
sharex11vnc
should start the vnc server.
yehoshua.number23 27th August 2007, 05:24 Quote
It failed, is it not installed properly or something?
Glider 27th August 2007, 09:08 Quote
it failed is kind of a plain description... What error messages does it give?

Also, have you installed SSH and X11vnc?
yehoshua.number23 27th August 2007, 09:28 Quote
All it says in Terminal is ' * Starting OpenBSD Secure Shell server ... [fail]'

And yes i have installed both.
Glider 27th August 2007, 09:30 Quote
Try:
Code:
sudo su
apt-get remove --purge ssh
apt-get install ssh

This reinstalls the SSH server. Could be a bad install or download.
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