|
|
|
|

Topic #288 by mreschke on 2012-03-08 12:52:56 (viewed 162 times)
The goal of this article is to setup, maintain and monitor a dual node active/active Xen cluster. We will be using 2 identical computers running Linux/GNU Debian 6.04 squeeze as the host operating system. We will be using DRBD for network replication plus pacemaker/corosync as the cluster resource manager and messaging layer. Xen will be the virtualization technology where we can virtualize either HVM (Hardware Virtual Machines) or PV (Paravirtualized Machines). Each virtual machine's data will be replicated on each node allowing for failover. I will NOT be utilizing xen's live migration technology because that requires an OCFS2 or GFS2 filesystem and DRBD to run in primary/primary mode which I believe makes the system a bit more unstable (recovery from primary/primary DRBD split-brain is not as "automatic" as recovery from primary/secondary...). Live migration is simple to setup and use, I have created several live migrating clusters and they work perfectly. In the end, for a production environment, I chose not to implement live migration for stability.
|
mreschke
Updated by mreschke
on 2012-04-28 00:01:31
Views: 162
Comments: 0
|
|
|

Topic #282 by mreschke on 2012-01-14 16:11:28 (viewed 249 times)
Build and enhance my first LFS 7.0 custom Linux distribution :r: :r: :r: :r: You should turn your LFS build into a LiveCD, then use that CD as the installer!!! http:www.linuxfromscratch.org/hints/downloads/files/boot-cd_easy.txt http:www.linux-live.org/ http:www.culmination.org/Mike/2.6-udev-nptl-bootcd.txt Installer packages http:wiki.debian.org/DebianInstaller http:fedoraproject.org/wiki/Anaconda LC_ALL=POSIX I have successfully built LFS 7.0 i686 on my 2011 qdesk (AMD Phenom X4 8GB - see ) m...
|
mreschke
Updated by mreschke
on 2012-02-04 15:21:29
Views: 249
Comments: 0
|
|
|

Topic #278 by mreschke on 2011-11-16 08:10:52 (viewed 396 times)
Learn how to connect to an an PHP/SOAP or ASP.NET/SOAP web service with PHP and how to create a PHP SOAP web service (server)
|
mreschke
Updated by mreschke
on 2011-11-16 13:50:20
Views: 396
Comments: 0
|
|
|

Topic #270 by mreschke on 2011-10-12 15:10:22 (viewed 257 times)
FreeBSD is an advanced operating system for modern server, desktop, and embedded computer platforms.[1] This is only a brief crash course or introduction to a few of the import tasks in FreeBSD, mostly installing ports/packages, upgrading the system and navigating the file system.
FreeBSD maintains an incredible wealth of documentation on their website, see their Handbook for information. A great intro to FreeBSD can be found http://www.freebsd.org/doc/en/articles/linux-users/article.html
|
Please note that I come mostly from Linux, so I tend to setup FreeBSD in a manner that is similar to my Linux environment (ie, bash vs csh...).
|
Each command in this topic starts with a # if it is meant to be run as the root user, or a $ (or no sign) if it is meant to be run as the regular user (your main user account)
|
mreschke
Updated by mreschke
on 2012-01-09 16:15:39
Views: 257
Comments: 0
|
|
|

Topic #263 by mreschke on 2011-10-07 13:28:29 (viewed 306 times)
Oh yeah, pfSense baby! http:www.polarcloud.com/tomato a different firmware for your wrt54g Dont buy Wifi miniPCi cards at netgate.com, they are expensive, buy at http:www.roc-noc.com/wistron/minipci/radio/CM9.html or http:www.mini-box.com/miniPCI-and-mPCi-Express-cards_2 A great review of the ALIX from netgate http:xercestech.com/alix-single-board-computer.geek Install on VirtublBox using pfSense-2.0-RELEASE-i386.iso in custom install mode took only a few minutes. Just bought this http:store.ne...
|
mreschke
Updated by mreschke
on 2011-11-15 13:10:41
Views: 306
Comments: 0
|
|
|

