Thursday, August 30, 2007

::unix shell::

bash $
bash #

The $ sign means login as user account created by root
The # sign means login as root

::crontab::

[22:23] * DigitallyBorn (~ricky@72.236.65.199) has joined #linux
-
DigitallyBorn is ~ricky@72.236.65.199 * ricky
DigitallyBorn on #linux #C#
DigitallyBorn using punch.va.us.dal.net Experience comes from bad judgement.
DigitallyBorn End of /WHOIS list.
-
[22:23] I'm having problems with a cronjob being run .. does cron keep a log file I can view?
[22:24] * The_Machine (~The_Machi@65.91.185.36) has joined #linux
[22:24] crontab -l
[22:25] <@KeyLimePirate> keep: No, he asked for a log file
[22:25] <@KeyLimePirate> /var/log/cron
[22:25] oh thanks
[22:25] <@Enchanter_tim> /var/log/messages or /var/log/cron
[22:26] <@Enchanter_tim> or even /var/log/*cron (different crons can have different logs)
[22:26] yeah .. it doesn't look like it's runnin
[22:26] .. I created the crontab as my user, should I create it as root?
[22:26] .. I kind of assumed that it would run all users' crontabs
[22:27] * pcrack (~pcrack@122.53.134.47) Quit (Read error: Connection reset by peer)
[22:28] DigitallyBorn, no shouldn't be root unelss it needs to me
[22:28] user can create their own crontab
[22:29] yeah .. and I created it as a user
[22:29] if they are in cron.allow
[22:29] DigitallyBorn, the only things that should be run as root are things that must
[22:29] Cancel: Yeah .. I got that as a general rule of thumb ..
[22:29] DigitallyBorn, no different for cron jobs

http://pastebin.ca/675830

::storage4::

-sh-3.00$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 72G 3.5G 65G 6% /
/dev/sda1 99M 17M 77M 18% /boot
none 505M 0 505M 0% /dev/shm
-sh-3.00$

-sh-3.00$ cat /etc/fstab
# This file is edited by fstab-sync - see 'man fstab-sync' for details
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
LABEL=SWAP-sda2 swap swap defaults 0 0
/dev/hdd /media/cdrom auto pamconsole,fscontext=system_u:object_r:removable_t,exec,noauto,managed 0 0
-sh-3.00$

-sh-3.00$ uname -a
Linux server3.Net 2.6.9-42.ELsmp #1 SMP Sat Aug 12 09:39:11 CDT 2006 i686 i686 i386 GNU/Linux
-sh-3.00$

::storage3::

$ df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/ad0s1a 104G 4.6G 91G 5% /
devfs 1.0K 1.0K 0B 100% /dev
/dev/ad0s1d 1.9G 530K 1.8G 0% /tmp
procfs 4.0K 4.0K 0B 100% /proc
/libexec 104G 4.6G 91G 5% libexec
/lib 104G 4.6G 91G 5% lib
/usr/lib 104G 4.6G 91G 5% usr/lib
/usr/sbin 104G 4.6G 91G 5% usr/sbin
/usr/share 104G 4.6G 91G 5% usr/share
/usr/bin 104G 4.6G 91G 5% usr/bin
/usr/man 104G 4.6G 91G 5% usr/man
/usr/X11R6 104G 4.6G 91G 5% usr/X11R6
/usr/libexec 104G 4.6G 91G 5% usr/libexec
/usr/local/bin 104G 4.6G 91G 5% usr/local/bin
/usr/local/lib 104G 4.6G 91G 5% usr/local/lib
/var/spool 104G 4.6G 91G 5% var/spool
/var/lib 104G 4.6G 91G 5% var/lib
/var/run 104G 4.6G 91G 5% var/run
/var/log 104G 4.6G 91G 5% var/log
/home/fbsd 104G 4.6G 91G 5% fbsd
/tmp 1.9G 530K 1.8G 0% tmp
/dev 1.0K 1.0K 0B 100% dev
/bin 104G 4.6G 91G 5% bin
/proc 4.0K 4.0K 0B 100% proc
devfs 1.0K 1.0K 0B 100% /var/named/dev
$

$ cat /etc/fstab
# Device Mountpoint FStype Options Dump Pass#
/dev/ad0s1a / ufs rw 1 1
/dev/ad0s1d /tmp ufs rw 2 2
/dev/ad0s1b none swap sw 0 0
$

$ uname -a
FreeBSD server2.com 6.2-RELEASE-p5 FreeBSD 6.2-RELEASE-p5 #0: Wed Jun 20 14:25:09 EDT 2007 root@server2.com:/usr/obj/usr/src/sys/SERVER2 i386
$

::storage2::

$ df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/ad0s1a 496M 61M 395M 13% /
devfs 1.0K 1.0K 0B 100% /dev
/dev/ad0s1e 496M 76K 456M 0% /tmp
/dev/ad0s1f 67G 11G 51G 18% /usr
/dev/ad0s1d 1.9G 105M 1.7G 6% /var
procfs 4.0K 4.0K 0B 100% /proc
$

$ cat /etc/fstab
# Device Mountpoint FStype Options Dump Pass#
/dev/ad0s1b none swap sw 0 0
/dev/ad0s1a / ufs rw,userquota,groupquota 1 1
/dev/ad0s1e /tmp ufs rw 2 2
/dev/ad0s1f /usr ufs rw,userquota 2 2
/dev/ad0s1d /var ufs rw 2 2
/dev/cd0 /cdrom cd9660 ro,noauto 0 0
proc /proc procfs rw 0 0
$

$ uname -a
FreeBSD server1.org 6.2-RELEASE-p4 FreeBSD 6.2-RELEASE-p4 #0: Thu May 10 13:30:32 UTC 2007 root@server1.org:/usr/obj/usr/src/sys/SERVER1 i386
$

::check free swap::

bash-3.1# free -bt
total used free shared buffers cached
Mem: 513269760 502034432 11235328 0 15708160 217698304
-/+ buffers/cache: 268627968 244641792
Swap: 1028116480 0 1028116480
Total: 1541386240 502034432 1039351808
bash-3.1#

::linux1::

[13:32] * NiXeR (mbh@Tyt.Org) has joined #linux
[13:32] ok
[13:32] Greetings earthlings
[13:33] now from planet i use FXO
[13:33] and Pansonic i use port connect to CO
[13:33] yep...
[13:33] is it possible ?
[13:33] is that right ?
[13:33] try it...its worth trying...
[13:33] * acappella (~neitharoy@203.111.236.40) Quit (Quit: )
[13:33] yap
[13:34] zinhell, May I ask what are you trying to do?
[13:34] how do we confirm iptables marking is working other thanviewing the packet hits in the tables itself ?
[13:34] but theory is possible ? cause if i must to try .. i must to disconnect a port
[13:35] routerman do this more /proc/net/ip_conntrack
[13:35] i just need your conviction if that possible :)
[13:35] or theres a tool called conntrack
[13:36] just by theory :)
[13:36] read this http://forums.whirlpool.net.au/forum-replies-archive.cfm/556159.html
[13:36] wow you are a good advisor pcrack :)
[13:37] not like Strykar lol
[13:37] thanks...
[13:38] i think that..is that same u are having...
[13:39] yes !!!
[13:39] great :)
[13:39] thx2
[13:39] i'm having problem to find solution from google hehehehe
[13:39] thanks pcrack :)
[13:39] i'll read 1st
[13:39] it shows the mark values
[13:40] hi pcrack where you come from ?
[13:40] routermen wat do u mean?
[13:40] zinhell just around the corner....
[13:41] :)
[13:45] <@_popeye_> Just because, I'm going to paste the lovely dialog I had with Interex last night. It has been submitted to bash.org :)
[13:45] <@_popeye_> ...ready?
[13:45] Yeah!
[13:46] Share the link
[13:46] <@_popeye_> <_popeye_> i love friend chicken, dark meat only
[13:46] <@_popeye_> <_popeye_> I love fried chicken, white meat only
[13:46] <@_popeye_> <_popeye_> i dont like white meat all that much because it always seems to need a lot of chewing which tires the gums before the belly is done
[13:46] <@_popeye_> <_popeye_> :)
[13:46] <@_popeye_> <_popeye_> * Q-1 has quit (Read error: Operation timed out)
[13:46] <@_popeye_> <_popeye_> * The-Quiet-One is now known as Q-1
[13:46] <@_popeye_> <_popeye_> anyway i'm out, ttyl rob
[13:46] <@_popeye_> <_popeye_> No, no, no, not this chicken -- it's crispy/crusty on the outside, steamy/moist/delicate inside
[13:46] <@_popeye_> <_popeye_> :)
[13:46] <@_popeye_> <_popeye_> sorta like a chick with teh herpes
[13:46] <@_popeye_> <_popeye_> oh god
[13:46] <@_popeye_> <_popeye_> :(
[13:46] <@_popeye_> NiXeR: not approved yet
[13:46] ah
[13:47] LOL
[13:47] <@_popeye_> Quote #787540 is pending moderation.
[13:47] And KeyLime would be JulieAnn, right?
[13:48] <@_popeye_> No, I'm KeyLimePirate
[13:48] Fantastic!
[13:48] Still teasing him with that aih? hehehe
[13:48] <@_popeye_> Yeah, I even registered it
[13:49] * _popeye_ is now known as KeyLimePirate
[13:49] LOL!!
[13:49] <@KeyLimePirate> heh
[13:49] have u guys have problem blocking skype on your linux firewall?
[13:49] "Your key limes are belong to me, har har har" :p
[13:49] KeyLimePirate: i put a quote up there like a month ago and its still pending
[13:50] <@KeyLimePirate> "Walk the crust, you scurvy preventing dog!"
[13:50] <@KeyLimePirate> kfoo: Gotta admit, that one I did yesterday was a classic
[13:51] pcrack, I haven't tried, but I'm going to soon .. a lot of employees are abusing the Internet link with VoIP :/
[13:51] pcrack, I usually use Ethereal/Wireshark to sniff on the ports a certain application uses and which IP addresses it connects to (in case of server communication)
[13:52] god with a sniper rifle
[13:52] pcrack, I believe if you block the IP address of the Skype service server, it would solve your problem.
[13:52] ic...but its random..and sometimes is uses http and https...
[13:52] try to block it at the proxy...
[13:52] brb..need to go somewhere...
[13:52] Well, Skype is account-based .. so it has to connect to a server to login first
[13:52] Just block the IP of the authentication server
[13:54] * @jeian (~jeian@user-12hci5n.cable.mindspring.com) Quit (Quit: Pain, can't get enough)
[13:55] heh
[13:55] KeyLimePirate: http://bash.org/?464385
[13:55] hi guys..i have a config file and i want to change all web.html ---> web.war, how can i do it? do i use a bash scripting?
[13:56] * wagung (~wagungs@125.160.34.78) has joined #linux
[13:56] Unlimited Power from OpenSource
[13:56] * wagung (~wagungs@125.160.34.78) has left #linux
[13:56] <@KeyLimePirate> kfoo: AHAHAHAHAHAH
[13:58] night guys
[13:59] * DevilsX (~DevilsX@adsl-19-69-34.asm.bellsouth.net) Quit (Quit: Leaving)
[14:03] * suphler (~suphler@firewall.snt.ua) has joined #linux
[14:06] Nixer still there ?
[14:07] Yeah
[14:07] NiXeR: zinhell, May I ask what are you trying to do? <---- i try to trunking between IP PBX Planet and PABX Panasonic (4-wire extension port)
[14:07] i mean keyphone Panasonic
[14:07] cause that's 4-wire
[14:08] Yeah, I figured after pcrack gave you the forum link
[14:08] yap :)
[14:08] My company is a Panasonic retailer .. so I was interested
[14:08] bingo !!
[14:09] do you know Panasonic A-series
[14:09] skype is a pain in the neck to sysadmins when it comes to blocking
[14:09] Routermen, only way to block it is to setup proxy's and control data, i've been trying for a long time to trafic shape skype traffic
[14:10] yup .. proxied every ports and control it from there
[14:11] zinhell, Don't private-msg me please .. I'm not into PBX .. I said my company is a panasonic retailer .. there are people who are specialized in that, not me.
[14:11] o ic
[14:11] :)
[14:11] there is also modules for iptables to enable it to check for strings in the packet for skype . but i never try it
[14:12] But since we're going to tie branches with VoIP .. I thought using Asterisk would be cool
[14:12] ic
[14:14] Most likely the managers are going to crusify me for suggesting that, since it will hurt the Panasonic PBX sales....
[14:14] * Guest72185 is now known as Bambin0
[14:18] :)
[14:18] hehehe
[14:18] ok ... anyone know a good forum for PBX, VoIP or IP PBX ?
[14:25] * evilz (~CF@213.132.241.203) has joined #linux
[14:25] 1
[14:25] 1
[14:25] 1
[14:25] 2
[14:25] 1
[14:25] 2
[14:25] 1
[14:25] 21
[14:26] * evilz (~CF@213.132.241.203) has left #linux
[14:27] zinhell, configuring Asterisk,, or configuring home phone, router... ?
[14:29] * Interex (~interex@cpe-69-215-120-142.netwitz.net) has joined #Linux
[14:30] all of it
[14:31] dosingrat, all
[14:31] one of good places to chat about VoIP is a newsgroup: uk.telecom.voip
[14:31] * zinhell (~WinXPpro@202.91.15.131) Quit (Quit: Download Gaim: http://gaim.sourceforge.net/)
[14:32] lol! He was really in a hurry to go there

http://pastebin.ca/675834

::system info::

sh-3.1$ uname -a
Linux slax 2.6.21.5-smp #2 SMP Tue Jun 19 14:58:11 CDT 2007 i686 Intel(R) Pentium(R) M processor 1.60GHz GenuineIntel GNU/Linux
sh-3.1$

::cpu info::

sh-3.1$ cat /proc/cpuinfo
processor : 0
vendor_id : GenuineIntel
cpu family : 6
model : 13
model name : Intel(R) Pentium(R) M processor 1.60GHz
stepping : 8
cpu MHz : 1596.057
cache size : 2048 KB
fdiv_bug : no
hlt_bug : no
f00f_bug : no
coma_bug : no
fpu : yes
fpu_exception : yes
cpuid level : 2
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat clflush dts acpi mmx fxsr sse sse2 ss tm pbe up est tm2
bogomips : 3195.48
clflush size : 64

::storage::

sh-3.1$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 7.0G 4.5G 2.2G 68% /
/dev/sda1 19G 16G 3.4G 82% /mnt/sda1
/dev/sda6 6.7G 54M 6.6G 1% /mnt/sda6
/dev/sda7 4.0G 69M 4.0G 2% /mnt/sda7
sh-3.1$

::lol::

* dlacroix (~lacroix@89.108.131.70) has joined #linux
* ChanServ sets mode: +o dlacroix
* dlacroix is now known as lacroix_
type this -> ??
use javascript for that to openpop
:wq
type this
>> To write (save) to file and quit --> :wq
i told you right
* Routermen (~g3tv@budak.paling.hensem.dalam.dunia.nick.dia.routermen.com) Quit (Quit: changing servers)
ok
* Routermen (~g3tv@surau.com.my) has joined #linux
To write (save) to file --> :w
ask in web designing forums for your problem
ok
* Albatorsk (~per@ua-83-227-182-164.cust.bredbandsbolaget.se) Quit (Ping timeout)
* Albatorsk (~per@ua-83-227-182-164.cust.bredbandsbolaget.se) has joined #linux
* JulieAnn (Whimsy@lustfully.sensuo.us) has joined #linux
Of course you can redirect a browser. W browser reads a webpage, the webserver tells it to read "here" instead, and the browser is redirected.
that is url redirection technically not browsaer redirection
Yes, I know.
* abgdownload (~abgdownlo@126.102.48.60.wmu01-home.tm.net.my) Quit (Quit: )
* osko (~candra_pu@125.164.236.151) Quit (Quit: )
* Ekushey (~Russell@208.110.21.195) has joined #Linux
* _popeye_ (~rob@adsl-76-235-205-54.dsl.klmzmi.sbcglobal.net) has joined #linux

http://pastebin.ca/675832

// stats


afraid.org / freedns.afraid.org