Ubuntu Networking :: RPC Works For Some Things And Fails On Others

Apr 13, 2011

I'm trying to use a remote procedure call. When I call my server, my server should activate gammu and send an sms with it. I've used the code in the following tutorial: [URL]. The command for the uptime, and the command for the greeting work perfectly. But when I write my own method on my server, it fails ..

Code:
function uptime_func($method_name, $params, $app_data) { return `uptime`; } function greeting_func($method_name, $params, $app_data) { $name = $params[0]; return "Hello, $name. How are you today?"; }
function gammu_func($method_name, $params, $app_data) {
$text = $params[0];
$number = $params[1];
$result = "echo '$text' | gammu sendsms TEXT $number";
exec("$result");
return $result; }
On my Client (the one that calls the server) I see the output of $result. So my gammu_func is definitely working... He just doesn't execute
Code:
exec("$result")

I know that syntax is right cause I tried it in a different php file. I think it has something to do with the user rights. I don't think I have the privileges to run that command ...

View 2 Replies


ADVERTISEMENT

Ubuntu Installation :: 11.04 Upgrade - How Things Usually Works

May 11, 2011

So it seems to me like upgrading to the newest 11.04 distro of ubuntu would be a great thing to do, but I've seen quite a few threads about bugs, problems, etc. Is this common? I am new to linux so I am not really sure how things usually work. Does it differ from system to system?

View 9 Replies View Related

Ubuntu :: 10.10 - Mouse Works And Will Select Things There Is No Cursor

Sep 16, 2010

I just installed 10.10 and though the mouse works and will select things there is no cursor!

View 9 Replies View Related

Ubuntu Networking :: Usb Modem Works But Connection Fails?

Jan 9, 2011

I have a usb modem which I plug into my ubuntu 10.10 system for a dial-up service. The modem is recognised by wvdial and dials properly, but the connection is not established.I get "Unable to run /usr/sbin/pppd" (although pppd is certainly in /usr/sbin), followed by "Check permissions of specify a 'PPPD Path' option in wvdial.conf", and finally "Connected, but carrier lost", then it gives up.

View 5 Replies View Related

Networking :: Web Name Resolution Fails - Ping Works

Aug 2, 2010

I'm trying to install Mandriva Spring 2010 for a friend on his laptop after MS Windows crashed. The installation appeared to work, but I've got an odd networking problem - firefox is unable to load URLs. Every URL I try returns a server not found error.

When I drop into bash I'm able to do the following
Code:
ping 66.102.9.103
ping google.com

However when I try
Code:
wget http://google.com

I just get a message that tells me that wget is "unable to resolve host address google.com'". This is odd - ping is able to resolve google.com, but wget isn't. I assume that firefox and Konqueror both have the same problem. Could it be cause I've specified the http protocol?

View 11 Replies View Related

Programming :: Name Of Formula N Things Out Of Collection Of M Things

Jul 22, 2011

I'm working through some problems in a beginners programming book. The author mentions a formula for calculating the number of ways of picking out n things from a collection of m of them:

Code:
/ m m!
| | = -----------
n / n! (m-n)!
But he does not give a name for the formula. Does anyone happen to know what it is called? I need to do some related research.

View 3 Replies View Related

General :: Mount.nfs Fails In Ubuntu / Works On Red Hat?

Aug 13, 2010

I want log in locally to my Lucid (10.04) workstation and have my code saved over the network on my samba account At work, all developers have samba user ids and when we were running Red Hat, we went thru the following procedure to get setup.

* open a shell session to NFS server and execute the "id" command to get my samba user information.

Code:

$> ssh l alberto our_nfs_server
$> id
uid=7090(alberto) gid=100(users) groups=100(users)

* Create locally a login on my Linux workstation with the same login and uid.

Code:

$>sudo useradd u 7090 g 100 d /home/alberto s /bin/bash alberto

[code].....

Code:

mount error(13): Permission denied Refer to the mount.cifs(8) manual page (e.g. man mount.cifs) mount.nfs: access denied by server while mounting our_nfs_server:/d0/homedirs/alberto It does not work at all!!?? However, the same procedure on a RedHat workstation works fine. No errors.

View 2 Replies View Related

