To list the contents of an uninstalled RPM package issue one of the following:
# less kmod-compat-wireless-3.5.4-1.sn.el6.elrepo.x86_64.rpm 2>&1|grep 9170
or issue:
# rpm -qpl kmod-compat-wireless-3.5.4-1.sn.el6.elrepo.x86_64.rpm
Read the rest of this entry »
November 11th, 2012 | Posted in NIX Posts | No Comments
If you want to only download an RPM package without installing it, you'll need to install the yum-plugin-downloadonly.noarch package first. This will then add options to the yum command allowing only downloads of RPM packages without installing them.
This is particularly handy if you just want to download a package for extracting single files or viewing it's contents prior to installing them.
Here's how to use it once it's installed:
Read the rest of this entry »
November 11th, 2012 | Posted in NIX Posts | No Comments
There's several ways to determine the ksh version. All will print different results depending on the KSH you're running. Here are the methods for finding the versions:
Read the rest of this entry »
November 10th, 2012 | Posted in NIX Posts | No Comments
While testing the NIC connectivity and speed for my HTPC / Home Backup system, I get this unpleasant surprise. Needles to say the issue was really due to the high transfer speeds on my 1GB/s network that that intel card has appeared to have a bit of difficulty with. The difficulty has now been resolved with the purchase of a more stable Intel card.
Either way, here's how to handle this one on a Linux server. There is a number of solutions to this one some fairly obvious, others not so much:
From 192.168.0.8 icmp_seq=12091 Destination Host Unreachable
From 192.168.0.8 icmp_seq=12092 Destination Host Unreachable
through a resolution on the software side of things of this disconnected NIC:
Read the rest of this entry »
November 4th, 2012 | Posted in NIX Posts | No Comments
So while making a copy of my page for testing purposes, I try to run it from my LAMP configuration only to receive a redirect to my online page. Tinkering with the .htaccess file did absolutely nothing in this case. Page keeps redirecting from http://localhost/wordpress to http://www.microdevsys.com/WordPress with a line like this in the /var/log/httpd/access_log file:
127.0.0.1 – – [13/Oct/2012:23:23:23 -0400] "GET /wordpress/ HTTP/1.1" 301 128 "-" "Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.4) Gecko/20100622 Fedora/3.6.4-1.fc13 Firefox/3.6.4 GTB7.1"
in the apache error_log / access_log files. Doing a bit of digging in the imported database, we find that the home option is set to our main site, which will redirect to http://www.mysite.com.
Nothing to do with .htaccess after all and alot to do with the wp_options table:
Read the rest of this entry »
October 13th, 2012 | Posted in Web | No Comments
So I'm in the process of making a copy of my blog to my Linux installation and LAMP configuration I have there. The purpose of this exercise is to upgrade my blog to the latest available WordPress available, 3.4.2 at the time of this writing. (I'm way overdue). I want to test the upgrade before committing to the site. However, when I copy I got this:
Not Found
The requested URL /wordpress/2008/12/05/fedora-10-ui-video-graphics-problems-upon-reboot-to-fedora-10-graphics-are-unreadable/ was not found on this server.
Apache/2.2.15 (Fedora) Server at localhost Port 80
Here's what was missing and not configured causing the above.
Read the rest of this entry »
October 13th, 2012 | Posted in Web | No Comments
Here's how to enable core dump files to write for analysis on application crashes:
# cat /etc/sysctl.conf|grep core
# Controls whether core dumps will append the PID to the core filename.
kernel.core_uses_pid = 1
#
Core patterns, if you want to write to directories other then where the process is currently running from (which could be anywhere) can be specified in this manner on the fly:
# cat /proc/sys/kernel/core_pattern
core
# echo "/cores/core-%e-%p-%h-%t" > /proc/sys/kernel/core_pattern
# cat /proc/sys/kernel/core_pattern
/cores/core-%e-%p-%t
#
Read the rest of this entry »
October 13th, 2012 | Posted in NIX Posts | 1 Comment
Now, arguably, the art of auto login and automated access may be frowned upon if not done securely but the concept of doing so is in itself something of a could-it-be done question that can simply be too tempting not to answer. Long time ago I decided if beyond the easy approach to this using autoexpect, it could be done with some manual scripting. All this to add more robustness to such a tool as autoexpect but instead using the underlying language TcL directly, rather then the rigid results of autoexpect. Now this assumes a dual login type of access through a staging server, in itself also having dual access requirement (4 in total), if I remember correctly.
Read the rest of this entry »
September 19th, 2012 | Posted in NIX Posts | No Comments
DD-WRT run what's known as a busybox, which is a single tiny executable designed to run on enbedded devices. busybox provides common UNIX utilities normally found on larger UNIX / Linux installations such as desktop computers. Unfortunately it's limited and even with the shell it provides, alot of functionality such as common shell loops no longer function as expected or the syntax is simply not supported. So none of these would work:
for KEY in $(cat /var/log/messages); do print "something"; done
for KEY in 1 2 3 4 5 6 7 8; do print $KEY; done
for KEY in 1 .. 1000; do print $KEY; done
Here's how to create a for loop to print a sequence or range of numbers on DD-WRT or busybox devices:
Read the rest of this entry »
September 10th, 2012 | Posted in NIX Posts | No Comments
So I bought myself an intel GigE card with the 82574L chip to deal with a certain problem I've been having with the RealTek one (cough). So I wanted to try another chip other then RealTek ones to see if that would make a difference.
I suppose one could argue I should have done more research because I install the card in the system and what do I run into after trying to transfer some files?
Sep 9 17:40:57 mbpc kernel: ————[ cut here ]————
Sep 9 17:40:57 mbpc kernel: WARNING: at net/sched/sch_generic.c:261 dev_watchdog+0x26d/0x280() (Not tainted)
Sep 9 17:40:57 mbpc kernel: Hardware name: GA-890XA-UD3
Sep 9 17:40:57 mbpc kernel: NETDEV WATCHDOG: eth1 (e1000e): transmit queue 0 timed out
Sep 9 17:40:57 mbpc kernel: Modules linked in: cryptd aes_x86_64 aes_generic arc4 ar9170usb mac80211 ath cfg80211 rfkill fuse bonding nfsd lockd nfs_acl auth_rpcgss autofs4 sunrpc cpufreq_ondemand powernow_k8 freq_table mperf 8021q garp stp llc ipt_REJECT ipt_LOG xt_multiport iptable_filter ip_tables ip6t_REJECT nf_conntrack_ipv6 nf_defrag_ipv6 xt_state nf_conntrack ip6table_filter ip6_tables ipv6 xfs exportfs dm_mirror dm_region_hash dm_log uinput raid456 async_raid6_recov async_pq raid6_pq async_xor xor async_memcpy async_tx snd_emu10k1_synth snd_emux_synth snd_seq_virmidi snd_seq_midi_event snd_seq_midi_emul snd_emu10k1 snd_rawmidi snd_ac97_codec ac97_bus snd_util_mem microcode sg serio_raw k10temp edac_core edac_mce_amd shpchp i2c_piix4 r8168(U) e1000e snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_intel snd_hda_codec snd_hwdep snd_seq snd_seq_device snd_pcm snd_timer snd soundcore snd_page_alloc ext4 mbcache jbd2 sr_mod cdrom firewire_ohci firewire_core crc_itu_t sd_mod crc_t10dif ahci pata_acpi ata_ge
Sep 9 17:40:57 mbpc kernel: neric pata_jmicron radeon ttm drm_kms_helper drm i2c_algo_bit i2c_core dm_mod [last unloaded: scsi_wait_scan]
Sep 9 17:40:57 mbpc kernel: Pid: 0, comm: swapper Not tainted 2.6.32-279.5.1.el6.x86_64 #1
Sep 9 17:40:57 mbpc kernel: Call Trace:
Sep 9 17:40:57 mbpc kernel: <IRQ> [] ? warn_slowpath_common+0x87/0xc0
Sep 9 17:40:57 mbpc kernel: [] ? warn_slowpath_fmt+0x46/0x50
Sep 9 17:40:57 mbpc kernel: [] ? dev_watchdog+0x26d/0x280
Sep 9 17:40:57 mbpc kernel: [] ? insert_work+0x6d/0xb0
Sep 9 17:40:57 mbpc kernel: [] ? dev_watchdog+0x0/0x280
Sep 9 17:40:57 mbpc kernel: [] ? run_timer_softirq+0x197/0x340
Sep 9 17:40:57 mbpc kernel: [] ? tick_sched_timer+0x0/0xc0
Sep 9 17:40:57 mbpc kernel: [] ? lapic_next_event+0x1d/0x30
Sep 9 17:40:57 mbpc kernel: [] ? __do_softirq+0xc1/0x1e0
Sep 9 17:40:57 mbpc kernel: [] ? hrtimer_interrupt+0x140/0x250
Sep 9 17:40:57 mbpc kernel: [] ? call_softirq+0x1c/0x30
Sep 9 17:40:57 mbpc kernel: [] ? do_softirq+0x65/0xa0
Sep 9 17:40:57 mbpc kernel: [] ? irq_exit+0x85/0x90
Sep 9 17:40:57 mbpc kernel: [] ? smp_apic_timer_interrupt+0x70/0x9b
Sep 9 17:40:57 mbpc kernel: [] ? apic_timer_interrupt+0x13/0x20
Sep 9 17:40:57 mbpc kernel: <EOI> [] ? native_safe_halt+0xb/0x10
Sep 9 17:40:57 mbpc kernel: [] ? default_idle+0x4d/0xb0
Sep 9 17:40:57 mbpc kernel: [] ? c1e_idle+0x9d/0x120
Sep 9 17:40:57 mbpc kernel: [] ? cpu_idle+0xb6/0x110
Sep 9 17:40:57 mbpc kernel: [] ? rest_init+0x7a/0x80
Sep 9 17:40:57 mbpc kernel: [] ? start_kernel+0x424/0x430
Sep 9 17:40:57 mbpc kernel: [] ? x86_64_start_reservations+0x125/0x129
Sep 9 17:40:57 mbpc kernel: [] ? x86_64_start_kernel+0xfa/0x109
Sep 9 17:40:57 mbpc kernel: —[ end trace aede656af05e9e90 ]—
Sep 9 17:40:57 mbpc kernel: e1000e 0000:03:00.0: eth1: Reset adapter
Sep 9 17:40:57 mbpc kernel: bonding: bond0: link status definitely down for interface eth1, disabling it
Sep 9 17:41:01 mbpc kernel: e1000e: eth1 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: Rx/Tx
Sep 9 17:41:01 mbpc kernel: bond0: link status definitely up for interface eth1, 1000 Mbps full duplex.
Sep 9 17:41:50 mbpc kernel: e1000e 0000:03:00.0: eth1: Reset adapter
Sep 9 17:41:50 mbpc kernel: bonding: bond0: link status definitely down for interface eth1, disabling it
Sep 9 17:41:53 mbpc kernel: e1000e: eth1 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: Rx/Tx
Sep 9 17:41:54 mbpc kernel: bond0: link status definitely up for interface eth1, 1000 Mbps full duplex.
Sep 9 17:42:14 mbpc smbd[9540]: [2012/09/09 17:42:14.893011, 0] lib/util_sock.c:474(read_fd_with_timeout)
Sep 9 17:42:14 mbpc smbd[9540]: [2012/09/09 17:42:14.893583, 0] lib/util_sock.c:1441(get_peer_addr_internal)
Sep 9 17:42:14 mbpc smbd[9540]: getpeername failed. Error was Transport endpoint is not connected
Sep 9 17:42:14 mbpc smbd[9540]: read_fd_with_timeout: client 0.0.0.0 read error = Connection reset by peer.
Sep 9 17:42:28 mbpc kernel: e1000e 0000:03:00.0: eth1: Reset adapter
Sep 9 17:42:28 mbpc kernel: bonding: bond0: link status definitely down for interface eth1, disabling it
Sep 9 17:42:29 mbpc smbd[2287]: [2012/09/09 17:42:29.932801, 0] smbd/server.c:281(remove_child_pid)
Sep 9 17:42:29 mbpc smbd[2287]: Could not find child 15205 — ignoring
Sep 9 17:42:32 mbpc kernel: e1000e: eth1 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: Rx/Tx
Sep 9 17:42:32 mbpc kernel: bond0: link status definitely up for interface eth1, 1000 Mbps full duplex.
Sep 9 17:43:11 mbpc kernel: bonding: bond0: link status definitely down for interface eth1, disabling it
Sep 9 17:43:14 mbpc kernel: e1000e: eth1 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: Rx/Tx
Sep 9 17:43:14 mbpc kernel: bond0: link status definitely up for interface eth1, 1000 Mbps full duplex.
Sep 9 17:43:23 mbpc kernel: usb 3-3: USB setup failed (-19).
Sep 9 17:43:23 mbpc kernel: bonding: bond0: Adding slave wlan0.
Sep 9 17:43:23 mbpc kernel: usb 3-3: USB setup failed (-19).
Here's how we went about looking into this one:
Read the rest of this entry »
September 10th, 2012 | Posted in NIX Posts, Web | 6 Comments