Re: Keeping FreeBSD updated (the binary way)

2009-01-23 Thread Svein Halvor Halvorsen
Svein Halvor Halvorsen wrote: I want to make sure I have better routines this time around, when I'm starting a-fresh. I'd like to keep my system and packages fairly up to date, and still keep the compiling to a minimum. Is it possible to pkg_add -r packages from -STABLE on

Re: Keeping FreeBSD updated (the binary way)

2009-01-23 Thread Svein Halvor Halvorsen
Svein Halvor Halvorsen wrote: Is it possible to pkg_add -r packages from -STABLE on the latest -RELEASE? That is, will the following work, or slowly render my system to an incoherent state: RW wrote: It'll work most of the time, but occasionally it will fail, when a STABLE package reli

printf and utf-8

2009-01-26 Thread Svein Halvor Halvorsen
As far as I can see, printf is not calculating strings lengths correctly when using utf-8 encoding. Either that, or I'm using byte count, and can't find the character count :-/ Eg: $ printf "|%-10s|" "æøå" |æøå| $ printf "|%-10s|" "123" |123 | I'm on 7.1-p2 sv. _

Re: printf and utf-8

2009-01-26 Thread Svein Halvor Halvorsen
Chuck Swiger wrote: On Jan 26, 2009, at 1:58 PM, Svein Halvor Halvorsen wrote: As far as I can see, printf is not calculating strings lengths correctly when using utf-8 encoding. Either that, or I'm using byte count, and can't find the character count :-/ printf(1) explicitly stat

Re: printf and utf-8

2009-01-26 Thread Svein Halvor Halvorsen
Chuck Swiger wrote: On Jan 26, 2009, at 3:05 PM, Svein Halvor Halvorsen wrote: Do you have a suggestion to solve the following problem without using printf(1): I have a text file that I want to print in a "box" on a terminal from a shell script. Now I've padded the lines w

growfs, bsdlabel or fdisk issue

2004-03-04 Thread Svein Halvor Halvorsen
On my laptop I have dual-boot with Windows XP, but as I allmost never boot it in Windows, and since my /usr-partition is running out of space, I decided to shrink the FAT-partition that I've been sharing between to two oses. So I used FreeBSD's fdisk to remove the existing FAT-partition, and to e

Re: crontab email

2004-03-04 Thread Svein Halvor Halvorsen
[Brian Henning, 2004-03-04] > Everytime something runs from the the crontab for a given user such as root, I > get an email with the results of the execution. I am running a few crontabs that > run every 2 minutes and this gets to be a lot of excess email. How can I turn > off this feature. Y

RE: Cron job questions

2004-03-12 Thread Svein Halvor Halvorsen
[Dave Carrera] > So if I > > #ee /etc/crontab (I prefer ee to vi ) > > Add this > > * 2 * * * root/bin/csh /root/script.csh > > Save exit > > That should run my script at 2am every morning yes ? [Frank Mueller] > > Yes, correct. I thought that putting an * in y

ACL and ls: operation not supported

2008-07-17 Thread Svein Halvor Halvorsen
Hi, I have acl support on some filesystems, and wanted to turn it on on /home, too. So I ran: # mount -u -o acls /home Now, just "mount" listed /home as supporting acls. But now, whenever I "ls -l" on any folder on that filesystem, I get "operation not supported". It seems other file system acce

Re: ACL and ls: operation not supported

2008-07-17 Thread Svein Halvor Halvorsen
Svein Halvor Halvorsen wrote: > I have acl support on some filesystems, and wanted to turn it on on > /home, too. So I ran: > > # mount -u -o acls /home Ok, I'm just being an ignorant noob, who's not able to read the documentation. I'm sorry for the noise, but for

Re: ACL and ls: operation not supported

2008-07-17 Thread Svein Halvor Halvorsen
Svein Halvor Halvorsen wrote: > Svein Halvor Halvorsen wrote: >> I have acl support on some filesystems, and wanted to turn it on on >> /home, too. So I ran: >> >> # mount -u -o acls /home > > Ok, I'm just being an ignorant noob, who's not able to read t

Binary upgrade from legacy version

2008-07-26 Thread Svein Halvor Halvorsen
Hi, list! I want to upgrade two freebsd machines I have from 6.1-SECURITY and 5.3-RELEASE respectively, to the latest 7.0 release of FreeBSD. I don't want to cvsup and build, but prefer to use prebuilt binaries. Also I'd like to avoid wiping the systems, and starting afresh. I know this might bre

Re: Binary upgrade from legacy version + ports

2008-07-27 Thread Svein Halvor Halvorsen
Svein Halvor Halvorsen wrote: >> I want to upgrade two freebsd machines I have from 6.1-SECURITY >> and 5.3-RELEASE respectively, to the latest 7.0 release of >> FreeBSD. I don't want to cvsup and build, but prefer to use >> prebuilt binaries. Also I'd like t