Ubuntu Installation :: Kubuntu LiveCD Fails But CD Works

Jun 20, 2010

I am able to boot from the Ubuntu 10.04 LiveCD fine, but the Kubuntu CD fails to boot. Trying to run Kubuntu sends me to a command line and after the first three steps of the install option I am again sent to a command the line. I have burnt and verified several Kubuntu CDs and each time I get this result. I am running Ubuntu, but I would like a fresh install of Kubuntu (I would rather not just install kubuntu-desktop).

View 1 Replies View Related

Ubuntu Servers :: Bind Fails First Attempt, Then Works?

Jan 10, 2011

I'm having an issue with a BIND server. After a restart, (or randomly, I assume whenever a cache expires,) when I try to resolve any domain I get a "Host yahoo.com not found: 2(SERVFAIL)" Eventually it starts working and works fine till the cache expires again;

[Code]...

View 1 Replies View Related

OpenSUSE Hardware :: Second Screen Fails In 11.4 (but Works Just Fine In Ubuntu)

Apr 11, 2011

System:Tri-head, dual-card: GeForce 9500 GT, GeForce 8400 GS
Dual-boot: openSUSE 11.4, Ubuntu Natty
Driver: nvidia proprietary (260.19.44 in openSUSE, 270.30 in Ubuntu due to kernel version)
xorg.conf: same for both
Results: All three heads work just fine in Natty; secondary screen fails in openSUSE:

Code:
[25.164] (EE) NVIDIA(1): Failed to initialize the NVIDIA GPU at PCI:2:0:0. Please
[25.164] (EE) NVIDIA(1): check your system's kernel log for additional error
[25.164] (EE) NVIDIA(1): messages and refer to Chapter 8: Common Problems in the
[25.164] (EE) NVIDIA(1): README for additional information.
[25.164] (EE) NVIDIA(1): Failed to initialize the NVIDIA graphics device!
[25.164] (II) UnloadModule: "nvidia"
[25.164] (II) UnloadModule: "wfb"
[25.164] (II) UnloadModule: "fb"

