Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

851.

Solve : Linux Experiment?

Answer»

I have been playing around with various live distros of Linux (Knoppix, PCLinuxOS, Puppy, Ubuntu) and am having a heck of a time figuring out how to CONNECT to my SBC DSL using my SpeedStream 4100 modem. Any suggestions?

PKMy suggestion: SOMEONE else has probably already struggled with this ISSUE. Google Linux+SpeedStream+4100+modemQuote

I have been playing around with various live distros of Linux (Knoppix, PCLinuxOS, Puppy, Ubuntu) and am having a heck of a time figuring out how to connect to my SBC DSL using my SpeedStream 4100 modem. Any suggestions?

Try to connect PC and modem with network cable, and then you just need to put DEFAULT gateway in your linux configuration.
852.

Solve : Linux Boot?

Answer»

what the HECK does Today is SWEET mourn the 42nd day of Bureaucracy in the YOLD 3171 MEAN?

853.

Solve : A recommendation please....?

Answer»

Greetings....from LINUX!

Running Fedora Core 5 right now. Can you guys RECOMMEND me a good program for viewing other partitions on the hard disk and the files in them?What is wrong with Nautilus? If you want a simple FAST one there is Midnight Commander (MC).Thank you, I most DEFINITELY will try.Where are the other hard drives? Under which folders...everything I seem to look for doesn't lead there.Please post the contents of this FILE: /etc/fstabI basically think I'm blind here....

Code: [Select]/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
devpts /dev/pts devpts gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0

I'm trying to get to the equivalent of Microsoft's "Drive C:" or basically the first partition on my hard drive.Pants. You're using the Logical Volume Manager. I have no experience of that. How many partitions are there on this hard drive? (You can use cfdisk to provide partition information.)

Any ideas, Mark?Well....I had my primary partition for windows when I got the computer, then i made two more....the linux partition and the swap partition. That's all I know of.Nevermind, got it to work.....used ntfsmount (since Fedora doesn't support ntfs) and I mounted it and it all came to me......sorry I didn't google in the first place, I thought the answser would be simpler.Support for NTFS partitions for Linux is currently at the beta stage, so be careful.

854.

Solve : Should I get Linux over windows 98??

Answer»

Should I GET LINUX over windows 98?Maybe but maybe not.Only if you can touch your toes when keeping your legs straight.Which unix software is most COMPATABLE with windows/ dos software and has a graphic interface?

P133, 16m ram, 1.3g hd laptop

Knoppix,Suse or Debian. If using Debian run the "vanilla" or "compact" FLAVOR on a laptop

855.

Solve : permission denied?

Answer»

installed knoppix on the HARD drive ....
did an init 2 to start in terminal... LOGGED in as ROOT
want to configure my graphics card in debian so i typed
" /etc/X11/XF86Config-4" and got a "Permission Denied"
now this stumps me as I was root
What gives?
when I do a CD /etc/X11 The system "reports no such dir"
who has more privledges than root?If you don't have that directory then the root also can't do ANYTHING.

856.

Solve : Unix Scripting?

Answer»

I have a text file that I need to LOAD onto a UNIX system.
It is supposed to change the quantity on hand of the items in a file on a unix box. Is there a SCRIPT I can run which will FIND the SKU in the file, and then update/change the script in the file which is the quantity on hand?
Please help

857.

Solve : help please - identification of duplicates?

Answer»

I need to find to find duplicate lines in a document and then print the line numbers of the duplicates
The files contain multiple lines with about 100 numbers on each line I need something that will output the line numbers where duplicates were found ie 1=5=7, 2=34=76

Any SUGGESTIONS would be greatly appreciated - THANKS for your timePresumably by now you've got to the stage in your course where you have been taught about awk. For the purpose of this homework, I would suggest that you first try info gawk (on a Linux system) or info awk (on Unix) and follow some of the examples there. That would be better than us spoonfeeding you the answers. Then if you're still STUCK, come back here for some pointers.

You could also do this job in PHP or Perl, but I think the awk solution will probably be simplest.Hi I should clarify - I'm a post doc who is trying to teach myself unix in order to get my work done
So there is no class and this is not homework
I use awk but aside from spliting the file into a series of one line files and then comparing (which seems very low tech) I don't know how to do this
I don't want to delete or count the lines (using uniq) I need to find out which lines match

I am seriously looking for suggestions - otherwise I would not have posted this !Quote

aside from spliting the file into a series of one line files and then comparing (which seems very low tech) I don't know how to do this
Ah, but that's exactly what must be done!

Psuedo-code:
Code: [Select]OPEN file for reading -> file descriptor one
Open file for reading -> file descriptor two
Repeat until EOF -> file descriptor one:
Read next line -> file descriptor one
Repeat until EOF -> file descriptor two:
Read next line -> file descriptor two
Compare lines; if matching, say so
End Repeat
End RepeatYou can do this with any of a variety of scripting methods. Unix gurus would probably do it in pure awk/sed. I'm more COMFORTABLE in PHP, so that's what I would use. I can also do this in awk, but it would take me longer to write the script.

Do you have a PHP parser on the system in question? (The PHP solution would also be the easiest to understand, IMO.)
858.

Solve : Instructions??

Answer»

Hello. After seeing numerous references to Linux while browsing CH threads, I finally decided to check it out. So, I made myself a SLAX Standard Edition v 5.1.7b CD. It boots, (reminds me of old PCs, like on TV: no graphics, just blocky words...). So anyway, here's my question: Now what?? My searching skills must need some real work, because I can't find the instructions! I don't expect CH members to try and teach me via this forum, but can someone direct me to the instructions? By the way, my wife and I happen to like XP; I just thought it would be good to have for the types of emergencies that members like GX1_Man and ROB Pomeroy recommend it for. Thank you to all who are probably going to point me to what should be obvious... When it boots, you have to type in xconf (I think, but it will say on screen. This selects your graphics adapter properly.) Next you type in startx. You should have a nice graphical screen not blocky letters, etc.

Does this help? Please post your system hardware.GX1: I have an HP Pavilion a1220n with the Home edition of XP SP2. Are there more technical specs that you're interested in? Because I have Belarc and can look up what you wish. Also, may I ask: Changing or configuring anything won't make XP stop working, will it? If I understand correctly, the idea behind the Linux is that you can use it strictly from the disc. I do not wish to install it on my computer. Thank you. That is correct. There are NO files written to your hard drive. Once you reboot, with the CD removed you will get XP back as always (for better or worse )

Graphics adapter, # of hard drives, and optical drives present would be helpful.I'm SORRY, GX1; you experts just have to walk us new guys through EVERYTHING, don't you? I know that I only have one hard drive (it's just a plain, ordinary PC bought as a complete system at the computer store). However, I don't see anything specifically labeled as "Graphics Adaptor" or "Optical Drives" in my Belarc results. Should I be accessing this data elsewhere? Thank you.

