machine will no longer boot

2007-05-28 Thread WarrenHead

Hi list,

Yesterday I installed a new sata disk into my server, which is connected 
to a highpoint rocket raid card. I plugged in only one disk, so no raid yet.


I ran sysinstall and then fdisk and disklabel. All was fine and I placed 
files onto the disk. Then I realized I had made a mistake, I had made 
only one partition with fdisk, and two slices with disklabel.

(Mountpoints pointing to /mnt/x  and /mnt/y.)
Somehow I got another mountpoint automatically which mounted the entire 
disk as one, to /media/z. Weird.


So I ran sysinstall again and used fdisk to erase everything and create 
two partitions. I wrote these changes successfully to the disk.


I then started disklabel (still from within sysinstall) and created the 
two mount points for the two partitions again.

I tried to write these changes to the disk, but that failed.

Mmm, weird. So, perhaps I needed to reboot first?
Which I did, and now I cannot boot anymore.

The error messages that show on screen are something like this:
Can't stat /dev/ad4sd1 No such file or directory
Can't stat /dev/ad4se1 No such file or directory
After that I get a bogus shell which can do virtually nothing. I have no 
idea what it is.
I can cat /etc/fstab though and noticed that the two lines with 
mountpoints for the new disk are indeed the new lines. I guess disklabel 
was partially succesfull?


Perhaps I should simply remove these lines in /etc/fstab?
Unfortunately, with this ridiculous shell, I don't know how to.

So I tried a livecd (Knoppix 5.1). Since the system disk was formatted 
as ufstype=5xbsd, I have trouble writing to it. Bummer.


But... should I remove these lines in /etc/fstab? Will this matter?

Luckily I can read the disk, so if necessary I can start over, but I 
hope there is something I can do from within that odd shell.


Please advise, this particular problem is not fun.

Cheers, Warren
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


request: upgrade freenx server

2007-05-27 Thread WarrenHead

Hi,

I would like to request a newer version of the NX server.

I have installed the nxserver on my 6.2 machine, from:
/usr/ports/devel/nx
which is now version:
NXSERVER - Version 1.4.0-44 OS (GPL)

I have trouble connecting to this server with modern clients.
I have read that this is caused by the backingstore option of nx that
was changed by the nomachine.com people since version 2.0.0.
In short, newer clients do something that the older servers cannot 
handle and promptly refuse the connection. It is called the 
'Backingstore problem':


This issue is not new and has been written about in various locations, 
such as:


http://marvin.as.arizona.edu/~jharris/linux_tips/freenx-howto.html 
(see heading error 3)


and

http://gentoo-wiki.com/Talk:HOWTO_FreeNX_Server#Solutions_for_NX_Clients_versions_2.0.0_and_FreeNX_0.4.x_and_0.5.0


The solution that is offered is to change something in the code of the 
clients. This might work fine if you are using clients which code you 
can recompile, but this is not neat for when you are using windows 
and/or when you are offsite somewhere on someone else's machine, trying 
to get into your server.


My solution would be to get the current freenx server of FreeBSD 
upgraded to a more current version.


Unfortunately, I don't know how to go about that.

True, this problem might also be solved by using older clients, but I 
haven't been able to find those; Nomachine.com is not hosting them.


Cheers, Warren



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


configuring nis

2007-05-21 Thread WarrenHead

Hi,

I have been having some trouble with getting NIS working on my freebsd 
server. Mainly because I have never before used this.


I now have it working, but there is an odd inconsistency which I don't 
know how to remove/update.


I changed the gid of a user with: 'pw usermod -n sam -g 1000', but this 
change is not reflected in the yp maps. I did recreate the maps again 
with 'ypinit -m', but I guess that was not the trick I needed to update 
the maps.


So, now when I run 'ypcat passwd', I see something like this:
sam:*:1000:1001:Sam Genter:/home/sam:/usr/local/bin/bash

while I also see this: 'id sam'
uid=1000(sam) gid=1000(sam) groups=1000(sam), 100(users)

The difference is thus the gid.

I can find information about updating/pushing the maps onto slave 
servers, but not about getting changes into the maps on the sole nis 
server I have.


Cheers, Warren


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: configuring nis

2007-05-21 Thread WarrenHead

WarrenHead schreef:

Hi,

I have been having some trouble with getting NIS working on my freebsd 
server. Mainly because I have never before used this.


I now have it working, but there is an odd inconsistency which I don't 
know how to remove/update.


I changed the gid of a user with: 'pw usermod -n sam -g 1000', but this 
change is not reflected in the yp maps. I did recreate the maps again 
with 'ypinit -m', but I guess that was not the trick I needed to update 
the maps.


So, now when I run 'ypcat passwd', I see something like this:
sam:*:1000:1001:Sam Genter:/home/sam:/usr/local/bin/bash

