>

BASH: Building an Arsenal‎ – Part 1

BASH: Building an Arsenal‎ – Part 1
If you spend much time at all coding or scripting you realize that you often do some of the same things over and over. That’s where functions and libraries come in. Having a library of commonly used functions handy helps speedup the coding process quite a bit. Usually I prefer to use the best tool for the job. That means using Perl, PHP, C, C++, BASH, or any other language suited for the task. However, lately I’ve been using BASH more than usual. Primarily because it’s pretty much guaranteed to be on just about ever, non Windows, system that I touch. Unfortunately, while I have an...
read more

Command/App of the Week: dmidecode

Command/App of the Week: dmidecode
dmidecode a tool for dumping a computer’s DMI (some say SMBIOS) table contents in a human-readable format. This table contains a description of the system’s hardware components, as well as other useful pieces of information such as serial numbers and BIOS revision. Thanks to this table, you can retrieve this information without having to probe for the actual hardware. While this is a good point in terms of report speed and safeness, this also makes the presented information possibly unreliable. Options can be used to display specific information, such as motherboard details. Available types include:...
read more

Command/App of the Week: lspci

Command/App of the Week: lspci
lspci is a utility for displaying information about PCI buses in the system and devices connected to them. By default, it shows a brief list of devices. Options are available to request either a more verbose output or output intended for parsing by other programs. Example: $ lspci -tv -[0000:00]-+-00.0 Intel Corporation Mobile 945GM/PM/GMS, 943/940GML and 945GT Express Memory Controller Hub +-02.0 Intel Corporation Mobile 945GM/GMS, 943/940GML Express Integrated Graphics Controller +-02.1 Intel Corporation Mobile 945GM/GMS/GME, 943/940GML Express Integrated Graphics Controller +-1b.0 Intel Corporation...
read more

Windows Command/App of the Week: Driverquery

Windows Command/App of the Week: Driverquery
Syntax driverquery [/s Computer] [/u Domain\User /p Password] [/fo {TABLE|LIST|CSV}] [/nh] [/v] [/si] Parameters /s Computer : Specifies the name or IP address of a remote computer (do not use backslashes). The default is the local computer. /u Domain \ User : Runs the command with the account permissions of the user specified by User or Domain\User. The default is the permissions of the current logged on user on the computer issuing the command. /p Password : Specifies the password of the user account that is specified in the /u parameter. /fo { TABLE | LIST | CSV } : Specifies the format to display...
read more

Linux: How to Identify 32bit vs. 64bit

Linux: How to Identify 32bit vs. 64bit
Often I find that I am needing to determine a) if an O/S install is 32bit or 64bit and b) if the CPU will support 64bit. I run into a lot of Linux boxes that have 64bit CPUs but the 32bit version of the distribution was installed. Here are a few quick ways to tell. For the O/S: The architecture should be listed as x86_64 for 64bit or i686 for 32bit. Using uname (-m or -p): 64bit $ uname -m x86_64 $ uname -p x86_64 32bit $ uname -m i686 $ uname -p i686 or using lscpu: 64bit $ lscpu | grep -i arch Architecture: x86_64 32bit $ lscpu | grep -i arch Architecture: i686 or using getconf: 64bit $ getconf...
read more

Java 7: Getting Self-signed/Untrusted Apps to Run

Java 7: Getting Self-signed/Untrusted Apps to Run
Well, in the name of security, it seems Java 7 has broken a whole lot of apps. I will not bother with the pros and cons of this, but will simply address how to get things working again. Java 7, by default, blocks “untrusted” and “self-signed” applications. In addition, it is 64 bit and will not work with Chrome on Macs, which is 32 bit. Trying to run such an app results in this annoying dialog: There are a couple ways around this. The most simple is to use the Java Security Preferences to lower the Security Level. This can be done by: Select “System...
read more

« Previous Entries