Topic #259 by mreschke on 2011-07-13 11:06:13 (viewed 82 times)
How to even create and run a script file http:technet.microsoft.com/en-us/library/ee176949.aspx Basically enable local script execution with Set-ExecutionPolicy RemoteSigned Always run scripts with either their full path c:\test\script.ps1 or with .\ if in local directory .\test.ps1 If path to script has space in it, must surround with double quotes and also must start with & sign &"c:\my scripts\test script.ps1" Example Script Example of PowerShell Loop echo "" echo "Simple Foreach" echo "--"...
|
mreschke
Updated by mreschke
on 2012-03-01 09:37:22
Views: 82
Comments: 0
|
|
|

Topic #255 by mreschke on 2011-06-14 12:37:23 (viewed 1,493 times)
Official mRcore4 RESTful API Documentation! :r: Why? I have created several RESTful API's simply because I wanted to learn how to develop webservices using PHP and REST. I sort of followed Twitters API URL style (http:dev.twitter.com/doc), if they can't do REST, no one can eh? Eventually I would like to create a native Android application for mRcore4 using these API's, and possibly experiment abstracting the database layer completely, making all queries through an API. It has already come in ha...
|
mreschke
Updated by mreschke
on 2011-12-21 00:22:56
Views: 1,493
Comments: 0
|
|
|

Topic #254 by mreschke on 2011-06-08 09:14:59 (viewed 3,140 times)
This topic helps with two things. One is to upgrade an old Ubuntu release to a new release, and by old I mean one that is no longer supported. Keep in mind that if say 9.04 is unsupported, but 9.10 is still supported, you can simply do the do-release-update. This doc helps when both 9.04 and 9.10 and above are EOL (end of life). Second is to maintain the use of an old Ubuntu distro even after its repositories stop working. Basically if you don't install the LTS (Long Term Support) release of Ubuntu then your distro is only supported for about a year. After that year all your repositories (using apt-get) fail and cannot be found. This is because Ubuntu archives the old repositories to a different URL. You don't actually have to upgrade your old Ubuntu distro, and you can continue to use it and its repos, you just have to switch to the new repo URL's. See below.
|
mreschke
Updated by mreschke
on 2011-10-11 16:37:01
Views: 3,140
Comments: 0
|
|
|

Topic #253 by mreschke on 2011-06-07 12:40:06 (viewed 454 times)
I need to adjust the date and time in linux quite often and sometimes its a pain to google the correct procedure of hardware clock and system clock. So here it is. This will change both your system clock and hardware clock together sudo date -s "7 JUN 2011 12:44:00"; sudo hwclock --systohc Show System Clock date Show Hardware Clock sudo hwclock --show Change System Clock sudo date -s "2 OCT 2006 18:00:00" Set Hardware Clock from System Clock sudo hwclock --systohc Set System Clock from Hardware...
|
mreschke
Updated by mreschke
on 2011-06-07 12:46:36
Views: 454
Comments: 0
|
|
|

Topic #244 by mreschke on 2011-04-14 20:53:19 (viewed 330 times)
Small miscellaneous PHP code snippets and scripts while (list($key, $value) = each($_POST)) { echo "$key - $value"; }
|
mreschke
Updated by mreschke
on 2011-08-10 18:38:15
Views: 330
Comments: 0
|
|
|

Topic #238 by mreschke on 2011-03-08 10:53:32 (viewed 451 times)
http:msdn.microsoft.com/en-us/library/ms972966.aspx http:www.4guysfromrolla.com/articles/022603-1.aspx I have a large html file, I want to remove anything between the tags, even if the contents is on multiple lines. There is a regex option called RegexOptions.MultiLine which I though would work, but its actually the RegexOptions.Singleline below what makes it span multiple lines, see http:msdn.microsoft.com/en-us/library/ms972966.aspx for details on RegexOptions.Singleline. Dim reg As New Regex...
|
mreschke
Updated by mreschke
on 2011-09-06 12:54:59
Views: 451
Comments: 0
|
|
|

