Discussion in 'Mac Apps and Mac App Store' started by purduematt, Aug 2, 2003.

  1. purduematt macrumors newbie

    Jul 17, 2002
    i just built myself a server to play around with, and loaded ret hat linux on it. i had a few questions that i though you guys might be able to help with.

    when i connect via ssh is there a way to restart the server via ssh?

    how can i copy a file from my computer to the server with ssh (what would the command look like)?

    has anybody attempted to use a server running red hat to act as a print server? i would like to do this so i don't have to plug my printer into my powerbook every time i set it up at home.

    i believe i read somewhere that you can use programs that have a graphical user interface with the apple's X11 package. could anybody provide me with a quick tutorial for a beginner on how to do this.

    thank you,

  2. sparkleytone macrumors 68020


    Oct 28, 2001
    Greensboro, NC
    Re: linux

    'shutdown -r now' make sure you have the privileges or just 'sudo' it as well

    'scp' does this. the command goes like so 'scp user@host1:/path/to/file user@host2:/path/to/file'

    as far as the other stuff...its a little more complicated, so it would be best to do a google search including the word 'howto'
  3. robbieduncan Moderator emeritus


    Jul 24, 2002
    Redhat (along with most other Linux distros) normally have reboot defined as shutdown -r now as a shortcut. You do normally need to be root to do this. Look into CUPS for your printer sharing (it's what Mac OSX uses too).

    For X you need to start X11 on Mac OSX. You then need to ensure that the correct ports are open in your firewall (if appropriate) and that the other machine is allowed to connect (xhost <server ip>).

    Now ssh into the server and set the display variable (export DISPLAY=<powerbook ip>:0.0). Now try starting an X program (xeyes say). It should appear on your powerbook screen.
  4. purduematt thread starter macrumors newbie

    Jul 17, 2002
  5. sweetsdream macrumors newbie

    Jul 27, 2003
    Seattle, WA
    X11 ssh tunnel

    You can also use sftp, it's part of ssh as well (I think). It works with my RedHat server.
     sftp user@host 
    An easy way to run XWindows programs on your Mac is to load Apple's X11 server or XDarwin. After you have it loaded and running open an xterm (Apple opens on by default) and type this:
     ssh -l user -X ipaddress 
    After you type your password and log on any program you run will be displayed on your Mac.

    You may want to check out and learn howto setup Samba, I think it's the easiest way to share files. Then check out my article on macoshints to share music

Share This Page