General :: Programmatically Connect To A Box Running Ssh From A Windows Pc?
May 11, 2010
I am writing an application that has a web service client on a Windows PC that needs to call a web service on a Linux server. In order to create the client, I need to be able to programmatically read the WSDL on the server and use it to create the client. I'm using the web tools in MyEclipse to build the client.
The Linux server is running Red Hat, I believe, with ssh enabled. I can connect from Linux to Windows with no problem, but I can't reach the Linux box from Windows. I get one of three errors when I try: no path to host, connection reset, or unknown error number, depending on the port I use. I've googled for an answer, but haven't found anything yet.Is there some way to add the Windows IP to a permission file on the Linux machine so it will be recognized when it queries for the WSDL?
View 9 Replies
ADVERTISEMENT
Jun 10, 2010
I'm running Ubuntu 10.04 inside VMware Player running under Windows Vista and I can't connect to the internet or the host computer from the Ubuntu.
I have set all the VMware services to manual (like VMware DHCP Service), but starting them manually doesn't help.
In VMware, the network seems to work (there is a green dot beside the network icon) and I have tried both Bridged and NAT settings.
ifconfig doesn't show the eth1 interface, unless I give it as a parameter (or use -a). I think this means that Ubuntu thinks that the network isn't connected at all.
View 1 Replies
View Related
May 27, 2011
My system doesn't reacts at writing values below 255 to /sys/class/hwmon/hwmon0/device/pwm(2,3) which correspond to 3-wire case fans connected via M/B (ga-890gpa-ud3h) headers. The idea was taken from [url]
ls /sys/class/hwmon/hwmon0/device/
It indeed shows the actual speed:
But refuses to write to fanX_input: permission denied (even for root).
More specs: kernel 2.6.38.4, sensors output is:
I do not run any daemons for fan control, but suppose the speed may be set by CPU in-kernel governor. How to stop a fan under this conditions without doing hardware tricks?
Upd: part of pwmconfig's output:
Devices:
Found the following PWM controls:
hwmon0/device/pwm2 is currently setup for automatic speed control. In general, automatic mode is preferred over manual mode, as it is more efficient and it reacts faster. Are you sure that you want to setup this output for manual control? (n) y hwmon0/device/pwm3 hwmon0/device/pwm3 is currently setup for automatic speed control.
In general, automatic mode is preferred over manual mode, as it is more efficient and it reacts faster. Are you sure that you want to setup this output for manual control? (n) y
Test:
Warning! This program will stop your fans, one at a time, for approximately 5 seconds each! This may cause your processor temperature to rise! If you do not want to do this hit control-C now!
Hit return to continue:
Would you like to generate a detailed correlation (y)? y
This was stopping CPU fan. And:
View 2 Replies
View Related
Dec 14, 2010
I have a USB modem and a large C++ application that needs to detect whether that device is present or not. I was hoping to get advice for what the best method to do so would be. The only solution I've thought of is to parse the output of lsusb and look for the vendor and product ID of my device, but that seems a little hack-ish and inefficient. Is there a command or program that I can provide it a vendor/product ID for a USB device and it can tell me whether or not such a device is present in the system? Or another, better way to detect the device than parsing the lsusb output that I've been thinking
View 2 Replies
View Related
Jan 15, 2011
I have a private server which I stream media from, but since I've installed VMware running Windows 7 and set up Windows to used a bridged connection, so I can access the network drives in Windows. Now that I have done that, I cannot connect to my home server unless I have VMware running.
I only want windows running when I need it, but I need access to my server at all times.
View 1 Replies
View Related
Oct 3, 2010
Given a matrix with 0,1 entries, how can I create a graphic in linux such that we have a black square or pixel if the entry is one and white otherwise?
For example, if the matrix is:
0001000
0011100
0111110
0000000
then I want a graphic that looks like:
[code]....
I will be working with many large matrices, e.g. 1000x1000, or 5000x1000 so I need to do this automatically.
View 6 Replies
View Related
Feb 9, 2010
I have been using Mepis on a dual boot computer for over a year. I want to give ubuntu a try so I made a bootable usb stick from ubuntu's live cd. Everything works as advertised even saved files and changes. I can't connect to the internet. I am connected via a 2wire modem to a linksys router thats connected to my computer through a ethernet cable. the router is for connecting my son's computer. Anyway I have no problems connecting from windows or Mepis. Whats strange is I can even connect when booting directly off the Ubuntu live CD.
When I try connect when booting from my usb stick I get a can not connect error. I am using the auto eth0 function and everything appears fine. I compared my settings from when booted from the Ubuntu live CD and they are Identical. I used network tools and I can ping my IP address but when trying to ping a web address I get the can not connect error. I am beginning to think ubuntu has my USB stick confused with a CD but not sure how to correct it. Here's some additional INFO:
ubuntu@ubuntu:~$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:1c:25:6f:b2:70
inet addr:10.10.10.100 Bcast:10.10.10.255 Mask:255.255.255.0
inet6 addr: fe80::21c:25ff:fe6f:b270/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:162 errors:0 dropped:0 overruns:0 frame:0
TX packets:62 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:104139 (104.1 KB) TX bytes:6945 (6.9 KB)
Interrupt:27 Base address:0x8000 .....
View 2 Replies
View Related
Mar 26, 2010
I'm installing a new server after this weekend, and it musth have both windows server 2008 r2 and linux (probably ubuntu) running, but I'm wondering which one of them I should run virtual. Windows will be used mostly for rdp and for serving asp.net webpages, linux will host some django-applications and a postgreSQL server etc.
View 3 Replies
View Related
Oct 28, 2010
I have a laptop running linux and a computer running windows 7, I would like to be able to send print jobs from my laptop using linux and not have to be physically plugged in. I tried adding the printer through samba and it doesn't work.
the specs are as follows:
[URL]
the message i got was idle unable to connect to cifs host will retry later. linux gave me two drivers and i have tried both previously, the print job seems to get lost in space.
View 4 Replies
View Related
Jan 10, 2011
I am writing an Air application and I would like to have the app use the font indicated in Appearance Preferences.
A similar problem to this one :
[URL]
I do not have Gtk::Settings and I have looked in ~/.gconf/desktop/gnome/ but I do not have an interface folder and none of the others I opened have any font details.
I have tried simply not setting a font within my application but it is using a font not specified in the Appearance Preferences at all. It looks like Times.
Ideally I would like to be able to get this information from Ubuntu using a native process :
[URL]
get the font name of the Application font or would I have to write a script and call that from inside Air?
I have a default installation of Ubuntu 10.4 with Unity running on top of Gnome. (I think this is correct. I certainly can get Nautilus running quite easily and as I mentioned earlier I have ~/.gconf/desktop/gnome/ folders).
The brief is to get the application working on the default installation so I cannot install anything but the target machine I am using has got 'gconftool'.
View 2 Replies
View Related
Apr 1, 2011
I need to generate pdf documents programmatically using Ruby. i.e. I don't want a GUI interface but an API interface. The bulk of my document is text but there are images included as well. I've looked at this thread: [URL] and it's 2 main recommendations PDFEdit and ImageMagik. PDFEdit has scripting available but I can't get my head round how to call this using Ruby. ImageMagik has a number of Ruby wrappers and is the kind of thing I want but as far as I can tell it only deals with Images and my stuff is mainly text.
View 1 Replies
View Related
Jul 14, 2010
Is it possible to do the following in C/C++ in Linux:Without direct linking (my program should NOT depend on Qt or GTK), display a GTK or Qt based file dialog.The behaviour should be something like this when my program runs, when you want to open a file:The program scans whether you have Qt installed. If so, it somehow manages to link itself to Qt (e.g. dynamically loading the .so file) and display its file dialog and get the path from it. If Qt wasn't found, it tries the same with GTK. If that also wasn't found, it displays a less powerful replacement dialog instead (better than nothing).
Or is there any other simple way in Linux to get a standard file dialog somehow (similar to when compiling for Windows you can very easily get its standard file dialog, no matter what version of Windows, in your code, even if your program doesn't use any other Windows GUI at all).
View 4 Replies
View Related
Aug 31, 2010
I wonder if there's a way to capture the same information I can get from nethogs to a file. All I need it per process (rather than per interface) what is the sent/received traffic.
View 1 Replies
View Related
Jul 7, 2010
I know the tool system-config-display can tell me all about my display but it's not available on all systems and so I'm looking for alternative ways to get my monitor type. Ideally, I could just look in /proc but I don't see anything there and I would like to be able to do so from a script perhaps written in bash or perl. Is there some place to get this info, say in a config file somewhere?
View 2 Replies
View Related
Jun 3, 2010
I would like to associate my program with several file extensions programatically.
Everything I've been finding online is how a user would set a file association, does anyone know how to do this progormatically (bash, C++, etc)?
I would mostly like to get this to work with Gnome, but KDE would be nice as well.
View 3 Replies
View Related
Feb 1, 2010
I have a windows 7 computer running Xming 6.9.0.31. I connect to my linux box running Ubuntu Server 9.10 with plink and run urxvt. It starts up and works perfectly however the urxvt screen flashes the xming root window about twice a second.This makes urxvt impossible to work with.Everything else that I have tested over the ssh connection (xterm, xfce4-terminal, etc) work perfectly with no flashing and this same problem has happened with two other linux installations (again only with urxvt)
View 1 Replies
View Related
Jun 5, 2010
I want to do two things: Set up a virtual machine on Windows 7 to run Ubuntu Set up a way for the virtual machine to read the windows disk or windows to have read/write access to the virtual machine's disk. My goal is to have a place where both Ubuntu and Windows can read and write. What software is good for this task? Are their free programs that can run virtual machines? Also if my machine is running Windows 7 64-bit, can I install Ubuntu 32-bit? Or am I forced to use Ubuntu 64-bit? Or does it not matter?
View 1 Replies
View Related
Dec 27, 2010
I am using on Windows Vista, Filezilla server. I have it set up to be accessed via outside IPs and when I use a client on the IP I have it connects normally using Filezilla client. On the same machine I have Ubuntu running in a virtual box and when using filezilla client in there it works fine. Now I want to try the command prompt. So I do the ftp xxx.xxx.xx.xxI enter the name and password and i get the ftp command prompt, but the commands are not working properly. when trying "ls" or "cd" these commands do not work. "cd" tells me that the current directory is "/" root, but this does not make sense in the windows operating system. Now the filezilla client is taking the user in the application window directly to the root folder of the permitted filespace granted to that user. How can the same be done from the command prompt, if there is a way? It is as if the command prompt takes me to the root which does not exist or even have correct permissions to move in. Is there any way to be taken to the correct directory directly, or move there especially when the slashes are the wrong way around etc?
View 1 Replies
View Related
Mar 22, 2011
I've set up OpenVPN on a Linux server. All my Internet traffic goes through the VPN from that server. I'm running Windows 7 at home. I noticed in Wireshark that DNS queries are not going through the encrypted tunnel, but instead directly to my ISP's designated DNS servers.
To overcome this, I tried pushing DNS for OpenVPN from the server to my computer, and also inputting the DNS address in my wireless adapter's configuration options. This appears to have secured the DNS leak, but is it the proper way to go about it? If I didn't push the DNS address from the server to the client and only set the DNS in the client's wireless adapter, then I couldn't visit any website. And if I just pushed the DNS but didn't set it in the adapter, then some DNS requests still leaked to the ISP's DNS servers.
View 1 Replies
View Related
Aug 9, 2011
We had an old Windows XP server running a Filemaker database on a 2.6 GHz Intel CPU, but that server died. It's been replaced by a box with two 2.4 GHz Xeon CPUs and 5 GB of RAM that's running Ubuntu 11.04 natively, and Windows is running as a VirtualBox guest. 2GB of RAM has been dedicated to the Windows guest.Of course, these old Xeon CPUs don't have the VT-x extensions, so I wouldn't expect to be able to add CPUs to the VirtualBox guest, but the Filemaker database is running at least 2-3x slower than it did on the old server. I would expect that utilizing one 2.4GHz CPU out of four available shouldn't result in such an astounding difference.
I would also like to be able to continue using this setup, since it would also mean we'd be able to remove our Linux server from the rack, which is running on even slower hardware (not that the system requirements are high for its job though).So my question is: Why is this so slow? Is there anything I can do to change the situation? Or should I just give up now and find more suitable hardware?I understand that the "new" machine should be about 1% slower in theory, so please don't tell me this "should" be fine. I need more concrete answers (as in, "I've tried this before and you should do X") since in the real world, it appears to be about 50% slower. I'm about to blame "virtual" CPUs to multithreading on single core processors, and possibly the difference in CPU architecture between Xeon and Pentium 4 CPUs.
View 3 Replies
View Related
Jan 28, 2010
Debian lenny, old install (I've upgraded to lenny when it was just about to become the stable release), versus windows 7, fresh install.Comparing browsers speeds with numion.com/Stopwatch.html, I had results such as:Iceweasel (firefox) on linux: from 9.154 seconds to 21:860 seconds (the same webpage, reloaded)Firefox on windows: 4.32 seconds - and never much slower than thatThe fastest browser on linux was Opera, ranging from 8.562 to 5.503 secs to load the same page, but even internet explorer beat/match it with its timing of about five seconds.
I have not other browsers on windows; on linux there is aroraonqueror (KDE3), kazehakase, chrome, and dillo, besides text browsers. I didn't test on dillo; Kazehakase and chrome were the only ones which had nearly decent results, but still very bad, 11 to 13 seconds for chrome, and 21 for kazehakase. Konqueror just seemed to never finish to load the page, I gave up when it was still loading somethingfter nutes and 5 seconds.'ve emptied the cache every time I would test, and I was running almost only the browsers and not much else. Whatever comes by default on windows, and on linux, I was on openbox, with nothing much going on I guess, I think the most memory consuming processthe time, besides xorg and the browsers themselves, was dictd.
I've researched a little bit about, but not enough to make a list of possible things to change in order to improve the speed on linux. Most of the time there are people just agreeing that on windows the rendering is faster, and other people saying that with them is the opposite, with some minor variations like people saying that linux is faster for plain downloads while windows is faster for web browsing due to better graphics.
(by the way; I haven't installed any graphic card driver on windows, which is still running on 1024x768, while linux runs on 1280x1024, with the "nv" generic driver, without fancy options, not supported by my old card) The closest to a suggestion of possible solutions was someone saying tha compilation may affect performance, I guess it was both about kernel compilation, and the web browsers themselves.I'll google a bit more about how to "compile for speed", both kernels and programs (maybe the x server
View 4 Replies
View Related
Feb 17, 2011
Im running Ubuntu and wants to install Windows 7 on my VM ware. how do i know if i have 32 or 64 bit?
View 2 Replies
View Related
Mar 17, 2010
i ahve to boot it from the command like an executable but i dont know how to exactly and when i thought i had it figured out i didnt know how to write the name of the file in the disk ubuntu just kept saying file or directory not found
View 14 Replies
View Related
Jul 15, 2010
I have a friend of mines computer that is hosed and gets the BSOD. He has pictures of his grandson on there that her really needs before I fix it. Is there a way to mount the main windows partition while running the Live CD? I have tried it and get an error but I am not able to get it working. Does anyone else know any other tricks I can do to help get my friends pictures of his grandson off there?
View 7 Replies
View Related
May 4, 2009
I am developing a application in which i have to show the name of default browser and mail client. i want to run this application on RedHat, SuSE, Mandriva, and Ubuntu. I have checked similar threads but not found any useful information.
View 8 Replies
View Related
Apr 23, 2011
I am in the process of running some benchmark tests on a variety of RDBMS, I am testing three different client operating systems.Would it be terrible to partition the HDD and install Ubuntu, Windows 7 and Solaris 10? If I do not do this, I will likely have to re-install the O.S numerous times due to changes in the database server o.s as well. The same question goes for the server; would it drastically effect the performance to install 3 server o.s on one server?
View 4 Replies
View Related
Jun 21, 2010
I currently run a Windows 7 Compaq laptop with an Athlon x2 and 4gig of DDR2. I want to either set up a dual-boot on my laptop, or make Linux the Primary with Windows running in something like a virtual box. I am very much into Android and I want to learn Linux as a result of that. So which Distro should be considered in a situation like this.
View 6 Replies
View Related
May 5, 2011
Despite the history file is unique (~/.bash_history) I see that the multiple bash processes run on different windows are not all updating that file. I presume that the bash is not taking into account this possibility (multiple bashes on multiple windows) and writes thus the history file in a simple straightforward way. This would mean that a number of history entries are lost. I've tried to find information but had no luck so far.
View 1 Replies
View Related
Feb 12, 2011
I am encountering this difficulty. I have no networking onto windows 95 4.0 which in on the linux ubuntu machine. Windows 95 4.0 has no networking..
View 4 Replies
View Related
May 14, 2011
I'm trying to install Windows 7 on a system running Ubuntu 10.04 but I ran into problems because the hard drive is not NTFS formatted. How do I get this hard drive to NTFS so I can install Windows 7?
View 6 Replies
View Related