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, give your sites […]
Month: April 2016
How to find ioctl callback function inside the driver source
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 […]
cups localhost port
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: http://localhost:631 The beauty of this solution: Being a web-bassed interface it available on every Linux distribution is completely independent of your desktop […]