Rāda ziņas ar etiķeti gnome. Rādīt visas ziņas
Rāda ziņas ar etiķeti gnome. Rādīt visas ziņas

otrdiena, 2021. gada 15. jūnijs

Managing LVM Snapshots/ recording desktop on ubuntu / modified pnmixer volume slider for openbox tint2

 https://wiki.learnlinux.tv/index.php/Managing_LVM_Snapshots_on_Arch_Linux

ffmpeg -video_size 1366x768 -framerate 30 -f x11grab -i :0.0+0,0 -f pulse -ac 2 -i 0 -c:v libx264rgb -crf 0 -preset ultrafast sample.mkv 


to convert to mp4 - ffmpeg sample.mkv sample.mp4







to modify pnmixer yourself, install glade, download pnmixer from github -  https://github.com/nicklan/pnmixer

the glade GUI will help You modify it, otherwise You can download my modified version from - https://drive.google.com/file/d/1ob19nR7pZL2tfs_wDV3bQscn-WL3Y3Rv/view?usp=sharing

You will need libnotify-dev libasound2-dev


After compiling pnmixer with glade,You copy binary and add script that uses files located on Downloads folder (where You stored unarchieve pnmixer-master)

echo -e '#!/bin/bash\ncd ~/Downloads/pnmixer-master/build/ && ./src/pnmixer && cd' | sudo tee /usr/bin/pmx && sudo chmod +x /usr/bin/pmx


create system wide shortcut -  sudo geany ~/.local/share/applications/pmx.desktop 


[Desktop Entry]
NotShowIn=Unity;GNOME;
Name=Files
Comment=Access and organize files
# Translators: Search terms to find this application. Do NOT translate or localize the semicolons! The list MUST also end with a semicolon!
Keywords=volume slider;
Exec=pmx
# Translators: Do NOT translate or transliterate this text (this is an icon file name)!
Icon=org.gnome.Nautilus
Terminal=false
Type=Application
StartupNotify=true
Categories=GNOME;GTK;Utility;Core;
X-GNOME-UsesNotifications=true
Actions=new-window;
X-Unity-IconBackgroundColor=#af4853
X-Ubuntu-Gettext-Domain=nautilus

X-AppStream-Ignore=true

[Desktop Action new-window]
Name=New Window
Exec=pmx






Add shortcut to Tint2 
sudo geany ~/.config/tint2/tint2rc 

 launcher_item_app = pmx.desktop

pirmdiena, 2021. gada 14. jūnijs

Make Nautilus 3.26.4 for ubuntu 18.04 log copy/move/delete/rename actions. (UPDATED SECOND TIME) HIGHLY EXPERIMENTAL

I PERSONALLY THINK VANILLA VERSION ON UBUNTU IS FAILURE SO THIS ARTICLE DOES NOT MAKE A SENSE UNTIL OPENSOURCE COMMUNITY FIXES NAUTILUS ITSELF ON ANY DISTRO, BUT CMMON.




First of all, this Nautilus version will use Vanilla theme. (Might fix the styling issues for ubuntu 18.04 later.) Second of all, it does not log location of files that are renamed using it. Third of all, logged files have missing extensions. (So far these are only bugs there is to this code). So while using this version, I take no responsibility over it's doings as it is simply few lines of code added to few functions - IN NUTSHELL - https://paste.ubuntu.com/p/PvpBM6dMw5/

Link to flatpak file (org.gnome.NautilusDevel.flatpak)- 

https://drive.google.com/file/d/1sgXckMoXQmfm38nEfqWJ-k0OGDH17Tiv/view?usp=sharing


TO RUN YOUR NAUTILUS FLATPAK OR BUILD IT BY GNOME-BUILDER YOU NEED TO INSTALL FLATPAK ETC but ONCE YOU HAVE BUILDER INSTALLED WITH WORKING BUILDED APP YOU CAN GET APPLICATION THAT DOES NOT NEED FLATPAK - https://stackoverflow.com/questions/60800783/can-gnome-builder-actually-produce-something-else-than-flatpaks

sudo apt install flatpak

flatpak remote-add --if-not-exists --user flathub https://flathub.org/repo/flathub.flatpakrepo

flatpak install flathub org.gnome.Platform//3.28\

sudo flatpak --user install org.gnome.NautilusDevel.flatpak






TO REMOVE FLATHUB - flatpak remote-delete flathub

IF EVERYTHING GOES WRONG:

flatpak uninstall --unused

sudo apt-get remove --autoremove flatpak

sudo apt-get purge flatpak
sudo rm -rf /var/lib/flatpak $HOME/.local/share/flatpak



To run Your Nautilus flatpak - flatpak run org.gnome.NautilusDevel . Log files are saved under /home/username/ directory.

Remember, this is flatpak and it will not replace original system wide used Nautilus, SO after doing this, original system wide used Nautilus, will still not have these features, but they will be USABLE ONLY FROM flatpak version.

In case You want to compile, follow article (There are some tips on creating system wide shortcuts at the end of it, and running Your flatpak Nautilus - >



 For logging copy/move/delete functionality, here is the  - nautilus-file-operations.c   file -  https://paste.ubuntu.com/p/kRhQFtZj4Q/

For logging renaming - here is the - nautilus-files-view.c file -

https://paste.ubuntu.com/p/PxwnBRQYmR/

(logging renaming does not include location of where files are renamed, or which ones are renamed)

Install gnome-builder - (don't run as root)

 flatpak install --user --from https://flathub.org/repo/appstream/org.gnome.Builder.flatpakref
 flatpak run --user org.gnome.Builder Install gnome-builder -

Run gnome-builder -

flatpak run org.gnome.Builder -vvvv

Select Nautilus and choose this repository - 

VANILLA VERSION - 

https://gitlab.gnome.org/chrism/nautilus.git

UBUNTU VERSION - 

https://git.launchpad.net/~ubuntu-desktop/ubuntu/+source/nautilus


Modify nautilus-file-operations.c and nautilus-files-view.c  in source file directory (src).


Build and Export bundle.
 sudo apt install gnome-software-plugin-flatpak


 sudo flatpak install org.gnome.NautilusDevel.flatpak





to run Your version of nautilus with flatpak - flatpak run org.gnome.NautilusDevel 









create system wide shortcut -  sudo geany ~/.local/share/applications/NEWNAUTILUS.desktop 


[Desktop Entry]
NotShowIn=Unity;GNOME;
Name=Files
Comment=Access and organize files
# Translators: Search terms to find this application. Do NOT translate or localize the semicolons! The list MUST also end with a semicolon!
Keywords=folder;manager;explore;disk;filesystem;
Exec=flatpak run org.gnome.NautilusDevel 
# Translators: Do NOT translate or transliterate this text (this is an icon file name)!
Icon=org.gnome.Nautilus
Terminal=false
Type=Application
StartupNotify=true
Categories=GNOME;GTK;Utility;Core;FileManager;
X-GNOME-UsesNotifications=true
Actions=new-window;
X-Unity-IconBackgroundColor=#af4853
X-Ubuntu-Gettext-Domain=nautilus

X-AppStream-Ignore=true

[Desktop Action new-window]
Name=New Window
Exec=nautilus --new-window



Add shortcut to Tint2 
sudo geany ~/.config/tint2/tint2rc 

 launcher_item_app = NEWNAUTILUS.desktop