How to use rsync on Solaris 10

I have set up rsync to run as a daemon on 2 Solaris 10 servers
rsync --daemon
with a /etc/rsyncd.conf file of
motd file = /etc/motd
max connections = 5
syslog facility = local3
[ftp]
comment = ftp area
path = /
read only = yes
list = yes
uid = nobody
gid = nobody
[tmp]
comment = temporary file area
path = /tmp
read only = yes
list = yes
host allow = l3sun l4sun
auth users = root
when I execute
rsync -vrzt l3:/usr/ptraq/man /usr/ptraq/man
it gives the following:
The authenticity of host 'l3 (89.1.20.13)' can't be established.
RSA key fingerprint is 45:e6:23:88:42:7f:a6:9f:55:b4:43:ba:1c:1d:90:45.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'l3,89.1.20.13' (RSA) to the list of known hosts.
Password:
Password:
Password:
Permission denied (gssapi-keyex,gssapi-with-mic,publickey,keyboard-interactive).
rsync: connection unexpectedly closed (0 bytes received so far) [receiver]
rsync error: error in rsync protocol data stream (code 12) at io.c(359)
Any ideas as to how to use rsync on Solaris 10

When given a file source lie l3:/usr/ptraq/man with one colon (:) ssh attempts to connect using ssh.
If you want to connect to the rsync daemon, you need to give 2 colons l3::/usr/ptraq/man.
Your other alternative is to setup ssh keys so you can log in without a password and then you won't have to run rsync in daemon mode at all.

