tag:blogger.com,1999:blog-62738186848314543062024-03-18T11:48:25.542+02:00cat **/*Akshaalhttp://www.blogger.com/profile/05677582369584740657noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-6273818684831454306.post-62216434609220577422009-11-26T14:27:00.003+02:002009-11-26T14:32:14.087+02:00Upgrade of FirefoxAfter apt-get dist-upgrade I got this "Could not initialize the browser's security component. The most likely cause is problems with files in your browser's profile directory. Please check that this directory has no read/write restrictions and your hard disk is not full or close to full. It is recommended that you exit the browser and fix the problem. If you continue to use this browser session, you might see incorrect browser behavior when accessing security features."<br /><br />I tried many possible solutions discovered in internet, but the only thing helped was removing of secmod.db file from my profile directory of firefox. I have no idea what this file is for, but it works. If you are having the same problem, backup your ~/.mozilla directory first before trying this or other solution which involves removing of files.Akshaalhttp://www.blogger.com/profile/05677582369584740657noreply@blogger.com0tag:blogger.com,1999:blog-6273818684831454306.post-3631944728026534222009-10-02T18:53:00.003+03:002009-10-02T19:09:42.351+03:00Auto-mount with halevthalevt is good piece of software but by default it mounts disks in a way very inconvenient for me - that is mount points are like '/media/disk' '/media/disk-1/ '/media/disk-2' and so on. In order to help myself find disks more easily I've reconfigured halevt and created a script. Now I have /media/Cruzer-d4ba-1 and /media/Cruzer-a5e1-1 mountpoints for my two Sandisk USB sticks. And there are SD_Reader-a6a1-1, SD_Reader-a6a1-2, SD_Reader-a6a1-3 (three partitions) for the SD card I've inserted into a reader. A mountpoint name is composed by concatenating storage model name, short version of storage serial id and partition number. This is done by the following script (~/bin/halevt-mount-helper):<pre>#!/bin/sh<br /><br />STORAGE=`hal-get-property --udi "$1" --key block.storage_device`<br />PARTITION=`hal-get-property --udi "$1" --key volume.partition.number`<br />UUID=`hal-get-property --udi "$STORAGE" --key storage.serial | md5sum | head -c 4`<br />MODEL=`hal-get-property --udi "$STORAGE" --key storage.model | sed 's/ /_/g' | sed 's/^USB_//g'`<br /><br />MPOINT="$MODEL-$UUID-$PARTITION"<br /><br />halevt-mount -u "$1" -p "$MPOINT" -o sync -m 007</pre><ad></ad>The script is used by configuring halevt with the following line instead of the default "halevt:insertion" line in halevt configuration file (/etc/halevt/halevt.xml or ~/.halevt/halevt.xml):<pre> <halevt:insertion exec="halevt-mount-helper $hal.udi$"></pre>Akshaalhttp://www.blogger.com/profile/05677582369584740657noreply@blogger.com0tag:blogger.com,1999:blog-6273818684831454306.post-15534963780288953562009-03-15T16:01:00.004+02:002010-01-26T22:49:23.339+02:00Pictures of Linux and Android on Fujitsu-Siemens Loox N560<a href="http://picasaweb.google.com/lh/photo/CUrNwUv_XICGqKQKeMx6rA?authkey=Gv1sRgCMTt-MKs5cTh6wE&feat=embedwebsite"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhHPipxiFLXQ3xA743U47IXU9nsVCefgZ6PkBymR9Slh8R4zp_OxWYogjirzfPkFNXwxAcVaRG24YK41gGn_b5Teiz5Q4c2kHRe22nVyG4nUhuketzY80Eq-vN05xt43ypMj55bmjR3IFHb/s400/n560-1s.jpg" /></a><br />Today the desteny of WM5 is only to be replaced with Linux<br /><br /><a href="http://picasaweb.google.com/lh/photo/Wdt450DQpEcjKa1aIu3iUA?authkey=Gv1sRgCMTt-MKs5cTh6wE&feat=embedwebsite"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2Le3lTgew4AIitvwoxRLGr5jN4qeqbuZLlD1pfpZjH2BWk1bnmtPjRGY06TPgop4floQgz4d7T0ypVo1CidHyzvsew5TQgFC8V8wNPn-HHxSo6nFLBD4dm8z4x5GjJA66ewNmyK1oqzYQ/s400/n560-2s.jpg" /></a><br />Haret.. all you need is to press Run<br /><br /><a href="http://picasaweb.google.com/lh/photo/LQ7LXZhb1hXw6cwFARC4pg?authkey=Gv1sRgCMTt-MKs5cTh6wE&feat=embedwebsite"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjlozCBxeDrqz9830_QbHaFo8LYsPSVMfPVX8OkHm5EDtV4XNzNGyxxvGTiFiSVbnlrNHlfJxFQfIKdcMi8MCdUUhxJ0jFayy5tc3duNbGf0U15jwKKqIhlLjTbujUyze8f-EFzlZAg-dnC/s400/n560-3s.jpg" /></a><br />Android on Loox N560<br /><br /><a href="http://picasaweb.google.com/lh/photo/K2EytIW2FJWybumV11UTRg?authkey=Gv1sRgCMTt-MKs5cTh6wE&feat=embedwebsite"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOvmMjWCSe0-jN7MRxqKGadD47YvQYMYoTeyAp8CLJdSUzrIbDNn2fAt-w-FNAilCIpearZx66_aqIQSVPCGUBG1MbJxtAVqEmt3TIkYW2F-D9XBR1n8pe23RKy5lEFrHZZ4am1KKQH_Rb/s400/n560-4s.jpg" /></a><br /><a href="http://www.akshaal.info/2009/03/install-emdebian-on-arm-device.html">Installation of debian</a> on Loox N560<br /><br /><a href="http://picasaweb.google.com/lh/photo/ReuuEUcxhZ4y-Es7lRGneQ?authkey=Gv1sRgCMTt-MKs5cTh6wE&feat=embedwebsite"><img src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-6d-XniFGV7jx94znOxlRg-IvxPhHIWAdr7EH4bYrhvQcidLbdGgb2h9-J-VokNJLJ-86sDHr0CAoovBf2sLMqwhcVnUTevuzsF6mxGs1pXMAkAGPjn_G7o-G9XIaoZMyog1CoQxiVUMQ/s400/n560-5s.jpg" /></a><ad></ad><br /><a href="http://www.akshaal.info/2009/03/install-emdebian-on-arm-device.html">Installation of debian</a> on Loox N560Akshaalhttp://www.blogger.com/profile/05677582369584740657noreply@blogger.com21tag:blogger.com,1999:blog-6273818684831454306.post-28696361298205727202009-03-10T10:19:00.004+02:002009-03-10T10:40:15.155+02:00Cross-Packaging On DebianDebian/Emdebian already has tons of packages. But sometimes you have a need to package or repackage a piece of software yourself. The following may be helpful if a platform you build for is not the platform you build on.<br /><br />Use the following command to build a package from a repository of apt:<pre>emsource --arch armel -b memtester</pre><br />If you need to install a package for target on your host:<pre><br />dpkg-cross -a armel -i zlib1g-dev_1.2.3.3.dfsg-13em1_armel.deb<br /></pre>The command <i>dpkg -l | grep zlib1g</i> will show you:<pre><br />ii zlib1g-dev-armel-cross 1:1.2.3.3.dfsg-13em1<br /></pre><ad2></ad2><br />(dpkg-cross automatically converts package names and moves content under the /usr/arm-linux-gnueabi (for armel target))<br /><br />You need to configure <i>~/.apt-cross/emsource</i> to use <i>emsource</i> without privileges of root. The content of the file may look like:<pre><br />workingdir: /home/akshaal/.apt-cross-working-dir<br /></pre><br />In a case you need to build a package from sources that have already been downloaded, use the following command:<pre><br />dpkg-buildpackage -aarmel</pre>Akshaalhttp://www.blogger.com/profile/05677582369584740657noreply@blogger.com0tag:blogger.com,1999:blog-6273818684831454306.post-91371300565794869242009-03-08T22:11:00.005+02:002009-03-08T22:44:54.171+02:00Install emdebian on ARM deviceHere is how I've successfully installed emdebian on my Fujitsu-Siemens Loox N560. I assume there is an already installed emdebian-tools package and cross-compilers. Next thing is to run the following commands:<pre>cd /tmp;<br />mkdir grip/<br />sudo debootstrap --arch=arm --foreign lenny grip/ http://www.emdebian.org/grip/<br />cd grip/<br />sudo tar -czf /tmp/emdebian-grip-arm-debootstrap.tgz .</pre><br />Then SD card is to be partitioned with fdisk. For example it could be:<pre><br />cfdisk /dev/sdX<br />mkfs.ext3 /dev/sdXy</pre><br />where sdX - is a device for an SD card. And sdXy is a partition that is supposed to be used for linux on the SD card. Then mount the linux partition and untar the emdebian-grip-arm-debootstrap.tgz:<pre><br />mount /dev/sdXy /mnt<br />cd /mnt<br />tar zxpvf /tmp/emdebian-grip-arm-debootstrap.tgz<br />ln -s bin/sh init<br />cd /tmp<br />umount /mnt<br /></pre><br />Now we can boot linux from the partition. When linux has booted and a command line appeared, run the following commands step by step:<pre>cd /debootstrap<br />export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin<br />run ./debootstrap --second-stage<br />dpkg --configure -a<br />rm /init<br />cd /<br />ln -s sbin/init init<br /></pre><ad2></ad2><br />Now it is time to reboot linux again. This time a login prompt should work. Use root login and no password. Then configure basic settings:<pre><br />echo 'nameserver 1.1.1.1' > /etc/resolv.conf<br />echo '127.0.0.1 localhost' > /etc/hosts<br />echo '172.16.0.2 myhost 172.16.0.2' >> /etc/hosts<br />echo 'myhost' > /etc/hostname<br /></pre><br />use actual nameserver IP instead of 1.1.1.1. Reboot PDA one more time. Then configure network:<pre><br />ifconfig usb0 172.16.0.1 netmask 255.255.255.0<br />route add default gw 172.16.0.1</pre>Make sure network is up and running. Then upgrade your installation:<pre><br />echo 'deb http://www.emdebian.org/grip/ sid main' > /etc/apt/sources.list<br />apt-get update<br />apt-get dist-upgrade<br />apt-get install ...whateveryoulike...</pre><br />And configure network properly.<pre>cat > /etc/network/interfaces<br />auto lo<br />iface lo inet loopback<br />allow-hotplug usb0<br />iface usb0 inet static<br /> address 172.16.0.2<br /> netmask 255.255.255.0<br /> network 127.16.0.0<br /> broadcast 172.16.0.255<br /> gateway 172.16.0.1<br /> dns-nameservers 1.1.1.1<br /> dns-search your.domain<br /></pre><ad></ad>Akshaalhttp://www.blogger.com/profile/05677582369584740657noreply@blogger.com4tag:blogger.com,1999:blog-6273818684831454306.post-53783912650830139242008-02-02T16:00:00.001+02:002009-02-22T17:41:26.802+02:00Debian + Eclipse + Java + AMD64This is for those who use debian on amd64 with java from package . If you have a problem running eclipse (exit code=13 or alike) just install sun's java and enjoy! There is a something wrong with the java package in debian (sun-java6-*). I've spent two days trying get it to work.<ad2></ad2>Akshaalhttp://www.blogger.com/profile/05677582369584740657noreply@blogger.com0