Archive for April, 2009
Nec firmware update under linux
by Emre Tugriceri on Apr.25, 2009, under Hardware, Linux
Nec firmware update under linux
Please download necflash utility from http://binflash.cdfreaks.com/
[root@frost local]# ./necflash -scan
Binflash – NEC version – (C) by Liggy and Herrie
Visit http://binflash.cdfreaks.com
List of supported devices:
Device : /dev/sg3
Vendor : Optiarc
Model : DVD RW AD-5170A
Firmware : 1.11
Device : /dev/scd0
Vendor : Optiarc
Model : DVD RW AD-5170A
Firmware : 1.11
This is our dvdrom info.
We should get a backup our current firmware with this command. sg3 is our device.
./necflash -dump Optiarc-AD-5170A-1.11.bin /dev/sg3
Following links have Liggy’s and Dee’s modified firmwares. I want to use it. You can easly find original firmware.
http://liggydee.cdfreaks.com/page/en/Optiarc-AD-5170A/
[root@frost local]# unzip 114bt_rpc1.zip
Archive: 114bt_rpc1.zip
This file was downloaded from http://liggydee.cdfreaks.com
Please read the instructions included in this zipfile and
on our website at http://liggydee.cdfreaks.com/page/5170/
inflating: readme.txt
inflating: 114bt_rpc1.bin
inflating: Liggy’s and Dee’s Website.url
[root@frost local]# ./necflash -flash -v -s 114bt_rpc1.bin /dev/sg3
Vendor: Optiarcberat sitesi
Identification: DVD RW AD-5170A
Version: 1.14
Remember no one can be held responsible for any kind of failure!
Are you sure you want to proceed? (y/n)
if you get “Error submitting checksum” error. You should set your device to pio mode. I couldnt set with hdparm and i set it on bios.
[root@frost local]# ./necflash -scan
Binflash – NEC version – (C) by Liggy and Herrie
Visit http://binflash.cdfreaks.com
List of supported devices:
Device : /dev/sg3
Vendor : Optiarc
Model : DVD RW AD-5170A
Firmware : 1.14
Device : /dev/scd0
Vendor : Optiarc
Model : DVD RW AD-5170A
Firmware : 1.14

Disabling the mode button on the catalyst devices
by cagri on Apr.24, 2009, under Cisco, Network
Disable the Express Setup feature so that the switch configuration cannot be deleted if the Mode button is mistakenly or maliciously pressed for 10 seconds.
In order to disable the Express Setup feature, issue the “no setup express” command in global config mode.
How to test wbinfo_group.pl via command line
by Emre Tugriceri on Apr.10, 2009, under Shell, Squid
[root@proxy squid]# echo “emre Standard_Access” | /usr/lib/squid/wbinfo_group.pl -d
Debugging mode ON.
Got emre Standard_Access from squid
Standard Access
User: -emre-
Group: -Standard Access-
SID: -S-1-5-21-2095213794-1237320697-2031155483-2732-
GID: -16777226-
Sending OK to squid
OK

remove multi space with sed
by Emre Tugriceri on Apr.10, 2009, under Shell
cat ISALOG_20090302_WEB_000.w3c | sed ‘s/\s/ /g

run command via ssh (remote)
by Emre Tugriceri on Apr.08, 2009, under Linux, Security, Shell
cat ls_keykur.sh | ssh root@10.94.12.3
ssh root@10.94.12.3 “date”

snmpwalk example
by Emre Tugriceri on Apr.08, 2009, under Linux
snmpwalk -v 2c -c hoba 1.12.0.68 system

Domain join error
by Emre Tugriceri on Apr.08, 2009, under Linux, Samba
[root@px2 ~]# /usr/bin/net join -S 192.168.2.5 -U etadmin
[2009/04/08 14:00:17, 0] param/loadparm.c:lp_do_parameter(7172)
Enter etadmin’s password:
[2009/04/08 14:00:23, 0] libnet/libnet_join.c:libnet_join_ok(1035)
libnet_join_ok: failed to get schannel session key from server 10.129.0.20 for domain ET. Error was NT_STATUS_INVALID_COMPUTER_NAME
Failed to join domain: failed to verify domain membership after joining: Invalid computer name
ADS join did not work, falling back to RPC…
Enter etadmin’s password:
Interupted by signal.
[root@px2 ~]# /usr/bin/net join -S dc1 -U etadmin
[2009/04/08 14:00:36, 0] param/loadparm.c:lp_do_parameter(7172)
Ignoring unknown parameter “default domain”
Enter etadmin’s password:
Using short domain name — ET
Joined ‘PX2’ to realm ‘tugriceri.com
You should use netbios name. not ip.

Execute remote command via ssh
by Emre Tugriceri on Apr.02, 2009, under Linux
ssh root@server ‘uname -a’
