Posts

My Ubuntu 16.04 install essential

From Ubuntu software center, install synaptic. Then from synaptic, install the following ubuntu-mate-desktop gnome-control-center gcin  From gnome-control-center, open language setting. From there, install Chinese language and set gcin as default input method

Network issue resources

ntpdate[24246]: no server suitable for synchronization found http://askubuntu.com/questions/429306/ntpdate-no-server-suitable-for-synchronization-found http://serverfault.com/questions/277375/ntpdate-d-server-dropped-strata-too-high Juniper specific issues With Juniper: https://kb.juniper.net/InfoCenter/index?page=content&id=KB15756&actp=search Set date/time in Juniper: http://www.juniper.net/documentation/en_US/junos/topics/task/operational/junos-time-date-setting.html NTP setup in Juniper: http://www.juniper.net/documentation/en_US/junos/topics/task/configuration/network-time-protocol-configuring.html NTP debugging with Juniper: https://kb.juniper.net/InfoCenter/index?page=content&id=KB15756&actp=search Juniper LAG creation error: xSTP configuration disallowed on interface http://www.juniperforum.com/index.php?topic=27731.0

osmc use tips

Display Chinese fonts Under Settings -> Apperance -> Sking, set the font to be "Arial". Reference Play .m3u8 files Put it in a text file and rename the file extenstion to .strm. Browse to it in your video library and click on it. Reference  Or you set up a .m3u files as follows: http://kodi.wiki/view/Internet_video_and_audio_streams https://en.wikipedia.org/wiki/M3U Edit RSS feeds The RSS ticker can be toggled on or off by going to Settings -> Appearance -> Skin -> Show RSS news feed. See http://kodi.wiki/view/RSS_ticker for details. See http://kodi.wiki/view/Userdata for RssFeeds.xml location. For Linux, it is ~/.kodi/userdata/ with osmc/osmc as credential. Sample xml format:   http://feeds.feedburner.com/Tacos   See http://kodi.wiki/view/RssFeeds.xml for xml file format.

Higan emulator essential use note

Play GBA games with higan Higan expects a GBA BIOS to run GBA games. You may grab an open-source one from TempGBA. Its source code in github has the Normmatt's open-source GBA BIOS replacement in its bios/ folder. Rename the file to bios.rom and put it under Game Boy Advanced.sys/ folder of higan.

Mednafen emulator essential use note

Set up BIOS For a few game system (e.g. PC Engine/Turbo Grafx, Sega Saturn and PlayStation 1), one needs to provide appropriate BIOS files. First, locate the firmware/ folder. If you use the zipped windows distribution, the folder is right under the folder where you extract the zip file. If you use Ubuntu, the folder is under $HOME/.mednafen . Sega Saturn  Put the appropriate BIOS files into the firmware/ folder. sega_101.bin -- for Japan-region games mpr-17933.bin -- for North America/Europe-region games PlayStation 1 Put the appropriate BIOS files into the firmware/ folder. scph5500.bin  - (NTSC-J) Required for Japan-region games. scph5501.bin   - (NTSC-U) Required for North America/US-region games. scph5502.bin  - (PAL) Required for Europe-region games.  To change the name of the BIOS files, edit the following highlighted field in mednafen-*.cfg accordingly. ;Path to the Europe SCPH-5502/v3.0E ROM BIOS psx.bios_eu scph5502.b...

Movie extraction and editing software

YoutubeDLG: for downloading HD video from youtube. Avidemux Open the software. Drag the movie to the software window. In video output, choose "Mega AVC (h.264). In Audio output, choose "AAC (lav)". In the slide, use the slider and the "A" and "B" icon to select the segment that you want. Click on the Floppy disk button to save the segment. If you need to crop your video, select from the main menu, Video -> Filters -> Crop.

iptables pocket reference

iptables -L lists all rules  iptables -S [chain] shows the commands that build the rules of the chain. iptables -D [rule index or rule details] deletes a particular chain. NAT iptables -L -t nat lists all NAT rules. Replace source private IP to a public one, then when reply comes back, replace the associated destination public IP back to the private one. iptables -t nat -A POSTROUTING -s 192.168.128.4 -j SNAT --to-source 10.247.65.43 iptables -t nat -A PREROUTNG -d 10.247.65.43/32 -j DNAT --to-destination 192.168.128.4 Replacing rules iptables -R INPUT 1 -p tcp -s 192.168.0.0/24 --dport 80 -j ACCEPT Save modified iptables service iptables save Reference Reference 2