1 Ocak 2013 Salı

285. Minor bug in ECCE

To contact us Click HERE
I'll classify this as a bug, since the specificity of it surely must mean that it is an unintended behaviour. Basically you lose your hand-edited changes in your input files if you're not careful.

By Editor I don't mean the vim editor, but rather then Job Editor in Ecce.

 A demonstation: 

1. Create an input in ECCE. In this case I created a single-point energy calculation of dioxygen. Hand-edit the input file by clicking on Final Edit and add e.g. maxiter 99 in the dft block.



 2. Run the job


 3. Open the Editor. With the Editor open, click on Run Mgmt/Reset for restart. (In spite of the figure below, it has nothing to do with whether the vim editor is open or not.)

 4. Your hand-edited changes are now gone.



 In contrast, if the Editor is not open when you click on Run Mgmt/Reset for restart the changes will be kept.

286. Briefly: installing the dev.carbon-project.org wine 1.5.5 from debs

To contact us Click HERE
Update: Try this first: http://verahill.blogspot.com.au/2012/11/compiling-wine-155-from-source-using.html
It uses a lot less bandwidth, and involves compiling wine yourself, but using the build instructions from the carbon-project.org

Please Note
For bandwidth reasons please don't use this method if you are satisfied with the version you obtain through compiling by following this method: http://verahill.blogspot.com.au/2012/10/wine-1515-on-debian-testingwheezy.html