Topic #237 by mreschke on 2011-02-26 12:51:33 (viewed 2,228 times)
Easy install is to add to your /etc/pacman.conf file then through aur install android-sdk sudo pacman -S jdk eclipse sudo yaourt -S android-sdk Note, the android-sdk is in the AUR, which is why I use yaourt Add /opt/android-sdk/tools if not already added by installer in /etc/profile and logout and back in or restart Run eclipse Install the WST Server Adapters In eclipse, Help->Install New Software Select the 'Helios - http:download.eclipse.org/releases/helios' item from the 'Work With:' dropdow...
|
mreschke
Updated by mreschke
on 2011-06-16 23:10:44
Views: 2,228
Comments: 0
|
|
|

Topic #232 by mreschke on 2011-02-03 19:04:28 (viewed 143 times)
Update ports tree sudo port selfupdate List all ports port list Search for a port port search xxx Info on a port port info xxx Install port with port install xxx Show outdated ports port outdated Upgrade all your existing ports sudo port upgrade outdated Upgrade one port sudo port upgrade xxx You can install GTK apps like leafpad, but they look ugly. Change the GTK theme with: http:hints.macworld.com/article.php?story=20080309171359879 You can use the mac4lin gtk theme, see: http:pepijndevos.nl...
|
mreschke
Updated by mreschke
on 2011-11-15 13:09:03
Views: 143
Comments: 0
|
|
|

Topic #226 by mreschke on 2010-12-06 17:40:02 (viewed 768 times)
See Also and Replace all occurrence's in a file (and write back to the same file) sed -i "s/this/withthis/g" /tmp/somefile Replace output newline (carriage return) with sed ':a;N;$!ba;s/\n/ /g' emailbody="Your Directory`/bin/ls -Rhal $yourdir|sed ':a;N;$!ba;s/\ng'`"
|
mreschke
Updated by mreschke
on 2011-09-06 12:55:37
Views: 768
Comments: 0
|
|
|

Topic #225 by mreschke on 2010-12-04 21:32:15 (viewed 1,097 times)
See also and Awk is a very powerfull line editor filter or small programming language available in all unix style operating systems. This page contains small tutorial awk scripts and snippets. Columns are automatically assigned $1 - $n. And $0 is the entire line Awk has some built in functions: gsub(r,s) globally replaces r with s within the line ($0) index(s,t) returns first position of string t in s (or 0 if not present) length(s) returns the number of characters in s match(s,r) tests weather...
|
mreschke
Updated by mreschke
on 2011-09-06 12:55:58
Views: 1,097
Comments: 0
|
|
|

Topic #223 by mreschke on 2010-12-01 09:41:46 (viewed 986 times)
= :related: Related Topics :r: :r: :r: :r: This is the development topic for my custom ArchLinux KDE4 Distro. The public install page is Add to installer, screen command with my ~/.screenrc If you want to customize the overlay and upload it for all new installs, follow these steps. For creator only, passwords required Install the latest fresh qLinux ArchLinux KDE4 distro Become root su for all commands below mkdir /mrch, should be owned by root:root cd /mrch then wget http:mreschke.com/files/18...
|
mreschke
Updated by mreschke
on 2011-05-04 08:56:28
Views: 986
Comments: 0
|
|
|

Topic #222 by mreschke on 2010-11-26 12:49:49 (viewed 1,137 times)
An incredible linux administrators guide thanks to Linux Format Magazine (LXF Issue 138).
You can download the entire guide here rute-html-1.0.0.tar.bz2
Or read the full guide on my site by clicking here!

|
mreschke
Updated by mreschke
on 2011-04-14 16:22:45
Views: 1,137
Comments: 0
|
|
|

