No keyboard after ports update, 2x moused_enable="YES" culprit
System Info: 8.1-RELEASE FreeBSD 8.1-RELEASE #0: Tue Aug 10 11:43:36 EDT 2010, and xorg-server-1.7.7_1,1 X.Org X server and related programs Not having updated my ports in nearly 1 year, I did a sledgehammer approach with portmaster as follows: portmaster -D -R -f -m BATCH=yes -a This took a few rounds. I did this as I started having all sorts of issues after running down various port problems when going through a rather long /usr/ports/UPDATING. Maybe not the best method, but I think everything is finally done. After restarting X, prior to any reboot, I lost the mouse in X. So I figured a reboot was in order. Issue: After a reboot I found I had no keyboard -- not even in console mode. Trying the obvious first, I unplugged the keyboard and plugged it back in the ps2 port, and keyboard worked immediately -- this was repeatable. Reboot, same thing, no keyboard. Some digging around revealed that I had the following line in /etc/rc.conf twice: moused_enable="YES" I removed one of these (which I guess was the culprit) and left one as it should have been, then all was well. Keyboard found at reboot, no further issues -- mouse was available in X too. I have no idea why I had moused_enable="YES" in there twice, whether it was from an old or recent rc.conf edit, but it clearly seems to have been causing the issue. Other (maybe valuable) info: I am running hald in /etc/rc.conf as follows: dbus_enable="YES" hald_enable="YES" ...and these were there prior to the ports update. I figured this "issue" may be of some value since I did not do any src updates. I'll be glad to try to help or test this further, but keep in mind I'm not a coder. Thanks, Rob ___ 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"
Unable to boot installer
Hi Daniel, it seems that there is a problem with UEFI/atkbd, since 7.2 and 8.0 work without any boot problem (BTW that's not a solution because there is no NIC support) and 8.1 and 8.2 hang. I met the same problem with my x220 which is not resolved but you can follow this workaround: 1 - Plug an external USB keyboard 2 - boot with a memstick with 8.2 3 - In the loader: set hint.atkbd.0.disabled=1 boot 4 - Follow install via network or other 5 - Setup BIOS: Config > USB UEFI BIOS > disabled 6 - reboot You could try with a CD, directly without UEFI, it may work as is (I didn't burn it for the exercise). That's what worked for me. Regards, -- Cybil Courraud ___ 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: Piping find into tar...
> | while read X; do ; done > often gets around many of the problems. But causes way more. I suggest you read http://www.dwheeler.com/essays/filenames-in-shell.html and http://www.dwheeler.com/essays/fixing-unix-linux-filenames.html > -- > > Walter M. Pawley > Wump Research & Company > 676 River Bend Road, Roseburg, OR 97471 > 541-672-8975 > ___ > 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" > -- Eitan Adler ___ 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: find and remove ?
> I'm finally getting around to removing any remnants of frontpage. There are > 1000s of _vti_* directories across several domains and need to clean those > out. What's the best way to run a short script or command set to find and > delete those? man 1 find find /path/to/start/deleting -type d -name _vti_\* -delete run the command without -delete to see what will be removed. -- Eitan Adler ___ 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"
find and remove ?
Folks: Am running FBSD-7.x I'm finally getting around to removing any remnants of frontpage. There are 1000s of _vti_* directories across several domains and need to clean those out. What's the best way to run a short script or command set to find and delete those? Appreciate any suggestions. Jack (^_^) Happy trails, Jack L. Stone System Admin Sage-american ___ 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: Established method to enable suid scripts?
On Sat, May 14, 2011 at 3:09 PM, Randal L. Schwartz wrote: >> "Pan" == Pan Tsu writes: [...] > (Untested) why not just "#!/usr/local/bin/sudo" ? It'll be given the > filename as an argument. Precisely. I think this thread should be forked to something like "suid versus sudo for scripts"? I second the sudo idea instead of suiding the interpreter, and it's a better solution to the one I have used in the past like C-wrapping and suiding specific operations. ___ 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: Established method to enable suid scripts?
> "Pan" == Pan Tsu writes: Pan> ...a shebang can be written with sudo in mind, e.g. Pan> #! /usr/bin/env -S sudo sh Pan> id (Untested) why not just "#!/usr/local/bin/sudo" ? It'll be given the filename as an argument. Aside: In general, almost every use of "#!/usr/bin/env XXX" as a solution is wrong. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 http://www.stonehenge.com/merlyn/> Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.posterous.com/ for Smalltalk discussion ___ 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: boot question
On Saturday, May 14, 2011 10:38:37 AM you wrote: > > Date: Sat, 14 May 2011 09:44:42 -0400 > > From: Robert Simmons > > To: freebsd-questions@freebsd.org > > Subject: boot question > > > > How do I boot from a kernel that is in a non-standard location on a disk > > that is partitioned with the GPT scheme? > > Things get a *LOT* messier if you want t relocate 'boot0' through 'boot4' > as well as /boot/kernel. Depending on _just_ what you want to do, you > may have to build and install custom versions of those executables. This is exactly what I want to do. I want a minimum of three partitions on the drive. One for swap, of course, but the other two I want to be: /boot / I have gotten the kernel to boot by tricking boot2 into finding boot.config by locating it at /boot/boot.config rather than /boot.config and adding the following line to boot.config: 0:ad(0,1,a)/kernel/kernel This gets me to the point where I have to enter the mount points manually at the "mountroot>" prompt. So, this is good progress. This skips the loader stage of booting, however, which I would like to not have to do. The problem is that if I put the following line in boot.config: 0:ad(0,1,a)/loader then the loader cannot find its config file "loader.conf" In boot(8) there doesn't seem to be a flag that you can pass to set where to find loader.conf. So, how can I tell it where to find loader.conf if it is in a non-standard location? ___ 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"
pptpd problem
Hi; I have a VPN server on FBSD 8.1. The vpn closes fine. But as soon as I start doing something with an inside LAN machine i.e. an RDP session, I get this: May 14 12:46:06 suporte pptpd[1958]: GRE: xmit failed from decaps_hdlc: No buffer space available and the VPN tunnel drops. I googled a lot for it but I didn't find any thing that could help. The system WAS working OK before. I tried everything I could think of. Could anyone help? Thanks, -- Mario Lobo http://www.mallavoodoo.com.br FreeBSD since 2.2.8 [not Pro-Audio YET!!] (99% winblows FREE) pptpd: poptop-1.3.4_2 System: FreeBSD 8.1-STABLE #0: Mon Feb 28 20:47:00 BRT 2011 i386 last pid: 2145; load averages: 0.00, 0.00, 0.00 28 processes: 1 running, 27 sleeping CPU: 0.0% user, 0.0% nice, 0.0% system, 1.1% interrupt, 98.9% idle Mem: 15M Active, 13M Inact, 58M Wired, 28K Cache, 44M Buf, 1892M Free Swap: 4000M Total, 4000M Free sysctl.conf: security.bsd.see_other_uids=0 security.bsd.see_other_gids=0 debug.cpufreq.lowest=400 kern.maxfiles=65536 kern.maxfilesperproc=32768 kern.maxvnodes=60 kern.ipc.shmmax=67108864 kern.ipc.shmall=16384 kern.ipc.nmbclusters=32768 kern.ipc.somaxconn=32768 net.inet.tcp.rfc1323=1 net.inet.tcp.drop_synfin=1 net.inet.tcp.sendspace=65536 net.inet.tcp.recvspace=65536 net.inet.tcp.blackhole=2 net.inet.udp.blackhole=1 net.inet.icmp.drop_redirect=1 net.inet.icmp.icmplim_output=0 net.inet.icmp.icmplim=2000 net.inet.tcp.path_mtu_discovery=0 net.inet.tcp.recvbuf_auto=1 net.inet.tcp.recvbuf_inc=16384 net.inet.tcp.recvbuf_max=16777216 net.inet.tcp.sendbuf_auto=1 net.inet.tcp.sendbuf_inc=8192 net.inet.tcp.sendbuf_max=16777216 pf.conf(relevant rules): #--- Allow vpns from anywhere to anywhere pass log quick on $ext_if inet proto gre all queue (ssh_bulk, ack) pass log quick on $ext_if inet proto tcp from any to any port pptp flags S/SA queue (ssh_bulk, ack) pass log quick on $aln_if inet proto gre all queue (ssh_bulk, ack) pass log quick on $aln_if inet proto tcp from any to any port pptp flags S/SA queue (ssh_bulk, ack) options.pptpd: proxyarp lock name ppp.conf: default: set timeout 1200 # set log Phase Chat LCP IPCP CCP TUN Command Connect set log Phase Chat TUN Connect set dial set login set ifaddr 172.16.3.200/24 172.16.3.201-172.16.3.239 255.255.255.0 set server /tmp/tun%d "" 0177 # set lqrperiod 20 # set echoperiod 20 # enable lqr echo pptp: disable ipv6cp pap chap disable deflate pred1 deny deflate pred1 enable proxy accept dns set mtu max 1024 set dns 172.16.3.133 set nbns 172.16.3.133 enable MSChapV2 enable mppe set mppe * stateful set radius /etc/ppp/radius.conf set rad_alive 60 allow mode direct ___ 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: Maximum partition size
On 11 May 2011 03:37, Andrea Venturoli wrote: > Hello. > Sorry for the stupid questions, but Google only turns out very old answers > which might be outdated (at least I hope so). > > What is the maximum partition size I can use on 7.3? > I've used a 3TB gstripe on amd64, but now I'd like to gstripe two 2TB HDs on > a i386. > Will that work? Probably, but a gstripe isn't a partition. The gstripe specific numbers seem to be (via /usr/src/sys/geom/stripe/g_stripe.h): uint16_tmd_no; /* Disk number. */ uint16_tmd_all; /* Number of all disks. */ uint32_tmd_stripesize; /* Stripe size. */ charmd_provider[16]; /* Hardcoded provider. */ uint64_tmd_provsize;/* Provider's size. */ So, I guess the maximum gstripe will be around 2^96, or 79228162514264337593543950336 bytes (or is that blocks?). The largest filesystem you can put on that is limited to UFS2's 2^73 (according to the knobs at wikipedia), so you'll have to start splitting up your gstripes in 41 binary orders of magnitude. Good luck. -- -- ___ 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"
boot question
Perhaps my earlier question was too complex and specific. I will rephrase it a bit: How do I boot from a kernel that is in a non-standard location on a disk that is partitioned with the GPT scheme? How do I tell that kernel the location of /etc/fstab? ___ 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"