ubuntu

sudo changes PATH - why?

This is the PATH variable without sudo: $ echo 'echo $PATH' | sh /opt/local/ruby/bin:/usr/bin:/bin This is the PATH variable with sudo: $echo 'echo $PATH' | sudo sh /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin As far as I can tell, sudo is supposed to leave PATH untouched. What's going on? How do I ...

How can I make a fake "active session" for gconf?

I've automated my Ubuntu installation - I've got Python code that runs automatically (after a clean install, but before the first user login - it's in a temporary /etc/init.d/ script) that sets up everything from Apache & its configuration to my personal Gnome preferences. It's the latter that's giving me trouble. This worked fine in Ub...

What Ubuntu/Debian packages do I need to build with Java+OpenGL?

I want to use JOGL (for Clojure, not Java). There seems to be quite a combination of alternatives for JDKs and OpenGL bindings, and I don't want to use a scatter gun approach and clog up my machine installing too much cruft. Please help me get started! What Ubuntu/Debian packages do I need to install? (starting with sun-java6-jdk, for ...

Is Ubuntu an acceptable distro for running a production server?

I'm not a great Linux expert, but I'm comfortable running my Ubuntu desktop. I've also got a little experience running Ubuntu as a server as well, for my home network. At work, we're considering switching away from our current Solaris based setup to something Linux based. Our sysadmin is pushing for something like RedHat Enterprise or...

How can I ask for root password but perform the action at a later time?

I have a python script that I would like to add a "Shutdown when done" feature to. I know I can use gksudo (when the user clicks on "shutdown when done") to ask the user for root privileges but how can I use those privileges at a later time (when the script is actually finished). I have thought about chmod u+s on the shutdown command s...

Change the background color in Gnome terminal through a command?

I'm using Gnome terminal and I want to change the background color or the profile through a command so I can group some commands in an alias to visually differentiate my windows when I run certain processes. I'm running Ubuntu, and bash is my shell. Are there commands in to do this? ...

Mac OS X under VMware on Ubuntu on a Macbook Pro

Duplicate of http://stackoverflow.com/questions/39159/is-it-possible-to-run-osx-in-a-virtual-machine I'm looking to install Ubuntu as the main OS on my Macbook Pro. However, I'd like to still access OS X without rebooting. I know it's possible to have OS X be the host OS and run Ubuntu inside it. However, is the opposite possible? Can I...

Looking for SVN Best Practices When Building Rails Applications on Ubuntu

First a bit of background. I have been working on the MS platform for my entire development career. Up until 2 weeks ago, I had never booted any other OS than 98/XP/Vista. I started using VSS long long ago, and made the change to SVN about 2 years ago. With SVN I use TortiseSVN and use the standard branch/tag/trunk setup. My projects ...

Deny login to linux machine for users not in AD "Domain Admins" group?

So I've setup an Ubuntu server running the 8.04 release. I set it up to authenticate with our Active Directory using the likewise-open package using these instructions. Part of that setup was giving Domain Admin users who login to the machine sudo access. Now I'd like to deny login rights for all domain logins except for those users tha...

What is LTS (Long Term Support)?

I looked it up in Wikipedia, and there is only one line there. Anyone have a more detail description for it. Ubuntu releases their OS with this notation, but I was unable to find a detailed descripton over what it means/includes. I've already read the Ubuntu notation but need a more general description, not how Ubuntu has implemented it....

Steps to compile darwin for arm on ubuntu gcc

Has anyone got the steps to compile darwin libraries on gcc for arm on ubuntu? ...

PHP4 for Apache 2.2.9 in Ubuntu server 8.10

Hi, I recently moved from a windows based development environment to an ubuntu one. I need to have both PHP4 and PHP5 available (PHP4 is a company requirement, so not much I can decide about it). My problem is that I can't install PHP4, as it's not available as a package an it seems that the only way to get it would be to compile it. Can...

Debugging pylons in Eclipse under Ubuntu

I am trying to get pylons to debug in Eclipse under Ubuntu. Specifically. I am not sure what to use for the 'Main Module' on the Run configurations dialog. (this is a similar question on stackoverflow, but I think it applies to windows as I can't find paster-script.py on my system) Can anyone help? ...

Subversion with AD Groups with Linux?

I try to migrate a Windows SVN Server to Linux. I have configured Apache to validate against AD for Useraccess so only AD Users can logon. Now i have to set permissions for repositories with authz files. When i set permission with AD username it works, but AD groups it doesn't. The authz file looks like the following: [test:/] user1=rw...

Removing a file in a Restricted Folder in Linux

I have been attempting to create a new directory for my apache server. As I tried to access the new directory, I type: sudo /etc/init.d/apache2 restart But I obtain this error in the Ubuntu Terminal: Syntax Error on line 1 of /etc/apache2/conf.d/fqdn.save: ServerName takes one argument, the Hostname and port of the server. As I inves...

What method(s) do you use to test a debian/ubuntu package?

I'm talking about testing a package that you're building, especially one that spawns a daemon and/or fiddles with init.d. Do you log into some sort of chroot? Do you create a virtualized distribution and tear it down? How do you test your runtime dependencies and test suite without fouling up your dev machine for the next time you run y...

how could I share workspace between ubuntu and windows xp?

I am using ubuntu 8.04 and windows xp. I mount the fat32 disk which contains eclipse workspace to ubuntu. but I find I could not use the workspace, maybe I have no right to use it. the fat32 disk I mounted has the 755 right,I try to use chmod to change it to 777 but failed. I try to mount it to 777 mode, but I find there is nothing abou...

How to configure ubuntu to make GBK complie avaliable in eclipse?

I couldn't complie java file using GBK encoding in eclipse. there is no "GBK" option in properties of project,even though I have typed the "GBK" in "Text file encoding". my eclipse is installed in ubuntu, maybe the default file-encoding of my ubuntu is utf-8. How to configure the ubuntu and let it support "GBK" in eclipse? ...

Git repository with multiple users on Ubuntu

I have an existing bare git repository located in /home/myaccount/git/project. I am currently using it over ssh from my local machine without any problems. I want to add a second user on the server which only shall access to this git repository (maybe move the repo outside my account folder?). How? Using latest version of git and ubuntu ...

Web based Software Distribution

Currently at my job, we are distributing installers for our windows base software via an apache web server on a Ubuntu server using apache authentication. When we initially started doing this we only had 3 projects to distribute and as such, 3 htpasswd files to manage. Since then, we have grown and are now distributing 8 projects as we...