Wednesday, April 29, 2009

openSUSE Repositories

Hi guys...
Here are the list of repo for openSUSE, version included are 10.3, 11.0, 11.1 for KDE.

http://en.opensuse.org/KDE/Repositories

Enjoy!!!

ANL

Tuesday, April 28, 2009

System Tray icon missing in KDE4.2.2 in openSUSE

Hi all,
Yesterday i reinstall openSUSE 11.0 on my office PC with gnome and then install KDE4.2.2 from Yast.
But after logging to KDE desktop, i found that system tray icons are missing. I faced this problem before too, but did not find any solution for it that time.
Yesterday i searched about this issue, and found that, we have to update libqt4.4.0 to libqt4.4.3.
So the simple solution was that, to upgrade the libqt to update version to work with KDE4.2.2.
The update process is easy, open yast->software management and search for libqt. But for the latest libqt you have to add repo. so 1st add this repo to repo list.
For openSUSE11.0: http://download.opensuse.org/repositories/KDE:/Qt44/openSUSE_11.0/
For openSUSE11.1: http://download.opensuse.org/repositories/KDE:/Qt44/openSUSE_11.1/
For openSUSE10.3: http://download.opensuse.org/repositories/KDE:/Qt44/openSUSE_10.3/

Now, install the update version, which i think will be libqt4.4.3, and that's it.

Here is the sample of the issue:



For more about this issue read here from KDE forum:
KDE forum libqt issue

ANL

Monday, April 27, 2009

Install flash plugin for Firefox/others in Linux

After fresh installation of Linux distro, most of the packages we have to install from yast or by terminal.
As using Internet, we use Firefox for browsing. But by default there is no flash plugin. So we have to install it.
I tried myself many times from yast2 and sometime when FF pop up message for missing plugins, none of them works for me.
But i find out an easy way to sort out this problem.
I'm using currently openSUSE 11.0 Gnome,KDE and openSUSE 11.1 Gnome,KDE. I tried on both, and it works.
But i am not sure about other distros, But you can give it a try.

So lets start:
1st of all make sure all Firefox windows are closed.

Then press Alt and F2 to bring up Run applet, Type YaST or yast2 and press ENTER.
Key in your root password and press ENTER, Click on software management.
Search for flash, mark flash-player for uninstallation and click Accept.
Close YaST

Now Visit this site to download flash player(for this open FF):
http://get.adobe.com/flashplayer/

and click on the drop down list to select the version for download. Select the .rpm version and download it.

After you have downloaded it, close all Firefox windows. Then right click on the rpm and select Open With->Install software OR double click the rpm.
Key in your root password and press ENTER, it will install in a jiffy, as if nothing has happened.

Now open terminal,
Type:

sudo cp /usr/lib/flash-plugin/libflashplayer.so /usr/lib/browser-plugins/

and press ENTER

And that's it, you are finished!

Now test, open FF, and try www.youtube.com

Enjoy!!!

Monday, April 20, 2009

Linux Determine which Services are Enabled at Boot

The best protection against vulnerable software is running less software. How do I find out which services are enabled at Boot under CentOS / RHEL / Fedora Linux? How do I disable software which is not needed?
Open terminal and login as root user.

Type the following command to list all services which are enabled at boot:
#chkconfig --list | grep $(runlevel | awk '{ print $2}'):on


Task: Disable service,
To stop service, enter:
# service {service-name} stop
# service vmware stop


To disable service, enter:
# chkconfig {service-name} off
# chkconfig vmware off


A note about outdated insecure service
All of the following services must be disabled to improve server security:
1. Inetd and Xinetd (inetd xinetd) - Use direct services configured via SysV and daemons.
2. Telnet (telnet-server) - Use ssh
3. Rlogin, Rsh, and Rcp ( rsh-server ) - Use ssh and scp.
4. NIS (ypserv) : Use OpenLDAP or Fedora directory server.
5. TFTP (tftp-server) : Use SFTP or SSH.

To delete all of the service enter:
# yum erase inetd xinetd ypserv tftp-server telnet-server rsh-serve


ANL

Thursday, April 2, 2009

$_SERVER['PHP_SELF'] in PHP

Hi to all, After a long time i m back to this blog too.

$_SERVER is an array defined in PHP and it stores information about your server and execution environment information.

$_SERVER['PHP_SELF'] is an array element points out the filename of the currently executing script. For example, if you run www.example.com/index.php, $_SERVER['PHP_SELF'] would be /index.php. This is relative to the document root. This is useful to referring HTML forms and other element.

for example:


ANL