But nothing is jumping out at me in the output of dmesg. I also don't see any additional system or kernel logs in /var/log. I'll google some more on that front. One other fun fact: nvidia-settings fails to run in openSUSE. Unless I launch it under gdb. Then it starts up and runs as expected. (And the second screen ain't there, as expected.) Here's (what I think are) the relevant items:
Xorg.0.log - Pastebin.com
dmesg - Pastebin.com
xorg.conf - Pastebin.com
Additional output available upon request.

View 6 Replies View Related

Ubuntu Installation :: Generic - Pae Fails But Older Version Works

May 2, 2011

After a massive meltdown with the upgrade, I finally got the system put back together. Had to reinstall grub. It now defaults to a version that says "Generic - pae". When choosing this from the grub menu, it always hangs on the Ubuntu splash screen; however, I found that when I choose "previous Linux versions" from the grub menu, then choose the Ubuntu-generic, everything works fine - other than my initial bad impression of unity - but it works, at least.

why my default choice in grub doesn't work, and what I need to do to fix it? Below is a cut and paste from /boot/grub/grub.cfg. The first entry is the one that does NOT work, and the first entry after "submenu" is the entry that DOES work.

menuentry 'Ubuntu, with Linux 2.6.38-8-generic-pae (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode

[Code]....

View 4 Replies View Related

Security :: SSH Works But Remote Mount Fails

May 1, 2011

I've added my public key to the remote machine's authorized_keys file, and I can ssh over without password. But when I try to mount the remote share using sshfs it -always- asks for my user's password. I have set sshd_config|PasswordAuthentication no
... and when I mount the share as root it says, "read: Connection reset by peer". My mount is being done as user, so it shouldn't be a root authentication problem:
sshfs#bill@droog://media/droogfuseuser,noauto,gid=6,umask=007,cache=no,ServerAliveInterval=15,reconnect,allow_other,comment=sshfs 0 0
I can't mount as user because /dev/fuse is not suid, and I'd rather not set it such.

View 10 Replies View Related

Applications :: Program Works As Root But Fails As User

Jan 21, 2010

I can't get a program (wbar) to run directly from my user account, it fails saying "Image not found -> maybe using a relative path?". But if I run su -c "wbar", it shows up and manages to load the image. I think it has something to do with ImLib2 or whatever loads the image. I checked permissions on libImlib2.so.1 and it's world-readable and executable. Can libImlib2.a be causing this problem, set to 644? What else should I be checking?

View 2 Replies View Related

Server :: Crontab Fails But Command Line Works ?

Feb 19, 2011

Having an odd problem running a mysqldump via crontab. I have the script running on other servers and they work fine, so not sure how to actually troubleshoot, but the script looks like the following;

If I run it as a cronjob as root, it finishes in a second and a 20k file is there. If I run it from the command line as root it does the backup (takes a few minutes) but does complete the backup and can be unzipped and read successfully.

View 3 Replies View Related

Slackware :: FreeNX - Authentication Works But Session Fails

Jul 21, 2010

I installed freenx-0.7.3-i486-1alien.tgz on the server (with Slack 12.1), all according to instructions. I installed the no machine nxclient 3.4.0-7 on the client (with Slack 12.2). I ran setup and configured. I used the default no-machine keys, not custom ones. Since authentication failed at the beginning, I enabled DBauthentication, and added my user and password, which seemed to allow authentication to occur.

Here is my node.conf:
# node.conf
#
# This file is provided by FreeNX. It should be placed either into
# /etc/nxserver/node.conf (FreeNX style) or /usr/NX/etc/node.conf
# (NoMachine NX style).....

View 93 Replies View Related

CentOS 5 :: SU Works But SUDO Fails With Incorrect Password?

Mar 27, 2009

I hope I haven't missed this in another forum but was tough to search for.While administering my new centos 5.2 x86 server through SSH I am successfully able to issue

View 11 Replies View Related

Hardware :: Mounting External HD Under Gentoo (fails) - Works On Debian

Mar 18, 2011

I recently picked up an external HD which I partitioned, formatted and can mount just fine under Debian. When I plug in the device, I can see an appropriate sda1 entry for my partition in /dev. However, when I attempt to use the device in Gentoo (the system I bought the drive to back up) it seems to not be recognized. I still get some new entries under /dev when I plug it in, but no specific partition number is recognized. On Debian (where it works) here is the output of dmesg after plugging in the device:

Code:
[ 9179.847274] usb-storage: device found at 8
[ 9179.847277] usb-storage: waiting for device to settle before scanning
[ 9179.848514] usb 5-5: New USB device found, idVendor=059b, idProduct=0070
[ 9179.848520] usb 5-5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 9179.848523] usb 5-5: Product: eGo USB
[ 9179.848526] usb 5-5: Manufacturer: Iomega
[ 9179.848528] usb 5-5: SerialNumber: 090000000000D517
[ 9184.844890] usb-storage: device scan complete .....

I have to admit that I'm kind of baffled by what is going on here. It would seem that in Debian the drive is initially treated as a cdrom device and then my partition is seen, but the same is not occurring in Gentoo. How I can make the sr0 device work in Gentoo? Am I missing a module?

View 3 Replies View Related

Ubuntu Networking :: Searched The Forums And Tried Several Things (b43-fwcutter, Among Others) And Cannot Get Anything To Work?

Feb 8, 2010

I am having problems making wireless work on my pc. I have searched the forums and tried several things (b43-fwcutter, among others) and I cannot get anything to work. My computer is an HP ze4900, broadcom wireless Quote:

*-network:1 UNCLAIMED
description: Network controller
product: BCM4306 802.11b/g Wireless LAN Controller

[code]....

View 1 Replies View Related

General :: CIFS Mounting Works Via Command Line - Fails With Fstab

Dec 2, 2009

I've successfully mounted a network share with mount.cifs for the past 2 years using fstab with credfile.

[Code]....

Yesterday I moved this system to a new datacenter, but did not alter fstab or the credfile. The //server/share directory has IP rules in place, but this was updated with the new system IP while we moved the system. Now, I am mysteriously unable to automount //server/share. The local error is 13 (permission denied). The Windows server we are mounting returned a code that is defined as "username is valid but password is incorrect" Again - no changes (content or permissions) were made to my credfile or fstab entry. I've restarted netfs a few times, including rebooting the system twice. What is baffling is I can successfully mount //server/share via command line: Code: mount -t cifs //server/share /mnt/mycooldir -o username=foobar,password=1234

