OpenSUSE Network :: Opennebula - No TTY Present / Askpass Program Not Specified
Mar 22, 2010
I have a problem with Opennebula that I have been trying t o solve for weeks, I have tried many options and have got nowhere. I have two HP ML115 servers configured to act as opennebula cluster nodes named opennebula01 and opennebula02. I have also installed the Front-end opennebula management deamon on node opennebula01. To use opennebula I have created a paswordless oneadmin user which seems to be ok because I can ssh to localhost and both nodes without a password. Using the onehost command I have created two hosts both tehse hosts are running correctly.
See Example1.
Periodically the opennebula monitoring system will fail, the problem I am having is that the logs keep showing the message:
"sudo: no tty present and no askpass program specified"
See example2
I have used the visudo command to change the sudoers Defaults visiblepw option but I just get a "root's password:root's password:sudo: pam_authenticate: Conversation error" error.
See Example 3 and Example 4.
Example1
========
oneadmin@opennebula01:/srv/cloud/images/ttylinux> onehost list
ID NAME RVM TCPU FCPU ACPU TMEM FMEM STAT
0 opennebula01 0 0 0 100 0 0 on
1 opennebula02 0 0 0 100 0 0 on
Example 2
=========
Tue Mar 16 23:16:10 GMT 2010
linux@opennebula01:~/Desktop> su oneadmin
Password:
oneadmin@opennebula01:/home/linux/Desktop> tail -f $ONE_LOCATION/var/oned.log
tail: /srv/cloud/one/var/oned.log: file truncated
Tue Mar 16 23:29:44 2010 [VMM][I]: Loading Virtual Machine Manager drivers.....
Example 3
=========
sudoers
# Comment out the preceding line and uncomment the following one if you need to use special input methods. This may allow users to compromise the root account if they are allowed to run commands without authentication.
#Defaults env_keep = "LANG LC_ADDRESS LC_CTYPE LC_COLLATE LC_IDENTIFICATION LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER LC_TELEPHONE LC_TIME LC_ALL LANGUAGE LINGUAS XDG_SESSION_COOKIE XMODIFIERS GTK_IM_MODULE QT_IM_MODULE QT_IM_SWITCHER"
#Defaults visiblepw
# In the default (unconfigured) configuration, sudo asks for the root password.
# This allows use of an ordinary user account for administration of a freshly installed system. When configuring sudo, delete the two following lines:
Defaults targetpw # ask for the password of the target user i.e. root
ALL ALL=(ALL) ALL # WARNING! Only use this together with 'Defaults targetpw'!
# Runas alias specification
# User privilege specification
root ALL=(ALL) ALL
# Uncomment to allow people in group wheel to run all commands
# %wheel ALL=(ALL) ALL
# Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL
# Samples
# %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users localhost=/sbin/shutdown -h now
# Added for opennebula to allow oneadmin to execute xen commands
%xen ALL=(ALL) NOPASSWD: /usr/sbin/xm *
%xen ALL=(ALL) NOPASSWD: /usr/sbin/xentop *
Example 4
=========
Tue Mar 16 23:49:20 2010 [InM][I]: Monitoring host opennebula01 (0)
Tue Mar 16 23:49:20 2010 [InM][I]: Monitoring host opennebula02 (1) .....
Conversation error
Tue Mar 16 23:50:22 2010 [InM][I]: /tmp/one-im//one_im-0ed949a4bd6f9d3a8e845559ac44e11f:70: undefined method `-' for nil:NilClass (NoMethodError)
Tue Mar 16 23:50:22 2010 [InM][I]: ExitCode: 1
I am running an Ubuntu Server 10.10. I have installed Apache2, I put my perl script in /var/lib/cgi-bin. When I run this perl script from the terminal it works fine. When go to a web browser it doesn't. When I look at Apache's error log, I see this line :"sudo no tty present and no askpass program specified"I tried editing the sudoers file, with the user www-data ALL=(ALL) NOPASSWD:/path_to_my_script. But nothing changed. What am I doing wrong?
In Ubuntu Customization Kit I get this error: sudo: no tty present and no askpass program specified So, I read up and found I could try oem-config-remaster which I installed through the USC (Ubuntu Software Center). I couldn't find the software in any menu so I tried to open it through the terminal. Here's the intel:
I tried to install suse 11.4 on the new gnome desktop 3. everything seems to work except the network manager. Is not present in the bar and I can not restore it. tried to reinstall network manager but to no avail.Does anyone know how I could solve this problem
I have installed Open SUSE in my DELL server which has 2 broadcom NIC cards, it showing both the NIC cards in Network configuration in YAST ,but it showing as not configured and not connected . Kernel device eth0,wlan0 are not present. In device manager also 2 Broadcom nic cards are detected.
I recently setup a new SUSE box for the purposes of acting as an ftp/sftp server. It's currently setup to run ProFTPD 1.3.3.rc3 and mod_sftp/0.9.7. The server has two internal network interfaces eth0 and eth1. eth0 is purely for internal use to accept ftp and ssh. eth1 is outward facing and receives connections from the WAN via SFTP over port 22. The problem I am facing is that after half hour to an hour eth1 stops accepting connections whenever there is no SSH connection present on eth0. I can't figure out why this is happening.
ProFTPD is setup as follows: SocketBindTight directive is on, default server and port are commented out.
[code]...
When the external interface is unreachable the proftpd and proftpd-sftp logs show no record of any connection attempt. I have noticed however if I leave eth0 down eth1 stays contactable without problem. Can anyone give me some pointers on what I can check to find out why this may be happening.
Installed a TP-Link TG-3269 Gigabit card in a machine running OS 11.3 32 bit, when I go into Yast, Network Devices, Network to try configuring the card I get this errormsg: Unable to configure the network card because the kernel device (eth0, wlan0) is not present. This is mostly caused by missing firmware (for wlan devices). See dmesg output for details. Couldn't find any mention of the card in dmesg's output, (though the 8139 onboard card is in there) there is some stuff about pci host bridge but I don't know whether they would be relevant or not
The chip on the card says it's rtl8169sc but lspci lists it as being 00:07.0 Ethernet controller: Realtek Semiconductor Co., Ltd. Device 8369 (rev 10) Done some googling and there don't seem be any drivers for a Realtek 8639 and it returns no matches from a search on realtek's site, but there is a driver there for rtl8169sc chips, which I downloaded and installed, no errors when installing it Even after a reboot I still get the same error in Yast's Network Settings screen, lspci still lists it as 8369 and the device isn't listed at all if I run ifconfig
I have a network drive connect to my lan with iomega's iconnect device. I am getting tired of mounting the drive manually each time I want to use it. I would like therefore to have it mounted automatically on boot by placing a line in fstab, but since the computer (a laptop) won't always be connected to my home lan, this might cause problems. Is there a way to list the drive in fstab so if the drive is not present it will just move on?
I have installed Linux SuSE 10.3 on a PC (Lenovo Thinkstation A58). However, when I start the computer I get the following error message:
"No valid Host_ID or host-name found."
I then use YaST to set up the network. I get the following error message:
"Unable to configure the network card because the kernel device is not present."
The computer has Windows 7 installed and everything seems to work fine. The LED on the Ethernetplug is blinking when using Windows, but not when using Linux. I guess this means that there is no driver for the Ethernet card (Marvell Yukon 88E8057). I have not found any driver for the card and am considering buying a new one. Which PCI card works with SuSE Linux 10.3?
I have 9.10 at work and at home. At home it was installed from scratch. At work it's upgraded from 8.10->9.06(?)->9.10 - At work, when I do something over ssh, like subversion, and I have a key for that host, i am presented with a nice dialog box for my ssh key. and that's it. for the rest of my uptime, i can ssh to places without any hassle. - At home, I'm presented with the key input prompt on the terminal. Even If I manually start ssh-agent, it still happens. What package am I missing? I have the ssh-askpass-gnome on both.
i just installed open suse 11.3 after using linux mint 7(based on ubuntu 9.04).i am currently using two internet connections at home, the first is a vodafone mobile modem, which is workind excellent, and the other is a LAN network, that on windows uses a *.exe program to run. i managed to make all the IP, NETMASK, DNS settings and the internet connected, but without the .exe program it just disconnects after 10 minutes.this is the same thing that happens with the connections on windows if i start the computer and not run the "net.exe" program, but if that program is running the internet connections works just fine. i tried using wine to run net.exe, but it just gives an error message.
Having an Error with a commercial Account program Called Pastel Accounting [URL]When I invoke multiuser Access to opening one account set of books with multiple users for opening one account, it produces an error. I'm able to open the one set of books with a password. But when trying open the same set of books from another computer, it produces an error. The attached file shows the error. The Database engine is Pervasive Corporate Site > Home. This is the version I'm running and my script below. Samba version 3.5.8-30.1-2516-SUSE-SL11.3-i386
I have opensuse 11.1 Gnome on Lenovo S10e. I'm wanting to establish a mobile internet connection. I have tried so far...*UMTSMON but when I click on it nothing happens. I have reinstalled the program several times to no avail. *WINE to run the Optus program, however the program doesn't find the HUAWEI USB stick & *Via a Bluetooth connection (use mobile phone as a modem) didn't work either Anyhow, I have tried these and some other ways to get mobile to no avail.
Also, have gone to network connections-mobile broadband-add-configure it- but what am I forgetting to do? Need a path I can take to get mobile internet working. (I even have a direct SIM card slot in this laptop
I want to clean my system out of old packages. I can use rpmorphan to find orphaned packages, but how do I find packages that are not longer present in their vendor repository?
For some reason, sometimes after I just turn the computer off by pressing the power button while hooked up to the video mount, I'll turn the computer on and (after it automatically logs into the standard user) come to a blank black screen. The only thing I can access is by pressing Alt+Tab to get a "no present windows" window, and thats it. Could it be that an activity or something has been deleted somehow?
few days ago I upgraded amarok on my openSuSE 11.2 from amarok-2.3.1-1 to amarok-2.3.1-4 (with vendor change to OBS KDE:Backports obs://build.opensuse.org/KDE).Then I noticed that the lastfm service is not functioning. It was missing from the internet services as well. As if the plugin does not exist. Taking a look at the /usr/share/kde4/services I did not find any .desktop file that was referring to the lastfm service (as I found for magnitude or the other internet services in amarok). So I downgraded to 2.3.1-1 (vendor obs://build.opensuse.org/home:enzokiel).
After the downgrade I had the .desktop files, but still the lastfm plugin was not loaded. I checked the liblastfm and it was there:liblastfm.so -> liblastfm.so.0.3.1***ALAS*** it was the 0.3.1, not the 0.3.0 as it was required by the dependencies.A workaround I thought is to just make a symbolic link to the 0.3.1 with the name 0.3.0. So I did. And it worked. What didn't work is that when I upgraded back to amarok 2.3.1-4 the desktop files were still missing and so was the lastfm plugin from amarok internet services.
I share this for the following reasons:
1. Maybe other people have encountered the same problem, and this could save them time/effort
2. I don't know if I should open a bug report against this, or it is just a matter of how the package was compiled. I don't want to waste developer's time by investigating something that is not a bug, but a feature.__2a. I think this is an openSuSE specific problem, that is why I am posting it here.
3. Would the correct solution be a downgrade of both the liblastfm and amarok?
i looking to replace network manager on my laptop with another wireless program. iv been looking at Swscanner, Rutilt wlan manager, and wicd network manager. iv had trouble with network manager not being able to connect or losing connection fairly easy. im using a gateway m6843 running ubuntu 10.04 32 bit os.
how I can set the top button on my mouse to be a shortcut for the desktop effect "Present Windows"? I have a Logitech MX900 mouse and the button I'm talking about is the one on the top that looks like two overlapping rectangles.See picture here: ImageBam - Fast, Free Image Hosting and Photo Sharing
Is it possible to map the same "Present Windows - All Desktops" action which is invoked by activating the top left corner of active screens via a keyboard shortcut? I basically want to ape OSX and have an expose-like button, the screen edge works fine for now, but I would love a keyboard shortcut also. Is it possible? Also, when I set up a custom keyboard shortcut to run yast, I initially tried using the same command from the KDE menu: /usr/bin/xdg-su -c /sbin/yast2
However, when I use the keyboard shortcut to launch this command, I get problems when trying to use zypper after the initial launch using the keyboard shortcut(from yast GUI or CLI). The error basically states another instance of yast2 already exists. The problem is only with the app/repo management modules though; for instance I can launch yast (using keyboard shortcut or start menu) and access hardware info, sudo users etc, I just can't access software/repo management stuff. Even when I kill the offending PID from the CLI I still get the error and have to restart the box to rectify it proper. So I changed the keyboard shortcut command to : /usr/bin/kdesu /sbin/yast2
and this seems to have resolved the problem. My second question is what is the difference between the two in this particular instance and why does one cause problems (xdg-su) and the other does not (kdesu).
I have two nic's connect to different networks. I would like to use one to pick up my email and connect to skype and the other for general internet access. Is this possible?
Is there a way to make a program use a specific network interface ? When using my laptop at work i may be physicaly connected to multiple networks. i was wondering if i can make sure that certain applications use a specific network interface. I would google around for the answer but i cant figure out how to phrase it correctly for a search.
I have some novice to intermediate programming skills from a past life. What I want to do is create a program and run it on two separate computers to just get them communicating together over the network on a basic level. I would like to do this in a language that doesn't limit me to a specific OS, this way I can have a linux and windows computer talking. However, I would prefer a language that can be useful down the road as well. My second inspiration, next to networking, is web design and web programming, which I hope to dig into as well eventually.
I'm not aiming to do anything overtly-complicated. One example that comes to mind would be a program that forwards any typed characters on one computer over the network and displays them on the other, and vice-versa. I guess the program would run over TCP/IP. However, it would be nice to learn how to do this in a language that not only works on multiple OSes, but also has the ability to allow me to program my own communication protocol, aside from TCP/IP, down the road. My intention with all this is to learn some network programming for fun.