The command
Allows us to cpature screenshot of our screens from the command line itself and it is a pretty flexible commnad too . If just the command is exectued with no arguments, the whole screen is captured and the screenshot gets saved in the folder, with the name having the date and time when it was cpatured.
d
If we want to save the file to with a specific name we can pass the command line option -f , we can also define the path along with the name to change the folder into which it will get saved.
The above command will save the screenshot in folder Docments under the home folder with the name my_screenshot.
The option -c on the other hand, will not save the file at all, instead it copies the screenshot to the clipboard, which we can paste directly into a document or presentation etc.
Instea of capturing the full screen, if we need to capture a specific area on the screen we can pass the optinon -a
This will allow us to choose the area that has to be captured using our mouse.The -a option combined with -f option will allow us to save the chosen area in the required fodler with the required name.
We can also cause the screenshot to be cpatured after a certain delay from the time the command is executed using the option -d along with the delay in seconds.
The above command will cause a screenshot to be captured after a delay of 10 seconds. The -d and -a option can not be passed at the same time, but -f can be passed with -d to save the screenshot in the required destination.
The current active window can be captured using the option -w, and the while capturing the active window, if we do not want the border of the window it can be removed using the option -B.
Pages
▼
Disable gnome extenstions from command line, to workaround a login loop
Some gnome extenstions can cause ubuntu to go into a login loop, causing it to keep showing the login screen every time you login. The only workaround is to disable the extension which is causing the login loop from a command line login.
From the GUI screen type
Login by providing the correct credentials.
To see all a list of all the extentions, run the command
To disable the extensions, run the command.
Try logging in after disabling one extenstion at a time, and you should be able to figure out the one causing the login issue. Keep that disabled untill you can find an upgrade which resolves the issue.
Login by providing the correct credentials.
To see all a list of all the extentions, run the command
To disable the extensions, run the command.
Try logging in after disabling one extenstion at a time, and you should be able to figure out the one causing the login issue. Keep that disabled untill you can find an upgrade which resolves the issue.