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.

901.

Solve : My MP3s don't play?

Answer»

I have a LOT of MP3. But I can not play them in linux because of decoder.mp3 PLAYER downloads are available at Linux's WEBSITE...

902.

Solve : Read-only file system?

Answer»

I want to remove a FILE from MAC. I am in Single user mode. (the UNIX level) The command I am using is "rm filename.log"
it asked if I want to override the permissions for the file, I ANSWER "y" it then displays the file name followed by "Read-only file SYSTEM" and the file remains. What command can I use to DELETE this file?Ok I GOT it log in as "root" and you can trash what ever you want

903.

Solve : find the creation time of the file?

Answer»

I TIRED with some possibilites to find the creation time of the FILE ,but nothing WORKED out fine.It is showing the INODE change time or the last modified time .
Does the solution exist for this ?No; Linux only tracks the modification time. Obviously if the file has never been modified, this will be equal to the creation time, but that is not guaranteed.

904.

Solve : I guess this applies to Linux?

Answer»

I tried to erase the OS off of my laptop and install Mandrake Linux on it. I used to have Windows 98, but now I don't have either. Everytime I boot my computer up, it comes up with the message that it cannot FIND an operating system. If I can get into the BIOS, then I can SOLVE this problem with ease, but I can't even do that. The second I hit that power button, it tells me that it can't find an operating system. Even if I have the Linux boot disk in the CD drive, it won't do anything. I just got this laptop from a friend and I would hate for it to go to waste. Please help me!Double posting CONFUSES THINGS.

905.

Solve : No warnings from "find"?

Answer»

Hello,

Does anyone knows how to prevent the "find" command from outputing warnings?

As it searches, it lists things like
: permission denied
: permission denied
: input/output error

So when I go back to look at it I can easily miss what it has found because it is lost in the middle of a long LIST of warnings.

I would like it to output only the result, or nothing if it hasn't found what I was looking for.

Thank you for any ideas.

Mariane


ASSUME I know nothing about Linux, but if it works like Windows, you can try:
Code: [Select]
find "ARG" filename > con 2> nul


There are REALLY two output streams from any command, STDOUT and STDERROR. Just a matter of directing the output.

Good luck. find whatever 2> /dev/null

906.

Solve : Please help me with crontab command?

Answer»

Hello everybody, I´m here again with other problem.
I have been fighting three days vs crontab command in my Suse 8.1 Linux machine.
The question is I must do a crontab file to execute the order "echo HAPPY BIRTHDAY" each half hour between 9 am and 5 pm the days: may 9, may 14 and august 23.

Well, thus I opened my bash shell and wrote in it:

user > cat > tperiod1 //(The crontab file name).
> * 9,17 9,14 may * echo "HAPPY BIRTHDAY"
> * 9,17 23 aug * echo "HAPPY BIRTHDAY"
> // (ctrl+d)
user > // (this is a prompt)

Once written the file I followed:
user > crontab tperiod1
user >
user > crontab -l

(system answered the file is working, but this is not true in reality)

And for testing that so called "crontab file" I wrote another crontab file more in my bash shell:

user > cat tperiod2
> 1/2 * * * * echo "HAPPY BIRTHDAY"
>
user >
user > crontab tperiod2
user >

And I thought in 30 seconds a message would be displayed: HAPPY BIRTHDAY... but no.

I tested:

user > crontab -l

and Linus system says tperiod2 is running (but it´s not true because there are no messages).

Well, I have tried and tried, I have visited a lot of web pages about crontab command moreover "man crontab", and I am desperated now because I feel myself like a real unfit for this...

Somebody could explain me how building a crontab file step by step, please?

Early thanks ...



When I'm using crontab, I always edit the /etc/crontab file. I like to have all my automation in one place. As root, do vi crontab or whatever editor you prefer. (I use joe, but you may not have it installed.) For your problem I think you should use a different crontab line for each day you want the command to happen.

As for the command itself, I am not convinced this will do anything useful. Cron runs whether or not anyone is logged on. SO where will the echo command send its output? Which terminal? No it would make more sense for cron to email a Happy Birthday message or use write to send the output to a user's tty. Even better, write a script to test whether the user is logged in. If so, use write. If not, use mail. Then run that script from crontab.

Put user-defined scripts in /usr/local/bin, or in ~username/bin.Hi Robpomeroy.
Thanks for your help, like always... I think I have not explained well the problem.
The problem is I must build the file named tperiod1, that must echo a HAPPY BIRTHDAY in my bash console. Nothing about editing the crontab file in /etc/crontab...

Looking other web pages about crontab I have seen something like this, (but I haven´t test it):

user /> cat > tperiod1 //(The crontab file name).
/> /bash/sh // (this is a new line I think to change the execution down sh shell)
/> * 9,17 9,14 may * echo "HAPPY BIRTHDAY"
/> * 9,17 23 aug * echo "HAPPY BIRTHDAY"
/> // (ctrl+d)
user /> // (this is a prompt)

And after this, I think test again:

user /> crontab tperiod1
user />

What do you think about this?

Again, I repeat: where is cron going to send its output? Not to the console. Cron is not attached to a console - it runs independently. The output of the cron JOB you have set up will go (if anywhere) to the system log - normally at /var/log/messages. Load up /var/log/messages, and search for "cron" - you'll probably see your Happy Birthday message appearing there.

This is not the way to achieve what you are trying to do - you must read and understand my first post in this thread.Ok, thanks again for your response. I think I´m going bit a bit understanding how cron works.
But I must imagine what my teachers want I make to response his question (make a crontab file that displays HAPPY BIRTHDAY) and I must join all you have said me about cron and crontab.

