When you Telnet your box or make a SSH connection shell to your Linux server, these commands are useful for you:
- Show me who is online, which IP and which Gbox Version is running:
Code:cat /var/tmp/share.onl
- Show me all Distance 1 cards:
Code:grep "dist:1" /var/tmp/share.info
- 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
- remove the Windows carriage returns ^M on Textfiles:
Code:tr -s "\r" "\n" < winfile > unixfile
- Showing the ident.info file in a nice way:
First:
Code:CD to /var/keys
Code:cat ident.info | cut -c 1-9,19-196 > ident.info.new
01000000;S0 - Mediaguard CAID
01000002;(Old)S1 - Orbit (1W/26E)
01000003;(Old)S1 - Canal+ France (19E) - With this command, you can also see if gbox process is running:
Code:ps -ef
- To start cs2gbox:
Code:cd /var/bin/ ./cs2gbox &
- To start gbox:
Code:cd /var/bin/ ./gbox&
- To start cs2gbox and gbox together in Gemini:
Code:/var/script/gbox_cam.sh start
- To stop cs2gbox:
Code:killall cs2gbox
- To stop gbox:
Code:killall gbox
- To chmod executable:
Code:chmod 755 <filename>
- To see number of cards from a peer :
Code:cd /tmp/ grep <peer domain> share.info | wc -l
- To see cards from a peer with distance and level:
Code:cd /tmp/ grep <peer domain> share.info
- To see peer status:
Code:cd /tmp/ more share.onl
- To see number of cards with level X where X = number
Code:cd /tmp/ grep Lev:X share.info | wc -l
- 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
- To see number of cards at distance X where X = number
Code:cd /tmp/ grep dist:X share.info | wc -l
- 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
- Rebooting your server:
Code:reboot
- Changing your server login password (Very important):
Code:passwd
- For editing files:
Code:vi <filename}
Code:vi /var/keys/cwshare.cfg