Installing PHP5.2 on CentOS5.2

PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML.

Installing php5.2 on your CentOS, you have to download it from jasonlitka’s repository

For enabling it run the following commands:

touch /etc/yum.repos.d/utterramblings.repo
echo '[utterramblings]' >> /etc/yum.repos.d/utterramblings.repo
echo "name=Jason's Utter Ramblings Repo" >> /etc/yum.repos.d/utterramblings.repo
echo 'baseurl=http://www.jasonlitka.com/media/EL$releasever/$basearch/' >> /etc/yum.repos.d/utterramblings.repo
echo 'enabled=1' >> /etc/yum.repos.d/utterramblings.repo
echo 'gpgcheck=1' >> /etc/yum.repos.d/utterramblings.repo
echo 'gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka' >> /etc/yum.repos.d/utterramblings.repo

After, just update your php

yum update php

Quickly watching configuration files in linux

Suppose you want to configuring something in Linux. For that you have to open configuration files in Linux via vi command editor. What if you want to know whatever changes you have made active. For that I just found a simple command on Cyberciti.biz website. Thought this may be useful for you guys.

cat config_file_name.conf | sed '/ *#/d; /^ *$/d'

(grep will remove all comments and sed will remove all empty lines)

Configuring Samba on CentOS

Samba is an Open Source / Free Software suite that has, since 1992, provided file and print services to all manner of SMB/CIFS clients, including the numerous versions of Microsoft Windows operating systems. Samba is freely available under the GNU General Public License.

The Samba project is a member of the Software Freedom Conservancy.

Operatring System
CentOS 5.2

Samba
samba-3.0

Installing samba via yum

yum -y install samba samba-common samba-client

Configuring samba

mv /etc/samba/smb.conf /etc/samba/smb.conf.orig

Showing you the basic configuration of samba. In this example we are going to share softwares directory. Only samba user can able to save files in this directory.

vi /etc/samba/smb.conf
[global]
workgroup = WORKGROUP
server string = Samba Server Version %v
security = share
load printers = yes
cups options = raw
[share]
writeable = yes
admin users = it
path = /softwares
force user = root
valid users = it
public = yes
available = yes

Save and exit the configuration file. Now we have to create samba user as well as the softwares directory which we want to share.

mkdir /softwares
adduser it
passwd it
smbpasswd -a it
/etc/init.d/smb restart

Thats it now you are ready to browse the samba share. To access the samba share on windows pc follow the below given procedure:
Start -> run -> cmd
At the prompt type:

net use z: \\ip_of_your_samba_server\share /user:it it_password

At this point you have successfully set up Samba under Linux and are now successfully connected to your share from your Windows machine.

Unblocking attachments in Microsoft Outlook

To provide enhanced security, Microsoft Office Outlook is designed to prevent you from unblocking attachments. But some time it becomes headache for you. Some times you don’t require this feature. There are two levels of securities in Microsoft Office Outlook Level1 and Level2. Access to Level 1 files is blocked and can’t be changed. When you receive an attachment with a Level 2 file type, you will be prompted to save the file to your hard disk. If you use Microsoft Exchange Server, your system administrator can add and remove file types for both levels of e-mail security.

Level 1


