If you don't write it down somewhere...

Wednesday, October 31, 2007

Basic Unix commands

Check out this link:

http://www.ss64.com/bash/

How to access a windows share from an UBUNTU box

To access a windows share from ubuntu you must first:

1) Create a folder under the mount folder:
sudo mkdir /mnt/music

2) Make sure you have smbfs (samba smb file system support) installed:

sudo apt-get install smbfs

NOTE: samba server is not needed running.

3) Create the mount:

mount -t smbfs -o username=mike,password=128dy8 //machinenameorip/share

4) If you are connecting to a Windows 2003 server box it may require you to use enctryption. If so you can do this:
try mount -t cifs //yoursever/yourshare /mnt/somepath -o username=validserveraccount

Tuesday, October 30, 2007

Installin MarkVision Professional on UBUNTU 7.10

How to:

1) Untar the package:

tar -zxvf markvision-pro-linux-glibc2-x86.tar.gz

2) Install Sun Java:

apt-get install sun-java6-jre

3) Install RPM & alien (alien is RPM support for debian based distributions)

sudo apt-get install rpm
sudo apt-get install alien

4) Convert the rpm package to a Debian package:

sudo alien -k --scripts markvision_pro-MVPServer-11.1-1.i386.rpm

5) Install the Debian Package

sudo dpkg -i markvision-pro-mvpserver_11.1-1_i386.deb

6) Start configuration of MVPPro:

sudo /usr/local/markvision_pro/setup.mvjserver

7) Point to the java machine executable:

/usr/lib/jvm/java-6-sun-1.6.0.03/jre/bin/java

8) You Should be done!!!

MS

Installing WebMin to manage Linux in Ubuntu 7.10

Steps Needed:

1) Install these packages

sudo apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl libmd5-perl

2) Download the latest webmin using the following command

wget http://prdownloads.sourceforge.net/webadmin/webmin_1.370_all.deb

Please notice that if you are behind a proxy you must first set an environment variable to contain the proxy address for wget to use it. Do:
If you are using Bourne-style shell (sh, bash, ksh) type the following command: http_proxy=http://bcproxy.ac.il:8080/ ; export http_proxy. For C-shell (csh, tcsh) type setenv http_proxy=http://bcproxy.ac.il:8080/. You may wish to add apropriate command into your .profile (Bourne-style shell users) or .login (C-shell users) files.

3) Install the package using the following command

sudo dpkg -i webmin_1.370_all.deb

4) WebMin is now available at:

https://your-server-ip:10000/

5) To enable SMART hdd monitoring in WebMin you must install smartmon tools:

sudo apt-get install smartmontools

MS

Sunday, October 28, 2007

Installing VmWare Server on UBUNTU 7.10 Server

First, this how-to applies when you are using a kernel that is latest than the one needed by the VMWARE release you are using.

Here is how to do it:

1) Download VMware Server source from the VMware website.
You can use lynx:

sudo apt-get install lynx

2) Download this installer patch:
http://knihovny.cvut.cz/ftp/pub/vmware/vmware-any-any-update113.tar.gz

3) Extract all the archives to a location on your system by using:

tar -zxvf VMware-server*
tar -zxvf vmware*

4) Ensure that you have build-essential installed in order to compile these sources:

sudo aptitude install build-essential

4) Also ensure that you have the proper headers for your running kernel:

sudo apt-get install linux-headers-$(uname -r)


This is important because if you don't then all that is needed to build and compile vmware will not be available.

5) Install the xinetd server:

sudo aptitude install xinetd

6) Install the xorg-dev tools because of shared library that vmware-server uses to validate keys.

sudo apt-get install xorg-dev
(sudo apt-get install libx11-dev)
(sudo apt-get install libx11-6)

7) Install wget, a command line http deamon because you will need it later

8) Run sudo ./vmware-install.pl located within the vmware-server-* unpacked archive.

sudo ./vmware-install.pl

8) # Select all the default options *EXCEPT* do not compile the modules at this point. (Do you want this program to try to build the vmmon module for your system? NO)

9) Run sudo ./runme.pl located within the vmware-any* archive. This will install the PATCH and resume step 8 where you said no.

10) Select the default options and this time answer YES to compile the proper modules.

By default your virtual machines will be installed at [/var/lib/vmware/Virtual Machines]


11) Execute the VMware Management Interface (MUI) installer:

do:
apt-get install libxi6

I have found that under cirmcumstances i don't fully understand it will not install without this.

tar xzf VMware-mui-1.0.4-56528.tar.gz
cd vmware-mui-distrib
sudo ./vmware-install.pl

This will install the vmware web services wich will responde as https on port 8333.

10) Download this file: http://www.iki.fi/kuparine/comp/ubuntu/en/httpd.vmware.diff
You can do it by using:

cd /tmp
wget http://www.iki.fi/kuparine/comp/ubuntu/en/httpd.vmware.diff
cd /
patch -b -p0 < /tmp/httpd.vmware.diff

The last command will patch the vmware apache install so that it will work properly.

11) Run vmware-server using the command vmware or via your Applications Menu.

12) Do "cd /etc/init.d" and "sudo ./httpd.vmware start" to start MUI

This how-to was mostly (but not only) based on this excelent how to:
http://users.piuha.net/martti/comp/ubuntu/en/server.html

Check it out for more details!

M

Tuesday, October 2, 2007

Ubuntu Notes

Ubuntu does not use yum. Go figure, or better yet, use apt-get.

Critical needs for ubuntu:

1. Installing SSH server for remote administration service.

---> sudo apt-get install ssh

This will istall a ssh server in the default dir allowing for remote admin over and encrypted session.

2.Installing the SUN Java Virtual Machine.

At first you will see that the JavaVM you have is an open-source one. NOT GOOD. check it like this:


user@ubuntusrv:~$ java -version
The program 'java' can be found in the following packages:
* j2re1.4
* gij-4.1
* kaffe
* jamvm
* java-gcj-compat
* cacao
* sablevm



To install the java virtual machine you can download the package via apt-get (instead of other cases in wich you have to do it via dowloading the package from Sun's web site.

---> sudo apt-get install sun-java6-bin

After you install you should get something like this:

suer@ubuntusrv:~$ java -version
java version "1.6.0"
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) Client VM (build 1.6.0-b105, mixed mode, sharing)

JAVA is installed!

3. Now we need to install Lynx. Lynx is a great text based browser that will enable you to access the internet and download anything you might need as it will be the case.

sudo apt-get install lynx

Saturday, September 22, 2007

Commands available for CentOS

Here is a list of commands for CentOS:

pup - pup runs the package updater for CentOS

yum - yum is the package installer.

    Usage:  yum [options]            clean | provides | search | check-update | groupinstall | groupupdate |
grouplist >

Options:
-c [config file] - specify the config file to use
-e [error level] - set the error logging level
-d [debug level] - set the debugging level
-y answer yes to all questions
-t be tolerant about errors in package commands
-R [time in minutes] - set the max amount of time to randomly run in.
-C run from cache only - do not update the cache
--installroot=[path] - set the install root (default '/')
--version - output the version of yum
-h, --help this screen
Examples:
Updating all your installed packages from repositories:
yum update

Installing packages:
yum

Packages you should always install

bzip2 - a freely available, patent free (see below), high-quality data compressor.

openssl - Library for encripting communications.

lynx - Text based browser for linux. Life saver.



RPM

/#rpm -ivh foo-1.0-2.i386.rpm


Running vmware tools:
/usr/bin/vmware-toolbox

Adding a user:

/usr/sbin/useradd luisgomes