@fedora

Страница 1536 из 2988
Justin
05.02.2018
06:46:08
why dnf packages manager could not like pip
This is actually one thing Modularity plans to solve.

Daniel Andrei
05.02.2018
06:46:09
pip freeze > requirements.txt
it has that feature, and it's called dnf list

Charl
05.02.2018
06:46:53
Daniel Andrei
05.02.2018
06:47:39
how about pip install -r
you're gonna have to awk through that list to get only the 1st column, but you can dnf install then after cleaning up the list

Google
Daniel Andrei
05.02.2018
06:48:11
it requires a little manual job, but it gets the job done lol

Charl
05.02.2018
06:48:21
good plan

Daniel Andrei
05.02.2018
06:48:42
that's why I always suggest avoidig all the hassle by writing a simple Ansible playbook

you can restore your system in max. 5 min with an ansible-playbook playbook.yml

by the way, does dnf keep a history of installed packages, something like pacman does in the /var/log/pacman.log ?

Oh yeah, it does, and it's called dnf history

Daniel Andrei
05.02.2018
07:17:17
i will try it
you can find many examples on GitHub of people bootstrapping their Fedora systems with Ansible, there are many interesting playbooks in there ?

Daniel Andrei
05.02.2018
07:18:33
not only that, you can deploy your dotfiles (ie. .bashrc etc..)

Google
Charl
05.02.2018
07:19:28
good

thank u bro

Daniel Andrei
05.02.2018
07:19:47
welcome. As always you can find more details in their docs http://docs.ansible.com/ansible/latest/index.html

Michał
05.02.2018
07:20:49
I need to learn ansible sometime in the future, it looks interesting

Daniel Andrei
05.02.2018
07:21:23
Michał
05.02.2018
07:21:59
it's not hard, it's just plain yaml
yeah, but I guess it's not the format that's hard, but achieving some specific things using this format and what ansible gives you ;)

Charl
05.02.2018
07:22:02
seem's like kubernetes pod config file

Daniel Andrei
05.02.2018
07:22:19
Michał
05.02.2018
07:22:38
that's good, a documentation without examples is always offputting

Daniel Andrei
05.02.2018
07:22:39
that's good, a documentation without examples is always offputting
here's an example http://docs.ansible.com/ansible/latest/dnf_module.html#examples

pretty self-explanatory eh?

Michał
05.02.2018
07:24:10
looks... really nice. I'll have to set up a clean fedora in a docker and create an ansible playbook of what I always do on a clean install to make it mine :)

even though for my needs I guess a shell script would be fine too

Daniel Andrei
05.02.2018
07:24:46
I started with a shell script as well

Michał
05.02.2018
07:24:53
but where's a learning experience in that? I can already write a shell script, so it's not fun anymore

Daniel Andrei
05.02.2018
07:25:26
yeah, you'll hit a threshold sometime with the shell script

it'll become unmaintainable

here's my first shell script for provisioning everything lol https://github.com/dminca/dotfiles/blob/master/init It became bloated at some point, and decided to migrate to Ansible.

Michał
05.02.2018
07:27:06
I've heard that Ansible does not describe steps that have to be done, but a state that the system needs to be in, so if you'd add a new package to your playbook, all computers managed that way would only install what's missing. Is that true?

Google
247
05.02.2018
07:28:37
By the way

Voted 2 times, 1 for my wifi connection and the other one for my phone connection :p

Daniel Andrei
05.02.2018
07:29:35
cheater :P

well if it was permitted, I wouldn't call that cheating

more like a backdoor lol

or maybe a honeypot ? (getting suspicious)

Corey
05.02.2018
08:19:05
Ok why is my mom freaking our age asl for laspass to be setup then I did but she now screaming at me....

Laure
05.02.2018
08:19:39
Okay I am running to some issue.

anyone know is there a scured way to store a key on NFC tag and read i?

I use a respberry pi with a NFC tag reader to replace my car security system.

Laure
05.02.2018
08:20:37
Now it is the time to write the key code into my car.

