Skip to content

Instantly share code, notes, and snippets.

@julianoborba
Last active February 12, 2017 16:16
Show Gist options
  • Select an option

  • Save julianoborba/997a3dd8b5b20a14921b to your computer and use it in GitHub Desktop.

Select an option

Save julianoborba/997a3dd8b5b20a14921b to your computer and use it in GitHub Desktop.
Verificar informações de hardware ------------------------------------------------------
# lspci -vv
https://www.linuxquestions.org/questions/linux-software-2/use-linux-to-determine-hardware-specs-427710/
----------------------------------------------------------------------------------------
Using Gnome's embedded screencast tool -------------------------------------------------
Gnome3 has already a screen recording functionality. Pressing Alt+Ctrl+Shift+R
recording will start. There should be a red icon on the message tray in the right-bottom
corner of your screen. If the message tray is hidden, Super+M will activate it.
Pressing the red icon will stop the recording. The video is saved in the Video directory on
your home directory on webm format.
https://fedoraproject.org/wiki/ScreenCasting
https://ask.fedoraproject.org/en/question/10272/how-can-i-capture-a-video-of-my-screen-in-fedora/
-- Aumentando o tempo da captura embutida no G3
Using dconf editor:
Type dconf-editor in a terminal;
Go to org->gnome->settings-daemon->plugins->media-keys and set the value of the property
max-screencast-length by double-clicking on the actual value (30)
Using the gsettings command:
Open a terminal and type:
gsettings set org.gnome.settings-daemon.plugins.media-keys max-screencast-length 45
This command set the value of screen maximum length screencast to 45 seconds.
http://antoine-schellenberger.com/linux/2014/11/03/change-default-screencast-duration-in-gnome-3.html
----------------------------------------------------------------------------------------
Montar HD externo cifrado com LUKS -----------------------------------------------------
lshw -short
cryptsetup luksOpen /dev/sdc2 luks-fedora
mkdir /mnt/luks-fedora
pvs
lvdisplay fedora_juliano-r-pc
mount /dev/fedora_juliano-r-pc/home /mnt/luks-fedora
----------------------------------------------------------------------------------------
Replicar um HD -------------------------------------------------------------------------
dd if=/dev/sdb of=/dev/sdd bs=64K conv=noerror,sync
ou
cat /dev/sdb >/dev/sdd
ou com root
sudo sh -c 'cat /dev/sdb >/dev/sdd'
pra listar as coisas... lsblk!
https://unix.stackexchange.com/questions/144172/full-dd-copy-from-hdd-to-hdd
----------------------------------------------------------------------------------------
Lista para "backup" de pacotes instalados ----------------------------------------------
rpm -qa > installed-software.bak
dnf -y install $(cat installed-software.bak)
https://www.nixtutor.com/linux/keep-a-backup-of-installed-packages/
----------------------------------------------------------------------------------------
Se o controle de brilho no Fedora não funcionar... -------------------------------------
nano /etc/default/grub
GRUB_CMDLINE_LINUX="... rhgb quiet acpi_backlight=vendor"
(ou acpi_backlight=video ou acpi_backlight=vendor ou acpi_backlight=native ou acpi_backlight=none)
grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
https://jamielinux.com/blog/cannot-adjust-screen-brightness-on-fedora/
----------------------------------------------------------------------------------------
Outros links
https://dnf.readthedocs.io/en/latest/command_ref.html#reinstall-command-label
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment