Notes by woolf
Displaying keyword search results 1 - 9
Created by woolf on December 11, 2011 13:38:58
Last update: December 11, 2011 13:38:58
Install usb.essentials . Package usbutils is optional.
# opkg update
# opkg install kmod-usb2
# opk...
Install usb printer support:
# opkg install kmod-usb-printer
Install p910nd print server:
# opkg install p910nd
Edit /etc/config/p910nd :
config p910nd
option device /dev...
Configure firewall to allow port 9100 ( /etc/config/firewall ):
# Allow printer
con...
If clients are connecting from wan then the first line should be:
option src wan
Enable automatic start of print server when router boots:
#/etc/init.d/p910nd enable
Restart router:
# reboot
Created by woolf on September 21, 2011 16:23:06
Last update: September 21, 2011 16:24:29
VirtualBox creates/uses a network adapter named vboxnet0 on the host, when a VM network adapter is connected as "host-only". As the VM starts, VirtualBox assigns the IP address 192.168.56.1 to vboxnet0 on the host. The VM DHCP client grabs the IP address 192.168.56.101 from the VirtualBox DHCP server. Connectivity is limited between the VM and the host - unless you configure NAT and IP forwarding on the host.
For OpenWRT, if the DHCP client is not started automatically:
#/sbin/udhcpc -i br-lan -p /var/run/udhcpc.pid -s ...
Created by woolf on July 27, 2011 20:56:11
Last update: July 27, 2011 20:56:11
Install the DHCP server:
voodoo@newpc:~$ sudo apt-get install dhcp3-server
...
Edit /etc/dhcp/dhcpd.conf (this is the minimum for a local network without DNS):
ddns-update-style none;
default-lease-time ...
Start the DHCP server:
voodoo@newpc:/etc/dhcp$ sudo /etc/init.d/isc-dhcp-...
Created by woolf on July 05, 2011 16:03:48
Last update: July 05, 2011 16:03:48
The DHCP client packaged with BusyBox is udhcpc . It negotiates a lease with the DHCP server and executes a script when it is obtained or lost. There are four possible arguments to this script: deconfig : The script should put the interface in an up but deconfigured state. bound : The script should configure the interface and set any other relevant parameters. renew : This is used when a lease is renewed. IP address does not change but other parameters may change. nak : This happens when a NAK packet is received from the DHCP server. Network parameters are passed to the script via environment variables. Ubuntu documents that the default script is at /etc/udhcpc/default.script . For OpenWRT, it is located at /usr/share/udhcpc/default.script ....
Created by woolf on July 05, 2011 15:38:52
Last update: July 05, 2011 15:39:55
By default VirtualBox enables one network adapter ("Adapter 1") with NAT. Connection from the guest OS to the outside world works natually when the guest network adapter is assigned an IP address by the VirtualBox DHCP server. Use VBoxManage to see a list of DHCP servers:
$ VBoxManage list dhcpservers NetworkName: H... The guest IP address is not visible from the outside world. If you need to access a server on the guest OS, you need to set up port forwarding in VirtualBox settings: Settings -> Network -> Adapter 1 -> Advanced -> Port Forwarding . Beware that on Linux/Unix, port forwarding may not work if you bind to a privileged port (port number < 1024) but you are not root. Bridged networking can be...
Created by woolf on October 22, 2010 03:00:32
Last update: October 22, 2010 03:00:54
You can configure Windows XP such that when you press the "Power" button it goes to standby instead of showdown:
From Start menu, bring up the Control Panel
Double click the Power Options icon:
In the Advanced tab, select "Stand by" for the option "When I press the power button on my computer".
Created by woolf on June 16, 2010 16:55:37
Last update: June 21, 2010 02:46:05
Windows XP has built-in capability for burning folders/files onto a CD ROM. Use the Recording tab in the CD-ROM drive properties dialog to configure the options:
However, it doesn't have the capability to burn ISO images. On the MS site it was suggested that ISO Recorder would do the job. I tried it on two different machines and both failed with " generic error ". I'm running Windows XP professional SP2 on both.
Update: Actually the above error for ISO Recorder was caused by a monitoring program the company installed to block CD-ROM write access. Although unsuccessful, ISO Recorder actually went further than other programs. cdburn.exe from the Windows 2003 Resource Kit died at 0% without emitting any error message.
Created by woolf on January 24, 2009 04:01:26
Last update: January 24, 2009 04:01:26
Command Meaning
./configure configure the package for your system
make compile the package
make install install the programs and man pages
make clean remove the program binaries and object files
make distclean make clean, but also remove the files that 'configure' created
Created by woolf on January 15, 2009 05:05:19
Last update: January 19, 2009 05:07:49
MinGW is "Minimalist GNU for Windows" - a collection of freely available and freely distributable Windows specific header files and import libraries that allows you to build Windows native executables with GCC. MSYS is a minimal system that provides a POSIX compatible shell and utilities so that you can run the normal set of GNU build tools (such as configure, make). You can download MinGW and MSYS from sourceforge.net: http://sourceforge.net/project/showfiles.php?group_id=2435 . The set of files is overwhelming and installation is confusing sometimes. But here's what I did in order to build ffmpeg on Windows XP: Download "Automated MinGW Installer" (MinGW 5.1.4) Install MinGW 5.1.4. Select "Candidate". Check g++, but leave other options unchecked Finish installation of MinGW Install MSYS DTK 1.0 in C:\msys\1.0. Download "MSYS...