Sheogorath
05.02.2018
08:32:33
It's a basic setup. It's a bit bloated but works pretty well.

Keep in mind with vscode it provides some non-free software on your system

Daniel Andrei
05.02.2018
08:45:28
I'd suggest you install Ansible via pip instead of dnf, as that's always the latest ?

For those who want to be inspired: https://github.com/sisheogorath/ansible-client
There https://github.com/SISheogorath/ansible-client/pull/14 ?

Sheogorath
05.02.2018
09:37:46
I'd suggest you install Ansible via pip instead of dnf, as that's always the latest ?
That's not a good idea, at least not in global context. And using dnf version is fine, as latest ansible isn't that much ahead.

Google
Sheogorath
05.02.2018
10:47:15
ah ok then, close that one
I'll make a proper reply :)

Tobias?
05.02.2018
10:50:41
Never install things your package manager offers trough pip

Fedora is working on (afaik) explicit dnf-pip integration to stop people from doing exactly that because its a horrendous practice.

And for a single persons pc you might not want the complexity (and beauty) of ansible, as a single shellscript would entirely suffice.

anyone know is there a scured way to store a key on NFC tag and read i?
There is no secure way, if its nfc there is always a way to extract it.

Admin
ERROR: S client not available

Daniel Andrei
05.02.2018
10:56:34
And for a single persons pc you might not want the complexity (and beauty) of ansible, as a single shellscript would entirely suffice.
You'll end up with an unmaintable 500 lines shell script eventually. Good luck with that lol

Tobias?
05.02.2018
10:57:24
Daniel Andrei
05.02.2018
10:58:05
I'm just gonna say there's no silver bullet for this one, everyone's free to use whatever they wish ?

Tobias?
05.02.2018
10:58:09
And i am getting paid to write ansible scripts fairly often and i still think for single person quick reinstall usage a shell script is often the faster and better choice

Daniel Andrei
05.02.2018
10:58:30
Tobias?
05.02.2018
10:58:42
^

Daniel Andrei
05.02.2018
10:58:59
no github?

thanks, I'm checking

Tobias?
05.02.2018
10:59:32
And even if i added gsettings changes and more then i'd only add it in a seperate codeblock

no github?
Lol no, thats only on my private gitlab and on my nextcloud

Google
Tobias?
05.02.2018
11:00:42
This way i have two places where its version history is preserved But yeah i should propably share a link so everybody can get the latest version simply (for gnome so far only)

Tobias?
05.02.2018
11:02:56
223 LOC, what I'd tell ya' ?
I can make it 5 LOC without comments.

But then you loose the readability of all the packages.

Daniel Andrei
05.02.2018
11:03:20
I can make it 5 LOC without comments.
how, makin' one-liners? To say goodbye readability

Tobias?
05.02.2018
11:03:26
Ahmetcan
05.02.2018
11:03:29
223 LOC, what I'd tell ya' ?
LOC != maintainability tho

Tobias?
05.02.2018
11:03:38
And again, LOC !== .. THAT.

Daniel Andrei
05.02.2018
11:03:44
lol

mmkay

the scripting era is gone my friends

now the Infrastructure as Code era begun

Tobias?
05.02.2018
11:04:34
Just because it has alot of LOC doesnt mean its unreadable or unmaintainable. And newsflash: if this was an ansible script guess what it'd have? twice the LOC because i still need to list all packages.

Daniel Andrei
05.02.2018
11:04:39
?

Tobias?
05.02.2018
11:04:59
Plus i'd need to teach people to first install ansible or add a start.sh to do so.

now the Infrastructure as Code era begun
Dont get me wrong, i love ansible. But for the purpose of a beginner friendly simple script to just add a ton of nifty extras fedora comes without by default a .sh is more than enough.

Daniel Andrei
05.02.2018
11:06:30
okay :)

V0iD
05.02.2018
11:31:02
hey ppl, i have lxqt and Budgie, which google phrase i should search for make a qt app looks like gtk in gtk DE?)

hm, wright question is a half of answer

ty guys

Страница 1536 из 2988