Archive for the 'Solutions to Problems' Category

Sendmail, iptables, and email delay or not sending

TEST

I had some issues with sendmail actually sending out an e-mail. Then sometimes if I stopped the iptables firewall some emails would make to my inbox but that’s quite a big delay. What I had to do to get my mail working smoothly and sending right away was to allow my server’s (or lan) IP address to access sendmail. Here’s the code I put into my iptables config file. I couldn’t find a real solution that worked for me so I edited /etc/sysconfig/iptables and copied this

-A INPUT -p tcp -s 0/0 –sport 80 -d MYSERVERLANIPHERE –dport 1024:65535 -m state –state ESTABLISHED -j ACCEPT

Then pasted, and changed the port to 25 instead of 80

-A INPUT -p tcp -s 0/0 –sport 25 -d MYSERVERLANIPHERE –dport 1024:65535 -m state –state ESTABLISHED -j ACCEPT

Then I restarted my firewall (service iptables restart) and booyah! Shiz iz workin.

IE8: How to remove the ICQ “New Tab” Search

TEST

How do I uninstall the ICQ “New Tab” Search from Internet Explorer 8? It’s easy to remove ICQ from your browser, you need to run an uninstaller. Find out how on the ICQ site.

How to remove ICQ default search in FF

TEST

I installed ICQ 7 the other (ICQ 7.2) and it took over my PC a little. It installed a toolbar for FireFox and Internet Explorer and also set itself as the default search engine. To remove it I went into my control panel, clicked on Programs and Features, removed the ICQ Toolbar. But ICQ was still the default search when I typed something in the address bar (instead of the search bar). So I searched and searched and found the solution here.

To remove ICQ toolbar from FireFox

  1. go to Tools->Addons and find the ICQ Toolbar and uninstall it.

To change the FireFox search back to normal:

  1. Open a new tab
  2. Type about:config in the address bar
  3. Type keyword.URL to find the entry
  4. Change that entry to http://www.google.com/search?ie=UTF-8&oe=utf-8&q= to return to the normal google search. (keyword.URL currently shows http://search.icq.com/search/afe_results.php?ch_id=afex&tb_ver=2.0.0.4&q=)

You can change the default search URL to anything you want instead of Google. Here’s more info about the FireFox keyword.URL

Some Basic VI Commands

TEST

I’m bored right now so I’m messing around on my server. Sometimes people forget VI Commands so I thought I’d share some basic VI commands. Hopefully this quick reference can help somebody out. For those that don’t know, VI is an editor used in the Linux/Unix environment to edit files that contain text. http://en.wikipedia.org/wiki/Vi

To edit a file in SSH you’ll run this command
# vi /path/to/file/whatever.sh

First… you must learn there are 2 different modes.

Insert mode and Command mode

hit escape to enter command mode.
from command mode… these are the keys to go into insert mode
i => will make you start inputing at the cursor
a => will make you start inputing after the cursor
o => will open up a new line below the current line your cursor is
on,and move the cursor there.

when in insert mode, hit the escape key to enter command mode again
basic command mode commands
:w => save the file
:wq => save the file and quit
:q! => quit w/o saving

/textstring => searches for the textstring in the file ( hit n to find
next instance and N to find previous )

simple copy and paste
yy => yanks single line ( aka copy line into buffer)
p => will paste buffer onto the line below where the cursor is.

to get fancy, you can prepend yy with the number of lines you want to
copy ex .

5yy  => will yank 5 lines from where the cursor is and below in the buffer
p => will paste those 5 lines

dd => cuts single line ( aka cuts line into buffer )
p => will paste cut buffer onto the line below where the cursor is.

And that’s about it. For more in depth instructions you can check out these two sites:
http://osr600doc.sco.com/en/FD_create/vi_summary.html
http://www.cs.colostate.edu/helpdocs/vi.html

Can’t connect to iTunes Store: Windows 7 and iTunes 9

TEST

Problem: “Can’t Connect to iTunes Store”

Detailed Problem: After I reinstalled Windows 7 and installed the latest iTunes (version 9.2.0.61) I started getting this error  no matter what internet connection I was using. iTunes would update apps, update my podcast subscriptions, but always just hang there saying it’s loading the iTunes store but eventually fail every time. So I did some searching on the net and here’s the solution that worked for me.

Solution:

  1. If you have any custom settings in the preferences, take note of these first because they’ll be gone after you follow these instructions. In iTunes you click Edit then click Preferences. (I changed some settings before such as where I store my library. )
  2. Close / Exit iTunes
  3. Find the iTunesPrefs.xml file. You can search your computer to find this, or navigate your way to C:\Users\USERNAME\AppData\Roaming\Apple Computer\iTunes but most likely your AppData folder is hidden, but you can get there by clicking My Computer, C (Local Disk), Users, then your User Name, then in the address bar just click the text area after your username, and type at the end \AppData and hit enter. Then navigate to \Roaming\Apple Computer\iTunes
  4. You should see iTunesPrefs.xml in that folder (C:\Users\USERNAME\AppData\Roaming\Apple Computer\iTunes) so either rename it to iTunesPrefs.xml.backup or you can delete it if you want. I choose to rename the file in case I need to restore to the original one for some reason later on (like if I didn’t write down all of my settings correctly from step 1).
  5. Launch iTunes, follow the setup instructions from iTunes.
  6. Make sure to go into the preferences (Edit > Preferences) and change your settings back to anything custom you had before. For example, I don’t keep my iTunes library in the default location so I had to change the location again because iTunes reset the Preferences to the default settings.

If you have any problems with your iTunes skipping while listening to music, I had this issue back in the day and here’s the solution to that: My iTunes Skipping Problem

“Can’t Connect to iTunes Store”

Windows Mobility Center is available only for laptops!?

TEST

I’m running Windows 7 on my laptop and I got an error today “Windows Mobility Center is available only for laptops” which made me go “whaaaaaaaaaaat?” because I am using a laptop. Well I found out the problem is due to the fact that I removed my battery from my notebook (or laptop, however you want to call it). You can also have this problem if your laptop is plugged into a UPS too. Here’s a quote from their site.

http://support.microsoft.com/kb/938322

This issue may occur if the following conditions are true:

  • The computer is plugged into an uninterruptible power supply (UPS).
  • The battery has been removed from the computer.

When these conditions are true, the computer’s role may be set incorrectly in the BIOS.

Sync iPhone with Google Apps Calendar (and iPod Touch)

TEST

Before I talked about how to sync your iPhone or iPod Touch with your Google Calendar. And today I’d like to show you how to sync with your calendar on Google Apps using your own domain name.

You use the same settings as you would if you were syncing to your regular Google account. But your username would be your email@yourdomain.com. The next step is to activate ActiveSync on your Google Apps domain. To enable this service on Google Apps…

  1. Log into your dashboard and click the Mobile link or just go to https://www.google.com/a/cpanel/YOURDOMAIN.COM/MobileSettings/ to get there.  and select the checkbox.
  2. Select the checkbox that’s next to Enable Google Sync
  3. Click Save Changes. And you’re done!

If you’re having problems, leave a comment or check out Google Apps Help.

Sync iPhone / iPod with Google Calendar

TEST

If you have an iPod Touch or an iPhone, it’s now easier than ever to sync with your Google Calendar. Before I was using NuevaSync which is a great service that’s free and works with Google Calendar, Google Contacts, and Plaxo. But now you can sync directly through Google as long as your iPod has firmware 2.2 or higher. Here’s how…

First of all, back everything up that you need to. Upload any contacts or calendars from your phone to your computer because the iPod will delete them all during setup. It’s kind of annoying, but it’s great once you’re synced up. I went through this process myself and everything went smoothly.

Here’s the link to the official Google page from where I took these instructions and pictures:
Sync: Set Up Your iPhone or iPod Touch

1. Open the Settings application on your device’s home screen.
2. Open Mail, Contacts, Calendars.
3. Tap Add Account….
4. Select Microsoft Exchange.


Continue reading ‘Sync iPhone / iPod with Google Calendar’

Apple Innovation at It’s Finest

TEST

The Onion broke the story on Apple’s new Macbook Wheel.