मै मैक का उपयोग कर रहा हूं और मैंने वर्चुअल बॉक्स पर डेबियन लिनक्स स्थापित किया है। मैं वर्चुअल बॉक्स में टर्मिनल लिनक्स में अपने मैक से एक यूआरएल कॉपी करना चाहता हूं। मैं उसे कैसे कर सकता हूँ?मैक कीबोर्ड के साथ वर्चुअल बॉक्स में टर्मिनल लिनक्स पर पेस्ट कैसे करें?
उत्तर
कभी-कभी, मैक पर टर्मिनल खोलना और वर्चुअलबॉक्स अतिथि के लिए एसएसएच खोलना आसान है। जो फोकस बदलने की बहुत परेशानी से बचाता है, इत्यादि
मुझे बस एक ही समस्या थी। यह सुनिश्चित करने के बाद कि क्लिपबोर्ड शेयरिंग चालू है, Ctrl + Shift + V डेबियन में टर्मिनल में पेस्ट करने के लिए।
मैंने वर्चुअलबॉक्स पर ओएस एक्स और उबंटू के बीच काम करने वाली कॉपी-एंड-पेस्ट प्राप्त करने के लिए एक गाइड लिखा है क्योंकि यह मुझे निराशाजनक कर रहा था। किसी को मदद की हो सकता है कि जो इस सवाल भर आता है:
http://blog.nostopbutton.com/2013/08/24/setup-copy-and-paste-between-os-x-and-linux-virtualbox/
आपका ट्यूटोरियल एक्स के तहत कॉपी और पेस्ट पर चर्चा करता है, जबकि ओपी लिनक्स कंसोल के बारे में पूछताछ नहीं करता है। – duozmo
अच्छी गाइड, काली लिनक्स के बारे में क्या? –
इसे मिला! यह tweaks ऐप के तहत था –
पहले
स्थापित अतिथि परिवर्धन सीडी (Devices->Insert Guest Additions CD image
)।
सक्रिय क्लिपबोर्ड साझा करने
फिर एक रिबूट के बाद, Virtualbox में Machine->Settings->General->Advanced
के पास जाकर सेट
Shared Clipboard: Bidrectional
VirtualBox बदलें होस्ट कुंजी
Vitualbox/Preferences/Input/Virtual Machine/Host Key Combination
में तो sth अलग चुनें ⌘
कुंजी मानचित्रण:
मुझे अंग्रेजी (Macintosh) कुंजीपटल जोड़ने के लिए cmd/ctrl
मानचित्रण के लिए सबसे अधिक आरामदायक समाधान :)
जाओ Ubuntu Settings->Text Entry
(मैं पुराने संस्करणों यह कीबोर्ड में हो सकता है में अनुमान लगाना हो रहा है लेआउट सेटिंग)
Input sources to use:
हिट के तहत प्लस (+)
English (Macintosh)
मैं VirtualBox में 5.0.4
उबंटू 14.04.3 LTS 64 बिट पर हूँ जोड़नेमैंने एक साथ रखा है 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
यह स्क्रिप्ट भी पासवर्ड फ़ील्ड जो मूर्खता चिपकाने रोकने को हराने के लिए उपयोगी है।
मैं अपनी विंडोज मशीन से यूबंटू का उपयोग वर्चुअलबॉक्स के साथ पुटी, फाइलज़िला आदि से जुड़ा हुआ हूं।
(डिफ़ॉल्ट virtualbox कंसोल का उपयोग नहीं)
यहाँ है कैसे आप कर सकते हैं खरोंच से सेटअप तुम्हारा:
### 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
यह एक टर्मिनल एमुलेटर विंडो, या एक वास्तविक टर्मिनल है? (यदि यह पूर्व है, तो क्लिपबोर्ड साझा करना चालू करें, और कमांड + शिफ्ट + सी दबाएं।) – Ryan
क्या आपने अतिथि परिवर्धन स्थापित किए हैं? इसके अलावा, क्या आप एक टीटीवी विंडो या टर्मिनल एमुलेटर के बारे में बात कर रहे हैं? – Blender
मैं अतिथि परिवर्धन स्थापित नहीं कर सका क्योंकि मेरे डेबियन में X.Org नहीं है। मैं सीधे टीटीवी का उपयोग कर रहा हूँ। – ggomesfe