Trylinux.org
 

May 27, 2010

Sending email from the command line and specifying the from

Filed under: General, bash, linux, tips — admin @ 9:51 am

The easiest way to send an email from a Linux command line is this:
mail -s subject me@here.com < /dev/null

Sometimes you need to specify the from address, but I'm always forgetting the syntax.
echo "The message" | mail -s "The subject" me@here.com -- -f sender@someplace.com

March 31, 2010

glTail

Filed under: General, linux, tools — admin @ 1:49 pm

Very cool way to visualize you web traffic.  It takes a little work to get installed, but it is definitely cool.  Check out the video to see it in action.

http://www.fudgie.org/

July 29, 2009

agedu – Find used disk space easily

Filed under: General — admin @ 10:24 am

I usually use something like du -s * to find used disk space, but this utility is pretty handy.

http://www.chiark.greenend.org.uk/~sgtatham/agedu/

Just run the following commands and it provides you with a web interface you can drill down to to see used disk space and how old the files are:

agedu -f /tmp/agedu.dat –scan /
agedu –address <Your IP> –auth none –web -f /tmp/agedu.dat

agedu

December 29, 2008

World of Warcraft Text to Speech

Filed under: General, Projects, warcraft — tip @ 2:48 am

During my Christmas break I’ve been working on another project.  I was playing World of Warcraft and was checking out some of the add-ons.  I noticed there wasn’t any text to speech add-ons, so I thought I bet I could make it work.   Check out the site here:  WoWSpeech.net

September 3, 2008

wordbook

Filed under: General, tools — admin @ 10:21 pm

I just installed the wordbook plugin for my wordpress blog.  Hopefully this will help me add some content to my facebook page which I have seriously neglected.  It seems like a nice plugin, let’s hope it works.

August 26, 2008

OpenDNS.org and issues with Mac OSX

Filed under: General, apple, tips — admin @ 10:19 pm

I ran across a great site today for people with kids or just want to filter traffic on their network.  I have 3 kids and I just bought my 5 and 3 year old a macbook to share.  When I ran across http://OpenDNS.org I thought wow this would be a great time to do some filtering to keep them from coming across something they shouldn’t.

Use OpenDNS

It’s very simple to create an account and set it up since it is based on DNS.  Since it is based on DNS it is easy to work around, but I figure it will be a few years before my kids get to that point.

One issue I ran into though is their documentation for the Mac is based on a wired ethernet connection.  Who uses patch cables at home anymore?  Luckily I found a link to a site that shows how to get around this on the Mac.  You can read about hit here: http://qmail.jms1.net/djbdns/osx.shtml#dhcp-nameserver

July 28, 2008

Task_Killable in 2.6.26 kernel

Filed under: General, linux — tip @ 8:55 pm

Ever been frustrated by a processes that you could not kill on a Linux box?  I know I have, especially working with Samba and NFS.  Good news, there is a new sleep state that will help eliminate the problem and more code makes use of it.  In fact most of the NFS code has already been converted.  Check out the link here and read more about it:  http://lwn.net/Articles/288056/

April 18, 2008

Huge fonts and toolbar in firefox 3

Filed under: General, firefox, linux — tip @ 9:18 am

I’ve tried the firefox 3 beta a couple times on my linux box.  Every time I try it the fonts and toolbars are obnoxiously big.  I couldn’t find any help on this.  It seemed like a dpi issue, so I went to about:config and searched for dpi.  There it was layout.css.dpi.  Mine was set to -1, I changed it to 150 which seemed about right.

Type about:config in you browser window.  Then type dpi in the filter text box and double click the layout.css.dpi to change the value.  I changed mine to 150.

April 17, 2008

Interesting tools.

Filed under: General, linux, reminder — tip @ 9:14 am

Two things I ran across today that I need to look further into.

http://latencytop.org/   – This shows what processes are waiting on and looks very interesting.

The other is Group Scheduling in Linux 2.6.24 and above.  This allows you to put processes in a group so that one set of processes can share the same resources.  For example, you can assign two different users 50% of the processor and one use could be running 50 compiles but should not affect the performance of the second user.

March 29, 2008

Move Oracle data files

Filed under: General, oracle, tips — tip @ 6:06 pm

The procedure below will allow you to move Oracle data and redo files.

1. It is a good idea to make a backup of the directory you are moving just in case something goes horribly wrong. :)
# cp -rp {data_dir} {backup_dir}

2. log in as the oracle user
# su -l oracle

3. move the database files
# mv {data_dir} {new_data_dir}

4. Set SID, log into database.
# export ORACLE_SID={ORACLE_SID}
# sqlplus /nolog
SQL> connect /as sysdba;

5. Create pfile from spfile
SQL> create pfile from spfile;

6. In another terminal, modify the newly created pfile. It is usually called init{SID}.ora and can be in different directories. Look in udump, dbs, and other directories until you find the newly created pfile. Check the date to make sure it is the one you are looking for. Now, fix the directories for the control_files variable.

7. Go back to the original terminal and create spfile from pfile;
SQL> create spfile from pfile;

8. Mount database.
SQL> startup mount;

9. Alter the database to look in the new location for the data files and redo logs. Below is an example. (Do this for all data and redo logs.)
SQL> alter database rename file ‘/home/oracle/oradata/{SID}/sysaux01.dbf’ to ‘/usr/local/app/oracle/oradata/{SID}/sysaux01.dbf’
SQL> alter database rename file ‘/home/oracle/oradata/{SID}/redo01.log’ to ‘/usr/local/app/oracle/oradata/{SID}/redo01.log’

10. Open database.
SQL> alter database open;

Now it should hopefully come up properly. You man want to shut it down and bring it up once more to make sure everything is working properly.

Next Page »