Jump to content


  • Content Count

  • Joined

  • Last visited

Community Reputation

0 Neutral

About wildweaselmi

  • Rank
    Advanced Member

Recent Profile Visitors

1,614 profile views
  1. Version 1.0.0

    1 download

    providing a google chrome RPM
  2. wildweaselmi

    general images

    some linux focused images
  3. wildweaselmi

    Animated Images

    some funny animated images
  4. Yea yea, I know this title is very generic and yes we all like to bag on Microsoft but this is more of a very high level side by side with Microsofts product, Windows. Why is Wordpress like Windows? They both are slow over time. The more you add the slower it gets. The more software, plugins you add the slower it gets. They are both very insecure and require a separate security package. Here is my experience with Wordpress since this is all just a learning experiment. I built a community on Joomla using Kunena as a forum and EasyBlog as my blog and eDocman as my File Management and I forget what I used for my Media. The site was quick but again, security was a big hole. First I noticed tons of issues with Kunena so I moved to phpBB3 which was and is a fantastic forum package but its 3rd party so you need to use a bridge to integrate into your Joomla site and that takes resources and you would occasionally get a sync error between Joomla and phpBB3. When you are using software that isn't fully integrated then you discover issues like the search plugin doesn't search everything. So I did some research and Wordpress is the most used web software, just like Microsoft Windows is the most used operating system but what the most have in common is price. Windows is cheap in comparison and likewise Wordpress is free. So obviously free typically attracts tons of people. Now Joomla is also free but with both Wordpress and Joomla what isn't free are all the addons needed to make it a usable site and now you depend on the developers of those addons to keep them up to date and support. In my experience some addon companies were better than others for both Joomla and Wordpress addons. I like Wordpress plugin manager way better with the reviews, easy to search for type of plugin where Joomla is more like a Sears catalog where you have to find the category and hope you pick the right one. Most addons are free to install but if you want any real functionality you have to pay for the upgrade and the payment is a yearly subscription. No longer are the days where you buy a plugin and you own it. Now you subscribe for a pretty hefty price and you keep paying "the man" or you will get infected. So as you see I settled on a web software that has all those addons (files, calendar, blog, etc) included. Yes I have to pay $210/year for the software but that includes all the updates to maintain the software and very quick response for support. If you go for a free solution like Wordpress or Joomla be prepared to pay way more than $210 for less functionality. Let me share some examples so you know I'm not just blowing smoke. Gallery IPB: included Wordpress: rtMedia ($499 ) or MediaPress ($ ) Joomla: File Management/Downloads IPB: included Wordpress: WPDM ($199) Joomla: Blog IPB: included Wordpress: included Joomla: EasyBlog ($ ) Recipes IPB: included Wordpress: Joomla: Calendar/Events IPB: included Wordpress: EventON ($215 ) Joomla: Project Management IPB: doesn't offer anything Wordpress: WeDevs WP Project Management ($249) Joomla: Articles IPB: included Wordpress: Joomla: included Support Tickets IPB: included Wordpress: Joomla: Forms IPB: limited Wordpress: Gravity Forms (workflow is awesome) Joomla: Link Library IPB: none Wordpress: Link Library Joomla: Security IPB: built in Wordpress: iThemes ($ ) Joomla: Groups IPB: included Wordpress: BuddyBoss Joomla: community builder or Forums IPB: included Wordpress: bbpress (tools) Joomla: kuena or phpbb3 bridge Backup System IPB: none Wordpress: Updraft or Backupbuddy ($ ) Joomla:
  5. Sometimes your linux box has been running for such a long time you may have forgotten what the heck you are running. The quickest and easiest way to identify what you have is run the following command lsb_release -a example: If that doesn't work for one reason or another try this command instead cat /etc/*-release example: You may also want to know what kernel version you are running uname -a or uname -mrs example: Linux = Kernel name 3.2.0-35-generic-pae = Kernel version number i686 = Machine hardware name Finally you can see what kernel and gcc version with the following command cat /proc/version example:
  6. There are several commands to show how much memory is being used or how much is free or what process is taking how much memory. What command can you run to show the percentage of what is free? Would be helpful to compare to reporting tools to see if they match.
  7. NAME vmstat - Report virtual memory statistics SYNOPSIS vmstat [-a] [-n] [delay [ count]] vmstat [-f] [-s] [-m] vmstat [-S unit] vmstat [-d] vmstat [-p disk partition] vmstat [-V] DESCRIPTION vmstat reports information about processes, memory, paging, block IO, traps, and cpu activity. The first report produced gives averages since the last reboot. Addi- tional reports give information on a sampling period of length delay. The process and memory reports are instantaneous in either case. Options The -a switch displays active/inactive memory, given a 2.5.41 kernel or better. The -f switch displays the number of forks since boot. This includes the fork, vfork, and clone system calls, and is equivalent to the total number of tasks created. Each process is represented by one or more tasks, depending on thread usage. This display does not repeat. The -m displays slabinfo. The -n switch causes the header to be displayed only once rather than periodically. The -s switch displays a table of various event counters and memory statistics. This display does not repeat. delay is the delay between updates in seconds. If no delay is speci- fied, only one report is printed with the average values since boot. count is the number of updates. If no count is specified and delay is defined, count defaults to infinity. The -d reports disk statistics (2.5.70 or above required) The -p followed by some partition name for detailed statistics (2.5.70 or above required) The -S followed by k or K or m or M switches outputs between 1000, 1024, 1000000, or 1048576 bytes The -V switch results in displaying version information. FIELD DESCRIPTION FOR VM MODE Procs r: The number of processes waiting for run time. b: The number of processes in uninterruptible sleep. Memory swpd: the amount of virtual memory used. free: the amount of idle memory. buff: the amount of memory used as buffers. cache: the amount of memory used as cache. inact: the amount of inactive memory. (-a option) active: the amount of active memory. (-a option) Swap si: Amount of memory swapped in from disk (/s). so: Amount of memory swapped to disk (/s). IO bi: Blocks received from a block device (blocks/s). bo: Blocks sent to a block device (blocks/s). System in: The number of interrupts per second, including the clock. cs: The number of context switches per second. CPU These are percentages of total CPU time. us: Time spent running non-kernel code. (user time, including nice time) sy: Time spent running kernel code. (system time) id: Time spent idle. Prior to Linux 2.5.41, this includes IO-wait time. wa: Time spent waiting for IO. Prior to Linux 2.5.41, shown as zero. FIELD DESCRIPTION FOR DISK MODE Reads total: Total reads completed successfully merged: grouped reads (resulting in one I/O) sectors: Sectors read successfully ms: milliseconds spent reading Writes total: Total writes completed successfully merged: grouped writes (resulting in one I/O) sectors: Sectors written successfully ms: milliseconds spent writing IO cur: I/O in progress s: seconds spent for I/O FIELD DESCRIPTION FOR DISK PARTITION MODE reads: Total number of reads issued to this partition read sectors: Total read sectors for partition writes : Total number of writes issued to this partition requested writes: Total number of write requests made for partition FIELD DESCRIPTION FOR SLAB MODE cache: Cache name num: Number of currently active objects total: Total number of available objects size: Size of each object pages: Number of pages with at least one active object totpages: Total number of allocated pages pslab: Number of pages per slab NOTES vmstat does not require special permissions. These reports are intended to help identify system bottlenecks. Linux vmstat does not count itself as a running process. All linux blocks are currently 1024 bytes. Old kernels may report blocks as 512 bytes, 2048 bytes, or 4096 bytes. Since procps 3.1.9, vmstat lets you choose units (k, K, m, M) default is K (1024 bytes) in the default mode vmstat uses slabinfo 1.1 FIXME FILES /proc/meminfo /proc/stat /proc/*/stat SEE ALSO iostat(1), sar(1), mpstat(1), ps(1), top(1), free(1) BUGS Does not tabulate the block io per device or count the number of system calls. AUTHORS Written by Henry Ware ;. Fabian Frédérick ; (diskstat, slab, partitions...)
  8. Sometimes its helpful to know what ports on your Mac are in LISTENING status. So here are a few commands that I found helpful in my quest to find what ports are open. $ netstat -atp tcp | grep -i "listen" tcp4 0 0 *.irdmi *.* LISTEN tcp4 0 0 localhost.49155 *.* LISTEN tcp4 0 0 localhost.49154 *.* LISTEN tcp4 0 0 localhost.49153 *.* LISTEN tcp4 0 0 localhost.49152 *.* LISTEN tcp4 0 0 *.kerberos *.* LISTEN tcp6 0 0 *.kerberos *.* LISTEN tcp4 0 0 *.ssh *.* LISTEN tcp6 0 0 *.ssh *.* LISTEN tcp4 0 0 localhost.ipp *.* LISTEN tcp6 0 0 localhost.ipp *.* LISTEN tcp4 0 0 *.rfb *.* LISTEN tcp6 0 0 *.rfb *.* LISTEN And also I used $ sudo lsof -i -P | grep -i "listen" Password: launchd 1 root 26u IPv6 0x6a234a812945c29f 0t0 TCP *:5900 (LISTEN) launchd 1 root 28u IPv4 0x6a234a81294621ef 0t0 TCP *:5900 (LISTEN) launchd 1 root 30u IPv6 0x6a234a812945c29f 0t0 TCP *:5900 (LISTEN) launchd 1 root 31u IPv4 0x6a234a81294621ef 0t0 TCP *:5900 (LISTEN) launchd 1 root 43u IPv6 0x6a234a812945b89f 0t0 TCP *:22 (LISTEN) launchd 1 root 46u IPv4 0x6a234a812946104f 0t0 TCP *:22 (LISTEN) launchd 1 root 52u IPv4 0x6a234a812946191f 0t0 TCP localhost:631 (LISTEN) launchd 1 root 53u IPv6 0x6a234a812945bd9f 0t0 TCP localhost:631 (LISTEN) launchd 1 root 54u IPv6 0x6a234a812945bd9f 0t0 TCP localhost:631 (LISTEN) launchd 1 root 55u IPv6 0x6a234a812945b89f 0t0 TCP *:22 (LISTEN) launchd 1 root 56u IPv4 0x6a234a812946104f 0t0 TCP *:22 (LISTEN) launchd 1 root 59u IPv4 0x6a234a812946191f 0t0 TCP localhost:631 (LISTEN) pma_agent 70 root 19u IPv4 0x6a234a812945db6f 0t0 TCP *:8000 (LISTEN) bcua-serv 76 root 16u IPv4 0x6a234a812945e43f 0t0 TCP localhost:49154 (LISTEN) bcua-serv 76 root 19u IPv4 0x6a234a812945feaf 0t0 TCP localhost:49155 (LISTEN) mtmfs 79 root 4u IPv4 0x6a234a812945f5df 0t0 TCP localhost:49152 (LISTEN) mtmfs 79 root 6u IPv4 0x6a234a812945ed0f 0t0 TCP localhost:49153 (LISTEN) kdc 96 root 6u IPv6 0x6a234a812945b39f 0t0 TCP *:88 (LISTEN) kdc 96 root 8u IPv4 0x6a234a812946077f 0t0 TCP *:88 (LISTEN)
  9. We may deploy several servers and we need an easy quick way to see if they are now responding I found fping to work best Throw all your IP's in a text file (for example pinglist.txt) and run it sudo fping -a -r 0 -f pinglist.txt
  10. On my Ubuntu Installation I found the installation at ls -l /usr/local/nagios/etc/ -rw-rw-r-- 1 nagios nagios 12270 Aug 4 07:09 cgi.cfg -rw-rw-r-- 1 nagios nagios 12270 Aug 3 15:05 cgi.cfg~ -rw-r--r-- 1 root root 50 Aug 3 15:07 htpasswd.users -rw-rw-r-- 1 nagios nagios 44904 Nov 2 08:22 nagios.cfg -rw-rw-r-- 1 nagios nagios 44833 Aug 4 06:58 nagios.cfg~ drwxrwxr-x 2 nagios nagios 4096 Nov 2 08:44 objects -rw-rw---- 1 nagios nagios 1315 Aug 4 07:09 resource.cfg -rw-rw---- 1 nagios nagios 1315 Aug 3 15:05 resource.cfg~ drwxr-xr-x 2 root root 4096 Nov 2 09:42 servers ls -l /usr/local/nagios/etc/objects -rw-r--r-- 1 root root 7473 Sep 11 10:30 1 -rw-rw-r-- 1 nagios nagios 7890 Nov 2 08:44 commands.cfg -rw-rw-r-- 1 nagios nagios 7707 Aug 3 15:05 commands.cfg~ -rw-rw-r-- 1 nagios nagios 2138 Aug 4 07:09 contacts.cfg -rw-rw-r-- 1 nagios nagios 2144 Aug 4 06:59 contacts.cfg~ -rw-r--r-- 1 root root 157 Nov 2 08:39 custom-servicegroups.cfg -rw-rw-r-- 1 nagios nagios 5375 Aug 4 07:09 localhost.cfg -rw-rw-r-- 1 nagios nagios 5375 Aug 3 15:05 localhost.cfg~ -rw-rw-r-- 1 nagios nagios 3096 Aug 4 07:09 printer.cfg -rw-rw-r-- 1 nagios nagios 3096 Aug 3 15:05 printer.cfg~ -rw-rw-r-- 1 nagios nagios 3265 Aug 4 07:09 switch.cfg -rw-rw-r-- 1 nagios nagios 3265 Aug 3 15:05 switch.cfg~ -rw-rw-r-- 1 nagios nagios 10621 Aug 4 07:09 templates.cfg -rw-rw-r-- 1 nagios nagios 10621 Aug 3 15:05 templates.cfg~ -rw-rw-r-- 1 nagios nagios 3180 Aug 4 07:09 timeperiods.cfg -rw-rw-r-- 1 nagios nagios 3180 Aug 3 15:05 timeperiods.cfg~ -rw-rw-r-- 1 nagios nagios 3991 Aug 4 07:09 windows.cfg -rw-rw-r-- 1 nagios nagios 3991 Aug 3 15:05 windows.cfg~ ls -l /usr/local/nagios/etc/servers -rw-r--r-- 1 root root 6867 Nov 2 09:30 dfw1oapdn101.cfg -rw-r--r-- 1 root root 6867 Nov 2 09:31 dfw1oapdn102.cfg -rw-r--r-- 1 root root 6885 Nov 2 09:29 dfw1oapdn103.cfg -rw-r--r-- 1 root root 6432 Nov 2 09:41 gridtest.cfg -rw-r--r-- 1 root root 642 Nov 2 07:24 hostgroup.cfg -rw-r--r-- 1 root root 6930 Nov 2 09:37 lab1oapdn101.cfg -rw-r--r-- 1 root root 6211 Nov 2 09:42 lab1oapdn102.cfg -rw-r--r-- 1 root root 6856 Nov 2 09:26 sat1oapdn101.cfg -rw-r--r-- 1 root root 7189 Nov 2 09:25 sat1oapdn102.cfg -rw-r--r-- 1 root root 6868 Nov 2 09:27 sat1oapdn103.cfg
  11. It helps, sometimes, to know what the last commands issued from a user on a Linux box was. I found troubleshooting this is helpful or to to help learning and it's just sometimes good to know. The easiest way I found is to issue the following command to identify what commands have been issued by a certain user on your linux operating system sudo vim /home/USER_YOU_WANT_TO_VIEW/.bash_history
  12. There comes a time that the DNS server(s) do not have the name to address resolution you need so just add it to your local hosts file. Mac OS X 10.2 or later Edit the /private/etc/hosts file. For more information on how to use the hosts file, open Terminal and type: man hosts Note: Editing this file requires root privileges. I suggest typing while in Terminal sudo nano /private/etc/hosts It may be a good idea to flush the DNS Cache that is running by then typing the following after you save the hosts file dscacheutil -flushcache
  13. Switching operating systems is a scary and can be exciting adventure. It can also be a major pain in the butt. I am not author of any book but hope I can help fill in some blanks. If you want a recommendation on a book, for beginners I strongly recommend a book called Teach Yourself VISUALLY Mac OS X Leopard It has proven itself to people of all ages on getting up and going with there move from Windows to Mac. Here are some basic things you may or may not know. Open Applications... In Windows you click the Start button - Click on Programs - Select Your Application In Mac OS X you click the Finder (looks like a smiley face) - Click on Applications - Select Your Application Check Email without having to purchase any additional application... In Windows you click on Outlook Express In Mac you click on Apple Mail (both are equal in functionality, Apple Mail seems to handle large amount of mail quite a bit quicker to include searching) Check Email with purchase of additional application... (mostly for us business people that need to connect to Outlook Exchange servers) In Windows you open Microsoft Outlook In Mac you open Microsoft Entourage (Microsoft Outlook is better but not be a whole lot. Entourage sync's with Outlook Exchange server to include Mail and Calendar without any issues) Word Processor included with operating system In Windows you click Start - Programs - Accessories - either Notepad or Wordpad In Mac OS X you click the Finder (looks like a smiley face) - Click on Applications - TextEdit (note that all Mac Applications are found in the exact same place... Finder - Applications unless you move them somewhere else) (I'll keep adding to this article so it will probably never be finished)
  14. I am curious as to what I should do when I can not click on FInder (it just makes a sound everything I click on it like something is in the background waiting for me to answer it but I can't seem to find anything). I can not open a new window and I'm not able to click on the apple to do a restart. Someone said to open terminal and type something like: sudo -h shutdown now but i can't get to Terminal. You could click on spotlight and type Terminal and it will find it for you at which time you could just double-click on. As far as shutting down or restarting your system you could do either without clicking on the apple, just as long as you can open up your terminal window. Reboot sudo -h reboot Shutdown sudo -h shutdown now[/code] NOTE: you will need your password Reference: Mac OS X Manual Page For sudo(8)
  15. One way to store or group files on a Mac is to create a Disk Image. A Disk Image is a file which has the properties of a separate hard drive or CD. It has a size limit and options for encryption to keep your files safe and secure. This how-to will work with Mac OS X. Steps Create a New Folder and place the files you would like in your disk image into this new folder. Right click (or CTRL-Click) the folder and select "Get Info" and note the size of it's contents. Open Disk Utility (Applications > Utilities > Disk Utility) Click the "New Image" icon to create a new disk image. Enter a name for the Image, and select a size adequate for the size of your folder you created in Step 2. Set the encryption to "none" and Format to "read/write disk image". See Tips to learn how to encrypt the image. Place the contents of the folder from Step 2 into the newly mounted disk image Unmount the Disk Image by dragging it's icon to the Trash. In the Finder window, you can also click the Eject symbol next to the mounted image. Be proud that you now know how to do something most people don't know how to do! Tips You can encrypt your Disk Image with a password if you would like your files to be private. Simply Select "AES-128" under the "Encryption" drop-down menu. After you click "Create" and it will ask you to create a password for your files. When you double click a .dmg file, it will "Mount" on the desktop. This is the only way to access or modify the contents of the Image. A .dmg file can be a very easy way to send files from one Mac to another. Any Mac can mount and access the Disk Image on their computer.
  • Create New...