Re: Tweetless

2012-07-03 Thread Tobias Rehbein
Am Tue, Jul 03, 2012 at 01:04:07AM -0500 schrieb Lars Eighner:
> 
> Call me crazy, but it seems that since the perl bump (5.12 -> threaded-5.16)
> when firefox (13.0.1,1) got rebuilt, it seems twitter pages do not fully
> load, give me the slow loading banner, and the page (not browser or X)
> freezes, but no such problems were evident before, and twitter seems
> entirely normal in Opera 12.00.

Same here on my machine:

FreeBSD oshi.local 9.0-STABLE FreeBSD 9.0-STABLE #2: \
Tue Jun 19 19:10:11 CEST 2012 \
root@oshi.local:/usr/obj/usr/src/sys/OSHI  amd64

Disabling SPDY in about:config (a solution proposed on the net) didn't fix
this issue.

Regards,

Tobias

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


ncal(1) prints control sequences on stdout if stdout is not a tty

2011-07-07 Thread Tobias Rehbein
Hi list,

being the maintainer of www/nanoblogger, which uses cal(1) to generate the blog
calendar, I noticed that ncal(1), and therefore cal(1), prints control sequences
to stdout in order to highlight the current date. This scrambles the calendar
generated by nanoblogger.

I fixed this issue in the port but talking to one of the folks of our local unix
user group I was asked why I am not fixing this in ncal(1) as the sane behaviour
would be to omit control sequences if stdout is not a tty. Thinking about that I
decided to create a patch:

http://www.freebsd.org/cgi/query-pr.cgi?pr=bin/158580

I just wanted to ask you fellow FreeBSD users what you think about this issue as
feedback in PRs tends to be slow.

Regards Tobias
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


vidcontrol / vesa mode regression in 8.1-RELEASE

2010-07-30 Thread Tobias Rehbein
Hi list.

I just upgraded my laptop to FreeBSD 8.1 and this time it's the first time I
actually have a regression: I can't switch my console to high resolution using
vidcontrol or allscreen_flags in rc.conf.

My kernel configuration contains VESA and SC_PIXEL_MODE:

t...@sushi [/usr/src/sys/i386/conf] > egrep "(SC_|VESA)" SUSHI 
options VESA
options SC_PIXEL_MODE

With basically the same kernelconfig I could use the following call in FreeBSD
8.0 to switch my console to a higher resolution:

vidcontrol MODE_279

This no longer works. The display gets black and I can't see anything.
Nonetheless I can enter commands which are executed. I just don't get any visual
feedback. So I can at least reboot after experimenting with vidcontrol ;)

I tried several modes and it seems it's the VESA modes which are misbehaving. I
played with hint.sc.0.vesa_mode which is mentioned in the release notes but I
honestly don't know how to use it.

Any hints on this issue? I will provide further information if you tell me what
you need.

Thanks in advance, Tobias


pgpiGdwo8einQ.pgp
Description: PGP signature


Re: how to prepare disk for dump/restore

2009-10-15 Thread Tobias Rehbein
Am Thu, Oct 15, 2009 at 09:17:43PM +0200 schrieb Polytropon:
> On Thu, 15 Oct 2009 14:59:51 -0400, PJ  wrote:
> 
> You can use sysinstall from the Fixit CD, too. That's the way
> I'm mostly doing this kind of thing: Preparing the disk with
> the sysinstall tool, then dropping to CLI for the restoring
> process.

If all you want to do is to prepare the disks you can leave sysinstall alone and
use sade(8).

-- 
Tobias Rehbein

PGP key: 4F2AE314
server:  keys.gnupg.net
fingerprint: ECDA F300 1B6E 9B87 8524  8663 E8B6 3138 4F2A E314


pgpXD2nA0ImOP.pgp
Description: PGP signature


Re: music file in /tmp/XXX/

2009-10-13 Thread Tobias Rehbein
Am Sun, Oct 11, 2009 at 11:31:48AM -0700 schrieb Gary Kline:
> is there a freebsd app that will take my music file, 18 of them in /tmp/XXX,
> all named ogg files, and burn them to a CD?

