Listing posts
Displaying posts 11 - 15 of 217 in total2019-11-20
General
- Add Country Code -- fix contacts
- AfterShip -- post tracking
- AndrOpen Office -- libre office port
- BigSMS
- CalcTape
- Event Flow Widget
- Firefox focus
- Google Drive -- copy to clipboard share option
- KeePassDroid
- Classic notes lite -- notepad on steroids
- Nova Launcher + TeslaUnread -- unread badges
- Lightning browser
- Off+ -- turn off screen hack
- OperaMini
- Pixeful icon pack -- inexpensive icon pack (usable with Nova launcher)
- Pl@ntNet -- plant recognition
- Power Toggles
- QR Droid -- bar/qrcode scanner
- Screen Off -- lock display widget
- Should I Answer? -- call spam blocker
- SMS Backup & Restore
- Sound Profile -- rich sound profile manager
- Sygic -- car navigator
- Sygic voice recorder -- own voice recorder
- Telegram -- IM
- Textra -- customizable SMS app
- TouchPal -- very customizable multi-mode keyboard
- Vuze -- torrent downloader
WPS Office -- MSOffice compatibleuse AndrOpen Office
Media
- Boldbeast Recorder -- audio & call recorder
- Camera FV-5
- Flym feed reader
- iMediaShare -- media caster
- Perfect Viewer -- image viewer
- Piktures -- simple & powerful gallery
- Pulsar -- music player
- Radio FM Italia
- Simple Last.fm Scrobbler
- Smart Recorder -- audio recorder
- Snapseed -- rich image editor
- Sound Hound -- song search by your own whistles and voice!
- VLC -- rich video player + DLNA renderer
Games
- Alien Vs Space invaders
- Day Off
- Destiny Child -- dedicated post
- Deus Ex Go
- Dungeon cards
- Hearts Free
- Jelly Splash
- Lara Croft Go
- Picross Luna I & Picross Luna II
- Pigeon Pop
Puzzle Fighter- Snes9x EX+
- --- to see ---
- Fist of the north star (Hokuto no Ken)
- Honkai Impact 3rd
- The King of Fighters ALLSTAR
System
- CPUz
- DiskUsage -- xdiskusage port
- Hacker's Keyboard -- full PC keyboard
- JuiceSSH
- Let's Print Droid -- CUPS client
- Let's Print PDF
- Open in browser
- OpenVPN
- Override DNS
- QuickEdit Pro -- fast text editor
- Quick Sync widget -- sync Google account
- Remote Ripple -- vnc viewer
- SANEDroid -- SANE client
- Titanium backup
- Total commander -- rich file manager MC style
- Wi-Fi on/off widget
- ZArchiver -- supports many archive types (7zip)
Other
- eFamilyCloud -- manage electric outlet
~~~ * ~~~
2019-11-17

