ubuntu

Does Apache need to be stopped to edit "/etc/apache2/sites-available/default"?

I am attempting to edit the "default" file located at .. "/etc/apache2/sites-available/default" on my Ubuntu machine running Apache 2.2.8. I want to do this in order to enable the use of .htaccess files. I have downloaded the "default" file and edited it and now I am trying to upload it back to the server via SFTP. I keep getting p...

what is the oldest glib version that a qt 4.6 application can run with

I am trying to build a standalone qt application (built on ubuntu and deployed on Red Hat 5.3, both 64 bits) after building a qt application that is statically linked to the qt library I tried to run the program on red hat and got an error saying libc.so.6 was not found and that GLIBC_2.9 or GLIBC_2.10 is not installed and needed. I tr...

Mysql ERROR 1005 (HY000): Can't create table 'tmp' (errno: 13)

Hi, I'm Running Mysql on ubuntu 9.10, the process of Mysql is running as root, I'm using root account when logging to Mysql, which I gave all privileges, I'm using my own db(not mysql), I can create a table, but when i try to create Temporary table i get this error: ERROR 1005 (HY000): Can't create table 'tmp' (errno: 13) For this qu...

getting data problem with MYSQL under linux

Hi all, Recently I started to use Linux (Ubuntu 9.10) instead of windows. I am working on a java web application with Spring, MYSQL with jpa. However, before to install linux I made a backup file from the database, then installed linux, installed the MYSQL Query Browser and Administrator tools, and using the Admin tool restored the back...

install play-framework in Ubuntu 9.10

I have copied zipped file from the playframework.org website and unzipped it at a location. I have inserted it in my .bashrc profile to set up as PATH environment. But still, the play command is not accessible from anywhere. And even in the installed directory of the framework, the play file is not running as it is. I have to prefix p...

redirecting output of a cmd to a file

we are trying to re-direct the output of the list to a file using the below cmd(java) in ubuntu, Pls let us know if this works or not ? Process p = Runtime.getRuntime().exec("ls -l >/home/blah blah/new.txt") ...

How Linux system monitor gets process stats

Hi all, Im making a simple alternative to the default linux system monitor. Im looking to know how it lifts the process stats, which is displays in the Processes tab. It probably runs off /proc, but im unsure. Also, where could i find the source code for the system monitor program? Regards Paul Also, having looked at how gnome sys...

Caching Mysql database for better performance

Hi, I'm using Amazon cloud and I've performance issue since the HDD is not located on my machine. My database is small (~500MB) and I can afford to keep it all in my RAM. I do not want to keep queries in my RAM, i need all the tables there. How can i do it? Thanks, Koby P.S. I'm using ubuntu server... ...

Java application installer for linux

How can I create a linux installer for java desktop application? for an instance if we want to install netbeans on ubuntu there is a download which is named as "netbeans-6.8-ml-java-linux.sh" so how can i create "mydesktopapp-linux.sh" i have the properly working .jar file i want to distribute my java desktop app. Can anyone help me? ...

PHP is_file returns false (incorrectly) for Windows share on Ubuntu

Ubuntu server, PHP 5.3, connected via Samba to Windows server share. I am using file_exists() to check for availability of file on Windows machine. It returns false, although the filepath does exist. Meanwhile, file_get_contents() on the exact same filepath works fine. I'm wondering if it's a permission issue, since I'm having trouble ...

Learning resources for Linux filesystem, command line, and structure

Can anyone suggest some good materials for learning more about the Linux filesystem and command line? I have found myself frequently confused as to what programs go where on the Linux filesystem. I would like to learn how the various directories (var, etc, usr ...) are used and how to use the commandline more effectively. I come from th...

Two Ubuntu Instances (Guest) networking with XP (Host) in virtual box v3.1.4

So here is my current objective: I need to create two guest instances of Ubuntu Desktop 9.10 in VirtualBox on a WindowsXP host. (This is needed for communications later on.) (this step is almost done) I need to establish networking between all three OS's, the host and two guests (Guest1 -> Host -> Guest2). I know that generally, to es...

What's your best Ubuntu and Eclipse setup for Java development?

What're the best versions and configuration tricks for building a happy Java development environment with Eclipse on Ubuntu? I'm at Ubuntu 8.10 and Eclipse Ganymede 3.4.2, so I'm behind on both fronts. With my current setup, Eclipse often slows to a crawl and I have to restart. I'd love to upgrade to the latest OS and IDE. However, I've...

Can't install thin by using rubygems on Ubuntu 9.10

How can I fix this error, and install thin or other gems? $ sudo gem install thin Building native extensions. This could take a while... ERROR: Error installing thin: ERROR: Failed to build gem native extension. /usr/bin/ruby1.9.1 extconf.rb checking for rb_trap_immediate in ruby.h,rubysig.h... *** extconf.rb failed *** Could no...

How to get Webkit Browser DBus Bridge working?

I've been struggling to get the Browser Dbus Binding working for Webkit/GTK (http://gitorious.org/webkitgtk/stable) port. I have been able to successfully compile the Webkit/GTK port as well as the DBus binding library on my Ubuntu Lucid Beta. I also installed the DBus binding library at the standard location /usr/local/lib. But now when...

How to compile a program which needs a newer version of glib

Hi, I am trying to compile Webkit on Ubuntu 8.04. But when i run autogen.sh, I get the following error saying it needs a newer version of glib. So what is the safest way to install glib without screwing up the rest of my OS (since the rest needs 2.16 while webkit compile needs 2.21)? checking for GLIB... configure: error: Package re...

java SecurityException when running applet on firefox, ubuntu

I would like to run an applet on firefox 3.6 on ubuntu 10.4. and I start firefox with sudo on command line to see the java console output. My appplet code changes some policies and it works fine on windows. But on ubuntu I get this error: java.lang.SecurityException: Changing the SecurityManager is not allowed. at net.sourceforge.jn...

How to setup libsoup for ubuntu

Hi, I am trying to install libsoup for my ubuntu environment: checking for LIBSOUP... configure: error: Package requirements (libsoup-2.4 >= 2.28.2) were not met: No package 'libsoup-2.4' found I tried $ sudo apt-get install libsoup2.4-dev and now it said: checking for LIBSOUP... configure: error: Package requirements (libsoup-...

Start Sunspot solr at/on Reboot

Hi guys, I'm trying to start Sunspot's solr server on my ubuntu workstation and server. So far I'm tried in the crontab @reboot sh -c 'cd /<location of rails program>/; rake sunspot:solr:start' and @reboot sunspot-solr start -d <options> -s <options> -p <port-num> Neither are able to start the server at reboot. Thoughts? Thanks, ...

How to convert 64 bit .deb file into 32 bit .deb file

Hi I have 64 bit .deb file of an application. I want to convert the same file into 32 bit .deb file. So how to convert 64 bit .deb file into 32 bit .deb ...