Skip to main content

Posts

Showing posts from February, 2012

PXE boot Fedora 16

Resolution :  noapic acpi=off for kernel args Implementation : [root@blackmesa ~]# cd /var/www/html/isos [root@blackmesa ~]# wget http://some.server.com/Fedora-16-x86_64-DVD.iso [root@blackmesa ~]# mkdir /var/www/html/OS/Fedora16-x86_64 [root@blackmesa ~]# echo "/var/www/html/isos/Fedora-16-x86_64-DVD.iso /var/www/html/OS/Fedora16-x86_64 udf,iso9660 user,loop 0 0" >> /etc/fstab [root@blackmesa ~]# mount   /var/www/html/OS/Fedora16-x86_64  [root@blackmesa ~]# mkdir /var/lib/tftpboot/Fedora16-x86_64 [root@blackmesa ~]#  /var/www/html/OS/Fedora16-x86_64/isolinux/initrd.img /var/lib/tftpboot/Fedora16-x86_64 [root@blackmesa ~]#  /var/www/html/OS/Fedora16-x86_64/isolinux/vmlinuz /var/lib/tftpboot/Fedora16-x86_64 Add an entry into your pxeboot default files [root@blackmesa ~]# cat /var/lib/tftpboot/pxelinux.cfg/default ...<trunc'd for brevity>... label 16   kernel Fedora16-x86_64/vmlinuz   append initrd=Fedora16-x86_64/initrd.img ramdisk_size=

Red Hat support is starting to impress me!

I've been using Red Hat since '99 (I think).  Mostly for entertainment initially, and then Red Hat would manage to present itself as the sensible solution for a number of problems.  Around 2003 or so I started to find more people suggesting Red Hat (or Linux) for a number of different things, seemingly because of "the buzz".  It seemed the more diverse of a deployment landscape I started to support on Linux, the more diverse the problems were - and back then I was not terribly impressed by the support of the product.  Red Hat was a quality distribution, but their support didn't necessarily seem to have answers I was seeking and they did not seem responsive. Roll forward almost 10 years and it's a completely different experience.  These folks are on top of things.  Take the following example(s): I recently posted to a Red Hat forum with a trivial question regarding implementing IPA and how to setup the supporting DNS.  The forum was unresponsive, but a Re

Verizon 4G LTE and Mifi Rocks..

I'm surprised to be posting this.. but I was seriously impressed/surprised this evening. I have a Verizon Wireless Mifi 4510L with 4G LTE.  I was going to attempt to use the SIM from my Mifi in my Lenovo Thinkpad Tablet running Honeycomb.  Well, that exercise was fruitless, but I was bored so I decided to pair my TPT to the Mifi and then I ran a speed test.  4G appears to be close to synchronous.  I should use that thing at my office instead of the over-priced T1's we have ;-)

VM stuck in an invalid state

