Kali Linux and Intel Wireless A 7260

My experience with this started when installing Kali Linux amd64 on a new laptop that had this wireless network adapter(Intel Centrino Advanced-N 7260). After install finished succesfully I noticed that there is no wireless network adapter:

$ sudo iwconfig
eth0 no wireless extensions.
lo no wireless extensions.

Nothing else here.
The I spotted this:
$ sudo cat /var/log/syslog | grep 7260
[ x.975154] iwlwifi 0000:04:00.0: firmware: agent aborted loading iwlwifi-7260-7.ucode (not found?)
[ x.975346] iwlwifi 0000:04:00.0: request for firmware file ‘iwlwifi-7260-7.ucode’ failed.

After a bit a googling I found this post: http://askubuntu.com/questions/322511/no-wireless-with-intel-centrino-advanced-n-7260

Of course the devil is in the details so the solution is a bit hidden. To cut it short that’s what worked for me; first you have to install Linux Kernel 3.11 RC4 http://linuxg.net/kernel-3-11-rc4-has-been-released-how-to-install-the-linux-kernel-3-11-rc4-on-ubuntu-debian-and-linux-mint/ :

$ sudo apt-get install firmware-nonfree
$ wget -c kernel.ubuntu.com/~kernel-ppa/mainline/v3.11-rc4-saucy/linux-headers-3.11.0-031100rc4_3.11.0-031100rc4.201308041735_all.deb
$ wget -c kernel.ubuntu.com/~kernel-ppa/mainline/v3.11-rc4-saucy/linux-headers-3.11.0-031100rc4-generic_3.11.0-031100rc4.201308041735_amd64.deb
$ wget -c kernel.ubuntu.com/~kernel-ppa/mainline/v3.11-rc4-saucy/linux-image-3.11.0-031100rc4-generic_3.11.0-031100rc4.201308041735_amd64.deb

(This is of course for the x64 arch)

$sudo dpkg -i *.deb
$ sudo modprobe -r iwldvm
$ sudo modprobe -r iwlwifi
$ sudo modprobe iwlwifi

After this:

$sudo iwconfig
eth0 no wireless extensions.

lo no wireless extensions.

wlan0 IEEE 802.11bgn ESSID:off/any
Mode:Managed Access Point: Not-Associated Tx-Power=0 dBm
Retry long limit:7 RTS thr:off Fragment thr:off
Encryption key:off
Power Management:on

So that’s it. Hope that this will help someone out there.

The laptop in question was a Lenovo ThinkPad S440.

Quinto Labs Content Security 2 Django Error

So if you follow exactly the tutorial on integrating with apache you won’t get into any trouble. But if you don’t, and the line:

$sudo ./qlproxy_django/bin/easy_install django==1.3.1 lacks the version number or you’ve got previously a newer django version, you’ll get into an error like this:

ImportError at /
Import by filename is not supported.Request Method: GET
Request URL: http://hostname/
Django Version: 1.4
Exception Type: ImportError
Exception Value: Import by filename is not supported.
Exception Location: /var/opt/quintolabs/qlproxy/www/qlproxy_django/lib/python2.6/site-packages/Django-1.4-py2.6.egg/django/utils/importlib.py in import_module, line 35
Python Executable: /usr/bin/python
Python Version: 2.6.6
Python Path: [‘/usr/local/lib/python2.6/dist-packages/virtualenv-1.7.2-py2.6.egg’,
‘/var/opt/quintolabs/qlproxy/www/qlproxy_django/lib/python2.6/site-packages/setuptools-0.6c11-py2.6.egg’,
‘/var/opt/quintolabs/qlproxy/www/qlproxy_django/lib/python2.6/site-packages/pip-1.1-py2.6.egg’,
‘/var/opt/quintolabs/qlproxy/www/qlproxy_django/lib/python2.6/site-packages/Django-1.4-py2.6.egg’,
‘/usr/lib/python2.6’,
‘/usr/lib/python2.6/plat-linux2’,
‘/usr/lib/python2.6/lib-tk’,
‘/usr/lib/python2.6/lib-old’,
‘/usr/lib/python2.6/lib-dynload’,
‘/usr/local/lib/python2.6/dist-packages’,
‘/usr/lib/python2.6/dist-packages’,
‘/usr/lib/pymodules/python2.6’,
‘/var/opt/quintolabs/qlproxy/www/qlproxy/’,
‘/var/opt/quintolabs/qlproxy/www/qlproxy_django/lib/python2.6/site-packages’]

The error appear because you have a newer Django version than 1.3.1.

This error and a lot more information would appear only if you have DEBUG = True in your Django settings file.

Recovering from this is pretty simple:

 

#apt-get install httpd mod_wsgi python-setuptools
#easy_install virtualenv
#cd /var/opt/quintolabs/qlproxy/www
#virtualenv –no-site-packages qlproxy_django
#./qlproxy_django/bin/easy_install *django==1.3.1*

Got from here:

http://groups.google.com/group/quintolabs-content-security-for-squid-proxy/browse_frm/month/2012-04

Squidview + Squid 3

I post this as a reminder, the solution to this problem found on this post: http://adminnetworks.blogspot.com/2011/05/instalar-squidview-en-debian.html

So what is all this about? When I first installed Squid v3 on a system and tried to run Squidview (of course everyone knows tail –f /var/log/squid3/access.log) but got this error: “The squid log file cannot be read.

It was clear enough that it looks for the log file in a place that doesn’t exist so I guessed that’s the location of the old 2.x Squid, /var/log/squid/access.log . But to my surprise squidview doesn’t have any config file, the location is hardcoded.

So the solution is to create a softlink like this:

ln -s /var/log/squid3/ /var/log/squid

Now squidview starts as it should. That simple!