You might take a look at audio/mp3burn. Despite it's name it burns ogg files
just fine:

mp3burn *.ogg

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


[tobias.rehb...@web.de: Re: [OT] C programming question: reopen stdin]

2009-04-16 Thread Tobias Rehbein
s/Good/Could/
--- Begin Message ---
Am Tue, Apr 14, 2009 at 09:07:26PM +0200 schrieb Mel Flynn:
> On Tuesday 14 April 2009 20:13:00 Tobias Rehbein wrote:
> 
> > I'm having a little trouble solving a specific problem in C. I want to
> > write a filter which reads data from stdin. After reading the user should
> > be able to interact with the program via stdin.
> 
> Just open(2) /dev/tty. If tty is invalid, then you don't have to expect a 
> user 
> either.

Thanks for this hint. I tried to implement an example. Good someone take a look
at it and tell me if I did it right. Well, at least it works...

The code is here:

http://gist.github.com/95320

To avoid further spamming of the freebsd-questions mailing list: Could someone
point me to a good place to ask C programming questions?

Regards 

Tobias
--- End Message ---
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Re: [OT] C programming question: reopen stdin

2009-04-16 Thread Tobias Rehbein
Am Tue, Apr 14, 2009 at 09:07:26PM +0200 schrieb Mel Flynn:
> On Tuesday 14 April 2009 20:13:00 Tobias Rehbein wrote:
> 
> > I'm having a little trouble solving a specific problem in C. I want to
> > write a filter which reads data from stdin. After reading the user should
> > be able to interact with the program via stdin.
> 
> Just open(2) /dev/tty. If tty is invalid, then you don't have to expect a 
> user 
> either.

Thanks for this hint. I tried to implement an example. Good someone take a look
at it and tell me if I did it right. Well, at least it works...

The code is here:

http://gist.github.com/95320

To avoid further spamming of the freebsd-questions mailing list: Could someone
point me to a good place to ask C programming questions?

Regards 

Tobias
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


[OT] C programming question: reopen stdin

2009-04-14 Thread Tobias Rehbein
Hi all.

I'm having a little trouble solving a specific problem in C. I want to write a
filter which reads data from stdin. After reading the user should be able to
interact with the program via stdin. This means I have to reopen stdin but I
don't know how to do this. I tried to solve this using dup() and dup2() but
without success.

You can have a look at my first experiment here:

http://gist.github.com/95320

I guess the code and the contained comments show what I'm trying to achieve.
Although this is off-topic on this list I hope someone with more knowledge in C
may steer me into the right direction.

Sorry for the noise and thanks for reading.

Regards

Tobias

-- 
Tobias Rehbein

PGP key: 4F2AE314
server:  keys.gnupg.net
fingerprint: ECDA F300 1B6E 9B87 8524  8663 E8B6 3138 4F2A E314
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


Re: [perl] sysopen(CD, "/dev/cd0", O_RDONLY | O_NONBLOCK) fails

2009-03-27 Thread Tobias Rehbein
Am Fri, Mar 27, 2009 at 09:19:53PM +0100 schrieb Joost Bekkers:
> On Fri, March 27, 2009 19:59, Tobias Rehbein wrote:
> > Am Thu, Mar 26, 2009 at 10:11:28PM + schrieb Bruce Cran:
> >>
> > Hm. Tried this and got ineresting results:
> >
> >> use POSIX;
> >> sysopen(CD,"/dev/cd0", O_RDONLY|O_NONBLOCK) || perror("sysopen")
> > works fine, but
> >> use POSIX;
> >> sysopen(CD,"/dev/cd0", O_RDONLY|O_NONBLOCK)
> >> print "$!"
> > prints "No such file or directory"
> >
> > Well, I think I'll have to accept that sysopen works but $! does not...
> > After
> > all sysopen is more important to me ;)
> 
> As the perlvar manpage tells us:
> 
>   $!  If used numerically, yields the current value of the C "errno"
>   variable, or in other words, if a system or library call fails,
>   it sets this variable.  This means that the value of $! is
>   meaningful only immediately after a failure.
> 
> The value of $! is NOT an indicator of success or failure. It only tells
> you why something failed. If something succeeded $! is usualy left
> untouched.

