/kernel_reloaded/

Author:

Other contacts

Novi članci

Flickr Goodness

Categories

tips&tricks Archive

April 13, 2013 @ 19:52

Tweak Wireless Power Output on OpenWrt and Linux

 
This post is just to remind me later of few misc openwrt wireless commands.
 
First there is no iwconfig you need to install it:
opkg update
opkg install wireless-tools

 
iwconfig command shows current wireless power outpu:
# iwconfig
wlan0 IEEE 802.11bgn Mode:Master Tx-Power=20 dBm

 
Maximal power is defined by multiple capability of your hardware and by laws in your country (regulatory domain).
 
Read rest of story…

Filed under diy, english, linux, tips&tricks, wireless · No Comments »

March 2, 2013 @ 22:42

Formatting output from Raspberry Pi temperature sensors

 
Raspberry Pi crew released tools and drivers than enabled reading from CPU and GPU temperature sensors.
 
In order to read GPU temperature use:
$ /opt/vc/bin/vcgencmd measure_temp
$ temp=43.3′C
 
Reading CPU temperature is similar, just read value from sys file system:
$ cat /sys/class/thermal/thermal_zone0/temp
$ 43850
 
As you can see both outputs need additional formatting to get only number values from them, and if you wish to have decimal precision then it gets a bit more complicated…
 
Read rest of story…

Filed under diy, english, gadgets, linux, tips&tricks · 5 Comments »

January 12, 2013 @ 22:56

Benchmark flash memory on Linux

 
I gathered all my flash based memory devices (USB flash memory sticks and SHDC cards) and wanted to see how do they compare to each other.
 

Quick google search revealed that dd tool could be used for benchmarking so that is what I used. Have you done benchamrs some other way? Please share your method.
 

Be really, really careful if you choose do to write test, because that will ERASE your existing data so test write speed only on EMPTY flash memory devices. Also triple check which device is your flash memory device. Simple typo could render your data partition unusable!
 

I didn’t want to write on the first 1GB of flash memory because that part is probably most often used, I know there are some wear-leveling chips that should take care of that but you can use skip parameter if you wish to be safe. To prefent mesuring your cache performance but actual device performance use iflag and oflag options. 
 

read speed benchmark:

$ sudo dd if=/dev/sdX1 of=/dev/zero bs=1M count=400 iflag=direct

write speed benchmark :

$ sudo dd if=/dev/zero of=/dev/sdX1 bs=1M count=400 skip=1000 oflag=direct


SDHC Card Read speed Write speed
Adata 8GB class 10 20.8 MB/s 10.6 MB/s
Apacer 4GB class 4 15.4 MB/s 3.6 MB/s
LG 2GB class unknown 20.9 MB/s 8.1 MB/s


USB memory stick Read speed Write speed
2GB Transceng VF V90 19.2 MB/s 11.6 MB/s
4GB Kingston DT 108 15.2 MB/s 7.2 MB/s
8GB Kingston DT 2.0 19.0 MB/s 16.0 MB/s
8GB Kingston DT SE9 20.1 MB/s 14.9 MB/s
4GB Red USB 19.8 MB/s 9.0 MB/s
8GB Silicon Power SP 810 24.8 MB/s 5 MB/s

Filed under english, linux, tips&tricks · 4 Comments »

August 10, 2012 @ 13:30

MATE desktop with Compiz Fusion on Fedora 16/17


 
If you are running Fedora 16 or 17 and you are missing your old GNOME desktop with Compiz Fusion effects then you will love this post.
 
Thanks to the great work of Wolfgang Ulbrich for his awesome work on packaging MATE Dekstop for Fedora 16/17 and even bringing it to Fedora 18 by default!
 
Installing MATE desktop is very easy on both Fedora 16 or 17, but installing Compiz Fusion on Fedora 16 is a bit tricky.
 
Read rest of story…

Filed under english, fedora, linux, tips&tricks · 12 Comments »

July 24, 2012 @ 22:35

cli oneliner – sort top 10 directories

 
One simple oneliner that I picked up few years ago, and it is great for finding directories that eat up most of space in current directory.
 
ls -A | grep -v -e '^\.\.$' |xargs -i du -ks {} |sort -rn |head -11 | awk '{print $2}' | xargs -i du -hs {}
 

Filed under linux, tips&tricks · 4 Comments »

May 16, 2012 @ 15:39

lm-sensors automatic deployment, issue with sensors-detect

 
If you wish to deploy lm-sensors on multiple diferent linux machines issue is with sensors-detect what ask you quite a few questions.
 
I asked on IRC and got few suggestions. First one is if you wish to accept defaults which sensors-detect suggest you need just to press [ENTER] all the time. To automate this use this one liner:
 
(while :; do echo ""; done ) | sensors-detect
 
If you wish to override defaults and answer YES to all questions then use this oneliner:
 
yes "" | sensors-detect
 

Filed under english, linux, tips&tricks · No Comments »

April 12, 2012 @ 16:29

Enable ad-hoc wifi networking on Android

 
Google has disabled wireless ad-hoc networking in Android from day one. Underlying Android libraries and wifi stack support adhoc networking and so far Google has provided no explanation why it still, even after four years, leaves adhoc disabled.
 
There has been huge outcry from Android users over this issue, but there is still no answer from Google Android developers.
 
There are few suggestons on xda-developers forum, and also on Stackoverflow, but most solution so far consisted of using new rom that had ad-hoc support enabled or manually messing about system config files.
 
But wait, there is an app for that!
 
Read rest of story…

Filed under english, gadgets, linux, tips&tricks · No Comments »

January 13, 2012 @ 11:56

WordPress post subject name in title (Rhianna theme)

 
Kernelreloaded uses Rihanna WordPress theme by Kineda, and I really love it.
 
One thing I still didn’t change from default is the was it displays posts. Currently no matter which page you are on title doesn’t change, and if you bookmark it you will get only blog name not the post name in the title :(
 
I checked the source of the theme and found the culprit in header.php and the default code is:
title ?php bloginfo('name'); ? /title
 
Because of some protections you can’t see full code on my blog, but check out examples at wordpress wp_title blog and how to change it.
 

Filed under english, tips&tricks · No Comments »

October 5, 2011 @ 17:16

My favorite Firefox Extensions

Filed under općenito, tips&tricks · 10 Comments »

August 25, 2011 @ 8:14

OpenWRT installation from Tomato

 
I have an older Linksys WRT54GL v1.1 with Tomato firmware. Although I’m a hardcore Linux geek I never used OpenWRT, yeah, I know – shame on me ;)
 
OpenWRT wiki has installation instructions that explain how users should first install 2.4 linux kernel based image, set some nvram options, and then install or update to latest 2.6 based firmware image, but WIKI has no links how to do an update.
 
Read rest of story…

Filed under diy, gadgets, linux, tips&tricks, wireless · 5 Comments »

    Recent Comments

    • Zoran Marijanović: Ja sam uvijek naklonjen hp-ovim modelima! Uzeo sam si malo skuplji model; pavilion dv6 na hp...
    • Francesco: this is for xbmc buttons #buttons Wiimote.A = KEY_ENTER Wiimote.B = KEY_BACKSPACE Wiimote.Up = KEY_UP...
    • Thiago: I can think of a Denver property management company or two that could stand to take a leaf out of...
    • Darko Markic: Google karta Hrvatske od sada se može preuzeti i ovdje: http://www.auto-karta-hrvat...
    • Valent Turkovic: 4GB CF card from Igor: Read: 18.3 MB/s Write: 18.3 MB/s

    Archives

    del.icio.us

    Flickr photostream

    User not found

    Meta meta :)