svētdiena, 2021. gada 13. jūnijs

HOW TO GREP ON WINDOWS / favorite wallpaper

If  You use command line You might want to know following commands using linux:


cd / ls (dir in windows) / pwd / uname -a / cp / rm / rmdir / chmod / chown / find


but one of the crazy features and all time needed features is searching text in files recursively (scanning through all the subfolders), and for linux it is grep -r "text you want to find". 

windows on other hand:

findstr /s /i STRING *.*

get-childitem -recurse FILENAME


this article is not going to be long or explanatory, but if You research these basic commands and learn how to use them while doing You computer tasks, You be upgrading Your intelligence and skill set, 

what I suggest is also, learning how to: compile c and c++ program's on linux and windows, learning to compile python, write html and php, JAVASCRIPT, learn some bash/cmd scripts

and overall, check my github account github.com/lv88h - projects like https://github.com/lv88h/GOING_DOWN_THE_RABBIT_HOLE_IN_PHP explain the algorithm that draws pixels in images on screen from such data types as arrays.

https://github.com/lv88h/game-controller - shows an example of how game controller or any controller might be written in code (in this following example the code is in javascript). 


How to open command line TTY if Ubuntu has been stuck to kill guilty processes? HOW TO START PC IN RECOVERY OR BIOS?

ESCAPE OR SHIFT WHILE STARTING - MORE ABOUT RECOVERY (https://www.maketecheasier.com/boot-recovery-mode-ubuntu/)


F2 FOR BIOS. 


You can get to tty3 by pressing Ctrl+Alt+F3, tty4 by pressing Ctrl+Alt+F4, tty5 by pressing Ctrl+Alt+F5 and tty6 by pressing Ctrl+Alt+F6.

You can then switch between tty3-6 by pressing Alt with the appropriate F-key.


Login with Your current username and password. Commands like killall geany, killall google-chrome, will likely kill the process. Also You can use htop. Inside htop, search for process name You wanna kill by F4, then press F9, press 9 (sigkill) and ENTER.



Finally, you can get back to the GUI with Alt+F1 for the login chooser or Alt+F2 for the logged-in user's desktop.


IF THE GUI been stuck try Ctrl+Alt+Backspace


  • Alt+SysRq+E send SIGTERM (termination) signal to all processes except mother init

sestdiena, 2021. gada 12. jūnijs

Install ubuntu 18.04

https://phoenixnap.com/kb/how-to-install-ubuntu-18-04

https://www.linuxtechi.com/ubuntu-18-04-lts-desktop-installation-guide-screenshots/


Create bootable Ubuntu USB stick

 https://ubuntu.com/tutorials/create-a-usb-stick-on-windows - windows        

create startup disk on ubuntu.

How to install openbox on ubuntu 18.04

sudo apt install openbox
 sudo apt install openbox-gnome-session 
sudo apt install xcompmgr 
sudo apt install gnome-screensaver
 sudo apt install obmenu

add apps with commands like pavucontrol, kill tint2, tint2 etc you want

 sudo apt install pavucontrol 
 sudo apt install tint2
sudo apt install feh

feh --bg-scale /home/ronalds/Pictures/pexels-photo-1260820.jpeg
 sudo geany /etc/xdg/openbox/autostart.sh 
add:
eval `cat $HOME/.fehbg` &
tint2 &


 sudo nautilus /usr/share/applications
 sudo geany ~/.local/share/applications/lockscg.desktop 

[Desktop Entry] Type=Application Name=lock screen Exec=gnome-screensaver-command -l 


sudo geany ~/.local/share/applications/show-desktop.desktop 

[Desktop Entry] Type=Application Name=Show Desktop Icon=desktop Exec=xdotool key --clearmodifiers Super+d 


sudo geany ~/.config/tint2/tint2rc 

add:

 launcher_item_app = show-desktop.desktop
 launcher_item_app = nautilus.desktop 
launcher_item_app = gnome-terminal.desktop
 launcher_item_app = pavucontrol.desktop
 launcher_item_app = google-chrome.desktop
 launcher_item_app = lockscg.desktop


DON't forget to switch off going to hibernation on closing the lid, in the gnome-desktop-environment, if You don't really like Your laptop doing that in Openbox session. 

pirmdiena, 2020. gada 2. marts

HOW TO GET Hardware accelerated CHROMIUM TO FIX VIDEO ISSUES IN CHROMIUM CHOPPY 1080P 60FPS video playback WITH INTEL HD 3000 on Ubuntu 18.04!


sudo apt install gstreamer1.0-vaapi libvdpau-va-gl1 i965-va-driver i965-va-driver-shaders


 Install Chromium with VA-API support.


sudo add-apt-repository ppa:saiarcot895/chromium-beta
sudo apt-get update
sudo apt install chromium-browser