Connecting to Ubuntu machine from PowerBook

I can connect wirelessly to my self-build machine running Ubuntu 12.04, both from my Intel iMac (10.6.8) and my G4 PowerBook (10.4.11), by opening Terminal and typing:
ssh -X [email protected]
where 'hostname' is the name of the Ubu machine. The 'ssh -X' at the start is something I latched onto early on in my investigating this sort of thing. I'm very, very new to Terminal.
I only need relatively few commands, I think, to do what I need to do from time to time, and accordingly have learned a few which work OK.
This is the Preferences window for Terminal on my PB :
Regarding the un-selected option "Execute this command (specify complete path):", could I use that to automatically execute the command I noted above so that I could save the tedium of typing what is, unfortunately, a longish username-hostname combination. (I wish I had thought ahead and chosen a really short name for my new machine.)
These are machines in my home, and I'm the only person who will have access to both Terminal and the Ubu machine, so in-home security doesn't even figure in all this.

Thanks for your long reply. I'm sorry to say that I don't really understand most of the technicalities in it. I have an extremely limited exposure to this so far, and have learned a few tricks to achieve what I want.
FWIW, you're playing in the proverbial deep end of the pool here.  The shell can be quite unforgiving of certain sorts of mistakes, too.
Although in my first post I set out the command ssh -X user@user-etc, I can achieve the same effect that I want (or so it seems) by simply typing ssh user@user-etc.
For instance, the command sensors works with or without the -X.
Similarly, I can update and/or upgrade the software by issuing the appropriate commands (via aliases I created), with or without the -X.
With the -X (or -Y), ssh is intending to tunnel X Windows sessions, and (to function) the ssh -X (or -Y) command is issued from an X11.app Xterm environment.  If you're not using remote X displays tunneled via ssh, then you don't need -X (or -Y) here, nor do you need X11.app for that matter.
Basically, I'm happy to acquire the few commands I need to carry out a limited number of tasks.
I'd spend a little time with the bash beginner's intro and related materials including the shell-scripting intro.  If you're going to be using Terminal.app on OS X or managing a Linux box with the command line, you'll need some grounding in bash and related.
What I'm wondering, is whether I can shortcut the whole login process after the prompt, and do away with the need for a password.
That's what I was referring to in that reply, and in the linked ssh no-password article.  (I don't have an article covering connecting to Linux, unfortunately.  There are undoubtedly a few posted around the 'net, however.) 
In general, you can get to a no-password login by setting up the certificate keys appropriately.  ssh can use what is called a public-private key-pair, and the public key can be, well, public.  The private key must be maintained like a password; privately.  You first create a key-pair on OS X as described in the article, or from various other resoures around the 'net.   With the private key kept on your local system (again, as described in the article) and with the public key transferred over onto the Linux system (and into its ssh directories), you will get an automatic login, or you'll be prompted for the passphrase associated with the key-pair.  This passphrase is associated with the key-pair, and is not your login password.
There are other ways to do a no-password login including as setting up Open Directory and Kerberos on your local network, but those are more involved than setting up an ssh key-pair.  Those are going to be more effort to set up.
ARD, screen sharing or CoRD are the other options, and entirely avoid the command-line, assuming the Linux box has RDP server capabilities configured.