Similar Messages

  • How to use VNC for Solaris 10

    Hello, I am completely green when it comes to Unix / Solaris. I am trying to use VNC from the Solaris 10 Companion DVD. I have it installed. I followed the easy to use steps from this site : http://www.salixtraining.co.uk/index_files/vncsol10.htm
    But the problem is I don't know how to use it now that I have it installed.
    What I am tring to do is install an e-ticketing software program on my test Solaris server and I am stuck on getting PHP to work correctly and I am trying get the company, whose product I am trying to use, to connect to my server to investigate. I want them to be able to remote connect to and be able to see and access the server to see if they can help.
    Can anyone help? I really need step by step instructions. Assume that I don't know anything!
    Thanks in advance,
    Aaron

    Hello, here are the instructions I follow to install VNC on my systems running Solaris Express, you may use this to your own install, I dont use the one included on the companion CD, I download the one from RealVNC instead, I hope this helps:
    VNC
    INSTALL VNC (RealVNC) 4.1.2 - Solaris Express 11 b71 Sparc
    a)
    File to use: �vnc-4_1_2-sparc_solaris.tar.gz�
    #gunzip vnc-4_1_2-sparc_solaris.tar.gz
    #tar �xvf vnc-4_1_2-sparc_solaris.tar
    #cd vnc-4_1_2-sparc_solaris
    b)
    Install it by running:
    # ./vncinstall /usr/bin /usr/share/man
                   Note: this will also install man pages into �/usr/share/man/man1�
    If you want to use the Java VNC viewer (Open browser and type pc_name:display#):
    Copy the files from the java directory to some suitable installation directory
    such as /usr/local/vnc/classes (vncserver will read this path!- don�t change it):
    # mkdir -p /usr/local/vnc/classes
    # cp java/* /usr/local/vnc/classes
    c)
    Add these 2 lines to .profile (under the user)- (This will make it to connect always with screen 1):
    vncserver -kill :1
    vncserver -depth 24 -geometry 1024x768 (or any other combination you want like 1280x1024,etc)
    note: dont use it if you want to have a different screen to connect everytime.
    d)
    Create a /.vnc directory first, we will create the xstartup file inside:
    file /.vnc/xstartup:
    #!/bin/sh
    # xrdb $HOME/.Xresources      < This line Not really needed!! >
    xsetroot -solid grey
    gnome-session          <add selection for KDE or CDE if needed see bellow notes>
    ** Here is How to Create the �xstartup� file:
    echo "#!/bin/sh
    xrdb $HOME/.Xresources
    xsetroot -solid grey
    #/usr/dt/bin/dtsession CDE < CDE, gnome or sessions: >
    #gnome-session Gnome < comment with '#' the one you don't >
    < want to use. >
    " > xstartup
    # chmod 744 xstartup To make it executable!.
    *** Sample used for the user: (use the same file for the other users) �it will be created
    the first time using it, just change it/add to the following sample:
    First time to login will ask to create a password or
    Run /export/home/�name�/.vnc/passwd (to add password to login)
    You may need to change ownership on the following 3 if you create them under different user:
    /.vnc folder
    /.vnc/xstartup
    /.vnc/passwd
    using #chown -name- .vnc (xstartup and passwd)
    To check process for VNC running:
    # ps -ef | grep Xvnc
    To stop the process:
    # kill pid# (stop it hard way)
    kill display:
    #vncserver -kill :#
    to connect from another system just type the hostIP:screen#, e.g. 192.168.1.20:1
    murilloa
    Edited by: murilloa on Sep 13, 2007 7:52 PM

  • Sqlplus how to use arrow key look the history

    sqlplus in DOS, I can use arrow to look the sql statement history.
    How to use arrow in Solaris.
    Thanks

    If you were using Linux, I'd refer you to http://www.dizwell.com/prod/node/56
    Since you aren't, I'll refer you to that anyway and hope that you find a way of compiling rlwrap for Solaris.

  • How to install and configure RSYNC on Solaris 10 SPARC

    I am trying to setup two Solaris boxes to sync their two mount points in real time using RSYNC. If any update happens on Server A it should reflect on server B automatically. Use CRON or as system SERVICE, which is best? Servers are on WAN link and are running RSYNC from Sunfreeware.com. Thanks in advance...

    NFS can be painfully slow over a WAN. rsync in a compressed SSH tunnel (especially with the HPN patches) can be significantly faster.
    It seems to me the choice isn't between cron and a service. You're always going to need to schedule the jobs via cron because the system isn't going to tell you when it needs to run. it's between the client talking to an RSYNC daemon or talking to a standard communication channel (like SSH) and spawning the other rsync.
    If you need something more than periodic syncs, you could look into AVS. That is a more complex but more powerful solution for some needs. [http://hub.opensolaris.org/bin/view/Project+avs/]
    I never use the rsync daemon because I already understand the authentication schemes I have set up for SSH. So leveraging that makes sense.
    Darren

  • How to use Compare and Swap (CAS) atomic function(Solaris specific) in C

    Hi,
    I have found cas32() atomic function in (solaris 10) </usr/include/sys/atomic.h> (and also there is another atomic.h header file in </usr/include/atomic.h> but this header file does not have any cas32() function declarations) the declaration of cas32 in <sys/atomic.h>
    is as follows
    extern uint32_t cas32(uint32_t *target, uint32_t cmp, uint32_t newval);
    extern ulong_t caslong(ulong_t *target, ulong_t cmp, ulong_t newval);
    extern uint64_t cas64(uint64_t *target, uint64_t cmp, uint64_t newval);
    extern void casptr(void target, void cmp, void newval);
    extern uint8_t cas8(uint8_t *target, uint8_t cmp, uint8_t newval);
    But the problem is when iam using these functions in c programs and compiling
    using gcc it is showing the following error.
    Undefined first referenced
    symbol in file
    cas32 /var/tmp//ccQcsnev.o
    And if i use the function other than cas32 group of instruction
    such as atomic_or_uint()
    whose declaration is extern void atomic_or_uint(uint_t *target, uint_t bits);
    in <sys/atomic.h> it is giving no error where as for CAS32 it showing as undefined symbol.Why it is giving like that we are not able to know.Is it the case that CAS32 instruction only available in Kernel mode and not available to user mode.Please inform us if anyone knows how to use cas32() instruction in the user C programs.As this is usefull for writing Nonblocking versions of stacks and Queues.Is there any way to write
    our own atomic functions?
    Rama

    You are trying to use the old kernel-only CAS functions, use the correct ones like:
    atomic_cas_32.
    DS

  • Is ASMlib available on Solaris?  How to use it?

    We are going to create RAC with ASM on Solaris 10 by using 10.2.0.1 and upgrading it to 10.2.0.4. I heard there is an option of using ASMlib to prepare for ASM disk group. I saw all the cases are for lunix. Is that available to Solaris? If so, is it a must to use to prepare for install ASM and how to use it?
    Thanks for advice,

    See the doc for linux..
    [Install and configure ASM in 10g|http://www.oracleracexpert.com/2009/08/install-and-configure-asmlib-in-10g.html]

  • How to use solaris font in the java

    Hi all!
    I need to use the installed solaris fonts in a swing application. Do you know how to make the installed solaris fonts available in the java runtime environment?
    I have Solaris 8.
    Thanks
    eha

    Hi,
           import java.awt.EventQueue;
    import java.awt.Font;
    import java.awt.GraphicsEnvironment;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    public class Tamil {
         static void showGui(){
              JFrame frame = new JFrame();
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              JPanel panel = (JPanel) frame.getContentPane();
              JLabel label = new JLabel();
              Font f = new Font("Latha",Font.BOLD,12);
              label.setFont(f);
              label.setText("\u0B85\u0B95\u0BB0\u0BAE\u0BCD");
              panel.add(label);
              frame.setSize(300,300);          
              frame.setVisible(true);
          * @param args
         public static void main(String[] args) {          
              EventQueue.invokeLater(new Runnable()
                   @Override
                   public void run() {
                        showGui();
    }This is just a simple example . Please understand what other people said.
    Please read a tutorial about [i18n|http://java.sun.com/docs/books/tutorial/i18n/index.html]
    Thanks

  • Solaris 8: how to use the adb execution commands in mdb?

    Hi,
    I want to execute some adb commands like the :c, :b, etc, in mdb, but the mdb always prompt:"mdb: invalid command ':c': unknown dcmd name". So how can I use those commands?
    Thanks.

    Yes, I am using the mdb on my application. I start mdb and attach one process, and I use the 0xnnnnn:b, the mdb's output :
    mdb: invalid command ':b': unknown dcmd name.
    The mdb document describe that the mdb support adb's commands, but the mdb's command ::dcmds does not list some adb's commands like the :b, :c. so Why ? And how to use these commands?
    Thanks.

  • Cron job not running - script uses rsync, ssh (with id_rsa)

    Does anyone know how to get cron to run a rsync/ssh script which uses id_rsa for passwordless logins?
    I have a backup script I have slaved for months over that works wonderfully when running it from the command line.
    It uses rsync and connects with SSH (passwordless using ssh keys). I have setup id_rsa and id_rsa.pub for passwordless logins (this is my user account, and connects using root@ to the server)
    As stated all works find when run from the command line. But when I setup a cron job to run this file (exact same line I run from the command line) it does not execute. Actually, it does run, as I have an email notifiction which sends to me. It is just the rsync/ssh part that does not run.
    I have spent days and days trying to figure it out. No error messages occur, nothing.  Took me a while to find out cron is emailing the user account on Lion the messages (not to a proper email address).
    The error shows a permission denied, which I believe to be the cron user cannot use the id_rsa/ssh connection.
    Cron is running the script as my user, the same I use on the command line. I even tried copying the id_rsa to the root user .ssh folder in case cron is running as root but that does not work either.
    So does anyone know how to get cron to run this rsync/ssh script which used id_rsa for passwordless logins?
    Thanks a lot

    YES! Got it working, finally!
    So the issue is indeed cron/launchd not being able to access the ssh-agent which holds the key.
    So this is the solution...
    Download keychain for Mac:
    http://www.funtoo.org/wiki/Keychain
    Then once its installed and configured, the script to run needs this added to the top:
    eval `keychain --noask --eval id_rsa` || exit 1
    Note I am using id_rsa whereas keychains instructions refer to id_dsa so I just changed it and it works OK.
    When the script runs the first time it asks for the key password. Then it works from then on.
    What I do not know yet is will I need to re-enter the password when I logoff/logon again. That will cause an issue as I auto restart the Mac every day which means if I am off for a few days backup will stop (can you see the madness in this issue!).

  • How to use Linux Print queue in client_text_io.fopen to print from Windows

    We have a forms application deploed on LINUX (Oracle application server 10g).
    I have to print a file from local windows PC to a linux Print Queue from forms
    I have the following code
    PROCEDURE file_to_printer (i_filename_output IN VARCHAR2
    ,i_network_printer IN VARCHAR2) IS
    l_line VARCHAR2(2000);
    l_fileid_output client_text_io.file_type;
    l_fileid_print client_text_io.file_type;
    BEGIN
    l_fileid_output := client_text_io.fopen (i_filename_output,'R');
    l_fileid_print := client_text_io.fopen (i_network_printer,'W');
    WHILE 1 = 1 LOOP
    client_text_io.get_line (l_fileid_output, l_line);
    client_text_io.put_line (l_fileid_print, l_line);
    END LOOP;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    client_text_io.fclose (l_fileid_output);
    client_text_io.fclose (l_fileid_print);
    END file_to_printer;
    Everything works fine if I use a windows printer like \\machine\printer.
    I want to use a Linux printer and specified the print queue as
    \\machine\print_queue_name. It's not working
    and I get error ORA-302000 on the following line
    l_fileid_print := client_text_io.fopen (i_network_printer,'W');
    and if I give only the queue name no error but it's not printing.
    Could you please tell me how to use a Linux/Unix print queue in this situation

    the simplest way is to edit the interface file (look in /etc/lp/interfaces for existing printers). Each script is
    run per print job where stdin has your print data, and stdout is going to your print device. You can just
    send the output to a file instead (assuming you can create a file in the windows directory from the solaris
    box). If it's a network share, you could use smbclient.
    -r

  • How to use TCP Checksum Off-load in my network driver

    I am seeking infomation on how to use TCP Checksum Off-load to tell the Solaris 8 stack not to handle it for both receives and transmits (and let our NIC handle this compute-intensive task instead).
    There is mention that Sun GigabitEthernet Adapter cards, Release 1.1 supports Sol-2.6 use of NIC features: TCP checksum offload & byte swapping
    There are limited bits of info in include files. For example
    sys/strick.h indicates use of:
    inetcksum_t's ick_xmit
    stream.h has:
    struct datab's unsigned u16:16; /* used to store hw-calculated cksum
    #define STRUIO_IP 0x04 /* IP checksum stored in db_struioun */
    #define STRUIO_ZC 0x08 /* mblk eligible for zero-copy */
    strsub.h has:
    struct zero_copy_kstat
    Also /include/inet/tcp.h has tcp_sum for outbound.
    Thank you. -Weimin Tchen

    VenK7337,
    Could you show your python code. so we know what your are "writing" to the ethernet port?
    That way we can see what you are receiving.
    Parsing the incoming data (from the TCP-read) depends heavily on the device that sends it, and can not generically be described. LabVIEW has many byte (and even bit) manipulation functions to convert many different data formats to its own build in formats.
    So after the TCP listener is connected, you are constantly reading from the established connection (until it gets broken of course). More advanced example would be the internet toolkit if oyu have it.
    From the read characters (and I hope you designed a protocol with a clear starting character, ending character and maybe even a build in checksum) you parse the data and perform you action, and of course generate a reply. Again the internet toolkit is a good example. It parsed the input as it comes it, based on the HTTP format. Then generates the reply based on the request received.
    These days I would suggest not to use binairy encoded numerics. Try and use XML formatted data. Yes, it causes a lot of overhead. But typically this is not an issue and makes the code a lot more portable and maintainable. Also makes it easier to interface with other languages/platforms.
    Umless of course you are looking at Khz data rates, then XML is not th preferred choice.
    Hope this helps...

  • How to use Reader in non-interactive persistent mode to convert PDFs?

    How to use Adobe Acrobat Reader in non-interactive and persistent mode to convert PDFs to PostScript (or even better, bitmapped image files) ?
    At present, I'm using
        acroread -toPostScript  indir/*pdf outdir/
    to convert a set of PDFs to PostScript (the platform is Solaris on Sparc).
    These PDFs arrive at varying rates at arbitrary intervals and I'd like to avoid the overhead of startup of the acroread process and loading of the fonts etc. I would like the acroread process to become persistent and that it should convert the PDFs either as and when they become available or on demand (ie upon receipt of some signal or message).
    In the words, the usage is similar to that used by web browsers, which is effectively a client of the rendering service provided by the Adobe Acrobat Reader running in the background.
    The only difference is that I need the output in a file (or set of files), either bitmap or PostScript.
    Any help / pointers on how to do this would be greatly appreciated.
    Thanks and best regards.

    Hello,
    As I understand, you would like to setup a watch folder which will be getting pdf files in arbitrary intervals. You then want each pdf to be converted to ps in a separate folder.
    You could achieve this with the help of a script by polling for pdf files present in the watch folder. When you find pdf files, convert them to ps, save the ps file in another folder and then move the pdf to another folder.
    In any case, once the process of conversion of pdf to ps is over, acroread will quit.
    There is no way to keep the acroread process running in background and convert pdfs as and when they are available.
    Please let me know if this answers your query.
    Regards,
    Rishi

  • Using emacs on solaris 10

    Hi,
    Does anybody know how can i use emacs on solaris 10
    i tried to type
    emacs
    from a shell, but it responds me with
    emacs: command not found
    when i install solaris 10, is emacs installed by default or i have to
    install it by myself?
    I am very new to solaris, can anybody help me?
    thank you in advance.

    Emacs 21.3 is part of the Solaris10 Companion CD.
    The CD image is available for download on the Solaris10 download site.
    Various versions of Emacs are also available as individual downloads ( pkg-add ) from the Sun Freeware site, as well as, a number of other sites that support the Sun OSes. ................John.

  • How to check if my solaris 10 os is up to date?

    how to check if my solaris 10 os is up to date?

    Current Kernel Patch can be displayed using
    -bash-3.2$ uname -a
    SunOS g0043 5.10 Generic_150400-13 sun4v sparc sun4v
    Solaris 10 Update 11 Kernel Patches are 150400-1 till -22
    150400-22 was released a few days ago
    Best regards,
    Marcel

  • How to use Oracle text

    I'm storing files in a blob field in a 9i database, sometimes I need to query using the details stored in the database about the file and sometimes I need to search the files to find matches with some text (like search engine), I was told that oracle text can help me accomplish this functionality , however I don't know if it supports arabic text and I don't know how to use it from my application developed in 9i.
    Regards.

    Friend by using these step you can easily use Oracle inter text media
    j a h a n z e b
    [email protected]
    Oracle Developer
    6th Floor, State Bank of Pakistan
    I.I.Chundrigar Road, Karachi.
    Please note that in SqlPlus you can use '?' in stead of $ORACLE_HOME, and this works on Unix and Windows so if you want to execute $ORACLE_HOME/rdbms/admin/catalog.sql you can simply use:
    on Unix sql> @?/rdbms/admin/catalog.sql
    on Windows sql> @?\rdbms\admin\catalog.sql
    5.2.1 Explanation of installation steps
    1. Connected to database as SYSDBA and create CTXSYS user:
    Ctxsys user is created by calling following script:
    @?/ctx/admin/dr0csys.sql <ctxsys> <system> <temp>
    Where:
    change_on_install - is the ctxsys user password
    DRSYS - is the default tablespace for ctxsys
    TEMP - is the temporary tablespace for ctxsys
    This will create user CTXSYS and grants full privileges to CTXSYS in order to create and insert into result tables, execute callbacks, rewrite queries, and perform system cleanup. At this point CTXSYS will not own any objects.ss
    2. Connected to database as CTXSYS and create all necessary objects
    All necessary object are creates by calling following script:
    connect CTXSYS/change_on_install
    @?/ctx/admin/dr0inst <replace with $ORACLE_HOME>/ctx/lib/libctxx9.so;
    Please not that you have to put full path to your ORACLE_HOME, for example home as paramter
    On Solaris/Aix/Linux with $ORACLE_HOME of /u01/app/oracle/product/8.1.7
    @?/ctx/admin/dr0inst.sql /u01/app/oracle/product/8.1.7/ctx/lib/libctxx8.so
    On HP-UX with $ORACLE_HOME of /u01/app/oracle/product/8.1.7
    @?/ctx/admin/dr0inst.sql /u01/app/oracle/product/8.1.7/ctx/lib/libctxx8.sl
    Windows NT/2000 with D:\oracle\product\8.1.7
    @?/ctx/admin/dr0inst.sql D:\oracle\product\8.1.7\bin\oractxx8.dll
    This will installs all Oracle database objects required by the Oracle Text system. This includes:
    a) Data dictionary tables, views, sequence, packages
    b) Server management tables, views and packages
    c) Dispatcher packages
    d) Service queue objects
    3) Install appropriate language-specific default preferences.
    The next step is to install appropriate language-specific default preferences.When you use CREATE INDEX to create an index or ALTER INDEX to manage an index, you can optionally specify indexing preferences in the parameter string. There are seven preference classes:
    - Lexer, defines the language being indexed. ( language specific )
    - Wordlist, defines the expantion of stem and fuzzy queries. ( language specific )
    - Stoplist, defines words and themes that are not be indexed. ( language specific )
    - Datastore, defines document storage.
    - Filter, defines standards for converion of documents to plaintext.
    - Storage, defines the storage of the index tables.
    - Section group, enables possibilities to define document sections.
    There is script which creates language-specific default preferences for every language Oracle text supports in <ORACLE_HOME>/ctx/admin/defaults directory, such as English(US), Danish(DK), Dutch(NL), Finnish(SF), French(FR), German(DE), Italian(IT), Portuguese(PR), Spanish(ES), and Swedish(S). They are named in the form drdefXX.sql, where XX is the language code. To manually install US default preferences, for example, log into sqlplus as CTXSYS, and run 'drdefus.sql' as described below:
    @?/ctx/admin/defaults/drdefus.sql
    create user textuser identified by textuser
    default tablespace users
    temporary tablespace temp;
    -- You must grant 'ctxapp' role to textuser
    grant connect, resource, ctxapp to textuser;
    connect textuser/textuser
    drop table quick;
    create table quick (
    quick_id number
    constraint quick_pk primary key,
    text varchar2(80) );
    insert into quick ( quick_id, text ) values (1,'The cat sat on the mat');
    insert into quick ( quick_id, text ) values (2,'The quick brown fox jumps over the lazy dog' );
    insert into quick ( quick_id, text ) values (3,'The dog barked like a dog');
    commit;
    create index quick_text on quick ( text )
    indextype is ctxsys.context;
    col text format a45
    col s format 999
    select text, score(42) s from quick
    where contains ( text, 'dog', 42 ) > 0
    order by s desc;

Maybe you are looking for

  • My hard drive crashed, but I've got Match. How can I get all 12,000  tracks back?

    I decided to go totally digital at New Year's and bought an external hard drive for my laptop and copied 400+ CDs to it. I also moved over my existing iTunes library and purchases to this external drive. I then subscribed to iTunes Match and sent all

  • FCP wont open motion projects on tileline anymore

    I have been using the FCP suite by creating motion projects and imoporting the project file onto my fcp timeline, I really like doing this it cuts out allot of wasted time. However I just installed the new itunes and the new quicktime update and sudd

  • Do you recommend mac book pro or air?

    Do you recommend mack book pro or air?

  • Httprequest file upload

    I have a situation where the default file upload functionality via fileReference will not work.  This is because of runtime security errors in different environments, and the server is running php with session handlers - the fileReference upload func

  • Virus, a Trojan, or something else?

    Virus, Trojan, something else? My computer sent an email to about 50 people yesterday with an attached zip file. The email had no subject, and the zip file contained about 20GB worth of documents off my computer. Most of the recipients are not in my