Now I´m trying learn about the VI editor, because this is other thing my teachers thinks I ALREADY know for the Holy Ghost´s grace... :-?Yes, because I´m a little bit mind dispersed, I have seen the /var/spool/mail/user, and I had a lot of mails saying HAPPY BIRTHDAY...

Well, thus, I think now I must send the output of this crontab file to /dev/pts/1 (my bash console).

I need a bit of time to do a new experimental file crontab...

And I will return here to say if it works or not.
If you're just going to send it to the console, use the write command. That'll be much easier for you. As I said before, you'd need to test whether the user is logged on. The mails are because CERTAIN distros will automatically email the output of cron jobs to the owner of the job.This is the final solution:

PRACTICE 1st.-
[emailprotected]> who am i
linux!user pts/(number) (date)

[emailprotected]> cat > happybirth
> 5,10,15,20,25,30,35,40,45,50,55 * * * * echo "HAPPY BIRTHDAY" > /dev/pts/(number of who am i)
> (ctrl+d)
[emailprotected]>
[emailprotected]> crontab happybirth
[emailprotected]>

And each five minutes, bash will show you the message HAPPY BIRTHDAY...

This runs on my bash console.

Please Robpomeroy try to do it and tell me... your comments... please.
Thanks.
As soon as you log off, what is going to happen? Cron will start sending emails every five minutes. And then when you log on again? You will only see the messages if you get the same pts terminal. In fact someone else might log onto that terminal and be plagued by the message instead.

But apart from that, it looks like it will do what you want. Just not sure why you would want to do it this way.I don´t logoff my bash console. My bash console is opened.
Each five minutes in bash console appears:

[emailprotected]> HAPPY BIRTHDAY //(MINUTE INIT)
[emailprotected]> HAPPY BIRTHDAY //(MINUTE INIT + 5)
[emailprotected]> HAPPY BIRTHDAY //(MINUTE INIT+10)
[emailprotected]> HAPPY BIRTHDAY //(MINUTE INIT+15)

AND SO ON...

Doesn´t start sending emails.... only sending the message to konsole (bash).

This is what I wanted, and what I was asking here, to see crontab working whatever manner.

I think this is the best example to see how crontab works. I haven´t could find it in the whole Internet.

After this I am ready to make any crontab file with inner commands to execute.

Thanks a lot for all your support.

Glad you got it working the way you wanted!Hi Robpomeroy:
Only is to saying you I just started to study shell scripts today.

I count on you for next help in my Linux problems.

Thanks.

907.

Solve : RedHat Linux 9.0 Installation problem?

Answer»

Hai,

I am trying to install RedHat Linux 9.0 on my intel 915G chipset p4 system & having 17inch colour monitor, winxp already installed, insalling as Dual boot,

when I boot the system from Linux bootable, the monitor make DETECTING but It shows DISPLAY error SETTING problem press any key to reboot.

pl put in detail,
Thank u

Did you get as far as a lilo boot prompt? (Which says: "boot:") How far do you get into booting?its detecting display driver,monitor after that its Display corrept error & system will reboot,

Any how Now I am trying to install the Fedura core linux but my 3 cd is not reading properly. Can I install without cd3 ?

I don't know what's on CD, but you can bet you'll have problems without it... When you download the ISO images, first check the MD5 sums. Then burn to CD, but in your burner software, check "verify data after WRITING". Then you can be sure that you have working CDs.ok thank u,


I will get it IMMEDIATELY

908.

Solve : Re: help..?

Answer»

Double POSTER alert! What does Registrar Lite have to do with Linux?I have no idea whatsoever.
The text I typed was COMPLETELY different and when I hit post this is what CAME up.
The text here is the same as a post someone MADE in the linux section.

909.

Solve : Ubuntu 9.10, Kubuntu Well not the server?

Answer»

Quote from: comda on April 20, 2010, 06:04:45 PM

what do you mean by 3rd partie software there are three tabs:
Ubuntu software
othersoftware
Updates
Authentication
I meant Other software, it is the same as 3rd Party software.
Quote from: comda on April 21, 2010, 10:26:21 AM
ok then is there a program that can unistal wine because I know I installed that WRONG Like they have in windows: Add remove programs?
Check this out: http://rondomstuffbyme.blogspot.com/2010/04/uninstalling-wine-in-ubuntu-video-for.html


Quote from: Cityscape on April 17, 2010, 09:35:41 PM
Ubuntu instructions:

1. go to System > Administration > Software Sources
2. Click the Third-Party Software at the top
3. Click the Add button, and enter the code below Code: [Select]ppa:ubuntu-wine/ppa4. Then click the close button and let it refresh if it WANTS. Close Software sources
5. Now open Synaptic PACKAGE Manager
6. Search wine and it should find it (wine) now.
7. Mark it for installation and click apply
It should now install.
After you install follow these instructions carefully.ok so i did that thanks! know to instal playonlinux should i use the one on my usb or should i install from ubuntu software center?Quote from: comda on April 21, 2010, 06:49:53 PM
ok so i did that thanks! know to instal playonlinux should i use the one on my usb or should i install from ubuntu software center?
First of all I'd like to say that you don't need PlayOnLinux to play your games. Wine is all that is needed, now that you have Wine all you really have to do is double-click the exe to install it.

However PlayOnLinux is a graphical front-end for Wine, but the advantage is that is adds in extra goodies to help your games run better & is easier to use for the beginner. So it is better for you to use PlayOnLinux.

There are several ways to install PlayOnLinux, I recommend this:
1. Open Terminal (located in Accessories menu)
2. paste Code: [Select]sudo wget http://deb.playonlinux.com/playonlinux_karmic.list -O /etc/apt/sources.list.d/playonlinux.list and hit enter. type your user password and hit enter again.


