logs archiveIRC Archive / Freenode / #centos / 2015 / October / 1 / 1
NuxRo
dionysus69: nmcli (google for more options)
dionysus69
hmm ok thanks :)
NuxRo: its a cool tool hehe thats what I was looking for, strangely after googling 4-5 times this didnt pop up
NuxRo
cool :)
in EL7 there might also be networkmanager-tui or smth like that (not a user)
dionysus69
I ran yum clean all and now I am getting error saying could not retrie mirrorlist ....
how do I simply get back the stock mirrorlist and install Development Tools? I tried yum groupinstall "Development Tools", it was trying stuff but failing to download half of everything
samba35
how do i disable firewall and iptables on centos7
Bahhumbug
You don't.
You learn to manage it properly.
samba35
ok
Bahhumbug
@firewalld
centbot
For more information on firewalld please see https://fedoraproject.org/wiki/FirewallD and https://fedoraproject.org/wiki/Features/FirewalldRichLanguage
         

Bahhumbug
iptables is the same as it ever was; man iptables for a start, upstream netfilter documentation for all the gory details.
samba35
thanks
how do i allow port on all networks
Motoko
samba35, can you explain?
samba35
how to allow all traffice on all ports
Motoko
You could just disable the local firewall.
I do not recommend that.
Evolution
samba35: it's far better to configure the firewall properly.
otherwise you might as well leave your windows and doors to your house unlocked and open while you're gone
samba35
:)
but now :(
chder
firewall-cmd --add-port=12345/tcp ; firewall-cmd --add-port=12345/tcp --permanent ; man firewall-cmd
samba35
thanks
anna`
samba35 https://abjt.uk/firewalld-centos-7 where [ ] is some value
msocorcim
chder: if I understand correctly firewald needs to be restarted if you only add --permanent
if the command is run both with and without --permanent restarting firewalld is avoided
chder
Basically.
--permanent writes to disk. Without sets live config.
msocorcim
someone has requested on bugzilla for --permanent to also affect the live rules, but I'm not sure that's a good idea
my recent interest in firewall-cmd comes from problems getting local port redirection to work
urbanendeavour
does anyone know what would cause yum install or update to hand 2nd to last every time I do anything? A crtl-c and repeat the command it works?
hang not hand
msocorcim
urbanendeavour: man yum -> -d, --debuglevel=[number]
urbanendeavour
msocorcim: thanks
Micc
where can I get mkpasswd that lets me create SHA-512 passwords for centos 7?
Bahhumbug
openssl will do it.
'mkpasswd' generally just creates random plaintext strings for use as passwords; it doesn't care about hashes.
Micc
If I want to generate an encrypted password to use for a user in centos, what encryption would I use?
This ansible bootstrap video is for ubuntu I think, so I'm having a hard time adapting it to centos.
billings
Micc: SHA-512?
man 3 crypt
         

Micc
openssl doesn't support sha
Well, that will work I suppose. Wouldn't take long to write a simple command line app in c.
billings
you want to create the SHA-512 shadow hash from a random string?
I don't understand what you're doing
Micc
I want to generate the SHA-512 shadow has from the password I want to set.
billings
why not just pre-generate it?
Micc
I don't understand what you mean. I thought that was what I'm trying to do.
Bahhumbug
perl -e 'print crypt("password","\$6\$saltsalt\$") . "\n"'
Micc
But I suppose I really don't even need a password if I'm going to be using ssh keys.
Bahhumbug, that works, but the result doesn't look like SHA-512.
Oh, I see the salt string contains info in it.
That's it, thanks.
PryMar56
SLT=$(cat /dev/urandom | head -c12 | base64);perl -e 'print crypt("testing","\$6\$$SLT\$"),"\n"'
Micc
PryMar56, doesn't look like it's using the SLT variable properly. it comes out the same each time.
PryMar56
Micc, yes its not right with SLT
Micc
if I echo $SLT it is different.
Maybe I need to do "$SLT"
I got it
Bahhumbug
'' prevents variable expansion.
Micc
Bahhumbug, yeah I did '$SLT'
PryMar56
Micc $SLT passed as argument
SLT=$(cat /dev/urandom | head -c12 | base64);perl -e 'print crypt("testing","\$6\$$ARG[0]\$"),"\n"' $SLT
ARGV[0]
Bahhumbug
perl -e 'print crypt("testing","\$6\$$ARG[0]\$"),"\n"' $(cat /dev/urandom | head -c12 | base64)
That should work as well.
PryMar56
bingo
Micc
thanks guys
moetunes
the centos7 installer does't show any existing partitions for me to overwrite just the free space on the disk. Is that normal?
Bahhumbug
(Action) reserves comment on the abomination known as anaconda in the interests of world peace
moetunes
heh I thought it was a bit off
billings
it depends on what your partiitons look like
sartan
for imaging have any of you guys done usb->pxe instead of bios pxe?
Evolution
sartan: sort of...
sartan
experimenting with gpxe right now....
Evolution
sartan: that's a bit what boot.centos.org should do.
sartan
having a complex issue where dot1x enabled ports aren't playing nice with pxe. have to do dot1x first, then if that times out after 30 seconds, do mac auth bypass which then allows pxe bootingg. unfortunately bios pxe doesn't wait 30 seconds, only about 15, so imaging anything doesn't work. =(
trying to find workarounds
ipxe to the rescue :)
Bahhumbug
iPXE ftw
funfunctor
Hi
Is there a easy way to restore a installation to a known package list, i.e. a minimum install?
Bahhumbug
Yep. Reinstall.
funfunctor
Sure
but if I get yum to run a ks file with some @meta-packages defined will it remove everything else
i.e. overlay the system
fenrus02
sudo yum install some-package @some-group .. works fine.
you can put your package listing into a file, and install that way with part of 'yum shell file-name' .. read the man page or you will get it wrong.
funfunctor
fenrus02: thanks yes, I know about this.. my question is more about the removal of what is not specified
i.e. I would like to recontextualise a VM into another
Bahhumbug
man show-installed
Use the output to feed straight into yum or a ks for the other systems
And to head off the next question: it's in yum-utils
fenrus02
see also, yum option named clean_requirements_on_remove ..
ChibaPet
Is the 6.7 minimal boot ISO suitable for booting a UEFI PC from a USB stick? I've written it to two sticks and it doesn't show up as an option.
Evolution
7.x handles efi much better than 6.x
ChibaPet
Yeah, but systemd. :/
« prev 1 2 3 4 5 6 7 next »