Welcome!

Welcome to Satlover forums, full of great people, ideas and excitement.

Please register if you would like to take part. link..

Register Now

Alert: Don't Use Hotmail Email Accounts for registration

Collapse

Before Access to all Forums and Trial accounts you must need to activate your account Email address

Useful Telnet & CLI commands for GBox/DM/Linux servers

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • khalidomar
    Board Senior Member
    • Jun 2010
    • 317

    Useful Telnet & CLI commands for GBox/DM/Linux servers

    When you Telnet your box or make a SSH connection shell to your Linux server, these commands are useful for you:
    1. Show me who is online, which IP and which Gbox Version is running:
      Code:
      cat /var/tmp/share.onl
    2. Show me all Distance 1 cards:
      Code:
      grep "dist:1" /var/tmp/share.info
    3. Show me all Distance 1 cards and resolve the Provider ID:
      Code:
      for i in `grep 'dist:1' /var/tmp/share.info | awk '{print $6}' | sort` ; do grep "^$i" /var/keys/ident.info ; done
    4. remove the Windows carriage returns ^M on Textfiles:
      Code:
      tr -s "\r" "\n" < winfile > unixfile
    5. Showing the ident.info file in a nice way:
      First:
      Code:
      CD to /var/keys
      Then:
      Code:
      cat ident.info | cut -c 1-9,19-196 > ident.info.new
      And you will see the providers lije this example:
      01000000;S0 - Mediaguard CAID
      01000002;(Old)S1 - Orbit (1W/26E)
      01000003;(Old)S1 - Canal+ France (19E)
    6. With this command, you can also see if gbox process is running:
      Code:
      ps -ef
    7. To start cs2gbox:
      Code:
      cd /var/bin/
      ./cs2gbox &
    8. To start gbox:
      Code:
      cd /var/bin/
      ./gbox&
    9. To start cs2gbox and gbox together in Gemini:
      Code:
      /var/script/gbox_cam.sh start
    10. To stop cs2gbox:
      Code:
      killall cs2gbox
    11. To stop gbox:
      Code:
      killall gbox
    12. To chmod executable:
      Code:
      chmod 755 <filename>
    13. To see number of cards from a peer :
      Code:
      cd /tmp/
      grep <peer domain> share.info | wc -l
    14. To see cards from a peer with distance and level:
      Code:
      cd /tmp/
      grep <peer domain> share.info
    15. To see peer status:
      Code:
      cd /tmp/
      more share.onl
      (Lines beginning with 1 are online peers, Lines beginning with 0 are offline peers)
    16. To see number of cards with level X where X = number
      Code:
      cd /tmp/
      grep Lev:X share.info | wc -l
    17. To see number of cards with level X for a certain peer where X = number
      Code:
      cd /tmp/
      grep <peer domain> share.info | grep Lev:X | wc -l
    18. To see number of cards at distance X where X = number
      Code:
      cd /tmp/
      grep dist:X share.info | wc -l
    19. To see number of cards with distance X for a certain peer where X = number
      Code:
      cd /tmp/
      grep <peer domain> share.info | grep dist:X | wc -l
    20. Rebooting your server:
      Code:
      reboot
    21. Changing your server login password (Very important):
      Code:
      passwd
    22. For editing files:
      Code:
      vi <filename}
      example:
      Code:
      vi /var/keys/cwshare.cfg
    Some Useful Posts

    sigpic
Working...