General :: How To Connect Two Different Ip Classes In Lan In System
Jun 14, 2010In our LAN connection setup. having 192.168.1.0/24 and 192.168.2.0/24 how do i connected intermediately. server are RHEL5.
View 2 RepliesIn our LAN connection setup. having 192.168.1.0/24 and 192.168.2.0/24 how do i connected intermediately. server are RHEL5.
View 2 RepliesTo foster from the failover concept of Cups I have set up 2 servers with the same printers and settings to enable the implicit classes.
Server A
I added first aprinter defined with the name myprinter (a Ricoh MP5000)
Server B
On Server B i did no printer definition
That is working fine on Cups web interface of Server B i see queuename Server A.myprinter(and vice versa).
Now I add the printer (without samba via ipp) to my windows client with the parameters [url]. I can print that way all ok. The job appears and will be printed on Server A
When I disable myprinter on A. I cannot print. I expected with the implicit classes that it switches to Server B. Is the idea wrong ? Or is Windows limited here ? Or is there another way of defintion I have to do.
My both servers are running on different platforms Suse SLES 10 and Red Hat. CUPS version 1.4.4
I have installed phpldapadmin 1.2.0.5 Using commands in shell I have added two users and some groups into a base (ldif-file) and I see them in phpldapadmin. But when I try to add users or groups by using graphical interface (phpldapadmin) I can't do this correctly because I can't to select a type of new entry and I see a tip "classes of objects from XML does not support LDAP-server". So I can't to create a new entry by using graphical interface. Here is my slapd.conf
[code]...
How to eneble telnet in linux based os?
I'd tried this command:
telnet my pc ip & name
I know the basic answer about how to create a class as ABC.But I don;'t know- - why I have to create a AbstractBaseClass. - In what situations it can be used.an example code base and not like a animal(base) and tiger(derived) relationship example.
View 2 Replies View RelatedThis is probably a really stupid thing to ask considering the development I'm doing (effectivly creating a virus scanner), but how do I link classes/cpp files?I have 3 applications/sections that I can compile/combine with a makefile, that's fine, but I need them to run 1, 2, 3 once the output from the makefile is done.Currently the only section to actually run is whichever I have "main" in and obviously if I put that into all three, they won't compile as one.I've been looking all over the place at all sorts, header files and such, but there is no mention of how toually do this although I'm sure it must be possible. I'm used to being able to do this in Java and I'm sure I've seen C++ applications do it, but not worked out how.I have 3x .cpp files which are combined into one using a makefile:
Code:
# Virus Scanner
scanner.out : ProgramList.o MD5Hash.o HazardCheck.o
[code]...
Is it possible to have a templated c++ stl container in another class without specifying the type prior to compile time? I haven't coded in c++ in a while and im at a total loss.
For example - Not real code. Just outlining the problem code...
facing a problem in declaring variables. i have a few classes like the one below...
Code:
#ifndef _FINANCE_H
#define_FINANCE_H
[code]....
I'm considering making the switch to Linux on my laptop, most likely to Ubuntu. However, I have a home server running on Windows 2003, is there any way I can connect my laptop on Ubuntu (or if there's a different version that would work) to this server?
View 3 Replies View RelatedI have installed Linux 5.6 in my home PC, i tired to use internet connection its failed to connect. Whereas i am able to work in windows XP.
In Linux:-
i am not able to ping any sites.
i am using BSNL Broadband connection.
i have enable the option DHCP (IN DNS Configuration) to obtain an IP automatically from the ISP.
/etc/resolv.conf file looks like
search localhost
nameserver 192.168.1.1
I have Cisco Switch 2960, and it has been configured with dhcp (from 192.168.43.31 to 192.168.43.) and all my client connected to It. I have a modem and Its IP is 192.168.1.1, I used Fedora Linux system in between Modem and Switch , and made IP forwarding (Only one ethernet port is avaliable in Fedora Linux System), so that I can use the Internet through out the LAN. But When I try to ping modem form client system, I get an message
icmp_sep=1109 Redirect Host: (New nexthop: 192.168.1.1),
I am not able to connect Internet from my Client system.
I started taking CIT 101 (computer classes 101 LOL i know) as I am strict linux, in my house, purchasing office 2007 yes they require 2007 not 2010. Columbus State is tough on that, I need to be able to send documents in 2007 .docx in openoffice 3.3. The only computer that uses windows, is my grandparents and I don't want to buy Office if at all possible. I have like no money after all the text books. Teacher is strict it can not be .doc, odt. or other, needs to be .docx
View 9 Replies View RelatedI am fairly new to c++. There must be a better way to do the following?:- Say I have a base class, Pet. I have several child classes that extend from this, like Dog, Cat, Fish etc.
I have the following function, that returns a pointer to a new Pet:-
Code: Pet* addPetToVet()
{ //Do some stuff
return new Pet();
} This will return a pointer an instance of a pet object.
Now, if I want to interpret this pet as a dog or cat I have to do this:-
Code: Dog* dogA = static_cast<Dog*>(addPetToVet());
Cat* catA = static_cast<Cat*>(addPetToVet()); Is there a way around this? Casting seems lame. I cant write a function for each type of pet.
I'm trying to set up Apache Tomcat with virtual hosting. I've used Caucho Resin before but not Tomcat...and I've run into what appears to be (from Google at least) a rather common problem with Tomcat in that any properly packaged classes under WEB-INF of the default virtual host or the named host are not found and Tomcat complains of a class that "cannot be resolved to a type". I researched this error on Google and the consensus seems to be that: -
- You need properly packaged classes as classes in the default package are no longer allowed. I have done this.
- You need to either fully declare the packaged class to make an instance of it within the JSP or include the via an import statement at the top of the JSP. I have done this.
- In the web.xml for the Tomcat server instance (under $CATALINA_HOME/conf/web.xml) you need to set the servlet mapping for JSPs fork init-param to "true". I have done this also.
Yet the problem persists and I have found no solution. So I can only assume I'm missing something obvious and fundamental. My configuration is as follows: - I have two virtual hosts - one as the default virtual host and another as a named virtual host.
$CATALINA_HOME/webapps/localhost <--- Default host.
$CATALINA_HOME/webapps/www.easicasino.com <--- Named host. The logic being that the URL IP address of the server will hit the default webapp and the URL hostname with hit the named webapp. This appears to work with just JSPs.
My $CATALINA_HOME/conf/server.xml looks like this: -
Code:
<?xml version='1.0' encoding='utf-8'?>
<Server port="8005" shutdown="SHUTDOWN">
<Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
<Listener className="org.apache.catalina.core.JasperListener" />
[code]....
I'm new to Java.
I'm trying to use some dynamically loaded classes in my application.
The application doesn't know those classes , Just it try to load a class by name that its name came from input.
It doesn't know class (So I can't use casting) but just needs to call some methods of that class (every class should have that methods).
I thought about interfaces but I don't know how.
How can I call those methods?
I tried to install vsftpd on my server and while the installation went fine, I can't run
Code:
restart vsftpd
As I the get error
Code:
restart: Unable to connect to system bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory Though I'm able to restart the service with
sudo /etc/init.d/vsftpd restart with a warning telling me to use the service utility. Not only that, but despite the port being open it won't allow me to log in, it just hangs, and I have local users enabled (I've used the default .conf file). Does dbus not come installed in 10.04, and if I did install it would it make a difference for restarting the service? Are there further steps needed not available in the tutorial on the Ubuntu Server Guide for 10.04 to enabling local user authentication? -edit- Figured it out, dbus wasn't installed, vsftpd is working fine now.
I have configured my system to connect to a wireless network on bootup, but now every time I boot I have to wait and watch it connect (it outputs some dhcp connect stuff) which delays the boot process. is there any way to just initialize the script and then go on with the boot process instead of letting it output some pointless crap and waiting for it to end?
View 5 Replies View RelatedWhy are the 'defense' method calls actually using the 'offense' methods.Also, is there a way to remove the commented base classes for 'Player' so that the casting isn't necessary?
Code:
#include <iostream>
class Offense
[code]...
I am looking for help connecting my mainframe Linux to the active directory world.
View 1 Replies View RelatedI am a user or consumer of Knoppix 5.1 and Knoppix 6.2, I see in 6.2 version a very usefully tool, an icon in task bar thats help my internet connection in auto, even if I use a mobile modem like Huawei E160, I only select a 'Auto Mobile Broadband (GSM) connection' and, voila, internet is active. Into version 5.1 don't exist this option. I need to find packages like network-manager.... and all relatives and install in 5.1 in correct order to success.
I'm trying to shape bandwidth using HTB method and filtering classes with destination mac address. for this I've found two codes but none of them seem to filter bandwidth as i want (test with iperf)
code 1 Code: tc qdisc add dev eth0 root handle 1: htb
tc class add dev eth0 parent 1: classid 1:1 htb rate 1000kbit ceil 1000kbit
tc filter add dev eth0 parent 1: protocol ip prio 3 u32 match u16 0x0800 0xFFFF at -2 match u16 0xM4M5 0xFFFF
code....
I've got a set of objects (all of the same type). I'm trying to think of a good way to divide it into equivalence classes, with equivalence of two objects defined as meaning a specified set of attributes are equal for both objects. More concretely, I've got:
- a Java class with around 50 fields
- a bunch of instances of the class
I want:
- to divide the instances into a few sets
- in each set, each instance has field 1 - field 5 equal to fields 1-5 of the other instances in the set.
The method I've come up with is to generate a hashcode for each instance based on the hashcodes of fields 1-5*, and map the hashcode to one of my sets. Ignoring problems with potential hashcode collisions (which I'm expecting to be too rare to worry about for now), does that sound reasonable? It seems simple enough, but I'm wondering if there's a simpler method I haven't thought of.
* I'll generate the hashcode using a method based on Eclipse's generic hashcode method, which looks like this:
Code:
public int hashCode() {
final int prime = 31;
int result = 1;
[code]....
I just installed Ubuntu 10.04 on a 2nd desktop system. I erased Win XP and Ubuntu is the only OS on this system. I have Win Vista Ultimate & Fedora 13 on my other desktop system. The cable modem and dlink wireless router is directly connected to the Fedora 13 machine. I want to connect the Ubuntu system to the Fedora 13 system.
View 3 Replies View RelatedWhen I start Firefox I get the subject error. Suse 11.2. What does it mean, and how can I fix it? It also says "[java script application]" in the task bar when FF launches.
View 2 Replies View RelatedI created a the class like this for shaping the packets with a specified bandwidth rate.....
tc qdisc del dev eth0 root
tc qdisc add dev eth0 root handle 1: htb default 15
tc class add dev eth0 parent 1:0 classid 1:1 htb rate 750kbit ceil 750kbit
tc class add dev eth0 parent 1:1 classid 1:3 htb rate 600kbit ceil 750kbit prio 0
For Our Requirement:-
I dont want to specify the bandwidth rate strictly like this rate750kbit ceil 750kbit,based on whatever speed is coming which should allocate the bandwidth rate for particular class...I need one application for finding the upcoming bandwidth & Is any other method is there for specify the bandwidth rate in a classes.
I am looking for some advice on the best way to connect to a MySQL database on a Ubuntu server via SSH. The application is built using VB6 and is installed on a Windows server.
View 2 Replies View RelatedJust i installed Slackware linux , how can i connect this system to Internet? I have BSNL broadband (DSL modem conn to ethernet port)
View 3 Replies View RelatedWe have two networks,one is 10.0.0.* with mask 255.255.255.0 & the other 20.0.0.* with mask 255.255.255.0 and one linux(RHEL5) PC with two network interface eth0,eth1.(configured as Router)
eth0 is 10.0.0.1 and eth1 is 20.0.0.1
we have enabled IP_Forward using "sysctl w net.ipv4.ip_forward=1"
cat /proc/sys/net/ipv4/ip_forward is 1
but unable to ping from one network to other network.
two networks are connected to Linux PC.(10.0.0.1 & 20.0.0.1)
still wht configuration required to establish the connection between two networks using LINUX PC.
from router(linux PC) both network PC's are pinging but not from one network to other network.
I am new to linux redhat 9. how to connect my usb device to redhat linux.
View 2 Replies View Relatedneed to connect My System-ubuntu with Laptop-Fedora 10 LAN. Can I connect directly with c-cable Laptop to System?How to set that this 2 see each other?
View 1 Replies View Related