Jails with multiple IPs?
greetings! i have a freebsd server (mother.naoshige.net) running two jails (camel.naoshige.net and box.naoshige.net): http://pastie.org/244706 my question is, how do i give box.naoshige.net access to the remaining ipsof mother.naoshige.net (well, most of them)? do i just move theifconfig aliases from mother's rc.conf to box's? thanks ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Can I Reinstall FreeBSD Over SSH?
My server is getting kinda messy, but my ISP charges too much for a reinstall. Can I do this myself over SSH? Or perhaps there are ways to make ones system as clean as a fresh install? Thanks. Much obliged, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Can I Reinstall FreeBSD Over SSH?
Thanks a lot, this is exactly what I need. Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Where to rent the best dedicated servers?
Sorry, I really don't know where else to ask. I've been using Staminus for a while now and I've had it with the downtime. Basically I want a place to host my Ruby on Rails / Git projects, an IRC server as well as an internet radio channel. Simple website / control panel design is ofcourse a plus. None of that cpanel bullshit though, I prefer to meddle around with simple text files the way it's meant to be done. So, layeredtech.com? rackspace.com? And is there a place that reviews dedicated server providers? Thanks, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Where to rent the best dedicated servers?
Nah, actually, the website design (which can be used as a measure for the qualities of the rest of its services) kinda put me off. The environment in which products and services are sold often have a greater impact than the products or services themselves. --designcouncil.org.uk Kyrre - Original Message - From: Beech Rintoul [EMAIL PROTECTED] Date: Tuesday, March 25, 2008 2:26 am Subject: Re: Where to rent the best dedicated servers? To: freebsd-questions@freebsd.org Cc: Kyrre Nygård [EMAIL PROTECTED] On Monday 24 March 2008, Kyrre Nygård said: Sorry, I really don't know where else to ask. I've been using Staminus for a while now and I've had it with the downtime. Basically I want a place to host my Ruby on Rails / Git projects, an IRC server as well as an internet radio channel. Simple website / control panel design is ofcourse a plus. None of that cpanel bullshit though, I prefer to meddle around with simple text files the way it's meant to be done. So, layeredtech.com? rackspace.com? And is there a place that reviews dedicated server providers? Thanks, Kyrre Check out www.rootbsd.net, they support the FreeBSD project and use FreeBSD servers. Beech -- - -- Beech Rintoul - FreeBSD Developer - [EMAIL PROTECTED] /\ ASCII Ribbon Campaign | FreeBSD Since 4.x \ / - NO HTML/RTF in e-mail | http://www.freebsd.org X - NO Word docs in e-mail | Latest Release: / \ - http://www.FreeBSD.org/releases/7.0R/announce.html - -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions- [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: Where to rent the best dedicated servers?
This looks professional indeed... Thanks a lot for the great advice man :) Kyrre - Original Message - From: Patrick C [EMAIL PROTECTED] Date: Tuesday, March 25, 2008 2:27 am Subject: Re: Where to rent the best dedicated servers? To: Kyrre Nygård [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Guys, careful on the reply to all on this message :-) If you're looking for FreeBSD hosting, I have had very good luck with m5hosting.com. It's a small company but they host in a very nice datacenter with good connectivity, and their support is awesome. The owner (Mike) is very knowledgeable with *BSD and is one of the few hosts to offer FreeBSD, OpenBSD, and Ubuntu dedicated servers. I can highly recommend them. We migrated all our hosting needs from Rackspace to our own equipment at Quality (Globix) and have never looked back. There have been some recent high-profile outages but their reliability is still very good, we just found that it was much cheaper to host ourselves especially when we looked at adding additional equipment for redundancy like load balancers. If you don't need managed hosting I don't see any place for Rackspace. I also have a personal FreeBSD box with The Planet, things have gotten more professional there (ev1) since becoming The Planet and it's a decent host. -Patrick On 24/03/2008, Kyrre Nygård [EMAIL PROTECTED] wrote: Sorry, I really don't know where else to ask. I've been using Staminus for a while now and I've had it with the downtime. Basically I want a place to host my Ruby on Rails / Git projects, an IRC server as well as an internet radio channel. Simple website / control panel design is ofcourse a plus. None of that cpanel bullshit though, I prefer to meddle around with simple text files the way it's meant to be done. So, layeredtech.com? rackspace.com? And is there a place that reviews dedicated server providers? Thanks, Kyrre ___ 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: Where to rent the best dedicated servers?
Excellent choice... But so far it looks like I'll be going for http://www.m5hosting.com. Small is the new big, might wanna Google that. Besides, they look so simple! Kyrre - Original Message - From: Bill Moran [EMAIL PROTECTED] Date: Tuesday, March 25, 2008 4:28 am Subject: Re: Where to rent the best dedicated servers? To: Kyrre Nygård [EMAIL PROTECTED] Cc: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] In response to Kyrre Nygård [EMAIL PROTECTED]: Sorry, I really don't know where else to ask. I've been using Staminus for a while now and I've had it with the downtime. Basically I want a place to host my Ruby on Rails / Git projects, an IRC server as well as an internet radio channel. Simple website / control panel design is ofcourse a plus. None of that cpanel bullshit though, I prefer to meddle around with simple text files the way it's meant to be done. So, layeredtech.com? rackspace.com? pair.com ? -- 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- [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Build: mtree: line 48: unknown group games
mtree: line 48: unknown group games *** Error code 1 Is the games account really that important? Thanks, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Perl error running lint on spamassassin? [NO MORE SPAMASSASSIN!!!]
Hey Drew! I learned long time ago to drop SpamAssassin altogether. I got hundreds of spam e-mails a day with SpamAssassin. But when I switched to a clean Postfix installation with Greylist (port 10023) and 3 different blocklist servers, my spams reduced to 0 a day, or 1-3 at most. $ cat /usr/local/etc/postfix/main.cf # FreeBSD/i386 # nigga.someshit.com mail_owner = postfix home_mailbox = .maildir/ mydomain = someshit.com myhostname = nigga.someshit.com mynetworks = 127.0.0.0/8 myorigin = $mydomain mydestination = $mydomain, localhost.$mydomain, $myhostname, someothershit.com smtpd_recipient_restrictions = reject_rbl_client zen.spamhaus.org reject_rbl_client dnsbl.ahbl.org reject_rbl_client dnsbl.njabl.org permit_mynetworks reject_unauth_destination check_policy_service inet:127.0.0.1:10023 unknown_local_recipient_reject_code = 450 queue_directory = /var/spool/postfix command_directory = /usr/local/sbin daemon_directory = /usr/local/libexec/postfix sendmail_path = /usr/local/sbin/sendmail newaliases_path = /usr/local/bin/newaliases mailq_path = /usr/local/bin/mailq sample_directory = /usr/local/etc/postfix Suggestions on improving this configuration file is always appreciated. Have fun! All the best, Kyrre - Original Message - From: Drew [EMAIL PROTECTED] Date: Tuesday, February 5, 2008 8:49 am Subject: Perl error running lint on spamassassin? To: [EMAIL PROTECTED] Hi, I know I've been noisy of late, but that should slow down if I ever get things working around here again. I've given up on my old server hardware,and put another machine in it's place. Unfortunately, everything but mail is working for me on this server. The problem seems to be with spamassassin.When I run spamassassin -D --lint from the command line, everything _seems_ to check out. However, when I run mailscanner --lint it segfaults: [EMAIL PROTECTED](/)# mailscanner --lint Checking version numbers... Version number in MailScanner.conf (4.64.3) is correct. Your envelope_sender_header in spam.assassin.prefs.conf is correct. Checking for SpamAssassin errors (if you use it)... SpamAssassin temp dir = /var/spool/MailScanner/incoming/SpamAssassin-Temp zsh: segmentation fault mailscanner --lint I wasn't real sure what was causing this, but running SA lint from mailwatch provides a clue, perhaps: /libexec/ld-elf.so.1: /usr/local/bin/perl5.8.8: Undefined symbol PL_exit_flags I've removed and reinstalled perl5.8 from ports, double checked everythingwith the perl-after-upgrade script, ensured that I've handled the use.perlports thing, etc. After all that failed to solve this, I rebuilt and reinstalled world. Still no joy. I like to try to solve stuff that looks easy like this on my own, but obviously at this point, I've overlooked something simple. Anyone care to pass me a clue-bat? Thanks in advance.___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions- [EMAIL PROTECTED] ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
How to answer mails to me@all my domains?
Hello! A silly question probably. How do I get FreeBSD, or Postfix, to give me all e-mails sent to me@all the domains in my nameserver? Can /etc/aliases do this, or something else? Thanks guys, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How to answer mails to me@all my domains?
Eric wrote: look at /usr/local/etc/postfix/virtual and man 5 virtual it will explain how to handle virtual domains and direct anything to any mail account you want I really appreciate it man, thanks a lot! -- Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How to answer mails to me@all my domains?
Eric wrote: look at /usr/local/etc/postfix/virtual and man 5 virtual it will explain how to handle virtual domains and direct anything to any mail account you want All I had to do was to add the domain to mydestinations! Thanks again! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Help! FreeBSD: 88.78 KBps, Linux: 624.95 KBps
Hello. My friend is switching to Linux because FreeBSD is failing on him. When downloading a file from a FreeBSD box and a Linux box on the same network, the FreeBSD box got 88.78 KBps whereas the Linux got 624.95 Kbps. I have no idea what's wrong, but my man isn't really into good information design (e.g. taking something complex and making it easy), so his system is a mess. Maybe some of you can help me locate where the problem's at? Thanks guys, Kyrre # ifconfig -a sis0: flags=8843UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST mtu 1500 options=8VLAN_MTU inet6 fe80::20e:a6ff:fe53:d066%sis0 prefixlen 64 scopeid 0x1 inet 67.143.227.66 netmask 0xfff8 broadcast 67.143.227.71 inet 67.143.227.67 netmask 0x broadcast 67.143.227.67 inet 67.143.227.68 netmask 0x broadcast 67.143.227.68 inet 67.143.227.69 netmask 0x broadcast 67.143.227.69 inet 67.143.227.70 netmask 0x broadcast 67.143.227.70 inet 67.143.231.97 netmask 0x broadcast 67.143.231.97 inet 67.143.231.98 netmask 0x broadcast 67.143.231.98 inet 67.143.231.99 netmask 0x broadcast 67.143.231.99 inet 67.143.231.100 netmask 0x broadcast 67.143.231.100 inet 67.143.231.101 netmask 0x broadcast 67.143.231.101 inet 67.143.231.102 netmask 0x broadcast 67.143.231.102 ether 00:0e:a6:53:d0:66 media: Ethernet autoselect (100baseTX full-duplex) status: active plip0: flags=108810POINTOPOINT,SIMPLEX,MULTICAST,NEEDSGIANT mtu 1500 lo0: flags=8049UP,LOOPBACK,RUNNING,MULTICAST mtu 16384 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 inet 127.0.0.1 netmask 0xff00 pflog0: flags=141UP,RUNNING,PROMISC mtu 33208 #cat /etc/rc.conf ifconfig_sis0=inet 67.143.227.66 netmask 255.255.255.248 defaultrouter=67.143.227.65 hostname=his.box.com ifconfig_sis0_alias0=67.143.227.67 netmask 0x ifconfig_sis0_alias1=67.143.227.68 netmask 0x ifconfig_sis0_alias2=67.143.227.69 netmask 0x ifconfig_sis0_alias3=67.143.227.70 netmask 0x ifconfig_sis0_alias4=67.143.231.97 netmask 0x ifconfig_sis0_alias5=67.143.231.98 netmask 0x ifconfig_sis0_alias6=67.143.231.99 netmask 0x ifconfig_sis0_alias7=67.143.231.100 netmask 0x ifconfig_sis0_alias8=67.143.231.101 netmask 0x ifconfig_sis0_alias9=67.143.231.102 netmask 0x kern.ipc.maxsockbuf=8388608 net.inet.tcp.sendspace=3217968 net.inet.tcp.recvspace=3217968 net.inet.tcp.rfc1323=1 syslogd_enable=YES syslogd_flags=-4 -v -v -s -s -l /etc/namedb/var/run/log stunnel_enable=YES pf_enable=YES pflog_enable=YES sshd_enable=YES inetd_enable=YES inetd_flags=-wWl named_enable=YES named_program=/usr/local/sbin/named named_flags=-u bind -c /etc/namedb/named.conf mysql_enable=YES apache2_enable=YES apache2ssl_enable=YES sendmail_enable=NONE courier_authdaemond_enable=YES courier_imap_imapd_enable=YES courier_imap_imapdssl_enable=YES courier_imap_imapd_ssl_enable=YES courier_imap_pop3dssl_enable=YES courier_imap_pop3d_ssl_enable=YES sqwebmaild_enable=YES spamd_enable=YES spamd_flags=-d -q -v -x -r /var/run/spamd.pid clamav_clamd_enable=YES clamav_freshclam_enable=YES svscan_enable=YES snmpd_enable=YES proftpd_enable=YES usbd_enable=YES clear_tmp_enable=YES update_motd=NO linux_enable=YES -- # cat /etc/pf.conf ext_if=sis0 # replace with actual external interface name i.e., dc0 loc_if=lo0# lo0 - local interface 127.0.0.1 table box { 67.143.227.66, 67.143.227.67, 67.143.227.68, 67.143.227.69, 67.143.227.70 67.143.231.97 67.143.231.98 67.143.231.99 67.143.231.100 67.143.231.101 67.143.231.102} table customers { 205.209.177.60 } table friends { 67.143.227.66, 128.242.160.3, 68.83.182.43, 66.252.8.133 } table filter { 222.152.0.43, 219.89.75.39, 222.152.3.100, 222.152.4.82, 65.175.125.87, 59.188.133.195, 59.59.154.71, 222.245.97.116, 201.141.212.230, 208.53.3.92, 124.163.176.58, 213.230.128.226, 208.69.32.130, 65.175.125.94, 65.111.17.147, 216.15.177.196, 72.37.165.0/24, 200.184.163.0/24 } scrub in all #smtp forward rdr inet proto tcp from any to $ext_if port 2525 - 67.143.227.70 port 25 #block in quick on $ext_if from filter block drop in quick on $ext_if from filter to box # Filtering: the implicit first two rules are pass in all pass out all # block all incoming packets but allow ssh, pass all outgoing tcp and udp # connections and keep state, logging blocked packets. block in log all # restrict SSH #pass in log on $ext_if proto tcp from { cthhost, customers, friends} to $ext_if port 22 keep state pass in log on $ext_if proto tcp from any to $ext_if port 22 keep state # seems to work pass in quick on $loc_if all pass out quick on $loc_if all # Cybercon server monitor #pass in on $ext_if proto {icmp, tcp, udp} from 72.29.23.120 to any all keep state # for FTP #pass in on $ext_if proto tcp from any to
Is there a way to undelete?
Hello! I'm just curious if there's a way to undo a rm -rf. There has to be something eqivalent in FreeBSD to all those recovery tools? Thanks, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: amvisd-new set up difficulty
hey wassup dhaneshki must tell you, after i set up postgrey for postfix, i only got like 1 spam a week, as opposed to 1000 a day. after i removed amavisd-new, spamassassin and all that overly complex bullshit... it made no differencetry it out, keep the system clean, good luckkyrre- Original Message -From: dhaneshk k [EMAIL PROTECTED]Date: Monday, May 28, 2007 10:38 amSubject: amvisd-new set up difficultyTo: [EMAIL PROTECTED]: [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED] Hi , this is Dhanesh , by the way of finding a solution for spam controll I come across one tutorial Postfix and SpamAssassin By Grzegorz , So I followed the foresaid tutorial .. URL :http://ezine.daemonnews.org/200309/postfix-spamassassin.html. Hope some of you may be the right one to help me to controll spams in my mail system.If not please introduce me to some experts who knows this configuration so I can touch with them. { These all are I configured in a test machine (FreeBSD 6.0, POSTFIX running fine in this test machine ..I can send test mails between local users in this test machine So if this setup is good then I can install amavis-new in my server and can controll spams effectively) So I want to check whether this configuration is correct ya not , for that please give some inputs( imean spam i/ps and how I know this is blocking spams .. and I want to ask you what I have to add more for the three line in amavisd.conf HERE I AM ATTCHING THE amvisd.conf file read_hash(\%whitelist_sender, '/var/amavis/whitelist'); read_hash(\%blacklist_sender, '/var/amavis/blacklist'); read_hash(\%spam_lovers, '/var/amavis/spam_lovers'); }I had a FreeBSD-6.0 box with postfix and mailman working fine .The problem is that my mailing list members including me getting lots of spams daily ..so I really got in trouble . From the tutorial I uderstood that by installing amavisd-new will solve the problem so I went ahead with this .. SpamAssain razor also coming with this amavisd-new (they are integrated with is package ). So a box with freeebsd6.0 ,with postfix clamav etc installed in it .. (I have installed clamav before following the tutorial through usr/ports in FreeBSD box) SO I thought this AntiVirus clamav may be sufficent for using with amavisd-new and after this I followed the turorial for postfix and spamassassin step by step upto section IV Section IV - Notifications/DSN, BOUNCE/REJECT/DROP/PASS destiny, quarantine. You may want to set these variables: $notify_sender_templ $notify_virus_sender_templ $notify_virus_admin_templ $notify_virus_recips_templ $notify_spam_sender_templ $notify_spam_admin_templ What valuses to set for this variables ,there is no such variables in the amavisd.conf file so I added this in the file and confused of giving what values to this variables ? so I commented these 6 variables and follwed the tutorial upto section V read_hash(\%whitelist_sender, '/var/amavis/whitelist'); read_hash(\%blacklist_sender, '/var/amavis/blacklist'); read_hash(\%spam_lovers, '/var/amavis/spam_lovers'); these three lines I just added in amavisd.conf ( I dont know whether to add any thing else so I added the following lines from the tutorial to the amvisd.conf file map { $whitelist_sender{lc($_)}=1 } (qw( freebsd-questions@freebsd.org [EMAIL PROTECTED] [EMAIL PROTECTED] [EMAIL PROTECTED] )); and I went to section vii added these 2 line $sa_local_tests_only = 0; $sa_auto_whitelist = 1; and clamav I installed through ports so I commented all the lines except the ones related to clamav section. then have done # su - vscan $ touch blacklist whitelist spam_lovers $ mkdir tmp but tmp dir is already here so its not needed to create it explicitly.. then followd spamassassin local.cf configuration as in the tutorial exactly .. But ther is no .spamassassin dir in /var/amavis so i created this .spamassassin dir here and then given the command below . $ touch /var/amavis/.spamassassin/user_prefs Then razor and Bayesian learning configured as in the tutorial then executed the command /usr/local/sbin/amavisd debug But the debug output I dont know if it correct ya not so I am adding the debug output here Please let me know all my configurations correct ya not ? and in /usr/ports/security/amavisd-new/work ther is no work directory and sample spam files , so let me give some sample spam code so I ca test it .. NB: can you send a sample copy of amavisd.conf , spamassassin local.cf , If my configuration is not looking proper one in your view . /usr/local/sbin/amavisd debug o/p don# /usr/local/sbin/amavisd debug May 25 10:29:53 don.localdomain /usr/local/sbin/amavisd[1599]: starting. /usr/local/sbin/amavisd at don.localdomain amavisd-new-2.5.0 (20070423), Unicode aware May 25 10:29:53 don.localdomain /usr/local/sbin/amavisd[1599]: user=, EUID: 0
The worst error message in history belongs to... BIND9!
Hello! I've long wondered where this error message comes from: hostname nor servname provided, or not known So I grepped my FreeBSD source code and found out it actually belongs to BIND9. It has to be the worst written error message in history. Any chance you can change it? Perhaps to something like: Address unknown, or not provided. To avoid such mistakes in the future, I would recommend reading: http://www.goodcopywriting.com With that being said, thank you for such wonderful nameserver software! Thank you, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Fix this: The Regents of the University of California. All rights reserved.
Hello! Is it possible to change: Copyright (c) 1992-2007 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. Over to: Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. If so, how is it done? To have `All rights reserved.' apply to both copyright statements, it is necessary to break it down to the next line. It would also look a whole lot neater, as the last number of `1994' now aligns with the last letter of `reserved' using a monospaced font, which ends up looking kind of weird. Trust me on this one. Thank you, Kyrre Nygård + mir-visuals.com + snoarc.no ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
pf + ftpd: Socket error (Connection refused)
Hello! My FreeBSD server (HTTP, SMTP, PF, NAT etc.) is running its native ftpd along with pf and its ftp-proxy. But after a recent make world, outsiders could no longer connect to this ftpd: --- 227 Entering Passive Mode (80,204,208,30,208,212) Connecting data socket to (80.204.208.30) port 53460 Socket error (Connection refused) Nor with active mode: --- 200 PORT command successful. --- LIST My server's external interface is 80.204.208.30 (ADSL), and my internal interface is 192.168.187.1, which connects to my workstation 192.168.187.2. All works well, except ftpd. My pf.conf was inspired by http://www.openbsd.org/faq/pf/example1.html # /etc/pf.conf ext_if=rl0 int_if=ep0 set block-policy return set skip on { lo } scrub in nat on $ext_if from $int_if:network to any - ($ext_if) nat-anchor ftp-proxy/* rdr-anchor ftp-proxy/* rdr on $int_if proto tcp from any to any port 21 - 127.0.0.1 port 8021 rdr on $ext_if proto tcp from any to any port 5:5 - 192.168.187.2 port 5:5 block in pass quick on $int_if pass out keep state anchor ftp-proxy/* antispoof quick for { lo $int_if } pass in on $ext_if inet proto tcp from any to ($ext_if) port { 21, 22, 25, 53, 80, 110, 113, 143 } keep state pass in on $ext_if inet proto udp from any to ($ext_if) port 53 keep state pass in inet proto icmp from any to any keep state pass in on $ext_if inet proto tcp from any to any port 5:5 keep state Any suggestions to improve or simplify my ruleset are warmly welcomed. Ffor instance, why does it need 3 instances of what seems like the same thing? nat-anchor ftp-proxy/*, rdr-anchor ftp-proxy/* and then anchor ftp-proxy/*? # /etc/inetd.conf ftp stream tcp nowait root /usr/libexec/ftpd ftpd -l ftp-proxy stream tcp nowait root /usr/libexec/ftp-proxy ftp-proxy Thanks a lot for your time. --Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: pf + ftpd: Socket error (Connection refused)
At 14:01 06.04.2007, Kyrre Nygård wrote: Hello! My FreeBSD server (HTTP, SMTP, PF, NAT etc.) is running its native ftpd along with pf and its ftp-proxy. But after a recent make world, outsiders could no longer connect to this ftpd: --- 227 Entering Passive Mode (80,204,208,30,208,212) Connecting data socket to (80.204.208.30) port 53460 Socket error (Connection refused) Nor with active mode: --- 200 PORT command successful. --- LIST My server's external interface is 80.204.208.30 (ADSL), and my internal interface is 192.168.187.1, which connects to my workstation 192.168.187.2. All works well, except ftpd. My pf.conf was inspired by http://www.openbsd.org/faq/pf/example1.html # /etc/pf.conf ext_if=rl0 int_if=ep0 set block-policy return set skip on { lo } scrub in nat on $ext_if from $int_if:network to any - ($ext_if) nat-anchor ftp-proxy/* rdr-anchor ftp-proxy/* rdr on $int_if proto tcp from any to any port 21 - 127.0.0.1 port 8021 rdr on $ext_if proto tcp from any to any port 5:5 - 192.168.187.2 port 5:5 block in pass quick on $int_if pass out keep state anchor ftp-proxy/* antispoof quick for { lo $int_if } pass in on $ext_if inet proto tcp from any to ($ext_if) port { 21, 22, 25, 53, 80, 110, 113, 143 } keep state pass in on $ext_if inet proto udp from any to ($ext_if) port 53 keep state pass in inet proto icmp from any to any keep state pass in on $ext_if inet proto tcp from any to any port 5:5 keep state Any suggestions to improve or simplify my ruleset are warmly welcomed. Ffor instance, why does it need 3 instances of what seems like the same thing? nat-anchor ftp-proxy/*, rdr-anchor ftp-proxy/* and then anchor ftp-proxy/*? # /etc/inetd.conf ftp stream tcp nowait root /usr/libexec/ftpd ftpd -l ftp-proxy stream tcp nowait root /usr/libexec/ftp-proxy ftp-proxy Thanks a lot for your time. --Kyrre Problem solved, I just disabled ftp-proxy (guess I didn't need it) and started forwarding just 5 to 192.168.187.2 instead of the entire range. 5:5 were my net.inet.ip.portrange.hifirst and net.inet.ip.portrange.hilast, so the way things are now, ftpd has free access to 53334:5, and it seems quite content. Thanks, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: How to use vsftpd with wirtual users without LinuxPAM ?
At 22:08 21.03.2007, Derek Ragona wrote: For so few users, you can use regular accounts with the shell set to: /usr/bin/false -Derek At 11:47 AM 3/21/2007, Vincent Bolinard wrote: Hello, I'd like to know how can I set up virtual users without pam_userdb.so (which is not included in OpenPAM). vsftpd needs pam_userdb.so to authenticate against the db Berkeley database. What else can I use ? I don't want to use MySQL because there won't be a lot of virtual users ( 50). Thank you for your help. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED] -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. You can use htpasswd instead: htpasswd vsftpd.db username Then back up your /etc/pam.d/ftpd (maybe ftp as well) and replace its content with: auth required /usr/local/lib/pam_pwdfile.so pwdfile /usr/local/etc/vsftpd.db account required /usr/lib/pam_permit.so I hope it works. Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Automating MERGEMASTER(8)
At 00:29 17.03.2007, Pieter de Goeje wrote: On Friday 16 March 2007 10:32, Kyrre Nygård wrote: Hello, Is it possible to make MERGEMASTER(8) automatically replace files with a FreeBSD CVS Id, and skip (or prompt interactively) the ones without a FreeBSD CVS Id? The ones without are most certainly my own personalized configuration files. I'd really like to keep them intact. And on every MERGEMASTER(8) session I tend to replace every single file but them. Thanks everyone! All the best, Kyrre mergemaster -U Cheers, Pieter aah thanks a lot man :D ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
portupgrade: Download - single user - upgrade
Hey! I was wondering if anybody could give me a quick cheat sheet for how to automatically: 1) Download all outdated ports 2) Switch to single user mode 3) Upgrade those ports Running portupgrade -a doesn't work very well when it's time to upgrade running processes. I assume this involves a bit more than just the portupgrade commands? Thanks a lot. All the best, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Automating MERGEMASTER(8)
Hello, Is it possible to make MERGEMASTER(8) automatically replace files with a FreeBSD CVS Id, and skip (or prompt interactively) the ones without a FreeBSD CVS Id? The ones without are most certainly my own personalized configuration files. I'd really like to keep them intact. And on every MERGEMASTER(8) session I tend to replace every single file but them. Thanks everyone! All the best, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Broken partition table
Hello! My partition table is messed up. I have a 150 gigabyte S-ATA hard drive, with a single NTFS partition running Windows XP. I've been running gpart /dev/ad0 for the last 14 hours now and it's not saying anything. I just want to get my data back. I don't care if I have to reinstall everything. How it all came about is a long story. I ran a second hard disk drive, with FreeBSD, and GRUB so it could do my dual booting. But I needed the space, so I formatted it to NTFS from Windows XP. That's it really, after that, it wouldn't boot. Couldn't load NTLDR. That's when I tried a lot of different things. boot0cfg, fixmbr and fixboot. I even managed changing its system ID type to FAT using fdisk -- I wasn't thinking clearly -- I was in deep shock. I have also tried gpart from Knoppix, but all its guesses came out as zero. I've also tried running gpart from Insert, another Linux distribution, but it totally freaked out about some I/O stuff. Linux uses SCSI drivers for S-ATA though. Is my only choice now to keep running gpart, even if it will run forever? All suggestions welcome, please! Best regards, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
I am such a fool! How to recover my data?
Hello, thanks for checking this out! My hard disk and I are in a rather tight situation right now. I believe my partition table's system ID is messed up. Other things are probably messed up too, however I have not done anything which would constitute a format of my data -- hence I hope that whatever data is still there. I believe I've been a fool. The hard drive in question is hard drive 1, a 150gb S-ATA that ran Windows XP and NTFS. Hard drive 2, same type, ran FreeBSD and UFS. I was lacking space in Windows, so I decided to format hard drive 2 into NTFS. I right clicked on My Computer, went to Manage, then Disk Management and then I did what I was suppose to do. Everything went fine. I backed up some data to hard drive 2, which was now NTFS, and enjoyed my session a little bit more before I rebooted. But then, NTLDR was missing. I figured this was because my hard drive 2 had GRUB installed allowing me to dual boot between FreeBSD and Windows. But since it was now NTFS, the MBR now suffered problems. So I figured all I had to do was to remove the FreeBSD MBR, so silly me booted the FreeBSD installation CD and pretended to do an installation, went into fdisk, selected Use entire disk, set it to system ID 6, which is FAT, and then selected Standard boot loader. I don't know what I was thinking, I hadn't eaten all day. A few steps later, the process failed, after all I didn't actually want to format or install anything. Nothing happened. Next I played around with boot0cfg -B on /dev/ad0 and /dev/ad1. Nothing happened there either. Then I went into the Windows XP setup's recovery console and did a fixmbr as well as fixboot. Still, nothing happened. I am currently running gpart /dev/ad0 from FreeSBIE, hoping I'll get lucky. Is there any chance at all I may rescue my data? All the best, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: I am such a fool! How to recover my data?
I forgot to mention that yeah, everything thinks my hard drive is FAT now. I disconnected hard drive 2 long time ago too, so it's out of the picture. And if gpart fails me now, I have no idea what to do. I hope I don't have to invest in some proprietary data recovery software. All the best, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Script to fetch Wikipedia text
Hey! I'm involved in a few research projects, and like to keep my information well organized. I usually get most of it from Wikipedia, however, I hate printing HTML articles to PDF. I'd rather want them in pure, well laid out text. And I'm sure others would too. Being able to master ones knowledge provides a warm inner peace. Hence I've tried dumping the output from text browsers such as w3m, elinks, lynx etc. I am, however, only interested in the articles themselves, not their links, views, toolboxes, search bars, other available languages and so on. I tried running a whole bunch of regular expressions over the output, but that really felt like the hard way. So some guy gave me this: #!/usr/bin/env ruby require 'rexml/document' require 'cgi' require 'tempfile' require 'open-uri' url = 'http://en.wikipedia.org/wiki/Special:Export/' + CGI::escape(ARGV.join( ).strip.squeeze(' ').tr(' ', '_')).gsub(/%3[Aa]/,':').gsub(/%2[Ff]/,'/').gsub(/%23/,'#') open(url) { |f| puts REXML::XPath.first(REXML::Document::new(f.class == Tempfile ? f.open : f), '//text').text } Which seem to take advantage of Wikipedia's special export feature, which really seems cool. However there's a few issues. First, the script looks kinda complex. I'm sure there's a simpler way of writing it. Second, it does not yet output the kind of pure and well laid out text as it should. For instance, on http://en.wikipedia.org/wiki/GNU_Hurd, it outputs: ## BEGIN {{Infobox_Software | name = GNU Hurd | logo = [[Image:Hurd-logo.png]]br / | developer = [[Thomas Bushnell| Michael (now Thomas) Bushnell]] (original developer) and various contributors | latest_release_version = | latest_release_date = | operating_system = [[GNU]] | genre = [[Kernel (computer science)|Kernel]] | family = [[POSIX]]-conformant [[Unix]]-Clones | kernel_type = [[Microkernel]] | license = [[GNU General Public License|GPL]] | source_model = [[Free software]] | working_state = In production / development | website = [http://www.gnu.org/software/hurd/hurd.html www.gnu.org] }} {{redirect|Hurd}} '''The GNU Hurd''' is a computer operating system [[Kernel (computer science)|kernel]]. It consists of a set of [[Server (computing)|servers]] (or [[daemon (computer software)|daemons]], in [[Unix]]-speak) that work on top of either the [[GNU Mach]] [[microkernel]] or the [[L4 microkernel family|L4 microkernel]]; together, they form the [[kernel (computer science)|kernel]] of the [[GNU]] [[operating system]]. It has been under development since [[1990]] by the [[GNU]] Project and is distributed as [[free software]] under the [[GNU General Public License|GPL]]. The Hurd aims to surpass [[Unix]] kernels in functionality, security, and stability, while remaining largely compatible with them. This is done by having the Hurd track the [[POSIX]] specification, while avoiding arbitrary restrictions on the user. HURD is an indirectly [[recursive acronym]], standing for HIRD of [[Unix]]-Replacing [[Daemon (computer software)|Daemons]], where HIRD stands for HURD of Interfaces Representing Depth. It is also a play of words to give [[herd]] of [[wildebeest|gnus]] reflecting how it works. ==Development history== Development on the GNU operating system began in 1984 and progressed rapidly. By the early 1990s, the only major component missing was the kernel. Development on the Hurd began in [[1990]], after an abandoned kernel attempt started from the finished research [[Trix (kernel)|Trix]] operating system developed by Professor [[Steve Ward (Computer Scientist)| Steve Ward]] and his group at [[Massachusetts Institute of Technology| MIT]]'s [[Laboratory for Computer Science]] (LCS). According to [[Thomas Bushnell| Michael (now T homas) Bushnell]], the initial Hurd architect, their early plan was to adapt the [[BSD]] 4.4-Lite kernel and, in hindsight, It is now perfectly obvious to me that this would have succeeded splendidly and the world would be a very different place today.ref{{cite web | url = http://www.groklaw.net/article.php?story=20050727225542530 | title = The Hurd and BSDI|accessdate = 2006-08-08 | author = Peter H. Salus | work = The Daemon, the GNU and the Penguin}}/ref However, due to a lack of cooperation from the [[University of California, Berkeley|Berkeley]] programmers, [[Richard Stallman]] decided instead to use the [[Mach microkernel]], which subsequently proved unexpectedly difficult, and the Hurd's development proceeded slowly. ## END This should instead be something like: ## BEGIN http://en.wikipedia.org/wiki/GNU_Hurd Name = GNU Hurd Developer = Thomas Bushnell (original developer) and various contributors Operating_system = GNU Genre = Kernel (computer science) Family = POSIX-conformant Unix-Clones Kernel type = Microkernel License = GNU General Public License Source model = Free software Working state = In production / development Website =
Firefox: anti-alias issue
Hello, Has anybody else noticed that not all fonts in Firefox get anti-aliased? Only like half? I'm using Ifirefox-1.5.0.1_1,1 and I think it's rather unfortunate that Firefox acts like this by default. Poor guy at http://www.freebsdforums.org/forums/showthread.php?t=43683 never found a solution either. Can anybody out there help us? Thank you indeed, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Why does a 15.5gb partition show up as 500MB?
Hello, When mounting the 15,5GB root partition of an old 17GB ATA harddrive, df -h tells me it is only 479MB. This is what I did: I installed FreeBSD on the 17GB ATA harddrive, so I later could copy some files onto it from my main 150GB S-ATA. The plan is to retire the 17GB ATA at this Pentium 133MHz over at the form. So I plugged the 17GB ATA into my Pentium 3,2GHz's DVD-ROM IDE cable, which is the only IDE cable available other than that of my DVD-RW. I installed FreeBSD 6.1-RELEASE using the network install via boot floppies. I made a 1500MB swap partition, and the remaining 15,5GB into root /. I know jamming all that space into one single partition is a big no no, but for this purpose I let it slide. FreeBSD, minimum installatino, installed without any difficulties. Then it was time to copy the files I needed from the 150GB S-ATA. I can only boot the 150GB S-ATA, the 17GB ATA doesn't want to boot as long as the 150GB S-ATA is attached. I managed to mount the 17GB ATA, however df -h informs me that it is only 479MB? How can this be? It might be a geometry issue, yeah? But how do I fix it? Thanks, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
The Regents of the University of California. All rights reserved.
Hello! I am just wondering why it says: The Regents of the University of California. All rights reserved. when I log in locally, but: The Regents of the University of California. All rights reserved. when I log in via SSH? The difference for you with untrained eyes is the double spacing after the dot instead of the standard single spacing. I was just curious if there's a reason to this or not. Thanks, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
A webhosting script?
Hello! Does anybody run a webhosting business, where they've written a simple Bash script to add new users to the system and set up their domains, Apache virtual hosts, databases etc. all in one go? I am looking for inspiration for my own script. Thank you! I truly wish to keep it real and avoid solutions like cPanel or Webmin. All the best, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Code beautifiers, anyone?
At 21:09 24.08.2006, Matti J. Karki wrote: Well, my scripts aren't magic. They are pretty simple. Here's few (not scripts, these are valid Vim regexps): Those are great regexps, Matti, thank you so much. They have been noteworthy recorded! Say, could I use these with Sed let's say in a Bash script? One more question about :%s/^ *$//g versus :%s/ *$//g, won't the latter here perform the job of the former? Normally I do sed -E -e 's/[[:space:]]+$//' to remove my trailing whitespace. Thanks again man! All the best, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Code beautifiers, anyone?
At 06:01 25.08.2006, Matti J. Karki wrote: Yes. I know, that this is reinventing the wheel. Also, home-made scripts tend to be less reliable compared to dedicated tools. But I have to deal with C, C++, Java, Visual Basic and XML files and also some pretty obscure internal data files. With my own scripts I have total control over the style. I use scripting quite a lot to help me with my work and in addition to readability or style, I also use scripts for generating documentation and even to generate pieces of the final files from other data sources. So, in my case, I just have found out that instead of using bunch of ready-made tools and spending time tweaking the settings and learning to run them, I reach my goal faster and with desired results by doing things myself. Nice wording Matti :) Indeed, we are seeking total control over multiple languages. So yeah, we do it ourselves for simpler and faster solutions. Custom tools only contain about 5% of what dedicated tools would. I know there's a lot of other people out there feeling the way we do, I just hope that they can get on up and reply to this thread :) All the best, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Code beautifiers, anyone?
At 14:31 25.08.2006, Matti J. Karki wrote: No doubt :) There's no comments in the code, because usually my scripts are disposable. As I said, I do those case by case. The code should be quite clear for most parts, but the bunch of regexps at the beginning of the code do the following things: inbuffer = re.sub('\n +', '\n', inbuffer) # This strips all spaces from the beginning of every line of code. inbuffer = re.sub('\t+', '', inbuffer) # This does the same for tab characters. inbuffer = re.sub('\) *?\n\{', ') {', inbuffer) # This moves all curly braces where I want them to be, i.e. at the end of the line. inbuffer = re.sub('\) *?{', ') {', inbuffer) # This removes all extra spaces between the closing bracket ) and the opening curly bracket {. inbuffer = re.sub('else *?\n{', 'else {\n', inbuffer) # This fixes curly brackets in the else clauses. inbuffer = re.sub('{ *?(.+?\n)', '{\n\g1', inbuffer) # Sometimes there is code where curly brackets are all in the same line and the contents of the brackets are between the brackets. This moves the contents to new line. inbuffer = re.sub('(\n.+?)}', '\g1\n}', inbuffer) # This takes care of the closing bracket at the above case. inbuffer = re.sub('\n +', '\n', inbuffer) # This just cleans up all spaces that may appear when arranging the code. The rest of the script is just a simple indenting machine, which indents the code using four spaces as a single level of indentation. The indentation will be placed after every newline character and indentation will be increased and decreased based on the occurrences of curly brackets. So, basically (and now I'm just trying to remember from top of my head, it's been some time, I dealt with this particular source code) the script will do the following steps with the code: step 1) the original piece of code int main() { char *c = {'a', 'b', 'c'}; print(hello, world); if (true) { printf(ok); } else { printf(umm...); } } step 2) stripping all indentation int main() { char *c = {'a', 'b', 'c'}; print(hello, world); if (true) { printf(ok); } else { printf(umm...); } } step 3) applying the rest of the regexp rules and indenting with the for loop int main() { char *c = { 'a', 'b', 'c' }; print(hello, world); if (true) { printf(ok); } else { printf(umm...); } } Hope this clears my script a little bit. -Matti Very amazing man, I'm impressed by your enthusiasm for correctness. In your script, do these comments look alright then? (I simplified them a bit) inbuffer = re.sub('\) *?\n\{', ') {', inbuffer) # Move curly brackets to the end of lines inbuffer = re.sub('\) *?{', ') {', inbuffer) # Remove spaces between closing brackets and opening curly brackets inbuffer = re.sub('else *?\n{', 'else {\n', inbuffer) # Fix curly brackets in `else' clauses inbuffer = re.sub('{ *?(.+?\n)', '{\n\g1', inbuffer) # Break up the content of curly brackets inbuffer = re.sub('(\n.+?)}', '\g1\n}', inbuffer) # Take care of closing brackets from the above rule inbuffer = re.sub('\n +', '\n', inbuffer) # Strip trailing whitespace inbuffer = re.sub('\t+', '', inbuffer) # Strip trailing tabs And also, I noticed you put '\n +', '\n', inbuffer twice, is one enough like in the above example? Thank you man, your script has taught me a lot already about Python. I brought this case up at the OpenBSD mailinglist as well and they pointed me to http://en.wikipedia.org/wiki/Kernel_Normal_Form So now I have two more steps in my search for the perfect tools to beautify all my code: 01 Design a normal form for all my languages 02 Convert your script to Ruby After that, I can't wait to run it over the FreeBSD codebase and watch the added value it gets. Then I can start selling the script to governments. Just kidding :) But it would be nice to reverse engineer all those commercial code parsers that hunt for bugs and create my own that I'll eventually hook up with some artificial intelligence. All the best, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: A webhosting script?
At 17:30 25.08.2006, Andy Greenwood wrote: We use perl scripts here. Unfortunately, I can't provide any specific examples. So stop trolling :) Perl is obsolete anyway, thanks though. All the best, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
RE: A webhosting script?
At 19:09 25.08.2006, Tamouh H. wrote: There are many control panels that do these sort of things. Some are free, others are not. Check WebMin, cPanel, DirectAdmin, Plesk, H-Sphere, RAQdevil.and tons more. Hello Tamouh, yeah I know man but this is exactly what I'm trying to avoid. Not only are the visual and cognitive designs of these solutions so bad I'd rather get shot in the head than using them, they're also highly unnecessary. I agree that some of the tasks they help people do might be too advanced for the average Joe but this is really not the way to go. Thanks, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: The Regents of the University of California. All rights reserved.
At 12:50 25.08.2006, David J Brooks wrote: Back in the Jurassic era, when typewriters still roamed the earth, it was a convention to leave a double-space following a period so that the reader could more easily distinguish the end of a sentence. With the advent of word processors (and proportional fonts) this double-spacing convention lapsed. My guess is that the code for SSH was written by someone who learned to type on a typewriter, or was taught by someone who learned to type that way. David -- Sure the Almighty created the world in only six days, but He didn't have an established user-base. Thanks for the information Mr. Brooks, and I see you messed up the subject line :) I just hope somebody with the know-how can submit a patch. All the best, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: A webhosting script?
At 19:47 25.08.2006, Greg Barniskis wrote: giggle And that's not trolling? ;) I'd say check the facts. Though I know a lot of people are emotionally attached to things of the past and I'm sorry if anybody feels offended. Without getting into a way-OT my favorite language is better'n yours flamefest, if you really want inspiration for the pure shell way, look at ports/sysutils/ezjail and its flavours framework for templating new jails with users, ports, post-install scripts, etc. All shell. Man, just the words you gave me has already made my mouth all watery. I'll surely check it out, and thanks a whole lot. All the best, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Code beautifiers, anyone?
At 20:27 25.08.2006, Matti J. Karki wrote: A word of warning. Above, I mentioned that it's important to remember that my example will remove _all_ tabulator characters from text. This means that - for example - all lines with indentation inside the code comments will be messed up (remember, usually a tab character equals 8 spaces and I'm removing tabs all together). This leads me to my point: my code does not handle multi-line comments at all. They may look messed-up. A single curly bracket inside of a comment will throw the indentation code out of sync. Also the code does not address line breaks \, so for example the macro definitions will not be indented correctly. So, it will take some additional work to be able to run the script without any side effects. Seems we gotta give this baby some sessions :) Have you seen this yet? http://www.arachnoid.com/ruby/rubyBeautifier.html All the best, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Code beautifiers, anyone?
Hello people, I'm looking for the best ways to create a line of code beautification (reformatting) scripts -- one for C, one for Ruby, one for Bash and one for web development languages like XHTML, XML, CSS, PHP and Ajax. Whether as frontline warriors or household maids, they would ensure proper indentation, linebreaks, spaces, tabs and so forth. Can anybody help me? My studies of architectural science has taught me to pay extreme care to the correction of details, and I now wish to apply these teachings to all my code. I find myself always reformatting whatever my associates give me. Not that they're bad programmers, they just care more about the code itself rather than its structure, and I dare not argue with that. When their code is messy, however, my heart feels messy and I can't get any sleep. I wish to be in full control of my code beautifiers. That is, I wish to have them as simple and meaningful as possible. Give me an easy Bash over a complex Ruby any day. There's a lot of messed up tools out there. Companies with flashy websites just doing this for the money. So apart from the bullshit, I've managed to spot out the Ruby Beautifier and GNU Indent as two worthy code beautifiers. However I get the feeling they are more complex than they ought to be, and if less is more, my search will have to continue. All the best, Kyrre ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]
Re: Code beautifiers, anyone?
At 15:18 24.08.2006, Matti J. Karki wrote: Well, my suggestion to anyone asking this question is that the best thing IMHO is to learn some scripting language with good regular expression support. For example Tcl, Python or Perl. I have to deal with all sorts of source code and I have noticed that - for me - the easiest path is to first study the source code and then create a simple script to beautify the code. It takes less time than trying to find some suitable tool, which may not even product exactly the style I want. Very well said man, this is indeed my goal too! Perhaps you could share with us whatever scripts you've written? Thanks! ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to [EMAIL PROTECTED]