Category: Computer Tips
cmake cannot find libGL.so after installing NVidia driver
The link in /usr/lib64/libGL.so was not updated to the NVidia version. Just remove the broken link and ln -s /usr/lib64/libGL.so.VER.VER /usr/lib64/libGL.so, where VER.VER is the NVidia driver version. For other missing libs that targeting a broken link, same strategy can be applied.
Redhat: need to know which package to install?
yum whatprovides ‘*/’
Firefox: Flash installed but does not show up
For some strange reason the flash folder in C:\WINDOWS\system32\Macromed was locked by explorer.exe. Once the Adobe Flash Player is installed in this folder, the locking prevented it from being copied into both Firefox’s plug in folder in C:\Program Files\Mozilla Firefox\plugins and Iexplore’s plugin folder in C:\Program Files\Internet Explorer\PLUGINS, such that from the plugin point of […]
When an application can only run as administrator in windows 7
It is possible that a dll/ocx was not properly registered. Try this: regsvr32.exe COMDLG32.OCX regsvr32.exe YourOCX.OCX regsvr32.exe Yourdll.dll
Firefox home page hijacker
Check C:\Documents and Settings\Your User\Application Data\Mozilla\Firefox\Profiles\Your Profile.default\user.js Hijacked page may appear there.
a new rootkit?
Found a virus disguise itself in a windows/installer/{2a19006b-67c6-b3d2-bc82-88e444232c7b} and load into srvchost.exe as n and @. Don not know what it is. Killed.
watch what is slowing down your linux
ps aux | awk ‘\$8 ~ /D/ { print \$0 }’ watch -n 1 “(ps aux | awk ‘\$8 ~ /D/ { print \$0 }’)”
Simple guide for executable chroot jail
1. Install Jailkit, CentOS rpm available in rpmforge repo. 2. mkdir -p # to define your jail root 3. jk_init -v -j ssh # to allow ssh in your jail 4. jk_jailuser -j # to move the user into the jail 5. Edit /etc/jailkit/jk_init.ini and /etc/jailkit/jk_socketd.ini # to match your system 6. jk_cp -v -f […]
A painful lesson of a linux quibble
It has been longly debated that there is not a liable way to do undelete on linux file system. Only for this, extundelete has provided a workaround. However, mainly the need of undelete comes from the over-powerful command “rm”. Suppose any user committed “rm -rf /*” or “cd /; rm -rf *”, the command will […]
[Samba] how to list computers that are joined to the domain?
This will get you workstation a domain trust accounts: pdbedit -L -w | grep ‘\[[WI]’