T'Krin's Realm

My yammerings…

Tuesday, November 20, 2012

Netflix Unofficially on Ubuntu!

Very cool. The only thing I really use Windows for, other than work.

Taken from the offical post for this, it can be added via a PPA as follows:

sudo apt-add-repository ppa:ehoover/compholio

sudo apt-get update && sudo apt-get install netflix-desktop

I installed in Xubuntu 12.04 and it works great so far. YMMV though, but hopefully not.

posted by tkrin at 5:18 PM  

Thursday, May 24, 2012

Find files of particular size in Linux

If you want to find all files on a system or particular path and output the information with each files size and the total size of all the files you can issue the following commands:

All files less than 100MB:

find . -type f -size -100M -print0 | xargs -0 du -chs

All files equal to 100MB:

find . -type f -size 100M -print0 | xargs -0 du -chs

All files more than 100MB:

find . -type f -size +100M -print0 | xargs -0 du -chs

In “find”, using the “-type f” isolates the output for files only and will not include directories. If directories are included, you will get incorrect numbers when looking for the files smaller than your desired size, as directories themselves are just small files and will show up without specifying the search if for files only. Give this a try:

find . -size -100M -print0 | xargs -0 du -chs

and you will notice that the total size will be different, because it includes directory names.

The reasons that “find” is piped to “xargs” is that the file listing will be too long if searching an entire system and if there are spaces in files names, the “-print0″ option to “find” will supply information to “xargs” so that it can pass the file names to “du” in a manner that it can use to determie file sizes.

posted by tkrin at 4:18 PM  

Tuesday, September 6, 2011

Pseudo dynamic memory management in Virtualbox, otherwise know as memory ballooning.

After looking for a way to dynamically allocate memory in Virtualbox, I discovered it’s not technically possible. With that being said, there is a method that Virtualbox calls memory ballooning, due to the way memory is handled, that can serve basically the same purpose. In the documentation, there is a section just for Memory Ballooning. Hope this helps someone.

posted by tkrin at 2:58 PM  

Thursday, August 4, 2011

CentOS 6: the perfect server

A nice write up by Vytautas Gimbutas can be found at http://www.gimbutas.net/2011/07/17/centos-6-the-perfect-server-web-mail/#comment-15.

Have fun with CentOS 6.

posted by tkrin at 11:35 AM  

Tuesday, April 5, 2011

Malware0gen Virus Removal

Info on removing a variant of the Malware0gen virus can be found on the NMP Consulting Blog.

posted by tkrin at 10:29 AM  
Next Page »

Powered by WordPress