A long time ago (http://verahill.blogspot.com.au/2012/01/debian-testingwheezy-64-bit-installing.html) I posted three methods for installing Wine on Debian Testing:
1. Use the Squeeze version
2. Get the Wine-unstable build from http://dev.carbon-project.org/debian/wine-unstable/
3. Compile your own version

I've never managed to build Wine to successfully include OpenCL, gstreamer, or libgsm. Also, there are occasional issues with libjpeg, and I recently have problems with libOSMesa.

So here's an alternative solution for installing a relatively recent version of wine, and it involves no compiling.

Note that it seems that the Wine project uses the traditional way of numbering releases i.e. odd version are development versions i.e. the 1.4 series is stable, the 1.5 series is under development, and the 1.6 series will be the next stable.

Please note what it says on the carbon-dev page:
The amount of traffic this little sub-page generates is quite respectable. If you think this service helpful and want to help cover some of the attached costs, please donate a few Euros, either through PayPal, by flattring this or by donating through Flattr. Thank you! (You can, of course, also donate something, for totally different reasons.)
So at the very least don't download the same packages over and over and keep bandwidth to a minimum.

Anyway, here we go.

0. Clean up
Uninstall any newer version of wine if you've compiled e.g. 1.5.15.
sudo apt-get autoremove wine

1. Download
Get the debs for wine 1.5.5:
cd ~/tmpmkdir wine-1.5.5cd wine-1.5.5/wget -r -l1 --no-parent -A amd64.deb http://dev.carbon-project.org/debian/wine-unstable/
FINISHED --2012-11-28 17:05:04--Total wall clock time: 1m 1sDownloaded: 18 files, 65M in 54s (1.20 MB/s)
cd dev.carbon-project.org/debian/wine-unstable/

2. Install
sudo dpkg -i *.deb
Processing triggers for man-db ...Setting up libwine-alsa-unstable (1.5.5-0.1) ...Setting up libwine-bin-unstable (1.5.5-0.1) ...Setting up libwine-capi-unstable (1.5.5-0.1) ...Setting up libwine-cms-unstable (1.5.5-0.1) ...Setting up libwine-dbg-unstable (1.5.5-0.1) ...Setting up libwine-dev-unstable (1.5.5-0.1) ...Setting up libwine-gl-unstable (1.5.5-0.1) ...Setting up libwine-gphoto2-unstable (1.5.5-0.1) ...Setting up libwine-ldap-unstable (1.5.5-0.1) ...Setting up libwine-openal-unstable (1.5.5-0.1) ...Setting up libwine-oss-unstable (1.5.5-0.1) ...Setting up libwine-print-unstable (1.5.5-0.1) ...Setting up libwine-sane-unstable (1.5.5-0.1) ...Setting up wine-bin-unstable (1.5.5-0.1) ...Processing triggers for mime-support ...Processing triggers for gnome-menus ...Processing triggers for desktop-file-utils ...Setting up wine-unstable (1.5.5-0.1) ...

3. You're done

287. Compiling Wine 1.5.5 from source using the carbon-dev deb patches

To contact us Click HERE
Here's how to build the wine 1.5.5 packages without any errors.

I'm cheating and using the debian rules from dev.carbon-project.org.-- it's a small file and is a better solution than downloading the deb files from there.

Note that you will probably need more packages than the ones listed here.

1. Download the source and debian build patches
cd ~/tmpmkdir wine-1.5.5_carbon/cd wine-1.5.5_carbon/wget http://sourceforge.net/projects/wine/files/Source/wine-1.5.5.tar.bz2mv wine-1.5.5.tar.bz2 wine-unstable_1.5.5.orig.tar.bz2tar xvf wine-unstable_1.5.5.orig.tar.bz2cd wine-1.5.5/wget http://dev.carbon-project.org/debian/wine-unstable/wine-unstable_1.5.5-0.1.debian.tar.bz2tar xvf wine-unstable_1.5.5-0.1.debian.tar.bz2

2.  Edit control, control.in and rules
Allow any version of gcc (this may obviously backfire if your version is no good)
Editdebian/control and control.in

 27  gcc-4.5-multilib [amd64 kfreebsd-amd64], gcc-4.5 [amd64 kfreebsd-amd64] 28  g++-4.5 [amd64 kfreebsd-amd64],

so that is says
 27  gcc-multilib [amd64 kfreebsd-amd64], gcc [amd64 kfreebsd-amd64], 28  g++ [amd64 kfreebsd-amd64],

Edit debian/rules
 53 ifeq ($(DEB_HOST_GNU_CPU),x86_64) 54 CC=gcc-4.5 55 CXX=g++-4.5 56 else 57 CC=gcc 58 CXX=g++

to say
 53 ifeq ($(DEB_HOST_GNU_CPU),x86_64) 54 CC=gcc 55 CXX=g++ 56 else 57 CC=gcc 58 CXX=g++

2. Get dependencies
sudo apt-get install ia32-libs ia32-libs-dev bison flex gcc libc6-dev libfontconfig-dev libfreetype6-dev libglu-dev libgsm1-dev libice-dev libjpeg-dev libldap-dev libmpg123-dev libncurses5-dev libopenal-dev libpng-dev libsm-dev libssl-dev libusb-dev libx11-dev libxcomposite-dev libxcursor-dev libxext-dev libxi-dev libxinerama-dev libxml2-dev libxrandr-dev libxrender-dev libxslt-dev libxt-dev libxxf86vm-dev make libcapi20-dev liblcms-dev libsane-dev libhal-dev libdbus-1-dev valgrind prelink libcups2-dev opencl-dev lib32opencl1 oss4-dev gettext lib32v4l-dev lib32ncurses5-dev lib32asound2-dev libtiff4-dev libgphoto2-2-devsudo apt-get install libxkbfile-dev libxxf86dga-dev freeglut3-dev unixodbc-dev gcc-multilib

3. Compile
in wine-1.5.5/:
dpkg-buildpackage -us -uc
If all went well you saw:
dpkg-deb: building package `wine-unstable' in `../wine-unstable_1.5.5-0.1_amd64.deb'.dpkg-deb: building package `wine-bin-unstable' in `../wine-bin-unstable_1.5.5-0.1_amd64.deb'.dpkg-deb: building package `libwine-dbg-unstable' in `../libwine-dbg-unstable_1.5.5-0.1_amd64.deb'.dpkg-deb: building package `libwine-dev-unstable' in `../libwine-dev-unstable_1.5.5-0.1_amd64.deb'.dpkg-deb: building package `libwine-unstable' in `../libwine-unstable_1.5.5-0.1_amd64.deb'.dpkg-deb: building package `libwine-alsa-unstable' in `../libwine-alsa-unstable_1.5.5-0.1_amd64.deb'.dpkg-deb: building package `libwine-bin-unstable' in `../libwine-bin-unstable_1.5.5-0.1_amd64.deb'.dpkg-deb: building package `libwine-capi-unstable' in `../libwine-capi-unstable_1.5.5-0.1_amd64.deb'.dpkg-deb: building package `libwine-cms-unstable' in `../libwine-cms-unstable_1.5.5-0.1_amd64.deb'.dpkg-deb: building package `libwine-gl-unstable' in `../libwine-gl-unstable_1.5.5-0.1_amd64.deb'.dpkg-deb: building package `libwine-gphoto2-unstable' in `../libwine-gphoto2-unstable_1.5.5-0.1_amd64.deb'.dpkg-deb: building package `libwine-ldap-unstable' in `../libwine-ldap-unstable_1.5.5-0.1_amd64.deb'.dpkg-deb: building package `libwine-openal-unstable' in `../libwine-openal-unstable_1.5.5-0.1_amd64.deb'.dpkg-deb: building package `libwine-oss-unstable' in `../libwine-oss-unstable_1.5.5-0.1_amd64.deb'.dpkg-deb: building package `libwine-print-unstable' in `../libwine-print-unstable_1.5.5-0.1_amd64.deb'.dpkg-deb: building package `libwine-sane-unstable' in `../libwine-sane-unstable_1.5.5-0.1_amd64.deb'.[..]dpkg-source: info: using options from wine-1.5.5/debian/source/options: --compression=bzip2 --compression-level=9dpkg-source: info: unapplying Bug#28201_proposed-fix-modified.patchdpkg-source: info: unapplying Bug#28898_squashed-proposed-patches.patchdpkg-source: info: unapplying fix-winegcc-paths.patchdpkg-source: info: unapplying Bug#29669_proposed-fix.patchdpkg-source: info: unapplying function_grep.patchdpkg-source: info: unapplying readd_xpm.patchdpkg-source: info: unapplying debian-changes-from-1.1.32-1.patchdpkg-buildpackage: full upload (original source is included)

Your packages will be found in the wine-1.5.5_carbon/ directory.
../libwine-alsa-unstable_1.5.5-0.1_amd64.deb../libwine-bin-unstable_1.5.5-0.1_amd64.deb../libwine-capi-unstable_1.5.5-0.1_amd64.deb../libwine-cms-unstable_1.5.5-0.1_amd64.deb../libwine-dbg-unstable_1.5.5-0.1_amd64.deb../libwine-dev-unstable_1.5.5-0.1_amd64.deb../libwine-gl-unstable_1.5.5-0.1_amd64.deb../libwine-gphoto2-unstable_1.5.5-0.1_amd64.deb../libwine-ldap-unstable_1.5.5-0.1_amd64.deb../libwine-openal-unstable_1.5.5-0.1_amd64.deb../libwine-oss-unstable_1.5.5-0.1_amd64.deb../libwine-print-unstable_1.5.5-0.1_amd64.deb../libwine-sane-unstable_1.5.5-0.1_amd64.deb../libwine-unstable_1.5.5-0.1_amd64.deb../wine-bin-unstable_1.5.5-0.1_amd64.deb../wine-unstable_1.5.5-0.1_amd64.deb

If something went wrong, it's probably because of a missing dependency.

To install just run
sudo dpkg -i *.deb in the wine-1.5.5_carbon/ directory.

288. KStar (Australia) 1500 VA UPS on Debian Wheezy with NUT

To contact us Click HERE
NOTE: long day and not quite familiar with this yet, so haven't proof-read this post. Your mileage may vary.

Being fed up with the recent frequency of power-outages in our department building I headed off to MSY and picked up a UPS, the KStar BM3150 1500 VA (link). Oddly enough this seems to be an Antipodean-only UPS, as the main Kstar website doesn't list it.

The UPS comes with a USB port, and if you connect it to a computer you'll find that the UPS is recognised as a Lakeview Research product:

lsusb
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching HubBus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching HubBus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hubBus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hubBus 001 Device 003: ID 0925:1234 Lakeview Research Bus 002 Device 003: ID 0b95:7720 ASIX Electronics Corp. AX88772Bus 002 Device 004: ID 05e3:0606 Genesys Logic, Inc. USB 2.0 Hub / D-Link DUB-H4 USB 2.0 HubBus 002 Device 005: ID 04d9:1603 Holtek Semiconductor, Inc. KeyboardBus 002 Device 006: ID 0461:4d81 Primax Electronics, Ltd
dmesg
[ 424.292130] usb 1-1.3: new low-speed USB device number 3 using ehci_hcd[ 424.389739] usb 1-1.3: New USB device found, idVendor=0925, idProduct=1234[ 424.390648] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0[ 424.391553] usb 1-1.3: Product: UPS USB MON V1.4[ 424.392449] usb 1-1.3: Manufacturer: \xffffffd0\xffffff89\xffffff89[ 424.397491] hid-generic 0003:0925:1234.0004: hiddev0,hidraw3: USB HID v1.00 Device [\xffffffd0\xffffff89\xffffff89 UPS USB MON V1.4] on usb-0000:00:1a.0-1.3/input0
The UPS comes with a CD which contains a full-fledged Windows collection of software, and a pre-compiled shell-only 32 bit binary (need ia32-libs) which is installed via a shell script which needs modification to run properly on Debian. In other words -- it seems to have linux 'support' as a selling point, but not much more. It's so bad that it's not realistically useful.

Googling 0925:124 leads to this post: http://ifireball.wordpress.com/2011/10/13/configuring-aviem-pro2100-ups-on-debian-6-0-stablesqueeze/

The solution below is not particularly elegant -- I compile nut from source to get the udev rules and the richcomm driver, then install the debian nut packages.

cd ~/tmpsudo apt-get install libusb-dev
wget http://www.networkupstools.org/source/2.6/nut-2.6.4.tar.gztar xvf nut-2.6.4.tar.gzcd nut-2.6.4/./configure --with-usb --with-dev
Configuration summary:======================build serial drivers: yes build USB drivers: yes build SNMP drivers: no build neon based XML driver: no enable Avahi support: no build Powerman PDU client driver: no build IPMI driver: no enable SSL development code: yes enable libwrap (tcp-wrappers) support: no enable libltdl (Libtool dlopen abstraction) support: yes build CGI programs: no enable HAL support: no build and install documentation: no build and install the development files: yes
makesudo make install

Things are installed, but in an non-standard place.
/usr/local/ups/bin/nut-scanner
Scanning USB bus.No start IP, skipping NUT bus (old connect method)[nutdev1] driver = "richcomm_usb" port = "auto" vendorid = "0925" productid = "1234" bus = "001"
sudo ln -s /lib/udev/rules.d/52-nut-usbups.rules /etc/udev/rules.d/52-nut-usbups.rulessudo service udev restartsudo apt-get install nut nut-cgi
Edit /ect/nut/ups.conf
[kstar]driver=richcomm_usbport=autodesc='kstar'
Edit /etc/nut/nut.conf
MODE=standalone
Edit /etc/nut/upsmon.conf
MONITOR kstar@localhost 1 upsmon myups master
Edit /etc/nut/upsd.conf
[upsmon]password=myupsupsmon master
Then restart the nut server
sudo service nut-server restartps aux|grep nut
nut 3594 0.0 0.0 16764 592 ? Ss 18:00 0:00 /lib/nut/richcomm_usb -a kstarnut 7179 0.0 0.0 16764 592 ? Ss 18:29 0:00 /lib/nut/richcomm_usb -a kstarnut 7182 0.0 0.0 16900 568 ? Ss 18:29 0:00 /sbin/upsd
upsc kstar
device.mfr: Richcomm dry-contact to USB solutiondevice.model: UPS USB MON V1.4device.serial: unknowndevice.type: upsdriver.name: richcomm_usbdriver.parameter.pollinterval: 2driver.parameter.port: autodriver.version: 2.6.4driver.version.internal: 0.04ups.mfr: Richcomm dry-contact to USB solutionups.model: UPS USB MON V1.4ups.productid: 1234ups.serial: unknownups.status: OLups.vendorid: 0925

Errors:
I'm leaving the various errors here more or less as link-bait. I tried using the NUT in the debian repos, and it gave me nothing than pain.

It's not nicely formatted or anything. Basically, if you see any of the crap below, compile your own version.
./configure --with-drivers=richcomm_usb --with-statepath=/var/run/nut --with-pidpath=/var/run/nut --with-user=nut --with-group=nut
Configuration summary:======================build serial drivers: yes build USB drivers: yes build SNMP drivers: no build neon based XML driver: no enable Avahi support: no build Powerman PDU client driver: no build IPMI driver: no build Mac OS X meta-driver: no enable SSL development code: yes enable libwrap (tcp-wrappers) support: no enable libltdl (Libtool dlopen abstraction) support: yes build nut-scanner: yesbuild CGI programs: no enable HAL support: no build and install documentation: no build and install the development files: no only build specific drivers: richcomm_usb
makesudo make install

Now try to load the driver:
sudo upsdrvctl -u root -D start
Network UPS Tools - UPS driver controller 2.6.4 0.000000 Starting UPS: kstarNetwork UPS Tools - Richcomm dry-contact to USB driver 0.04 (2.6.4)Warning: This is an experimental driver.Some features may not function correctly.
and it didn't really work. Checking dmesg
[282263.171108] usb 1-1.3: usbfs: interface 0 claimed by usbhid while 'richcomm_usb' sets config #1

and looking at
ls /sys/bus/usb/drivers/usb/1-1.3/ -lah
lrwxrwxrwx 1 root root 0 Dec 1 10:09 driver -> ../../../../../../bus/usb/drivers/usb
means that the device already has a driver loaded, so
sudo suecho -n "1-1.3" > /sys/bus/usb/drivers/usb/unbindexitls /sys/bus/usb/drivers/usb/1-1.3/ -lah
ls: cannot access /sys/bus/usb/drivers/usb/1-1.3/: No such file or directory
sudo upsdrvctl -u root -D start
Network UPS Tools - UPS driver controller 2.6.4 0.000000 Starting UPS: kstarNetwork UPS Tools - Richcomm dry-contact to USB driver 0.04 (2.6.4)Warning: This is an experimental driver.Some features may not function correctly.Communications with UPS lost: Query to UPS failed
dmesg
[284116.758107] usb 1-1.3: usbfs: interface 0 claimed by usbfs while 'richcomm_usb' sets config #1[..][284155.661271] usb 1-1.3: usbfs: interface 0 claimed by usbfs while 'richcomm_usb' sets config #1[284155.790409] usb 1-1.3: usbfs: process 17105 (richcomm_usb) did not claim interface 0 before use
sigh...
ls /sys/bus/usb/drivers/usbfs/ -lah
lrwxrwxrwx 1 root root 0 Dec 4 17:07 1-1.3:1.0 -> ../../../../devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.3/1-1.3:1.0
sudo suecho -n "1-1.3:1.0" > /sys/bus/usb/drivers/usbfs/unbindexit
Then try again
  sudo upsdrvctl -u root -D start
Network UPS Tools - UPS driver controller 2.6.4 0.000000 Starting UPS: kstarNetwork UPS Tools - Richcomm dry-contact to USB driver 0.04 (2.6.4)Warning: This is an experimental driver.Some features may not function correctly.Duplicate driver instance detected! Terminating other driver!Communications with UPS lost: Query to UPS failed
So I then did
sudo vim /etc/udev/rules.d/70-ignore-ups.rules
ATTRS{idVendor}=="0925", ATTRS{idProduct}=="1234", OPTIONS=="ignore_device"
sudo service udev restart
Stopping the hotplug events dispatcher: udevd.Starting the hotplug events dispatcher: udevd.
If you get this:
 sudo upsdrvctl -D start
Network UPS Tools - UPS driver controller 2.6.4 0.000000 Starting UPS: kstarNetwork UPS Tools - Richcomm dry-contact to USB driver 0.04 (2.6.4)Warning: This is an experimental driver.Some features may not function correctly.USB device [0925:1234] matches, but driver callback failed: could not detach kernel driver from interface 0: Operation not permitted 0.004077 Driver failed to start (exit status=1)
then you need to make sure to add -u root to upsdrvctl. Also, make sure that the driver versions match.

Ektron eWebEditPro5: Run time Error '0'

To contact us Click HERE
Hi Friends,

If you recently moved to any Siebel Maintenance fix packs 8.0.0.6 and above then you might face an annoying issue with Siebel HTML Editor a.k.a Ektron eWebEditPro Editor!

After you apply the fix pack for Siebel Web Server Extension (SWSE), it upgrades the existing eWebEditPro editor from v4 to v5.

After this upgrade a necessary configuration change is not mentioned in the Maintenance Configuration Section, due to which you will notice that any template tried to be opened in the new HTML Editor results into a blank load & if you right click in the editor it results into a error popup window titled eWebEditProLibCtl5 saying, "Run time error '0'"


 In order to resolve this, you will need to edit the webeditorctrl.htm file under /$SIEBEL_SWSE_ROOT/public/enu/webeditor/

Find out the below code:



and replace it with below code:



After you do this, make sure you do a CLEAR CACHE in your browser else it will still show Javascript errors like:


This happens as the old webeditorctrl.htm file is used from browser cache for loading eWebEditPro Editor.
So ensure you do a clear cache without fail!

Hope this helps resolve patching issue.

Keywords:
siebel crm,siebel customer relationship management,siebel solutions,siebel support,siebel supportweb,siebel systems, SWSE, eWebEditPro, Ektron, HTML Editor, Marketing, WYSIWYG HTML Editor, WYSIWYG, etc.Related Posts : Javascript,SBAv8.0Troubleshooting

31 Aralık 2012 Pazartesi

289. /var/lib/dpkg/status error and fix

To contact us Click HERE
The problem:
e.g.
sudo apt-get install ncurses-bin -fReading package lists... DoneBuilding dependency tree       Reading state information... Donencurses-bin is already the newest version.0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.1 not fully installed or removed.After this operation, 0 B of additional disk space will be used.Do you want to continue [Y/n]? dpkg: error: parsing file '/var/lib/dpkg/status' near line 16892 package 'smbclient': `Depends' field, reference to `libtdb1': version contains ` 'E: Sub-process /usr/bin/dpkg returned an error code (2)

The solution:
Open /var/lib/dpkg/status in e.g. vim and remove the extra space: change from

16892 Depends: samba-common (= 2:3.6.6-3), libc6 (>= 2.10), libcap2 (>= 2.10), libcomerr2 (>= 1.01), libgssapi-krb5-2 (>= 1.10+dfsg~), libk5crypto3 (>= 1.6.dfsg.2), libkrb5-3 (>= 1.10+dfsg~), libldap-2.4-2 (>= 2.4.7), libpopt0 (>= 1.14),       libreadline6 (>= 6.0), libtalloc2 (>= 2.0.4~git20101213), libtdb1 (>= 1.2.7+git201 1214), libtinfo5, libwbclient0 (>= 2:3.6.0~pre3), zlib1g (>= 1:1.1.4)
to
16892 Depends: samba-common (= 2:3.6.6-3), libc6 (>= 2.10), libcap2 (>= 2.10), libcomerr2 (>= 1.01), libgssapi-krb5-2 (>= 1.10+dfsg~), libk5crypto3 (>= 1.6.dfsg.2), libkrb5-3 (>= 1.10+dfsg~), libldap-2.4-2 (>= 2.4.7), libpopt0 (>= 1.14),       libreadline6 (>= 6.0), libtalloc2 (>= 2.0.4~git20101213), libtdb1 (>= 1.2.7+git2011214), libtinfo5, libwbclient0 (>= 2:3.6.0~pre3), zlib1g (>= 1:1.1.4)

You can now continue as normal.

What not to do:

sudo rm /var/lib/dpkg/status

because it gives (if you do touch /var/lib/dpkg/status)

sudo apt-get install ncurses-bin Reading package lists... DoneBuilding dependency tree       Reading state information... DoneThe following extra packages will be installed:  gcc-4.7-base libc-bin libc6 libgcc1 libtinfo5 multiarch-supportSuggested packages:  glibc-doc debconf debconf-2.0 locales

etc.
In other words, suddenly no packages are registered as being installed anymore.

To fix it
sudo cp /var/backups/dpkg.status.0 /var/lib/dpkg/status

And then edit the file as shown above.

290. Compiling Kernel 3.7.* on Debian (Wheezy/testing)

To contact us Click HERE
Update 19/12/2012
On one of my seven boxes I'm having problems with the new kernel, receiving messages such as
pci_pcm_runtime_suspend()azx_runtime_suspend[snd_hda_intel] returns -11
This is a known bug (https://patchwork.kernel.org/patch/1865521/), but as can be seen in that message the patch might not be included until kernel 3.8 (although one of the authors call for a backport to kernel 3.6). Again, this happened only on one out of seven computers tested so far so it might not be a universal problem. See here for how to fix it yourself: http://verahill.blogspot.com.au/2012/12/patching-kernel-371-to-fix.html

Note
 vboxdrv 4.1.18 and nvidia 304.48-1 dkms packages do not seem to play well with 3.7. This is perhaps not that surprising given that wheezy is frozen since June 2012.

* The virtualbox-dkms/vboxdrv (4.1.18-dfsg-1.1) isn't playing ball on 3.7. See e.g. https://forums.virtualbox.org/viewtopic.php?f=7&t=53031 and http://www.kubuntuforums.net/showthread.php?61234-Kernel-update-video-drivers-and-virtualbox

I solved it by going to the virtualbox website and installing their .deb package:
wget http://download.virtualbox.org/virtualbox/4.2.4/virtualbox-4.2_4.2.4-81684~Debian~wheezy_amd64.debsudo apt-get autoremove virtualbox virtualbox-qt virtualbox-dkmssudo dpkg -i virtualbox-4.2_4.2.4-81684~Debian~wheezy_amd64.debsudo /etc/init.d/vboxdrv setup

This works absolutely fine under 3.7 and 3.7.1

* I'm also having issues with building the nvidia dkms module on this kernel. It seems to be a bug which is resolved by upgrading to a newer nvidia driver. http://www.mail-archive.com/desktop-packages@lists.launchpad.net/msg184146.html

Given that Wheezy is frozen since the end of June I suspect that we won't be seeing any fix for this. Instead I ended up installing nvidia-current (310.19) using smxi (smxi.org) and it's working fine (the alt+prtscrn screenshot bug doesn't seem to be resolved though).



Original post:
Be aware that starting with kernel 3.6 you will need to explicitly include compilation of various drivers for multimedia and webcams -- see e.g.
http://verahill.blogspot.com.au/2012/10/compiling-kernel-36-on-debian.html
http://verahill.blogspot.com.au/2012/10/leadtek-dtv-1000s-in-kernel-36-debian.html

Other than that, compiling kernel 3.7.* is pretty straightforward. The ncurses packages are needed only for 'make menuconfig'

sudo apt-get install kernel-package fakeroot build-essential ncurses-bin ncurses-dev
mkdir ~/tmpcd ~/tmpwget http://www.kernel.org/pub/linux/kernel/v3.0/linux-3.7.1.tar.bz2tar xvf linux-3.7.1.tar.bz2
cd linux-3.7.1/cat /boot/config-`uname -r`>.configmake oldconfig

and answer the questions (see bottom of the post for a list of new features).

If you want to specifically include a driver, then the easiest thing to do is:
make menuconfig

and navigating through (or search -- hit / ). E.g. saa7134 is found under Device drivers/Multimedia support/Media PCI adapters/Philips SAA7134 support. Don't forget to compile in remote control support as well if needed.

Continue (replace 4 with whatever is suitable for the number of cores on your system):
make-kpkg cleantime fakeroot make-kpkg -j4 --initrd --revision=3.7.1 --append-to-version=-amd64 kernel_image kernel_headers

This took 20 minutes on a four-core i5-2400..

mv ../linux*3.7*.deb .sudo dpkg -i *.deb

Building failed completely on an AMD 8150FX 8 core system (See bottom of the post). It built fine on first try on all other systems.



Changes (if in doubt, hit enter for the default option):

* CPU/Task time and stats accounting*Cputime accounting> 1. Simple tick based cputime accounting (TICK_CPU_ACCOUNTING) (NEW)  2. Fine granularity task level IRQ time accounting (IRQ_TIME_ACCOUNTING)choice[1-2]: 1Consider userspace as in RCU extended quiescent state (RCU_USER_QS) [N/y/?] (NEW)Module signature verification (MODULE_SIG) [N/y/?] (NEW)Legacy cpb sysfs knob support for AMD CPUs (X86_ACPI_CPUFREQ_CPB) [Y/n/?] (NEW)Packet: sockets monitoring interface (PACKET_DIAG) [N/m/y/?] (NEW)IPv6: GRE tunnel (IPV6_GRE) [N/m/y/?] (NEW) IPv4 NAT (NF_NAT_IPV4) [N/m/?] (NEW)IPv6 NAT (NF_NAT_IPV6) [N/m/?] (NEW)OMAP OCP2SCP DRIVER (OMAP_OCP2SCP) [N/m/y/?] (NEW)  Maximum expected bad eraseblock count per 1024 eraseblocks (MTD_UBI_BEB_LIMIT) [20] (NEW)UBI Fastmap (Experimental feature) (MTD_UBI_FASTMAP) [N/y/?] (NEW)Calxeda Highbank SATA support (SATA_HIGHBANK) [N/m/?] (NEW)Virtual eXtensible Local Area Network (VXLAN) (VXLAN) [N/m/y/?] (NEW) PCH PTP clock support (PCH_PTP) [N/y/?] (NEW)Solarflare SFC9000-family PTP support (SFC_PTP) [Y/n/?] (NEW)Drivers for Atheros AT803X PHYs (AT803X_PHY) [N/m/?] (NEW)MAX310X support (SERIAL_MAX310X) [N/y/?] (NEW)SCCNXP serial port support (SERIAL_SCCNXP) [N/m/y/?] (NEW)TPM HW Random Number Generator support (HW_RANDOM_TPM) [M/n/?] (NEW)TPM Interface Specification 1.2 Interface (I2C - Infineon) (TCG_TIS_I2C_INFINEON) [N/m/?] (NEW)NXP SC18IS602/602B/603 I2C to SPI bridge (SPI_SC18IS602) [N/m/?] (NEW)OMAP HDQ driver (HDQ_MASTER_OMAP) [N/m/?] (NEW)Analog Devices ADT7410 (SENSORS_ADT7410) [N/m/?] (NEW)Maxim MAX197 and compatibles (SENSORS_MAX197) [N/m/y/?] (NEW)generic cpu cooling support (CPU_THERMAL) [N/y/?] (NEW)Fairchild FAN53555 Regulator (REGULATOR_FAN53555) [N/m/?] (NEW)Media USB Adapters (MEDIA_USB_SUPPORT) [N/y/?] (NEW) STK1160 USB video capture support (VIDEO_STK1160) [N/m/?] (NEW)STK1160 AC97 codec support (VIDEO_STK1160_AC97) [N/y/?] (NEW)   Enable debug for the B2C2 FlexCop drivers (DVB_B2C2_FLEXCOP_USB_DEBUG) [N/y/?] (NEW)Media PCI Adapters (MEDIA_PCI_SUPPORT) [N/y/?] (NEW)Enable debug for the B2C2 FlexCop drivers (DVB_B2C2_FLEXCOP_PCI_DEBUG) [N/y/?] (NEW)Media test drivers (V4L_TEST_DRIVERS) [N/y] (NEW)ISA and parallel port devices (MEDIA_PARPORT_SUPPORT) [N/y/?] (NEW)Autoselect tuners and i2c modules to build (MEDIA_SUBDRV_AUTOSELECT) [Y/n/?] (NEW)Maximum debug level (NOUVEAU_DEBUG) [5] (NEW)Default debug level (NOUVEAU_DEBUG_DEFAULT) [3] (NEW)Backlight Driver for LM3630 (BACKLIGHT_LM3630) [N/m/?] (NEW)Backlight Driver for LM3639 (BACKLIGHT_LM3639) [N/m/?] (NEW)Sony PS3 BD Remote Control (HID_PS3REMOTE) [N/m/?] (NEW)HID Sensors framework support (HID_SENSOR_HUB) [N/m/?] (NEW)ZTE USB serial driver (USB_SERIAL_ZTE) [N/m/?] (NEW)Functions for loading firmware on EZUSB chips (USB_EZUSB_FX2) [M/y/?] (NEW)LED support for LM3642 Chip (LEDS_LM3642) [N/m/?] (NEW)LED support for LM355x Chips, LM3554 and LM3556 (LEDS_LM355x) [N/m/?] (NEW)LED CPU Trigger (LEDS_TRIGGER_CPU) [N/y/?] (NEW)Dallas DS2404 (RTC_DRV_DS2404) [N/m/y/?] (NEW)Silicom devices (NET_VENDOR_SILICOM) [Y/n/?] (NEW)Silicom BypassCTL library support (SBYPASS) [N/m/?] (NEW)Silicom BypassCTL net support (BPCTL) [N/m/?] (NEW)Cambridge Electronic Design 1401 USB support (CED1401) [N/m/?] (NEW)Digi Realport driver (DGRP) [N/m/y/?] (NEW) *STE-Modem remoteproc support (STE_MODEM_RPROC) [N/m/y/?] (NEW)SMB2 network file system support (EXPERIMENTAL) (CIFS_SMB2) [N/y/?] (NEW)Red-Black tree test (RBTREE_TEST) [N/m/?] (NEW)Interval tree test (INTERVAL_TREE_TEST) [N/m/?] (NEW)CAST5 (CAST-128) cipher algorithm (x86_64/AVX) (CRYPTO_CAST5_AVX_X86_64) [N/m/y/?] (NEW)CAST6 (CAST-256) cipher algorithm (x86_64/AVX) (CRYPTO_CAST6_AVX_X86_64) [N/m/y/?] (NEW)Asymmetric (public-key cryptographic) key type (ASYMMETRIC_KEY_TYPE) [N/m/y/?] (NEW)Asymmetric public-key crypto algorithm subtype (ASYMMETRIC_PUBLIC_KEY_SUBTYPE) [N/m/?] (NEW)RSA public-key algorithm (PUBLIC_KEY_ALGO_RSA) [N/m/?] (NEW)X.509 certificate parser (X509_CERTIFICATE_PARSER) [N/m/?] (NEW)

AMD FX 8150
My AMD FX8150 is causing no end of problems when it comes to compiling the kernel e.g.

In file included from include/linux/dynamic_debug.h:100:0,                 from include/linux/kernel.h:14,                 from include/linux/sched.h:15,                 from include/linux/blkdev.h:4,                 from drivers/scsi/lpfc/lpfc_sli.c:22:include/linux/string.h:23:1: internal compiler error: Segmentation faultPlease submit a full bug report,with preprocessed source if appropriate.See  /usr/share/doc/gcc-4.7/README.Bugs for instructions.  CC [M]  drivers/scsi/lpfc/lpfc_ct.o[..]  LD [M]  drivers/scsi/osd/osd.o  CC [M]  drivers/scsi/mpt2sas/mpt2sas_ctl.oThe bug is not reproducible, so it is likely a hardware or OS problem.make[4]: *** [drivers/scsi/lpfc/lpfc_sli.o] Error 1make[3]: *** [drivers/scsi/lpfc] Error 2make[3]: *** Waiting for unfinished jobs....