Citrix XenApp

Your Journey towards cloud.

Virtualization Picking up Speed

Are your Skills keeping up? Skill up. Be Relevant

Are you a System Admin

Learn Citrix XenApp, Its future.

Citrix XenApp

Industry-leading virtualization platform for building cloud.

Cloud Computing in Demand

Learn how to build cloud on Citrix XenApp.

Sunday, 8 July 2012

Mount Samba share using fstab

To mount a Samba share when Linux system comes up after reboot

edit the /etc/fstab file and put entry as follows for your Windows/Samba share:

//ntserver/share /mnt/samba smbfs username=username,password=password 0 0


For example,
if you want to mount a share called //ntserver/docs then you need to write following entry in /etc/fstab file:

//192.168.0.1/share /mnt/samba smbfs username=sohail,password=passwd123 0 0

Friday, 6 July 2012

Using Samba As File Server in Linux with guest(Anonymous) login and read-write access


1. Create a folder for share purpose
    mkdir sharedrive

2.Give full access to that folder
   chmod 777 sharedrive

3.Edit smb conf file
 vi /etc/samba/smb.conf

[global]
# workgroup = NT-Domain-Name or Workgroup-Name
   workgroup = WORKGROUP
                                                                               
# server string is the equivalent of the NT Description
   server string = Samba Server
                                                                            
map to guest = bad user
                                                                              
encrypt passwords = yes
lanman auth = Yes
                                                                               
[Guest Share]
       comment = Guest access share
       path = /sharedrive
       guest ok = yes
       writeable = yes
       create mask = 777

4.Test smb.conf file
 testparm

5.Restart the service
service smb restart

6.chkconfig smb on

Thursday, 5 July 2012

Setting Hostname(Computer Name) in Linux (RedHat)

Edit the following files with vi


1.
           /etc/hosts

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1    localhost.localdomain localhost
192.168.0.20    sohail.bom.labs.net

2.

          /etc/sysconfig/network

NETWORKING=yes
HOSTNAME=sohail.bom.labs.net

Wednesday, 4 July 2012

Configure ipaddress in linux

1.edit the file with vi

vi/etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.0.20
NETMASK=255.255.255.0
GATEWAY=192.168.0.1


2.To put Dns Server ip address
vi /etc/resolv.conf
nameserver=192.168.0.10

3.restart the network service
service network restart

How to install Linux / UNIX *.tar.gz tarball files

Tarballs are a group of files in one file. Tarball files have the extension .tar.gz, .tgz or .tar.bz2. Most open source software use tarballs to distribute programs/source codes.

# 1: Uncompress tarball

To uncompress them, execute the following command(s) depending on the extension:
$ tar zxf file.tar.gz
$ tar zxf file.tgz
$ tar jxf file.tar.bz2
$ tar jxf file.tbz2

Now change directory
$ ls
$ cd path-to-software/

# 2: Build and install software

Generally you need to type 3 commands as follows for building and compiling software:
# ./configure
# make
# make install
Where,
  • ./configure will configure the software to ensure your system has the necessary functionality and libraries to successfully compile the package
  • make will compile all the source files into executable binaries.
  • Finally, make install will install the binaries and any supporting files into the appropriate locations.

# 3: Read INSTALL / README file

Each tarball comes with installation and build instructions. Open INSTALL or README file for more information:
$ vi INSTALL

Tuesday, 3 July 2012

How to replay YouTube video automatically

In the address bar, add the word "infinite" before the word "youtube".
This is the easiest way to put Youtube videos on loop.
When you are finished your address bar should be changed from:

Code:
http://www.youtube.com/watch?v=MrMNHwmd9Hc
To
Code:
http://www.infiniteyoutube.com/watch?v=MrMNHwmd9Hc

Sunday, 1 July 2012

How to make an OS X Lion USB thumb drive

Here are three different ways to put Lion on a USB thumb drive. If you buy and install Lion from the App Store  it downloads all 3Gigabytes from the App Store, installs Lion, then deletes the installer!  So when you go to install it on another machine it needs another 3Gigabyte download! Here’s how to make a re-usable installer.
Option 1: Put a full bootable Lion installation on the USB Drive with a recovery partition.
What you need: an 8G thumb drive and OS X Lion from the App Store.
What you get: A USB stick you can boot off and repair your Lion installation from.
Download the Lion installer from Apple App Store. DO NOT INSTALL IT ONTO YOUR COMPUTER OR THE INSTALLER WILL DELETE ITSELF. MAKE A COPY OF THE INSTALLER.  If you have already installed it and it has deleted itself,  go back into the App store and click on ‘purchases’ and next to Lion it will say ‘Installed’. Now option-click on ‘purchases’ and ‘installed’ will change to ‘install’ so that you can re-download the installer.
Format your Thumbdrive using a GUID Partition Table, and ‘ Mac OS Extended (Journaled)’, then you can run the Lion installer and install Lion onto the thumb drive.
Option 2: Create a Lion Recovery Disk.
You’ll only need a 4G USB Drive for this option.

What you get: A USB stick you can repair your Lion installation from, but not run Lion from.
If your Macintosh has an existing Lion Recovery partition (this will be the case if Lion came pre-installed on your machine when you purchased your computer from Apple), you can use this method. It will not be a fill installer but it will use the internet to install Lion onto another computer. It involves downloading a program from apple called ‘Lion Recovery Disk Assistant’
To test if you have a Lion recovery partition, Just hold down Command-R during startup and Lion will give you the option of going into recovery mode if the recovery partition is there.

Option 3: Make a Lion Installation USB Thumb drive like the one you buy from Apple.
What you get: A USB stick you can install Lion from – like the one that comes from Apple.
You’ll need an 8G USB thumbdrive.
1. Purchase and download the Lion Installer via the App store as in Option 1 above.
2. Right-click on the installer and select “Show Package Contents” and find  the file called  ”InstallESD.dmg” in the SharedSupport folder.
3. Use Disk Utility to ‘Restore’ this dmg file to a thumb drive to make a Lion Installation USB drive like you buy from the Apple Store. (the thumb drive must first be formatted as Mac OS Extended (Journaled) with GUID Partition Table.)