Browsing articles from "March, 2009"
Mar
25
2009

Install Postgresql , phpPgAdmin and pgadmin on Ubuntu 8.04 Hardy Heron

Postgresql , phpPGAdmin and pgadmin 3 can be installed from synaptic. After installation the postgres password of postgresql can be changed like this : ALTER USER postgres WITH ENCRYPTED PASSWORD ‘‘; To exit : \q Also create a database : Now to access localhost/phppgadmin a link needs to be created which points to /usr/share/phppgadmin : Now localhost/phppgadmin should open up Trying to login with user : postgres and password : created above might give the [...]

Mar
22
2009

openSuse like start menu on Ubuntu

openSuse presents a different kind of menu in gnome desktop that what appears in Ubuntu. The menu can be added as an applet to the panel in Ubuntu gnome desktop also by installing the package : gnome-main-menu sudo apt-get install gnome-main-menu After installation right click on a panel and Add to Panel. Add ‘The main gnome menu’ from the list which shall be a start menu like the one on openSuse

Mar
22
2009

Scheduling and Automating Tasks with Cron Jobs

Automation may be needed in order to run certain scripts at regular intervals for tasks like scraping, extracting or crawling data from web or perform some regular tasks like sending emails, system maintenance or administration, taking backups or whatever. Scheduling a task to run automatically is really simple using a utility called “Cron”. “Cron” is a utility (basically a program that runs as a background job/process) that can execute scheduled (time-based) commands. These commands are [...]

Mar
22
2009

File – Image Previews in Konqueror KDE

If Konqueror is not showing the image thumbnails in the icons or previews then check : 1. Control Center > KDE Components > File Manager > Previews & Meta-Data for the Maximum File Size in the slider. If it is too low then increase it to say 5 MB. 2. Open Konqueror. In the menu View > Preview check whether previews are enabled or not. If disabled then enable them. Various file types can be [...]

Mar
21
2009

Install Apache Tomcat 5.5 on Ubuntu 8.04 Hardy Heron

To install and run Tomcat on Ubuntu (8.04 over here) the following packages should be installed from synaptic : 1. tomcat5.52. tomcat5.5-webapps3. sun-java6-jdk They can be installed from command line using the command sudo apt-get After synaptic finishes installing them open /etc/default/tomcat5.5 and edit it as follows : Find :#JAVA_HOME=/usr/lib/jvm/java-6-sun Change : Remove the # so that it is uncommented.JAVA_HOME=/usr/lib/jvm/java-6-sun It points to the java home which can be java-6-sun or any other java . [...]

Mar
21
2009

Access Windows File Sharing from Ubuntu

Some GUI tools that can be used to access windows shares (SMB) are : 1. xSMBrowser2. Smb4K3. TkSmb Get them all from Synaptic. They are basically gui frontend for the smbclient command.Nautilus and Konqueror have the View Network options too and if they dont work the above 3 utilities may. Links :1. Setting Up Samba

Mar
8
2009

Php set_time_limit wont take into account socket operations

The PHP function set_time_limit is used to set a time limit on the maximum execution time of a script. But if the script has socket operations using fsockopen , fread and fwrite or even CURL then the set_time_limit may not appear to have any effect on the scripts timelimit or timeout. Again if safe mode is on then also set_time_limit has no effect. (Safe Mode) Socket operations are stream operations which do not count in [...]