This is actually a scratch pad so stuff might look to move around frequently--when I remember to save the file :-) -- ramdisk: Server side is a web server ... SAM - a comprehensive access management system User authentication in public environemnt Time and session management - Automate sign-up for computers Print control -- account based program fee and fine payment Even through self-check unit basic prompt improvement: export PS1="[\u@\h]: \w\n\$?\n> " even better with colors: export PS1="\e[0;40m\] --$? \e[0;34m\]\[[\u@\h]\[\e[m\] \e[0;33m\]\\w\[\e[m\]\n \e[0;35m\] -\# \[\e[m\]\e[0;33m\] \$ >\[\e[m\] \[\e[m\]" /export LC_ALL="en_US.UTF-8" # change "en_US" to your country & language, and change "UTF-8" to your wanted encoding invoke-rc.d xprint restart dpkg -S `which lpstat` fix strange apache problem: ipcs -s | grep apache | perl -e 'while () {@a=split(/\s+/); print `ipcrm sem $a[1]`}':qq! dig times dns queries host 192.168... gives threverse dns tar -cvzf foo.tgz directoryname dd if=/dev/hda of=/tmp/cfimg.bin dd if=/tmp/cfimg.bin of=/dev/hda netstat -tulnp netstat -nlp sudo update-rc.d -f proftpd remove sudo /etc/init.d/nfs-common stop telinit 3 # multi-user non-graphical mode [Thu Sep 23 09:02:43 2004] [error] mod_python: Hint: On Linux, the problem may be the number of available semaphores, check 'sysctl kernel.sem' root@ektos:/home/kados# tcpdump -i eth1 -s 1500 -w sept24 chkconfig --list [root@frodo logs]# /sbin/chkconfig sgi_fam off type at your prompt: netstat -anep | grep 32769 you should see wht program is bound to the port \ capture some traffic: tcpdump -i eth1 -s 1500 -w filename grep -lr somestring /some/directory/path/* [root@frodo logs]# /usr/sbin/editcap sept24b sept24c tethereal netfilter.org closing ports: http://www.linuxgazette.com/node/view/9079 use ifconfig to change IP addresses, etc.: rdesktop 192.168.0.100 -u guest -p password rename 's/\.01\._MZZZZZZ_\.jpg/\.jpg/' *.01._MZZZZZZ_.jpg gtcam setfacl "netstat -anc | grep ":80 xrdb -merge .Xresources /usr/lib/Vexira/vexira --update rpm -qi to find out version of a package purn on my hosts: /etc/rc.d/rc.ipmasq mysql folks run their biggest customer in sweden with 250gigs of data (thats 7 million per month for 4-10 years) and the've got only a 400mgz sparcstation. number of files in a directory: ls | wc -l recursively: ls -R | grep -v -e / -e '^$' | wc -l /etc/sysconfig/iptables cp admin.simpleboard.php ../../mambo/administrator/components/com_simpleboard/ cp simpleboard.php ../../mambo/components/com_simpleboard/ get rid of bogus referers: (thanks chris!) in apache: SetEnvIfNoCase Referer ".*(casino|gambling|poker|porn|sex|locators|nude|fisti|\.ws).*" BadReferrer then in: Order allow,deny allow from all Deny from env=BadReferrer and u just add to the SetEnvIfNoCase regexp as u note things thanks Chris! forgotten root password: at lilo boot screen press shift to prevent booting and type at boot: Linux init=/bin/sh causes system to boot kernel and run /bin/sh instead of normal init. so you have root privs and root shell. now need to mount partitions: mount -n -o remount, rw / mount -avt nonfs, noproc, nofmbfs cd /etc vi passwd vi shaddow delete the sencond data field in password file or edit shadow good idea to have a minimal editor in /bin incase .usr is not accessable xrandr_modes: SZ: Pixels Physical Refresh *0 1400 x 1050 ( 304mm x 228mm ) *67 1 1280 x 1024 ( 304mm x 228mm ) 66 Current rotation - normal Current reflection - none Rotations possible - normal Reflections possible - none to switch default desktops: switchdesk kke (or xfce) system-config-display --reconfig make a favicon in linux from a pnm: pmmtowinicon --output favicon.ico originalfile.pnm jobs fg %1 (or 2 or whatever id of the job) for fedora processes: ntsysv chkconfig portmap off service portmap stop lspci | grep -i vga edit grub.conf and remove rhgb and quiet edit /etc/inittab and make default runlevel 3 modline X -probeonly then look in /var/log/Xorg.0.log 4:36 < plixed> kados: i have a modeline for you: Modeline "1400x1050" 129 1400 1464 1656 1960 1050 1051 1054 1100 +Hsync +Vsync i Fodora Networking: dhclient wlan0 Iwconfig , iwlist wlan0 scan , iwconfig wlan0 mode managed , iwconfig wlan0 essid "NETWORK YOU WANT TO CONNECT TO" , ifconfig wlan 0 up , dhcpcd wlan0 , ndiswrapper -m it's in /etc/sysconfig/network-scripts/ netconfig? also of note is /etc/sysconfig/networking ifconfig eth0:0 1.2.3.4 netmask 255.255.255.255 I think the DEVICE actually should be eth0:0, eth0:2 and so forth in the ifcfgs what you're calling eth00 and eth01. Could be wrong about that, though. kados - yeah, you don't need all that, just IPADDR, and if you want a rang call it ifcfg-eth0-range0 and use IPADDR_START=blah IPADDR_END=blah IPTABLES Stuff: system-config-securitylevel add -tui then lokkit then :) Selinux stuff: setfiles fixfiles relabel to fix apache on Core 3: [root@koha ~]# setenforce 0 [root@koha ~]# mysql_install_db [root@koha ~]# setenforce 1 Also, I should point out the distinction between 'free as in free lunch' and 'free as in freedom'; that is, freedom to use, copy, study, modify and redistribute a given software application (and its source code/documentation). And I 100% agree that TANSTAAFL. As long as there is software, there will be development, maintenance, and implementation costs (just as there are food production, distribution and preparation costs). But I'm much more comfortable with my lunch when I can see the ingredients, remove ones I don't like, share it with a friend, make my own version at home, etc. There may be no open source software that does exactly what you want at the moment, but I'd view that as an opportunity. You've done a ton of really great research and have, I'm sure, a very detailed specification of what you're looking for. Sure, you could probably buy an off-the-shelf solution that does almost everything you want (at least in the short term). But why not at least entertain the possibility that you could build a community of users around that software idea and collaborate to design and implement it? I just want to be clear that I'm not advocating an 'open source or bust' position here. I use OSX on my desktop, and I fully appreciate the value of well-written software (both proprietary and open source). My main concern is that your readers (fear, uncertainty, and doubt) find / -inum 866790 so your script is referring to /usr/tmp 16:18 < walters> or maybe perl itself is perl -pi~ -e 's/labs.liblime.com/liblime.com/' * If there's a lock on the serial port kill the process and check /var/lock for the lock and delete it. IPTABLES: iptables -t nat -vnxL # show current nat rules Atheros Card: in if-ath0 change RATE to auto what does 'mode 3 ' do with iwpriv? MATRIC=10 MII_NOT_SUPPORTED=no NEEDHOSTNAME=yes In recent snapshots of the madwifi source the directory tools/ should contain 80211debug and athdebug. Run "make" there to build these tools. If you call them with parameter -? a short help text is printed, and there's additional information in README. Enable those debug flags that fit and see if you note strange behaviour. /proc/interrupts file for IRQ errors cvs -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/madwifi login cvs -z3 -d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/madwifi co -P madwifi rmmod wlan_wep; rmmod ath_pci; rmmod ath_rate_onoe; rmmod ath_hal; rmmod wlan; hack for monitor mode: http://sourceforge.net/mailarchive/message.php?msg_id=9430107 # delete all the rules iptables -F; iptables -t nat -F # list all the nat rules iptables -t nat -L # masquerade echo "1" > /proc/sys/net/ipv4/ip_forward iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE # proxy everyone for port 80 iptables -t nat -A PREROUTING -i eth1 -p tcp --dport 80 -j REDIRECT --to-port 3128 # don't proxy if the destination is the filter iptables -I PREROUTING -t nat -p tcp -i eth1 -d 192.168.1.1 --dport 80 -j ACCEPT # don't proxy this guy iptables -I PREROUTING -t nat -p tcp -s 192.168.1.3 --dport 80 -j ACCEPT iptables -t nat -vnxL Change permissions of all directories or files: find . -type f -exec chmod 664 {} \; find . -type d -exec chmod 775 {} \; SELINUX: turn it off: /etc/selinux/config PERL: time perl -I /build/koha circulation.pl findborrower=0054259 perl -d:DProf -I /build/koha circulation.pl findborrower=0054259 tmon.out dprofpp -v > dprof.txt APACHE: apachectl status VI: BASH: Ctrl-Z stops a job jobs lists jobs bg, fg (background, foreground) kill %1 kills first job Ctrl-U and Ctrl-Y for cut/paste of commands bashcompletion SOEKRIS: disable hardware and software flow control in minicom to avoid freezing error set baud rate to 19200 SOEKRIS SERVER: yum install dhcpd edit dhcpd.conf Use this dhcpd.conf file as an example: http://d-i.alioth.debian.org/manual/en.i386/ch04s06.html yum install tftp-server make sure tftpd is set to start with xinet.d (use ntsysv to add it) set iptables to trust internal nic grab this file: http://ftp.debian.org/debian/dists/sarge/main/installer-i386/current//images/net boot/netboot.tar.gz unpack it in /tftpboot delete existing pxelinux.cfg symlink symlink /tftpboot/pxelinux.cfg to debian-installer/i386/pxelinux.cfg.serial-9600/default change 9600 to 19200 in default Soekris should boot correctly from f0 and begin the debian install process MUTT: tag then ;s delete duplicates: T~= (not sure it works though) DEBIAN: run base-config to run installation again new commands: wall broadcast something route delete default gw; route add default gw 66.249.2.162 route del -net 66.249.2.160 netmask 255.255.255.248 history |more route del 0.0.0.0 to build a package: apt-get build-dep monotone cd into .tar.gz of new version fakeroot dpkg-buildpackage BITBAKE / OPEMBEDDED / ZAURUS: seeing as serial_cs is part of the kernel you build the base system and the kernel Open-ILS: restart perl servers, etc.: su opensrf -c 'export PERL5LIB=/openils/lib/perl5/; /openils/bin/opensrf_ctl restart /openils/conf/bootstrap.conf' psql: you can keep track of how many have been wormed with the select: select count(*) from metabib.rec_descriptor; Discriminet: apt-get install apache2 apt-get install dhcp apt-get install mysql-server-4.1 start the ssh daemon and get it to start automatically apt-get install squid apt-get install squidguard apt-get install libcgi-perl and libhtml-template-perl move ssl.* from /etc/apache2/mods-available/ to /etc/apache2/mods-enabled unpack build.tgz to / replace /etc/network/interfaces and change IP information configure dhcp server (problemntic becuus e it's ip specific copy /etc/utilities/flush.pl to /etc/rc0.d/K20flush.pl (handles ip masqurade and firewall) move contents of /etc/squid/ into place configure Koha server to grant access to the dnet box from owen's local dig @ uu.net soa bobcat: 32500 BASH HISTORY: 1 - unset history 2 - ps | awk -F pts '{print $1}' | head -2 | tail -1 (remember that number you will need it, use this command as you su to any new user and rember the number for each) 3 - Carry out your attack (make sure you remove any files you added) 4 - once done issue the command kill -9 # (the # is the number from step 2) So what is going on here: ------------------------- In step 1 you are unsetting the history file basically you are disabling it. In step 2 you are getting the pid of the shell you are on. Step three is common sense. Step 4 is added coverage. By issuing a kill -9 # it logs you out of the shell saving nothing to memory. You need to issue each of these steps per shell you login to. Wireless: output power of radio 100mw = +20dbm subtract cable loss -17dbm antenna 9dbm (but does not make up for potential) ERIP effective radio power add the radio gain recieve signal cleanest is recieved by the radio every 3db of cable = 20% of performance thickness 400-600 Times microwage cable type: LMR 600 indoor omni antennas (look like a smoke alarm) 5bdi extra 10 dollars but goes a long way in offsetting cable loss for cabling 19" pigtail (radio 30Mw and 200mW get the hottest radio out there) Atheros 100-200mW +20 - +23dbm(active) i(antenna gain) prefered stay away from broadcom (amp probs) OSX: There is a way, but you'll need the GUI to make the initial settings and to join new networks. Following steps: 1) link two utilities buried deep in /System to convenient locations (/usr/bin or something): First one is NetCfgTool, located at /System/Library/PrivateFrameworks/NetworkConfig.framework/Versions/A/Resources/NetCfgTool, second is airport located at /System/Library/PrivateFrameworks/Apple80211.framework/Versions/A/Resources/airport. ln -s both to some folder in your PATH so you can use them. 2) Create your Network Location sets in the usual way, via System Preferences. Now log in to the console (or disable Aqua altogether by editing /etc/ttys). When logged in, start NetCfgTool to run in the background (NetCfgTool &). Now use the scselect utility to select your airport Network Location set, it's pretty self-explanatory -- scselect will give you a list of available sets if invoked without any arguments, just append the name of the set you want. You will get a NetCfgTool stopped-message. Kill that process now. Now use airport --autojoin to have the SSID and keys configured.