[CLUE-Tech] Fun-da-mentals 9-4-02

Joe Betts joebetts at wiser.com
Wed Sep 25 16:42:43 MDT 2002


Sorry for the delay in getting these notes to you.  These are for 
9-4-02.  I'll send a separate message with the most recent session notes.

You must read through these thoroughly before posting them anywhere or 
sending them to any one else -- just to make sure they are correct and 
to answer the questions that appear in the body of the notes.

They are in KDE KATE format.  Let me know if you'd like them in 
something else -- anything but that company in the Northwest!!!



-------------- next part --------------
Notes on Linux Fun-da-mentals   9-4-02

Setting up workstations
Editted X86Config-4 to set resolution for projector
Used emacs -- an alternative to VI -- ctrl X and ctrl C to exit.
Note X86Config must be editted as root

Setting up workstation network connections.

Cool Linux Trick

#7 - to launch a previous command, use !xxx where xxx is the first few characters of the command
	then press enter.  This is a BASH function.
	
	System is searching the BASH history file, less ~/.bash_history
	.bash_history will continue to grow -- it is configurable in the profile

#3 - ~ refers to the users home directory
#? - can list the first part of file name and let system complete typing the file name
#  - 'which xxx' will reveal what command, xxx, will be executed; i.e., where the command is
#  - 'tail' gives last 10 lines or so, can also specify tail -50 xxx to get last 50 lines of xxx

All Linux services are in init.d
Use /etc/init.d/network restart  to restart just the network services.


SAMBA Stuff
use smbclient -L 192.168.2.1 to list the shares on that server
use smbmount //192.168.2.1/

CLUE
LinuxFun-request at thegeek.ne -- the list for these sessions
To send a message to the listserve, use LinuxFun at thegeek.nu

Add the CLUE stuff in here.

SSH
ssh userid at ipadr
then input user passwd on the target ipadr

SCP
Secure copy protocol -- uses SSH tunneling protocols to exchange passwords in a secure manner

An example, scp * jmbetts at 192.168.2.1:~  copies all the files from the current directory to the home 
of the userid on the target machine.

COJ Plan
Presentation on Ocean Journey's plan to transition from a Microsoft environment to a Linux
environment.

VNC
Review of last week.
VNC implementations for nearly every platform.  Linux, Windows, Unix, Mac, etc.
VNC is insecure. It can be made secure. Port scanners will watch for 5800 or 5900 and
capture VNC passwords.
The default desktop in Red Hat 7.3 is Gnome. Earlier versions defaulted to xvm.  To change 
the desktop, edit xstartup in your .vnc directory.
	startkde &

Present version, RH 7.3, uses the standard xwindows startup script to start the system
default desktop.  Look at the documentation for how to specify an alternate desktop.
The documentation is typically at /usr/share/doc/vnc-doc-3.3.3r2/index.html and you 
can simply type that in your browser location box preceeded by file:///

#9 ls -d xxx just lists the directory names in xxx and does not go down into the directory.

VNC does permit 'pushed' sessions to work in a firewall environment.

VNC server also runs as a web server.  It would be 5802 where the 2 is your session number.


Other Remote Applications
X+ provides this sort of thing.  Permits 'shipping windows' to remote systems.

RPM Stuff
RPM Red Hat package manager.
Command lines are typically more convenient to use.
A CD burner application is 
RPM of the day is lbreakout.

Typical install command is rpm -Uvh packagename.  U is upgrade -- but will install a new
package as well.  v is verbose and h is hash -- meaning show a series of hashes to 
depict progress.

#10 learn command line switches that you frequently use so you don't have to look them up.

Always install as root to avoid 'insufficient privilages' problems later -- unless the 
package tells you otherwise.

Installing an rpm does not set up short cuts or menu entries.  In some cases, you can type
in the short name at the command line and it'll start.  But only if in the search path.
Type 'set' to see all of the variables of your environment.

'which name' will identify where the program is.  

Use rpm -qa to query all rpms installed on the machine. Use rpm -qa | grep -i "lbreak"
to find all rpms with that name.  The -i means search independent of case.

To see what a package installed, use rpm -ql name to list the files that are part of this
package.

#11 Select anything in any window. Go to any other window and click the middle mouse button
to paste the 'selected' material into the position of the cursor.

Braceing a command in back tics `, causes the content of the braces (result) into the balance
of the command.


Boot Loaders

To recover boot loader, run /sbin/lilo or grub install with the option to tell it what
partition the boot loader should be installed on.  Consult /etc/lilo.conf or grub.conf for
the current situation.


Future Topics

Apache
Samba (winbind)
at (crontab, automation)
mounting
updates auto and manual
rebuilding kernel (modules)
non-RPM installs
WINE










More information about the clue-tech mailing list