Scary tv antenna?

More information at: http://www.instructables.com/id/Ehow-outdoor-and-indoor-DTV-antennas/

—————————————————————–

Say you want to duplicate some web pages to another server, but the web server names are different. That means all the links in the pages will be wrong. For example take the following simple web page:

 <html>
 <title> Offshore Educators (C1001) </title>
  <title> Send us some comments </title>
  <body bgcolor="aquamarine">
     <CENTER><h2><B><I>Offshore Educators</I></B></h2></CENTER>
 Sylabus: C1001 - Introduction to computing 1.
 <hr>
 <br>
 <p>
 This course introduces students to fundamental hardware concepts in the use of microcomputers and to some practical applications of software. The course focuses primarily on word processing, spreadsheets and business charts and presentation software using the Open Office products on the Linux platform. The course examines the use of computers for communication and collaboration including e-mail, conferencing software and the Internet for exploring the resources of the World Wide Web. Students participate in group discussions using groupware, work with computerized library databases and make decisions about the purchase of hardware, software and service providers.
 </p>

 <a href="descripts.html"> Returm me to the class listing</a>
 <br>
 <a href="http://oesrvr1"> Click on me to return to the homepage!</a>
 

Our goal is to change oesrvr1 to oemsrvr1. Now just for one file this is no big deal, unless you have tens or even hundreds of web pages. Then you are talking about a major project to change all the server names in links. This can be made real easy.  After the web pages have been copied over, just go to the appropriate web directory such as /var/www on the new server and issue the following command:

$ sudo grep -lr -e ‘oesrvr1’ * | xargs sudo sed -i ‘s/oesrvr1/oemsrvr01/g’

In a few seconds all the files are changed without having to edit a single file.  So now
“<a href=”http://oesrvr1″&gt; Click on me to return to the homepage!</a>” is changed to
“<a href=”http://oemsrvr01″&gt; Click on me to return to the homepage!</a>”.

This command is for a nix based system, but you could share an MSWindows server web directory and let a nix box access the web directories via samba to make the needed changes. (Do it while the server is offline for security purposes.)

Go one step further to automate it using namechange.sh.

namechange.sh

  sudo grep -lr -e '$1' * | xargs sudo sed -i 's/$1/$2/g'
 

Then at the command line you could use:
$ namechange.sh oesrvr1 oemsrvr01

More than one way to skin a cat. Hope this artcle helps you out. Definitely helped me out.

————————————————

Ever not wanted a majority of software that default installs include. Here is a way to make a trimmed down desktop and then surgically install the gui applications you prefer.

During the install, un-check all options (excepting additional basic utilities if it is shown such as in a network install)

Then you will want to do the following installs in two separate lines.

$ sudo apt-get install lxde xorg

Instead of adding all the video drivers, you could just do the one for your video card if you know it.

$ sudo apt-get install xserver-xorg-video-all

Test the install with:

$ startx

You should get a desktop. The next time you reboot, you should automatically come to a gui login. So this little hist is great for setting up machines for kids or in a student lab and you only need to run certain software.

—————————————————

Setting up debian with sudo.

# apt-get install sudo

# nano /etc/sudoers

Under the line where it says “root   ALL=(ALL)  ALL”

add yoursusername  ALL=(ALL)  ALL

# User privilege specification root ALL=(ALL) ALL yoursusername  ALL=(ALL)  ALL 

and then save it. log out of root and log in as you.

————————————

Update: McGuyver monitor doing gui via Reactos.

——————————————

Just recently set up a server that included a mail server as part of the package. Wanted to test it before going any further. Telnet is an often forgotten command that still needs to be in the toolbox of a good computer user.

eddie@oedt01:~$ telnet oesrvr1 25
Trying 192.168.2.88…
Connected to oesrvr1.
Escape character is ‘^]’.
220 oesrvr1.homelinux.com ESMTP Postfix (Ubuntu)
ehlo oesrvr1
250-oesrvr1.homelinux.com
250-PIPELINING
250-SIZE 10240000
250-VRFY
250-ETRN
250-STARTTLS
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
mail from:
501 5.5.4 Syntax: MAIL FROM:<address>
mail from: eddie@oesrvr1
250 2.1.0 Ok
rcpt to: eddie@oesrvr1
250 2.1.5 Ok
data
354 End data with <CR><LF>.<CR><LF>
This is just a test message.
.
250 2.0.0 Ok: queued as C805912299D
quit
221 2.0.0 Bye
Connection closed by foreign host.
eddie@oedt01:~$

Looks like the server works, so now on to installing squirrelmail (web based mail client.

You will also want to check the imap portion of the server. Unsecured imap server testing:

telnet server 143
01 LOGIN username password
02 LIST “” *
03 SELECT mailbox

Line 02 shows you all available mailboxes.

To show the information about a mailbox:
04 STATUS mailbox (MESSAGES)
Between () you can place one or more of the following: MESSAGES, UNSEEN, RECENT UIDNEXT UIDVALIDITY

And one of the following commands to view the a message 1 is the first message * is wildcard for all:
05 FETCH 1 ALL # All IMAP headers
05 FETCH 1 FULL # Full headers and body info
05 FETCH 1 BODY # Body
05 FETCH 1 ENVELOPE # Envelope
05 FETCH * FULL # All email

To fully retrieve a message use:
06 UID fetch 1:1 (UID RFC822.SIZE FLAGS BODY.PEEK[])

As for secured servers it depends what software you are using. For Dovecot try: http://wiki.dovecot.org/TestInstallation

——————————————

As I said, telnet is a very useful tool. It is used for talking directly with hardware, such as upgrading, controlling, plus other duties to routers and other hardware. My situation was that I wanted to talk to a wireless access point from a system that was text only. That’s right you have to use the command line as there was no gui web browser to access the unit. Did not really see any information about accessing the unit from the command line in the manual. so for grins, I tried to telnet the unit to see what would happen.

eddie@oedt01:~$ telnet 192.168.1.250
Trying 192.168.1.250…
Connected to 192.168.1.250.
Escape character is ‘^]’.

AP11G login: admin
Password: ******

Atheros Access Point Rev 4.0.0.167
AP11G wlan0 -> ?
List of Access Point CLI commands:
add remoteWbr                      — Add a remote Wireless Bridge
config wlan                        — config wlanX
connect bss                        — connect to bssX
del acl                            — Delete Access Control List
del key                            — Delete Encryption key
del remoteWbr                      — Delete a remote Wireless Bridge
find bss                           — Find BSS

Only listed just a few of commands. Wow!!  What a gold mine of commands. Just what I wanted to be able to use. One advantage of using an access point is that you do not have to use a usb port. No hardware to configure on the computer as long as you have a working wired ethernet connection. anthing you can do from the command line can be put into shell scripts. That means you can automate control of the unit. Try telneting into your personal router and see what is going on.

——————————————

Carbonated tomato juice.

Good day.

Advertisements