Wednesday, April 3, 2013

Linux Kernel 3.6.7 run and Install it on Ubuntu/Linux Mint

 
 
Here we come to the issue of seventh version maintenance of the family of kernel 3.6, version 3.6.7 . We arrived in a very short time, well seven maintenance releases of the family 3.6.! Apparently the problems never end, and it is essential to update the kernel to avoid running into bugs found in previous versions. In all cases, the update 3.6.7 brings significant improvements in audio handling (ALSA), in particular USB sound cards. We see, also, to solve some annoying bugs that plagued the Radeon drivers and XFS filesystem.

This is following the news, you can also consult the page on the full changelog :

  • ALSA: usb-audio: Fix mutex deadlock at disconnection
  • ALSA: Fix refcount unbalance card
  • ALSA: usb-audio: Fix races at disconnection
  • DRM / Radeon: Fix legacy on primary DAC Load Detection.
  • xfs: fix buffer shudown reference count mismatch
  • xfs: fix reading of wrapped log data
  • cfg80211: fix antenna gain handling
  • drm / vmwgfx: Fix a case where the code would BUG When trying to pin GMR memory
  • drm / vmwgfx: Fix hibernation device reset
  • mmc: sdhci: fix NULL dereference in sdhci_request () tuning
  • l2tp: fix oops in l2tp_eth_create () error path
  • net: usb: Fix memory leak on Tx data path
  • net: fix SecPath kmemleak
  • tcp: fix FIONREAD / SIOCINQ
  • ipv4: Fix flushing of cached routing informations
  • sctp: fix call to SCTP_CMD_PROCESS_SACK in sctp_cmd_interpreter ()
  • batman-adv: Fix broadcast packet CRC calculation
  • NFS: fix bug in legacy DNS resolver.
  • mac80211: fix IBSS SSID copy on JOIN
  • drm/i915: fix overlay on i830M

Install Linux Kernel 3.6.7 on Ubuntu

If you want to easily and quickly install the new kernel on your Ubuntu (12.10/12.04/11.10 the recommended versions), my advice is to rely script found below. That’s all you have to do! Open a terminal and type:

cd / tmp wget
http://dl.dropbox.com/u/47950494/upubuntu.com/linux -kernel-3.6.7-O linux-kernel-3.6.7
chmod x + linux-kernel-3.6.7
sudo sh linux-kernel-3.6.7


Now reboot the system and verify that the version is actually 3.6.6 using the command:
uname-r
As usual, in case you want to remove the new kernel, just follow this guide .
WARNING : If you have any problems (like black screen) and you have an Nvidia card, open a terminal emergency (beating Keyboard ALT + CTRL + F1 , or F2 … up to F8) and type the following commands:
cd / usr/src/linux-headers-3.6.7-030607/arch/x86/include
sudo cp -v generated / asm / unistd *. / asm

Of course, the path to you might be a little different (if, for example, you have a 64, the x86 bit from the previous command could become x86_64).
NB: after installing the new kernel, the possibility exists that some drivers (eg. video and wireless) stop working . It’s all about uninstalling and then reinstalling before rebooting the system (you may find yourself unable to use the graphical interface or the wireless network) or using an old kernel .

Tuesday, April 2, 2013

Transmission 2.74 Released! Install on Ubuntu Enhancements for IPv6



And ‘now available a new update of the Transmission BitTorrent client, that give program version 2.74.  For those who does not know, efficient BitTorrent client Transmission is a feature-rich use rather simple, which comes preinstalled in the desktop environment gtk-based (in particular Transmission is the manager torrent default Ubuntu). This release, in particular, is oriented towards strong improvements both for the integration of the program with the IPv6 protocol for the management of so-called “magnetic link”.  But there is much more: just read the changelog is included below for realizing it!


All Platforms

  • Fix a bug That prevented IPv6 addresses from being saved in dht.dat
  • Better handling of magnet links That Contain ‘tr.x =’ parameters
Add
  • filtering of addresses used for uTP peer connections
Fix detection of
  • Whether or not a peer supports uTP connections

Mac


  • Auto-grouping will not apply until torrents are demagnetized
  • Tweak the inspector’s and add window’s file lists to avoid auto-hiding scrollbars overlapping the priority controls
  • Fix potential crash When downloading and seeding complete at the same time
  • Fix bug where stopped torrents might start When waking the computer from sleep

Web Client

  • Fix a multi-file selection bug
  • Fix bug where the upload and download arrows and rates would not Appear for downloading torrents
  • Fix bug tracker When displaying the list
As always, you can access the release notes going in this page .

Install Transmission 2.74 on Ubuntu 12.04/12.10 (PPA and procedure manual)