while I also see this: 'id sam'
uid=1000(sam) gid=1000(sam) groups=1000(sam), 100(users)

The difference is thus the gid.

I can find information about updating/pushing the maps onto slave 
servers, but not about getting changes into the maps on the sole nis 
server I have.


Cheers, Warren




Oh and just running 'make -C /var/yp' doesn't solve it either.
This command is suggested here:
http://www.linux-nis.org/nis-howto/HOWTO/maps.html

Cheers, Warren

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: configuring nis

2007-05-21 Thread WarrenHead

Reid Linnemann schreef:

Written by WarrenHead on 05/21/07 15:34

Hi,

I have been having some trouble with getting NIS working on my freebsd 
server. Mainly because I have never before used this.


I now have it working, but there is an odd inconsistency which I don't 
know how to remove/update.


I changed the gid of a user with: 'pw usermod -n sam -g 1000', but 
this change is not reflected in the yp maps. I did recreate the maps 
again with 'ypinit -m', but I guess that was not the trick I needed to 
update the maps.


So, now when I run 'ypcat passwd', I see something like this:
sam:*:1000:1001:Sam Genter:/home/sam:/usr/local/bin/bash

while I also see this: 'id sam'
uid=1000(sam) gid=1000(sam) groups=1000(sam), 100(users)

The difference is thus the gid.

I can find information about updating/pushing the maps onto slave 
servers, but not about getting changes into the maps on the sole nis 
server I have.


Cheers, Warren



pw by default works on the local /etc/passwd, not the yp passwd 
database. I suggest reading about the -y option in the manpage:


-y path

This sets the pathname of the database used by NIS if you are not 
sharing the information from /etc/master.passwd directly with NIS. You 
should only set this option for NIS servers.




Ah ofcourse. I wasn't using the default /etc/master.passwd because that 
one contains way more users than I want to share among machines.

Thanks for the heads up!

Cheers, Warren
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


nxserver failing connection: NX 504 Session startup failed

2007-05-11 Thread WarrenHead

Hi list,

I have installed the nxserver (nx-0.33) from /usr/ports/devel/nx. 
(FreeBSD 6.2)


When I connect to it, it authenticates me succesfully. After that I get 
the following output:


NX 203 NXSSH running with pid: 7457
NX 285 Enabling check on switch command
NX 285 Enabling skip of SSH config files
NX 285 Setting the preferred NX options
NX 200 Connected to address: 192.168.179.12 on port: 22
NX 202 Authenticating user: nx
NX 208 Using auth method: publickey
HELLO NXSERVER - Version 1.4.0-44 OS (GPL)
NX 105 hello NXCLIENT - Version 1.4.0
NX 134 Accepted protocol: 1.4.0
NX 105 SET SHELL_MODE SHELL
NX 105 SET AUTH_MODE PASSWORD
NX 105 login
NX 101 User: warren
NX 102 Password:
NX 103 Welcome to: celeron2.lan user: warren
NX 105 listsession --user=warren --status=suspended,running 
--geometry=1280x1024x24+render --type=unix-default

NX 127 Sessions list of user 'warren' for reconnect:

Display Type Session ID   Options  Depth 
Screen Status  Session Name
---    - 
-- --- --



NX 148 Server capacity: not reached for user: warren
NX 105 startsession  --virtualdesktop=1 --link=lan 
--backingstore=1 --nodelay=1 --cache=8M --images=32M --media=0 
--session=toceleron2 --type=unix-default --cookie=** 
--geometry=1280x972 --kbtype=pc102/us --screeninfo=1280x972x24+render


NX 1000 NXNODE - Version 1.4.0-44 OS (GPL)
NX 700 Session id: celeron2.lan-1002-AF0824959F6914DA1141223C78B2AD40
NX 705 Session display: 1002
NX 703 Session type: unix-default
NX 701 Proxy cookie: 9adede47aa8d7e60301d092144e56ef3
NX 702 Proxy IP: 192.168.179.11
NX 706 Agent cookie: d40bc85822ba6778760cad69c2662cad
NX 704 Session cache: unix-default
NX 707 SSL tunneling: 0
/usr/X11R6/NX/bin/nxserver: line 1041: 16455 Terminated: 15  ( 
sleep $AGENT_STARTUP_TIMEOUT; exit 1 )

NX 504 Session startup failed.
NX 1004 Error: nxagent failed to start with: Unrecognized option: 1
NX 105 Killed by signal 15.

I am not sure whether it is complaining about a 1 coming from somewhere, 
 or that the 1 is simply the exit 1 variable.

In other words, I don't know how to continue.

By the way, I tried from 2 clients (ubuntu and windows) which both gave 
the same result, so I guess it is not simply the client's fault.


