Elijah Lofgren

I follow Jesus Christ and enjoy talking with people, taking pictures, reading, writing, helping people, and making websites. Who is Jesus?

My life mission: "Whatever you do, do it all for the glory of God." - 1 Corinthians 10:31

You are here: Home » Linux Tips

Contents

Linux Tips

Find Linux Programs

Visit the Linux App Finder.

Linux App Finder

Get a list of all running programs with their RAM and CPU usage

Run this command:
ps aux

Mount smbfs Shares Permanently

See the: Mounting smbfs Shares Permanently Help File.

Qucs: Quite Universal Circuit Simulator Tips

To fix: error like: "WARNING: TR1: inserted virtual resistance at node `_net0' connected to [L1,D1,T2]" you need to insert a ground or two in your circuit.

Learn more about Linux

How to untar a tar.gz file using the command line

Modified: 2008-05-15 21:52:21

From Linux.com :: File compression tools for Linux:

Use
tar zxvf archived.tar.gz
to extract all the files from a gzip-compressed tarbal

Better: make "untar" alias"

Logout/login after making change

diff --git a/.bashrc b/.bashrc
index 6e6d1e1..2464e23 100644
--- a/.bashrc
+++ b/.bashrc
@@ -5,7 +5,7 @@
 alias rm='rm -i'
 alias cp='cp -i'
 alias mv='mv -i'
-
+alias untar='tar zxvf'
 # Source global definitions
 if [ -f /etc/bashrc ]; then
        . /etc/bashrc

Read TUX Magazine

Modified: 2007-03-13 12:14:06

Read TUX Magazine which is the first and only magazine for the new Linux user (no longer free).

TUX Magazine

Fix Printer Margins

Modified: 2007-03-13 12:06:43

From http://www.nerdylorrin.net/wiki/Wiki.jsp?page=CUPS

Configuring the Margins

Run the following commands:

cd /tmp
wget http://www.linuxprinting.org/download/printing/alignmargins
wget http://www.linuxprinting.org/download/printing/align.ps
chmod 755 alignmargins
su
./alignmargins

This will print an alignment page. Text at the top of the page should indicate the currently set Margins and HWMargins. If these aren't all set to 0, enter 0 at every prompt and start over.

The first task is to align the output within the physical page. Measure H and V (in inches) from the edge of the page and calculate x and y as explained on the print out. Enter 0 for all the m* values and the calculated x and y values. 

Actually just experiment with changing the x and y values. I had to do 0 for x and -45 for y. Keep setting the m values to 0. I don't know what they are for.

Listen to the Linux Reality Podcast

Modified: 2007-03-13 12:48:42

Listen to the Linux Reality Podcast which is a podcast for the new Linux user.

Use the Super Grub Disk to restore Grub after installing Windows

Modified: 2007-05-21 10:55:45

I used Super Grub Disk along with EasyBCD to make it so that I could boot back into Kubuntu after installing Windows Vista by following the Adding Linux to the Vista Bootloader instructions.

Access Windows Shares reliably using Samba

Modified: 2007-06-04 15:58:37

Make sure to add an entry for the Windows machine in your /etc/hosts file.

Irssi: how to keep Private messages from disappearing in other windows

Modified: 2007-08-10 10:30:22

I think the important ones are:

  • use_status_window = "no";
  • use_msgs_window = "no";

Have something like this in ~/.irssi/config

settings = {
 core = {
   real_name = "Elijah Lofgren";
   user_name = "elijahlofgren";
   nick = "elijahlofgren";
 };
 "fe-common/core" = {
   autocreate_own_query = "no";
   autocreate_query_level = "NONE";
   use_status_window = "no";
   use_msgs_window = "no";
   autoclose_windows = "no";
   reuse_unused_windows = "yes";
   windows_auto_renumber = "no";
   print_active_channel = "yes";
   theme = "elho";
   beep_msg_level = "msgs";
   window_auto_change = "yes";
   autocreate_split_windows = "yes";
 };
};

Easy way to count occurances of a string

Modified: 2007-08-24 22:14:57

grep -r "php" * | wc -l

Hardware

Learn more about Linux

Pages

    follow me on Twitter