2012-12-05 5 views
8

저는 Mac을 사용하고 있으며 가상 박스에 debian linux를 설치했습니다. 내 Mac에서 URL을 가상 박스의 linux로 복사하고 싶습니다. 어떻게해야합니까?맥 키보드로 가상 박스에서 터미널 리눅스에 붙여 넣는 방법?

+1

이 터미널 에뮬레이터 윈도우, 또는 실제 터미널인가? (이전 버전 인 경우 클립 보드 공유를 켜고 Command + Shift + C를 누릅니다.) – Ryan

+2

게스트 추가 기능을 설치 했습니까? 또한 TTY 창이나 터미널 에뮬레이터에 대해 이야기하고 있습니까? – Blender

+0

내 데비안에 X.Org가 없기 때문에 게스트 추가 기능을 설치할 수 없습니다. TTY를 직접 사용하고 있습니다. – ggomesfe

답변

16

때때로 Mac에서는 터미널을 열고 VirtualBox 게스트에서는 SSH를 열면됩니다. 포커스를 바꾸는 번거 로움을 피할 수 있습니다.

6

방금 ​​같은 문제가있었습니다. 클립 보드 공유가 켜져 있는지 확인한 후 Ctrl + Shift + V를 눌러 데비안의 터미널에 붙여 넣습니다.

5

VirtualBox의 OS X과 Ubuntu간에 작업을 복사하고 붙여 넣기하는 방법에 대한 안내서가 나에게 실망 스러웠습니다. 어쩌면 누군가에게 도움이 질문 건너 오는 사람 :

http://blog.nostopbutton.com/2013/08/24/setup-copy-and-paste-between-os-x-and-linux-virtualbox/

+1

자습서에서는 X로 복사하여 붙여 넣기에 대해 설명하지만 OP에서는 GUI가없는 Linux 콘솔에 대해 묻는 중입니다. – duozmo

+0

좋은 가이드, kali linux는 어떨까요? –

+0

발견! 그것은 비틀기 애플 리케이션하에 있었다 –

2

먼저
설치 고객 추가 CD (Devices->Insert Guest Additions CD image을).


그런 다음 다시 부팅 한 후, 버추얼 박스에 Vitualbox/Preferences/Input/Virtual Machine/Host Key Combination
에서 호스트 키

Shared Clipboard: Bidrectional

변경 VirtualBox를 Machine->Settings->General->Advanced으로 이동하여 설정 공유 활성화 클립 보드

다음 STH 다른 선택

키 매핑 : 내가 영어 (매킨토시) 키보드를 추가하는 cmd/ctrl 맵핑의
는 가장 편안한 솔루션 :

이동 나는 그것이 키보드에있을 수 있습니다 이전 버전에 맞춰 Ubuntu Settings->Text Entry
(을 것 같다 레이아웃 설정)
Input sources to use: 히트에서 플러스 (+)
내가 5.0.4

,369 버추얼 박스에 우분투 14.04.3 LTS 64 비트에있어 English (Macintosh)

를 추가

0

조립했습니다 a page describing how to do this

짧은 버전은 AppleScript와 사용자 정의 키보드 단축키를 사용하여 수행 할 수 있습니다.

애플 스크립트는 :

on run {input, parameters} 
    set input to input as text 
    tell application "System Events" 
     repeat with currentChar in the characters of input 
      set cID to id of currentChar 
      set used to false 
      repeat with r in {{48, 29}, {49, 18}, {50, 19}, {51, 20}, {52, 21}, {53, 23}, {54, 22}, {55, 26}, {56, 28}, {57, 25}, {45, 27}, {46, 47}, {47, 44}, {61, 24}} 
       if first item of r is equal to cID then -- 0-9 -./= 
        key code (second item of r) 
        set used to true 
       end if 
      end repeat 
      repeat with r in {{42, 28}, {43, 24}} -- *+ 
       if first item of r is equal to cID then 
        key code (second item of r) using shift down 
        set used to true 
       end if 
      end repeat 
      if not used then 
       keystroke currentChar 
      end if 
     end repeat 
    end tell 
    return input 
end run 

이 스크립트는 어리석게 붙여 넣기를 방지 암호 필드를 물리 치고 유용합니다.

0

나는 가상 머신이 PuTTY, FileZilla 등으로 연결된 윈도우 시스템에서 우분투를 사용한다.

사용하지 않음 (기본 버추얼 콘솔)

다음

이 얼마나 할 수 있습니다 처음부터 설정 당신 :

### Setup Virtualbox: 
    https://www.virtualbox.org/wiki/Downloads 
    install ubuntu from their website 
### Launch Ubuntu from Virtualbox Console: 
    sudo apt-get install openssh-server 
    sudo systemctl start ssh 
    sudo systemctl status ssh 
    netstat -tulpn 
     # see ubuntu port 22 open and ssh running 
    sudo poweroff 
### Virtualbox: 
    settings - network - Advanced - Adapter Type: PCNet Fast 3 - Port Forwarding 
    Name: SSH, Protocol: TCP, Host Port (Windows): 3022, Guest Port (Ubuntu): 22 
    right click - start - headless start 
### PuTTY: 
    Seesion: Localhost Ubuntu: <your_user> -p 
     Host: <your_user>@127.0.0.1 
     Port: 3022 
    Window - Colums: 130, Rows: 24 
    Scrollback lines: 10000 
    Appearance - Cursor: Vertical + Blinks 
    Font Courier New - Regular - 12px 
    Behaviour - Window Title: Localhost Ubuntu 
    Full screen on ALT + ENTER 
    Connection Data - Auto login Username: <your_user> 
    Session - SAVE! 

### FTP: 
    Host: localhost 
    Port: 3022 
    SFTP (SSH FTP) 
    Logon Type: normal 
     <your_user> 
     <pass> 
    Transfer settings: limit max. conenction: 4 

### Git BASH: 
    ssh -p 3022 <your_user>@localhost 

### Enable SSH Root Login: (Use only on localhost, security advice!) 
    # Set a password for root account first and then enable root account: 
     sudo passwd root 
     sudo passwd -u root 
     # Reverting Back: (lock the root account) 
      sudo passwd -l root 
    # Enable SSH root login: 
     sudo nano /etc/ssh/sshd_config 
      # PermitRootLogin prohibit-password 
      PermitRootLogin yes 
     sudo systemctl restart ssh 

### Virtualbox Windows Headless Start 
    # Make a .lnk shortcut with target or .bat batch file 
    "C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" startvm "UbuntuMin" --type headless 
    "C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" controlvm "UbuntuMin" poweroff 
    Add shortcuts to start menu -> ubuntu START & STOP - change .ico - right click - pin to start 
관련 문제