Posts

Showing posts with the label KDE Neon

Font too small in KDE Timer Widget

sudo nano /usr/share/plasma/plasmoids/org.kde.plasma.timer/contents/ui/TimerView.qml change readonly property int digitH: ((height / 2) * digits < width ? height : ((width - (digits - 1)) / digits) * 2); to readonly property int digitH: 14  14 is the font size, change to any size you want.   To add more timing: sudo nano /usr/share/plasma/plasmoids/org.kde.plasma.timer/contents/config/main.xml At line <default>30,60,120,300,450,600,900,1200,1500,1800,2700,3600</default> add any value in seconds  To use dark theme, create folder /usr/share/plasma/desktoptheme/YOUR_THEME/widgets copy file /usr/share/plasma/desktoptheme/oxygen/widgets/timer.svgz

Run MongoDB query form terminal

 mongo localhost:27017/db_name script_name.js > result

Add permanent alias

 Add at the end of file ~/.bashrc alias alias_command 'real command' To load newly created alias immediately: source ~/.bashrc

Move MongDB database

find mongodb config file sudo find / -name mongod.conf -print get dbPath from that file stop mongodb service mongod stop check mongodb is not running sudo systemctl status mongod copy all files from dbPath to new dbPath cp -r old_dbPath new_dbPath chown of new dbPath sudo chown -R mongodb:mongodb new_dbPath change dbPath in mongodb config file to new_dbPath start mongodb sudo systemctl start mongod

Show popup window

 https://wiki.gnome.org/Projects/Zenity

Dropbox not syncing

  sudo chattr -R -i "$HOME/Dropbox" sudo chown -R "$USER" "$HOME/Dropbox" chmod -R u+rw ~/Dropbox dropbox stop; rm -rf ~/Dropbox ~/.dropbox ~/.dropbox-dist; dropbox start -i   Note that Dropbox folder path point to default position. If you have changed this path, make appropriate corrections above

How to become root

sudo su