>NIL:’s Blog

2003.10.23 (Thursday)

A forum revamped version of this could be useful…

Filed under: rpc1.org — >NIL: @ 16:50:00 GMT (1066927800 ticks, and counting...) Edit This

http://www.catb.org/~esr/faqs/smart-questions.html

2003.10.05 (Sunday)

Perl script to remove %20 spaces from all the files in the current directory

Filed under: Computing, Development — >NIL: @ 22:58:12 GMT (1065394692 ticks, and counting...) Edit This
	#!/usr/bin/perl
	foreach $file(`ls -1`)
	{
		chomp ($file);
		$newfile = $file;
		$newfile =~ s/%20/ /g;
		if (!($newfile eq $file))
		{
			print `mv $file '$newfile'`;
		}
	}

2003.10.02 (Thursday)

Security is paramount - Episode 1

Filed under: Computing, Admin — >NIL: @ 23:28:52 GMT (1065137332 ticks, and counting...) Edit This

Something to start with: http://www.onlamp.com/lpt/a/3278 :

	netstat -an
	lsof
	nmap -v -P0 -sU -p 1-65535 <ip>
	tripwire

2003.10.01 (Wednesday)

Configuring Bloody MySQL on Slackware 9.0

Filed under: Computing, OSes, Admin — >NIL: @ 12:59:52 GMT (1065013192 ticks, and counting...) Edit This
> /usr/bin/mysql_install_db
> cd /var/lib
> chown -R mysql mysql
> cp /etc/my-medium.cnf /etc/my.cnf
> safe_mysqld --user=mysql &
> mysqladmin -u root password
(To change the password again: mysqladmin -u root -p password )
> cp /usr/share/mysql/mysql.server /etc/rc.d/rc.mysql
edit rc.M and rc.6 to add the calls to rc.mysql start/stop eg:
# Start mysql
if [ -x /etc/rc.d/rc.mysql ]; then
  . /etc/rc.d/rc.mysql start
fi 

Information wants to be free

Filed under: Advocacy — >NIL: @ 11:46:36 GMT (1065008796 ticks, and counting...) Edit This

‘If nature has made any one thing less susceptible than all others of exclusive property, it is the action of the thinking power called an idea, which an individual may exclusively possess as long as he keeps it to himself; but the moment it is divulged, it forces itself into the possession of everyone, and the receiver cannot dispossess himself of it. Its peculiar character, too, is that no one possesses the less, because every other possesses the whole of it. He who receives an idea from me, receives instruction himself without lessening mine; as he who lights his taper at mine, receives light without darkening me. That ideas should freely spread from one to another over the globe, for the moral and mutual instruction of man, and improvement of his condition, seems to have been peculiarly and benevolently designed by nature, when she made them, like fire, expansible over all space, without lessening their density at any point, and like the air in which we breathe, move, and have our physical being, incapable of confinement or exclusive appropriation. Inventions then cannot, in nature, be a subject of property.’ - Thomas Jefferson
http://www.wired.com/wired/archive/2.03/economy.ideas_pr.html

2003.08.22 (Friday)

Increase default security on sshd

Filed under: Computing, Admin — >NIL: @ 09:20:36 GMT (1061544036 ticks, and counting...) Edit This

in /etc/ssh/sshd_config:

Protocol 2
PermitRootLogin no
PermitEmptyPasswords no

Also, might be interesting to have a look at: http://www.snort.org/docs/snort_acid_rh9.pdf

2003.08.21 (Thursday)

Bounce back mail sent to unknown address

Filed under: Computing, Admin — >NIL: @ 15:19:29 GMT (1061479169 ticks, and counting...) Edit This

Comment out the following in sendmail.mc:

define(`LUSER_RELAY', `local:catch-all')dnl

2003.08.18 (Monday)

Breaking a corporate firewall in 2 easy steps

Filed under: Computing, Hacking — >NIL: @ 13:10:03 GMT (1061212203 ticks, and counting...) Edit This

This situation supposes that you have 2 Unix servers (preferably Linux) at your disposal, one inside the firewall, and one outside, both running openssh, and that the ssh port is not firewalled. If you can’t use ssh (port 22) you’ll need to reconfigure ssh on both the machines to use a non firewalled port instead (eg. 80).

We’ll call server A the machine inside the firewall (eg. Corporate UNIX server), and client B the outside one (eg. A Linux PC @ home from where you want to connect to your Corporate UNIX server)

1/ Follow the tutorial at http://www.cs.uwa.edu.au/~ryan/tech/ssh-no-password.html and get DSA hostbase authentfication login from server A to client B.

2/ Once you can log in to your client B from Corporate Server A without being prompted for a password, just find a way to configure your server (mail watch, URL polling, etc.) so that it runs the following when you want to connect:

ssh -R 118:`hostname`:23 user@client.machine.B -N > /dev/null 2>&1 &

This will open an ssh connection from server A to client machine B which will map port 118 (or whatever you chose) of B to port 23 (telnet) of server A.

Therefore, provided that you have telnetd running on the server, now you can log on to it with the command:

telnet localhost 118

Now, isn’t ssh a great toy?

2003.08.17 (Sunday)

S.M.A.R.T. Monitoring tool for Linux

Filed under: Computing, Hardware, OSes, Admin — >NIL: @ 23:50:23 GMT (1061164223 ticks, and counting...) Edit This

We’re gonna need this tool on our new server:
http://smartmontools.sourceforge.net/

2003.08.16 (Saturday)

Opening ‘My Computer’ instead of ‘My Documents’ in explorer

Filed under: Computing, OSes — >NIL: @ 21:41:12 GMT (1061070072 ticks, and counting...) Edit This

explorer.exe /n,/e,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}

