LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Blogs > neonsignal
User Name
Password

Notices


Uncategorized Entries with no category
Old

shutdown instead of reboot from ctrl-alt-del

Posted 06-14-2012 at 03:30 AM by neonsignal

Typically the ctrl-alt-del in Debian will cause the system to reboot (or the GUI may bring up a dialog).

If the preference is to have this shut down the system instead, the relevant line in /etc/inittab is changed from:
Code:
ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -r now
to:
Code:
ca:12345:ctrlaltdel:/sbin/shutdown -t1 -a -h now
Senior Member
Posted in Uncategorized
Views 2008 Comments 0 neonsignal is offline
Old

undeleting files that are still open

Posted 06-10-2012 at 09:28 PM by neonsignal

Normally it is tricky to recover a file that has just been deleted, but if the file is open by an application, its node still exists on the filesystem.

First find out the process id of the application:
Code:
ps -e | grep application-name
Then list all the files that the application has open:
Code:
ls -l /proc/process-id/fd/
The ones that are to be recovered can be copied:
Code:
cp /proc/process-id/fd/file-number
...
Senior Member
Posted in Uncategorized
Views 1799 Comments 0 neonsignal is offline
Old

powering down a USB port

Posted 06-08-2012 at 09:25 AM by neonsignal

A USB device can be powered down by setting the power level parameter:
Code:
echo suspend >/sys/bus/usb/devices/usb-device/power/level
However, note that the power suspend is done by the slave device, not by the port. Not all USB devices can be suspended (particularly parasitic ones such as lights that have no communications interface).

The device can be turned back on by setting it to auto mode:
Code:
echo auto >/sys/bus/usb/devices/
...
Senior Member
Posted in Uncategorized
Views 872 Comments 0 neonsignal is offline
Old

running Windows inside VirtualBox

Posted 06-04-2012 at 04:13 AM by neonsignal
Updated 06-04-2012 at 05:59 PM by neonsignal

The VirtualBox project provides full x86 virtualization, and was developed by innotek and Sun (now Oracle). The licence is GPL, although there are some optional proprietary extensions, which include USB drivers and RDP support. On newer processors (with AMD-V or VT-x processor), there are other libre alternatives such as KVM.

To install VirtualBox is just a matter of installing the package:
Code:
apt-get install virtualbox-ose
Because the software is...
Senior Member
Posted in Uncategorized
Views 660 Comments 0 neonsignal is offline
Old

using NTP to synchronize the system clock

Posted 06-01-2012 at 08:45 PM by neonsignal

The network time protocol (NTP) is used to synchronize the system clock with a network of high accuracy clock sources around the world.

A typical way of using ntp is to just install the ntp package, and then edit /etc/ntp/conf and choose a time server, for example:
Code:
server au.pool.ntp.org
The ntp daemon will then maintain the local system clock on an ongoing basis.

On a minimal system, to avoid the memory overhead of the ntp daemon,...
Senior Member
Posted in Uncategorized
Views 718 Comments 0 neonsignal is offline

  



All times are GMT -5. The time now is 02:03 AM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration