Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - JoakimL

Pages: 1 [2] 3 4 ... 10
16
So I finally got the right combination of time, hardware and disk space to be able to set up a working dev environment. I've tested to compile some modules and everything seems to be OK. First PoC will be to create a work-around for a very annoying bug from UpdateMedia that I'm sure all Scandinavian users will enjoy (and German, Spanish - or whoever have to use a media tagged with anything outside of the small English alphabet). Some news on that to follow next year!

/Joakim

17
Installation issues / Re: Blinking cursor during Kubuntu 8.10 install
« on: December 28, 2011, 04:40:14 pm »
Did you search for anything related to your motherboard, BIOS or graphics card and Linux at the kernel level of 8.10? Did you try lmce 10.04 (it have a very different hardware handling).

/Joakim

18
Users / Re: Torrent installation
« on: December 28, 2011, 02:52:24 pm »
I'm running 10.04 as my main LMCE, most things work absolutely fine. But - it's still alpha code, so anything could happen. But by doing a proper backup before doing any upgrades would take care of that. An of course your mileage will vary, I can only talk about my setup on my hardware.

/Joakim

19
Users / Re: Torrent installation
« on: December 28, 2011, 02:13:01 pm »
Hmm, you're in for a re-install my friend. By adding the Jaunty (9.04) repos you messed up you installation seriously. You can only use repos with the same version as Kubuntu (8.10 or 10.04). With mixed versions you'll get all dependencies going crazy...

After a re-install, I'd go the compile route, if you cannot find a repo with a back-ported or retrofitted torrent package. And do document your solution on the Wiki, that way we all improve. ;-)

/Joakim

20
Installation issues / Re: Blinking cursor during Kubuntu 8.10 install
« on: December 25, 2011, 11:21:51 am »
This depends on your hardware. On my AM2 motherboard I sometimes get similar behaviour; adding NOAPIC and ACPI=OFF to the kernel boot parameters solve it on my hardware. Logging could be enabled by passing loglevel=n to the kernel; n= 0 (fatal) to 7 (debug)


/Joakim

21
Installation issues / Re: Blinking cursor during Kubuntu 8.10 install
« on: December 24, 2011, 11:08:10 am »
With two different disks giving you the same result, there's not much hope it will be better with a third.
Take a look a ACPI and APCI settings when booting from the DVD. Also try an logging option, you might spot what's causing this malfunction.

/Joakim

22
Users / Re: KDE slower than a snail on MD
« on: December 24, 2011, 10:46:52 am »
A few weeks ago I saw some loop in Mythcommflag. The same movie was executed again and again and 10+ processes were running at the same time. I killed them all and restarted the MD; problem solved. After that Mythcommflag is running as it should.
I recall there is a parameter in the MythTV setup where you can control where the Mythcommflag job is executed, though I cannot find it now.

Some googling revieled this that could be worth looking at:
Quote
1) Set max number of jobs to 2. The CPU is dual core and has
hyperthreading enabled, and it handles this without flinching.

2) Enable the ""experimental speedup of commercial detection" option.

With those two settings, I've more than tripled my commercial flagging
throughput.

/Joakim

23
Users / Re: Ad blocking with Squid
« on: December 23, 2011, 09:54:10 pm »
OK, a try for my first diff. I couldn't use SVN (no source tree, I edited the files in the filesystem directly).
I did a diff for the four files and concatednated into one file. However, I'm not sure about the exact syntax for this; I've edited the old and new file names - can you check if this looks OK?

/Joakim

Code: [Select]
diff -Naur /etc/cron.daily/getadblock.sh /etc/cron.daily/getadblock.sh
--- /etc/cron.daily/getadblock.sh 1970-01-01 01:00:00.000000000 +0100
+++ /etc/cron.daily/getadblock.sh 2011-12-23 21:33:02.010158088 +0100

@@ -0,0 +1,59 @@
+#!/bin/sh
+
+### short script that downloads a list of ad servers for use with squid to block ads.
+###
+### details on configuring squid itself can be found here:
+###
+###    http://pgl.yoyo.org/adservers/#withsquid
+###
+### - originally by Stephen Patterson <steve@lexx.uklinux.net>
+### - butchered by Peter Lowe <pgl@yoyo.org>
+### - some LMCE additions by Joakim Lindbom
+
+## set things
+
+# URL of the ad server list to download
+listurl='http://pgl.yoyo.org/adservers/serverlist.php?hostformat=squid-dstdom-regex;showintro=0&mimetype=plaintext'
+
+# location of the list of ad servers used by Squid
+targetfile='/etc/squid/squid.adservers.regex'
+
+# location of a file where hostnames not listed can be added
+extrasfile='/etc/squid/squid-extra.adservers'
+
+# command to reload squid - change according to your system
+reloadcmd='restart squid'
+
+# temp file to use
+tmpfile="/tmp/.adlist.$$"
+
+# command to fetch the list (alternatives commented out)
+fetchcmd="wget -q $listurl -O $tmpfile"
+
+# log file
+logfile='/var/log/pluto/ad-blocker'
+
+## do things
+##
+echo "$(date -R) Getting new refuse list" >> "$logfile"
+
+# get a fresh list of ad server addresses for squid to refuse
+$fetchcmd
+
+# add the extras
+[ -f "$extrasfile" ] && cat $extrasfile >> $tmpfile
+
+# check the temp file exists OK before overwriting the existing list
+if [ ! -s $tmpfile ]
+then
+ echo "$(date -R) temp file '$tmpfile' either doesn't exist or is empty; quitting" >> "$logfile"
+ exit
+fi
+
+cp  $tmpfile $targetfile
+
+# clean up
+rm $tmpfile
+
+# restart Squid
+$reloadcmd
diff -Naur /var/www/wpad.pac /var/www/wpad.pac
--- /var/www/wpad.pac 1970-01-01 01:00:00.000000000 +0100
+++ /varnew/wpad.pac 2011-12-23 21:31:36.212193650 +0100
@@ -0,0 +1,4 @@
+function FindProxyForURL(url, host)
+{
+  return "PROXY 192.168.80.1:3128 ; DIRECT";
+}
diff -Naur /etc/dhcp3/dhcpd.conf /etc/dhcp3/dhcpd.conf
--- /etc/dhcp3/dhcpd.conf 2011-12-23 15:01:38.218633928 +0100
+++ /etc/dhcp3/dhcpd.conf 2011-12-23 21:20:10.680518469 +0100
@@ -25,16 +25,6 @@
 
 option routers 192.168.80.1;
 option subnet-mask 255.255.255.0;
