Randomness

Archive for the ‘ubuntu’ Category

Helpful Ubuntu Commands

Posted by: Lloyd Puckitt on: May 12, 2008

Privileges
sudo command – run command as root
sudo su – open a root shell

Add an IP alias (virtual nic)

Posted by: Lloyd Puckitt on: November 12, 2007

CentOS

Copy your eth0 config file located at /etc/sysconfig/network-scripts/ (you need to be root to do most of these commands) cd /etc/sysconfig/network-scripts/ cp eth0 eth0:1 Now we need to edit this new file. You will need to …escape.. the colon. Neither eth0 or eth0:1 can be set by DHCP, you must setup [...]

Access your Linux computer graphically and securely using SSH and VNC

Posted by: Lloyd Puckitt on: November 8, 2007

This was copied from the Johnny Chadda blog.
=================================
 
When you are out traveling or just at work, the need sometimes arises when you have to access your computer at home. This article will show you how to access your computer in a simple and secure way. The article is focused on Ubuntu, but can just as [...]

Capistrano confusion

Posted by: Lloyd Puckitt on: October 12, 2007

Most howto’s and screencasts about Ruby on Rails deployment using Capistrano are a little confusing now that 2.0 has come out.
Build a Full Rails Server on Ubuntu
To run the old version
cap _1.4.1_ <command>
More to come on this….

File sharing with Ubuntu using Samba

Posted by: Lloyd Puckitt on: October 10, 2007

A video I found to help set up Samba.

Mount drive at startup

Posted by: Lloyd Puckitt on: October 10, 2007

This is partially reprinted from the Ubuntu community documentaion
https://help.ubuntu.com/community/InstallingANewHardDrive

Format the Partition via Command Line

To format the disk as ext3 filesystem (best for use under Ubuntu):
sudo mke2fs -j /dev/hdd1

Substitute “/dev/hdd1″ with your own drive’s path.
====================================
Modify reserved space (optional)

When formatting the drive, 5% of the drive’s total space is reserved for the super-user (Root) so that the [...]

Ubuntu: name based virtual hosts

Posted by: Lloyd Puckitt on: August 21, 2007

Name-Based Virtual Hosts
With name-based virtual hosts, one instance of Apache hosts several domains. You do not need to set up multiple IPs for a machine. This is the easiest, preferred alternative. Reasons against the use of name-based virtual hosts are covered in the Apache documentation.
Configure it directly by way of the configuration file /etc/apache2/ sites-available/filename(by [...]