-
Ubuntu Desktop VM for RDP on OpenNebula
Transform the OpenNebula Marketplace Ubuntu Server 24.04 image into an RDP-capable desktop VM. This is part 1 of getting RDP working — see part 2 for GNOME Remote Desktop configuration.
-
Jekyll Minima remote_theme CSS not loading on GitHub Pages
Fix for Jekyll sites using
remote_theme: jekyll/minimawhere CSS loads on the homepage but not on post pages. -
Headless Wayland RDP with GNOME Remote Desktop on Ubuntu 24.04
Set up headless multi-user RDP access on Ubuntu 24.04 using GNOME Remote Desktop, following official GNOME documentation. Ansible configuration below.
-
OpenWrt Snapshot on FRITZ!Box 7530
Install OpenWrt 22.03.4 release on FRITZ!Box 7530, then sysupgrade to SNAPSHOT to enable the VRX518 VDSL modem.
-
Use the aptly REST API with curl
aptly is good. Very good. If you’ve got it installed, use the REST API to get your work done.
-
Install aptly with Ansible
aptly is the best thing to happen to debian repository management since sliced bread.
-
Install VMware deployPkg
deployPkg is sometimes needed for guest customization and is missing from
open-vm-toolsfor no good reason. -
Install VMware legacy tools
VMware are moving away from the classic VMware tooling to
open-vm-tools, available in most distros as standard. This is a Good Thing (tm). -
Start a simple http server with python
python -mSimpleHTTPServer -
Testing Prose.io
Basic, WYSIWYG markdown editor.
-
Download a deb file from a PPA
haproxy example
-
Get Oracle Java zip and turn it into a debian package
- get JRE/JDK from Oracle’s site
- rename its extension to ‘tar.gz’
- install java-package
sudo apt-get install java-package - build a .deb file
fakeroot make-jpkg server-jre-8u40-linux-x64.tar.gz
-
sftp timing out with ProFTPD server
Old version of ProFTPD doesn’t support the default key exchange set so sftp was timing out.
-
Command line SMTP server test
-
Get users without a profile photo on Google Apps
To find users without a profile photo or avatar, run this in the Google Apps Script editor:
-
Add second NIC with DHCP interface to VMware vCenter Server Appliance
- Add the NIC to the box in the vCenter client
- Reboot the box
- SSH in
- In
[/etc/sysconfig/network/dhcp]changeDHCLIENT_HOSTNAME_OPTIONfromAUTOtohostname(e.g. foo.domain) - Copy
[/etc/sysconfig/network/ifcfg-eth0]toifcfg-eth1 - run
sudo /opt/vmware/share/vami/vami_config_netand set config for eth1 to DHCP service network restart
-
Show what files are installed by an rpm package
rpm –ql <package name> -
Enable ipv4 forwarding
enable ipv4 forwarding (not permanent over reboots!)
-
Install closed source nVidia drivers for Quadro 5000 on CentOS 6.5 using ELRepo
rpm --import http://elrepo.org/RPM-GPG-KEY-elrepo.org rpm -Uvh http://elrepo.org/elrepo-release-6-6.el6.elrepo.noarch.rpm yum install kmod-nvidia reboot -
Rename a Windows computer using command line powershell
netdom renamecomputer "$env:COMPUTERNAME" /Newname "myname" -
Manually Install XenServer 6.2.0 Service Pack 1
- Download the file from Citrix
- Unpack the zip and copy the files to the root home dir on your machine
- SSH in and type
xe patch-upload file-name=XS62ESP1.xsupdate - Wait a few mins and it’ll spit out a UUID when it’s done. Use this for the next command.
xe patch-apply uuid=0850b186-4d47-11e3-a720-001b2151a503 host-uuid=5b280513-bfcf-4ce0-9d49-25aa61c110d9
-
Install Git, Stash and import SVN on Ubuntu 12.04 XenServer guest
Goal
-
Turn off Synology LEDs
# Power LED off echo \\6 >/dev/ttyS1 # Status LED off echo \\7 > /dev/ttyS1 # Copy LED off echo \\B > /dev/ttyS1 -
Upgrade Cisco IOS and ASDM from Ubuntu Linux
Make sure PC can ping (or contact) ASA. Install tftpd-hpa (defaults work fine, but conf is /etc/default/tftpd-hpa) Run it:
-
Reset Cisco switch to factory settings
Reset Cisco switch to factory settings
enable config config factory-settings copy run start reloadshow IOS version
show version ###### show all file systems show file system ###### show files on file system show (flash0|disk0 etc): -
XenServer 6.2 iSCSI won't connect to Synology 4.3
When attaching an iSCSI LUN to a XenServer pool - only the master connects and the rest remain unplugged.
Make sure your iSCSI target is set up to accept multiple connections on the Synology settings page.
If the storage fails to attatch following that, turn off chap discovery:
http://1bitatatime.blogspot.de/2011/08/initiator-error-0201-and-xenserver.html?m=1
This will work until reboot.
-
Update/upgrade Dell PowerEdge Server firmware under XenServer 6.2
Run these command on all of your host machines. Don’t reboot the pool master if using pools - change it to a machine that has already rebooted and settled before rebooting the original master.
-
Quickly open a Dell PowerConnect (or anything) serial console in Linux
Find your serial port(s)
-
Quickly install telnet client on Windows server
pkgmgr /iu:"TelnetClient" -
What everyone needs from a communication app
Like not being able to talk to your non-iPhone wielding friends with iMessage?
-
Run Windows 8 from an encrypted external USB drive on your Macbook Pro
I need windows for work and gaming and I didn’t want to give up space to bootcamp on my internal drive so I installed Windows on an external USB drive by doing this:
- Find or create a Windows 8 Enterprise computer.
- Get a desktop/laptop SSD drive (I used a 128GB Samsung 830) and plug it in via USB.
- Install Windows To Go on the SSD drive from the Windows 8 Enterprise computer. Optionally select whether you would like the drive encrypted using BitLocker full disk encryption.
- When installed, plug the USB cable into your MacBook and hold option down when you hear the boot noise until it shows you some boot options.
- Choose the Windows partition and boot it. It will talk about preparing for the first time and you’ll have to reboot again into Windows.
- The screen will be totally screwed up (Late 2012 rMBP), trust yourself and log into Windows (one keypress to show the login screen, then type your user and pass as normal).
- Right click in the thin sliver of screen and choose the screen resolution option.
- Using the top of the window, move the visible part of the window left until you can see the resolution slider. Slide it to something much lower like 1280*1024 and apply it.
- Ok, so screen is visible, now time for some drivers.
- Download the latest Boot Camp Support Software from Apple. Copy it to something and then onto the Windows To Go install.
- Run the installer to install all the drivers.
- Activate Windows.
- Reboot and set the resolution up to maximum.
- Enjoy.
Windows 8 looks terrible on the Retina display - far too small but you can adjust the text size up a bit. Gaming works fine, I’ve played XCOM and Portal 2 over USB2.
_EDIT: _Have upgraded to an Anker USB 3.0 to SATA Adapter Cable and now get hundreds of MB/second transfer speed. As fast as an internal drive.
Any questions please comment. Like if the solution worked for you.
-
Reset Dell BIOS password
-
Can't install aws-sdk gem
Error:
user@host:~$ sudo gem install aws-sdk Building native extensions. This could take a while... ERROR: Error installing aws-sdk: ERROR: Failed to build gem native extension. /usr/bin/ruby1.8 extconf.rb checking for libxml/parser.h... no ----- libxml2 is missing. please visit http://nokogiri.org/tutorials/installing_nokogiri.html for help with installing dependencies. -
Headphones not working on Dell Latitude E4310 on Windows 8
Spontaneously stopped producing sound when plugged in. Were still being recognized as being connected but totally silent.
Downloaded and installed this IDT driver from Dell and they immediately started working without reboot.
-
Scrub Synology RAID disks
UPDATE 2014-09-25: fsck command updated for Synology DSM 5.
-
Convert AWS EC2 VolumeWriteOps to Ops/s
When looking at the volume monitoring tab in EC2 you’ll see write throughput measured in ops/s. In CloudWatch however you are given VolumeWriteOps, and it’s not immediately obvious that this is per minute.
To convert to average per second ops, divide by 60.

