Recent Notes

Displaying notes 1 - 10
Created by voodoo on September 25, 2012 19:33:02    Last update: October 31, 2014 12:34:25
This a step-by-step example of how to create the files for GNU automake. Put the C source file in directory src ( cat src/hello.c ): #include <config.h> #include <stdio.h> ... Run autoscan to generate configure.scan . Rename configure.scan : mv configure.scan configure.ac Edit configure.ac . Update this line: AC_INIT([FULL-PACKAGE-NAME], [VERSION] , [BUG-REP... Add this line after AC_INIT : AM_INIT_AUTOMAKE([foreign -Wall -Werror]) Add this line before AC_OUTPUT : AC_CONFIG_FILES([Makefile src/Makefile]) Create file Makefile.am ( cat Makefile.am ): SUBDIRS = src Create file src/Makefile.am ( cat src/Makefile.am ): bin_PROGRAMS = hello hello_SOURCES = hello.c Run these commands: $ aclocal $ autoheader $ automake --add-miss... The file configure is generated after autoconf is run. Build with: $ ./configure $ make Create tarball for distribution with: $ make dist...
Created by woolf on October 11, 2014 17:13:16    Last update: October 11, 2014 17:13:16
To use a proxy to git: $ git config --global http.proxy http://proxyuser:... or $ git config --global https.proxy http://proxyuser... To unset proxy: $ git config --global --unset http.proxy $ git ... To see the settings: $ cat ~/.gitconfig
Created by woolf on October 11, 2014 15:02:46    Last update: October 11, 2014 15:03:50
Set these environment variables to make git print verbose info. $ GIT_CURL_VERBOSE=1 GIT_DEBUG_LOOKUP=1 GIT_TRANSL...
Created by magnum on October 08, 2014 11:29:18    Last update: October 08, 2014 11:29:18
Example C code to set the "Type Of Service" (TOS) field, lifted from http://stackoverflow.com/questions/11429403/how-to-set-message-priority-using-tos . #include <string.h> #include <netdb.h> i...
Created by voodoo on September 23, 2014 22:33:08    Last update: September 23, 2014 22:36:21
I upgraded Ubuntu to 14.04 (accepted all defaults when prompted), but then the desktop just refused to start. It's flashing black screen and some desktop image. It won't even boot in recovery mode! I booted in command line to troubleshoot. After a day or two playing with it, I decided that might be caused by an incompatible video driver. Some good information is available here: https://wiki.ubuntu.com/X/Troubleshooting/VideoDriverDetection . I copied some text here for reference cause I can't say it better. Determine the PCI ID of the chip: $ lspci -nn | grep VGA 01:00.0 VGA compatible c... Here, the PCI ID is 1002:71c7 . Now look in the PCI ID registry to see which driver is used. (Drop the colon ':' when doing this.) $ grep -i 100271c7 /usr/share/xserver-xorg/pci/*.i......
Created by voodoo on September 23, 2014 21:27:31    Last update: September 23, 2014 21:27:31
If you downloaded a debian package to the local hard drive, use dpkg to install the package: $ sudo dpkg -i package_name.deb
Created by voodoo on September 21, 2014 22:47:48    Last update: September 23, 2014 21:18:18
Trust the Intel Graphics Installer: $ wget --no-check-certificate https://download.01.... $ wget --no-check-certificate https://download.01.... Download the installer debian package from https://01.org/linuxgraphics/downloads Install the debian package. Run intel-linux-graphics-installer Note: the --no-check-certificate option does not seem necessary since the website does have a valid SSL cert.
Created by voodoo on September 23, 2014 21:05:45    Last update: September 23, 2014 21:05:45
Press e at the boot menu to edit the grub cfg, change the end of the " linux /boot/vmlinuz... " line to "text 3": linux /boot/vmlinuz-2.6.32-28- ...... ro te... then press F10 to continue booting...
Created by magnum on September 22, 2014 22:13:18    Last update: September 22, 2014 22:13:18
Use dumpio_module to see the actual content transfered between the proxy server and the backend server. # load dumpio_module LoadModule dumpio_modu... Traffic between proxy and backend server will be logged in error.log .
Created by magnum on September 22, 2014 22:06:26    Last update: September 22, 2014 22:06:26
This config file sets up a reverse proxy from HTTPS to backend HTTPS, assuming mod_proxy and mod_proxy_http already loaded. <IfModule mod_ssl.c> <VirtualHost _default...
Previous  1 2 3 4 5 6 7 8 9 10 Next