Yes, that sounds sensible. Thanks for clarification.
-- 
Tobias Rehbein

PGP key: 4F2AE314
server:  keys.gnupg.net
fingerprint: ECDA F300 1B6E 9B87 8524  8663 E8B6 3138 4F2A E314


pgpRnzKIGUICh.pgp
Description: PGP signature


Re: [perl] sysopen(CD, "/dev/cd0", O_RDONLY | O_NONBLOCK) fails

2009-03-27 Thread Tobias Rehbein
Am Thu, Mar 26, 2009 at 10:11:28PM + schrieb Bruce Cran:
> 
> sysopen certainly works on FreeBSD:
> 
> > perl
> use POSIX;
> sysopen(CD,"/dev/acd0", O_RDONLY|O_NONBLOCK) || perror("sysopen")
> 
> and before I fixed the permissions:
> 
> > perl
> use POSIX;
> sysopen(CD,"/dev/acd0", O_RDONLY|O_NONBLOCK) || perror("sysopen")
> sysopen: Permission denied

Hm. Tried this and got ineresting results:

> use POSIX;
> sysopen(CD,"/dev/cd0", O_RDONLY|O_NONBLOCK) || perror("sysopen")
works fine, but
> use POSIX;
> sysopen(CD,"/dev/cd0", O_RDONLY|O_NONBLOCK)
> print "$!"
prints "No such file or directory"

Well, I think I'll have to accept that sysopen works but $! does not... After
all sysopen is more important to me ;)

Regards Tobias


pgpM4g9R02a4U.pgp
Description: PGP signature


[perl] sysopen(CD, "/dev/cd0", O_RDONLY | O_NONBLOCK) fails

2009-03-26 Thread Tobias Rehbein
Hi all.

I have a perl script which seems to work fine under Linux but fails on FreeBSD.
The Problem is the line:

sysopen(CD, "/dev/cd0", O_RDONLY | O_NONBLOCK)

After this line the following evaluates to true:

$! eq "No such file or directory."

/dev/cd0 is readable and writable for me. I rebooted multiple times and tried
with and without atapicam. 

sysopen(CD, "/dev/acd0", O_RDONLY | O_NONBLOCK)

fails either. So what's up here? Is sysopen a linuxism?

Any help is greatly appreciated.

Regards Tobias
-- 
Tobias Rehbein

PGP key: 4F2AE314
server:  keys.gnupg.net
fingerprint: ECDA F300 1B6E 9B87 8524  8663 E8B6 3138 4F2A E314


pgpDHSp2oVA8o.pgp
Description: PGP signature


Re: Jailing net/skype

2008-09-29 Thread Tobias Rehbein
For the archive:

I finally got skype working in a jailed environment. The hardest part was to
define the ports needed using trial and error.

Here are the leaf ports installed in my jail:


===>>> skype-2.0.0.72,1
===>>> xauth-1.0.2
===>>> xorg-fonts-100dpi-7.3
===>>> xorg-fonts-75dpi-7.3
===>>> xorg-fonts-cyrillic-7.3
===>>> xorg-fonts-miscbitmaps-7.3
===>>> xorg-fonts-truetype-7.3
===>>> xorg-fonts-type1-7.3
===>>> 8 leaf ports

xauth is needed to enable X-forwarding in ssh. The fonts are needed to avoid the
core dumps mentioned earlier in this thread.

I hope somenone finds this useful.

Regards Tobias
-- 
Tobias Rehbein

PGP key: 4F2AE314
server:  keys.gnupg.net
fingerprint: ECDA F300 1B6E 9B87 8524  8663 E8B6 3138 4F2A E314
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Jailing net/skype

