Utility Vs Command

Can anyone tell me the difference between a command and a utility in a Linux system?

How are they each related to a program? Is there any formal definition for them that distinguishes them?


Similar Content



Help With KDE

Hello, I am new to Linux and I am having difficulty setting up KDE. I have a vps with Debian 7 Wheezy on it and I need to get KDE working on it. The Linux installation from the vps company was very basic...I had to update the packages and install kde and kdm using the apt-get install kde and apt-get install kdm commands. When I type xstart to start the x server I get a message with the version number and other information so I am assuming that it is installed, but at the bottom of the message I have no cursor (I am able to type but when I hit the enter key after entering a command nothing happens) and the # is no longer there so I am unable to continue working. The only way i can get the command prompt and # back is to close Putty and reopen it (then I have to log into the vps all over again). From what I have read online, when I type startx, it should load KDE.

I was able to set the display by using the export DISPLAY=:0.0 command. But when I type startkde I get the message 'No protocol specified" and the next line says DISPLAY not set or unable to connect to xserver.

I have been using Putty to log into the vps, but yesterday I decided to use the web based login utility offered by the vps company. When connecting to the vps in this manner I am presented with a traditional looking login screen (I am assuming it is KDM). The user name that was provided to me from the vps company is 'root' ...well, when I try to login using KDM (the plasma setting) I get an error stating that 'root' logins are not allowed. Considering that the KDM is visible when logging in using the web based utility, I have a feeling that the KDE is also working...but I can't log into it because the user name is 'root' . However, when I use Putty I cant seem to get anything to load and start the way it is supposed to. I would appreciate any help in getting the KDE to work in Putty and the login via the web based utility to accept my username that the vps company gave me. Thank you.

Inquiry:How To Convert .wav Sound Files To .gsm Format With Sox Utility

Dear All
Can you please do me favor and let me know how can I convert .wav sound files to .gsm format as I have an application for this usage ? Please be informed that I have made use of the sox utility for this purpose , as the followings , but it didn't get through :
#sox FR00003.wav -r 8000 -c 1 FR0003.gsm resample -ql
Can you please let me know what is the problem in my case ?
Regards
H.Motamedi

User Permitted To Run Command,execute Program As Root And After Execution, Exit Root

when a command is typed(i.e. /path/to/the/program), as a normal user, he should be able to run that command , execute that program as ROOT and log out root after the execution is completed.
Only one user should be able to do it.
Hence, I have created a new user vj and added the following command in visudo:
Code:
vj ALL=(ALL) NOPASSWD: /path/to/the/program

Now user vj will be able to typein the command.

What I need is that the program which is been called must run as if it is run by a root user,and when the program is completely executed, exit the root user.

How do I proceed?

HOW TO: Make Antergos (Arch) Boot OS X DVD To Restore Mac For Dual-Booting

I clean installed Antergos 64bit (GNOME 3) on my iMac, and now need to boot the OS X DVD that came with the computer to format and restore. The ultimate goal is to keep this machine for dual-booting (which I can take care of) since there are simply things I need from both operating systems. If only Antergos or GRUB would boot from the DVD to kick-off the process.


What have you done so far?

It made sense to install rEFInd on this machine, since that was the program that helped OS X boot the Antergos image from my USB drive in the first place.

I followed the steps laid out in the Arch Wiki. First, by using the refind-install command Then used the refind-install --usedefault /dev/sda1 command to "also install rEFInd to the default/fallback boot path".
I shutdown, and booted the Mac up in hopes to catch rEFInd's splash screen, but to no avail. Only the Antergos/GRUB screen, and then into Antergos as usual.
(This began a hopeless cycle of re-installing, and rebooting which lasted quite some time.)

Afterwards, I tried manually installing rEFInd using the following commands from the Arch Wiki:
Quote:
cp /usr/share/refind/refind_x64.efi $esp/EFI/refind/
efibootmgr -c -d /dev/sda -p 1 -l /EFI/refind/refind_x64.efi -L "rEFInd Boot Manager"
Also, I installed the mactel-boot utility from the AUR.

And according to the efibootmgr utility, rEFInd was now first in the boot order:

Quote:
BootCurrent: 0002
BootOrder: 0004,0003,0002,0080,0001,0000
Boot0000* ubuntu
Boot0001* rEFInd Boot Manager
Boot0002* antergos_grub
Boot0003* rEFInd Boot Manager
Boot0004* rEFInd Boot Manager
Boot0080* Mac OS X
Boot0081* Recovery OS
BootFFFF*
After shutdown/power-on, the machine displayed alot of white-colored "clearing node" text, before tragically booting once again into Antergos/GRUB.

I've also read How-to Geek's guide on re-installing OS X on Mac, yet the tutorial never mentions how to restore it from Linux.