Any ideas?

Cheers, Warren
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


X/gnome through ssh, clashes with local gnome?

2007-04-30 Thread WarrenHead

Hi list,

I want to connect X from my Ubuntu machine to my local FreeBSD machine, 
through ssh.

Sofar ssh and X are working, but Gnome/GDM/Metacity seem to have issues.
I really wonder whether this has something to do with the fact that on 
Ubuntu I also have Gnome running.


Anyway, when I log into FreeBSD and start gnome-session, this is what I 
get on the console:


SESSION_MANAGER=local/celeron2.lan:/tmp/.ICE-unix/34272
Window manager warning: Screen 0 on display localhost:10.0 already has 
a window manager; try using the --replace option to replace the current 
window manager.
Window manager warning: Screen 0 on display localhost:10.0 already has 
a window manager; try using the --replace option to replace the current 
window manager.


** (gnome-panel:34290): WARNING **: Failed to authenticate with GDM
^C

What I see happening is an error window coming up on screen, saying that 
the Gnome-Settings daemon failed.


There was an error starting the GNOME Settings Daemon.

Some things, such as themes, sounds, or background settings may not work 
correctly.


The last error message was:

Process /usr/local/libexec/gnome-settings-daemon exited with status 1

GNOME will still try to restart the Settings Daemon next time you log in.

After that the standard gnome loading panel comes up in front of 
me(sometimes), loading 'The Panel' and such, after which I see my top 
Ubuntu gnome menubar change into the FreeBSD gnome menubar.
When I click on items in the top menubar I do see the FreeBSD 
menuoptions and I can start programs, but I still see my Ubuntu 
background, bottom menubar and Ubuntu programs running.


In other words, both gnome's seem to be working at the same time, but 
not very well together.


It's the first time I am working with remote X through SSH. RDP and VNC 
are the things I am more used to. So I am sorry if I am making stupid 
n00b mistakes, but yes, I am sure I am missing something totally obvious.
I do read (with Google) that there is confusion about XDMCP versus X 
through SSH. I definitely want only the latter and have not enabled 
XDMCP. (consciously)


So, what strikes me as very odd:
GDM is allowing tcp connections and I get gnome on screen, but the error 
message says that I could not be authenticated. UID problem? Username 
and password are the same.



Cheers, Warren
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


remote x forwarding through ssh

2007-04-25 Thread WarrenHead

Hi list,

I'm trying to use ssh to forward X from a local FreeBSD server to my 
ubuntu machine.

I'm unable to get X forwarded. (ssh is working)

I set these options:
ubuntu:
/etc/ssh/ssh_config
Host *
ForwardX11 yes
ForwardAgent yes

FreeBSD
/etc/ssh/sshd_config
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes
UseLogin no

I didn't set the $DISPLAY variable, on purpose.

After I log into the server and start xterm (for instance) I get this
message: DISPLAY is not set.
SSH should do that for me but I guess it doesn't.
I don't know why.

I logged into FreeBSD with these commands:
ssh -v freebsd
ssh -v -X freebsd
ssh -v -X -A freebsd

What could be the cause? Client or server?

Cheers, Warren

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


autostart nx server

2007-03-31 Thread WarrenHead

Hi,

I've got freenx working on my freebsd 6.1. I'm wondering though how I 
can make it autostart when the machine has been rebooted.
All the installation 'manuals' that I have found in personal blogs cover 
the exact same steps each time and nothing more. Unfortunately they 
don't cover this.
I have found the configuration file 
/usr/X11R6/NX/etc/nxserver/node.conf.sample
I edited this file and moved it to /etc/nxserver/node.conf and symlinked 
it to /usr/NX/etc/node.conf as the file suggested.

I feel that I am missing something though.

Cheers, Warren
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: nfs mount rw

2007-01-24 Thread WarrenHead

Vince schreef:

so not sure where you got that from.

  

Hi Vince,

Well, I got that from numerous man pages through google. One of the 
first ten results of 'man exports' was even a link to www.freebsd.org. 
But, now I see on the server that the man page there really is 
different. A difference then between linux and bsd I guess.

Shoudl be rw by default. who doesnt have writing access?
Should it be? Well, it isn't right now. My own user account under ubuntu 
doesn't have write access by default, nor does root.

 are the unix
permissions on both sides correct,
I'm not using nis (yet), so perhaps that is what is needed here? I never 
used nfs before, if that wasn't totally obvious. :-)
The exports syntax shown in the local man page is helping me out. The 
options are all working, -mapall is usefull, but what I really want is 
the 'rw by default' bit. So that each user can create files and get 
their own uid:gid accordingly.

If NIS is the answer here, I would not be surprised. Could it be?

Thanks, Warren
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]