Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I installed the VMware on the host (Windows XP) and then installed a guest syste of SuSE Linux.
I wrote a java program which just try to connect to the MS SQL database installed on the host. I ran this program successfully on host.
But as I ran this program from on Linux, I got exception as follow.
I've made an exception by firewall to let the 192.168.174.1:1433 go through. But it doesn't help. Seems it's not really a problem of firewall?
Code:
com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host 192.168.174.1, port 1433 has failed. Error: No route to host. Please verify the connection properties and check that a SQL Server instance is running on the host and accepting TCP/IP connections at the port, and that no firewall is blocking TCP connections to the port.
at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(SQLServerException.java:130)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(SQLServerConnection.java:1195)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.loginWithoutFailover(SQLServerConnection.java:1054)
at com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(SQLServerConnection.java:758)
at com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(SQLServerDriver.java:842)
at java.sql.DriverManager.getConnection(DriverManager.java:620)
at java.sql.DriverManager.getConnection(DriverManager.java:200)
at com.weichen.app.App.main(App.java:36)
I installed the VMware on the host (Windows XP) and then installed a guest syste of SuSE Linux.
I wrote a java program which just try to connect to the MS SQL database installed on the host. I ran this program successfully on host.
But as I ran this program from on Linux, I got exception as follow.
I've made an exception by firewall to let the 192.168.174.1:1433 go through. But it doesn't help. Seems it's not really a problem of firewall?
[CODE]
com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host 192.168.174.1, port 1433 has failed. Error: No route to host. Please verify the connection properties and check that a SQL Server instance is running on the host and accepting TCP/IP connections at the port, and that no firewall is blocking TCP connections to the port.
[CODE]
Might not be a firewall issue, but there definitely IS a network issue somewhere. Can you connect to the box via other ports, like telnet, ssh, ftp, etc.?? Can you ping the other host?? Did you install SElinux?
Also, VMware networking can be challenging. Can you get to the internet via Linux? Post the output of "iptables -L", if the networking things I mentioned are all working...
Might not be a firewall issue, but there definitely IS a network issue somewhere. Can you connect to the box via other ports, like telnet, ssh, ftp, etc.?? Can you ping the other host?? Did you install SElinux?
Also, VMware networking can be challenging. Can you get to the internet via Linux? Post the output of "iptables -L", if the networking things I mentioned are all working...
I can ping the host (Windows XP) from the Guest syste (SeSu Linux).
I can connect to the Guest from Host using putty.
I can open FireFox in Guest (Linux) and browse any internet.
I haven't installed SELinux. What is that?
The output of "iptables -L" looks as follow. But I wonder if I have to install the MS-SQL Client first?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.