Oct 27 2006

Shell aliases in Linux

Tag:tepezcuintle @ 19:50

Desktop Software , CLI Series

CLI Magic: Daily aliases
Monday December 12, 2005 (08:01 AM GMT)

By: Keith Winston

A shell alias is a simple way to create your own custom command. To make your aliases available every time you open a bash shell, add them to your $HOME/.bashrc file. For other shells, place them in the associated run control file. Many distributions include a basic set of aliases for all users. When I start working on a new system or get a new account, I immediately add my favorite aliases to my .bashrc.

To create an alias, use the syntax alias name=’value’ where name is the name of the new command and value is the command string that is executed. If you create an alias with the same name as an existing executable program in your path, the shell will run the alias instead of the program.

To remove an alias from your current shell session, use unalias name where name is the existing alias.

Continua”Shell aliases in Linux”


Oct 23 2006

A night without Sleep Lighttpd + MySQL + Ruby on Rails

Tag:tepezcuintle @ 16:53

Installing ruby on Rails

for a long time I was wondering if ruby on rails was difficult to install
I tried to install ruby on rails on my box using my apache install
but I remembered that my apache was not built with DSO so in order to use
FastCGI which is needed for ruby that would mean to recompile my httpd
from scratch.

So on Sunday I tried to rebuild a new apache server with the existing sources
that I still had and I was able to compile DSO into it, but then I noticed that
some of my existing applications were broken. :(

Continua”A night without Sleep Lighttpd + MySQL + Ruby on Rails”


Oct 23 2006

My Install of Ruby on Rails

Tag:tepezcuintle @ 2:40

Installed Ruby on rails from source

[root@penguincares updates]# cd ruby/
[root@penguincares ruby]# dir
ruby-1.8.4 ruby-1.8.4.tar.gz
[root@penguincares ruby]# wget http://rubyforge.org/frs/download.php/5207/rubygems-0.8.11.tgz
–17:42:40– http://rubyforge.org/frs/download.php/5207/rubygems-0.8.11.tgz
=> `rubygems-0.8.11.tgz’
Resolving rubyforge.org… done.
Connecting to rubyforge.org[205.234.109.18]:80… connected.
HTTP request sent, awaiting response… 302 Found
Location: http://rubyforge.rubyuser.de/rubygems/rubygems-0.8.11.tgz [following]
–17:42:40– http://rubyforge.rubyuser.de/rubygems/rubygems-0.8.11.tgz
=> `rubygems-0.8.11.tgz’
Resolving rubyforge.rubyuser.de… done.
Connecting to rubyforge.rubyuser.de[80.237.222.133]:80… connected.
HTTP request sent, awaiting response… 200 OK
Length: 160,265 [application/x-tgz]

Continua”My Install of Ruby on Rails”


Oct 23 2006

Installing Ruby on Rails

Tag:tepezcuintle @ 2:38

Articles by Rashid Mullali Mohamed Kunhi

This article is an introduction to the installation and deployment of Ruby on Rails.

What is Ruby on Rails?

Ruby is a programming language just like Perl, Python or PHP. Rails is an open source Ruby framework for developing database-backed web applications. You could develop a web application at least ten times faster with Rails than you could with a typical Java framework. It is a web application framework written in the Ruby programming language.

Continua”Installing Ruby on Rails”


Oct 14 2006

A MySQL Clustering Tutorial using the MAX version of MySQL

Tag:tepezcuintle @ 16:58

Here is a cool MySQL Cluster setup tutorial, I followed this tutorial once and it worked fine.

Checkout this consulting company if you need some MySQL clustering work.

LOD Consulting Group

MySQL Cluster Server Setup
Version 1.0 - 2/11/2005


LOD Communications, Inc.
(800) 959-6641
http://www.lod.com



Introduction
MySQL Cluser Server is a fault-tolerant, redundant, scalable
database architecture built on the open-source MySQL application, and
capable of delivering 99.999% reliability. In this paper we describe
the process we used to setup, configure, and test a three-node mySQL
cluster server in a test environment.

Schematic

style="width: 631px; height: 446px;">

Hardware
We used four Sun Ultra Enterprise servers in our test environment, but
the process for setting up a mySQL cluster server on other UNIX- or
Linux-based platforms is very similar, and this setup guide should be
applicable with little or no modification.

Continua”A MySQL Clustering Tutorial using the MAX version of MySQL”


Oct 14 2006

Couple of tricks using SSH

Tag:tepezcuintle @ 15:35

A couple of tricks with the secure shell.



Here are some cool tricks that you can do with the secure shell. I always use SSH to securely connect
to my internal network at work and be able to access my computers through the encrypted tunnels that I setup
in advance on my SSH client.

Enjoy

Vladimir Konrad

Continua”Couple of tricks using SSH”


Oct 10 2006

VPN Like Access to Windows XP Using Linux

Tag:tepezcuintle @ 20:30

Have you ever had the need to use your computer at work while you are at home ?

If you have an SSH server at work and you have a Windows XP machine you can run remote desktop over an SSH tunnel.
You can tunnel all traffic of your Remote Desktop client over an SSH Tunnel to your work computer.

It is not that complicated to setup, for instructions on how this works you can check this link

Breaking Firewalls using SSH

I had a user at work that needed to use the computer at work to access Excel files on her computer at work, with the above setup I was able to set that person with access to her remote computer at work so she could modify her files as if she was sitting infront of her computer at work.

The only problem I encountered is that Remote Desktop did not provide a way for her to print to her printer at home. Basically she wanted to print some information but the printer was setup on the remote computer. The user had a networked printer at home and wanted to print to that printer.

Remote Desktop allows you to use local printers so when you print something on the remote computer you can printer to your local printer attached to the computer. This user instead had a networked printer which made things a little more difficult.

Until I came across this tip.

You can map serial ports to network printers with this command.

NET USE LPT2 \\server\mfp /PERSISTENT:YES

her printer was on \\192.168.0.99\HP

With that information, I opened a command prompt window and typed

net use lpt2 \\192.168.0.99\HP /persistent:yes

on her local computer and then I logged to the remote computer using Remote Desktop. I was connected and then tried to print
a webpage on the remote computer and when the printer selection window came up, I was able to see the HP printer on the list
of available printers.

This solved the issue of printing locally and also being able to remotely connect to the other computer.

Hope this solution might work for you all.

To disconnect the printer use

NET USE LPT2 /DELETE


Oct 07 2006

How to change MTU Settings on Linux

Tag:tepezcuintle @ 15:26

There are times when you want to change your MTU
settings on your Linux machine.

Your DSL provider or Cable provider probably wants you
to use a higher or lower MTU setting on your machine.

Usually you might want to optimize your MTU settings on a
linux router or a Linux gateway that is connected to a private
network in your company.

Still, how do you know what is your current MTU setting
and what is the best way to change it?

Continua”How to change MTU Settings on Linux”