Q. I have GeForce 5200 VGA card. But Ubuntu 10.10 is not detecting it. I have to use Linux for many reasons. But I can't use my VGA with Ubuntu. Please Help ME!!!
A. Hit ctrl-alt-f2 to come in to the text mode (your graphic screen will disappear)
log in
Then enter following commands
sudo /etc/init.d/gdm stop
sudo apt-get purge nvidia*
sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
sudo apt-get update
sudo apt-get install nvidia-173-dev
sudo rm /etc/X11/xorg.conf
sudo nvidia-xconfig
sudo shutdown -r now
Then your pc should restart and tadaa... nvidia driver working
log in
Then enter following commands
sudo /etc/init.d/gdm stop
sudo apt-get purge nvidia*
sudo add-apt-repository ppa:ubuntu-x-swat/x-updates
sudo apt-get update
sudo apt-get install nvidia-173-dev
sudo rm /etc/X11/xorg.conf
sudo nvidia-xconfig
sudo shutdown -r now
Then your pc should restart and tadaa... nvidia driver working
The right, proper, safe way to turn a Linux (Slackware) machine off?
Q. I noticed it might corrupt the hard disk if I turn it off while it is running a desktop environment. I noticed I must first get out of the desktop environment, and give the command exit and make myself log off, and then it is safe to turn it off. Is that correct?
thanks!!
thanks!!
A. No, to properly shutdown, run the following as root:
/sbin/shutdown -h now
If you wan't to be able to shutdown as a regular user, set the suid bit:
chmod +s /sbin/shutdown
You can also edit /etc/inittab and change the default runlevel to 4, then you will be able to just shutdown from the kde menu.
/sbin/shutdown -h now
If you wan't to be able to shutdown as a regular user, set the suid bit:
chmod +s /sbin/shutdown
You can also edit /etc/inittab and change the default runlevel to 4, then you will be able to just shutdown from the kde menu.
Is there a way to easily shutdown a remote linux server with a shell script?
Q. I have 3 linux servers hooked to my UPS. I can only hook the UPS to one of them. The UPS software will allow me to run a shell script on that one server before it shuts down. And I want that shell script to shut down the other 2 servers. Is this possible?
@ Roland J: I AM FULLY AWARE OF HOW TO SHUTDOWN A LINUX MACHINE.
@ Roland J: Please donât answer a question unless you actually READ the question!!!!! It makes other people think the question is answered, when in reality, your just lazy to even read the full title of the question. (or you donât know what the word âremoteâ means)
I need to know how to shutdown a linux machine REMOTELY.
This means that I want to run a script on LinuxBox1 and have LinuxBox2 (another linux server on same LAN) shut down.
@ Roland J: I AM FULLY AWARE OF HOW TO SHUTDOWN A LINUX MACHINE.
@ Roland J: Please donât answer a question unless you actually READ the question!!!!! It makes other people think the question is answered, when in reality, your just lazy to even read the full title of the question. (or you donât know what the word âremoteâ means)
I need to know how to shutdown a linux machine REMOTELY.
This means that I want to run a script on LinuxBox1 and have LinuxBox2 (another linux server on same LAN) shut down.
A. Actually SSH would have to be set up first to allow passwordless, login between servers.
I found the solution else where, and just wanted to post it here, in case anyone else stubles on this question looking for an answer.
NOTE: IN THE RESOLUTION BELOW MANY OF THE COMMANDS ARE CUT OFF, OR INCORECTULY SHOW AS TWO LINES. FOLLOW THIS LINK FOR A PROPERLY FORMATED ANSWER.
http://www.justlinux.com/forum/showthread.php?p=863427#post863427
RESOLUTION:
Here's what I did...
First I ssh'd from each machine to each other one. (The first time u ssh to new machine it asked you to accept the machines "fingerprint" and saves it -- this is just so they know who each other are.
Then on the machine I wanted to be able to shutdown FROM I did
[CODE]
cd /root/.ssh/
ssh-keygen -t rsa
[/CODE]
and accepted the default location. (/root/.ssh/id_rsa)
I left the passphrase blank, so it would not be required.
Then basically you just need to copy that "id_rsa" file onto the DESTINATION machine, in the same directory, but named as "authorized_keys". Which can easily be done like this:
[CODE]
scp id_rsa.pub xxx.xxx.xxx.xxx:/root/.ssh/authorized_keys [/CODE]
Where xxx.xxx.xxx.xxx is the IP address or host name of remote machine.
[INDENT]NOTE: You may want to check if a file by that name already exists, on the remote machine, because the above command will overwrite it without warning. -- If you already have a file by that name on the remote machine, I would suggest using command above, but change the file name. Then on the remote machine, append the file you just copied to the existing one. This could easily be done like this: (there may be an even simpler way - but this is what I know)
[CODE]mv /root/.ssh/authorized_keys /root/.ssh/authorized_keys.backup
cat /root/.ssh/authorized_keys.backup /root/.ssh/yourfilename > /root/.ssh/authorized_keys
[/CODE]
[/INDENT]
Then make sure the /root/.ssh/authorized_keys file has 600 permissions.
[CODE]
chmod 600 /root/.ssh/authorized_ keys
[/CODE]
Then try to ssh to the remote machine.
[CODE]
ssh xxx.xxx.xxx.xxx
[/CODE]
And if it works like it did for me -- it will let you right in, with no username or password. If this works correctly, you should be able to remotely run commands through ssh within scripts.
I found the solution else where, and just wanted to post it here, in case anyone else stubles on this question looking for an answer.
NOTE: IN THE RESOLUTION BELOW MANY OF THE COMMANDS ARE CUT OFF, OR INCORECTULY SHOW AS TWO LINES. FOLLOW THIS LINK FOR A PROPERLY FORMATED ANSWER.
http://www.justlinux.com/forum/showthread.php?p=863427#post863427
RESOLUTION:
Here's what I did...
First I ssh'd from each machine to each other one. (The first time u ssh to new machine it asked you to accept the machines "fingerprint" and saves it -- this is just so they know who each other are.
Then on the machine I wanted to be able to shutdown FROM I did
[CODE]
cd /root/.ssh/
ssh-keygen -t rsa
[/CODE]
and accepted the default location. (/root/.ssh/id_rsa)
I left the passphrase blank, so it would not be required.
Then basically you just need to copy that "id_rsa" file onto the DESTINATION machine, in the same directory, but named as "authorized_keys". Which can easily be done like this:
[CODE]
scp id_rsa.pub xxx.xxx.xxx.xxx:/root/.ssh/authorized_keys [/CODE]
Where xxx.xxx.xxx.xxx is the IP address or host name of remote machine.
[INDENT]NOTE: You may want to check if a file by that name already exists, on the remote machine, because the above command will overwrite it without warning. -- If you already have a file by that name on the remote machine, I would suggest using command above, but change the file name. Then on the remote machine, append the file you just copied to the existing one. This could easily be done like this: (there may be an even simpler way - but this is what I know)
[CODE]mv /root/.ssh/authorized_keys /root/.ssh/authorized_keys.backup
cat /root/.ssh/authorized_keys.backup /root/.ssh/yourfilename > /root/.ssh/authorized_keys
[/CODE]
[/INDENT]
Then make sure the /root/.ssh/authorized_keys file has 600 permissions.
[CODE]
chmod 600 /root/.ssh/authorized_ keys
[/CODE]
Then try to ssh to the remote machine.
[CODE]
ssh xxx.xxx.xxx.xxx
[/CODE]
And if it works like it did for me -- it will let you right in, with no username or password. If this works correctly, you should be able to remotely run commands through ssh within scripts.
Nec Projector Review
Plastic Shed Reviews
Ati Graphic Reviews
Nurse Uniforms Reviews
Cabochons Reviews
Inflatable Water Slides Reviews
Barcode Scanner Reviews
No comments:
Post a Comment