i am using rhel 5.4..today i type the command setup! is not workERRor: error while loading shared libraries: libslang.so.2: cannot open shared object file: No such file or directory
I'm trying to use #disktest command on RHEL 6find the required packages to run such command please. I tried yum install but the package could not be found.
I use putty to get to my RHEL 5.3 workstation from my Windows laptop.
Typically, if I want a new terminal on my windows 7 workstation from another terminal or mc, I have to type start and I will see a new terminal window running the default shell.
QUESTION : What is the equivalent command in RHEL 5.3 (and or solaris) to create a new terminal window from the command line ? I will be entering this command from the shell prompt or mc's command line.
In Windows, if I want to start another terminal and in that terminal, I want to run a program, I can do "start program.exe arg1 arg2". this will create a new terminal window and runs program.exe in that terminal window. I don't have to create a terminal and then in a separate step run the program. How can I do this in Linux ?
I am new to Red Hat a crossover from Ubuntu. I could use your help on setting up my RHEL server to RHN. I have installed the OS and I run rhn_register and I recieve the Certificate error.Also, is there a way to correllate a RHN -Contract #, a subscription # to a install #.
I've been trying to get rcp command to work for my development environment but to no avail. I'm working on a Red Hat Linux server, and the rcp is meant to be used between Linux-Linux and Linux-Windows system. I've done some reading up and this is what I found:-
Quote:
Step 01: Turn on RCP service on UNIX Host
Turn on the RCP service on unix machine by using inetd:
1. Log on as root.
2. Edit the file /etc/Inetd.conf.
3. Uncomment the lines that start with shell and that start with exec.
4. Save the file.
5. Use ps -ef |grep inetd and determine inetd service pid. Send the Host User Profile (HUP) signal to inetd by using kill or by using pkill.
6. Run inetd again.
To turn on the RCP service by using xinetd:
1. Log on as root.
2. Edit the file /etc/Xinetd.d/rsh. You may get another file based on your linux distrinution.
3. Change the line disable to no.
4. Save the file.
5. Use ps -ef |grep inetd and determine inetd service pid. Send the HUP signal to xinetd by using kill or by using pkill.
6. Run xinetd again.
Step 02: Set the security permissions
After turning on RCP services you must set the security permissions to allow the Windows host to connect to your computer.
1. Edit the file /etc/hosts.equiv. Based on your linux distribution this file may vary. You can get like /etc/hosts.allow.
2. In the file add a line that contains the name of your Windows host.
3. Add a second line that contains the name of your Windows host and the name of a user who can access the directory that you want to transfer. Separate the two elements with a tab character.
4. Save the file.
I noted that my Red Hat have xinetd BUT I don't have the rsh file in step (2). It says I may get another file but which file should I be looking for? As for Step 02, I did find hosts.allow and updated that and the hosts file itself. Besides that, I also use useradd to add a user to match up with the one in the other system since I've read that the rcp required both end to use the same user name.
When at the command line, I find that I have to type out this command very often: find . -iname "*php" -exec grep -H query {} ; I'd love to set up an alias, script, or shortcut to make it work easier. I would like to do something like: mysearch query ("*php") (.) It would be great if the command could accept three arguments, in reverse order:
query string, file name expression, directory If the second two arguments were omitted they would default to not being included, and the current directory. Finally, the icing on the cake would be that if additional variables were included (4th, 5th, 6th...) they would be injected as additional arguments for the find command (like I could say -type d) at the end. Attempted code I tried the example below, but I'm still having trouble setting default values. What am I doing wrong?
I am pretty new to C.L.I/text editing work. So maybe its a bit old-fashioned but I am interested in learning how to send email via the command line. I am running 10.04 32 bit
Situation: I have followed the explicit and step-by-step actions at http://klenwell.com/is/UbuntuCommandLineGmail
Question: Upon completion, when trying to send a test email to myself via gmail (from CLI) I get the following error: "msmtp: no recipients found". In CLI below it asks me to explicitly pick a mailx to download. I think I already have mailx as when I type mailx I get "no mail for primary".
Here is my work Code: :~$ sudo apt-get install msmtp mailx [sudo] password for: Reading package lists... Done Building dependency tree Reading state information... Done msmtp is already the newest version. Package mailx is a virtual package provided by: mailutils 1:2.1+dfsg1-4ubuntu1 heirloom-mailx 12.4-1.1 bsd-mailx 8.1.2-0.20090911cvs-2ubuntu1
You should explicitly select one to install. E: Package mailx has no installation candidate :~$ gedit ~/.msmtprc :~$ chmod 600 ~/.msmtprc :~$ gedit ~/.mailrc :~$ echo -e "testing email from the command line" > /tmp/test_email :~$ mailx -s "mailx gmail test" xxxxxxx@gmail.com < /tmp/test_email msmtp: no recipients found
Here is ~/.msmtprc Code: # config options: [URL]#A-user-configuration-file defaults logfile /tmp/msmtp.log # gmail account #account gmail auth on host smtp.gmail.com port 587 user xxxxxx@gmail.com password xxxxxx from xxxxxx@gmail.com tls on tls_trust_file /usr/share/ca-certificates/mozilla/Equifax_Secure_CA.crt # set default account to use (not necessary with single account) #account default : gmail and here is ~/.mailrc
Code: # set smtp for mailx # gmail account (default) # $ mailx -s "subject line" -a /path/attachment recipient@email.com < /path/body.txt set from="xxxxxx@gmail.com (xxxxx)" set sendmail="/usr/bin/msmtp" set message-sendmail-extra-arguments="-a gmail"
i have a Linux Box running RHEL and has no internet connection, hence i need to setup a local repository which i can be able to install packages together with their dependencies.
can not ping from host (RHEL 6) to RHEL 5 in (virtual)? I have stopped iptables on both machines. But still not able to ping from host machine to virtual.
I am trying to download RHEL 5.4 AS version for testing..But under [URL] There is no specific link for AS version or ES version..How can I detect which iso is for AS and which one for ES..? There are separate links for AS and ES version for RHEL 4.x version but why is it not available for RHEL 5.x versions?
In Ubuntu 10.04 grub command prompt setup command does not exist for installing grub.I am trying to recover my Feodra12 OS.Did anyone find alternate command for setup in grub command line for Ubuntu 10.04 ?
Currently I'm using RHEL 5.3 in my server. Last time I install MySQl Server and it working fine.Then i facing a problem with my server and i reinstall back RHEL. But i didnt use MySql package inside the CD to install MySQL. i install MySQl separately. I download from MySql website. My problem is, i success install MySql in my server. The service also running. But when i type.
I am using OS RHEL 5 update 3 my query is how do i manage LTO under command shellas I heard mt has been obsoleted in RHEL5 so what is the alternative for it
i was installing openoffice from internet using yum command on rhel 5 but it was not working properly. how i can install openoffice using yum command on rhel 5. it is confirmed that i m connected with internet.
i have old RHEL 3 system which has kernel 2.4 installed into it. I wasnt to upgrade it to RHEL 5.x so i downloaded a kernel 2.6 package but was not able to compile it.
I use the 10.04 ubuntu, somehow I did something and now the apt-get install command doesn't work. No matter what package I try to download, there's always a "couldn't download all packages run update or --fix...." message. When I scroll up I see that it downloaded some packages but it couldn't find them all. So I thought that I should try a different server. I googled it and found that the server's address is stored in /etc/apt/sources.list. I edited that file and replaced all the deb and deb-src lines with the server's address. I saved that but when I tried to download something (like vlc) I got a "E: Couldn't find package vlc" message. I also tried many different server's but there was no difference. Am I doing it wrong? Should I run a command after editing the /etc/apt/sources. list file? Or didn't I edited the file right?
I don't know why --exclude doesn't work when I use tar command. Please see this code Code: mahmood@pc:~$ l a/ 1.txt 2.txt 3.txt b/ mahmood@pc:~$ tar cvjf compressed.tar.bz2 --exclude=/home/mahmood/a/b/ a/ a/ a/2.txt a/1.txt a/3.txt a/b/ mahmood@pc:~$ As you can see although I excluded b/ but tar command ignored that.
I'm running this command, and seems not to work, following the command:Quote:for nic in `ls /sys/class/net | grep -v lo`; do echo ${nic}; udevinfo -a -p /class/net/{nic} | grep -i address; doneThe output is the following:Quote:eth0eth1But the output should show something like this: (showing the MAC address)uote:
I am have trouble getting the ls command to work exactly how I want, for example, sometimes I want to list the contents of a directory into a text file by command:
Code: ls directory > list.txt
(assume the only objects the directory contains are files with extension .dat eg file1.dat, file2.dat, ...)sometimes I want the relative path of the files prepended to them in my text file eg:
path/file1.dat path/file2.dat path/file3.dat
[Code].....
It feels like ls is unpredictable in this regard - sometimes it prepends the path and sometimes it doesn't and sometimes it adds both entries (with and without the path prepended into the text file)....How can better control the way ls works?
I have just installed skype on my rhel 6.0 for the first time and eventhough it seems to have successfully been installed and the skype icon appears on the desktop and as well on the applications but when i double click on it, it doesnt start and i also typed skype or ./skype at the terminal but it gives me the following error. how i should go about it? i first instaled skype for fedora,it didn't work then uninstalled it and installed static skype.
[root@wi-tribe skype_static-2.2.0.25]# skype skype: error while loading shared libraries: libXv.so.1: cannot open shared object file: No such file or directory
I am teaching using an Ubuntu 10 server. The course stipulates the students use the mail command to send me assessment work, however I can't get mail to work (I did have to install it in the first place). After I end the message with a dot I get the message "send-mail: cannot open mail:25".
I want to install some software using sudo apt-get command,but it dosen't work.(my network works well) how to handle it? below is the output of terminal:
@ubuntu:~/Downloads$ sudo apt-get install build-essential cdbs fakeroot dh-make debhelper debconf libstdc++6 dkms libqtgui4 Reading package lists... Done Building dependency tree