NOTE: this information is not my own experience and was resolved by other people, but I found it interesting and it exists on a site that is not easy to search and I may not always have access to. (Honestly: the whole thing doesn't make much sense to me at this point, but it has some pretty stellar troubleshooting bits in there...) The user had an issue with a VM being unavailable and this was the resolution. 2012-02-21 16:55:59,524 INFO  [org.ovirt.engine.core.bll.StopVmCommand] (pool-12-thread-49) Running command: StopVmCommand internal: false. Entities affected :  ID: a55532fa-066b-4329-a551-07b1bce6d577 Type: VM 2012-02-21 16:55:59,527 WARN  [org.ovirt.engine.core.bll.VmOperationCommandBase] (pool-12-thread-49) Strange, according to the status "NotResponding" virtual machine "a55532fa-066b-4329-a551-07b1bce6d577" should be running in a host but it isnt. 2012-02-21 16:55:59,558 ERROR [org.ovirt.engine.core.bll.StopVmCommand] (pool-12-thread-49) Trans

escape a single quote and replace with escaped single quote (huh?)

Solution : [jradtke@neo bin]$ echo $TEMP | sed 's/'\''/'\\\\\''''/g' ./jradtke/Music/Metric/Fantasies/01 Help, I\'m Alive.mp3 Issue : In an attempt to make my Lenovo tablet and Linux desktop (Fedora 16 with Amarok) experience more like my iPad and Apple desktop (OSX with iTunes) - I am trying to create a script to "sync" everything.  The feature I need most is the ability to sync only my "top rated" music files to my tablet (since I have a 32GB SD card and my music collection is around 60GB). I figured out how to poll the MySQL database that I configured for Amarok to get the file locations, but some of the locations use a single quote in the filename.  Such as the word "I'm".  See the following: NOTE: $TMPSYNC is a file which is the result of the query to my Amarok database #!/bin/bash MINRATING=7 # Minimum Song rating to sync to TABLET SQLCMD="SELECT rpath FROM urls WHERE id IN (SELECT i

Label VFAT device (SDHC SD Card)

Solution : [root@neo ~]# df -h | grep media | grep -v tmp /dev/sdc1                      31525888  2944800  28581088  10% /media/8288-1391 [root@neo ~]# mlabel -i /dev/sdc1 ::TABLET [root@neo ~]# df -h | grep media | grep -v tmp /dev/sdc1                       31G  2.9G   28G  10% /media/TABLET Issue : I have a new tablet that I am attempting to script some automated, or event-driven sync mechanism.  I have added a 32 GB SDHC card to the device and enabled the tablet to ask whether it should mount the SD card as a USB device when connected to a PC.  Initially the device was identified as /media/8288-1391 Not a big deal, but I wanted something a bit easier to quickly identify.  NOTE: This was written around RHEL 6/fedora 16 - things have changed since this time - most significantly the place where it gets mounted. [root@neo ~]# tail -f /var/log/messages Feb 18 22:33:55 neo kernel: [28587.481254] scsi 6:0:0:0: Direct-Access     Lenovo   ThinkPad Tablet  0000 PQ: 0

iPad versus Thinkpad Tablet 1838

Initial thoughts : My first-generation iPad is a much better device.  Apple got it right.  It does everything so right that you don't even notice, until you try something else... and now that I have tried something else, I'm pretty disappointed.  Almost to the point where I will "eat" the $105 restocking fee to send the Thinkpad back. What do I mean by "you don't even notice"?  Take a pencil, for instance.  It basically just works.  Remember those stupid foam-rubber things that people would put on the pencil to make a futile attempt to improve.. the pencil??? Well, I consider the iPad to be a pencil.  It performs perfectly for doing what you would expect it to do.  Any additional functionality seems to be unnecessary and simply over-complicates things... (not sure if the phrase "simply over-complicate" even makes sense...) Quality : There is no question regarding the difference in quality between the 2 devices.  The iPad's simple des

Printing from Fedora 16 and RHEL

Solution :  Open a few firewall ports system-config-printer ACCEPT     tcp  --  anywhere             anywhere             state NEW tcp dpt:ssh ACCEPT     udp  --  anywhere             anywhere             state NEW udp dpt:ipp ACCEPT     udp  --  anywhere             224.0.0.251          state NEW udp dpt:mdns ACCEPT     tcp  --  anywhere             anywhere             state NEW tcp dpt:ipp ACCEPT     udp  --  anywhere             anywhere             state NEW udp dpt:ipp NOTE :  The GUI is noticeably slow to respond for certain things.  So, try to be deliberate where you click and then wait for it to respond.  A gut feel would be around 5 seconds max to wait. Issue : The "printers" settings applet will not setup a network printer.  You can run system-config-printer which will ask you about opening up some incoming network ports (which doesn't make a ton of sense to me at the moment, but... it allows me to print, so I'm happy... I guess). Issue #

Add outbound MX record SPF

Solution : Add a TXT record for your domain @ v=spf1 mx ip4:mail.host.com ~all Issue : Somehow external mailservers need to validate the server it received mail from is legitimate.  This apparently is not always an issue, but I figured I would set this up correctly, regardless. In the past we would simply add an MX record with the highest priority (even if the server was simply an outbound server).  This really is not a great approach.  The SPF (TXT) record of type MX is the right way to accomplish this.

iptables - an epiphany (sort of)

I had not paid much attention to what is actually going on with IPtables, I simply accepted the examples I had seen and applied the rules accordingly... for some reason I realized ( I hope) what is going on with the standard IPtables config. # Firewall configuration written by system-config-firewall # Manual customization of this file is not recommended. *filter :INPUT ACCEPT [0:0] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [0:0] -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT -A INPUT -p icmp -j ACCEPT -A INPUT -i lo -j ACCEPT -A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT -A INPUT -j REJECT --reject-with icmp-host-prohibited -A FORWARD -j REJECT --reject-with icmp-host-prohibited COMMIT So - the first packet goes past ESTABLISHED (unaccepted) then is accepted by the NEW rule. The next packet for that connection is then accepted as part of ESTABLISHED. So - if a packet is not ESTABLISHED, nor on port 22... it gets rejected.

change default login background gnome rhel 6

solution : copy your file to /usr/share/backgrounds/default.png then update /usr/share/backgrounds/default.xml # cp /usr/share/backgrounds/default.png /usr/share/backgrounds/default.png.orig # cp ~/Pictures/redhat.png /usr/share/backgrounds/default.png # cp  /usr/share/backgrounds/default.xml  /usr/share/backgrounds/default.xml.orig # vi /usr/share/backgrounds/default.xml <background>     <starttime>             <year>2010</year>             <month>03</month>             <day>01</day>             <hour>07</hour>             <minute>00</minute>             <second>00</second>     </starttime>     <static>         <duration> 86400.0 </duration>         <file>             <size width="1920" height="1200"> /usr/share/backgrounds/default.png </size>         </file>     </static> </backgroun

SED foo

Uncommenting %wheel NOPASSWD in /etc/sudoers sudo sed -i -e 's/^#\s*\(%wheel\s\+ALL=(ALL)\s\+NOPASSWD:\s\+ALL\)/\1/' / etc / sudoers Remove a line from a file solution: sed -i -e '/IPADDR/d' /etc/sysconfig/network-scripts/ifcfg-eth6 issue: I was moving an interface from a Physical NIC (eth6) to a Bridge (brbkup) therefore, I obviously no longer wanted an eth6 IPADDR entry. Insert text into a file at a specific line solution : sed -i -e '26i\ ' /etc/named.conf sed -i -e '27i\ \ \ \ \ \ \ \ managed-keys-directory\ \"\/var\/named\/dynamic\";' /etc/named.conf issue :  I needed to add a directive into my /etc/named.conf file.  It could not simply be appended and YES, my proposed solution makes quite a few assumptions... most importantly that the location I want my new line is indeed line 26. Before: /* Path to ISC DLV key */ bindkeys-file "/etc/named.iscdlv.key"; }; After