To use
melt
as diff program, open with a text editor the file~/.subversion/config
and replace or add the line
diff-cmd=meld
Then the command
svn diff -r v1:v2 FILE &
will compare the versions
v1
and v2
of FILE
using meld
.
melt
as diff program, open with a text editor the file~/.subversion/config
diff-cmd=meld
svn diff -r v1:v2 FILE &
v1
and v2
of FILE
using meld
.
$ ssh -X user@machine.domain.com
InputForm
, and paste it into a text file;.m
extension.$ math -script file.m
#!/usr/local/bin/MathematicaScript -script
(* output a file containing Cos[x] *)
Export["output.dat",Table[{x,N[Cos[x]]},{x,0,Pi}]]
$ chmod a+x script.m
$ ./script.m
$ nohup ./script.m &
# apt-get install thinkfan lm-sensors
Setting up thinkfan (0.9.2-1) ... Job for thinkfan.service failed. See 'systemctl status thinkfan.service' and 'journalctl -xn' for details. invoke-rc.d: initscript thinkfan, action "start" failed. dpkg: error processing package thinkfan (--configure): subprocess installed post-installation script returned error exit status 1 Errors were encountered while processing: thinkfan E: Sub-process /usr/bin/dpkg returned an error code (1)
# sensors-detect
$ find /sys/devices -type f -name "temp*_input"
/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/hwmon/hwmon3/temp1_input
/sys/devices/virtual/hwmon/hwmon0/temp1_input
/sys/devices/platform/coretemp.0/hwmon/hwmon2/temp3_input
/sys/devices/platform/coretemp.0/hwmon/hwmon2/temp1_input
/sys/devices/platform/coretemp.0/hwmon/hwmon2/temp2_input
/etc/thinkfan.conf
appending 'hwmon' to each line (in my case I excluded the first line of the previous output), so that the file would look something like this:
hwmon /sys/devices/virtual/hwmon/hwmon0/temp1_input
hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon2/temp3_input
hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon2/temp1_input
hwmon /sys/devices/platform/coretemp.0/hwmon/hwmon2/temp2_input
(0, 0, 55)
(1, 48, 60)
(2, 50, 61)
(3, 52, 63)
(4, 56, 65)
(5, 59, 66)
(7, 63, 32767)
(LEVEL, LOW, HIGH)
LEVEL is the fan level to use (0-7 with thinkpad_acpi)
LOW is the temperature at which to step down to the previous level
HIGH is the temperature at which to step up to the next level
All numbers are integers.
/usr/share/doc/thinkfan/examples/thinkfan.conf.simple
# modprobe thinkpad_acpi fan_control=1
echo level 4 | sudo tee /proc/acpi/ibm/fan
where the level can be set to an integer between 0 (no fan) 7 (high fan level). Note that level 7 (about 4500 rpm) does not correspond to the maximum speed reachable by the fan. It is possible to increase further the fan usage manually by setting the level to 'disengaged' (about 5500rpm)
echo level disengaged | sudo tee /proc/acpi/ibm/fan
and return back to automatic mode as
echo level auto | sudo tee /proc/acpi/ibm/fan
It is however preferable and more safe to start an automatic service, such as thinkfan, to control the fan level given certain temperature ranges.
# systemctl start thinkfan.service
$ systemctl status thinkfan.service
$ cat /proc/acpi/ibm/fan
status: enabled
speed: 1985
level: 1
commands: level ( is 0-7, auto, disengaged, full-speed)
commands: enable, disable
commands: watchdog ( is 0 (off), 1-120 (seconds))
where ' level' is set between 0-7. If instead of being set to a number it is set to 'auto', then probably thinkfan is not active.
or using the command$ sensors
# echo "options thinkpad_acpi fan_control=1" | sudo tee /etc/modprobe.d/thinkpad_acpi.conf
and enable the service at boot
# systemctl enable thinkfan.service
# echo 80 > /sys/devices/system/cpu/intel_pstate/max_perf_pct
A systemd script to set automatically the CPU levels at boot can be downloaded from here. Of course, this is not the optimal long term fix, but it is not invasive and requires no purchase.thinkfan
, and care attention to wisely configure the fan options.
$ sudo apt-get install thinkfan
$ sudo sh -c ‘echo coretemp >> /etc/modules’
$ sudo modprobe coretemp
sensor /sys/devices/platform/coretemp.0/temp1_input
sensor /sys/devices/platform/coretemp.0/temp2_input
sensor /sys/devices/platform/coretemp.0/temp3_input
sensor /sys/devices/virtual/hwmon/hwmon0/temp1_input
$ sudo sh -c ‘echo “options thinkpad_acpi fan_control=1″ >> /etc/modprobe.d/thinkfan.conf’
$ sudo modprobe -r thinkpad_acpi
$ sudo modprobe thinkpad_acpi
$ sudo /etc/init.d/thinkfan start
$ sudo cat /proc/acpi/ibm/fan
thinkfan
to startup applications.
set term post color eps enh
set output "plot.eps"
set title "{/Symbol abcdefghijklmnopqrstuvwxyz \245}"