Do you need to quickly add more memory to your Linux instance?
The following commands will use a file to add 2GB of swap space to your server:
> dd if=/dev/zero of=/swapfile bs=1M count=2048
> chmod 600 /swapfile
> mkswap /swapfile
> swapon /swapfile
To make this a permanent change that will survive a reboot add a line to your /etc/fstab
/swapfile swap swap defaults 0 0
If you have one or more EC2 reserved instances within us-east-1a you may want to plan ahead and migrate to a new zone before your reserve ends. It is no longer possible to create new reserves within us-east-1a. It should be a simple process for most customers to create an AMI of their existing instance and migrate to a different zone. I recommend planning ahead and giving yourself a week to schedule and complete the migration in case your sys-admin has not created instances that cleanly survive a reboot.
While working on a couple vBulletin 4.1.3 to 4.1.12 upgrades this weekend I ran into an interesting problem. One of the forums, besides needing an upgrade, was also experiencing a trouble where images and videos could no longer be inserted into posts. When the forum was running 4.1.3 the popup box for insert images would appear and then quickly disappear. After upgrading to 4.1.12 instead of getting a popup box a white tint (not a blank white page) would appear over the entire new post/reply pages. The forum did not have any additional products and had very little customization done to the standard vB4 style. After editing config.php and adding define(‘DISABLE_HOOKS’, true); as the second line the forum did indeed begin functioning correctly again. I checked the plugins and found an extra plugin named HTTP-Request that did not belong there. The forum had been hacked. I removed the HTTP-Request plugin and also did the diagnostics to remove a few extra files within the file structure that were not a part of vBulletin. I asked the owner to have all admins and mods change their passwords. The forum is functioning correctly again now the the problem plugin has been removed
Do you need to reset a lost root password and ILOM configuration for a Sun x4200?
The first thing to do is find a spare jumper and determine which version of the x4200 that you have.
After powering off the server and opening the top cover you will need to place the jumper in one of two locations.
Depending on your model of the X4200 the reset jump is either near the power supplies, or toward the handle in the middle of the board.
The image to the left shows the first position near the power supplies.
The images to the right show a close up of the positions both near the power supplies or handle.
The pins for your jumper will be in one location or the other.
All of these images can be clicked to see a more detailed view of each picture.
To reset the root password place your jumper on the pins, close the cover, and power the server back on. When the server comes up you login to the serial console with username: root password: changeme
To change the root password type:
> set /SP/users/root password
After changing the password do not forget to power down the server and remove the jumper!
When you are done removing the jumper and power back up you should be able to login with your new password.
To configure the network information for your ILOM connection match your network information to the following examples :
-> cd /SP/network
-> set pendingipdiscovery=static
-> set pendingipaddress=10.10.10.123
-> set pendingipnetmask=255.255.255.0
-> set pendingipgateway=10.10.10.1
-> set commitpending=true
Congrats! You should now have access to the web based management and be able to use features such as the virtual monitor redirection.
I knocked off another ~600 calories as measured by my treadmill tonight. There were a couple of interruptions so I ended up doing a mix of a death valley walk at max incline, some regular jogging, and a quick 15 min run at 6mph with a couple minute cool down walk to end the evening. I also ate pretty good today sticking to cereal, OJ, lentil soup, a cliff bar, a pretzel snack, some steak with fruit and vegetables for dinner, and a vitamin. I know a can do a little better getting fewer cards for a couple weeks but it’s better than eating ice cream. I’ll have one of my P90X recovery drink later tonight to keep me from getting hungry and snacking on junk foods before bed.
I started walking and doing some light jogging on the new treadmill this week. I did around 2000 calories worth of exercise. I’m looking to get that up to 3500 calories as measured by the NorticTrack T 5.5 over the next week. I’ll also be mixing in some of my old P90X workouts and some bowflex time. Maybe I’ll get in an outdoor run too if the weather stays reasonable. I can’t believe how little snow there has been this year!
I averaged down my SWKS to 17.35. I’m looking to let the profit ride around 21.50, but could get out sooner if I need the cash.
I started buying back into SWKS again at 18.12 last week. I also picked up some Amazon at 186.66 this morning. The SWKS is yet another SWKS trade looking to make some more short term cash. My plan for AMZN is to let the profit ride at $240.