3. When it is finished enter following command and hit enterCode: [Select]sudo apt-get update

4. When the last step has completed use this command Code: [Select]sudo apt-get install playonlinux

PlayOnLinux should now be installed successfully. You could have also installed from the FILE on your flash drive. But the advantage with this way is that you'll also get the latest version updated. ok yeah before instalation of playonlinux and after my games would not work. When i click the GTA vc exe file it loads archive manager and gives and error.I downloaded playonlinux from ubuntu software center. Anyway I will TRY again. I also have WINE installed for its on the applications folder or dropdown menu. Not the beta though.Okay, let me know how it goes.still the same thing look to be honest I did work the first time I did instal ubuntu. And i will try again for the reason i reinstalled it was i didn't make the partition big enough. I will reinstall ubuntu try to install wine again and let you know. Thanks for helping me in advance I'm just tired of win xp. ok I reinstalled it and marked WINE in the package manager but I don't seem to find WINE in the app menu so i will download it from ubuntu software center
OK I got GTA VC to work but It works good for a few seconds gets choppy and then works good and folllwos a pattern. Other than that Every thing works could there be a way to make it work perfectly like it did on win xp?Did install GTA VC with Wine or PlayOnLinux?
910.

Solve : Search on particular column?

Answer»

Hi all!

Can you PLEASE help me out! I WANT to SEARCH * on first column of thousands files. Is it possible with unix?

Thanks and REGARDS,
AkankshaIf you are looking to narrow your search to just the first colum, just ENTER:

$find -name "f*"

911.

Solve : need help on linux kernal?

Answer»

hi,
I am using fedora core-3.When i am going to MOUNT ntfs partion it GIVES an error like "fs is not supported by KERNEL". Before fedora core-3 i was using red hat-9
at that TIME i was able to mount ntfs partion.
So what would be the solution?
Thanks in advance!!!

912.

Solve : Windows vs Linux?

Answer»

Recently I realized that I did not have a genuine COPY of windows. So now I have some decisions to make. I can either buy a new copy of Windows or change my OS. Someone suggested to try Linux http://www.novell.com/products/suselinux/ (this is the link to the specific Linux they are recommending).
My question is - what type of culture shock will I deal with if/when I switch over?You may find this discussion interesting: Why should I use Linux?. Other than that, if you Google "Windows Linux Comparison" I think you'll find a lot of useful information.Thanks. I read through the thread. I also am googling what you mentioned.
Here is the thing -

I am an above-average computer USER. I work in a COMPLETELY different field, so there isn't as much time as I would like to learn more about computers (which comes easy to me). Do you think I will be able to handle the transition easily? Or should I not bother until I can devote more time?Even "above average" computer USERS find Linux challenging. But then, as someone wisely pointed out, MS Windows is challenging the first time you encounter it.

There is a lot to learn with Linux, but that's ONE of its beauties. There is so much more that you can do with it - more that you can tweak, and MUCH more enterprise grade FREE software. It's worth the time investment; there's not substitute for reading the documentation, and getting down and dirty with the command line...You can also DOWNLOAD and burn a LiveCD from an ISO for several of the major flavors to see that it is NOT as bad as you think.

Ubuntu
Mandriva
Kubuntu
Slax
Mepis
Linspire (for the easiest transition from a Windows background)

THese are just a few. www.distrowatch.com has links to ALL of the major distributions. I don't believe SuSE has a live CD at this point.

Here is a link to Linspire. The installable version is not free, but is very reasonable, and for $19.95/yr. you get one click downloads to the software which makes it even easier. You can download software with all distros, but again, this is idiotproof. If you decide on this, PM me and I will get you a retail box set with a real MANUAL for half of what they sell it for online. You do not need to be a linux guru to run this one!

http://iso.linuxquestions.org/distro.php?distro=58

913.

Solve : Regular Expression/egrep?

Answer»

A friend posed a question to me and I have been unable to figure it out, maybe some genius MIND out there can help me. Here goes: (USING egrep) Display the records in xxx.dat that CONTAIN 30 or more characters. Put them in a file called 'ZZZ' overwritting.

What I have so far is: grep "(...whatever)" xxx.dat > zzzoops i meant egrep "(...whatever)" xxx.dat > zzz

sorry

914.

Solve : kubuntu help?

Answer» SORRY i know this is stupid but im really new to this ok so it will probably sound ridiculous...

(this is on another computer)

im using KUBUNTU, i accidently made my account root and now when i try to login it says root login not allowed, this is the only account

im not really sure what any of that means but i just need HELP to undo it please

thanksThe root account is disabled when you FIRST install Kubuntu and Ubuntu.
The first USER created during the installation has administrative rights on the system,
and can run programs as root with sudo, using only their normal user password.
For example: sudo apt-get update.

If you wish to use the root account in more traditional UNIX fashion,
you can set the root password by typing sudo passwd root.
This will allow you to use su or login as root on the console.

If you need a shell with root privileges, run sudo -s.

All uses of sudo will require the user's password.
915.

Solve : problem with linux server?

Answer»

In my college we have one Linux Server. We have practical on LINUX OS - C Programming.We are given TELENET login on windows 2000 . There are 60 students & in LINUX server there are 200 TELENET login allowed. But when we are implementing our practical of PARALLEL PROCESSING and NETWORKING in which we have to create shared memory area, processes, threads

--our LINUX server hangs frequently & all terminal are stops responding and server has to be restart.

We are also removing shared memory area created by us frequently.To create shared memory area we are using :

"IPC_PRIVATE, & IPC_CREAT command"

We use command "ipcs -m "which shows all shared memory area created by EVERYONE.

Before this year there were no such kind of problm.

