Posts

Using PlayStation 1 Densha de Go controller on emulators

Image
Items needed Arduino Leonardo (or equivalent). Note that it has to have at least one 3.3V power output. A standard PlayStation 1 controller A Densha de Go controller 6 male-to-female jumper cables Procedure Initial Cabling Using the jumper cable, connect the typical PlayStation 1 controller with the Arduino Leonardo. PlayStation 1 controller pin numbers --------------------- \ 1 2 3 4 5 6 7 8 9 /  ------------------- Connection to Arduino Leonardo * PlayStation 1 controller pin 1 (DATA) --> Arduino Leonardo digital port 12  * PlayStation 1 controller pin 2 (CMD) --> Arduino Leonardo digital port 11  * PlayStation 1 controller pin 4 (GND) --> Arduino Leonardo port GND  * PlayStation 1 controller pin 5 (VCC) --> Arduino Leonardo port 3.3V  * PlayStation 1 controller pin 6 (ATT) --> Arduino Leonardo digital port 5  * PlayStation 1 controller pin 7 (CLK) --> Arduino Leonardo digital port 4 Set up Arduino IDE Install the IDE is avail...

Using PlayStation 1 Densha de Go! controller with retropie

Image
This article discusses how we could use PlayStation 1 Densha de Go! controller in emulators, using Retropie as an illustration. In short, the controller is pressing multiple opposite directions simultaneously and we need to register the d-pad as buttons not axes in order for the controller output to be read.   Items needed Standard Raspberry Pi equipment: a Raspberry Pi board, power source and cable, HDMI-capable monitor and HDMI cable, a compatible micro SD card, a USB keyboard and a USB mouse, a USB controller.  A PlayStation 1 typical controller A PlayStation 1 Densha de Go! controller Your favorite PlayStation 1 Densha de Go! game, copied as disk image Some male-to-female jump wires A breadboard Steps Basic Retropie setup Proceed typical Retropie installation routine on the Raspberry Pi. Insert the disk image of the Densha de Go! game into the Raspberry Pi, under  /home/pi/RetroPie/roms/psx by default. Make sure you know how to access to th...

Set up a OpenVPN access server with free resources on Oracle Cloud Infrastructure

Image
A easier approach of setting the whole thing up https://blogs.oracle.com/developers/post/launching-your-own-free-private-vpn-in-the-oracle-cloud#:~:text=Launching%20Your%20Own%20Free%20Private%20VPN%20In%20The,5%20Testing%20The%20VPN%20...%206%20Summary%20 Apply for a free Oracle Cloud free tier Sign up at https://www.oracle.com/cloud/free/ When asked to select a region, pick up that states "always free". After you sign up, sign in at https://www.oracle.com/cloud/sign-in.html Create a new virtual machine instance After log in, click on the hamburger icon on the top left. Then select "Compute" -> "Instances". Click on the "Create Instance" button. In the subsequent screen, name the virtual machine, select an image (recommend: Ubuntu 16.04), select a shape (select a always free one if needed), upload your ssh public key. Then click the "Create" button to create the VM. In the next page, wait until you see the publ...

Traffic analysis using tcpdump and wireshark

Useful capture filters To and from a particular IP host x.x.x.x All traffic in a particular subnet net 192.168.0.0/24 Focus on a particular mac ether dst xx:xx:xx:xx:xx To a particular IP dst host x.x.x.x Capture traffic on particular port only port 53 Capture all traffic except DNS and ARP traffic port not 53 and not arp Useful wireshark display filters Focus on traffic between x.x.x.x and y.y.y.y (ip.src == x.x.x.x and ip.dst == y.y.y.y) || (ip.src = y.y.y.y and ip.dst == x.x.x.x) Focus on particular port tcp.port eq 25 Focus on particular protocol icmp See if there are any retransmitted packets (due to previous loss) tcp.analysis.retransmission or tcp.analysis.fast_retransmission Look at ip traffic only ip Look at vlan traffic only vlan Parts of packets to look at  14:02:09.181190 specto.ksl.com.33248 > quasi.ksl.com.ftp: S 1191864640:1191864640(0) win 5840 (DF) win * 2^wscale: receive buffer size. You could find them in SYN and SYN/...

TCP congestion windows

TCP congestion window: Where in tcpdump to look for window size and scale https://osqa-ask.wireshark.org/questions/27648/how-can-i-get-congestion-window-from-traces https://support.citrix.com/article/CTX113656 https://networklessons.com/cisco/ccie-routing-switching-written/tcp-window-size-scaling iperf and TCP window size https://kb.wisc.edu/uwsysnet/41705 General tcpdump info https://hackertarget.com/tcpdump-examples/ https://www.comparitech.com/net-admin/how-to-use-wireshark/

raspberry pi setup tips

Set up static IP /etc/dhcpcd.conf Remote control raspberry pi and its remote screen using x11vnc https://elinux.org/Screen_Casting_on_a_Raspberry_Pi A better option is x0vncserver https://www.howtoforge.com/tutorial/how-to-start-a-vnc-server-for-the-actual-display-scraping-with-tigervnc/ Start VNC (if using the default realvnc install) vncserver -Encryption PreferOff -Authentication VncAuth Set up Raspberry Pi as digital signage using chromium https://obrienlabs.net/setup-raspberry-pi-kiosk-chromium/ Set up the raspberry pi as info board https://www.cnet.com/how-to/turn-an-old-monitor-into-a-wall-display-with-a-raspberry-pi/ https://magicmirror.builders/ https://www.magicmirrorcentral.com/complete-raspberry-pi-magic-mirror-tutorial/ https://howchoo.com/g/ntcymzbimjv/how-to-install-magic-mirror-on-your-raspberry-pi https://docs.magicmirror.builders/getting-started/installation.html#manual-installation MagicMirror2 tips Location: https://forum.magicmirror.buil...

Extract sound files from steam games

Example: Sleeping Dogs Download Wwise from Github: https://github.com/Vextil/Wwise-Unpacker Extract it to a location of your choice. Locate the sound's pck files In Sleeping Dogs, it could be C:\Program Files (86)\Steam\SteamApps\common\SleepingDogsDefinitiveEdition\data\Audio\SD2\ Move the .pck file to Game Files\ folder of the Wwise extracted files. Click on either Unpack to MP3.bat or Uupack to OGG.bat to start the conversion. Ref: https://steamcommunity.com/app/202170/discussions/0/517142892061333536/