mercoledì 25 dicembre 2019

SQL Server Management Studio error 0x80070643 - A previous installation required a reboot of the machine for changes to take effect. To proceed, restart your computer and then run Setup again

I recently came up to the error above, when updating my sql server management studio application. Rebooting or forcing windows update, didn't solve the error.
This issue is apparently caused by the presence of this registry entry:
Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\PendingFileRenameOperations
This entry should be related to some previous dirty installation. Removing the entry will allow management studio installation to end successfully

domenica 9 luglio 2017

Eclipse tooltip black with fedora

my eclipse had an annoying problem in fedora: the tooltip windows had black background, making text almost unreadable.
I experienced the problem with eclipse neon and oxygen, with fedora 24 and 25.
I solved, setting the following env variable:
export SWT_GTK3=0

venerdì 20 marzo 2015

Fedora 21 - pptp vpn error

today, after upgrading to fedora 21 (from 20), my work pptp vpn connection stopped working. looking at journactl, the interesting message was:
: ** (nm-pptp-service:3518): WARNING **: pppd exited with error code 16
After checking around, the problem was with iptables default configuration (the upgrade readded some default rules). Since i don't need a local firewall, I simply disabled it and vpn began to work again.
to temporarily disable it: iptables --flush
to permanently disable id: systemctl disable firewalld

mercoledì 8 agosto 2012

ssh tabbed manager for linux

being a developer (sigh) I often need to access several ssh server, paying particular attention to discriminate between production and test servers....
After digging around for a good ssh manager linux, I these two are the best ones:
http://kuthulu.com/gcm/ which I actually use. The tool is written in python, so easy to install.
Another widespread tool is pac manager https://sites.google.com/site/davidtv/ which is more debian-ubuntu oriented.

mercoledì 1 agosto 2012

fglrx with fedora 16 kernel 3.4.x

ok, this should be the final working approach!
Please note that I used amd 12-4 drivers, because my card RADEON HD 4670 in unsupported since 12.6. Anyway the following patch is ok to make the 12.6 compile too, just keep in mind that in case the drivers doesn't get loaded after reboot and aticonfig states something like "no suitable hardware found" you probably have a card no longer supported.
  1. Run amd-driver-installer-12-6-x86.x86_64.run --extract ./fglrx
  2. copy patch file (here's attached) into fglrx
  3. cd fglrx
  4. patch -p1 < fglrx12-4.patch
  5. ./ati-installer.sh 8.961 --install
The driver should get installed without any error.

sabato 21 luglio 2012

fglrx compiling problems (again)

Today I came into a new error, after trying to recompile my fglrx drivers.
configuration:
fedora 16 64bit
kernel 3.4.4-4
fglrx drivers 12-6
the error is:

make[1]: Entering directory `/usr/src/kernels/3.4.4-4.fc16.x86_64'
  CC [M]  /usr/src/fglrx-8.98/2.6.x/firegl_public.o
/usr/src/fglrx-8.98/2.6.x/firegl_public.c: In function ‘kasInitExecutionLevels’:
/usr/src/fglrx-8.98/2.6.x/firegl_public.c:4159:47: error: ‘cpu_possible_map’ undeclared (first use in this function)
/usr/src/fglrx-8.98/2.6.x/firegl_public.c:4159:47: note: each undeclared identifier is reported only once for each function it appears in
/usr/src/fglrx-8.98/2.6.x/firegl_public.c:4159:66: warning: left-hand operand of comma expression has no effect [-Wunused-value]

Don't bother anymore with recompiling, use instead the rpmfusion repository and enter:
yum install kmod-catalyst
This solution, using non official amd drivers, is not suitable to me, because laptop gets very hot....

Googling aroung, it seems that the macro cpu_possible_map is invalid with 3.4.x kernel. try doing this:

  1. cd /usr/src/fglrx-8.98 or whatever else you have
  2. sh make.sh --nohints --uname_r=3.4.4-4.fc16.x86_64 --norootcheck
  3. you get the error above: ok.
  4. open 2.6.x/firegl_public.c at line 4159
  5. replace for_each_cpu_mask(p, cpu_possible_map)  with
  6. #if LINUX_VERSION_CODE >= KERNEL_VERSION(3,4,0)
  7.     for_each_possible_cpu(p)
  8. #else
  9.      for_each_cpu_mask(p, cpu_possible_map)
  10. #endif

rerun command 2, now it should work
reboot.

info from
http://cvs.rpmfusion.org/viewvc/rpms/catalyst-kmod/F-16/fglrx_kernel_3.4.0.patch?revision=1.3&root=nonfree&view=markup


EDIT:
a quicker solution is explained here (end of the page)
http://wiki.cchtml.com/index.php/Fedora_17_Installation_Guide



lunedì 9 aprile 2012

error installing fglrx ati drivers on fedora 16

I have an ati radeon 4650 on my laptop running fedora 16 x64. Each time the kernel is upgraded, I need to reinstall the driver (I tried the open source ones, but they make the laptop very hot, with fan always on) from amd. After switching to kernel 3.1.X, drivers did not install anymore, showing this error in the logs:
cd /var/lib/dkms/fglrx/8.95/build; sh make.sh --nohints --uname_r=3.3.1-3.fc16.x86_64 --norootcheck....(bad exit status: 1)
[Error] Kernel Module : Failed to build fglrx-8.95 with DKMS
[Error] Kernel Module : Removing fglrx-8.95 from DKMS
After running the above command alone, I found that a kernel header file is the source of the compile error. Don't ask me why (if you want, tell me why), but doing this it works:
open "/usr/src/kernels/`uname -r`/arch/x86/include/asm/uaccess_64.h"
at line 56 and 57 there is
else
WARN(1, "Buffer overflow detected!\n");

comment both lines and re-run the installer, now it should work.
I found this solution googling around.