-
Activate Windows 8
- Open an administrator command prompt by moving your mouse to the bottom left corner of the screen, right clicking when the start panel icon appears and then click ‘Command Prompt (Admin)’.
- Install your product key using
slmgr /ipk xxxxx-xxxxx-xxxxx-xxxxx-xxxxxwhere xxxxx is your product key. - Type
slmgr /atoto activate Windows.
-
Delete/backspace doesn't work in terminal or some programs when SSH'd
Encountered during an OSSEC install - when pressing delete,
^His printed instead.Fix:
- Press CTRL-v and then hit backspace. You’ll see what code is sent as “erase”.
^H - Type
stty erase ^Hto change the key setup.
That’s it.
Source: Macworld.
- Press CTRL-v and then hit backspace. You’ll see what code is sent as “erase”.
-
Office 365 user can use OWA but not connect with Outlook after deleting and recreating user.
Problem is that soft deleted user in AD recycle bin is conflicting with newly created user.
Solution:
- Download and install new 365 PoSH tools from http://onlinehelp.microsoft.com/Office365-enterprises/ff652560.aspx
- Connect to posh and log in.
> $Session = New-PSSession -ConfigurationName Microsoft.Exchange -ConnectionUri https://ps.outlook.com/powershell/ -Credential $Cred -Authentication
Basic -AllowRedirection
(prompt for admin credentials)
> Import-PSSession $Session
> Connect-MsolService> Remove-MsolUser -RemoveFromRecycleBin -UserprincipalName useremail@domain.com
- User will be deleted from recycled bin after about 30 seconds.
- Rename new user to old user in MS Online admin panel.
- User can now send and receive email in outlook as normal.
-
Kickstarter: simple VPN
Struggled with manual strongswan, struggled with Sophos essential UTM.
Someone make a simple to setup and use secure VPN hub that lets people connect to an Amazon EC2 instance or other linux box, connect to it’s shares and the shares of other connected devices as if it was on a LAN and route Internet traffic out from that point too.
I’ll buy a stripped down Astaro/Sophos UTM (that uses standard IPSEC packages under the covers) with nice web interface that accomplishes the above.
-
How to log in as Windows domain admin without knowing the domain
Want to log in as the domain administrator but don’t know the domain? Use the following username:
-
Disable Windows firewall on an unresponsive AWS machine
Courtesy of AWS support
Stop Server and Detach Root Volume
In the AWS console, stop (don’t terminate!) the non-responsive server. Note that the properties for the server show that the instance has a drive attached to /dev/sda1. This is a Linux attach point but the concept should still apply.
Also make note of the instance ID: _______
On the Volumes tab, detach the instance. You may need to refresh the pane after detaching in order to update the console UI. You may want to name this drive, in order to make it easy to keep track of.
Attach Root Volume to the Debug Server
Right click on the volume to attach it. Choose xvdg as the device name.
Fix the Problem
1. Log in to the debug server.
2. Click on Start -> Administrative Tools ->Computer Management
3. Choose the Disk Management node, then right-click on Disk 1 (left-hand portion of that row) to bring the disk online. The disk will most likely appear as Drive E once you complete this step.
4. Use Windows Explorer to navigate to E:\Windows\System32\Config. (Careful! Not the C drive…) This directory contains the registry files that control, among other things, the network address. We’ll be working with the file that is named SYSTEM.
5. Click on Start -> Run and start Regedit
6. To load the errant file, first click on HKEY_LOCAL_MACHINE
—- if you need to adjust the firewall the registry key here is:
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\WindowsFirewall
set to zero (0) for both Domain and Standard profiles
7. Next we need to load the file. Click on File -> Load Hive, and then select SYSTEM in this directory
8. You’ll be asked to name the subkey to load the file into. Name it: BadDrive (or something else you choose0
9. Navigate to: HKEY_LOCAL_MACHINE\BadDrive\ControlSet001\Services\Tcpip\Parameters\Interfaces{9E9784DE-F79F-48BF-AF55-20DABCC88F0F} (Note that this is ControlSet001, not 002).
10. Delete all the keys that have anything to do with the static addresses. These are likely the IPAddress, DefautlGateway, and SubnetMask.
11. Also re-enable DHCP by setting the registry value to 1.
12. Save the changes by highlighting BadDrive and then choosing File ->Unload Hive. Important! Your changes will not be saved unless you unload the hive.
Detach the Drive
We’re done with the repairs, so detach the drive from this instance. Make certain that Windows Explorer isn’t open and in the E drive, or you will not be able to detach the drive.
1. Back in Disk Manager, take the drive offline:
2. Detach the Volume in the AWS Console. You will likely need to refresh the console in order to make it recognize that you detached the volume.
3. And of course re-attach to the original instance. Enter /dev/sda1 as the device name.
4. Restart the Instance.
5. Copy the new DNS name, and log in via Remote Desktop. You may have to wait as long as 10 minutes after restart before RDP will connect. So do not panic if initial attempts time out.
-
Renaming OSSEC hosts
OSSEC hosts can be centrally renamed by editing the
etc/client-keysfile.However, since the client key also contains the host name the client will use, the keys must be re-extracted using
manage-agentsand the keys imported into the existing client installs.This is only a small time-saving over removing and re-adding a client but less prone to human error.
Edit:
This also works for changing OSSEC host IPs. Simply update them in the keys file and restart the agent and client and they will reconnect.