So,what would be the problem & its solution.If u can help in this problem then it will be helpfull to us.

THANKS in advance.
Oh goodness - my IPC knowledge is very rusty, and I don't think I've ever TRIED to do something like this. What I do know however is that you must ensure that your hardware and software are up to the job. Preferably use parity checking with your RAM (BIOS setting), and a reasonably up to date and stable Linux PLATFORM - or possibly even consider using the community edition of Solaris.

What distribution are you using?

916.

Solve : uninstalling linux?

Answer»
hello.

i have two operating SYSTEMS in my pc. ONE is WINDOWS xp and the other is LINUX. i would LIKE to remove linux. how do i do that?
917.

Solve : Which linux???

Answer»

Hi,
I have kinda broken windows 98, (good riddance!) temporarily, and I would like a good version of linux. It needs to be good GUI on a slow computer, be pretty small, and do stuff that a good OS would do, be easy for someone WHO HASN'T A CLUE about the unix/linux dos- thingy with the wierd prompt and COMMANDS. Oh, and it has to be FREE. (is that even possible?)
If you can help, could you please send me a link? I havent a clue about linux and I spent 1.5 hours on google last night, and some told me to go through mirrors and I lost it again, so a link would be great.
PS, It doesn't have to be linux! if you've found a better OS then PLEASE tell!
PPS Even a Boot Disc would be great!
Well you're in luck! Most linux distros are free! What kinda hardware are we looking at magic? Some linux versions are easier than others for starters like yourself. You'll probably want to look into Fedora or Mandrake.

If you don't want to take the RISK of wiping your drive before you dig into Linux, there's a distro that boots and RUNS completely off a CD. That way you can get a feel for linux and practice around. It's called Knoppix. I sure hoped I helped you out a bit. If you need additional help, just contact me at ResourcePC.

DaveChoose wisely
http://distrowatch.com

918.

Solve : Open office, how do you get it to work??

Answer»

I just down loaded open office 3.2 to a DVD and INSTALLED it on to a new lap top and all I get is a bunch of files. No matter what file i click on NOTHING runs. There has to be some thing that I NEED to do to make it work. I have no idea what to do. Please help. OH, I am using Windows 7 on this lap top. I did a second down load and install and it works fine now. I don't know what happened the first time.It may have just been an error on the disk you burned it to.

919.

Solve : FTP Server Help?

Answer» ALRIGHT, I'll TRY that out and LET ya know how it goes.

Thanks again for all the HELP.
920.

Solve : how to create .cfg file?

Answer»

i know that if we want to ask for user entry at the start up... we can use the filename.cfg...

but how to create that file?

the language use INSIDE it?

please help me

thanks im advanceAre you sure this questions relates to Linux? You've ASKED it in the Linux forum.

What operatings system/program are you referring to?yup..
i using Monta Vista linuxHmm. That looks like a fairly specialised Linux distribution. This is not how you would normally set up users. I think you will need to obtain technical support from the distributor or your supplier.

I don't know if it helps, but you can normally create and edit text files in Linux using one of the text editors. E.g. vi, emacs or joe at the command line, or something like Kate in KDE.thanks Pomeroy...

i've did the script using vi...
the .cfg file is like some extras to the script..
instead of having user edit the script to change the variable, i decide to use user prompt..

i have a script that will continues running...
i believed its not ok to enter ctrl+c...
how is it?
do i have to enter some lines at rc6.d...(since rc6.d is responsible for shutting down)I'm afraid I don't understand your question. Something is getting lost in translation.

If your script needs to exit when you shut down, it will just be terminated - you don't need to worry about init scripts unless you have a particularly need for them.thanks Rob Pomeroy..

i did understand now...
i replace the termination of the script by prompting the user with choices...whether they want to continue running the program or execute to OS.
to make it CONTINUOUSLY, i did put the timer assuming user enter yes if the times up...

hhehehe... we should try and try and try untill EVERYTHING run perfectly... Well I'm glad you've ended up with something that's working for you.

921.

Solve : John TITOR - LOOKING FOR IBM 5100?

Answer»

:-/ :-/ :-/

To the GURU's I'd like to find an old IBM 5100 it is SUPPOSE to be able to interface with unix with right tweaks If you want to know more seach John Titor your self - and I'm sure there are people working on this stuff right now any hints on finding this hard ware and anything you know about tweaks please reply

This is a great form for help - even if this an off the wall question it is it is worth the look considering UNIX experation Date similiar to Y2K because of engineering limate at the time of design You can probably find one at the obsolete computer musuem or Ebay. Considering the fact that this 30 year old portable computer weighed 50 pounds, COST 10K usd, had 64KB, and used a subset of the IBM-360 OPERATING system, the Y2K tweak would be the least of your worries.

Thank you for reply I hope you are aware of "john TITOR " intresting read yes I know I"m looking for dinosaur ,but I stand a better chance understanding the relation between unix and dos, this unique feature of 5100 is suppose to be available now which would beg the next question how would some one be aware of this feature unless it is required? I started this thead to build information when I read between the lines of the post by "JT" I see it as a call for help. sub system info relevant thanks TWEAK works other way around 5100 is to help recover unix systems in FUTURE 2038 when clock expires do to physical design of unix at birth. go a head ask me how I would know such a thing :-/ The time stamp variable is 32 bits long. Only 31 of these bits are used to store the number of seconds. The maximum number of seconds that can be accommodated is therefore 2,147,483,647. (I'll let you do the math)

Unix keeps track of dates by measuring seconds from JAN 1, 1970. I'm guessing that the number of seconds elapsed from Jan 1, 1970 will bring you into the year 2038 when the timestamp variable overflows.

Now that 64 bit computers are here, it's doubtful we'll all be here when the next overflow occurs.