By the way: the hard drive is divided into 3 SECTIONS: C drive (main computer); D drive (HP recovery data); and ACRONIS secret zone. Optical drives are CDROM, CDRW's etc. Anything with a tray that pops out. Actully, I followed your first instructions in the reverse order. Entering the xconf and startx commands worked. At that point, I would have realized myself that the CD worked, and you wouldn't be needing the specs for my system after all. Sorry about that. Since I'm here, though... Interesting. It works quite like windows, doesn't it? Don't think there will be much that I will be doing with it, though. Brought up the CH home page with Konquerer (or however it was spelled) just for fun. Seems as though it would be a waste of time to set up anything, as all would be deleted the moment the CD was ejected, wouldn't it? That's okay, though. Now I just need to learn how to do the one thing that I wanted it for: copying files to discs, should I ever need to. Also, it's nice to know that I could use it to come here for help if I ever (let's hope never) need to! Thank you, GX_1 Man. You're welcome. Linux is also nice when installed, but that's another rant. I certainly have the GB for it. Two more months until my first year with my computer; I'm up to a whopping 9% of disc space used! I may consider it one of these days if I'm FEELING adventurous and want to learn how to make partitions... I think partitions; if that's not right, you know what I mean. I love Linux (just for the record). I'd recommend you grab a well known distro (such as Ubuntu) and install it. If you get stuck anywhere just drop by here or stop by their forums...they have some GREAT support.Be sure to bookmark the >Linux Documentation Project<.

859.

Solve : Noob to this board, noob to Linux?

Answer»

I just purchased SuSE 9.3 Pro off the internet. What is the difference in the 10 dollar version I bought and the 90 something dollar ONE from the SuSE PEOPLE? Documentation maybe?

Thanks all!!!http://www.anandtech.com/linux/I just installed Mandrake 10.1 from linuxiso WEBSITE. Now, I've downloaded ABIWORD and installed it, but I don't know where it installed. How do I find it? Is there a default install directory for newly installed apps?Quote

I just installed Mandrake 10.1 from linuxiso website. Now, I've downloaded AbiWord and installed it, but I don't know where it installed. How do I find it? Is there a default install directory for newly installed apps?



/usr/bin
860.

Solve : how to reallocate device files memory space?

Answer» DF -k indicates

/ is 96% full
/USR is 5%

COULD I REALLOCATE available memory space from /usr to /

Rgds
hg
861.

Solve : Suse?

Answer»

I just got one of my machines up and running with Suse . I'm rather excited, not going to lie here. Anywho, I'm NEW to it so does anyone have any good projects to undertake that would be worthwhile and fun?Absolutely. Set up your own web SERVER. THOUSANDS of possibilities,

find out wich windowmanager or desktop you prefer. http://xwinman.org/
You can LEARN a programming language
Configure your own server (webserver, proxy, mail , $var)
Have a LOOK at http://freshmeat.net you might find programs you like

etc,..

862.

Solve : Adora?

Answer»

how do you get rid of an invalid IP address when RELEASE and renew doesn't WORK??

863.

Solve : I need help to resolve a problem in Linux?

Answer»

Hello everybody of this supergood forum about Linux.

The problem I have now is that follows:

With bash shell I must do a file called file.txt, and I write these commands:

[emailprotected]:> cat > file.txt
A aba aabb aabbb aaabbb
Aa baa abab ababa bababa
Ab bbb baaa abbba bbaabb
Ba aaaa baba bbaab bbabaa
aaa aaba bbbb bbbaa bbbabb

[emailprotected]:>

The problem is, using command 'grep', I must filter the two lines who have only one word with only 'a' letter. In the file, the lines fourth and fifth has a word aaaa and aaa, but in fact, I have tried all grep command with options I have thought and it has been impossible to me to do this. The only I have got is to filter the fourth line wich contain an aaaa word, but not the two lines.

And after this, I must filter the lines who has a word starting with 'b' followed by 'a' letters without 'b', for example the line with 'baa' word (the second line) and 'baaa' (the third line)...

I know that this isn´t easy, but I have spent four hours trying and trying resolve these two questions and I feel myself broken.

Thanks for read my two questions.So the first one: you want to find a word that begins with whitespace ([[:space:]]) or is at the start of the line (^) and contains only 'a's - in other words is followed by whitespace or is at the end of the line ($).

Using the -E command line switch makes regular expressions a bit EASIER to use. (e.g. + is acceptable instead of \+)

Code: [Select]grep -E "(^|[[:space:]])a+($|[[:space:]])" file.txt
For the second one, how about trying "ba+([[:space:]]|$)"?

Please demonstrate that you understand this, otherwise I will not be HAPPY helping you with your homework again. Thanks very much. I´m going to try it using your line commands, and after this I will try to demonstrate you how they work.
Thanks.
Come back in minutes....Oh well, I just come back... These commands lines work as well I think you are a Linux "WIZARD". I couldn´t imagine how complicated these lines are.

I must give you a million thanks for them, for your help.

THANKS. THANKS. THANKS. THANKS. THANKS a lot.

Now I must pay my DEBT and I am going to study these command lines and try to explain how work they.

I´ll come back in some minutes more...Let´s go!

The expression to describe is:

grep -E "(^|[[:space:]])a+($|[[:space:]])" file.txt

grep -E is the same as egrep. For that, the precedence line command is the same as:
egrep "(^|[[:space:]])a+($|[[:space:]])" file.txt

-E is a option to interpret pattern as an extended regular expression.

A regular expression is a pattern that describes a set of strings. Regular expressions are constructed analogously to arithmetic expressions, by using variuos operators to combine smaller expressions.

Thus, this is the complet expression: "(^|[[:space:]])a+($|[[:space:]])"
Composed of smaller subexpressions: ^|[[:space:]] and a+ and $|[[:space:]]

A whole subexpression may be enclosed between parentheses to override the precedence rules.

For that, the precedence line command is the same as:
grep -E "(^|[[:space:]])(a+)($|[[:space:]])" file.txt (note the new parentheses of a+).

Regular expressions may be joined by the infix operator |. The resulting resultant expression matches any STRING matching either subexpression.

If the first character of the subexpression is the caret ^, then it matches any character not in the list. (But I must confess that I don´t understand how the caret works in this subexpression because if I remove the caret ^ and the operator | that follows, and execute the command line, then, only appears the fourth file.txt line that is: Ba aaaa baba bbaab bbabaa. If it´s possible I would like you explain me this detail).

Certain named classes of characters are predefined within brackets expressions. Their name are self-explanatory, and one is [:space:] (this not means the Universe, only the space between words). These brackets are part of the symbolic name, and must be included in adition to the brackets delimiting the brackets list. This is the reason the subexpression is written [[:space:]]

a+ means the first item 'a' will be matched with '+' one or more times. (This is simple) .

$ isn´t explained in "man grep" (I think the "man grep" author forgot explain it). But I know this $ means the last character of the string but I have used it always with grep command after a matched character, something like: a$ (to say 'a' is the last character in the string I´m looking for. If it´s possible I would like you explain me this detail).

For these reasons about details I can´t understand by handbooks, I myself understand the subexpression (^|[[:space:]]) like "look for the line wich contains a string who starts with space".
And ($|[[:space:]]) like "look for the line wich contains a string who ends with space".

Well Robpomeroy... I want to know if I have made fine my homework now....
You're almost there. ^ and $ are causing you confusion. That's forgiveable because they MEAN different things in different contexts. In my example, ^ means the start of a line and $ means the end of a line. I'll just break down one, to help you:
(^|[[:space:]])
^: start of the line
|: OR
[[:space:]]: any whitespace - tabs, spaces, etc.
(): bundle up the 'OR'

Hence in full:
( the start of the line OR any whitespace )
You can now work out what ($|[[:space:]]) means.Hi Robpomeroy and thanks again for all the practice lessons I can learn with the information you give me.

Thanks.

HarlequinGood!

864.

Solve : size of a directory?

Answer»

Is there any way to SET limit on a given directory under Unix/Linux?

In other words, given a directory /some/dir, say, is there any way to set a size limit of N bytes, (or blocks), say, so that whenever the size exceeds this limit because of a file being written in here, it will not allow the file to be written.I really like GOOGLE, you find out so much stuff that has absolutely NOTHING to do with what your looking for.

A USER's home directory can be limited by the system administrator. Apparently, all other directories are limited by the size of the hard disk(s).

Hope this helps.

865.

Solve : newb's first linux?

Answer»

Hey i have revently acquired a new pc [smiley=2vrolijk_08.gif], and WOULD like to know what kind of linux would BEST suit my needs. this sounds really, really stupid, but help would be fantastic. i need this computer for 3D modelling, rendering, raytracing suchlike. what is a fast distro that will do the job?

btw-not afraid to STRAY from the windows GUI.I don't think you'll find that a newbie-friendly distribution will also be performance orientated. For performance, TRY either VectorLinux or SUPERSuSE

866.

Solve : Ho do you edit GRUB loader??

Answer»

Ho do you edit GRUB loader?
Specifically, how to put Windows XP on top.
Also, can the background an font be changed?
I haven't used this but it looks like it might be just what you NEED: KGRUBEditor 0.8.5 . I may try it, too, since I've also wondered about changing the sequence of OS in the GRUB loader.

Edit: Eh, maybe I posted too soon. If I click the button on that page to download the GRUB editor for Ubuntu, I'm taken to http://www.kubuntu.org/news/kde-4.1, which is a page for Kubuntu. So, I don't know what's going on with this; maybe some invalid linking on their pages. You might try this reference: GRUB bootloader - Full tutorialAnd that link lead to another:
Quote

How GRUB 2 works?

GRUB 2 works like this:

/etc/default/grub contains customization; /etc/grub.d/ scripts contain GRUB menu information and operating system boot scripts. When the update-grub command is run, it READS the contents of the grub file and the grub.d scripts and creates the grub.cfg file.

That's all.

To change the grub.cfg file, you need to edit the grub file or the scripts under grub.d.
http://www.dedoimedo.com/computers/grub-2.html
I am using Ubuntu 10, so It must be GRUB 2,-Right?
Well, I found this: GRUB 2: the New Boot Loader in Ubuntu 9.10. So, I presume GRUB 2 is the version used with Ubuntu 10.http://ubuntuforums.org/showthread.php?t=1195275Quote from: soybean on May 12, 2010, 08:37:26 AM
I haven't used this but it looks like it might be just what you need: KGRUBEditor 0.8.5 . I may try it, too, since I've also wondered about changing the sequence of OS in the GRUB loader.

Edit: Eh, maybe I posted too soon. If I click the button on that page to download the GRUB editor for Ubuntu, I'm taken to http://www.kubuntu.org/news/kde-4.1, which is a page for Kubuntu. So, I don't know what's going on with this; maybe some invalid linking on their pages.

No. the link MAKES sense. it's called KGRUBEditor, which means it uses KDE; which means that the only Ubuntu KGRUBEditor would work with is KUbuntu.What you need is "StartUp-Manager" - https://launchpad.net/startup-manager

It is available in the "Ubuntu SOFTWARE Centre" Search for "StartUp-Manager" (It has the icon of a spanner)Quote from: camerongray on May 13, 2010, 01:58:24 AM
What you need is "StartUp-Manager" - https://launchpad.net/startup-manager

It is available in the "Ubuntu Software Centre" Search for "StartUp-Manager" (It has the icon of a spanner)
Exactly what I was going to recommend. You will find it under startupmanager in Synaptic.

After you install it, it will be added System > Administration menu. The program makes it really easy to default Grub to Windows or change seconds to wait etc.Thanks to EVERYONE. I finally found a way.
Had to follow instructions.
867.

Solve : What is Linux?

Answer» SORRY to say this in a Linux forum, but what is Linux? I am only familiar with macs and microsoft, so what is it? It is an alternate Operating System for a PC or server. It is open source which, at least in theory, MEANS that it is free and the user community contributes to it's development by giving their time free.

Now several companies have taken it and added their own little twists. So they sell the OS with their additions (only charging for THIER additions). These are normally called 'distros' or distributions.

It is similar to Unix. While it works well and the price is right, you have to do the work and understand the loading of the OS, find your own drivers, find your own software, predetermine drive partitions, understand root access, ETC. So it is not for the timid.

If you have a spare computer laying around, doesn't have to be real powerful either, then it is quite educational to play around with. Just be prepared to reload your OS many times, until you get it the way you want it, especially if you are just learning. There are many free versions around so the education is pretty cheap.

Why would you want to have it if you can just get microsoft? What is the advantage because it seems like a lot of work to me...It is the "anti-Microsoft".
Some people don't want the overhead of Windows.
Some people just don't like Microsoft.
Some people would like to control more of what the computer does.
Some people think it is more secure than Microsoft (my opinion is that the virus writers just haven't targeted it yet since Microsoft is such a big target).
Basically it is free if you really want it to be, whereas Windows can cost hundreds of dollars.
On and on and on..........I think it is fun to play with a new operating System. You can download a version of Linux called Knoppix, It runs right from your CDROM. Its very similar to windows but its free.
868.

Solve : how to assign the contents of a file to a variable?

Answer»

I have the following code:

resdir='/opt/mydir1/client/13.01/mydir2/commandline'
echo $resdir > /usr/me/myfile.txt

I'd like to set the contents of /usr/me/myfile.txt to a variable. Is that POSSIBLE?

Quote from: BRIANH on May 12, 2010, 09:58:15 AM

I have the following code:

resdir='/opt/mydir1/client/13.01/mydir2/commandline'
echo $resdir > /usr/me/myfile.txt

I'd like to set the contents of /usr/me/myfile.txt to a variable. Is that possible?


It is better to assign each token ( or LINE ) of file to an array element. Awk and shell does arrays easily.

The following is a batch array:


C:\test>type varforfile.bat
Code: [SELECT]@echo off
set n=1
setlocal enabledelayedexpansion
for /f "tokens=1-7 delims=,=" %%a in (test.txt) do (
set /a n=!n! + 1
if !n!==15 goto end
set var!n!=%%g
echo var!n!=%%g

)
:end
echo outside of loop
echo var12=%var12%
Output:

C:\test>varforfile.bat
var2= 269338
var3= 263941
var4= 266663
var5= 265108
var6= 268421
var7= 269602
var8= 266973
var9= 266477
var10= 270655
var11= 266822
var12= 268137
var13= 267681
var14= 266535
outside of loop
var12= 268137

C:\test>Quote
resdir='/opt/mydir1/client/13.01/mydir2/commandline'
echo $resdir > /usr/me/myfile.txt

That code could be for use on a Linux system
It would help if the OP would indicate what OS he has.Now marvin is posting batch files in the Unix section! Quote from: Geek-9pm on May 18, 2010, 01:28:23 PM
That code could be for use on a Linux system
It would help if the OP would indicate what OS he has.

resdir='/opt/mydir1/client/13.01/mydir2/commandline'
echo $resdir > /usr/me/myfile.txt

The contents of myfile.tx was already assigned to a variable, resdir .

The question does not MAKE sense.

Unix allows the assignment with a set command: ( all that is needed is var=value )

resdir='/opt/mydir1/client/13.01/mydir2/commandline'
869.

Solve : Source Files?

Answer»

I need the SUSE LINUX 9.1 Personal Source Package.

I'm not EXACTLY sure what kind I need, but whatever you SAY is fine with me. I'm sure RPM would work with Yast.

Thanks!



Edit:

Without it, I can't install ndiswrapper due to my "make" commands error.

My wireless THING won't work with Linux because it doesn't have a DRIVER... :-/

870.

Solve : Ubuntu Problems?

Answer»

Hey guys. I'm fairly new to Linux. I have installed it before, ran live disks, and even have a program in Windows that allows me to use Linux Commands (sort of).

Here's where the problems lies. I wanted a new DISTRIBUTION to try out and have heard good things about Ubuntu. So I decide to download it and see. I download and burn it fine, but when I go to install it an error comes up saying something along the lines of it not being able to copy from the CD.

After this happens I'm say to myself "Maybe it's just my burn or something." So I order some free CDs from them, and they arrive just fine. I try running the Live CD to see how it is. Same error.

I have not had the chance to try it in a different PC if that is what the case may be.

PC Specs:
AMD Sempron 3400+ (2.01GHz)
512MB RAM
GeForce FX 5200 Ultra
Any more let me know.

If any one has any info on what the problem could be and how to fix it I would really appreciate it.I had exactly the same problem with an Ubuntu installation on completely different hardware. I persevered with the installation, ignoring the errors. I got the INTERNET connection up and running, then edited the apt sources - removing the CD source and adding all the ftp source. Then I used dselect to install all the packages I wanted (because the X installation had failed). The system works fine.

A bit fiddly, really.What do you reckon the problem is? If I can I'd like to fix it.Are you a Linux guru? The problem seems to be with a broken (or mis-reported) dependency in a key package. No, I have no idea how to fix that myself. You could try reporting the specific bug to the Ubuntu team.Alright. Thanks anyway man. Right now I'm downloading Suse 9.8 or something like that. So I'll try that and let ya know how it goes. Even though I know no one here cares, but a very good friend of mine used to work for Novell (CREATORS of Suse). Just thought I'd let ya know, don't know why...UPDATE: I just installed Suse 9.3 (I'm actually using right now). So I don't know what the problem could be with Ubuntu.Are you trying out OpenSuSE? There are a couple of derivative versions now - one optimised for speed, but I don't remember its name.Don't think so. I got this from www.novell.com. All it really said was Suse 9.3...Okay - the current version of OpenSuSE is 10.1RC3; see the >official website<. The performance-orientated version is called SUPERSuSE. Get it >here<.9.3 is no longer supported (i.e. no security updates). 10.0 is out now and 10.1 is just AROUND the corner.

By the way, SilentAssassin, Novell is not the "creator"of SuSE. They acquired it after version 9.0! (Just trying to be HISTORICALLY accurate.) Alright. Thanks for all the help guys. I just uninstalled it anyway. Going to go back to CentOS.CentOS is a good distro. Not cutting edge, but made to be stable as it is basically a rebranded RedHat Enterprise Linux.I agree. But...when I first had CentOS installed it wouldn't let me install quite a few applications. Kept saying something along the lines of "Can't find disto in something", don't remember it exactly. So that's why I was looking for another distro to use.

Once again, thanks for all the help guys.

871.

Solve : want to learn Regex?

Answer»

Hi I am new in forum. I want to Regular Expression TUTORIAL. Any one teach PLEASE. Quote from: prabhakarans on April 04, 2010, 05:02:02 AM

Hi I am new in forum. I want to Regular Expression tutorial. Any one teach please.

see here and hereCan someone EXPLAIN to me what "Regex" does/ it's purpose

Thaks in Let me Google that for you....From my bookmarks:

http://www.regular-expressions.info/

http://www.regular-expressions.info/tutorial.html


872.

Solve : Looking for a specific version of Linux?

Answer»

I take everything that I first posted back:
the Linux was called Novell Linux 10 xgl
and the VIDEO is at http://video.google.com/videoplay?docid=-199899523054020719&q=Linux&pl=true

Anyone know where to download it?
The FULL version of Novell Linux is not available for download - it must be purchased. The fully open source version is called OpenSuSE, which you will easily find with Google.

873.

Solve : dual booting?

Answer»

hi guys,

i wanted to go linux but not yet weaned from windows, :-/ so i wanted to dual boot my w2k machine with rh9, any suggestions, better what is the right way to do this.? Been dual booting with WIN 2000 and Suse linux for awhile,now. Linux uses either LILO (LInux LOader) or GRUB/GRUB 2 (GRand Unified Bootloader) to load and boot. PROBLEM is Linux wants to control the MBR(Master Boot Record)under Windows. Nothing wrong with it,just a pain if you decide to erase Linux,you have to rewrite the MBR so you won't get the option screen at boot. Best to put the Linux partition in a separate hard drive: saves time repartioning existing drives to accept new OS. If you are rally paranoid about hosing up your Windows,go to www.aboutdebian.com/dualboot.htm : excellent step-by-step instructs on USING LILO or NTLDR as your bootloader.If you want to use the WIN loader(NTLDR) you have download and install Bootpart.It is a utility for rewriting your Windows boot.ini files to get the dualboot options. Goodluck!An afterthought: try a linux system that does not load to harddrive so you can get the "feel" of linux. Try Ubantu or Knoppix. It boots off the CD and doesnot install to harddrive. Runs off the CD so it's a bit sluggish.>You Said: An afterthought: try a linux system that does not load to harddrive so you can get the "feel" of linux. Try Ubantu or Knoppix. It boots off the CD and doesnot install to harddrive. Runs off the CD so it's a bit sluggish<

I downloaded both & Suse also; burned them at 24x, then at 8X and the best I got was Knoppix re-write my MBR and crashed. So give me a "REAL" answer, because I would really like to switch, but if I can't review the system, I'm not going to switch. I'm a 55 year old Retired GI, ex-BBS System Operator, and know most of Micro$oft DOS, and I'm tired of the endless crashing of Windowz - but am thinking of just re-formatting back to DOS 6.22. Unless - again UNLESS you folks can convince me to switch to Linux.

System Info:
HP Pavilion 6635 Pentium2
64MD Ram
10GB IDE HD - Boot Drive
CD - Boot
Floppy - dead
Ext - 148GB HD - doesn't know it's there half the time
ext - 48xCD Writer
ext - 3 1/2 Floppy (to make up for the dead floppy installed
Make sure CDROM is first device. Use Knoppix LIVE version. go to www.linuxpickup.com to buy CD for three bucks. Downloading .iso files is a pain,leads to errors and is too slow.Use bit torrent or jigdo files. Keep me posted on your progress. Linux is so much smoother and crash free.When you put the Knoppix CD in,and after all the preboot MESSAGES. you will see a boot prompt. Enter after" boot: " the following command :" knoppix lang =en" , then hit enter.You should be into the KDE desktop.Just mess with it. Disconnect your external HD .>>go to www.linuxpickup.com to buy CD for three bucks. Downloading .iso files is a pain,leads to errors and is too slow.Use bit torrent or jigdo files. Keep me posted on your progress.<<

I'm So broke I can't even pay Attention!!!

The Koppex CD crash's at loading KDE (just after it re-write's my MBR :-( ). I would not mind it doing the re-wite if it would finish it's Install. Re-Downloaded & burned a 8x to insure a error free iso.

As far as downloading 'iso' disks - I just installed via iso Open Office & SOT Office without any error. My only problem is with the "Live" Linus trial CD iso's
What version of Windows are you running? If LILO overwrites your MBR, you may have to correct the MBR first before attempting reup. But Live versions do not touch the MBR. Are you GETTING the dualboot option at start-up? Also your RAM is too low. 128MB minimum for Suse,probably too low for Knoppix also.I have Knoppix 3.6 and 3.3 as well as Live Suse 9.2 if you are interested. Free. I run the 3.3 version on other s PC's when they have Window problems to get into Windows. But like I said your RAM is a bit low.

874.

Solve : Help with Fedora?

Answer»

I have a Feadora 12 Live CD. It booted up fine on my 700 Mhz computer. I've since then put a new HDD in with which I intended to install Fedora on. But now i get this message Quote

No root device found. Boot has failed, sleeping forever

What does this mean? How do get the Live CD to boot?I'd suggest first just going back and double CHECKING the disk and it's installation. Just make sure that you got everything right.

Can you test the HDD as well to insure that it's okay?Quote from: Quantos on May 06, 2010, 09:32:44 PM
I'd suggest first just going back and double checking the disk and it's installation. Just make sure that you got everything right.

Can you test the HDD as well to insure that it's okay?
I burnt the CD today and it worked fine with the other HDD. I don't see how the CD could suddenly go bad in 10 minutes. The hard worked fine yesterday. I did however remove my secondary drive because it seems broken but the Live CD still gives the error.Sorry, I was referring to the installation of the HDD, double check your jumper settings and cable connections.Make sure it is booting from the CD.
Check the BIOS. You may have to change the boot order.
Do as Quantos SAID and check the jumper. If there is no other disk, then use master and not cable select.

You may also want to use another Live CD such as knoppix 5.x or a bsd such as jibbed or bsdanywhere.
Some distributions will occasionally have trouble detecting drives.

Well I found out that it is a CD/DVD drive problem. I put a Vista disc in and after it booted to the install it told me that it could not find a CD/DVD DRIVER. I tried XP and it gave me a stop error.

It looks like a FREAK CD drive problem where it can boot the CD but not recognize the drive after booting. I'll TRY to fix. I'll post back if I have probs.
875.

Solve : need modom drivers for red hat Linux?

Answer»

I installed the Red Hat vertion for school. it found all my drivers EXCEPT the modem. So I am CONSTANTLY having to shut down and go back and forth from win xp to Linux to get on line, upload work or down load information.

This gets bothersom especially when you need the information on a file downloaded to win xp office file while your working on a project in linux.

linex modem says my modem is busy, it reads it but it wont use it. any ONE know what i am doing wrong?http://www.linux.org/vendor/hardware/internet.htmlWhat kind of modem is this - MAKE and model? If it's a Winmodem, you may be Win-screwed.

Mark

876.

Solve : How to change directory having 2 words??

Answer»

I use Mac. I want to change directory to a directory called "Application Support". Each time I use the "cd" command it says "no such file or directory". In fact, any directory with 2 names separated by a SPACE will not open. What is the correct command?
Thanksenclose the directory NAME in quotes , ie

cd "Im a newbie" make sure space after the "cd" command.

Tip: If yuou start to type a command in, linux will help you find the command if you hit the tab key befor you finish typing...Thanks for the help. I use Unix and the tab doesn't seem to work as it does in Linux.i believe you would type the FOLLOWING
cd /firstword \secondword
or
cd /firstword\secondword
Neither of the above. The backslash ESCAPES the character that comes after, so it would be cd firstword\ secondword. cd "Application Support" should work. but since you said it doesn't

another way is to use wildcards
eg

cd Application*Support

or if ONE space between names,

cd Application?Support

877.

Solve : SantaFe linux hangs?

Answer»

}{'lo

I just finished downloading SantaFe Linux and burned the ISO to disk yada yada yada. Anyway here my problem, its starts to load up just fine but when it gets to the final stage and starts to load the desktop and the start bar it just freezes. Sometimes I get a startbar, other times I get a startbar with a start button, sometimes the start button and a little button beside it etc. The farthest ive gotten is the start bar wiuth start button, little button beside it, and the clock. but then FREZE! and i have to restart all over again.

Anybody know why?
And can I fix it?

SantaFe is RUNNING DIRECTALLY from the CD (live CD as they call it)

I have a PII 300mghz proc (in the slot one flavor) on a IN440EX mobo made by BCM or GVC. using award bios version 4.51pg, 128 megs of pc66ram (on a single DIMM), two hard drives (3.24 master with windows 98SE on it and 40 gig (RECOGNISED only as 32 gig. I need to flash my BIOS), two CDROM drives with linux booting off a 4x lite-on, a NIC in PCI slot 2, an INTEGRATED ati rage pro, and a integrated ESS SOLO 1. sound chip.

If you need any more info ask away!

878.

Solve : Creating user similar to root?

Answer»

How will anybody create a user in UNIX with privilage and environment similar to 'root'?

Regards,
TACThe following is for Linux. It may or may not WORK for Unix. Try it and see.

Method #1: if user already created
syntax:
Step 1. TYPE vi /etc/passwd
Step 2. Scroll down to username and change the following to a 0 (zero):

username:x:uid:gid::/etc/home:/bin/bash

Step 3. Hit the ESC button, then hit the key combination Shift:, then type wq!, then hit the enter button.

[size=18]"Note"[/size]
Be CAREFUL. If you make a mistake, just hit the ESC button, then hit the key combination Shift:, then type q!, then hit the enter button. Then begin at step 1 again.


Method #2: if user not YET created
syntax:
adduser -o -u 0 username
the letter o is for override and the NUMBER 0 is to set the uid to zero like the root's uid(user id).Note to the unwary: don't EVER do this.

879.

Solve : Windows SUX!! I need help changing over.?

Answer»
Is Linux having as HARD a time with viruses as windows seems to be? I really need a change, but I can't get a foothold, though I've tried a half-dozen times.

Which is better as a standard desktop, FreeBSD or Linux?

How the heck do you install/unistall a driver in either?

The man page make no sense just yet, are there any decent books on all this stuff?Quote
Is Linux having as hard a time with viruses as windows seems to be?


Do you EVEN know what a virus is? Why not try installing a virus scanner?
I have Norton AV, I've tried McCafee. I have ZA, and I've tried a couple of other firewalls. I use Spy DOCTOR and I've used Spybot.
I've tried Slackware. I've tried FreeBSD. I've tried Mandrake, and at one time I had Red Hat, but I can't get a groove. I tried just diving in blind, but I'm not finding anything familiar to sink my teeth into.
I've got a big honkin' book on FreeBSD, but hardware INCOMPATIBILITIES literally shelved that idea.
I just need a decent book and a good distro or something.I wouldn't know anything about that, but I have no virus problems on Windows. That's really the users fault.
It just seems like when I first install Windows (for the 826423th time) it's slick and responsive, but it starts to slow down within days.Could be caused by just about anything.Install Suse 9.0 or9.1. Also dump all your temp and cookie files. Suggest Writing your harddrive to zeros to completely wipe it clean,repartition four primary,two for page/OS for Windows and two for Swap/OS for Linux.It be best to install the Linux(unix) OS on a separate harddrive.ey there, well..suse 9.0 or 9.1 would really give you a nice groove..if thats what you looking for. Also, having to install firefox 2.0...would really make it more groovy.

I have dual boot for Suse 9.0 and windows XP(though i hate windows..sometimes its just ok to look back )

For SECURITY reasons:
Install smoothwall (very user friendly)
install nessus (shows the weakness of ur system and gives you solutions)

p.s Quit Windows man, the future looks likes a Penguin (man i think this line kills it all....remember i said it first..so i'll sue whoover takes my words


peace.

Did the slowdown come after installing programms? Do you have alot running in you system tray? How much Hard drive space do you have?

*these quick-fire questions brought to you by Redeyes_Gambit *
880.

Solve : Configuring Xandros Linux dialer to work thru MSN9?

Answer»

Have Xandros LINUX installed with Windows & MSN9 with boot mgr. Cannot figure out how to configure the dialer in Xandros to work thru MSN 9. So many variables that guessing will never get it. Hoping that someone there has expierence with this and can tell me how to do it. Windows and Linux are on separate partitions. Any help appreciated greatly! DEDIs your modem recognized correctly. Can you get on with PPP?Yes, the linux program recoginzes the modem and ppp would not do what needs to be done. The program dialer in Xandros dialer needs to be configured to work with the MSN 9 dialer and also the msn dialer will probably have to be configured some also. There is so many variables in each that the chance of hitting the RIGHT combination in both is about the same as WINNING the lottery. The Co Xandros answers my questions about this ina "get Rid of Him" kind of way that is no help at all. Somethimes I think they are afraid of Microsoft and won't tell how to do this. Anyway, thought someone there might have had expierence with it and could help. Xandros was a $100.00 program and looks real good but must connect to the internet to completely finish installing it. Guess this will be another "You Got Hooked" kind of thing and will END up throwing Xandros in the garbage can. Thanks for trying! DEDThe problem may be with the front end of MSN. I don't know if it is a direct internet connection or if you have to use their software - like AOL, Yahoo, and many more. If that is the case, you may never get it to work. I believe Linspire now has AOL dialer and some more as well.

In the end why would Microsoft (MSN) want to be compatible with Linux? Can't think of one reason from their perspective.

Mark

881.

Solve : network share mapping login script?

Answer» [size=12]I need help with a script.

I have created three groups (accounting, finance, sales) and directories (accounting, finance, sales) in which i made the groups the group owner of the directory with the their same name.

I also have created several users and i have added the users to the groups,
but one of those users is a member in two groups(accounting, sales).

I have to have the USER map their group folder upon login as well as their home folder, public folder and an mp3file folder using the drive letters "w:, x:, y:, z:", but I need need to modifiy the script for this case; the case of having this user in two or more groups.

I think the user won't be able to map both those directories with the same drive letter.

I need help making the script map the second, third, fourth..... groups with the next available drive letter.

How can i do this.

This is what I have so far:

echo Setting the Time on the PDC...

\\servername /set /yes

echo Mapping Network Drives on Samba Servername Server...

net use w: \\servername\home\%username%
net use x: \\servername\companyname\public
net use y: \\servername\companyname\%groupname%
net use z: \\servername\companyname\mp3files

in addition, can you tell me if "%groupname%" is the appropriate syntax to indicate the groupname.

A prompt answer is greatly appreciated.

Thanks. [/size]
[/B]I strongly recommend you edit your email address out of that post.

How about an alternative approach? Use this directory structure (e.g.):
/
--/home
--/departments
--/accounting
--/finance
--/salesMap Y: to a Samba share pointing to /home/departments. Users will then see accounting, finance and sales subfolders, but will only be able to access the folders to which they have group access.thanks soooooo much!!

The thing is that this is a class final exam and the INSTRUCTOR may not accept that structure.

in the final exam lab paper the professor wrote the following:

drive mappings must be performed by a login script for all users. their home directory, the public folder, and their department's folder must be mapped to the x, y and z respectively when they log to the xp computer

example: jdamien should see the following when he double click "My Computer"

his "home" directory mapped to the "w" drive.
the "Public" directory is mapped to the "x" drive.
the "finance" directory mapped to the "y" drive.
the mp3files directory mapped to the "z" drive.

the structure is as follows:
\\Servername
|---/acmewidgets
|---/accounting
|---/confidential
|---/finance
|---/publicfiles
| |---/applications
| |---/games
| |---/sickdayforms
| |---/vacationforms
|---/sales
|---/mp3files

I had your suggestion in mind but i can't ask him any questions regarding this exam and I would greatly appreciate it if i had the approach where the user's GOUP folders would be mapped instead of the department.

In addition. can you tell me if the "%groupname%" syntax is the appropriate syntax to indicate the groupname?

Thanks, I'm sorry about this, but I have a pathological dislike of providing answers to homework/exam questions. So the best I can do is provide pointers. May I therefore make a strong recommendation? Read the man page for smb.conf - in PARTICULAR the bits about dynamic share mappings/net logon scripts.

Good luck.
882.

Solve : Red Hat Disk Mounting?

Answer»

Hello to Everyone!

I'm new to Linux and I'm using REDHAT 7.2.
I'm currently having problem on how to access my files on a separate HD (FAT32) and I don't know how to mount it.
A little help would be very much APPRECIATED, thanks! I'm using Fedora, which is based on Red Hat, so I presume the process is similar.

Either go into the COMPUTER, right click on the hard drive icon you want to mount and click on 'Mount Drive", or open a terminal window and TYPE:

Code: [SELECT]# mount /mnt/hdaX
Replace X with the drive/partition you want to mount.

883.

Solve : in the script using password?

Answer»

I have given the following LINE in my shl program.

umask 000
CLEAR
ECHO "Enter the passwd : "
read pw
if [ $pw = 'apple1' -o $pw = 'APPLE1' ]
then


While running this shl program it is asking password and while typing the password the password is display in the screen. Is there any chance to encrepted the password (that MEANS others could not seen what am typing the password).

884.

Solve : Puppy is the best?

Answer»

Puppy is the best linux distro I ever tried. Because it is the easiest and is fast on my old laptop. I am trying to convert/convince my friends to give it a try by giving them a livecd to use.Anyway I am having FUN and saving a laptop from oblivion. Tell them more!
Quote

Puppy Linux is a full-fledged operating SYSTEM bundled with application suites covering a wide variety of tasks which can be used productively by general users. However, because Puppy is small-sized and can boot from MANY media, it is also useful as a rescue disk, a demonstration system, or for reviving old computers. Puppy can boot from:

* A live USB, including USB flash drives or any other bootable USB storage device (flash-Puppy)
* A live CD (live-Puppy), with six flavors to choose from
* A Zip drive or LS-120/240 SuperDisk (zippy-Puppy)
* An internal hard disk drive (hard-Puppy)
* A computer network (thin-Puppy)
* An emulator (emulated-puppy)
* A floppy boot disk that loads the rest of the operating system from a USB drive, CD-ROM, or internal hard drive

Puppy Linux features built-in tools which can be used to create bootable USB disks, create new Puppy CDs, or remaster a new live CD with different packages.
http://en.wikipedia.org/wiki/Puppy_Linux
Download: http://www.puppylinux.com/download/
OR
Official site http://puppylinux.org
Read pver the list of packages.
If the version 4.3 does not work for you, try a version 4.2 retro.Yes, I agree and do give them links to everything for and about Puppy. My husband thinks I am nuts because I spend more time on my Puppy Linux laptop than on the new Acer Aspire with windows 7. I just get on the windows laptop to keep it updated.

He is going to give me another laptop to put linux on it has 512 mb ram. The one I am using now is got 128 mb ram and a 3g hard drive. I installed Puppy and I am in heaven LOL

I do not care for windows to much it is nerve wracking to take care of.

Quote from: webeye on May 05, 2010, 10:38:24 PM
The one I am using now is got 128 mb ram and a 3g hard drive. I installed Puppy and I am in heaven LOL
I've never tried Puppy. Does it actually run well with only 128 RAM? It's very minimum requirement is 128 MB. For old computer I use Lubuntu. Several reasons: it REQUIRES only 64 MB RAM (actually the hardware requirements are similar to Windows 98), it is based on Ubuntu which is my favorite distro and it comes with all the programs i need.Small and live Unix distributions
10 Best Minimal / Low-Footprint Linux distrosPuppy is good.
I haven't tried it in a couple of years, though.

@Geek-9pm, You seem pretty interested in Open Source, are you running anything, any projects, etc
or
are you looking for something to get into?
Quote from: mr-bisquit on May 06, 2010, 01:39:19 PM
Puppy is good.
I haven't tried it in a couple of years, though.
But I mean does it really actually work well on old hardware. Lubuntu will run on 64 MB RAM and any Pentium CPU. Puppy needs 128 MB RAM and 166 Mhz or higher. Puppy has the higher requirements so then wouldn't Lubuntu be better for old computers?

I'm looking for a distro that: has a UI and can run on 32 MB RAM and a 80386/80486. So far the best match I've found is Slackware, it can run on a 486 with 64 MB RAM.Quote from: mr-bisquit on May 06, 2010, 01:39:19 PM
Puppy is good.
I haven't tried it in a couple of years, though.
@Geek-9pm, You seem pretty interested in Open Source, are you running anything, any projects, etc
or
are you looking for something to get into?
I was into Linux many years ago. I did help people use in in Spanish. But now I have plenty to do just trying to remember which pills to take and when is my next doctor visit. Wait let me turn on the microphone. I hate typing.
Him all right, now I have the microphone on my head and I can blabber a bit.
For many here is my wife and I have engaged in voluntary missionary work in South America. But I have to admit I was not really very good at it because of my health issues. We were volunteers the just paid our own way, because I was in a position to do that. After being one in one country I came back to the United States and found that I could not get a job in my own field of broadcast engineering, so I started studying computer programming and computer technology. When I became certified as electronic technician I went to work for the Dysan Corporation done in Silicon Valley.
Well put long story short, I officially became a professional programmer and I did a similar language. And also worked on hardware at the same time. So I was sort of a multilingual multi-task super technician and junior programmer.
Many many years later we went to South America again and this time I'm took an interest in Linux and tried distributing it to people in South America. Of course that was not my principal reason for being in South America, it was to do with our missionary work. But I do like the concept of Linux. It is based on a very noble idea, that of sharing your work with others without expecting anything in return. I believe this is a very important, underlying principle that is often neglected.
Incidentally, the comparison between Linux and the commercial software corporations has been sometimes compared to a free market and a religious institution. Sounds rather ironic, doesn't it?
Think of a big free open marketplace for all kinds of people come together with their wares in goods and trade and exchange and are able to carry on a commercial business, but not to the point of exploitation. In a free-market exploitation and fraud is quickly identified. There are too many people watching you. So that has been used to describe the idea of the open source software movement. In contrast to this, the secret software developers have been compared to a priesthood that keeps their operations inside of a mystic cathedral. If you go into the cathedral you can ask questions if you want. But the answers you get are very limited and the priests will not tell you everything that you would like to know. And they expect you to contribute something significant for whatever help they can give you. That was used in an article written some years ago, I don't remember exactly who wrote it. But it was something about the Bazaar and the Cathedral.
Anyway, I no longer have the time and resources to do it much like attention to things that are not immediately necessary. But I do like getting on this forum and sharing whatever I know with others. At no charge. But then, I'm not sure if my advice is worth anything anyhow!.
I do believe that Linux, not Windows, will help with some of the communications need that people have in Third World countries. Oh, that's not politically correct anymore. Now they're called developing countries. In many developing countries there are still remote areas worst people live in the jungle and speak dialects that are not widely known in the rest of the world. Some of these people do not even have a written language, or if they do, it is not taught in the schools. With new advances in technology is now possible to have a very small DVD player that a missionary to take into a remote area and show the native people a presentation that was prepared in the language. With such audio and visual tools a lot can be done to educate the people of the world. Hopefully, technology and the open source movement and have some part in this.
But do not trust the big commercial companies to help out with this. Some while back somebody had an idea of putting laptops in the classrooms at $100 a pop and to try to get many countries to support this idea to help the children in the underdeveloped countries. Well is a good idea, and made use of open-source materials, but GUESS who came along and said oh we can do it better but it'll cost $200 a pop instead.
Okay. End of my rant for today. But I still think Linux has a future, and Windows eventually will die. While I say this, I'm actually using a Windows system to dictate this. So far, the dictation software I use is only available in a Windows system.There's Knoppix adriane http://www.knopper.net/knoppix-adriane/index-en.html
and festvox.
If you're talking about guarani, my grandmother speaks that language. Me, I can only say, "What's going on here?" and nothing else.
885.

Solve : sort file by column?

Answer»

hello,

i need a script/command that will select all LINES whose 2ND column value is greater than or equal to $DateIs

DateIs=04/23/2005

The FILE contains these info

row1 04/22/2005 04/23/2005
row2 04/23/2005 04/23/2005
row3 04/24/2005 04/24/2005

is that POSSIBLE? thanks

886.

Solve : ltracing process?

Answer»

Hello,

I have ONE doubt ..... is this be possible to trace out which process is writing a specific log. if so could any one PLZ TELL me how can i find out that (plz assume that process id wasn't there in the log).

Thanks for your time.Disregard my posti got that...

fuser -UV "LOGFILE"

887.

Solve : Installing older version of Red Hat?

Answer»

Hi'll

I am currently running Fedora Core 3 on my box only. There is no Windows installed on it.

I want to get rid of Fedora and want to re-install Red Hat 7.1.

Could anyone tell me how I can do that ? I KNOW that if i run newer version of Fedora on the existing, it simply upgrade the machine to new version. But how to do in case of OLDER version...

THANKS,
VickInsert BOOT diskette, or boot from CD and remove all existing PARTITIONS, then reinstall.

888.

Solve : help!!! select lines based from columns?

Answer»

Here's what i need to do.

I need to edit the contents of file1 such that it will contain all lines whose COLUMN 2 are GREATER than or equal to 04/22/2005 AND Col6 is NOT equal to SU

from this file
Col1 Col2 Col3 Col4 Col5 Col6
Job1 04/21/2005 03:30:36 04/22/2005 03:32:29 FA
Job2 04/21/2005 03:32:31 04/22/2005 03:34:37 TE
Job3 04/22/2005 03:34:40 04/23/2005 03:34:43 SU
Job4 04/23/2005 03:34:45 04/23/2005 03:34:48 FA
Job5 04/23/2005 03:34:52 04/23/2005 03:42:12 FA

to this
Job4 04/23/2005 03:34:45 04/23/2005 03:34:48 FA
Job5 04/23/2005 03:34:52 04/23/2005 03:42:12 FA

can the sed COMMAND do it? if yes, what would be the command. IM not that familiar with sed :(

if sed can't do it? how can i get this done?

thanks!

889.

Solve : striping or deleting lines in files?

Answer»

I am trying to strip LINES out of a FILE that doesn't not have temperatures in the lines. How is this done, or what is the COMMAND to do this?

Thank Youyou can use sed.

sed -E '//d' filename > filename1

890.

Solve : What Distribution??

Answer»

Well, the title says it all. I need a Linux Distribution to use an everday OPERATING system, for everyday tasks. I need everything that a OS has like Windows XP (- security flaws , and I am QUITE experienced with Linux, so just post some ideas about some good stable, free, operating systems that I will be able to use and switch over from XP. Thanks in advance.Well you have linux......redhat/Suse or lindows or mac tigerThis site has a datbase of almost every linux disto have look and see which one will suite your needs.
SUSE, red Hat or mandrake are some of the best choices as they have a large user base and lots of support

http://www.linux.org/dist/index.htmlFedora is definitely the way to go. Easy install, RPM based distro, compatible w/ hardware, secure, and stable. Best I have used since I have been into linux! Most thoroughly developed; It is the free version of RedHat, for goodness sakes.
check here for more info on Fedora.

Here is a good article on Linux Distros: http://greauxpc.no-ip.org/index.php?option=com_content&task=view&id=4&Itemid=2Choose distro, read reviews and so on at:
http://distrowatch.comWhat are your COMPUTER specs - manufacturer, amount of memory, processor, printer, etc. etc. The more information the better.

I would recommend Linspire, unless it is really exotic or sub-par hardware. XANDROS would be a somewhat close second, and many others if you fall in the strange components/low RAM category. Let me know. You can do this!!!

Mark

891.

Solve : The Linux TAX on handheld devices?

Answer» The Linux TAX is already in effect for at least one major hand held product. The end-user is not aware of the tax, rather than agreement was made by the principal parties interested in the development of new devices that would use the Linux operating system along with proprietary software.

So what do you think?
Will this bring in new and better products to the marketplace?
Or will it have the opposite effect by discouraging smaller companies from entering into the embedded Linux market?

So far, the tax is not really on the operating system itself, but rather on a device that uses Linux along with proprietary software.

Any remarks are welcome.

This is a very serious issue.

This poll runs for 7 days. Cast you vote NOW!


what are you talking about?With regard to the question.
On Linux forums the issue of "Linux Tax' has been a hot topic.
The term tax can have a basic meaning with broad application.
1. A tax on anything might be a fair charge to support a product or service received.
2. A tax, says a dictionary, can also mean any heavy burden that holds men in submission and impends their freedom.

Even if a obligatory transaction is not called a tax, it might fit either of the two above definitions. Such a transaction may not involve the actual exchange of money. It may require some other form of compensation to the one who levees the tax. In some cases it is not possible to meet the obligation because the method of payment is not withing the means of the prospective tax payer.

The Linux Tax is being used to retard the growth of devices from upstart companies that would compete with smart phones, netooks, PDAs, digital video cameras and similar mobile or hand held devices. This is a deliberate action that claims to be a protection of intellectual property.

This burden is very real, but its legality may not yet be established by a court of law. A big corporation may make private agreements where the details are not openly disclosed. Thais might be a violation of anti-trust laws in the USA.

Some experts say this is a common business practice and there is nothing to worry about. Now the question remains - Will this be in the best interest of the consumer who does not understand the price of his new gadget is higher than it could be if there was no hidden tax?

This is not a personal ant. It is an echo of what many others have said about the Linux Tax. After all, I am like a parrot.
You realize that if a company wants to put a windows variant on a handheld device, they have to pay a "windows tax"? and (if apple allowed it) if they wanted to put a mac OS version odd they'd have to pay for that as well?

If the person who is paying the "linux tax" doesn't want to pay the "linux tax" it's as simple as removing those parts of the software that use patented technologies such as VFAT. Why did they choose VFAT? is there something wrong with the Linux filesystems that would require no "tax"?

It doesn't matter how MUCH "cheaper" something might be without some "tax" as you say- by the same token one could say there is a case tax for having a case on the device, or a "screen tax" for having a screen, or a colour tax for havign a colour display. It all comes into the final price of the component and that price is repaid and a profit made when the device is sold. The freedom given to people in the various free countries of the world extends to companies as well- if a company wants to put linux on a handheld device, they choose to use a patented technology (such as VFAT) that is there perogative. if the price increase from such a decision makes the product unattainable to most consumers it will not succeed.


It's curious to note that a lot of the implementations of VFAT were not conceived of independently, but drawn on from patents made by microsoft on the technique, which is basically the addition of Long file names to files by using separate directory entries.

Nobody forced them to use VFAT- if they wanted, they could have created their own variant of FAT (which is not patented) or simply used a Linux filesystem.Please provide proof of this so called tax.
I am a member of quite a few Linux forums and there is no mention of tax. Quite a number of people would say que você fala merda.
There is no charge for people to get the source code of any Linux distribution.
Wherever you read this it's false information.
Tell you what, go ask this at the debian forums and see what replies you get.

Linux tax, MINHA bunda.
Você chegou com bobagem. Porra! Que um cabeçudo.

Get your facts straight and stop spreading lies.Quote from: Geek-9pm on April 30, 2010, 01:16:18 AM
On Linux forums the issue of "Linux Tax' has been a hot topic.
I am on at least 3 Linux forums and I've never heard of this "tax". Please explain more about it.Quote
Linux tax, minha bunda.
Você chegou com bobagem. Porra! Que um cabeçudo.
Get your facts straight and stop spreading lies.

Good idea! But that only applies to individuals - Right?
Big companies can lie and lie and we have to prove they are lying and maybe in 3 or 4 years the law might slap they with a fine.

The Big Companies get to say anything they want.
But if an individual questions their motives he is labeled a rumor spreader.

Here is a recent article from a good sauce.
Dell’s “Linux Tax” is outrageous
* 14 Comments
by John Biggs on March 1, 2010
http://www.crunchgear.com/2010/03/01/dells-linux-tax-is-outrageous/
Now please prove to us this is a lie.

Quote
victor - March 1st, 2010 at 11:43 pm EST

100,278 is gone… now only 279
reply

http://www.dell.com/content/topics/segtopic.aspx/linux_3x?c=us&cs=19&l=en&s=dhs



Don't you ever bother to read an entire thread? There is such a thing as a misprint.


There, I have proven your statement false.

Seems the price went up $20 from the time victor posted until now.


Thank you for proving my statement false. I have learned from that.
Here is some more information from Dell:
Quote
Ubuntu 9.04 Moblin Remix Developer Edition
Rate This
What is Moblin?

Moblin is open source project, created by Intel and hosted by the Linux Foundation, focused on building a Linux-based platform optimized for mobile devices. It has a unique user interface focused on using the Internet, social networking activity, and media consumption, and is optimized for small screens. The Moblin project recently released version 2.0 , which includes many new features such as the myzone home screen panel, aggregation of social networking content (such as Twitter, last.fm, and instant messaging), a web browser optimized for the user interface, a "zoomable" media player, and an updated connection manager with a new user interface.

What is Ubuntu Moblin Remix, Developer Edition?

Canonical, the company behind the Ubuntu Linux distribution, has combined the core Moblin Version 2.0 interface, libraries, and applications with the internals of Ubuntu Linux 9.04 to create a new Linux distribution, Ubuntu Moblin Remix. We have labeled this distribution as a "Developer Edition", as it is still a WORK in progress at this time. We are currently targeting developers, Linux enthusiasts, and early adopters who want to get an early look at the software and begin developing for Moblin, participating in the community, and using new technology.

Ubuntu Moblin Remix (UMR) has been developed on and tested solely for the Inspiron Mini 10v. Installing and running UMR on other Dell systems will most likely work, but may not contain all the necessary device drivers and/or run as well as on the Mini 10v. Please keep this in mind when using on other systems.

Get Moblin

PURCHASE a Dell System with Ubuntu Moblin Remix

To purchase an Inspiron Mini 10v with Ubuntu Moblin Remix,
please visit http://www.dell.com/ubuntu.

Download the Moblin Installation Image

To download and install Ubuntu Moblin Remix on your Inspiron Mini 10v, complete the following steps.
NOTE: Installing Ubuntu Moblin Remix will erase all data on your hard DRIVE. Please proceed with caution ...
http://en.community.dell.com/support-forums/software-os/w/linux/ubuntu-9-04-moblin-remix-developer-edition.aspx

I wish something similar would come out for iphone but I doubt that would ever happenQuote from: Wefro_froyas on May 02, 2010, 07:23:03 PM
I wish something similar would come out for iphone but I doubt that would ever happen
Never happen!
BTW, Apple is coming down on near copies of the iPhone.
But it does not involve Linux.
Not yet.
EDIT:
Oops! Maybe I was wrong about that. Please take a look at this:
http://www.linuxfordevices.com/c/a/News/iPhonelike-Linux-phone-delayed/

892.

Solve : sed -f sed.cmd rpt.tmp > rpt.tmp2?

Answer»

how can i execute this command in a script?

this is what i executed manually via cmd prompt.
(server)user:/home/user/scripts>sed -e '/^ *$/d' \
> -e '/ SU /d' \
> -e '/Job Name/d' \
> -e '/______/d' rpt.tmp > rpt.tmp2

I tried doing the same inside a script but it does not WORK.

What i did is that i put all the sed commands inside a FILE sed.cmd and executed

sed -f sed.cmd rpt.tmp > rpt.tmp2

I DONT want to have another file just for to have the sed.cmd. is there a way that that can be accomplised inside a script without NEEDING for the sed.cmd file?



893.

Solve : perl script for gathering info and sorting : query?

Answer»

below is a perl script which gathers the information about all the user’s files, sorts the result into numerical order and emails the user only the first 20 lines of the result.

any of the following commands to be made use of ( ls , sort , grep , wc , head , df , du )

#!/usr/bin/perl
# email a df report

open (GETSYS, "ls -al | sort -n | head -n 20 |") || die "Can’t read pipe\n";
open (MESSAGE, " |mail –s \"Disk Usage\" XXX\@somemailid.com")
|| die "No email\n";
while ($line = ) {
Print MESSAGE $line;
}


the script sends the user an email message containing information about their disk file utilisation. The mail message is sent to the specified address (XX[emailprotected])

will the above script do the job?
please let me know if my effort is right.

cheers!
Ray
you could do this too

Code: [Select]#!/usr/bin/perl
# email a df report
$CMD = qq(ls -al | sort -n | head -n 20 |mailx someid\@somedomain.com);
system($cmd);



Thanks ghostdog!
another one.. this ones abt pipes

#!/usr/local/bin/perl –w
# perl script to do a ls | grep “.pl” | wc –w
pipe PIPEIN1,PIPEOUT1;
pipe PIPEIN2,PIPEOUT2;
if (fork == 0)
{
close PIPEIN1;
close PIPEIN2;
close PIPEOUT2;
close STDOUT;
open STDOUT, “>&PIPEOUT1”;
exec “/bin/ls”;
}
if (fork == 0)
{
close PIPEIN2;
close PIPEOUT1;
close STDIN;
open STDIN, “<&PIPEIN1”;
close STDOUT;
open STDOUT, “>&PIPEOUT2”;
exec “grep .pl”;
}
if (fork == 0)
{
close PIPEIN1;
close PIPEOUT1;
close PIPEOUT2;
close STDIN;
open STDIN, “<&PIPEIN2”;
exec “/bin/wc -w”;
}
close PIPEIN1;
close PIPEOUT1;
close PIPEIN2;
close PIPEOUT2;
wait;
wait;
wait;

I'm supposed to modify the above program so that it can handle any three commands which MAY be piped together. The commands may be entered individually on the command line, one per line, so that there is no need to parse the line or identify the pipe symbol.

Is this for work? or is it an assignment/homework or some sort?
If its for work, why not do it in shell script? its easier

Code: [Select]#!/bin/sh
ls | grep “.pl” | wc –w

For example of everything done in Perl,
Code: [Select] while (<>) {
@words = split(/\W+/);
$count{$ARGV} += @words;
}
foreach $file ( keys %count) {
print "$file has $count{$file} words\n";
}

Reference: http://www.stonehenge.com/merlyn/UnixReview/col02.html

If still wish to implement pipes in Perl to call shell commands, just a simple idea...
Code: [Select]printf "Enter first command: ";
my $first=<STDIN>; chomp($first);
printf "Enter SECOND command: ";
my $second = <STDIN>; chomp($second);
printf "Enter third command: ";
my $third = <STDIN>; chomp($third);

my $cmd = join('|', $first,$second,$third) . "|" ;

open PIPE, "$cmd" or die "Couldn't open pipe, $!";
while(<PIPE>){print}
close PIPE;


thanks again! u r an ace ghostdog!

its an assignment to b done usin perl script only

894.

Solve : Linux Recomendations?

Answer»

Hey guys, I was wondering I want to play with linux, I heard its a freeware. Anyways I was checking it out and who knew there were so many! Anyways is there one I can downlaod that is good and easy to use?

I need something close to linux for dummies. I like playing with OS. So IF you can give me a link to one I can DOWNLOAD and play with a basic one (^_^) then once i get it i'll move on to something more complex thanks.What are your computer SPECS - manufacturer, amount of memory, processor, printer, etc. etc. The more information the better.

I would recommend Linspire, unless it is REALLY exotic or sub-par HARDWARE. Xandros would be a somewhat close second, and many others if you fall in the strange components/low RAM category.

Many Linux distributions have a live CD which LETS you evaluate/test for compatibility without writing anything to your hard drive. I would be glad to send you such a thing if you cover cost.

Mark

895.

Solve : Uncompress recursively???

Answer»

I need to uncompress hundreds of files that are two directories deep (ex: store/storenum/filename.Z). Is there a command to do this or does it need to be scripted? If scripted, what's the best way to do it? It's been over 8 years since I've touched a UNIX box but apparently I'm the one that's supposed to sort this out... HELP!!cd to the relevant directory, then do:
find . -name '*.Z' -EXEC unzip '{}' ';'Use -iname instead of -name for a case insensitive search (i.e. to match *.z too).

This is recursive - all .Z files below the starting directory will be found. They will be uncompressed into the current directory however. If you wish to create a new folder somewhere to uncompress the files into, that will be a little more complicated. The basic principle is the same though.The files were compressed using the COMPRESS command.. I can't use unzip or gunzip. Er... you're welcome...

Replace "unzip" with "uncompress". (Assuming you have compress/uncompress installed on your system.)Thank you for your replies!! It WORKED great EXCEPT for what you warned me of (all files were put in the wrong directory). I figured out how to do it so that the files remained in their proper directories...

I never thought I'd have to remember this STUFF again!! Thanks again for your help!!You're welcome - glad it's all sorted.

Unix is like riding a bike really...

896.

Solve : For a Linux Newbie?

Answer»

Does anyone know which BUILD would be best for a newbie to LINUX? I am looking into SuSE, Linspire, and a few others...What are your computer specs - manufacturer, amount of memory, processor, printer, etc. etc. The more INFORMATION the better.

I would recommend Linspire, unless it is really exotic or sub-par HARDWARE. Xandros would be a somewhat close second, and many others if you fall in the strange components/low RAM CATEGORY. Let me know. You can do this!!!

Mark

897.

Solve : Unix And Synergy?

Answer»

Has anyone gotten an error that says:
Could not set permissions of file when trying to CHECK out a PROJECT in CM Synergy from Unix?
If so please EMAIL me at [emailprotected]
THANK you

898.

Solve : Ubuntu cd won't install?

Answer»

Hi. First of all, I know nothing about Linux. I WANT to install Ubuntu on a 6gb drive, and I have the cd they sent me. I go through all the questions and it starts to install till it gets to 23%, then although the cd runs, the drive doesn't. I've let it run for over an hour and the only way to stop it is to reboot. By that time, all the bootup files are gone from Win 98 that was on it. How long does it normally take to install from cd?. And what am I missing. Thanks :-?
256 Ram, AMD Athlon 1900+Or just CHOOSE to let Ubuntu take over the ENTIRE hard drive and see what happens.Hi. Yeah, that's what I did. I've been told that 10 gig is pretty much what I need, but you work with what you got. The problem is that it SEEMS to hang at 23% every time I try it. I can't see them putting more than my drive will handle on the cd. Oh well, it was just SOMETHING new to try 8-)I would try a reburn at a nice slow speed, maybe 4X and see if that helps it. I am assuming the hardware you are using is OK?Quote

I would try a reburn at a nice slow speed
I think KRO is using a CD that the Ubuntu team sent him...?It sounds like a live cd?

If its stuck on 23% chances are the cd burn is uneven and corrupt.

Have you got broadband, a cd-rw drive and a cdr disk? (or maybe 2 incase it doesn't work?Personally I would never USE a CDRW for an OS burn, but that's just me. Quote
Personally I would never use a CDRW for an OS burn, but that's just me.

Sorry not sure if i was clear in my last post, You need broadband to download, A cdrw optical drive and a cdr disk (or maybe two incase of an incorrect burn)
899.

Solve : LPD Server?

Answer»

I am trying to start LPD SERVER on a LINUX ENVIRONMENT. Can't FIND the command to do that. Help?

K. K.

900.

Solve : How do I down load Linux Mint??

Answer»

There is such a thing as wget for windows. Or you could use bit torrent and the sources would be MERGED together. A LOT of UNIVERSITIES have available REPOS if you LOOK.