1-Show me who is online, which IP and which Gbox Version is running:
cat /var/tmp/share.onl
2- Show me all Distance 1 cards:
grep "dist:1" /var/tmp/share.info
3- Show me all Distance 1 cards and resolve the Provider ID:
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:
tr -s "\r" "\n" < winfile > unixfile
5-Showing the ident.info file in a nice way:
first CD to /var/keys
then:
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:
ps -ef
7- To start cs2gbox:
cd /var/bin/
./cs2gbox &
8- To start gbox:
cd /var/bin/
./gbox&
9- To start cs2gbox and gbox together in Gemini:
/var/script/gbox_cam.sh start
10-To stop cs2gbox:
killall cs2gbox
11- To stop gbox:
killall gbox
12- To chmod binary:
chmod 755
13- To see number of cards from a peer :
cd /tmp/
grep
14- To see cards from a peer with distance and level:
cd /tmp/
grep
15- To see peer status:
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
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
cd /tmp/
grep
18- To see number of cards at distance X where X = number
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
cd /tmp/
grep
20-rebooting your server:
reboot
21- changing your server login password (Very important):
passwd
22-For editing files:
vi
example:
vi /var/keys/cwshare.cfg
0 comments:
Post a Comment