Category Archives: Fixes

Create Repo runs out of disk space in tmp

I have one CentOS 6 computer that is completely stand alone, as in no internet / network access. What? Yea, in this day and age, but I won’t get into the whys.

To keep this box updated, and to make additional packages available on demand, I manually copy the repository files to it, after which I rebuild the repo.

After the last update, besides running into a kernel panic that was easily fixed, I also ran into an issue with filling up the /tmp partition.

Basically, I ran into a “IOError: {Errno 28] No space left on device” and “Worker exited with non-zero vaule: 1. Fatal”. Picture below for your viewing pleasure.

out-of-space

I did a lot of searching for terms like createrepo and No space left on device, but didn’t have much luck finding anything. I was hoping to have createrepo save it’s temp files in another location, but no luck there.

Now, I’m not much of a Linux Admin, so forgive me if this is a clumsy fix, but the thought occurred to me that I could specify a different location for tmp, or even just change it temporarily, then I would be back in business.

I ran across this wonderful post that explained how I could do so using:

export TMPDIR=/path/to/other/directory

Someone in the comments mentioned that the command above would leave the change in the environment, and I assumed change it permanently, at least for that user. I wasn’t sure on that point, but they suggested using this instead:

env TMPDIR=/path/to/other/directory; command

I gave it a try, and it didn’t work for me. Now, I’ll admit here that I was running a script instead of a command, which could have made the difference.

What I ended up doing was to place the following at the beginning of the script:

export TMPDIR=/path/to/other/directory

Then the following at the end:

export TMPDIR=/path/to/original/directory

Evidently /tmp is the general location, and that’s what I set it to.

Kernel Panic in CentOS 6.7 After Kernel Upgrade

I ran into this issue after updating with Yum, on the next reboot, the system wouldn’t boot properly. In my case, the error I received was

Kernel panic – not synching:

VFS: Unable to mount root fs on unknown-block(0,0)

 Picture of the full error below:

error

In my case, I’m running CentOS 6.7 in a virtual machine running on Oracle VirtualBox.

You should be able to get around the error pretty easily, just reboot the computer, and when you see the “Press any key to enter the menu” pictured below, press a key.

press-key1

You should be presented with a list of the kernels you have installed, pictured below, select the previous one, and press enter.

previous-kernel

After doing that I was able to boot into CentOS.

I did a little digging, and found this bug report, which matched my error, the only difference I can see is that the kernel version was different.

The first solution I ran across was to run “yum reinstall kernel”, which is what I did, and the issue was resolved. Evidently in some cases the kernel doesn’t fully install, and in some cases fails transaction checks.

If the reinstall doesn’t work for you, keep reading the comments, there’s several other solutions, hopefully one of them will help you out. Feel free to let me know what worked for you.

Good Luck!

Fix the OneNote 2010 Screen Clipping Shortcut Key

OneNote2010_print

I ran into a bit of a unique issue today, and it had to do with the Onenote Screen Clipping Shortcut key. Now if you’re a long time OneNote User, you’re probably used to the Windows+S shortcut key for starting a screen clipping.

Well, in Windows 8.1, Microsoft hijacked that shortcut key for search everywhere. Either way, OneNote’s shortcut was changed to Windows+Shift+S. I’ll admit, it took me a little while to get used to, but I’m good now.

However, one of my users is running Windows 8.1, and OneNote 2010, and OneNote is still using the Windows+S shortcut key, but it doesn’t work. To fix this, you can take 1 of 3 paths.

1. Disable the Windows +S shortcut key for Windows.

Once you free it up, OneNote will be able to use it. To do this, run the following command:

reg.exe add HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced /v DisabledHotkeys /t REG_SZ /d S /f

2. Change the OneNote Shortcut to a different Key combination

For Office 2010, open registry editor, and naviate to:

HKEY_CURRENT_USER\Software\Microsoft\Office\14.0\OneNote\Options\Other

Note: The 14.0 designates Office 2010, Use 15.0 for Office 2013, 12.0 for Office 2007.

There should be a DWORD value of “ScreenClippingShortcutKey”, if there isn’t, create one (32-bit DWORD). Change the value to 41 (Hexadecimal) and you’re new shortcut key will be Windows+a.

3. Get a New Version of OneNote

It’s free for personal use, so why don’t you get the new version? I’m only limited because it’s in an enterprise environment, and I’m waiting to roll out the entire office suite.

 

I went with the first option, since pressing start and typing seems to have the same, if not better, search capabilities.

Hope that helps!

Source

Missing Internet Explorer in Windows 7?

I don’t know how it happens, but once in awhile you’ll run across a computer that doesn’t have any web browser. Where did Internet Explorer go? I don’t know why it happens, but sometimes IE just decides enough is enough, and disappears.

Microsoft has this really neat KB Article titled “How to repair or reinstall Internet Explorer in Windows” and although it’s wonderful, it doesn’t help you if you don’t have a web browser. The link for each version needs to be accessed with a web browser, and of course, you don’t have one. Also, if you try to download one of them using a working computer, it tells you that version of IE is already installed, or isn’t applicable to your system.

