Sonarqube is cool, as the generated results can not only be viewed via the web interface, but also via an plugin in IntelliJ or other Jetbrains IDEs. The installation is quite simple, you just need to download the latest plugin on this website: https://plugins.jetbrains.com/plugin/7238 and install it in the way described here: https://github.com/sonar-intellij-plugin/sonar-intellij-plugin. After that, you can easily hunt down and eliminate those errors :)!
Category: Product Specific
Cisco Prime Infrastructure 3.1 Cheat Sheet
A little cheat sheet for myself. All commands can be used via SSH or Shell:
Show Config: show run
Show Inventory: show inventory
(Does show i.e. how many CPUs and RAM is installed. This does match normally to the Version of Cisco Prime. i.E. 8 vCPUs and 16 GB RAM -> Express Plus Type)
Show status of prime: ncs status
Backup OS and Application: backup PI311 repository defaultRepo
Backup Application only: backup PI311appOnly repository defaultRepo application NCS
Activate OS Shell: shell
Locations of different files
defaultRepo: /localdisk/defaultRepo
Config: /storedconfig
License Files: /opt/CSCOlumos/licenses
To transfer the backup files to a safe place, just use scp :).
[Logitech] R400 Presenter pairing
Warning: The R400, R600 and R700 series of presenters are attack vectors and considered harmful. While Heise made an article that detailed that Logitech would exchange the receivers, it did actually not. They sent out a pair of incompatible C-U0014 receivers which could not be paired with R-R0004 presenters and then stopped their program, claiming only to exchange the presenter if it was under warranty, which is a security nightmare (I just tried to get the correct receiver, but Maven M. from Logitech wanted to have the receipt for the module which I obviously do not have anymore). In other words: The hardware is extremely vulnerable, Logitech accepts that it is like that but does not want to get this fixed, so I can only recommend to dispose of the presenter line and do not buy from Logitech anymore. Here is the security write up with the proof of concept to that attack: https://seclists.org/fulldisclosure/2016/Oct/60
To pair an old R400 presenter with a new dongle (or vice versa), try to get the right dongle for your presenter version first:
As stated here, there are two versions of dongles for the presenters - and they are not interchangable:
"There are two versions of presenter receivers that can't be interchanged.
C-U0005
Use the C-U0005 receiver with these presenters:
Wireless Presenter R400 with M/N = R-R0004
Professional Presenter R700 with M/N = R-R0006
Professional Presenter R800 with M/N = R-R0003
C-U0014
Use the C-U0014 receiver with these presenters:
Wireless Presenter R400 with M/N = R-R0008
Professional Presenter R700 with M/N = R-R0010
Professional Presenter R800 with M/N = R-R0009
You can find the model number (M/N) of your presenter inside the battery compartment."
After that, download the Logitech Presenter Connection Software from here (Sorry, only Windows...), start the file and unzip the content.
Update again to this post from 2015 now in 2021: Logitech removed the links from its website, but you still can find the file on its ftp server: ftp://ftp.logitech.com/pub/techsupport/mouse/presenter_connection_zipped.exe ;).
Start the file and unzip the content.
Then, connect your dongle, find the logitech_presenter_connection.exe and start it. After that, the software will ask you to power up your presenter while holding down the to the left and to the right keys of the presenter. 3+ seconds after powering up and holding down the keys, you can release the keys, turn off the presenter again and click Ok in the software. Power on your presenter again and see if it works, if not - try the procedure again.
Update (2019): Had to update the links as they were from 2015 and have changed due to Logitech deciding to changing their design (Thanks Michael!). Also please note the R400, R700 and R800 presenters are considered insecure and the dongles are now replaced by Logitech: https://www.heise.de/security/meldung/Angreifbare-Logitech-Presenter-Hersteller-tauscht-gefaehrliche-USB-Empfaenger-aus-4423627.html
Update (2021): Had to update the download link again, thanks Christopher for asking. But I guess you need to start the software with admin rights (maybe even Win XP, Win 7 "emulation"?), I could not pair my second dongle right now, but the battery is also nearly flat, so that should be an issue.... the software as what I had back then... Maybe it helps some one 🙂
[RaspPi] HDMIPi Repair and VGA Upgrade
Sadly, some weeks ago, the Micro USB Port of my HDMIPi broke.
I wrote an letter to Alex Eames, which is quite known for HDMIPi, RasPi.TV and his lattest Kickstarter Project the RasPiO Duino.
Alex is an awesome guy and gave me his blessings to try to repair that problem myself.
With some flux, a fine solder tip and soem patience, you can get that repaired in no time.
After succeeding, I created some strain-relief by using two-component epoxy resin to glue it down a bit. Highly recommended!
As I already saw the unused VGA pinout on the HDMIPi and had the screen taken apart, I decided to hack an old VGA Connector from an even older VGA ATI/S3 Trio/Dunno-something-very-old Graphics Card :). I just soldered it in - in it worked right away! However, due to the fact of the included 12mm M3 Spacers and the additional height of the board due to the VGA Connector, I could not attach the back plate of the HDMIPi. I don't recall the exact size, but I think I came up with 18mm M3 Spacers which I only used to replace the original 3 Spacers on the bottom part of the HDMIPi. That way, the buttons of the Display would still be seated nicely and I could access the GPIO Ports of the RPi quite well.
Some photos:
[Brother] Brother MFC-9465CDN Webinterface Password
User: admin
Password: access
User: user
Password: access
[Win8] EEE PC 1015PN and Windows 8
I have been using my EEE PC 1015PN for nearly 2 years now, and I am quite satisfied with it. But after the release of Windows 8, I wanted to try it, too. So I decided to upgrade install from my Windows 7 Professional to Windows 8 Professional. Before this test, I made an Acronis Image, which turned out to be an really good idea. Installation itself needed about 1 1/2 hour, as I decided to upgrade and not start from scratch.
The first problem started to come up after going to the desktop and trying to change the brightness \ wifi connectivity by using the FN Keyboard Shortcuts: "Asus ACPI Driver missing", was the error. So I tried to reinstall the needed keyboard drivers, and Optimus Tool (1015PN uses an Intel as well as an NVIDIA Graphicscard).
After rebooting, I was able to choose the Optimus setting within the tool, and I could also change screen brightness with the FN Keyboard Shortcuts - but nothing else.
So I decided to shutdown the PC, enable WIFI in the BIOS and reboot - to check WIFI Connectivity, as well as to see the Intel Graphics active in Windows 8. So I pressed the "Save and Reboot" shortcut in the bios - and that was the last thing I saw.
After that, the EEE PC tried to boot once, and then stopped working, rebooting again - boot loop. But not after 20 seconds of boot, no, it already fried seconds after starting the boot process. Even disabling WIFI in BIOS again or pressing F8 manically - nothing could help. The system was killed.
After trying for a good amount of time, I restored the Windows 7 backup. And thats it. My first Windows 8 impression turned out to be even worse than Windows Vista. And well, that was something.
[WinXP Tablet Edition] Tabtip.exe does Crash
If the virtual Keyboard on your Tablet PC does Crash on start, just do an "Fix-install" of the .Net Framework 2.
Reboot, and everything should be fine.
PS: There should be some memory leak within that Application, and theres a patch for that. Just to note it.
[Win7] How To Move Skype from Taskbar to Systemtray
As from the new Version on, Skype does not minimize to Taskbar in Windows 7 anymore. It does stay within the Systemtray and the Taskbar. To solve that, just change the Programm Compability Mode for Skype to Windows Viste, Service Pack 2.
Rooting CUCM7 & Giving BASH instead of the restricted CLI
1. Boot with gparted
2. cd /tmp
3. mkdir test
4. mount /dev/sda1 /tmp/test
5. chroot /dev/test /bin/bash
6. Change:
/etc/passwd:
root:x:0:0:root:/root:/sbin/nologin
admin:x:591:503::/home/admin:/usr/local/platform/bin/cliscript.sh
to:
root:x:0:0:root:/root:/bin/bash
admin:x:591:503::/home/admin:/bin/bash
/etc/shadow
root:!!:14657:0:99999:7:::
to:
root:$1$D2ISXWJF$urnCHPxcF20BUWWwvTZfX0:14657:0:99999:7:::
/etc/sudoers
add the Line for admin under the user privilege specification so that it looks like this:
# User privilege specification
root ALL=(ALL) ALL
admin ALL=(ALL) ALL
7. exit
8. cd /tmp
9. umount /tmp/test
10. umount /dev/sda1
11. reboot
12. login with admin and your password, you are in the bash shell, not in the cisco cli anymore
13. enter sudo su and your login password and you become root
[EEE901/1000] Use Windows XP Bluetooth-Stack on Asus 901/1000
- Deactivate Bluetooth in the Asus-Tray-Utility
- Open C:\WINDOWS\INF\BTH.INF with the Editor.
- Look for:
[Manufacturer]
%Microsoft%=Microsoft
ALPS=ALPS, NT.5.1
Belkin=Belkin, NT.5.1
...
- Now add "Asus=ASUS, NT.5.1". It should look like this:
[Manufacturer]
%Microsoft%=Microsoft
ALPS=ALPS, NT.5.1
Asus=ASUS, NT.5.1
Belkin=Belkin, NT.5.1
...
- Now look for "[Zeevo.NT.5.1]". It should look like this:
[Zeevo.NT.5.1]
Zeevo Bluetooth Solution= BthUsb, USB\Vid_0b7a&Pid_07d0&Rev_0126
Zeevo Bluetooth Solution= BthUsb, USB\Vid_0b7a&Pid_07d0&Rev_0133
- Beneath it, add following:
[Asus.NT.5.1]
Asus BT-253= BthUsb, USB\VID_0B05&PID_B700
- Result:
[Zeevo.NT.5.1]
Zeevo Bluetooth Solution= BthUsb, USB\Vid_0b7a&Pid_07d0&Rev_0126
Zeevo Bluetooth Solution= BthUsb, USB\Vid_0b7a&Pid_07d0&Rev_0133
[Asus.NT.5.1]
Asus BT-253= BthUsb, USB\VID_0B05&PID_B700
- Save and leave the editor
- Now it depends wheter you did install the Widcomm Software or wheter you start with an fresh Win XP Installation
With Widcomm-Software:
- Activate Bluetooth in the Asus-Tray-Utility, Bluetooth Symbol should be white
- Go to System, Software and remove Widcomm-Bluetooth-Software
- At the end, system want that you deactivate Bluetooth - do that via the Tray Utility
- Than, it wants to reboot - DON'T do that.
- Activate Bluetooth again in the Asus-Tray-Utility
- Windows should start installing its own Bluetooth Stack
- Reboot after that, you're done
Without Widcomm-Software:
- Just activate Activate Bluetooth in the Asus-Tray-Utility and it should start installing
- If not, go to the Hardware Manager and "search for changed Hardware"
Internal Notes:
C:\WINDOWS\INF\BTH.INF
rundll32.exe bthprops.cpl,,BluetoothAuthenticationAgent
bthprops.cpl
I found it btw in an german forum and did roughly translate it, because I found it very useful as I only use Bluetooth for s25@once with my Handy.