Here is the setup:
Router
Windows XP 32-bit
Windows 7 64-bit
The XP machine has a Lexmark printer physically attached. I have installed the x64 drivers for the printer installed in Windows 7. When I try to print to the printer on the Windows 7 machine, it doesn't work - I get an error:
Windows cannot connect to the printer. Error 0x0000000d…
Okay. I installed apache2 and php on my Ubuntu 10.04 machine. I copied the phpmyadmin files to /var/www/phpmyadmin so that the hierarchy looks like this:
-var (755)
-www (144)
-phpmyadmin (644)
-index.php... etc. (644)
-index.html (644)
The numbers in brackets are the permissions. What permissions should the phpmyadmin…
I have 2 machines connected to a network that provides internet access.
I would like one of the machines, which is running Ubuntu 10.04, to act as an internet proxy for the other machine, which is running Windows.
How would I set this up? Is there a good Ubuntu proxy I can install?
I am trying to create a webserver that serves PHP scripts. Currently, it works as follows:
The client requests /index.php?test=value
The server invokes php index.php
The server feeds the HTTP request headers as STDIN to the PHP process
The server reads the output of php from STDOUT and returns it to the client
All of this is working except…
I started WireShark on my Ubuntu machine and discovered that there were no interfaces I could listen to. So I launched it as root. This gave me access to all the interfaces, but gave me a warning:
Running WireShark as user 'root' in group 'root'. This could be dangerous...
So, is it dangerous? Otherwise, how can I listen to the…
How do you enable mod_rewrite with Apache in Ubuntu 10.04?
I tried copying rewrite.load from /etc/apache2/mods-available to etc/apache2/mods-enabled but that didn't work.
I am interested in setting up an apt repository on my server to host some of my packages.
How would I go about doing this? It's a shared server.
Basically, I want to do what Google did in regards to the way they host Chrome downloads for Linux.
Here is my rule:
RewriteRule ^user/(\d+)$ rewrite.php?id=$1
This redirects, but $_GET['id'] is not set. If I change the above rule to:
RewriteRule ^anything/(\d+)$ rewrite.php?id=$1
It works. Why does one work but not the other?
Here is more information:
There is no directory named user
The only other .htaccess file in the…
I right clicked the gnome menu and clicked on "Edit menus"
Then I clicked on "New item".
Type: Application
Name: gedit as root
Command: gksudo gedit
Comment: Launch gedit as root.
When I click it, the gksudo dialog appears as expected. But then... nothing.
How should I be doing this? (From the menu - I know it's trivial from…
The title is a bit misleading... what I want to do is a little complicated:
I want to set up my server (running Ubuntu 10.04 Desktop) to send email using PHP's mail() function.
I tried just using it, but the messages don't go anywhere and the return value of mail() is not FALSE, so I really don't know what's going on.
Any…
I have a website that needs to block a particular country based on IP address. I am more than aware that IP-based blocking is not a foolproof method for blocking visitors, but it is a necessary step in the right direction.
Since I'm using PHP, what I would do is use a GeoIP database like geoplugin.net. However, I'm curious…
I am considering setting up a multiseat configuration in Ubuntu. However, in the past, this has been notoriously complicated. I am wondering if things have improved any and what the current way of setting it up is. (for Ubuntu 9.10)
I am configuring a router to redirect TCP port 5900 (yes, this is for VNC) to a specific IP address on the network. Here is what I have:
From a local computer on the same network, I can telnet to 192.168.1.64 (port 5900) just fine. However, when trying to telnet to the machine (port 5900) using its external IP address,…
I have a server that I cannot access. At first I thought it was just some temporary failure with the server, but checking from other IP addresses reveals that it is working just fine. It's only my IP address that's failing.
So here is what I've tried:
nslookup - resolves correctly
ping - 100% packet loss using the IP…
Figured this question would have a happier life here than on SO.
So, what open-source software does everyone use? I'm referring to programs that are used to aid in the development of software. So this may include for example, the Gimp (for application artwork), but not a bittorrent client.
Some of mine:
Code::Blocks…
My C++ application embeds the Python interpreter, but seems to be having some trouble when it shuts down. Right after the main window closes, I get a segmentation fault (this is Windows, but we'll call it a segmentation fault anyway). The stack trace is below:
#0 102AD580 tk85!Tk_MainWindow()…
I have a bash shell script that loops through all child directories (but not files) of a certain directory. The problem is that some of the directory names contain spaces.
Here are the contents of my test directory:
$ls -F test
Baltimore/ Cherry Hill/ Edison/ New York City/ …
Is it possible to declare two variables of different types in the initialization body of a for loop in C++?
For example:
for(int i=0,j=0 ...
defines two integers. Can I define an int and a char in the initialization body? How would this be done?
Hi, I'm trying to write mocks using amop. I'm using Visual Studio 2008.
I have this interface class:
struct Interface {
virtual void Activate() = 0;
};
and this other class which receives pointers to this Interface, like this:
struct UserOfInterface {
void…