bash:
PATH=$PATHtcsh:
setenv PATH $PATH
PATH=$PATH setenv PATH $PATH
sudo mkdir /tftpboot
sudo chmod 777 /tftpboot
sudo apt-get install tftpd/etc/inetd.conf:sudo /etc/init.d/openbsd-inetd restart/tftpboot. You can get such an image e.g. from here.sudo modprobe ftdi_sio vendor=0x9e88 product=0x9e8f
screen /dev/ttyUSB1 115200/dev/ttyUSB0, this depends.)setenv ipaddr 192.168.1.77
setenv serverip 192.168.1.2tftpboot 0x2000000 sheeva-2.6.31-uImagesetenv arcNumber 2097
setenv mainlineLinux yes
setenv bootargs rootfstype=jffs2 console=ttyS0,115200 mtdparts=orion_nand:0x400000@0x100000(uImage),0x1fb00000@0x500000(rootfs) rw root=/dev/mtdblock1 rw ip=192.168.1.77:192.168.1.2:192.168.1.1:255.255.255.0:sheevaplug:eth0:nonebootm 0x2000000:g/pattern/d:v/pattern/d:g/pattern
acroread) browser plug-in is not separate in the package mozilla-acroread anymore. Instead it is part of acroread unfortunately. One can simply remove the plug-in though usingsudo rm `locate nppdf.so`/opt/Adobe/Reader9/Browser/intellinux/nppdf.so
/usr/lib/firefox/plugins/nppdf.so
/usr/lib/iceape/plugins/nppdf.so
/usr/lib/iceweasel/plugins/nppdf.so
/usr/lib/midbrowser/plugins/nppdf.so
/usr/lib/mozilla/plugins/nppdf.so
/usr/lib/xulrunner/plugins/nppdf.so
/usr/lib/xulrunner-addons/plugins/nppdf.so
/var/lib/acroplugin/nppdf.so
.cpp or .h and appends a newline if necessary.#!/usr/bin/env python
import os, glob
# file extensions to search for
extensions = ('.cpp', '.h')
def process_file(filename):
f = open(filename, 'r')
last_line = f.readlines()[-1]
f.close()
# check if we need to append a newline
if len(last_line.strip()) > 0:
f = open(filename, 'a')
print >> f, '\n'
f.close()
def process_dir(dirname):
for f in glob.glob('%s/*' % dirname):
if os.path.isdir(f): # recurse
process_dir(f)
elif f.endswith(extensions):
process_file(f)
if __name__ == '__main__':
process_dir('.')