You are not logged in.

#1 2021-01-20 09:36:00

Snubbi
Member
From: Denmark
Registered: 2020-05-23
Posts: 13

[SOLVED]Copy text from an editor to VirtualBox under installation

I try to copy and paste from my PCinux installation. It took lof of time, because I had to enter all the commands by hand. I can not copy from the pluma editor and to VirtualBox with Ctrl+c and paste into VirtualBox with Ctrl+v. Is there a solution to this.

I use VirtualBox 6.1.16

Last edited by Snubbi (2021-01-22 11:01:36)


"Do not judge me by my successes, judge me by how many times I fell down and got back up again." - Nelson Mandela

Offline

#2 2021-01-20 09:59:07

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,783
Website

Re: [SOLVED]Copy text from an editor to VirtualBox under installation

What commands are you copying and pasting?


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#3 2021-01-20 10:20:10

Snubbi
Member
From: Denmark
Registered: 2020-05-23
Posts: 13

Re: [SOLVED]Copy text from an editor to VirtualBox under installation

All . Here are some examples from the beginning of the installation.

cfdisk /dev/sda

lsblk

mkfs.fat -F32 /dev/sda1

mkfs.ext4 /dev/sda2

mkfs.ext4 /dev/sda3

mount /dev/sda2 /mnt

mkdir /mnt/home

mount /dev/sda3 /mnt/home

mkdir /mnt/etc

genfstab -U -p /mnt >> /mnt/etc/fstab

pacstrap -i /mnt base

arch-chroot /mnt

pacman -S linux linux-firmware linux-lts linux-headers linux-lts-headers,

Etc

I want to copy because I write many times wrong. And then it takes a long time.

I want when it comes to installing physics on a machine. I want to do it with ssh, and it is also easier to use copy and paste with ssh

Last edited by Snubbi (2021-01-20 11:07:40)


"Do not judge me by my successes, judge me by how many times I fell down and got back up again." - Nelson Mandela

Offline

#4 2021-01-22 10:00:26

Snubbi
Member
From: Denmark
Registered: 2020-05-23
Posts: 13

Re: [SOLVED]Copy text from an editor to VirtualBox under installation

Is there no one who has a solution to this. It will help me a lot if anyone has the solution.


"Do not judge me by my successes, judge me by how many times I fell down and got back up again." - Nelson Mandela

Offline

#5 2021-01-22 10:08:42

progandy
Member
Registered: 2012-05-17
Posts: 5,184

Re: [SOLVED]Copy text from an editor to VirtualBox under installation

For copy/paste to work, the guest additions have to be installed. I think that doesn't work too well during the arch linux setup.

You can possibly create a global shortcut on your desktop environment to type the clipboard contents with xdotool and xsel/xclip
https://gist.github.com/ethack/110f7f46 … 8e6cd1c4cb
https://github.com/POMATu/xdotool-type-clipboard

You could also set up your virtual machine so it is reachable from your host, set a root password, allow root ssh login, start the ssh service. and then use ssh.

Last edited by progandy (2021-01-22 10:16:20)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |

Offline

#6 2021-01-22 10:59:56

Snubbi
Member
From: Denmark
Registered: 2020-05-23
Posts: 13

Re: [SOLVED]Copy text from an editor to VirtualBox under installation

progandy wrote:

You could also set up your virtual machine so it is reachable from your host, set a root password, allow root ssh login, start the ssh service. and then use ssh.

Thank you very much. You led me on the way and found this on google

Last edited by Snubbi (2021-01-22 11:00:47)


"Do not judge me by my successes, judge me by how many times I fell down and got back up again." - Nelson Mandela

Offline

Board footer

Powered by FluxBB