Archive for March, 2011

HTML Basics

Example of HTML page:
<html>
<body>
<h1>Heading</h1>
<p>blah blah blah</p>
</body>
</htm>

HTML tags:

Paragraph: <p></p>

Paragraph with indent: <p><dd></dd></p>

Bold Fonts: <strong></stong>

Italic: <em></em>

Adding spaces:
1. &nbsp;
example, add 2 spaces between:
Hello &nbsp;&nbsp;World!
No tab in html, to indent use 4 spaces: &nbsp;&nbsp&nbsp;&nbsp
Other HTML Spacing options:
2. Preformat: <pre></pre>
3. Use tables:
<table>
<tr><td width=”100″>Name</td><td width=”100″>Phoen</td>
</tr><tr><td>John</td><td>555-1212</td></tr>
</table>
or
<table>
<tr><td>Name</td><td>&nbsp;</td><td>Phone</td></tr>
<tr><td>John</td><td>&nbsp;</td><td>555-1212</td></tr>
</table>

New Line or Breaks: <br/>

HTML Links: <a href=”http://www.Google.com”>link to Google</a>

Image Links: <img src=”path” width=”100″ height=”50″ />

Notes and Comments: <!– comment –>

For HTML Tutorials: http://www.w3schools.com

Be the first to comment  Posted by Ferdy - March 29, 2011

Categories: Web Stuff   Tags:

LHOSTS

LMHOSTS (LAN Manager Hosts) is used in conjunction with workgroups and domains, it enable domain name resolution under Windows.

The lmhosts needs to be configure in Windows and Linux if you’re using Samba file server in a network with no domain controller.

In Windows 7, the LMHOSTS file is located in:
“C:\Windows\system32\drivers\etc\”

Here’s the default configuration:
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a ‘#’ symbol.
#
# For example:
#
# 102.54.94.97     rhino.acme.com     # source server
# 38.25.63.10        x.acme.com             # x client host

# localhost name resolution is handled within DNS itself.
# 127.0.0.1            localhost
# ::1                         localhost

Add the Linux Samba server ip address and hostname.

In Linux (openSUSE), the lmhosts file is located in: “/etc/samba/”

Add the Windows client’s ip address and its computer name.


Be the first to comment  Posted by Ferdy - March 20, 2011

Categories: Linux, Network, Windows 7   Tags:

openSUSE Samba Server

How to configure Samba Server in openSUSE 11.4

Two ways to configure Samba Server in openSUSE, using YaST (easy way) or manual (more options).

#############################################################

Samba Server using YaST:

Run yast at Terminal or GUI
# yast

YaST Control Center
Network Services -> Samba Server

Enter Workgroup or Domain Name, Next

Samba Server Type
Select: (x) Not a Domain Controller, Next

Under Samba Configuration screen
configure Start-Up, Shares, and Identity.

Start-Up
Service Start
Select: (x) During Boot

under Share
Add the share directory
Under Identification
Give it a share name that MS Windows can map, Share Name
Share Path, browse to share diretory.
Select Allow Users to Share Their Directories
OK

#############################################################

Configure Samba Server by Editing smb.conf

Here’s a screen shot of smb.conf with its default settings in openSUSE 11.4, some of the share directories were cut off. The main sections is the [global], the others in brackets are optional.

smb.conf default settings

The share directories are in brackets.

To create a samba share directory (ex: share) with everyone access, edit smb.conf
# vi /etc/samba/smb.conf

append smb.conf with the following:
[myShare]
inherit acls = Yes
path = /srv/share
read only = No

Create a share directory under /srv
# mkdir /srv/share

Change file permission (unsecure)
# chmod 777 /srv/share

Note: In openSUSE 11.4, Novell AppArmor needs to be configure for smbd and nmbd to be permitted.

Run Yast

From Novell AppArmor Screen, select “AppAmor Control Panel

Under “Configure Profile Modes“, select “Set profile modes [Configure]

In the Profile Mode Configuration screen, set the Mode to complain for:
usr.sbin.nmbd and usr.sbin.smbd

 

In Windows system, map the network share using NET USE:
Syntax: net use [drive letter] [\\samba ip address\sharename] /user:user@samba_ip_address
Ex: net use s: \\192.168.1.20\sambashare /user:root@192.168.1.20
It will prompt for the password

 

4 comments  Posted by Ferdy - March 18, 2011

Categories: Linux, Network, openSUSE   Tags:

Next Page »