If you want to use the PPA, below find the instructions to import and update Transmission. At the time of this writing, however, they are still outdated:
sudo add-apt-repository ppa: transmissionbt / ppa sudo apt-get
update sudo apt-
get install transmission
Since the PPA still pointed to the old version of Transmission, proceed with the installation manual by source. Before proceeding, however, I want to remind you that you can safely wait Transmission is updated within the Ubuntu repositories and update the system easily using the command
sudo apt-get
update sudo apt-get dist-upgrade
If you’re like me, and want to get programs from your system immediately up-to-date , follow the instructions below! First install a little ‘dependencies (yes, we’ll need it) and download the source tarball of Transmission, with the commands
sudo apt-get install automake build-essential autoconf libtool pkg-config libcurl4-openssl-dev intltool libglib2.0-dev libevent-dev-dev libminiupnpc libminiupnpc libappindicator-dev-dev checkinstall
cd / tmp wget

http://download.transmissionbt.com/files/transmission-2.74.tar.bz2
xvjf tar transmission-2.74.tar.bz2
At this point, let us go into source directory, compile the program and …. use checkinstall to install it, so you can comfortably manage in the future by USC / gdebi / dpkg / apt-get / aptitude
cd / tmp/transmission-2.74
. / configure
make
sudo checkinstall
At this point we do not need the source directory (which will be deleted automatically when you restart the system), but it is a good idea to keep a copy Package. deb, so you can easily reinstall if necessary. I will put on my desk!

cp / * tmp/transmission-2.74/transmission. deb ~ / Desktop /
Enjoy!

Slackel 3.0 "Openbox"



Less than two weeks since the release of 2.0, the developers of Slackel, a lightweight Slackware-based distribution, have announced the release of version 3.0: "Slackel 3.0 Openbox has been released. Slackel is based on Slackware Linux and Salix OS. This is an update release. Changes are: Linux kernel 3.4.8 and lots of updates from Slackware's 'Current' tree. Slackel 3.0 Openbox includes the Midori 0.4.9 web browser, Claws-Mail 3.8.1, Transmission, SpaceFM, OpenJRE 7u9, Rhino, Icedtea-web, Pidgin, gFTP, wicd. AbiWord, Gnumeric and ePDFviewer office applications are included. Whaawmp is the default movie player, Exaile 3.3.0 is the application to use for managing your music collection, Asunder CD ripper, Brasero for writing CD/DVDs and more. In the graphics section Viewnior 1.3, GIMP 2.8.4 and Scrot the snapshot utility." Here is the brief release announcement with a screenshot. Download (MD5): slackel64-openbox-3.0.iso (624MB) slackel-openbox-3.0.iso (686MB).

Monday, April 1, 2013

How to save namespaces of XML in dictoinary in Python and Lxml



I have a XML file with many namespaces:
 xmlns:ser="https://some_address" xmlns:mirror="https://some_mirror_address"/>
    server="some_server_address"/>
    default="some_mirror_address"/>
I am using lxml and python to this type of file. Now, My requirement is, When I parse this XML file I need to store all namespaces in a dictionary like:

nsd = {'ser' : 'https://some_address', 'mirror' : 'https://some_mirror_address'}
 
The intention of this, the namespaces are not predetermined. So When I parse the XML I need to store all the namespaces in a dictionary and then proceed with further activities.
Is this possible to achieve in lxml?

Why would sbt reload gen-idea use 6GB of memory?


I'm using the command

sbt reload gen-idea
 
to build a largish (hundreds of thousands of lines of code) IntelliJ Scala project.
After about 30 minutes+, the program is autokilled because it runs out of memory. I checked, and it used 6GB before getting killed.
What's going on? Can I do anything to improve this?
Thanks

Install Chromium OS on USB Flash Drive with Ubuntu/Linux Mint



This article is for those who want to install and run ChromiumOS onto a USB storage device. Let us see how it can be done with the OS image.

Open the terminal and run these commands to download the ChromiumOS image to your home folder:
mkdir ~/ChromiumOS; cd ~/ChromiumOS
wget -c http://goo.gl/ICSpt -O ChromeOS-Vanilla-3274.0.zip
unzip ChromeOS*.zip
mv ChromeOS*.img ChromeOS.img
Run the following commands and to identify the USB device:
fdisk -l
If you mounted the USB flash drive as /dev/sdb1 on your system.  Use the command and unmount the USB device:
sudo umount /dev/sdb1
Use your USB device name and replace /dev/sdb1
Run the following command to create a bootable USB device with the Chrome OS image. It will delete all data from your USB device.
sudo dd if=ChromeOS.img of=/dev/sdb1 bs=4M
Or
sudo dd if=ChromeOS.img of=/dev/sdb1 oflag=direct
Boot from the Chromium OS USB flash drive after finishing the process. To boot from USB storage devices, you can use the Plop boot loader too. the ChromiumOS VM can download and use from http://goo.gl/G0ZSk when you fail to create a bootable USB stick.