Hope this helps.

922.

Solve : password protect a UNIX tar file????

Answer»

is it POSSIBLE to PASSWORD protect a UNIX tar FILE?

923.

Solve : Mounting a filesystem as rw?

Answer»

I have given you the default entry.

When i remount with -o rw then it shows rw.Is the Drive NTFS ? , i think many Versions of Linux WONT write to NTFSQuote

Is the Drive NTFS ? , i think many Versions of Linux wont write to NTFS

That's what I was going to ask. If the drives are formatted in NTFS then you cannot mount them in RW, only RO. If they are in FAT then you can RW them.Yup,

Its a Windows drive so NTFS.

But why can't it write to a NTFS partition. :-?I presume you mean it's a Windows 2000 or XP drive.

NTFS support for Linux is just getting beyond the experimental stage. Check out the >Linux-NTFS project< if read-write access is important to you.To be precise Windows XP.

I just wanted to PLAY around and whatever i do, store it somewhere.
That's all.

I didn't thought it would be so complex.
I am sure there should be an easy way out.Quote
I am sure there should be an easy way out.
Well the way things usually go, once the Linux-NTFS code comes out of beta, moves will be afoot to get it integrated into the kernel. So give it time. In the meantime, you can try it out anyway.Was that a Booster to go ahead or indication to wait. By the way is this thing possible via other unix flavours like Solaris.

Its also available on x86 architecture but not bootable via a CD though. 8-)I would go ahead - why not look for a Linux distro (e.g. >Ubuntu< that includes Linux-NTFS as a package?Great,

Any idea about the other Unix flavours.Sorry - I missed your question before. The answer to your question is fundamentally, yes. The source code from the Linux-NTFS project may for example compile and run on Solaris. Whether significant changes would be necessary to the code I don't know - you could ask the project authors.

In any event, there are always alternative solutions to this kind of problem. Most server OSes "in the real world" should not be coexisting with other OSes as multi-boot systems. You would normally build separate systems and then connect them via NFS, FTP, Samba, etc.I thought other flavours on Unix must be using diff. file systems.
May be their interaction with NTFS might be inbuilt from STARTING or a bit EARLIER.
924.

Solve : Want to know some basics of Unix/Linux?

Answer» HI guys,
can any one tell me how to find out the VERSION RUNNING on a linux system?what command to use?
many thanks in advance uname -a gives you the kernel version and certain other system INFORMATION.

The file /etc/issue often contains information about the DISTRIBUTION.
925.

Solve : volume issue?

Answer»

When I restart my Ubuntu computer (9.10) the volume is ALWAYS turned down/muted. How do I stop this?i don't know much about ubuntu, but i used it PAST ago for 3 months. i FACED the same problem then. the following solved this issue for me.....

http://ubuntuforums.org/showthread.php?t=764576

hope works for you.....Thanks.
Will TRY alsactl store at NEXT reboot.

926.

Solve : how can i find the location of korn on my system?

Answer» HI guys, well you know every ksh has to start with a LINE something like this
#!usr/bin/ksh, depending where UR ksh is, so the question is how can i find the LOCATION of my ksh or is this the same directory for every one.
927.

Solve : Need command to show History and repeat a command??

Answer»

I need to do the following but I don't know the exact syntax, I think it's FC or history or a combination of both.

Show the history of COMMANDS and REPEAT the 5th command w/o retyping the command.

I'm USING UWin and the ksh shell.

928.

Solve : check if the email was delivered or not...?

Answer»

hi guys...PLEASE help me on this...

i need to create a script that will email to a list of addresses (this list will come from a GROUPS email address)... then I will need to validate if the email was sent successfully or not.

can i actually do that?

thanks for your help.Well the SIMPLE man's solution is......
Put your email address in the group or the bcc. If you get ONE then you know it went. thanks but i'll be sending an email to a hundreds of recepients per day. we need to know how many of those recipients failed to receive the email and have a list of it. any IDEA?

929.

Solve : using Hyper terminal to send file?

Answer»

I want to send a binary file USING HYPER terminal from windows PC to another Linux PC through COM port...How can i set the protocol in Hyper Terminal? And wat should do NEXT? I must write a PROGRAM to receive file from COM port in Linux side, right?Not a great way to do that - FTP is best for transferring files. Does the Linux box have an FTP server installed? If not, I recommend vsftpd, if it's AVAILABLE as a package for your Linux distribution.

930.

Solve : Another Linux problem. Please help me.?

Answer»

The problem is that follows:
Construct a program (Shell script), called VERIF that asks for a name and verifies if it APPEARS in other file called LISTING

I DONT know how begin with this problem....

HARLEQUIN.man grep

man awk

Remember that all programs return an exit code which indicates their success or failure.

Good luck.Ok. Thanks for this clue. I will TRY doing something in that sense...

And I will tell you...

HARLEQUINActually, I should have said

info gawk

since the Texinfo page is much better than the man page, and the utility's proper name on Linux systems is usually "gawk" (GNU awk).I just done it!!

the code is like follows:

[emailprotected]> //(this is the prompt)
[emailprotected]> cat > LISTING
James
Edward
Jhon
Peter
Paul
[emailprotected]> //(and the file that contains the names is ready)

Now comes the shell script:

echo -n "Write a name: "
read name
if (grep -C $name LISTING) then
echo "This name exists in LISTING file."
else
echo "This name doesn´t exist in LISTING file."
fi

And this runs so fine....
Thanks very much Robpomeroy.... You have saved my life...
HARLEQUINWell done!

931.

Solve : Cannot find program and missing icons?

Answer»

Still new to Linux, I have several issues I have not been able to resolve. FIRST, I am having difficulty installing programs. I am using Ultimate Edition 2.5 (Ubuntu 9.10) and am attempting to install povray. I used aptitude to download and supposedly install the PROGRAM, and synaptic tells me it is installed. The problem is that I can't find the program. Nothing showed up in any menus. I searched the filesystem and found where it is supposed to be, but it is not all there. I have uninstalled and reinstalled several times but to no avail. Any ideas?

SECOND, and this one may not be that big of a problem, but it has become ANNOYING, during the use of my computer, at times icons are disappearing from my tool bar. Yesterday the icon to shutdown the comouter was gone, no button, no USER name, nothing. It is back now, but the volume control and internet icons are missing. Any help there?

Thanks


Dell Inspiron 1545
Pentium(R) Dual-Core CPU T4200 @ 2.00GHz
250 Gig Hd
3 Gig Ram
Dual Boot Ultimate Edition 2.5 (for me) and Windows Vista (the wife)Open a terminal.
Type in the following commands.
Code: [Select]locate povray |grep /bin/
apropos povray
locate povray|grep doc
You need to either buy a book on linux/unix commands or you need to look for online documentation.Quote from: nixnine on April 21, 2010, 09:49:08 AM

The problem is that I can't find the program. Nothing showed up in any menus.
Some programs are meant to be started from Terminal and they don't put icons in the menu. Does your program start from a terminal command?
932.

Solve : executing two commands on one line?

Answer»

i know this MAY sound pretty dumb, but how do I EXECUTE two commands on ONE line?
thanks for your helpThere are few ways, don't know which one suits you
1) use ;
CODE: [Select] cd /somedir; ls

