Wednesday, May 15, 2013

In linux how do I set a time for my computer to shut down?

Q. Is there a way I can leave my computer on to download something but have it set so that it stops the download and shuts down at a certain time?
I'm using dream linux.

A. you can use the command "shutdown -P time". With this command, the computer will shutdown after the given time in minutes. For ex: "Shutdown -P 30" will turn off the computer after 30 minutes

Other possibilities are to use "at" or "cron",
"at" will automatically perform a given command at the given time only once (remember that: only once).
"cron" will repetitively perform the given command at every given time (for ex: every hour, every day or every month, etc...
For explication of "at" and "cron": you can see this page: http://www.linux.org/lessons/interm/c622.html

In your situation, Using "shutdown" is the best because your task isn't repetitive and "shutdown" is much more easier to use than "at" or "cron".

Can I delete a file I want to delete using Puppy Linux LIVE CD ?
Q. I've got vista installed and 3 files that are virus like and are hidden. I can see them when i boot my pc from live cd puppy linux When i double clicked those files and chose delete>quite they were gone. However when I tried to shutdown my pc it asked if i want to save it, i chose i dont because i used live cd , when i run vista again I saw those files i deleted are there again !

Any help?

A. Yes, you can, you need to clean the Trash before to reboot your machine. You can to delete files using the Terminal (or Console) too, with command line, enter in the windows vista installed disk with the Terminal and tip the full path to files you want to delete. But atention, take care with this, it is not possible to recover the files once deleted.

The comand line is:

rm -rf /path to virus file

If you have a doubt, send me a private message, ok?

How is it I play my windows music in Ubuntu?
Q. I'm a Windows XP user trying to switch to Ubuntu linux for no other reason than to feed my geeky hunger. I don't really play any computer games, so my main concern is how am I supposed to access my gigs of music on my Windows folder from Ubuntu? I only have 2 hard drives (if possible to work on Windows hard drive then great), no jump drives or CDs. Thanks for whatever answers. :)

A. first what type of filesystem on these partitions

look first under places > removable media
if they are there then click on it
it will be mounted to system when you do that
the linux system needs any driver to be attached (mounted ) to it's tree in order to deal with it

if they are not there
then open the terminal (accessories > terminal )
which is a shell emulator (command line interface )
then make the points you want to attach the filesystem to it
"sudo mkdir /media/My1"
where My1 is the name of the mount point to which you will attach your partition
be careful that linux is case sensitive
My_Folder is not thw same as my_folder
then
"sudo mount -t [ntfs,vfat] /dev/sd[a,b..1,2,3..] /media/My1"
you have to choose the filesystem type (vfat or ntfs )
which hard drive sda or sdb
which partition 1,2,3...
if you got an error and the filesystem type is right it will be mostly because of unclean shutdown
if you don't know the dev available
type
"ls /dev/ | grep sd"

good luck



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