linux

Tiny Core Linux with Linksys Wireless Card - no CD required installation

Tiny Core Linux is fast and works great... but it does take some effort to get setup... here's how I got my Linksys wpc54g (v3) pci wireless card working with WPA - and I didn't burn a tiny core cd!

You can't repartition a hard drive while actually using it so you'll most likely need GParted (ie from SystemRescueCD bootable cd) so that you can repartition / resize to have a spare linux partition... AND use:

mke2fs -t ext3 /dev/hda3 (or wherever it is...)

PREREQUISITES:
grub bootloader installed (preferrably to the MBR)
tinycore.iso (cd image of tiny core installation/live cd)

Customize your linux console: bashrc

The hidden file .bashrc in each user's home directory (~ or or /home/username or /root) controls the configuration of how the console (and certain commands) behave.

NOTE CENTOS/REDHAT also uses .bash_profile

Color is also enabled (to be added in a future edit of this post)...

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

Here are my favorite aliases:

alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
alias ls='ls --color=auto'
alias ll='ls -ahl --color=auto'

365-32 Debugging and "Accidental Difficulties" with getchar and loops

So for fun I tried to "port" my code (of winclockv2.c) into Linux and compile it with gcc.
Remarkably easy since most Linux distributions come with GCC installed (in case you need to build a new application from source code... it sounds scary until you've done it once or twice and then it's easy). Just open up a text editor, paste it in, save it (getchar-loop.c). The only thing to change was my Windows "batch" file,

touch gc.sh
chmod +x gc.sh


nano gc.sh
#!/bin/bash
gcc -o $1.exe $1 -Wall -ansi


./gc.sh getchar-loop.c

365-22 Script Programming: Linux Expect Script passwd

Is writing a Script still programming? What the heck is a Script? A script is a written set of instructions for a platform (usually an Operating System) that makes the computer (or hardware) do something. Sounds a lot like a Program.

Syndicate content