ubuntu

firefox browser detection in ubuntu

I just face this problem when starting to use Ubuntu. I wonder why Request.Browser.Browser.ToLower().IndexOf("firefox") return true for firefox on windows but false for firefox on Ubuntu? ...

where does django install in ubuntu

I am looking for the init.py file for django. I tried whereis and find, but I get a lot of dirs. ...

Run a windows xp bat script remotely from a ubuntu machine

Is it possible to run a windows xp bat script remotely from a ubuntu machine via command line? ...

How to start IE with a URL in a CYGWIN session.

I have a windows xp machine set up with Cygwin running the ssh service, on that machine I have a bat script that opens up IE using the following command "C:\Program Files\Internet Explorer\iexplore.exe" "http://windowsxpbox:3000/flex/flexUnitTests?debug=true#automated=true". The script runs fine when I'm calling it locally on that xp ma...

Using open2300 with Ubuntu

Hello, I am currently running Ubuntu 8.10 and have been trying to use Open2300 to read data from a Lacrosse WS-2310 weather station and report it to the WUnderground server. The program compiles fine but when I try to run it, it does one of two things: usually it pauses for about 4 minutes, then prints "could not reset" to the screen. ...

BAsh Script -- logname validation

How do I validate that the LOGNAME is present in a bash script if [`logname`]; then echo -e \\t "-- Logname : `logname`" >> $normal_output_filename fi The above gives me an error line 76: [logname]: command not found ...

Disable L2/L1 caches

I am trying to disable the internal and external memory cache of my CPU, my configuration is above: -DELL Precision WorkStation -Intel Core 2 Duo E6550 2.33 GHz -Ubuntu 8.10 I've tried to disable it through BIOS, but it apears that DELL computers doesn't let users to access cache memory, I found then another way, it is to disable cache ...

Produce keyboard Events key hits

How to make a simple C program which will produce keyboard key hits. if ( condition ) { KeyPress('A'); } I am working on Ubuntu 8.10 Linux OS ...

Installing Ruby 1.9.1 on Ubuntu?

I wonder about installing the latest version of Ruby on Ubuntu 9.04. Now I can run through the ./configure and make stuff fine, but what I wonder about: how to avoid conflicts with the packaging system? For example if some other package I install depends on Ruby, wouldn't the package manager install the (outdated) Ruby package and in the...

Where can I see when Ubuntu updates were actually applied locally?

I've been seeing a lot of as-yet unexplainable "now it works--now it doesn't" issues with a project. (It works on 8.10. Mostly it doesn't on 9.04, except for a few days in June.) Just would like to rule out that any changes from updates are having an effect. Is there a way to tell which updates were applied when? ...

Rsync help

Alright SoF, this is a little hard to explain, but i'll try my best. I have 2 identical drives. Let's call "S:" for source and "D:" for destination S: is the drive i keep all my files in (images, music, videos, documents, etc), and D: is a backup HD i (manually) back up every Sunday night. What i'd like to do is, backup S: into D:, w...

Ubuntu: allow non-root user to create and impersonate users

I want to write a server that receives and executes code on behalf of non-trusted parties. In order to make this more secure I want the code to be run as a user that is created exclusively for running this code and then deleted. How can I grant a non-root user the permission to create, impersonate and remove other users? ...

X11: run a gnome app as another user

I have ubuntu + x11 + gnome. I want to run a graphical application as another user. However, when I start it from the command line using sudo -u otheruser app I get the error "No protocol specified". How can I work arround this? ...

Ubuntu vs FreeBSD and Rails

Hi guys! What is the best OS for Ruby on Rails deploying? I've seen a lots of articles about Rails+Ubuntu, but what about FreeBSD? Are there any comparison tests for FreeBSD and Ubuntu. Which OS is the best in performance sense? Thanks. ...

using unix domain socket and sharing fd's

Hello All, Not been able to figure out why recvmsg() blocks when i try this test app on ubuntu. http://web.mit.edu/kolya/misc/break-chroot.c thanks ...

start-stop-daemon error

Hi all, I am running sstart-stop-daemon --start --exec $DAEMON $ARGS command on Ubuntu and getting the following error start-stop-daemon: user `p' not found Can anyone spot the problem? Abdul Khaliq ...

Error When Compiling C++ File In GCC

Hello, I'm using Linux Ubuntu Intrepid Ibex and using as compiler the gcc, but when i try to compile me C++ project file the compiler give me this error: ubuntu@ubuntu-laptop:~/C++$ gcc ClientFile.cpp gcc: error trying to exec 'cc1plus': execvp: No such file or directory What is wrong? Please Help Me!! ...

Build An Linux Executable Using GCC

Hello, I'm using Linux Ubuntu Intrepid Ibex and compiling C++ files with GCC, but when i compile, gcc makes a *.out file, that is the executable, but how i can make Linux executables? Thanks! ...

Why can't I build a "hello world" for glib?

So here's the world's simplest glib program: #include <glib.h> I try to compile it with gcc test.c and I get: test.c:1:18: error: glib.h: No such file or directory So I make sure that I have the right packages: # dpkg -l | grep libglib ii libglib-perl 1:1.183-1 Perl inter...

How to generate video screencaps of video files via linux commandline

Is there a command line program for linux (ubuntu) which can generate a large image containing say 6 caps from a given video (e.g. WMV) laid out storyboard style (I know on Windows media player classic can do this)? I need this for part of a script I am writing. ...