Showing posts with label bug. Show all posts
Showing posts with label bug. Show all posts

Thursday, July 14, 2011

Evince would not start over SSH X-forwarding

Evince, which is the primary PDF and PostScript viewer on Ubuntu, recently stopped working on my Ubuntu/Natty (11.04) over SSH X-forwarding. It works flawlessly inside 'gnome-session'. But, would not run as a regular application (e.g. xpdf or gv) over X-forwarded SSH.

After digging up a little bit, I found a lots of these message in my
dmesg output:

[1305902.871825] type=1400 audit(1310620543.587:75): apparmor="STATUS" operation="profile_remove" name="/usr/bin/evince" pid=20166 comm="apparmor

It was obvious that apparmor [1] was blocking Evince to run outside Gnome session over SSH. A solution to disable the AppArmor block on Evince over SSH connection was suggested here [2]:

#inside the gnome-terminal
sudo ln -s /etc/apparmor.d/usr.bin.evince /etc/apparmor.d/disable
sudo /etc/init.d/apparmor restart


And voila! Now Evince can again be launched over SSH.

[1] http://en.wikipedia.org/wiki/AppArmour
[2] http://ubuntuforums.org/showthread.php?t=1472642

Wednesday, May 14, 2008

DCCP-CCID4 bug+patch (p1)


if (hctx->p > 0)
// when loss
{
hctx->x = min(((u64)hctx->x_calc) << 6, min_rate);
low_thresh /= TFRC_T_MBI;
ccid4_hc_tx_x_header_penalty(hctx);
}

else if (ktime_us_delta(now, hctx->t_ld) - (s64)hctx->rtt >= 0)
// no-loss
{
hctx->x = min(2 * old_x, min_rate);
low_thresh = scaled_div(low_thresh, hctx->rtt);
hctx->t_ld = now;
/*ccid4_hc_tx_x_header_penalty(hctx);*/

// babil
// header penalty should not be applied if there's no loss yet
// it will effectively stop the X from growing higher in a small packet and
// low data-rate stream, while the available bandwidth is higher on the link.
}