Simple fix :
sudo apt-get install libgstreamer-plugins-base0.10-dev libgstreamer0.10-dev libglib2.0-dev
nJoy 😉
Simple fix :
sudo apt-get install libgstreamer-plugins-base0.10-dev libgstreamer0.10-dev libglib2.0-dev
nJoy 😉
So reason : double checking Sawmill and AWstats.
(sawmill won..)
echo “$(awk ‘{print $10}’ prd.logs | grep -v “-” | paste -sd + – | bc )/1024/1024/1024″ | bc
result is in GB.
nJoy;
We had a problem on a server df would hang and we knew that a cifs / samba share died and recovered. Trying unmount / with any parameters -l -f failed.
Experience and google told us we need to reboot. This is a remote server and we know the shutdown hangs on going down so another way to restart was needed.
We needed magic !!
Wouldn’t it be nice if there was a way to ask the kernel to reboot without needing to access the failing drive? Well, there is a way, and it is remarkably simple.
The “magic SysRq key” provides a way to send commands directly to the kernel through the /proc filesystem. It is enabled via a kernel compile time option, CONFIG_MAGIC_SYSRQ, which seems to be standard on most distributions. First you must activate the magic SysRq option:
echo 1 > /proc/sys/kernel/sysrq
When you are ready to reboot the machine simply run the following:
echo b > /proc/sysrq-trigger
This does not attempt to unmount or sync filesystems, so it should only be used when absolutely necessary, but if your drive is already failing then that may not be a concern.
In addition to rebooting the system the sysrq trick can be used to dump memory information to the console, sync all filesystems, remount all filesystems in read-only mode, send SIGTERM or SIGKILL to all processes except init, or power off the machine entirely, among other things.
Also, instead of echoing into /proc/sys/kernel/sysrq each time you can activate the magic SysRq key at system boot time using sysctl, where supported:
echo “kernel.sysrq = 1” >> /etc/sysctl.conf
If you would like to learn more about magic SysRq you can read the sysrq.txt file in the kernel documentation.
nJoy 😉
In windows (again I know …. ) sometimes you get reference to removed users ( and sometimes not so removed) Â in mmc and secpol looking like this :
S-1-5-21-123456789-3881959548-123456789-500
To check the SIDs of users for some obscure bug like I had today use:
wmic useraccount get name,sid
That’s it ..
( ofcourse you can filter it with )
wmic useraccount get name,sid | find “Administrator” /I
nJoy 😉
In windows (yes I know) you can check if a drive exists by using
IF EXIST E:\NUL echo yep it does ..
that’s it . nJoy 😉
zenity –info –text ‘You alert message’
This works on ubuntu and mint .. YMMV
Simple nJoy 😉
Great tool for checking ethernet NIC information in linux:
ethtool
In ubuntu you might need to install it like so :
sudo apt-get install ethtool
The tool is easy to use:
Use
ifconfig -aÂ
to list nics
then
root@wo1:~# ethtool p4p1
Settings for p4p1:
Supported ports: [ TP ]
      Supported link modes: 10baseT/Half 10baseT/Full
                        100baseT/Half 100baseT/Full
                        1000baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes: Â Â Â Â Â Â 10baseT/Half 10baseT/Full
                        100baseT/Half 100baseT/Full
                        1000baseT/Full
Advertised pause frame use: Symmetric
Advertised auto-negotiation: Yes
Speed: 1000Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 1
Transceiver: internal
Auto-negotiation: on
MDI-X: Unknown
Supports Wake-on: pumbg
Wake-on: g
Current message level: 0x00000007 (7)
                    drv probe link
Link detected: yes
root@wo1:~#
nJoy 😉
This is a hint from Andrew Thanks..
C:\Program Files\VMware\Infrastructure\Virtual Infrastructure Client\Launcher\VpxClient.exe -i yes -s 10.21.68.8 -u root -p password
Works !
In a batch:
start “VMLauncher” /D”C:\Program Files\VMware\Infrastructure\Virtual Infrastructure Client\Launcher\” VpxClient.exe -i yes -s 10.21.68.8Â -u root -p password”
Thanks nJoy 😉
You can convert DEB file to RPM package and RPM to DEB package using alien command, if you have a *.rpm file that you want to install on a Debian or Ubuntu.
Install alien command on Ubuntu as mentioned here:
Now, use alien command to convert rpm to deb file,
clamav-0.92.1-1.el5.rf.i386.deb generated
Finally, Install deb packages using the dpkg command,
Use alient -r option to convert a deb file to rpm file.
clamav-0.92.1-1.el5.rf.i386.rpm generated
Once you generate the rpm file, you can install it on Red Hat, Fedora or CentOS.
Finally install rpm,
Where,
-i = Install RPM
-v = Install in verbose Mode
-h = Print 50 hash marks as the package archive is unpacked
nJoy 😉
Common problem with kaltura..
Common solution …
pkill searchd /opt/kaltura/bin/sphinx/searchd -c /opt/kaltura/app/configurations/sphinx/kaltura.conf
nJoy 😉