Archive

Posts Tagged ‘ubuntu’

Tired of iPhone hitting CPU usage to 100% on Ubuntu 10.04

December 29th, 2011

If you are one of those that plugs his iPhone or iPod Touch to the Ubuntu box and experiencing an overall slow down, try disabling the gvfs-afc-volume-monitor volume monitor. It will not affect the charging but definitely help keeping your nerve ;)

sudo chmod -x /lib/udev/iphone-set-info /usr/lib/gvfs/gvfs-afc-volume-monitor

Linux , , ,

Get Mac OS X Lion Style Reverse Scrolling On Ubuntu

July 27th, 2011

Just switched to new Mac OS X Lion and adjusting to the reverse scrolling feature, I have started to have problems with the Ubuntu I am using at work. Although it is kind of a mind exercise, I realized that having 2 different scrolling directions at home and at work is not for me. So here is the thing that you should do to have Mac OS X Lion style scrolling at Ubuntu as well.

Just add this command to your startup (System -> Preferences -> Startup Apps):

xmodmap -e "pointer = 1 2 3 5 4"

Linux, MacOS , , ,

INN 2.5 configuration tips

July 3rd, 2009

Been busy configuring an INN 2.5 setup to get header feeds for Newzbox.com, I have a small list of tips to configure INN.

It seems that CNFS is ideal for storing large numbers of posts. Looking at the man page, it can be configured by editing cycbuff.conf file in /etc/news. You need to add lines to configure CNFS files and metadata like this.

1
2
cycbuff:CYC01:/home/news/cycbuff1:2097151
metacycbuff:HEADERS:CYC01

This enables using a file at /home/news/cycbuff1, sized 2097151 Kbytes (2GB is the limit on some systems, and 2GB would be quite sufficient for me now). And by creating a metadata definition named HEADERS, we enable this CNFS file (CYC01) to be used in storage.conf.

We should now edit the storage.conf file to use this HEADERS CNFS files. The lines below tells INN to use it for binaries groups. For all other groups you should add another CNFS file,or maybe a timehash file to store that groups.

1
2
3
4
5
method cnfs {
    class: 1
    newsgroups: *.binaries.*
    options: HEADERS
}

After finishing all configuring stuff, you can reload the server via;

1
/usr/lib/news/bin/ctlinnd reload all reason

But after editing inn.conf and storage.conf files you need to restart innd by the command below.

1
/usr/lib/news/bin/ctlinnd xexec innd

To configure the feed host you need to edit incoming.conf file, and add the lines below.

1
2
3
4
5
peer <myfeed> {
  hostname: feedhost.com
  streaming: true
  max-connections: 10
}

And to add groups to capture, you need to first throttle the server, add the group and start the server again.

1
2
3
/usr/lib/news/bin/ctlinnd throttle reason
/usr/lib/news/bin/ctlinnd newgroup alt.binaries.boneless
/usr/lib/news/bin/ctlinnd go reason

You can use the command below to get the status of CNFS files.

1
/usr/lib/news/bin/cnfsstat

And the command below to get an overall status of the INN.

1
/usr/lib/news/bin/innstat

For more information you can read man pages.

Internet , , ,