my BSD Forum Planet

August 16, 2011

FreeBSD forums

why returning 0 on success?

Hi all,
I'm just curious to understand why some system calls, let's say mkdir(2), return 0 on success and a different value on error (while setting errno at the same time). In this way the coding pattern seems to be:

Code:

  error = mkdir(...);
  if( error ) return error;

while if the mkdir (and other calls) returns a non-zero value on success it could be rewritten as

Code:

  if( ! mkdir(.. ) ) //error
that seems to me more C-like. Can anybody explain me the rationale behind the above code pattern?

Thanks

by fluca1978 at August 16, 2011 07:34 AM

Slow disk performance on daemons, but not on direct access

Hi,

I have a strange problem, Every disk usage read or write is slow through any daemon (between 80 and 380KB)

As example:
- FTP.
- SMB.
- SCP.

But if i copy files directly on a disk or through a program (sabnzb as example) i get MB's of write and read speed.

Has anybody experienced a sort of problem?
I use FreeBSD 8.1, i have 5 disks in a raidz configuration.

Help is mutch appreciated.

Thank u!

Aron.

by aronjd at August 16, 2011 07:24 AM

ZFS snapshot managment

Not sure if this should go in a different location - please move if necessary!

I'm using ZFS (obviously) and set up zfs-snapshot-mgmt. My config is as follows:

Code:

snapshot_prefix: auto-
filesystems:
  tank/Backups:
    recursive: true
    creation_rule:
      at_multiple: 1440
      offset: 120
    preservation_rules:
      - { for_minutes: 47520, at_multiple: 1440, offset:  120 }

Based on the manpage this should create snapshots once a day (1440 minutes) at 2AM based on the 120 minute offset from midnight. When I let this run for a couple days I get this when I list snapshots:

Code:

tank/Backups@auto-2011-08-14_20.00
tank/Backups@auto-2011-08-15_20.00

I can determine any pattern that makes sense with that. 20:00 isn't 120 minutes from midnight or any obvious time. Can anyone explain what's happening?

by Sylgeist at August 16, 2011 04:45 AM

Learning FreeBSD through vmware...cannot set console resolution

Hello,

I'm slowly learning FreeBSD through a virtualized environment. I'd like to eventually make it my primary OS.

I'm having trouble setting console resolution.

I've added 'vesa_load="YES"' to loader.conf. I've installed vmware-tools but when I try to invoke vidcontrol MODE_XYZ I get the following error:

vidcontrol: cannot activate raster display: Inappropriate ioctl for device

Any ideas what needs fixing?

by george_k at August 16, 2011 04:32 AM

August 15, 2011

FreeBSD forums

Partitioning HD from Kubuntu

I am a long time linux user but new to FreeBSD. I'm switching from Kubuntu. I've searched forum and how to and have not found the answers to this.

Under Kubuntu, my HD has:

Code:

Partition    Mount    Size
/dev/sda1    /        23.84Gb
/dev/sda2    swap      4Gb
/dev/sda3    /home    391Gb
/dev/sda4    /public  279.83Gb

I know that I delete / and recreate it as a slice T 165 and it becomes the FreeBSD with partitions.

The partitioning utility does not allow me to create mount points for /home or /public.
Will these be mounted when I install FreeBSD? If so, I can then copy data and use these partitions.

by mpierce at August 15, 2011 11:27 PM

Radius Server using Chillispot and FreeRadius on FreeBSD 8.2 Problem

Could anyone help me in solving this problem?
I've tried to install and configure radius server on freebsd 8.2 using chillispot, freeradius. I followed this link address http://www.geeklan.co.uk/files/freeb...stallguide.txt

After following the step, I run radius debug using /usr/local/sbin/radiusd -X the end line result:

Code:

Module: Instantiated radutmp (radutmp)
Listening on authentication *:1812
Listening on accounting *:1813
Ready to process requests.


After finishing following step by step in that link address, I tried to run daemon of freeradius. Radius daemon is located in the directory /usr/local/etc/rc.d/radiusd. I run the command like this
/usr/local/etc/rc.d/radiusd start
then I checked the radius daemon status using command
/usr/local/etc/rc.d/radiusd status
The status result is radius is not running.
Then i follow one of the post in this forum that saying he was solving this problem by changing the ownership of the daemon, so i follow the instruction and change the ownership of the daemon. I tried to run chown command like this
chown -R radiusd : radiusd /usr/local/etc/rc.d/radiusd

but the result is the same, and my radius still not running.
Could anyone help me please in solving this problem?

best regards,

ryuu

by ryuusoultaker at August 15, 2011 11:19 PM

squid ipfw

Hi, I was wondering how http traffic on the gateway can be caught and redirected with ipfw/nat.
my setup is as follows:

Code:

                    if2                                              if1
lan ------->(rl0 192.168.1.0) freebsd gateway(sis0 76.0.0.0) --------> internet                   
                                        |
                                        |
                                        |
                                        |
                                      192.168.1.110 ---------------> internet
                                      squid server

on the gateway outside interface i have:
Code:

natd:
interface sis0
use_sockets yes
same_ports yes

I have a second instance of natd on rl0.
Code:

natd -v -n rl0 -p 8669 -redirect_address 192.168.1.110 0.0.0.0
the ipfw rules are:
Code:

divert 8668 ip from any to any via sis0
allow all from any to any via sis0
divert 8669 tcp from 192.168.1.0/24 to any dst-port 80 via rl0

tcpdump shows the gateway forwarding to the destination and not to squid.

does anyone have any idea where this is going wrong?

by pdono at August 15, 2011 09:59 PM

issue with xorg-drivers

I'm trying to install x11/xorg on a fresh installed 8.2-RELEASE machine and I'm getting errors from make. I've tried to install each module individualy (input-keyboard, input-mouse and video-intel to be exact) and they all exit with the same error described bellow.


Code:

ti02# make install clean
===>  Vulnerability check disabled, database not found
===>  License check disabled, port has not defined LICENSE
===>  Found saved configuration for xorg-drivers-7.5.1
===>  Extracting for xorg-drivers-7.5.1
===>  Patching for xorg-drivers-7.5.1
===>  Configuring for xorg-drivers-7.5.1
===>  Installing for xorg-drivers-7.5.1
===>  xorg-drivers-7.5.1 depends on file: /usr/local/lib/xorg/modules/input/mouse_drv.so - not found
===>    Verifying install for /usr/local/lib/xorg/modules/input/mouse_drv.so in /usr/ports/x11-drivers/xf86-input-mouse
===>  xf86-input-mouse-1.6.0 depends on file: /usr/local/libdata/pkgconfig/randrproto.pc - found
===>  xf86-input-mouse-1.6.0 depends on file: /usr/local/libdata/pkgconfig/inputproto.pc - found
===>  xf86-input-mouse-1.6.0 depends on file: /usr/local/libdata/pkgconfig/xorg-server.pc - not found
===>    Verifying install for /usr/local/libdata/pkgconfig/xorg-server.pc in /usr/ports/x11-servers/xorg-server
===>  Building for xorg-server-1.7.7_2,1
Making all in doc
Making all in include
Making all in dix
Illegal variable name.
gmake[2]: *** [atom.lo] Error 1
gmake[1]: *** [all] Error 2
gmake: *** [all-recursive] Error 1
*** Error code 1

Stop in /usr/ports/x11-servers/xorg-server.
*** Error code 1

Stop in /usr/ports/x11-servers/xorg-server.
*** Error code 1

Stop in /usr/ports/x11-drivers/xf86-input-mouse.
*** Error code 1

Stop in /usr/ports/x11-drivers/xorg-drivers.
*** Error code 1

Stop in /usr/ports/x11-drivers/xorg-drivers.
ti02# exit
exit

Anyone know how to solve this? Thanks in advance.

by ulzeraj at August 15, 2011 08:29 PM

[PF] Protecting jails from DDOS attacks

Hi,

I'm actually trying to configure pf in order to protect jails from DDOS attacks. For this, I tried doing this:

/etc/pf.conf

Code:

net_if1= "wlan0"

table <deny-hosts> persist
table <ssh-bruteforce> persist
table <me> { self }

# What to do on 'block' rule ?

set block-policy drop
set skip on lo0
scrub in all
scrub out all
antispoof for $net_if1 inet

block log all

block log quick on $net_if1 from {<deny-hosts> <ssh-bruteforce>}

pass out quick inet

pass in on $net_if1 inet from ($net_if1:network) to any keep state

pass in log on $net_if1 inet proto tcp from any to <me> port 22 synproxy state (max-src-conn-rate 3/10, overload <ssh-bruteforce> flush global) rdr-to 192.168.1.50

but I get a syntax error from line 23 .

Is the rdr-to syntax working on FreeBSD ?

Thanks, Gollum

by thegolum35 at August 15, 2011 08:11 PM

Can I get 2 interfaces from urtw driver ?

Hello,

I'm learning about how to create and configure jails by Ezjail. This works fine, but I think ip aliasing is not really practical to make the jail get an IP. Here is my /etc/rc.conf:
Code:

keymap="fr.iso.acc"
hostname="Golum_PC.home"
#wifi
wlans_urtw0="wlan0"
ifconfig_wlan0="WPA inet 192.168.1.29 netmask 255.255.255.0 up"
defaultrouter="192.168.1.1"
#fin wifi
hald_enable="YES"
dbus_enable="YES"
pf_enable="YES"
pflog_enable="YES"
sshd_enable="YES"
#jails
ezjail_enable="YES"
ifconfig_wlan0_alias0="inet 192.168.1.50 netmask 255.255.255.255"

For configuring pf, it would be better to have an interface for each jail. So, I have tried to add a wlan interface in "wlans_urtw0" and configuring wlan1 as follows:
Code:

wlans_urtw0="wlan0 wlan1"
ifconfig_wlan1="inet 192.168.1.50 netmask 255.255.255.0"

but this doesn't work: I get
Quote:

ifconfig: SIOCIFCREATE2: Input/output error
. Moreover, I read that urtw driver won't be able to create two interfaces ..

How could I solve this ?

Thanks, Gollum

by thegolum35 at August 15, 2011 06:18 PM

Samba 35 installation problem

Hello,
I used port net/samba35, because net/samba34 is vulnerable. I didn't remove default options, however, I enabled SWAT support. Compilation succeeded.

I put
Code:

samba_enable="YES"
in /etc/rc.conf. I just little changed default config.

The nmbd seems to be broken.
Code:

# /usr/local/etc/rc.d/samba status
nmbd is not running.
smbd is running as pid 89880.

I don't know what might be the reason of this problem. Thanks for any suggestions.

Attached Files
File Type: gz smb.conf.gz (4.1 KB)

by margor at August 15, 2011 04:26 PM

ezjail, multiple IP

Hello,

I try to set up a jail with two IP addresses.
I use ezjail:
ezjail-create my_jail 42.42.42.42

Then I edit file /usr/local/etc/ezjail/my_jail.
I tried two different ways, but none works:
1)
Code:

export jail_my_jail_ip = "42.42.42.42, 13.37.13.37"
2)
Code:

export jail_my_jail_ip = "42.42.42.42"
export jail_my_jail_ip_multi0 = "13.37.13.37"

Code:

# ezjail-admin start my_jail
Configuring jails:.
Starting jails: can not start jail "iodine"
.

Code:

# ezjail-admin list
DS N/A 42.42.42.42 my_jail /usr/jails/my_jail
  N/A 13.37.13.37

ifconfig
Code:

re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=389b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_UCAST,WOL_MCAST,WOL_MAGIC>
        ether xx:xx:xx:xx:xx:xx
        inet 42.42.42.42 netmask 0xffffff00 broadcast 42.42.42.255
        inet 13.37.13.37 netmask 0xffffff00 broadcast 13.37.13.255
        media: Ethernet autoselect (100baseTX <half-duplex>)
        status: active

Thank you in advance for your help.

by schasd at August 15, 2011 04:06 PM

setting prompt for sh shell

hi, folks! i've got a little problem.. i'm setting my sh prompt, but
Code:

PS1="[\u@\h:\W, \@, \d]> "
doesn't seems to work... how can i fix it?
thx in advance!

by killerklown at August 15, 2011 03:32 PM

FreeBSD on Asus EEE Pc 1015PE Seashell

i can get it installed but when i go to install gnome i keep getting the same error, i fallowed the install guide for gnome. the error is "error code 1" it's freebsd 9.0 beta, i've installed and reinstalled it many times. i would like to run freebsd with gnome.

by Krotos at August 15, 2011 01:42 PM

linux + freebsd + grub2 = utter failure

Hi. I did it in the past and everything worked seemlessly. Just upgraded grub syntax to grub2 and didn't even copy my 40_custom file, cos I thought it was so easy. But no luck this time around. The only difference is I now squeezed 2 distros (kubuntu and opensuse) on my extended partition. FreeBSD is on 4th slice. The partition layout:

Code:

Disk /dev/sda: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x8f70365b

  Device Boot      Start        End      Blocks  Id  System
/dev/sda1              1          13      102400    7  HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2              13      52217  419328000    7  HPFS/NTFS
Partition 2 does not end on cylinder boundary.
/dev/sda3          52217      146763  759434241    f  W95 Ext'd (LBA)
Partition 3 does not end on cylinder boundary.
/dev/sda4  *      146763      186056  315621328  a5  FreeBSD
Partition 4 does not end on cylinder boundary.
/dev/sda5          52217      53001    6290432  82  Linux swap / Solaris
/dev/sda6          53001      62138    73399296  83  Linux
/dev/sda7          62139      81719  157283328  83  Linux
/dev/sda8          81720      88247    52427776  83  Linux
/dev/sda9          88247      89551    10480640  83  Linux
/dev/sda10          89552      104434  119546880  83  Linux
/dev/sda11        104435      109414    39999488  83  Linux
/dev/sda12        109414      126844  139999232  83  Linux
/dev/sda13        126844      131823    39999488  83  Linux
/dev/sda14        131823      134313    19998720  83  Linux
/dev/sda15        134313      146763    99998720  83  Linux

Now, the old grub entry was:
Code:

title          FreeBSD
rootnoverify    (hd0,a)
chainloader +1

The grub2 entry looks sth like:
Code:

menuentry "FreeBSD 8.2" {
  insmod part_msdos
  insmod ext2
  set root=(hd0,msdos4,bsd1)<--partition not recognised or set root=(hd0,4)<---cannot find kernel
  chainloader +1

During FreeBSD install I chose "don't install any bootloader" option. Does it mean chainloading is not possible? I'm pretty sure I did this last time to and everything worked ok. But I may be wrong. What if I install FreeBSD bootloader, will it wipe out Windoze bootloader? How do I install bootloader without affecting MBR? I read that FreeBSD is supposed to be natively supported in grub2. If so, why isn't it recognised?

by American_Peanut at August 15, 2011 11:08 AM

August 14, 2011

FreeBSD forums

[kde3][jap] trouble with kanji in all aps

Hello forums!
I've got a trouble with displaying kanji in any KDE3 applications(with any font, including fixed and other full-unicode fonts):
http://smages.com/images/124fail.png
(all the kanji symbols are displayed like a box)
Can anyone provide me any ideas of solving that?

As I recall, there was no such problem in Linux.

by nekoexmachina at August 14, 2011 07:39 PM

[Solved] fail in xorg compilation

Hi there, I'm pretty new to FreeBSD and after configuring my wifi connection, I'm trying to download-compile-install xorg with the command "make install clean" in the folder /usr/ports/x11/xorg/ but it failed after some hours with that output

Code:

[....]
===> xf86-input-magictouch-1.0.0.5_6 needs xf86_ansic.h which doesn't exist with recent xserver
*** Error code 1

Stop in /usr/ports/x11-drivers/xf86-input-magictouch.
*** Error code 1

Stop in /usr/ports/x11-drivers/xorg-drivers.
*** Error code 1

Stop in /usr/ports/x11-drivers/xorg-drivers.
*** Error code 1

Stop in /usr/ports/x11/xorg.

how can I fix that? D:
thx in advance

by killerklown at August 14, 2011 05:52 PM

Synthetic test of FS compression

https://extrememoderate.wordpress.co...ession-part-1/

A comparison of different algorithms with different FS block and HDD sector sizes.

by Slurp at August 14, 2011 05:33 PM

MySQL doesn't start

Hi,
I messed something up in my FreeBSD Jail.

Now MySQL doesn't start anymore.

Code:

cat /var/db/mysql/*.err
110814 19:20:53 mysqld_safe Starting mysqld daemon with databases from /var/db/mysql
/usr/local/libexec/mysqld: Can't find file: './mysql/plugin.frm' (errno: 13)
110814 19:20:53 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
110814 19:20:53 InnoDB: The InnoDB memory heap is disabled
110814 19:20:53 InnoDB: Mutexes and rw_locks use GCC atomic builtins
110814 19:20:53 InnoDB: Compressed tables use zlib 1.2.3
110814 19:20:53 InnoDB: Initializing buffer pool, size = 128.0M
110814 19:20:53 InnoDB: Completed initialization of buffer pool
InnoDB: The first specified data file ./ibdata1 did not exist:
InnoDB: a new database to be created!
110814 19:20:53  InnoDB: Setting file ./ibdata1 size to 10 MB
InnoDB: Database physically writes the file full: wait...
110814 19:20:53  InnoDB: Log file ./ib_logfile0 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile0 size to 5 MB
InnoDB: Database physically writes the file full: wait...
110814 19:20:53  InnoDB: Log file ./ib_logfile1 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile1 size to 5 MB
InnoDB: Database physically writes the file full: wait...
InnoDB: Doublewrite buffer not found: creating new
InnoDB: Doublewrite buffer created
InnoDB: 127 rollback segment(s) active.
InnoDB: Creating foreign key constraint system tables
InnoDB: Foreign key constraint system tables created
110814 19:20:54  InnoDB: Waiting for the background threads to start
110814 19:20:55 InnoDB: 1.1.8 started; log sequence number 0
110814 19:20:55 [ERROR] /usr/local/libexec/mysqld: unknown option '--safe-show-database'
110814 19:20:55 [ERROR] Aborting

110814 19:20:55  InnoDB: Starting shutdown...
110814 19:20:56  InnoDB: Shutdown completed; log sequence number 1595675
110814 19:20:56 [Note] /usr/local/libexec/mysqld: Shutdown complete

110814 19:20:56 mysqld_safe mysqld from pid file /var/db/mysql/famp.fritz.box.pid ended
110814 19:24:11 mysqld_safe Starting mysqld daemon with databases from /var/db/mysql
/usr/local/libexec/mysqld: Can't find file: './mysql/plugin.frm' (errno: 13)
110814 19:24:11 [ERROR] Can't open the mysql.plugin table. Please run mysql_upgrade to create it.
110814 19:24:11 InnoDB: The InnoDB memory heap is disabled
110814 19:24:11 InnoDB: Mutexes and rw_locks use GCC atomic builtins
110814 19:24:11 InnoDB: Compressed tables use zlib 1.2.3
110814 19:24:11 InnoDB: Initializing buffer pool, size = 128.0M
110814 19:24:11 InnoDB: Completed initialization of buffer pool
110814 19:24:11 InnoDB: highest supported file format is Barracuda.
110814 19:24:11  InnoDB: Waiting for the background threads to start
110814 19:24:12 InnoDB: 1.1.8 started; log sequence number 1595675
110814 19:24:12 [ERROR] /usr/local/libexec/mysqld: unknown option '--safe-show-database'
110814 19:24:12 [ERROR] Aborting

110814 19:24:12  InnoDB: Starting shutdown...
110814 19:24:13  InnoDB: Shutdown completed; log sequence number 1595675
110814 19:24:13 [Note] /usr/local/libexec/mysqld: Shutdown complete

110814 19:24:13 mysqld_safe mysqld from pid file /var/db/mysql/famp.fritz.box.pid ended
[root@famp /usr/local/etc/rc.d]# mysql_upgrade
Looking for 'mysql' as: mysql
Looking for 'mysqlcheck' as: mysqlcheck
Running 'mysqlcheck' with connection arguments: '--port=29912'
mysqlcheck: Got error: 2002: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) when trying to connect
FATAL ERROR: Upgrade failed

Regards
bsus

by bsus at August 14, 2011 05:27 PM

IPFW question, and lastcomm question

For example if i would create a uid/gid based rule

Code:

ipfw add allow log all from any to any uid test
This would log all activity to the ipfw0 interface from that user, .. if ipfw disable verbose, ofcourse ..

Now my problem i run apache-itk-mpm, .. and the setuid processes aren't logged neither are those of ssh, .. strange thing is the process has that specific uid however it is nog logged because it is a setuid. And i've noticed same goes for other processes, that use setuid.

Is there a way arround this.

An other consurn is, for example lastcomm

Code:

security.bsd.see_other_gids: 0
security.bsd.see_other_uids: 0

so ps aux only shows the users processes same goes for sockstat, however if the user types lastcomm it shows all history?

Code:

$ sockstat
USER    COMMAND    PID  FD PROTO  LOCAL ADDRESS        FOREIGN ADDRESS     
$ ps aux
USER  PID %CPU %MEM  VSZ  RSS  TT  STAT STARTED      TIME COMMAND
test 45350  0.2  0.1 10324  2392  8  S    1:28PM  0:00.04 _su (tcsh)
test 45359  0.0  0.1  8296  1428  8  S    1:28PM  0:00.00 sh
test 45360  0.0  0.1  8044  1132  8  R+    1:29PM  0:00.00 ps aux
$ lastcomm | tail
cat              -      root            __        0.002 secs Sun Aug 14 03:05
sh              -      root            __        0.006 secs Sun Aug 14 03:05
dump            -      root            __        0.003 secs Sun Aug 14 03:05
df              -      root            __        0.003 secs Sun Aug 14 03:05
cp              -      root            __        0.003 secs Sun Aug 14 03:05
sh              -      root            __        0.005 secs Sun Aug 14 03:05
cp              -      root            __        0.003 secs Sun Aug 14 03:05
cat              -      root            __        0.002 secs Sun Aug 14 03:05
sh              -      root            __        0.009 secs Sun Aug 14 03:05
sa              -      root            __        1.460 secs Sun Aug 14 03:05
$ id
uid=2365(test) gid=10000(sensor) groups=10000(sensor)
$

by Ofloo at August 14, 2011 11:30 AM

i3-2310m GPU can't support 1366x768

I use i3-2310m GPU in ThinkPad X220i on 8.2 amd64.
According to /var/log/Xorg.0.log, modify /etc/X11/xorg.conf:
Code:

section "monitor"
    identifier  "monitor0"
    vendorname  "monitor vendor"
    modelname  "monitor model"
    horizsync  30-47
    vertrefresh 1-60
    modeline    "1366x768" 74.8 1366 1414 1446 1578 768 770 775 790
endsection
section "screen"
    subsection "display"
        viewport  0  0
        depth      24
        modes      "1366x768"
    endsubsection
endsection

but only get 1024x768 screen.

by ericchern at August 14, 2011 07:31 AM

Unconstant kernel panic at boot

Hello, I recently decided to make the switch from Linux/Mac OS, to FreeBSD, I'm happy to say i have this strange feeling i just got home.

Laptop: Macbook Pro 5,5
FreeBSD -v: 9.0-CURRENT (no dual-boot)

I firstly tried installing 8.2-STABLE which to my surprise the installation iso led me to various kernel-panics before prompt/sysinstall, once it booted fine (a few errors on stdout) but the installation worked, to my surprise this random kernel panic just kept happening, after recompiling kernel (BTW, awesome kernel compiling system, config is small and simple) i decided to try 9.0-BETA which also led me to kernel panic on the live fs, i got it to install and I'm in it right now. Random kernel panics (ON BOOT) keep happening, 1 out of 3 boots is my guess.Since I'm new i don't really know what to paste, so that's what I'm asking.

(I have this wild guess that panics happen when i have USB wifi plugged in during boot, but haven't been able to replicate it every time)

What output do you need to check/verify this?

by Jsanchez at August 14, 2011 04:47 AM

mousepad and default locale

Hi,

I am using xfce4 as my desktop and within this mousepad is a text editor. On saving file, if one do not specify UTF-8 as a locale, one will get an error that say

Can't convert codeset to 'ASCII'

when I use thai characters, non english characters, within mousepad. There is no error when using english characters.

Is there anyway to set the default locale to UTF-8 for mousepad ?

Any helps and hints are welcome and appreciate.

with best regards,
psr

by jotawski at August 14, 2011 03:53 AM

August 13, 2011

FreeBSD forums

[FreeNAS] Problem with booting from CF card after successful installation

Hello,

I have sucesfully installed Freenas 8.0, which bases on FreeBSD 8.2, from CD on 4GB Compact Flash. Card is connected to PC through CF->IDE adapter. I am using quite an old PC to run Freenas. It has Pentium III 500MHZ proccessor and 512MB RAM (Fujitsu-Siemens Scovery 250).

The problem is the computer won't boot from CF card with Freenas isntalled. There is only blinking cursor in the top left corner on the screen. It doesn't respond to any input from keyboard. Here is a list of thing I have tried:
- disconnecting all other drives (HDD and CD)
- turning DMA on/off in BIOS
- connecting adapter to different IDE channel/ using differend cable.

My bios doesn't support LBA addressing so I am forced to use CHS (Cylinder/header/sector). Please, can anyone suggest anything else what might help?

by zyto45 at August 13, 2011 08:47 PM

[Solved] Installing ports, using an alternate dir for "work"

Hello, thanks for reading...

I'm playing with speeding up building ports.

I want to see if there's any benefit to putting the "work" dir in memory.

I tried this, in /etc/make.conf

Code:

WRKDIR=/memdisk/portwork
/memdisk is the mounted memory filesystem (mfs). /memdisk/portwork exists and is writable and all ... I was thinking that /memdisk/portwork would have subdirs for each port which is building. I tested it with a few ports and it seemed to work. Then I tried to build the x11-wm/hs-xmonad port. Built some deps including ghc fine ... but then it fails like this:

Code:

===>  Returning to build of hs-mtl-2.0.1.0_1
===>  Configuring for hs-mtl-2.0.1.0_1
cd: can't cd to /memdisk/portwork/mtl-2.0.1.0
*** Error code 2

Stop in /usr/ports/devel/hs-mtl.
*** Error code 1

Stop in /usr/ports/x11-wm/hs-xmonad.



Okay, so it can't cd to /memdisk/portwork/mtl-2.0.1.0 ... which sounds reasonable as that dir did not exist when I looked for it immediately after the build failed. The thing is, I discovered that if I simply re-run make it works. Since I did not try to build this port's build dependencies before changing make.conf I do not know if the hiccup which requires that I run 'make' twice for hs-xmonad is because of setting alternate WRKDIR. Is this what WRKDIR is for? Is one of these ports not respecting WRKDIR, or maybe I am going about this the Wrong Way and if so can anyone recommend a Right Way? :stud

Thanks very much in advance for any suggestions or clarification!

by blak3mill3r at August 13, 2011 08:17 PM

Incoming mail server connection refused

I have a mail server setup for my domain, and I can successfully send mail to any destination. However, I cannot receive any mail. When I do a telnet to port 25 it replies with connection refused.

In my pf.conf I have:
Code:

rdr on $ext_if inet proto tcp from any to $ext_if port 25 -> $dmz_smtp
and I'm passing all connection for SMTP:
Code:

pass in on $ext_if proto tcp from any to $dmz_smtp port 25 flags S/SA synproxy state
The dmz_smtp IP is the internal lan 192.168.2.22/32.

It is listening on port 25 and connects for localhost, but not externally. My DAEMON_OPTIONS have for address:
Code:

Address=0.0.0.0
Does that need to be changed to the external IP or remove Address from DAEMON_OPTIONS entirely since the default is to listen on all?

by gpatrick at August 13, 2011 08:15 PM

FreeBSD not booting

Hello I am new to FreeBSD and I was hoping to learn the foundations of it by using a study guide. Today i tried installing FreeBSD.

I succesfully installed it and tried it next to my other operating system and it worked; I then decided to reinstall FreeBSD as the only operating system and used the A option for all partitioning during setup.

Something went wrong during the installation, and when I chose to install by memorystick (I think this was when it happened) I got an error message and decided not to continue with the installation but instead start over with the installation again. This did not work and my computer no longer boots my memorystick or previous OS installations.

It says:
Code:

Invalid partition
Invalid partition
FreeBSD/x86 boot
Default: 0:ad(0,a)/boot/kernel/kernel
boot:
invalid partition
No /boot/kernel/kernel

FreeBSD/x86 boot
Default: 0:ad(0,a)/boot/kernel/kernel
boot:

When I try to install FreeBSD by using the memorystick like I did the first time the computer tells me to remove the external device and then restarts and the same invalid partition message appears :(.

So my question is what I did wrong and how to fix it?

by Mike2 at August 13, 2011 06:41 PM

building ports with gcc46 under 8-STABLE (for the fun)

Hello,

I have to stay home today just in case my employer calls me for assistance, so i decided to mess around with FreeBSD ports on my laptop :)

I've installed gcc46 (as described in the handbook, but for gcc44) and tried to recompile all ports.

I known this is not a good idea, but remember i'm just playing with my computer to kill time and probably most of the softwares i've installed so far.

I got some problems with the stack protector flag (now enabled by default), lots of ports failed to build with the following error :

Code:

undefined reference to `__stack_chk_fail_local'
So i decided to remove it (...) by adding the line "SSP_CFLAGS=" in /etc/make.conf, only for ports.

Seems like it's building fine now, but i have a couple of questions :

Is this a known problem ?
Is SSP_CFLAGS= the "right way", if any, to disable stack protection ?
Or, is there any way to keep stack protection and build with gcc46 ?

by tobe at August 13, 2011 10:03 AM

[Solved] How to get /dev/disk ?

Hello

I've seen hard disks being referenced by their IDs, i.e. /dev/disk/by-id/something in some threats (example) as well as the mail archives, which is IMO quite useful - partition labels do the job elsewhere but I read recommendations everywhere to use whole disks for zpool-vdevs.

My problem is, that I don't even have the /dev/disk directory to begin with. I guess it's a kernel module or config option that needs to be loaded/set (since zfsboot eventually can't access /etc/devd.conf when booting to zfs-root backed by disk-id vdevs), but I don't know which one...

... can anyone tell me?

by xibo at August 13, 2011 09:12 AM

about mount_option at hal's fdi

i want to enable some config at Hal, this is my config:
Code:

$ cat /usr/local/etc/hal/fdi/policy/99-arli-removeable.fdi

<?xml version="1.0" encoding="UTF-8"?>

<deviceinfo version="0.2">
        <device>
          <match key="volume.fsusage" string="filesystem">
                <match key="volume.fstype" string="vfat">
                <merge key="volume.policy.mount_option.-m" type="string">666</merge>
                <merge key="volume.policy.mount_option.-M" type="string">777</merge>
                </match>
          </match>
        </device>
</deviceinfo>

and like work fine at hal
Code:

$ lshal | grep "mount_option.-"

  volume.policy.mount_option.-M = '777'  (string)
  volume.policy.mount_option.-m = '666'  (string)

but still not work when mount (not 666 always 700):
Code:

$ ll /media/disk/
total 160
-rwx------  1 arli  arli      2  8 12 06:06 .windows-serial
drwx------  1 arli  arli  32768  5  9 17:53 Installer

mount by:

Code:

$ gvfs-mount -d /dev/da1s3
command "# hald --daemon=no --verbose=yes" response:

Code:

mount_point    = ''
mount_fstype  = ''
mount_options  = 'longnames        -u=1001        '
trying dir /media/disk
given_options[0] = 'longnames'
given_options[1] = '-u=1001'
allowed_options[0] = 'ro'
allowed_options[1] = 'noexec'
allowed_options[2] = 'noatime'
allowed_options[3] = 'longnames'
allowed_options[4] = 'shortnames'
allowed_options[5] = 'nowin95'
allowed_options[6] = '-u='
allowed_options[7] = '-g='
allowed_options[8] = '-m='
allowed_options[9] = '-M='
allowed_options[10] = '-L='
allowed_options[11] = '-D='
allowed_options[12] = 'large'
using action org.freedesktop.hal.storage.mount-removable for uid 1001, system_bus_connection :1.63
passed privilege
08:57:39.423 [I] device.c:1894: Removing locks from ':1.65'
7357: XYA creating /media/.hal-mtab~
7357: XYA closing /media/.hal-mtab~
7357: XYA done renaming /media/.hal-mtab~ to /media/.hal-mtab
7357: XYA released lock on /media/.hal-mtab-lock
pid 7357: rc=0 signaled=0: /usr/local/libexec/hal-storage-mount
08:57:39.956 [I] device.c:1894: Removing locks from ':1.64'
08:57:39.956 [I] hald_dbus.c:4106: No more methods in queue
08:57:39.959 [I] ci-tracker.c:212: Removing CICallerInfo object for :1.63

x( help me pls. its named "volume.policy.mount_option.-m" @ FreeBSD ?
ps: not gnome installed, don't tell me via GCONF.

by arli at August 13, 2011 01:04 AM

August 12, 2011

FreeBSD forums

How to install postfix via freebsd 8.1 with mysql ??

Hi, I want to setup a mail server mainy postfix with mysql. I want to make my own php webmail interface to my website.

I also want to use php to use the mail function to use these accounts too... to automate e-mails to users.

Like when they register they will have to verify their e-mail address.

I need to learn how e-mails get passed and how I can make my mail serve to send e-mails and receive e-mails.

any good tutorials other then the manuals on here and postfix website. I already tried them and tried many other online tutorials I was able to follow the steps but still when I got to the point where I had to make mysql tables I got lost as to what information needs to be in that table. So I never got things to work at all. Yet, I was able to config postfix to use it's own mail maps system. I was able to send and receive mail.

any ideas of some good resources that can teach me how e-mail servers work and how I need to set my postfix mail server ???

by hockey97 at August 12, 2011 11:40 PM

Accepting Travel Grant Applications for EuroBSDCon 2011

Calling all FreeBSD developers needing assistance with travel expensesto EuroBSDCon 2011.

The FreeBSD Foundation will be providing a limited number of travelgrants to individuals requesting assistance. Please fill out and submitthe Travel Grant Request Application bySeptember 5, 2011 to apply for this grant.

How it works:

This program is open to FreeBSD developers of all sorts (kernel hackers,documentation authors, bugbusters, system administrators, etc). In somecases we are also able to fund non-developers, such as active communitymembers and FreeBSD advocates.

(1) You request funding based on a realistic and economical estimate oftravel costs (economy airfare, trainfare, ...), accommodations(conference hotel and sharing a room), and registration or tutorialfees. If there are other sponsors willing to cover costs, such as youremployer or the conference, we prefer you talk to them first, as ourbudget is limited. We are happy to split costs with you or anothersponsor, such as just covering airfare or board.

If you are a speaker at the conference, we expect the conference tocover your travel costs, and will most likely not approve your directrequest to us.

(2) We review your application and if approved, authorize you to seekreimbursement up to a limit. We consider several factors, including ouroverall and per-event budgets, and (quite importantly) the benefit tothe community by funding your travel.
Most rejected applications are rejected because of an over-all limit ontravel budget for the event or year, due to unrealistic or uneconomicalcosting, or because there is an unclear or unconvincing argument thatfunding the applicant will directly benefit the FreeBSD Project.Please take these points into consideration when writing your application.

(3) We reimburse costs based on actuals (receipts), and by check or banktransfer. And, we do not cover your costs if you end up having to cancel your trip. We require you to submit a report on your trip, which we mayshow to current or potential sponsors, and may include in our semi-annual newsletter.

There's some flexibility in the mechanism, so talk to us if somethingabout the model doesn't quite work for you or if you have any questions.The travel grant program is one of the most effective ways we canspend money to help support the FreeBSD Project, as it helps developersget together in the same place at the same time, and helps advertise andadvocate FreeBSD in the larger community.


More...

by admin at August 12, 2011 08:50 PM

Mount UFS drive from DVD player

I'm a total noob with BSD. A friend has a Sony DVD player with an internal harddrive. The drive was stuck in a loop, trying to consolidate. The drive has been formatted with UFS. After running desktopBSD the drive was recognized but gave an error 'Mounting the file system failed'.

If the drive can be accessed, files can be retrieved. Any advice?

by tadcan at August 12, 2011 08:30 PM

If I'm using -STABLE, is there any issue using both packages and ports?

When I was first starting out with FreeBSD, I was using -RELEASE and noticed that if I would add packages and later use ports, I would get all kinds of error messages about certain ports or packages requiring certain versions of things and it just seemed to be a nightmare and I switched to using ports exclusively.

Now that I'm using -STABLE and packages are coming from the "latest" repository as opposed to "release", and I really have no interest in compiling xorg, firefox, libreoffice, k3b, etc, is there any reason I couldn't just add those packages and then switch back to using ports? Or will I end up getting warning messages about program versions again?

by bigtoque at August 12, 2011 05:37 PM

IPFW Deny Windows Live Messeger on IPFW

Hi Guys,

I have a box with FreeBsd 8.0-Release, runnig ipfw as firewall.

So, i have some rules to block "WLM" on squid and it's working good, but, on the ipfw there
are some problems. I will tell you how was my network config:

Interfaces
-----------------------------------------------
if external = rl1
if internal = rl0

They are defined on ipfw script as ife and ifi.


|-Rules
||-Defining WLM Servers ip's and free ip's from my network that can connect to them

Code:

WLMServers="64.4.0.0/16,65.55.72.0/24"
Code:

freeWLM="192.168.x.x,192.168.x.y,192.168.x.z"
...
Rule #09320
Code:

${fwcmd} add set 13 allow log all from ${freeWLM} to any dst-port 1863 out via ${ife} setup keep-state
Rule #09420
Code:

${fwcmd} add set 13 allow log all from ${freeWLM} to ${WLMServers} dst-port 80,443 out via ${ife} setup keep-state
...

|-Allowing all from ipfw external ip to any

Rule #14720
Code:

${fwcmd} add set 23 allow log tcp from me to any out via ${ife} setup keep-state
Well, when i try to connect from any ip from my network, ipfw Deny the connection if the ip are not defined in the variable "freeWLM" on the rule #09320, but next it Allows the connection from external interface of firewall to the port 1863 using the rule #14720 and then the ip that initiate the connection of WLM get's ON-LINE.

If i remove the rule #14720, no one of the ip's in my network, include those on the freeWLM variable can connect to the WLM servers, as show the log security:

Code:

Aug 12 11:14:48 neoproxy kernel: ipfw: 9320 Accept TCP 192.168.Y.X:49751 65.54.52.254:1863 in via rl0
Aug 12 11:14:48 neoproxy kernel: ipfw: 65534 Deny TCP 192.168.A.B:49751 65.54.52.254:1863 out via rl1

The rule #65534 is:

Code:

${fwcmd} add 65534 set 24 deny log logamount 50000 all from any to any
Thank you for help me out.

by cybercoke at August 12, 2011 05:12 PM

How to interconnect a Blu-Ray disc to the PS3 interface through FreeBSD for Java?

Hi all
I am thinking to make one Blu-Ray project for educational purpose and interconnect the Blu-Ray project(Blu-Ray disc) to the PS3 interface through BD-J(Java coding for Blu-Ray) to take advantage of some PS3 features. Is it possible?.Could anybody help me with this topic and advice me?
Thanks in advance.
Alejandro Castan

by castana at August 12, 2011 05:08 PM

FreeBSD 8.2-p2 MCP51 snd_hda no microphone

Hello,

I have ASUS M2NVP-VM motherboard with NVidia MCP51 High Definition Audio Controller. But snd_hda does not detect microphone.

uname -a
Code:

FreeBSD odin.valhalla 8.2-RELEASE-p2 FreeBSD 8.2-RELEASE-p2 #0: Thu Aug 11 22:07:20 EEST 2011
root@odin.valhalla:/usr/obj/usr/src/sys/GENERIC  amd64

/etc/rc.conf
Code:

# -- sysinstall generated deltas -- # Thu Aug 11 22:14:30 2011
# Created: Thu Aug 11 22:14:30 2011
# Enable network daemons for user convenience.
# Please make all changes to this file, not to /etc/defaults/rc.conf.
# This file now contains just the overrides from /etc/defaults/rc.conf.
defaultrouter="192.168.1.1"
gateway_enable="YES"
firewall_enable="YES"
firewall_nat_enable="YES"
firewall_type="/etc/ipfw_rules"
hostname="odin.valhalla"
ifconfig_nfe0="inet 192.168.1.2  netmask 255.255.255.0"
ifconfig_rl0="inet 10.0.25.1 netmask 255.0.0.0"
keymap="ua.koi8-u"
sshd_enable="YES"

hald_enable="YES"
dbus_enable="YES"

linux_enable="YES"

fusefs_enable="YES"

dhcpd_enable="YES"
dhcpd_ifaces="rl0"

local_startup="${local_startup} /usr/local/kde4/etc/rc.d"
kdm4_enable="YES"

/boot/loader.conf
Code:

atapicam_load="YES"
snd_hda_load="YES"
nvidia_load="YES"

mixer
Code:

Mixer vol      is currently set to  44:44
Mixer pcm      is currently set to  80:80
Mixer speaker  is currently set to  75:75
Mixer igain    is currently set to  0:0
Mixer ogain    is currently set to  50:50

dmesg in attach

Anyone have any ideas?
Thx

Attached Files
File Type: txt dmesg.txt (8.3 KB)

by Eudgen at August 12, 2011 05:08 PM

Networking Monitor

What's a good way to monitor my home network? I have a freebsd router/firewall and everything goes though that.

Optimally I would like something that graphs it over time and also breaks it down by "type" of traffic (udp, p2p, http, etc) so I can get a general feel of what is sucking up all the bandwidth during certain times of the day (I have room mates). Also source would be good too.

by feralape at August 12, 2011 05:00 PM

[FreeNAS] geom mirror cannot destroy device error 16

Hey guys,

I have successfully been running a FreeNAS Server for a while now without any issues.
I recently switched to a Software RAID configuration (GEOM Mirror) with my Disks and have had some weird problems with my 1TB Software RAID.

My server would suddenly shutdown after I tried accessing smb or when it was told so by a cron job but
it halted at the end and did not switch off completely. I then had to go up to the server and reboot it manually.

The following error messages where printed (only) on the monitor:

Code:

gmirror: Cannot destroy device Hell (error=16)
geom: Could not unload module: device busy.
... (syncing buffer, inodes, etc.)
GEOM_MIRROR: Device Hell: provider mirror /Hell destroyed.
GEOM_MIRROR: Device Hell destroyed

When I try to manually stop the device with
Code:

geom mirror stop Hell
the same error comes up in the cli.
Code:

geom: Cannot destroy device Hell (error=16).
I ran fsck on the mirror and it doesn't find any faults.

Here some additional information:

Software RAID 1 with a Samsung SpinPoint F1 1 TB and WDCaviarGreen 1TB.

I've been also getting smartd reports with errors from the WDCaviarGreen Disk. This may be at the root of the problem:

Code:

Device: /dev/ad12, 4 Currently unreadable (pending) sectors
Device: /dev/ad12, 4 Offline uncorrectable sectors

(I can post full smartd report, if needed)

I know that the Load_cylce_count parameter on the WD Disk is very high, since I've only recently used WIDLE3 to set the parking of the head to a higher value. Maybe the disk is broken.. (hope not!)

Further errors are logged about the mirror device, but which, after searching through the FreeNAS forum, I have found to ignore because they are falsely reported by the OS.

Code:

kernel: GEOM: ad14: using the primary only -- recovery suggested.
kernel: GEOM: ad14: the secondary GPT table is corrupt or invalid.
kernel: GEOM: ad12: using the primary only -- recovery suggested.
kernel: GEOM: ad12: the secondary GPT table is corrupt or invalid.

System Info:

FreeNAS 0.7.2 Sabanda (revision 6694)
OS Version FreeBSD 7.3-RELEASE-p6 (revision 199506)
Platform amd64-embedded on Intel(R) Atom(TM) CPU 330 @ 1.60GHz
RAM 2GB

I'd be glad for some help with resolving this problem.

Cheers

by HeroicGlaedr at August 12, 2011 03:59 PM

Wi-Fi & Broadcom Corporation Device 4727 (Samsung N220)

I've read the handbook as well as numerous posts about broadcom wifi cards in this forum. It seems like bwi and bwn-drivers are not recognizing my wifi-card. Im using freebsd 8.2, 64 Bit.

lspci | grep -i net
Code:

05:00.0 Network controller: Broadcom Corporation Device 4727 (rev 01)
09:00.0 Ethernet controller: Marvell Technology Group Ltd. 88E8040 PCI-E Fast Ethernet Controller

pciconf -lv
Code:

(...)
none2@pci0:5:0:0:      class=0x028000 card=0x051a185f chip=0x472714e4 rev=0x01 hdr=0x00
    vendor    = 'Broadcom Corporation'
    class      = network
(...)

dmesg | grep pci5
Code:

pci5: <ACPI PCI bus> on pcib1
pci5: <network> at device 0.0 (no driver attached)

So theses are my bwi-settings:

/boot/loader.conf
Code:

if_bwi_load="YES"
bwi_v4_lp_ucode_load="YES"

/etc/rc.conf
Code:

wlans_bwi0="wlan0"
ifconfig_wlan0="WPA SYNCDHCP"

/etc/wpa_supplicant.conf
Code:

network={
        ssid="<my_essid>"
        psk="<my_key>"
}

After reboot only the wired device shows up.

ifconfig
Code:

msk0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=8010a<TXCSUM,VLAN_MTU,TSO4,LINKSTATE>
        ether 00:24:54:b3:0c:fb
        inet 192.168.1.57 netmask 0xffffff00 broadcast 192.168.1.255
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        options=3<RXCSUM,TXCSUM>
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x2
        inet6 ::1 prefixlen 128
        inet 127.0.0.1 netmask 0xff000000
        nd6 options=3<PERFORMNUD,ACCEPT_RTADV>

I've successfully installed the firmwares as described in bwi manpage.

Same issue with bwn.

What am I missing?

PS: Sorry, CMD-Tag doesn't seem to work properly.

by danny at August 12, 2011 12:53 PM

Can top be wider than 128 columns

Hi guys,

This seems like it should have a simple solution but I haven't been able to find one.

'top -a' seems to truncate at 128 columns - is there any way to make this wider?

Thanks!

by FredMack at August 12, 2011 04:59 AM

To scrub or not to scrub - Crash by scrub, zfs

So when I try to scrub my little pool it dies. It scrubs and scrubs until it has scrubbed about 90% of the pool. This I am certain of because the second time I tried to scrub I checked every now and then, and death happen around the 90% mark. What happens is that the screen is all black and nothing really, I have to hold the on button in for 4 sec. before it will even shutdown. And then I can restart... not good.

The pool is made of 2 vdev's both Raidz, one is 6x 1TB and the other is 6x 2TB. At first the pool had only the "1TB" vdev, but when it got around 90% used I added the second vdev. It should also be noted that the "1TB" vdev has used 4.82TB and has 632GB available, the "2TB" vdev has used only 166GB and 10.7TB available.

So my theory is that when I scrub everything is good until it have to scrub data from both vdev's in the pool. Then it reveals itself as a racist and tries to deny the "2TB" vdev any help, tsk tsk this kinda discrimination against the "bigger" vdevs will not do. :P


And I also wonder if the scrub will continue from where is stop when it crashed when I start the system up again.
And lastly, any word on the "Block Pointer Rewrite"?

Edit: If it was unclear, why does it crash, how to fix it, will the scrub continue from last time and any word on about the BPR?

by Bobbla at August 12, 2011 02:28 AM

August 11, 2011

FreeBSD forums

Frustration: open-vm-tools

I am running FreeBSD 7.4 and VMware Fusion 3.13. I am trying to setup "open-vm-tools" (instead of using VMware Tools).

I have never installed or used "open-vm-tools", but this is what I've done so far:

1. pkg_add -r open-vm-tools

Note:
The install had no issues.

2. I typed the following in the rc.conf file:

Code:

  vmware_guest_vmbloack_enable="YES"
  vmware_guest_vmhgfs_enable="YES"
  vmware_guest_vmmemctl_enable="YES"
  vmware_guest_vmxnet_enable="YES"
  vmware_guestd_enable="YES"

3) I rebooted the freeBSD 7.5 virtual machine and I have no "grab/release" mouse input between the guest/host. The mouse is trapped inside the guest (unless I use a keyboard hotkey sequence to release the mouse to the host. I also cannot drag and drop a file between the guest and host and vice-versa.

Anyway, I'm missing some obvious steps here. Can somebody clue me in?

by Nihilator at August 11, 2011 10:33 PM

8.2-RELEASE/ Ports / "Cannot fork: Resource unavailable" directly after make

Hi,
i'm installing FreeBSD 8.2-RELEASE on a amd64 PC.

Basic configuration is
/boot on UFS2
/ (and other) on ZFS v15

To install FreeBSD on this configuration, i do this manually through a howto (HowTo in the FreeBSD Wiki)

I would like to use Grub2 as Bootloader.
To install Grub2 i chroot in the target and cd to /usr/ports/sysutils/grub2 and run make.
Directly after this i got the
Error: "Cannot fork: Resource temporarily unavailable"

With no further information.

Search this forum, google and asking on irc does not result in any help.

Thanks in advance for any help, that can be given.

Greetings
paraqles

by paraqles at August 11, 2011 09:49 PM

[Solved] Syntax highlighting in the "vi".

Can the editor "vi" highlight syntax?:
- Shell
- C / Cpp
- Pyhton

I know of the existence of the editor "Vim", but would like to work on "vi".

by doorways at August 11, 2011 07:59 PM

Some questions about UFS-J

I read some documents about UFS-J and the man pages too, so I guess I'm able to install a new system with UFS-J filesys. My questions are related to UFS-J requirements and performances and if it is enabled on the next release on FreeBSD (9.0).

My home server is an old machine, PII 466MHz 512MB RAM, in the past I ran in trouble with FreeBSD 8.0/8.1 and HDD (about 30-40 power failures per year, one of them was fatal), anyway, I should use an UPS. No UPS. The problem is not my personal data, it's the system configuration instead. In the past I spent a lot of time reconfiguring system, ports and services, now I have a virtualbox twin on another machine configured in the same way of the server (but it's not really the same) and an USB mem stick always plugged in with 6h buckup of all system/ports/personal configuration files and some scripts to configure a new installation.

Now, is appropriate to install UFS-J on a machine like the above? the services I run are httpd, mysql, qmail, and a not-so-often-used desktop (X server + XFCE + some WMs) primarily in remote but 99% I use remote console only. The term 'appropriate' refers to RAM and CPU.

The close to coming FreeBSD 9.0 will support (at installation time) UFS-J by default?

Thanks in advance for your replies

by freethread at August 11, 2011 03:51 PM

Routing LAN back from WAN

I'm having an issue routing on a specific client site.

Our configuration consists of a 3xT1 data line backed into a FreeBSD 5.5p10 system (I know, we're upgrading it over the Christmas break this year) that provides IPFW2 and NATD services to manage routing WAN IPs to LAN IPs on our various subnets.

We host several web systems on these subnets and our normal policy is to modify external DNS and internal DNS separately so that everything is optimized. For example, we would set store.mycompany.com on the external DNS to point to the WAN IP and set store.mycompany.com on the internal DNS to point to the LAN IP.

This method has served us well for years and allow us to roll with a lot of changes very rapidly.

However, we now are working on a project that requires us to do things a bit differently. We need our internal systems to be able to go to np.mycompany.com and utilize only the WAN address for the resolution.

When we do this, we get timeouts from our internal systems. Basically, the web browser just sits and spins forever.

My traceroute and ping work just fine, but the that's it.

In addition, if I configure a local system to utilize a dedicated WAN address and plug it directly into the external router of the 3xT1 interface, I get success.

So, my conclusion is that I have something missing in my routing that is preventing this from working when behind the firewall. I guess it could also be a firewall entry, but I've testing doing an allow all and still get the same results.

I just have the feeling that I'm missing out on something very simple and that soon I will be hanging my head low to my own ignorance.

Thanks in advance for any thoughts anyone might have.

by morpheusrising at August 11, 2011 03:43 PM

suitable plugin for chromium to playing audiostreams directly inside chromium

Hi there,

I'm searching currently a suitable plugin for chromium to playing audiostreams directly inside the chromium browser. I mean directly without to open a another application such like Gmplayer on a Internet radio like on Frequence3
I've tried it with www/gecko-mediaplayer from ports. But that seems not to work.
So I want to ask now which one would work?

cheers
Darko

by minimike at August 11, 2011 09:47 AM

apache, fastcgi, PHP - cpu limits not working

Hi,

I have set a 60 cpu-seconds limit on a user and it does work on the shell.
cat /dev/zero is being killed after 60s.

However, when I run PHP-scripts via FastCGI / suexec, this limit does not apply - seemingly.

The users are in an LDAP-directory and I use a different attribute to store the login-class, which I have mapped via nss_map_attribute.

I'm using apache-worker-2.2.17_2 on FreeBSD 8.2 amd64.

What did I miss?

Is there a way to verify that suexec actually has that resource-limits patch included?

by rainer_d at August 11, 2011 09:17 AM

[Solved] No MBR Installed After Boot

I have tried the installation from the 8.2 amd64 ISO three times and each time it fails to install the boot loader to the MBR. I receive GRUB error 17 when I try to boot post-install. The installation is fairly uneventful and gives no errors. I tried twice with BootMgr and once with the Standard boot loader.

After the first, I attempted to manually install to the mbr with boot0cfg off a live disk per a few other threads, but with no success (though it reported no error when installing to ada0).

My computer is a Phenom II on an nvidia-based board with two sata drives; the primary, first-channel hard drive always has the operating system and the second-channel hard drive is for data storage.

I have many years experience with Linux, but I am new to the BSDs and this has me a little stumped.

What am I doing incorrectly?

by joshdmiller at August 11, 2011 07:56 AM

Sound Problems with Wine/in general

Hi

A few days ago I decided to remove the dust of some older games and try to play them in wine. My system is an Alu Macbook 13.3" late 2008 with FreeBSD 8.2 Release.

First problem was the sound in general (not only wine). The System has an ALC885 Audio Chipset inside. Of course I read the handbook and searched the web but couldn't get the sound running at all. I loaded the modules sound and snd_hda via loader.conf. Because of this chipset which is known to be differently wired by the manufacturers there has to be something added to /boot/device.hints. Here was/is the problem: How to know what Options are the right ones? (I read the man pages for snd_hda) Do I really have to try all the combinations and always restart after each one? I searched the web but all I found were different advices for Macbook Pro which did not really work. Finally with the following options the headphone connector works but the Speaker does not:
Code:

hint.hdac.0.config="gpio0"
hint.hdac.0.cad0.nid21.config="as=4 seq=15"

So any idea how to figure out the correct options for the speaker other than the method of trial and error? At least I have sound so I can live with headphone connector if nobody has a better solution.

So here is the second problem regarding sound in this case connected to wine. As I wrote above I wanted to play some games and here sound almost doesn't work at all. First one is Diablo II LoD. I have sound in the intro videos but then nothing ingame. Searched the web but did not find anything but the statement on winehq.org that the sound except intro does not work so maybe no solution here possible. The second game I tried was Commandos II and here I have sound in the main menu and afterwards nothing. If I disable music in the menu there is sound at the beginning ingame (some kind of ingame sequence) then again silence. Next step was save and end game then start again with load (so skipping sequence) which brought the ingame sound at least for about 30sec. But this is not a long term solution (always saving and restarting the whole game after sound output). So to summarize it seems that every time there is new sound output (music from the menu, ingame sequence, normal ingame sound) there is no sound furthermore (only restart helps). So any tips here? I did not find anything working. (I already checked that there is no sound and not only muted via mixer in console.) Sound setting was built-in oss and emulation checked in winecfg audio. (Full hardware acceleration did not make any sound at all.)

So as a last attempt I tried to use the ossv4 from ports (audio/oss) which did not work at all. First I unloaded sound and snd_hda and installed audio/oss with a following restart. With this configuration I don't have any sound in FreeBSD. ossdetect finds my hardware but ossmix has much output:
Code:

Selected mixer 0/High Definition Audio ALC885
Known controls are:
jack.green.mode <front|rear|center/LFE|side|pcm4|input> (currently front)
jack.green [<leftvol>:<rightvol>] (currently 29.9:29.9 dB)
jack.green.mute ON|OFF (currently OFF)
jack.blue.mode <front|rear|center/LFE|side|pcm4|input> (currently input)
jack.blue [<leftvol>:<rightvol>] (currently 29.9:29.9 dB)
jack.blue.mute ON|OFF (currently OFF)
jack.int-speaker.mode1 <front|rear|center/LFE|side|pcm4|input> (currently front)
jack.int-speaker1 [<leftvol>:<rightvol>] (currently 29.9:29.9 dB)
jack.int-speaker.mute1 ON|OFF (currently OFF)
jack.int-mic.mode <front|rear|center/LFE|side|pcm4|input> (currently front)
jack.int-mic [<leftvol>:<rightvol>] (currently 29.9:29.9 dB)
jack.int-mic.mute ON|OFF (currently OFF)
jack.int-speaker.mode2 <front|rear|center/LFE|side|pcm4|input> (currently rear)
jack.int-speaker2 [<leftvol>:<rightvol>] (currently 29.9:29.9 dB)
jack.int-speaker.mute2 ON|OFF (currently OFF)
record.mix.mute.int-speaker1 ON|OFF (currently OFF)
record.mix.mute.int-mic1 ON|OFF (currently OFF)
record.mix.mute.int-speaker2 ON|OFF (currently OFF)
record.mix.mute.headphone1 ON|OFF (currently OFF)
record.mix.mute.linein1 ON|OFF (currently OFF)
record.mix.mute.input-mix1 ON|OFF (currently OFF)
record.mix1 [<leftvol>:<rightvol>] (currently 37.9:37.9 dB)
record.mix.mute.int-speaker3 ON|OFF (currently OFF)
record.mix.mute.int-mic2 ON|OFF (currently OFF)
record.mix.mute.int-speaker4 ON|OFF (currently OFF)
record.mix.mute.headphone2 ON|OFF (currently OFF)
record.mix.mute.linein2 ON|OFF (currently OFF)
record.mix.mute.input-mix2 ON|OFF (currently OFF)
record.mix2 [<leftvol>:<rightvol>] (currently 37.9:37.9 dB)
record.mix.mute.int-speaker5 ON|OFF (currently OFF)
record.mix.mute.int-mic3 ON|OFF (currently OFF)
record.mix.mute.int-speaker6 ON|OFF (currently OFF)
record.mix.mute.headphone3 ON|OFF (currently OFF)
record.mix.mute.linein3 ON|OFF (currently OFF)
record.mix.mute.input-mix3 ON|OFF (currently OFF)
record.mix3 [<leftvol>:<rightvol>] (currently 37.9:37.9 dB)
misc.int-speaker1 [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
misc.int-mic [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
misc.int-speaker2 [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
misc.headphone [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
misc.linein [<leftvol>:<rightvol>] (currently 38.9:38.9 dB)
misc.input-mix <int-mic|linein> (currently int-mic)
misc.front-mute ON|OFF (currently OFF)
misc.input-mix-mute1 ON|OFF (currently OFF)
misc.front1 [<leftvol>:<rightvol>] (currently 51.9:51.9 dB)
misc.front2 <front|input-mix> (currently front)
misc.rear-mute ON|OFF (currently OFF)
misc.input-mix-mute2 ON|OFF (currently OFF)
misc.rear1 [<leftvol>:<rightvol>] (currently 51.9:51.9 dB)
misc.rear2 <rear|input-mix> (currently rear)
misc.center/lfe-mute ON|OFF (currently OFF)
misc.input-mix-mute3 ON|OFF (currently OFF)
misc.center/lfe1 [<leftvol>:<rightvol>] (currently 51.9:51.9 dB)
misc.center/lfe2 <center/LFE|input-mix> (currently center/LFE)
misc.side-mute ON|OFF (currently OFF)
misc.input-mix-mute4 ON|OFF (currently OFF)
misc.side1 [<leftvol>:<rightvol>] (currently 51.9:51.9 dB)
misc.side2 <side|input-mix> (currently side)
misc.pcm4-mute ON|OFF (currently OFF)
misc.input-mix-mute5 ON|OFF (currently OFF)
misc.pcm41 [<leftvol>:<rightvol>] (currently 51.9:51.9 dB)
misc.pcm42 <pcm4|input-mix> (currently pcm4)
vmix0-enable ON|OFF (currently ON)
vmix0-rate <decimal value> (currently 48000) (Read-only)
vmix0-channels <Stereo|Multich> (currently Stereo)
vmix0-src <High|OFF> (currently Fast)
vmix0-outvol <monovol> (currently 24.7 dB)
vmix0-invol <monovol> (currently 25.0 dB)
vmix0.pcm10 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB) ("knotify4")
vmix0.pcm11 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
vmix0.pcm12 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)
vmix0.pcm13 [<leftvol>:<rightvol>] (currently 25.0:25.0 dB)

Any suggestions here how to get the sound working?

by sharsch at August 11, 2011 07:03 AM

Zpool - Incorrecly added a drive to my raidz configuration

I was hoping that someone could help me out with the following problem - I had previously successfully created my ZFS raidz storage pool but I wanted to add a fourth drive to it.

I made the mistake of using the following command:

zpool add -f storage00 /dev/disk/by-uuid/24a92cd8-265a-4bc5-974e-bdb61d927633

I am now unsure how to remove the drive and then add it back correctly. At first my pool was completely nonfunctional. I then preformed a export and and then an import. Next I performed a scrub of the pool. Now when I run a zpool status I get the following:

Code:

pool: storage00
 state: UNAVAIL
status: One or more devices could not be used because the label is missing
        or invalid.  There are insufficient replicas for the pool to continue
        functioning.
action: Destroy and re-create the pool from
        a backup source.
  see: http://www.sun.com/msg/ZFS-8000-5E
 scrub: scrub completed after 4h55m with 0 errors on Tue Aug  9 03:27:21 2011
config:


  pool: storage00
 state: UNAVAIL
status: One or more devices could not be used because the label is missing
        or invalid.  There are insufficient replicas for the pool to continue
        functioning.
action: Destroy and re-create the pool from
        a backup source.
  see: http://www.sun.com/msg/ZFS-8000-5E
 scrub: scrub completed after 4h55m with 0 errors on Tue Aug  9 03:27:21 2011
config:

        NAME                                                      STATE    READ WRITE CKSUM
        storage00                                                UNAVAIL      0    0    0  insufficient replicas
          raidz1-0                                                ONLINE      0    0    0
            disk/by-id/ata-WDC_WD10EARS-00Y5B1_WD-WCAV5T006995    ONLINE      0    0    0
            disk/by-id/ata-WDC_WD10EADS-65L5B1_WD-WCAU49103942    ONLINE      0    0    0
            disk/by-id/ata-WDC_WD1001FALS-00J7B0_WD-WMATV0044081  ONLINE      0    0    0
          disk/by-id/ata-WDC_WD3200JB-00KFA0_WD-WCAMR2531970      UNAVAIL      0    0    0  corrupted data

errors: No known data errors

I am still able to read and write to the pool. It appears as ZFS is seeing the drive as a second raid/mirror configuration.
I have tried the following:

Code:

:~$ sudo zpool detach storage00  /dev/disk/by-id/ata-WDC_WD3200JB-00KFA0_WD-WCAMR2531970
cannot detach /dev/disk/by-id/ata-WDC_WD3200JB-00KFA0_WD-WCAMR2531970: only applicable to mirror and replacing vdevs

:~$ sudo zpool offline -t storage00 /devdisk/by-id/ata-WDC_WD3200JB-00KFA0_WD-WCAMR2531970
cannot offline /devdisk/by-id/ata-WDC_WD3200JB-00KFA0_WD-WCAMR2531970: no such device in pool

:~$ sudo zpool replace -f storage00 /dev/disk/by-uuid/24a92cd8-265a-4bc5-974e-bdb61d927633
cannot open '/dev/disk/by-uuid/24a92cd8-265a-4bc5-974e-bdb61d927633': No such file or directory

I would like to remove the drive with out losing all of my data however if this is not possible I am open to suggestions.
Please let me know if I have omitted any pertinent data or if any other information is needed.

Any help would be much appreciated.

by ZpoolNoob at August 11, 2011 04:04 AM

tracking spam injected on localhost to exim

Ok I have what looks like spam been submitted over tcp 127.0.0.1:25 to exim smtp server.

I suspect is a rogue web/php script of which there is 100s of accounts on the server.

So I can either manually check 100s of apache access logs and look for matching timestamp to email submission or what seems more logical is somehow monitor 127.0.0.1:25 connections.

so it seems I need to if possible monitor for localhost:25 connections and then have the system tell me what file is doing that access. Is this possible and if so how do I do this?

Ideally I need to lock this down to a file, if I just lock it down to a uid it will probably be the apache user as its a mod_php installation so no unique uid's running scripts.

exim logs on max verbosity simply tell me the email is submitted over 127.0.0.1:25 tcp, if it was done over sendmail then it would show the script but it wasnt it was done over tcp.

I think I am looking at either a server root compromise or rogue script on server.

the obvious places such as /tmp are clean.

thanks.

by chrcol at August 11, 2011 12:11 AM

August 10, 2011

FreeBSD forums

Crosscompile the base system

Hi there,

We want to switch on our Laptops from amd64 to i386. But currently I'm unable to build the system on my Buildserver with FreeBSD 8 stable on amd64

Code:

buildserver# make TARGET=i386 TARGET_ARCH=i386 buildworld
"/usr/src/Makefile.inc1", line 162: To cross-build, set TARGET_ARCH.
*** Error code 1

Stop in /usr/src

what will do the Trick? I want build FreeBSD 8 stable

by minimike at August 10, 2011 11:16 PM

What about fscd?

Some time ago i read about fscd. Today I installed FreeBSD 9 beta, and there is no fscd in it.

Latest fscd update was 07.23.2011.
Fscd is dead? Will autor (or community) support it? Will it available at FreeBSD 9 (current) or in port collection?

Sorry for my english.

by factoid at August 10, 2011 11:00 PM

[Solved] Sending mail Ruby - the simplest way

Hello,
I'm going to write some scripts, which may help me to monitor my server activity. It seems to me that Ruby is good for this task, because I learn it and like it more and more. There is library:
http://ruby-doc.org/stdlib/libdoc/ne...doc/index.html

1. I'm going to send mail to my gmail account.
2. Sending email via Net::SMTP using gmail account seems to be too complicated. Is creating own SMTP server to send log email a good idea?
3. Which daemon would be equivalent for this? It seems to me that Sendmail in base system is too complicated. If you suggest using other software, it will be nice to use it.

Thanks,

by margor at August 10, 2011 10:26 PM

Thompson WLG 1500A

Hello, sorry I am French :e
I have a problem with my computer ... I have not already install Xorg and I want connect me to internet with a Thompson WLG 1500A Key and I don't know how make.
On Ubuntu I have install "ndiswrapper", but on FreeBSD I don't know what do ...

Thanks you for your help :)

by pierreyves258 at August 10, 2011 09:28 PM

8.2 Fresh Install Hangs Immediately

I been trying to install FreeBSD 8.2 to an HP Pavilion a1013w with Pentium4 (i386). After completing install, most recently a minimal configuration (I've tried a couple times with similar results) the first time I try to boot from the hard disk it throws up a -, then a \ and there is stops. No error, no text of any kind. Immediate stop.

I have tried searching this forum and the interwebs in general. I get lots of information about when a system hangs on boot, but nothing about this particular sort of hang. Can anyone offer me a clue?

TIA.

Tom Purvis
Colorado

by tomp at August 10, 2011 08:47 PM

[Solved] File delete issue

After a really busy morning, one of my apache error log files was 9.5GB. It was a silly mistake in php coding on my part.

I went ahead and deleted the file (disk was full), but when I do :
df -h it still shows this :

Code:

Filesystem            Size    Used  Avail Capacity  Mounted on
/dev/mirror/gm0s1a    1.9G    240M    1.5G    13%    /
devfs                1.0K    1.0K      0B  100%    /dev
/dev/mirror/gm0s1e    1.9G    58K    1.8G    0%    /tmp
/dev/mirror/gm0s1f    210G    3.1G    190G    2%    /usr
/dev/mirror/gm0s1d    9.7G    9.7G  -770M  108%    /var

/var is still 100% full. How do I free this space up?

by Mayhem30 at August 10, 2011 07:41 PM

Security issue?

This morning, I was checking my processes and noticed something I haven't seen before.

Code:

www      29895  0.0  0.0  7100  1416  ??  S    11:01AM  0:00.00 sh -c host -W 1 '195.93.18.69'
www      29896  0.0  0.0 10856  3100  ??  S    11:01AM  0:00.00 host -W 1 195.93.18.69
www      29897  0.0  0.0  7100  1416  ??  S    11:01AM  0:00.00 sh -c host -W 1 '67.195.115.40'
www      29898  0.0  0.0 10856  3100  ??  S    11:01AM  0:00.00 host -W 1 67.195.115.40
www      29899  0.0  0.0  7100  1416  ??  S    11:01AM  0:00.00 sh -c host -W 1 '67.195.115.40'
www      29900  0.0  0.0 10856  3100  ??  S    11:01AM  0:00.00 host -W 1 67.195.115.40

Is this something I should be concerned about?

by Mayhem30 at August 10, 2011 07:18 PM

disabling KDE's parallel build

Hi,

Is it possible to disable KDE's parallel build system ?
Right now it's eating all my 4 CPUs and i find it quite annoying, because i can't do anything else while waiting...

Thanks,
Tobé

by tobe at August 10, 2011 07:01 PM

Mouse on Sun Ultra 5

How does one get the system to recognize the mouse on Sun sparc?

Thank you

by Eric60 at August 10, 2011 04:14 PM

Rawtherapee 3.0_3 hangs (on -current)

I just build Rawtherapee 3.0_3 on a -current from yesterday.

It starts up ok, shows directory contents, loads RAW, but then it does not show it, only the empty work window comes up and the program is unresponsive.

Does it work for others or e.g. on -stable? Phrased differently, is this something for the freebsd list or for rawtherapee?

Thanks, Mathias

P.S. Some details:

Code:

uname -a
FreeBSD mp.virtual-earth.de 9.0-BETA1 FreeBSD 9.0-BETA1 #32: Tue Aug  9 12:31:26 CEST 2011   
mathiasp@mp.virtual-earth.de:/usr/obj/usr/src/sys/acer5553g  amd64
(running on an acer 5553g with amd's vision platform, e.g 4-core mobile phenom)

procstat -t gives:
Code:

2880 101073 rawtherapee      -                  2  126 sleep  umtxn   
 2880 101152 rawtherapee      -                  0  138 sleep  select   
 2880 101166 rawtherapee      -                  2  130 sleep  usem     
 2880 101167 rawtherapee      -                  2  131 sleep  usem     
 2880 101168 rawtherapee      -                  3  152 sleep  usem     
 2880 101172 rawtherapee      -                  0  127 sleep  usem     
 2880 101174 rawtherapee      -                  2  126 sleep  usem     
 2880 101178 rawtherapee      -                  0  134 sleep  usem

and procstat -k:
Code:

PID    TID COMM            TDNAME          KSTACK                     
 2880 101073 rawtherapee      -                mi_switch sleepq_switch sleepq_catch_signals sleepq_wait_sig _sleep
 _do_lock_umutex do_lock_umutex __umtx_op_wait_umutex _umtx_op syscallenter syscall Xfast_syscall
 2880 101152 rawtherapee      -                mi_switch sleepq_switch sleepq_catch_signals sleepq_wait_sig _cv_wait_sig
 seltdwait poll syscallenter syscall Xfast_syscall
 2880 101166 rawtherapee      -                mi_switch sleepq_switch sleepq_catch_signals sleepq_wait_sig _sleep do_sem_wait
 __umtx_op_sem_wait _umtx_op syscallenter syscall Xfast_syscall
 2880 101167 rawtherapee      -                mi_switch sleepq_switch sleepq_catch_signals sleepq_wait_sig _sleep do_sem_wait
 __umtx_op_sem_wait _umtx_op syscallenter syscall Xfast_syscall
 2880 101168 rawtherapee      -                mi_switch sleepq_switch sleepq_catch_signals sleepq_wait_sig _sleep do_sem_wait
 __umtx_op_sem_wait _umtx_op syscallenter syscall Xfast_syscall
 2880 101172 rawtherapee      -                mi_switch sleepq_switch sleepq_catch_signals sleepq_wait_sig _sleep do_sem_wait
 __umtx_op_sem_wait _umtx_op syscallenter syscall Xfast_syscall
 2880 101174 rawtherapee      -                mi_switch sleepq_switch sleepq_catch_signals sleepq_wait_sig _sleep do_sem_wait
 __umtx_op_sem_wait _umtx_op syscallenter syscall Xfast_syscall
 2880 101178 rawtherapee      -                mi_switch sleepq_switch sleepq_catch_signals sleepq_wait_sig _sleep do_sem_wait
 __umtx_op_sem_wait _umtx_op syscallenter syscall Xfast_syscall

by mathiasp at August 10, 2011 01:50 PM

courier-authlib removal

Hi,

often, during upgrade of some ports (like perl, for example), courier-authlib is removed and then reinstalled, and I need to restart courier-authdaemond in order to make imapd functional.
It's a normal behavior or some my mistake in some configuration?

Quote:

------------------------------------------------------------------------
backing up installed courier-authlib-base-0.63.0_2 before removing it
MGPMrUpdate 0.4.1_9 command: #10 of 14 cd /tmp && pkg_create -b courier-authlib-base-0.63.0_2
------------------------------------------------------------------------
restoring databases localProperty.command:cp /tmp/*.db /usr/local/share/portmanager
------------------------------------------------------------------------
removing old courier-authlib-base-0.63.0_2
MGPMrUpdate 0.4.1_9 command: #11 of 14 pkg_delete -f courier-authlib-base-0.63.0_2
------------------------------------------------------------------------
pkg_delete: package 'courier-authlib-base-0.63.0_2' is required by these other packages
and may not be deinstalled (but I'll delete it anyway):
courier-imap-4.9.3,2

Warning: Removing user courier will also delete any
undelivered mail in the mail queue directories!!!
Do *not* do it if you're upgrading and would like
courier to continue trying to deliver this mail.

Matching password entry:

courier:*:465:465::0:0:Courier Mail System:/var/spool/courier:/sbin/nologin

Is this the entry you wish to remove? Is this the entry you wish to remove? Is this the entry you wish to remove? Is this the entry you wish to remove? y

by skoinga at August 10, 2011 12:23 PM

Semi-Annual Newsletter Available

We are pleased to announce the publication of The FreeBSD Foundation's 2011 Semi-Annual Newsletter. In this edition:
  • Letter From the President
  • Fundraising Update
  • Development Project Updates
  • IPv6 support in FreeBSD and PC-BSD
  • Implementing support of GEM, KMS, and DRI for Intel Drivers
  • Resource Containers Project
  • Feed-Forward Clock Synchronization Algorithms Project
  • Five New TCP Project
  • libcxxrt C++ Runtime Available Under BSD License
  • Conference Updates
  • AsiaBSDCon 2011
  • BSDCan 2011
  • 2011 Grant and Travel Grant Recipients
  • NYI Testimonial
  • Foundation Update
  • Financials
You can help to support the FreeBSD Project by making a donation to the Foundation.


More...

by admin at August 10, 2011 12:10 PM

LXDM port

There is discussion on the PCBSD mailing list about default login manager for Xfce, LXDE and other lighter desktop environments and conclusion is that LXDM would be a nice/better fit than the present GDM.

However, I wonder why there is no LXDM port available considering there is LXDE "meta" port available?


Sincerely,
Gour

by gour at August 10, 2011 08:27 AM

[Solved] USB error

Got lots of errors (actually every second) on a new server, it seems related to USB which I will never use. How can I safely disable USB and the errors?

Code:

Aug  9 23:49:19 mail kernel: ugen1.3: <Unknown> at usbus1 (disconnected)
Aug  9 23:49:19 mail kernel: uhub_reattach_port: could not allocate new device
Aug  9 23:49:20 mail kernel: usb_alloc_device: set address 3 failed (USB_ERR_STALLED, ignored)
Aug  9 23:49:20 mail kernel: usbd_setup_device_desc: getting device descriptor at addr 3 failed, USB_ERR_STALLED
Aug  9 23:49:20 mail kernel: usbd_req_re_enumerate: addr=3, set address failed! (USB_ERR_STALLED, ignored)
Aug  9 23:49:20 mail kernel: usbd_setup_device_desc: getting device descriptor at addr 3 failed, USB_ERR_STALLED

Code:

# ps auwx | grep usb
root      14  0.0  0.0    0  128  ??  DL  11:12PM  0:05.63 [usb]

by hurricane_sh at August 10, 2011 07:00 AM

NAS filesystem choice

Hello,

I am currently building a NAS out of old parts. specs are:
  • CPU: AMD sempron 2.2 ghz
  • Ram: 4 gigs
  • HDD: 2x hitachi 1TB, 1x 40GB WD raptor, 1x 500GB

What I was planning to do was:
  • 40GB raptor would be the OS drive
  • 1TB DATA I care about
  • 1TB Nightly rsync backup of DATA drive
  • 500GB Drive for torrents/FTP
  • All drives would be UFS

With the hardware I have, would ZFS be a better idea?
If so What sort of hard drive layout would you suggest?

by soupbowl at August 10, 2011 01:32 AM

August 09, 2011

FreeBSD forums

[POWERPC] FreeBSD 8.2 installation hangs

Hi all !

I have a problem with my powerpc, which is a Mac NewWorld, a clamshell, dark blue and white: http://fr.wikipedia.org/wiki/IBook#i...Palourde.22.29 . Mine is one of those released on the 13th of September 2000.

First, I had the "probing non-existent USB port" : installation manual for ppc. There's the solution, so I go away with it.

But, the installation hangs at another moment :
Code:

acd0: CDROM <MATSHITA CR-176/6AA1> at ata1-master WDMA2
Google didn't find anything, and I don't know how to resolve that. I thought the cause might be the cd player, which may be dead, but I'm not sure at all.

Thank you for your reading,

Ttghtg

PS : Btw, is there huge differences in BSD administration and Linux administration ?

by Ttghtg at August 09, 2011 09:50 PM

[Solved] Adobe Flash in Chromium Browser?

Hi there,

Currently I'm trying to get running Adobe Flash on Chronium the OpenSource variant of Google Chrome. Flash self is running. On Opera it runs like a charme.

Code:

buildjail# make showconfig
===> The following configuration options are available for chromium-13.0.782.107:
    CODECS=on "Compile and enable patented codecs like H.264"
    GCONF=off "Use GConf2 for preferences"
    VPX=on "Use system libvpx for VP8 codec"
===> Use 'make config' to modify these settings

Code:

desktop-vm# find /usr/local/ -name libflashplayer.so
/usr/local/lib/browser_plugins/libflashplayer.so
/usr/local/lib/npapi/symlinks/linux-opera/libflashplayer.so
/usr/local/lib/npapi/symlinks/linux-firefox-devel/libflashplayer.so
/usr/local/lib/npapi/symlinks/linux-seamonkey-devel/libflashplayer.so
/usr/local/lib/npapi/symlinks/linux-netscape-messenger/libflashplayer.so
/usr/local/lib/npapi/symlinks/linux-sunbird/libflashplayer.so
/usr/local/lib/npapi/symlinks/linux-flock-devel/libflashplayer.so
/usr/local/lib/npapi/symlinks/linux-netscape-navigator/libflashplayer.so
/usr/local/lib/npapi/symlinks/linux-flock/libflashplayer.so
/usr/local/lib/npapi/symlinks/linux-seamonkey/libflashplayer.so
/usr/local/lib/npapi/symlinks/linux-mozilla/libflashplayer.so
/usr/local/lib/npapi/symlinks/linux-nvu/libflashplayer.so
/usr/local/lib/npapi/symlinks/linux-opera-devel/libflashplayer.so
/usr/local/lib/npapi/symlinks/linux-firefox/libflashplayer.so
/usr/local/lib/npapi/symlinks/linux-sunbird-devel/libflashplayer.so
/usr/local/lib/npapi/linux-f10-flashplugin/libflashplayer.so
/usr/local/lib/linux-mozilla/plugins/libflashplayer.so

Code:

desktop-vm# mount
zdrive/root on / (zfs, local, nfsv4acls)
devfs on /dev (devfs, local, multilabel)
fdescfs on /dev/fd (fdescfs)
procfs on /proc (procfs, local)
/dev/da0s1a on /boot (ufs, local)
linsysfs on /compat/linux/sys (linsysfs, local)
linprocfs on /compat/linux/proc (linprocfs, local)

is there something what could do the trick?

cheers
Darko

by minimike at August 09, 2011 09:16 PM

[Solved] Cant switch from MD5 to Blowfish for password hashes

Hello,

Im trying to change encryption for password hashes from MD5 to blf on FreeBSD 8.2.

What I did:
changed in /etc/login.conf from
Code:

:passwd_format=md5:\
to
Code:

:passwd_format=blf:\
rebuild the login database with cap_mkdb /etc/login.conf;

changed root password with passwd;

Still, in /etc/master.passwd I see
Code:

root:$1$s0...
not
Code:

root:$2a$...
What am I doing wrong?
Sorry for my english,

CoTones

by CoTones at August 09, 2011 09:10 PM

Firefox 5 crashes (SIG 11) in realvnc, but works in X

Hi folks, anyone else experiencing firefox 5 SIG 11 in realvnc?
Firefox runs fine in local X session, and X11 forward to remote X desktop.
There are no plugins, extensions, etc. installed for firefox.

Tried --sync, same deal. I CAN start firefox with --safe-mode.

Tried disabling, individually, each option presented by the initial firefox dialogue, and collectively all those options, restart firefox, crashes with SIG 11.

Tried rebuilding firefox, no dice. Tried rebuilding vnc, no dice.

Code:

FreeBSD ws.int.kritek.net 8.2-RELEASE-p2 FreeBSD 8.2-RELEASE-p2 #2 r223036M: Mon Jun 13 12:39:25 EDT 2011   
root@ws.int.kritek.net:/usr/obj/usr/src/sys/WS  amd64

vnc-4.1.3_4

firefox-5.0,1

I have a core file if needed.

Thanks

P.S. My apologies, I missed the ports forum, and incorrectly posted in this one.

by ardya at August 09, 2011 09:05 PM

Is there something like schroot on FreeBSD?

Hello everybody,

at the moment I'm busy getting wine to work on FreeBSD 8.2 64 Bit. So far I've set up a working 32 Bit chroot environment, and compiled wine. So everything should be fine, but everytime I want to start wine, I have to become root, to be able to chroot to my wine environment. Under Debian there is a package schroot which enables normal users to chroot without becoming root. I searched the ports but didn't find that one. Is there something similar for FreeBSD?

Thanks in advance.

by x-com at August 09, 2011 08:00 PM

New servers! Looking for hardware recommendations

Well, we had a fire in the building our office was located in. Luckily, the server room survived (mostly) and we managed to retrieve most of our data. With that said, we are in the market for a couple of new servers. We use FreeBSD to host several of our services (mail, subversion, ftp, jira/confluence, etc) most of which used our Windows ADS domain for authentication (I think we will try Samba PDC with LDAP this time). We are a fairly small company so we don't need anything terribly beefy in the way of hardware.

Can anyone recommend a hardware platform that runs FreeBSD out of the box? Looking at something in the $1000-$2500 range. We typically use Dell stuff but I am open to other brands too. I was considering the PowerEdge R515 but I am curious what other recommendations I might garner.

Thanks!
Philip

by pvanulden at August 09, 2011 07:15 PM

MFP recommendations

Hi list,

I want to buy another printer to use mainly with Windows. Even though I have no good feelings about those devises, that claims to be able to do everything I need. Even though, I need a better scanner with ADF and duplex printing (it need to be able to connect wirelessly to my Windows stations).
So my question is if I can find such a thing, that I can connect to my FreeBSD server too. And if you can recommend a specific model.
I have been looking at a lot of models, but I can't figure out if any of them would be able to work through FreeBSD, cups etc. Examples:
HP Officejet Pro 8500A (CM755A)
HP Photosmart Premium Fax e-All-in-One (CQ521B)
Canon PIXMA MX885
Epson...
Brother...
In the first place, I may have to connect it via USB or ehternet. If it could be connected by my wireless adapter (Linksys WUSB600N), it would be nice

Best regards,
Jon

by jontheil at August 09, 2011 06:54 PM

Installed Ubuntu and now stuck, Help!

Back in February I built my FreeBSD 8.2 (64 bit) box and was running without many issues. Last month I installed Windows 7 (64 bit), not by choice but I needed an app that is windows only, on a second drive... I unplugged my BSD drive and plugged in the new drive for the install, when done I swapped the cable back and when happily back to BSD.

Last weekend I decided to try out Ubuntu 11.04 (64 bit), and followed the same procedure, new drive, all other drives unplugged...install, play, swap back...

This is where I hit a wall. Seems that Ubuntu's Grub2 flashed info to my BIOS defining my boot sequence, and not allowing me to boot anything unless the Ubuntu drive is connected. OK, no big deal, I would like to be able to boot into all three without having to open the case, so I connect all three and start fiddling with Grub2's config. Grub sees the Windows drive without issue automatically, but not the BSD. I play with it till I get Grub2 to locate and acknowledge the drive, but BSD will not boot. I just get a blinking cursor!!!

I am using the custom grub menu, the code that loads the drive and gets tot he blinking cursor is:
Code:

menuentry "FreeBSD 8.2" {
    set root=(hd1,1)
    chainloader+1
}

How can I get BSD to boot?

by demonfire at August 09, 2011 05:25 PM

[Solved] The Design and Implementation of the FreeBSD Operating System

I'd love to see this book updated for FreeBSD9. Any chance of the authors seeing this thread? :)

by b7j0c at August 09, 2011 04:55 PM

[Solved] FreeBSD system and ports upgrading question

Hello all.

I am not sure if this fits here or in the ports forum, please feel free to relocate the thread if necessary.

If I have a FreeBSD 7 server, I would not have to upgrade the whole OS, if I want to upgrade MySQL 5.0 to 5.1, right?

Or in reverse, if I have installed Mysql 5.0 on FreeBSD 7.4 and I decide to upgrade FreeBSD to 8.2, I won't have to upgrade Mysql too, right?

So following this, I can "decouple" OS updates from "third party applications", which is important and convenient, IMO.

Or am I completely wrong about this?

by alexixor at August 09, 2011 01:54 PM

FreeBSD with GCC 4.6 compiler

Like my subject, is there any way i can build FreeBSD 9 with GCC 4.6 ? I just read this article. Seems they able to build FreeBSD with GCC 4.6 and seems its not legal ? CMIIW

by alie at August 09, 2011 12:25 PM

[Solved] two ports marked as ignore

Hi,

I'm using FreeBSD for some time now, alas on a user level, today I ran into the following:

Code:

prometheus# portupgrade -ar
** Port marked as IGNORE: converters/libiconv:
        cannot install: Unknown component gnometarget
** Port marked as IGNORE: devel/pkg-config:
        cannot install: Unknown component gnometarget
--->  Skipping 'databases/tdb' (tdb-1.2.1_1,1) because a requisite package 'pkg-config-0.25_1' (devel/pkg-config) failed (specify -k to force)
--->  Skipping 'devel/glib20' (glib-2.26.1_1) because a requisite package 'libiconv-1.13.1_1' (converters/libiconv) failed (specify -k to force)
--->  Skipping 'net/samba35' (samba35-3.5.9) because a requisite package 'glib-2.26.1_1' (devel/glib20) failed (specify -k to force)
--->  Skipping 'emulators/open-vm-tools-nox11' (open-vm-tools-nox11-313025_2) because a requisite package 'glib-2.26.1_1' (devel/glib20) failed (specify -k to force)
** Listing the failed packages (-:ignored / *:skipped / !:failed)
        - converters/libiconv (marked as IGNORE)
        - devel/pkg-config (marked as IGNORE)
        * databases/tdb (tdb-1.2.1_1,1)
        * devel/glib20 (glib-2.26.1_1)
        * net/samba35 (samba35-3.5.9)
        * emulators/open-vm-tools-nox11 (open-vm-tools-nox11-313025_2)

Can someone point me in a good direction to solve this with the two ports marked ingnored?

Thanks,

Huib

by hsmeets at August 09, 2011 08:31 AM

[Heads-up] mercurial-server 1.1 with mercurial 1.9 No-Go

Hello!

Just wanted to warn, if anyone is using mercurial-server, don't update mercurial to 1.9 (on server)
You won't be able to push. Looks like mercurial-server needs update. (I contacted developer, waiting response)

by killasmurf86 at August 09, 2011 05:56 AM

Playing Enemy Territory without NVIDIA possible?

Hi there,

On Laptops with i915 or radeon 9200 mobile video cards it is possible to play Enemy Territory? Currently I've a Laptop with FreeBSD 8.2 RELEASE AMD64. 3D runs fine I was able to start warsow but not Enemy Territory. It seems I've no 3D with Linux emulation. On my Desktop with a NVIDIA Card the game runs fine. Is there a workaround or should I try it with a fresh i386 install?

cheers
Darko

by minimike at August 09, 2011 04:29 AM

HCL about compatible Bluetoothdevices

Hi there,

Currently I'm searching a HCL about compatible Bluetoothdevices. I need to to buy for some boxes a Bluetooth USB Dongle/Stick. Is there a actual HCL somewhere available? I'm living in Germany and I want order this devices in Europe if they could running on FreeBSD.

best regards
Darko

by minimike at August 09, 2011 03:48 AM

Can we use clang instead of gcc now ?

Code:

>uname -a
 FreeBSD mybsd.zsoft.com 8.2-RELEASE FreeBSD 8.2-RELEASE #2: Sat Feb 26 16:53:57 CST 2011    root@mybsd.zsoft.com:/media/G/usr/obj/media/G/usr/src/sys/MYKERNEL  i386

>clang -v
 clang version 2.9 (tags/RELEASE_29/final)
 Target: i386-portbld-freebsd8.2
 Thread model: posix

 >head -15 /etc/make.conf
 .if !defined(CC) || ${CC} == "cc"
 CC=clang
 .endif
 .if !defined(CXX) || ${CXX} == "c++"
 CXX=clang++
 .endif
 .if !defined(CPP) || ${CPP} == "cpp"
 CPP=clang -E
 .endif
 # Don't die on warnings
 NO_WERROR=
 WERROR=
 # Don't forget this when using Jails!
 #NO_FSCHG=

 try a little software:
 >cd /usr/ports/lang/guile/
 >sudo make install clean

 >cat ~/.guile
 (use-modules (ice-9 readline))
 (activate-readline)

 ;(load "money.scm")
 ;(use-modules (money))
 >guile
 guile> (+ 1 2 3)
 6

Sincerely!

by sw2wolf at August 09, 2011 02:54 AM

August 08, 2011

FreeBSD forums

Free BSD killed my hd...?

Ok a lil background first.

Model: Lenovo Z560 / 310M Nvidia Graphics Chipset / i5 Intel Pentium / 4 Gig Ram

Bought from New Egg on June 6th 2011. Open Box purchase.

Ive installed and reinstalled ubuntu, backtrack5 (debian core) without a problem however this would always upset grub and windows in general when I would remove Ubuntu to try BackTrack5. Window's wouldnt boot but I would use Window's Recovery Disk and which never failed to allow me to reboot back into Windows and begin again.

After doing this a few times I decided to download and use Easy BSD. I used it in conjunction with Ubuntu, BackTrack, and Windows without a problem.

I then took the leap to install FreeBSD. I began to install FreeBSD ONLY after removing all linux OS's. The only thing I had was Windows 7 which was fine. I think I had a primary partition created right behind Windows 7 also which FreeBSD requires. --- I was extreamly careful with which partion NOT to erase and could see clearly the windows partition by the shear size of the OS and installed FBSD just after that. --- There was another partition after that which was the Lenovo back up or somefink but that "backup" never interfeared with the linux installs.
So the partition went MBR, Windows7, FreeBSD, and Lenovo "Backup". The "Backup" as Im refering it to is preinstalled on the hd of new Lenovo's. At least it was with mine. So after going through all my options etc for the FreeBSD install I press the button to install and it asks me to "remove the disk" and the install would then reboot...

When the Laptop attempted to reboot it stayed on the boot splash screen. I could do NOTHING. I couldn't key F2 I couldn't key F12 which were my only options at the boot screen. I even tried to press the Lenovo Recovery Button eventually. This would wipe out the entire Hard Drive and give me a clean slate at least but nothing... I scoured the web for 2 days and came up with the conclusion my circuit board died. I even tired to take my hd out and put it back in yada yada... Anyway, the newer laptop CMOS's are soldered on the board and cant be removed like a Desk Top CMOS which would allow me to reboot my system. The laptop was less than 2 months old so I sent it back to Lenovo.

FINAL: Lenovo says they replace the HD as they feel it was Hitachi's fault and not the circuit board... What are the chances of that happening as I dont feel FreeBSD was at fault and replacing a hard drive is cheaper for them than replacing the circuit board obviously? I bought the Lenovo/IBM becuase of its fledgling reputation. It tested overall just under the MacBook and was only 1/3 the price when compared to the higher end Mac. Could having the 3rd party Easy BSD (which I used without hassel with both BackTrack and Unbuntu) have gotten in the way with FreeBSD install somehow? Yes, I know about GAG but havent tried yet. The Easy BSD show's Linux (flavors) and FreeBSD compatible with the boot Mgr and states it clearly on their website. Any insight would be helpful.

I apologize for the length of explanation.

by JPS at August 08, 2011 11:58 PM

world gone mad

I feel that world gone mad , when I take a look on open source project which most of them programed in c (music player , video converter , operating system , web server , mail server , gtk .... etc) and search for book on these topics I didn't find any most of the book on c just take about basics , there is no book or information specialized on these topic you have to read the code to understand how it is work .

I think this is unfair for some one like me , I learn from books and I hate to read code just to learn some thing new , Im really disappointed , any help please , I want to start coding till now I have read these books on operating system :

1- Minix (most of it ) .
2- operating system concept (most of it ).
3- Design and Implementation of the FreeBSD Operating System.
4- practice of programing (half).
5- kenrigen the c language (all the book).
6- design of rootkit (first chapter).

but I didn't wright a line of code on operating system till now , (except some rootkit), I just want to start righting c code to do any thing , what I should do ? (by the way Im php developer and work for yahoo ) ?

by darkshadow at August 08, 2011 08:57 PM

Python System Update Script

So I coded this last night and been playing around and tweaking the concept. Before anyone asks my purposes are academic. I wanted something that worked like I have been doing so manually and wanted more hands on time with python so I figured why not start on something like this that would be useful to me.

Posting the script code as I would love comments, critique, or good ideas for addition, and of course if it is useful to you, have at it.

Code:

#!/usr/bin/env python
#
# sysupdate.py
#
# Version 0.1
#
# Author: Ken MacKenzie
#
# This script uses portsnap to fetch and update the ports tree.  The pkg_version to determine packages that are out of date.
# The user can then specify a line number, No or Yes (to upgrade all) to upgrade packages in the system.  Portupgrade is called
# to perform the upgrade.
#
# Requires:
#
# 1.  Portsnap
# 2.  Portupgrade
# 3.  Python 2.6+
#
# To do:
#
# 1.  Check for sudo/root privledges
# 2.  Add pkg search and listing features as well as installation of new patches
# 3.  Add version numbers old and new
# 4,  Once a fully functioning and stable CLI tool a GUI tool will be added.

import os, shlex, subprocess

def PkgsToUpdate():
        print "Checking Package Versions..."
        pvList = []
        pvCmd = "pkg_version -l \"<\""
        pvReturn, pvError = subprocess.Popen([pvCmd], shell=True, stdout=subprocess.PIPE).communicate()
        pvReturn = pvReturn.strip()
        if len(pvReturn):
                pvList = pvReturn.split("<")
                pvCount = len(pvList)
                del pvList[pvCount-1]
                for pvItem in pvList:
                        pvItem = pvItem.strip()
        return pvList

os.chdir("/usr/ports")
print "Refreshing Ports Tree..."
psCmd = "portsnap fetch update"
psArgs = shlex.split(psCmd)
psReturn = subprocess.call(psArgs)
#print psReturn

pkList = []
pkgList = PkgsToUpdate()
puExit = 0
while not(puExit):
        if len(pkgList) == 0:
                print "All packages current."
                puExit = 1
        else:
                print "Packages to upgrade:"
                for x in range ( len(pkgList)):
                        print (x+1), " : ", pkgList[x]
                uCmd = input("Enter all (Y)es or (N)o, or enter line number to upgrade individually:")
                if isinstance(uCmd, str):
                        uCmd = uCmd.upper
                if uCmd == "N":
                        puExit = 1
                elif uCmd == "Y":
                        for pkgItem in pkgList:
                                print "Upgrading package: ", pkgItem
                                pkgCmd = "portupgrade " + pkgItem
                                pkgArgs = shlex.split(pkgCmd)
                                pkgReturn = subprocess.call(pkgArgs)
                                #pkgReturn, pkgError = subprocess.Popen([pkgCmd], shell=True, stdout=subprocess.PIPE).communicate()
                                #print pkgReturn
                        pkgList = PkgsToUpdate()
                elif uCmd in range (1, len(pkgList)+1):
                        print "Upgrading package: ",  pkgList[uCmd - 1]
                        pkgCmd = "portupgrade " + pkgList[uCmd - 1]
                        pkgArgs = shlex.split(pkgCmd)
                        pkgReturn = subprocess.call(pkgArgs)
                        #pkgReturn, pkgError = subprocess.Popen([pkgCmd], shell=True, stdout=subprocess.PIPE).communicate()
                        #print pkgReturn
                        pkgList = PkgsToUpdate()
                else:
                        print "Invalid Input!!!"

Ken

by devilock76 at August 08, 2011 07:08 PM

pf,conf hlds port

Here is my pf.conf
(1).Peoples can't connect to hlds server when firewall status is 'on';
(2).I want share internet and ignore this line 'set skip on rl0' (how to)

Please see my pf.conf
Code:

# See pf.conf(5) and /usr/share/examples/pf for syntax and examples.
# Remember to set net.inet.ip.forwarding=1 and/or net.inet6.ip6.forwarding=1
# in /etc/sysctl.conf if packets are to be forwarded between interfaces.

ext_if="nfe0"
int_if="rl0"

table <spamd-white> persist

set skip on lo0
set skip on rl0

scrub in

#nat-anchor "ftp-proxy/*"
#rdr-anchor "ftp-proxy/*"
nat on $ext_if from !($ext_if) -> ($ext_if:0)
#rdr pass on $int_if proto tcp to port ftp -> 127.0.0.1 port 8021
#no rdr on $ext_if proto tcp from <spamd-white> to any port smtp
#rdr pass on $ext_if proto tcp from any to any port smtp \
#      -> 127.0.0.1 port spamd

anchor "ftp-proxy/*"
block in
pass out

pass quick on $int_if no state
antispoof quick for { lo $int_if }
pass in on $ext_if proto tcp to ($ext_if) port {22,80,137,138,139,455,28960,31337}
pass in on $ext_if proto {tcp,udp} to ($ext_if) port {27015,27016,27050,27052}
pass in log on $ext_if proto tcp to ($ext_if) port smtp

pass in log on $ext_if proto tcp to ($ext_if) port smtp
pass out log on $ext_if proto tcp from ($ext_if) to port smtp
pass in on $ext_if inet proto icmp from any to ($ext_if) icmp-type { unreach, redir, timex }

by dns at August 08, 2011 05:08 PM

[Solved] Line 1: bad command `ipfw'

I've recently noticed that the firewall on this FreeBSD system has stopped working, so I went to restart it but it keeps giving me an error:

Code:

Line 1: bad command `ipfw'
I've tried adjusting my /etc/ipfw.rules file to say /sbin/ipfw (based on which ipfw) instead, but the error just evolves into:

Code:

Line 1: bad command `/sbin/ipfw'
Here's what you need to know:

Code:

[root@amber ~]# /etc/rc.d/ipfw restart
net.inet.ip.fw.enable: 1 -> 0
Starting divert daemons:Flushed all rules.
Line 1: bad command `ipfw'
Firewall rules loaded.
net.inet.ip.fw.enable: 0 -> 1
[root@amber ~]# cat /etc/ipfw.rules
ipfw -q -f flush
ipfw -q add 00100 allow ip from any to any via lo0
ipfw -q add 00220 deny log ip from me to any in
ipfw -q add 00225 deny log tcp from any to any in tcpflags syn,fin
ipfw -q add 00230 check-state
ipfw -q add 00235 deny tcp from any to any in established
ipfw -q add 00240 allow ip from any to any out keep-state
# allow traffic controlling icmp
ipfw -q add 00300 allow icmp from any to any icmptype 3
ipfw -q add 00301 allow icmp from any to any icmptype 4
ipfw -q add 00302 allow icmp from any to any icmptype 11
# allowing services: ftp, ssh, http, dns, identd
ipfw -q add 00501 allow tcp from any to any 21 keep-state setup
ipfw -q add 00502 allow tcp from any to any 22 keep-state setup
ipfw -q add 00503 allow tcp from any to any 53 keep-state setup
ipfw -q add 00504 allow udp from any to any 53 keep-state setup
ipfw -q add 00505 allow tcp from any to any 80 keep-state setup
ipfw -q add 00506 allow tcp from any to any 113 keep-state setup
# allowed ports for users
ipfw -q add 01000 allow tcp from any to any 6000-7005 keep-state setup
ipfw -q add 02000 allow tcp from any to any 10000-40000 keep-state setup

[root@amber ~]# grep '$FreeBSD' /etc/rc.firewall
# $FreeBSD: src/etc/rc.firewall,v 1.47.10.1 2005/11/19 06:06:59 ume Exp $
[root@amber ~]# uname -a
FreeBSD amber.phurix.com 6.2-RELEASE-p12 FreeBSD 6.2-RELEASE-p12 #0: Tue Jul 15 13:49:44 BST 2008 
  james@amber.phurix.com:/usr/obj/usr/src/sys/SPECIFIC  i386
[root@amber ~]# ipfw show
65535 362908031 62053275482 allow ip from any to any

What am I overlooking here?

Thanks.

by hm2k at August 08, 2011 02:24 PM

ipnat rdr settings using IP alias not working

I have a box with two nic cards, AAEON TF-AEC-6831-A1-1010.
We use the box to act as a gateway between LAN / MESH network and to do video replication.

/etc/rc.conf
Code:

ifconfig_em0="192.168.1.116 netmask 255.255.255.0"
ifconfig_em1="192.168.224.1 netmask 255.255.255.0"
ifconfig_em1_alias0="192.168.119.1 netmask 255.255.255.0"

/etc/ipnat.rules
Code:

rdr em0 0.0.0.0/0 port 8021 -> 192.168.119.31 port 80 tcp
rdr em0 0.0.0.0/0 port 8049 -> 192.168.224.49 port 80 tcp

ifconfig:
Code:

em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=19b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4>
        ether 00:07:32:16:cd:d3
        inet 192.168.1.116 netmask 0xffffff00 broadcast 192.168.1.255
        media: Ethernet autoselect (1000baseT <full-duplex>)
        status: active

em1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=19b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4>
        ether 00:07:32:16:cd:d4
        inet 192.168.224.1 netmask 0xffffff00 broadcast 192.168.224.255
        inet 192.168.119.1 netmask 0xffffff00 broadcast 192.168.119.255
        media: Ethernet autoselect (100baseTX <full-duplex>)
        status: active

I can get to the 192.168.224.49 by using the URL of http://192.168.1.116:8049
but I can not get to http://192.168.1.116:8021 to get to 192.168.119.31

Any suggests? Thanks.

I am using FreeBSD 8.0.
Upgrading the OS on all the boxes we have shipped would be painful but not impossible.

by rkwiles at August 08, 2011 01:15 PM

[Solved] sed options

I need to translate from Linux to FreeBSD a very simple script, but I don't understand what is wrong:
Code:

find -name "*.pro" | xargs sed -i -e "s/debug/#DEBUG/" -e "s/release/debug/"
It is done to compile with debug symbols.
I think find simply needs a ./ but for sed I don't understand what is wrong. I have this error:
Code:

sed: -e: No such file or directory
Can anyone help me? Must be simple, I guess, but not for me...

by jdn06 at August 08, 2011 09:39 AM

how to add an extra NIC without having to reboot the server?

Hello FreeBSD,

Would you please enlight me how to add an extra NIC without having to reboot the machine??

I already know how to add an extra NIC but i have to reboot the server! :S

Kindly,help me



BR
Ahmed Amer
Cairo,Egypt

by ahmedamer12 at August 08, 2011 09:32 AM

Xfce and Openbox trouble

Hey guys. I'm having trouble using Openbox with Xfce. I installed Openbox and Obconf just like I was supposed to but it's not working for me. I enter
Code:

killall xfwm4 ; openbox & exit
like I was told to but that only works maybe 1 out of 8 times and I don't know why. It also never saves so I have to keep doing that over and over every time I use Xfce. Can anyone help me with this? I need to know how to make it run automatically and work. Xfce is harder than Gnome hehe :P I erased /usr/local/bin/startxfce4 and replaced it with
Code:

exec ck-launch-session dbus-launch startxfce4
in my ~/.xinitrc file like a friend told me to do but it's the same problem with or without it :(

by ZombieBeefchunk at August 08, 2011 04:54 AM

XFCE4 DVD/CD and USB not detected :(

Hey guys. I'm having some trouble. I did a reinstall of FreeBSD and I'm using XFCE instead of Gnome. I like it more but I'm having some trouble with it. My cdrom is not being detected in Xfce and it's the same when I use a USB drive. I'm using Thunar, I believe if that makes a difference. I removed the adc0 line in the fstab like you are supposed to but nothing has changed. Can anyone help me with this?

by ZombieBeefchunk at August 08, 2011 04:50 AM

How to use kernel_threads on KLD

Hello everybody, I'm finishing a degree in computer science :stud, and my final project is a module in freebsd, is the first time I'm working with KLD on freebsd and I need help.
I'm using an example of kld, and it would like to know how to use kernel_threads, how to put the thread to run on the following function kt_log_rw_arq, when KLD load;

Code:

#include <sys/param.h>
#include <sys/module.h>
#include <sys/kernel.h>
#include <sys/systm.h>
#include <sys/kthread.h>

static void kt_log_rw_arq(void* data)
{
        printf("In thread\n");

}
static int load(struct module *module, int cmd, void *arg)
{
        int error=0;

        switch(cmd)
        {
                case MOD_LOAD:
                        uprintf("KT_LOG Carregada\n");
                        //kthread_create(kt_log_rw_arq,NULL)
                        kt_log_rw_arq(NULL)
                        break;

                case MOD_UNLOAD:
                        uprintf("KT_LOG Descarregada\n");
                        break;

                default:
                        error=EOPNOTSUPP;
                        break;
        }
        return (error);
}

static moduledata_t kt_log_module_data =
{
            "kt_log",    // nome do modulo //
            load,      // Event Handler //
            NULL        // Extra Data //
};

DECLARE_MODULE(kt_log, kt_log_module_data, SI_SUB_DRIVERS, SI_ORDER_MIDDLE);

by victormenegusso at August 08, 2011 01:29 AM

August 07, 2011

FreeBSD forums

Ubuntu One Client

I am working on porting the Ubuntu One client to FreeBSD and PC-BSD. The process has gone well for the most part, but I'm running into an error during the install process. The error reads:

Code:

/bin/sh ../libtool --mode=install /usr/bin/install -c -o root -g wheel libubuntuone.la '/usr/local/lib/'
libtool: install: error: cannot install 'libubuntuone.la' to a directory not ending in /usr/local/lib/

The error strikes me as odd since that is where I'm trying to install the library.

I checked a few sites and they indicate this is an error with either the configure script or the libtool program.

Following the advice on this page: http://code.google.com/p/beagle-lib/...etail?id=40#c0
I changed the configure parameters to use /usr/local as the configure prefix, but I continue to get the same error.

by NewGuy at August 07, 2011 09:48 PM

how long will be GNOME 2 available from Ports?

Hi there,

I want to ask here about how long will be GNOME 2 available from Ports? I really don't like GNOME 3. And currently on a fresh system I'm deciding me between GNOME 2 and XFCE4. XFCE4 is a Fallback for me only. So if I would know that the GNOME2 Ports would be the next 12 months inside the ports available, then I would chose GNOME 2.

cheers
Darko

by minimike at August 07, 2011 09:06 PM

[FreeBSD 9] Unplugging mouse disable laptop keyboard

Hi all,

I totally new to FreeBSD and I really like it so far. However I have a few problem, one of them being my laptop keyboard is disabled when i unplug the USB mouse. As soon as I replug the mouse, keyboard works fine. If I boot the laptop without the USB mouse then the keyboard works fine.

In the xorg.conf file I tried to replace "kdb" with "keyboard" in the keyboard device section, but it didn't help.
NB: mulitple edited mouse configs are test in order to configure the Thinkpad scroll with trackpoint (still no success, but that's another problem I'll deal with later).

Running, FreeBSD9 Beta1.I'm using a Thinkpad X301, and here is a copy of my /usr/local/etc/X11/xorg.conf:

Code:

Section "ServerLayout"
        Identifier    "X.org Configured"
        Screen      0  "Screen0" 0 0
        InputDevice    "Mouse0" "CorePointer"
        InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
        ModulePath  "/usr/local/lib/xorg/modules"
        FontPath    "/usr/local/lib/X11/fonts/misc/"
        FontPath    "/usr/local/lib/X11/fonts/TTF/"
        FontPath    "/usr/local/lib/X11/fonts/OTF"
        FontPath    "/usr/local/lib/X11/fonts/Type1/"
        FontPath    "/usr/local/lib/X11/fonts/100dpi/"
        FontPath    "/usr/local/lib/X11/fonts/75dpi/"
EndSection

Section "Module"
        Load  "dbe"
        Load  "dri"
        Load  "dri2"
        Load  "extmod"
        Load  "glx"
        Load  "record"
EndSection

Section "InputDevice"
        Identifier  "Keyboard0"
        Driver      "keyboard"
    Option "XkbRules" "xorg"
    Option "XkbModel" "pc105"
    Option "XkbLayout" "ca(multi)"
    Option "XkbVariant" ""
EndSection

#Section "InputDevice"
#        Identifier  "Mouse0"
#        Driver      "mouse"
#        Option            "Protocol" "auto"
#        Option            "Device" "/dev/sysmouse"
#        Option            "ZAxisMapping" "4 5 6 7"
#EndSection

#Section "InputDevice"
#  Identifier "Mouse0"
#  Driver      "mouse"
#  Option      "Protocol" "PS/2"
#  Option      "Device" "/dev/psm0"
#  Option      "EmulateWheel" "true"
#  Option      "EmulateWheelButton" "2"
#  Option      "YAxisMapping" "4 5"
#  Option      "Emulate3Buttons" "true"
#EndSection

Section "InputDevice"
        Identifier  "Mouse0"
        Driver      "mouse"
        Option      "Protocol" "Auto"
        Option      "Device" "/dev/psm0"
        Option      "Emulate3Buttons" "true"
        Option      "Emulate3Timeout" "80"
        Option      "EmulateWheel" "on"
        Option      "EmulateWheelButton" "2"
        Option      "ZAxisMapping" "4 5"
        Option      "Buttons" "3"
        Option      "CorePointer"
EndSection

Section "Monitor"
        Identifier  "Monitor0"
        VendorName  "Monitor Vendor"
        ModelName    "Monitor Model"
EndSection

Section "Device"
        ### Available Driver options are:-
        ### Values: <i>: integer, <f>: float, <bool>: "True"/"False",
        ### <string>: "String", <freq>: "<f> Hz/kHz/MHz"
        ### [arg]: arg optional
        #Option    "NoAccel"                    # [<bool>]
        #Option    "SWcursor"                  # [<bool>]
        #Option    "ColorKey"                  # <i>
        #Option    "CacheLines"                # <i>
        #Option    "Dac6Bit"                    # [<bool>]
        #Option    "DRI"                        # [<bool>]
        #Option    "NoDDC"                      # [<bool>]
        #Option    "ShowCache"                  # [<bool>]
        #Option    "XvMCSurfaces"              # <i>
        #Option    "PageFlip"                  # [<bool>]
        Identifier  "Card0"
        Driver      "intel"
        VendorName  "Intel Corporation"
        BoardName  "Mobile 4 Series Chipset Integrated Graphics Controller"
        BusID      "PCI:0:2:0"
EndSection

Section "Screen"
        Identifier "Screen0"
        Device    "Card0"
        Monitor    "Monitor0"
        SubSection "Display"
                Viewport  0 0
                Depth    1
        EndSubSection
        SubSection "Display"
                Viewport  0 0
                Depth    4
        EndSubSection
        SubSection "Display"
                Viewport  0 0
                Depth    8
        EndSubSection
        SubSection "Display"
                Viewport  0 0
                Depth    15
        EndSubSection
        SubSection "Display"
                Viewport  0 0
                Depth    16
        EndSubSection
        SubSection "Display"
                Viewport  0 0
                Depth    24
        EndSubSection
EndSection

If you need any additional information, please let me know.

by Nesousx at August 07, 2011 08:56 PM

very slow working with ssh or openvpn encryption

I had a problem with very slow work of http, rdp and another network protocol through ssh tunnel or openvpn after i'm updating FBSD 7.2 to 7.3 on my laptop. Connection can be established more than 20 minutes and FBSD completely freezes... Please, help my understand this problem. In log no error messages:(

by Vagner at August 07, 2011 04:27 PM

Howto: encrypted FreeBSD 9 with UFS

Hi, i just wrote a howto for installing the BETA-1 of FreeBSD 9 with an encrypted root (ufs) using 80% bsdinstall and 20% shell. I uploaded the howto to an external address (sorry):

LINK

Note: The howto doesn't really explain much. It just shows how it can be done. Read the man pages of the commands used for more detailed information.

If you have ideas for improvement or something else, feel free to post them.

Keywords:
  • Freebsd 9.0 (beta 1 used here)
  • Encrypted Root
  • UFS
  • /boot unencrypted
  • GPT

by namor at August 07, 2011 12:33 PM

[Solved] how to use telnet command access squid config file!

Dear All,

Pls, help me!

Today, I use telnet from windown to access Squid.conf (Linux use FreeBSD)

I have username and password access Server Linux use FreeBSD. But i don't know how to access it?

Pls, help me command step by step. ( access squid.conf, edit, start, stop, backup, log, config web proxy,...)

thanks!

by rosy84 at August 07, 2011 11:39 AM

freebsd 8.2 hangs on loader

hi all


i'm trying to install FreeBSD on hp DL160G5 but when i choose any of the options its hangs on

this message < high precision event timer > and the server hang, i tried older version and same problem , i checked the server hardware but no problems , what i can do

by marksman at August 07, 2011 10:33 AM

[Solved] Shell transmission lines to the function.

Hi all.
I have a problem. I have shell script:

Code:

#!/bin/sh
# example.

logFile() {
        if [ ${#} -eq 0]; then
                exit
        fi # end if().
       
        if [ ${1} = 'NULL' ]; then
                echo '' > $HOME/.mylog
        else
                echo ${1} >> $HOME/.mylog
        fi # end if().
} # end logFile function.


logFile NULL
logFile 'Hello world'

# end file.

If I send message how:
Code:

logFile 'It is message'
I have error:
Code:

[: Configuring: unexpected operator
If I send message how:
Code:

logFile ${msg='It is message'}
I do not have error. But my logfile has next string:
Code:

It
If I send message how:
Code:

logFile 'It_is_message'
or
Code:

logFile ${msg='It_is_message'}
All ok.

How can I fix it?

by doorways at August 07, 2011 10:15 AM

HRT music streamer 2

Hi, I've bought HRT music streamer 2 asynchronous USB DAC for a FreeBSD 8 stable system, but some troubles occured. I installed multimedia/mplayer and audio/vitunes from ports(vitunes needs mplayer for playback.), tested some music files, but it was very noisy, so that I hardly heard the 'music'.

I checked the sysctl variables and noticed that the dev.pcm.0.play.vchanrate is 96000 and cannot be changed. The dev.pcm.0.play.vchanmode was 'fixed' and it can be changed but there are fixed, passthrough and adaptive modes only and no 'asynchronous' mode.

Is there any solution?

by Miax at August 07, 2011 08:26 AM

Eog: slow printing

Hi everyone,

after a recent round of updates, I'm finding that printing from eog is taking ages.
Other programs, such as OpenOffice Draw or kview don't seem to be affected.

top yields the following:

Code:

last pid: 87710;  load averages:  2.08,  1.02,  0.66    up 0+00:25:54  09:04:01
157 processes: 5 running, 152 sleeping
CPU: 36.7% user, 30.1% nice, 32.2% system,  0.4% interrupt,  0.6% idle
Mem: 230M Active, 539M Inact, 168M Wired, 16M Cache, 110M Buf, 34M Free
Swap: 991M Total, 991M Free

  PID USERNAME    THR PRI NICE  SIZE    RES STATE  C  TIME  WCPU COMMAND
86900 cups          1 113    0 27852K 18280K RUN    1  0:43 80.18% gsc
86717 cups          1  53    0  8040K  5472K CPU1    1  0:08 10.35% perl5.10.1

This takes about four to five minutes, accompanied by intense HDD activities until the printer will finally rumble away :( Printing itself is as quick as it should be. This is happening with both the HP Deskjet (hpjis/foomatic) and the laser printer (generic PCL5).

I do recall that some of the p5-* ports were updated, plus I'm quite positive nothing happened to ghostscript. For completeness: System is 8.1-RELEASE.

Any ideas?
Thanks,
Frank

by fmw at August 07, 2011 08:10 AM

howto partioning your hard drive ?

Hello everyone,
I started with FreeBSD and Linux from the world, in my installations the installation process was as follows:
(200 mo)-> /
(200 go) ->/home
(100mo)->/root
(4go)->/swap
(2go)->/tmp
(50go)->/usr
(10go)->/usr/local
(2go)->/var
/ech
nb: all partition are on ext4

To better understand my needs:
I wish to create a workstation with an exchange «/ech*beep*»*beep* with windows 7/64bits

would like your opinion on this type of partitioning in bsd especially the notion of slice is still unclear, is it useful to do so?
I want to use KDE as graphical environment.
Knowing that a jail in ''virtualbox'' with xp would be welcome.

Merci d'avance.

by krakator at August 07, 2011 06:56 AM

Determine ISO9660 ISO Level

Any way to determine what ISO Level a disc was created with (image or physical)? file only tells that it is an ISO9660 filesystem. Did some googling but didn't turn up anything useful.

Thanks.

by ikreos at August 07, 2011 06:35 AM

[Solved] Upgrading gnucash with portmaster

I have two 8.2 systems, one just installed. On the first system, gnucash 2.4.5 was installed, courtesy /usr/ports. On the second one, the one on which FreeBSD was just installed, there was no gnucash installed. On both, I did

portmaster /usr/ports/finance/gnucash

On both systems, I got an error when portmaster tried to build gtk-update-icon-cache-2.24.5. The complaint was that the package was already installed. If it was already installed, why did portmaster try to install it at all? Perhaps a broken port? I got the gnucash install going again by doing a pkg_delete -f gtk-update-icon-cache-2.24.5 and in doing so, got an error that not all files could be removed, and raising the question that the package manifest was not correct (I should have copied the error but didn't; sorry; but I've given you the gist of it).

One comment on FreeBSD 8.2: I've been a harsh critic of FreeBSD in the past. I've had bad experiences with a couple of 7.x releases (the USB layer prior to the re-write in 8.x was really awful) and with 8.0 (the new USB stuff hadn't settled down at that point). None were ready for prime time, at least for my type of desktop usage, forcing me back to Linux. But 8.2 is really rock-solid and I've got it installed in place of Linux on every one of my machines where it will run (I've got a lot of them, each one serving a useful purpose, though my wife would disagree). My only issue is that it doesn't support nearly as big a hardware repertoire as Linux (I've got an Atom-based Toshiba netbook and a mini-itx machine I built around an Intel D510 dual-core Atom motherboard and the Intel graphics driver doesn't work on those machines). Hopefully at least the Atom issue will change with the upcoming 9.0 release. I hope the quality of that release is as good or better than 8.2, which sets the bar pretty high.

I should also add that I've thrashed around a bit trying to find an acceptable Linux distribution for my minimal tastes (I don't use a desktop environment; I just run dwm) and haven't found anything as good as 8.2. I've run Slackware for over a year and its quality is very high, but the package management, or lack thereof, has gotten very old. The primary supplier of packages beyond what the release provides, slackbuilds.org, is very well run, but there is no formal QA of the packages themselves and no coordination, at least in time, with new Slackware releases. I had a number of issues with Debian (flakey wireless networking, the awful Sys V init stuff, out-of-date packages because they take forever to release, it's generally too complicated and the documentation is all over the place). I tried Gentoo. Installation takes 1/2 a day on a fast machine and then X was flakey (I've used it before and it's a major maintenance headache). Arch? The rolling release stuff will bite you eventually, because they can't possibly test the whole system when they release something. I've had Arch blow up a couple of systems in the past. So for my style of computing, FreeBSD leads the pack. I hope it stays that way with the new major version soon to be released.

by donallen at August 07, 2011 01:12 AM

August 06, 2011

FreeBSD forums

[Closed] Command: gnome-session-save --gui

The following command does not work:

gnome-session-save --gui

Quote from the FreeBSD FAQ site (http://www.freebsd.org/gnome/docs/faq2.html#q9):

Quote:

The gnome-session-save is important. Without it, the window manager will revert back to the one previously configured upon next login. To switch back, simply reverse sawfish and metacity.
It doesn't save your Window Manager. The old Window Manager re-appears once you reboot the machine. The only way you can save your Window manager is by setting it in the "Configuration Editor".

Take this command (AKA: gnome-session-save --gui) off the FreeBSD FAQ site.

by Nihilator at August 06, 2011 09:22 PM

Samsung N220, Intel and xorg

Hi Unix-Friends,

I recently tried to get xorg running on a Samsung N220 Netbook. All xorg-related packages are up to date. Using
Code:

Xorg -configure
results in the attached xorg.conf file, but the screen just gets black using it. Logs are also attached to this post.
Its an intel card:
Code:

lspci | grep VGA
00:02.0 VGA compatible controller: Intel Corporation Pineview Integrated Graphics Controller

Best Regards
Danny

Attached Files
File Type: txt xorg.conf.txt (2.9 KB)
File Type: txt Xorg.0.log.txt (11.1 KB)

by danny at August 06, 2011 09:10 PM

kqueue/kevent determine filename from file description

Hi

I want to watch directory for modification by kqueue mechanism. Simple code:
Code:

#include <dirent.h>
#include <fcntl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>    /* for strerror () */
#include <unistd.h>
#include <sys/event.h>

#include <sys/types.h>
#include <dirent.h>

#define MAX_ENTRIES 256

/* Function prototypes */
void diep(const char *s);

int main(int argc, char *argv[])
{
    struct kevent evlist[MAX_ENTRIES];    /* events we want to monitor */
    struct kevent chlist[MAX_ENTRIES];    /* events that were triggered */
    struct dirent *pdent;
    DIR *pdir;
    char fullpath[256];
    int fdlist[MAX_ENTRIES], cnt, i, error, kq, nev;

    /* Check argument count */
    if (argc != 2) {
        fprintf(stderr, "Usage: %s directory\n", argv[0]);
        exit(EXIT_FAILURE);
    }

    /* Create a new kernel event queue */
    if ((kq = kqueue()) == -1)
        diep("kqueue()");

    /*
    * Open directory named by argv[1], associate a directory stream
    * with it and return a pointer to it.
    */
    if ((pdir = opendir(argv[1])) == NULL)
        diep("opendir()");

    /* Skip . and .. entries */
    cnt = 0;
    while((pdent = readdir(pdir)) != NULL && cnt++ < 2)
        ;    /* VOID */

    /*
    * Get all directory entries and for each one of them,
    * initialise a kevent structure.
    */
    cnt = 0;
    while((pdent = readdir(pdir)) != NULL) {
        /*
        * Check whether we have exceeded the max number of
        * entries that we can monitor.
        */
        if (cnt > MAX_ENTRIES - 1) {
            fprintf(stderr, "Max number of entries exceeded\n");
            goto CLEANUP_AND_EXIT;
        }

        /*
        * Check path length
        * don't forget +1 for the '\0'
        */
        if (strlen(argv[1] + strlen(pdent->d_name) + 2) > 256) {
            fprintf(stderr,"Max path length exceeded\n");
            goto CLEANUP_AND_EXIT;
        }
        strcpy(fullpath, argv[1]);
        strcat(fullpath, "/");
        strcat(fullpath, pdent->d_name);

        /* Open directory entry */
        if ((fdlist[cnt] = open(fullpath, O_RDONLY)) == -1) {
            perror("open()");
            continue;
        }

        /* Initialise kevent structure */
        EV_SET(&chlist[cnt], fdlist[cnt], EVFILT_VNODE,
              EV_ADD | EV_ENABLE | EV_ONESHOT,
              NOTE_DELETE | NOTE_WRITE | NOTE_EXTEND | NOTE_ATTRIB | NOTE_LINK | NOTE_RENAME | NOTE_REVOKE,
              0, 0);

        cnt++;
    }

    /* Loop forever */
    for (;;) {
        nev = kevent(kq, chlist, cnt, evlist, cnt, NULL);
        if (nev == -1)
            perror("kevent()");

        else if (nev > 0) {
            for (i = 0; i < nev; i++) {
                if (evlist[i].flags & EV_ERROR) {
                    fprintf(stderr, "EV_ERROR: %s\n", strerror(evlist[i].data));
                    goto CLEANUP_AND_EXIT;
                }

                if (evlist[i].fflags & NOTE_DELETE)
                    printf("fd: %d Deleted\n", evlist[i].ident);

                else if (evlist[i].fflags & NOTE_EXTEND
                        || evlist[i].fflags & NOTE_WRITE)
                    printf("fd: %d Modified\n", evlist[i].ident);

                else if (evlist[i].fflags & NOTE_ATTRIB)
                    printf("fd: %d Attributes modified\n", evlist[i].ident);

                else if (evlist[i].fflags & NOTE_LINK)
                    printf("fd: %d link\n", evlist[i].ident);

                else if (evlist[i].fflags & NOTE_RENAME)
                    printf("fd: %d rename\n", evlist[i].ident);

                else if (evlist[i].fflags & NOTE_REVOKE)
                    printf("fd: %d revoke\n", evlist[i].ident);



            }
        }
    }

    /* Clean up file descriptors, directory stream,  kqueue */
 CLEANUP_AND_EXIT:;
    error = EXIT_SUCCESS;
    for (i = 0; i < cnt; i++)
        if (close(fdlist[i]) == -1) {
            error = EXIT_FAILURE;
            perror("close");
        }

    if ((closedir(pdir) == -1) || (close(kq) == -1)) {
        error = EXIT_FAILURE;
        perror("close");
    }

    return error;
}

void diep(const char *s)
{
    perror(s);
    exit(EXIT_FAILURE);
}

After XXX hours of googling, I still can not figure out how I can get the name of the newly created file.
For get the filename that already was on the kqueue initialization - I can fill the structure from fullpath (pdent->d_name).
I see one way - have one copy of files and after creation compare lists and see what has been added. Also i need to re-initialization of the monitor to restart for monitoring newly created file. but I think it's stupid. In the Linux event/inotify mechanism i can get the file name from @->userdata data.
I am right that in the case of kqueue I have to constantly re-read and compare the lists to get the name of the created file? Thanks.

by pelmen at August 06, 2011 09:03 PM

I'm going to install qmail

It's past time for me to migrate my mailserver to my new setup onsite. I've put it off because of my failure to document my relatively complex (at least to me) qmail setup in the days before I started documenting religiously. It's been up and running more or less unattended for almost 3 years.

I've been torn on whether to try and recreate and document what I did before or move to Postfix. The current setup does everything I need it to do, even if it did take a lot of effort to get it there. I've also got a masochistic fondness for it, having devoted so much time and brainpower to figuring everything out.

So, reasons for going:

- Stagnant development
- Complexity (patches and such)
- Lack of documentation beyond lwq, the mailing list and whatever is scattered around the Internets
- New mailserver at work uses Postfix
- Something new

Reasons for staying:

- Familiarity
- Ability to start putting new server together now without learning new MTA
- Desire to reclaim lost glory
- Umm
- Got to be something else
- DJB is a pretty cool guy?
- Not sure if the ultra-secure argument still holds water anymore or not, but there was always that...

Look at that, 7-5 in favor of staying. All pretty emotional reasons; I guess I'm more of a right-brained kind of guy.

I'll still start messing around with Postfix, maybe I'll fall in love with it a few months down the line and do this all over again. Who knows? Feel free to try and talk me into doing it now :P

by Mormegil at August 06, 2011 07:54 PM

Odd volume labeling UFS partition

Hi,

I noticed some odd things with volume labeling UFS filesystem. I was trying it on FreeBSD-8.2R. I prepared HDD "ad1" for one slice covers whole HDD with one partition via sysinstall. After slicing and bsdlabeling via sysinstall I have got:

Code:

# bsdlabel /dev/ad1s1
# /dev/ad1s1:
8 partitions:
#        size  offset    fstype  [fsize bsize bps/cpg]
  c:  2096577        0    unused        0    0        # "raw" part, don't edit
  d:  2096577        0    4.2BSD        0    0    0

Then I initialized UFS via newfs (not in sysinstall). I add switch -L to get partition with volume name "datadisk":

Code:

# newfs -UL datadisk /dev/ad1s1d
/dev/ad1s1d: 1023.7MB (2096576 sectors) block size 16384, fragment size 2048
        using 6 cylinder groups of 183.72MB, 11758 blks, 23552 inodes.
        with soft updates
super-block backups (for fsck -b #) at:
 160, 376416, 752672, 1128928, 1505184, 1881440

After that I've got label "datadisk" not for bsdlabel "d" but for slice "s1":

Code:

# glabel status
                  Name  Status  Components
ufsid/4e3d65e8f0d63f14    N/A  ad1s1
          ufs/datadisk    N/A  ad1s1

# ll /dev/ufs
total 0
crw-r-----  1 root  operator    0,  85  6 srp 18:03 datadisk  --> (ad1s1)
crw-r-----  1 root  operator    0,  87  6 srp 18:03 datadiskd --> (ad1s1d)


I found that if disk is prepared directly with bsdlabel (not via sysinstall) it works as I expect:

Code:

# fdisk -I /dev/ad1
******* Working on device /dev/ad1 *******
fdisk: invalid fdisk partition table found
fdisk: Class not found

# bsdlabel -w /dev/ad1s1
# bsdlabel -e /dev/ad1s1
# bsdlabel /dev/ad1s1

# /dev/ad1s1:
8 partitions:
#        size  offset    fstype  [fsize bsize bps/cpg]
  a:  2096561      16    unused        0    0
  c:  2096577        0    unused        0    0        # "raw" part, don't edit

Then I changed to this:

Code:

# bsdlabel /dev/ad1s1
# /dev/ad1s1:
8 partitions:
#        size  offset    fstype  [fsize bsize bps/cpg]
  c:  2096577        0    unused        0    0        # "raw" part, don't edit
  e:  2096561      16    4.2BSD        0    0    0

I leave offset 16 of partition "e" set by bsdlabel. I continued with initializing UFS:

Code:

# newfs -UL datadisk /dev/ad1s1e
/dev/ad1s1e: 1023.7MB (2096560 sectors) block size 16384, fragment size 2048
        using 6 cylinder groups of 183.72MB, 11758 blks, 23552 inodes.
        with soft updates
super-block backups (for fsck -b #) at:
 160, 376416, 752672, 1128928, 1505184, 1881440

The volume was created as I expected only for partition "e":

Code:

# glabel status
                  Name  Status  Components
ufsid/4e3d671c32125d80    N/A  ad1s1e
          ufs/datadisk    N/A  ad1s1e

# ll /dev/ufs
total 0
crw-r-----  1 root  operator    0,  85  6 srp 18:09 datadisk --> (ad1s1e)


It seems volume label doesn't work correctly when offset of partition is 0.

Could someone explain to me why volume not set to partition when partition offset is 0? And why sysinstall creates partition with offset 0 and bsdlabel normally creates offset 16?

by Kaminar at August 06, 2011 05:17 PM

Firewire drives not recognized when I load sbp

What I'll call Computer Bad: Mac mini (Intel Core 2), was running FreeBSD 8.2-release, tried upgrading to 8-STABLE, but these issues persist. Has a single Firewire 400 port.

Device 1: a dual Firewire enclosure, has both a Firewire 400 port and two Firewire 800 ports. Contains two drives.

Device 2: a pocket-sized Firewire enclosure, has one Firewire 400 and one Firewire 800 port.

Device 3 is this: http://tech.acomdata.com/minipal.asp. It attaches to the mini via Firewire and USB, and provides a hub for each, and additionally has a drive on the Firewire bus. We can ignore the USB aspects of this.

I'll compare against Computer Good: which is a Sony Vaio, whose details probably not important, except it's also running FreeBSD 8-STABLE. After I do a `kldload sbp` on this machine, and attach either of Device 1 or 2, or both of them in a chain, they all are immediately recognized and show up as /dev/da0, da1, and da2.

However that's just for testing. I need to get these devices recognized on Computer Bad.

And on Computer Bad, **when Device 3 is in the mix**, and the other devices are chained off it, I can do so--- although it takes some voodoo. I cannot have the sbp module loaded at boot time; if I do so the boot will hang until I disconnect or power down all attached Firewire devices. However, if I wait until boot has completed, then do a `kldload sbp`, once or twice the devices were then recognized. Most often, though, I have to do a dance of unplugging the devices, replugging them, power-cycling them, fwcontrol -r'ing, and so on. If there's a system that works reliably, I haven't been able to find it. Nor have I found any way to make this work solely from the commandline. `camcontrol rescan all` hangs until I disconnect or power down the devices. `fwcontrol -r` resets the bus, but the devices don't show up. And so on. However, with some persistence at the cable/power-cycling dance, I have always been able to get the drives recognized when they're chained off of Device 3. And once the drives get recognized, they give me no further trouble during that session. Even if I then power Device 3 down. I've transferred 1 TB of data to Device 1, I think without any trouble.

I'd live with this if I could. However, I can't keep Device 3 in this setup; it's required elsewhere.

And **without Device 3**, I can't find any way to get Devices 1 and 2, either together or solo, to be recognized on Computer Bad. I've tried connecting to either their Firewire 400 or their Firewire 800 ports (though on the other side, Computer Bad is only attempting Firewire 400). I've tried doing the `kldload sbp` before connecting them, or after, or whatever, and no luck. I've tried `sysctl -w hw.firewire.sbp.auto_login=0` and `sysctl -w hw.firewire.nocyclemaster=1` at various points, but this doesn't seem to change anything.


These problems showed up when Computer Bad had a fresh 8.2-release installation. I tried upgrading to 8-STABLE, which is what Computer Good had, but no joy there.

I've been searching and searching but haven't found much, even ideas to try. Any suggestions would be much appreciated.

Here are some details.

1. Here's uname -a, pciconf -lcv, kldstat, and sysctl hw.firewire on Computer Good:
http://dpaste.com/hold/588061/.
2. Here's the stretch of dmesg where the devices are connected and successfully recognized on Computer Good: http://dpaste.com/hold/588063/.
3. And here's what I then see on Computer Good (fwcontrol, fwcontrol -t, and camcontrol devlist -v): http://dpaste.com/hold/588066/.

4. Here's uname -a, pciconf -lcv, kldstat, and sysctl hw.firewire on Computer Bad: http://dpaste.com/hold/588062/. Notice the hw.firewire.sbp.auto_login is at 0, that's because following some diagnostic advice I found while searching I disabled that in /boot/loader.conf. It doesn't seem to affect my results at all.
5. Here's the stretch of dmesg where the devices are connected but fail to be recognized on Computer Bad: http://dpaste.com/hold/588076/
6. Here are fwcontrol, fwcontrol -t, and camcontrol devlist -v on Computer Bad, before kldloading sbp and attaching the devices: http://dpaste.com/hold/588068/
7. Here are the results of the same, after kldloading sbp and attaching the devices:
http://dpaste.com/hold/588069/. At this point, doing `sysctl -w hw.firewire.sbp.auto_login=1; fwcontrol -r` seems to produce no change. Allowing sbp to load with auto_login=1 from the beginning produces no change either.

At some points in my experimenting, I was able to get one or two additional entries in the `fwcontrol` output on Computer Bad, but I can't reproduce that now. And I didn't notice any additional progress when that occurred.

by Profjim at August 06, 2011 03:24 PM

Problem with a compilation in c++

Hello!

I want to compile the new version of openjabnab (which is an open source server in c++/php for nabaztags) that you can find at this address: https://github.com/OpenJabNab

I did several compilations of previous versions without problem, but this time, compilation stops with an error:
Code:

g++ -Wl,-O1 -pthread -Wl,-rpath,/usr/local/lib/qt4 -shared -Wl,-soname,libcommon.so.1 -o libcommon.so.1.0.0 tmp/obj/httphandler.o
 tmp/obj/xmpphandler.o  tmp/obj/httprequest.o  tmp/obj/settings.o  tmp/obj/log.o  tmp/obj/pluginmanager.o  tmp/obj/packet.o
 tmp/obj/ambientpacket.o  tmp/obj/messagepacket.o  tmp/obj/sleeppacket.o  tmp/obj/choregraphy.o  tmp/obj/bunnymanager.o  tmp/obj/bunny.o
 tmp/obj/ztampmanager.o  tmp/obj/ztamp.o  tmp/obj/apimanager.o  tmp/obj/cron.o  tmp/obj/ttsmanager.o  tmp/obj/accountmanager.o
 tmp/obj/account.o  tmp/obj/netdump.o  tmp/obj/iq.o  tmp/obj/moc_httphandler.o  tmp/obj/moc_xmpphandler.o  tmp/obj/moc_bunny.o
 tmp/obj/moc_ztamp.o  tmp/obj/moc_cron.o  -L/usr/local/lib -L/usr/local/lib/qt4 -lQtNetwork -L/usr/local/lib/qt4 -L/usr/local/lib -lQtCore
ln -s libcommon.so.1.0.0 libcommon.so
ln -s libcommon.so.1.0.0 libcommon.so.1
ln -s libcommon.so.1.0.0 libcommon.so.1.0
rm -f ../bin/libcommon.so.1.0.0
rm -f ../bin/libcommon.so
rm -f ../bin/libcommon.so.1
rm -f ../bin/libcommon.so.1.0
mv -f libcommon.so.1.0.0 libcommon.so libcommon.so.1 libcommon.so.1.0 ../bin/
cd main/ && make -f Makefile
g++ -c -pipe -Werror -O2 -Wall -W -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/share/qt4/mkspecs/freebsd-g++ -I.
 -I/usr/local/include/qt4/QtCore -I/usr/local/include/qt4/QtNetwork -I/usr/local/include/qt4 -I../lib -Itmp/moc -I/usr/local/include -o
 tmp/obj/main.o main.cpp
g++ -c -pipe -Werror -O2 -Wall -W -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/share/qt4/mkspecs/freebsd-g++ -I.
 -I/usr/local/include/qt4/QtCore -I/usr/local/include/qt4/QtNetwork -I/usr/local/include/qt4 -I../lib -Itmp/moc -I/usr/local/include -o
 tmp/obj/openjabnab.o openjabnab.cpp
/usr/local/bin/moc-qt4 -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/share/qt4/mkspecs/freebsd-g++ -I.
 -I/usr/local/include/qt4/QtCore -I/usr/local/include/qt4/QtNetwork -I/usr/local/include/qt4 -I../lib -Itmp/moc -I/usr/local/include
 openjabnab.h -o tmp/moc/moc_openjabnab.cpp
g++ -c -pipe -Werror -O2 -Wall -W -DQT_NO_DEBUG -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/local/share/qt4/mkspecs/freebsd-g++ -I.
 -I/usr/local/include/qt4/QtCore -I/usr/local/include/qt4/QtNetwork -I/usr/local/include/qt4 -I../lib -Itmp/moc -I/usr/local/include -o
 tmp/obj/moc_openjabnab.o tmp/moc/moc_openjabnab.cpp
g++ -Wl,-rpath,'$ORIGIN' -Wl,-O1 -pthread -Wl,-rpath,/usr/local/lib/qt4 -o ../bin/openjabnab tmp/obj/main.o  tmp/obj/openjabnab.o
 tmp/obj/moc_openjabnab.o    -L/usr/local/lib -L/usr/local/lib/qt4 -L../bin/ -lcommon -lQtNetwork -L/usr/local/lib/qt4 -L/usr/local/lib
 -lQtCore
tmp/obj/openjabnab.o(.text+0x35): In function `OpenJabNab::NewXMPPConnection()':
: undefined reference to `XmppHandler::XmppHandler(QTcpSocket*)'
tmp/obj/openjabnab.o(.text+0xc5): In function `OpenJabNab::NewHTTPConnection()':
: undefined reference to `HttpHandler::HttpHandler(QTcpSocket*, bool, bool)'
*** Error code 1

Stop in /usr/home/jd/openjabnab-git/OpenJabNab/server/main.
*** Error code 1

Stop in /usr/home/jd/openjabnab-git/OpenJabNab/server.
%

I tried to compile with BSD standard g++ and with 4.6 port version. Same problem.
I am on FreeBSD 8.2 and use qt4-4.7.3 from port.

Instructions for compilation are:
Code:

git clone https://github.com/OpenJabNab/OpenJabNab.git
cd OpenJabNab/server
qmake-qt4 -r
make

I don't know what to do because program compile quietly on Archlinux or Debian.
Is there anyone here who could confirm the problem and/or help? I do'nt develop myself in c++... :(

by jdn06 at August 06, 2011 12:03 PM

How to find out which process generates high disk usage

Hi,

I have troubles with high disk usage on my FreeBSD system.

The system disk is used for 100% (according to gstat) for most
of the time. This is very annoying because the systems becomes
unresponsive.

It seems that this has something to do with sendmail. When I kill
all sendmail stuff and the periodic scripts the high disk usage
is gone.

These are some of the processes:
Code:

root    85293  0,0  0,0  8340  308  ??  IJ    3:02am  0:00,00 /bin/sh /etc/periodic/daily/440.status-mailq
smmsp  85294  0,0  0,0 36724  1628  ??  DJ    3:02am  1:15,95 mailq -Ac (sendmail)
root    85295  0,0  0,0  5828  280  ??  IJ    3:02am  0:00,00 tee /dev/stderr
root    85296  0,0  0,0  9120  268  ??  IJ    3:02am  0:00,00 egrep -v (mqueue is empty|Total requests)
root    85297  0,0  0,0  2764  200  ??  IJ    3:02am  0:00,00 wc -l

The funny thing is, I deleted
Code:

/etc/periodic/daily/440.status-mailq
, still it is running.

Is there any way to figure out which process generates all the disk access? This would
be a great help to find out what is going on.

Thanks

Johannes

by tty23 at August 06, 2011 11:44 AM

xf86-video-ati 6.14.2

Hi,

Is anyone else besides me experiencing problems with the new Ati 6.14.2 driver? In my case it seems a lot slower than before.

It's looks like it sometimes has no 2D acceleration, especially in Midnight Commander. When reading a file with F3 and exiting again, you can see the window redrawing on the screen. This happens since the new ati driver so I think the new driver is the problem.

I use a Radeon 4870 on Xorg + Fluxbox btw.

Marco

by MarcoB at August 06, 2011 10:30 AM

Lenovo X220 freebsd compatibility

Hello, i'm planning to buy lenovo x220 4290rv5. Does anyone have opinions about compatibility freebsd with this model ?

by tenq at August 06, 2011 10:07 AM

Install prod server on virtual machine

Hi everyone,

My organization would like to install a production server (Wordpress website on FreeBSD) as a virtual machine.

1) Are there any limitation/problem if using FreeBSD as a Virtual Machine ?
2) Do you know actual prod websites installed on virtual infrastructure ?

Thank you for helping,

David

by hasdou at August 06, 2011 09:21 AM

8.2 amd64 with Realtek 8188ce 802.11 b/g/n wireless

Has anyone had any luck getting a Realtek 8188ce driver working on FreeBSD 8.2 amd64? (or at all for that matter)

I know realtek is crap, I just bought a Thinkpad w520, nice laptop but skimped on the wifi (looks like I might have to upgrade it) thinking I would be able to get a working driver going.

I reviewed the HARDWARE.TXT on the DVD and it shows rtl8192 is supported under the rl driver. I built that and loaded it successfully but didnt work. I also went the route of grabbing the WinXP64 drivers (.inf and .sys) then used ndisgen to build an ndis driver but that too didnt work (even after a lot of .inf parsing and manual converting to UTF-8).

It "looks" to me like the rtl8192 is packaged in the same rtl8188ce driver from a Windows standpoint. I saw rtl8192 listed on the FreeBSD rl driver but not the 8188ce.

Anyone else gotten this to work (or have any suggestions?) Worst case Ill just pony up for a supported card but I just didnt want to deal with external WLAN NIC's (looking to keep it internal for neatness/portability factor). Thanks in advance.

by ipyakuza at August 06, 2011 07:13 AM

Unable to authenticate action... when changing login properties

Using KDE 4.5.5 and I went to change the login in my system settings to auto-login and I get the message:

Code:

Unable to authenticate/execute the action: (code 4)

It may also be worth noting that I get this message on the end of my bootsplash before logging into KDE:

Code:

Starting KDM4.
Updating KDM configuration
Information: reading pre-existing kdmrc /usr/local/kde4/share/config/kdm/kdmrc (config version 2.4)
Warning: Do not know how to create missing GreeterUID user kdm
Starting sshd.
Starting cron.

...

kdm-bin[1411]: X server died during startup
kdm-bin[1411]: X server for display :0 cannot be started, session disabled


I took some advice from another post around the web and added to /etc/fstab file:
Code:

procfs        /proc        procfs        rw        0 0
That just changed the error to number 7 when I tried to change to autologin.


Then I edited /usr/local/etc/dbus-1/system.conf and added:

Code:

<includedir>/usr/local/kde4/etc/dbus-1/system.d</includedir>
<servicedir>/usr/local/kde4/share/dbus-1/system-services</servicedir>


This let me fill in the autologin settings but when I logged in again it just said:
Code:

Unable to login

I do know that somewere along the way my user settings got deleted when I installed base programs and I had to add them back and maybe thats where this situation started.


Any ideas?

by carebearboy at August 06, 2011 05:49 AM

kldload nvidia not loading in /boot/loader.conf

In order for me to load KDE i have to manually type:

Code:

kldload nvidia.ko
... and then
Code:

startx
as user to startx.

... or I have to run kldload nvidia.ko in /etc/rc.local.


/boot/loader.conf
Code:

w.psm.synaptics_support="1"
kldload nvidia.ko
#kldload nvidia
nvidia_load="YES"
linux_enable="YES"


/etc/rc.conf
Code:

-- sysinstall generated deltas -- # Fri Aug  5 07:28:41 2011
# Created: Fri Aug  5 07:28:41 2011
# Enable network daemons for user convenience.
# Please make all changes to this file, not to /etc/defaults/rc.conf.
# This file now contains just the overrides from /etc/defaults/rc.conf.
hostname=".cgocable.net"
ifconfig_re0="DHCP"
moused_enable="YES"
#moused_type="YES"
sshd_enable="YES"
hald_enable="YES"
dbus_enable="YES"
linux_enable="YES"
local_startup="${local_startup} /usr/local/kde4/etc/rc.d"
kdm4_enable="YES"



dmesg
Code:

$ dmesg
Copyright (c) 1992-2011 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.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 8.2-RELEASE #0: Thu Feb 17 02:41:51 UTC 2011
    root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Core(TM) i7-2630QM CPU @ 2.00GHz (2001.47-MHz K8-class CPU)
  Origin = "GenuineIntel"  Id = 0x206a7  Family = 6  Model = 2a  Stepping = 7
  Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  Features2=0x15bae3bf<SSE3,PCLMULQDQ,DTES64,MON,DS_CPL,VMX,EST,TM2,SSSE3,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,POPCNT,<b24>,XSAVE,<b28>>
  AMD Features=0x28100800<SYSCALL,NX,RDTSCP,LM>
  AMD Features2=0x1<LAHF>
  TSC: P-state invariant
real memory  = 8589934592 (8192 MB)
avail memory = 8230801408 (7849 MB)
ACPI APIC Table: <_ASUS_ Notebook>
FreeBSD/SMP: Multiprocessor System Detected: 8 CPUs
FreeBSD/SMP: 1 package(s) x 4 core(s) x 2 SMT threads
 cpu0 (BSP): APIC ID:  0
 cpu1 (AP): APIC ID:  1
 cpu2 (AP): APIC ID:  2
 cpu3 (AP): APIC ID:  3
 cpu4 (AP): APIC ID:  4
 cpu5 (AP): APIC ID:  5
 cpu6 (AP): APIC ID:  6
 cpu7 (AP): APIC ID:  7
ACPI Warning: 32/64X FACS address mismatch in FADT - 0xDF7E4E40/0x00000000DF7E4D40, using 32 (20101013/tbfadt-586)
ioapic0 <Version 2.0> irqs 0-23 on motherboard
kbd1 at kbdmux0
acpi0: <_ASUS_ Notebook> on motherboard
acpi0: [ITHREAD]
acpi_ec0: <Embedded Controller: GPE 0x1b, ECDT> port 0x62,0x66 on acpi0
acpi0: Power Button (fixed)
Timecounter "ACPI-safe" frequency 3579545 Hz quality 850
acpi_timer0: <24-bit timer at 3.579545MHz> port 0x408-0x40b on acpi0
cpu0: <ACPI CPU> on acpi0
cpu1: <ACPI CPU> on acpi0
cpu2: <ACPI CPU> on acpi0
cpu3: <ACPI CPU> on acpi0
cpu4: <ACPI CPU> on acpi0
cpu5: <ACPI CPU> on acpi0
cpu6: <ACPI CPU> on acpi0
cpu7: <ACPI CPU> on acpi0
pcib0: <ACPI Host-PCI bridge> port 0xcf8-0xcff on acpi0
pci0: <ACPI PCI bus> on pcib0
pcib1: <ACPI PCI-PCI bridge> irq 16 at device 1.0 on pci0
pci1: <ACPI PCI bus> on pcib1
vgapci0: <VGA-compatible display> port 0xd000-0xd07f mem 0xf2000000-0xf2ffffff,0xe0000000-0xe7ffffff,0xe8000000-0xe9ffffff irq 16 at device
 0.0 on pci1
pci1: <multimedia, HDA> at device 0.1 (no driver attached)
pci0: <simple comms> at device 22.0 (no driver attached)
ehci0: <EHCI (generic) USB 2.0 controller> mem 0xf6a08000-0xf6a083ff irq 16 at device 26.0 on pci0
ehci0: [ITHREAD]
usbus0: EHCI version 1.0
usbus0: <EHCI (generic) USB 2.0 controller> on ehci0
pci0: <multimedia, HDA> at device 27.0 (no driver attached)
pcib2: <ACPI PCI-PCI bridge> irq 16 at device 28.0 on pci0
pci2: <ACPI PCI bus> on pcib2
pcib3: <ACPI PCI-PCI bridge> irq 17 at device 28.1 on pci0
pci3: <ACPI PCI bus> on pcib3
ath0: <Atheros 9285> mem 0xf5600000-0xf560ffff irq 17 at device 0.0 on pci3
ath0: [ITHREAD]
ath0: AR9285 mac 192.2 RF5133 phy 14.0
pcib4: <ACPI PCI-PCI bridge> irq 19 at device 28.3 on pci0
pci4: <ACPI PCI bus> on pcib4
pci4: <serial bus, USB> at device 0.0 (no driver attached)
pcib5: <ACPI PCI-PCI bridge> irq 17 at device 28.5 on pci0
pci5: <ACPI PCI bus> on pcib5
re0: <RealTek 8168/8111 B/C/CP/D/DP/E PCIe Gigabit Ethernet> port 0x9000-0x90ff mem 0xec104000-0xec104fff,0xec100000-0xec103fff irq 17 at
 device 0.0 on pci5
re0: Using 1 MSI messages
re0: Chip rev. 0x2c000000
re0: MAC rev. 0x00000000
miibus0: <MII bus> on re0
rgephy0: <RTL8169S/8110S/8211B media interface> PHY 1 on miibus0
rgephy0:  10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT, 1000baseT-master, 1000baseTD
 8.2-RELEASE #0: Thu Feb 17 02:41:51 UTC 2011
    root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: In-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow
re0: Ethernet address: f4:6d:04:0b:ea:bf
re0: [FILTER]
ehci1: <EHCI (generic) USB 2.0 controller> mem 0xf6a07000-0xf6a073ff irq 23 at device 29.0 on pci0
ehci1: [ITHREAD]
usbus1: EHCI version 1.0
usbus1: <EHCI (generic) USB 2.0 controller> on ehci1
isab0: <PCI-ISA bridge> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel Cougar Point SATA300 controller> port 0xe070-0xe077,0xe060-0xe063,0xe050-0xe057,0xe040-0xe043,0xe020-0xe03f
 mem 0xf6a06000-0xf6a067ff irq 19 at device 31.2 on pci0
atapci0: [ITHREAD]
atapci0: AHCI called from vendor specific driver
atapci0: AHCI v1.30 controller with 6 6Gbps ports, PM not supported
ata2: <ATA channel 0> on atapci0
ata2: [ITD 8.2-RELEASE #0: Thu Feb 17 02:41:51 UTC 2011
    root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: InHREAD]
ata3: <ATA channel 2> on atapci0
ata3: [ITHREAD]
pci0: <serial bus, SMBus> at device 31.3 (no driver attached)
acpi_lid0: <Control Method Lid Switch> on acpi0
acpi_button0: <Sleep Button> on acpi0
acpi_tz0: <Thermal Zone> on acpi0
acpi_acad0: <AC Adapter> on acpi0
battery0: <ACPI Control Method Battery> on acpi0
acpi_hpet0: <High Precision Event Timer> iomem 0xfed00000-0xfed003ff on acpi0
Timecounter "HPET" frequency 14318180 Hz quality 900
atrtc0: <AT realtime clock> port 0x70-0x77 irq 8 on acpi0
atrtc0: Warning: Couldn't map I/O.
atkbdc0: <Keyboard controller (i8042)> port 0x60,0x64 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
atkbd0: [ITHREAD]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: [ITHREAD]
psm0: model Synaptics Touchpad, device ID 0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
ppc0: cannot reserve I/O port range
est0: <Enhanced SpeedStep Frequency Control> on cpu0
p4tcc0: <CPU Frequency Thermal Control> on cpu0
est1: <Enhanced SpeedStep Frequency Control> on cpu1
p4tcc1: <CPU Frequency Thermal Control> on cpu1
est2: <Enhanced SpeedStep Frequency Control> on cpu2
p4tcc2: <CPU Frequency Thermal Control> on cpu2
est3: <Enhanced SpeedStep Frequency Control> on cpu3
p4tcc3: <CPU Frequency Thermal Control> on cpu3
est4: <Enhanced SpeedStep Frequency Control> on cpu4
p4tcc4: <CPU Frequency Thermal Control> on cpu4
est5: <Enhanced SpeedStep Frequency Control> on cpu5
p4tcc5: <CPU Frequency Thermal Control> on cpu5
est6: <Enhanced SpeedStep Frequency Control> on cpu6
p4tcc6: <CPU Frequency Thermal Control> on cpu6
est7: <Enhanced SpeedStep Frequency Control> on cpu7
p4tcc7: <CPU Frequency Thermal Control> on cpu7
Timecounters tick every 1.000 msec
usbus0: 480Mbps High Speed USB v2.0
usbus1: 480Mbps High Speed USB v2.0
ad4: 476940MB <WDC WD5000BEKT-80KA9T1 01.01A01> at ata2-master UDMA100 SATA 3Gb/s
ugen0.1: <Intel> at usbus0
uhub0: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus0
ugen1.1: <Intel> at usbus1
uhub1: <Intel EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1> on usbus1
acd0: DVDR <Slimtype BD E DS4E1S/EA2B> at ata3-master UDMA100 SATA 1.5Gb/s
SMP: AP CPU #1 Launched!
SMP: AP CPU #4 Launched!
SMP: AP CPU #7 Launched!
SMP: AP CPU #3 Launched!
SMP: AP CPU #5 Launched!
SMP: AP CPU #6 Launched!
SMP: AP CPU #2 Launched!
Root mount waiting for: usbus1 usbus0
Root mount waiting for: usbus1 usbus0
Root mount waiting for: usbus1 usbus0
uhub0: 6 ports with 6 removable, self powered
uhub1: 8 ports with 8 removable, self powered
Root mount waiting for: usbus1 usbus0
ugen0.2: <vendor 0x8087> at usbus0
uhub2: <vendor 0x8087 product 0x0024, class 9/0, rev 2.00/0.00, addr 2> on usbus0
ugen1.2: <vendor 0x8087> at usbus1
uhub3: <vendor 0x8087 product 0x0024, class 9/0, rev 2.00/0.00, addr 2> on usbus1
uhub2: 6 ports with 6 removable, self powered
Root mount waiting for: usbus1 usbus0
ugen0.3: <Sunplus iT Co> at usbus0
uhub3: 6 ports with 6 removable, self powered
Root mount waiting for: usbus1 usbus0
ugen0.4: <Generic> at usbus0
ugen1.3: <Microsoft> at usbus1
ukbd0: <Microsoft Microsoft Nano Transceiver v2.0, class 0/0, rev 2.00/6.34, addr 3> on usbus1
kbd2 at ukbd0
ums0: <Microsoft Microsoft Nano Transceiver v2.0, class 0/0, rev 2.00/6.34, addr 3> on usbus1
ums0: 5 buttons and [XYZT] coordinates ID=26
ums0: 0 buttons and [T] coordinates ID=0
uhid0: <Microsoft Microsoft Nano Transceiver v2.0, class 0/0, rev 2.00/6.34, addr 3> on usbus1
ugen0.5: <Broadcom Corp> at usbus0
Trying to mount root from ufs:/dev/ad4s1a
re0: link state changed to UP
nvidia0: <GeForce GTX 460M> on vgapci0
vgapci0: child nvidia0 requested pci_enable_busmaster
vgapci0: child nvidia0 requested pci_enable_io
vgapci0: child nvidia0 requested pci_enable_io
nvidia0: [ITHREAD]


I've been at this all day, on irc, reading handbook... kinda drained and could use any help i could get.

by carebearboy at August 06, 2011 03:05 AM

Comments on "FreeBSD 9.0-BETA1 Available"

http://forums.freebsd.org/showthread...ewpost&t=25513

Strange, I've been using Whitehorn's versions of 9.0 since last April. After kernel rebuilding and a few tweaks, they are quite stable to me.

Wait, I'm using Tier2 architectures.

Silly me.

by sossego at August 06, 2011 02:40 AM

August 05, 2011

FreeBSD forums

An Odd Project (HP Pavillion)

Hi people,

I am a new guy here, with a new (and maybe foolish) project. As a retired HP guy I have not touched UNIX in ten years, but I have my son's old crashed (disk) PC. Thought I might turn it into a UNIX box.

Was a half-baked UNIX support guy with HP for a while. Not the HP-UX bunch, but a system outfit tied to UNIX workstations. I like the OS. But I got my stuff pre-packaged from our labbies, and only needed to wade in an inch or two to solve problems. I never needed to fiddle with odd configurations. Customer had the workstation we sold them. Oh, simple world!

The PC I am looking at is one of those little, proprietary beasties HP calls a Pavillion. Maybe five years old. A lot of non-standard stuff I fear, and I am wondering if this is a hopeless, difficult, OK, or slam-dunk case.

Else recycle, or (cringe) Windows.

Thanks in advance,

JohnCMcD

by JohnCMcD at August 05, 2011 11:05 PM

Can't add user to NIS group

So there's a local user on one of our servers, let's say testuser. When I run

Code:

sudo pw groupmod testgroup -M testuser
to add testuser to the group, test group, it returns with:

Code:

pw: group 'prime' not available (NIS?)
With the lack of documentation, I don't even know if we have a NIS server. Could you guys point me in the right direction?


Also, I'm running FreeBSD 8.1

by mallen324 at August 05, 2011 08:03 PM

similar to songr on BSD...

people...is there some software similar to songr? i'm closing the circle now,just need that info to do the great step to BSD!

by d_mon at August 05, 2011 04:40 PM

IPFW Can't see web-site from local network.

Hello everybody. I've got 2 computers: #1 - freebsd with internet connection, ipfw and apache web-server, #2 - windows, connected to internet through #1.
I can see my web-site from internet, but i cant see it from #2 computer. But if i set apache to listen internal ip-address it works fine.
Can you help me to resolve this problem?
Thanks!

rc.conf:
Code:

keymap="ru.koi8-r"
sshd_enable="YES"
hostname="horde"
ifconfig_rl0="192.168.0.1 netmask 255.255.255.0"
ifconfig_rl1="ether 00:1e:8c:0a:f5:79 DHCP"
gateway_enable="YES"
natd_enable="YES"
natd_interface="rl1"
natd_program="/sbin/natd"
natd_flags="-f /etc/natd.conf"
firewall_enable="YES"
firewall_type="etc/rc.d/ipfw-cfg"
apache22_enable="YES"

firewall

Code:

#!/bin/sh
fwcmd="/sbin/ipfw"
natdcmd="/sbin/natd"
int_if="rl0"
ext_if="rl1"
$fwcmd -f flush

$fwcmd add divert natd ip from any to any via ${ext_if}

$fwcmd add allow ip from any to any

by Gummeah at August 05, 2011 04:30 PM

FreeBSD 8.0 MPD5 PPTP 619 error

Code:

startup:
        set user mpd mpd
        set web self 0.0.0.0 5006
        set web open
default:
        load pptp_server
pptp_server:
        set ippool add pool1 192.168.1.2 192.168.1.250
        create bundle template B
        set iface enable proxy-arp
        set iface idle 1800
        set iface enable tcpmssfix
        set ipcp yes vjcomp
        set ipcp ranges 192.168.1.1/32 ippool pool1
        set ipcp dns 8.8.8.8
        set bundle enable compression
        set ccp yes mppc
        set mppc yes e40
        set mppc yes e128
        set mppc yes stateless
        create link template L pptp
        set link action bundle B
        set link enable multilink
        set link yes acfcomp protocomp
        set link no pap chap eap
        set link enable chap
        set link keep-alive 10 60
        set link mtu 1460
        set pptp self 0.0.0.0
        set link enable incoming

Code:

Multi-link PPP daemon for FreeBSD

process 7717 started, version 5.5 (root@qy.cc 17:46  3-Aug-2011)
web: listening on 0.0.0.0 5006
PPTP: waiting for connection on 0.0.0.0 1723
[L] [L-1] Accepting PPTP connection
[L-1] Link: OPEN event
[L-1] LCP: Open event
[L-1] LCP: state change Initial --> Starting
[L-1] LCP: LayerStart
[L-1] PPTP: attaching to peer's outgoing call
[L-1] Link: UP event
[L-1] LCP: Up event
[L-1] LCP: state change Starting --> Req-Sent
[L-1] LCP: SendConfigReq #1
[L-1]  ACFCOMP
[L-1]  PROTOCOMP
[L-1]  MRU 1500
[L-1]  MAGICNUM 8e009bee
[L-1]  AUTHPROTO CHAP MSOFTv2
[L-1]  MP MRRU 2048
[L-1]  MP SHORTSEQ
[L-1]  ENDPOINTDISC [802.1] 20 cf 30 50 e4 6f
[L-1] LCP: SendConfigReq #2
[L-1]  ACFCOMP
[L-1]  PROTOCOMP
[L-1]  MRU 1500
[L-1]  MAGICNUM 8e009bee
[L-1]  AUTHPROTO CHAP MSOFTv2
[L-1]  MP MRRU 2048
[L-1]  MP SHORTSEQ
[L-1]  ENDPOINTDISC [802.1] 20 cf 30 50 e4 6f
[L-1] LCP: SendConfigReq #3
[L-1]  ACFCOMP
[L-1]  PROTOCOMP
[L-1]  MRU 1500
[L-1]  MAGICNUM 8e009bee
[L-1]  AUTHPROTO CHAP MSOFTv2
[L-1]  MP MRRU 2048
[L-1]  MP SHORTSEQ
[L-1]  ENDPOINTDISC [802.1] 20 cf 30 50 e4 6f
[L-1] LCP: SendConfigReq #4
[L-1]  ACFCOMP
[L-1]  PROTOCOMP
[L-1]  MRU 1500
[L-1]  MAGICNUM 8e009bee
[L-1]  AUTHPROTO CHAP MSOFTv2
[L-1]  MP MRRU 2048
[L-1]  MP SHORTSEQ
[L-1]  ENDPOINTDISC [802.1] 20 cf 30 50 e4 6f
[L-1] LCP: SendConfigReq #5
[L-1]  ACFCOMP
[L-1]  PROTOCOMP
[L-1]  MRU 1500
[L-1]  MAGICNUM 8e009bee
[L-1]  AUTHPROTO CHAP MSOFTv2
[L-1]  MP MRRU 2048
[L-1]  MP SHORTSEQ
[L-1]  ENDPOINTDISC [802.1] 20 cf 30 50 e4 6f
[L-1] LCP: SendConfigReq #6
[L-1]  ACFCOMP
[L-1]  PROTOCOMP
[L-1]  MRU 1500
[L-1]  MAGICNUM 8e009bee
[L-1]  AUTHPROTO CHAP MSOFTv2
[L-1]  MP MRRU 2048
[L-1]  MP SHORTSEQ
[L-1]  ENDPOINTDISC [802.1] 20 cf 30 50 e4 6f
[L-1] LCP: SendConfigReq #7
[L-1]  ACFCOMP
[L-1]  PROTOCOMP
[L-1]  MRU 1500
[L-1]  MAGICNUM 8e009bee
[L-1]  AUTHPROTO CHAP MSOFTv2
[L-1]  MP MRRU 2048
[L-1]  MP SHORTSEQ
[L-1]  ENDPOINTDISC [802.1] 20 cf 30 50 e4 6f
[L-1] LCP: SendConfigReq #8
[L-1]  ACFCOMP
[L-1]  PROTOCOMP
[L-1]  MRU 1500
[L-1]  MAGICNUM 8e009bee
[L-1]  AUTHPROTO CHAP MSOFTv2
[L-1]  MP MRRU 2048
[L-1]  MP SHORTSEQ
[L-1]  ENDPOINTDISC [802.1] 20 cf 30 50 e4 6f
[L-1] LCP: SendConfigReq #9
[L-1]  ACFCOMP
[L-1]  PROTOCOMP
[L-1]  MRU 1500
[L-1]  MAGICNUM 8e009bee
[L-1]  AUTHPROTO CHAP MSOFTv2
[L-1]  MP MRRU 2048
[L-1]  MP SHORTSEQ
[L-1]  ENDPOINTDISC [802.1] 20 cf 30 50 e4 6f
[L-1] LCP: SendConfigReq #10
[L-1]  ACFCOMP
[L-1]  PROTOCOMP
[L-1]  MRU 1500
[L-1]  MAGICNUM 8e009bee
[L-1]  AUTHPROTO CHAP MSOFTv2
[L-1]  MP MRRU 2048
[L-1]  MP SHORTSEQ
[L-1]  ENDPOINTDISC [802.1] 20 cf 30 50 e4 6f
[L-1] LCP: parameter negotiation failed
[L-1] LCP: state change Req-Sent --> Stopped
[L-1] LCP: LayerFinish
[L-1] PPTP call terminated
[L-1] Link: DOWN event
[L-1] LCP: Close event
[L-1] LCP: state change Stopped --> Closed
[L-1] LCP: Down event
[L-1] LCP: state change Closed --> Initial
[L-1] Link: SHUTDOWN event
[L-1] Link: Shutdown
[L-1] Accepting PPTP connection
[L-1] Link: OPEN event
[L-1] LCP: Open event
[L-1] LCP: state change Initial --> Starting
[L-1] LCP: LayerStart
[L-1] PPTP: attaching to peer's outgoing call
[L-1] Link: UP event
[L-1] LCP: Up event
[L-1] LCP: state change Starting --> Req-Sent
[L-1] LCP: SendConfigReq #1
[L-1]  ACFCOMP
[L-1]  PROTOCOMP
[L-1]  MRU 1500
[L-1]  MAGICNUM 077f2bd6
[L-1]  AUTHPROTO CHAP MSOFTv2
[L-1]  MP MRRU 2048
[L-1]  MP SHORTSEQ
[L-1]  ENDPOINTDISC [802.1] 20 cf 30 50 e4 6f
[L-1] LCP: SendConfigReq #2
[L-1]  ACFCOMP
[L-1]  PROTOCOMP
[L-1]  MRU 1500
[L-1]  MAGICNUM 077f2bd6
[L-1]  AUTHPROTO CHAP MSOFTv2
[L-1]  MP MRRU 2048
[L-1]  MP SHORTSEQ
[L-1]  ENDPOINTDISC [802.1] 20 cf 30 50 e4 6f
[L-1] PPTP call terminated
[L-1] Link: DOWN event
[L-1] LCP: Close event
[L-1] LCP: state change Req-Sent --> Closing
[L-1] LCP: SendTerminateReq #3
[L-1] LCP: Down event
[L-1] LCP: LayerFinish
[L-1] LCP: state change Closing --> Initial
[L-1] Link: SHUTDOWN event
[L-1] Link: Shutdown

no Firewall

Code:

mpd_enable="YES"
mpd_flags="-b"
gateway_enable="YES"
natd_enable="YES"
natd_interface="em0"
ng_ipacct_enable="YES"

by pengtai at August 05, 2011 03:08 PM

[Solved] FreeBSD + wifi router + vpn

Hello,

I bought a tew-652brp (300N) but I am unable to connected to the wifi router when the security is set (spend too much time to resolve, already contact the trendnet support..., it remember me why I switched from Linux to FreeBSD (busybox on the tew-652brp)). So I am wondering what kind of security/setup I can do:

Code:

actual lan topology
ISP ---- fbsd (7.4) firewall (ipfw+dhcpd+nat) ---- LAN

Code:

the solution
ISP ---- fbsd (7.4) firewall (ipfw+dhcpd+nat+mdp) ---- LAN
            |
          VPN
            |----- tew-652brp --(( ... ))-- clients machines
            (wifi only, no security, only one rj45 cable to the firewall, 3rd ethernet card)


Concerning the security I think about to run mdp (version 5) on the fbsd firewall to authorized the wifi users to gain access to my Internet connexion (with some ipfw rules too) (a sort of vpn). I have some M$ machines (I know, nobody is perfect) that why I look to mdp (easy setup for the client's machine).

Does this solution seems to be secure ? Any comments or suggestions are welcome

Thank you in advance for your help.

l2f

by l2f at August 05, 2011 02:17 PM

[Solved] PF Issue with Blocking

I'm currently running PF on FreeBSD 8.2-STABLE. My current PF rules look like...

Code:

block in
block out on $ext_if all
pass out on $ext_if inet proto tcp from ($ext_if) queue ( std_out, tcp_ack_out )
pass out on $ext_if inet proto { udp icmp } from ($ext_if)
pass out on $ext_if inet proto { tcp udp } from ($ext_if) to port domain queue dns_out

pass in quick on $int_if no state
pass out on $int_if from $int_if to ($int_if:network)
pass out on $int_if proto { tcp udp } from port domain to ($int_if:network) queue dns_in
pass out on $int_if to 192.168.1.21 queue x360

When I add
Code:

block out on $int_if all
before the first pass out rule for $int_if none of my LAN computers can access either the server or the internet any longer.

Any help with this would be most appreciated. Thanks.

by jperalta at August 05, 2011 01:24 PM

[Solved] Console talks a lot.

Hi all.
I work in the console. I rarely use GUI.
But I have another unsolved problem.

When I work on the console, the console prints the message:
Code:

Aug 5 12:46:35 ab last message repeated 4 times
Aug 5 12:49:07 ab last message repeated 20 times
Aug 5 13:07:34 ab last message repeated 19 times

These messages prevent me at work (for example in the editor)
How do I them off?

by doorways at August 05, 2011 10:42 AM

Vpn + nat

Hi,

I have the following scenario:

Code:

Server1 ----- VPN Router -----(vpn)----- FreeBSD Box1 ------ Server2
                        |-----(vpn)----- FreeBSD Box2 ------ Server3

FreeBSD boxes run ipsec-tools and have three interfaces: em0-gif0 on the VPN side and em1 on the other. VPN router handles two VPN tunnel: one for FreeBSD Box1 and an other for FreeBSD Box2.
It could happen that Server2 and Server3 has the same IP address so I think on the FreeBSD Box1 the destination address has to be changed in the incoming packets destined to Server2 and the source address in the reply packets. As far as I know NAT might help.
I started to try it with PF.
man pf.conf says:
- nat: Translate outgoing packets' source addresses (any protocol).
- rdr: Translate incoming packets' destination addresses

According to this I have to use NAT on em0 or gif0 but it does not work as on em0 the traffic is encapsulated and the gif interface is inappropriate for NAT.

Any ideas?

BR
zgabe

by zgabe at August 05, 2011 08:34 AM

panic: ram_attach

I have a Digital PC 3100 that I'm trying to install FreeBSD 8.2 onto. The problem I'm having is, when I try to boot from the CD, it comes up with:

Code:

ACPI: Table initialisation failed: AE_NOT_FOUND
ACPI: Try disabling either ACPI or apic support
panic: ram_attachL resource 2 failed to attach
cpuid = 0
KDB: stack backtrace:
#0 0xc08e0d07 at kbd_backtrace+0x47
#1 0xc08b1dc7 at panic+0x117
#2 0xc0c02a06 at ram_attach+0x116
#3 0xc08dafcf at device_attach+0x36f

Along with about 10 other lines. Is there a way to bypass this or is this a lost cause?

by Simba7 at August 05, 2011 07:47 AM

[Solved] listing ZFS pool name in fixit mode

Hi guys,

I have a 8.2-amd64 machine on which I blew up the boot blocks (isn't booting any more). It's s supermicro server btw and we have a ZFSonRooT setup there.

The way I want to go about fixing it is booting into single user mode, mounting all the datasets, undoing the modification I did to the boot blocks, recompiling and installing the "old" version of the boot blocks for the system to boot.

The problem is that after I boot a 8.2-DVD and then go to fixit mode, load the opensolaris and the zfs modules, I cannot list the ZFS pool name (I don;t know the ZFS pool name because I didn;t setup this machine) and without the name, I cannot import the pool to fix the boot blocks.

So, my question is if there is a way to list the zpool in single user mode so that I know which pool I have to import or if there might be another way of fixing this problem.

LE: already tried
Code:

zpool list
and
Code:

zpool import
but no good.

by da1 at August 05, 2011 07:30 AM

network admin recommended reading

I've got a whole load of servers at work, unices and some of the other sort.
Nobody in my firm seems to know much about networks.
It (the network) seems to have grown without much design or thought, so I guess
I'll need to sort it out myself.

Could anyone recommend any books on diagnosing problems, monitoring and increasing network
performance and such like?

Thanks.

by bigearsbilly at August 05, 2011 07:22 AM

What is the best way to ensure only one copy of bash script is running (in BSD)?

I my freebsd 7.0 box, there is no "lockfile" command
Code:

$ lockfile
-bash: lockfile: command not found

therefore I can't use the lockfile approach.

So, what is the best way to ensure only one copy of bash script is running?

by ivand58 at August 05, 2011 06:56 AM

issue with php require_once in wordpress

I have installed wordpress on my freebsd 8.1 where i have php5.3 and nginx 1.0 webserver i can see that require_once function in php is not working but here require is working how can i fix this bug in freebsd.

by bastianvs at August 05, 2011 04:51 AM

No ZFS pools located, can't boot

hi all

I have 9-CURRENT with tons of stuff on ZFS (entire drive).
I was out of this computer for a while and today I couldn't boot and saw just this:

Code:

"gptzfsboot: error  1  lba 1"
"gptzfsboot: error  1  lba 64"
"No ZFS pools located, can't boot"

now I'm running UFS MY GUID LABLE

Code:

[zip@piger /home/zip]$ gpart show
=>      34  488397101  ada0  GPT  (232G)
        34        128    1  freebsd-boot  (64k)
        162  62914432    2  freebsd-ufs  (30G)
  62914594    8388608    3  freebsd-swap  (4.0G)
  71303202  73400320    4  freebsd-ufs  (35G)
  144703522  83886080    5  freebsd-ufs  (40G)
  228589602  62914560    6  freebsd-ufs  (30G)
  291504162  195035136    7  freebsd-ufs  (93G)
  486539298    1857837        - free -  (907M)


Looks like something important has evaporated...
I read about v28 update and same problem but I don't remember I did such update.
Anyway I tried what's recommended there but without success.

What actually could happen? How to revive the installation?

Would appreciate if any method exists for fixing this problem.

by BSDLover101 at August 05, 2011 04:13 AM

FreeBSD 9.0-BETA1 Available

The first of the test builds for the FreeBSD-9.0 release cycles is now available. ISO images for Tier-1 architectures are now available on most of the FreeBSD mirror sites.

FreeBSD 9.0-BETA1 Available.

by admin at August 05, 2011 03:21 AM

August 04, 2011

FreeBSD forums

keybindings in the forum editor

I asked this in a followup to a post a few months ago, but didn't get a response. Maybe I should have put it in a separate thread, so I'll try again.

In the forums editor, C-b in bound to entering bold tags. I have emacs-style key bindings setup in my browser, so I'm constantly intending to go back a character, but instead enter bold tags. Is there an easy way to turn off the binding of C-b to bold tags?

by mingrone at August 04, 2011 10:40 PM

snd_envy24ht and spdif

Hi,

Does anybody know how to enable SPDIF on envy24 card? Specifically I'm trying to get ESI Juli@ card working with FreeBSD 8.2. The card has been properly identified, but I only get analog output, no optical or coax.

I was expecting to find something like dev.pcm.0.spdif_enabled knob, but it's not available. Any ideas are welcome.

Thanks in advance!

by alexx at August 04, 2011 08:55 PM

[Solved] Windows Fonts in X11 (OpenBox)

Hi all,
How to install fonts Windows XP in OpenBox?
- Times New Roman
- Courier New
- Arial

Thanks.

by doorways at August 04, 2011 08:39 PM

How to fix a WordPress installation (server level users)

On our VPS (FreeBSD), someone deleted some of the server-level users x( that were connecting the server and the self-hosted wordpress app on a given domain. Restore is not an option because my hosting company (Verio) can only restore the whole server which would cost a small fortune (too many websites). I thought of a possible solution but I want to make sure that nothing goes wrong if I do this. Would it be possible to download all WP directories from the server, reinstall self-hosted wordpress on the domain and then upload the old WP directories back to that domain. Would that keep the WordPress site content intact and restore the server level user access between the domain and self-hosted Wordpress Ap?

by TomHat at August 04, 2011 05:41 PM

[Solved] OpenBox and tint2 and wbar.

Hi all.
I used OpenBox and tint2 and wbar.
But as they run together?
I run OpenBox. After that, run the console and
Code:

# wbar &
Then run the tint
Code:

# tint2
real transparency off .... depth: 24
xRandr: Found crtc's: 2
xRandr: Linking output LVDS with crtc 0
usage: tint2 [-c] <config_file>
[2] + Exit 1

What is <config_file> in
Code:

...
usage: tint2 [-c] <config_file>
..

How do I run it together?

by doorways at August 04, 2011 04:57 PM

Headin' back to FreeBSD from Gentoo

Well, looks like I'm heading back to FreeBSD after a 4 year stint with Gentoo. I might keep Gentoo on a couple systems, but I'm definitely shifting the others.

I've been using FreeBSD since 1998 and have absolutely loved the stability. The reason I left the *BSD world was because in Gentoo I could compile everything from the ground up. Unfortunately, some packages are not being maintained or some people think all we need is last year's linux-header file or an old-as-hell package that no one wants to update.

Ok. So the question I have is this.. Can I install FreeBSD on a LZMA-compressed ZFS filesystem without a couple dozen steps and a dozen mount points? I don't remember FreeBSD having so many darn mount points. I'm also installing it on a GPT, mostly due to my arrays being >2TB in size.

Another question.. Is there a way to install it over SSH? I've been able to install several Gentoo systems this way, but can't find a way to do it with FreeBSD.

I do admit, I'm a little rusty.. But I'd love to hop back into the FreeBSD universe ASAP.

by Simba7 at August 04, 2011 04:51 PM

[Solved] OpenBox. Keyboard layout.

I do not even know how to add keyboard layouts OpenBox:
English (default)
Russian
Ukrainian

Change keyboards Left Shift + Left Alt.
Do not even know how!

Thanks.

by doorways at August 04, 2011 04:32 PM

(shell) How to lock the user in his directory?

I searched the forum but did not get a hit so I'm trying here.

I have added a user on my server to learn how stuff works, It seems that the user can go out from his directory and browse the files on the system such as /home . How do I lock the user to only be in his directory when I created his account.

thanks.

by enCyde at August 04, 2011 09:33 AM

[Solved] Oddity in portmasterers print about available updates

Hi

I'm wondering about this:

Code:

# portmaster -L |egrep -B1 '(ew|ort) version|Aborting|installed|dependencies|IGNORE|marked|Reason:|MOVED|deleted|exist|update' | grep -v '^--'
===>>> Root ports (No dependencies, not depended on)

===>>> Trunk ports (No dependencies, are depended on)

===>>> Branch ports (Have dependencies, are depended on)
===>>> gtk-2.24.5
===>>> gtk-update-icon-cache-2.24.5

===>>> Leaf ports (Have dependencies, not depended on)

===>>> 505 total installed ports
        ===>>> There are no new versions available

Why are these gtk-2.24.5 and gtk-update-icon-cache-2.24.5 printed, althought they are up to date?

Could it be related to this in /usr/ports/UPDATING ?
Code:

20110730:
  AFFECTS: users of x11-toolkits/gtk20
  AUTHOR: gnome@FreeBSD.org

  The gtk-update-icon-cache utility has been split out of the gtk20 port.
  Use the following instructions to update your system.

  # pkg_delete -f gtk-2.\*
  # portmaster x11-toolkits/gtk20
  # portmaster -a

Which I first missed but ran later?

by Kiiski at August 04, 2011 08:57 AM

Intel HD3000 and 1920x1080

I've bought a sandy bridge system and I did know that there is no driver for Intel HD3000 graphics. I don't need the best graphical performance anyhow, but the problem is I couldn't get 1920x1080 resolution. X server uses vesa driver and I set 1920x1080 mode in /etc/X11/xorg.conf but it seems it doesn't work. Is there a way to FHD with Intel HD3000? or need a discrete graphics card?

by Miax at August 04, 2011 06:04 AM

[WAY off-topic] Can somebody name that font?

There's an screenshot of SGI's old IRIX with Indigo Magic desktop here. Can somebody tell me what the font is that's used in the Toolbox and in the window header of the Icon Catalog? I'm almost certain it's a standard font, but I can't for the life of me tell which one it is.

Thanks in advance,

Fonz (I'm not quite the font wizard)

by fonz at August 04, 2011 04:16 AM

webcamd hung and pwcview doesn't work

I tried to make my old webcam (Creative VF-0040) work on my FreeBSD v8.1. After installed v4l_compat, libv4l, pwcview cuse4bsd, webcamd from the ports,
kldload cuse4bsd.
webcamd -d ugen2.2 -i 0 -v 0
it stops there after output:
Code:

    Creating /dev/video0
      Creating /dev/input/event0

Is this right? or should it exit to the shell? I checked the /dev/video0 and /dev/input/event0 are there.

Try to run pwcview, it says
Code:

Failed to get current picture info: Invalid argument
pwcview -s cif or sif doesn't work either.

Any help is appreciated.

by Don at August 04, 2011 01:43 AM

Optimizing FreeBSD for gaming?

Hi,

I'm still somewhat new to FreeBSD, converted from linux (ubuntu if you must know). I'm trying to play the same video game under wine in FreeBSD 8.2-RELEASE x86 as I did in Ubuntu, and it is significantly slower in terms of framerate.

I'm seeking any advice on how to improve my gaming experience. Thus far, here's what I've tried:
  • Ensured soft-updates are enabled on my primary filesystems (was already set by default I believe)
  • Disabled atime updates on my primary filesystems
  • Updated to use a kernel which doesn't load most of the unnecessary modules for my system
  • Disabled all server daemon processes (e.g., nfsd)
  • Reduced the number of virtual terminals I have from 8 to 3 (via /etc/ttys)
  • Added the following to my /etc/make.conf
    Code:

    CPUTYPE?=athlon64
    CFLAGS= -O2 -fno-strict-aliasing -pipe
    COPTFLAGS= -O2 -pipe -funroll-loops

  • Ensured all my ports were up-to-date and upgraded them as necessary with portupgrade
  • Switched to a more lightweight window manager (fluxbox)

My system is a Acer Aspire x1200-U1510A (AMD Athlon 64x2 5000+, 4GB RAM), with an added Nvidia GeForce 9400 (yes, I'm using the "nvidia" driver).

I've also recently configured my system to use dtrace and I've started to try to analyze the game process to identify bottlenecks. I've seen some odd behavior (such as calling the open system call on a directory thousands of times).

I'm starting to worry that there isn't much I can do since the bottleneck is likely in the video card drivers.

My next ideas are to do further dtrace or truss analysis and then try running the game from a tmpfs filesystem.

If anyone has any suggestions either for performance improvements or areas I should look into, please respond :)

by ecd at August 04, 2011 01:04 AM

August 03, 2011

FreeBSD forums

Network failure while installing port

Hello all,
first of all I'm a newbie so please sorry if I ask stupid questions.

I was connected with putty by my notebook via wifi to my bsd box and I was installing a port (/usr/port/net/serviio) using make install clean while my home network went down.
First I loose the external connection and I realize it because the install stopped while it was downloading something, then I loose the wifi so the putty session went out.

After that I restarted my home router but I don't know what is going on in the bsd box because the new putty session doesn't show me anything about.

I think that the whole down has taken something like no more than 1 or 2 minutes.

What can I do? May I simply restart the install process?

If I type top -P, it doesn't seem to happen anything, the CPU si working for no more than 1-2%.

Thanks a lot for your help.

by hannibal80 at August 03, 2011 10:54 PM

Damn you FreeBSD!

I've been sucked in...

I'm supposed to be studying my ass off at school and all I've been doing is tinkering away on my computer for the last year!

I'm always installing, updating and configuring new things, setting up small test networks, and buying new compatible hardware!

It's fun though :p

by bigtoque at August 03, 2011 10:09 PM

PF ALTQ on 3 NIC's

I have machine with 3 cards: rl0(internet), rl1(Lan1), rl2(Lan2). ##rl1 and rl2 are NATed.## wrong --> rl0 is only NATed

The question is:

How to write altq queues so that the sum of download bandwidth from internet(rl1) will be dynamically shaped among computers in these two networks?

For example: let's assume that my internet connection is 1 Mbps of download. In this case I have no idea what sholud I set on rl1 and rl2 in bandwith. I've tried this one:
Code:

altq on ($int1_if $int2_if) bandwidth 1024Kb ....
int1_if = rl1
int2_if = rl2
There is no error but it doesnt work in max download . Network gets down.

by Magnesik at August 03, 2011 09:35 PM

Installing FreeBSD 8.2 amd64 on Thinkpad W520 hangs on atkbd0

Hello to all,

I just bought a brand new Thinkpad W520 and was planning to run 8.2 amd64 on there. I would consider myself intermediate with linux/FreeBSD. About the issue I am hitting:

1. Installing from FreeBSD 8.2 amd64 CD
2. BIOS settings are dialed in to be most compatible and only enabled the devices I plan to use (usb/cam/bluetooth)
3. Always hangs at: atkbd0: <AT Keyboard> irq 1 on atkbdc0

Researching I see many people have been running into this issue back from FreeBSD 5.0 - current and other BSD distros as well. Many of the threads people seem to have given up, others state the work-around is to disable the keyboard at the loader prompt and use a USB keyboard then build a new kernel after its installed. I can't see how thats an acceptable solution.

Digging deeper I found a handful of suggested boot options such as:
set hint.atkbd.0.flags="0x1"
set hint.atkbd.0.flags="0x8"
set hint.atkbd.0.flags="0x9"
tweaking the IRQ

Others suggested disable acpi, another said to manually load ukbd module (even though it looks like it was already loaded by default). I was able to disable every device on the bios and get an installation working with the native keyboard but then when it went to configure my bios-disabled NIC it kicked me out of the install. This leads me to believe that it works just fine and there is some resource conflict going on. Does anyone have any suggestions for how to perform an install with the original keyboard and with all my devices enabled/usable without having to use an external keyboard? I dont have a PS/2 to USB adapter and don't plan on buying one. I want to take the hard road so I can really become fluent with FreeBSD. Thanks

by ipyakuza at August 03, 2011 07:59 PM

xlock sound existence

Hello All!

Has anyone tried to enable the sound in xlock (xlockmore)?

In "man xlock" you can find some sound options like
[ -infosound string ] [ -validsound string ] etc.

But if you will try to run something like this:
xlock -validsound
you will get a message:
xlock: bad command line option "-validsound"

by su27 at August 03, 2011 07:27 PM

Cheers for Nvidia support

I highly doubt open source drivers will ever be available, but over the past year I have noticed a increasingly faster driver release schedule from Nvidia. Going back before the 2xx.xx series of drivers, Nvidia would usually release a update every 3-6 months. This past year though it seems a new driver is available every 2-4 weeks. Kudos to Nvidia! (now I just wish CUDA support would arrive)

by captobvious at August 03, 2011 06:54 PM

minix and plan9 in freebsd

Hello,

Is there a way I can have a minix kernel and plan 9 software on my FreeBSD 8 box ?

Regards,

roelof

by roelof at August 03, 2011 03:21 PM

Samba Users - A Slew of Problems

Anytime I have a request to have a user added to access our server, I get a headache. It shouldn't be that tough, but I always have problems. I tried to add a user, "ysingh", that account didn't work. Okay, I'll delete the account :

Code:

$ sudo rmuser ysingh
Matching password entry:

ysingh:*:1009:513::0:0:System User:/home/ysingh:/bin/sh

Is this the entry you wish to remove? y
Remove user's home directory (/home/ysingh)? y
Removing user (ysingh): home passwdpw: user 'ysingh' does not exist: No such file or directory
.

Code:

$ sudo pdbedit -x ysingh
smbldap_search_domain_info: Searching for:[(&(objectClass=sambaDomain)(sambaDomainName=SPRINGFIELD))]
smbldap_open_connection: connection opened
ldap_connect_system: successful connection to the LDAP server
user ysingh does not exist in the passdb

Should be good right? NO:

Code:

$ id ysingh
uid=1009(ysingh) gid=513(Domain Users) groups=513(Domain Users)

Not sure how to go about deleting this guy now.

In my next post I'll show my process to try and add an account.

by mallen324 at August 03, 2011 02:31 PM

Two problems unsolved currently...

Hello, there:
Well, I bump into two tiny problems recently, and am not sure about the reason. Yesterday, I tried to deinstall some packages via "pkg_delete", everything is fine except the message shown like this on console:
Code:

ad5: TIMEOUT - WRITE_DMA RETRYING (1 RETRYING LEFT LBA = 87046335)
I don't know what does this mean. Do I have a broken DMA or hard disk? x(
And secondly, I failed to shutdown my computer sometimes. When I press the "Shutdown" button in Xfce 4.8, it'll sometimes (not too often) hang or cease on this message:
Code:

acpi0: powering system off
I've to reboot my box manually, after which... Uh, "Shutdown" works fine for me.:(
So, is there anything wrong on my box? Could you help me? Thank you in advance. :f

by YZMSQ at August 03, 2011 01:44 PM

Usenet Client

Not sure if this is the correct section, if not please move it to the correct one.

For the past couple of years I've been using pan (news/pan) which I really like. But, it has a few drawbacks, it only allows a maximum of 4 connections and it doesn't support SSL. My usenet provider allows 20 connections on my account and I'd really like to use SSL.

So my question is, what alternative usenet clients are there?
  • Preferably GTK but if the client is good enough I won't mind QT
  • 'tasklist' so articles/attachments are queued and downloaded in the background while still being able to browse/read postings
  • support for more then 4 concurrent connections
  • SSL support
  • Images and such should be visible 'inline' in a posting
  • supports Yenc
  • able to handle multipart postings

I think that pretty much sums up the 'requirements' I have :e

As I said, I'm happy to continue using pan, just wondering if there's something else out there (and I couldn't really find anything in the ports tree).

by SirDice at August 03, 2011 01:38 PM

RTC BIOS diagnostic error 8<fixed_disk>

I have

"RTC BIOS diagnostic error 8<fixed_disk>"

in dmesg out.

What does it mean?

by Berk at August 03, 2011 10:22 AM

How to create a new user to the sh-script?

Hi all.
I have a problem.
How to create a new user to the sh-script?

I have:
Code:

#!/bin/sh
#(c) 2011 doorways :).

if [$(id -u) -eq0 ]; then
    echo "Enter your name: "
    read user_name
       
    echo "Enter your password: "
    read user_password
       
    mkdir -p /usr/home/$user_name
    chmod 777 /usr/home/$user_name
       
    epass=`perl -e 'print crypt ("'$user_password'", "sa");'`
    adduser -m -d /usr/home/$user_name -p $epass $user_name
else
    echo "You are must be root!"
fi
# end file.

But after the command:
Code:

adduser -m -d /usr/home/$user_name -p $epass $user_name
- in the console message
Code:

Username:


How to automate?
Thanks.

by doorways at August 03, 2011 10:00 AM

Linus Torvalds about Gnome 3

Quote:

While you are at it, could you also fork gnome, and support a gnome-2 environment?
I want my sane interfaces back. I have yet to meet anybody who likes the unholy mess that is gnome-3.
Quote:

it's not that I have rendering problems with gnome3 (although I do have those too), it's that the user experience of Gnome3 even without rendering problems is unacceptable.

Why can't I have shortcuts on my desktop? Why can't I have the expose functionality? Wobbly windows? Why does anybody sane think that it's a good idea to have that "go to the crazy 'activities'" menu mode?

I used to be upset when gnome developers decided it was "too complicated" for the user to remap some mouse buttons. In gnome3, the developers have apparently decided that it's "too complicated" to actually do real work on your desktop, and have decided to make it really annoying to do.

Here's an example of "the crazy": you want a new terminal window. So you go to "activities" and press the "terminal" thing that you've made part of your normal desktop thing (but why can't I just have it on the desktop, instead of in that insane "activities" mode?). What happens? Nothing. It brings your existing terminal to the forefront.

That's just crazy crap. Now I need to use Shift-Control-N in an old terminal to bring up a new one. Yeah, that's a real user experience improvement. Sure.

I'm sure there are other ways, but that's just an example of the kind of "head up the arse" behavior of gnome3. Seriously. I have been asking other developers about gnome3, they all think it's crazy.

I'm using Xfce. I think it's a step down from gnome2, but it's a huge step up from gnome3. Really.
https://plus.google.com/106327083461...ts/SbnL3KaVRtM

by bes at August 03, 2011 08:45 AM

Setting wireless mtu?

Hi,

I have an ADSL connection that gets dropped very often (I can ping the modem-like device but nothing further). This can happen when doing a google image search and scrolling fast, for example.
Some googling revealed that putting the mtu of the network interface to 1492 should fix the problem. I tried it with a wired connection and the solution seems to work but when I tried it with the wireless connection it didn't work. From ifconfig:

Code:

(01:10:24 <~>)0 > ifconfig
re0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1492
        options=389b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_UCAST,WOL_MCAST,WOL_MAGIC>
        ether 00:03:25:50:e5:9e
        media: Ethernet autoselect (none)
        status: no carrier
wpi0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2290
        ether 00:1f:3c:66:ab:0d
        media: IEEE 802.11 Wireless Ethernet autoselect mode 11g
        status: associated
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
        options=3<RXCSUM,TXCSUM>
        inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
        inet6 ::1 prefixlen 128
        inet 127.0.0.1 netmask 0xff000000
        nd6 options=3<PERFORMNUD,ACCEPT_RTADV>
wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1492
        ether 00:1f:3c:66:ab:0d
        inet 192.168.1.96 netmask 0xffffff00 broadcast 192.168.1.255
        media: IEEE 802.11 Wireless Ethernet OFDM/54Mbps mode 11g
        status: associated
        ssid Ginnungagap channel 1 (2412 MHz 11g) bssid 00:25:3c:93:ba:aa
        country US authmode OPEN privacy ON deftxkey 1 wepkey 1:40-bit
        txpower 0 bmiss 7 scanvalid 60 protmode CTS roaming MANUAL

While wlan0 has mtu=1492, wpi0 has mtu=2290. I can set the mtu of wlan0 to 1492 but when I try to set the mtu for wpi0 I get:

Code:

# ifconfig wpi0 mtu 1492
ifconfig: ioctl (set mtu): Invalid argument

How can I change the mtu value for wpi0?

Thanks,

V.

by vsoto at August 03, 2011 08:32 AM

VPN tunnel gif interface problem

Hi,

I have a VPN tunnel between a Juniper SRX100 router and a FreeBSD box running ipsec-tools.
I created this scenario according to the FreeBSD Handbook. (http://www.freebsd.org/doc/handbook/ipsec.html)

The tunnel works well but I can see inbound packets only on the gif interface (FreeBSD box).
Is it normal or I have routing/policy problems?

BR
zgabe

by zgabe at August 03, 2011 07:49 AM

conventions for? local host & domain name

I have some Freebsd servers on our internal network.
So they are not internet visible.

Obviously the host name can be set, but what I would like to know is:
is there a convention for a local domain name?

I guess one doesn't use a 'real' domainname if the host cannot be reached?

I am chiefly concerned with sending email out. Unfortunately I need to send to
an exchange server and like most MS stuff it appears to be brain dead and oft confused.
As is the administrator.
So I would like to get my house in order first.

Are there any conventions I should follow?

by bigearsbilly at August 03, 2011 07:39 AM

August 02, 2011

FreeBSD forums

problem by porting mod-vhost-ldap-2.0.8 to FreeBSD

Hi there,

On the Ports it seems mod-vhost-ldap is to old so I'm trying to compile the newest version on FreeBSD. I want to have Vhosts running using ldap with www/apache22-worker-mpm. I'm not a Coder, I've poor knowledge about C and I'm not really familar about GCC APXS and such stuff. The build breaks on "-c-lldap_r"

Here I've pasted the Makefile
http://pastebin.com/CfQiwNEw

Here I've pasted the complete build
http://pastebin.com/DCuvbfY5

Can anyone tell me what exactly is mean with -lldap_r and suggest how I could fix it? It seems that something about ldap was not find. But everything is installed.
Thanx in advance!

by minimike at August 02, 2011 10:56 PM

vncserver: Wrong type of access mode of .vnc

Hello everyone,
I'm really a newbie to FreeBSD.

I'm trying to make vncserver able to automatic start up on boot with a user that's not root.

So, I spent 3 nights reading everywhere about my issues and I was able to get vnc working with xfce4. The server I used is tightvnc.

Now, the last step for now is to make it start up on boot.

I made a script, tightvnc, and I put it into /usr/local/etc/rc.d

Code:

#!/bin/sh
#

# REQUIRE: DAEMON
# PROVIDE: tightvnc

. /etc/rc.subr

USER=Lorenzo
HOME=/usr/home/Lorenzo

export USER HOME

PATH=$PATH:/usr/local/bin/ && export PATH
echo $PATH
echo $USER
echo $HOME

name="tightvnc"
rcvar=`set_rcvar`
load_rc_config $name
command="/usr/local/bin/vncserver"

tightvnc_enable=${tightvnc_enable-"NO"}
tightvnc_pidfile=${tightvnc_pidfile-"/var/run/tightvnc.pid"}

pidfile="${tightvnc_pidfile}"

run_rc_command "$1"

then I modified my /etc/rc.conf adding
Code:

tightvnc_enable="YES"
Now, when I reboot I have:

Code:

[...]
/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin
Lorenzo
/usr/home/Lorenzo
Starting tightvnc.
vncserver: Wrong type or access mode of /usr/home/Lorenzo/.vnc.
/etc/rc: WARNING: failed to start tightvnc
[...]

I've checked the .vnc permission that are:

Code:

# pwd
/usr/home/Lorenzo
# ls -l | grep vnc
drwxrwxrwx  2 Lorenzo  wheel      512 Aug  2 21:36 .vnc

and

Code:

# pwd
/usr/home/Lorenzo/.vnc
# ls -l
total 4932
-rw-------  1 Lorenzo  wheel        8 Aug  2 00:04 passwd
-rw-------  1 Lorenzo  wheel  5025792 Aug  2 00:08 xfce4-settings-help.core
-rwxr-xr-x  1 Lorenzo  wheel      204 Aug  2 00:07 xstartup

this is the content of /usr/home/Lorenzo/.vnc/xstartup


Code:

#!/bin/sh

/usr/local/bin/startxfce4

#[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
#xsetroot -solid grey
#vncconfig -iconic &
#xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#twm &

Can you please help me?

Thanks in advice.

by hannibal80 at August 02, 2011 08:30 PM

Fail upgrading devel/m4

I have an extrange problem. Trying to upgrade all ports with portmaster on 8.2-RELEASE, got an error when compiling devel/m4.

Code:

In file included from execute.c:47:
./spawn.h:469: error: 'POSIX_SPAWN_RESETIDS' undeclared here (not in a function)
./spawn.h:469: error: 'POSIX_SPAWN_SETPGROUP' undeclared here (not in a function)
./spawn.h:470: error: 'POSIX_SPAWN_SETSIGDEF' undeclared here (not in a function)
./spawn.h:470: error: 'POSIX_SPAWN_SETSIGMASK' undeclared here (not in a function)
*** Error code 1

Stop in /nas/freebsd/ports/devel/m4/work/m4-1.4.16/lib.
*** Error code 1

I've searched for this, but don't get anithing usefull. I'm really lost.

Any idea ???

Thanks !

by juanjico at August 02, 2011 07:31 PM

Problem with latest nvidia driver (270.41.19) for amd64

Hi. May be i wrote to the wrong place, so i apologize if so. After upgrade to version 270.41.19 of x11/nvidia-driver i see problems on FreeBSD 9-amd64 - when everything freezes - the mouse and graphical output. Keyboard (for example cltr + alt + f {1-8}) does not work too. However - machine still available via remotely by SSH, and audio playback is works. In the top i see that Xorg load the cpu core at 100%. I reproduce the problem in only one case - when I try to use adobe flash in firefox. In this case the first time usually flash works, but if i open a new flash or do

killall -9 npviewer.bin

- most likely the problem will appear. I did downgrade nvidia driver to version 256.53 and the problem magically went away. Where am I correct to bug report, to NVIDIA? Has anyone encountered the same problem?

by pelmen at August 02, 2011 07:03 PM

Parallel process in bash scripts.

Hi all.
I wrote script automation install GUI. He has next lines:
Code:

. . .
which openbox | awk '{print "exec " $1}' > $HOME/.xinitrc
       
Xorg –configure
Xorg –config /root/xorg.conf.new –retro

cd /root/
cp xorg.conf.new /etc/X11/xorg.conf

But, after run
Code:

Xorg –config /root/xorg.conf.new –retro
run GUI and script stops. Last two commands do not run.
I must click (Ctrl+Alt+F2), login, and manually carry them out.

How can I be?

Thank you.

by doorways at August 02, 2011 07:00 PM

bsd for servers...

i think all of BSD's are made for servers[the best choice],far from to compite with 'penguin'...

yeah is my think and want some respect(do not edit/erase) that's all i ask!

by d_mon at August 02, 2011 04:15 PM

[Solved] To be or not to be. "root" user without the other users.

Howdy all.
I just got off the Windows Xp. There I used the admin account. But I saw that many UNIX users is not recommended to be "root".

Yes, I understand that I can play in "Russian Roulette":
Code:

# [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo "You live"
But if I become a guru in this matter ...
Are You use the account "root" for themselves?

P.c. I understand that if I put the server - then the account "root" to lay the brick course.

by doorways at August 02, 2011 03:11 PM

mailman on freeBSD-8.2: getgrgid() fails for apache userID

Hi people..

I'm trying to get mailman working on a freeBSD server. Everything seems fine except for the web/cgi interface. Mailman is bailing out because it cannot figure out the group of apache user (who runs all the cgi stuff):

mailman uses getgrgid() to verify the group-name and it is returning null. I wrote a small test program to call getgrgid(). It returns the right group if I run it from my account or as any other humans, but it fails for system accounts like www, nobody, pgsql etc. One of my own system hardening attempts might be creating the trouble here, but I'm not able to figure it out :PP

Would appreciate any help to sort it out.. Thanks in anticipation :)

by wrecks at August 02, 2011 02:12 PM

howto zpool replace - find physical device

I have to replace a device of my raid system, but I am not sure how to do it the right way.

My server occasionally hung up, and I found failures of one device ad10
Code:

Aug  2 03:14:09 srvfbsd01 kernel: ad10: FAILURE - READ_DMA48 status=51<READY,DSC,ERROR> error=40<UNCORRECTABLE> LBA=1212353536
As I unterstand I just have to replace the device physically and then by the replace command in the pool, like:

Code:

zpool replace tank c1t1d0
Is this right that way?
How can I find out which physical device is ad10? I have a HP ProLiant ML150 server.
How can I see the size of the disk (capacity)?
My pool looks like this:
Code:

        NAME            STATE    READ WRITE CKSUM
        tank            DEGRADED    0    0    0
          raidz2        DEGRADED    0    0    0
            ad4        ONLINE      0    0    0
            ad6        ONLINE      0    0    0
            ad8        ONLINE      0    0    0
            ad10        ONLINE      0    0    0
            ad12        ONLINE      0    0    0
            replacing  DEGRADED    0    0    0
              ad14/old  UNAVAIL      0  574K    0  cannot open
              ad14      ONLINE      0    0    0

(ad14 is another problem)

I also tried to offline the disk, in order to prevent the server from additional hangups, but it seems there is no way?
Code:

zpool offline tank ad10
cannot offline ad10: no valid replicas

Thanks for any help!
Daniel

by daniel at August 02, 2011 02:08 PM

[Solved] How to make portmaster install latest version of dependencies

Hi, fellows
I've got some questions here:
  1. How to make portmaster install latest version of dependencies, example install mail/postfix with openldap support, need to install openldap, but i want openldap-server-2.4.26 to be installed, not openldap-server-2.3.43?
  2. How to remove package configurations made by first time "make install clean", so that i can choose which module to be compiled again?
Thanks and have a good day.

by kenyloveg at August 02, 2011 12:48 PM

[Solved] sh weirdness with $PAGER

Hi!

I was wondering can anyone enlighten me why this:

happens.

Screenshot on left is with $ playd cat | $PAGER
Screenshot on right is with $ playd list

Relavent code:
playd cat: http://hg.bsdroot.lv/aldis/playd.sh/.../playd.sh#l432
playd list: http://hg.bsdroot.lv/aldis/playd.sh/.../playd.sh#l437 (same as playd cat, except that output is piped to $PAGER)

So pretty much playd list should be equivalent to playd cat | $PAGER, but it (playd list) doesn't show unicode characters.

For the sake of experiment I replaced /bin/sh with /usr/local/bin/mksh and I got same output.

I really want to fix this.

by killasmurf86 at August 02, 2011 10:13 AM

128 Buckets Failures

Hello dear All,

i searched the forum and didnt find anything interesting on my question.
the question is
Code:

[root@gw2 ~]# vmstat -z
ITEM                    SIZE    LIMIT      USED      FREE  REQUESTS  FAILURES
64 Bucket:                536,        0,      193,        3,      193,      159
128 Bucket:              1048,        0,    1956,        0,    1956,    10418

So this is seems like mem allocation failures for smth. how i can cure it? i've got 2 routers with freebsd 8.2 and PF running on them. and both have those failures.
Code:

Mem: 72M Active, 942M Inact, 429M Wired, 320K Cache, 408M Buf, 2404M Free
Swap: 5900M Total, 5900M Free
CPU:  0.0% user,  0.0% nice,  0.1% system,  0.1% interrupt, 99.8% idle

what should i do?
amd64 on both.

by romeor at August 02, 2011 09:36 AM

make buildkernel fails

Hi,

I have a fresh install of 8.2 and trying to make some small changes to the GENERIC kernel.
when I run this command...

Code:

make buildkernel KERNCONF=MYKERNEL
I receive the following error:
Code:

"Makefile", line 177: check your date/time: <current date time>
there were some posts on the net about how i should run "adjkerntz -i" to fix this issue but that doesn't help me much.

has anyone else run into this issue and if so, how did you resolve it?

by garrydanger at August 02, 2011 03:00 AM

About ASUS EeePC 1015B

ASUS EeePC 1015B hardware list:
AMD Fusion APU C50 1.0GHz (dual core) Processor
AMD Radeon HD 6250 with WSVGA(1024x600)
...


I have installed FreeBSD 8.2R-amd64, but there are some problems:

1. When using pciconf -lv, I found
Code:

none0@pci0:0:20:0 class=0x0c0500 card=0x43851002 chip=0x43851002 rev=0x42 hdr=0x00
vendor = 'ATI Technologies Inc. / Advanced Micro Devices, Inc.'
device = 'ATI SMBus (ATI RD600/RS600)'
class = serial bus
subclass = SMBus

Which module should be load? I have tried "kldload amdbus" and it's useless.

2. How to enable the camera?
The camera is on the screen. In Windows7, the driver name is "ECam Utility".

3. How to enable the Hotkeys?
I have using kldload acpi_asus, but the Hotkeys (Fn+*) can't use.
dmesg -a found some warning messages:
Code:

...
ACPI APIC Table : <ALASKA A M I>
ACPI Warning: incorrect checksum in table [XSDT] - 0x89, should be 0x36 (20101013/tbutils-354)
ACPI Warning: Optional field Pm2ControlBlock has zero address or length: 0x0000000000000000/0x1 (20101013/tbfadt-655)
acpi0: <_ASUS_Notebook> on motherboard
...

4. Display driver seems exceptional
I have installed Xorg 7.5.1 with xf86-video-ati. Although X can work, there are some error messages when enter X:
Code:

...
failed to set mtrr: Invalid argument
...
(EE) RADEON(0): Acceleration initialization failed
...
expected keysym, got XF86TouchpadToggle: line 123 of inet
...

It looks like the display dirver doesn't take effect.

5. Battery drain is too fast
The full power only lasts 2 hours, instead of 7 hours in Win7.
How to optimize it?

THANKS!

by alphachi at August 02, 2011 01:41 AM

Two NICs with same subnet

Hello I can't work with two network connections (same subnet) simultaneously.

In linux it fix : enabling arp_filter but in FreeBSD how to fix it?

Code:

ETH1 : 200.121.12x.4 router 200.121.12x.1
ETH2 : 200.121.12x.8 router 200.121.12x.1

Error Log
Code:

arpresolve: can't allocate llinfo for 200.121.12x.1

by elcopion at August 02, 2011 12:48 AM

August 01, 2011

FreeBSD forums

Incoming and Outgoing Mail

How is Bind setup to handle mail if the pop3/imap and smtp mail servers are split? Which of them gets the MX record?

by gpatrick at August 01, 2011 11:39 PM

Matrox MGA-200 supported?

I've been having my eyes on the supermicro C-200 boards lately for workstation usage. However the ability to run X with 2D acceleration is a requirement, and I am not sure whether the integrated MGA-200 is supported in FreeBSD. According to the DRI project page at sourceforge all Matrox cards should be supported on FreeBSD's xorg-drivers, however since the MGA200 is more then a decade old already, I wonder if the probably also decade-old driver works with FreeBSD 8 and more importantly the comming FreeBSD 9 ?

by xibo at August 01, 2011 11:17 PM

FreeBSD Mentioned in 1999 Microsoft Hotmail Crash Article

Wow man, FreeBSD really dates back. :D

I saw it mentioned from a 1999 Slash article about Microsoft Hotmail crash. A lot of user comments try to blame FreeBSD as well as a marketing ploy by Microsoft to advertise Windows as superior. :eek:

Check it out:
http://slashdot.org/story/99/12/25/1...rruptedUPDATED

by EGS at August 01, 2011 11:09 PM

Unstable wireless connection; any better solutions?

Atheros wireless card, FreeBSD 8.2.

Everything works, except one problem: it will disconnect after a certain period of time (10 mins, for example). To reconnect, I have to use
Code:

dhclient wlan0
.

To simplify the task, I wrote a simple shell script which basically repeats the above commands every 5 mins, to make sure that I can have consistent wireless connection. I set the shell script auto-run whenever the system starts. It works, but I feel it's kind of dumb. Unfortunately, I don't know any other solutions.

Is there a better/cleaner way to solve this problem?

by everypot at August 01, 2011 11:07 PM

Question regarding ssh/console and PAM

Hi,
Can anybody tell redirect me to right forum where I can ask questions related to SSH/Console and PAM?

Regards,
Uday.

by uday at August 01, 2011 10:33 PM

Atheros AR9285 Wireless

Hi. I've tried doing more research on my issue that I've been having with my card but I seem to only have found one thing which is: "Upgrade to FreeBSD 8-STABLE" which I have tried and did not fix the issue.

I installed FreeBSD 8.2-RELEASE onto my laptop the other day and when I try to setup wireless when I reboot to use the card I start to see:

Code:

ath0: hardware error; resetting
ath0: 0x00000000 0x00002000 0x00000000, 0x00000000 0x00000000 0x00000000

Which occurs every few seconds.

My card is an Atheros AR9285 (AR928X)
pciconf -lv output:
Code:

ath0@pci0:2:0:0:        class=0x028000 card=0x3040103c chip=0x002b168c rev=0x01 hdr=0x00
    vendor    = 'Atheros Communications Inc.'
    device    = 'Atheros AR9285 Wireless LAN 802.11 a/b/g/n Controller (AR928x)'
    class      = network

by brenden1096 at August 01, 2011 07:26 PM

Upgrade of evince fails

I am using FreeBSD 8.2 Release. I am unable to upgrade Evince.
When I try to upgrade Evince using # portupgrade evince
I get the following error:
Code:

tiff2ps.c: In function 'PS_Lvl2page':
tiff2ps.c:1131: warning: format '%u' expects type 'unsigned int', but argument 3 has type 'tsize_t'
  CCLD  libtiffdocument.la
grep: /usr/local/lib/liblzma.la: No such file or directory
sed: /usr/local/lib/liblzma.la: No such file or directory
gnome-libtool: link: `/usr/local/lib/liblzma.la' is not a valid libtool archive
gmake[3]: *** [libtiffdocument.la] Error 1
gmake[3]: Leaving directory `/usr/ports/graphics/evince/work/evince-2.32.0/backend/tiff'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/usr/ports/graphics/evince/work/evince-2.32.0/backend'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/ports/graphics/evince/work/evince-2.32.0'
gmake: *** [all] Error 2
*** Error code 1

Stop in /usr/ports/graphics/evince.
*** Error code 1

Stop in /usr/ports/graphics/evince.

I have checked UPDATING and ran the command
# portupgrade -o archivers/xz lzmautils\*
but it gives no output.

Also I cannot delete xz:
# sudo pkg_deinstall xz
Code:

** No matching package found.
When trying to reinstall xz, I get the following error:
# sudo make reinstall
Code:

===>  xz-5.0.3 is already in the base system.
*** Error code 1

Stop in /usr/ports/archivers/xz.

I have tried to fix this problem by installing lzma (along with xz) but still evince compilation is giving same error.

There is a thread where OP fixed same problem by reinstalling xz:
http://forums.freebsd.org/showthread.php?t=24880
using
# pkg_add -r -f xz
and then running portupgrade command
# portupgrade -o archivers/xz lzmautils\*
but I am unable to do the same because pkg_add is unable to find package for xz (may be because I have updated ports)
Please help.

by gps23 at August 01, 2011 06:27 PM

top cli output truncated on command column

Is there any way/option to make top output the full COMMAND column in the cli ? The command output is truncated. Yes, with -a i have long names.


if there isnt, someone should tell the maintainer.

by billgates at August 01, 2011 06:15 PM

Which GUI to choose?

I recently switched from Windows Xp on FreeBSD. In Windows XP, only one GUI - Explorer. I found that in UNIX have a choice: GNOME, KDE, OpenBox - what to choose?

I installed PC-BSD - he was using KDE. I have a very fast computer - no inhibitions. But I do not like multimedia interface (similar to Windows 7).

Now, I installed FreeBSD 8 and GNOME2. I like GNOME - but it's too big. To start GNOME2, I installed X11 - startx. startx - Very compact GUI - stunned. But as run LibreOffice 3 or Battlefield Bad Company 2?

What advice would you give GUI?
- Run LibreOffice
- Run FireFox
- Run Gimp
- Run Battlefield Bad Company 2 (made a separate topic)
Thank you.

by doorways at August 01, 2011 05:37 PM

A mouse problem

I've been using 9.0-CURRENT for over a month without any problem. Recently, however, I decided to set up SSH server (making use of [ports]dns/ddclient[/port], since I have a dynamic IP address). After that, I saw lots of attempts to log in to my PC from all over the world. That's why I installed security/blocksshd and recompiled my kernel with pf module (and since I had to recompile my kernel, I also recompiled world upgrading it to 9.0-BETA1). All is running well, but there started to appear some strange X problem. It's shown on the screenshot. My another PC with world compiled on the same day, also running SSH server with dns/ddclient and /security/blocksshd and pf compiled into the kernel doesn't have such problem. What could be the reason and how to repair it? I've already recompiled x11/nvidia-driver but it didn't repair it. It only appears when I move my mouse. Also, there are a few mice on the screen, all in one row (horizontally). It only shows up on the upper half of the display, the rest is all OK.

by pkubaj at August 01, 2011 04:13 PM

[Tip] Fast FreeBSD reload/reboot.

Hi, probably most of you know this tip, and it is nothing special or new, but because of that it is really useful, I decided to write about it. Sometimes we need to reboot/reload system, because of various causes. There is a possibility to do it much faster than typical restarting. I think, that this command is suitable better for use with non-graphical/server FreeBSD instalations (please refer to WARNING! notice). It also can be used for various others operations; with jails (e.g. jail_cell_exec_start as a /etc/rc.conf file variable.) or auto-reboot and daemon startup etc. rc(8). Just run;

# /bin/sh /etc/rc

WARNING! I noticed that when this command is execute under a graphical environment, there appears some problems with applications (e.g. when clicking on the Firefox icon, there is no response). There is possibility, that it affected only me. Interesting is that when executing this command under "clear, black console" (immediately after logging to the system with no login manager) and after start environment with startx command, all applications seems to operate correctly. That's the reason for why I mentioned about better using this command in production use (where often there is not graphical environment).

by francis at August 01, 2011 03:47 PM

Battlefield Bad Company 2

Hi all.
Who ever installed Battlefield Bad Company 2 on FreeBSD?
It is possible to play?

We need to use Linux wine?

I have sometimes installed WIndows Xp - I would like to play with FreeBSD.
As a GUI (in FreeBSD) - Gnome2

by doorways at August 01, 2011 02:10 PM

Loader hangs after the 'welcome to freebsd' page

hi all,

quite the newbie to FreeBSD here.

I have installed freeBSD 8.2 on a fujitsu RX300 server, with a LSI raid controller based on the LSI SAS 2108 Raid on Chip.
After installation,
the boot process will hang for about 5 min, after selecting option from 1 to 5
at the 'Welcome to FreeBSD' , with progress cursor hanging at '/','|','\' or '-' .

I have tried using
1) Boot FreeBSD
2) Boot FreeBSD with ACPI disabled
3) Boot FreeBSD in Safe Mode
4) Boot FreeBSD in single user mode
5) Boot FreeBSD with verbose logging

None which made any difference.

The problem which causes the loader to hang for 5 min , seems to occur before
the 1st line of boot message appears.
i.e
Copyright (c) 1992-2011 The FreeBSD Project
Copyright (c) 1979, 1980 ..... (blah, blah , blah)

Could this be due to some of the kernel modules ?

Another interesting note, was that the boot up from the installation DVD,
also hangs for about 3 mins at the same place.

See attached for the screen shot at which the loader hangs

Thanks in advance for any help / suggestion

Attached Images
File Type: jpg freebsd8.2_loader_hangs.jpg (50.6 KB)

by horly at August 01, 2011 11:25 AM

Netatalk 2.2: afpd dumps core

Hi,

I just installed the most recent netatalk release. Unfortunately apfd, the most important
deamon of the package keeps crashing:

Code:

Assertion failed: (client), function avahi_client_errno, file client.c, line 791.
zsh: abort (core dumped)  afpd -d -T

I disabled the avahi option in the ports config file, but that did not change anything.
Does anyone run netatalk 2.2 with afpd successfully?

Johannes

by tty23 at August 01, 2011 11:22 AM

ATTO ExpressSAS R380 and FreeNAS

Is it compatible?

I want to use FreeNAS with ATTO ExpressSAS R380 connected to G-SPEED ES PRO disks.

ATTO have Redhat/Suse driver and software available, would it work with FreeBSD/NAS?

Thanks!

by welabbar at August 01, 2011 09:18 AM

Setting up lagg interface

Hi,

last week, it was the first time for me setting up a lagg interface with a cisco switch and had this page from the handbook as a guide:
Link Aggregation and Failover

I had troubles getting everything to work because the lagg interface always showed "no carrier" as status and couldn´t get an address. After much googling, I found the reason for this is because you have make the laggports "up" before you create the lagg interface.

The rest went off without a hitch and it was so cool to see everything "just work". You really got double the perfomance and perfect failover!

If this had been explained in the handbook, it would have saved me half a day´s worth of troubleshooting.

Correct approach:
Code:

# ifconfig em0 up
# ifconfig em1 up
# ifconfig lagg0 create
# ifconfig lagg0 up laggproto lacp laggport em0 laggport em1

/etc/rc.conf:
Code:

ifconfig_em0="up"
ifconfig_em1="up"
cloned_interfaces="lagg0"
ifconfig_lagg0="up laggproto lacp laggport em0 laggport em1 DHCP"

I think it would make things much easier for other people in that situation, if this was explained on that page. How does that sound?

/Sebulon

by Sebulon at August 01, 2011 07:20 AM

[Solved] dell laptop with 1397 wifi

Hello everybody,

I have a dell laptop with a 1397 wireless card, and I am trying to get it working with FreeBSD 8-STABLE (i386). As far as I can tell, the "appropriate" driver for this chipset seems to be bwn(4) (I kldloaded /boot/kernel/if_* to see which driver might be supported :) ). Of course, I might be wrong (I'm afraid), since I don't see my chipset present on the supported hardware list of bwn(4). I have also installed the net/bwn-firmware-kmod port which is suggested by bwn(4) for the firmware. The only messages I have got on dmesg so far, are:

Code:

bwn0: firmware version (rev 478 patch 104 date 0x8701 time 0x657)
wlan0: ieee80211_new_state_locked: pending INIT -> SCAN transition lost
bwn0: need multicast update callback

while some more details regarding my system are:

Code:

$ ifconfig
bwn0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 2290
        ether 70:f1:a1:34:10:8a
        media: IEEE 802.11 Wireless Ethernet autoselect mode 11g
        status: associated
wlan0: flags=8c43<UP,BROADCAST,RUNNING,OACTIVE,SIMPLEX,MULTICAST> metric 0 mtu 1500
        ether 70:f1:a1:34:10:8a
        inet 192.168.2.17 netmask 0xffffff00 broadcast 192.168.2.255
        media: IEEE 802.11 Wireless Ethernet autoselect mode 11g
        status: no carrier
        ssid barbounia channel 6 (2437 MHz 11g)
        country US authmode OPEN privacy OFF txpower 30 bmiss 7 scanvalid 60
        bgscan bgscanintvl 300 bgscanidle 250 roam:rssi 7 roam:rate 5
        protmode CTS wme
# pciconf -lvcb
siba_bwn0@pci0:12:0:0:        class=0x028000 card=0x000c1028 chip=0x431514e4 rev=0x01 hdr=0x00
    vendor    = 'Broadcom Corporation'
    device    = 'Broadcom Wireless b/g (BCM4315/BCM22062000)'
    class      = network
    bar  [10] = type Memory, range 64, base 0xf69fc000, size 16384, enabled
    cap 01[40] = powerspec 3  supports D0 D1 D2 D3  current D0
    cap 09[58] = vendor (length 120)
    cap 05[e8] = MSI supports 1 message, 64 bit enabled with 1 message
    cap 10[d0] = PCI-Express 1 endpoint max data 128(128) link x1(x1)
ecap 0001[100] = AER 1 0 fatal 0 non-fatal 4 corrected
ecap 0002[13c] = VC 1 max VC0
ecap 0003[160] = Serial 1 108aa1ffff3470f1
ecap 0004[16c] = unknown 1

The wlan0 interface is always in "no carrier" state, and the info regarding the ssid and IP settings are related to my setup. No encryption is used on my setup.

Most probably I am trying to get something to work that is not meant to wok yet :). Nonetheless, If anyone has some positive experience with this chipset on FreeBSD, I'd be glad to know it. A quick search on the web brought up nothing certain.

Thank you all in advance.

by mamalos at August 01, 2011 06:12 AM

July 31, 2011

FreeBSD forums

PF: NAT, Bridge on the same machine

So far on the router(on freebsd) was set Nat between rl0 (wan) and rl1 (lan). Unfortunately I need to connect one computer directly to router by next network card. I put it in to machine and set bridge between rl1(this card has address) and rl2 (new card). On pf I allowed trafic on rl2.
The problem is that computers behind rl2 can ping gatway which is rl1 but cant ping computers behind rl1. In "clear bridge" when none of card has address (rl1 rl2) then connections beetwen computers behind rl1 and rl2 are possible but of course there is no access to WAN.

How to make working bridge between r1(gate/lan side) and rl2 (free) and NAT between rl0(wan) and rl1 ?

by Magnesik at July 31, 2011 10:17 PM

Setting up system with 3 or 4 drives and also using ZFS?

I currently have a 1TB drive that I use as the system drive, and a 2TB drive I use for data and backups. I would like to add two more 2TB drives and run them as 3x2TB in ZFS so I can protect my data in case of a drive failure.

I'm just curious what the best way to handle this kind of setup would be.

Do I just set up the system as if there was only the 1TB drive, then add the 3x2TB drives and use it as a location where I can store my data, as well as add backups of the 1TB drive?

Being able to keep the 1TB system drive backed up would just be a plus.

Would it be better to just run 3x2TB and ditch the 1TB drive? I keep hearing about using ZFS on the root partition and don't understand if it's a bad thing or not.

Any thoughts?

by bigtoque at July 31, 2011 09:28 PM

Please test my first port: rednotebook

Hello all,

I finish my first port to FreeBSD, rednotebook 1.1.7.

It is a GPLv2 desktop journal X11 application written by Jendrik Seipp.
It is written in python 2.x.

http://rednotebook.sourceforge.net/

I don't know right or wrong that I put it into two categories, deskutils and python.

I just test it in my FreeBSD 8-Stable amd64 and I do not submit it yet.

Please download the attached file for testing.

Attached Files
File Type: gz rednotebook.tar.gz (2.7 KB)

by zeissoctopus at July 31, 2011 07:21 PM

July 21, 2011

FreeBSD forums

which one to install from a clean format laptop

hello worldd
im new
i prefer getting the "minor" instead of major, but not sure if this is the right iso to try freebsd 7.0-20060512-BSDINSTALLER-i386-disc1.iso why is it disc1 ? my laptop is msi u100 plus series under the ftp folder there are more than one iso file, which one is for home use, i'll b burning the disc from winxp environtment before i format everything

i'd like to try the firewall from freebsd

by ididtenkoji at July 21, 2011 09:49 PM

smartd not logging

Hey there,

So, I got smartmontools all setup, even configured periodic to send me daily reports, but smartd isn't logging anything locally.

According to the man page, it's supposed to poll every 30 minutes and by default log to the daemon facility of syslog.

What's unlcear, is if I should see an entry every 30 minutes that shows that it polled or only see a log entry if there are errors or changes to the smart status of the disk?

Normally I'd expect a log entry just to show that the service is doing what it's supposed to, not just for errors. But the man page is a bit fuzzy.

Relevant smartd man page snippet:
Code:


smartd  will attempt to enable SMART monitoring on ATA devices (equiva-
lent to smartctl -s on) and polls these and SCSI devices every 30  min-
utes  (configurable),  logging  SMART  errors  and  changes  of  SMART
Attributes via the SYSLOG interface.  The default  location  for  these
SYSLOG  notifications  and  warnings  is  system-dependent  (typically
/var/log/messages or /var/log/syslog).  To change  this  default  loca-
tion, please see the '-l' command-line option described below.


-l FACILITY, --logfacility=FACILITY
  Uses  syslog  facility FACILITY to log the messages from smartd.
  Here FACILITY is one of local0, local1, ..., local7,  or  daemon
  [default].  If  this  command-line  option is not used, then by
  default messages from smartd are logged to the facility  daemon.

I'm assuming here that "-l" is optional and if not present, smartd will do as indicated, polling every 30 min and log the results to the facility "daemon", as indicated above (which in turn should go to messages or syslog logs).

Is this right?

This is my smartd.conf:
Code:

DEVICESCAN -a -s (S/../.././02|L/../../6/03)

Looking at the default syslog.conf however, there is no daemon facility:
Code:


[tim@nas1 ~]$ cat /etc/syslog.conf
# $FreeBSD: src/etc/syslog.conf,v 1.30.2.1 2009/08/03 08:13:06 kensmith Exp $
# extraneous comments removed
*.err;kern.warning;auth.notice;mail.crit                /dev/console
*.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err  /var/log/messages
security.*                                      /var/log/security
auth.info;authpriv.info                        /var/log/auth.log
mail.info                                      /var/log/maillog
lpr.info                                        /var/log/lpd-errs
ftp.info                                        /var/log/xferlog
cron.*                                          /var/log/cron
*.=debug                                        /var/log/debug.log
*.emerg                                        *
!ppp
*.*                                            /var/log/ppp.log
!*

So, I added a daemon facility like so:
Code:

daemon.*;*.notice;authpriv.none;kern.debug;lpr.info;mail.crit;news.err  /var/log/messages
And I also hupped syslogd so that the new settings would take.

Any helpful hints are appreciated!

by Pfarthing6 at July 21, 2011 09:08 PM

Philosophical question: Sendmail in base install?

Hey,

Why is Sendmail included in a FreeBSD base installation? Average hosts handling mail routing seems to be uncommon. Are the majority of FreeBSD installations in the wild handling mail?

I am not throwing stones, I am not saying it's a bad idea, I just want to understand. Why sendmail and not say... Perl or Unzip or Bash?

Apologies if this discussion has taken place many times before.

by emcee at July 21, 2011 08:24 PM

noob question regarding path and pkg_add...

Hey,

When I install a package such as "zip" using the pkg_add command, the zip software cannot be accessed via my path until a logff and logon. I am logging in as root to do this. If I attempt to "zip --help" right after executing "pkg_add -r zip" I receive the message "Command not found". I can see the program in /usr/local/bin, but I cannot execute the command via my path until I logoff and back on.

I assume there is something fundamental about the operating system that I am not understanding. Typically, for instance, in windows if you place an executable somewhere in your path you can use that program immediately without logging on or off.

Thanks in advance,

A Noob

by emcee at July 21, 2011 07:06 PM

[Solved] Login without a password

Is it possible to modify an existing account so that it doesn't need a password (or accepts a blank password) to login?

by Bellum at July 21, 2011 05:32 PM

Using TACACS to authenticate

Can anyone provide the steps to get a FreeBSD server to authenticate with TACACS+ or point in the right direction to get some directions. I have been googling for 2 days now. Thanks.

by supadee718 at July 21, 2011 03:56 PM

FreeBSD kernel timer infrastructure

Hi guys,

I'm experimenting with the FreeBSD kernel in these days just because I'd like to have a bit of experience also with it and not to stick to the Linux kernel only.
Let's say I have a kernel module that, when loaded, print "Hello, World!" on the console every 5 seconds, what do I need to do?
I've found very few information regarding callout_* functions, are they right? I tried to write an example but I can't get them work at all.

Thanks for your help.

sirus

by sirus at July 21, 2011 02:39 PM

LACP Doesn't aggregate Bandwidth

Ok i have a strange issue where i have two interfaces setup as follows:

Code:

lagg0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
        options=209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC>
        ether 00:1c:c0:2a:c6:e1
        media: Ethernet autoselect
        status: active
        groups: lagg
        laggproto lacp
        lag id: [(8000,00-1C-C0-2A-C6-E1,0130,0000,0000),
                (FFFF,00-13-46-3C-8F-18,0011,0000,0000)]
        laggport: re0 flags=1c<ACTIVE,COLLECTING,DISTRIBUTING> state=3D
                [(8000,00-1C-C0-2A-C6-E1,0130,8000,0002),
                (FFFF,00-13-46-3C-8F-18,0011,00FF,0001)]
        laggport: em0 flags=1c<ACTIVE,COLLECTING,DISTRIBUTING> state=3D
                [(8000,00-1C-C0-2A-C6-E1,0130,8000,0001),
                (FFFF,00-13-46-3C-8F-18,0011,00FF,0002)]

Fail over works well & the other host is pleased with the connection as-well, however what is happening is that the link does NOT aggregate the speeds of each of the Gigabit Links, rather it seems for the most part to send traffic mainly across one of the two NIC's and then occasionaly swopping to preferring the other.
But the collective speed is NEVER beyond the capabilities of 1Gb NIC.


Anybody have input?

by thavinci at July 21, 2011 01:49 PM

Is there a limit of max 255 NFS mounts in FreeBSD?

According to this thread http://serverfault.com/questions/464...any-nfs-mounts Linux has a max 255 mounts limitation. Do anyone know if it is the same with FreeBSD?

by olav at July 21, 2011 01:11 PM

need flash IT firmware when Use ZFS with LSI ?

I have a LSI card ,the firmware show it is LSI 1068E SAS IR firmware, I want to use ZFS on it , I need to Flashing IR firmware to IT firmware ? I do nothing (not set RAID in the card firmware) , I can set the ZFS pool , this is not good? Which is recommendations ?

My os is 8.1 and dmesg info is :

Code:

mpt0: <LSILogic SAS/SATA Adapter> port 0xe000-0xe0ff mem 0xfb7fc000-0xfb7fffff,0xfb7e0000-0xfb7effff irq 24 at device 0.0 on pci7
mpt0: [ITHREAD]
mpt0: MPI Version=1.5.19.0
mpt0: Capabilities: ( RAID-0 RAID-1E RAID-1 )
mpt0: 0 Active Volumes (2 Max)
mpt0: 0 Hidden Drive Members (14 Max)

Code:

da0 at mpt0 bus 0 scbus0 target 0 lun 0
da0: <ATA ST3500418AS CC46> Fixed Direct Access SCSI-5 device
da0: 300.000MB/s transfers
da0: Command Queueing enabled
da0: 476940MB (976773168 512 byte sectors: 255H 63S/T 60801C)
da1 at mpt0 bus 0 scbus0 target 1 lun 0
da1: <ATA ST3500418AS CC46> Fixed Direct Access SCSI-5 device
da1: 300.000MB/s transfers
da1: Command Queueing enabled
da1: 476940MB (976773168 512 byte sectors: 255H 63S/T 60801C)

by cougar at July 21, 2011 01:10 PM

Java won't run

Greetings!

I've had this problem for sometime, when I try to run java, javavm. It won't do it on some users I got then it will show:
Code:

java: error: no suitable JavaVMs found
While if I do it from either root or wheel users it works just fine.

And I have set the permission to +rx on java for "Others".

by Stringer at July 21, 2011 12:15 PM

Relink network daemons with libparanoia.

I installed FreeBSD 8.2 to test different solutions. I would check now the library named security/libparanoia. I know that it can be used in two ways. Relink critical applications with -lparanoia -L/usr/local/lib or override standard functions in libc (using libparanoia/copy-to-libc shell script). As directed in port description. libparanoia seems to be old, but as I wrote, I would like test it. The problem is, that, I do not know how to relink daemons. Maybe function, which are included in libparanoia are already available in FreeBSD?

# ln -lparanoia -L/usr/local/lib network_daemon_path_here?
# ln -lparanoia network_daemon_path_here?

by breath at July 21, 2011 11:29 AM

[Solved] FreeBSD 7.4 fetching 651 patches

Hi,

im kind of new to FreeBSD... so maybe its a stupid question.. but... since im trying to run a secure system Im kind of sensitive to this kind of things...

I've installed FreeBSD 7.4 about a week ago, had fetched portsnaps and updated them at least once...

Today I did again fetched ports and saw, that in that one weeks time 651 patches have been commited...

So Im asking myself... is my proxy being hacked, am I doing something wrong, or is it normal?

Thanks in advance!

kriscom

by kriscom at July 21, 2011 10:58 AM

secure linprocfs inside a Jail

Hi there,

It is possible like for procfs to secure mount linprocfs inside a jail?
Currently I'm playing again with Debian kFreeBSD inside jails. Debian mounts linprocfs on /proc and applications like PostgreSQL 9 needs them.

by minimike at July 21, 2011 10:36 AM

find files older than 10 min - script/cmd problem

Hi guys,

Working on a 8.1-PRERELEASE and having problems with 1 find cmd:
Code:

find /path/ro/folder -type d -depth 1 -mmin -10
The idea of the script is that if there are files older that 10 min, a rsync is started, else the script just exists. It will be run from crontab every 10 min.

The problem is that if I create a file in that dir, the find cmd will not discover it. I;ve been hitting my head against the wall since yesterday and I also tried -atime, -mtime, with several combinations of days, hours, minutes but couldn't find a proper option to use.

Can anyone lend a hand here ?

by da1 at July 21, 2011 10:14 AM

find files older than 10 min - script/cmd problem

Hi guys,

Working on a 8.1-PRERELEASE and having problems with 1 find cmd:
Code:

find /path/ro/folder -type d -depth 1 -mmin -10
The idea of the script is that if there are files older that 10 min, a rsync is started, else the script just exists. It will be run from crontab every 10 min.

The problem is that if I create a file in that dir, the find cmd will not discover it. I;ve been hitting my head against the wall since yesterday and I also tried -atime, -mtime, with several combinations of days, hours, minutes but couldn't find a proper option to use.

Can anyone lend a hand here ?

by da1 at July 21, 2011 10:13 AM

High memory utilization by BIND

I am running a Resolver running BIND 9.6.2-P2 on FreeBSD 7.1. During peak traffic, this resolver is servicing ~300Kqueries/minute. The resolver is configured to allow 200tcp clients and 10000 recursive clients simultaneously. The max-cache-size limit has not been configured.

The memory utilization on the resolver keeps increasing steadily and in stepped pattern. Recently it shot up to 80% of the total RAM of 24GB. In order to retain the normal functioning, named had to be restarted. Memory utilization by named is around 7K MB and shown as under:
Code:

  PID USERNAME  THR PRI NICE  SIZE    RES STATE  C  TIME  WCPU COMMAND
37295 bind        1  4    0  7534M  6080M kqread f  77.3H 39.79% named

Can you please advise on what needs to be done to get rid of this high, consistently increasing memory utilization problem? If we limit the max-cache-size, will it reduced?

Thanks,
Manju

by manju_kalita at July 21, 2011 08:50 AM

ERROR: The filemon module (/dev/filemon) is not loaded

Hi Experts,

I am building something and I am getting following error-

Code:

ERROR: The filemon module (/dev/filemon) is not loaded
Can anyone please guide me to load filemon?


Thanks,
akki

by akashmahakode at July 21, 2011 07:29 AM

Unable to mount linprocfs on CURRENT

Hi there,

I've tried to setup a Debian kFreeBSD Jail using debootstrap from Ports. My Testbox has got FreeBSD 9 CURRENT installed. ZFS v28 Hyperpower Yeah ;)

My Problem is that I couldn't mount linprocfs currently

Code:

freebsd-one# mount -t linprocfs linproc /services/pgsql-one/proc/
mount: linproc : Operation not supported by device

The linux module is already loaded
Code:

1  16 0xffffffff80200000 b58e80  kernel
 2    1 0xffffffff80d59000 212c48  zfs.ko
 3    2 0xffffffff80f6c000 7200    opensolaris.ko
 4    1 0xffffffff81012000 4ee8    fdescfs.ko
 5    1 0xffffffff81017000 28efb    linux.ko

Is that a known Bug?

by minimike at July 21, 2011 04:23 AM

FTP server being hacked

i noticed in my log that my ftp is getting hacked. thousands of unsuccessful attempts to connect. All from the same IP. Is there a way to automatically block an IP after like 10 unsuccessfull attempts at logging in? they appear to change the user id on each try.

Thanks!!

by jubutld at July 21, 2011 03:29 AM

My smtp is getting attacked?

I keep seeing the below in my maillog. I assume that they are trying to us my email system tp send spam? None of the domains or anything is "my" stuff.

How can I specifically block domains and IP address (my own blacklist)?

Jul 20 21:43:31 unix1 postfix/smtpd[20344]: timeout after END-OF-MESSAGE from napi.net-flow.com[192.220.126.136]
Jul 20 21:43:32 unix1 postfix/smtpd[20344]: disconnect from napi.net-flow.com[192.220.126.136]
Jul 20 21:44:30 unix1 postfix/qmgr[20260]: 22E187E858: from=<>, size=18088, nrcpt=1 (queue active)
Jul 20 21:44:30 unix1 postfix/qmgr[20260]: 7F9727E85E: from=<>, size=21404, nrcpt=1 (queue active)
Jul 20 21:44:30 unix1 postfix/smtp[20382]: 7F9727E85E: host eforward2.registrar-servers.com[38.101.213.202] said: 450 4.1.1 <honeylocust@blackrimmedmania.info>: Recipient address rejected: unverified address: unknown user: "honeylocust@blackrimmedmania.info" (in reply to RCPT TO command)
Jul 20 21:44:30 unix1 postfix/smtp[20381]: 22E187E858: host eforward2.registrar-servers.com[38.101.213.202] said: 450 4.1.1 <faustian@blackrimmedmania.info>: Recipient address rejected: unverified address: unknown user: "faustian@blackrimmedmania.info" (in reply to RCPT TO command)
Jul 20 21:44:31 unix1 postfix/smtp[20381]: 22E187E858: lost connection with eforward3.registrar-servers.com[205.251.134.191] while receiving the initial server greeting
Jul 20 21:44:31 unix1 postfix/smtp[20381]: 22E187E858: lost connection with eforward1.registrar-servers.com[69.160.33.82] while receiving the initial server greeting
Jul 20 21:44:32 unix1 postfix/smtp[20382]: 7F9727E85E: to=<honeylocust@blackrimmedmania.info>, relay=eforward3.registrar-servers.com[205.251.134.191]:25, delay=166867, delays=166865/0.01/2.4/0.14, dsn=4.1.1, status=deferred (host eforward3.registrar-servers.com[205.251.134.191] said: 450 4.1.1 <honeylocust@blackrimmedmania.info>: Recipient address rejected: unverified address: unknown user: "honeylocust@blackrimmedmania.info" (in reply to RCPT TO command))
Jul 20 21:44:38 unix1 postfix/smtp[20381]: 22E187E858: to=<faustian@blackrimmedmania.info>, relay=eforward4.registrar-servers.com[199.204.19.103]:25, delay=170048, delays=170040/0.01/8.1/0.08, dsn=4.1.1, status=deferred (host eforward4.registrar-servers.com[199.204.19.103] said: 450 4.1.1 <faustian@blackrimmedmania.info>: Recipient address rejected: unverified address: unknown user: "faustian@blackrimmedmania.info" (in reply to RCPT TO command))

by jubutld at July 21, 2011 03:22 AM

Bandwidth Utilization Monitoring

Hi,

I'm attempting to use systat -ifstat to monitor total bandwidth utilization since uptime. It appears to rollover totals to 0 after 4GB or so. Is this a design "feature" or a datatype limitation? Either way, is there any way this can be fixed so that it never rolls over after startup?

by jperalta at July 21, 2011 02:00 AM

July 20, 2011

FreeBSD forums

Intel Modular Server drivers

I'm looking for drivers to install FreeBSD on Intel's Modular Server. Intel supports Linux but does not support FreeBSD and suggests going to FreeBSD Org for such drivers/guidance. Anyone have experience in this regard? I've noticed vendors marketing the Modular Server with FreeBSD as the OS so it is currently available; the question is who/where.

by FSoskel at July 20, 2011 10:39 PM

Building and distributing packages from ports

Hi there

Today I thought about to install tinderbox from ports inside a jail. But I've read "no longer functional in the current infrastructure" about this port.

So for building, packaging and distributing software for jails and servers is tinderbox still a solution? Or is tinderbox deprecated now? Is an alternative available?
I'm using FreeBSD 9 CURRENT now because yesterday the codefreeze has begun.
FreeBSD almost does not ship packages that I could use directly like Apache, PostgreSQL, JAVA. All these needs features like MIT Kerberos or AJP for Apache an no X

cheers
Darko

by minimike at July 20, 2011 08:44 PM

Further diagnosis of ld-elf issues with lightspark

This isn't a support request on a current port, but I didn't know where else to ask...

I cloned the lightspark-devel port and have been tweaking it to successfully build the 0.5-rc version. Hoping to make small steps of progress, I've been testing only the CLI utility. (Hopefully cutting down on complexity introduced by the browser plugin) At this point the lightspark binary is segfaulting inside ld-elf.so. I've done some debugging of this issue but I was wondering if there were any suggestions for documentation or other resources I should pursue to continue diagnosing the problem.

Here's a little more detail on the steps I took to arrive at this point:
1. Worked to get lightspark 0.5-rc to build outside of ports. There were a few changes to the source needed in addition to the patches supplied by the port.
2. Discovered the libmap settings needed to get lightspark to link to the proper gcc45 libs at runtime
3. Rebuilt lightspark using my updated port with debugging symbols enabled
4. Temporarily installed an ld-elf.so binary with debugging symbols to help track down the issue

The current backtrace leads to symlook_obj:

Code:

#0  0x280508a3 in symlook_obj (name=0x2adc926f "_ZTVN10__cxxabiv120__si_class_type_infoE", hash=45514101, obj=0x2adc5a00,
 ventry=0x28095860, flags=0) at rtld.c:2804
#1  0x28050cf2 in symlook_list (name=0x2adc926f "_ZTVN10__cxxabiv120__si_class_type_infoE", hash=45514101,
 objlist=Variable "objlist" is not available.) at rtld.c:2717
#2  0x28050ed9 in symlook_default (name=0x2adc926f "_ZTVN10__cxxabiv120__si_class_type_infoE", hash=45514101,
 refobj=0x2adc6800, defobj_out=0xbfbfd948, ventry=0x28095860, flags=0) at rtld.c:2674
#3  0x28051597 in find_symdef (symnum=72, refobj=0x2adc6800, defobj_out=0xbfbfd9a8, flags=0, cache=0x2adcf000) at
 rtld.c:1208
#4  0x2804ec8e in reloc_non_plt (obj=0x2adc6800, obj_rtld=0x2807e6a0) at /usr/src/libexec/rtld-elf/i386/reloc.c:147
#5  0x28051338 in relocate_objects (first=Variable "first" is not available.) at rtld.c:1785
#6  0x28053675 in dlopen (name=0x2b01c18c "/usr/local/lib/lightspark/plugins/liblightsparkpulseplugin.so.old", mode=1)
 at rtld.c:2040
#7  0x280eca3d in std::_Rb_tree<lightspark::tiny_string, std::pair<lightspark::tiny_string const, lightspark::variable>,
 std::_Select1st<std::pair<lightspark::tiny_string const, lightspark::variable> >, std::less<lightspark::tiny_string>,
 std::allocator<std::pair<lightspark::tiny_string const, lightspark::variable> > >::_M_insert_equal_ () from
 /usr/local/lib/lightspark/liblightspark.so.0.5

...OUTPUT CUT...

The obj structure being passed in appears to have some bogus data, at least relating to the other context of the function. If I had to take a wild stab at it, I would guess that it still has to do with stdc++ versions, but my knowledge relating to the topic is frightfully limited.


I appreciate any input you have.

Thanks

by pmooney at July 20, 2011 05:32 PM

Router (as device that forwards data packets) and PF rules.

Greetings, I have one question. Let say, that I have TP-LINK router. Computer with FreeBSD is connected to the router with cable (RJ45). There is also laptop which is using WiFi to connect to the internet. Normally (I mean connection without router) I'm using DHCP to get my IP address from my ISP. When I'm using router, I have three IP address. One visible on the network (IP from ISP) and two set in the router, e.g 192.168.1.10 for computer with FreeBSD and 192.168.1.11 for laptop. But that's obvious.

So, when I'm writing the PF rules, which (IP) should I use/filtering? That from my ISP or that, which is setting in router? Or I should use the address which is assigned to the network interface? Or always use address from my ISP (visible on the Internet)? No matter, if I'm using a router or not?

I noticed, that when I'm using router to internet connection, PF is blocking less packets when I check pfctl(8) utility. Otherwise, when I'm connected to the internet without using a router (with an assigned IP address from my ISP) it is different. PF is blocking much more packets. It is normal behaviour?

On the router there is firewall enabled with some options, like SYN Flood protection. Maybe router firewall filters now all network traffic?

by breath at July 20, 2011 04:30 PM

Help with setting up spamassassin, amavis, and claimav

Hello

I have Postfix, courier_authdaemond, and courier_imap running with virtual email addresses (currently two domains on the server). Email is coming and going fine. I want to implement a spam and anti-virus solution into the mix. Everytime I try (and have tried a couple of different products) I am unable to get postfix to process the mail so I comment out the changes and restart postfix.

Does anyone have a good wiki or instructions (without missing steps) for how to turn on spamassassin, amavis, and claimav (or a better alternative) within this kind of setup?

Thanks

by jubutld at July 20, 2011 03:32 PM

install LAN Card DEC/Intel 21143 and clones 10/100 Ethernet

Sorry if this question already and weak in English.
LAN Card installed, the DEC / Intel 21143 and clones 10/100 Ethernet (quard ports) with the error report.
Code:

dc0: dc_setcfg: failed to force rx to idle state.
dc1: dc_setcfg: failed to force rx to idle state.

Operate on a FreeBSD 8.2 i386 mainboard atom D425KT, LAN card can be installed on a PCI 32bit, pci-X active, mainboard atom D425KT slot Pci only 1 slot@ 32 bit.
Use the ifconfig command to see that appearing macadress = ff: ff: ff: ff: ff: ff on dc0, dc1.
The dc2, dc3 work normally.
Try to disable ACPI, it has the same effect.
Then test deployment on the Windows xp, 7 use a normal 4 port same mainboard.

by preechaaaesanan at July 20, 2011 03:04 PM

automounting K800i via usb

Greetings. I cannot configure automountig of k800's memory stick under freebsd 8.2-release. According do thisthread, there is some issue with power_on delay, which is not enough for SE. After plugging in the phone dmesg says:
Code:

ugen0.2: <Sony Ericsson> at usbus0
cdce0: <Sony Ericsson Device 039 USB Ethernet Emulation (WDM)> on usbus0
ue0: <USB Ethernet> on cdce0
ue0: Ethernet address: ****

Then I choose file transfer mode:
Code:

ugen0.2: <Sony Ericsson> at usbus0 (disconnected)
cdce0: at uhub0, port 5, addr 2 (disconnected)
ugen0.2: <Sony Ericsson> at usbus0
umass0: <Sony Ericsson Memory Stick> on usbus0
umass0:  SCSI over Bulk-Only; quirks = 0x0000
umass0:2:0:-1: Attached to scbus2
umass1: <memory2> on usbus0
umass1:  SCSI over Bulk-Only; quirks = 0x0000
(probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0
(probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error
(probe0:umass-sim0:0:0:0): SCSI status: Check Condition
(probe0:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present)
da0 at umass-sim0 bus 0 scbus2 target 0 lun 0
da0: <Sony Eri Memory Stick 0000> Removable Direct Access SCSI-0 device
da0: 1.000MB/s transfers
da0: Attempt to query device size failed: NOT READY, Medium not present
umass1:3:1:-1: Attached to scbus3
(probe0:umass-sim1:1:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0
(probe0:umass-sim1:1:0:0): CAM status: SCSI Status Error
(probe0:umass-sim1:1:0:0): SCSI status: Check Condition
(probe0:umass-sim1:1:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present)
da1 at umass-sim1 bus 1 scbus3 target 0 lun 0
da1: <Sony Eri Memory Stick 0000> Removable Direct Access SCSI-0 device
da1: 1.000MB/s transfers
da1: Attempt to query device size failed: NOT READY, Medium not present

There is two new devides appears in /dev:
da0 (phone memory)
da1 (memory card)

But there is no partitions shown up, so I cannot manage them. Googling around I've found that partition /dev/da1s1 appears after issuing command # mount /dev/da1 /mnt/usb

Also I've noticed, that I can reset state of usb device, it helps either:
# usbconfig -u 0 -a 2 reset
Code:

da1 at umass-sim1 bus 1 scbus3 target 0 lun 0
da1: <Sony Eri Memory Stick 0000> Removable Direct Access SCSI-0 device
da1: 1.000MB/s transfers
da1: 1950MB (3995273 512 byte sectors: 255H 63S/T 248C)
GEOM: da1: partition 1 does not start on a track boundary.
GEOM: da1: partition 1 does not end on a track boundary.

$ ls /dev/da*
Code:

da0%  da0s1% da1%  da1s1%
When I done that, I can mount both storages using KDE device notifier or Dolphin. How should I configure devd to execute "reset" command automaticaly? Or maybe there is some better solution exists?

by hedgehog at July 20, 2011 09:57 AM

Grub2 has no ZFS support

Hi there

I was wondering me that on a fresh installation after I've installed Grub2 from ports no support about ZFS is available.

Code:

/usr/local/sbin/grub-install --modules="zfs udf2" /dev/da0
breaks because no zfs module here :(

Will there comes somthing about that in the future? Or should I use Grub2 from the project-pages?

by minimike at July 20, 2011 09:47 AM

insert static arp in sorce code "route.c"?

Hello,

I work with a network simulation program with an extra module called OMNeT and oppBSd. In this module the freebsd tcp/ip stack has been implemented.

how and where I can write the mac and IP address of the Destination dierektly in source code "route.c" assign, so that the route initialized without sending an arp query?
In this program one can not enter the mac and ip address by "arp-s", because the simulator happens in a virtual field of OMNeT.

I've been looking for a Documation of the source code in web but not found, can someone please tell me, where can i find such doumentation?

I look forward to your help and thanks in advance!

by yousif at July 20, 2011 09:42 AM

difference between output of portmaster -L and portmaster -na

Hello,

When I do # portmaster -L --index-only | egrep '(ew/ort) version|total install'

The output is this :
Code:

===>>> 706 total installed ports
So I guess there are no updates.

But when I do # portmaster -na then this is the output:
Code:

===>>> The following actions will be taken if you choose to proceed:
        Upgrade bn-freebsd-doc-20110110 to bn-freebsd-doc-20110710
        Install textproc/docproj-jadetex
        Install chinese/docproj
        Install print/latex-cjk
        Install chinese/arphicttf
        Install chinese/ttfm
        Install chinese/ttf2pt1
        Install print/ttf2pt1
        Install print/t1utils
        Install print/dvipdfmx
        Install print/adobe-cmaps
        Install print/libpaper
        Install print/freetype
        Install print/freetype-tools
        Install print/teTeX
        Install print/cm-super
        Install x11-fonts/p5-type1inst
        Install print/dvipsk-tetex
        Install print/xdvik
        Install x11-toolkits/open-motif
        Install graphics/netpbm
        Install graphics/peps
        Install graphics/scr2png
        Install textproc/fixrtf
        Install textproc/html
        Install textproc/html2text
        Install textproc/linuxdoc
        Install textproc/openjade
        Install textproc/opensp
        Install textproc/scr2txt
        Install textproc/xhtml
        Install textproc/xmlcharent
        Install www/links1
        Install www/tidy
        Upgrade da-freebsd-doc-20110110 to da-freebsd-doc-20110710
        Upgrade de-freebsd-doc-20110110 to de-freebsd-doc-20110710
        Upgrade el-freebsd-doc-20110110 to el-freebsd-doc-20110710
        Upgrade en-freebsd-doc-20110110 to en-freebsd-doc-20110710
        Upgrade es-freebsd-doc-20110110 to es-freebsd-doc-20110710
        Upgrade fr-freebsd-doc-20110110 to fr-freebsd-doc-20110710
        Upgrade hu-freebsd-doc-20110110 to hu-freebsd-doc-20110710
        Upgrade it-freebsd-doc-20110110 to it-freebsd-doc-20110710
        Upgrade ja-freebsd-doc-20110110 to ja-freebsd-doc-20110710
        Upgrade mn-freebsd-doc-20110110 to mn-freebsd-doc-20110710
        Upgrade nl-freebsd-doc-20110110 to nl-freebsd-doc-20110710
        Upgrade pl-freebsd-doc-20110110 to pl-freebsd-doc-20110710
        Upgrade pt-freebsd-doc-20110110 to pt-freebsd-doc-20110710
        Upgrade ru-freebsd-doc-20110110 to ru-freebsd-doc-20110710
        Upgrade sr-freebsd-doc-20110110 to sr-freebsd-doc-20110710
        Upgrade tr-freebsd-doc-20110110 to tr-freebsd-doc-20110710
        Upgrade zh_cn-freebsd-doc-20110110 to zh_cn-freebsd-doc-20110710
        Upgrade zh_tw-freebsd-doc-20110110 to zh_tw-freebsd-doc-20110710
        Upgrade nspr-4.8.7 to nspr-4.8.8
        Upgrade nettle-2.1 to nettle-2.2

Now it looks if there are updates.

Can anyone explain me the difference.

Roelof

by roelof at July 20, 2011 09:19 AM

Unable to switch virtual terminals

Hello all,

I am unsure what if anything I have done to disable my ability to switch virtual terminals using alt + f-keys. Is there a setting in the kernel config that may change this such as the SC_PIXEL_MODE option, VESA, or something I may have set in my .cshrc? I am at a loss, becasue I have seen this once I installed X, but never before X has been installed. I am using 8.2 Current.

Any input will be greatly appreciated.

by bsd_convert at July 20, 2011 08:59 AM

tar zfc has problems with too large files

Hi,
I have written a backup script, which creates a tar.gz of a dir.
The dir contains different file types mostly about 10MB all together we have about 60GiB of data.

Now tar should tape this together and compress it then with gzip. The archive gets the date as name and is now parked for about 30 days in an extra backup dir.

So much to theory. The script works properly with GNU/Linux but under FreeBSD there many issues.

I have found now that the issue is a tar issue, the rest of the script works good and the script is even listet in the cron logs.


There was until now only one time where the script worked proberly but until now I couldn't locate any new backups.
When I execute the script manuelly I see how tar is already working but at the end something everytime makes tar to fail.
I know this because the script ends with:
Code:

tar zcvf ${BACKUPDIR}/${DATUM}.tar.gz ${SOURCE} && halt -p
And the server is always on when I come back....

Sry for the awful english, Regards

by bsus at July 20, 2011 08:48 AM

error building graphics/kipi-plugins-kde4

Hi.

I'm having trouble building graphics/kipi-plugins-kde4 on 8.1:

Code:

Scanning dependencies of target dngvalidate
[ 59%] Building CXX object dngconverter/test/CMakeFiles/dngvalidate.dir/dngvalidate_automoc.o
[ 59%] Building CXX object dngconverter/test/CMakeFiles/dngvalidate.dir/__/dngwriter/extra/xmp_sdk/common/XML_Node.o
In file included from /usr/ports/graphics/kipi-plugins-kde4/work/kipi-plugins-1.9.0/common/libkipiplugins/tools/kpaboutdata.cpp:24:
/usr/ports/graphics/kipi-plugins-kde4/work/kipi-plugins-1.9.0/common/libkipiplugins/tools/kpaboutdata.h:43: error: expected ',' or '...' before '&' token
/usr/ports/graphics/kipi-plugins-kde4/work/kipi-plugins-1.9.0/common/libkipiplugins/tools/kpaboutdata.h:47: error: ISO C++ forbids declaration of 'KLocalizedString' with no type
In file included from /usr/ports/graphics/kipi-plugins-kde4/work/kipi-plugins-1.9.0/common/libkipiplugins/tools/kpaboutdata.cpp:35:
/usr/ports/graphics/kipi-plugins-kde4/work/kipi-plugins-1.9.0/common/libkipiplugins/pluginsversion.h:45: error: 'KLocalizedString' does not name a type
/usr/ports/graphics/kipi-plugins-kde4/work/kipi-plugins-1.9.0/common/libkipiplugins/tools/kpaboutdata.cpp:40: error: expected ',' or '...' before '&' token
/usr/ports/graphics/kipi-plugins-kde4/work/kipi-plugins-1.9.0/common/libkipiplugins/tools/kpaboutdata.cpp:44: error: ISO C++ forbids declaration of 'KLocalizedString' with no type
/usr/ports/graphics/kipi-plugins-kde4/work/kipi-plugins-1.9.0/common/libkipiplugins/tools/kpaboutdata.cpp: In constructor 'KIPIPlugins::KPAboutData::KPAboutData(int)':
/usr/ports/graphics/kipi-plugins-kde4/work/kipi-plugins-1.9.0/common/libkipiplugins/tools/kpaboutdata.cpp:45: error: invalid conversion from 'const char*' to 'int'
/usr/ports/graphics/kipi-plugins-kde4/work/kipi-plugins-1.9.0/common/libkipiplugins/tools/kpaboutdata.cpp:45: error:  initializing argument 1 of 'QMemArray<type>::QMemArray(int) [with type = char]'
/usr/ports/graphics/kipi-plugins-kde4/work/kipi-plugins-1.9.0/common/libkipiplugins/tools/kpaboutdata.cpp:47: error: 'pluginName' was not declared in this scope
/usr/ports/graphics/kipi-plugins-kde4/work/kipi-plugins-1.9.0/common/libkipiplugins/tools/kpaboutdata.cpp:48: error: 'const class QString' has no member named 'toAscii'
/usr/ports/graphics/kipi-plugins-kde4/work/kipi-plugins-1.9.0/common/libkipiplugins/tools/kpaboutdata.cpp:49: error: 'KLocalizedString' cannot be used as a function
/usr/ports/graphics/kipi-plugins-kde4/work/kipi-plugins-1.9.0/common/libkipiplugins/tools/kpaboutdata.cpp:50: error: 'licenseType' was not declared in this scope
/usr/ports/graphics/kipi-plugins-kde4/work/kipi-plugins-1.9.0/common/libkipiplugins/tools/kpaboutdata.cpp:52: error: 'pluginDescription' was not declared in this scope
/usr/ports/graphics/kipi-plugins-kde4/work/kipi-plugins-1.9.0/common/libkipiplugins/tools/kpaboutdata.cpp:53: error: invalid conversion from 'const char*' to 'int'
/usr/ports/graphics/kipi-plugins-kde4/work/kipi-plugins-1.9.0/common/libkipiplugins/tools/kpaboutdata.cpp:53: error:  initializing argument 1 of 'QMemArray<type>::QMemArray(int) [with type = char]'
/usr/ports/graphics/kipi-plugins-kde4/work/kipi-plugins-1.9.0/common/libkipiplugins/tools/kpaboutdata.cpp:55: error: 'hasMainComponent' is not a member of 'KGlobal'
/usr/ports/graphics/kipi-plugins-kde4/work/kipi-plugins-1.9.0/common/libkipiplugins/tools/kpaboutdata.cpp:58: error: 'locate' is not a member of 'KStandardDirs'
/usr/ports/graphics/kipi-plugins-kde4/work/kipi-plugins-1.9.0/common/libkipiplugins/tools/kpaboutdata.cpp:68: error: expected `;' before 'shortDesc'
/usr/ports/graphics/kipi-plugins-kde4/work/kipi-plugins-1.9.0/common/libkipiplugins/tools/kpaboutdata.cpp:70: error: 'hasMainComponent' is not a member of 'KGlobal'
/usr/ports/graphics/kipi-plugins-kde4/work/kipi-plugins-1.9.0/common/libkipiplugins/tools/kpaboutdata.cpp:72: error: 'kDebug' was not declared in this scope
/usr/ports/graphics/kipi-plugins-kde4/work/kipi-plugins-1.9.0/common/libkipiplugins/tools/kpaboutdata.cpp:72: error: 'shortDesc' was not declared in this scope
/usr/ports/graphics/kipi-plugins-kde4/work/kipi-plugins-1.9.0/common/libkipiplugins/tools/kpaboutdata.cpp:76: error: 'shortDesc' was not declared in this scope
*** Error code 1
1 error
*** Error code 2

Any ideas?

With thanks,
Ohle

by ohle at July 20, 2011 08:23 AM

how to pass proxy

Hello guys.

I just start learn freebsd,and i want to ask help.
Is it possible in network whith proxy server create rule for one computer conection to internet without proxy

by Katranus at July 20, 2011 06:35 AM

no connection to gameserver

Hi community,

I am using freebsd 8.2 with the steam port. I installed linux_base-f10 from ports collection, too. Linux procfs is mounted and working. The gameservers are configured with the right ips. These ips are set in the rc.conf and are reachable via other services.

If I start my gameservers (cs and css), there are no errors, so I guess the problem is not to find here. No errors while compiling the ports, too.

Netstat tells me that the gameservers are listening on the defined ips/ports. The only port that is marked as "open" by nmap by an extern pc is 27015 of the css server. If I try to connect or add it to the favorites, it can not be found.

There is no firewall running at the server. Each gameserver has it own ip and they are both listening on port 27015 on their ip.

Ideas what could cause this? Maybe anything related to the linux base?

Regards
Jay

by Jaydabi at July 20, 2011 06:33 AM

New user Need Help

Hello Dear FreeBSD Guru's ~ I Glad To Be Here ~ I'm New Unix User FreeBSD I Tried For one week in virtualbox but now i want to install FreeBSD to be as default desktop on my laptop
i use Linux two year's ago , ubuntu , debian , fedora , slackware ,

but one thing i want to know about it can i install openbox ? or old gnome (Gnome2 Not Gnome3) Can any One Give Some Links Before That ~ Also Can I Programming Under GPL Licenses ?
Using FreeBSD ~ & My English Is Not Good Much For Give Me ~ :)

by CodeMonkey at July 20, 2011 03:43 AM

So I installed FreeBSD 8.2... now what? (noob questions)

I downloaded the FreeBSD 8.2 release for i386 and successfully installed it on my Dell desktop. So here are my noob questions...
  1. I thought there was a GUI? My install is all command prompt.
  2. If there is a GUI, how do I install it?
  3. How can get from the $ prompt to the # prompt and what is the difference?

I'm sure I'll think of more questions later. Thanks.

by sysop1911 at July 20, 2011 03:00 AM

How to config the xorg

hi guys,
i'm a newbie on FreeBSD.
my laptop is thinkpad x201i, i follow the handbook, have install FreeBSD
8.2 on it.
i find there must be some problem on the Xorg or the video card driver.

the problemes are:
1, on the firefox, when i look a long page, the page's slippage is very lag
2, use the mplayer play just a small resolving capability film, not 720p or 1080p, the mplayer will show "system slow to play"

and the X's cpu% is always high,especially make a big software int a xterm.

please help me,
which video card driver should i download and how config the xorg.

thx :e

by cnxhm at July 20, 2011 02:16 AM

Power consumption of freeBSD vs other OS

Just wanted to find out other people's impressions of the power consumption/power efficiency of computers running FreeBSD vs other OSes. Based on my limited testing(possibly flawed), my impressions is that FreeBSD has ended up not faring so well vs Windows7 and Ubuntu, and wanted to see if other people have experience the same or suggest any tweaks I can make.

Built a rig with following components:
  • Intel G620 CPU (Sandybridge)
  • Intel DH67GD motherboard
  • 2 x 2gb Kingston RAM
  • Seasonic 330W power supply

The above setup is running headless, so no keyboards/mice/display devices are connected. For testing purposes, no HDDs are connected internally(to be used for RAID later)

I tested with the following OSes:
  1. FreeNAS 8 (based off FreeBSD 8), with powerd running - 31W
  2. FreeNAS 7 (based off FreeBSD 7), with powerd running - 31W
  3. Windows 7 Ultimate - 23W
  4. Ubuntu Desktop 10.04 - 28W(with display/keyboard/mouse connected). Believe this is <25W with the peripherals disconnected.

I realise that FreeNAS is only a derivative of FreeBSD and haven't tested with the latest version of vanilla FreeBSD yet,but I reckon it'll still be similar to the figures I'm getting with FreeNAS.

Is FreeBSD just known as not so power efficient? I would have assumed that it would be better than a bloated beast like Win7....

Would appreciate any thoughts.

by ghostdunks at July 20, 2011 01:35 AM

Can't install Amarok or gimp

Code:

portmaster /usr/ports/audio/amarok
.
.
.
===>>> Launching child to install graphics/graphviz
        audio/amarok >> audio/libnjb >> devel/doxygen >> graphics/graphviz

===>>> Port directory: /usr/ports/graphics/graphviz

        ===>>> This port is marked IGNORE
        ===>>> option WITH_GTK is required for option WITH_SMYRNA

        ===>>> If you are sure you can build it, remove the
              IGNORE line in the Makefile and try again.

===>>> Update for graphics/graphviz failed
===>>> Aborting update

===>>> Update for devel/doxygen failed
===>>> Aborting update

===>>> Update for audio/libnjb failed
===>>> Aborting update

Terminated


portmaster /usr/ports/graphics/gimp
.
.
.
===>>> Continuing initial dependency check for graphics/gimp-app
===>>> Launching child to install graphics/gegl
        graphics/gimp >> graphics/gimp-app >> graphics/gegl

===>>> Port directory: /usr/ports/graphics/gegl

        ===>>> This port is marked BROKEN
        ===>>> ffmpeg support is currently broken

        ===>>> If you are sure you can build it, remove the
              BROKEN line in the Makefile and try again.

===>>> Update for graphics/gegl failed
===>>> Aborting update

===>>> Update for graphics/gimp-app failed
===>>> Aborting update

Terminated

What gives? No one is using Amarok or gimp? How can I get these programs to install?

by SeaHag at July 20, 2011 12:22 AM

HP Envy 3D Xorg -configure fails

I have an HP Envy 3D laptop with FreeBSD 8.2-Release and Xort 7.5 from the AMD64 DVD.

I cannot start X - I get a core dump.

Any ideas?

tomdean

As root:

Code:

> Xorg -configure

X.Org X Server 1.7.5
Release Date: 2010-02-16
X Protocol Version 11, Revision 0
Build Operating System: FreeBSD 8.0-RELEASE-p2 amd64
Current Operating System: FreeBSD envy.tddhome 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Thu Feb 17 02:41:51 UTC 2011
    root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
Build Date: 20 January 2011  04:12:15PM
 
Current version of pixman: 0.18.4
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Wed Jul 20 05:02:48 2011
List of video drivers:
        ati
        radeon
        intel
        mach64
        nv
        openchrome
        r128
        radeonhd
        fbdev
        vesa
(++) Using config file: "/root/xorg.conf.new"
(EE) LoadModule: Module fbdevhw does not have a fbdevhwModuleData data object.
(EE) Failed to load module "fbdevhw" (invalid module, 0)
Number of created screens does not match number of detected devices.
  Configuration failed.

But, xorg.conf.new was created.

Code:

> Xorg -config xorg.conf.new
X.Org X Server 1.7.5
Release Date: 2010-02-16
X Protocol Version 11, Revision 0
Build Operating System: FreeBSD 8.0-RELEASE-p2 amd64
Current Operating System: FreeBSD envy.tddhome 8.2-RELEASE FreeBSD 8.2-RELEASE #0: Thu Feb 17 02:41:51 UTC 2011
    root@mason.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC amd64
Build Date: 20 January 2011  04:12:15PM
 
Current version of pixman: 0.18.4
        Before reporting problems, check http://wiki.x.org
        to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
        (++) from command line, (!!) notice, (II) informational,
        (WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.0.log", Time: Wed Jul 20 05:01:29 2011
(++) Using config file: "xorg.conf.new"
(EE) LoadModule: Module fbdevhw does not have a fbdevhwModuleData data object.
(EE) Failed to load module "fbdevhw" (invalid module, 0)
  XRANDR name: DVI-0
  Connector: DVI-I
  CRT1: INTERNAL_KLDSCP_DAC1
  DFP1: INTERNAL_KLDSCP_TMDS1
  DDC reg: 0x64
Unhandled monitor type 0
finished output detect: 0
(EE) RADEON(0): No connected devices found!
finished all detect
(EE) RADEON(0): Using CRT default
failed to set mtrr: No space left on device
Segmentation fault: 11 at address 0x0

Fatal server error:
Caught signal 11 (Segmentation fault: 11). Server aborting


Please consult the The X.Org Foundation support
        at http://wiki.x.org
 for help.
Please also check the log file at "/var/log/Xorg.0.log" for additional information.

Abort (core dumped)

by tomdean at July 20, 2011 12:08 AM

July 19, 2011

FreeBSD forums

Installing FreeBSD from cd troubles

I downloaded the FreeBSD*disc1.iso, burned it, and booted my Mac Book Pro 7,1 with it. When I got to the partition step of the installation, the cd couldn't find my hard drive. It said to check the "FreeBSD 8.2-RELEASE Hardware Notes" for tips. Where would that document list which hard drives FreeBSD would support and how would I find out what hard drive I have?

by JoshuaBranson at July 19, 2011 08:53 PM

Perl dependant ports upgrade/install

i've upgraded perl version to 5.14 using the instructions given in /usr/ports/UPDATING
Code:

    0) Fix pkgdb.db (for safety):
        pkgdb -Ff

    1) Reinstall new version of Perl (5.14):
        env DISABLE_CONFLICTS=1 portupgrade -o lang/perl5.14 -f perl-5.12.\*

    2) Reinstall everything that depends on Perl:
        portupgrade -fr perl

(it should announce that there'll be a lot of compiling)

but since, everytime i intend to install a package it tries to install perl5.12, no matter that i have
Code:

PERL_VERSION=5.14.1
in /etc/make.conf! Is there a way to use consistently the last perl version without having to compile everything? (almost 6k ports depend on perl)

by alvaro at July 19, 2011 07:36 PM

help installing java

Ok, I downloaded the linux version of java, it was the self-extracting binary, and I tried to run it. I ended up getting this error:
Code:

SIRIUS# ./jre-6u26-linux-i586.bin
Unpacking...
Checksumming...
Extracting...
ELF binary type "0" not known.
./install.sfx.39694: 1: Syntax error: "(" unexpected
Failed to extract the files.  Please refer to the Troubleshooting section of
the Installation Instructions on the download page for more information.

Can anyone please tell me if I am doing something wrong? Thanks in advance.

by hounddowg1 at July 19, 2011 07:31 PM

carp fails when firewall enabled

I have carp and pfsync working flawless on two 8.2 machines, each with two network interfaces and configured as firewalls/routers.

It works perfectly AS LONG AS BOTH MACHINES BOOT WITH FIREWALL SET TO "OPEN". (My kernel was built WITHOUT IPFIREWALL_DEFAULT_TO_ACCEPT so default is to deny).

The problem occurs as soon as I turn on the default "SIMPLE" firewall on the master (and leave the backup machine's firewall "OPEN"). At that point, the backup machine thinks it is the master and takes charge even though the master is still running. Moreover, the master still thinks it's in charge, so I now have two competing masters which obviously doesn't work.

To summarise: turning on the "SIMPLE" firewall (which works as expected otherwise) on the master blocks the carp protocol somehow. Of course, I have tried adding all manner of rules to my rc.firewall to enable carp/pfsync, but none of these have any effect:

Code:

${fwcmd} add pass carp from any to any
${fwcmd} add pass carp from any to any setup
${fwcmd} add pass carp from any to any established
${fwcmd} add pass carp from any to any keep-state
${fwcmd} add pass pfsync from any to any
${fwcmd} add pass pfsync from any to any setup
${fwcmd} add pass pfsync from any to any established
${fwcmd} add pass pfsync from any to any keep-state

The TRULY WEIRD thing is that carp remains wedged on both machines even after I explictly reset the master's firewall to "OPEN", as in:

sh /etc/rc.firewall open >&/dev/null

The only way to get them back to their original working state is to reboot the master (again, configured to come up with the firewall enabled but "OPEN").

Has anyone gotten carp to work with the firewall(s) enabled?

Stumped.

Thanks,

Rick

by rtt010567 at July 19, 2011 05:59 PM

Install 8.2 on Intel MatrixRaid0

I have not used RAID.

I have a 64-bit laptop with windows 7 and RAID0.

I plan to remove windows and install FreeBSD 8.2-Release.

The laptop has a dual disk, 600GB each, windows 7, RAID0

I booted the 8.2-release AMD-64 DVD,
From pciconf -lv
Code:

atapci0@pci0:0:31:2: class 0x010400 card=0x159b103c chip=0x282a8086 rev=0x05 hdr-0x00
  class = mass storage
  cubclass = RAID

From sysinstall, Standard Install, I see disks ad4(600G), ad6(600G), and, ar0(raid0)

I want to use ataraid.

which disk to I install to?

tomdean

by tomdean at July 19, 2011 05:54 PM

How to block a website?

I have FreeBSD as a router with natd/ipfw. That works wonderfully, but would like to block some websites on the network layer.

What is the easiest way to block a website?

I tried this, but didn't work:
Code:

ipfw add deny tcp from any to badwebsite.com

Some sites have multiply ips, so add them manually for each one.

by feralape at July 19, 2011 04:58 PM

Jails - How can I install succesfully packages over Ports?

Hi, I used the handbook to create some jails. On one I want to set up a FAMP server.

Unforunatly there are still problems installing software. I changed under /etc/fstab the mode for the jails from ro to rw so that I can edit/create/remove things. Now I still need a internet connection or better the jail needs access to the internet to get the required packages.

Code:

famp# cd /usr/ports/shells/bash
famp# make install clean
===>  Vulnerability check disabled, database not found
===>  License check disabled, port has not defined LICENSE
=> bash-4.1.tar.gz doesn't seem to exist in /usr/ports/distfiles/bash.
=> Attempting to fetch http://ftp.gnu.org/gnu/bash/bash-4.1.tar.gz
fetch: http://ftp.gnu.org/gnu/bash/bash-4.1.tar.gz: No address record
=> Attempting to fetch ftp://ftp.gnu.org/gnu/bash/bash-4.1.tar.gz
fetch: ftp://ftp.gnu.org/gnu/bash/bash-4.1.tar.gz: No address record
=> Attempting to fetch http://www.gtlib.cc.gatech.edu/pub/gnu/gnu/bash/bash-4.1.tar.gz
fetch: http://www.gtlib.cc.gatech.edu/pub/gnu/gnu/bash/bash-4.1.tar.gz: No address record
=> Attempting to fetch http://mirrors.usc.edu/pub/gnu/bash/bash-4.1.tar.gz
fetch: http://mirrors.usc.edu/pub/gnu/bash/bash-4.1.tar.gz: No address record
=> Attempting to fetch ftp://ftp.kddlabs.co.jp/GNU/bash/bash-4.1.tar.gz
fetch: ftp://ftp.kddlabs.co.jp/GNU/bash/bash-4.1.tar.gz: No address record
=> Attempting to fetch ftp://ftp.dti.ad.jp/pub/GNU/bash/bash-4.1.tar.gz
fetch: ftp://ftp.dti.ad.jp/pub/GNU/bash/bash-4.1.tar.gz: No address record
=> Attempting to fetch http://ring.nict.go.jp/archives/GNU/bash/bash-4.1.tar.gz
fetch: http://ring.nict.go.jp/archives/GNU/bash/bash-4.1.tar.gz: No address record
=> Attempting to fetch http://ring.riken.jp/archives/GNU/bash/bash-4.1.tar.gz
fetch: http://ring.riken.jp/archives/GNU/bash/bash-4.1.tar.gz: No address record
=> Attempting to fetch ftp://ftp.mirrorservice.org/sites/ftp.gnu.org/gnu/bash/bash-4.1.tar.gz
fetch: ftp://ftp.mirrorservice.org/sites/ftp.gnu.org/gnu/bash/bash-4.1.tar.gz: No address record
=> Attempting to fetch ftp://ftp.sunsite.org.uk/package/gnu/bash/bash-4.1.tar.gz
fetch: ftp://ftp.sunsite.org.uk/package/gnu/bash/bash-4.1.tar.gz: No address record
=> Attempting to fetch ftp://ftp.informatik.hu-berlin.de/pub/gnu/gnu/bash/bash-4.1.tar.gz
fetch: ftp://ftp.informatik.hu-berlin.de/pub/gnu/gnu/bash/bash-4.1.tar.gz: No address record
=> Attempting to fetch ftp://ftp.informatik.rwth-aachen.de/pub/mirror/ftp.gnu.org/pub/gnu/bash/bash-4.1.tar.gz
fetch: ftp://ftp.informatik.rwth-aachen.de/pub/mirror/ftp.gnu.org/pub/gnu/bash/bash-4.1.tar.gz: No address record
=> Attempting to fetch http://ftp.funet.fi/pub/gnu/prep/bash/bash-4.1.tar.gz
fetch: http://ftp.funet.fi/pub/gnu/prep/bash/bash-4.1.tar.gz: No address record
=> Attempting to fetch ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/bash/bash-4.1.tar.gz
fetch: ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/bash/bash-4.1.tar.gz: No address record
=> Couldn't fetch it - please try to retrieve this
=> port manually into /usr/ports/distfiles/bash and try again.
*** Error code 1

Stop in /usr/ports/shells/bash.
famp# ping -c4 www.freebsd.org
ping: cannot resolve www.freebsd.org: Host name lookup failure

by bsus at July 19, 2011 04:50 PM

Asus Woes

Hello,

I am just about fed up with my current laptop.

Well, it was bought while I was still using some penguins, so I did not check for compatibility with FreeBSD. Performance is good, the components are reasonably changeable without resorting to taking brute force to the casing. But what gets me is that it will not suspend. It is an Asus F8P running amd64 8.2-STABLE. I tried GENERIC, no use. The kernel currently in use is build with as many parts as modules as I see possible, so there are no USB, ethernet or other components loaded. I will add the list of modules to this post. But even then the ***** thing will not even resume when booted to single user and sent to sleep right away. In multi user mode it does also not resume. Doing a suspend_bounce reveals nothing.

And did I mention that there is no new BIOS for this and that the ACPI code exhibits a great potential for improvement, so to speak?

So I currently have these options:
- live with it (frustrating)
- ask someone here if the F8P needs some sort of wand-weaving (this thread)
- work up my temper to a point where I set up a bounty for working suspend-to-disc (that point is approaching pretty fast)

I would think that a working suspend-to-disc would benefit the most users. And knowing the state of the BIOS I would not be too disappointed when nobody has this machine behaving as wanted.

Kernel Module List:
Code:

Id Refs Address            Size    Name
 1  123 0xffffffff80100000 743248  kernel (/boot/kernel/kernel)
        Contains modules:
                Id Name
                173 newreno
                170 if_lo
                206 elf32
                161 elf64
                162 shell
                147 pseudofs
                174 mld
                172 igmp
                171 if_vlan
                165 sysvmsg
                166 sysvsem
                168 sem
                167 sysvshm
                178 nfsserver
                180 nfslockd
                175 nfs_common
                181 krpc
                179 nfssvc
                182 ufs
                146 procfs
                177 nfs
                145 msdosfs
                144 devfs
                160 cd9660
                100 ata
                155 g_part_gpt
                154 g_part_ebr
                153 g_part_bsd
                156 g_part_mbr
                216 nexus/qpi
                215 qpi/pcib
                214 isa/atdma
                213 acpi/atdma
                212 legacy/isa
                121 pci/ata_netcell
                120 pci/ata_national
                211 isa/attimer
                210 acpi/attimer
                209 isa/atrtc
                208 acpi/atrtc
                119 pci/ata_micron
                118 pci/ata_marvell
                117 pci/ata_jmicron
                116 pci/ata_ite
                115 pci/ata_intel
                114 pci/ata_highpoint
                113 pci/ata_cyrix
                205 isa/vga
                204 vgapci/vgapm
                112 pci/ata_cypress
                203 isa/sc
                202 vgapm/scpm
                201 scrndr-vga
                200 scterm-scteken
                199 io
                198 vesa
                111 pci/ata_cenatek
                110 pci/ata_ati
                109 pci/ata_amd
                197 atkbdc/psm
                196 isa/psmcpnp
                195 acpi/psmcpnp
                108 pci/ata_adaptec
                194 isa/atkbdc
                193 acpi/atkbdc
                192 atkbdc/atkbd
                107 pci/ata_ali
                191 legacy/pcib
                190 isa/pcibus_pnp
                106 pci/ata_acard
                105 pci/ata_ahci
                104 atapci/ata_ahci_ata
                94 cpu/acpi_perf
                103 pci/atapci
                102 atapci/ata
                101 isa/ata
                83 acpi/acpi_button
                93 pci/acpi_pcib
                92 acpi/acpi_pcib
                87 acpi/acpi_hpet
                189 nexus/legacy
                188 legacy/cpu
                85 acpi/cpu
                81 nexus/acpi
                187 pci/ioapic
                186 nexus/apic
                176 nfslock
                185 acpi/fpupnp
                143 watchdog
                82 acpi/acpi_acad
                142 smbus/smb
                91 acpi/acpi_pci_link
                141 random
                99 acpi/acpi_timer
                184 root/nexus_acpi
                140 pci/vgapci
                139 pci/pcib
                138 pcib/pci
                98 cpu/acpi_throttle
                97 acpi/acpi_tz
                163 cpu/cpufreq
                84 acpi/acpi_cmbat
                90 pcib/acpi_pci
                96 acpi/acpi_smbat
                95 acpi/acpi_sysresource
                86 acpi/acpi_ec
                137 pci/isab
                136 pci/ignore_pci
                135 pci/hostb
                134 pci/fixup_pci
                133 null
                132 mem
                89 acpi/acpi_lid
                131 iichb/iicbus
                130 pci/ichsmb
                129 ichsmb/smbus
                159 isa/orm
                88 acpi/acpi_isab
                158 isab/isa
                157 eisab/isa
                128 ata/ad
                219 root/nexus
                218 nexus/ram
                217 isa/sysresource
                127 pci/ata_via
                126 pci/ata_sis
                125 pci/ata_sii
                124 pci/ata_serverworks
                123 pci/ata_promise
                122 pci/ata_nvidia
                148 g_dev
                164 rootbus
                149 g_disk
                152 g_part
                183 g_class
                151 g_label
                150 g_vfs
                169 ether
                207 x86bios
 2    1 0xffffffff80844000 1e6c8    geom_journal.ko (/boot/kernel/geom_journal.ko)
        Contains modules:
                Id Name
                1 g_journal
 3    1 0xffffffff80863000 e658    if_re.ko (/boot/kernel/if_re.ko)
        Contains modules:
                Id Name
                33 pci/re
                32 re/miibus
 4    2 0xffffffff80872000 3f998    miibus.ko (/boot/kernel/miibus.ko)
        Contains modules:
                Id Name
                31 miibus/xmphy
                30 miibus/ukphy
                29 miibus/truephy
                28 miibus/tlphy
                27 miibus/tdkphy
                26 miibus/ruephy
                25 miibus/rlphy
                24 miibus/rgephy
                23 miibus/rdcphy
                22 miibus/qsphy
                21 miibus/pnaphy
                20 miibus/nsphyter
                19 miibus/nsphy
                18 miibus/nsgphy
                17 miibus/mlphy
                16 miibus/lxtphy
                15 miibus/jmphy
                14 miibus/ip1000phy
                13 miibus/inphy
                12 miibus/icsphy
                11 miibus/gentbi
                10 miibus/xlphy
                9 miibus/e1000phy
                8 miibus/ciphy
                7 miibus/brgphy
                6 miibus/bmtphy
                5 miibus/axphy
                4 miibus/atphy
                3 miibus/amphy
                2 miibus/acphy
 5    1 0xffffffff808b2000 250c8    snd_hda.ko (/boot/kernel/snd_hda.ko)
        Contains modules:
                Id Name
                37 pci/snd_hda
                36 hdac/snd_hda_pcm
 6    2 0xffffffff808d8000 75890    sound.ko (/boot/kernel/sound.ko)
        Contains modules:
                Id Name
                35 midi
                34 sound
 7    6 0xffffffff8094e000 48668    usb.ko (/boot/kernel/usb.ko)
        Contains modules:
                Id Name
                47 usbus/uhub
                46 uhub/uhub
                45 uhub/usb_linux
                44 ohci/usbus
                43 uhci/usbus
                42 ehci/usbus
                41 xhci/usbus
                40 at91_udp/usbus
                39 musbotg/usbus
                38 uss820/usbus
 8    1 0xffffffff80997000 5b80    ums.ko (/boot/kernel/ums.ko)
        Contains modules:
                Id Name
                48 uhub/ums
 9    1 0xffffffff8099d000 f920    umass.ko (/boot/kernel/umass.ko)
        Contains modules:
                Id Name
                65 uhub/umass
10    3 0xffffffff809ad000 841b0    cam.ko (/boot/kernel/cam.ko)
        Contains modules:
                Id Name
                49 cam
                57 ses
                56 sa
                55 pt
                54 pass
                50 xpt
                64 pmp
                53 da
                52 ch
                51 cd
                63 ada
                62 aprobe
                61 probe
                60 targ
                59 targbh
                58 sg
11    1 0xffffffff80a32000 f060    aio.ko (/boot/kernel/aio.ko)
        Contains modules:
                Id Name
                66 aio
12    1 0xffffffff80a42000 1fe0    coretemp.ko (/boot/kernel/coretemp.ko)
        Contains modules:
                Id Name
                67 cpu/coretemp
13    1 0xffffffff80a44000 6aa8    acpi_video.ko (/boot/kernel/acpi_video.ko)
        Contains modules:
                Id Name
                68 vgapci/acpi_video
14    1 0xffffffff80a4b000 142c8    ehci.ko (/boot/kernel/ehci.ko)
        Contains modules:
                Id Name
                69 pci/ehci
15    1 0xffffffff80a60000 efd0    uhci.ko (/boot/kernel/uhci.ko)
        Contains modules:
                Id Name
                70 pci/uhci
16    1 0xffffffff80a6f000 110c0    xhci.ko (/boot/kernel/xhci.ko)
        Contains modules:
                Id Name
                71 pci/xhci
17    1 0xffffffff80a81000 104b8    cpufreq.ko (/boot/kernel/cpufreq.ko)
        Contains modules:
                Id Name
                76 cpu/powernow
                75 cpu/p4tcc
                74 cpu/hwpstate
                73 cpu/est
                72 cpu/ichss
18    1 0xffffffff80a92000 1650    dpms.ko (/boot/kernel/dpms.ko)
        Contains modules:
                Id Name
                77 vgapm/dpms
19    1 0xffffffff80a94000 11720    ahci.ko (/boot/kernel/ahci.ko)
        Contains modules:
                Id Name
                80 pci/ahci
                79 atapci/ahci
                78 ahci/ahcich
20    1 0xffffffff80c12000 b830    ipfw.ko (/boot/kernel/ipfw.ko)
        Contains modules:
                Id Name
                220 ipfw
21    1 0xffffffff80c1e000 1de21    linux.ko (/boot/kernel/linux.ko)
        Contains modules:
                Id Name
                221 linuxelf
22    1 0xffffffff80c3c000 649b5    radeon.ko (/boot/kernel/radeon.ko)
        Contains modules:
                Id Name
                225 vgapci/radeon
23    1 0xffffffff80ca1000 11447    drm.ko (/boot/kernel/drm.ko)
        Contains modules:
                Id Name
24    1 0xffffffff80cb3000 7b70    agp.ko (/boot/kernel/agp.ko)
        Contains modules:
                Id Name
                224 hostb/agp_via
                223 vgapci/agp_i810
                222 hostb/agp_amd64

loader.conf:
Code:

hw.acpi.osname="Linux"

snd_hda_load="YES"
geom_journal_load="YES"
aio_load="YES"

acpi_video_load="YES"

coretemp_load="YES"
ehci_load="YES"
uhci_load="YES"
xhci_load="YES"
usb_load="YES"
ums_load="YES"

umass_load="YES"

if_re_load="YES"
cpufreq_load="YES"
dpms_load="YES"
hint.acpi_throttle.0.disabled=1

hint.pcm.0.buffersize=65536
hint.pcm.1.buffersize=65536
hw.snd.feeder_buffersize=65536
hw.snd.latency=7

hw.acpi.reset_video=1
hw.acpi.sleep_delay=2
hw.acpi.verbose=1

debug.acpi.max_threads=1
debug.acpi.resume_beep=1

vfs.usermount="YES"
ahci_load="YES"


/etc/sysctl.conf

Code:

hw.acpi.video.lcd0.brightness=7
hw.pci.do_power_resume=0
hw.syscons.sc_no_suspend_vtswitch=1

by Crivens at July 19, 2011 04:46 PM

with gdm I can't log in

Hello,

I have this enabled in /etc/rc.conf
Code:

gnome_enable="YES"
gdm_enable="YES"
hald_enable="YES"
dbus_enable="YES"

When I rebooted the box gdm shows up but no text-area's where shown so I can't log in.

Anyone a idea how to solve this very annoying problem.
I have a FreeBSD 8.2 64 bit system.

Roelof

by roelof at July 19, 2011 04:39 PM

Postfix with virtual domains - craigslist bouncing

Hello

Craigslist bounces all email from my server. Here is what's in the maillog:

Code:

Jul 19 11:05:14 unix1 postfix/smtp[50790]: 2636E7E856: to=<job-cupta-2502057189@craigslist.org>,
 relay=mxi1p.craigslist.org[208.82.236.161]:25, delay=4.5, delays=0.11/0.01/1.7/2.7, dsn=5.7.1,
 status=bounced (host mxi1p.craigslist.org[208.82.236.161] said: 554 5.7.1 <rrcs-74-###-###-
20.west.biz.rr.com[74.###.75.20]>: Client host rejected:
 Please_use_smtp_relay_of_your_isp_or_setup_non-
 generic_dns.See:_http://www.craigslist.org/about/help/generic_DNS xabd-39 (in reply to RCPT TO command))

Jul 19 11:05:14 unix1 postfix/cleanup[50788]: 9CBEB7E868: message-id=<20110719160514.9CBEB7E868@unix1.butler>

My client host is displaying as <rrcs-74-###-###-20.west.biz.rr.com[74.###.75.20]>. Apparently, Craigslist wants that to reflect the domain name that is sending the email, so something like <mywebsite.com[74.###.75.20]> ??

How can I change that? Below is my main.cf:

Code:

queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
data_directory = /var/db/postfix
mail_owner = postfix
#myhostname = host.domain.tld
#mydomain = domain.tld
#myorigin = $mydomain
unknown_local_recipient_reject_code = 550
mynetworks_style = host
debug_peer_level = 2
debugger_command =
        PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
        ddd $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail
newaliases_path = /usr/bin/newaliases
mailq_path = /usr/bin/mailq
setgid_group = maildrop
html_directory = /usr/share/doc/postfix
manpage_directory = /usr/share/man
sample_directory = /etc/postfix
readme_directory = /usr/share/doc/postfix

virtual_alias_maps = proxy:mysql:/usr/local/etc/postfix/mysql_virtual_alias_maps.cf
virtual_gid_maps = static:125
virtual_mailbox_base = /var/vmail/
virtual_mailbox_domains = proxy:mysql:/usr/local/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_limit = 112400000
virtual_mailbox_maps = proxy:mysql:/usr/local/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_minimum_uid = 125
virtual_transport = virtual
virtual_uid_maps = static:125
alias_maps = mysql:/usr/local/etc/postfix/mysql_virtual_alias_maps.cf

#====================SASL========================
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions =
    permit_mynetworks, 
    permit_sasl_authenticated,
    reject_invalid_hostname,
    reject_non_fqdn_hostname,
    reject_unknown_sender_domain,
    reject_non_fqdn_sender,
    reject_non_fqdn_recipient,
    reject_unknown_recipient_domain,
    reject_unauth_pipelining,
    reject_unauth_destination,
    permit

smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_security_options = noanonymous
smtpd_sasl_application_name = smtpd
smtpd_banner=$myhostname ESMTP "pshelpdesk.com"

smtp_use_tls = yes
smtpd_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_key_file = /etc/ssl/smtpd.pem
smtpd_tls_cert_file = /etc/ssl/smtpd.pem
smtpd_tls_CAfile = /etc/ssl/smtpd.pem
smtpd_tls_loglevel = 3
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom

smtpd_sasl_path = smtpd

by jubutld at July 19, 2011 04:18 PM

[Solved] installworld fails with "touch: not found"

Hello,

i've got a new root-server and installed FreeBSD 8.2-RELEASE on it. Then i want to create a jail, got the source and run make buildworld. All works, until the make installworld. It ends with:
Code:

===> gnu/usr.bin/texinfo/doc (install)
install-info --quiet  --defsection=Miscellaneous  --defentry=  info.info /usr/local/jail/unheiliges//usr/share/info/dir
install-info --quiet  --defsection=Miscellaneous  --defentry=  info-stnd.info /usr/local/jail/unheiliges//usr/share/info/dir
install-info --quiet  --defsection=Miscellaneous  --defentry=  texinfo.info /usr/local/jail/unheiliges//usr/share/info/dir
install -o root -g wheel -m 444  info.info.gz info-stnd.info.gz texinfo.info.gz /usr/local/jail/unheiliges//usr/share/info
===> include (install)
creating osreldate.h from newvers.sh
touch: not found
*** Error code 127

Stop in /usr/src/include.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

I noticed the handbook-section:
http://www.freebsd.org/doc/en_US.ISO...OUCH-NOT-FOUND
But it's hard to boot into single-mode because the server is far away ;) Has somebody an idea to work around this problem?

Greetings from Germany,
Thorny

by Thorny at July 19, 2011 02:57 PM

Invitation for Open Source Project

Hi,
I'm starting a open source project which involves web based Java, JBoss application server and JBoss Seam framework. I'm a student and I work on the project in my free time for training. Every one who want to take a part in this hobby project in his free time is invited.
Send me e-mail.

peter. penzov(at)gmail. com

I will send you development information

Regards
Peter

by rcbandit at July 19, 2011 01:19 PM

top -mio display value at 0

Under 8.2-RELEASE / 8.2-STABLE / 9.0-CURRENT top -mio don't display read / write values
e.g.


Code:

Mem: 143M Active, 203M Inact, 91M Wired, 4836K Cache, 60M Buf, 51M Free
Swap: 2048M Total, 404K Used, 2047M Free

  PID USERNAME  VCSW  IVCSW  READ  WRITE  FAULT  TOTAL PERCENT COMMAND
98029 root          0    178      0      0      0      0  0.00% clang++
97937 root          0    135      0      0      0      0  0.00% clang
98032 root          2      0      0      0      0      0  0.00% top
 1369 root          0      0      0      0      0      0  0.00% sshd
 1221 root          2      0      0      0      0      0  0.00% ntpd
 1364 root          0      0      0      0      0      0  0.00% sshd
 1273 root          0      0      0      0      0      0  0.00% sendmail
95214 root          0      0      0      0      0      0  0.00% make
66506 root          2      0      0      0      0      0  0.00% sshd
44554 root          0      0      0      0      0      0  0.00% sh
 1371 root          0      0      0      0      0      0  0.00% bash
66511 root          0      0      0      0      0      0  0.00% bash
98027 root          0      0      0      0      0      0  0.00% make
97764 root          0      0      0      0      0      0  0.00% gmake
 1801 root          0      0      0      0      0      0  0.00% make
 1284 root          0      0      0      0      0      0  0.00% cron
  969 root          0      0      0      0      0      0  0.00% syslogd
26283 root          0      0      0      0      0      0  0.00% make
 1366 root          0      0      0      0      0      0  0.00% bash

Is it normal, does it need some more option in kernel?

Henri

by hlh at July 19, 2011 12:46 PM

PF on the bridge

hello!
I'm having some problems setting up PF filtering on my bridged interfaces. Basically i have 2 network cards - int_if (connected to my LAN) and ext_if (for wan). i also managed to set up routed vpn server on this machine (interface tun0). Now what i'm struggling with is simple understanding how does the filtering work on the bridge at all - which traffic is IN and OUT for individual interfaces, does PF automatically filter tun0, bridge0 etc? I'm sorry if the question is silly but i'm really confused and could use some help!

by zatoherman at July 19, 2011 12:33 PM

Setting up Email-Server with PostFix

I want to setup mail/postfix server.

I have been reading different tutorials about this, I do have domain. I don't want to setup web-access, but I want that server can be accessed via different email-clients, so is it enough if i follow this tutorial: http://www.purplehat.org/?page_id=4 and I skip apache and php5 parts?

Best Regards

folivora

by folivora at July 19, 2011 12:00 PM

[ZFS] Zpool replace gone south.

Hi there.

First of all, running FreeNAS v.0.7.2, zfs v3, zpool v13.

ZFS raidz1, 6 disks, 6 sata ports, no IDE.

turned off the NAS, replaced old drive with new drive. started it up, and did a "zpool replace guitar ad4.nop ad4"

It started replacing, but i got heaps of I/O errors, and it reset every 30 seconds.

Code:

freenas:~# zpool status
  pool: guitar
 state: DEGRADED
 scrub: scrub stopped after 0h5m with 0 errors on Mon Jul 18 18:56:45 2011
config:

        NAME                      STATE    READ WRITE CKSUM
        guitar                    DEGRADED    0    0    0
          raidz1                  DEGRADED    0    0    0
            replacing              DEGRADED    0    0    0
              ad4.nop              ONLINE      0    0    0
              9203819577564534483  FAULTED      0    0    0  was /dev/ad4.nop
            ad6.nop                ONLINE      0    0    0
            ad8.nop                ONLINE      0    0    0
            ad10.nop              ONLINE      0    0    0
            ad16.nop              ONLINE      0    0    0
            ad18.nop              ONLINE      0    0    0
        spares
          da1                      AVAIL

errors: No known data errors

I removed the new drive, reinserted the old one, and did a zpool export / import - this it looks like the above.

Code:

freenas:~# zpool offline guitar ad4.nop
cannot offline ad4.nop: no valid replicas
freenas:~# zpool replace guitar ad4.nop da1
cannot replace ad4.nop with da1: cannot replace a replacing device
freenas:~# zpool offline guitar 9203819577564534483
cannot offline 9203819577564534483: no valid replicas

How can I stop this replacement? I got a second NAS running to back up my data, but it doesn't let me read more than a fe GB, then the box gets unreachable.

Thanks
Varro

by Varro at July 19, 2011 11:59 AM

Nginx company

Quote:

I have got news for you about nginx.

Recently it became very clear for me that because of increasing popularity
of nginx and the volume of work required to develop the code and doing
support, I really need to put it at another level.

So, I have decided to focus even more on nginx and established nginx
as a company to fully dedicate myself to the project. I am not alone,
there are a few nice people working for me on this. I am focusing on
the development part, and to some extent on the company operations as well.

Our primary goals are improving support and communication for our users,
streamlining the development process, revamping the documentation,
integrating and speeding up pending bugfixes and patches, introducing
long-requested functionality and more.

It should be noted that nginx will remain free, open-source software
under 2-clause BSD license. There will be no shortage of new and
long-awaited features too.

Thank you very much for your ongoing support through all these years.
Without your awareness, feedback and support nginx would not become
that successful. I am really looking forward to see more people who
found nginx useful. I am also very glad we now have a proper way
of doing a lot more for you.

Thanks!

--
Igor Sysoev
http://nginx.org/pipermail/nginx/2011-July/028021.html

by bes at July 19, 2011 08:25 AM

Low Level System Software Engineering Jobs

Greetings,

I'm an avid programmer, and I love (and excel) in low level systems engineering. I'm just wondering what there is to offer out there in the world in this field. I love working with FreeBSD and try my hardest to contribute to the project, I also enjoy working with Linux as well as it's also a fun kernel to work with. Finally there is Windows, which I ONLY enjoy doing driver dev on. When it comes to WinAPI, I get awfully bored.

So, as an 18 year old without any Uni background and little work experience, I'm wondering what perhaps is out there to do? I guess I'm always looking for advice from people with tips on what to do in life, and I never went to the communities I really enjoy (like here). In a perfect world, I would just become an investor, contribute to open source projects, and start my own business (which would involve supercomputing and FreeBSD :)).

Thanks in advance,
Brandon Falk

by falkman at July 19, 2011 04:04 AM

System has nor sdisk space for users

Folks I've installed FreeBSD on a Oracle VM VirtualBox. Everything works except when I try to create files as user it reports no disk space. Creating files as root works fine thou. Is it related to the VM or I did some missconfiguration during the install?

by vfbsilva at July 19, 2011 01:14 AM

X wont start for user "failed to set mtrr: device not configured"

Folks now I'm facing some other issues. After managing to set the X for the user. Now it wont boot. When I invoke startx it crasehs reporting.
"failed to set mtrr: device not configured"
Thou X works fine for root. Ideas?

by vfbsilva at July 19, 2011 01:07 AM

Severe performance problems with ZFS scrub under some conditions

There seems to be a major performance regression in handling of scrub operations on ZFS pools under some conditions. I have 3 servers with identical hardware and 32TB ZFS pools on each. All are running 8-STABLE. Each system performs normal ZFS reads at 500MB/sec or faster - the only thing that is slow is the scrub operation.

One of the systems, 8-STABLE as of this morning, zpool/zfs 4/15, scrubs at the expected rate, 500MB/sec+:
Code:

(0:15) rz1:/data# zpool status
  pool: data
 state: ONLINE
status: The pool is formatted using an older on-disk format.  The pool can
        still be used, but some features are unavailable.
action: Upgrade the pool using 'zpool upgrade'.  Once this is done, the
        pool will no longer be accessible on older software versions.
 scan: scrub in progress since Mon Jul 18 18:04:14 2011
    907G scanned out of 12.4T at 577M/s, 5h47m to go
    0 repaired, 7.16% done
(0:16) rz1:/data# gstat -f twd
dT: 1.008s  w: 1.000s  filter: twd
 L(q)  ops/s    r/s  kBps  ms/r    w/s  kBps  ms/w  %busy Name
    6    626    626  39071    7.4      0      0    0.0  91.5| label/twd0
    5    622    622  39301    7.8      0      0    0.0  91.6| label/twd1
    7    618    618  39233    8.3      0      0    0.0  92.9| label/twd2
    8    606    606  38816    7.6      0      0    0.0  92.6| label/twd3
    5    605    605  39160    7.2      0      0    0.0  91.8| label/twd4
    5    597    597  39623    7.4      0      0    0.0  88.3| label/twd5
    4    600    600  39880    7.8      0      0    0.0  90.3| label/twd6
    4    581    581  39529    8.4      0      0    0.0  90.2| label/twd7
    8    586    586  38798    7.4      0      0    0.0  88.5| label/twd8
    6    609    609  38759    6.7      0      0    0.0  86.9| label/twd9
    9    585    585  38548    8.8      0      0    0.0  92.8| label/twd10
  10    619    619  39183    7.7      0      0    0.0  91.3| label/twd11
    9    602    602  38793    7.8      0      0    0.0  89.8| label/twd12
    9    631    631  38898    7.5      0      0    0.0  90.3| label/twd13
    6    612    612  39084    7.4      0      0    0.0  88.9| label/twd14
    0      0      0      0    0.0      0      0    0.0    0.0| label/twd15

This system is running 8-stable as of this morning, zpool/zfs versions 5/28:
Code:

(0:11) rz2:/data# zpool status
  pool: data
 state: ONLINE
 scan: scrub in progress since Mon Jul 18 11:19:04 2011
    2.22T scanned out of 11.8T at 48.5M/s, 35h32m to go
    0 repaired, 18.79% done
(0:12) rz2:/data# gstat -f twd
dT: 1.022s  w: 1.000s  filter: twd
 L(q)  ops/s    r/s  kBps  ms/r    w/s  kBps  ms/w  %busy Name
    0    97    97  2976  36.8      0      0    0.0  84.0| label/twd0
  10    122    122  3803  72.7      0      0    0.0  100.1| label/twd1
    0    98    98  3005  34.7      0      0    0.0  82.4| label/twd2
    0    114    114  3496  170.5      0      0    0.0  95.7| label/twd3
  10    123    123  3793  129.4      0      0    0.0  99.9| label/twd4
    0    114    114  3453  50.4      0      0    0.0  85.5| label/twd5
    0    115    115  3516  48.5      0      0    0.0  91.2| label/twd6
    0    115    115  3483  69.4      0      0    0.0  90.1| label/twd7
    0    115    115  3485  59.2      0      0    0.0  91.8| label/twd8
    0    115    115  3516  72.4      0      0    0.0  93.9| label/twd9
    0    88    88  2700  36.4      0      0    0.0  80.3| label/twd10
    0    94    94  2880  71.2      0      0    0.0  84.9| label/twd11
    0    91    91  2813  44.3      0      0    0.0  85.6| label/twd12
    0    87    87  2687  31.2      0      0    0.0  78.8| label/twd13
    0    90    90  2781  32.0      0      0    0.0  80.4| label/twd14
    0      0      0      0    0.0      0      0    0.0    0.0| label/twd15

Note that even while that system is scrubbing at under 50MB/sec, with disks 90% busy, I can still read from the pool at a reasonable rate of 250MB/sec or so:
Code:

(0:13) rz2:/data# dd if=test.iso of=/dev/null bs=1m
29902+0 records in
29902+0 records out
31354519552 bytes transferred in 117.035626 secs (267905771 bytes/sec)

A third system is running 8-STABLE from June 6th, and scrubs at the same slow rate as the second system above. In order to rule out any kernel mis-tuning that I might have done, I booted from a mfsBSD ISO (8.2-RELEASE + zfs v28) from March, 2011 and saw the same low performance.

The hardware on each box is dual E5520 CPUs, 48GB RAM, 3Ware 9650SE-16ML with 16 WD2003FYYS drives, exported as individual drives. The OS is on a separate controller / drive - the only thing on the 3Ware/WD2003's is the ZFS pool.

by Terry_Kennedy at July 19, 2011 12:06 AM

July 18, 2011

FreeBSD forums

Files distributed among jails and HA

Hello

I have two computers with 6 jails each, and would need to sync the disks have two servers (jails) and a separate share files between them.

I explain the scenario:

Server 1:
Master Apache | MySQL Maestro | cage 3 | 4 cage | cages 5 | 6 Cage

Server 2:
SLAVE Apache | MySQL Maestro | cage 3 | 4 cage | cages 5 | 6 Cage

If the primary server goes down, the second server to get up apache and mysql service taking over the service, the rest of the cages are still doing their normal use (not in HA).

He had planned to use hast along with carp to the Apache and MySQL, thus synchronizing of the HDD (Where are the jails), but I have a problem, I use a 3-6 jails distributed file system (GFS or similar ) that t two 2TBo mounted HDD in RAID1 /storage.

I've never used hast, only drbd, then do not know if it's too complicated to use and make it into jails. Also unaware that such a system will behave distributed file in a jail with a montage out of these and synchronize data of the 8 jails. Any suggestions or ideas?. thank you very much.

Regards

by SacamantecaS at July 18, 2011 11:01 PM

RAID/Mirroring recommendations

I am looking for ideas and best practices for setting up a new box with redundant disks.
The box is a DELL that has two SATA channels and supports "Adaptec CERC SATA RAID". This is said to work with aac(4).

What I want to be able to do is:
(1) rebuild the mirror set in the event that a disk fails, likely on much larger disks that will be current in 4 years time,
(2) extract the data using some other hardware, in the event that the hardware fails, and
(3) maybe take one of the disks, stuff it in a USB drive shell and connect to to a working system and be able to extract the data.

Now the Adaptec CERC has the main point in its favour that it is built into the BIOS, so configuring and rebuilding an array seems simple. It is also nominally supported by FreeBSD so that's great.

On the minus side:
The 2-way Adaptec CERC is a software-only thing, so presumably aac(4) is doing all the real work in software anyway.
Folks say that the Adaptec drivers are flaky, mainly because Adaptec is very closed with their specs
CERC is built into the BIOS, so moving the drives to other hardware that doesn't handle CERC could result in utter lossage.

If I want to use RAID1/mirroring, what is my best way forward with a software-only solution? aac(4) doesn't feel like a particularly safe bet.

by gardner at July 18, 2011 08:16 PM

FreeBSD on EC2 / PF

Hi All,

I've been trying FreeBSD on EC2 (8.2, t1.micro instance) today and I faced a small problem. I found the solution and just want to share it with you so you will not waste any of your time.

Important:
If you use PF, then everything will be very slow unless you put net.inet.tcp.tso=0 into the /etc/sysctl.conf file.

P.S. Thanks a lot to Colin Percival for giving us opportunity to use FreeBSD on Amazon Cloud!

by vand777 at July 18, 2011 08:01 PM

phpLDAPadmin Configuration

I'm attempting to configure phpLDAPadmin and when I ask for this URL, http://archaxis.net/phpldapadmin/index.php, the following error is displayed in the browser:
Code:

Function error called incorrectly [ERROR: Setting a key [Archaxis] that isnt predefined.]
If the pointer in the /www/phpLDAPadmin/config/config.php file
Code:

$servers->setValue('Archaxis','net','OpenLDAP Server');
. . .is changed to
Code:

$servers->setValue('Xrchaxis','net','OpenLDAP Server');
. . .then
Code:

Function error called incorrectly [ERROR: Setting a key [Xrchaxis] that isnt predefined.]
will be displayed.

Can someone tell me what this means and/or what to do to correct the problem?
Where should the key be predefined?

I've configured the following (per the suggestion) in the /www/phpLDAPadmin/config/config.php file:
Code:

/* If you are asked to put PLA in debug mode, this is how you do it: */
$config->custom->debug['level'] = 255;
$config->custom->debug['syslog'] = true;
$config->custom->debug['file'] = '/var/log/pla_debug.log';
#  $config->custom->debug['file'] = '/tmp/pla_debug.log';

but the log file is not created, nor are there any entries in the http server error log.

The following directives have been added to the httpd.conf file:
Code:

        Alias /phpldapadmin/ "/usr/local/www/phpldapadmin/htdocs/"
   
        <Directory "/usr/local/www/phpldapadmin/htdocs">
            Options none
            AllowOverride none
            Order Deny,Allow
            Deny from all
            Allow from 192.168.1 .archaxis.net
            DirectoryIndex index.php
        </Directory>

by rtwingfield at July 18, 2011 07:44 PM

FreeBSD 6.4-STABLE + cPanel - up to FreeBSD 8.2

Hi I have a server with 6.4-STABLE FreeBSD

I want to upgrade it to FreeBSD 8.2-RELEASE
Could you clarify in brief explanations of the steps that need to meet?

Currently I have gcc-3.4.6_2, 1, this is a productive machine and worry about working with cPanel 11.24.5-R38506 - WHM 11.24.2 - X 3.9, I want to update to more secure.

by burkoff at July 18, 2011 07:27 PM

[Solved] convert OpenBSD mbr to FreeBSD mbr with FreeBSD boot manager

I have freebsd 8.2 and openbsd 4.9 on the same disk and openbsd's boot code is in the mbr. I would like to use freebsd's boot manager. The handbook says to use:

Code:

fdisk -B -b /boot/boot0 /dev/ad0
It prints the bootlabel; I tell it to change the bootcode; it replies:

Code:

Figures below won't work with bios for partitions not in cyl 1
I don't know what that means. It prints the bootlabel again; I tell it to write the new partition table; it replies:

Code:

fdisk: Class not found
fdisk: Failed to write sector zero

So my pc lacks the "class" to use freeBSD's boot manager. What does that mean?

note:
I put freebsd / in slice one, openbsd in slice two and the rest of freebsd in slice 3, in order to keep boot files accessible.

sid

by sidney6 at July 18, 2011 06:02 PM

want to leave xp...

...to erase the partition and install some? BSD...

looking4 tips...ain't wanna feel remorse later(of leaving private sof)

got arch on second part

ideas are welcome!

by d_mon at July 18, 2011 04:27 PM

Totem cannot be build

Hello,

When I want to build Gnome2 from ports I see this message appear when building totem.
Code:

%graphics.attrib;
                ^
    format ()IMPLIED
                ^

Entity: Line 1 : parser error. Content error in the external subset %graphics.attrib;
                                                                                      ^

Entity : line 4 :
    format ()IMPLIED
                ^

unable to parse it/totem.xml

gmake[2]:  [totem.it.omf] error 1
gmake[2]: leaving directory "usr/ports/multimedia/totem/work/totem 2.32.0/help

I work with FreeBSD 8.0 AMD64

Roelof

by roelof at July 18, 2011 01:55 PM

Jails and resource limits

Hello, I'm currently experimenting with jails and was wondering about per-jail resource limits; I know there is a project to implement this but as far as I can tell it is currently stalled. If an attacker could break into a jail and from there starve the host system, and any other jails running on it, of resources then is this not a rather large hole in the current implementation of jails? I suppose it can be mitigated with login classes for users but thats not entirely satisfactory. Any comments welcome.

by tanked at July 18, 2011 10:55 AM

Firefox5 plugin folder

Hi all,

I've set up a fresh gnome 2.3.1 desktop with firefox5.

Now I am trying to get the flash and java plugin running.

I created symbolic links in:

Code:

/usr/local/lib/browser_plugins
/usr/local/lib/browser_plugins/symlinks/gecko19
$HOME/.mozilla/plugins

But "about:plugins" still doesn't discovers any plugin.

Any hints?

by bsd5543 at July 18, 2011 09:57 AM

Xorg 1.7.7_1,1 and Wine

Over the weekend I rebuilt this box to track 8.2-STABLE and it appears changes between xorg versions breaks Wine.

I'd been playing Lord of the Rings Online for a while with no issues at all on 8.2-RELEASE.
When LotRO loads there's a DirectX9 load screen before the main options screen is loaded (which is handled by opengl).

The DirectX9 load screen works and then I end up with a black 10mm sq box at the bottom left corner.
Output from top reports minimal usage from wine/wineserver ~3.5% at this point.

I've tried older and newer nvidia-driver, reinstalling x11-server/xorg, different versions of wine from http://people.freebsd.org/~ivoras/wine/, installing as per wiki. All the same.

Flash games like Machinarium + Samarost work but opengl games don't.
However GLXinfo reports no issues and GLXgears works fine.

I also gave FreeBSD-9.0 a spin, same issue as above.

I installed 8.2-RELEASE to another disk, patched and installed via packages, the game works straight away.

Anyone got Wine working on 8.2-STABLE with OpenGL games?

by rusty at July 18, 2011 08:06 AM

Issues with 'Unknown Error'

Hello,

There is currently an issue on FreeBSD-CURRENT built with clang throwing out 'Unknown error' messages.

(Note: http://docs.freebsd.org/cgi/mid.cgi?...8X5kH75DoYSrXw)

It seems to be an issue with writing. If I do `echo 'test' > test`, eventually it fails with 'Unknown error: -512.' Same with if you use edit on a file, it usually takes 2 attempts for it to save. I can confirm this error in 224119, and that email happens to be older than a week old, so it must have been around for a while.

Any news on this?

Doing `echo 'hi' > /etc/motd` fails every other call with 'Unknown error: -512'. I was not able to duplicate this myself by making some simple C code that does open() and write().

Sadly it's too late for me to do much research, so I'll check it out tomorrow unless someone knows the problem. Perhaps it's a clang problem and not a FreeBSD issue?

-Brandon

by falkman at July 18, 2011 04:40 AM

simulating keypress in shell

How would I script something that would pipe an interactive mod statement like 'ctrl-g c'

Preferably something already in base.

by UNIXgod at July 18, 2011 01:30 AM

July 17, 2011

FreeBSD forums

Making a custom release

hi, I'm trying to create a custom release with my FreeBSD setup, I followed the instructions in the handbook.
fisrt:
Code:

cd /usr/src
make buildworld

then cvsup:
modify the file "cvs-supfile":

Code:


cd /usr/share/examples/cvsup/
vi cvs-supfile

*default prefix=/usr/home/ncvs
*default base=/usr/a
*default host=cvsup.de.FreeBSD.org
*default release=cvs
*default delete compress use-rel-suffix
## Main Source Tree
src-all
src-eBones
src-secure
# Other stuff
ports-all
www
doc-all

:wq!

cvsup -g -L 2 cvs-supfile
after 7 hours
export CVSROOT=/usr/home/ncvs

So far so good.
finally i use "make release" with the following configuration.

Code:

cd /usr/src/release
make release BUILDNAME=CUSTOM-RELEASE CHROOTDIR=/usr/customrelease/

after almost 2 hours of "make release" get the following error:

Code:

make 'dont know how to make doRELEASE'

stop
Error code 2

do not understand why this error occurs, I hope you can help.

Thanks.

by jamiro at July 17, 2011 09:54 PM

gnome2 install from ports with the default options

Hello,

I want to install gnome2 from ports.
I know I have to do # make install clean in the /usr/ports/gnome
The disadvantage I find that on several times a screen for options of a package.

Is there a way I can enable the defaults without several times press oke.

Packages are not a option because then I mixed up my system with ports and packages.

Roelof

by roelof at July 17, 2011 08:15 PM

Bring Process to foreground of another terminal

Hi,

I am currently in the middle of running portupgrade... I came back to my laptop, opened up the lid and it looked like the GUI had restarted (saw nvidia splash, no more terminal with my portupgrade).

I did a pu and i believe that it's still running (weired, because i thought all child processes would be killed if the GUI crashed):


Code:

# ps
  PID  TT  STAT      TIME COMMAND
 1468  v0- I      0:00.04 /usr/local/sbin/gdm-binary
 1658  v0  Is+    0:00.00 /usr/libexec/getty Pc ttyv0
 1659  v1  Is+    0:00.00 /usr/libexec/getty Pc ttyv1
 1660  v2  Is+    0:00.00 /usr/libexec/getty Pc ttyv2
 1661  v3  Is+    0:00.00 /usr/libexec/getty Pc ttyv3
 1662  v4  Is+    0:00.00 /usr/libexec/getty Pc ttyv4
 1663  v5  Is+    0:00.00 /usr/libexec/getty Pc ttyv5
 1664  v6  Is+    0:00.00 /usr/libexec/getty Pc ttyv6
 1665  v7  Is+    0:00.00 /usr/libexec/getty Pc ttyv7
73367  2  Is+    0:00.03 make
73375  2  I+    0:00.03 make config
73379  2  I+    0:00.00 [sh]
73391  2  R+    90:21.39 /usr/bin/dialog --checklist Options for en-freebsd-do
73901  1  I      0:00.00 su
73902  1  S      0:00.01 _su (csh)
74465  1  R+    0:00.00 ps

The portupgrade command isn't there but I'm sure that the make and make config is a prompt.. so the terminal that was originally displayed this is now gone, how do I bring this one to a new terminal so I can carry on?

by andyzammy at July 17, 2011 07:42 PM

Intel audio supported?

So my sound device is listed as an "Intel(r) 82801BA/BAM AC'97 Audio Controller". Similar devices are listed in the supported hardware file ("[i386,amd64] The snd_hda(4) driver supports many Intel HDA compatible audio chipsets including the following:"), but not this specific one. Does that mean that there is no way to get sound working on FreeBSD on this machine? Will the snd_hda driver suffice?

by Bellum at July 17, 2011 06:58 PM

FreeBSD 8.2 PPC Octave?

Hello,

1st post to the Forum. Just got 8.2 installed on an Apple PBG4 Ti Onyx, and I've been trying to put my requisite software together. So far I have emacs, auctex, ghostscript, and elinks installed but I could really use octave also. Octave requires gcc45, but the gcc45 port claims to not support powerpc. Has anyone gotten octave running on BSD ppc?

by jgrillo at July 17, 2011 06:01 PM

GNU Chess problem: I can only play games as root

I've got GNU Chess installed from ports, and have installed xboard and eboard.

When I try to start a new game from a normal user account in either xboard or eboard, I get the error:

Quote:

"book_open(): can't open file "/usr/local/share/gnuchess/book.bin": Permission denied"
I can run the game as root.

The permissions for the file are:
Code:

-r--r--r--  1 root  wheel
Edit:

If I change the permissions to:
Code:

-r--rw-r--  1 root  wheel
I can run the game without any errors.

Why would the game run under root with only read permission, yet not work under normal account with read permission? And why would allowing write permission to the files group matter, if it can be run by root with only read permission?

by bigtoque at July 17, 2011 05:35 PM

RAIDZ configuration for multiple SATA controllers

I'm currently running a system with four (Advanced Format) drives attached to an internal SATA controller with no room for further expansion. I plan to add more storage by buying an external eSATA enclosure, stuffing some disks in it and connecting it to the machine using the bundled SilI3132-based SATA controller card.

While the existing four disks are configured a simple striped ZFS pool (favouring cost and capacity over redundancy), I'm thinking of replacing it with a RAIDZ pool for improved redundancy. However, I'm unsure what kind of configuration I should go with.

The ZFS Best Practices Guide recommends the following:

Quote:

  • Start a single-parity RAIDZ (raidz) configuration at 3 disks (2+1)
  • Start a double-parity RAIDZ (raidz2) configuration at 5 disks (3+2)
  • Start a triple-parity RAIDZ (raidz3) configuration at 8 disks (5+3)
  • (N+P) with P = 1 (raidz), 2 (raidz2), or 3 (raidz3) and N equals 2, 4, or 8
  • The recommended number of disks per group is between 3 and 9. If you have more disks, use multiple groups.

Since I'll be using two separate controllers equipped with different makes of controller chips, I assume there might be some difference in performance. I'm especially sceptical about the cheapo SilI3132-based controller, since their performance has been reported to be lacklustre. Although I naturally can't be certain about the matter before I've run some benchmarks, my spider sense tingles that I'll be better off not mixing disks attached to different controllers under a single vdev.

This implies that I'll need to create at least one vdev per controller: one raidz1 vdev for the 4 internal disks and one (or more, see below) vdev for the external disks. The four-disk vdev might, according to some sources, represent a sub-optimal configuration for 4K sector disks, but those are the breaks.

Now, if I've understood correctly, I also won't be able to add any new devices to an existing vdev. Thus, I'll need to either buy 5 disks off the bat (as many as the external enclosure will accommodate) and create one raidz2 vdev, or buy, say, 2 disks to begin with and 3 more disks in the future, and create a mirror and a raidz1 vdev, respectively. The third option would be to buy disks when I need them and when I've filled up the enclosure, destroy the pool (I've got the data backed up elsewhere, remember?) and recreate it with a 4-disk raidz1 vdev and a 5-disk raidz2 vdev as I would've done if I'd bought 5 disks to begin with.

Finally, I could chuck the bundled controller and buy another card with at least four internal SATA ports and one eSATA port which supports port multipliers. This way I could nicely side-step the problem of having to contend with two separate controllers. Any suggestions as to which models would have the required number of ports and work with FreeBSD (preferably without any jiggery-pokery with proprietary drivers)?

Based on this information, what course of action would you recommend?

by pva at July 17, 2011 05:14 PM

How can I Identify My Computer's Hardware?

On step 2.3.1 of the FreeBSD handbook (Inventory Your Computer), it says one should find out what their computer's hardware is so they can:

1) make sure that FreeBSD supports their hardware
2) make sure FreeBSD gives you the right configuration for your hardware during install

My problem is I had no idea how to figure out what my hardware is. My computer currently has no operating system on it (I'm writing this using a Ubuntu live cd). My question is, using the Ubuntu live cd how can I figure out what my computer's hardware is? P.S. My computer's a MBP 7,1.

Thanks a ton!

by JoshuaBranson at July 17, 2011 05:08 PM

fsck cannot find fsck_ext2

I just try to mount an external USB drive with ext2 on it. After installing e2fsprogs mount complains that the filesystem is not clean (it is correct).
So I tried to run fsck -t ext2 /dev/da0s1 and got the error
fsck: exec fsck_ext2 for /dev/da0s1 in /sbin:/usr/sbin: No such file or directory

The binary or script is called fsck.ext2, I thought you guys want to know and correct it or something?

//edit: let me rephrase that, if I would have used fsck -t extfs /dev/da0s1 it would have found fsck_ext2fs
fsck fsck.ext2 fsck.ext3 fsck.ext4 fsck.ext4dev fsck_4.2bsd fsck_ext2fs fsck_ffs fsck_msdosfs fsck_ufs

by disi at July 17, 2011 12:08 PM

Recurring data errors on a ZFS mirror pool

Hi everybody,

I have a small home server running with FreeBSD as OS and ZFS on all disks. I've created "rpool" over a year ago and in the last two months, error rates are increasing. Although I've already checked S.M.A.R.T. data, I cannot find anything out of the ordinary that would explain these recurring errors. Most of those errors I can get rid of with a simple ZFS scrub, but sometimes the errors remain and I have to use snapshots.

This is an example of how the root pool (a mirror with two disks) looked today in the morning:

rpool, before ZFS scrub
Code:

  pool: rpool
 state: ONLINE
status: One or more devices has experienced an error resulting in data
        corruption.  Applications may be affected.
action: Restore the file in question if possible.  Otherwise restore the
        entire pool from backup.
  see: http://www.sun.com/msg/ZFS-8000-8A
 scrub: scrub in progress for 0h0m, 2.43% done, 0h21m to go
config:

        NAME        STATE    READ WRITE CKSUM
        rpool        ONLINE      0    0    0
          mirror    ONLINE      0    0    0
            aacd0p3  ONLINE      0    0    0
            aacd1p3  ONLINE      0    0    0

errors: Permanent errors have been detected in the following files:

        //bin/tcsh
        //sbin/devd
        /usr/local/man/whatis
        /usr/local/lib/xcdroast-0.98/bin
        /usr/bin/strip
        rpool/usr:<0x27d3b>
        /usr/local/bin/bash
        rpool/usr:<0x34a57>
        rpool/usr:<0x34a5c>
        rpool/usr:<0x34a5d>
        /usr/local/bin/libtool
        /usr/local/lib/libruby18.so.18
        /usr/bin/nm
        /usr/ports/distfiles/autoconf-2.68.tar.bz2
        /usr/ports/devel/autoconf/ruby18.core
        /usr/ports/distfiles/teTeX/tetex-texmf-3.0.tar.gz

rpool, after ZFS scrub
Code:

  pool: rpool
 state: ONLINE
status: One or more devices has experienced an error resulting in data
        corruption.  Applications may be affected.
action: Restore the file in question if possible.  Otherwise restore the
        entire pool from backup.
  see: http://www.sun.com/msg/ZFS-8000-8A
 scrub: scrub completed after 0h17m with 2 errors on Sun Jul 17 10:24:24 2011
config:

        NAME        STATE    READ WRITE CKSUM
        rpool        ONLINE      0    0    2
          mirror    ONLINE      0    0    4
            aacd0p3  ONLINE      0    0    10  42.5K repaired
            aacd1p3  ONLINE      0    0    7  18K repaired

errors: Permanent errors have been detected in the following files:

        //devd.core
        /usr/ports/devel/autoconf/ruby18.core

Most of the files that are affected have been written once (during installation) on the system and suddenly, they have data errors. I'm also surprised of the fact that both disks show errors and not just one. I thought if one disks always had errors, I'd just have it replaced but in this case I'm confused.

One other thing that just occurred to me:
I've reconfigured the system two months ago and all the disks that show data errors are connected via an Adaptec RAID 3805 HBA (8 in total, 2 root pool disks, and 6 data pool disks). I don't use any of the RAID features of the Adaptec card and let ZFS handle the RAID setup.

I appreciate any ideas that help me to identify the source of the problem.

Have a nice day everyone!

by ana5azi at July 17, 2011 10:17 AM

[Solved] scanf and time_t segmentation fault

I was working on a program which reads a input in seconds from the user. This program compiles fine but when I enter a value for the seconds it crashes. I used this program to test the assignment of a value to a time_t variable
Code:

#include<stdio.h>
#include<time.h>

int main() {

    time_t t;
    scanf("%lld", &t);
    printf("%lld\n", t);
    return 0;
}

But when I execute this code, after entering a number, I get
Code:

Segmentation fault: 11 (core dumped)
any insight?

by dead_rabbit at July 17, 2011 01:30 AM

What does that mean (the colored lines)?

I can't find them in the man page (I run 8.2 Release).

Code:

-TFILE
-Tfd_mask
-Tfd_set
-Tlinker_sym_tT
-Tu_char
-Tu_int
-Tu_long
-Tu_short
-TTAILQ_HEAD
-TTAILQ_ENTRY
-TLIST_HEAD
-TLIST_ENTRY
-TSTAILQ_HEAD
-TSTAILQ_ENTRY
-TSLIST_HEAD
-TSLIST_ENTRY

-bad
-bap
-nbbb
-nbc
-br
-nbs
-c41
-cd41
-cdb
-ce
-ci4
-cli0
-d0
-di8
-ndj
-ei
-nfc1
-nfcb
-i8
-ip8
-l79
-lc77
-ldi0
-nlp
-npcs
-psl
-sc
-nsob
-ta
-nv

by fender0107401 at July 17, 2011 01:21 AM

July 16, 2011

FreeBSD forums

ipfw quick question regarding dummynet queues and layer2 filtering

Hi,

I want to achieve dynamic traffic shaping, routing with NAT using ipfw and also to block IP-s by MAC address.

Here is my rule:

Code:

#!/bin/sh
cmd="/sbin/ipfw -q"

# external interface
wan_if="em0"
# internal interface
lan_if="em1"

b_down="512Kbit/s"
b_up="256Kbit/s"

conn_limit="limit src-addr 1000"

$cmd table 1 add 192.168.11.0/24 1
$cmd table 2 add 10.0.0.0/24

# nat
$cmd nat 1 config if $wan_if reset
$cmd add 50 nat 1 all from 192.168.11.0/24 to any via $wan_if out
$cmd add 60 nat 1 all from any to me via $wan_if in

# download pipe
$cmd pipe 10 config bw $b_down queue 8Kbytes
$cmd queue 1 config sched 5 weight 10 pipe 10 queue 6 mask dst-ip 0x000000ff
$cmd queue 2 config sched 5 weight 1 pipe 10 queue 6 mask dst-ip 0x000000ff

# upload pipe ack
$cmd pipe 20 config bw 128Kbit/s queue 4Kbytes mask src-ip 0x000000ff
# upload all
$cmd pipe 21 config bw $b_up queue 8Kbytes mask src-ip 0x000000ff
$cmd queue 3 config sched 5 weight 10 pipe 21 queue 6 mask dst-ip 0x000000ff
$cmd queue 4 config sched 5 weight 1 pipe 21 queue 6 mask dst-ip 0x000000ff

# download rules
$cmd add 700 queue 1 tcp from any to any out xmit $lan_if tcpflags ack iplen 0-52
$cmd add 710 skipto 7000 tcp from any to any out xmit $lan_if tcpflags ack iplen 0-52
$cmd add 720 queue 2 ip from any to "table(1)" out xmit $lan_if $conn_limit

# upload rules
$cmd add 800 pipe 20 tcp from any to any in recv $lan_if tcpflags ack iplen 0-52
$cmd add 810 skipto 8000 tcp from any to any in recv $lan_if tcpflags ack iplen 0-52
$cmd add 910 queue 2 ip from any to "table(1)" in recv $lan_if
$cmd add 920 queue 4 ip from "table(1)" to any in via $lan_if

Everything works fine with shaping without MAC filtering.

If I want to add layer2 filtering with the following code, added before NAT rules:
Code:

# allow using MAC
$cmd add 13 allow ip from any to any layer2 mac-type arp
$cmd add 14 allow ip from any to any MAC any "08:00:27:75:ba:cf" in via $lan_if
$cmd add 15 deny ip from any to any layer2 in via $lan_if
$cmd add 16 allow ip from any to any layer2 via $wan_if

Then the traffic shaping will not work properly anymore. It will shape traffic but not with 512/256, so is not working in parameters.

Where I am wrong. I asume after evaluating layer2 rules the firewall will continue with next rules.

by overmind at July 16, 2011 06:53 PM

php53 Port Status

What is the current status of the php53 port? I've googled up a lot of bad press regarding v5.3+ dating back to 2009 and I can speak from experience (this July, 2011) that an inadvertent install of v5.3.6_1 disabled several of my services including WebCalendar, ZenPhoto, and Simple Machine Forum. All are dependent on the PHP MySQL extensions interaction with Apache v2.2.11.

I don't know for sure where the port for php53 came from. I can't find it in the Ports tree. I recently installed both Samba and OpenLDAP and during the make of one or the other (I think it was OpenLDAP), I notice the verbose make scrolling various messages regarding MySQL and PHP . . .very unsettling. At the end of the process, I screen-scraped the following evidence that yes indeed, php5-5.3.6_1 had been installed (but not asked for).
Code:

# make install
===>  Installing for php5-5.3.6_1
. . .etc, etc, etc.
===>  Registering installation for php5-5.3.6_1

By the way, I've started running all makes with SDTOUT redirected to an *.out file, e.g.,
# make build > make_build_whatever.out
# make build > make_install_whatever.out (. . .helps my recollection when messages are flying by at Mach-3.)

I do know that the installation of PHP v5.3.6 was successful because phpinfo() displayed the v5.3.6 information. (FYI, create a one-line PHP script with this code: <? phpinfo(); ?> and call from a browser.)

All said, I've reverted back to PHP v5.2.17_1 and I also performed a deinstall and (re)install of the following:
Code:

Deinstalled mysql-client-5.5.13
Deinstalled mysql-server-5.5.5_1

. . .remake of

mysql-client-5.5.14 Multithreaded SQL database (client)
mysql-server-5.5.14 Multithreaded SQL database (server)
php52-mysql-5.2.17_1 The mysql shared extension for php
php52-mysqli-5.2.17_1 The mysqli shared extension for php

Note that regarding the mysql-client versions, v5.5.13 was replaced by upgrade to v5.5.14 (apparently a minor upgrade); however, the deinstalled version of the mysql-server was v5.5.5_1 . . .where did that come from? The reinstalled from ports version is "earlier" v5.5.14.

by rtwingfield at July 16, 2011 06:47 PM

Printer not available in KDE applications

I've installed KDE 4.6.1 on FreeBSD 8.2 i386. I have an old HP Laserjet 6P printer connected via parallel port. CUPS 1.4.6 is installed, and applications such as Firefox and Libreoffice can successfully print to my printer. However, when I try to print from KDE applications such as Okular, KWrite or Konqueror, my printer is not even listed - only options are 'Print to PDF' and 'Print to Postscript'.

When I discovered this problem, I also noticed that there is nothing at all printing-related under KDE's system settings. I installed system-config-printer-kde4 and this added the applet which shows me the existing printer and allows to configure it, but this printer still doesn't appear in KDE applications.

I've read suggestions that replacing the lp* tools under /usr/bin with symlinks to corresponding CUPS binaries under /usr/local/bin might help, but in my case this doesn't seem to help. What else might I be missing?

by vatson at July 16, 2011 12:27 PM

Mounting USB Flash Drive

I'm having problems mounting my USB flash drive, as I do not know what it is called under freeBSD.

In linux, I would use the command:
Code:

sudo mount /dev/sdb /media/usb
But from the information I have found, in unix it is /dev/da0.
..I can't mount /dev/da0 though.

Could anybody give some insight?
It would be much appreciated.

by kind at July 16, 2011 12:08 PM

How to backup a jail ?

I have a Soekris Net5501 which is running two jails.
One jail is a web server and the other a mail server.

As the mail server has eight years of emails for the entire family on it I need to figure out how to back it up.
I am thinking that I could log into the base operating system and just tar up the entire jail, and then sftp it over to my backup server. In fact I could script this and do a regular cron job.

Do I have to stop the jail, or any of the daemons before I copy the jail into a tar file?

by dieselnutjob at July 16, 2011 09:47 AM

ctrlproxy not build after update of gnutls.

Compiling lib/transport.c
Compiling lib/line.c
Compiling lib/isupport.c
Compiling lib/connection.c
Compiling lib/url.c
Compiling lib/util.c
Compiling lib/listener.c
Linking libirc.a
Linking linestack-cmd
src/gnutls.o(.text+0x126): In function `_gnutls_init':
: undefined reference to `gcry_control'
gmake: *** [linestack-cmd] Ошибка 1
*** Error code 1

Stop in /usr/ports/irc/ctrlproxy.

by vb at July 16, 2011 07:11 AM

Port forwarding fwknop

I think I'm posting to the right place, but if not, admins feel free to move the post somewhere else. Anyway, basically, what I want to know is if it's possible to forward the port fwknop opens with natd. I have a win server 2008 pdc behind a freebsd NAT router. Would it be possible to open port 3389 with fwknop and have a latent rule in natd.conf to redirect port 3389 to my internal server 2k8 box? I've read documentation on fwknop on the internet, but all of it pertains just to opening basically the sshd port on the box that it runs on. What I want to do is open the port on the local box, and have a natd redirect to redirect that port to my server 2k8 box on my internal lan so I can access it with rdp. From there, I can use putty to ssh my bsd servers and rdp the computer I use on my LAN. I'm trying to set up a secure entry point into my LAN so I can navigate my whole LAN from externally if I so choose.

by drunkenmidget at July 16, 2011 04:57 AM

Apps won't run after 8.2 upgrade

Well here we go again. Same thing like every upgrade and yes I followed /usr/ports/UPGRADING and yes I read the handbook. Now when I try to run programs I get:

Code:

/libexec/ld-elf.so.1: Shared object "libpng.so.5" not found, required by <insert your favorite program here>
About the only thing that runs is firefox and xterm. I did:

Code:

freebsd-update upgrade -r 8.2-RELEASE

freebsd-update install

shutdown -r now

freebsd-update install

portupgrade -a

freebsd-update install

shutdown -r now

I've done pkgdb -Ff and portupgrade many times and tried installing ports individually but nothing succeeds. Whenever I try to install a port it fails for one reason or another like:

Code:

/ports/devel/kdesdk4
make install clean

probe-hiddev.c: In function 'main':
probe-hiddev.c:81: error: 'USB_GET_REPORT_ID' undeclared (first use in
this function)
probe-hiddev.c:81: error: (Each undeclared identifier is reported only
once
probe-hiddev.c:81: error: for each function it appears in.)
gmake[5]: *** [probe-hiddev.o] Error 1
gmake[5]: Leaving directory
`/usr/ports/sysutils/hal/work/hal-0.5.14/hald/freebsd/probing'
gmake[4]: *** [all-recursive] Error 1
gmake[4]: Leaving directory
`/usr/ports/sysutils/hal/work/hal-0.5.14/hald/freebsd'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory


/usr/ports/sysutils/hal
make install clean

probe-hiddev.c: In function 'main':
probe-hiddev.c:81: error: 'USB_GET_REPORT_ID' undeclared (first use in
this function)
probe-hiddev.c:81: error: (Each undeclared identifier is reported only
once
probe-hiddev.c:81: error: for each function it appears in.)
gmake[5]: *** [probe-hiddev.o] Error 1
gmake[5]: Leaving directory
`/usr/ports/sysutils/hal/work/hal-0.5.14/hald/freebsd/probing'
gmake[4]: *** [all-recursive] Error 1
gmake[4]: Leaving directory
`/usr/ports/sysutils/hal/work/hal-0.5.14/hald/freebsd'
gmake[3]: *** [all-recursive] Error 1
gmake[3]: Leaving directory
`/usr/ports/sysutils/hal/work/hal-0.5.14/hald'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory

I've been struggling with this system for four days. How can I recover from this mess?

by SeaHag at July 16, 2011 02:53 AM