Miguel Vallejo
OMG ROTF LMAO WTF AFK xD!
OMG ROTF LMAO WTF AFK xD!
Apr 24th
This is a quick tutorial *notes* for me as I constantly have to look for these simple things every time I have to install a lamp server on a nix box.
If you do this kind of stuff to this list might come in handy
This should pretty much set you up with a complete/working dev nix box.
You might also need this in some cases…
If you experience any problems hit me up.
Mar 2nd
Afters a couple of hours wasted looking online for the answers I ended up coming up with my own. I use vim as my text editor sooooo… if you use nano or whatever just use that.
The Following configuration is ideal for Load Balancing scenarios, you can find our more about different bond modes at the bottom of the post.
Lets install the correct software to support the bonding…
sudo apt-get install ifenslave
open up a shell/terminal window and edit…
sudo vim /etc/network/interfaces
Copy this info, replacing the ip’s provided with your own…
#The Loopback Network Interface
auto lo
iface lo inet loopback
#The Primary Network Interface
iface eth0 inet manual
iface eth1 inet manual
auto bond0
iface bond0 inet static
bond_miimon 100
bond_mode balance-rr
address 192.168.1.x <——————- USE YOUR OWN LOCAL IP (ASSIGN IT ONE)
netmask 255.255.255.0 <—————- USE YOUR OWN LOCAL SUBNET
gateway 192.168.1.1 <——————- USE YOUR OWN LOCAL GATEWAY IP
up ifenslave bond0 eth0 eth1
down ifenslave -d bond0 eth0 eth1
Save and exit
now open aliases.conf…
sudo vim /etc/modprobe.d/aliases.conf
copy this…
alias bond0 bonding
options bonding mode=0 miimon=100 downdelay=200 updelay=200
Save, Exit and Reboot your computer…
sudo reboot
This is tested and working in a live environment with dual GB nics, if you have any problems or would like to bond more then 2 nics leave a comment as the topic is beyond this quick post.
MODE INDEX
mode=0 (balance-rr) Round-robin policy: Transmit packets in sequential order from the first available slave through the last. This mode provides load balancing and fault tolerance.
mode=1 (active-backup) Active-backup policy: Only one slave in the bond is active. A different slave becomes active if, and only if, the active slave fails. The bond’s MAC address is externally visible on only one port (network adapter) to avoid confusing the switch. This mode provides fault tolerance. The primary option affects the behavior of this mode.
mode=2 (balance-xor) XOR policy: Transmit based on [(source MAC address XOR'd with destination MAC address) modulo slave count]. This selects the same slave for each destination MAC address. This mode provides load balancing and fault tolerance.
mode=3 (broadcast) Broadcast policy: transmits everything on all slave interfaces. This mode provides fault tolerance.
mode=4 (802.3ad) IEEE 802.3ad Dynamic link aggregation. Creates aggregation groups that share the same speed and duplex settings. Utilizes all slaves in the active aggregator according to the 802.3ad specification.
mode=5 (balance-tlb) Adaptive transmit load balancing: channel bonding that does not require any special switch support. The outgoing traffic is distributed according to the current load (computed relative to the speed) on each slave. Incoming traffic is received by the current slave. If the receiving slave fails, another slave takes over the MAC address of the failed receiving slave.
* Prerequisite: Ethtool support in the base drivers for retrieving the speed of each slave.
mode=6 (balance-alb) Adaptive load balancing: includes balance-tlb plus receive load balancing (rlb) for IPV4 traffic, and does not require any special switch support. The receive load balancing is achieved by ARP negotiation. The bonding driver intercepts the ARP Replies sent by the local system on their way out and overwrites the source hardware address with the unique hardware address of one of the slaves in the bond such that different peers use different hardware addresses for the server.
Jan 19th
If you haven’t heard yet It looks like #anonymous is once again taking justice into its own hands. They have taken multiple ant-piracy organizations down in retaliation to the actions of the FBI raid on MegaUpload earlier today. These sites include RIAA, MPAA, Department Of Justice just to name a few. According to the online chatter #ExpectUs this is the strongest coordinated attack recorded.
Aside from the obvious, I can’t help but question the timing of all this. It was only 24 hours ago that the largest recorded petition was done online to prevent malicious legislature from passing; SOPA aka Stop Internet Piracy Act (don’t pretend you knew that :P). Now we are seeing the largest retaliation by Anonymous, what if this is all the beginning of another digital version of 9/11? What if this event is the precursor to a larger plot, one that will portray a victimized system only to fool the it’s citizens into passing another SOPA *CAUGH* PATRIOT ACT… I cant help and wonder if Americans will finally man up to their responsibility and take back their country, because no one else will.
**Update**
Department of Justice (Justice.gov)
Motion Picture Association of America (MPAA.org)
Universal Music (UniversalMusic.com)
Belgian Anti-Piracy Federation (Anti-piracy.be/nl/)
Recording Industry Association of America (RIAA.org)
Federal Bureau of Investigation (FBI.gov)
Universal Music France (UniversalMusic.fr)
Senator Christopher Dodd (ChrisDodd.com)
Vivendi France (Vivendi.fr)
The White House (Whitehouse.gov)
BMI (BMI.com)
Warner Music Group (WMG.com)
Can you say PWNage >:| ?
Jan 19th
As time goes by and the internet gets flooded by anti-SOPA sentiment it becomes more and more transparent who are full of shit. How so right? Unlike most people who simply use the internet to search for information or to simply go online and Facebook your life away, I use it everyday as part of my life. As a web developer and network engineer I have no choice but to experience the web on a different level which few actually do. Aside from general scripting and infrastructure deployment we experience the web on a personal level.
To me it is incredibly insulting when you have companies who pretend to have some moral fiber to gain credibility from its user base. Google, Facebook and Twitter are perfect examples, protesting SOPA while they already are using SOPA like technology on its users. How so? Google, Yahoo, Twitter, and Facebook all Censor information. I have personally experienced censorship on all these platforms, legitimate information and links that don’t aggregate across other platforms because they are flagged as negative content, In other words CENSORSHIP!
Google the biggest hypocrite in the game has the audacity to protest SOPA when they helped the Chinese censor their internet infrastructure, total bullshit if you ask me.
Facebook already sells your information to government agencies and is only a matter of time before this becomes public knowledge, how would any company who did not have any real business model make so much money during its infant stages? Better yet why did some of the most corrupt institutions (Goldman Sachs) find Facebook to be of any value, why invest so much money into something that was not producing any? Aside from the hidden features for example; Face recognition cataloging and profiling Facebook provided the perfect source for intel on any user in its grasp. People post some of their most intimate information about their lives on Facebook, providing a rich source of information for anyone with malicious or sinister intent.
I guess in today’s world where perception is sold over reality it has becomes generally accepted, allow any company to make any claim without any real merit or true intent behind its rhetoric, like an actor playing a role. People need to stop believing all the bullshit they see and hear online and begin to really investigate any claims made by these or any companies who employ PR managers with psychology degrees, who know how to manipulate opinion and sway away from truth with very little visibility.
Jan 17th
So I finally decided to document this little issue I seem to have every time I need to set up a lamp server. The error “Lost connection to MySQL server at ‘reading initial communication packet’, system error: 111” can be a pain in the butt if your unfamiliar with linux lamp servers.
To quickly ellaborate on the problem, the problem is 99.9% usually caused because of the following:
This problem typically happens when you have 2 servers trying to communicate across the net. both servers are behind firewalls. The MYSQL Server by default comes bound with the localhost address (127.0.0.1). Which becomes a problem when your local network is trying to forward sql packets to your server. Since your MYSQL server is bound to 127.0.0.1 it will ignore any packet requests outside of its bound address.
To fix this issue simply check your LAN ip using your console/terminal.
Once you have your LAN ip you will want to go to your my.cnf (mysql config file) and edit the bound ip to your local LAN address (in some cases 192.168.1.x or 10.10.1.x etc…)
Run a second terminal window and sudo reboot your box.
once rebooted make sure you have created a mysql user with the correct remote access/permissions and log in.
At this point you should not be getting the error anymore. If you are check and make sure your scripts are using the correct credentials and selecting the correct database.
If you have any questions or require further assistance comment below.
Oct 30th
Its been a couple of months now since Anonymous made their plans public, to destroy Facebook on the 5th of November.
I for one can’t wait to see what happens, as a network engineer I can say it’s totally possible.
How is it possible might you ask? There are actually many ways what will be particularly interesting to me is which one they use. Some methods will only disrupt service, some can actually destroy it.
For the most part I agree with their actions, government is out of control mechanizing every aspect of life, and becoming extremely intrusive under the guise of “security”. What does Facebook actually have do with government right? EVERYTHING…
If we look back to January 2011 when Goldman Sachs announced their investment into Facebook – 450 Million to be exact ( One of Many Sources ). Why would Goldman Sachs invest into Facebook? because of Facebook advertising revenues?
One thing is for sure I don’t trust Goldman Sachs, they don’t seem to have a good history, especially in the past couple of years. Maybe it’s because they wanted control or access information they could monetize ( One of Many Sources ).
Clandestine Agencies could use this data to generate massive databases with physiological profiles of every person in the world. In fact this surely has already begun years ago ( Project In-Q-Tel ). How you might ask? Easy, by creating logical algorithmic bots that makes/processes decisions based on calculation, for example:
Weaponization of Social Networks has already been done, by using social networks to sway/steer public opinion or create Fan pages used to capture potential political activists, an already known fact ( one of many sources )
Imagine the power any Clandestine agency would have with this kind of knowledge. What if Facebook has been selling it to them to capitalize on an until recently – actual business model. If you recall until Facebook started their marketing platform they really didn’t generate any money. Sustaining a 200-500 Million Network isn’t cheap, being innovative isn’t either. Whatever happens I hope its for the good but if it’s one day discovered that Facebook was purposely selling private information, it will destroy them.
What do you think? Is it right or wrong? do you agree or disagree?
Oct 29th
I Decided to remove the Facebook ‘like’ feature from my blog and company blog. I didn’t want any government tracking being done based on any similar opinions someone might have. Although I do believe in security I still believe people should have the right to be anonymous and still share their opinion. Also Facebook is getting old and as a professional the look and feel of Facebook does not fit business. Aside from privacy issues, any person can go through the process of socially engineering its victim into accepting a stalkers invite (A living nightmare). Imagine what you could learn about someone right away by simply looking into their profile and relationships, after all you are who you hang out with. This is already being done, redundant databases are being generated about any living person based oh a physiological profile. Guess who is helping with this large task? Facebook fits the perfect model for any intelligence agency, Facebook generates databases based on self inputted user data, some of your most private facts can be found in one way or another on Facebook. Lets not mention all your relationships and their psychological profles, all this information used to create a calculated profile about you. Now imagine a very dangerous person after you and he knows everything about you and who you hang out with. All this only because you decided to share your opinion.
At this point in time I would rather give any visitor the choice of privacy.
For business I will remain using Facebook but only as a marketing node used to direct traffic.
Oct 26th
I am making this quick tutorial because I am astonished that no one has actually even talked about this. How does YouTube get away with practically giving music away? Why have they not been sued? Who cares right? All this is very strange but… I will show you a quick method to both download full music videos and mp3′s for free using web services publicly available. You can then use these services to compile albums with videos from YouTube. Once you see how easy it is to do this you will wonder how people where sued by RIAA & MPIAA and not Google.
Step 1: Find a song on youtube as a video. If you have an album in mind you know you want, you can get the tracks of that album online by going to www.amazon.com, they typically display all the track titles.
Step 2: Once you find a video simply copy the entire URL (example: http://www.youtube.com/watch?v=j9yBPcn8IqU&ob=av2e )
Step 3: Go to http://www.youtube-mp3.org/ and paste the url and click the “Convert Video” button. Once its done converting you will get an option to download or link to the mp3. Enjoy :)
Step 1: Find a Music Video on YouTube.com
Step 2: Once you find a video simply copy the entire URL (example: http://www.youtube.com/watch?v=j9yBPcn8IqU&ob=av2e )
Step 3: Go to http://www.saveyoutube.com and paste the url and click the “Download” button. Once its done converting you will get an option to download the video in up to 5 different formats.
Don’t get too crazy ENJOY! :P
Jun 2nd
OK so the story goes a little like this… At our company we use a client record management system called American Contractor (Maxwell). We have employees who needed to access the AC database in order to generate reports through Crystal Reports. The problem was that we could not find x64 drivers because according to the multitude of MSDN forums good old microsoft decided it would abandon any support for the dinosaur database type (visual fox pro… duh? :P). So i began to look and look for any possible 3rd party drivers but got no luck… then after about an hour of digging I was able to find some information…
If you have a Windows Vista, 7 or any type of x64 workstation you need to:
1) First understand that their is no x64 version of VFP driver, that being said you can definately run a x86 driver in a x64 OS.
2) Download the x86 Visual Fox Pro ODBC Driver here http://msdn.microsoft.com/en-us/vfoxpro/bb190233 (or Google “Visual Fox Pro ODBC Driver”)
3) In any x64 you cannot access the x86 ODBC Control Panel by navigating to the native START>CONTROL PANEL>ADMINISTRATIVE TOOLS>DATA SOURCES (ODBC), You must access the x86 Data Source Panel.
4) To access your 32bit Data Sources Panel Navigate to C:\WINDOWS\SysWOW64/odbcad32.exe and run it.
5) Run and Install what you need. If you still don’t see the VFP Drivers make sure you’ve already installed them :) (doi! :P)
6) Go tell your boss your a genius… muahahahah
I hope this helps anyone who experienced this problem.
May 18th
I recently was hired as Manager of Information Technology for one of California’s largest importers and exporters of exotic rock; granite, marble and what not. After looking at our current infrastructure I knew I was going to have to bring some of my personal equipment. After the first week I decided we would begin the process of changing server operating systems over to windows 2008 server as rebuilding the entire network was going to be necessary. As I began the process I decided I would install windows 2008 server on my HP Proliant DL380 which was perfect for the new application server role. Windows 2008 installed perfectly with no problem until of course it came to installing the network utility drivers. I spent a good 2 hours looking for help on HP forums, Google and anything else we normally use as information specialists but ended up with nothing. I decided to continue looking for help and found nothing so I decided that I would simply try to run the driver installation in compatibility mode. After a bit of playing I was able to determine that Windows 2008 Server and 2008 Server R2 are somewhat considered different versions, after all the drivers would not install on regular R2 mode but had to dumb down the compatibility to Regular windows 2008 server. After this everything installed with no problem so I suggest if you’re installing Server 2008 R2 as an operating system make sure you install drivers as regular 2008 server through compatibility mode or else you will get the “this install could not complete because the correct operating system was not found” prompt.
Recent Comments