Similar Messages

  • Internet connection problem after migrating from Powerbook G4

    After starting up my friend's new Macbook 2ghz for the first time, I migrated everything from his old Powerbook G4. However on starting the machine for the first time, although the Internet Status suggested his Airport connection to his Netgear router was working and that he was connected to the Internet, this was not the case, as the registration info could not be sent to Apple, the time/date wouldn't update and he could not browse or check e-mail.
    Initially it occurred to me that perhaps the Netgear router didn't like the fact that the same Network settings (IP address) had been given to the Macbook when it had a different MAC address. However this didn't seem to be the case as I was able to add the new Macbook to the list of trusted devices and turn on Access Control, but this still didn't work
    Eventually when I turned off the security settings, so that the password was set to "none", instead of WPA/PSK and then did likewise for the named network on the computer, I was able to get online at long last
    However I don't want to leave the wi-fi system without any password protection for obvious reasons. His Netgear router is a newer model than mine and it had a choice of WPA2, and when I tried this and did likewise on the Macbook it was still working. Yet the matter gets more complicated as he also has a PC on the same wi-fi network and this would not accept the WPA2 setting on the router and I could not get online with the PC
    I dont understand why WPA2 worked on the Macbook but WPA didn't and I need to find a password setting that works for both computers. I don't really understand the WEP option as the encryption choices are 64 and 128 but there's no 64 on the Macbook. More importantly I don't have the foggiest how to get a desired password, as when you put in a "passphrase' and click "generate" the router produces four different keys which are all decidedly impossible to remember and so totally impractical if you need to use these to log on.
    I appreciate that this is a bit of a confusing query but if anyone can offer any assistance., I would be extremely grateful, as after all the time it took me today to suss out actually getting his new Macbook online, I am loathe to mess around without really knowing what I am doing and so I need to find a security option that can be used by the Macbook, his older Powerbook and a PC running Windows XP
    With my utmost thanks in advance for any help you can offer, but please bear in mind I'm a bit of a techno-nincompoop so please be gentle with me
    Many thanks
    Bernard

    Thanks a million for bothering to reply, it's very much appreciated. I rarely seem to get much success when I try searching in Apple support but I guess that must be because I choose the wrong search terms.
    Since all the equipment is relatively new and quite high spec, I believe I should be able to use the WPA format and it's a matter of finding an arrangement that works with both the PC and the Macs. What I don't understand is why the Macbook appeared to be connected to the internet with a WPA password, but wouldn't in fact get online, until I either changed to no password, or to WPA2?
    However I'm extremely grateful to you because those docs all proved well worth reading, if only so I might understand some of the technical gobbledigook (the avoidance of which was one of the principal reasons I became a Mac evangelist in the first place), as the whole password encryption thing has always been a complete mystery to me, hence for my own wi-fi set-up, I long ago settled for hiding the network and turning on the trusted devices access control, just to avoid having to deal with any of this technobabble. However my mate wants people to be able to log on to his network if they turn up with a laptop, but at the same time prevent totally open access to his internet connection to all and sundry, so this is not an option.
    What really bugs me is that the interface for the Netgear modem/router (and any other router I've had experience with) never seems to work properly on an Apple, no matter what browser I use and having sold his family on the whole Apple experience, it's usually a bit embarrassing to have to squeeze my mercifully narrow backside into a baby's chair in order to use their PC to resolve any router issues (as the PC is only there for the kids to play games). But invariably it's only by using the browser interface on the PC that all the various options seem to work
    Again much appreciate you going to the bother and the fact that there is relevant stuff in the support library leads me to believe I should attempt to find some more details which might resolve the WPA difficulties I've experienced with the new Macbook.
    Meanwhile, although I am not so keen on the new glossy screen on the Macbook (I'm amazed you can't have the option of a matt one unless you get a bigger Macbook Pro), you've no idea how envious I am having to set up his new toy when I can't afford one myself. Mind you, the last time I told this bloke that if he wanted decent support for his iPod, he'd have to buy me one, he returned from the US with a 60gb model to match his (sadly pre-video iPods), so perhaps I should make matters more complicated by installing Boot Camp and Windows, so that I have to tell him that I can't offer support over the phone without one of my own
    Kind Regards
    Bernard
    Macbook 13" 2ghz"   Mac OS X (10.4.5)  
    Powerbook G4 1.67mhz 15"   Mac OS X (10.4.5)  
    Powerbook G4 1.67mhz 15"   Mac OS X (10.4.5)  
    Powerbook G4 1.67mhz 15"   Mac OS X (10.4.5)  

  • Client Hyper-V "Cannot Connect to Virtual Machine"

    I'm trying to run Client Hyper-V on my Windows 8 Pro machine. I was able to successfully install the service, and can create virtual machines and hard disks on my local system. I can even start them, and see boot activity via the preview window in the MMC.
    I cannot, however, connect to any machines from the local system: when I do, it hangs on "Connecting to <machinename>" for 30 seconds before it pops up with the dialog:
    "Cannot connect to virtual machine. Try to connect again. If the problem persists, contact your system administrator."
    Obviously, because this is Client Hyper-V, I am the system administrator, so I scour the Internet to solve my problem. I see solutions related to firewalls, administrative permissions, a few other things, and nothing has worked. I also tried creating
    a virtual machine on a Windows 8 Enterprise system (which can connect to it just fine) and export it for the Pro machine to import, and I still cannot connect to it, whether the VM is registered in place or copied to the host.
    Some other notes:
    - None of these systems has an OS installed - two locally created ones either had no boot or booted off a Linux LiveCD, and the exported one attempted to do a PXE boot. Thus, I cannot attempt to link via Remote Desktop since the computers have no names
    - Hyper-V has some other quirks on my system as well: in order to stop a virtual machine, I have to end the vmwp process - which restarts the machine - and then stop it from the console within a few seconds. Otherwise, it hangs in the "Stopping"
    state. In addition, none of the buttons on the side of the MMC work, but that occurs over all of MMC.
    - No events show up in the Event log when a connection fails
    - I am an admin on the Pro machine and have permissions to connect to machines and operate the management view

    When you checked the event log’s what sources did you check? 
    Can you verify there are not any relevant error/warning events under the following sources:
    Applications and Services Logs
    Microsoft
    Windows
    Hyper-V-VMMS
    Admin
    Operational
    Hyper-V-Worker
    Admin
    Operational
    If not we should enable some additional logging if possible to see what is going on.
    Shutdown any running VM’s
    Close all of the Hyper-V UI
    Stop the VMMS service (net stop vmms)
    Enable Analytic logging for the VMMS and Worker Process (see below)
    Enable UI Tracing for Hyper-V Manager and VMConnect (see below)
    Start the VMMS service (net start vmms)
    Open Hyper-V Manger
    Restart the VM
    Attempt to connect (try two or three times)
    Gather Logs (see below)
    Disable Tracing (see below)
    Enabling Analytic Logging For the VMMS and Worker Process
    Open the Event Viewer
    From the menu bar select View -> Show Analytic and Debug Logs
    Navigate to the Hyper-V logs and Enable the Analytic Channels
    Applications and Services Logs
    Microsoft
    Windows
    Hyper-V-VMMS
    Analytic
    Right Click -> Enable (yes if a pop up asks about enabling the logs)
    Hyper-V-Worker
    Analytic
    Right Click -> Enable (yes if a pop up asks about enabling the logs)
    Enabling UI Tracing
    Create a new text file named “VMClientTrace.config” in the "%appdata%\Microsoft\Windows\Hyper-V\Client\1.0\” folder
    Copy the following XML text into that file:
    <?xml version="1.0" encoding="utf-8"?>
    <configuration>
        <Microsoft.Virtualization.Client.TraceConfigurationOptions>
            <setting name="TraceTagFormat" type="System.Int32">
                <value>3</value>
            </setting>
            <setting name="BrowserTraceLevel" type="System.Int32">
                <value>71</value>
            </setting>
            <setting name="VMConnectTraceLevel" type="System.Int32">
                <value>71</value>
            </setting>
        </Microsoft.Virtualization.Client.TraceConfigurationOptions>
    </configuration>
    Save the file.
    Gathering The Logs
    The Analytic logs will be in the analytic folder (you often have to refresh or select another source then analytic again to see them)
    The UI trace Logs will be in %temp% (sometime back one directory i.e. %temp% = “C:\Users\taylorb\AppData\Local\Temp\2” for me but the logs are at “C:\Users\taylorb\AppData\Local\Temp”
    Disabling Tracing
    To disable Analytic Tracing just right click on the analytic sources and select disable (same as enabling)
    To disable UI tracing just delete the “%appdata%\Microsoft\Windows\Hyper-V\Client\1.0\VMClientTrace.config” file.
    -Taylor Brown
    -Program Manager, Hyper-V
    -http://blogs.msdn.com/taylorb

  • Trying to connect my iMac to on 10.8.2 with PowerBook Intel on 10.5.8; sharing works from PowerBook to iMac but not the other way around. Why?

    Trying to connect my iMac to on 10.8.2 with PowerBook Intel on 10.5.8; sharing works from PowerBook to iMac but not the other way around. Why?

    Thanks for the interest. Preferences are similar on both machines: screen sharing, file sharing, printer sharing & scanner sharing all ticked and radio button for Screen Sharing is ON.
    My confusion is that I can get a network connection to the iMac by selecting "go to server" on the PowerMac running 10.5.8 but am unable to make the iMac connect to the PowerMac using similar selections. When ethernet cable is plugged in the PowerMac shows up on the finder bar on the iMac, but it does not allow either screen sharing or connection to occur - a dialog box tells me to check System Prefs and Network connection.
    I'm hoping to export a large file of photos from iPhoto on my iMac to my wife's PowerMac and hoped to achieve this with an ethernet network connection.

  • Unable to connect to Oracle database running on Windows machine from linux.

    Hi,
    I'm not able to connect to oracle database running on Windows machine from Linux machine. I'm geting the below mentioned error. I have given below the code I used to connect to database and database propertes.Do I need to use any specific driver?
    Please help me.
    Thanks,
    Sunjyoti
    Code :
    import oracle.jdbc.pool.OracleDataSource;
    import java.sql.Connection;
    import java.util.*;
    import java.sql.*;
    import java.io.*;
    class try2{
    public static void main(String args[]) {
    try {
              System.out.println("hi");
    // Load the properties file to get the connection information
    Properties prop = new Properties();
    prop.load(new FileInputStream("/home/sreejith/EDIReader/Connection.properties"));
    // Create a OracleDataSource instance
    OracleDataSource ods = new OracleDataSource();
    System.out.println("prop is "+prop);
    configureDataSource(ods, prop);
    Connection conn=null;
    // Create a connection object
    conn = ods.getConnection();
         System.out.println("Connection is"+conn);
    // Sets the auto-commit property for the connection to be false.
    conn.setAutoCommit(false);
    } catch (SQLException sqlEx){ // Handle SQL Errors
    System.out.println("In exception "+sqlEx);
    } catch(Exception excep) { // Handle other errors
    System.out.println(" Exception "+ excep.toString());
    private static void configureDataSource(OracleDataSource ods, Properties prop) {
    // Database Host Name
    ods.setServerName(prop.getProperty("HostName"));
    // Set the database SID
    ods.setDatabaseName(prop.getProperty("SID"));
    // Set database port
    ods.setPortNumber( new Integer( prop.getProperty("Port") ).intValue());
    // Set the driver type
    ods.setDriverType ("thin");
    // Sets the user name
    ods.setUser(prop.getProperty("UserName"));
    // Sets the password
    ods.setPassword(prop.getProperty("Password"));
    Connection properties :
    # Your Database Connection details
    HostName = 10.20.3.19
    SID = EDIREAD
    Port = 1521
    UserName = dbuser
    Password = dbuser
    Error I'm getting is
    error while trying to connect with odbc datasource
    [root@iflexpau2217 EDIReader]# java try2
    hi
    prop is {HostName=10.20.3.19, Password=dbuser, UserName=dbuser, SID=EDIREAD, Port=1521}
    In exception java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
    Also I tried to connect with weblogic JDBC driver
    Code is here:
    import java.io.BufferedReader;
    import java.io.ByteArrayInputStream;
    import java.io.File;
    import java.io.FileNotFoundException;
    import java.io.FileReader;
    import java.io.IOException;
    import java.sql.Blob;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.PreparedStatement;
    import java.sql.SQLException;
    //import com.entrust.toolkit.util.ByteArray;
    public class trial{
         public static void main(String args[]) throws IOException{
              System.out.println("hi");
              Connection p_conn = null;
              PreparedStatement xml_insert = null;
              try {
         // Load the JDBC driver
                   System.out.println("hi2");
         // String driverName = "oracle.jdbc.driver.OracleDriver";
    String driverName = "weblogic.jdbc.oracle.OracleDriver";
         System.out.println("hi2");
         Class.forName(driverName);
         // Create a connection to the database
         String serverName = "10.20.3.19";
         String portNumber = "1521";
         String sid = "EDIREAD";
         //String url = "jdbc:oracle:thin:@" + serverName + ":" + portNumber + ":" + sid;
    String url = "jdbc:bea:oracle://10.20.3.19:1521";
         String username = "dbuser";
         String password = "dbuser";
    System.out.println("connection is:"+p_conn+"user name is"+username+"password is"+password);
         p_conn = DriverManager.getConnection(url, username, password);
         System.out.println("connection is:"+p_conn+"user name is"+username+"password is"+password);
              xml_insert=p_conn.prepareStatement("insert into PRTB_SUBUNIT (SUBUNT_ID,SUBUNT_SUB_UNIT,SUBUNT_PHYUNT_ID) values (?,?,?)");
              //InputStream in=null;
              File l_file=new File("/home/sreejith/EDIReader/propertyfiles/inputfile/BUG_10802_ES_CSB19_68.txt");
              BufferedReader input =null;
              input=new BufferedReader(new FileReader(l_file));
              String line = null;
              StringBuffer trial=new StringBuffer();
              while (( line = input.readLine()) != null){
                   trial.append(line);
                   trial.append(System.getProperty("line.separator"));
              //InputStream is = new BufferedInputStream(new FileInputStream(l_file));
              System.out.println(trial.toString());
              //Blob b ;
              //byte[] bytes=trial.toString().getBytes();
              //System.out.println("Size-->"+bytes.length);
              xml_insert.setString(1,new String("SpecailChar"));
              //xml_insert.setBinaryStream(2,new ByteArrayInputStream(bytes),15920);
              xml_insert.setString(3,"SpecailChar");
              xml_insert.executeUpdate();
              p_conn.commit();
              } catch (ClassNotFoundException e) {
                   System.out.println("ClassNotFoundException:"+e.getMessage());
              // Could not find the database driver
              } catch (SQLException e) {
                   System.out.println("SQEXCEPTIN:"+e.getMessage());
              // Could not connect to the database
              }catch (FileNotFoundException e) {
                   System.out.println("filenot found:"+e.getMessage());
              // Could not connect to the database
    Error I'm getting is
    error while trying with jdbc:
    SQEXCEPTIN:[BEA][Oracle JDBC Driver]Error establishing socket to host and port: 10.20.3.19:1521. Reason: Connection refused

    Is the Windows firewall active? Have you enabled the port on the firewall, if it is?

  • How do I connect to Time Capsule from a Windows 8.1 machine which is on a Windows domain. I have been able to connect from a Windows 7 machine on a Windows domain to a Time Capsule. Airport utility is not displaying the Time Capsule Win8.1 machine

    How do I connect to Time Capsule from a Windows 8.1 machine which is on a Windows domain. I have been able to connect from a Windows 7 machine on a Windows domain to a Time Capsule. Airport utility is not displaying the Time Capsule Win8.1 machine.
    I have checked that the firmware has been updated to 7.6.4 . Similalrly the Win8.1 machine has been loaded with the update specified in another discussion.

    Firstly how are you connecting to the TC.. wireless or ethernet?
    Please open a command window and ping it.. ping by name and by IP address.
    If ping succeeds at least by IP it should work.
    In windows explorer type
    \\10.0.1.1 (or whatever the TC ip is.. that is the default).
    Having the airport utility for windows loaded can help the process. As it loads bonjour for windows.
    7.6.4 firmware on the TC is useless. It works better on 7.6.1
    If the ping does not succeed by either name or IP address yet you have internet through the TC, then your network is setup wrongly. You are have firewalls blocking local IP. Take down all the firewalls.

  • Java code to connect to remote windows machine from local machine

    Hi,
    I have developed a code to connecting remote windows M/C from local M/C by using SSH2 (ganymed-ssh2-build209.jar) API. when I run the code its giving below error. Can any one please help me how to resolve it. And also please let me know, is there any other way to connect remote windows system using java code.
    Exception.
    java.io.IOException: There was a problem while talking to <host name>:22
      at ch.ethz.ssh2.Connection.connect(Connection.java:642)
      at ch.ethz.ssh2.Connection.connect(Connection.java:460)
      at Connect.RemoteServer.ConnectWindowsServer.runCommand(ConnectWindowsServer.java:55)
      at Connect.RemoteServer.ConnectWindowsServer.main(ConnectWindowsServer.java:27)
    Caused by: java.net.ConnectException: Connection refused: connect
      at java.net.PlainSocketImpl.socketConnect(Native Method)
      at java.net.PlainSocketImpl.doConnect(Unknown Source)
      at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
      at java.net.PlainSocketImpl.connect(Unknown Source)
      at java.net.SocksSocketImpl.connect(Unknown Source)
      at java.net.Socket.connect(Unknown Source)
      at ch.ethz.ssh2.transport.TransportManager.initialize(TransportManager.java:299)
      at ch.ethz.ssh2.Connection.connect(Connection.java:591)
      ... 3 more
    JAVA Code
    import ch.ethz.ssh2.Connection;
    import ch.ethz.ssh2.Session;
    public void setAuthenticationInfo(String hostname, String username,String password) {
           this.host = hostname;
           this.userid = username;
           this.password = password;      
           this.recentCommand = "";     
           System.out.println("setting authentication info completed for host=" + host );
      public void runCommand() throws Exception {
    try{
            // Setup ssh session with endpoint
           System.out.println("starting connection with " + host);
           Connection connection = new Connection(host);
           System.out.println("connection object created..");
           connection.connect();
           System.out.println("Connect to connection");
           connection.authenticateWithPassword(userid,password);
           System.out.println(connection.isAuthenticationComplete());
           Session session = connection.openSession();
          System.out.println("connected");
      }catch (Exception e) {
      e.printStackTrace();
    Regards,
    Praveen

    Hi baftos,
    I tried to telnet remote windows machine from my local machine on port 23, its not connected and given error message like "Connect failed".
    As your response, if we can telnet to remote windows machine from local machine then we can connect from Java. Is it correct ?.
    Can you please help me to resolve this issue. And also please confirm the port (23) is correct, which I was used to connect remote machine from telnet.
    Regards,
    Praveen

  • Unable to connect to Admin Server from second machine using WLST

    Hello,
    PROBLEM
    Can't get WLST to connect to admin server from 2nd host to register the domain.
    SETUP
    I have 2 Centos VMs running on Oracle Virtual box in a single laptop. Both the VMs use "Bridged Networking".
    VM-1 CONFIG
    cat /etc/hosts
    192.168.1.17
    dom1 dom1.my mac1
    192.168.1.51
    centos2 mac2
    VM-1 hosts admin server & one managed server
    VM-2 CONFIG
    192.168.1.51
    mac2
    192.168.1.17
    centos1 mac1
    VM-2 hosts just one managed server
    I can start up admin on VM-1 fine. The node manager is reachable too. Both the VMs are can be pinged from each other. I can also telnet to the admin server's port ( telnet 192.168.1.17 7001) from the second server.
    My HOST OS is Windows 7. I can ping from windows to both the VM IPs too. The reverse is working fine as well.
    I've tried both mechanisms of copying the whole domain from machine 1 over to machine2 & also using the pack.sh/unpack.sh combinations to transfer the domains.
    When I invoke WLST, this is what happens
    ./wlst.sh
    CLASSPATH=/apps/prod/appservers/weblogic/wls_10_3_6/patch_wls1036/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/apps/prod/appservers/weblogic/wls_10_3_6/patch_ocp371/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.25.x86_64/lib/tools.jar:/apps/prod/appservers/weblogic/wls_10_3_6/wlserver_10.3/server/lib/weblogic_sp.jar:/apps/prod/appservers/weblogic/wls_10_3_6/wlserver_10.3/server/lib/weblogic.jar:/apps/prod/appservers/weblogic/wls_10_3_6/modules/features/weblogic.server.modules_10.3.6.0.jar:/apps/prod/appservers/weblogic/wls_10_3_6/wlserver_10.3/server/lib/webservices.jar:/apps/prod/appservers/weblogic/wls_10_3_6/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/apps/prod/appservers/weblogic/wls_10_3_6/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar::/apps/prod/appservers/weblogic/wls_10_3_6/utils/config/10.3/config-launch.jar::/apps/prod/appservers/weblogic/wls_10_3_6/wlserver_10.3/common/derby/lib/derbynet.jar:/apps/prod/appservers/weblogic/wls_10_3_6/wlserver_10.3/common/derby/lib/derbyclient.jar:/apps/prod/appservers/weblogic/wls_10_3_6/wlserver_10.3/common/derby/lib/derbytools.jar::
    Initializing WebLogic Scripting Tool (WLST) ...
    Welcome to WebLogic Server Administration Scripting Shell
    Type help() for help on available commands
    wls:/offline> connect('weblogic','weblogic123','t3://192.168.1.17:7001')
    Connecting to t3://192.168.1.17:7001 with userid weblogic ...
    Traceback (innermost last):
      File "<console>", line 1, in ?
      File "<iostream>", line 22, in connect
      File "<iostream>", line 648, in raiseWLSTException
    WLSTException: Error occured while performing connect : Error connecting to the server : Could not obtain the localhost address. The most likely cause is an error in the network configuration of this machine.
    Use dumpStack() to view the full stacktrace
    wls:/offline> dumpStack()
    This Exception occurred at Fri Oct 11 17:11:07 NZDT 2013.
    java.lang.AssertionError: Could not obtain the localhost address. The most likely cause is an error in the network configuration of this machine.
    java.lang.AssertionError: Could not obtain the localhost address. The most likely cause is an error in the network configuration of this machine.
    wls:/offline>
    Also, I can't invoke weblogic.Admin from the second VM despite setting the environment using "setWLSEnv.sh". i get the error "Error: Could not find or load main class weblogic.Admin".
    Please could you help me fix this? I've spent 3 days now trying numerous things without much luck :-(
    Kind Regards

    Hi Raj,
    Issue is with NM registry with domain home. Please follow the below steps and let us know the status.
    1 . Check whether the node manager port ( default 5556 ) is opened for communication on both Admin and Managed server.
    2 . After opening the port - We would need to enroll the node manager home with domain home to establish the communication between Admin and Managed server.
       a .  Start the Administration Server.
       b .  Using the Administration Console update the Node Manager credentials from the Advanced options under domain_nameArrow symbolSecurityArrow symbolGeneral.
       c .  Invoke WLST and connect to an Administration Server using the connect command. See Using the WebLogic Scripting Tool in WebLogic Scripting Tool.
       d .  Run nmEnroll using the following syntax:
            nmEnroll([domainDir], [nmHome])
    Running nmEnroll() ensures that the correct Node Manager user and password token are supplied to each Managed Server. Once these are available for each Managed Server, you can use nmConnect() in a production environment.
    Note:     You must run nmEnroll() on each machine that is running a Managed Server. Additionally, you should run nmEnroll() for each domain directory on each machine.
    For more info : General Node Manager Configuration
    Thanks
    Lakshman

  • Can't connect to DFS shares from machines not part of the domain

    I'm not sure if this is by design, but we can't connect to DFS shares from machines that are not joined to the domain.  We can't even map a drive using credentials of a domain account.
    Is that how DFS is supposed to work? 

    Hi RJO22,
    I did some research on this topic, and got a conclusion:
    Clients that belong to a workgroup can only access the DFS namespace if the name resolution mechanism that is in place can locally resolve the domain name
    https://social.technet.microsoft.com/Forums/windowsserver/en-US/c3214a4c-8088-446c-ba4d-643d5baf87cc/how-to-access-dfs-namespace-from-a-standalone-windows-2003-server
    Regards,
    Alex Zhao
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • How to get the Ip address of machine from which a connection is obtained

    Hi,
    We are using Oracle HA solution and we would use at least 2 Db servers. I would like to know whether there is any way of obtaining the Ip address of the machine from which the connection has been obtained?
    Thanks
    Himadri

    know whether
    there is any way of obtaining the Ip address ofthe
    machine from which the connection has beenobtained?
    Let me get you right. Basically looks like you want
    to get the IP address of the client machines who
    connect to your server? Yes it very much possible.
    Even a simple tool like netstat -a -n display
    the IP addresses/port of remote hosts (clients). Its
    part of the IP protocol to carry the addresses in the
    packets. The question is how do you want to do this
    in java? You should look at
    java.net.ServerSocket.accept().getInetAddress()
    API
    trust it helps,
    -BJNo. I have multiple databases which are used in a Oracle RAC solution. You can obtain connections from more than one DB servers. My question was how to obtain get the IP address of the DB Server from which the connection has been obtained.
    Himadri

  • CONNECT UNIX MACHINE FROM WINDOWS USING C#

    Hi all i have a requirement to connect unix machine from windows using c# code . I have the IP Address of the unix machine and the path too.I have to make a FTP using the c# code from unix to windows and vice versa . Can anybody help me out on this . It
    would be great if have a solution for this .

    Hi
    Balamurali_Mohan,
    Please refer to the similar thread
    How to connect to unix server using c#
    The marked answer said: Use a SSH (secure shell) client wrapper for .NET to connect to the remote UNIX machine and execute commands to run your script.
    Have a look at:
    http://www.codeproject.com/KB/IP/sharpssh.aspx
    Best regards,
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Migration Assistant from PowerBook 10.3.9 to new MacBook Pro?

    A friend has just bought a new MacBook Pro. His previous Mac is a PowerBook (G4 1.0 GHz 15" FW800 - Aluminium) still running Panther 10.3.9.
    He's asked me to help him migrate his files, settings, apps etc. to the new Mac. I had thought to use Migration Assistant/Setup Assistant to do this, but the manual for the MacBook Pro says:
    +"Before migrating, use Software Update on your other Mac. The other Mac should have one of these versions of Mac OS X software—either Mac OS X v10.4.11 or Mac OS X v10.5.6 (or later)."+
    Does this mean you can't migrate from a Panther Mac to Snow Leopard using Migration Assistant?
    TIA,
    Chris Adams.

    You use Migration Assistant from the new machine. The old machine needs to be started into Target Disk Mode. Both machines need to be first connected via Firewire cable. See the following:
    A Basic Guide for Migrating to Intel-Macs
    The Knowledgebase article Intel-based Mac: Some migrated applications may need to be updated refers to methods of dealing with migrating from PowerPC chips to Intel with the Migration Assistant safely. The authors of this tip have not had a chance to verify this works in all instances, or that it avoids the 10.6.1 and earlier Guest Account bug that caused account information to get deleted upon use of the Migration/Setup Assistant. However, a well backed up source that includes at least two backups of all the data that are not connected to your machine will help you avoid potential issues, should they arise. In event it does not work, follow the steps below.
    If you are migrating a PowerPC system (G3, G4, or G5) to an Intel-Mac be careful what you migrate. Keep in mind that some items that may get transferred will not work on Intel machines and may end up causing your computer's operating system to malfunction.
    Rosetta supports "software that runs on the PowerPC G3, G4, or G5 processor that are built for Mac OS X". This excludes the items that are not universal binaries or simply will not work in Rosetta:
    Classic Environment, and subsequently any Mac OS 9 or earlier applications
    Screensavers written for the PowerPC
    System Preference add-ons
    All Unsanity Haxies
    Browser and other plug-ins
    Contextual Menu Items
    Applications which specifically require the PowerPC G5
    Kernel extensions
    Java applications with JNI (PowerPC) libraries
    See also What Can Be Translated by Rosetta.
    In addition to the above you could also have problems with migrated cache files and/or cache files containing code that is incompatible.
    If you migrate a user folder that contains any of these items, you may find that your Intel-Mac is malfunctioning. It would be wise to take care when migrating your systems from a PowerPC platform to an Intel-Mac platform to assure that you do not migrate these incompatible items.
    If you have problems with applications not working, then completely uninstall said application and reinstall it from scratch. Take great care with Java applications and Java-based Peer-to-Peer applications. Many Java apps will not work on Intel-Macs as they are currently compiled. As of this time Limewire, Cabos, and Acquisition are available as universal binaries. Do not install browser plug-ins such as Flash or Shockwave from downloaded installers unless they are universal binaries. The version of OS X installed on your Intel-Mac comes with special compatible versions of Flash and Shockwave plug-ins for use with your browser.
    The same problem will exist for any hardware drivers such as mouse software unless the drivers have been compiled as universal binaries. For third-party mice the current choices are USB Overdrive or SteerMouse. Contact the developer or manufacturer of your third-party mouse software to find out when a universal binary version will be available.
    Also be careful with some backup utilities and third-party disk repair utilities. Disk Warrior 4.1, TechTool Pro 4.6.1, SuperDuper 2.5, and Drive Genius 2.0.2 work properly on Intel-Macs with Leopard. The same caution may apply to the many "maintenance" utilities that have not yet been converted to universal binaries. Leopard Cache Cleaner, Onyx, TinkerTool System, and Cocktail are now compatible with Leopard.
    Before migrating or installing software on your Intel-Mac check MacFixit's Rosetta Compatibility Index.
    Additional links that will be helpful to new Intel-Mac users:
    Intel In Macs
    Apple Guide to Universal Applications
    MacInTouch List of Compatible Universal Binaries
    MacInTouch List of Rosetta Compatible Applications
    MacUpdate List of Intel-Compatible Software
    Transferring data with Setup Assistant - Migration Assistant FAQ
    Because Migration Assistant isn't the ideal way to migrate from PowerPC to Intel Macs, using Target Disk Mode, copying the critical contents to CD and DVD, an external hard drive, or networking
    will work better when moving from PowerPC to Intel Macs. The initial section below discusses Target Disk Mode. It is then followed by a section which discusses networking with Macs that lack Firewire.
    If both computers support the use of Firewire then you can use the following instructions:
    1. Repair the hard drive and permissions using Disk Utility.
    2. Backup your data. This is vitally important in case you make a mistake or there's some other problem.
    3. Connect a Firewire cable between your old Mac and your new Intel Mac.
    4. Startup your old Mac in Target Disk Mode.
    5. Startup your new Mac for the first time, go through the setup and registration screens, but do NOT migrate data over. Get to your desktop on the new Mac without migrating any new data over.
    If you are not able to use a Firewire connection (for example you have a Late 2008 MacBook that only supports USB:)
    1. Set up a local home network: Creating a small Ethernet Network.
    2. If you have a MacBook Air or Late 2008 MacBook see the following:
    MacBook (13-inch, Aluminum, Late 2008) and MacBook Pro (15-inch, Late 2008)- Migration Tips and Tricks;
    MacBook (13-inch, Aluminum, Late 2008) and MacBook Pro (15-inch, Late 2008)- What to do if migration is unsuccessful;
    MacBook Air- Migration Tips and Tricks;
    MacBook Air- Remote Disc, Migration, or Remote Install Mac OS X and wireless 802.11n networks.
    Copy the following items from your old Mac to the new Mac:
    In your /Home/ folder: Documents, Movies, Music, Pictures, and Sites folders.
    In your /Home/Library/ folder:
    /Home/Library/Application Support/AddressBook (copy the whole folder)
    /Home/Library/Application Support/iCal (copy the whole folder)
    Also in /Home/Library/Application Support (copy whatever else you need including folders for any third-party applications)
    /Home/Library/Keychains (copy the whole folder)
    /Home/Library/Mail (copy the whole folder)
    /Home/Library/Preferences/ (copy the whole folder)
    /Home /Library/Calendars (copy the whole folder)
    /Home /Library/iTunes (copy the whole folder)
    /Home /Library/Safari (copy the whole folder)
    If you want cookies:
    /Home/Library/Cookies/Cookies.plist
    /Home/Library/Application Support/WebFoundation/HTTPCookies.plist
    For Entourage users:
    Entourage is in /Home/Documents/Microsoft User Data
    Also in /Home/Library/Preferences/Microsoft
    Credit goes to Macjack for this information.
    If you need to transfer data for other applications please ask the vendor or ask in the Discussions where specific applications store their data.
    5. Once you have transferred what you need restart the new Mac and test to make sure the contents are there for each of the applications.
    Written by Kappy with additional contributions from a brody.
    Revised 1/6/2009

  • Migration from powerbook 10.4.11 to imac 10.6.8

    Migrating from Powerbook G4 10.4.11 (cannot upgrade beyond this release). Migrating to a new iMac 10.6.8. Problem: both computers are on the same wireless network. Start Migration Assistant on iMac then on Powerbook. Select "From another Mac" on iMac and "To another Mac" on Powerbook. Powerbook sees iMac, offers passcode entry field. Enter Passcode from iMac into Powerbook Passcode field. iMac displays "processing information ...". Powerbook does same. After 10seconds Powerbook displays the Passcode entry field again. Enter the same Passcode from the iMac into the Powerbook Passcode entry field. Powerbook displays "searching for other computers ...". iMac displays "processing information ...". After a few minutes, iMac displays dropdown box stating "connection to other Mac failed" (or similar wording) while Powerbook continues "searching for other computers ..." and iMac Migration Assistant main dialog box continues "processing information ...".
    Any help solving this problem will be much appreciated.
    Steve

    Steve your first mistake is attempting to do this wirelessly. If you can get it to start expect the migration to take a week or more. The easiest way is to connect the two together via Firewire with a cable like this which you can find at your local computer store, Radio Shack or of course Amazon. This assumes the Powerbook has Firewire, if it doesn't then create a bootable clone on an external HD. You will use either SuperDuper or Carbon Copy Cloner to create the bootable clone. Then instead of using Migration Assistant use Setup Assistant which you ignored when you turned on the new iMac for the first time, this mean you will need to start over. Please read Setup Assistant tips for detailed instructions beginning at "Second Chance..."
    Finally when you are migrating I would strongly recommend not migrating your Applications because you are moving from a PPC based machine to Intel. You may have apps that don't run on Intel or simply need to be updated to do so. This is your opportunity to update Apps and get current.
    Migration Assistant and Setup Assistant are cousins, similar but different. First is SA is more reliable and second it does not create a second user account.

  • Can I migrate from PowerBook g4 to a new MacBook Air

    I have a non intel PowerBook g4 Can I migrate from PowerBook g4 to a new MacBook Air

    A Basic Guide for Migrating to Intel-Macs
    The Knowledgebase article Intel-based Mac: Some migrated applications may need to be updated refers to methods of dealing with migrating from PowerPC chips to Intel with the Migration Assistant safely. The authors of this tip have not had a chance to verify this works in all instances, or that it avoids the 10.6.1 and earlier Guest Account bug that caused account information to get deleted upon use of the Migration/Setup Assistant. However, a well backed up source that includes at least two backups of all the data that are not connected to your machine will help you avoid potential issues, should they arise. In event it does not work, follow the steps below.
    If you are migrating a PowerPC system (G3, G4, or G5) to an Intel-Mac be careful what you migrate.  Keep in mind that some items that may get transferred will not work on Intel machines and may end up causing your computer's operating system to malfunction.
    Rosetta supports "software that runs on the PowerPC G3, G4, or G5 processor that are built for Mac OS X". This excludes the items that are not universal binaries or simply will not work in Rosetta:
      1. Classic Environment, and subsequently any Mac OS 9 or earlier applications
      2. Screensavers written for the PowerPC System Preference add-ons
      3. All Unsanity Haxies Browser and other plug-ins
      4. Contextual Menu Items
      5. Applications which specifically require the PowerPC G5 Kernel extensions
      6. Java applications with JNI (PowerPC) libraries
    See also What Can Be Translated by Rosetta.
    In addition to the above you could also have problems with migrated cache files and/or cache files containing code that is incompatible.
    If you migrate a user folder that contains any of these items, you may find that your Intel-Mac is malfunctioning. It would be wise to take care when migrating your systems from a PowerPC platform to an Intel-Mac platform to assure that you do not migrate these incompatible items.
    If you have problems with applications not working, then completely uninstall said application and reinstall it from scratch. Take great care with Java applications and Java-based Peer-to-Peer applications. Many Java apps will not work on Intel-Macs as they are currently compiled. As of this time Limewire, Cabos, and Acquisition are available as universal binaries. Do not install browser plug-ins such as Flash or Shockwave from downloaded installers unless they are universal binaries. The version of OS X installed on your Intel-Mac comes with special compatible versions of Flash and Shockwave plug-ins for use with your browser.
    The same problem will exist for any hardware drivers such as mouse software unless the drivers have been compiled as universal binaries. For third-party mice the current choices are USB Overdrive or SteerMouse. Contact the developer or manufacturer of your third-party mouse software to find out when a universal binary version will be available.
    Also be careful with some backup utilities and third-party disk repair utilities. Disk Warrior, TechTool Pro , SuperDuper , and Drive Genius  work properly on Intel-Macs with Leopard.  The same caution may apply to the many "maintenance" utilities that have not yet been converted to universal binaries.  Leopard Cache Cleaner, Onyx, TinkerTool System, and Cocktail are now compatible with Leopard.
    Before migrating or installing software on your Intel-Mac check MacFixit's Rosetta Compatibility Index.
    Additional links that will be helpful to new Intel-Mac users:
      1. Intel In Macs
      2. Apple Guide to Universal Applications
      3. MacInTouch List of Compatible Universal Binaries
      4. MacInTouch List of Rosetta Compatible Applications
      5. MacUpdate List of Intel-Compatible Software
      6. Transferring data with Setup Assistant - Migration Assistant FAQ
      7. OS X Lion: How to use Migration Assistant to transfer files from another Mac
    Because Migration Assistant isn't the ideal way to migrate from PowerPC to Intel Macs, using Target Disk Mode, copying the critical contents to CD and DVD, an external hard drive, or networking will work better when moving from PowerPC to Intel Macs.  The initial section below discusses Target Disk Mode.  It is then followed by a section which discusses networking with Macs that lack Firewire.
    If both computers support the use of Firewire then you can use the following instructions:
      1. Repair the hard drive and permissions using Disk Utility.
      2. Backup your data.  This is vitally important in case you make a mistake
          or there's some other problem.
      3. Connect a Firewire cable between your old Mac and your new Intel Mac.
      4. Startup your old Mac in Transferring files between two computers using FireWire.
      5. Startup your new Mac for the first time, go through the setup and
           registration screens, but do NOT migrate data over. Get to your
           desktop on the new Mac without migrating any new data over.
    If you are not able to use a Firewire connection (for example you have a Late 2008 MacBook that only supports USB:)
    1. Set up a local home network: Creating a small Ethernet Network.
    2. If you have a MacBook Air or Late 2008 MacBook see the following:
      a. MacBook (13-inch, Aluminum, Late 2008) and MacBook Pro (15-inch,
          Late 2008) - What to do if migration is unsuccessful;
      b. MacBook Air - Migration Tips and Tricks;
      c. MacBook Air - Remote Disc, Migration, or Remote Install Mac OS X and
          wireless 802.11n networks.
    Copy the following items from your old Mac to the new Mac:
    In your /Home/ folder: Documents, Movies, Music, Pictures, and Sites folders.
    In your /Home/Library/ folder:
    /Home/Library/Application Support/AddressBook (copy the whole folder) /Home/Library/Application Support/iCal (copy the whole folder)
    Also in /Home/Library/Application Support (copy whatever else you need including folders for any third-party applications)
    /Home/Library/Keychains (copy the whole folder) /Home/Library/Mail (copy the whole folder) /Home/Library/Preferences/ (copy the whole folder) /Home /Library/Calendars (copy the whole folder) /Home /Library/iTunes (copy the whole folder) /Home /Library/Safari (copy the whole folder)
    If you want cookies:
    /Home/Library/Cookies/Cookies.plist /Home/Library/Application Support/WebFoundation/HTTPCookies.plist
    For Entourage users:
    Entourage is in /Home/Documents/Microsoft User Data Also in /Home/Library/Preferences/Microsoft.
    Credit goes to Macjack for this information.
    If you need to transfer data for other applications please ask the vendor or ask in the  Discussions where specific applications store their data.
    5. Once you have transferred what you need restart the new Mac and test to make sure the contents are there for each of the applications.
    Written by Kappy with additional contributions from a brody.Revised 5/21/2011

  • How can I use my airport extreme to connect a windows machine to the internet? I don't have the software disks anymore...

    I no longer have any disks for my airport extreme (its pre-time capsule)... how can I connect my windows machine to it in order to get to the internet?

    You can directly download the AirPort Utility for Windows from Apple Support here.
    Once the AirPort Extreme is properly configured for Internet access you can connect your PC to the Extreme either by a wired or wireless connection.

Maybe you are looking for