+#JL start
+option wpad code 252 = text;
+option wpad "http://192.168.80.1/wpad.pac";
+
+class "MSFT" {
+        match if substring(option vendor-class-identifier, 0, 4) = "MSFT";
+        option dhcp-parameter-request-list =
+                                concat(option dhcp-parameter-request-list, fc);
+}
+#JL end
diff -Naur /etc/squid/squid.conf /etc/squid/squid.conf
--- /etc/squid/squid.conf 2011-12-23 21:28:06.029187120 +0100
+++ /etc/squid/squid.conf 2011-12-23 21:28:16.196945327 +0100
@@ -601,14 +601,16 @@
 acl all src all
 acl manager proto cache_object
 acl localhost src 127.0.0.1/32
+acl dcerouterlocalnet src 192.168.80.0/24
 acl to_localhost dst 127.0.0.0/8 0.0.0.0/32
 #
 # Example rule allowing access from your local networks.
 # Adapt to list your (internal) IP networks from where browsing
 # should be allowed
-acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
-acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
-acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
+#acl localnet src 10.0.0.0/8 # RFC1918 possible internal network
+#acl localnet src 172.16.0.0/12 # RFC1918 possible internal network
+#acl localnet src 192.168.0.0/16 # RFC1918 possible internal network
+acl localnet src 192.168.80.0/24
 #
 acl SSL_ports port 443 # https
 acl SSL_ports port 563 # snews
@@ -670,11 +672,15 @@
 #
 # INSERT YOUR OWN RULE(S) HERE TO ALLOW ACCESS FROM YOUR CLIENTS
 
+acl ads dstdom_regex -i  "/etc/squid/squid.adservers.regex"
+http_access deny ads
+
 # Example rule allowing access from your local networks.
 # Adapt localnet in the ACL section to list your (internal) IP networks
 # from where browsing should be allowed
-#http_access allow localnet
+http_access allow localnet
 http_access allow localhost
+http_access allow dcerouterlocalnet
 
 # And finally deny all other access to this proxy
 http_access deny all

24
Users / Re: Ad blocking with Squid
« on: December 23, 2011, 06:18:43 pm »
I'm not sure how to make a patch. I could make a script that does all the changes to the config files, if that's ok.

/Joakim

25
Users / Re: Ad blocking with Squid
« on: December 23, 2011, 04:36:17 pm »
And now with auto config using PAC broadcast via DHCP.

/Joakim

26
Users / Ad blocking with Squid
« on: December 22, 2011, 09:54:51 pm »
I fiddled a little with Squid today and now ad blocking is working with LMCE. Follow these instructions: http://wiki.linuxmce.org/index.php/Squid_as_ad_blocker

/Joakim

27
Feature requests & roadmap / Re: Internal network control
« on: December 22, 2011, 09:51:43 pm »
OK, now ad blocking is working in LMCE. Follow these instructions: http://wiki.linuxmce.org/index.php/Squid_as_ad_blocker
And yes - as stated above, don't trust them too much!

/Joakim

28
Feature requests & roadmap / Re: Internal network control
« on: December 22, 2011, 11:30:59 am »
To build on it, adding some basic ad-blocking features could be done in the same package. I've used a very simple approach on my laptop with a hosts file that short circuit a whole bunch of unwanted server (like http://winhelp2002.mvps.org/hosts.txt). That could server as a basis for the DNS server. (If there's time for it during the holidays, I'll take a look at this)

/Joakim

29
Users / Re: Feasibility Question (0810 Home Solution) *Please Lock*
« on: December 22, 2011, 11:20:38 am »
This is a major task and I would suggest it to be divided into several chunks of work based on priority. I assume I have the skills for designing such a solution but I surely don't have the time, paid or not.

/Joakim

30
Users / Re: KDE slower than a snail on MD
« on: December 22, 2011, 11:12:38 am »
My experience is that LMCE is working great on Atom, it's just KDE that's slow.

/Joakim

Pages: 1 [2] 3 4 ... 10