Posts

Showing posts from October 3, 2018

How to restore fedora when a terminal command removed everything and resulted in black screen

Image
Clash Royale CLAN TAG #URR8PPP up vote 1 down vote favorite I was using fedora 28 with cinnamon desktop environment. It also had gnome desktop environment. I ran a command something along the lines of sudo dnf remove gnome* which remove everything there was along with the terminal as the default was gnome-terminal. Now I can see an empty grey screen because I had auto-login enabled. I had only user account on the system. How can I restore the removed packages and get the system back without losing the data? fedora gnome cinnamon share | improve this question edited Sep 22 at 22:17 roaima 40.8k 5 47 111 asked Sep 22 at 21:38 Doc 109 2 add a comment  |  up vote 1 down vote favorite I was using fedora 28 with cinnamon desktop environment. It also had gnome desktop environment. I ran a command something along the lines of sudo dnf remove gnome* which remove everything there was along with the terminal as the de

How to script ranger to copy a file to another directory via python

Image
Clash Royale CLAN TAG #URR8PPP up vote 0 down vote favorite ranger is a command line file manager that can be extended with python. The commands.py file contains examples of the built in commands: https://github.com/ranger/ranger/blob/master/ranger/config/commands.py I can see how to delete files via self.fm.delete() and I have explored the fm.py file and don't see a function that looks to be exposed that would allow me to copy files in a straightforward way (but I'm not a python dev so maybe I don't understand it): https://github.com/ranger/ranger/blob/master/ranger/core/fm.py I just want a function that will copy the current selection to a ~/.directory/ . I know I could do this with a key mapping, but I want to do it in python so that I can extend it, but I can't get past this one basic step. python ranger share | improve this question asked Jan 20 '17 at 18:32 hermancain 699 6 12 add a comment  |  up v