Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to copy code iduring installation in vitualbox to forum
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
gentoouser212
n00b
n00b


Joined: 12 Sep 2021
Posts: 43

PostPosted: Sun Sep 12, 2021 8:50 am    Post subject: How to copy code iduring installation in vitualbox to forum Reply with quote

Hello, i'm new to this forum and to linux, especially gentoo and to IT programming stuff. I've already installed gentoo, following official guide on virtualbox and decided to install once again. This is offtopic covering my problem, so id rather start with another one. How to copy text code from installation environment from virtualbox to here, so that i could post my next problem to the next topic?
For example
Code:
Total: 3 packages (3 reinstalls), Size of downloads: 0 KiB
etc...
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30905
Location: here

PostPosted: Sun Sep 12, 2021 9:53 am    Post subject: Reply with quote

You can use wgetpaste and report the tiny url that return.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30905
Location: here

PostPosted: Sun Sep 12, 2021 9:54 am    Post subject: Reply with quote

Moved from Documentation, Tips & Tricks to Other Things Gentoo.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Sun Sep 12, 2021 10:50 am    Post subject: Reply with quote

You can SSH into your installation - regardless where it is, virtualbox or in a remote location, and use your mouse as usual to copy/paste from terminal window.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
gentoouser212
n00b
n00b


Joined: 12 Sep 2021
Posts: 43

PostPosted: Sun Sep 12, 2021 12:24 pm    Post subject: Reply with quote

Jaglover, so i emerged sshd by entering emerge --ask --changed-use net-misc/openssh and entered every command down the page https://wiki.gentoo.org/wiki/SSH and whats gonna happen? I still cant copy it from the terminal to windows but i can select, right click and there is a paste text in the terminal and not on windows still.What exactly should i do to SSH?
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30905
Location: here

PostPosted: Sun Sep 12, 2021 12:35 pm    Post subject: Reply with quote

You should run the daemon on gentoo and from Windows you can connect to the VM via ssh with a program like putty.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
gentoouser212
n00b
n00b


Joined: 12 Sep 2021
Posts: 43

PostPosted: Sun Sep 12, 2021 1:26 pm    Post subject: Reply with quote

ok, ive installed putty, run rc-service sshd, run putty by entering ip address of my vm, still cant do copy. Damn i didnt know this would go so far
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Sun Sep 12, 2021 2:31 pm    Post subject: Reply with quote

I don't have PuTTY, but a web search tells it is possible.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
gentoouser212
n00b
n00b


Joined: 12 Sep 2021
Posts: 43

PostPosted: Sun Sep 12, 2021 2:42 pm    Post subject: Reply with quote

putty asks me for a login and passwd so i entered login its livecd but what is the password?I tryed to change the passwd in gentoo whether its root or non-root and iafter entering passwd in putty it tells me its wrong
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30905
Location: here

PostPosted: Sun Sep 12, 2021 4:16 pm    Post subject: Reply with quote

For connect directly from root you should add line PermitRootLogin yes in /etc/ssh/sshd_config and restart sshd service.
Remember to remove this line when you are done since it is not safe to leave remote access to the root user.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
gentoouser212
n00b
n00b


Joined: 12 Sep 2021
Posts: 43

PostPosted: Sun Sep 12, 2021 7:12 pm    Post subject: Reply with quote

its already been set to permitrootlogin yes, i just get "permission denied" when entering passwd in putty
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Sun Sep 12, 2021 7:24 pm    Post subject: Reply with quote

Many ways to skin this cat. For instance, add an user in your liveCD, set password and use this account to log in, then 'su -' or 'sudo -i'.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
gentoouser212
n00b
n00b


Joined: 12 Sep 2021
Posts: 43

PostPosted: Sun Sep 12, 2021 7:32 pm    Post subject: Reply with quote

to add user i need first chroot then root #useradd -m -G users,wheel,audio -s /bin/bash larry
root #passwd larry?
Back to top
View user's profile Send private message
gentoouser212
n00b
n00b


Joined: 12 Sep 2021
Posts: 43

PostPosted: Sun Sep 12, 2021 7:42 pm    Post subject: Reply with quote

ok so i did use root #useradd -m -G users,wheel,audio -s /bin/bash larry
root #passwd larry
and STILL password denied
Back to top
View user's profile Send private message
gentoouser212
n00b
n00b


Joined: 12 Sep 2021
Posts: 43

PostPosted: Sun Sep 12, 2021 7:44 pm    Post subject: Reply with quote

*not password but ACCESS denied and whatever the login is after i enter password it outputs me ACCESS denied
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Sun Sep 12, 2021 7:45 pm    Post subject: Reply with quote

Perhaps you have password based logins disabled, turn it on.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
gentoouser212
n00b
n00b


Joined: 12 Sep 2021
Posts: 43

PostPosted: Sun Sep 12, 2021 7:54 pm    Post subject: Reply with quote

you mean in /etc/ssh/sshd_config password authentication?
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Sun Sep 12, 2021 8:01 pm    Post subject: Reply with quote

Code:
PasswordAuthentication yes

You are not doing all this in chroot, I hope?
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
gentoouser212
n00b
n00b


Joined: 12 Sep 2021
Posts: 43

PostPosted: Sun Sep 12, 2021 8:02 pm    Post subject: Reply with quote

that one was in chroot
Back to top
View user's profile Send private message
gentoouser212
n00b
n00b


Joined: 12 Sep 2021
Posts: 43

PostPosted: Sun Sep 12, 2021 8:04 pm    Post subject: Reply with quote

i chrooted and created login with passwd and then changed password authentication to yes
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Sun Sep 12, 2021 8:05 pm    Post subject: Reply with quote

So that's why nothing works. To run daemons which open ports under 1024 you need root rights. Your root in chroot has no root rights in host.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
gentoouser212
n00b
n00b


Joined: 12 Sep 2021
Posts: 43

PostPosted: Sun Sep 12, 2021 8:10 pm    Post subject: Reply with quote

hold on, to run daemon i need only these commands?
root #rc-update add sshd default

root #rc-service sshd start
Back to top
View user's profile Send private message
Jaglover
Watchman
Watchman


Joined: 29 May 2005
Posts: 8291
Location: Saint Amant, Acadiana

PostPosted: Sun Sep 12, 2021 8:13 pm    Post subject: Reply with quote

You need to start the daemon in host, that's all. It may be already running. Then log in over SSH and use the same chroot command you used previously to get into your Gentoo install. No need to do all the mounting again.
_________________
My Gentoo installation notes.
Please learn how to denote units correctly!
Back to top
View user's profile Send private message
gentoouser212
n00b
n00b


Joined: 12 Sep 2021
Posts: 43

PostPosted: Sun Sep 12, 2021 8:23 pm    Post subject: Reply with quote

how do i login over ssh? i havnt done it before i guess
Back to top
View user's profile Send private message
gentoouser212
n00b
n00b


Joined: 12 Sep 2021
Posts: 43

PostPosted: Sun Sep 12, 2021 8:25 pm    Post subject: Reply with quote

Connecting to a distant SSH server that is?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum