PDA

View Full Version : knoppix without a monitor



ehmdjii
12-21-2004, 02:33 PM
hello, i want to use knoppix without a monitor.

is there any service started automatically after it booted?
like ssh server or even better VNC?
what are the usernames/passwords to log in to these services?

thanks!

UnderScore
12-21-2004, 04:04 PM
SSH server does not load by default on bootup.
The method I use is to get sshd running. I boot to a command line using the cheat code: knoppix 2
I know it is finished loading when the CDROM slows down.
Then I change the root passwd: passwd
Then I run sshd: /etc/init.d/ssh start

I hope this helps.
James

ehmdjii
12-21-2004, 04:08 PM
that sounds like a nice trick!

what do you mean by cheatcode?
where do i type that?

ehmdjii
12-21-2004, 04:35 PM
ok, i figured it out.
ssh works now!
thanks a lot so far.

now what would be nice, is if i could start the desktop on that machine as well and control it via vnc, is that possible?

turbinater
12-21-2004, 07:26 PM
ok, i figured it out.
ssh works now!
thanks a lot so far.

now what would be nice, is if i could start the desktop on that machine as well and control it via vnc, is that possible?

You don't acually need vnc to control a desktop remotely, you can start an X server from a different machine, and run any X app from the other machine on your X server. Acually, now that I think about it, you can do that with ssh, here's the procedure:

1) start an X server on the client machine, with an xterm, you could use the command X :1.0 | xterm -display :1.0 from a terminal.
2) log in via ssh from the xterm
3) run startkde

Doing it with ssh will probably be slower, but it should work.

Harry Kuhman
12-21-2004, 08:03 PM
I got so tired of everyone telling ehmdjii how to run ssh when he's said he's already done that but what he really wants to do is run VNC that I fired up Knoppix myself to be sure I got the step-by-step operation in getting VNC up in server mode correct. Damn, I can't find VNC on the Knoppix 3.7 CD anywhere. Not even the VNC viewer (client). Has VNC been yanked from Knoppix now? Or is it hidden somewhere where I can't find it? Used to be in the menus, but I sure can't find it there. If it can still be accessed by the command line, will someone please post which version of VNC Knoppix might still have?

ehmdjii
12-21-2004, 08:08 PM
turbinator, thanks, but i really need to control the desktop there because i want to play mp3s from it for example.

harry, ive been looking for VNC myself now for a while, but couldnt find it. i found however this nxserver which seems to be something similar, but i couldnt get to connect to it yet.

Harry Kuhman
12-21-2004, 08:21 PM
..... ive been looking for VNC myself now for a while, but couldnt find it......
I know some form of VNC used to be in Knoppix. Damn shame if they ditched it, particularly the tiny VNC client, while keeping so much other redundant stuff and things of questionable merit. I realize they do drop things to make room on the CD, but at least the last time I check Knoppix had (at least) three different spread sheet programs. It currently shows no less than 11 different editors in the menu under editors, and that doesn't count Open Office or anything else that might be hanging around but not listed. They have taken out an awful lot of good games since I first saw Knoppix (likely some even before that), but taking out the VNC server and client seems to be a bit extreme.

Harry Kuhman
12-21-2004, 08:31 PM
Well, I found a viewer in the menu under Internet -> Remote Desktop Connection. No vnc server yet.

jccalhoun
12-21-2004, 10:06 PM
Check out krfb. http://packages.debian.org/unstable/net/krfb it is installed as of 3.6 I think it has replaced vnc.

Harry Kuhman
12-21-2004, 11:27 PM
Check out krfb. http://packages.debian.org/unstable/net/krfb it is installed as of 3.6 I think it has replaced vnc.
The link you gave has a comment on the page saying KRfb is a small server for the RFB protocol, better known as VNC., but I've tried running krfb and have a few problems with it. What comes up when I run krfb is the desktop sharing utility. It has a way to invite another user, but I can't see any way to configure it for normal vnc operation. And a vnc client run on another computer on my network can't find the Knoppix system (by IP address) while this is running. So it seems less than useful. Again, it seems a shame that such a useful program as the vnc server has been removed.

jccalhoun
12-22-2004, 12:51 AM
I found this script you can use to add init.d after doing apt-get install vncserver and editing your .conf files to your liking.

# nano /etc/init.d/vncstart (replace nano with editor of your choice)

Then, enter in what I have below:

#! /bin/sh
NAME = vncstart
start ()
{
vncserver :1 -depth 24 -geometry 1000x750
}
stop()
{
vncserver -clean -kill :1
}
case "$1" in
start)
echo -n "Starting Xvnc: "
start
;;
stop)
echo -n "Stopping Xvnc "
stop
;;
restart)
echo -n "Restarting Xvnc "
stop
start
;;
*)
echo "Usage: /etc/init.d/$NAME {start|stop|restart}"
exit 1
;;
esac
exit 0

don't forget to then in the terminal run:

# chmod 755 /etc/init.d/vncstart

Since I'm lazy, to get this running under gentoo, of course use:

# rc-update add vncstart default

OR for Debian:

# update-rc.d vncstart defaults 50

OK, time for the very last bit:

# nano /root/.xsession

and enter in:

#!/bin/sh
startkde &

This will start kde when the vncserver is started at boot time.

ENJOY!

Other options which I will add later are for making it start as
someone other than root. If you need extra help, visit my site at
http://www.cahtech.co.uk, and the forums there too at
http://www.cahtech.co.uk/apps/bb

zxc
12-22-2004, 04:11 AM
Check out krfb. http://packages.debian.org/unstable/net/krfb it is installed as of 3.6 I think it has replaced vnc.


Is krfb running by default, or do I have to make it auto-start somehow?

shah
12-22-2004, 06:13 AM
Instead of VNC, why don't you try FreeNX that comes with knoppix?

adduser -m NEW_USER

nxsetup --setup-nomachine-key

nxserver --useradd NEW_USER

nxserver --passwd NEW_USER
:D

ehmdjii
12-22-2004, 12:29 PM
i tried that nxserver, but i cant get the client to connect.

i always get authentication failed.
and i tried about every user/password combination.

thanks.

shah
12-22-2004, 03:07 PM
I had similar problem before, but I solved it by recreating nomachine-key.
Follow eco2geek & garyng instruction about copying client.id_dsa.key and chmod 0755.
http://www.knoppix.net/forum/viewtopic.php?t=15609&highlight=nxserver
:D

jccalhoun
12-22-2004, 07:27 PM
Check out krfb. http://packages.debian.org/unstable/net/krfb it is installed as of 3.6 I think it has replaced vnc.


Is krfb running by default, or do I have to make it auto-start somehow?

there's a short cut in the menu. but you can shell out and type krfb. it does not run until you tell it.