Category Archives: linux
WSL error 0x80370102 when virtualisation is enabled
Problem: virtualisation is enabled in the BIOS but you still encounter Windows Subsystem for Linux error 0x80370102. Try this: Make sure that the hypervisor launch is enabled in your boot configuration. You can check this by typing in CMD (run … Continue reading
HTTP Compression
Test if a site has compression enabled: http://www.whatsmyip.org/http-compression-test/ Enable compression by adding the following line to .htaccess: AddOutputFilterByType DEFLATE text/html text/css text/plain text/xml application/x-javascript
FTP Notes
Proftpd connections: ftptop – show current connections in realtime in a ‘top’ like format ftpwho – list current connections Restart Proftpd (Parallels Plesk/Cent OS): /etc/init.d/xinetd restart Active vs Passive FTP: A good article on this subject can be found here. MS-DOS … Continue reading
Apache reset/delete logs
http://httpd.apache.org/docs/1.3/misc/howto.html#logreset The correct procedure is to move the logfile, then signal Apache to tell it to reopen the logfiles. Apache is signaled using the SIGHUP (-1) signal. e.g. mv access_log access_log.old kill -1 `cat httpd.pid` Note: httpd.pid is a file containing the process id of the Apache httpd … Continue reading
Vi Commands
Movement: h, j, k, l – left, down, up, right spacebar – right Copy/paste: Y – copy one or more lines p – paste line below current cursor P – paste line above current cursor Line numbers: :set number
Linux Notes
Hard links: ln /path/file1 /path/file2 Associates one physical file with another name (file2). Both access the same file. Can’t be used with directories. Can’t cross file system boundaries. Soft (symbolic) links: ln -s /path/source /path/alias Creates an alias to a … Continue reading