2) use &&
Code: [Select] cd /somedir && ls
NB In the second example above, the second command (ls) will only execute if the FIRST command succeeds.

933.

Solve : **HOW DO YOU INSTALL PROGRAMS ON LINUX LINSPIRE 5*?

Answer» Hi. I have obe QUESTION... Ok if i download firefox or any other type of program for Linspire.. HOW DO I USE IT/ INSTALL IT.. I really need some help.. Thanks..... if someone can please TELLME how to step by step how to install firefox on Linsire 5 Thanks... Please..I need helpIt is so easy you will KICK yourself. Go to CNR (Click and Run - there is an icon on the desktop), then choose the Interent section and locate Firefox. Click the green button and off you go, nothing else to do.

This assumes that you are a CNR member ($19.95 for a year of easy installing and uninstalling MANY programs without understanding all of the NUTS and bolts of Linux. Not a bad deal at all!)
934.

Solve : how to send mail from a script?

Answer» IM trying to WRITE a ksh script that WOULD SEND mail, im using
mail -t -w -m hello [emailprotected]

and it DOESNT work
whyQuote
im trying to write a ksh script that would send mail, im using
mail -t -w -m hello [emailprotected]

and it doesnt work
why


try this:

echo "hello" | mail [emailprotected]

you can also use the mailx commmand

echo "your msg" | mailx -s "Email Subject" [emailprotected]

hope this helps
935.

Solve : How to automate the installation Ubuntu server by assign the Public IP itself??

Answer»

Due some request, I need perform 20 server at 1 time by automate install by use PE1950 DELL machine as platform to doing the implementation itself.

Hence, I'm stuck in how to DEFINE a script either into rc.local or IP file itself.

please help?

-newbies-Your question is a bit CONFUSING the way it is worded.
Have you tried using the ubuntu forums as a resource?
You can also use http://www.google.com/linux and do a definitive boolean search by trying:
ubuntu + search wthin results: the problem + search WITHIN results: any ERRORS given.

936.

Solve : PCLinuxOS?

Answer»

Any thoughts on PCLinuxOS? I've got it INSTALLED on an Athlon 1.0G/512Ram/40Ghdd and it seems to play nice I've also used the 'live cd' on a DELL Inspiron 1000. It picked up all the hardware without a hitch.

Has anyone had an EXPERIENCE with this distro?

http://www.pclinuxos.com/news.php

Alan <>< I played with it and it was nice, but I have other favorites, and too many of them.

937.

Solve : Where to get Linux Products??

Answer»

Where can I get any Linux products ONLINE? The Linux website offers no help at all.

Will the software I use in Windows (LIKE PHOTOSHOP and GOLIVE) all work in Unix Linux?What version of Linux are you RUNNING?

[glb]Gizmo73[/glb]

Photoshop will work, I dont think Golive will.

Umm you can try downloads.com and type in Linux, Most linux products are starting COST. But still s *censored* load is freeThis site should help it is full of linux and windows apps
and best of all are all free
http://www.gnu.org/Why anybody bothers with Photoshop if you have Gimp, which is more flexible and so...
also check freshmeat site, sourceforge site

938.

Solve : calling functions and passing parameter?

Answer»

hi again, im trying to call a KSH script from inside another script and i wanna pass a value
do i only mension the name and the variavle or there is a procedure.Quote

hi again, im trying to call a ksh script from inside another script and i wanna pass a value
do i only mension the name and the variavle or there is a procedure.


this this:

ScriptOneCmd=/scriptone.ksh

# run scriptone.ksh, NEEDS 2 ARGUMENTS to execute
$ScriptOneCmd arg1 arg2

939.

Solve : Suse Linux 10.1 installation error?

Answer»

I wanted to install suse linux 10.1 but during the installation I got this error:

COULD not found catalogus C:///?DEVICES%3d2fdev%2fhdc%2c%2fdev%2fhdd

can anybody help me please!!Check the MD5 of the download to see if it was correctt. If so, burn at a SLOW speed (4x) for best results.
If not, download it again.

940.

Solve : UNIX ID expiration?

Answer»