2008-09-18 Thread Tobias Rehbein
Am Sun, Sep 14, 2008 at 11:26:45PM +0400 schrieb Boris Samorodov:
> Tobias Rehbein <[EMAIL PROTECTED]> writes:
> 
> > #kdump -f ktrace.out | head
> > 84180 skypeCALL  access(0x292b2b61,R_OK)
> > 84180 skypeNAMI  "/compat/linux/etc/ld.so.preload"
> > 84180 skypeNAMI  "/etc/ld.so.preload"
> > 84180 skypeRET   access JUSTRETURN
> > 84180 skypeCALL  open(0x292b2d49,O_RDONLY,0)
> > 84180 skypeNAMI  "/compat/linux/etc/ld.so.cache"
> > 84180 skypeNAMI  "/compat/linux"
> > 84180 skypeNAMI  "/compat/linux/etc/ld.so.cache"
> > 84180 skypeRET   open 3
> > 84180 skypeCALL  
> > freebsd6_mmap(0x3,0xbfbfe324,690704336,MAP_SHARED|MAP_PRIVATE|MAP_RENAME|MAP_NORESERVE|MAP_HASSEMAPHORE|MAP_STACK|MAP_NOSYNC,0x2e6f732e,0x68636163,0x646165,0,0,0,0,0,0,0,0,0,...
> >  (lots of '0,'s)
> >
> > The funny thing is kdump itself coredumps when dumping the whole thing out 
> > (I
> > guess that has something todo with this endless '...0,0,0,0,0...' sequence).
> 
> You should use devel/linux_kdump here instead of the native one.
> 
Thank you for the hint. I wasn't aware of this tool. Now the output looks
better:

#linux_kdump -f ktrace.out | tail
84180 skypeRET   gettimeofday 0
84180 skypeCALL  gettimeofday(0xbfbfd810,0)
84180 skypeRET   gettimeofday 0
84180 skypePSIG  SIGSEGV caught handler=0x82db000 mask=0x0 code=0x0
84180 skypeCALL  linux_rt_sigprocmask(0x1,0xbfbfd3d8,0,0x8)
84180 skypeRET   linux_rt_sigprocmask 0
84180 skypeCALL  linux_tgkill(0x148d4,0x148d4,0x6)
84180 skypeRET   linux_tgkill 0
84180 skypePSIG  SIGIOT SIG_DFL
84180 skypeNAMI  "skype.core"

Nonetheless I have no clue why it coredumps. Could someone help me interpret
this trace? If needed I can provide the full trace or the core dump.

The problem can't be gettimeofday() I guess?

Thanks in advance

Tobias
-- 
Tobias Rehbein

PGP key: 4F2AE314
server:  keys.gnupg.net
fingerprint: ECDA F300 1B6E 9B87 8524  8663 E8B6 3138 4F2A E314
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Jailing net/skype

2008-09-13 Thread Tobias Rehbein
Am Thu, Sep 11, 2008 at 07:47:21PM +0200 schrieb Tobias Rehbein:
> I have net/skype installed on my workstation and it just works fine. Now I
> wonder if it's possible to run skype in a jail.
> 
> Before I start investing time in this I would like to know if someone has
> done it before or if it would be just a waste of time.

Hello all.

As nobody seems to have experience with this I decided to set up a simple jail
to test this. Unfortunately skype keeps dumping core when I'm trying to start
it. Perhaps someone has a hint for me how to deal with this.

I tried to set up a jail as unrestrictve as possible. My goal was to get whole
thing running and lock down the jail later.

#uname -a
FreeBSD sushi.pseudo.local 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #17: 
Thu Sep 11 19:04:40 CEST 2008 
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/SUSHI  i386

#sysctl security.jail.
security.jail.jailed: 1
security.jail.mount_allowed: 0
security.jail.chflags_allowed: 0
security.jail.allow_raw_sockets: 1
security.jail.enforce_statfs: 2
security.jail.sysvipc_allowed: 1
security.jail.socket_unixiproute_only: 0
security.jail.set_hostname_allowed: 1

#sysctl compat.linux
compat.linux.oss_version: 198144
compat.linux.osrelease: 2.6.16
compat.linux.osname: Linux

#pkg_info | grep linux_base
linux_base-fc6-6_5  Base set of packages needed in Linux mode (for 
i386/amd64)

#grep LINUX /etc/make.conf
OVERRIDE_LINUX_BASE_PORT=fc6

devfs is mounted and I use the same ruleset as in the host system.

#kdump -f ktrace.out | head
84180 skypeCALL  access(0x292b2b61,R_OK)
84180 skypeNAMI  "/compat/linux/etc/ld.so.preload"
84180 skypeNAMI  "/etc/ld.so.preload"
84180 skypeRET   access JUSTRETURN
84180 skypeCALL  open(0x292b2d49,O_RDONLY,0)
84180 skypeNAMI  "/compat/linux/etc/ld.so.cache"
84180 skypeNAMI  "/compat/linux"
84180 skypeNAMI  "/compat/linux/etc/ld.so.cache"
84180 skypeRET   open 3
84180 skypeCALL  
freebsd6_mmap(0x3,0xbfbfe324,690704336,MAP_SHARED|MAP_PRIVATE|MAP_RENAME|MAP_NORESERVE|MAP_HASSEMAPHORE|MAP_STACK|MAP_NOSYNC,0x2e6f732e,0x68636163,0x646165,0,0,0,0,0,0,0,0,0,...
 (lots of '0,'s)

The funny thing is kdump itself coredumps when dumping the whole thing out (I
guess that has something todo with this endless '...0,0,0,0,0...' sequence).

Last but not least my kernel config:

cpu I686_CPU
ident   SUSHI
options SCHED_ULE   # ULE scheduler
options PREEMPTION  # Enable kernel thread 
preemption
options INET# InterNETworking
options INET6   # IPv6 communications protocols
options SCTP# Stream Control Transmission 
Protocol
options FFS # Berkeley Fast Filesystem
options SOFTUPDATES # Enable FFS soft updates 
support
options UFS_DIRHASH # Improve performance on big 
directories
options MSDOSFS # MSDOS Filesystem
options CD9660  # ISO 9660 Filesystem
options PSEUDOFS# Pseudo-filesystem framework
options GEOM_LABEL  # Provides labelization
options COMPAT_43TTY# BSD 4.3 TTY compat [KEEP 
THIS!]
options SCSI_DELAY=5000 # Delay (in ms) before probing 
SCSI
options KTRACE  # ktrace(1) support
options STACK   # stack(9) support
options SYSVSHM # SYSV-style shared memory
options SYSVMSG # SYSV-style message queues
options SYSVSEM # SYSV-style semaphores
options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time 
extensions
options KBD_INSTALL_CDEV# install a CDEV entry in /dev
options ADAPTIVE_GIANT  # Giant mutex is adaptive.
options STOP_NMI# Stop CPUS using NMI instead 
of IPI
options SMP # Symmetric MultiProcessor 
Kernel
device  apic# I/O APIC
device  cpufreq
device  eisa
device  pci
device  ata
device  atadisk # ATA disk drives
device  atapicd # ATAPI CDROM drives
options ATA_STATIC_ID   # Static device

Jailing net/skype

2008-09-11 Thread Tobias Rehbein
Hi all.

I have net/skype installed on my workstation and it just works fine. Now I
wonder if it's possible to run skype in a jail.

Before I start investing time in this I would like to know if someone has
done it before or if it would be just a waste of time.

If someone has a working example I would appreciate some hints how to do this.

Regards

Tobias

-- 
Tobias Rehbein

PGP key: 4F2AE314
server:  keys.gnupg.net
fingerprint: ECDA F300 1B6E 9B87 8524  8663 E8B6 3138 4F2A E314


pgpsgfJ1Rgnmb.pgp
Description: PGP signature


[OT] Why behaves my application different when run in gdb

2008-07-06 Thread Tobias Rehbein
Hi all.

Sorry for asking off-topic questions but I started to dive into C programming. I
know a couple of scripting languages quite well but wanted to learn something
more low level.

What me struck now is the fact that my code will crash (signal 11) while
processing a strcpy. When I run the same thing in gdb it won't crash and whats
even more important to me: It does what I wanted it to do...

Perhaps someone can tell me why a program which crashes repeatedly in console
runs fine in the debugger.

Thanks in advance

Tobias
-- 
Tobias Rehbein

PGP key: 4F2AE314
server:  keys.gnupg.net
fingerprint: ECDA F300 1B6E 9B87 8524  8663 E8B6 3138 4F2A E314


pgphUBdzQVEj0.pgp
Description: PGP signature