Topic #213 by mreschke on 2010-11-10 09:57:48 (viewed 250 times)
This script will email a log file (or any file specified) only if the file is under a certain size. If the file is over that size limit, it will still email, but no log will be attached. See Script does not use parameters, everything is hard coded, so just call the .vbs. Great in a scheduled task to email you a daily log file. Can easily be modified with parameters for various purposes. Option Explicit Dim iMsg, iConf, Flds, pc 'Email vars Dim logFile, maxLogSize 'Log vars Dim FSO, File, strSiz...
|
mreschke
Updated by mreschke
on 2010-11-27 13:24:15
Views: 250
Comments: 0
|
|
|

Topic #212 by mreschke on 2010-11-10 09:48:27 (viewed 299 times)
This script will start or stop a process by process name. If the process is already running with a start is called, it will not start a duplicate. The benefit is that it will NOT start the script twice. So if you want to ensure an application is running all the time, just setup a scheduled task to run this script every 10 minutes, if the .exe dies it will start it, if the .exe is still running, it won't start a duplication. REM Example Script.bat (note I path to the .exe dir so it runs in its l...
|
mreschke
Updated by mreschke
on 2010-12-02 12:39:01
Views: 299
Comments: 0
|
|
|

Topic #211 by mreschke on 2010-11-10 09:20:31 (viewed 682 times)
This script will recursively delete all files in every subfolder older than X days. Will not delete any folders, just files. I create a batch file and call the vbs script for any directory I need purged. rem Use this script to clean up any old files automatically. rem This .bat will be called weekly from a scheduled task, and will rem call the d:\production\batch\generic\DeleteOldFiles.vbs with directory/day parameters rem the commands will not run simultaneously (unless they begin with start)...
|
mreschke
Updated by mreschke
on 2011-09-08 11:15:59
Views: 682
Comments: 0
|
|
|

Topic #210 by h3ff01 on 2010-11-09 09:30:14 (viewed 2,456 times)
Hello! Anybody there? Move along now
|
h3ff01
Updated by mreschke
on 2011-12-30 10:23:16
Views: 2,456
Comments: 0
|
|
|

Topic #207 by mreschke on 2010-10-29 16:36:06 (viewed 801 times)
asdfadfasdfasdfasdf Configure a basic /etc/drbd.d/global_common.conf. See the below. local:/search or blah blah local:/search http:google.com mailto:mail@mreschke.com asdfasdf asdf asdf
|
mreschke
Updated by mreschke
on 2012-02-24 13:03:25
Views: 801
Comments: 0
|
|
|

Topic #205 by mreschke on 2010-10-26 17:13:27 (viewed 1,849 times)
The official help and documentation of mrcore. Include links to wiki syntax, add general site help and full search query help. Remove this old text wiki syntax stuff, just link to . Create a full search query helper. Welcome to the official help and documentation guide for mrcore, the core engine behind ! This topic is currently under construction, though the wiki syntax document is complete, please visit
|
mreschke
Updated by mreschke
on 2011-05-29 17:08:36
Views: 1,849
Comments: 0
|
|
|

Topic #201 by mreschke on 2010-09-29 10:20:17 (viewed 1,514 times)
I nice piece of javascript to alert the user X minutes before their session will timeout. Then again when their session actually times out. After they click OK on the last message, it redirects back to the login page (or wherever you want). The only variables you need to edit are warn_sec, timeout_sec, and window.location.href. Session Timeout Warning and Redirect mReschke 2010-09-29 function InitSessionTimer() { /mReschke 2010-09-29 */ warn_sec = 59 60 1000; Warning time in milliseconds timeout...
|
mreschke
Updated by mreschke
on 2010-11-27 13:24:53
Views: 1,514
Comments: 0
|
|
|

Topic #196 by mreschke on 2010-07-12 23:04:51 (viewed 293 times)
Install the Intel Corporation PRO/Wireless 2200BG on linux http:wiki.debian.org/ipw2200 http:wiki.debian.org/WiFi/HowToUse Wicd for XFCE is an awesome wifi manager sudo apt-get install wicd /etc/init.d/wicd start wicd-client -n &
|
mreschke
Updated by mreschke
on 2010-11-27 13:25:10
Views: 293
Comments: 0
|
|