Menu Close

Category: Linux

Change Ubuntu Server from DHCP to a Static IP Address

by howtogeek.com

If the Ubuntu Server installer has set your server to use DHCP, you will want to change it to a static IP address so that people can actually use it.

Changing this setting without a GUI will require some text editing, but that’s classic linux, right?

Let’s open up the /etc/network/interfaces file. I’m going to use vi, but you can choose a different editor

sudo vi /etc/network/interfaces

Configuring a SOCKS Proxy and Tunneling With Dante

Obtaining Dante from repository

Dante is a fully functional SOCKS proxy server and as such has many nobs. Fortunately, setting up a basic configuration that will allow tunneling of things like HTTP is relatively simple. If you’re running Debian GNU/Linux, simply run:

# apt-get update
# apt-get install dante-server

Configuring Dante

remember! Dante is a SOCKS host NOT an HTTP proxy, you are going to get all sorts of weird errors if you get this wrong.

The configuration file is locate in

# cat /etc/danted.conf

 

scp command line to securely copy files over ssh, between Linux, Mac or Windows

by garron.me

SCP Introduction

scp stands for secure cp (copy), which means you can copy files across ssh connection. That connection will be securely encrypted, it is a very secure way to copy files between computers

You can use scp to copy files from or to a remote server. You can also copy files from one remote server to another remote server, without passing traffic through your PC.

You can use scp on Linux, Mac and Windows (using WinSCP).

How to change the root password in Ubuntu

As default Ubuntu has no password set for the root user.

To gain root access you have to type in your own user password.

This is the password you set for the first user while installing Ubuntu.

 

To manually set a password for the root user, type in the following in the shell:

sudo passwd 

After that you are asked to type in the new root password twice.

 

Finally, your root user has its own password.

Installing Apache2 With PHP5 And MySQL Support On Ubuntu 12.04 LTS (LAMP)

by howtoforge.com

LAMP is short for Linux, Apache, MySQL, PHP. This tutorial shows how you can install an Apache2 webserver on an Ubuntu 12.04 LTS server with PHP5 support (mod_php) and MySQL support.

I do not issue any guarantee that this will work for you!

 

1 Preliminary Note

In this tutorial I use the hostname server1.example.com with the IP address 192.168.0.100. These settings might differ for you, so you have to replace them where appropriate.

I’m running all the steps in this tutorial with root privileges, so make sure you’re logged in as root: 

sudo su 

Install VMWare Tools on a Debian / Ubuntu Guest Virtual Machine

by electrictoolbox.com

Just over a year I posted how to install VMWare Tools on a Linux Guest Virtual Machine which specifically looks at installing VMWare Tools for Red Hat / CentOS. I recently set up a Debian 5 Lenny virtual machine using VMWare Server and installed the VMWare Tools and the process is fairly similar but I had a couple of issues due to it being a base install with no compiler so thought it a good idea to post how to install VMWare Tools on a Debian 5 Virtual Machine.

Note that the instructions here should work for any version of VMWare Workstation or Server, but I am only currently able to use the VMWare Server 1.0 console. The first instruction below where you select the install vmware tools option may be in a different location for different versions.

Note also that these instructions should also work for Debian derived Linux distros such as Ubuntu, Kubuntu, Xubuntu, Mepis, Knoppix etc.

 

Ubuntu and static IP

By Andrea Corso

If you want set a static ip on your Ubuntu servers you can do:


# nano /etc/network/interfaces

set your eth0 interface as same:


auto eth0
iface eth0 inet static
 address 192.168.0.100
 netmask 255.255.255.0
 network 192.168.0.0
 broadcast 192.168.0.255
 gateway 192.168.0.1

Save and exit. Now launch:


# /etc/init.d/networking restart
# nano /etc/resolv.conf

and put this: nameserver 192.168.0.1. NOTE: the address after nameserver will be the same of gateway!