Network, routers, DHCP and PXE

2008-07-28 Thread Svein Halvor Halvorsen
Hi, list! I have a private home network, on an ADSL2+ connection to the internet. The home network is behind NAT, all automatically set up by the router/dhcp server/wlan access point/adsl modem that I got from my ISP. It's a Thomson SpeedTouch 585 router. Now, on this network, most of the comput

Re: Network, routers, DHCP and PXE

2008-07-28 Thread Svein Halvor Halvorsen
Manolis Kiagias wrote: >> Now, on this network, most of the computers get their IP by means of >> DHCP. Except our home audio server, which have a hard coded ip >> address in rc.conf, set to something within the range of the dhcp >> server (10.0.0.2-10.0.0.253). The server seems to pick this up, an

Re: Network, routers, DHCP and PXE

2008-07-28 Thread Svein Halvor Halvorsen
Manolis Kiagias wrote: >> Yeah, but even though the router has customizable values for this >> range, and issues a warning when i try to change them, it still >> doesn't change them when I click "yes" on the warning. It is >> pre-configured to 10.0.0.2-10.0.0.253 >> >> I could of course use 10.0.0.

Re: OT: encrypted email using web based application

2008-07-30 Thread Svein Halvor Halvorsen
Andrew Gould wrote: > If I start with Subject line with the word "secure" using my work's email > system, the email is sent to a secure, web based application where the > recipients can view the message securely. The recipients receive a message > that a secure email message is waiting for them th

ACLs, permission mask and chmod g=

2008-08-08 Thread Svein Halvor Halvorsen
If I have acls enabled on a file, running chmod g=rw on that file, will not change its group permissions, but the acl mask. That is, running the following command: $ chmod g=rw foo ... is equivalent with $ setfacl -m m::rw- ... and not, as I would suspect: $ setfacl -m g:

Re: ACLs, permission mask and chmod g=

2008-08-08 Thread Svein Halvor Halvorsen
me some confusion, and I still think that this isn't obvious. > Svein Halvor Halvorsen-4 wrote: >> If I have acls enabled on a file, running chmod g=rw on that file, >> will not change its group permissions, but the acl mask. >> >> That is, running the following co

Re: ACLs, permission mask and chmod g=

2008-08-08 Thread Svein Halvor Halvorsen
acmeinc wrote: > One last thing > > have you tried; > > setfacl -s "setfacl -s" is not documented, and also gives "illegal option -- s" signature.asc Description: OpenPGP digital signature

Re: A few questions from a current linux user

2008-08-09 Thread Svein Halvor Halvorsen
Polytropon wrote: >> 4) If a binary update leads to an unstable system, how easy it is to >> backtrack to an earlier working version along with working config >> files? > > An update set provided via freebsd-update should not render a system > unstable / unusable; at least it's possible that the s

Free wireless network (access point, router, transparent HTTP proxy setup)

2008-08-09 Thread Svein Halvor Halvorsen
Hello, fellow FreeBSD-ers! I'd like to a good neighbor and share my DSL line and set up an unencrypted free wireless access point. I often find myself wanting more free access points around the city, so I thought I'd stand up as a good example for others :-) I want people to know that they can us

Re: Free wireless network (access point, router, transparent HTTP proxy setup)

2008-08-09 Thread Svein Halvor Halvorsen
Giorgos Keramidas wrote: > This sounds like too much work for a doubtful amount of gain. It > is probably a lot easier to use ipfw or pf+altq to rate limit > the bandwidth "others" can use :) Marcel Grandemange wrote: > Sounds To Me Also too much work for little gain... The learning experience i

Re: Free wireless network (access point, router, transparent HTTP proxy setup)

2008-08-09 Thread Svein Halvor Halvorsen
Matthias Apitz wrote: > To the OP: Be aware that depending on the local laws you might (will) be > responsible if the NATed IP is used in criminal affairs (downloads, > child porno, etc.); at least the local authorities will ask you who used > that IP and take your complete system with them for fur

Re: defrag

2008-08-28 Thread Svein Halvor Halvorsen
Wojciech Puchar wrote: (look at how long it took the BSDs to have native file-level ACLs). because in unix they are not actually needed. users&groups system is just perfect. That's one man's opinion. i don't know anyone here that actually use ACL under unix because he/she needs it. It de

Re: mount privileges...what the heck?

2006-07-21 Thread Svein Halvor Halvorsen
DW wrote: > Discovered something odd today, trying to get the procedures down to > help someone who wanted to mount a second drive to a mount point in > their home directory. : > Ownership on mount point: dude:dude /usr/home/dude/drive2 > > Now when I do: ># mount /dev/da1s1d /usr/home/dud

