Re: Enabling A Serial Port On 6.2
Tim Daneliuk wrote: System is FreeBSD 6.2-STABLE. I've added this to /etc/ttys: ttyd0 /usr/libexec/getty dial.115200unknown on insecure And this to gettytabs: dial.115200:\ :np:to#30:hw:sp#115200:pp=/etc/ppp/pppserv But when I 'kill -HUP 1' no getty process on ttyd0 shows up in the ps listing. I found (and fixed) what was causing this, but it is very strange and I am documenting here so others may avoid the pain. At the *end* of /etc/ttys the file, I put: ttyd0 /usr/libexec/getty dial.115200unknown on insecure But ... the entry did not end with a newline and init apparently thus didn't recognize it. Ending the line made everything happy. I am submitting this as a (very minor) bug, since I do not believe this to be correct behavior (but what do I know ;) ... Tim Daneliuk [EMAIL PROTECTED] PGP Key: http://www.tundraware.com/PGP/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
disaster - restore data from corrupted archive
Hello all, Today I destroyed /usr/home directory. I have a bzip2 dump backup of entire /usr directory (level0). But some of data in bzip2 file are corrupted. I verified it by bzip2 -vv. Finally, I used bzip2recover, I've decompressed about 800 files with no error message. Is there safe way to restore or extract /home directory?? Thank you for help... Lubos ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Adding a new command
On Sat, 7 Jul 2007 16:20:53 -0500 Jeffrey Goldberg wrote: On Jul 7, 2007, at 11:42 AM, Peter Boosten wrote: It's more obvious to put local scripts in /usr/local/bin, IMHO. Let me add to this (as someone who recently moved from linux to FreeBSD). Unlike Linux, FreeBSD isn't just a kernel, but a complete operating system. So the things in /bin and /usr/bin are as fully part of FreeBSD as the kernel itself, while on Linux distributions, those things are bundled with Linux as part of a distribution. So this is one reason why it is best to put tools like you describe in /usr/local/sbin My preference for such local scripts that ought not be confused with any system (or local port) scripts is to put them in /root/bin .. no chance of any sort of upgrade clobbering them there, and your own scripts are all together. You need to specify full path for any of these where used in a crontab, but that's good practice anyway. If you're using [t]csh, as Lisa appears to be (needing to run 'rehash' to find newly added commands), $HOME/bin is already in the default path. Cheers, Ian ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Correct way to use dump to backup a Samba share
On Sat, Jul 07, 2007 at 06:42:20PM -0700, L Goodwin wrote: I have a Samba share on a software RAID 1 array (using gmirror) that I need to backup. I want to create a shell script that does a level 0 backup every time to (alternately) one of two USB drives. I plan to have only ONE USB drive connected at a time. I want the script to mount the drive, perform the backup, then unmount the drive so that it is ready for someone who knows zip about computers to safely remove and take offsite. Here are the steps I have for the script. Is this all I need to do? Do I need any error handling logic? THANKS! # Mount the backup drive: mount /dev/usb0 # Create the backup: /sbin/dump -0u -f /dev/usb0 /sambavol # Unmount the backup drive: umount /dev/usb0 The following is a rough outline of what you should do; -- shell-script -- #!/bin/sh # The following assumes that the USB mass-storage device is formatted # with a UFS filesystem # Only root can perform dumps. if [ $(id -u) -ne 0 ]; then echo Only root can perform dumps. Exiting. exit 1 fi DDIR=/mnt/root # First, check if the target directory exists if [ ! -d $DDIR ]; then echo The $DDIR directory doesn't exist. Exiting. exit 1 fi # Then check if it is already mounted if mount|grep $DDDIR /dev/null; then echo The $DDIR directory is already in use. Exiting exit 1 fi # Check if the device to dump to exists; DEV=/dev/da0 if [ ! -c $DEV ]; then echo The $DEV device doesn't exist. Exiting. exit 1 fi # Check if the device is already mounted if mount|grep $DEV /dev/null; then echo The $DEV device is already mounted. Exiting exit 1 fi SRC=/sambavol DFLAGS=-0 -u -f # Check if the filesystem that is to be dumped exists. if [ ! -d $SRC ]; then echo The $SRC directory doesn't exist. Exiting. exit 1 fi # Now check if it is mounted if mount -t ufs|grep $SRC; then DFLAGS=-L $DFLAGS fi # Mount the USB device. if ! mount $DEV $DDIR; then Mounting the USB disk failed. Exiting exit 1 fi DATE=$(date +%Y%m%d) # Perfrom the dump, assuming that the filesystem is live. dump $DFLAGS ${DDIR}/sambavol-0-${DATE}.dump $SRC umount $DDIR -- shell-script -- Of course, you have to remove old dumps once in a while, lest you run out of disk space. Depending on the contents of the samba share, it might be worthwhile to compress the dump with gzip; # Perfrom the dump, dump $DFLAGS - $SRC|gzip ${DDIR}/sambavol-0-${DATE}.gz Roland -- R.F.Smith http://www.xs4all.nl/~rsmith/ [plain text _non-HTML_ PGP/GnuPG encrypted/signed email much appreciated] pgp: 1A2B 477F 9970 BA3C 2914 B7CE 1277 EFB0 C321 A725 (KeyID: C321A725) pgpvIWffXtpp5.pgp Description: PGP signature
Re: passwd file and user accounts
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 7/7/07, Lisa Casey wrote: I suppose I cannot simply copy /etc/passwd, /etc/group and /home from the Redhat computer to the FreeBSD computer due to the password hash in /etc/passwd. Am I correct on this? Would it be possible to copy /etc/passwd then (before the new system goes live) reset all the passwords with the passwd command? That might be easier than adding in close to 700 accounts using adduser. Does anyone have a better idea of how I might go about doing this? The other answers to your question are more informative, but I just thought I'd point out the chpass command. I no longer have access to the script I wrote before, but it wasn't difficult. I just wrote a little script that read the passwd and shadow files, ignored the system accounts, and then constructed a valid line for the master.passwd file, then just fed it to the system with chpass -a $new_entry - -- Andy Harrison public key: 0x67518262 -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: http://firegpg.tuxfamily.org iD8DBQFGkMryNTm8fWdRgmIRAl7+AJ0SHBQGrtESAgj3uAyCvj0y57fReACgw5po Ueuco3rkR/VseXPMqOjzb+4= =d8g0 -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Build Failure: claws-mail-etpan_privacy-0.15.5_8
I just installed the newest version of Claws-Mail. When attempting to install claws-mail-etpan_privacy-0.15.5_8, the build fails. Other add-ons for claws-mail install just fine. I have run the gauntlet of make clean, deleted the '/usr/ports/distfiles' files and fetched fresh copies, etc; however, nothing works. The following is a copy of the build log. Script started on Sun Jul 8 07:37:23 2007 === Extracting for claws-mail-etpan_privacy-0.15.5_8 = MD5 Checksum OK for etpan-privacy-0.15.5.tar.gz. = SHA256 Checksum OK for etpan-privacy-0.15.5.tar.gz. === Patching for claws-mail-etpan_privacy-0.15.5_8 === claws-mail-etpan_privacy-0.15.5_8 depends on package: claws-mail=2.6 - found === claws-mail-etpan_privacy-0.15.5_8 depends on executable in : gmake - found === claws-mail-etpan_privacy-0.15.5_8 depends on file: /usr/local/bin/autoconf259 - found === claws-mail-etpan_privacy-0.15.5_8 depends on file: /usr/local/libdata/xorg/libraries - found === Configuring for claws-mail-etpan_privacy-0.15.5_8 configure: WARNING: you should use --build, --host, --target checking whether to enable maintainer-specific portions of Makefiles... no checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel checking whether build environment is sane... yes checking for gawk... no checking for mawk... no checking for nawk... nawk checking whether gmake sets $(MAKE)... yes checking for i386-portbld-freebsd6.2-gcc... /usr/local/bin/gcc41 checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether /usr/local/bin/gcc41 accepts -g... yes checking for /usr/local/bin/gcc41 option to accept ANSI C... none needed checking for style of include used by gmake... GNU checking dependency style of /usr/local/bin/gcc41... gcc3 checking for library containing strerror... none required checking for i386-portbld-freebsd6.2-gcc... (cached) /usr/local/bin/gcc41 checking whether we are using the GNU C compiler... (cached) yes checking whether /usr/local/bin/gcc41 accepts -g... (cached) yes checking for /usr/local/bin/gcc41 option to accept ANSI C... (cached) none needed checking dependency style of /usr/local/bin/gcc41... (cached) gcc3 checking for a BSD-compatible install... /usr/bin/install -c -o root -g wheel checking how to run the C preprocessor... /usr/local/bin/gcc41 -E checking build system type... i386-portbld-freebsd6.2 checking host system type... i386-portbld-freebsd6.2 checking for a sed that does not truncate output... /usr/bin/sed checking for egrep... grep -E checking for ld used by /usr/local/bin/gcc41... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for /usr/bin/ld option to reload object files... -r checking for BSD-compatible nm... /usr/bin/nm -B checking whether ln -s works... yes checking how to recognise dependent libraries... pass_all checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking dlfcn.h usability... yes checking dlfcn.h presence... yes checking for dlfcn.h... yes checking for i386-portbld-freebsd6.2-g++... c++ checking whether we are using the GNU C++ compiler... yes checking whether c++ accepts -g... yes checking dependency style of c++... gcc3 checking how to run the C++ preprocessor... c++ -E checking for i386-portbld-freebsd6.2-g77... no checking for i386-portbld-freebsd6.2-f77... no checking for i386-portbld-freebsd6.2-xlf... no checking for i386-portbld-freebsd6.2-frt... no checking for i386-portbld-freebsd6.2-pgf77... no checking for i386-portbld-freebsd6.2-fort77... no checking for i386-portbld-freebsd6.2-fl32... no checking for i386-portbld-freebsd6.2-af77... no checking for i386-portbld-freebsd6.2-f90... no checking for i386-portbld-freebsd6.2-xlf90... no checking for i386-portbld-freebsd6.2-pgf90... no checking for i386-portbld-freebsd6.2-epcf90... no checking for i386-portbld-freebsd6.2-f95... no checking for i386-portbld-freebsd6.2-fort... no checking for i386-portbld-freebsd6.2-xlf95... no checking for i386-portbld-freebsd6.2-ifc... no checking for i386-portbld-freebsd6.2-efc... no checking for i386-portbld-freebsd6.2-pgf95... no checking for i386-portbld-freebsd6.2-lf95... no checking for i386-portbld-freebsd6.2-gfortran... no checking for g77... no checking for f77... f77 checking whether we are using the GNU Fortran 77 compiler... yes checking whether f77 accepts -g... yes checking the maximum length of command line arguments... (cached) 262144 checking command to parse /usr/bin/nm -B output from /usr/local/bin/gcc41 object... ok checking for
Re: Enabling A Serial Port On 6.2
Tim Daneliuk [EMAIL PROTECTED] writes: But ... the entry did not end with a newline and init apparently thus didn't recognize it. Ending the line made everything happy. I am submitting this as a (very minor) bug, since I do not believe this to be correct behavior (but what do I know ;) ... That's perfectly normal and age-old behaviour. Part of the definition of a line of text is that it ends in a newline... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Crypto missing after FreeBSD-Update to 6.2-RELEASE
Hello, I've been using freebsd-update for some time now and it's been fantastic. I recently used Colin's upgrade script[1] to upgrade to 6.2-RELEASE, but it seems that the crypto distribution is now missing from my system. With previous versions of freebsd-update I would have used --branch, but later versions this option is omitted. What's the safest way to get freebsd-update to recognise that I need the crypto libraries and install them? PS On a side note, what happened to the IDS option? I'd like to use it to exclude files in a backup script. If you have a suggestion for nice alternative, please let me know :-) Many thanks, Matt [1] http://www.daemonology.net/blog/2006-11-26-freebsd-6.1-to-6.2-binary-upgrade.html ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Enabling A Serial Port On 6.2
Lowell Gilbert wrote: Tim Daneliuk [EMAIL PROTECTED] writes: But ... the entry did not end with a newline and init apparently thus didn't recognize it. Ending the line made everything happy. I am submitting this as a (very minor) bug, since I do not believe this to be correct behavior (but what do I know ;) ... That's perfectly normal and age-old behaviour. Part of the definition of a line of text is that it ends in a newline... Hmm - while I acknowledge that I've seen this problem before (I've used some variant of Unix since the late 1970s and FreeBSD since 2.x), whether it is perfectly normal is arguable. I suspect that there are a great many places - shell scripts and C source code leap to mind - where the lack of a terminating newline at the end of a file does not cause the line to be ignored altogether. I rather think this is an age-old bug that never got fixed because of its minor importance. In any case, i've authored a PR to make note of it. If I ever get the time, I'll dig into the source myself and see if I can figure out where the wheels are coming off... -- Tim Daneliuk [EMAIL PROTECTED] PGP Key: http://www.tundraware.com/PGP/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
problem installing patch for php 5.2.3
Hello, I can not install php5.2.3 : make install === Found saved configuration for php5-5.2.3 === Extracting for php5-5.2.3 = MD5 Checksum OK for php-5.2.3.tar.bz2. = SHA256 Checksum OK for php-5.2.3.tar.bz2. === Patching for php5-5.2.3 === Applying FreeBSD patches for php5-5.2.3 2 out of 2 hunks failed--saving rejects to ext/standard/dir.c.rej = Patch patch-ext_standard_dir.c failed to apply cleanly. = Patch(es) patch-TSRM_threads.m4 patch-Zend::zend.h patch-acinclude.m4 patch-configure.in patch-ext_date_lib_timelib_structs.h patch-ext_standard_array.c patch-ext_standard_basic_functions.c applied cleanly. I only configured the apache module. Thank you for any help Marc ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
non-interactive dump
Hello guys, quick question.. Is there a way to tell dump to do it's working without it asking Is the new volume mounted and ready to go?: (yes or no) everytime it changes mount points? For example: solara# dump -0L -f /dev/da1 / DUMP: Date of this level 0 dump: Mon Jul 9 02:17:40 2007 DUMP: Date of last level 0 dump: the epoch DUMP: Dumping snapshot of /dev/da0s1a (/) to /dev/da1 DUMP: mapping (Pass I) [regular files] DUMP: mapping (Pass II) [directories] DUMP: estimated 288357 tape blocks on 7.42 tape(s). DUMP: dumping (Pass III) [directories] DUMP: dumping (Pass IV) [regular files] DUMP: Closing /dev/da1 DUMP: Change Volumes: Mount volume #2 DUMP: Is the new volume mounted and ready to go?: (yes or no) yes DUMP: Volume 2 begins with blocks from inode 33729 DUMP: Closing /dev/da1 DUMP: Change Volumes: Mount volume #3 DUMP: Is the new volume mounted and ready to go?: (yes or no) yes DUMP: Volume 3 begins with blocks from inode 49969 DUMP: Closing /dev/da1 DUMP: Change Volumes: Mount volume #4 DUMP: Is the new volume mounted and ready to go?: (yes or no) yes DUMP: Volume 4 begins with blocks from inode 50225 DUMP: 39.89% done, finished in 0:01 at Mon Jul 9 02:25:01 2007 DUMP: Closing /dev/da1 DUMP: Change Volumes: Mount volume #5 DUMP: Is the new volume mounted and ready to go?: (yes or no) yes DUMP: Volume 5 begins with blocks from inode 50225 DUMP: Closing /dev/da1 DUMP: Change Volumes: Mount volume #6 DUMP: Is the new volume mounted and ready to go?: (yes or no) yes DUMP: Volume 6 begins with blocks from inode 50225 DUMP: Closing /dev/da1 DUMP: Change Volumes: Mount volume #7 DUMP: Is the new volume mounted and ready to go?: (yes or no) yes DUMP: Volume 7 begins with blocks from inode 50225 DUMP: Closing /dev/da1 DUMP: Change Volumes: Mount volume #8 DUMP: Is the new volume mounted and ready to go?: (yes or no) yes DUMP: Volume 8 begins with blocks from inode 50225 DUMP: DUMP: 289411 tape blocks on 8 volumes DUMP: finished in 180 seconds, throughput 1607 KBytes/sec DUMP: Closing /dev/da1 DUMP: DUMP IS DONE Dump requires that I key in yes everytime it changes mount volumes.. is there a way to just get it to continue without user intervention? TIA. -- Regards, Dinesh Pandian, SOLARA Networks. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: NTFS-3G: mount at boot
Okay, here's an update: Creating a symlink from /usr/local/bin/ntfs-3g to /sbin/mount_ntfs-3g does not work (as posted before on the ntfs-3g forum message below). I, then, added the following ntfsmount startup script to /usr/local/etc/rc.d/: -- #!/bin/sh # # PROVIDE: ntfsmount # REQUIRE: fusefs . /etc/rc.subr name=ntfsmount rcvar=`set_rcvar` command=ntfs-3g /dev/ad0s1 /mnt/windows ntfs-3g /dev/ad0s1 /mnt/windows -o locale=en_US.UTF-8 load_rc_config $name run_rc_command $1 -- Then, chmod +x /usr/local/etc/rc.d/ntfsmount (to make it executable), then added ntfsmount_enable=YES to my /etc/rc.conf, then rebooted. I did not see any error messages during boot, but the partition was not mounted ('mount' returns nothing after logging in). However, if I run 'ntfs-3g' again from the command prompt to mount the windows partition, 'mount' now shows /mnt/windows THREE times, like /dev/fuse1 on /mnt/windows (fusefs, local, noatime, synchronous) /dev/fuse3 on /mnt/windows (fusefs, local, noatime, synchronous) /dev/fuse5 on /mnt/windows (fusefs, local, noatime, synchronous) and 'ls /dev/f*' returns /dev/fuse0 /dev/fuse1 /dev/fuse2 /dev/fuse3 /dev/fuse4 /dev/fuse5 It seems that since the 'ntfs-3g' command ran twice in the ntfsmount script, running 'ntfs-3g' again from the command prompt makes the third mount point. But if its two runs in the startup script were successful, why would 'mount' not show the mount points until I run it again from the command prompt? I even tried removing one of the 'ntfs-3g' commands in the ntfsmount script, i.e. -- command=ntfs-3g /dev/ad0s1 /mnt/windows -o locale=en_US.UTF-8 -- Rebooting with this, still 'mount' shows nothing after logging in. However, if I run 'ntfs-3g' from the command prompt now, I get TWO /mnt/windows mount points (instead of three). So it seems the all the runs in the script are successful and the partition is mounted, but the mount point is not available until I run 'ntfs-3g' again from the command prompt. I am using fusefs-kmod-0.3.0_5 fusefs-libs-2.6.4 fusefs-ntfs-1.417_2 Any ideas what's going on here? Thanks :) On 7/7/07, Novembre [EMAIL PROTECTED] wrote: I have the same problem. A little search got me to http://forum.ntfs-3g.org/viewtopic.php?t=292 where a solution is posted. It seems that using /etc/fstab to mount the NTFS partition at boot time is not working since the mount command is being executed before the 'fuse' kernel module is loaded. However, on my 6.2-RELEASE machine, I see the following message when booting: -- Starting file system checks: /dev/ad0s2a: FILE SYSTEM CLEAN; SKIPPING CHECKS /dev/ad0s2d: FILE SYSTEM CLEAN; SKIPPING CHECKS Mounting local file systems:mount: exec mount_ntfs-3g not found in /sbin:/usr/sbin: No such file or directory . . . Starting fusefs. fude4bsd: version 0.3.0, FUSE ABI 7.8 . . . Mounting late file systems:mount: exec mount_ntfs-3g not found in /sbin:/usr/sbin: No such file or directory -- I'm assuming that this late mount (the last line above) is being done after loading the 'fuse' kernel module, so the OS should be able to mount the file system now, but it can't! It's looking for mount_ntfs-3g and that file does not exist. My /etc/fstab looks like this: /dev/ad0s1 /mnt/windows ntfs-3g rw 0 0 I also used the /etc/fstab entry suggested in NTFS-3G's own website ( http://www.ntfs-3g.org/ - scroll down to the end of the page), where defaults is being used instead of rw, but that gave me this error: -- swapon: adding /dev/ad0s2b as swap device fstab: /etc/fstab:6: Inappropriate file type or format Starting file system checks: /dev/ad0s2a: FILE SYSTEM CLEAN; SKIPPING CHECKS fstab: /etc/fstab:6: Inappropriate file type or format fstab: /etc/fstab:6: Inappropriate file type or format /dev/ad0s2d: FILE SYSTEM CLEAN; SKIPPING CHECKS Mounting local file systems:fstab: /etc/fstab:6: Inappropriate file type or format Mounting NFS file systems:fstab: /etc/fstab:6: Inappropriate file type or format fstab: /etc/fstab:6: Inappropriate file type or format fstab: /etc/fstab:6: Inappropriate file type or format fstab: /etc/fstab:6: Inappropriate file type or format fstab: /etc/fstab:6: Inappropriate file type or format . . . Starting fusefs. fude4bsd: version 0.3.0, FUSE ABI 7.8 . . . Mounting late file systems:fstab: /etc/fstab:6: Inappropriate file type or format -- Any ideas as to what's going on here? Thanks a lot ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
FreeBSD 6.2 default bind9, question about customize logging [re-post]
I am using FreeBSD 6.2 with the default bind (not ports). By default chroot is used. When named start or stop, it does have log in /var/log/messages. But for example, when some do domain transfer successfully, that is not logged (zone transfer denied is logged). So I tried to add this part in named.conf (enabled local0.* in syslog.conf) , but still no luck. Any suggestions? logging { channel named-log { //syslog daemon; syslog local0; severity info; print-category yes; }; category default { named-log; }; category xfer-in { named-log; }; category xfer-out { named-log; }; category unmatched { null; }; }; Thanks Patrick Be a better Heartthrob. Get better relationship answers from someone who knows. Yahoo! Answers - Check it out. http://answers.yahoo.com/dir/?link=listsid=396545433 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Adding a new command
Lisa I just went through the same migration about a month ago. Here some things that may help. 1. As far as the location of custom scripts go. I would make your own location. Either /opt/companyname/bin sbin etc. or /usr/local/companyname/bin sbin and etc. This type of setup makes it very easier to tar a single directory and move it to another server. 2.Edit the /etc/bash_profile, /etc/profile, /etc/csh.cshc or other global shell config files, and make sure your custom binary directories are in everyones path by default. 3. Don't fight it. Symlink /bin/bash to /usr/local/bin/bash. There is nothing wrong with doing this, and will save you a headache when things start to break. 4. Fix your custom scripts. The /bin/bash should have already been taken care of via the symlink. Another useful thing you may want to do is go through all your shell scripts and fix paths. A lot of my scripts start with a bunch of lines that look like: awk=`which awk` perl=`which perl` rather then hard coding the path. This can be helpful, but be careful as it allows users to hijack your scripts.. Ie: in the above scenario I could create a script in my homedir called awk, and put my homedir in the beginning of my path. 5. Test you scripts extensively. GNU tools are not the same as BSD's. Many commands such as cp, rm, sed, and others can have very different results on both systems. Read the man pages to make sure the flags your are passing to these commands are doing what you want them to do. 6. Get used to using unlink in place of rm. I linux you can safely rm -rf a symlink. In BSD depending on if you end the command with a slash, you could wipe out the the actual contents. Lisa Casey wrote: Hi, Once I get this new system going I promise I'll quit pestering you folks :-) Got another question. This should be simple to answer. I've done this before but can't seem to replicate it this morning. I have a few scripts my employees use to do things such as add a new radius user, restart the radius server and tail the radius log file. The most simple one is radlog. The file radlog contains the line: tail -f /var/log/radius.log I need to be able to type radlog from anywhere on the system and have it work. I put the file radlog in /bin (/bin and /sbin are all in my shell's path). Ownership is root/wheel permissions are 555 (I've tried 700 and 777 - these don't need write access though). But when I type radlog I get command not found. I can type ./bin/radlog and it works but I don't want that. I thought if the file was in my path and if it was executable just typing the name of the file from anywhere would work but evidently I'm overlooking something. What? Thanks, Lisa Casey ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: skype question
On Thu, 5 Jul 2007 12:33:09 +0300 Vladimir Tsvetkov [EMAIL PROTECTED] wrote: Try stopping all sound reproducing programs and start your skype session when the sound device is not busy and gets free. or simply increase the number of apps that can access your sound card simultaneously : as root (or sudo): sysctl hw.snd.maxautovchans = [NUMBER_OF_APPS]. thanks... that didn;t work. under options in skype the Ringing device is still dimmed and that was never a problem in 6 - just upgraded to 6.2. if i didn;t run anything else - like mplayer, xmms, etc - the skype worked fine. now when i run nothing but skype i still can hear the ring or what people are saying to me I have 8 on mine (Intel HDA) and it works fine. You can set this in /etc/sysctl.conf so it's reset on startup to your new value. On 05/07/07, kalin mintchev [EMAIL PROTECTED] wrote: hi all.. got skype installed. can't get sound of off it. when i talk people hear me but i can;t hear rings. sound works fine otherwise - i can listen stuff with xmms. in the skype options for hand/headsets the Ringing points to /dev/dsp same as Calls one but the one for ringing is dimmed and i can;t use the pulldown... This is normal. _ {Beto|Norberto|Numard} Meijome Too bad ignorance isn't painful. Don Lindsay I speak for myself, not my employer. Contents may be hot. Slippery when wet. Reading disclaimers makes you go blind. Writing them is worse. You have been Warned. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: passwd file and user accounts
I didn't have as many accounts so I didn't even bother migrating them. I add all my new accounts using pw rather then adduser. It is much easier to script with this then adduser. My first approach would be the following: 1. add one account to freebsd. 2. Using chsh or vipw, copy the redhat password hash into the account, and see if the password works as is. If I remember correctly I think they do. 3. See if you have any accounts on your freebsd with a user or group higher then 500. 4. Write a quick script to create the new user accounts. Make sure you installed shells/bash. Should be simple enough using awk or cut. I would keep the existing values from the linux passwd/shadow files, just make them properly formatted for bsd. Keeping the old uid numbers where possible is much less labor intensive then giving the users a new uid. pw will let you script this easily too if you do not want to manually edit the password files. If you create new uid's you will have to do a find across the entire system and chown chgrp all your files for 700 users. If you do choose to manually edit the password files, make sure to backup and rebuild the hash properly with pwd_mkdb. Lisa Casey wrote: Hi, This is probably a stupid question, but I'll ask it anyway... I have a Red Hat Linux system I need to get rid of. It is currently doing e-mail for approximately 700 users and is also doing radius authentication. I have setup a new FreeBSD computer to take it's place. I have everything setup now on the FreeBSD computer except for the user accounts and mailboxes. The mailboxes aren't a problem, I've used tar to move mailboxes before. I suppose I cannot simply copy /etc/passwd, /etc/group and /home from the Redhat computer to the FreeBSD computer due to the password hash in /etc/passwd. Am I correct on this? Would it be possible to copy /etc/passwd then (before the new system goes live) reset all the passwords with the passwd command? That might be easier than adding in close to 700 accounts using adduser. Does anyone have a better idea of how I might go about doing this? Thanks, Lisa Casey ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: non-interactive dump
In the last episode (Jul 09), Dinesh Pandian said: Hello guys, quick question.. Is there a way to tell dump to do it's working without it asking Is the new volume mounted and ready to go?: (yes or no) everytime it changes mount points? How else can it tell when you've swapped in new media? If it automatically continued it would just overwrite the previous segment. I'm assuming you're dumping to some removable media, like multiple USB hard drives or something, that you plug in one at a time? -- Dan Nelson [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
updating from I386 architecture to AMD64 on -Current
Hi lists, I had tp reinstall my AMD box and the only version available was the -Current snapshot of April architecture I386. Wouldnt be a problem I thought, just install I386 and rebuild world/kernel for AMD64. So I did the following for crossbuilds. #chflags -R noschg /usr/obj #rm -rf /usr/obj #cd /usr/src #make cleandir #make cleandir #make TARGET=amd64 TARGET_ARCH=amd64 -j8 buildworld #make TARGET=amd64 TARGET_ARCH=amd64 -j8 buildkernel Until that moment everything is looking great. When I try to install the world/kernel however the 'problem' starts. hulk# make TARGET=amd64 TARGET_ARCH=amd64 -j8 installkernel ERROR: Please set DESTDIR! *** Error code 1 1 error *** Error code 2 1 error Can someone point the obvious out for me, cause it seems that I am missing something really simple... Thanks Patrick ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
trouble with some startup items
ive been trying to figure out this problem for a while now. i have 2 things that are having trouble starting. apcupsd and samba. i recently noticed, that during start up, they are printed more than once to the console (and to my /var/log/console.log. here is the output of my most recent reboot: Jul 8 15:24:05 athena kernel: Starting syslogd. Jul 8 15:24:05 athena kernel: Initial i386 initialization: Jul 8 15:24:05 athena kernel: . Jul 8 15:24:05 athena kernel: Additional ABI support: Jul 8 15:24:05 athena kernel: linux Jul 8 15:24:07 athena kernel: . Jul 8 15:24:07 athena kernel: Setting date via ntp. Jul 8 15:24:09 athena kernel: 8 Jul 15:24:09 ntpdate[609]: step time server 24.162.39.167 offset 1.666967 sec Jul 8 15:24:09 athena kernel: Starting rpcbind. Jul 8 15:24:09 athena kernel: NFS access cache time=60 Jul 8 15:24:09 athena kernel: Starting mountd. Jul 8 15:24:09 athena kernel: Starting nfsd. Jul 8 15:24:09 athena kernel: Starting apcupsd. Jul 8 15:24:09 athena kernel: Starting apcupsd. Jul 8 15:24:09 athena kernel: Starting local daemons: Jul 8 15:24:09 athena kernel: . Jul 8 15:24:09 athena kernel: Updating motd Jul 8 15:24:09 athena kernel: . Jul 8 15:24:09 athena kernel: Mounting late file systems: Jul 8 15:24:09 athena kernel: . Jul 8 15:24:09 athena kernel: Starting ntpd. Jul 8 15:24:09 athena kernel: Starting usbd. Jul 8 15:24:10 athena kernel: Starting cupsd. Jul 8 15:24:10 athena kernel: Starting cupsd. Jul 8 15:24:10 athena kernel: Removing stale Samba tdb files: Jul 8 15:24:10 athena kernel: . Jul 8 15:24:10 athena last message repeated 7 times Jul 8 15:24:10 athena kernel: done Jul 8 15:24:10 athena kernel: Starting nmbd. Jul 8 15:24:10 athena kernel: Starting smbd. Jul 8 15:24:11 athena kernel: Removing stale Samba tdb files: Jul 8 15:24:11 athena kernel: . Jul 8 15:24:11 athena last message repeated 5 times Jul 8 15:24:11 athena kernel: done Jul 8 15:24:11 athena kernel: Starting nmbd. Jul 8 15:24:11 athena kernel: Starting smbd. Jul 8 15:24:11 athena kernel: Starting snmpd. Jul 8 15:24:11 athena kernel: Starting snmpd. Jul 8 15:24:11 athena kernel: Configuring syscons: Jul 8 15:24:11 athena kernel: blanktime Jul 8 15:24:11 athena kernel: . Jul 8 15:24:11 athena kernel: Starting sshd. Jul 8 15:24:12 athena kernel: Starting cron. Jul 8 15:24:12 athena kernel: Local package initialization: Jul 8 15:24:12 athena kernel: . Jul 8 15:24:12 athena kernel: Additional TCP options: Jul 8 15:24:12 athena kernel: . Jul 8 15:24:12 athena kernel: Starting inetd. Jul 8 15:24:12 athena kernel: Starting background file system checks in 60 seconds. Jul 8 15:24:12 athena kernel: Jul 8 15:24:12 athena kernel: Sun Jul 8 15:24:12 CDT 2007 Jul 8 15:24:19 athena kernel: Jul 8 15:24:19 athena apcupsd[689]: apcupsd FATAL ERROR in bsd-usb.c at line 711 Cannot find UPS device -- For a link to detailed USB trouble shooting information, please see http://www.apcupsd.com/support.html. Jul 8 15:24:19 athena kernel: Jul 8 15:24:19 athena apcupsd[689]: Valid lock file for pid=685, but not ours pid=689 Jul 8 15:24:19 athena kernel: Jul 8 15:24:19 athena apcupsd[689]: apcupsd error shutdown completed also, here is my /etc/rc.conf file. ive double checked it, and these items arent listed twice (not even sure if that would matter if it were). # -- sysinstall generated deltas -- # Fri Jun 16 12:58:58 2006 # Created: Fri Jun 16 12:58:58 2006 # Enable network daemons for user convenience. # Please make all changes to this file, not to /etc/defaults/rc.conf. # This file now contains just the overrides from /etc/defaults/rc.conf. hostname=athena.dfwlp.com ifconfig_bge0=DHCP devfs_system_ruleset=localrules sshd_enable=YES usbd_enable=YES ntpdate_enable=YES ntpdate_hosts=0.us.pool.ntp.org snmpd_enable=YES inetd_enable=YES inetd_flags=-wW -a 192.168.125.83 ntpd_enable=YES linux_enable=YES rpcbind_enable=YES nfs_server_enable=YES mountd_flags=-r nfs_client_enable=YES # vsftpd_enable=YES cupsd_enable=YES samba_enable=YES apcupsd_enable=YES can anyone give me any guesses as to where i need to take a look as to what could be attempting the 2nd starts of these 2 items? also, simply restarting apcupsd will fail, but if i killall apcupsd then start it fresh, it works for the duration of my uptime (somehow the pid that stays running gets disassociated from the pid file). samba is similar behavior. my windows computer cannot access the samba, until it is restarted (samba restarts normally without any troubles). any clues at all, would be appreciated. cheers, -- Jonathan Horne http://dfwlpiki.dfwlp.org [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: updating from I386 architecture to AMD64 on -Current
Gelsema, P (Patrick) wrote: Hi lists, I had tp reinstall my AMD box and the only version available was the -Current snapshot of April architecture I386. Wouldnt be a problem I thought, just install I386 and rebuild world/kernel for AMD64. So I did the following for crossbuilds. #chflags -R noschg /usr/obj #rm -rf /usr/obj #cd /usr/src #make cleandir #make cleandir #make TARGET=amd64 TARGET_ARCH=amd64 -j8 buildworld #make TARGET=amd64 TARGET_ARCH=amd64 -j8 buildkernel Until that moment everything is looking great. When I try to install the world/kernel however the 'problem' starts. hulk# make TARGET=amd64 TARGET_ARCH=amd64 -j8 installkernel ERROR: Please set DESTDIR! *** Error code 1 1 error *** Error code 2 1 error Can someone point the obvious out for me, cause it seems that I am missing something really simple... Thanks Patrick This has been brought up a few times. It's by far much more difficult to do an in-place upgrade from i386 - amd64, than it is to just install amd64 from scratch. Scrounge around the questions@ archives (in particular over the last week or so) for more discussion/details. -Garrett ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: trouble with some startup items
On Sun, Jul 08, 2007 at 03:37:10PM -0500, Jonathan Horne wrote: ive been trying to figure out this problem for a while now. i have 2 things that are having trouble starting. apcupsd and samba. i recently noticed, that during start up, they are printed more than once to the console (and to my /var/log/console.log. here is the output of my most recent reboot: Jul 8 15:24:05 athena kernel: Starting syslogd. Jul 8 15:24:05 athena kernel: Initial i386 initialization: Jul 8 15:24:05 athena kernel: . Jul 8 15:24:05 athena kernel: Additional ABI support: Jul 8 15:24:05 athena kernel: linux Jul 8 15:24:07 athena kernel: . Jul 8 15:24:07 athena kernel: Setting date via ntp. Jul 8 15:24:09 athena kernel: 8 Jul 15:24:09 ntpdate[609]: step time server 24.162.39.167 offset 1.666967 sec Jul 8 15:24:09 athena kernel: Starting rpcbind. Jul 8 15:24:09 athena kernel: NFS access cache time=60 Jul 8 15:24:09 athena kernel: Starting mountd. Jul 8 15:24:09 athena kernel: Starting nfsd. Jul 8 15:24:09 athena kernel: Starting apcupsd. Jul 8 15:24:09 athena kernel: Starting apcupsd. Jul 8 15:24:09 athena kernel: Starting local daemons: Jul 8 15:24:09 athena kernel: . Jul 8 15:24:09 athena kernel: Updating motd Jul 8 15:24:09 athena kernel: . Jul 8 15:24:09 athena kernel: Mounting late file systems: Jul 8 15:24:09 athena kernel: . Jul 8 15:24:09 athena kernel: Starting ntpd. Jul 8 15:24:09 athena kernel: Starting usbd. Jul 8 15:24:10 athena kernel: Starting cupsd. Jul 8 15:24:10 athena kernel: Starting cupsd. Jul 8 15:24:10 athena kernel: Removing stale Samba tdb files: Jul 8 15:24:10 athena kernel: . Jul 8 15:24:10 athena last message repeated 7 times Jul 8 15:24:10 athena kernel: done Jul 8 15:24:10 athena kernel: Starting nmbd. Jul 8 15:24:10 athena kernel: Starting smbd. Jul 8 15:24:11 athena kernel: Removing stale Samba tdb files: Jul 8 15:24:11 athena kernel: . Jul 8 15:24:11 athena last message repeated 5 times Jul 8 15:24:11 athena kernel: done Jul 8 15:24:11 athena kernel: Starting nmbd. Jul 8 15:24:11 athena kernel: Starting smbd. Jul 8 15:24:11 athena kernel: Starting snmpd. Jul 8 15:24:11 athena kernel: Starting snmpd. Jul 8 15:24:11 athena kernel: Configuring syscons: Jul 8 15:24:11 athena kernel: blanktime Jul 8 15:24:11 athena kernel: . Jul 8 15:24:11 athena kernel: Starting sshd. Jul 8 15:24:12 athena kernel: Starting cron. Jul 8 15:24:12 athena kernel: Local package initialization: Jul 8 15:24:12 athena kernel: . Jul 8 15:24:12 athena kernel: Additional TCP options: Jul 8 15:24:12 athena kernel: . Jul 8 15:24:12 athena kernel: Starting inetd. Jul 8 15:24:12 athena kernel: Starting background file system checks in 60 seconds. Jul 8 15:24:12 athena kernel: Jul 8 15:24:12 athena kernel: Sun Jul 8 15:24:12 CDT 2007 Jul 8 15:24:19 athena kernel: Jul 8 15:24:19 athena apcupsd[689]: apcupsd FATAL ERROR in bsd-usb.c at line 711 Cannot find UPS device -- For a link to detailed USB trouble shooting information, please see http://www.apcupsd.com/support.html. Jul 8 15:24:19 athena kernel: Jul 8 15:24:19 athena apcupsd[689]: Valid lock file for pid=685, but not ours pid=689 Jul 8 15:24:19 athena kernel: Jul 8 15:24:19 athena apcupsd[689]: apcupsd error shutdown completed also, here is my /etc/rc.conf file. ive double checked it, and these items arent listed twice (not even sure if that would matter if it were). # -- sysinstall generated deltas -- # Fri Jun 16 12:58:58 2006 # Created: Fri Jun 16 12:58:58 2006 # Enable network daemons for user convenience. # Please make all changes to this file, not to /etc/defaults/rc.conf. # This file now contains just the overrides from /etc/defaults/rc.conf. hostname=athena.dfwlp.com ifconfig_bge0=DHCP devfs_system_ruleset=localrules sshd_enable=YES usbd_enable=YES ntpdate_enable=YES ntpdate_hosts=0.us.pool.ntp.org snmpd_enable=YES inetd_enable=YES inetd_flags=-wW -a 192.168.125.83 ntpd_enable=YES linux_enable=YES rpcbind_enable=YES nfs_server_enable=YES mountd_flags=-r nfs_client_enable=YES # vsftpd_enable=YES cupsd_enable=YES samba_enable=YES apcupsd_enable=YES can anyone give me any guesses as to where i need to take a look as to what could be attempting the 2nd starts of these 2 items? also, simply restarting apcupsd will fail, but if i killall apcupsd then start it fresh, it works for the duration of my uptime (somehow the pid that stays running gets disassociated from the pid file). samba is similar behavior. my windows computer cannot access the samba, until it is restarted (samba restarts normally without any troubles). any clues at all, would be appreciated. cheers, -- Jonathan Horne http://dfwlpiki.dfwlp.org [EMAIL PROTECTED] It happens because you now have /usr/X11R6 symlinked to /usr/local and local_startup rc variable still points to both. Insert local_startup=/usr/local/etc/rc.d
Re: non-interactive dump
On 7/8/07, Dinesh Pandian [EMAIL PROTECTED] wrote: Hello guys, quick question.. Is there a way to tell dump to do it's working without it asking Is the new volume mounted and ready to go?: (yes or no) everytime it changes mount points? For example: solara# dump -0L -f /dev/da1 / DUMP: Date of this level 0 dump: Mon Jul 9 02:17:40 2007 DUMP: Date of last level 0 dump: the epoch DUMP: Dumping snapshot of /dev/da0s1a (/) to /dev/da1 DUMP: mapping (Pass I) [regular files] DUMP: mapping (Pass II) [directories] DUMP: estimated 288357 tape blocks on 7.42 tape(s). DUMP: dumping (Pass III) [directories] DUMP: dumping (Pass IV) [regular files] DUMP: Closing /dev/da1 DUMP: Change Volumes: Mount volume #2 DUMP: Is the new volume mounted and ready to go?: (yes or no) yes DUMP: Volume 2 begins with blocks from inode 33729 DUMP: Closing /dev/da1 DUMP: Change Volumes: Mount volume #3 DUMP: Is the new volume mounted and ready to go?: (yes or no) yes DUMP: Volume 3 begins with blocks from inode 49969 DUMP: Closing /dev/da1 DUMP: Change Volumes: Mount volume #4 DUMP: Is the new volume mounted and ready to go?: (yes or no) yes DUMP: Volume 4 begins with blocks from inode 50225 DUMP: 39.89% done, finished in 0:01 at Mon Jul 9 02:25:01 2007 DUMP: Closing /dev/da1 DUMP: Change Volumes: Mount volume #5 DUMP: Is the new volume mounted and ready to go?: (yes or no) yes DUMP: Volume 5 begins with blocks from inode 50225 DUMP: Closing /dev/da1 DUMP: Change Volumes: Mount volume #6 DUMP: Is the new volume mounted and ready to go?: (yes or no) yes DUMP: Volume 6 begins with blocks from inode 50225 DUMP: Closing /dev/da1 DUMP: Change Volumes: Mount volume #7 DUMP: Is the new volume mounted and ready to go?: (yes or no) yes DUMP: Volume 7 begins with blocks from inode 50225 DUMP: Closing /dev/da1 DUMP: Change Volumes: Mount volume #8 DUMP: Is the new volume mounted and ready to go?: (yes or no) yes DUMP: Volume 8 begins with blocks from inode 50225 DUMP: DUMP: 289411 tape blocks on 8 volumes DUMP: finished in 180 seconds, throughput 1607 KBytes/sec DUMP: Closing /dev/da1 DUMP: DUMP IS DONE Dump requires that I key in yes everytime it changes mount volumes.. is there a way to just get it to continue without user intervention? Use the -a flag ;) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Enabling A Serial Port On 6.2
Tim Daneliuk [EMAIL PROTECTED] writes: I suspect that there are a great many places - shell scripts and C source code leap to mind - where the lack of a terminating newline at the end of a file does not cause the line to be ignored altogether. In both of those cases, the relevant standards say that such input is invalid. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: trouble with some startup items
On Sunday 08 July 2007 15:49:38 Yuri Pankov wrote: On Sun, Jul 08, 2007 at 03:37:10PM -0500, Jonathan Horne wrote: ive been trying to figure out this problem for a while now. i have 2 things that are having trouble starting. apcupsd and samba. i recently noticed, that during start up, they are printed more than once to the console (and to my /var/log/console.log. here is the output of my most recent reboot: Jul 8 15:24:05 athena kernel: Starting syslogd. Jul 8 15:24:05 athena kernel: Initial i386 initialization: Jul 8 15:24:05 athena kernel: . Jul 8 15:24:05 athena kernel: Additional ABI support: Jul 8 15:24:05 athena kernel: linux Jul 8 15:24:07 athena kernel: . Jul 8 15:24:07 athena kernel: Setting date via ntp. Jul 8 15:24:09 athena kernel: 8 Jul 15:24:09 ntpdate[609]: step time server 24.162.39.167 offset 1.666967 sec Jul 8 15:24:09 athena kernel: Starting rpcbind. Jul 8 15:24:09 athena kernel: NFS access cache time=60 Jul 8 15:24:09 athena kernel: Starting mountd. Jul 8 15:24:09 athena kernel: Starting nfsd. Jul 8 15:24:09 athena kernel: Starting apcupsd. Jul 8 15:24:09 athena kernel: Starting apcupsd. Jul 8 15:24:09 athena kernel: Starting local daemons: Jul 8 15:24:09 athena kernel: . Jul 8 15:24:09 athena kernel: Updating motd Jul 8 15:24:09 athena kernel: . Jul 8 15:24:09 athena kernel: Mounting late file systems: Jul 8 15:24:09 athena kernel: . Jul 8 15:24:09 athena kernel: Starting ntpd. Jul 8 15:24:09 athena kernel: Starting usbd. Jul 8 15:24:10 athena kernel: Starting cupsd. Jul 8 15:24:10 athena kernel: Starting cupsd. Jul 8 15:24:10 athena kernel: Removing stale Samba tdb files: Jul 8 15:24:10 athena kernel: . Jul 8 15:24:10 athena last message repeated 7 times Jul 8 15:24:10 athena kernel: done Jul 8 15:24:10 athena kernel: Starting nmbd. Jul 8 15:24:10 athena kernel: Starting smbd. Jul 8 15:24:11 athena kernel: Removing stale Samba tdb files: Jul 8 15:24:11 athena kernel: . Jul 8 15:24:11 athena last message repeated 5 times Jul 8 15:24:11 athena kernel: done Jul 8 15:24:11 athena kernel: Starting nmbd. Jul 8 15:24:11 athena kernel: Starting smbd. Jul 8 15:24:11 athena kernel: Starting snmpd. Jul 8 15:24:11 athena kernel: Starting snmpd. Jul 8 15:24:11 athena kernel: Configuring syscons: Jul 8 15:24:11 athena kernel: blanktime Jul 8 15:24:11 athena kernel: . Jul 8 15:24:11 athena kernel: Starting sshd. Jul 8 15:24:12 athena kernel: Starting cron. Jul 8 15:24:12 athena kernel: Local package initialization: Jul 8 15:24:12 athena kernel: . Jul 8 15:24:12 athena kernel: Additional TCP options: Jul 8 15:24:12 athena kernel: . Jul 8 15:24:12 athena kernel: Starting inetd. Jul 8 15:24:12 athena kernel: Starting background file system checks in 60 seconds. Jul 8 15:24:12 athena kernel: Jul 8 15:24:12 athena kernel: Sun Jul 8 15:24:12 CDT 2007 Jul 8 15:24:19 athena kernel: Jul 8 15:24:19 athena apcupsd[689]: apcupsd FATAL ERROR in bsd-usb.c at line 711 Cannot find UPS device -- For a link to detailed USB trouble shooting information, please see http://www.apcupsd.com/support.html. Jul 8 15:24:19 athena kernel: Jul 8 15:24:19 athena apcupsd[689]: Valid lock file for pid=685, but not ours pid=689 Jul 8 15:24:19 athena kernel: Jul 8 15:24:19 athena apcupsd[689]: apcupsd error shutdown completed also, here is my /etc/rc.conf file. ive double checked it, and these items arent listed twice (not even sure if that would matter if it were). # -- sysinstall generated deltas -- # Fri Jun 16 12:58:58 2006 # Created: Fri Jun 16 12:58:58 2006 # Enable network daemons for user convenience. # Please make all changes to this file, not to /etc/defaults/rc.conf. # This file now contains just the overrides from /etc/defaults/rc.conf. hostname=athena.dfwlp.com ifconfig_bge0=DHCP devfs_system_ruleset=localrules sshd_enable=YES usbd_enable=YES ntpdate_enable=YES ntpdate_hosts=0.us.pool.ntp.org snmpd_enable=YES inetd_enable=YES inetd_flags=-wW -a 192.168.125.83 ntpd_enable=YES linux_enable=YES rpcbind_enable=YES nfs_server_enable=YES mountd_flags=-r nfs_client_enable=YES # vsftpd_enable=YES cupsd_enable=YES samba_enable=YES apcupsd_enable=YES can anyone give me any guesses as to where i need to take a look as to what could be attempting the 2nd starts of these 2 items? also, simply restarting apcupsd will fail, but if i killall apcupsd then start it fresh, it works for the duration of my uptime (somehow the pid that stays running gets disassociated from the pid file). samba is similar behavior. my windows computer cannot access the samba, until it is restarted (samba restarts normally without any troubles). any clues at all, would be appreciated. cheers, -- Jonathan Horne http://dfwlpiki.dfwlp.org [EMAIL PROTECTED] It happens because
severely OT; re PUTTY [ssh]
I was able to find, ldown load and instal the DOS/Windows ssh utility, but am having trouble scp'ing stuff between my BSD side and my W2K server. Anybody know what file I have to modify to get permission on the windows computer? -- Gary Kline [EMAIL PROTECTED] www.thought.org Public Service Unix ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: severely OT; re PUTTY [ssh]
On Sunday 08 July 2007 19:46:41 Gary Kline wrote: I was able to find, ldown load and instal the DOS/Windows ssh utility, but am having trouble scp'ing stuff between my BSD side and my W2K server. Anybody know what file I have to modify to get permission on the windows computer? during the rare occasions that i have to scp files from a unix source, i always do it *from* the windows box, with pscp.exe. cheers, -- Jonathan Horne http://dfwlpiki.dfwlp.org [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
X11 forwarding problems in FreeBSD 6.2
I am having some problems with X11 forwarding. I can do X11 forwarding via ssh between two machines running Linux, but if I try to do this from FreeBSD (KDE) to either of the Linux machines, it only works if I use startx to start KDE on the fbsd machine (a laptop). If I start KDE from kdm, I get errors that go like this when I start the KDE app on the remote host running Linux: [EMAIL PROTECTED]:~$ kate Xlib: connection to localhost:11.0 refused by server Xlib: Invalid MIT-MAGIC-COOKIE-1 key kate: cannot connect to X server localhost:11.0 My configurations for ssh are similar on all hosts: sshd_conf has AllowTcpForwarding yes X11DisplayOffset 10 X11UseLocalHost yes XAuthLocation /usr/local/bin/xauth ssh_conf has Host slider HostName 192.168.0.1 ForwardAgent yes ForwardX11 yes ForwardX11Trusted yes PubkeyAuthentication yes Protocol 2 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: non-interactive dump
Is there a way to tell dump to do it's working without it asking Is the new volume mounted and ready to go?: (yes or no) everytime it changes mount points? How else can it tell when you've swapped in new media? If it automatically continued it would just overwrite the previous segment. In principle, when dumping to a sequence of volumes on a removable device, it could watch for the device to become not-ready and then ready again. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Odd Multi-User Mode BUILD Error: lang/gnat; why is it attempting to use csh???
Please CC me on a response as I am not a member of freebsd-questions Here it is: gmake[2]: Entering directory `/usr/ports/lang/gnat/work/gcc-34/gcc/fixinc' /bin/csh ./genfixes machname.h SHELL=/bin/sh: Command not found. export: Command not found. if: Expression Syntax. gmake[2]: *** [machname.h] Error 1 gmake[2]: Leaving directory `/usr/ports/lang/gnat/work/gcc-34/gcc/fixinc' gmake[1]: *** [fixinc.sh] Error 2 gmake[1]: Leaving directory `/usr/ports/lang/gnat/work/gcc-34/gcc' gmake: *** [all-gcc] Error 2 *** Error code 2 this is obviously caused by the build attempting to run the sh script with (t)csh instead causing a basic syntax error to occur because of the incompatible script syntax and puking the make. I say obviously because dropping to single user mode and choosing /bin/sh as my shell allowed the build to occur without error. I think the problem lies in lang/gnat/work/gcc-34/gcc/fixinc/Makefile.in referencing the variable [EMAIL PROTECTED]@ and using it genrally like cd $(srcdir) ; $(SHELL) ./genfixes $@ I don't know much about Makefile syntax but I know changing every reference of SHELL to DINGLESHELL made no difference. I attempted to force SHELL=/bin/sh to no avail it was ignored and still ran /bin/csh ./genfixes machname.h SHELL=/bin/sh:Command not found I even reset MAKE_SHELL=/bin/sh in make.conf and forced the above Makefile.in to use SHELL=${MAKE_SHELL} as a last resort but neither futile attempts worked. I believe the error is that the Makefile is ignoring the setting of SHELL and using the environment SHELL variable which is by default /bin/csh. Under Linux this wouldn't be an error because as I recall they use bash for everyone, even the big wheels... but for a BSD this is an error, because root runs csh My question is should [EMAIL PROTECTED]@ pickup the proper /bin/sh and build things correctly, or is using SHELL in the makefile in this manner an error under a BSD that should be fixed by a patch worked out with the maintainer. I don't know if this is an configure error, or a one in a bluemoon thing. I am thoroughly confused by this. I guess I am wondering if anyone else has had similar issues with the port as a search on google didn't seem to find much. I need the GPL version so I can use tasking, as my reason for using Ada needs the intrinsic support for threading to be functional. This also allows me to try out the adacore compile prior to dropping whatever sum of money they want for GNAT-Pro... If I have to go single user to update the port I will. I don't want to run /bin/sh as my root shell i suppose i could try bash. which as an exercise i set as the root shell and all went perfectly fine through the build. I don't want to leave things this way because a simple issue of deleting my ports will make logging in as root require remembering to boot single user... my build env: 2x 2800+ athlon-mp 1284M Ram (1gig + 256M registered ECC scrubbing on) FreeBSD 6.2-p5 CFLAGS=-O2 -pipe COPTFLAGS=-pipe -O CPUTYPE?=athlon-mp NO_RCMDS=YES NO_PROFILE=YES MAKE_IDEA=yes WITH_OPENSSL_BASE=YES X_WINDOW_SYSTEM=xorg SENDMAIL_CFLAGS=-I/usr/local/include -DSASL=2 SENDMAIL_LDFLAGS=-L/usr/local/lib SENDMAIL_LDADD=-lsasl2 thanks for any help, and thanks to the FreeBSD team, I can't wait for 7.0 to be released, I think my LH6000 is going to love the optimized SMP routines... as will the above machine, of course. brian again, Please CC me on a response as I am not a member of freebsd-questions ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: severely OT; re PUTTY [ssh]
On Sun, 8 Jul 2007 17:46:41 -0700 Gary Kline [EMAIL PROTECTED] wrote: I was able to find, ldown load and instal the DOS/Windows ssh utility, but am having trouble scp'ing stuff between my BSD side and my W2K server. Anybody know what file I have to modify to get permission on the windows computer? Gary, what exactly are you trying to do ? what error do you get? is your windows user local? does it have admin rights ? B _ {Beto|Norberto|Numard} Meijome If you want to realize what a ridiculous word 'lifestyle' is, consider the fact that technically speaking, Attila the Hun had an active, outdoor lifestyle. George Carlin I speak for myself, not my employer. Contents may be hot. Slippery when wet. Reading disclaimers makes you go blind. Writing them is worse. You have been Warned. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: X11 forwarding problems in FreeBSD 6.2
On July 8, 2007, Pollywog wrote: I am having some problems with X11 forwarding. I can do X11 forwarding via ssh between two machines running Linux, but if I try to do this from FreeBSD (KDE) to either of the Linux machines, it only works if I use startx to start KDE on the fbsd machine (a laptop). If I start KDE from kdm, I get errors that go like this when I start the KDE app on the remote host running Linux: [EMAIL PROTECTED]:~$ kate Xlib: connection to localhost:11.0 refused by server Xlib: Invalid MIT-MAGIC-COOKIE-1 key kate: cannot connect to X server localhost:11.0 On your FreeBSD machine, try issuing % xhost +local: before you ssh to the Linux machines. Cheers. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: severely OT; re PUTTY [ssh]
Gary Kline wrote: I was able to find, ldown load and instal the DOS/Windows ssh utility, but am having trouble scp'ing stuff between my BSD side and my W2K server. Anybody know what file I have to modify to get permission on the windows computer? Gary, Search for winscp, a (free) graphical dragdrop scp tool. I've seen some limitations with scp of putty (like file sizes over 2 Gigs). Peter -- http://www.boosten.org ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: severely OT; re PUTTY [ssh]
On Sun, 8 Jul 2007 17:46:41 -0700 Gary Kline [EMAIL PROTECTED] wrote: I was able to find, ldown load and instal the DOS/Windows ssh utility, but am having trouble scp'ing stuff between my BSD side and my W2K server. Anybody know what file I have to modify to get permission on the windows computer? OK - there are two scenarios: 1) Running the command from a Windows command shell to/from BSD (really pscp, right? - that's what comes with putty): pscp [EMAIL PROTECTED]:sourcefile localfile - Copies file from BSD to Windows pscp localfile [EMAIL PROTECTED]:destfile - Copies local file to BSD This should work out of the box assuming there are no authentication or firewall problems in the way. If you're running WinXP/Vista you may have to open the Windows firewall to permit this. You can see what's going on by having pscp be verbose by sticking a -v flag into the command: pscp -v . 2) Running the command from BSD to/from Windows This is harder. You have to be running a ssh daemon (sshd) on your Windows machine. This is very doable, but you'll need something like cygwin to get sshd for Windows and then you'll have to configure it appropriately. The good thing about this (although it is kind of a pain) is that it gets around an interesting limitation in WinDoze. Microsoft does allow you to telnet into your Windows client machine but it only allows ONE such login at a time (because, if you wanted more than one login, surely you need WinDoze Server ... which is WAY more money). If you install sshd on your machine, you now have more-or-less unlimited logins via ssh from other machines. Similarly, on Windows Server, you probably need a CAL for each telnet connection. I do not quite understand Microsoft's licensing terms (does anyone?), but it _may_ be the case that running sshd on a Windows Server and using ssh to get to it _may_ get you around paying for extra CALs. YLFMV (Your Legal Fees May Vary). You didn't provide any particulars (in the future, an exact description of what is- and is not working is VERY useful for those of us trying to help ;), but, if I had to guess, I'd say you're having one of two problems: 1) You're trying to do the file copy from BSD to/from Windows and you don't have an sshd daemon running on Win32. 2) You're trying initiate the copy from Windows (which should work), but the Windows firewall is blocking the connection. HTH, P.S. If anyone tells anyone else that I know this stuff about Windows I will deny it loudly and come looking for you. I do not need any more conversations that start with, Oh, you're a computer engineer - I have this problem with my/childrens'/wife's/dog's Windows machine... :) -- Tim Daneliuk [EMAIL PROTECTED] PGP Key: http://www.tundraware.com/PGP/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: severely OT; re PUTTY [ssh]
Peter Boosten wrote: Gary Kline wrote: I was able to find, ldown load and instal the DOS/Windows ssh utility, but am having trouble scp'ing stuff between my BSD side and my W2K server. Anybody know what file I have to modify to get permission on the windows computer? Gary, Search for winscp, a (free) graphical dragdrop scp tool. I've seen some limitations with scp of putty (like file sizes over 2 Gigs). Peter Gary, If you're just trying to do file transferring/sharing in a local 'secure' network, I suggest Samba in place of scp. You might also want to consider Samba + VPN as well; scp is great for porting files over long distances, or a last resort for dealing with Unix = Windows transferring, but just seems incredibly kludgey when dealing with files/directories otherwise (having to maintain an ssh connection, having to install a scp/ssh client per machine for instance are what I consider kludgey). Cheers, -Garrett ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: severely OT; re PUTTY [ssh]
On Mon, Jul 09, 2007 at 12:44:46AM -0500, Tim Daneliuk wrote: P.S. If anyone tells anyone else that I know this stuff about Windows I will deny it loudly and come looking for you. I do not need any more conversations that start with, Oh, you're a computer engineer - I have this problem with my/childrens'/wife's/dog's Windows machine... :) Oh, well that's your problem right there. Here, try FreeBSD, or maybe this MacOS X thing, instead. That should solve the problem. Isn't that the right answer to all such questions? -- CCD CopyWrite Chad Perrin [ http://ccd.apotheon.org ] MacUser, Nov. 1990: There comes a time in the history of any project when it becomes necessary to shoot the engineers and begin production. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: severely OT; re PUTTY [ssh]
On Mon, Jul 09, 2007 at 03:18:11PM +1000, Norberto Meijome wrote: On Sun, 8 Jul 2007 17:46:41 -0700 Gary Kline [EMAIL PROTECTED] wrote: I was able to find, down load and instal the DOS/Windows ssh utility, but am having trouble scp'ing stuff between my BSD side and my W2K server. Anybody know what file I have to modify to get permission on the windows computer? Gary, what exactly are you trying to do ? what error do you get? is your windows user local? does it have admin rights ? wHat I was tying to do what scp a kf141.exe here on tao over to my daughter's peecee to get her W2K key/number. I didn't buy the W2K and when I junk the computer I want to use the OS. The error was a permissions type yelp from the PC. I logged out as her, then discovered that she already was administrator. gary PS/: if anybody knows where I can find this key-finder binary, it'd save lots of steps! B _ {Beto|Norberto|Numard} Meijome If you want to realize what a ridiculous word 'lifestyle' is, consider the fact that technically speaking, Attila the Hun had an active, outdoor lifestyle. George Carlin I speak for myself, not my employer. Contents may be hot. Slippery when wet. Reading disclaimers makes you go blind. Writing them is worse. You have been Warned. -- Gary Kline [EMAIL PROTECTED] www.thought.org Public Service Unix ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]