Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Accidentally removed part of /etc
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
alinefr
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jul 2009
Posts: 113
Location: São Paulo, Brasil

PostPosted: Thu Jul 28, 2016 4:21 pm    Post subject: Accidentally removed part of /etc Reply with quote

I'm writing this from SystemRescueCD because my browsers are broken ("libstdc++.so.6 no such file or directory").

Still I don't have an overall view of the damage, but the immediate problem is that I can't build anything.

Code:

configure:3941: checking for x86_64-pc-linux-gnu-gcc
configure:3968: result: gcc
configure:4237: checking for C compiler version
configure:4246: gcc --version >&5
 * gcc-config: No gcc profile is active!
/usr/bin/gcc-config: line 72: /etc/env.d/gcc/config-x86_64-pc-linux-gnu: No such file or directory
gcc-config: error: could not run/locate 'gcc'
configure:4257: $? = 1
configure:4246: gcc -v >&5
 * gcc-config: No gcc profile is active!


At the moment I'm downloading stage3 tarball, so I can replace the contents for /etc/env.d. Is there any advice for this?
Back to top
View user's profile Send private message
bstaletic
Apprentice
Apprentice


Joined: 05 Apr 2014
Posts: 233

PostPosted: Thu Jul 28, 2016 5:14 pm    Post subject: Reply with quote

Check your gcc config using "gcc-config -l". Also try "qcheck". You'll probably have to find some binary packages too.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54096
Location: 56N 3W

PostPosted: Thu Jul 28, 2016 6:39 pm    Post subject: Reply with quote

alinefr,

In case of fire ... Break Glass
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
alinefr
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jul 2009
Posts: 113
Location: São Paulo, Brasil

PostPosted: Thu Jul 28, 2016 9:15 pm    Post subject: Reply with quote

Thanks for the tips. By moving the contents from stage3 to etc/env.d gcc is back working.

@NeadySeagoon, this rescue environment seems awesome.

I realized that /etc/runlevels is completely missing. After reinstalling openrc I need to tweak all stuff in /etc/conf.d, also restore network settings... I'm on the way to make it work but it needs a lot of (my) work.
Back to top
View user's profile Send private message
bstaletic
Apprentice
Apprentice


Joined: 05 Apr 2014
Posts: 233

PostPosted: Thu Jul 28, 2016 11:40 pm    Post subject: Reply with quote

alinefr wrote:
I realized that /etc/runlevels is completely missing. After reinstalling openrc I need to tweak all stuff in /etc/conf.d, also restore network settings... I'm on the way to make it work but it needs a lot of (my) work.


This has just reminded me of the time I had run "sudo rm -rf --no-preserve-root /" followed by an immediate <C-c>. It was fun figuring all affected packages.
Back to top
View user's profile Send private message
alinefr
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jul 2009
Posts: 113
Location: São Paulo, Brasil

PostPosted: Fri Jul 29, 2016 1:25 am    Post subject: Reply with quote

bstaletic wrote:
alinefr wrote:
I realized that /etc/runlevels is completely missing. After reinstalling openrc I need to tweak all stuff in /etc/conf.d, also restore network settings... I'm on the way to make it work but it needs a lot of (my) work.


This has just reminded me of the time I had run "sudo rm -rf --no-preserve-root /" followed by an immediate <C-c>. It was fun figuring all affected packages.


I did nearly this, but with. /etc as target. And it took me a second to realize that the keyboard was in qwerty instead of dvorak as I'm used to.

I'm rebuilding everything, otherwise I will never find out whats missing.
Back to top
View user's profile Send private message
bstaletic
Apprentice
Apprentice


Joined: 05 Apr 2014
Posts: 233

PostPosted: Fri Jul 29, 2016 9:25 am    Post subject: Reply with quote

alinefr wrote:
...I will never find out whats missing.


Code:
qcheck
can tell you which package is missing which files. It belong to portage-utils package.


EDIT:
Sorry for offtopic question. Are you by any chance a vim user? If you are, how's vim with dvorak?
Back to top
View user's profile Send private message
Syl20
l33t
l33t


Joined: 04 Aug 2005
Posts: 619
Location: France

PostPosted: Fri Jul 29, 2016 1:28 pm    Post subject: Reply with quote

alinefr wrote:
After reinstalling openrc I need to tweak all stuff in /etc/conf.d, also restore network settings... I'm on the way to make it work but it needs a lot of (my) work.

Oh, another mission for Captain Makebackups ! :D
Back to top
View user's profile Send private message
alinefr
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jul 2009
Posts: 113
Location: São Paulo, Brasil

PostPosted: Fri Jul 29, 2016 2:01 pm    Post subject: Reply with quote

bstaletic wrote:
alinefr wrote:
...I will never find out whats missing.


Code:
qcheck
can tell you which package is missing which files. It belong to portage-utils package.


I didn't knew about qcheck. Brillant!

bstaletic wrote:
EDIT:
Sorry for offtopic question. Are you by any chance a vim user? If you are, how's vim with dvorak?


You need to relearn vim as you learn dvorak, but it was easier than writing texts.

"hl " keys are in the position of "jp" in qwerty. "jk" in the same as "cv".
Some keys are more convenient positioned, like "wb" in the position of ",n".

There is a vim plugin which keeps the same keys as in qwerty except in INSERT mode but I decided to relearn the proper keys in dvorak.


Last edited by alinefr on Fri Jul 29, 2016 3:47 pm; edited 1 time in total
Back to top
View user's profile Send private message
alinefr
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jul 2009
Posts: 113
Location: São Paulo, Brasil

PostPosted: Fri Jul 29, 2016 2:13 pm    Post subject: Reply with quote

Syl20 wrote:
alinefr wrote:
After reinstalling openrc I need to tweak all stuff in /etc/conf.d, also restore network settings... I'm on the way to make it work but it needs a lot of (my) work.

Oh, another mission for Captain Makebackups ! :D


Haha! Yes, I do have backups for my home, but not for the system. I have to do something about it, at least for /etc.
Back to top
View user's profile Send private message
depontius
Advocate
Advocate


Joined: 05 May 2004
Posts: 3509

PostPosted: Fri Jul 29, 2016 3:18 pm    Post subject: Reply with quote

This sounds like a more general problem, but since the topic contained "/etc" I'll put in a plug for the "etckeeper" package. Put your /etc into git and push it up to the server for safekeeping - where the git repositories also get backed up onto removable media.
_________________
.sigs waste space and bandwidth
Back to top
View user's profile Send private message
alinefr
Tux's lil' helper
Tux's lil' helper


Joined: 05 Jul 2009
Posts: 113
Location: São Paulo, Brasil

PostPosted: Sat Jul 30, 2016 3:19 pm    Post subject: Reply with quote

So my system is back! I've lost a lot of configs, some of then very annoying, like font configuration.

depontius wrote:
This sounds like a more general problem, but since the topic contained "/etc" I'll put in a plug for the "etckeeper" package. Put your /etc into git and push it up to the server for safekeeping - where the git repositories also get backed up onto removable media.


Thanks @depontius, I will play around with etckeeper. It seems what I need.
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
Page 1 of 1

 
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