Skip to content

sangwansangwan/batswap_initials

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BATSWAP INITIALS

Authors

Prerequisite installations:-

  1. ) First make sure to install chromium browser, incase its not installed. Install chromium with following command .
  sudo apt-get install chromium -y

NOTE: In some cases, the browser name might be chromium-browser, so try with (sudo apt-get install chromium-browser -y).

  1. ) Installation of tool needed for browser synching, named xdotool .
  sudo apt install xdotool

..............................................................................................................................................................

Files placements and tweaks :-

  1. ) You have three files named, swapPre.sh , swapMain.sh and stationRpi . Place them in some safe folder accordingly.
  2. ) After placements of both file in folder, run this command to make it executable.
  chmod +x swapPre.sh && chmod +x swapMain.sh
  1. ) After this, open swapPre.sh in editor mode :-
  sudo nano swapPre.sh
  1. ) Now edit 19th line where cron_command is placed, provide full/absolute path of swapMain.sh, for example :
  cron_command="/home/XYZ/Desktop/SwappingPackages/swapMain.sh"
  1. ) Now check whether chromium browser process name is chromium or chromium-browser. It can be done with tapping TAB button after typing chromium in terminal.
  2. ) If in case the browser name is chromium-browser swap 6th line with bottom one where string="@chromium-browser --kiosk http://batswap.electrifuel.com:3000" is mentioned. It should look like this.
# string="@chromium --kiosk http://batswap.electrifuel.com:3000"
string="@chromium-browser --kiosk http://batswap.electrifuel.com:3000"
  1. ) Now, edit swapMain.sh as well provide the absolute path for stationRpi and proper station ID, organisation ID and rack ID in 16th line.

..............................................................................................................................................................

Executions and checks :-

  1. ) Now run command .
  ./swapPre.sh
  1. ) Above commands updates the chromium to run at startup and add swapMain.sh to crontab. To check the consistency of these two steps, run the following command
cat /etc/xdg/autostart/nm-applet.desktop && echo ---------- && crontab -l
  1. ) After ensuring all the data, simply reboot the system with command.
    reboot

Support

For support, email ritik.sangwan@electrifuel.com or call me at +919050536764

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages