How To
how to, tips, hints
Yum
https://www.centos.org/docs/5/html/yum/ # http://linux.duke.edu/projects/yum/ The Alert Icon is part of the up2date application, which enables you to easily install system updates. You may use any of the following formats to specify a package in a yum operation: name, name.architecture, name-version, […]
Mount DAV directory
see http://linux.die.net/man/5/davfs2.conf # see http://www.freebsd.org/cgi/man.cgi?query=mandoc_char&sektion=7&apropos=0&manpath=NetBSD%2B6.0 -> for cq character # see http://passwordsgenerator.net/ # edit /etc/updatedb.conf: # PRUNEFS=”… davfs davfs2″ adrhcbImpl() { # sudo mkdir -p /mnt/adrhc # sudo chmod g+rw /mnt/adrhc # sudo chmod u+s /sbin/mount.davfs # sudo usermod […]
iPhone
iTunes – sync with wi-fi Connect to iTunes with the cable, go to iPhone’s summary and check “Sync with this iPhone over WI-FI” then press apply button. ERROR iTunes fails to detect iPhone over WI-FI SOLUTION1 restart iPhone or restart […]
Compiling anything sync daemon
Environment variables NEW_BUILD_NAME=anything-sync-daemon NEW_BUILD_VER=5.76 NEW_BUILD_NAME_AND_VER=$NEW_BUILD_NAME-$NEW_BUILD_VER ls -l /tmp/$NEW_BUILD_NAME- ls -l ~/ubuntu_packages//$NEW_BUILD_NAME-* NEW_BUILD_NR=0 # rm -r $HOME/temp/$NEW_BUILD_NAME_AND_VER Download and unpack cd $HOME/compile wget http://repo-ck.com/source/anything-sync-daemon/anything-sync-daemon-5.76.tar.xz tar xpvf anything-sync-daemon-5.76.tar.xz Compilation cd $HOME/compile/anything-sync-daemon-5.76 with systemd use export DESTDIR=$HOME/temp/$NEW_BUILD_NAME_AND_VER;make V=1 install-systemd-all with upstart use export […]
Search music by mp3 audio file
Upload your mp3 file here and search for it’s artist and song name: http://audiotag.info/index.php
Ubuntu 16.04 XRDP (remote desktop)
installation Consider ubuntu xrdp error problem connecting 5910 solution: tightvncserver MUST be installed before xrdp!!! sudo apt-get install xubuntu-desktop sudo apt-get install tightvncserver sudo apt-get install xrdp sudo usermod -aG xrdp adr configure XRDP (option 1) cat ~/.xsession echo ‘xfce4-session’ […]
Handling video in Linux
video exif tool sudo apt-get install libimage-exiftool-perl display video’s rotation exif exiftool -Rotation 20151024_132350.mp4 rotate the exif metadata only ffmpeg -i 20151024_132350.mp4 -metadata:s:v rotate=”0″ -vf “hflip,vflip” -c:v libx264 -crf 23 -acodec copy 20151024_132350b.mp4 resize to 720p ffmpeg -i IMG_0001.MOV -vf […]
VMWare
ERROR1 VMWare says something like “vmware kernel module updater …” and requires pressing Install button then nothing happens. ERROR2 After some Ubuntu updates the vmware network adapters are gone. SOLUTION sudo vmware-modconfig –console –install-all
fan speed control/monitor
Install the lm-sensors Install lm-sensors and fancontrol Install fancontrol packages. # Configure lm-sensors; respond with yes for everything below (will modify /etc/modules): sudo sensors-detect # Monitoring programs won’t work until the needed modules are # loaded. You may want to […]
/var/mail && thunderbird
See http://askubuntu.com/questions/1916/how-can-i-access-system-mail-in-var-mail-via-thunderbird. Create the account Thunderbird -> Edit -> Account settings -> Account Action -> Add Another Account -> Unix Mailspool (Movemail) Your Name: adr (mailspool) Email Address: adr@localhost Browse your mails Open Thunderbird then press Get Messages button; you […]
nagios3
change user & password in passwd-file specified by /etc/nagios3/apache2.conf # change nagiosadmin to the user chosen sed -i s/”nagiosadmin”/”adr”/ /etc/nagios3/cgi.cfg # Edit the disk.cfg file located in /etc/nagios-plugins/config and add the arguments # -A -i ‘.gvfs’ # at the […]
Linux errors/problems, tips & tricks
error # adr@adr-desktop:~$ su-to-root -X -c zenmap (gksu:24352): Gtk-WARNING **: cannot open display: adr@adr-desktop:~$ echo $DISPLAY … showing nothing … adr@adr-desktop:~$ export DISPLAY=:0.0 -> add this in .bashrc adr@adr-desktop:~$ su-to-root -X -c zenmap … now is working … # […]
angularjs errors
error (e.g. in project named projectx) Running “imagemin:dist” (imagemin) task Fatal error: Cannot read property ‘contents’ of undefined # solution 1 remove node_modules/grunt-contrib-imagemin from projectx copy node_modules/grunt-contrib-imagemin to projectx from another working project run again grunt build # solution […]
Ubuntu: enable automatic file system check
sudo sed -i s/”#FSCKFIX=no”/”FSCKFIX=yes”/ /etc/default/rcS sudo reboot