Scenario
——————————————————————
You are maintaining several web-sites (site1.com, site2.org, etc…). Having just one web-site at localhost with all files (DocumentRoot) at /var/www/html is not an option for you. You need to be able to test all of them and to access them in a convenient way.
Solution
Setup apache with Virtual Hosts, […]
How can you see which code a module executes when your app calls an ioctl system call?
Consider this situation:
You app gets to the point where it executes an ioctl syscall and returns an error, e.g.
if (ioctl(fd, STVMIX_IOC_DISCONNECTLAYERS, &STVMIX_Ioctl_DisconnectLayers) != 0) { /* IOCTL failed */ ErrorCode = ST_ERROR_BAD_PARAMETER; printf (” STVMIX_DisconnectLayers():Ioctl error […]
Most portable way to administer your printers under Linux is via CUPS’ web interface (CUPS stands for Common Unix Priniting System btw). Every cups server provides this interface, just point your browser to:
The beauty of this solution:
Being a web-bassed interface it available on every Linux distribution is completely independent of […]
Some versions of VLC have this problem: once you enable visualisations it can not be disabled. Yes, there is a radion button in the menu in Audio –> Visualisations which can be set to “Disable” but to no effect – on next start of VLC it displays the visualizations plug-in screen again. Even if you’re […]
How can you remove a mounted USB stick or USB HDD from the list of mounted devices?
PROBLEM
We have all done it – in a hurry you unplug a USB drive which was mounted in your Linux system without properly unmounting it and then it sits there in your list of mounts and you […]
Use imagemagick – this is exactly what it was designed for! 🙂
For example:
– to resize all .jpeg files in the current directory to be 320 pixels wide, preserving the aspect ration, do this:
$ convert ‘*.jpeg[320x]’ resized%03d.jpeg
– to shrink all .jpg files in the current directory […]
When setting up a dual-boot computer or even simply a new Windows computer:
1. Have a Linux Live CD/DVD/USB handy. It’s almost guaranteed that you will need it even if you’re only installing windows.
2. Save the MBR (“Master Boot Record”): Boot your Live linux and in the terminal type:
sudo dd if=/dev/sda […]
This info copied from: https://vuanhduy.wordpress.com/2014/05/02/the-variants-of-gnu-makefile-assignment-operation/
The differences in =, :=, ?= and += when assigning a macro in Makefile.
= operation
If the variable does not have a value, the operation assign the value to it
If the variable already had a value, it is replaced.
This value will be expanded when […]
Getting DB_RUNRECOVERY error from yum/rpm, what can you do to fix it? The error messages look something like this:
$ sudo yum install google-chrome-stable error: rpmdb: Thread/process 9662/3077695168 failed: Thread died in Berkeley DB library error: db4 error(-30974) from dbenv->failchk: DB_RUNRECOVERY: Fatal error, run database recovery error: cannot open Packages index using db4 – (-30974) […]
This is my current .emacs file. As you can see it’s got lots of goodies – indentation styles when editing code, jumping between parentheses/if/endif keywords, special key-mappings, custom search commands and much more 🙂
-
Categories
- Android Development
- Bash
- C programming
- dpkg/apt-get
- drupal
- Emacs
- Git
- Java
- Linux administration
- Linux device drivers
- Linux Gaming
- Linux kernel
- Linux Networking
- Linux on Windows
- Linux printing
- Linux sound and ALSA
- Package Managers
- Programming
- RPM
- Shell and environment
- Tips and tricks
- Uncategorized
- VirtualBox
- Virtualization
- web development
- wine
- WMaker
- Wordpress Tips
- X Window System
- XFCE
-
Articles
- August 2020
- August 2019
- May 2019
- July 2017
- February 2017
- January 2017
- November 2016
- October 2016
- September 2016
- August 2016
- July 2016
- June 2016
- April 2016
- March 2016
- December 2015
- November 2015
- September 2015
- June 2015
- May 2015
- April 2015
- March 2015
- February 2015
- January 2015
- December 2014
- October 2014
- February 2014
- January 2014
- November 2013
- October 2013
- June 2013
- April 2013
- March 2013
- February 2013
- January 2013
- December 2012
- October 2012
- August 2012
- July 2012
- June 2012
- May 2012
- April 2012
- March 2012
- February 2012
- September 2011
- August 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
-
Calendar
November 2023 M T W T F S S « Aug 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 -
Meta
Cloud
audio bash boot compile C programming cups drupal emacs etc Fedora git grep how to httpd init kernel libc linux linux partition localtime login make mount mp3 mysql networking oracle package managers password phpMyAdmin programming rpm shell sql vbox version control system virtual box vm web server wordpress www xargs xfce xwin yum