We are trying to implement an Password Aging system that will force UNIX Accounts to change their passwords every 3 mons or so. This will be done my our Server Support Provider.

We want to identify UNIX IDs that CONNECTS to our server via ftp,scp,sftp and other special CONNECTION PROTOCOLS. IN SHORT, we want the Password Aging scheme to hit only IDs that connect using regular login.

Is there a way to identify "special ids" with "regular ones"

Thanks for your help. Let me know if you need other details.

other info: our server is HP_UX.Install PAM!
PAM allows integration of various authentication technologies such as UNIX®, Kerberos, RSA, smart cards and DCE into system entry services such as login, passwd, rlogin, telnet, ftp, and su without changing any of these services.

941.

Solve : Kernal panic?

Answer»

I have SuSE Linux 8.2 on my computer. I can't get it to boot up due to the message, "KERNAL Panic". For some reason I can't reboot or reload my SuSE software either. Help anybody?I am in the same problem but with redHat..
any help plz?If you are using a boot disk for linux its probly bad and you would mostlikely NEED to reinstall and create a new boot diskhello,
Kernel panic is not very COMMON but very serious issue in linux , uptil now i have seen that after kernel panic occurse you dont have any other way out except reinstalling linux .
but the question is why it happens??and how to solve it without resintalling ??

Regards
Yasir KHAN
KARACHI,Pak

942.

Solve : about accessing su?

Answer»

sir
im usind fedora LINUX and accidently i kept EXIT command in bash fine of su .so wenever i try to logged in su it EXITS coz of exit command .so plz help me up to COME over from this .or is there any alternative way to access the root from as client i want to delete that exit commandCould you be more SPECIFIC, please? Give details of what you do, and what errors you get.

943.

Solve : Streamlined Ubuntu = Xubuntu?

Answer»

For those who are interested, I have belatedly heard of a spin-off project from Ubuntu called >Xubuntu<. Its AIM is to provide a faster, more efficient experience, and thus is built around the Xfce desktop rather than KDE or Gnome. It would be better suited as a desktop machine for OLDER computers or in thin client scenarios.

I suspect that if you use it as a server-only DISTRIBUTION (not running X) it is probably no different from the main Ubuntu package tree and no faster. But for workstations, this makes it a very INTERESTING project indeed, and possibly a SERIOUS competitor for VectorLinux.

944.

Solve : su command: enter password automatically????

Answer»

I am currently doing a script that will automatically bounce or start or STOP or simply monitor the webserver. The script's functionality is now working.

We now need to add another fuctionality that will switch users (using the su command) from the current USER to an ID with root access. Here's what i am thinking...
Steps:
1. any ID that does not have a root access (say user-X) will switch user to an ID with root access (say user-R), user-R's password is hardcoded inside the script.

2. inside the script, user-R will then EXECUTE a sudo su - to be ABLE to have root access.

The problem is when the script executes the su, it prompts for the password and needs to be entered manually.

IS THERE A WAY THAT WE CAN AUTOMATICALLY INPUT THE PASSWORD?

thanks for the help
my question... my answers.

I am logged in as USER_X and wanted to execute the command "whoami" as USER_R.

here's the resolution.

su USER_R -c "whoami"

this will execute the command as USER_R. you can also run a script using the same syntax

su USER_R -c "scriptname"

945.

Solve : Deleting a Mandrake/Linux partition?

Answer»

I had partitioned my secondary 20 MB hard drive into two equal partitions, into one of which I installed Mandrake which never worked. Since then (18 months ago, yes I am the patient type ...) when wanting to boot into WinME, I get the Linux splash screen which defaults into the unusable Linux if I don't quickly scroll down to the Windows choice and click on it.

I want to delete the partition and have full use of the second hard drive (20MB) for my photos in Windows.

How do I go about deleting the partion? My Partition Magic merely TELLS me that I have two partitions and that only one is available.Boot with any LiveCD linux distros. Knoppix or whichever....
When it's up, OPEN console and use PARTITIONER
#cfdisk /dev/xxx
where xxx is the partition you want to remove

946.

Solve : .htaccess RewriteRule map URL to another?

Answer»

hi,

I've developed a web program and let say the main URL is http://domain.com

I will be distributing different URLs for different users, say http://domain.com/user1
and http://domain.com/user2

however, both this URLs will be pointing to the base code at http://domain.com
depending on whether is user1 or user2, the SYSTEM configuration will extract from the respective database.

my question is, how do i use mod_rewrite to map the different urls to the main url with transparency.

I've managed to do it with alias in httpd.conf. e.g:
alias /user1 /var/www/html/myproject
alias /user2 /var/www/html/myproject

however, if i were to do this, i would have to RESTART apache every time i've got a new user. so i've decided to use .htaccess INSTEAD but realised that alias is not availble for it.

I've tried with rewriterule but with no success.

Please advise. thank youhttp://www.linuxquestions.org

Go there and ask.
Quote from: mr-bisquit on April 18, 2010, 01:08:09 PM

http://www.linuxquestions.org

Go there and ask.
Yes, there are many helpful people at Linux Questions who could help you with this.thanks GUYS. that nv cross my mindThere are also plenty of people here who could help.

Code: [Select]Options +FollowSymLinks
RewriteEngine on

RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule . - [L]

RewriteRule ^/user([0-9]+)$ user\.php?id=$1 [QSA,L,NC]
947.

Solve : cc and bcc in UNIX mailx?

Answer»

what is the command to CC and bcc using mailx in unix?Quote

what is the command to cc and bcc using mailx in unix?



here's the resolution i got.
create file msg.txt which has

"PUT Message Here"
~C [emailprotected]


then execute

mailx [emailprotected] < msg.txt