Conclusion:

What piece of this puzzle am I missing? Would creating a LiveUSB of OS X be an easier route than this DVD? Is there a GRUB command I'm not aware of that can change the boot order?

I'm almost certain rEFInd is not the only way Linux would be able to boot this OS X DVD, it's just the only way I've known how so far.

I can clearly see the Mac OS X boot option in efibootmgr as Boot0080*, so at least it's being recognized. When Antergos boots to the desktop, the OS X DVD is displayed as "WindowsSupport" if that helps.
I'm out of my element and am at an impasse, your help will be appreciated.

PLEASE & THANK YOU

Getting The Last Background Pid

Hi, I know that it is possible to get the last background pid using the $! command, however when I use it in my QT application I got a wrong result. Below follows an example where this procedure works
Code:
[linux@localhost ~]$ (sleep 6 && echo "A test") &
[1] 3312
[linux@localhost ~]$ echo $!
3312
[linux@localhost ~]$ A test

Now my Qt application, where I got a wrong result:
Code:
./dbsync &>/dev/null &
[1] 5047
[linux@localhost comm5]$ echo $!
5047

but using the ps command it is possible to verify that the pid related to the right process is not the 5047 but 5050.
Generally it is the process that comes with the command Code:
echo $!

added of two.

I use QCoreApplication in my program. I do not know if it has something to do with this error.

Any advice is welcome

Good Command Prompt Linux For Beginners, But Power Users?

Hi, please excuse any misunderstanding about the title.

I'm an experienced computer user, but not with Linux. As a matter of fact, even with Windows, I only do so much at the command prompt.

I am looking for a very fast (boot and etc.) Linux system, that has nothing more than a command prompt. No X-Windows. However, I would like to configure X-Windows immediately after an installation.

I noticed the LFS project. Very cool, but way too complex for me. It is exactly what I'm looking for, except, I would like the basic system to already be proven, maybe even with security updates.

The biggest most important thing is (ONLY WHAT I WANT). I don't want dozens of browsers, a hundred text editors, or any other cool or stupid open source or commercial software. I simply am looking for what Dos 6.22 was in Linux.

There are many distros. Can you guys help me pick one out that is light, secure and ready to be configured to run X windows or X-Free or Xorg, I'm not sure what the best is right now.

PS: I'm a linux noob, but I have had several decent installations of Ubuntu, and some experience with the command line, including compiling software, but still a beginner.

How Do I Pass The Command Line Errors To A File.

I am writing a pythong program which has command line executions for linux like ls and restart. I want to know how to pass the errors from the command executed to a file so that it becomes a log.

Make[1]: O: Command Not Found

Hi.

Running Suse 10.1 on an x86_64 machine. Trying to install a program and having some difficulty. The program is codeco 3.3. It's a format conversion program used for converting seismic waveforms such that they can be analysed by different analysis packages.

http://www.seismo.ethz.ch/products/s...3/codeco3.html

My debugging skills aren't up to much and I'm hoping someone might be able to help me out with the error. The steps involved in the installation of the package a

1. Download, gunzip and untar.

2. make config
> jp@linux:/usr/local/codeco> make config
(cd src; ./conf.csh)
found system Linux
found compiler

...this is ok, but

3. make
>jp@linux:/usr/local/codeco> make
(cd src; make)
make[1]: Entering directory `/usr/local/codeco/src'
o ../bin/codeco codecomain.f gse_io.f codecoutil.f compdecomp.f sacsub.f sac_io.f mseed_io.f css_io. today.f utmepo.f epoutm.f
make[1]: o: Command not found
make[1]: [codeco] Error 127 (ignored)
make[1]: Leaving directory `/usr/local/codeco/src'

The src code itself is written in fortran and I'm using the Intel fortran compiler version 9.0.031.

I'm at a loss as to the meaning of the above error...my knowledge of linux and software installation still not very good!

Thanks

Creating A Linux Pendrive Using A MAC For A Movie In DCP

Greetings from Brasília

I need to copy one of my documentaries' DCP package onto a Linux pendrive but MAC Disk Utility will only show the following:
MAC OS Extended (Journaled);
MacOS Extended (Case sensitive),
EXFAT and
MSDOS-FAT
,none of which mentions Linux.

I'm looking for instructions on how to perform this formatting, which software to use, etc.

Thank you

Mário Salimon

Cd CLI Question

Hello all, I am new to Linux (apparently) and am taking a intro course to the OS. My terminal does not support info or man for the cd command and I would like to know: If you won't find the cd command in either /bin or /usr/bin, or in any directory listed in the PATH setting. How is it executed then? (That is, if there is no cd executable, why doesn't this command cause a “command not found” error?)

Thanks for any help!