Ingredienti:
- 300gr mandorle tritate (tostatura opzionale)
- 250gr burro
- 250gr cioccolato fondente
- 200gr zucchero
- 5 uova
- 1/3 di bustina di lievito
- un pizzico di sale
- zucchero a velo (topping)
Procedimento:
- Sciogliere il cioccolato a bagnomaria con qualche cucchiaio d'acqua
- Aggiungere il burro a pezzetti e lasciar intipidire
- Sbattere i tuorli con zucchero, mandorle, sale, lievito e cioccolato
- Montare gli albumi a neve ed unirli al composto
- Versare in una teglia incartata e infornare a 180 gradi per 50-60 minuti.
Fonte: Carla Canton
~~~ * ~~~
2019-10-30
1 2 3 4 5 6 7 8 9 | id foo # uid=1000, gid=2000 # change ids to 5000.6000 usermod -u 5000 foo groupmod -g 6000 foo # fix old files settings find / -user 1000 -exec chown -h foo {} \; find / -group 2000 -exec chgrp -h foo {} \; |
Source: cyberciti.biz
~~~ * ~~~
2019-10-30
Setting up RetroPie
- Check your locale settings with the
locale
command:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | pi$ locale | sort LANG=en_GB.UTF-8 LANGUAGE= LC_ADDRESS="en_GB.UTF-8" LC_ALL= LC_COLLATE="en_GB.UTF-8" LC_CTYPE="en_GB.UTF-8" LC_IDENTIFICATION="en_GB.UTF-8" LC_MEASUREMENT="en_GB.UTF-8" LC_MESSAGES="en_GB.UTF-8" LC_MONETARY="en_GB.UTF-8" LC_NAME="en_GB.UTF-8" LC_NUMERIC="en_GB.UTF-8" LC_PAPER="en_GB.UTF-8" LC_TELEPHONE="en_GB.UTF-8" LC_TIME="en_GB.UTF-8" |
and set missing values in /etc/environment
:
1 2 | LANGUAGE="en_GB:en" LC_ALL="en_GB.UTF-8" |
- Login as
pi
, clone the setup script and run it:
1 2 3 | git clone --depth=1 https://github.com/RetroPie/RetroPie-Setup.git ~/RetroPie-Setup cd ~/RetroPie-Setup sudo ./retropie_setup.sh |
do a Basic Install and disable the splashscreen in Configuration to avoid a suddend switch to VT1 after the graphical login (see reddit Q/A and retropie faq).
Disable screenblanker by appending
consoleblank=0
to kernel parameters in /boot/cmdline.txt.Set memory split for the video card to at least 128MB via
raspi-config
.Create a shortcut to launch EmulationStation from the Pixel desktop (or use the
alacarte
menu editor):
1 2 3 4 5 6 7 8 9 | # ~/.local/share/applications/retropie.desktop [Desktop Entry] Type=Application Name=RetroPie Comment=Retro video game emulators Exec=/home/pi/bin/start-retropie Icon=/path/to/retropie.png Terminal=false Categories=Application;Game; |
create the /home/pi/bin/start-retropie
:
1 2 3 4 5 6 7 8 | #!/bin/sh # release the video card and switch to the 1st foreground virtual terminal sudo /path/to/ttyecho -n /dev/tty1 \ "sudo systemctl stop lightdm ; " \ "sleep 1 ; " \ "chvt 1 ; " \ "emulationstation --debug > /run/shm/ra.log 2>&1 ; " \ "sudo systemctl start lightdm" |
then compile and install the ttyecho
program (see attachment).
Note: Make sure you have enabled console autologin on VT1 via raspi-config
.
Optionally you can configure
runcommand
to show a game splashscreen by enabling Launch Menu Art in its configuration, and even set a system default image by installing the experimental packagelaunchingimages
.Show scanlines:
- Configuration
>
Retroarch>
Enable shaders and overlays - Configuration
>
Configedit>
Configure basic libretro emulator options>
Configure default options for all libretro emulators>
Video shader enable and Video shader file>
crt-pi.glslp
- Configuration
When configuring controller you can skip buttons you don't have by simply long press a button.
Setup video mode:
Set your tv/monitor format by setting sdtv_mode=2
(PAL) in /boot/config.txt
.
Set the low resolution VGA mode CEA-1
by putting in /opt/retropie/configs/all/videomodes.cfg
:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | mame4all = "CEA-1" mupen64plus = "CEA-1" pifba = "CEA-1" lr-beetle-ngp = "CEA-1" lr-beetle-pce-fast = "CEA-1" lr-beetle-supergrafx = "CEA-1" lr-caprice32 = "CEA-1" lr-fbalpha = "CEA-1" lr-fceumm = "CEA-1" lr-fuse = "CEA-1" lr-gambatte = "CEA-1" lr-genesis-plus-gx = "CEA-1" lr-gpsp = "CEA-1" lr-handy = "CEA-1" lr-mame2000 = "CEA-1" lr-mame2003 = "CEA-1" lr-mgba = "CEA-1" lr-mupen64plus = "CEA-1" lr-nestopia = "CEA-1" lr-pcsx-rearmed = "CEA-1" lr-picodrive = "CEA-1" lr-prosystem = "CEA-1" lr-quicknes = "CEA-1" lr-snes9x2002 = "CEA-1" lr-snes9x2005 = "CEA-1" lr-snes9x2010 = "CEA-1" lr-stella = "CEA-1" lr-vba-next = "CEA-1" lr-vecx = "CEA-1" |
in this manner your TV will do the upscaling work and the emulators will run faster.
Upgrading RetroPie version
1 2 3 | cd ~/RetroPie-Setup git pull sudo ./retropie_setup.sh # and choose "Update" from the menu |
Note: When the upgrade is finished make sure the splashscreen
is disabled.
Scraping game images
- Install
Skyscraper
in the experimental packages - Customize game aliases in
~/.skyscraper/aliasMap.csv
- Import your custom JPG/PNG images by placing them in
~/.skyscraper/import/<covers|screenshots|wheels>
with the same name as your roms
PlayStation tips (lr-pcsx-rearmed
)
- Use this script to rip your own original PSX cd-rom discs:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | #!/usr/bin/env ruby require 'shellwords' dev = '/dev/dvd' title = ARGV[0].strip vol = `volname #{dev}`.strip vol = 'NO-LABEL' if vol.size == 0 puts "#{vol} - #{title}\n\n" system "cdrdao read-cd --read-raw --read-subchan rw_raw --datafile #{title.shellescape}.bin --device #{dev} --driver generic-mmc-raw #{title.shellescape}.toc" # 2>&1 | tee #{title.shellescape}.log system "eject #{dev}" if $?.to_i == 0 # add comment lines = File.read("#{title}.toc").split("\n") lines.insert(2, "// #{vol} - #{title}") File.open("#{title}.toc",'w'){|f| f.puts lines } # update m3u if title =~ /^(.+) \(CD(.)\)$/ File.open("#{$1}.m3u", 'a'){|f| f.puts "#{title}.toc"} end #toc2cue $vol.toc $vol.cue # optional |
if using a different program that creates multiple bin
files then you can merge them via binmerge
File extensions:
bin
/img
+toc
/cue
+sbi
(image, descr, subchannel)Multidisc howto:
1 2 3 4 5 6 7 8 9 10 | # files in Retropie/roms/psx folder: .multidisc/Title (CD1).bin .multidisc/Title (CD1).toc .multidisc/Title (CD2).bin .multidisc/Title (CD2).toc Title.m3u # Title.m3u file contents: .multidisc/Title (CD1).toc .multidisc/Title (CD2).toc |
- Datasets, subchannels, CUE sheets: redump.org, emuparadise.org
Source: RetroPie HP, wired, Pixel & RetroPie, RP icon, TTYecho, change linux vt/tty
Retropie docs: Wiki, Manual install, RA hotkeys, Controller setup, Supported systems, Arcade HP & MAME info
PlayStation 1: convert ISO to PBP format on windows and linux -- see gtk-popstation and psx2psp/popstation by Ivan Vega
MAME resources: Snapshots, DAT/XML files, game lists by genre, ES gamelist.xml script
Game systems DAT/XML files: HyperList
TODO/WIP:
~~~ * ~~~
2019-10-24
1 | apt-get install nut # install server
|
Set MODE=standalone
in /etc/nut/nut.conf
.
Append the user definition in /etc/nut/upsd.users
:
1 2 3 4 | [monuser] password = ApAssWorD allowfrom = localhost upsmon master |
Optionally, set the daemon to listen only on IPv4 (defaults to both v4 and v6), append in /etc/nut/upsd.conf
:
1 | LISTEN 127.0.0.1 3493 |
I had a Powercom KIN-1200AP
connected via an USB to serial converter:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # find the converter lsusb | grep Serial # Bus 001 Device 009: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port # create an udev rule to fix its device name, # append this in /etc/udev/rules.d/10-local.rules ACTION=="add", KERNEL=="ttyUSB[0-9]*", SUBSYSTEMS=="usb", ATTRS{idVendor}=="067b", ATTRS{idProduct}=="2303", SYMLINK+="ttyUSB_UPS" # append the UPS definition in /etc/nut/ups.conf [myups] driver = powercom port = /dev/ttyUSB_UPS desc = "Main supply" loadPercentage = {6.1343,-0.3808,1.075,0.1811} batteryPercentage = {5.0000,0.3268,-825.00,0.46511,0} |
Now I have an Eaton 5E 8509i
connected via USB:
1 2 3 4 5 | # append the UPS definition in /etc/nut/ups.conf [myups] driver = usbhid-ups port = auto desc = "Main supply" |
Che the configured UPS status with the command upsc myups
.
Configure the monitor in /etc/nut/upsmon.conf
:
1 2 3 4 5 6 7 8 9 10 11 12 13 | MONITOR myups@localhost 1 monuser ApAssWorD master # setup a custom script to notify you NOTIFYCMD /opt/ups/nut_notify_cmd.sh # customize notification messages NOTIFYMSG ONBATT "Power failure! UPS %s is on battery!" NOTIFYMSG SHUTDOWN "UPS %s is low on battery! Shutting down the system..." # enable some logging NOTIFYFLAG ONLINE SYSLOG+EXEC NOTIFYFLAG ONBATT SYSLOG+EXEC NOTIFYFLAG SHUTDOWN SYSLOG+WALL |
Add the nut
user to dialout
group:
1 | useradd -G dialout nut |
Restart the services and test the ups:
1 2 3 4 5 6 | systemctl restart nut-driver systemctl restart nut-server systemctl restart nut-monitor upsc -l # list all monitored UPSes upsc myups # show UPS details and status |
Note: Uninstall xfce-powermanager
or you will get an USB communication error requiring a system reboot in order to clear it.
Note: To cleanly unmount VeraCrypt volumes you can use this NOTIFYCMD
script:
1 2 3 4 5 6 7 8 9 10 11 12 13 | #!/bin/bash # /opt/ups/nut_notify_cmd.sh - nut NOTIFYCMD script # put in /etc/sudoers.d/local: # nut raoul = (root) NOPASSWD: /sbin/shutdown, /opt/systemd-units/vc-mounter.rb if [ "$NOTIFYTYPE" = "ONBATT" ]; then /opt/bin/shutdown -h 600 & elif [ "$NOTIFYTYPE" = "ONLINE" ]; then sleep 3 # wait for first command to start /opt/bin/shutdown -c & fi |
that uses this useful shutdown script:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | #!/usr/bin/ruby $VERBOSE = nil # /opt/bin/shutdown - emulate shutdown command and unmount VeraCrypt volumes require 'optparse' require 'shellwords' opts = {} OptionParser.new{|o| o.banner = "Usage: #{File.basename __FILE__} [options]" o.on('-r', '--reboot [N]', Float, 'Reboot after N seconds (default=0)') do |n| opts.merge! action: :reboot, delay: n.to_f end o.on('-h', '--poweroff [N]', Float, 'Poweroff after N seconds (default=0)') do |n| opts.merge! action: :shutdown, delay: n.to_f end o.on('-c', '--cancel', 'Cancel a pending operation') do |enabled| opts.merge! action: :cancel end opts.merge! help: o.to_s }.parse! case opts[:action] when :cancel `pgrep -fl vc-mounter.rb` if $?.to_i == 0 puts 'aborted' exit end # kill all but yourself pids = `pgrep -f ruby.*shutdown`.split("\n").map(&:to_i) - [Process.pid] pids.each{|pid| system "kill #{pid}" } when :reboot, :shutdown sleep opts[:delay] `sudo swapon | grep " file " | cut -f 1 -d " "`.strip.split("\n"). each{|f| system "sudo swapoff #{f.shellescape}" } system 'sudo /opt/systemd-units/vc-mounter.rb try-umount' system "sudo /sbin/shutdown -#{opts[:action] == :reboot ? :r : :h} 0 &" else puts opts[:help] end |
Source: [eaton ups setup][(https://srackham.wordpress.com/2013/02/27/configuring-nut-for-the-eaton-3s-ups-on-ubuntu-linux/)