should shoud do the trick!

my problem now is how to attach a file and send it with a cc or bcc..

here's the cmd to attach file

uuencode /FILENAME filename | mailx [emailprotected]

the problem now is how to add a cc in the receipient...here's my workaround in case some is interested.

1. create a body.txt that contains:

Attached is your file.
~c [emailprotected]

2. create the attachment and append it to body.txt
uuencode path/filename filename >> body.txt

3. send the email
mailx -s "Subject" < body.txt
948.

Solve : mandrake install problems with mouse?

Answer»

I have been installing mandrake 10.1 on an ibm 600e laptop (has stickpoint mouse on keyboard)
I'm installing from Cd. Problem I'm having is no mouse after INSTALL. As the install setup is functioning I have a mouse and am using a USB logitech trackball.
So, after the program loads I have no mouse at all. There is of course the mouse pointer on screen but it won't respond to the stickpoint or the mouse. Weird that the trackpoint functions during installation but quits after installed. Reminds me of a interupt conflict in mswindows.
Anyway, I'm new to unix and can't hardly FIND any keys that moves me around onscreen so can't even begin to look for any type of control panel. Can someone with some experience help me with this?If you remove the USB beast does the trackpoint work? Two inputs can be puzzling to an O/S. I have a T22 that works with the pointy stick just fine.Thanks for the reply. No The trackball did not work by itself, to answer the previous question.
I did get it to work though by continueing to TRY the different mouse drivers on each reload. However, during the reload I would get to the page where I can change the drivers for each item and each time the video driver would be the only problem on the chart. I found a video driver that worked within the first couple loads. But after 20 reloads I'm ready to move onto getting the ethernet card and modem to work. Then get the freebsd machine going.
What a great system this is!!! Cool, intuetive and completely open as a source and to learn from.
Also, want to try to ibuntu as well.Correct me if I'm wrong but I didn't think that Mandrake was completely open source.

OpenSUSE, Fedora, VectorLinux, FreeBSD, Ubuntu/Kubuntu and CentOS are though, amongst others.

949.

Solve : Authentication failed?

Answer»

I got message as 'Authentication failed' when I tried to login as a user.And I did the same as root ,got the same result. How can I overcome this PROBLEM?. Do I need to reinstall my REDHAT linux.As long as you have physical ACCESS to a Linux machine, you can gain root access. What version of RedHat are you using. I'm sure your using the GRUB bootloader. What you'll need to do is boot to single user mode.

1.If you have a GRUB password configured, type P and enter the password.

2.Select Red Hat Linux with the version of the kernel that you wish to boot and type e for edit. You will be presented with a list of items in the configuration file for the title you just selected.

3.Select the line that starts with kernel and type e to edit the line.

4.Go to the end of the line and type the NUMBER 1 as a separate word (press the SPACEBAR and then type the number 1). Press Enter to exit edit mode.

5.Back at the GRUB screen, type b to boot into single user mode.

From there it will boot into single user mode, once you get a prompt. You'll be able to change your password by typing in the passwd command. If you have any more questions, you can contact me at ResourcePC

Dave

950.

Solve : installation problems!!?

Answer»

installation problems!!
i downloaded ubuntu 6.0 onto a cd and also debian 3.1r0-a using my toshiba laptop and tried installing them onto different hard drives to be used in my basestation pc as primary slave and secondary slave with xp home as primary master and cd/dvd drive as secondary master. what i do is disconnect all the drives except the one im downloading the os for to be INSTALLED into. after downloading the os's on the laptop, i burn them onto cd's and then install onto them onto the hard drives, with only one hard drive connected at a time. i've tried installing ubuntu 5 different times! when it's done all of its downloading of files and programs all it will do is let me get ONLINE using only the cd, it will not install on the hard drive. when ever i try to install it on the hard drive it goes thru the installation percentage amount showing how much of it is installed and it gets to 50% and stops! i let it sit for 2 hours one time and it never did anything after that. i had to shut down the pc and reboot.
NOW, i just downloaded and tried to install debian 3.1r0-a. it installed fine,BUT it's all in a text format!! no graphics!! why?
id love to have 3 different os's on 3 different hard drives in my computer to give me a choice of which one i want to go into when i start the pc or even when im using one of them, i can reboot and switch to another one. all of the linux os's are giving me very hard tries at getting the pc set up like that. i have an emachines amd athlon 64 3500+ CPU and 1024 Mb of ram. i downloaded the 64 bit linux os's and they wont install!!! whats WEIRD with emachines because when ever i try to download these linux os's using it, it does not give an option to download in a OSI file STRUCTURE, only in a windows type of format. So, thats why i downloaded all of the linux os's to my toshiba laptop cd burner which is running xp home and they all downloaded in the OSI format using it with no problems!!. why?? i dont know, but they did. but,like i said earlier, the oses wont install onto any of the hard drives in my emachines computer which is my main basestation pc in my 4 pc linksys wireless network.
does anyone know what can be done to have these hard drives work on one computer? in an emachines???
is it at all possible to do??
thanks,JimJim,

It'd be much easier to read your post if you used paragraphs and spaces.

Installing Linux: you can leave all your hard drives connected. It is possible (but completely unnecessary) to have several different Linux versions booting off each hard drive.

In fact you're better off just installing one version of Linux. It is the same underlying operating system; the main difference between the distributions is style and selection of packages.

Linux is not a graphical operating system; most Linux INSTALLATIONS however INCLUDE the option to install X Windows, the major GUI server for Linux/Unix. You may also want to install Gnome/KDE/Enlightenment or some other window manager.

In Debian, log on and run "dselect": than enables you to select the software you want. Installl X or whatever.

If it's installed, you can run it with the command, "startx".