Categories
Linux

Number of files in directory (recursive file count)

ls -1R | wc -l

ls -1R | grep .*.mp3 | wc -l

Categories
Windows

VirtualBox Change UUID in Windows

C:\Program Files\Oracle\VirtualBox>VBoxManage.exe internalcommands sethduuid “E:
\virtual_disks\SL62a.vdi”

Categories
Linux

How to find out Memory Slot / Size on Linux?

$ dmidecode -t 17

Categories
Linux

Finding a File containing a particular text string in Linux server

http://www.cyberciti.biz/faq/howto-search-find-file-for-text-string

Categories
Linux

Recover MySQL root Password

http://www.cyberciti.biz/tips/recover-mysql-root-password.html

Categories
Android

Android /rw system partition

busybox mount -o rw,remount /system

Categories
Linux

How to rm files recursively?

find . -name ‘*attach*’ | xargs rm

To be even MORE accurate

find . -name ‘*attach*’ -print0 | xargs -0 rm

Will make sure you process any pesky files with spaces in their names

http://forums.whirlpool.net.au/archive/350903

Categories
Network

Asus RT-N16 bricked? dd-wrt? tomato?

I would say: It’s almost impossible to brick this device.

http://tomatousb.org/tut:installing-on-asus-routers-rt-n16-etc-in-linux

http://tomatousb.org/tut:installing-on-asus-rt-n16

http://concentriclivers.com/?&p=Tomato

A word of advice:

After tftp the firmware, wait 5 minutes instead of 1 minute. Then

unplug power,

wait 10 sec,

plug in power,

wait 20 sec.

You should be able to go to 192.168.1.1

If not working try different browser. Once everything is working,

unplug power again,

hold down wps button while plugging in power.

keep holding for 30 sec.

That will reset the nvram.

 

All set.

Categories
Network

Tomato vs. DD-WRT on Asus RT-N16

Last 5 to 6 years I have been using DD-WRT and didn’t even try Tomato. But from now on, Tomato it is.

Tomato = all feature of DD-WRT + all factory firmware feature + extra stuff.

Just give it a try.

Some links:

http://www.dd-wrt.com/wiki/index.php/Asus_RT-N16

http://tomatousb.org/forum/t-251656/installing-on-rt-n16

http://tomatousb.org/forum/t-304930

http://www.dd-wrt.com/phpBB2/viewtopic.php?p=388920#388920

http://www.smallnetbuilder.com/wireless/wireless-features/30396-thinking-of-upgrading-to-draft-11n-heres-what-id-do

http://www.smallnetbuilder.com/wireless/wireless-basics/30664-5-ways-to-fix-slow-80211n-speed

 

debwrt: Full debian on the rt-n16 http://dev.debwrt.net/wiki/AsusRT-N16

 

My word of advice: just get a cheap gigabit switch if you want to save money and just need home networking.

Max speed I got from usd storage = 10MBps (with tomato), 8MBps (with dd-wrt), 2.5MBps (with asus firmware). Talking about read and write average here.

On other hand:

Wireless N doesn’t seem work great with combination of wireless G devices. So, at the end 300Mbps goes down to 54Mbps.

 

Exploring more…

Categories
Linux

inode count linux command

find ./ -printf %i’\n’ | sort -u | wc -l