2003.08.15 (Friday)

Disabling stupid MSN Search in IE

Filed under: Computing, OSes — >NIL: @ 16:56:56 GMT (1060966616 ticks, and counting...) Edit This

Well, the thing is, you type an URL with a typo in IE, and bloody MSN search pops up and changes your Address Bar => you have to remove the extra stuff manually before you can correct the typo. Of course this is turned on by default. How irritating can MS go, sometimes I wonder.

Anyway, to disable this: Options->Advanced->Search from the Address Bar->Do not search from the address.

2003.08.14 (Thursday)

Enabling broadcast X11 server (kdm) on Slackware 9.0

Filed under: Computing, OSes — >NIL: @ 15:46:49 GMT (1060876009 ticks, and counting...) Edit This
o /opt/kde/share/config/kdm/XAccess, uncomment BOTH:
*                                       #any host can get a login window
*               CHOOSER BROADCAST       #any indirect host can get a chooser
o /opt/kde/share/config/kdm/kdmrc
[Xdmcp]
# Whether KDM should listen to XDMCP requests. Default is true.
Enable=true
AllowRootLogin=true

2003.07.25 (Friday)

Sony KV-20WS1B Service Mode

Filed under: HiFi / Video, Hardware 2 — >NIL: @ 10:00:50 GMT (1059127250 ticks, and counting...) Edit This

Now, this is what this blog is all about.

Yesterday (or rather this morning around 2:30 AM), I discovered how to enter the Service Mode of my 6 year old Sony KV-20WS1B widescreen TV.

While I was looking for the service manual of some other Sony equipment that I have (a Sony MHC-NX3AV 5.1 HiFi system that seems to have trouble reading burned CD’s and where I am sure a little precision calibration –the one where you don’t use a hammer– would sort things out), I found a lot of information on how to enter Sony TVs’ service mode, and I obviously had to give it a try ;) Now, if only I could find a service manual or how to enter the service mode of my Hi-Fi system, that would be heaven.

Of course, the main problem we have here is that, Sony and other manufacturers don’t give a damn about their consumers, and they would never put a service manual online, oh no! It’s just too frightening to consider your consumers could be smart enough to service their equipment themselves. Better take for granted that they are nothing but a bunch of brainless apes who know only one thing: how to destroy equipment.

Thankfully, there exist some sites where more enlightened people decide to share the holy grail of information (the actual useful kind), and I was able to find some of the most interesting pieces of technical information I have seen in a very long time. And as I begin this blog, it is also some kind of pledge that I take, to try to provide as much useful information as I can in the technical sections for all the frustrated little guys like myself out there… INFORMATION HAS TO BE FREE!!!

So here we go. To enter the service mode of a Sony KV-20WS1B widescreen TV do the following:

  • Get the TV is standby mode
  • On the remote, press [i+], [5], [Vol +], [TV mode] (i+ is the On Screen Display button, and TV mode is located just before the teletext mode at the top of the remote) You have to press all of these in the proper order, and within 1 second to be able to enter the Service Mode.

Apparently, a similar kind of trick works on a whole bunch of Sony TVs. If you do it properly, the TV will power up and you’ll get a text page with TT__ on the top right corner. At this point you’d rather press the menu button on the remote to make sure you don’t enter a command by mistake, unless you know what you’r doing. A command is a 2 digit number that you enter on the remote after TT, and knowing that some of these commands can erase the flash ROM of your TV, you’d better be careful with what you do here.

And now comes the hardest part: Figuring it all out…

Well, there are a few adjustements I’ve always been wanting to make on that TV (like the fact that in zoom 1 mode, the image doesn’t start off the screen, and it looks ugly, or the fact that the trapezoidal is really trapezoidal and not rectangle…)
I guess I’ll have to get the service manual to figure out all that. Of course, I’ll let you know here how I get along…

« Previous Page

Once powered by WordPress