Proxmox VPS for web development recipe….

Apple, Linux, proxmox, Ubuntu, Unix, Virtual Hosts
A little while ago our web developer asked me to look into proxmox containers and how we could take advantage of it to setup a development environment for him. The idea was to use the power of linux containers and enable him to develop fully functional/accessible sites in a private container. Here are the steps we will cover in this article: Install proxmox on a machine with a single public IP address Secure the machine with ufw to only allow connections from a specific IP address space Setup a admin user other than root for proxmox admin interface Setup proxmox to use the single IP address and the vmbridge for masquerading Setup two Linux Ubuntu 12.04 containers with private addresses and enable the to access the internet via the bridge…
Read More

Proving the Network is Not the Problem With iperf – Packet Life

Sysadmin, Tutorial, Unix
Proving the Network is Not the Problem With iperf - Packet Life: "When an application fails to perform as expected, the network is often the first thing blamed. I suppose this is because end users typically view the network as the sole limiting factor with regard to throughput, unaware of the intricacies of application, database, and storage performance. For some reason, the burden of proof always seems to fall onto networkers to demonstrate that the network is not at fault before troubleshooting can begin elsewhere. This article demonstrates how to simulate user traffic between two given points on a network and measure the achievable throughput." (Via.)
Read More

Copying large number of files between two Unix/Linux/OSX Servers

CLI, Linux, OSX, osx Server, Redhat, rsync, ssh, SuSE, Sysadmin, Tip, Ubuntu, Unix
Here are some quick tip(s) for copying a ton of files between unixy machines really fast. You're probably thinking "why not use rsync?"…..well rsync can be miserably slow if your source or destination cpu is underpowered. You can always do a rsync after these commands to make 100% certain that everything checks out, but try using one of these methods for the initial copy: One way of doing it is tar -c /path/to/dir | ssh user@remote_server 'tar -xpvf - -C /absolute/path/to/remotedir' You'll be prompted for the remote servers password or you can use the private key of the remote server using the -i switch in the ssh command. This has the side benefit of preserving permissions. An alternate version of this command can also be used to locally move folder…
Read More

Ubuntu Software Centre "No Install Button" problem…..

Linux, Ubuntu, Unix
I recently upgraded netbook using the distribution upgrade and didn't like the results, so I reinstalled Ubuntu Notebook Remix 9.10 Karmic Koala. Well, I'm sorry but I don't think this Koala was ready for release. First there was the issue of where the heck are all the beloved Ubuntu tools. Gone is the Add/Remove software progy (you have to install manually), now we have Ubuntu Software Centre. Gone is being able to check off multiple packages for batch install, USC installs apps one at a time (which takes two mouse clicks per app).To top it off -- atleast in UNR 9.10 -- there is no install button once you click on the arrow beside the packages. No, it's not a problem with root/admin, I tried running it as root and…
Read More

Fix Ctrl-Alt-Backspace problem with Ubuntu 9.10+

CLI, Linux, Ubuntu, Unix
Downloaded and installed 9.10 yesterday and what do you know, someone decided to take away Ctrl-Alt-Backspace -- or what I call "Three Finger Salute for Linux". Whhhaaattt!!!!How the heck are you supposed to kill and restart X without that.....A coworker suggested Alt-PrintScreen-K, but that just restarts GDM, not really useful when X decides to go south. Damit!!The reason given on Ubuntu wiki is that "This is due to the fact that DontZap is no longer an option in the X server and has become an option in XKB instead."Well, fear not, whoever disabled it also created a easy way to reenable it again. Here is what you do:In Gnome (Ubuntu):* Get to the System->Preferences->Keyboard menu.* Select the "Layouts" tab and click on the "Layout Options" button.* Then select "Key sequence…
Read More

Solaris 10 Configuration Notes: How the hell does this thing work again….

cinegrid, solaris, sun, Tutorial, Unix
It's been a while since I've had the pleasure (read: pain) of working with Sloowaris, but now that we have two 48TB Sun X4540 Thumpers in house, I have to.....Uggghhhh :-). Here are some notes:Remember sudo -i does not work. Use "su -" to get the root environment through ssh (login as regular user).The machine has 6 Controllers with 8 Disks each for a total of 48 disks.To find out all the disks that are available on your system and their Labels.....root # formatSearching for disks...doneAVAILABLE DISK SELECTIONS:To see the status of the zpool runroot # zpool statuspool: pool1state: ONLINEstatus: The pool is formatted using an older on-disk format. The pool canstill be used, but some features are unavailable.action: Upgrade the pool using 'zpool upgrade'. Once this is done, thepool…
Read More

ASCII Art at it’s finest…..

ascii, CLI, Unix
Not sure if this has already been mentioned somewhere.....It's pretty old, but I happen to come across it today. It's a great rendition of everyone's favorite space opera done by Simon Jansen in ASCII. Telenetification (is that even a word?) by Snore, with improvements by Mike Edwards. Anyways, use the following command, sit back and enjoy.....Star Wars in all its ASCII glory :-)telnet towel.blinkenlights.nlIf you don't know how to telnet, click here to see it in your browser.
Read More

Step-by-step instructions to get Cacti installed on Ubuntu 9.04 (Jaunty Jackalope) Desktop Edition

Apache, cacti, Linux, mysql, Opensource, php, Ubuntu, Unix
So after yesterdays rant, I went back and figured out how to install the Cacti monitoring software (OSS, Free) onto a Ubuntu 9.04 "Jaunty Jackalope" Desktop installation. This guide uses packages only, no compiling, no Makefiles or anything like that.....You should be able to just follow this and get a fully functioning Cacti installation in about 30 minutes. Here are the steps:install ubuntu 9.04 ("Jaunty Jackalope") Desktop Edition on your machine Login, open a Shell window and install ubuntu LAMP (Linux/Apache/MySQL/PHP) server stack on your machine "sudo tasksel install lamp-server". Note: Make sure you remember the password for "root" user in mysql Database, write it down somewhere, we will need it later on.Get a superuser shell started since it will make for less typing. "sudo -i" followed by your password.…
Read More

Duplicate your Ubuntu Installation….

CLI, Linux, Ubuntu, Unix
As good as Ubuntu (and linux) are in general, once in a while you just get to a point where you need a reinstall. That's when the realization kicks in that you've got far too many packages installed since the initial Ubuntu install. It's okay, there is a way out. Make sure you have a USB key.On Ubuntu Workstation (with graphical interface):Run Synaptic package manager. Once inside Synaptic, go to File/Save Markings As menu option and choose a filename and location (USB stick). MAKE SURE YOU ALSO CHECK THE BOX "SAVE FULL STATE, NOT ONLY CHANGES". This will save a text file that contains every single package installed on your system (through apt system and all it's variants....manual compile/installs are something else). Now you can go ahead and reinstall the…
Read More