Are you over 18 and want to see adult content?
More Annotations
A complete backup of residenciaparaestudiantessantafe.com.mx
Are you over 18 and want to see adult content?
A complete backup of thecleanbedroom.com
Are you over 18 and want to see adult content?
A complete backup of tech4learning.com
Are you over 18 and want to see adult content?
A complete backup of kingstonplantation.com
Are you over 18 and want to see adult content?
A complete backup of doctors-on-call.com
Are you over 18 and want to see adult content?
A complete backup of godhatesshrimp.com
Are you over 18 and want to see adult content?
A complete backup of intercityhoteis.com.br
Are you over 18 and want to see adult content?
Favourite Annotations
A complete backup of stpaulcenter.com
Are you over 18 and want to see adult content?
A complete backup of therefinedfeline.com
Are you over 18 and want to see adult content?
A complete backup of workforce-resource.com
Are you over 18 and want to see adult content?
A complete backup of searchquotes.com
Are you over 18 and want to see adult content?
A complete backup of sellmycomicbooks.com
Are you over 18 and want to see adult content?
A complete backup of expeditedsecurity.com
Are you over 18 and want to see adult content?
A complete backup of marathontrainingacademy.com
Are you over 18 and want to see adult content?
Text
instead of 5).
HOW TO SET UP A TRANSPARENT VPN INTERNET GATEWAY TUNNEL I created a transparent VPN Internet gateway tunnel (sorry, couldn’t come up with a better name for it) using OpenVPN and my new Odroid-C1 Linux mini computer. NEW HOLUX M-241 FIRMWARE 1.11 Recent Comments. Jan on GA-Z97X-UD5H and macOS 11 Big Sur with OpenCore; John on GA-Z97X-UD5H and macOS 11 Big Sur with OpenCore; Bw on GA-Z97X-UD5H and macOS 11 Big Sur with OpenCore; Ben on GA-Z97X-UD5H and macOS 11 Big Sur with OpenCore; Simon on How to use IPv6 on Quickline/WWZ and pfSense firewall; Jan on GA-Z97X-UD5H and macOS 11 Big Sur with OpenCore; SHOW ROUTING TABLE IN MAC OS X Recent Comments. Jan on GA-Z97X-UD5H and macOS 11 Big Sur with OpenCore; John on GA-Z97X-UD5H and macOS 11 Big Sur with OpenCore; Bw on GA-Z97X-UD5H and macOS 11 Big Sur with OpenCore; Ben on GA-Z97X-UD5H and macOS 11 Big Sur with OpenCore; Simon on How to use IPv6 on Quickline/WWZ and pfSense firewall; Jan on GA-Z97X-UD5H and macOS 11 Big Sur with OpenCore; HOW TO MIGRATE A LVM-BASED KVM GUEST TO ANOTHER HOST In the past, I have been using the immensely useful virt-backup.pl script to migrate a LVM-based (raw volume) Linux KVM guest from one host to another. However, there is an even easier way to cold-migrate a KVM guest. This approach is particularly helpful if there’s not enough disk space on the host to create a gzipped backup of the logical volume using the virt-backup.pl script. ENABLE VIM TV-PLAYBACK USING VCDS/VAG-COM IN YOUR AUDI MMI Hi Guys, I’ve a A3 (8V) 2015 model. I’ve had a go at unlocking. I used both the primary and alternate code. After the 1st code didn’t work, I did as instructed with the Ross Tech instructions saying wait 10 minutes with the ignition on before trying again with the othercode.
PREVENT SSL REDIRECT LOOP USING WORDPRESS AND HAPROXY Thanks for the help. This was quite frustrating. I ended up using a slightly different approach though. Since I already had “option forwardfor” on my haproxy config and didn’t want to add an additional request, I simply check for the existence of “HTTP_X_FORWARDED_FOR”. KINDLE FIRE REBOOT LOOP PROBLEM In my case, the power light turned orange and the device started charging the battery. Problem solved! Most likely, this only works if the battery is completely discharged and not if there’s some other problem with the software on the device. SETTING UP A HUAWEI E3276-150 4G/LTE USB MODEM ON UBUNTU I just received an unlocked Huawei E3276s-150 4G/LTE USB modem/surfstick I bought on eBay the other day. I went for the E3276s-150 because the 150 seemed to be the most compatible option for European 4G mobile networks. TIPS & TRICKS FOR THE PC ENGINES APU Recent Comments. Jan on GA-Z97X-UD5H and macOS 11 Big Sur with OpenCore; John on GA-Z97X-UD5H and macOS 11 Big Sur with OpenCore; Bw on GA-Z97X-UD5H and macOS 11 Big Sur with OpenCore; Ben on GA-Z97X-UD5H and macOS 11 Big Sur with OpenCore; Simon on How to use IPv6 on Quickline/WWZ and pfSense firewall; Jan on GA-Z97X-UD5H and macOS 11 Big Sur with OpenCore; VIM LOGIN-CODE GENERATOR FOR MMI 3G If this login-code generator worked for you, please leave a comment and include the car model and model year, thanks! If you're using a VAS 505x use channel 001 to get the serial number (first field) and remove the leading zero from the generated login-code (4 digitsinstead of 5).
HOW TO SET UP A TRANSPARENT VPN INTERNET GATEWAY TUNNEL I created a transparent VPN Internet gateway tunnel (sorry, couldn’t come up with a better name for it) using OpenVPN and my new Odroid-C1 Linux mini computer. NEW HOLUX M-241 FIRMWARE 1.11 Recent Comments. Jan on GA-Z97X-UD5H and macOS 11 Big Sur with OpenCore; John on GA-Z97X-UD5H and macOS 11 Big Sur with OpenCore; Bw on GA-Z97X-UD5H and macOS 11 Big Sur with OpenCore; Ben on GA-Z97X-UD5H and macOS 11 Big Sur with OpenCore; Simon on How to use IPv6 on Quickline/WWZ and pfSense firewall; Jan on GA-Z97X-UD5H and macOS 11 Big Sur with OpenCore; SHOW ROUTING TABLE IN MAC OS X Recent Comments. Jan on GA-Z97X-UD5H and macOS 11 Big Sur with OpenCore; John on GA-Z97X-UD5H and macOS 11 Big Sur with OpenCore; Bw on GA-Z97X-UD5H and macOS 11 Big Sur with OpenCore; Ben on GA-Z97X-UD5H and macOS 11 Big Sur with OpenCore; Simon on How to use IPv6 on Quickline/WWZ and pfSense firewall; Jan on GA-Z97X-UD5H and macOS 11 Big Sur with OpenCore; HOW TO MIGRATE A LVM-BASED KVM GUEST TO ANOTHER HOST In the past, I have been using the immensely useful virt-backup.pl script to migrate a LVM-based (raw volume) Linux KVM guest from one host to another. However, there is an even easier way to cold-migrate a KVM guest. This approach is particularly helpful if there’s not enough disk space on the host to create a gzipped backup of the logical volume using the virt-backup.pl script. ENABLE VIM TV-PLAYBACK USING VCDS/VAG-COM IN YOUR AUDI MMI Hi Guys, I’ve a A3 (8V) 2015 model. I’ve had a go at unlocking. I used both the primary and alternate code. After the 1st code didn’t work, I did as instructed with the Ross Tech instructions saying wait 10 minutes with the ignition on before trying again with the othercode.
PREVENT SSL REDIRECT LOOP USING WORDPRESS AND HAPROXY Thanks for the help. This was quite frustrating. I ended up using a slightly different approach though. Since I already had “option forwardfor” on my haproxy config and didn’t want to add an additional request, I simply check for the existence of “HTTP_X_FORWARDED_FOR”. KINDLE FIRE REBOOT LOOP PROBLEM In my case, the power light turned orange and the device started charging the battery. Problem solved! Most likely, this only works if the battery is completely discharged and not if there’s some other problem with the software on the device. SETTING UP A HUAWEI E3276-150 4G/LTE USB MODEM ON UBUNTU I just received an unlocked Huawei E3276s-150 4G/LTE USB modem/surfstick I bought on eBay the other day. I went for the E3276s-150 because the 150 seemed to be the most compatible option for European 4G mobile networks.TRICK77.COM
Interestingly, my 6 year old Hackintosh rig is still going strong and so I decided to upgrade it from macOS X Mojave to macOS 11 Big Sur. Since OpenCore is pretty well documented by now, I wanted to give it a try and replace Clover (which seems to use OpenCore as well by now). However, the transition from Clover to OpenCore wasn’t smooth atall.
VIM LOGIN-CODE GENERATOR FOR MMI 2G If this login-code generator worked for you, please leave a comment and include the car model and model year, thanks! If you're using a VAS 505x use channel 001 to get the serial number (first field) and remove the leading zero from the generated login-code (4 digitsinstead of 5).
MMI VIM LOGIN-CODE GENERATOR WINDOWS APPLICATION Due to popular demand there’s a MMI 2G/3G VIM login-code generator application available in the download area.Windows-only. And you need .NET Framework 3.5 in order to run it. HOW TO AUTO BACKUP A GMAIL ACCOUNT TO A QNAP NAS It’s pretty straightforward to (incrementally) backup all emails in a Gmail account to a QNAP NAS. There’s a QNAP NAS solution using Getmail but it comes with some limitations. I prefer to use Gmail-Backup.It doesn’t need any configuration files and it doesn’t have a 100 messages per session limit. It stores all mails in the .eml format, which not only works on Windows PCs but is UNLOCKING THE MMI 3G HIDDEN MENU I have a late 2011 A6 4G and I was able to set channel 6 to 1 in VCDS. I have tried to open the hidden menu using the “Menu” and “Car” buttons and holding these buttons for many more than 6 seconds but no menu. PHPMYADMIN BEHIND HAPROXY Recent Comments. Jan on GA-Z97X-UD5H and macOS 11 Big Sur with OpenCore; John on GA-Z97X-UD5H and macOS 11 Big Sur with OpenCore; Bw on GA-Z97X-UD5H and macOS 11 Big Sur with OpenCore; Ben on GA-Z97X-UD5H and macOS 11 Big Sur with OpenCore; Simon on How to use IPv6 on Quickline/WWZ and pfSense firewall; Jan on GA-Z97X-UD5H and macOS 11 Big Sur with OpenCore; HOW TO RENAME AN OS X FUSION DRIVE Recent Comments. Jan on GA-Z97X-UD5H and macOS 11 Big Sur with OpenCore; John on GA-Z97X-UD5H and macOS 11 Big Sur with OpenCore; Bw on GA-Z97X-UD5H and macOS 11 Big Sur with OpenCore; Ben on GA-Z97X-UD5H and macOS 11 Big Sur with OpenCore; Simon on How to use IPv6 on Quickline/WWZ and pfSense firewall; Jan on GA-Z97X-UD5H and macOS 11 Big Sur with OpenCore; HOW TO CONFIGURE FREEPBX FOR OVH’S SIP TRUNK Are you still using OVH? How is your experience with them with regards to call quality? I’m considering them since there seem to be no decent VoIP offers from Switzerland based companys – at least for private customers and for less than 10.- per month. ENABLE KVM GUEST CONSOLE ACCESS IN UBUNTU USING THE VIRSH Usually, my first step after setting up a new Ubuntu guest is to enable console access in order gain shell access on the newly created VM. Step 1 – Activate the serial console in the guest HOW TO CONNECT A HOLUX M-241 IN 64-BIT SNOW LEOPARD OVER Hallo, sorry I´m “a little” late: M-241c has no bluetooth; that is all. In Germany this device seems not to be available I am looking for a usb-driver for OS X 10.9 Mavericks for Holux M-241.TRICK77.COM
Interestingly, my 6 year old Hackintosh rig is still going strong and so I decided to upgrade it from macOS X Mojave to macOS 11 Big Sur. Since OpenCore is pretty well documented by now, I wanted to give it a try and replace Clover (which seems to use OpenCore as well by now). However, the transition from Clover to OpenCore wasn’t smooth atall.
VIM LOGIN-CODE GENERATOR FOR MMI 3G VIM login-code generator for MMI 3G. Instructions: Select control module 5F in VAG-COM/VCDS. Select "Advanced ID - 1A". Submit the value from the "Serial number" field in the form below. If there's more than one serial number, use the first one! Select "Security Access - TIPS & TRICKS FOR THE PC ENGINES APU Use max. cpufreq. Ubuntu will always set the CPU governor to ondemand during boot. # cat /proc/cpuinfo vendor_id : AuthenticAMD model name : AMD G-T40E Processor cpu MHz : 800.000. For the APU this means the CPU will be run at 800 MHz instead of 1 GHz. If you prefer the CPU to run at full speed at all times: # wget -O /usr/local/sbin https HOW TO SET UP A TRANSPARENT VPN INTERNET GATEWAY TUNNEL The transparent VPN gateway tunnel can be used in several ways: Set the router/gateway address and DNS resolver addresses in a client to the existing LAN router and all traffic will be sent unencrypted (unless TLS/SSL is involved) to your ISP. This is the default in mosthome LANs.
ENABLE VIM TV-PLAYBACK USING VCDS/VAG-COM IN YOUR AUDI MMI Fortunately, the VIM unlock login-code generation algorithm is the same for the MMI 2G and 3G (at least as of July 2009), so yes, using the generated login-code you can enable TV/DVD-playback at all vehicle speeds for the MMI 3G as well! Depending on the MMI system generation you want to VIM-enable, click one of the following links to get to PC ENGINES APU1 VS APU2 UNIXBENCH BENCHMARK PC Engines APU1 vs APU2 UnixBench benchmark. Here’s a UnixBench performance comparison between PC Engines APU1 vs the brand new APU2. Both system boards are equipped with 4 GB of RAM and a 16 GB mSATA SSD. While the APU1 sports a dual core AMD G series T40E CPU, the APU2 comes with a AMD G series GX-412TC quad core CPU. KINDLE FIRE REBOOT LOOP PROBLEM Unplug the Kindle Fire from the USB charger cable. Press and hold the power button (it should not turn on because the battery has run dry) While still holding the power button, plug the USB charger cable in (it should not turn on yet) Wait for at least 40 seconds while still holding the power button. Once the kindle powers on, immediately let SPEED UP MYSQL WITH A RAM DISK IN UBUNTU SERVER If you have some RAM to spare and want to speed up MySQL a little, you can create a RAM disk for MySQL’s temporary disk tables. In Ubuntu Server, the MySQL process is being watched by AppArmor which prevents us from using a custom tmpdir unless the AppArmor configuration is changed accordingly. This post shows how to to it. HOW TO MIGRATE A LVM-BASED KVM GUEST TO ANOTHER HOST In the past, I have been using the immensely useful virt-backup.pl script to migrate a LVM-based (raw volume) Linux KVM guest from one host to another. However, there is an even easier way to cold-migrate a KVM guest. This approach is particularly helpful if there’s not enough disk space on the host to create a gzipped backup of the logical volume using the virt-backup.pl script. SHOW ROUTING TABLE IN MAC OS X Jan November 19, 2011. August 18, 2015. Here’s a quick one. The route command won’t show you the full routing table in Mac OS X. You have to use the netstat command: netstat -rn. This will print the numeric view. If you prefer host names, omit the n parameter: netstat-r.
TRICK77.COM
Interestingly, my 6 year old Hackintosh rig is still going strong and so I decided to upgrade it from macOS X Mojave to macOS 11 Big Sur. Since OpenCore is pretty well documented by now, I wanted to give it a try and replace Clover (which seems to use OpenCore as well by now). However, the transition from Clover to OpenCore wasn’t smooth atall.
VIM LOGIN-CODE GENERATOR FOR MMI 3G VIM login-code generator for MMI 3G. Instructions: Select control module 5F in VAG-COM/VCDS. Select "Advanced ID - 1A". Submit the value from the "Serial number" field in the form below. If there's more than one serial number, use the first one! Select "Security Access - TIPS & TRICKS FOR THE PC ENGINES APU Use max. cpufreq. Ubuntu will always set the CPU governor to ondemand during boot. # cat /proc/cpuinfo vendor_id : AuthenticAMD model name : AMD G-T40E Processor cpu MHz : 800.000. For the APU this means the CPU will be run at 800 MHz instead of 1 GHz. If you prefer the CPU to run at full speed at all times: # wget -O /usr/local/sbin https HOW TO SET UP A TRANSPARENT VPN INTERNET GATEWAY TUNNEL The transparent VPN gateway tunnel can be used in several ways: Set the router/gateway address and DNS resolver addresses in a client to the existing LAN router and all traffic will be sent unencrypted (unless TLS/SSL is involved) to your ISP. This is the default in mosthome LANs.
ENABLE VIM TV-PLAYBACK USING VCDS/VAG-COM IN YOUR AUDI MMI Fortunately, the VIM unlock login-code generation algorithm is the same for the MMI 2G and 3G (at least as of July 2009), so yes, using the generated login-code you can enable TV/DVD-playback at all vehicle speeds for the MMI 3G as well! Depending on the MMI system generation you want to VIM-enable, click one of the following links to get to PC ENGINES APU1 VS APU2 UNIXBENCH BENCHMARK PC Engines APU1 vs APU2 UnixBench benchmark. Here’s a UnixBench performance comparison between PC Engines APU1 vs the brand new APU2. Both system boards are equipped with 4 GB of RAM and a 16 GB mSATA SSD. While the APU1 sports a dual core AMD G series T40E CPU, the APU2 comes with a AMD G series GX-412TC quad core CPU. KINDLE FIRE REBOOT LOOP PROBLEM Unplug the Kindle Fire from the USB charger cable. Press and hold the power button (it should not turn on because the battery has run dry) While still holding the power button, plug the USB charger cable in (it should not turn on yet) Wait for at least 40 seconds while still holding the power button. Once the kindle powers on, immediately let SPEED UP MYSQL WITH A RAM DISK IN UBUNTU SERVER If you have some RAM to spare and want to speed up MySQL a little, you can create a RAM disk for MySQL’s temporary disk tables. In Ubuntu Server, the MySQL process is being watched by AppArmor which prevents us from using a custom tmpdir unless the AppArmor configuration is changed accordingly. This post shows how to to it. HOW TO MIGRATE A LVM-BASED KVM GUEST TO ANOTHER HOST In the past, I have been using the immensely useful virt-backup.pl script to migrate a LVM-based (raw volume) Linux KVM guest from one host to another. However, there is an even easier way to cold-migrate a KVM guest. This approach is particularly helpful if there’s not enough disk space on the host to create a gzipped backup of the logical volume using the virt-backup.pl script. SHOW ROUTING TABLE IN MAC OS X Jan November 19, 2011. August 18, 2015. Here’s a quick one. The route command won’t show you the full routing table in Mac OS X. You have to use the netstat command: netstat -rn. This will print the numeric view. If you prefer host names, omit the n parameter: netstat-r.
TRICK77.COM
Interestingly, my 6 year old Hackintosh rig is still going strong and so I decided to upgrade it from macOS X Mojave to macOS 11 Big Sur. Since OpenCore is pretty well documented by now, I wanted to give it a try and replace Clover (which seems to use OpenCore as well by now). However, the transition from Clover to OpenCore wasn’t smooth atall.
VIM LOGIN-CODE GENERATOR FOR MMI 2G VIM login-code generator for MMI 2G. Instructions: Select control module 07 in VAG-COM/VCDS. Select "Advanced ID - 1A". Submit the value from the "Serial number" field in the form below. If there is more than one serial number field, use the first one! "Security Access - PC ENGINES APU1 VS APU2 UNIXBENCH BENCHMARK PC Engines APU1 vs APU2 UnixBench benchmark. Here’s a UnixBench performance comparison between PC Engines APU1 vs the brand new APU2. Both system boards are equipped with 4 GB of RAM and a 16 GB mSATA SSD. While the APU1 sports a dual core AMD G series T40E CPU, the APU2 comes with a AMD G series GX-412TC quad core CPU. MMI VIM LOGIN-CODE GENERATOR WINDOWS APPLICATION Due to popular demand there’s a MMI 2G/3G VIM login-code generator application available in the download area.Windows-only. And you need .NET Framework 3.5 in order to run it. INSTALLING UBUNTU SERVER 16.04 ON PC ENGINES APU OR APU2 Most people use PC Engines APU series (APU1D4, APU2C4) system boards for pfSense firewalls (pfSense is awesome!). However, the Ubuntu Server x86-64 version runs on these boards very well too which can turn them into a lightweight, portable Plex Media Server for instance. The APU series doesn’t have a video port, that’s why the Ubuntu Server 16.04 image requires some modifications in UNLOCKING THE MMI 3G HIDDEN MENU Hi, I have activated hidden menu on may car to activate this battery level menu point on MMI. After I have done it I lost clock from MMI screen there –:– just shown instead of time and in MMI menu “Time” I can only adjust date and time formats. PREVENT SSL REDIRECT LOOP USING WORDPRESS AND HAPROXY Prevent SSL redirect loop using WordPress and HAProxy. This is a first post in a series on how to use HAProxy in front of WordPress. I’m using HAProxy to offload SSL connections to a WordPress site. The site itself runs on an internal IP address on port 80 while HAProxy listens on incoming connections on *:80 and *:443. HOW TO USE IPV6 ON QUICKLINE/WWZ AND PFSENSE Here’s how to configure your pfSense firewall for IPv6 on Quickline/WWZ. The settings may work with other ISPs too but YMMV. I’m assuming your modem is already in bridge mode and pfSense is up and running for IPv4 DHCP on the WAN interface. HOW TO RENAME AN OS X FUSION DRIVE Since OS X Yosemite, the CoreStorage service allows you to rename the logical volume name of a Fusion Drive if you wish to do so. sudo diskutil cs rename "Macintosh HD" "Fusion Drive". The Fusion Drive now shows up as “Fusion Drive” instead of “Macintosh HD” which was the name I’ve chosen initially. The OS X main volume is still named COULD NOT LOAD HOST KEY: /ETC/SSH/SSH_HOST Recent Comments. Jan on GA-Z97X-UD5H and macOS 11 Big Sur with OpenCore; John on GA-Z97X-UD5H and macOS 11 Big Sur with OpenCore; Bw on GA-Z97X-UD5H and macOS 11 Big Sur with OpenCore; Ben on GA-Z97X-UD5H and macOS 11 Big Sur with OpenCore; Simon on How to use IPv6 on Quickline/WWZ and pfSense firewall; Jan on GA-Z97X-UD5H and macOS 11 Big Sur with OpenCore;TRICK77.COM
Interestingly, my 6 year old Hackintosh rig is still going strong and so I decided to upgrade it from macOS X Mojave to macOS 11 Big Sur. Since OpenCore is pretty well documented by now, I wanted to give it a try and replace Clover (which seems to use OpenCore as well by now). However, the transition from Clover to OpenCore wasn’t smooth atall.
VIM LOGIN-CODE GENERATOR FOR MMI 3G VIM login-code generator for MMI 3G. Instructions: Select control module 5F in VAG-COM/VCDS. Select "Advanced ID - 1A". Submit the value from the "Serial number" field in the form below. If there's more than one serial number, use the first one! Select "Security Access - TIPS & TRICKS FOR THE PC ENGINES APU Use max. cpufreq. Ubuntu will always set the CPU governor to ondemand during boot. # cat /proc/cpuinfo vendor_id : AuthenticAMD model name : AMD G-T40E Processor cpu MHz : 800.000. For the APU this means the CPU will be run at 800 MHz instead of 1 GHz. If you prefer the CPU to run at full speed at all times: # wget -O /usr/local/sbin https MMI VIM LOGIN-CODE GENERATOR WINDOWS APPLICATION Due to popular demand there’s a MMI 2G/3G VIM login-code generator application available in the download area.Windows-only. And you need .NET Framework 3.5 in order to run it. HOW TO SET UP A TRANSPARENT VPN INTERNET GATEWAY TUNNELFREE GATEWAY VPNFREE GATEWAY VPNLINUX VPN GATEWAY The transparent VPN gateway tunnel can be used in several ways: Set the router/gateway address and DNS resolver addresses in a client to the existing LAN router and all traffic will be sent unencrypted (unless TLS/SSL is involved) to your ISP. This is the default in mosthome LANs.
ENABLE VIM TV-PLAYBACK USING VCDS/VAG-COM IN YOUR AUDI MMI Fortunately, the VIM unlock login-code generation algorithm is the same for the MMI 2G and 3G (at least as of July 2009), so yes, using the generated login-code you can enable TV/DVD-playback at all vehicle speeds for the MMI 3G as well! Depending on the MMI system generation you want to VIM-enable, click one of the following links to get to PREVENT SSL REDIRECT LOOP USING WORDPRESS AND HAPROXY Prevent SSL redirect loop using WordPress and HAProxy. This is a first post in a series on how to use HAProxy in front of WordPress. I’m using HAProxy to offload SSL connections to a WordPress site. The site itself runs on an internal IP address on port 80 while HAProxy listens on incoming connections on *:80 and *:443. SPEED UP MYSQL WITH A RAM DISK IN UBUNTU SERVER If you have some RAM to spare and want to speed up MySQL a little, you can create a RAM disk for MySQL’s temporary disk tables. In Ubuntu Server, the MySQL process is being watched by AppArmor which prevents us from using a custom tmpdir unless the AppArmor configuration is changed accordingly. This post shows how to to it. KINDLE FIRE REBOOT LOOP PROBLEM Unplug the Kindle Fire from the USB charger cable. Press and hold the power button (it should not turn on because the battery has run dry) While still holding the power button, plug the USB charger cable in (it should not turn on yet) Wait for at least 40 seconds while still holding the power button. Once the kindle powers on, immediately let COULD NOT LOAD HOST KEY: /ETC/SSH/SSH_HOST Recent Comments. Jan on GA-Z97X-UD5H and macOS 11 Big Sur with OpenCore; John on GA-Z97X-UD5H and macOS 11 Big Sur with OpenCore; Bw on GA-Z97X-UD5H and macOS 11 Big Sur with OpenCore; Ben on GA-Z97X-UD5H and macOS 11 Big Sur with OpenCore; Simon on How to use IPv6 on Quickline/WWZ and pfSense firewall; Jan on GA-Z97X-UD5H and macOS 11 Big Sur with OpenCore;TRICK77.COM
Interestingly, my 6 year old Hackintosh rig is still going strong and so I decided to upgrade it from macOS X Mojave to macOS 11 Big Sur. Since OpenCore is pretty well documented by now, I wanted to give it a try and replace Clover (which seems to use OpenCore as well by now). However, the transition from Clover to OpenCore wasn’t smooth atall.
VIM LOGIN-CODE GENERATOR FOR MMI 3G VIM login-code generator for MMI 3G. Instructions: Select control module 5F in VAG-COM/VCDS. Select "Advanced ID - 1A". Submit the value from the "Serial number" field in the form below. If there's more than one serial number, use the first one! Select "Security Access - TIPS & TRICKS FOR THE PC ENGINES APU Use max. cpufreq. Ubuntu will always set the CPU governor to ondemand during boot. # cat /proc/cpuinfo vendor_id : AuthenticAMD model name : AMD G-T40E Processor cpu MHz : 800.000. For the APU this means the CPU will be run at 800 MHz instead of 1 GHz. If you prefer the CPU to run at full speed at all times: # wget -O /usr/local/sbin https MMI VIM LOGIN-CODE GENERATOR WINDOWS APPLICATION Due to popular demand there’s a MMI 2G/3G VIM login-code generator application available in the download area.Windows-only. And you need .NET Framework 3.5 in order to run it. HOW TO SET UP A TRANSPARENT VPN INTERNET GATEWAY TUNNELFREE GATEWAY VPNFREE GATEWAY VPNLINUX VPN GATEWAY The transparent VPN gateway tunnel can be used in several ways: Set the router/gateway address and DNS resolver addresses in a client to the existing LAN router and all traffic will be sent unencrypted (unless TLS/SSL is involved) to your ISP. This is the default in mosthome LANs.
ENABLE VIM TV-PLAYBACK USING VCDS/VAG-COM IN YOUR AUDI MMI Fortunately, the VIM unlock login-code generation algorithm is the same for the MMI 2G and 3G (at least as of July 2009), so yes, using the generated login-code you can enable TV/DVD-playback at all vehicle speeds for the MMI 3G as well! Depending on the MMI system generation you want to VIM-enable, click one of the following links to get to PREVENT SSL REDIRECT LOOP USING WORDPRESS AND HAPROXY Prevent SSL redirect loop using WordPress and HAProxy. This is a first post in a series on how to use HAProxy in front of WordPress. I’m using HAProxy to offload SSL connections to a WordPress site. The site itself runs on an internal IP address on port 80 while HAProxy listens on incoming connections on *:80 and *:443. SPEED UP MYSQL WITH A RAM DISK IN UBUNTU SERVER If you have some RAM to spare and want to speed up MySQL a little, you can create a RAM disk for MySQL’s temporary disk tables. In Ubuntu Server, the MySQL process is being watched by AppArmor which prevents us from using a custom tmpdir unless the AppArmor configuration is changed accordingly. This post shows how to to it. KINDLE FIRE REBOOT LOOP PROBLEM Unplug the Kindle Fire from the USB charger cable. Press and hold the power button (it should not turn on because the battery has run dry) While still holding the power button, plug the USB charger cable in (it should not turn on yet) Wait for at least 40 seconds while still holding the power button. Once the kindle powers on, immediately let COULD NOT LOAD HOST KEY: /ETC/SSH/SSH_HOST Recent Comments. Jan on GA-Z97X-UD5H and macOS 11 Big Sur with OpenCore; John on GA-Z97X-UD5H and macOS 11 Big Sur with OpenCore; Bw on GA-Z97X-UD5H and macOS 11 Big Sur with OpenCore; Ben on GA-Z97X-UD5H and macOS 11 Big Sur with OpenCore; Simon on How to use IPv6 on Quickline/WWZ and pfSense firewall; Jan on GA-Z97X-UD5H and macOS 11 Big Sur with OpenCore;TRICK77.COM
Interestingly, my 6 year old Hackintosh rig is still going strong and so I decided to upgrade it from macOS X Mojave to macOS 11 Big Sur. Since OpenCore is pretty well documented by now, I wanted to give it a try and replace Clover (which seems to use OpenCore as well by now). However, the transition from Clover to OpenCore wasn’t smooth atall.
DOWNLOADS – TRICK77.COM Downloads. Latest call-center numbers blacklist for Switzerland. See here for details. wget 1.9.1 binary for Mac OS X. Iodine 0.6.0 RC1 DNS tunnel Mac OS X binaries. See here for details. Gmail-Backup installation package for QNAP NAS. See here for details. NASwake MacOS X
MMI VIM LOGIN-CODE GENERATOR WINDOWS APPLICATION Due to popular demand there’s a MMI 2G/3G VIM login-code generator application available in the download area.Windows-only. And you need .NET Framework 3.5 in order to run it. PC ENGINES APU1 VS APU2 UNIXBENCH BENCHMARK PC Engines APU1 vs APU2 UnixBench benchmark. Here’s a UnixBench performance comparison between PC Engines APU1 vs the brand new APU2. Both system boards are equipped with 4 GB of RAM and a 16 GB mSATA SSD. While the APU1 sports a dual core AMD G series T40E CPU, the APU2 comes with a AMD G series GX-412TC quad core CPU. INSTALLING UBUNTU SERVER 16.04 ON PC ENGINES APU OR APU2 Most people use PC Engines APU series (APU1D4, APU2C4) system boards for pfSense firewalls (pfSense is awesome!). However, the Ubuntu Server x86-64 version runs on these boards very well too which can turn them into a lightweight, portable Plex Media Server for instance. The APU series doesn’t have a video port, that’s why the Ubuntu Server 16.04 image requires some modifications in HOW TO USE IPV6 ON QUICKLINE/WWZ AND PFSENSE Here’s how to configure your pfSense firewall for IPv6 on Quickline/WWZ. The settings may work with other ISPs too but YMMV. I’m assuming your modem is already in bridge mode and pfSense is up and running for IPv4 DHCP on the WAN interface. HOW TO RENAME AN OS X FUSION DRIVE Since OS X Yosemite, the CoreStorage service allows you to rename the logical volume name of a Fusion Drive if you wish to do so. sudo diskutil cs rename "Macintosh HD" "Fusion Drive". The Fusion Drive now shows up as “Fusion Drive” instead of “Macintosh HD” which was the name I’ve chosen initially. The OS X main volume is still named SETTING UP A HUAWEI E3276-150 4G/LTE USB MODEM ON UBUNTU I just received an unlocked Huawei E3276s-150 4G/LTE USB modem/surfstick I bought on eBay the other day. I went for the E3276s-150 because the 150 seemed to be the most compatible option for European 4G mobile networks. SHOW ROUTING TABLE IN MAC OS X Jan November 19, 2011. August 18, 2015. Here’s a quick one. The route command won’t show you the full routing table in Mac OS X. You have to use the netstat command: netstat -rn. This will print the numeric view. If you prefer host names, omit the n parameter: netstat-r.
COULD NOT LOAD HOST KEY: /ETC/SSH/SSH_HOST Recent Comments. Jan on GA-Z97X-UD5H and macOS 11 Big Sur with OpenCore; John on GA-Z97X-UD5H and macOS 11 Big Sur with OpenCore; Bw on GA-Z97X-UD5H and macOS 11 Big Sur with OpenCore; Ben on GA-Z97X-UD5H and macOS 11 Big Sur with OpenCore; Simon on How to use IPv6 on Quickline/WWZ and pfSense firewall; Jan on GA-Z97X-UD5H and macOS 11 Big Sur with OpenCore; …GADGETEERS AT WORKSkip to content
* __ Home
* __ About
Navigation Home About THE BEST CLOUD DESKTOP SOLUTION FOR LINUX IS… WINDOWS!? Posted on December 22, 2019by Jan
I like using a remote desktop work/office environment for various reasons, travelling being on of them. This is also known as a cloud desktop. Thanks to the awesome Apache Guacamole remote desktop gateway software, I can access it everywhere, just by using a web browser (and an Internetconnection).
While I love Linux, it sucks when it comes to running a remote desktop server using non-commercial software. Yes, I’ve tried xrdp. While it works, the graphics performance/latency sucks even though I was using the low resource environment xfce4. Obviously there is commercial remote desktop server software like RealVNC or NoMachine but I don’t want to shell out cash for my cloud desktop and in the case of NoMachine, its proprietary NX protocol isn’t supported by Guacamole. However, I have an unused Windows Server 2019 educational license which I can use for my cloud desktop. It uses the RDP protocol which is fully supported by Guacamole. I realise that a Windows Server installation is pretty much overkill for just a cloud desktop but hey… it’s free (in my case). Windows 10 Pro contains an RDP server as well but I haven’t tried it. The biggest challenge was to find the right parameters for virt-install to install a Windows server on my Linux KVM host. Here’s what I came up with:#!/bin/sh
NAME=desktop
RAM=4096
CPU=2
IMAGE=win-server-2019.iso VIRTIO_IMAGE=virtio-win.isoSIZE=50G
VNC_PORT=56681
VARIANT=win2k16
VG=vg0
MAC=02:00:00:d1:78:d9 lvcreate -L $SIZE -n lv_vm_$NAME $VG virt-install --connect qemu:///system --arch=x86_64 -n $NAME -r $RAM --vcpus=$CPU \--mac=$MAC \
--cdrom /var/lib/libvirt/images/$IMAGE \ --disk path=/dev/$VG/lv_vm_$NAME,bus=virtio \ --disk path=/var/lib/libvirt/images/$VIRTIO_IMAGE,device=cdrom \ --graphics vnc,listen=127.0.0.1,port=$VNC_PORT \--noautoconsole \
--os-type windows \ --os-variant=$VARIANT \ --network=bridge:br0,model=virtio \--accelerate \
--noapic
In my case, the network bridge br0 from the Linux KVM host is exposed to the guest KVM. I’m using LVM for storage. Once the KVM is up, I’m using a VNC client to complete the Windows installation. Since the VNC port isn’t exposed to the internet (deliberately), I’m using ssh port forwarding to access it to complete the installation. Something like: ssh myhost -L56681:127.0.0.1:56681 Since Windows won’t find the required disk drivers, I’m attaching the Windows virtio driver .iso as a CD-ROM. Look for the viostor drivers during the installation process and the logical volume will finally show up in the installer. Once the installation is complete, I’m using VNC again to update the missing Ethernet drivers in the Device Manager, configure the network and that’s pretty much it. It’s not recommended to expose the Windows remote desktop server to the Internet. Port 3389 gets brute-force attacked 24/7. I could use the same SSH port forwarding approach shown above to access my cloud desktop by forwarding port 3389 and/or firewall the RDP port so only my Guacamole server is able to access it. Posted in Uncategorized Tagged guacamole linuxrdp
Leave a comment
HOW TO USE IPV6 ON QUICKLINE/WWZ AND PFSENSE FIREWALL Posted on October 20, 2019by Jan
Here’s how to configure your pfSense firewall for IPv6 on Quickline/WWZ. The settings may work with other ISPs too but YMMV. I’m assuming your modem is already in bridge mode and pfSense is up and running for IPv4 DHCP on the WAN interface. ACTIVATE IPV6 AND DHCP6 IN THE ROUTER We’re configuring pfSense to use DHCP6 on the WAN interface to get an IPv6 prefix from the ISP. In System → Advanced → Networking: * Activate _Allow IPv6_ In Interfaces → WAN → General Configuration: * IPv6 Configuration Type: DHCP6 In Interfaces → WAN → DHCP6 Client Configuration: * Activate _Request only an IPv6 prefix_ * DHCPv6 Prefix Delegation size (according to Quickline, ask your ISPwhen in doubt):
* 56 for cable modems (HF + FTTH)* 64 for FTTH
* Optional but helps if something doesn’t work: _Start DHCP6 clientin debug mode_
* Activate_ Do not wait for RA_ * Optional: _Activate Do not allow PD/Address release_ * May help keeping your assigned IPv6 prefix if you prefer it to bestatic
In Interfaces → LAN → General Configuration: * IPv6 Configuration Type: Track Interface In Interfaces → LAN → Track IPv6 Interface: * IPv6 Interface: WAN In Services → DHCPv6 Server & RA → Router Advertisments: * Router mode: Unmanaged * Router priority: High You could opt to activate pfSense’s DHCPv6 server on the LAN interface and hand out a range of available IPv6 addresses from your prefix but I have no need for a DHCPv6 server on the LAN interface. Instead, I’m making the IPv6 prefix available to the LAN clients to autoconfigure themselves for IPv6. Watch out for blocked DHCPv6 connections if you enable pfSense’s DHCPv6 server and assisted/managed RA in combination with Bogon filtering. VERY IMPORTANT FINAL STEP: reboot pfSense. I was getting error messages like _transmit failed: Can’t assign requested address_ which where gone after a reboot.IS IT WORKING?
Go to Status → Gateways. If pfSense was able to get an IPv6 prefix from your ISP, the WAN_DHCP6 gateway (or whatever the name you chose for the WAN interface) shold show status _Online_. If it’s always in state _Pending_ then something went wrong (see _Debugging_ below). Use a web browser in a LAN client (check if it was assigned an IPv6, reboot when in doubt) to check if IPv6 is available and go to https://ipv6test.google.com.OPTIMIZATION
While IPv6 has been around for quite a while, most ISP and network providers still optimize routing for IPv4 (=have more IPv4 peers than IPv6 BGP peers). That’s why you might get better/faster connections when giving IPv4 precedence over IPv6 (the default is to always preferIPv6).
That’s why I’m instructing pfSense to prefer IPv4 over IPv6 if both are available in a DNS response in System → Advanced → Networking → IPv6 Options: _Activate Prefer IPv4 over IPv6._ Obviously, this setting needs to be configured in every client on your LAN (if the device supports it) since it’s based on how a DNS response is interpreted. For Linux based clients have a look at/etc/gai.conf
DEBUGGING
If debug logging is enabled for the DHCP6 client you might find helpful debugging information in Status → System Logs → DHCP. You can use the _Advanced Log Filter_ to search for dhcp6 messages in thelog.
Do LAN clients get a public IPv6 but the IPv6 browser check still fails? Check the firewall rules for blocked IPv6 traffic. Posted in Uncategorized Tagged ipv6 pfsense1 Comment
AUTO-RESTART CRASHED MINING PROCESSES IN ETHOS 1.2.9 Posted on January 13, 2018by Jan
ethOS
1.2.9 brings a few changes which break my auto-restart script for ethOS 1.2.7. Since 1.2.9 contains improved GPU crash detection, I rewrote the restart script to use the built-in detection mechanisms. For the required cron job please see my initial post which isavailable here
.
As long as the DRY_RUN variable is set to false, the script won’t take any action, it just logs what it would do.#!/bin/bash
#
# Minimalistic auto-reboot script for ethOS 1.2.9 - 1.3.1 # https://trick77.com/auto-restart-crashed-mining-processes-ethos#
# This script will automatically reboot the mining rig depending onthe reported
# mining status in ethOS. # - The script should be triggered every 15 minutes from a cron job. Do not run it in shorter intervals. # - May or may not work with other ethOS versions than indicatedabove.
#
# This script should only be used in more or less stable rigs. Do not use it on rigs that aren't properly# fine tuned.
#
DRY_RUN=true # set this to false to enable auto-restart/reboot LOG_FILE=/home/ethos/rigcheck.logif
then echo "Please run as root or, if calling it from a console,use sudo $0"
exit
fi
if ; then
echo "$(date) $0 running in DRY_RUN mode, auto-reboot not enabled!" | tee -a ${LOG_FILE}fi
ALLOW=$(cat /opt/ethos/etc/allow.file)if ; then
echo "$(date) Miner not enabled, exiting $0..." | tee -a${LOG_FILE}
exit 0
fi
if grep -q "gpu clock problem" /var/run/ethos/status.file; then CRASHED=$(cat /var/run/ethos/crashed_gpus.file) echo "$(date) GPU clock problem detected on GPU(s) ${CRASHED}, rebooting..." | tee -a ${LOG_FILE}if ; then
rm -f /var/run/ethos/crashed_gpus.file/opt/ethos/bin/r
fi
elif grep -q "gpu crashed" /var/run/ethos/status.file; then echo "$(date) GPU crash detected, rebooting..." | tee -a${LOG_FILE}
if ; then
rm -f /var/run/ethos/crashed_gpus.file/opt/ethos/bin/r
fi
else
echo "Everything's fine, exiting..."fi
view raw
rigcheck.sh
hosted with by GitHub View the code on Gist.
Posted in BlockchainCommand-Line-Fu
Tagged crypto-miningetherium
48 Comments
AUTO-RESTART CRASHED MINING PROCESSES IN ETHOS 1.2.7 Posted on December 26, 2017by Jan
I
have been running a crypto-currency mining rig on the Linux based ethOS distro for quite some time now. While I realize that ethOS is problematic license-wise, it’s still a great distro to get a mining rig up and running in almost no time. The Nvidia GPUs in my rig are well tuned to operate at their optimum cost/hashrate ratio. However, due to bugs in the miner and/or the GPU drivers, every few days one of the GPUs stops mining. Sometimes ethOS is able to recover the GPU and gets it back to mining but sometimes it doesn’t seem to detect the crashed/hanging mining process at all. This is why I added a cron job that runs every 15 minutes and checks if all GPUs are still mining. If not, the miners will be re started using the minestop and minestart commands provided by ethOS. The cron job starts the Bash script below. If it detects a problem, it writes to the console and additionally to /tmp/rigcheck.log. It’s been running smoothly on my ethOS v1.2.7 mining rig. I recommend putting it in /home/ethos/rigcheck.sh and don’t forget to add execute permissions using chmod +x /home/ethos/rigcheck.sh#!/bin/bash
LOG_FILE=/tmp/rigcheck.log if grep -qv active /var/run/ethos/status.file; then echo "$(date) Mining not active or currently starting, exiting..." | tee -a ${LOG_FILE}exit 0
fi
NUM_PROC=`ps uax| egrep "ccminer|cgminer-skein|claymore|dstm-zcash|ethminer|ethminer-amd|ewbf-zcash|sgminer-gm|silentarmy|optiminer-zcash" | grep -v "curl" | grep -v "update-miner" | grep -v grep | awk '{print$2}' | wc -l`
NUM_GPU=`cat /var/run/ethos/gpulist.raw | wc -l`NEEDS_RESTART=false
if ; then
echo "$(date) Number of GPU (${NUM_GPU}) differs from number of mining processes (${NUM_PROC})!" | tee -a ${LOG_FILE}NEEDS_RESTART=true
fi
AGE_IN_MINUTES=3
for (( i = 0; i < ${NUM_GPU}; i++ ))do
FILENAME=/var/run/miner.$i.output IS_OLD=$(( (`date +%s` - `stat -L --format %Y ${FILENAME}`) > (${AGE_IN_MINUTES}*60) ))if ; then
NEEDS_RESTART=true
echo "$(date) Mining process log ${FILENAME} is older than ${AGE_IN_MINUTES} minutes!" | tee -a ${LOG_FILE}fi
done
if ; then
echo "$(date) Mining process crash detected, restarting mining processes..." | tee -a ${LOG_FILE} /opt/ethos/bin/minestopsleep 5
/opt/ethos/bin/minestart echo "$(date) Done restarting mining processes!" | tee -a${LOG_FILE}
fi
view raw
rigcheck.sh
hosted with by GitHub View the code on Gist.
The cron job can be created like this: cat << EOF | sudo tee /etc/cron.d/rigcheck PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/binMAILTO=root
*/15 * * * * root /home/ethos/rigcheck.shEOF
Thanks to this script, crashed or hanging miners will be restarted fairly quickly and my rig’s pool-reported hashrate stopped droppingin such situations.
Posted in BlockchainCommand-Line-Fu
Development
Tagged crypto-mining14 Comments
HOW TO DISPLAY CRYPTO CURRENCY RATES ON MACOS MENU BAR Posted on September 24, 2017by
Jan
BitBar
has been around for a while but I didn’t notice it until I wanted to display crypto currency rates (who ISN’T into crypto these days :)) on my macOS menu bar. BitBar is as simple as it can get: it takes the output from a shell script and displays the result on the menu bar. What’s really cool about BitBar is the support for Base64 encoded images which get displayed as icons on themenu bar.
This is how my “crypto menu bar” looks like: I just put all my BitBar shell scripts into ~/bitbar and that’s it. Here are BitBar shell scripts for Monero, Ether and Bitcoin (against the €). Since the icons are just 16×16 they probably look crappy on a retina display and have to be replaced with larger icons.#!/bin/sh
moneroIconBase64='iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAAlwSFlzAAALEwAACxMBAJqcGAAAActpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDUuNC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIgogICAgICAgICAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyI+CiAgICAgICAgIDx4bXA6Q3JlYXRvclRvb2w+QWRvYmUgSW1hZ2VSZWFkeTwveG1wOkNyZWF0b3JUb29sPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KKS7NPQAAAWhJREFUOBGFk9sqRVEUhpfDlXgGV65cEUoewYt4ARcUIqFcuCCnh5GQYzldCC9AKSSS7fh9a82xWu3IX98e4x9zjjnXmnPtLCvUmKKhD5bhFF4S58Q1cCxU9kTSxMg6fP/DKuPOVdGbNWA2wOYPqKX4RZSofZI7ZxOaodQSWewcTeEj1td9pVxd/DppGyZS7k42VJtj9ynqW2msh5jF7jsaNAk2+tixq7m1aVDO1a9ojpPZ1yTFIu94z8PJc2nMcADWTjRPycQCHqiaASfJPKg49Vjg2ZP0MasawlzDKLSCVzYMg9AOfiMhF88uwORKg2ZB36lJ6iZa89WUG+gvfYIxGACL6rEI2S6xH1rAG1K+rlqADtjT1GucgqvLHTxU/Aj5r/J97+EIbsFmbyAWivyG2iG4qBuV8jG9hWiokfvhVHmrjHsLbZArrkbjCccif8XFvKv4KXvj32W5F/zCzuA1EX9nx0J5zw+DoJOsVTgttgAAAABJRU5ErkJggg=='xmrLast=$(curl -s
"https://api.kraken.com/0/public/Ticker?pair=XMREUR" | tr -d '{}"' | tr ':,' '\n' | grep -A1 "^c$" | tail -1) printf "%.*f | image=%s\n" 2 "$xmrLast" "$moneroIconBase64"view raw
monero.3m.sh
hosted with by GitHub View the code on Gist.
#!/bin/sh
ethIconBase64='iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAAlwSFlzAAALEwAACxMBAJqcGAAAAVlpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDUuNC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KTMInWQAAAgRJREFUOBFdU71KA0EQvtu7PbmQCDGx0VgpWAQUCUTSXaONaHc+gY1PYGORB7Cz0FPsLGx9AQXfwYBFQPAZJL936/ets0d0YG/mvpnZ+V3PA3U6HU1OiuN4HyzzfX8APsIZi5zFse7i31LpUwqAtdb3YEYp38DJ/MpKeIllaZpGvCVNvcCnQAqC4DXP8wSOOX6nxphY6+BpNssVsFNgI2CRUiooiuI1SZJDnIK+ZWQYjnAIIgs1B2+ura1sQHYYOW0MAjLbsmamPKcC0BQO5BfUC10GgcWmtKEtcIN+2Z5kUvMU4Fyc39kb159erxdD97Hg7IJkHsABFeLM+k2tVjsGJ4VJ0q5SqFSWThgIIoNYO8iclDfBYc0zckzikSAoQgYVcCWc2KNkOJNs6OtNBMwJojnPwA6o+EdHomMPcslmwhENMRaWYkeCUa6iObtwvm42m9uNxjIblVWr8SZ1sOO9cDH0GfLnTxOl22etVmsdEe+gv2q32yvI8hwObgKuibdYXd2lAoZsDrMomF69Xt+BbElrb482wEVvd4T9smOkEbKwc+aSuH345Pi2trwlYF8LExjD3kSRfrC38yO7/cIoOBzRt1x4A25LFMyOLwzDN7cj5UvEXoeynhwpS+JlTNvKDmNk54ze2EdlX1W/31dw4nO2XYfIBeNzZllcmNvFmsXZ/wFsgsQMN51TZwAAAABJRU5ErkJggg=='ethLast=$(curl -s
"https://api.kraken.com/0/public/Ticker?pair=ETHEUR" | tr -d '{}"' | tr ':,' '\n' | grep -A1 "^c$" | tail -1) printf "%.*f | image=%s\n" 2 "$ethLast" "$ethIconBase64"view raw
ether.3m.sh
hosted with by GitHub View the code on Gist.
#!/bin/sh
btcIconBase64='iVBORw0KGgoAAAANSUhEUgAAABIAAAASCAYAAABWzo5XAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3NpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDpmMDk3ZWJmYS0yODA4LTRkNDUtOTYxMC01YTkzNzU4YzY4YmEiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6REMzOTkzNzA0OEZGMTFFNkJCNTNCODBEODQ4N0M2NzgiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6REMzOTkzNkY0OEZGMTFFNkJCNTNCODBEODQ4N0M2NzgiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChNYWNpbnRvc2gpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6NDcyMGI2M2QtZjlmNS00MDlmLWE0NGMtYjExZTc3NTZmOWRjIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOmYwOTdlYmZhLTI4MDgtNGQ0NS05NjEwLTVhOTM3NThjNjhiYSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pokm66sAAAFeSURBVHjatJQ/SwNBEMXvQtRKI6KdFlaWQgqLFFG00EII4geQq2wtkvscdmqhBGxiYaGopBANVkkaSytBsbCIgmITxX9v5R2Mw6ymycDv7nZn9u3dzOyFgW3DYAHMgTEQgltwBqrgIejA8uAEfBl80pf/TyQWi55AGTyCLdBSorFPpKgCL0GGAj3g2njDohbJCuceWAZLYBDkGLMIjg2xbCIyAGrC4T5nXGwyBQpivK6EatQIIk9infWLcVWIvanYKO2pQJsl/wAvfK7Tt8KcSZtOs0+0uR2HWLEJzt3zPmnEj7rLqfFZz6CXHIALFiHZtKLincZPcn05yqi5Vc6vqfmylexXsM8FfeAINMA2x84OdbKt8lf+6HyXtw1f+XVD3oAm2OTh3QUpsGOU/VdDJlZSAVdghpXLcQMtUurk0DreeeLbhkjcld9I6BEbAfNgVvTOHTjnUWnpBd8CDAClYp90pzf2twAAAABJRU5ErkJggg=='btcLast=$(curl -s
"https://api.kraken.com/0/public/Ticker?pair=BTCEUR" | tr -d '{}"' | tr ':,' '\n' | grep -A1 "^c$" | tail -1) printf "%.*f | image=%s\n" 2 "$btcLast" "$btcIconBase64"view raw
btc.3m.sh
hosted with by GitHub View the code on Gist.
Posted in Blockchain Tagged bitcoin cryptoether
etherium
monero
GIGABYTE Z97X-UD5H AND USB 3.0 IN MACOS SIERRA 11.12 Posted on November 19, 2016by Jan
A
commenter recently asked if I had any USB 3.0 related issues with my Gigabyte Z97X-UD5H equipped Hackintosh. Since every USB port was working out of the box I thought everything was fine. However, having a closer look at the USB section in macOS Sierra’s System Information revealed that none of the USB 3.0 ports were operating at USB 3.0 speeds, they were all capped at 480 Mb/sec. Here’s how I was able to get USB 3.0 speed back:* Inspired by
https://github.com/RehabMan/OS-X-USB-Inject-All/blob/master/config_patches.plist I added the entire “Patches” section to my clover.plist. From the “KextsToPatch” section I only added the “Change 15 port limit to 20 in XHCI kext (9-series)” related to macOS 11.12 and removed thedisabled line.
* I
downloaded https://bitbucket.org/RehabMan/os-x-fake-pci-id/downloads and copied FakePCIID.kext and FakePCIID_XHCIMux.kext to Clovers kextdirectory.
* I made sure XHCI mode was set to “Smart Auto” and both, XHCI and EHCI hand-off were enabled in the BIOS. All front and back panel USB 3.0 ports are now reporting 3.0 speeds when connecting a 3.0 compatible device:JSM578:
Product ID: 0x0578 Vendor ID: 0x152d (JMicron Technology Corp.) Version: 2.03 Serial Number: DB123456789B Speed: Up to 5 Gb/sec Manufacturer: JMicron Location ID: 0x14f00000 / 20 Current Available (mA): 900 Current Required (mA): 896 Extra Operating Current (mA): 396 Major kudos to RehabMan for providing these easy-to-use injectorkexts!
Since injector kexts are not drivers and thus do not have to be signed, my Hackintosh still runs with maximum system integrityprotection (SIP):
Jans-Mac:~ jan$ csrutil status System Integrity Protection status: enabled. Posted in Hackintosh Tagged gigabyte hackintoshmacos
sierra
8 Comments
RANDOM DELAY FOR CRON.DAILY, CRON.WEEKLY, CRON.MONTHLY Posted on November 13, 2016by Jan
Wouldn’t
it be nice if cron’s DAILY, WEEKLY and MONTHLY jobs could be run with a slight offset? At least that’s what I thought when 20+ servers were hitting my backup infrastructure at once. The scripts in /etc/cron.daily, /etc/cron.weekly and /etc/cron.monthly are triggered directly from crontab at fixed times. Here’s what /etc/crontab looks like in Ubuntu Server 16.04: # /etc/crontab: system-wide crontab # Unlike any other crontab you don't have to run the `crontab' # command to install the new version when you edit this file # and files in /etc/cron.d. These files also have username fields, # that none of the other crontabs do.SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin # m h dom mon dow user command 17 * * * * root cd / && run-parts --report /etc/cron.hourly 25 6 * * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ) 47 6 * * 7 root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly ) 52 6 1 * * root test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )#
I’ve found several tips which suggested to use a RANDOM_DELAY variable in crontab. Unfortunately, this variable doesn’t seem to be implemented in Debian/Ubuntu’s version of crontab at this time. I even checked the source code, there’s no RANDOM_DELAY variable to befound.
Here’s the solution I came up with. I’m using a combination of sleep and numrandom with a time range between 0 and 30 minutes. # /etc/crontab: system-wide crontab # Unlike any other crontab you don't have to run the `crontab' # command to install the new version when you edit this file # and files in /etc/cron.d. These files also have username fields, # that none of the other crontabs do.SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin # m h dom mon dow user command 17 * * * * root cd / && run-parts --report /etc/cron.hourly 25 6 * * * root sleep `numrandom /0..30/`m ; test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ) 47 6 * * 7 root sleep `numrandom /0..30/`m ; test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.weekly ) 52 6 1 * * root sleep `numrandom /0..30/`m ; test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.monthly )#
In order to use the numrandom command, you have to apt-get -y installnum-utils it first.
I didn’t delay the cron.hourly execution but the same sleep/numrandom combo could be used for it as well, just maybe replace the m (minutes) with s (seconds). Posted in Command-Line-Fu Tagged debian linuxubuntu
HOW TO GENERATE DAILY POWERDNS STATISTICS REPORTS Posted on October 6, 2016by
Jan
PowerDNS
has been powering authoritative DNS lookups to this web site for quite a while now. It’s such a remarkable piece of software. Here’s how to create a daily statistics report for PowerDNS. * Put the lines below in /etc/cron.daily/powerdns-report:#!/bin/sh
/usr/bin/curl -s localhost:8081 | mail -s "$(echo "PowerDNS Daily Report\nMIME-Version: 1.0\nContent-Type: text/html")" root * Make sure the file is executable: chmod +x /etc/cron.daily/powerdns-report * Enable the internal web server (defaults to 127.0.0.1:8081) in the PowerDNS configuration file:webserver=yes
* Restart PowerDNS
* Make sure all Mails to root are forwarded to your e-mail account (or replace the recipient in the powerdns-report script) This is how the PowerDNS statistics report will look like:PowerDNS 4.1.0
Uptime: 3.94 days
Queries/second, 1, 5, 10 minute averages: 0.402, 0.212, 0.186. Max queries/second: 1.17 Cache hitrate, 1, 5, 10 minute averages: 45.0%, 33.4%, 30.9% Backend query cache hitrate, 1, 5, 10 minute averages: 55.1%, 41.7%, 38.3% Backend query load, 1, 5, 10 minute averages: 0.343, 0.317, 0.32. Max queries/second: 2.37 Total queries: 52665. Question/answer latency: 1.25msLog Messages
gmysql Connection successful. Connected to database 'pdns' on 'localhost'. 422 27.8% AXFR of domain 'nogo.com.' initiated by 231.91.120.148 70 4.6% AXFR of domain 'nogo.com.' failed: 231.91.120.148 cannot request AXFR 70 4.6% AXFR of domain 'nogo.com' denied: client IP 231.91.120.148 has no permission 70 4.6% Rest: 527 34.7% Total: 1519 100% Queries for existing records, but for type we don't have wopr.com./AAAA 2193 47.1% wopr.me./AAAA 503 10.8% drfalken.me./AAAA 482 10.4% mail.wopr.net./AAAA 281 6.0% wopr.net./AAAA 253 5.4% Rest: 685 14.7% Total: 4653 100% Queries for non-existent records within existent domains dn42-fr.wopr.me./A 359 24.9% _sip._udp.sbc.sipmly.com.wopr.net./SRV 335 23.2% _sip._udp.sip.ovh.fr.wopr.net./SRV 214 14.8% dn42-us.wopr.me./A 75 5.2% _adsp._domainkey.woprs.net./TXT 14 1.0% Rest: 290 20.1% Total: 1443 100% UDP Queries Received wopr.com./A 2307 23.1% wopr.net./A 2227 22.3% trick77.com./AAAA 702 7.0% wheniskeynote.com./AAAA 578 5.8% www.trick77.com./A 293 2.9% Rest: 3135 31.4% Total: 10000 100% Queries that could not be answered due to backend errors Total: 0 100% Queries for domains that we are not authoritative for nogo.com./SOA 190 84.4% cpsc.gov./ANY 16 7.1% dnsscan.shadowserver.org./A 4 1.8% ./ANY 3 1.3% cpsc.gov./A 2 0.9% defcon.org./ANY 2 0.9% ./NS 1 0.4% 4caa2d31.openresolvertest.net./A 1 0.4% c.afekv.com./A 1 0.4% doc.gov./ANY 1 0.4% Rest: 4 1.8% Total: 225 100% Remote server IP addresses 137.24.55.110 289 2.9% 164.8.230.15 108 1.1% 8.91.147.135 106 1.1% 8.91.150.198 103 1.0% 28.1.240.64 100 1.0% 163.19.151.12 87 0.9% 15.16.90.42 84 0.8% 141.28.51.41 73 0.7% 169.16.124.226 70 0.7% 164.891.213.199 63 0.6% Rest: 8917 89.2% Total: 10000 100% Remote hosts sending corrupt packets 219.116.116.12 1 50.0% 116.125.42.131 1 50.0% Total: 2 100% Remote hosts querying domains for which we are not auth 8.194.50.198 70 31.1% 8.194.47.135 68 30.2% 163.19.151.12 52 23.1% 185.59.233.131 15 6.7% 88.65.195.128 2 0.9% 64.32.96.66 2 0.9% 41.12.122.91 1 0.4% 45.20.24.195 1 0.4% 15.52.206.174 1 0.4% 89.146.222.158 1 0.4% Rest: 12 5.3% Total: 225 100%Variables
corrupt-packets 2 Number of corrupt packets received deferred-cache-inserts 1042 Amount of cache inserts that were deferred because of maintenance deferred-cache-lookup 250 Amount of cache lookups that were deferred because of maintenance dnsupdate-answers 0 DNS update packets successfully answered. dnsupdate-changes 0 DNS update changes to records in total. dnsupdate-queries 1 DNS update packets received. dnsupdate-refused 1 DNS update packets that are refused. incoming-notifications 0 NOTIFY packets received. packetcache-hit 16206 packetcache-miss 36486 packetcache-size 1252 query-cache-hit 52387 Number of hits on the query cache query-cache-miss 97378 Number of misses on the query cache rd-queries 212 Number of recursion desired questions recursing-answers 0 Number of recursive answers sent out recursing-questions 0 Number of questions sent to recursor recursion-unanswered 0 Number of packets unanswered by configured recursor security-status 0 Security status based on regular polling servfail-packets 0 Number of times a server-failed packet was sent out signatures 377 Number of DNSSEC signatures made tcp-answers 497 Number of answers sent out over TCP tcp-answers-bytes 434810 Total size of answers sent out over TCP tcp-queries 299 Number of TCP queries received tcp4-answers 485 Number of IPv4 answers sent out over TCP tcp4-answers-bytes 432435 Total size of answers sent out over TCPv4 tcp4-queries 287 Number of IPv4 TCP queries received tcp6-answers 12 Number of IPv6 answers sent out over TCP tcp6-answers-bytes 2375 Total size of answers sent out over TCPv6 tcp6-queries 12 Number of IPv6 TCP queries received timedout-packets 0 Number of packets which weren't answered within timeout set udp-answers 52665 Number of answers sent out over UDP udp-answers-bytes 4955023 Total size of answers sent out over UDP udp-do-queries 42490 Number of UDP queries received with DO bit udp-queries 52665 Number of UDP queries received udp4-answers 40096 Number of IPv4 answers sent out over UDP udp4-answers-bytes 3508260 Total size of answers sent out over UDPv4 udp4-queries 40096 Number of IPv4 UDP queries received udp6-answers 12569 Number of IPv6 answers sent out over UDP udp6-answers-bytes 1446763 Total size of answers sent out over UDPv6 udp6-queries 12569 Number of IPv6 UDP queries received key-cache-size 12 Number of entries in the key cache latency 1251 Average number of microseconds needed to answer a question meta-cache-size 61 Number of entries in the metadata cache qsize-q 0 Number of questions waiting for database attention real-memory-usage 56033280 Actual unique use of memory in bytes (approx) signature-cache-size 179 Number of entries in the signature cache sys-msec 37296 Number of msec spent in system time udp-in-errors 0 UDP 'in' errors udp-noport-errors 45 UDP 'noport' errors udp-recvbuf-errors 0 UDP 'recvbuf' errors udp-sndbuf-errors 0 UDP 'sndbuf' errors uptime 340341 Uptime of process in seconds user-msec 57664 Number of msec spent in user time 2013 - 2016 PowerDNS.COM BV. Posted in Command-Line-Fu Tagged linux powerdns2 Comments
HOW TO MIGRATE A LVM-BASED KVM GUEST TO ANOTHER HOST Posted on September 30, 2016by
Jan
In the past, I have been using the immensely usefulvirt-backup.pl
script to migrate a LVM-based (raw volume) Linux KVM guest from one host to another. However, there is an even easier way to cold-migrate a KVM guest. This approach is particularly helpful if there’s not enough disk space on the host to create a gzipped backup of the logical volume using the virt-backup.pl script. Here’s how it works: * Use lvcreate to create the new logical volume on the destination host with the same size as the source logical volume. Use the lvdisplay command to find out the required size. * virsh shutdown the source KVM guest * On the source host: screen dd if=/dev/vg_ssd/lv_vm_wopr | pv | ssh -C root@desthost dd of=/dev/vg0/lv_vm_wopr * Wait until finished I’m using the screen command so it will continue running in the background once I close the ssh session on the source host. Use CTRL-A-D to background a screen session and screen -dr to bring itback up.
Using ssh makes sure the entire transfer is encrypted. The -C parameter makes sure the content will be compressed which may speed up the transfer considerably (or not, on a slow CPU). Obviously, the new KVM guest has to be virsh define‘d on the destination based on the virsh dumpxml configuration data from the source host. Posted in Command-Line-FuTagged kvm
INTEL GIGABIT CT KEXT FOR MACOS SIERRA 10.12 Posted on September 21, 2016by Jan
The Intel
Gigabit CT Desktop
ethernet PCI
adapter is still one of the fastest and most robust NICs for the Hackintosh. This did not change with macOS Sierra 10.12. I’m still using the IONetworkingFamilyInjector.kext in Clover’s kext folder to override the compatibility list in Apple’s own Intel82574L.kext. However, while the installation of macOS Sierra went smoothly, I lost all network connectivity after installing Sierra. A quick look at the network kernel extensions revealed that Apple changed the driver identifier of the Intel82574L.kext, rendering the injector useless. After changing the identifier in the injector and a reboot, network connectivity was back again. The patched injector kext is available for download here: IONetworkingFamilyInjector.kext_.macos-sierra.zip.
The kext injector has to be placed into the EFI/CLOVER/kexts/10.12folder.
The Hackintosh is still running in full protected mode (if enabled inClover):
$ csrutil status
System Integrity Protection status: enabled. A PERMANENT SOLUTION? While writing this post, I stumbled upon an alternative solution, which seems to be permanent. However, it requires flashing the Intel NIC and changing it’s device ID property. Check out this post on InsanelyMac. I’m going to try this approach in the near future since it would reduce the number of kexts in my Hackintosh rig to just one (only FakeSMC). Posted in NetworkingTechnology
Tagged clover hackintoshmacos
12 Comments
INSTALLING UBUNTU SERVER 16.04 ON PC ENGINES APU OR APU2 Posted on August 27, 2016by Jan
Most people use PC Engines APU series (APU1D4, APU2C4) system boards for pfSense firewalls (pfSense is awesome!). However, the Ubuntu Server x86-64 version runs on these boards very well too which can turn them into a lightweight, portable Plex Media Server for instance. The APU series doesn’t have a video port, that’s why the Ubuntu Server 16.04 image requires some modifications in order to use the serial port for console output instead. Since the Ubuntu image is using a read-only CD-ROM filesystem, I’m using UNetbootin to create a bootable Live USB drive which lets me modify files. While UNetbootin is available on Linux and MacOS too, only the Windows version gave me consistent results after formatting the USB drive to FAT32 file format. YMMW, but if you get weird bootloader errors, try formatting/creating the bootable drive onWindows.
To access the APU’s serial port, a RS-232 DB9 null-modem to USB interface is required and some software to connect to it. I’m using a Prolific PL-2303 based interface and minicom on Linux or Serialwhen I’m on my
Mac.
Once the Live USB drive has been successfully prepared by UNetbootin, the following files have to be modified in order to send the console output over the serial port: In /isolinux/isolinux.cfg, insert the following lines at the top:serial 0 115200
console 0
In /isolinux/txt.cfg, the replace the first occurrence of the append keyword (in the “install” section) with: append file=/cdrom/preseed/ubuntu-server.seed vga=off initrd=/install/initrd.gz -- console=ttyS0,115200n8 - In /syslinux.cfg, insert the following lines at the top:serial 0 115200
console 0
Again in /syslinux.cfg, replace the first occurrence of the append keyword (in the “unetbootindefault” section) with: append initrd=/ubninit vga=off console=ttyS0,115200n8 -- Using the serial cable you should now be able to install Ubuntu Server16.04 on the APU:
During the installation: * Make sure the APU is connected to a router. While configuring the network, always keep in mind that the rightmost network port ist the first port (eth0 or enp1s0) * Make sure to include “OpenSSH server” when choosing softwareto install
Most likely, there won’t be any visible console output (i.e. a login prompt) after the first reboot because the installer didn’t add the necessary parameters to GRUB_CMDLINE_LINUX. This is where the SSH daemon comes in handy (-: To fix this, use SSH to login to the server and modify /etc/default/grub to include the following line: GRUB_CMDLINE_LINUX="console=tty0 console=ttyS0,115200n8" Run update-grub , reboot the APU and eventually there should be alogin prompt:
Posted in Technology Tagged apu pc enginesubuntu
4 Comments
ADDING A DS3231 REAL TIME CLOCK TO THE RASPBERRY PI 3 Posted on March 25, 2016by
Jan
Since the Raspberry Pi 3 doesn’t come with a battery-powered real time clock, it will only show the correct time once it has Internet connectivity (thanks to the NTP daemon). If the Raspberry Pi 3 is not connected to the Internet, you might want to add a hardware clock to set the current date. Here’s how to add a DS3231 real time clock GPIO module to the Raspberry Pi 3 in Raspbian Jessy Lite: * Get a DS3231 real time clock module and install it on the GPIO header of the Raspberry Pi 3 on pin 1 * Add the following line at the end of /boot/config.txt in RaspbianJessy:
dtoverlay=i2c-rtc,ds3231 * We don’t need fake-hwclock anymore: apt-get purge fake-hwclock * Check/set the current system time and write the system time to theRTC module using:
hwclock -w
* Set the correct time zone using: dpkg-reconfigure tzdata * Edit /etc/rc.local and add the hwclock command ABOVE the line that says “exit 0”:/sbin/hwclock -s
* The /etc/init.d/hwclock.sh shell scripts tends to corrupt this RTC clock module. In my case, the RTC clock was set to 2066/01/01 after every reboot. To prevent this from happening, edit /etc/default/hwclock and set HWCLOCKACCESS to no:HWCLOCKACCESS=no
* Reboot
* Done! Raspbian will now set the time from the RTC clock during boot even if there is no Internet connectivity available. * If RTC corruption is still happening, you may have to get rid of the NTP daemon as well using:apt-get purge ntp
apt-get install ntpdate * After the NTP daemon has been removed, you can still sync the system clock using ntpdate-debian which you might add to /etc/rc.local as well (after the hwclock command though) – just in case there is an Internet connection available during boot. And/or add it to /etc/cron.daily for example. Raspbian Jessy Lite will detect the DS3231 real time clock module automatically (as a DS1307 module but nevermind), there’s no need to whitelist or blacklist any I2C modules. There’s no need to run the i2cdetect command from the i2c-tools package. Once the clock module is detected, this line should be visible using dmesg: # dmesg | grep rtc rtc-ds1307 1-0068: rtc core: registered ds3231 as rtc0 Check /proc/driver/rtc for more data on the RTC: # cat /proc/driver/rtc rtc_time : 19:26:18 rtc_date : 2016-03-25 alrm_time : 00:00:00 alrm_date : 1970-01-01alarm_IRQ : no
alrm_pending : no
update IRQ enabled : no periodic IRQ enabled : no periodic IRQ frequency : 1 max user IRQ frequency : 6424hr : yes
Posted in Command-Line-FuTechnology
Tagged debian linuxraspberry pi
19 Comments
QUERY STATUS INFORMATION FROM HUAWEI’S HILINK 3G/LTE MODEMS Posted on March 5, 2016by Jan
While Huawei provides status information for its HiLink modems via a web page, this is hardly useful when using the modem on a headless Linux server. I just published a small Python-based command-line tool on Github which displays some useful information about the modem’sstatus.
root@wopr~#: python ./hstatus.py Huawei E3372 LTE Modem (IMEI: 121032526613216) Hardware version: CL1D3271AM Ver.A Software version: 22.286.53.01.161 Web UI version: 16.100.05.00.03-Mod1.4 Serial: L8FDW11512114431 MAC address (modem): 00:0D:87:12:1C:1D Connection status: Connected Network type: UMTS (3G) Signal level: ▁▃▄▆█Roaming: Enabled
Modem WAN IP address: 10.197.75.231 Public IP address: 185.13.106.181 DNS IP addresses: 212.113.0.5, 66.28.0.62 Network operator: Swisscom Connected for: 03:15:15 (hh:mm:ss) Downloaded: 615.17 KB Uploaded: 258.69 KB Total downloaded: 14.69 MB Total uploaded: 1.34 MBUnread SMS: 1
The tool has been tested on a Huawei E3276 and a E3372 modem. For the newer E3372 modem I had to add some code to supply a RequestVerificationToken in the HTTP header. Feel free to send a pull request on Github with your own tweaks! The repository is available here: github.com/trick77/huawei-hilink-status Posted in Command-Line-FuNetwork
Web
Tagged github huaweilinux
network
python
5 Comments
HOW TO BYPASS LYCAMOBILE’S TETHERING BLOCK IN LINUX Posted on March 4, 2016by Jan
I’ve been trying to get my Huawei E3276-150 4G/LTE USB modem to work with my PC Engines APU2 router board for quite a while. Once connected, the Huawei modem creates its own network thanks to its HiLink mode and is detected as an Ethernet over USB device in Linux. All I have to do is to ask the modem’s DHCP server for an IP address, use the modem as the default gateway and I should be all set. Right? Continue reading →Posted in Network
Tagged huawei linuxnetwork
10 Comments
PC ENGINES APU1 VS APU2 UNIXBENCH BENCHMARK Posted on January 17, 2016by Jan
Here’s a UnixBench performance comparison between PC Engines APU1 vs the brand new APU2 . Both system boards are equipped with 4 GB of RAM and a 16 GB mSATA SSD. While the APU1 sports a dual coreAMD G series T40E
CPU, the APU2 comes with a AMD G series GX-412TCquad
core CPU.
Continue reading → Posted in Technology Tagged linux pc engines9 Comments
POST NAVIGATION
Older posts
LINKS
* Dockerflix
* Call center blacklist (Switzerland)* trick77 on GitHub
POPULAR POSTS
* Enable VIM TV-playback using VCDS/VAG-COM in your Audi MMI * Show routing table in Mac OS X * Kindle Fire reboot loop problem – solved! * Unlocking the MMI 3G hidden menu * Setting up a Huawei E3276-150 4G/LTE USB modem on UbuntuServer/Desktop
* MMI VIM login-code generator Windows application * How to set up a transparent VPN Internet gateway tunnel usingOpenVPN
* Battery status capacity bar in MMI 3G * Apple TV 2 – white light (LED) flashing/blinking fast * Installing Ubuntu Server 16.04 on PC Engines APU or APU2 * Query status information from Huawei’s HiLink 3G/LTE modems * Adding a DS3231 Real Time Clock to the Raspberry Pi 3 * Prevent SSL redirect loop using WordPress and HAProxy * Call-Center Rufnummern-Sperrliste Schweiz / Telefon-Spam * Apache2 2.4+ not logging remote IP address using mod_remoteipRECENT COMMENTS
* Simon on How to use IPv6 on Quickline/WWZ and pfSense firewall * Jan on Auto-restart crashed mining processesin ethOS 1.2.9
* David Noble on Auto-restart crashed mining processes in ethOS 1.2.9 * Jan on Auto-restart crashed mining processesin ethOS 1.2.9
* Zdenek on Auto-restart crashed mining processes in ethOS 1.2.9 * Jan on Auto-restart crashed mining processesin ethOS 1.2.9
* josh on Auto-restart crashed mining processes in ethOS 1.2.9 * Zdenek on Auto-restart crashed mining processes in ethOS 1.2.9 * Zdenek on Auto-restart crashed mining processes in ethOS 1.2.9 * JUNOJACK on Gigabyte Z97X-UD5H and USB 3.0 in macOS Sierra 11.12TRICK77.COM
All rights reserved.Details
Copyright © 2024 ArchiveBay.com. All rights reserved. Terms of Use | Privacy Policy | DMCA | 2021 | Feedback | Advertising | RSS 2.0