The username and passwords are identical in credfile and the mount options - I copied & pasted username / password from the credfile itself.

View 2 Replies View Related

General :: DHCP Negotiations Consistently Fails To Obtain Lease On First Try And Works On Second Try

Jul 16, 2010

I'm having some problems bringing up my wireless card at boot time on my Red Hat Linux 9.0 box. After some investigation with the boot scripts, I noticed that it was having problems with the DHCP negotiations when the ifup wlan0 command is issued.I then tested the command outside of the booting process and everytime the command is issued the first time, the dhclient fails to get any DHCP offers and returns with the message Unable to obtain a lease on first try. Exiting. and then exits.

If I then issue the same ifup command again a second time, it successfully receives a DHCP offer from the router and receives the needed IP address, and after this, the Internet connection on the box works fine. It is consistently doing this everytime. Why is it failing to obtain a lease the first time?

View 1 Replies View Related

Ubuntu :: Dell Inspiron 1545 - Works Fine On Wired But Fails On Wireless - Error - Connection Failed: Bad Password

Aug 5, 2011

I have Dell Inspiron 1545. It works fine on wired but fails on wireless.

I am using wicd as an interface.

It always comes up with the following error: Connection Failed: Bad password.

I have checked the passwords in both wicd and the router.

They seem to be the same. Am I missing something ?

View 5 Replies View Related

Fedora Networking :: Command Line And Did A Couple Of Chkconfig Things And Entered Ip Address?

Jan 8, 2010

F10 trying to key in static ip address. Have followed guidelines on turningoff NetworkManager and turning on network. i went to command line and did a couple of chkconfig things and entered ip address, with subnet. when i do ip addr show i see under eth0 inet 192.168.3.11/32 which is 255.255.255.0, i'm pretty sure. i do not see gateway. when i go to system/network get prompted to log into root, network config window opens. icheck eth0 and the subnet mask is 192.168.3.1, the gateway, which is in correctly, in the gateway slot, as well. i still can not ping to from my xp based multihomed router.

View 3 Replies View Related

Ubuntu Installation :: Gui Login Fails In 10.04 But TTY Login Works?

Jul 11, 2010

I installed 10.04 on my pc. I also have 9.08 and XP installed. Both work. The 10.04 gui login screen displays and asks for the password. I enter the password. The screen goes blank but after a few seconds the gui login box re appears and again asks for a login. I rebooted into the TTY, created a new user, checked the new user was in in /etc/passwd and that I could get into the new user's account. When I rebooted into the gui the new user was there and I entered the password but again I just got back to the gui login window. The pc I am using is at least 5 years old. I have tried startx and I do get the gui background but no controls are displayed. I am using 32 bit 10.04. Using the TTY I have uploaded all the current fixes.

View 3 Replies View Related

OpenSUSE Install :: 11.4 Net Install Works But Internet Connection Test Fails?

Jun 17, 2011

I just installed 11.4 via the net install cd. In the configuration step, the internet connection test fails. Why would this happen if I just installed opensuse using the internet? It looks to me as if opensuse can already figure out how to use my network card. I went ahead and skipped the test, but it still doesn't make any sense to me. Let's see if internet works once I'm logged in...

View 2 Replies View Related

Ubuntu Networking :: Wired Networking - Connection Works But No Internet

Jun 1, 2011

I just installed Ubuntu 11.04 desktop on my desktop in dual boot with Windows 7.

Heres my problem, I am unable to connect to the Internet even though my wired Ethernet connection says it is connected normally. The wierd thing about this is that I also have a wireless card in my desktop and when I connect through that I am able to connect to the Internet. I am connecting to a router that is functioning as a repeater to my main router/cable modem. I have tried to solve this myself but am having no luck. Ironically, earlier today suddenly my ethernet connection worked for a few minutes without me modifying anything.

The output of some terminal commands are below.

Quote:

Quote:

Quote:

However a pint to that ip address (my router) is successful.

Quote:

Hosts.allow and hosts.deny are both fine (not blank but no entries)

View 1 Replies View Related

CentOS 5 Hardware :: Infiniband (mlx4) Works On 16-core System But (now) Fails On 32-core System

