'sed' syntax ...

2003-09-23 Thread Jamie Risk
I can't figure out form sed's "info" or "man" pages how to make the facsmilie of the following work; sed `s/ +$//` source.txt I hope it's obvious that I'm trying to strip trailing white space from the file "source.txt". I can do this in TCL/perl and I know how to make a script file for sed work

Big dummy lost SU password...

2003-07-11 Thread Jamie Risk
Due in parts to brain fog and the remarkable stability of Linux, I've not had to adminster my Linux box for over 8 months. Because of Windows Admin tinkering, my samba server has stopped working and I need to modify it's configuration. Is there a way I can mount mylinux box (say from a bootable I

warnings appearing during preprocessor string concatenation (##)

2003-03-05 Thread Jamie Risk
I have the following line in my code, #define FEATURE(select) feature_structure. ## select ## .member ... FEATURE(test); and when I run it through the compiler (gcc 3.2.2 on Linux x86) I get the _warning_ file.c:111:32: warning: pasting "." and "test" does not give a valid preprocessi

GNU make: Where is the default database?

2003-02-21 Thread Jamie Risk
Where's the source database for gnu make? I can view it with "make -p -f/dev/null" which is, useful, but I wish to edit it. - Jamie - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.o

colour directory listings ...

2003-02-19 Thread Jamie Risk
I appreciate the colour that gcc's "ls --color=auto" gives me, although I'd like to change some of the colours. I didn't see it the man/info pages. Ideas? - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] More majordomo info

copying file systems ...

2003-01-29 Thread Jamie Risk
How do I copy an entire file system, symlinks and all, to a temporarily mounted partition? (what are the pertinent 'cp' switches?) I've got an extra harddrive (&PC) and I want to mirror my original system with as little work as possible. I put the third harddrive in my system, and mounted it at "

Can anyone suggest a piece of software too ...

2003-01-14 Thread Jamie Risk
Hi, I'm an embedded software developer and as such I often find that I'm programming software that consists largely of state machines, intertwined, orthogonal or a mixture of both. Not a big deal to implement a state machine from hand drawn paper state diagrams, but it's a little tedious setting u

/dev/random, /dev/urandom

2003-01-08 Thread Jamie Risk
I'm compiling OpenSSH, and to access /dev/random, and /dev/urandom, the configure script needs to be run as root. What sort of trauma am I in for if I make those device permissions read accessible by everyone? - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body

Last file access time ...

2003-01-08 Thread Jamie Risk
This is a bit circular, but here goes ... Is there a way to determine when a file was last accessed, without actually refreshing the access time when reading the access time? Using the different time tests with 'find' doesn't seem to do what I'm looking for. - To unsubscribe from this list: se

Telnet servers ...

2003-01-07 Thread Jamie Risk
I downloaded, compiled and am now using (via xinetd) the telnet daemon from GNU's Inetutils. In RH distributions, I noticed the daemon takes on the name "/sbin/in.telnetd" (or something very similar) whereas the inetutils telnet daemon takes on the name "/usr/libexec/telnetd". Two questions: * Is

Re: Linux/Win XP network connection problem

2003-01-06 Thread Jamie Risk
I got something very similar to this when I was trying SAMBA. One kind person on this or another newsgroup suggested disabling the firewall on the linux box. RH seems to configure firewalls automatically; I'm not that familiar with RH's setup and I don't know what ports particularly SAMBA uses part

Re: How can I move /usr/bin, /usr/lib (etc.) files?

2003-01-02 Thread Jamie Risk
"Chris" wrote: >bad bad idea. ... why would you want to do this? The reasons _are_ fickle but: * I'm trying to develop an understanding of how linux operates... * Most unix environments I've worked on were set up with /usr/local/bin etc. so I'm used to this * I'm having fun compiling all the sr

How can I move /usr/bin, /usr/lib (etc.) files?

2003-01-02 Thread Jamie Risk
Moving the contents of my "/usr/bin" directory is simple enough: "mv /usr/bin [newdirectory]" does the trick; but finding the programs in the new location seems to be the kicker. I'm using bash, so editting the ".profile" file in the user's home directory seems to have done the trick for the most

changing (resetting) users passwords as "root"

2002-12-23 Thread Jamie Risk
I'm a little confused about adding users on my linux box. The box was setup with nothing more than a root user and group. When I add users ("useradd") I'm thwarted by the "-p" option. As "root", I don't know how to set a user's password. After I create the account (without using the useradd's "-p"

Re: Which linux driver do I choose for my "Parallel Tasking II" card?

2002-12-23 Thread Jamie Risk
If you expressed interest by opening this, thanks but I solved mine own problem. Despite all appearances, the card works well with the "3c905" driver. - Jamie - To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [EMAIL PROTECTED] More majordomo

Which linux driver do I choose for my "Parallel Tasking II" card?

2002-12-23 Thread Jamie Risk
I've poked around google to try and couple a driver name with my ethernet card, a "Parallel Tasking II". I've not had success. I tryed to decipher the markings on my ethernet card to select the appropriate driver for my kernel build. The silk screen on the ethernet card's chip is: Parallel Task

Re: Configuring command line mail ...

2002-12-20 Thread Jamie Risk
Chris wrote: > > $ mail [EMAIL PROTECTED] < filename > Whose reponse I appreciate, and please believe I've tried that: as well as many other variant programs. *How do I configure it?* Like most of my troubles with this RH installation, everything _promises_ to work, and when they don't I'm cluel

Configuring command line mail ...

2002-12-20 Thread Jamie Risk
I'd like the ability to send quick e-mails, particularly from dinky little scripts (say perl), or from the command line of the form (syntax notwithstanding): [joe@joesMachine joe]# mailto [EMAIL PROTECTED] -s "Hi joe" I appreciate there are numerous programs to choose from, I'm looking for the

Re: How can I expand the window size of a telnet session?

2002-12-19 Thread Jamie Risk
"Ray Olszewski" <[EMAIL PROTECTED]> wrote in message 5.1.0.14.1.20021219083029.020b4840@celine">news:5.1.0.14.1.20021219083029.020b4840@celine... > At 10:27 AM 12/19/02 -0500, Jamie Risk wrote: > >I've given up getting an XTerm session from my windows X >

How can I expand the window size of a telnet session?

2002-12-19 Thread Jamie Risk
I've given up getting an XTerm session from my windows X client working, and really all I want is large text window session. So, how can I expand the window size of telnet session beyond the anaemic dimensions of 80x25? - To unsubscribe from this list: send the line "unsubscribe linux-newbie"