Working with virtual disks is pretty straight forward. If you have a single partition virtual disk you can mount or fsck the image file directly. It is a bit more work if you have multiple partitions on the disk, but not to worry 🙂
First, map op the partitions on the device:
[root@hostname images]# kpartx -v -a imagename.img
add map loop0p1 : 0 8369802 linear /dev/loop0 63
add map loop0p2 : 0 224910 linear /dev/loop0 8369865
This creates mappings for the device that can be accessed easily with for example fsck:
[root@hostname /]# fsck.ext3 /dev/mapper/loop0p1
e2fsck 1.39 (29-May-2006)
/: clean, 87953/1046528 files, 588235/1046225 blocks
You can even easily mount the partitions:
[root@hostname /]# mount -o ro /dev/mapper/loop0p1 /mnt
To clean up after your self (after unmounting any mounted partitions):
[root@hostname /]# kpartx -d /dev/loop0
Gartner foretold last year that Android would become the worlds No.2 operating system on mobile devices, but it looks like christmas came early this year. Android has now climbed up to a 2.place already, way ahead of Apple`s iOS.
The rankings now is:
1: Symbian (36.6%)
2: Android ( 25.5%)
3: iOS (13.48%)
You can check the complete list at Gartner.
Apparently, the bosses over at Google is very, very happy with their employee`s. Their CEO has just announced that all employees will get at 10% raise minimum from january 1st. And just to make it even better, all employees receive a $1000 cash bonus for the holidays.
The source of this is a internal memo stating:
…We believe we have the best employees in the world. Period. The brightest, most capable group of this size ever assembled. It’s why I’m excited to come to work every day–and I’m sure you feel the same way. We want to make sure that you feel rewarded for your hard work, and we want to continue to attract the best people to Google.
Not bad! 🙂
This error is most likely caused by you missing the GeoIP.dat file. Simply download it from Maxmind.com and place it in /usr/share/GeoIP/ (or another path if that is the case)
And that should be enough, no restart of any service is needed 🙂
Opera has finally released a new version of it`s browser for the Android platform. Another version of the browser has been on Android Market for quite some time, but this has lacked features that even the default browser has had, and therefore making it not to tempting to use. But it looks like this has changed! 🙂
The new version has these features:
– Opera Turbo taking care of speeding up content loaded
– Ability to zoom and pan(finally!)
– Speed Dial
– Visual tabs
– Geo location support
– Ability to sync bookmarks across devices
– SVG support
I have still not had the time to test this version but the ability to zoom/tan alone is enough to make me give it a new try 🙂
Opera Mobile is available for Android users in the following 18 versions: Chinese Simplified, Chinese Traditional, Czech, Danish, Dutch, English, French, German, Italian, Japanese, Korean, Norwegian Bokmål, Norwegian Nynorsk, Polish, Portuguese, Russian, Spanish and Swedish.
Red Hat does not natively support NRPE/Nagios with the default package manager. Luckily, DAG can save the day 🙂
Simply add the mirror spesified in the link above to your server and you get the ability to add the NRPE or other Nagios packages without too much hazzle.
In my case with a 64bit system, the way to get NRPE installed was as simple as this:
rpm -Uhv http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
yum install nagios-nrpe
Remember the good old Geocities hosting sevice? The service was announced to close around april of 2009. At the same time, many geeks around the world started crawling all they could find of Geocities sites in order to save a piece of web history. The result was a staggering 640GB torrent that was released last week. The torrent is compressed and the uncompressed size is said to be just about 900GB.
So get it today if you are interested! 🙂
(I started downloading it when it was released and still have 540GB left….)
If you recieve “404 Not found” during a apt-get update / apt-get upgrade, the problem can be one of two things:
1) Your Ubuntu installation is no longer supported.
You can check this by comparing the output of the command:
against the list of Ubuntu releases here:
https://wiki.ubuntu.com/Releases (Notice “End of Life” date)
If your release has reached end of life, you can do upgrade to a new release by following the guide here:
2) Temporary problems
The mirror(s) you are using can have temporary problems, in such case you should simply try again later.
Is your Windows 7 installation slow? Here are some tips on how to improve the performance easily!
1) Make sure you have enough RAM on your machine, at least 2 GB
Windows and all applications you use each need their dose of RAM, and if you need more than you have, Windows will swap.
You should also consider even more RAM if you do a lot of photo or video editing.
2) Disable the Search Indexing Feature in Windows 7
Unless you search a lot on your computer, keeping this feature active just causes a lot of work for the operating system.
- Right click on My Computer, select Manage
- Click “Services and Applications”
- Choose Services
- Locate the “Windows Search” service
- Change “Startup type” to Disabled
3) Disable “the fancy GUI”
The standard GUI for Windows 7 does take a lot of resources. You can disable it quickly by:
- Right click on My Computer, select properties
- Select “Advanced system settings” in the left menu
- Select the Advanced tab
- Choose settings under Performance
- Select “Adjust for best performance”
- And click “Ok”
4) Get a USB Stick or a SD card
If you do not have a SSD drive for your computer, Windows can use USB drives or SD cards to speed up itself automatically.
- Plug in either a USB stick or a SD Card
- Right click the device in “My Computer”
- Select ReadyBoost
- Select how much of the device you want to dedicate for it
- And click Ok
5) Disable unwanted programs from starting up at boot
If you have many programs starting up at boot, they will hog up a lot of resources. You can stop programs from starting at boot by:
- Run msconfig
- Go to startup
- Unhook the programs you don’t want starting up at boot
6) Get a quick SSD disk
SSD disks have no moving parts and therefore is both quieter and in many cases also quicker than normal hard drives. Windows 7 is also optimized for SSD disks.
Newer versions of Windows have implemented a newer version of MS-LAN Manager communication, this is not supported by older Samba installations (below 3.2.1). So in order to fix this, you have to make your Windows client keep to the older version of MS-LAN manager.
You cannot do this if you are running a Windows 2008 server!
1) Open run
2) Start secpol.msc
3) Browse to Local Policies, Security Options, Network security: LAN Manager authentication level
4) Set it to“Send LM & NTLM responses”
5) Fixed 🙂
(Another option would of course be to simply upgrade Samba)
virsh shutdown can be compared to pushing the power button on a server, that will normally tell the OS to shut down gracefully. Microsoft on the other hand looks on that as a security issue and have per default disabled the ability to shut down the server if no admin is logged in on the server. (Aparantly you cant do anything naughty if you have access to the server..)
This causes virsh shutdown to not function as intended for Windows servers.
Luckily, You can fix this by setting the following registry key to 1:
PS: If that does not help, check out the power settings i gpedit.msc, some information about that can be found @