Jan 27, 2010

We have a small cluster of 20 HP systems, all running CentOS 5.3 in an NFS-root environment. Half are quad-socket, quad-core Xeon E7340 @ 2.40GHz (total 16 cores), the other half are 8-socket, quad-core Opteron 8354 (total 32 cores). All systems have a Mellanox Infiniband adapter ("Mellanox Technologies MT25418 [ConnectX VPI PCIe 2.0 2.5GT/s - IB DDR / 10GigE] (rev a0)")

With kernel 2.6.18-128.1.6.el5, infiniband works fine on all systems.

With the update to kernel 2.6.18-164.11.1.el5 (and both types of node running the same NFS-root image), the 16-core Xeons still work fine. Infiniband no longer works on the 32-core Opterons. Specifically, either the ib0 interface fails to appear, or it does appear but when configured with an IP address, doesn't actually work. In either case, loading the IB kernel modules takes a long time, but I haven't instrumented the load script yet to see which module, if any, is at fault. More errors listed below.

However, if I tweak the BIOS of the 32-core systems to reduce the per-socket core count to 2 (so effectively 8-socket, dual-core, down to a total of 16 available cores), Infiniband starts working again. Putting it back to 32-cores makes it fail. Booting the older kernel makes it work again. In summary: old kernel, IB works on all systems. Newer kernel, IB only works on 16-core systems.

Updating the IB firmware from 2.5.0 to 2.7.0 (latest available) doesn't help. I also did a full 'yum update' to make sure that libmlx4, openibd all other associated packages were up-to-date. Doesn't help either.

Some errors that appear on 32-core nodes:

ib_query_port failed (-16) for mlx4_0
ib_query_port failed (-16) for mlx4_0
mlx4_core 0000:04:00.0: SW2HW_MPT failed (-16)
mlx4_core 0000:04:00.0: SW2HW_MPT failed (-16)

[Code]....

View 5 Replies View Related

Ubuntu Networking :: How Networking Works In Lucid

Aug 6, 2010

I am a little confused with the way that networking works in Ubuntu (Lucid in particular). I switch my PC on and my network magically works (ie I dont understand what is configuring everything). I do have a DHCP server, but im not sure which process/file is configuring the interface.There is no entry for my wired interface (eth0) in /etc/network/interfaces.$ cat /etc/network/interfacesauto loface lo inet loopbackDoes this means that Network Manager is then responsible for configuring this interface? How does Network Manager configure this interface (are there config files somewhere that specify settings such as static IP and duplex)?

View 9 Replies View Related

Ubuntu Networking :: Networking Widget Fails To Enable Wireless Card / Fix It?

Apr 30, 2011

I just upgraded to natty last night, and everything is working fine except for the network manager. I can enable and configure the wireless card via bash, but the network manager widget will not manage the wireless card.

When I first boot up, the "Enable wireless" check box is greyed out. After I enable the card via the terminal, the "Enable wireless" check box becomes ungreyed, but every time I click it, it instantly unchecks itself. I feel like Currly from the Three Stoogies. Check, uncheck, Check, uncheck.. "Slaps face repeatedly."

View 2 Replies View Related

Ubuntu Security :: Anti Malware Filtering Works In Open Dns Works?

Jan 13, 2010

using ubuntu and the corporate edition of open dns? >Im curious to find out how the anti malware filtering works in open dns works.

View 4 Replies View Related

Ubuntu Networking :: Replaced Router And Networking Fails

Apr 15, 2010

I replaced my wired router and networking has gone south on one of my boxes. It's a Dell tower, a few years old, triple boot (ubuntu 8.10, FreeBSD, WindowsXP). Old router used 192.168.254.* via DHCP, new one is 192.168.2.* via DHCP. The router replacement caused no problems for either FreeBSD or WinXP on this box, nor for any of the other boxes on the network (one of which is ubuntu 9.10).

Ubuntu 8.10 simply will not connect to the new router. I'm presuming that something somewhere down deep has been compromised and I just don't know where to start looking or what buttons to push to reconfigure correctly. Router status displays show an IP address of 192.168.2.35 for this box, booted under all three operating systems. Using network-manager to force that static address instead of relying on DHCP does not seem to help.

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved