Category: How Tos

How To Articles

  • kmod-Nvidia and Centos 6

    Centos 6 comes with the nouveau which doesn’t work very well for my needs and the Nvidia driver works better. So heres the step to install kmod-nvidia as root.

    1. run “rpm -Uvh http://elrepo.org/elrepo-release-6-4.el6.elrepo.noarch.rpm”
    2. run “yum install kmod-nvidia nvidia-x11-drv nvidia-x11-drv-32bit”
    3. reboot the system

    You may need to black list the nouveau driver if that does not work.
    Edit the /boot/grub/menu.lst and append the following to the end of the kernel line:
    rdblacklist=nouveau

  • AirPrint and Ubuntu 11.10

    In Ubuntu 11.10, setting up AirPrint is easy.

    1. Have a Standard install of Ubuntu Desktop 11.10.
    2. Go into the CUPS interface and make sure “Share published printers connected to this system” is enabled on the server settings.
    3. On the Printer Properties, make sure the Shared checkbox is check on the Policies tab.
    4. If you have a firewall running, make sure you allow the needed ports (one of the is port 631).
    5. Restart CUPS “/etc/init.d/cups restart” or reboot the computer
    6. Make sure you iPhone/iPad is on the same network
    7. On your iPhone/iPad, go into Safari, print, and search for printers. Your new printer should be in there.

  • Ceiling Fan

    Today I finished installing a ceiling fan in my son bedroom. This was a new experience and a first for me, it took a few hours and a lot of hard work.

    We got the ceiling fan from Lowes on Saturday and cut the holes and installed the ceiling fan bracket in the attic. It was cool that you could use a new construction bracket if you had access to the attic, it was half the price of a old construction bracket and is a lot more secure.

    We also setup the ceiling fan which was easy after we figured out we could install it as a low profile because the dropdown rod didn’t feel very secure.

    We finished the install on Sunday which included running the wires down the wall and wiring it up to the switch, this part was easy.

    After about 4 hours of work, the ceiling fan install it complete and my son is loving it. He just looks at it for a long time.

  • System Administrator Appreciation Day

    Today July 29, 2011 is System Administrator Appreciation Day.

    So Happy SysAdmin Day everyone.

    More information on SysAdmin Day can be found at http://www.sysadminday.com/

  • iPad 2 review

    iPad 2 is apple second generation tablet device, it’s faster, slimmer and has more RAM than the first generation iPad.

    Specs:
    1GHz dual-core A5 CPU
    512MB RAM
    16GB, 32GB, 64GB storage options
    Front & Rear Cameras, front is VGA, rear is 720p
    9.7″ LED display with 1024×768 screen resolution with IPS technology
    Video output supports up to 1080p via HDMI dock adapter
    Runs iOS 4.3
    10 hour battery life
    White & Black color options
    Wi-Fi (802.11a/b/g/n)
    Bluetooth 2.1 + EDR technology
    Height: 9.50 inches
    Width: 7.31 inches
    Depth: 0.34 inch
    Weight: 1.33 pounds

    After using this device for a few weeks, it’s a great laptop replace while at work or at home where you have full access to a desktop you do some more complicated task.
    It’s light enough to carry around with you when your going to a meeting or going to the server to do some maintenance. With the right apps you can access/edit office documents, SSH into servers and almost everything.

    The iPad 2 is a great addition to having a iPhone 4 where you can use 3G in areas that does not have wifi because of the Personal Hotspot feature.

    If the iPad 2 had retina resolution it would be the best tablet.

  • iPad 2 review

    iPad 2 is apple second generation tablet device, it’s faster, slimmer and has more RAM than the first generation iPad.

    Specs:
    1GHz dual-core A5 CPU
    512MB RAM
    16GB, 32GB, 64GB storage options
    Front & Rear Cameras, front is VGA, rear is 720p
    9.7″ LED display with 1024×768 screen resolution with IPS technology
    Video output supports up to 1080p via HDMI dock adapter
    Runs iOS 4.3
    10 hour battery life
    White & Black color options
    Wi-Fi (802.11a/b/g/n)
    Bluetooth 2.1 + EDR technology
    Height: 9.50 inches
    Width: 7.31 inches
    Depth: 0.34 inch
    Weight: 1.33 pounds

    After using this device for a few weeks, it’s a great laptop replace while at work or at home where you have full access to a desktop you do some more complicated task.
    It’s light enough to carry around with you when your going to a meeting or going to the server to do some maintenance. With the right apps you can access/edit office documents, SSH into servers and almost everything.

    The iPad 2 is a great addition to having a iPhone 4 where you can use 3G in areas that does not have wifi because of the Personal Hotspot feature.

    If the iPad 2 had retina resolution it would be the best tablet.

  • Export settings on a TomatoUSB router

    I copied this from Toastman:

    Flashing a new Toastman firmware version over an older one usually won’t erase your old config. However, try this method:

    1) If you paste “nvram export –set” into the “Tools/System command execution box, it will give you the file onscreen, these lines can then be pasted into another router.

    2) You could also use a small script to send it to a PC cifs share using the Scheduler e.g. “nvram export –set >/cifs1/routerconfig.txt”

  • Converting a SSL certificate from CRT format to PEM

    Some Linux applications (e.g. webmin and dovecot) require pem certificate files, to do this we use OpenSSL to convert them to pem.

    Step 1: openssl x509 -in ssl.crt -out ssl.der -outform DER
    Step 2: openssl x509 -in ssl.der -inform DER -out ssl.pem -outform PEM

  • Outlook cannot parse the property ‘created’ near line x – problem solved

    When using Google Calendar with Outlook 2010 you may get an error like:
    “Task Internet Calendar Subscriptions’ reported error (0x0004002B) : ‘Outlook cannot parse the property “CREATED”, near line x. The property is being ignored.

    Here’s my solution,
    1: export your google calendar
    2: make a backup of the export (just in case you mess up something)
    3: edit the .ics file in notepad or notpad++ or vi
    4: look for a line starting with ‘CREATED:0’ and should end in some numbers
    5: replace that line with something like ‘CREATED:20101231T183000Z’
    6: do this for all the entries you find in the .ics file
    7: save the file
    8: import this file back in to google calendar

    I believe this problem is caused by using google calendar on the iphone without using it in Exchange mode.

  • AirPrint and Ubuntu

    This is what i did for my Canon MX850 to get AirPrint working on my Ubuntu system.

    1. Have a Standard install of Ubuntu Desktop.
    2. Go into the CUPS interface and make sure “Share published printers connected to this system” is enabled on the server settings.

    3. Install avahi-daemon and make sure it is running.

    4. Install avahi-discover and run it from a terminal. Click the printer you wish to duplicate. You should get something like:

    [code]
    Service Type: _ipp._tcp
    Service Name: Canon MX850 @ Saturn
    Domain Name: local
    Interface: eth0 IPv4
    Address: Saturn.local/10.0.0.4:30466
    TXT Binary = T
    TXT adminurl = http://Saturn:631/printers/Canon-MX850
    TXT Duplex = T
    TXT Copies = F
    TXT Collate = F
    TXT Sort = F
    TXT priority = 0
    TXT Fax = F
    TXT rp = printers/Canon-MX850
    TXT ty = Canon PIXMA iP5300 – CUPS+Gutenprint v5.2.6 Simplified
    TXT Punch = F
    TXT note = Saturn
    TXT printer-state = 3
    TXT txtvers = 1
    TXT Transparent = T
    TXT product = (Canon PIXMA iP5300)
    TXT qtotal = 1
    TXT Bind = F
    TXT printer-type = 0xB01E
    TXT Scan = F
    TXT Color = T
    TXT pdl = application/octet-stream,application/pdf,application/postscript,image/jpeg,image/png
    TXT Staple = F
    [/code]

    5. Create file name /etc/avahi/services/mx850.service.

    6. Create an XML file similar to the example below, using the data above as the values.

    [code]

    < ?xml version="1.0" standalone=’no’?>
    < !DOCTYPE service-group SYSTEM "avahi-service.dtd">
    <service -group>
    <name replace-wildcards="yes">AirPrint MX850 @ %h</name>
    </service><service>
    <type>_ipp._tcp</type>
    <subtype>_universal._sub._ipp._tcp</subtype>
    <port>631</port>
    <txt -record>txtvers=1</txt>
    <txt -record>qtotal=1</txt>
    <txt -record>rp=printers/Canon-MX850</txt>
    <txt -record>ty=Canon PIXMA iP5300 – CUPS+Gutenprint v5.2.6 Simplified</txt>
    <txt -record>note=Saturn</txt>
    <txt -record>product=(Canon PIXMA iP5300)</txt>
    <txt -record>printer-state=3</txt>
    <txt -record>printer-type=0xB01E</txt>
    <txt -record>Transparent=T</txt>
    <txt -record>Binary=T</txt>
    <txt -record>Duplex=T</txt>
    <txt -record>Copies=F</txt>
    <txt -record>pdl=application/octet-stream,application/pdf,application/postscript,image/jpeg,image/png</txt>
    <txt -record>URF=none</txt>
    </service>

    [/code]

    7. Save the file. avahi-daemon should notice the new file and load it without a needed restart.

    8. Add the following to /etc/cups/cupsd.conf near the top

    [code]
    ServerAlias *
    Port 631
    [/code]

    9. Restart CUPS “/etc/init.d/cups restart”

    10. On your iPhone/iPad, go into Safari, print, and search for printers. Your new printer should be in there.

    —————————-

    Update: as of June 28, AirPrint is built-in on Ubuntu 11.10.
    1. On your computer start system-config-printer via System ->
    Administration -> Printing (GNOME Classic) or via Turn-off-button at the
    upper right -> System Settings -> Hardware -> Printing (Unity Natty) or
    via the command line (all systems including Unity Oneiric).

    2. In system-config-printer choose Server -> Settings and activate
    “Published shared printers connected to this system”. Click OK and then
    right-click on the icon of your print queue and choose Properties in the
    pop-up menu. In the Policies section of the dialog make sure that
    “Shared” is activated.

    3. Make sure your mobile device is accessing your local network using
    WLAN and then open an application with printing functionality on it
    (like for example the browser or the photo viewer). Print something. The
    print dialog should show your print queue and allow some basic settings.
    Note that the Description/Info field and not the name of the queue is shown.

    4. Check whether you get a correct printout.