Download and Install Firefox

My advice is to download Firefox. It’s a great browser. Of course, you’re going to have to use another computer, then somehow get it over to your computer via flash drive or something. Once you get it there, install it.

Now you have to uninstall whatever version of Internet Explorer you already have. To do that:

1. Click the Start button, and enter Programs and features in the search box.

image

2. Click Programs and Features in the list of results, and then click View installed updates.

image

Once you’ve clicked it, wait for the progress bar up top to finish loading all of the results.

3. Find internet explorer.

The quickest way to find it is to type it in the “search updates” box, and hit enter.

image

Once you find it, right click and choose “Uninstall”

image

4. In the Uninstall an update dialog box, click Yes to uninstall.

This could take awhile.

5. Click Restart now to finish uninstalling.

If you want to continue with installing the new version, you’re going to want to reboot first. Of course, save any work before you do.

image

 

Now that you have Internet Explorer uninstalled:

Go to Microsoft’s Internet Explorer Site, and download the version you would like. Right now the easy one is Internet Explorer 11. It’s going to download and install the updates for that version, so that could take awhile too. It’s also going to want to reboot when it’s done. I know, such is life.

Hopefully, after everything is installed, you’ll be good to go.

“Unspecified Error has occurred” 0x80070190 when activating Office 2010

I had to do some digging on this one when I first ran into it. I believe it’s actually an issue with a computer which installed the Office 2010 Service Pack 2 before the copy of office could be activated. I’ve been meaning to automate the install of office with the Service pack to see if that straightens it out, but I haven’t yet.

So, you set up a new computer, and realized that office isn’t activated when you get the Microsoft Activation Wizard.

image

Since you’ve already entered the product key thorough a transform, you click on “I want to activate the software over the Internet (recommended)”. The next thing you know, you’ve got this very specific (not!) error message:

image

An unspecified error has occurred. Your request cannot be processed at this time. Please try again later. (0x80070190)

Don’t bother trying later, it still won’t work. Here’s what you need to do.

Open up an elevated command prompt, then navigate to C:\Program Files (x86)\Microsoft Office\Office14

Run “cscript ospp.vbs /act”

The script will run through and activate all of your office products that have keys already. After that, you should be good to go.

What to do about Shell Shock (bash vulnerability)

One of my rules of thumb is that if a virus, worm, trojan, or other vulnerability has made it to the broadcast news, then it’s probably nothing to worry about anymore. I’ll have to say, I’m not sure how much longer that’s going to hold true. This morning Shellshock (officially it’s CVE-2014-6271) made the broadcast news, and it’s actually something that we should worry about.

When I say we, I mean we sysadmins / IT guys. Although … Continue reading What to do about Shell Shock (bash vulnerability)

How to uninstall the Sonicwall Netextender SSL VPN Client

clip_image001.png

There’s a Global VPN Client Cleanup tool located on the bottom of this page:

https://support.software.dell.com/kb/sw3990

The versions included are for 32 or 64 bit versions.

This page: https://support.software.dell.com/kb/sw3841 also has a list of ways to uninstall for various other versions.

Below is a run through of the utility in the first link, but it didn’t work for me. I ended up just deleting the “SonicWALLNetExtender” Dword key from HKLM\Software\Microsoft\Windows\CurrentVersion\Run So that I wouldn’t have to see it anymore at start up.

Global VPN Client Cleanup Walk through

There are a few version of the Sonicwall NetExtender, the version I’m dealing with is 4.0.138. If you have a different version, you may want to check out this page:

Once you download it, double click on the zip file (you can extract it, but it’s a single file and it’s fine to run out of the zip).

Agree to the obligatory UAC prompt

clip_image002

When I ran it, the utility had a bunch of garbage on it, but the important part is the “Uninstall” button on the top left in the troubleshooting section.

clip_image003

One you click it, it wants you to confirm the uninstall

clip_image004

After you click yes, it wants you to confirm it again:

clip_image005

How to Fix OneNote Misplaced Sections in Android

Onenote has to by one of my all time favorite apps. I’ve always had the issue of researching and fixing a problem, and then after six months or more has passed, I run into the problem again. I always had trouble finding my notes. Not anymore, OneNote has saved me literally years of research.

Now that it’s on all of the mobile platforms, and I can sync notebooks with OneDrive, it’s even better.

Yesterday I ran into this problem imagethough, on Android, two sections I had been working in had disappeared. When I navigated up to my notebook list, I saw a “misplaced Sections”.

Sure enough, I opened it up, and there they were. There wasn’t any way to move them though.

Doing some poking around, I found that if OneNote has changes, it stores them in a cache, and if the notebook is closed or crashes before they can be synched, then they end up in the “Misplaced Sections”.

First thing you want to do is see how much you’ve changed. There’s not an easy way to do it, but you’ll have to copy the changes somewhere else. Maybe to another section.

Then you have to clear the app data for onenote. On my phone it’s in Settings > General > Application Manager, then touch “OneNote”.

Don’t uninstall Onenote, just click on “Clean data” and that will take care of it.

image

The bad news is you’ll have to re-sync all of your data.