Re: What's the best way to destroy a geom mirror?
On Thu, Mar 05, 2009 at 09:35:31AM -0800, Peter Steele wrote: > > I've created a USB boot disk that is used to clone itself onto the systems > hard drives, setting up mirrored file systems in the process. The main > difficulty I'm having is reimaging a system with an existing OS whose drives > are already configured in a mirror. I want of course to destroy the mirror > and create a complete new one, but I can't find the right process to > accomplish this reliably. I am doing the following: > > # Cycle through each /dev/adNN drive and clean it. This has to be > # done before the geom_mirror driver is loaded. > disks=(`ls /dev/ad* | grep -v "s" | sed -e "s|/dev/||" -e "s|ad||" | sort > -g`) > for ((i = 0 ; i < ${#dis...@]} ; i++)); do > disk=ad${disks[i]} > dd if=/dev/zero of=/dev/${disk} bs=512 count=79 > done > > # Partition the drives as needed > ... > > # Create the mirror, starting with the first drive in the list > gmdisk=ad${disks[0]} > gmirror load > gmirror label -v -n -b round-robin gm0 ${gmdisk}s1 > > This is where the problem occurs. If there was already a mirrored file system > previously active on the system being reimaged, the label operation complains > that it can't store the metadata on the indicated drive: > > gmirror: Can't store metadata on ad4s1: Operation not permitted. > > If I make sure the existing mirrors are torn down first by iterating through > the drives and doing a "remove" operation, this can solve the problem, but in > some cases the mirror is in a suspect state and I've seen the "gmirror load" > command hang idefiinitely. So I don't want to do a load command before I > destroy the old mirrors, but I can't seem to find a way to reliably destroy > the old mirrors. Can anyone suggest a way to do this? Have you tried using 'clear' keyword? HTH, Yuri ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Monitoring geom
Mister Olli wrote: Hi hi... What is the best way to monitor geom software raids (gmirror & gvinum raid5)??? The solution I'm searching for should be a kind of script which checks the status, and drops me an email if something is wrong. I found a nagios plugin, but currently I'm unable to invest enough time to get nagios up and running for the customer... Thanks a lot... greetz Olli ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" I monitor some machines with geom mirrors via Nagios/SNMP. In nagios: -- define service{ use generic-service host_name host.name.com service_description gmirror check_command check_snmp!1!0!UCD-SNMP-MIB::extOutput.1 } On the machine in snmpd.conf (net-snmp): -- exec gmirror /usr/local/sbin/checkgmirror The script: -- #!/bin/sh mirrorstate=`/sbin/gmirror list | /usr/bin/grep ^State |\ /usr/bin/awk '{print $2}'` if [ $mirrorstate != "COMPLETE" ] then echo "1" else echo "0" fi Besides crafthing something of your own, there is also: /usr/ports/net-mgmt/nagios-geom This is a small Nagios plugin written in PERL and designed to monitor the state of FreeBSD GEOM devices (specifically mirrors and striped volumes) from Nagios. WWW: http://www.geocities.com/ntb4real/proj/geom.htm To use in Nagios: In checkcommands.cfg: -- define command{ command_namecheck_geom command_line$USER1$/check_geom $ARG1$ $ARG2$ } In your host.cfg: -- define service{ use local-service host_name host.name.conf service_description mirror check_command check_geom!mirror!gm0 } ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: the "yes" comand
On Wed, Mar 4, 2009 at 11:35 PM, Wojciech Puchar < woj...@wojtek.tensor.gdynia.pl> wrote: > if you have program that do too much questions like (are you sure), and you > are sure then you do > > yes|program yes Continue | Vista -uac Bit o' humor in an otherwise too-serious world. Laugh. It'll make you happy. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: [OT] Server hosting with FreeBSD
Jack L. wrote: I provide that hosting and sharktech does as well. On Thu, Mar 5, 2009 at 5:09 PM, Nerius Landys wrote: We´re looking for good hosting services that offer instalations of FreeBSD in dedicated servers. Any one could point some? Most of the companies offer Linux and Windows, but only few with FreeBSD. The one thar we use today, only install a fixed image. Just a simple custom partition modification, cannot be done. There is (believe it or not) a webpage on the freebsd.org website that lists some commercial businesses that offer colocation and/or dedicated servers: http://www.freebsd.org/commercial/isp.html My server is colocated with m5hosting.com (halfway down on that page) in San Diego. I'm very happy with them. I'm running 5 video game servers for the free game Urban Terror on my server. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" Double post (sorry). There is also the following page which has a nice big list http://www.freebsd.org/commercial/consult.html This message may contain confidential or privileged information. If you are not the intended recipient, please advise us immediately and delete this message. See http://www.datapipe.com/emaildisclaimer.aspx for further information on confidentiality and the risks of non-secure electronic communication. If you cannot access these links, please notify us by reply message and we will send the contents to you. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: [OT] Server hosting with FreeBSD
DataPipe also provides (optional: managed) hosting as well. They are a bit pricey, but you get what you pay for. Jack L. wrote: I provide that hosting and sharktech does as well. On Thu, Mar 5, 2009 at 5:09 PM, Nerius Landys wrote: We´re looking for good hosting services that offer instalations of FreeBSD in dedicated servers. Any one could point some? Most of the companies offer Linux and Windows, but only few with FreeBSD. The one thar we use today, only install a fixed image. Just a simple custom partition modification, cannot be done. There is (believe it or not) a webpage on the freebsd.org website that lists some commercial businesses that offer colocation and/or dedicated servers: http://www.freebsd.org/commercial/isp.html My server is colocated with m5hosting.com (halfway down on that page) in San Diego. I'm very happy with them. I'm running 5 video game servers for the free game Urban Terror on my server. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" This message may contain confidential or privileged information. If you are not the intended recipient, please advise us immediately and delete this message. See http://www.datapipe.com/emaildisclaimer.aspx for further information on confidentiality and the risks of non-secure electronic communication. If you cannot access these links, please notify us by reply message and we will send the contents to you. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Any BSDians hands on with apache-2.2 webserver,
.htpasswd Failure .. htpasswd recreation also not working I added afor restricting access to my web site URL. I used Basic Authentication module.. I created #htpasswd -c .htpasswd test password : test and restarted apache . The path to AuthUserFile is absolutely the system path no error in that .. but when I tried to accessmysites URL it showing the Authentication Dialogue , I enteredusername : test password : test , but its not loging in ..) I recreated the password many times with other user names and passwords .. but still I can't login .. what may be the issue ? how can I fix the issue ? This is the setup [r...@sun /usr/local/www/testblock]# ls -al total 6 drwxr-xr-x 2 www www512 Mar 5 19:13 . drwxr-xr-x 11 root wheel 512 Mar 5 16:10 .. -rw-r-xr-x 1 www www 19 Mar 6 09:52 .htpasswd [r...@sun /usr/local/www/testblock]# cat .htpasswd test:Nkw3seTaTE16I [r...@sun /usr/local/www/testblock]# ServerName mysite.com AuthType Basic AuthName "Auth" AuthUserFile "/usr/local/www/testblock/. htpasswd" Require valid-user RewriteEngine On RewriteRule ^/(.*) http://127.0.0.1:8081/VirtualHostBase/http/mysite.com:80/site1/VirtualHostRoot/$1 [L,P] ErrorLog /var/log/apache/site1/error_log CustomLog /var/log/apache/site2/access.log combined Any hints most welcome Thanks in advance KK _ Windows Live Messenger. Multitasking at its finest. http://www.microsoft.com/india/windows/windowslive/messenger.aspx___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: SpamAssassin/Perl eating enormous amounts of memory?
>> On Mon, 02 Mar 2009 17:21:53 -0800, >> Andrew Moran said: A> Thank you for your suggestion. I'll try compiling Perl and it's A> dependencies without using PERL_MALLOC. I've had similar memory problems using Hyperestraier to index collections exceeding 1,000,000 documents. The indexer would run without complaint under Solaris, but die periodically on FreeBSD with "out of memory" errors. Since I had around 6 Gb of RAM, I was pretty sure memory wasn't the problem, so I recompiled using a version of Doug Lea's malloc and the problem went away. The most recent malloc sources are here: ftp://gee.cs.oswego.edu/pub/misc/malloc-2.8.3.c ftp://gee.cs.oswego.edu/pub/misc/malloc-2.8.3.h Here's a Makefile suitable for building and installing the library with GCC. I'm sure the tabs have been mangled: CC= gcc CPLUS = g++ LIBS = libmalloc.a libcppmalloc.a DEST = /usr/local/lib INC = /usr/local/include all: $(LIBS) clean: rm -f $(LIBS) *.o cppmalloc.o: malloc.c $(CPLUS) -O -c -I. malloc.c -o cppmalloc.o install: $(LIBS) cp $(LIBS) $(DEST) cp -p malloc.h $(INC) ranlib $(DEST)/libcppmalloc.a ranlib $(DEST)/libmalloc.a libcppmalloc.a: cppmalloc.o rm -f libcppmalloc.a ar q libcppmalloc.a cppmalloc.o libmalloc.a: malloc.o rm -f libmalloc.a ar q libmalloc.a malloc.o malloc.o: malloc.c $(CC) -O -c -I. malloc.c To build something using configure and this library, change the configure commands to include these environment variables: LDFLAGS="-L/usr/local/lib -lmalloc" CPPFLAGS="-I/usr/local/include" -- Karl Vogel I don't speak for the USAF or my company Why are they called apartments, when they're all stuck together? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: [OT] Server hosting with FreeBSD
I provide that hosting and sharktech does as well. On Thu, Mar 5, 2009 at 5:09 PM, Nerius Landys wrote: >>We´re looking for good hosting services that offer instalations of >> FreeBSD in dedicated servers. >>Any one could point some? >>Most of the companies offer Linux and Windows, but only few with >> FreeBSD. >>The one thar we use today, only install a fixed image. Just a simple >> custom partition modification, cannot be done. > > There is (believe it or not) a webpage on the freebsd.org website that > lists some commercial businesses that offer colocation and/or > dedicated servers: > > http://www.freebsd.org/commercial/isp.html > > My server is colocated with m5hosting.com (halfway down on that page) > in San Diego. I'm very happy with them. I'm running 5 video game > servers for the free game Urban Terror on my server. > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" > ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: /bin/sh does not read profile
On Thu, Mar 05, 2009 at 06:11:18PM -0800, Peter Steele wrote: > > >I first wondered why none of my commands in "/etc/profile" and > >"~/.profile" got executed. Finally, I modified > >"/usr/src/bin/sh/main.c" to trace what files are read, recompiled > >the "sh" command and: the only file that is executed is "~/.shrc". > > > >I just cannot believe that FreeBSD has such a severe bug. What is > >going wrong here? > > I have a similar problem, but with bash. I have both my personal > account and root set to use bash instead of sh and when I login the > .bashrc file is not read. My system does not have an X environment, > it's plain old BSD. How can I get it to load .bashrc when I login? > I'm using a 7.0 binary release. You should be able to put: source $HOME/.bashrc in ~/.bash_profile That's if $HOME is set. Otherwise use the full path. Regards, -- Frank Contact info: http://www.shute.org.uk/misc/contact.html ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: /bin/sh does not read profile
On Thu, 5 Mar 2009 18:11:18 -0800 (PST), Peter Steele wrote: > I have a similar problem, but with bash. I have both my personal > account and root set to use bash instead of sh and when I login > the .bashrc file is not read. My system does not have an X > environment, it's plain old BSD. How can I get it to load .bashrc > when I login? I'm using a 7.0 binary release. I read from the manpage bash-3.2.25 according to the FILES section: /etc/profile The systemwide initialization file, executed for login shells ~/.bash_profile The personal initialization file, executed for login shells ~/.bashrc The individual per-interactive-shell startup file When the shell is the login shell (prefixed with - in the process list), it seems that it needs to read ~/.bash_profile (and not the ~/.bashrc file). So you could put . ~/.bashrc into ~/.bash_profile to get a workaround. -- Polytropon >From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Monitoring geom
>From Michael Lucas' Absolute FreeBSD book page 550: FreeBSD can include a status check of your mirrored disks in its daily periodic(8) run. Just add the line daily_status_gmirror_enable="YES" to /etc/periodic.conf. Not sure about other raid types beyond mirrors. On 3/5/09, Mister Olli wrote: > > Hi hi... > > What is the best way to monitor geom software raids (gmirror & gvinum > raid5)??? > > The solution I'm searching for should be a kind of script which checks > the status, and drops me an email if something is wrong. > > I found a nagios plugin, but currently I'm unable to invest enough time > to get nagios up and running for the customer... > > Thanks a lot... > > greetz > Olli > > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscr...@freebsd.org" > ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: /bin/sh does not read profile
>I first wondered why none of my commands in "/etc/profile" and >"~/.profile" got executed. Finally, I modified >"/usr/src/bin/sh/main.c" to trace what files are read, recompiled >the "sh" command and: the only file that is executed is "~/.shrc". > >I just cannot believe that FreeBSD has such a severe bug. What is >going wrong here? I have a similar problem, but with bash. I have both my personal account and root set to use bash instead of sh and when I login the .bashrc file is not read. My system does not have an X environment, it's plain old BSD. How can I get it to load .bashrc when I login? I'm using a 7.0 binary release. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: /bin/sh does not read profile
On Wed, Mar 4, 2009 at 4:08 PM, Bertram Scharpf wrote: > Hi, > > from "man sh": > > Invocation > [...] When first starting, the shell inspects > argument 0, and if it begins with a dash (`-'), the shell is also consid- > ered a login shell. This is normally done automatically by the system > when the user first logs in. A login shell first reads commands from the > files /etc/profile and then .profile in a user's home directory, if they > exist. [...] > > I use Slim (X login manager) which calls > > exec /bin/sh - ~/.xinitrc > > I first wondered why none of my commands in "/etc/profile" and > "~/.profile" got executed. Finally, I modified > "/usr/src/bin/sh/main.c" to trace what files are read, recompiled > the "sh" command and: the only file that is executed is "~/.shrc". > > I just cannot believe that FreeBSD has such a severe bug. What is > going wrong here? > Put the following in a file called ".Xresources" : XTerm*loginShell: true =Adriaan= ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: [OT] Server hosting with FreeBSD
>We´re looking for good hosting services that offer instalations of > FreeBSD in dedicated servers. >Any one could point some? >Most of the companies offer Linux and Windows, but only few with > FreeBSD. >The one thar we use today, only install a fixed image. Just a simple > custom partition modification, cannot be done. There is (believe it or not) a webpage on the freebsd.org website that lists some commercial businesses that offer colocation and/or dedicated servers: http://www.freebsd.org/commercial/isp.html My server is colocated with m5hosting.com (halfway down on that page) in San Diego. I'm very happy with them. I'm running 5 video game servers for the free game Urban Terror on my server. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: [OT] Server hosting with FreeBSD
also calpop @ calpop.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: 7.1-release and KDE4
On Thu, 5 Mar 2009 18:43:42 -0600, Andrew Gould wrote: > I thought lame was one of the packages that couldn't be distributed in > binary form due to license restrictions. In the past, it really was. But I think it was possible to add it via pkg_add. It's some time ago, but memory serves me right, I did pkg_add -r lame because it was possible... if there was a way to find out if some software has been installed via port OR package, I could find this out. :-) Because of the few dependencies, it's no problem to use the port to install it first, then pkg_add -r the KDE 4 packages. Maybe install nasm prior to make. The Makefile of lame still states: RESTRICTED= patent issues, see http://www.mp3licensing.com/ If licensing problems are still present, there may be no way to put a precompiled package onto the FTP server. -- Polytropon >From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: [OT] Server hosting with FreeBSD
On Thu, Mar 5, 2009 at 7:59 PM, wrote: > Hi all, > > We´re looking for good hosting services that offer instalations of > FreeBSD in dedicated servers. > Any one could point some? > Most of the companies offer Linux and Windows, but only few with > FreeBSD. > The one thar we use today, only install a fixed image. Just a simple > custom partition modification, cannot be done. > http://www.google.com/search?hl=en&q=freebsd+dedicated+server&btnG=Google+Search&aq=0&oq=freebsd+dedicated&safe=images -- Glen Barber ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
[OT] Server hosting with FreeBSD
Hi all, We´re looking for good hosting services that offer instalations of FreeBSD in dedicated servers. Any one could point some? Most of the companies offer Linux and Windows, but only few with FreeBSD. The one thar we use today, only install a fixed image. Just a simple custom partition modification, cannot be done. Thank you, - Marcelo ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Paid Online Surveys - Start Now
[1]Make $40 to $160 Per Hour Just By Sharing Your Opinion With Marketing Giants Like Burger King, Pepsi, Sony, & Coca-Cola Instantly Make More Money Starting Now... References 1. http://givenchy02.survey272.hop.clickbank.net/?tid=SURVEYEM ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Paid Online Surveys - Start Now
[1]Make $40 to $160 Per Hour Just By Sharing Your Opinion With Marketing Giants Like Burger King, Pepsi, Sony, & Coca-Cola Instantly Make More Money Starting Now... References 1. http://givenchy02.survey272.hop.clickbank.net/?tid=SURVEYEM ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: 7.1-release and KDE4
On Thu, Mar 5, 2009 at 4:08 PM, joel perry wrote: > Attempting to pkg_add kde4 fails because the lame3.97_1.tgz is not located > in the latest ftp location. I and many others would appreciate it if you > would add lame to latest folder so that this package will install. It was > previously available in the 7.0 release. > > -- > Joel Perry > SBSC Registered Microsoft Partner > 803.800.5650 > > Lame was available on the ftp site? Are you sure? I thought lame was one of the packages that couldn't be distributed in binary form due to license restrictions. Andrew ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: SATA Port Multipliers in FreeBSD (6.3)
Hi Christopher, On Thursday 05 March 2009 15:25:35 Christopher Key wrote: > Hello, > > I'm looking to substantially expand the storage on my FreeBSD 6.3 home > media server. With regards hardware, the simplest way to attach large > numbers of drives seem to be to use SATA port multipliers, but I've been > unable to find any consensus on their level of support in FreeBSD. I'm > currently looking at a RocketRAID 2314 and SiI3726 based port > multipliers. Has any had any experience with this combination? The Sil3726 works very well if you run a recent enough version of FreeBSD. We use the device in a custom storage appliance. I don't know the RocketRAID 2314 though. You need a SATA 2.0 controller for Port Multipliers to work. FreeBSD has (experimental) support for Port Multipliers since the following commit : On Thursday 10 April 2008 15:05:05 Søren Schmidt wrote: > sos 2008-04-10 13:05:05 UTC > > FreeBSD src repository ... > Log: > Add experimental support for SATA Port Multipliers > > Support is working on the Silicon Image SiI3124/3132. > Support is working on some AHCI chips but far from all. > > Remember this is WIP, so test reports and (constructive) suggestions are > welcome! Regards, -- Daan Vreeken VEHosting http://VEHosting.nl tel: +31-(0)40-7113050 / +31-(0)6-46210825 KvK nr: 17174380 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: php5 changes in release 8.0
Bill Moran wrote: > In response to Fbsd1 : > >> Having problems installing php5 in 7.1 so tried 8.0 and see that in >> release 8.0 php5 in defaulting to apache 22 when apache interface is >> selected from the make config menu. The config menu should give option >> to select apache 13 or apache 22 not force apache 22 on the user >> community. Is the maintainer going to change the config menu before php5 >> 8.0 is released for production? > > If you want a different version of Apache, all you have to do is install > Apache first, then PHP will use the version you have installed. > > It's always been that way. It's just that up till now the default was > 1.3. It's _LOOONG_ past time when the default should have moved to 2.X. > Could always try APACHE_PORT= www/apache13 in /etc/make.conf, or somesuch, whichever incantation is used these days. Ref: /usr/ports/Mk/bsd.apache.mk -Mike ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
RE: SATA Port Multipliers in FreeBSD (6.3)
-Original Message- From: Elliot Finley [mailto:efinleyw...@efinley.com] Sent: 05 March 2009 17:57 To: Christopher Key Cc: questi...@freebsd.org Subject: Re: SATA Port Multipliers in FreeBSD (6.3) Christopher Key wrote: > Hello, > > I'm looking to substantially expand the storage on my FreeBSD 6.3 home > media server. With regards hardware, the simplest way to attach large > numbers of drives seem to be to use SATA port multipliers, but I've been > unable to find any consensus on their level of support in FreeBSD. I'm > currently looking at a RocketRAID 2314 and SiI3726 based port > multipliers. Has any had any experience with this combination? Why not just upgrade to 7-Stable and then use these: http://www.newegg.com/Product/Product.aspx?Item=N82E16815121009 they cost less than port multipliers. They don't do RAID, but then if you're on 7-Stable, you can use ZFS zraid. Elliot ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" I had utter hell with a belkin pci sata card which used a silicon image chipset. The main problem would show up when writing a large amount of data to the drives which were in a zfs array. I even tried this card on 3 different motherboards with various combinations of sata hard disks and the result was the same when writing a large amount of data, a drive would randomly disconnect from the system. I understand from reading sata controllers based on a promise chipset are much better under freebsd 7. In then end I trumped for a new motherboard with 6 sata ports on it and it is running 6 x 500gb drives in a ZFS array just perfectly. Regards Graeme ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: /bin/sh does not read profile
Good evening Betram et al. I've read the discussion thread as far as it went and would like to share my own solution to a similar problem, mapped onto the sh topic. Maybe it works. A little background: First of all, because my standard dialog shell is the system's C shell, the files important are /etc/cshrc with the settings, such as setenv, alias and path, furthermore /etc/csh.login to be executed after login, and /etc/csh.logout, executed after logout. Local to the user exist ~/.cshrc, ~/.login and ~/.logout which are used if present. In order to make X work properly with these settings, I have a kind of "two stages mechanism" which consists of the files ~/.xinitrc and ~/.xsession. The first one is used by X (xdm) to determine what to do after successful user login, e. g. start some programs and then exec the window manager / desktop environment. Note that both files are chmodded executable: % ll .xsession .xinitrc -rwxr-xr-x 1 poly pgm 807 Mar 3 02:46 .xinitrc* -rwxr-xr-x 1 poly pgm 43 Apr 27 2006 .xsession* The ~/.xsession doesn't do anything besides first incorporate settings from ~/.cshrc and then execute ~/.xinitrc. #!/bin/csh source ~/.cshrc exec ~/.xinitrc It is shebanged with the shell I want to use, which is the C shell. If ~/.xsession is called, it's last action is to execute ~/.xinitrc. If ~/.xsession is NOT called, ~/.xinitrc will be executed anyway. It does the following: #!/bin/sh [ -f ~/.xmodmaprc ] && xmodmap ~/.xmodmaprc xrandr --size 1400x1050 & xrandr --fb 1400x1050 & xsetroot -solid rgb:3b/4c/7a # ... your initializations 'n stuff here ... exec wmaker Note that this script is shebanged for sh again. Any X terminals started now (with csh inside) have the settings from ~/.cshrc. Mapped onto the initial sh problem, I'd suggest to create the two files mentioned as follows: ~/.xsession: #!/bin/sh [ -f ~/.shrc ] && . ~/.shrc [ -f ~/.profile ] && . ~/.profile exec ~/.xinitrc ~/.xinitrc: #!/bin/sh [ -f ~/.shrc ] && . ~/.shrc [ -f ~/.profile ] && . ~/.profile my_init_stuff_1 my_init_stuff_2 my_init_stuff_3 exec my_wm_startup Now any instance of sh started should be aware of the settings. Finally, please note that I'm not a guru for sh (or bash) because I do use sh only for scripting, and bash never. :-) -- Polytropon >From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Monitoring geom
I'm not sure what the 'best' way to monitor a geom is but this should, in theory, work. I wrote it while eating lunch, so obviously it hasn't been tested much and probably contains bugs. If someone, perhaps here on the list, could offer suggested changes (or a better way), that'd be great! Hopefully the indentation won't get screwed up too badly in transit. If so, ask and I can email it as a plain-text attachment. # Script below: #!/bin/sh # DESCRIPTION: # Heartbeat script to check the status of geoms. If a geom is degraded, # This script will email the administrator. # # USAGE: # Place this script in a directory which will be writable by the UID who will # be executing this script via cron. Setup a cron job to execute it at # regular intervals. # # BUGS: # THIS SCRIPT HAS NOT BEEN TESTED! USE AT YOUR OWN RISK! # admin="y...@example.com" host=`hostname` subject="Gmirror is degraded on $host" output=`gmirror status` count=`gmirror status | grep -i -c "degraded"` stateFile="gmirror.emailSent" if [ $count -gt 0 ] then # The geom is degraded. if [ ! -w "$stateFile" ] then # Send an email and remember that we sent an email: gmirror status | mail -s "$subject" "$admin" touch "$stateFile" fi fi # The geom is fine, remove the email state file. if [ $count -eq 0 ] then if [ -w "$stateFile" ] then rm "$stateFile" fi fi # End Script It's a thought, anyway. -Modulok- On 3/5/09, Mister Olli wrote: > Hi hi... > > What is the best way to monitor geom software raids (gmirror & gvinum > raid5)??? > > The solution I'm searching for should be a kind of script which checks > the status, and drops me an email if something is wrong. > > I found a nagios plugin, but currently I'm unable to invest enough time > to get nagios up and running for the customer... > > Thanks a lot... > > greetz > Olli > > ___ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" > ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
7.1-release and KDE4
Attempting to pkg_add kde4 fails because the lame3.97_1.tgz is not located in the latest ftp location. I and many others would appreciate it if you would add lame to latest folder so that this package will install. It was previously available in the 7.0 release. -- Joel Perry SBSC Registered Microsoft Partner 803.800.5650 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Quirk with latex-suite]
On Mar 5, 2009, at 2:28 AM, David Karapetyan wrote: Hello; I am having a funny little problem with latex-suite. Is that the name of the port? I don't see anything by that name in my ports tree. Googling around, I see that latex-suite is a plug-in for vim. When I press , and am prompted with a list of environments to insert, no matter which I choose, it is inserted with a superfluous " that appears right before the cursor. So, for example, \begin{equation} "cursor_is_here \end{equation} One thing to check is whether your version of latex-suite is appropriate for your version of vim. It may be that move to vim 7 broke something. Does latex-suite do this by default? What file do I need to edit to change this setting (I'd like to get rid of the quote mark). I'm afraid I've never used it (on any platform, though I think I might give it a try). If you don't get any useful help on the FreeBSD list, try joining https://lists.sourceforge.net/lists/listinfo/vim-latex-devel Also the Usenet group comp.text.tex is remarkably helpful. -j -- Jeffrey Goldberghttp://www.goldmark.org/jeff/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Free Pascal
On Fri, 06 Mar 2009 05:41:49 +1100 Ian Fitzgerald wrote: > Can anyone point me to a method of installing Free Pascal Compiler? > /usr/ports/lang/fpc or pkg_add -r fpc we use gpc (gnu pascal compiler): /usr/ports/lang/gpc or pkg_add -r gpc -- In friendship, prad ... with you on your journey Towards Freedom http://www.towardsfreedom.com (website) Information, Inspiration, Imagination - truly a site for soaring I's ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: SATA Port Multipliers in FreeBSD (6.3)
Why not just upgrade to 7-Stable and then use these: http://www.newegg.com/Product/Product.aspx?Item=N82E16815121009 they cost less than port multipliers. They don't do RAID, but then if you're on 7-Stable, you can use ZFS zraid. or use geom based RAIDs and UFS thanks for URL, anyway new machines usually don't have PCI-X ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Free Pascal
Can anyone point me to a method of installing Free Pascal Compiler? I am running FBSD 7.1, with KDE4. The last attempt deleted a file used by X-windows (and perhaps others), but I had no specific instructions as a guide. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: SATA Port Multipliers in FreeBSD (6.3)
Christopher Key wrote: Hello, I'm looking to substantially expand the storage on my FreeBSD 6.3 home media server. With regards hardware, the simplest way to attach large numbers of drives seem to be to use SATA port multipliers, but I've been unable to find any consensus on their level of support in FreeBSD. I'm currently looking at a RocketRAID 2314 and SiI3726 based port multipliers. Has any had any experience with this combination? Why not just upgrade to 7-Stable and then use these: http://www.newegg.com/Product/Product.aspx?Item=N82E16815121009 they cost less than port multipliers. They don't do RAID, but then if you're on 7-Stable, you can use ZFS zraid. Elliot ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Monitoring geom
Hi hi... What is the best way to monitor geom software raids (gmirror & gvinum raid5)??? The solution I'm searching for should be a kind of script which checks the status, and drops me an email if something is wrong. I found a nagios plugin, but currently I'm unable to invest enough time to get nagios up and running for the customer... Thanks a lot... greetz Olli ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Double Post
Sorry for the double posting there guys My session timed out and i didnt think the 1st message sent. I don't remember re-sending it, but i was in the middle of my morning coffee at the time, so not sure what happened there. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
What's the best way to destroy a geom mirror?
I've created a USB boot disk that is used to clone itself onto the systems hard drives, setting up mirrored file systems in the process. The main difficulty I'm having is reimaging a system with an existing OS whose drives are already configured in a mirror. I want of course to destroy the mirror and create a complete new one, but I can't find the right process to accomplish this reliably. I am doing the following: # Cycle through each /dev/adNN drive and clean it. This has to be # done before the geom_mirror driver is loaded. disks=(`ls /dev/ad* | grep -v "s" | sed -e "s|/dev/||" -e "s|ad||" | sort -g`) for ((i = 0 ; i < ${#dis...@]} ; i++)); do disk=ad${disks[i]} dd if=/dev/zero of=/dev/${disk} bs=512 count=79 done # Partition the drives as needed ... # Create the mirror, starting with the first drive in the list gmdisk=ad${disks[0]} gmirror load gmirror label -v -n -b round-robin gm0 ${gmdisk}s1 This is where the problem occurs. If there was already a mirrored file system previously active on the system being reimaged, the label operation complains that it can't store the metadata on the indicated drive: gmirror: Can't store metadata on ad4s1: Operation not permitted. If I make sure the existing mirrors are torn down first by iterating through the drives and doing a "remove" operation, this can solve the problem, but in some cases the mirror is in a suspect state and I've seen the "gmirror load" command hang idefiinitely. So I don't want to do a load command before I destroy the old mirrors, but I can't seem to find a way to reliably destroy the old mirrors. Can anyone suggest a way to do this? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: USB key with 7.5 GByte but no space left on device after 4 GByte written
Matthias Apitz wrote: to end this threat, I did: # dd if=/dev/zero of=/dev/da0 bs=64k count=1 # newfs_msdos /dev/da0 # mount -t msdosfs /dev/da0 /mnt # time cat file file file > /mnt/big cat: stdout: File too large 0.276u 19.421s 14:36.63 2.2%11+1180k 33887+65536io 0pf+0w # df -kh /mnt FilesystemSizeUsed Avail Capacity Mounted on /dev/da0 7.5G4.0G3.5G53%/mnt i.e. it writes the maximal file size of 4G in FAT32 and 3.5G are left as free; the write speed is 4294963200 in 14:36.63 minutes, i.e. 4902926 per sec; matthias Probably I'm just making more noise; you didn't give any hardware details. Some manufacturers (I have a SanDisk Cruzer) are now putting multiple partitions on a flash stick; the Cruzer has one which, on Windows,emulates a CD-ROM drive (dunno why a CD emulation would take up 3.5 GB, tho). Kevin Kinsey -- It is sweet to let the mind unbend on occasion. -- Quintus Horatius Flaccus (Horace) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: /bin/sh does not read profile
On Thu, Mar 05, 2009 at 02:23:52PM +0100, Bertram Scharpf wrote: > > Hi Frank, Hi Bertram, > > Am Donnerstag, 05. Mär 2009, 04:15:05 + schrieb Frank Shute: > > On Wed, Mar 04, 2009 at 04:08:03PM +0100, Bertram Scharpf wrote: > > > from "man sh": > > > > > >Invocation > > > [...] the shell inspects > > > argument 0, and if it begins with a dash (`-'), the shell is also > > > consid- > > > ered a login shell. [...] A login shell first reads commands from > > > the > > > files /etc/profile and then .profile in a user's home directory, if > > > they > > > exist. [...] > > > > > > I use Slim (X login manager) which calls > > > > > > exec /bin/sh - ~/.xinitrc > > > > I've never before seen the syntax you've used and I think it comes > > from a misunderstanding of the manpage for sh and/or it's a bashism or > > a typo. > > It's the original FreeBSD port. I suggest you take up your problem with the maintainer. (Mentioned at top of /usr/ports/x11/slim/Makefile). It should "just work" if that's the case. > > > E.g: > > > > /bin/sh -c somecommand (login shell - arg 0 starts with a dash) > > Sorry, this doesn't call /etc/profile either. You're right. This is what my investigations reveal: $ /bin/sh date date: Can't open date: No such file or directory Not reading /etc/profile or ~/.profile $ /bin/sh -c date Thu Mar 5 16:33:17 GMT 2009 Reading ~/.profile but not /etc/profile I'm afraid I'm not a shell guru so I don't understand that particular weirdness. I think we need a shell wizard to explain it to us - these shells and sub-shells etc. are notoriously weird in my experience and half the time I just sacrifice goats to make it work. It could be that the manpage is wrong and the shell is just meant to read ~/.profile (or I'm reading it wrong). If nobody replies on this list, I suggest you post with your problem to hackers@ > > $ uname -v > FreeBSD 7.1-RELEASE #0: Thu Jan 1 14:37:25 UTC 2009 > r...@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC $ uname -v FreeBSD 7.1-RELEASE-p2 #0: Wed Jan 28 21:45:37 GMT 2009 r...@orange.esperance-linux.co.uk:/usr/obj/usr/src/sys/ORANGE_MP2 BTW, my user shell is ksh. > > Bertram > Regards, -- Frank Contact info: http://www.shute.org.uk/misc/contact.html ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: USB key with 7.5 GByte but no space left on device after 4 GByte written
On March 5, 2009, Matthias Apitz wrote: > El día Thursday, March 05, 2009 a las 10:48:52AM +0100, Wojciech Puchar > to end this threat, I did: > > # dd if=/dev/zero of=/dev/da0 bs=64k count=1 > # newfs_msdos /dev/da0 > # mount -t msdosfs /dev/da0 /mnt > # time cat file file file > /mnt/big > cat: stdout: File too large > 0.276u 19.421s 14:36.63 2.2%11+1180k 33887+65536io 0pf+0w > > # df -kh /mnt > FilesystemSizeUsed Avail Capacity Mounted on > /dev/da0 7.5G4.0G3.5G53%/mnt > > i.e. it writes the maximal file size of 4G in FAT32 and 3.5G are left as > free; Seems to work as it should. The maximum allowed file size on a FAT32 file system is 4GB (-1 byte). See http://en.wikipedia.org/wiki/File_Allocation_Table#FAT32 Cheers, -- Norbert Papke. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
USB thumbdrive keeps automatically remounting
I am running freebsd 7.1, with Gnome. I have gnome_enable="yes" and dbus_enable="yes" in my rc.conf and my usb key gets auto-mounted when i plug it in. My problem is, when i unmount the drive (either by right clicking the icon on the desktop, or by umount command) the drive immediately remounts, and the window showing files on the drive pops up again. The only way i can remove the drive is by killing hald, remove the drive, and restart hald. This DOES NOT happen with any other usb drives i have used on this system, including mp3 players. The only difference i can find (other than size) between this usb device and others I've used, is that this one shows up as /dev/da0(s1) AND /dev/msdosfs/LEXAR, whereas the others only show up as /dev/da0(s1). All get mounted in /media/ I've been looking into this on and off since December (got it for Xmas), and have yet to find a solution... Does anyone have any insight as to what could be causing this problem on this particular device? I've tried reading up on hald to see if i could find anything to help but I'm stumped. I tried one suggestion on creating/editing an fdi file i had found on a forum, but to no avail. Asking for help is really a last resort for me, this is the first time that patience, persistence, and a good deal of googling/man page reading hasn't solve a problem for me. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
USB thumbdrive keeps automatically remounting
I am running freebsd 7.1, with Gnome. I have gnome_enable="yes" and dbus_enable="yes" in my rc.conf and my usb key gets auto-mounted when i plug it in. My problem is, when i unmount the drive (either by right clicking the icon on the desktop, or by umount command) the drive immediately remounts, and the window showing files on the drive pops up again. The only way i can remove the drive is by killing hald, remove the drive, and restart hald. This DOES NOT happen with any other usb drives i have used on this system, including mp3 players. The only difference i can find (other than size) between this usb device and others I've used, is that this one shows up as /dev/da0(s1) AND /dev/msdosfs/LEXAR, whereas the others only show up as /dev/da0(s1). All get mounted in /media/ I've been looking into this on and off since December (got it for Xmas), and have yet to find a solution... Does anyone have any insight as to what could be causing this problem on this particular device? I've tried reading up on hald to see if i could find anything to help but I'm stumped. I tried one suggestion on creating/editing an fdi file i had found on a forum, but to no avail. Asking for help is really a last resort for me, this is the first time that patience, persistence, and a good deal of googling/man page reading hasn't solve a problem for me. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Battery powered, SBC that can run BSD
At 14:53 05/03/2009, you wrote: Hope this isn't too off topic... And I'm not sure of my terminology... I'm looking for a small, single board computer that can run for a week or two on batteries (so very low power drain), topped up by solar cells when the sun is out, and that can run some sort of unix... preferably one of the BSDs. No hard drive, obviously, or any other power draining peripherals. The user interface would be a low powered LCD display plus some buttons. The application is for a custom measuring instrument that would run in a marine environment. I've been Googling for it for the last hour, but can't find what I'm looking for. Any ideas much appreciated. pcengines.ch I've got an ALIX2d3 working as router for the Internet connection and no problems. HTH -- John - Useful Acronyms: GPL = Greedy Pengüin Licence ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Battery powered, SBC that can run BSD
On Mar 5, 2009, at 9:12 AM, George Davidovich wrote: soekris.com Nice. Thanks. -- John ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
SATA Port Multipliers in FreeBSD (6.3)
Hello, I'm looking to substantially expand the storage on my FreeBSD 6.3 home media server. With regards hardware, the simplest way to attach large numbers of drives seem to be to use SATA port multipliers, but I've been unable to find any consensus on their level of support in FreeBSD. I'm currently looking at a RocketRAID 2314 and SiI3726 based port multipliers. Has any had any experience with this combination? Regards, Christopher Key ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: USB key with 7.5 GByte but no space left on device after 4 GByte written
El día Thursday, March 05, 2009 a las 03:26:12PM +0100, Paul B. Mahol escribió: > On 3/5/09, Matthias Apitz wrote: > > El dia Thursday, March 05, 2009 a las 10:48:52AM +0100, Wojciech Puchar > > escribio: > > > >> >>formatted properly? > >> > > >> >I did a 'ls -l /dev/da*' after key insert and there was only /dev/da0; > >> >maybe I should do > >> > > >> ># newfs_msdos /dev/da0 > >> > > >> >??? > >> > >> to be sure do > >> > >> dd if=/dev/zero of=/dev/da0 bs=64k count=1 > >> > >> before to clean anything from beginning, if any mess is there. > > > > to end this threat, I did: > > > > # dd if=/dev/zero of=/dev/da0 bs=64k count=1 > > # newfs_msdos /dev/da0 > > # mount -t msdosfs /dev/da0 /mnt > > # time cat file file file > /mnt/big > > cat: stdout: File too large > > 0.276u 19.421s 14:36.63 2.2%11+1180k 33887+65536io 0pf+0w > > > > # df -kh /mnt > > FilesystemSizeUsed Avail Capacity Mounted on > > /dev/da0 7.5G4.0G3.5G53%/mnt > > > > i.e. it writes the maximal file size of 4G in FAT32 and 3.5G are left as > > free; > > > > the write speed is > > 4294963200 in 14:36.63 minutes, i.e. 4902926 per sec; > > > should'nt you first try to measure with dd(1) how da0 is big > before we start blaming msdosfs: > > # dd if=/dev/da0 of=/dev/null bs=1m ? I've not blamed anybody; please check the full thread; I've reported a problem with a lot of details and got help; the device is around 7.7G but wasn't useable like that as it was formated by the factory; nothing more; matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.oclc.org/ http://www.UnixArea.de/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: USB key with 7.5 GByte but no space left on device after 4 GByte written
On 3/5/09, Matthias Apitz wrote: > El dia Thursday, March 05, 2009 a las 10:48:52AM +0100, Wojciech Puchar > escribio: > >> >>formatted properly? >> > >> >I did a 'ls -l /dev/da*' after key insert and there was only /dev/da0; >> >maybe I should do >> > >> ># newfs_msdos /dev/da0 >> > >> >??? >> >> to be sure do >> >> dd if=/dev/zero of=/dev/da0 bs=64k count=1 >> >> before to clean anything from beginning, if any mess is there. > > to end this threat, I did: > > # dd if=/dev/zero of=/dev/da0 bs=64k count=1 > # newfs_msdos /dev/da0 > # mount -t msdosfs /dev/da0 /mnt > # time cat file file file > /mnt/big > cat: stdout: File too large > 0.276u 19.421s 14:36.63 2.2%11+1180k 33887+65536io 0pf+0w > > # df -kh /mnt > FilesystemSizeUsed Avail Capacity Mounted on > /dev/da0 7.5G4.0G3.5G53%/mnt > > i.e. it writes the maximal file size of 4G in FAT32 and 3.5G are left as > free; > > the write speed is > 4294963200 in 14:36.63 minutes, i.e. 4902926 per sec; should'nt you first try to measure with dd(1) how da0 is big before we start blaming msdosfs: # dd if=/dev/da0 of=/dev/null bs=1m ? -- Paul ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Battery powered, SBC that can run BSD
On Thu, Mar 05, 2009 at 08:53:45AM -0500, John Almberg wrote: > I'm looking for a small, single board computer that can run for a > week or two on batteries (so very low power drain), topped up by > solar cells when the sun is out, and that can run some sort of > unix... preferably one of the BSDs. No hard drive, obviously, or any > other power draining peripherals. > > The user interface would be a low powered LCD display plus some > buttons. > > The application is for a custom measuring instrument that would run > in a marine environment. soekris.com -- George ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: USB key with 7.5 GByte but no space left on device after 4 GByte written
El día Thursday, March 05, 2009 a las 10:48:52AM +0100, Wojciech Puchar escribió: > >>formatted properly? > > > >I did a 'ls -l /dev/da*' after key insert and there was only /dev/da0; > >maybe I should do > > > ># newfs_msdos /dev/da0 > > > >??? > > to be sure do > > dd if=/dev/zero of=/dev/da0 bs=64k count=1 > > before to clean anything from beginning, if any mess is there. to end this threat, I did: # dd if=/dev/zero of=/dev/da0 bs=64k count=1 # newfs_msdos /dev/da0 # mount -t msdosfs /dev/da0 /mnt # time cat file file file > /mnt/big cat: stdout: File too large 0.276u 19.421s 14:36.63 2.2%11+1180k 33887+65536io 0pf+0w # df -kh /mnt FilesystemSizeUsed Avail Capacity Mounted on /dev/da0 7.5G4.0G3.5G53%/mnt i.e. it writes the maximal file size of 4G in FAT32 and 3.5G are left as free; the write speed is 4294963200 in 14:36.63 minutes, i.e. 4902926 per sec; matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.oclc.org/ http://www.UnixArea.de/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
RE: ClamAV execusion died without error messages
I did not find any other error messages in log files. The following lines appeared in the section for "kernel log messages" in daily email message for Security Run Output. > pid 840 (freshclam), uid 1#: exited on signal 11 > pid 875 (clamd), uid 1#: exited on signal 10 I am not sure what they mean exactly. Thanks. - Ming -Original Message- From: Bill Moran [mailto:wmo...@potentialtech.com] Sent: Sunday, March 01, 2009 6:37 PM To: Ming Tang Cc: freebsd-questions@freebsd.org Subject: Re: ClamAV execusion died without error messages "Ming Tang" wrote: > > Bill, > > Thank you for the response. > > I tried and did not figure out where is the problem. I am attaching > the command line prompts and clamd.log and freshclam.log content here. > > ns1# > ns1# ./clamav-clamd.sh status > clamav_clamd is not running. > ns1# ./clamav-clamd.sh start > Starting clamav_clamd. > LibClamAV Warning: ** > LibClamAV Warning: *** The virus database is older than 7 days! *** > LibClamAV Warning: *** Please update it as soon as possible.*** > LibClamAV Warning: ** > ns1# ./clamav-clamd.sh status > clamav_clamd is not running. > ns1# > > ns1# cat clamd.log > +++ Started at Sat Feb 28 10:43:36 2009 > clamd daemon 0.94.1 (OS: freebsd5.4, ARCH: i386, CPU: i386) Running as > user clamav (UID 1#, GID 1#) Log file size limited to 1048576 bytes. > Reading databases from /var/db/clamav > Not loading PUA signatures. > Loaded 455125 signatures. > LOCAL: Removing stale socket file /var/run/clamav/clamd.sock > LOCAL: Unix socket file /var/run/clamav/clamd.sock > LOCAL: Setting connection queue length to 15 > Limits: Global size limit set to 104857600 bytes. > Limits: File size limit set to 26214400 bytes. > Limits: Recursion level limit set to 16. > Limits: Files limit set to 1. > Archive support enabled. > Algorithmic detection enabled. > Portable Executable support enabled. > ELF support enabled. > Mail files support enabled. > OLE2 support enabled. > PDF support enabled. > HTML support enabled. > Self checking every 1800 seconds. > > .. > > ns1# > ns1# ./clamav-freshclam.sh status > clamav_freshclam is not running. > ns1# ./clamav-freshclam.sh start > Starting clamav_freshclam. > ns1# ./clamav-freshclam.sh status > clamav_freshclam is not running. > ns1# > > ns1# cat freshclam1.log > -- > freshclam daemon 0.94.1 (OS: freebsd5.4, ARCH: i386, CPU: i386) That's certainly strange. Try starting the processes manually instead of using the rc scripts, and see if they exit with an error of some sort. Also, I seem to remember having difficult with permissions under some circumstances, where the processes couldn't write to directories they needed -- check that both clamd and freshclam are running as the same user/group. See if you're getting core files anywhere (check /var/log/messages for coredump messages). Audit your config files and make sure nothing is out of sorts. Sorry I can't give you any more specific information, but I've not seen the problem you're having. -- Bill Moran http://www.potentialtech.com ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: ClamAV execusion died without error messages
In response to "Ming Tang" : > I did not find any other error messages in log files. The following lines > appeared in the section for "kernel log messages" in daily email message for > Security Run Output. > > > pid 840 (freshclam), uid 1#: exited on signal 11 This is a "segmentation violation". It means the program is trying to access memory that it never allocated (i.e., it's trying to access memory belonging to another process). This generally happens in 1 of 3 cases: 1) The program is a virus, etc trying to steal data from other programs. 2) The program was written poorly and has memory management bugs. 3) Your hardware (RAM) is buggy and memory bits are flipping by accident causing unpredictable memory access. http://en.wikipedia.org/wiki/Segmentation_violation > > pid 875 (clamd), uid 1#: exited on signal 10 This is a more unusual error, but still related to memory: http://en.wikipedia.org/wiki/Bus_error This error is more difficult to create using software than a segfault. My theory at this point is that you either a) downloaded precompiled packages that are not supported by your hardware. b) built these from ports with funky CFLAGS settings My recommendation would be to start out by deinstalling clam, and rebuilding it from ports, ensuring that your /etc/make.conf settings are all set to defaults. If the problem persists, install a program like memtest86, or use some other RAM tester to ensure that your hardware is solid. HTH -- Bill Moran http://www.potentialtech.com http://people.collaborativefusion.com/~wmoran/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Battery powered, SBC that can run BSD
Hope this isn't too off topic... And I'm not sure of my terminology... I'm looking for a small, single board computer that can run for a week or two on batteries (so very low power drain), topped up by solar cells when the sun is out, and that can run some sort of unix... preferably one of the BSDs. No hard drive, obviously, or any other power draining peripherals. The user interface would be a low powered LCD display plus some buttons. The application is for a custom measuring instrument that would run in a marine environment. I've been Googling for it for the last hour, but can't find what I'm looking for. Any ideas much appreciated. -- John ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: /bin/sh does not read profile
Hi Frank, Am Donnerstag, 05. Mär 2009, 04:15:05 + schrieb Frank Shute: > On Wed, Mar 04, 2009 at 04:08:03PM +0100, Bertram Scharpf wrote: > > from "man sh": > > > >Invocation > > [...] the shell inspects > > argument 0, and if it begins with a dash (`-'), the shell is also > > consid- > > ered a login shell. [...] A login shell first reads commands from the > > files /etc/profile and then .profile in a user's home directory, if > > they > > exist. [...] > > > > I use Slim (X login manager) which calls > > > > exec /bin/sh - ~/.xinitrc > > I've never before seen the syntax you've used and I think it comes > from a misunderstanding of the manpage for sh and/or it's a bashism or > a typo. It's the original FreeBSD port. > E.g: > > /bin/sh -c somecommand (login shell - arg 0 starts with a dash) Sorry, this doesn't call /etc/profile either. $ uname -v FreeBSD 7.1-RELEASE #0: Thu Jan 1 14:37:25 UTC 2009 r...@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: php5 changes in release 8.0
In response to Fbsd1 : > Having problems installing php5 in 7.1 so tried 8.0 and see that in > release 8.0 php5 in defaulting to apache 22 when apache interface is > selected from the make config menu. The config menu should give option > to select apache 13 or apache 22 not force apache 22 on the user > community. Is the maintainer going to change the config menu before php5 > 8.0 is released for production? If you want a different version of Apache, all you have to do is install Apache first, then PHP will use the version you have installed. It's always been that way. It's just that up till now the default was 1.3. It's _LOOONG_ past time when the default should have moved to 2.X. -- Bill Moran http://www.potentialtech.com http://people.collaborativefusion.com/~wmoran/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: backup files from editor
Hi prad, Le 5 mars 09 à 09:15, prad a écrit : editors can produce backup files - eg emacs adds a ~ to the backup file. the backup file keeps getting changed as you make changes to the original so you i'm wondering what the point of them is. Please refer to the Emacs manual (info m Emacs) to learn about the precise rule governing backup files. Just like you, I do not like to have all of these backup files springing off everywhere in my filesystem. Instead of turning backup off, I tell emacs to put them in the `.emacs.d/backup' I created for this purpose: (setq backup-directory-alist '((".*" . "~/.emacs.d/backup"))) You can get a finer control on backup location, read documentation for the bariable `backup-directory-alist' to discover how. Note that this setup tends to produce super long file named in `~/.emacs.d/backup' which may break some fragile systems (e.g. I encountered problems when preparing ISO filesystems not supporting these long names). i turn off backups (so my directory doesn't fill up with ~ files), but then i also don't space things properly and occasionally use cryptic names when programming (from what my son tells me), so i figure i should change some of these bad habits. how do people make use of the backup feature when they program? Note that basic functionalities of RCS systems are well integrated in Emacs (see the Tools menu), and I systematically use SVN (in the ports) as a sophisticated backup system when I edit files that count. Note that the FreeBSD wiki features an intereting comparison of the various RCS systems available, so if you are interested with this approach, you can look for this comparison and make your choice. You can also use RCS without the (moderate) hassle to set up a repository, Emacs has support for an `immediate' RCS system, doubling the files you want to keep track of with a `,v' companion file, containing revision history. (IIRC, this RCS system is the ancestor of CVS, but I cannot find again the name, sorry about this.) -- All the best, Michaël ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
FreeBSD 7.1-STABLE/amd64: pkg_delete core dumps
Since several weeks now /usr/sbin/pkg_delete core dumps whenever I try to delete an obsolete package or portupgrade tries to do so. The box is a Quad Core most recent FreeBSD 7.1-STABLE box as built world of today's sources. Regards, Oliver ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
password protection for RewriteRule
List; I am using apache2.2 I need to do a password protected access toa website eg www.mydomain.com I have this Vhost configuration in my httpd-Vhost.conf ServerName mydomain.com RewriteEngine On RewriteRule ^/(.*) http://127.0.0.1:8081/VirtualHostBase/http/www.mydomain.com:80/site1/VirtualHostRoot/$1 [L,P] ErrorLog /var/log/apache/mysite.com/error_log CustomLog /var/log/apache/mysite.com/access.log combined Now anybody in their browse type www.mydomain.com they can view my site , but I want to make them to enter a username & password to view the site . How can I do apassword protected access to my site for this RewriteRule based Vhost ( I know that I can do .htaccess & .htpasswd based authentication for directories in apache . ) But for RewriteRule is it possible ? How ? I appreciate very much for your valuable suggestions & hints to how to do that . Thanks in advance Dhanesh. _ So many new options, so little time. Windows Live Messenger. http://www.microsoft.com/india/windows/windowslive/messenger.aspx___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
php5 changes in release 8.0
Having problems installing php5 in 7.1 so tried 8.0 and see that in release 8.0 php5 in defaulting to apache 22 when apache interface is selected from the make config menu. The config menu should give option to select apache 13 or apache 22 not force apache 22 on the user community. Is the maintainer going to change the config menu before php5 8.0 is released for production? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: USB key with 7.5 GByte but no space left on device after 4 GByte written
formatted properly? I did a 'ls -l /dev/da*' after key insert and there was only /dev/da0; maybe I should do # newfs_msdos /dev/da0 ??? to be sure do dd if=/dev/zero of=/dev/da0 bs=64k count=1 before to clean anything from beginning, if any mess is there. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: USB key with 7.5 GByte but no space left on device after 4 GByte written
formatted properly? I did a 'ls -l /dev/da*' after key insert and there was only /dev/da0; maybe I should do # newfs_msdos /dev/da0 yes. anyway - windoze at least XP no more needs partitions on such devices. ??? Thx matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.oclc.org/ http://www.UnixArea.de/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: USB key with 7.5 GByte but no space left on device after 4 GByte written
El día Thursday, March 05, 2009 a las 01:09:27AM -0800, Charles Oppermann escribió: > > > > 08:48:33 rebelion kernel: da0 at umass-sim0 bus 0 target 0 lun 0 Mar 5 > > > 08:48:33 rebelion kernel: da0: Removable > > > Direct Access SCSI-2 device Mar 5 08:48:33 rebelion kernel: da0: > > > 40.000MB/s transfers > > > Mar 5 08:48:33 rebelion kernel: da0: 7712MB (15794176 512 byte sectors: > > > 255H 63S/T 983C) Mar 5 08:48:35 rebelion kernel: GEOM_LABEL: Label for > > > provider da0 is msdosfs/pen disk. > > > # mount -t msdosfs /dev/da0 /mnt > > > > msdosfs bug or strangely made msdos filesystem on that pendrive. > > if you use it FreeBSD only, clear first 4kB with dd, then do newfs and > > use as UFS > > if not - use newfs_msdos > > Wouldn't it be /dev/da0s1? Is it possible that the drive hasn't been > formatted properly? I did a 'ls -l /dev/da*' after key insert and there was only /dev/da0; maybe I should do # newfs_msdos /dev/da0 ??? Thx matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.oclc.org/ http://www.UnixArea.de/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: USB key with 7.5 GByte but no space left on device after 4 GByte written
> > 08:48:33 rebelion kernel: da0 at umass-sim0 bus 0 target 0 lun 0 Mar 5 > > 08:48:33 rebelion kernel: da0: Removable > > Direct Access SCSI-2 device Mar 5 08:48:33 rebelion kernel: da0: > > 40.000MB/s transfers > > Mar 5 08:48:33 rebelion kernel: da0: 7712MB (15794176 512 byte sectors: > > 255H 63S/T 983C) Mar 5 08:48:35 rebelion kernel: GEOM_LABEL: Label for > > provider da0 is msdosfs/pen disk. > > # mount -t msdosfs /dev/da0 /mnt > > msdosfs bug or strangely made msdos filesystem on that pendrive. > if you use it FreeBSD only, clear first 4kB with dd, then do newfs and > use as UFS > if not - use newfs_msdos Wouldn't it be /dev/da0s1? Is it possible that the drive hasn't been formatted properly? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: Quirk with latex-suite]
Hello; I am having a funny little problem with latex-suite. When I press , and am prompted with a list of environments to insert, no matter which I choose, it is inserted with a superfluous " that appears right before the cursor. So, for example, \begin{equation} "cursor_is_here \end{equation} Does latex-suite do this by default? What file do I need to edit to change this setting (I'd like to get rid of the quote mark). it's really NTG. ask on some TeX support groups. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: USB key with 7.5 GByte but no space left on device after 4 GByte written
Mar 5 08:48:33 rebelion kernel: umass0: on uhub4 Mar 5 08:48:33 rebelion kernel: da0 at umass-sim0 bus 0 target 0 lun 0 Mar 5 08:48:33 rebelion kernel: da0: Removable Direct Access SCSI-2 device Mar 5 08:48:33 rebelion kernel: da0: 40.000MB/s transfers Mar 5 08:48:33 rebelion kernel: da0: 7712MB (15794176 512 byte sectors: 255H 63S/T 983C) Mar 5 08:48:35 rebelion kernel: GEOM_LABEL: Label for provider da0 is msdosfs/pen disk. # mount -t msdosfs /dev/da0 /mnt Mar 5 08:50:18 rebelion kernel: GEOM_LABEL: Label msdosfs/pen disk removed. # df -kh /mnt FilesystemSizeUsed Avail Capacity Mounted on /dev/da0 7.5G 48K7.5G 0%/mnt # ls -lh file total 3745826 -r--r--r-- 1 guru wheel 1,7G 16 may 2007 file # time cat file file file > /mnt/big cat: stdout: No space left on device 0.194u 13.064s 8:46.32 2.5% 10+1100k 33429+65536io 0pf+0w msdosfs bug or strangely made msdos filesystem on that pendrive. if you use it FreeBSD only, clear first 4kB with dd, then do newfs and use as UFS if not - use newfs_msdos ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Quirk with latex-suite]
Hello; I am having a funny little problem with latex-suite. When I press , and am prompted with a list of environments to insert, no matter which I choose, it is inserted with a superfluous " that appears right before the cursor. So, for example, \begin{equation} "cursor_is_here \end{equation} Does latex-suite do this by default? What file do I need to edit to change this setting (I'd like to get rid of the quote mark). -- -- Best, David Karapetyan http://davidkarapetyan.com University of Notre Dame Department of Mathematics 255 Hurley Hall Notre Dame, IN 46556-4618 Phone: 574-631-5706 Cell: 202-460-5173 Fax: 574-631-6579 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
backup files from editor
editors can produce backup files - eg emacs adds a ~ to the backup file. the backup file keeps getting changed as you make changes to the original so you i'm wondering what the point of them is. i turn off backups (so my directory doesn't fill up with ~ files), but then i also don't space things properly and occasionally use cryptic names when programming (from what my son tells me), so i figure i should change some of these bad habits. how do people make use of the backup feature when they program? -- In friendship, prad ... with you on your journey Towards Freedom http://www.towardsfreedom.com (website) Information, Inspiration, Imagination - truly a site for soaring I's ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
USB key with 7.5 GByte but no space left on device after 4 GByte written
Hello, I've just bought a new USB key. The label claims "8 GByte" which is the first lying; it shows up as only ~7.5 GByte in /var/log/messages, but there seems to be another bigger problem: Mar 5 08:48:32 rebelion root: Unknown USB device: vendor 0x1307 product 0x0165 bus uhub4 Mar 5 08:48:33 rebelion kernel: umass0: on uhub4 Mar 5 08:48:33 rebelion kernel: da0 at umass-sim0 bus 0 target 0 lun 0 Mar 5 08:48:33 rebelion kernel: da0: Removable Direct Access SCSI-2 device Mar 5 08:48:33 rebelion kernel: da0: 40.000MB/s transfers Mar 5 08:48:33 rebelion kernel: da0: 7712MB (15794176 512 byte sectors: 255H 63S/T 983C) Mar 5 08:48:35 rebelion kernel: GEOM_LABEL: Label for provider da0 is msdosfs/pen disk. # mount -t msdosfs /dev/da0 /mnt Mar 5 08:50:18 rebelion kernel: GEOM_LABEL: Label msdosfs/pen disk removed. # df -kh /mnt FilesystemSizeUsed Avail Capacity Mounted on /dev/da0 7.5G 48K7.5G 0%/mnt # ls -lh file total 3745826 -r--r--r-- 1 guru wheel 1,7G 16 may 2007 file # time cat file file file > /mnt/big cat: stdout: No space left on device 0.194u 13.064s 8:46.32 2.5% 10+1100k 33429+65536io 0pf+0w # ls -lh /mnt/big -rwxr-xr-x 1 root wheel 4,0G 5 mar 09:01 /mnt/big # df -kh /mnt FilesystemSizeUsed Avail Capacity Mounted on /dev/da0 7.5G7.5G 0B 100%/mnt How is this possible that ls(1) shows 4G while df(1) 7.5G used? Thx matthias -- Matthias Apitz Manager Technical Support - OCLC GmbH Gruenwalder Weg 28g - 82041 Oberhaching - Germany t +49-89-61308 351 - f +49-89-61308 399 - m +49-170-4527211 e - w http://www.oclc.org/ http://www.UnixArea.de/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"