Notes by woolf
Displaying keyword search results 1 - 5
Created by woolf on July 29, 2011 08:34:34
Last update: July 29, 2011 08:34:34
This errors out, but will remove an assigned IP address anyway:
$ sudo ifconfig eth0 0.0.0.0 netmask 0.0.0.0
if...
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 May 20, 2011 14:00:35
Last update: May 20, 2011 14:01:36
To remove new line characters from a file:
with tr :
tr -d '\n' < the-file.txt or
cat the-file.txt | tr -d '\n'
with sed :
sed ':a;N;$!ba;s/\n//g' the-file.txt or
cat the-file.txt | sed ':a;N;$!ba;s/\n//g'
The sed version is a bunch of commands to manipulate the register etc. Regex replace " s/\n//g " does not work because sed regex works on a single line.
More tips from this Linux blog: http://linux.dsplabs.com.au/rmnl-remove-new-line-characters-tr-awk-perl-sed-c-cpp-bash-python-xargs-ghc-ghci-haskell-sam-ssam-p65/
Created by woolf on May 05, 2009 04:05:08
Last update: January 15, 2010 02:50:49
Remove the sound track. The default output format is avi, even though the input file is mpeg.
mencoder -ovc copy -nosound PandaKing.mpg -o PK-no...
Add a sound track:
mencoder -ovc copy -audiofile PandaKing.ac3 -oac c...
Replace the sound track and encode to mpeg:
mencoder -ovc copy -audiofile PandaKing.zh.ac3 -oa...
Looks like mencoder does not support multiple audio tracks . Check avimux from transcode project, or avidemux2.
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