Category Archives: Unix

Unknown setting: mail_privileged_group

Downgrade dovecot to 1.0.10 give me error :

mail# /usr/local/etc/rc.d/dovecot start
Starting dovecot.
Error: Error in configuration file /usr/local/etc/dovecot.conf line 262: Unknown setting: mail_privileged_group
Fatal: Invalid configuration in /usr/local/etc/dovecot.conf

Find line 262, talk about mail_priveleged_group

solution :

change
mail_privileged_group = mail

into

mail_extra_groups = mail

and start dovecot service.

Work :-)

Could not determine the server’s fully qualified domain name

Thats message appear when I try to start apache using apachectl.

#apachectl start
[Thu Jun  5 16:31:33 2008] [alert] httpd: Could not determine the
server’s fully qualified domain name
, using 127.0.0.1 for ServerName
/usr/local/sbin/apachectl start: httpd could not be started

to solve this problem I need to know hostname and edit /etc/hosts to put that information (fully qualified name).

1. Find hostname

proxysudirman# uname -a

2. Edit /etc/hosts entry

proxysudirman# ee /etc/hosts

::1                     localhost localhost.my.domain
127.0.0.1               localhost localhost.my.domain

127.0.0.1               proxy proxysudirman.rasyid.net

172.88.1.2              proxy2 proxysudirman2.rasyid.net

3. Start apache service

proxysudirman# apachectl start
/usr/local/sbin/apachectl start: httpd started

Done :-)

uplcom, ucom and itegno on FreeBSD 7

New Itegno 3000 has arrived, plug it in my Windows XP working well. I wanna try in FreeBSD 7 server.

Here’s the steps :

1. Detection Modem

Activate uplcom

monitor# kldload uplcom

See detected modul in kernel:

monitor# kldstat
Id Refs Address    Size     Name
 1   13 0xc0400000 9118d4   kernel
 2    1 0xc0d12000 6a618    acpi.ko
 3    1 0xc3207000 3000     pflog.ko
 4    1 0xc321a000 33000    pf.ko
 5    1 0xc32a6000 22000    linux.ko
 6    1 0xc5473000 4000     uplcom.ko
 7    1 0xc5477000 3000     ucom.ko

Plug modem now and see  :

monitor# tail -f /var/log/messages

Apr 29 09:59:14 monitor root: Unknown USB device: vendor 0x0eba
product 0x1080 bus uhub1
Apr 29 09:59:14 monitor kernel: ugen0: <Prolific Technology Inc.
USB-Serial Controller, class 0/0, rev 1.10/0.01, addr 2> on uhub1

monitor# dmesg | tail

ugen0: <Prolific Technology Inc. USB-Serial Controller, class 0/0, rev
1.10/0.01, addr 2> on uhub1

Looking for position :

monitor# usbdevs -a 2 -v
Controller /dev/usb0:
Controller /dev/usb1:
addr 2: full speed, power 500 mA, config 1, USB-Serial
Controller(0x1080), Prolific Technology Inc.(0x0eba), rev 0.01
Controller /dev/usb2:

So far so good but I try to unplug and find it as ucom but still not lucky :-(

Try this way still the same, maybe I’ll try Linux first.

Install FreeBSD 6.3 stable and 8.0 current inside FreeBSD 7 Stable

Time is up, I must set a server for my staff for their learning needs, they want root account. Not sudo :-)

After seeing more in internet I came across to jail solution. See in internet for more practical examples and put them in a list here.

Due to limited hardware I install new machine with this flow :

1. Install FreeBSD 7 stable (get latest snapshot April 2008)

Full Video and link for download video files.

2. Inside FreeBSD 7 I install FreeBSD 8 current  (from snapshot April 2008).

Full video and link for download video files.

3. Install FreeBSD 6.3 stable inside FreeBSD 7 (from snapshot April 2008).

I download iso and mount it in /mnt :

home# ls

.cshrc                 .profile
.k5login                                6.3-STABLE-200804-i386-disc1.iso
.login                                  minichroot.sh

home# mdconfig -a -t vnode -f 6.3-STABLE-200804-i386-disc1.iso  -u 0

home# mount -t cd9660 /dev/md0 /mnt

home# cd /mnt

home# ls

.cshrc                  RELNOTES.HTM            media
.profile                RELNOTES.TXT            mnt
6.3-STABLE-200804       bin                     proc
COPYRIGHT               boot                    rescue
ERRATA.HTM              boot.catalog            root
ERRATA.TXT              cdrom.inf               sbin
HARDWARE.HTM            dev                     stand
HARDWARE.TXT            docbook.css             sys
INSTALL.HTM             etc                     tmp
INSTALL.TXT             floppies                usr
README.HTM              lib                     var
README.TXT              libexec

download miniroot.sh from ultradesic.

Modify /usr/jail/root/.cshrc and /usr/jail2/root/.cshrc .

Add this  :

set prompt = "FreeBSD8 %~ %# "

to let me know where I’m :-)

Video for install FreeBSD 6.3 and link to download video files.

101 FreeBSD jails

I just love ‘jail’ in FreeBSD, so many possibilty I can achieve with jails.

I try to collect some links that I think useful :

1. Creating and Managing A Jailed Virtual Host in FreeBSD

2. djbDNS using FreeBSD jails

3. Jails and EZJail

4. Creating a FreeBSD Jail

5. Jailing MySQL and PostgreSQL on FreeBSD

6. Using a FreeBSD jail as a ports build cluster

7. Multiple Ip’s on FreeBSD 6.1-p3 jail

8. Security, Process Isolation and Virtual Hosting with FreeBSD Jails

9. Mailfilter FreeBSD Jail

10. ezjail – A jail administration framework

11. The Quick-N-Dirty Guide to ezjail in FreeBSD

12. Managing Jails

13. Install FreeBSD 6.3 stable and 8.0 current inside FreeBSD 7 Stable

not 101 in fact but I like to use that 😉

On progress, help me a lot in learning FreeBSD jail :-)

Last Update : July 8 2008