File extension File type
ade Access Project Extension (Microsoft)
adp Access Project (Microsoft)
app Executable Application
asp Active Server Page
bas BASIC Source Code
bat Batch Processing
cer Internet Security Certificate File
chm Compiled HTML Help
cmd DOS CP/M Command File Command File for Windows NT
com Command
cpl Windows Control Panel Extension (Microsoft)
crt Certificate File
csh csh Script
exe Executable File
fxp FoxPro Compiled Source (Microsoft)
gadget Windows Vista gadget
hlp Windows Help File
hta Hypertext Application
inf Information or Setup File
ins IIS Internet Communications Settings (Microsoft)
isp IIS Internet Service Provider Settings (Microsoft)
its Internet Document Set Internet Translation
js JavaScript Source Code
jse JScript Encoded Script File
ksh UNIX Shell Script
lnk Windows Shortcut File
mad Access Module Shortcut (Microsoft)
maf Access (Microsoft)
mag Access Diagram Shortcut (Microsoft)
mam Access Macro Shortcut (Microsoft)
maq Access Query Shortcut (Microsoft)
mar Access Report Shortcut (Microsoft)
mas Access Stored Procedures (Microsoft)
mat Access Table Shortcut (Microsoft)
mav Access View Shortcut (Microsoft)
maw Access Data Access Page (Microsoft)
mda Access Add-in (Microsoft) MDA Access 2 Workgroup (Microsoft)
mdb Access Application (Microsoft) MDB Access Database (Microsoft)
mde Access MDE Database File (Microsoft)
mdt Access Add-in Data (Microsoft)
mdw Access Workgroup Information (Microsoft)
mdz Access Wizard Template (Microsoft)
msc Microsoft Management Console Snap-in Control File (Microsoft)
msi Windows Ins
taller File (Microsoft)
msp Windows Installer Patch
mst Windows SDK Setup Transform Script
ops Office Profile Settings File
pcd Visual Test (Microsoft)
pif Windows Program Information File (Microsoft)
prf Windows System File
prg Program File
pst MS Exchange Address Book File Outlook Personal Folder File (Microsoft)
reg Registration Information/Key for W95/98 Registry Data File
scf Windows Explorer Command
scr Windows Screen Saver
sct Windows Script Component Foxpro Screen (Microsoft)
shb Windows Shortcut into a Document
shs Shell Scrap Object File
tmp Temporary File/Folder
url Internet Location
vb VBScript File or Any VisualBasic Source
vbe VBScript Encoded Script File
vbs VBScript Script File Visual Basic for Applications Script
vsmacros Visual Studio .NET Binary-based Macro Project (Microsoft)
vss Visio Stencil (Microsoft)
vst Visio Template (Microsoft)
vsw Visio Workspace File (Microsoft)
ws Windows Script File
wsc Windows Script Component
wsf Windows Script File
wsh Windows Script Host Settings File


Level 2

There are no Level 2 files by default. If you use Microsoft Exchange Server, your system administrator may add and remove Level 2 file types, or allow you to reduce a Level 1 file to Level 2.

But what if you are not having Microsoft Exchange Server. Following is the resgistry trick which disable the Level1 security feature.

Start > run > regedit

HKEY_CURRENT_USER\Software\Microsoft\Office\12.0\Outlook\Security

(Go to HKEY_CURRENT_USER\Software\Microsoft\Office\11.0\Outlook\Security for Outlook 2003 and HKEY_CURRENT_USER\Software\Microsoft\Office\10.0\Outlook\Security for Outlook 2002. )

Add a new string value called “Level1Remove”.

Make its value a list of allowed file extensions separated by semicolons.

For example, “.shs;.exe” allows access to Shell Scrap Object File and executables.

NVU web authoring system for creating web pages

I was trying to build a basic website for my personal use. For a while I used windows notepad for creating webpages. But u must have a very good html knowledge for that. While searching an open source solution for it I come to know NVUweb authering system.

Nvu (pronounced “N-view,” for a “new view”) is a free, open source software program that allows you to build websites and web pages using a simple WYSIWYG editor (what-you-see-is-what-you-get). Nvu makes creating web pages as easy as using a word processor and rivals such programs as Adobe’s Dreamweaver and Microsoft’s Expression Web, only for free! With Nvu’s built-in site manager, connecting to your website and making changes is a snap.

I liked the software cause you can use the same software in Windows as well as in Linux. I am using it on my CentOS

You can download it from the below link

For windows users:
nvu-1.0-win32-installer-full.exe

For linux user:
RPM base
kompozer-0.7.10-i386.rpm

Source file
kompozer-0.7.10-gcc4.0.3-i486.tar.gz

For more information you can go to their website:
NVU websites

Page 24 of 26« First...1020«212223242526»
rss twitter facbook

Categories

Archives