View Single Post
Schturman's Avatar
Posts: 5,339 | Thanked: 4,133 times | Joined on Jan 2010 @ Israel
#309
Originally Posted by logonaniket View Post
Can any single hack or script be converted to standalone app?

Enable SSH hack if converted to standalone app will ease out many steps!

The idea is to access N9 via WinSCP or FileZilla just by starting this app in background! I dunno much about compilation of shell scripts in harmattan, though I know AIX. If you have time pls do consider this, else explain me the process so that I can go about it!
For using WinSCP or FileZilla, you need to run tweak H - ONLY one time !
If you still want to create standalone app for this, this is from my scrip:
Code:
      h|H)
      cd /etc/ssh && sed -i -e 's/PermitRootLogin no/PermitRootLogin yes/g' sshd_config
      echo -e 'mkdir -m 0755 -p /var/run/sshd\nexec /usr/sbin/sshd $SSHD_OPTS' >> /etc/default/ssh
      pkill -9 /usr/sbin/sshd
      echo "You need to change password for ROOT & USER"
      echo " "
      passwd root
      echo " "
      passwd user
      echo " "
      echo "You activated ROOT-SSH Access. Your setting will take effect after restart SSH or reboot."
      echo " "
    read -p "Press Enter key to restart SSH: " end
        sleep 2 && /sbin/initctl start ssh ;;
Do it