ubuntu

apt-get environment variables when spawning "debian rules" file

What are the environment variables made available to debian/rules (often make) when spawned by apt-get during installation of a package under Ubuntu? I am specifically after the environment variables that would pertain to Gnome's configuration directories. I'd like avoiding "hardcoding" things like ~/.conf/apps/ ... since I have been to...

Installation of gcc for SimpleScalar on Ubuntu 9.04

So, I'm trying to install gcc for SimpleScalar-3.0, and I keep running into trouble when I execute the command make install LANGUAGES="c c++" CFLAGS="-O3" CC="gcc" as per the instructions in this wiki (Link) I've included the entire output of the command as it runs in the first scroll box and the error message in the second scroll box. ...

Hack a FITs Image Header

I need to change a few values in a couple of FITs image headers to fit with some test data I have. Therefore I'm trying to hack a FITs image header at the minute to run with the application. However at the minute - I can't even see the header, never mind hack it. I run Ubuntu. Can anyone advise some software to view the FITs - perhaps ...

how do I check what values change in gconf?

I am trying to make an installation script to automatize certain actions, and I found the gconf tool to be very useful. However, it's a lot more of a fluke chance that I find the right value in the editor or find the line on google. Is there a way to check what changes in the GUI do in gconf? It would certainly make life easier. ...

Error while adding new user - token manipulation error?

hi all I'm trying to create a user with adduser (also tried useradd) and I'm getting the following error regarding passwords. sudo adduser jimjamz [sudo] password for jplush: Adding user `jimjamz' ... Adding new group `jimjamz' (1000) ... Adding new user `jimjamz' (1000) with group `jimjamz' ... Creating home directory `/home/jimja...

Ruby Watir: Clicking OK on JavaScript Alerts?

Seems none of the code I've tried has any affect. My intention is to close any and all JavaScript prompts that may come up by hitting the "OK" button. Problem is, my script has no affect on the prompts that come up. In other words, it does nothing. Here's what I have: fx = FireWatir::Firefox.start(somepage) fx.startClicker("OK") fx.but...

Better IDE not build using Java in Linux?

First of all i love Eclipse but Eclipse in linux sucks coz java in linux (I'm using Ubuntu) is the a bad idea thus making Eclipse really slow and CPU intensive. My question is there a IDE that is somehow like Eclipse (not like pure notepad alike or command like,vi or emacs alike) that is not build from Java in Ubuntu? Thanks Update: I'...

Error number 13 - Remote access svn with dav_svn failing

I'm getting the following error on my svn repository <D:error> <C:error/> <m:human-readable errcode="13"> Could not open the requested SVN filesystem </m:human-readable> </D:error> I've followed the instructions from the How to Geek, and the Ubuntu Community Page, but to no success. I've even given the repository 777 permissions. ...

How to force an ImportError on development machine? (pwd module)

I'm trying to use a third-party lib (docutils) on Google App Engine and have a problem with this code (in docutils): try: import pwd do stuff except ImportError: do other stuff I want the import to fail, as it will on the actual GAE server, but the problem is that it doesn't fail on my development box (ubuntu). How to make...

jffs2_gcd_mtd1 CPU load

On debian/ubuntu9 What is jffs2_gcd_mtd1 and why is it using CPU so extensively? Is it related to apache or mysql continuous usage? ...

What package I should install for 'pcre-devel'?

Hi, I need to install pcre-devel package to compile lighttpd on ubuntu: configure: error: pcre-config not found, install the pcre-devel package or build with --without-pcre Can you please tell me how to do that? Thank you. ...

Find and replace a particular term in multiple files

How can I replace a particular term in multiple files in Linux? For instance, I have a number of files in my directory: file1.txt file2.txt file3.txt And I need to find a word "searchword" and replace it with "replaceword". ...

Firefox in macosx is not displaying xml tree

Hello experts! I have currently changed to Mac from Ubuntu and for some reason viewing xml files in Firefox differ between the two. In Ubuntu Firefox(3.5) I get a XML tree but in Mac OS(10.6) Firefox(3.6) i get plain text. To se the xml tree i need to check the source. It is the same xml file. Could someone please explain why and how t...

Compiling a PHP extention library on Ubuntu (Karmic Koala)

I compiled some PHP extention libs (in C/C++) a while back, on my XP platform. I have now moved the sources to my Ubuntu box, and want to build the libs for use on my Linux box. However, I have come accross a number of obstacles: I cant locate phpize (even after installing the php5dev package) I cant find ext_skel to generate the skel...

Another way to write this iptables rules on openvp

Hi, I've got a problem with iptables on openvz (ubuntu 8.04) I know that openvz is a for iptables and I know that some modules are not loaded by default (I can't move to another hosting provider right now). I've been googling since last week trying everything but I haven't fixed it yet. My iptables is this one (got from slicehost): ...

Can't install sun-java6-bin package on Ubuntu Hardy (8.04)

I just upgraded to Hardy from Dapper and can't install java for the life of me: $ sudo apt-get install sun-java6-bin sun-java6-jre sun-java6-jdk [sudo] password for bobpete: Reading package lists... Done Building dependency tree Reading state information... Done Package sun-java6-bin is not available, but is referred to by another packa...

postfix re-processing of spool - ubuntu

This is not technically a programming question but perhaps someone can help me. Yes, it's totally off topic, but i'm desperate for help as I'm no expert at this type of thing. We had a problem on our mail server over the weekend and upon updating postfix, i noticed that mail was no longer being delivered to the /home/$user/Maildir/ as d...

How to list exported functions in a shared lib on Ubuntu

I have just built a shared lib on Ubuntu, and when I attempt to use the function, the application that loads the library is reporting 'xxx' symbol not found. I want to check (i.e. list) the functions that are exported by my library so I can investigate this issue further. Relevant details: OS: Ubuntu 9.10 compiler: gcc 4.4.1 link...

how do I launch a url in firefox in the background from Ubuntu command line?

I use this command from the Terminal to launch a url in Firefox: firefox reader.google.com & I put the ampersand at the end so that it won't put my Terminal window in the background, but Gnome just ignores this and opens a new Firefox browser window on top of the Terminal. Is there a way to launch Firefox behind the Terminal? What I w...

Terminal: Opening the current path in a window?

Often times, I find myself navigating very deep into a directory and wanting to open the graphical window (nautilus) for various reasons. So the question is simple: After doing, cd sampledirectory cd sampledirectory2 How can I open this location in a GUI? ...