Re: Corrupt MBOX

2006-07-22 Thread Svein Halvor Halvorsen
Gerard Seibert wrote: >> It may be corrupted by spam. This happens when SPAM has bad headers. This >> effects all POP clients/servers. >> >> -Derek > > OK, is there any easy repair process that I can use to remedy the > situation? Second, why isn't the mail corrupted on the mail server

smb issue

2006-07-27 Thread Svein Halvor Halvorsen
After loading ichsmb, smbus and smb, dmesg reports: ichsmb0: port 0x1880-0x189f irq 10 at device 31.3 on pci0 ichsmb0: [GIANT-LOCKED] smbus0: on ichsmb0 smb0: on smbus0 Then, mbmon -d -S gives: [EMAIL PROTECTED]:/usr/home/sveinhal]$ mbmon -d -S SMBus[Intel8XX(ICH/ICH2/ICH3/ICH4/ICH5/ICH6)] f

Re: smb issue

2006-07-27 Thread Svein Halvor Halvorsen
> Svein Halvor Halvorsen wrote: >> After loading ichsmb, smbus and smb, dmesg reports: : Erik Nørgaard wrote: > kldload smb? What did I just say? (quoted as a hint :-P) Svein Halvor signature.asc Description: OpenPGP digital signature

Re: update info on ports

2006-07-30 Thread Svein Halvor Halvorsen
dick hoogendijk wrote: > Normally I upgrade my ports if I see new versions. > But now I have a question: I saw a new apache22 version (apache-2.2.2_1) > but on the apache site I could not find anything related to security bugs > or whatever. I *did* find a version 2.2.3 though (not yet in ports!) >

Re: Gotta start somewhere ... how many of us are really out there?

2006-07-31 Thread Svein Halvor Halvorsen
Colin Percival wrote: > There are still a lot of people (particularly on pre-6.0 systems) who > are using CVSup rather than portsnap for updating their ports trees. Also, I would guess that some people who run multiple FreeBSD systems, use some sort of local propagation of either the entire ports

Re: portsdb output and portaudit question

2006-07-31 Thread Svein Halvor Halvorsen
jan gestre wrote: > i was trying to portupgrade ruby coz portaudit is complaining of > vulnerabilities, i did run cvsup and portsdb -Uu before portupgrade, at > first i couldn't upgrade ruby coz portupgrade is complaining maybe coz > portaudit but someone in the list suggested this: > > # portupgr

Re: .bash_logout and shutdown -- need ideas

2006-08-04 Thread Svein Halvor Halvorsen
DW wrote: > Just started using a .bash_logout script to handle doing my unison : > The problem with that though, is that the shutdown process runs as root, > and just drops the system, and I'm never actually getting logged out as > much as booted out. So my .bash_logout doesn't run, and thus no uni

Re: BSDstats Project v2.0 ...

2006-08-09 Thread Svein Halvor Halvorsen
Nikolas Britton wrote: > I still like my idea the best for unique keys. It's a better way to > detect hosts behind NATs, here it is again, four versions to pick > from: > > # ifconfig | sha256 > cbcc2f55a340c248af7e8a10871150d827af11d7051bbc782eefa04b0603248b > # ifconfig | sha1 > b607b9d45e6ad40c

Re: BSDstats Project v2.0 ...

2006-08-09 Thread Svein Halvor Halvorsen
Svein Halvor Halvorsen wrote: > Why not hash just the hostname? Or MAC-address? Of course these could Disregard this. I see that the discussion has moved on. I'm with Matthew Seaman's suggested server generated id-string. Svein Halvor signature.asc Description: Op

Re: Accessing FreeBSD partition from Windows with dual boot

2006-08-10 Thread Svein Halvor Halvorsen
Martin Miedema wrote: > I'm looking for a way to access (read only is fine) a FreeBSD partition > on my Windows installation on a dual boot notebook (so Samba won't do > the trick) Maybe this will do: http://ffsdrv.sourceforge.net/ I haven't tried it myself, though, so I can't really recommend th

Re: Newbie questions

2006-08-22 Thread Svein Halvor Halvorsen
Subhro wrote: > yourself. However remember to cvsup your ports tree before you start > using it to get the required software. Refer to the handbook for > understanding how ports work. For most people portsnap would be a better way of updating one's ports tree. Firstly, it's in the base system and

Re: User permissions to mount CDROM

2006-08-28 Thread Svein Halvor Halvorsen
Viswas Nair wrote: > I have been trying to figure out how to give users to mount CD rom and have > been largely unsuccessful. Here are a few things I tried: > 1) Added user to the 4th field (options) in /etc/fstab > 2) Added vfs.usermount=1 to sysctl.conf > 3) Created a group called optical and ad

<    1   2   3