Skip to content
AppUnix

Tag: hat

Como fazer QoS de banda (controle de banda) no Ubuntu Server, Debian, Fedora, Centos, RedHat e etc

14/07/2011 by OwnServer

Vamos perceber o seguinte.
Esse how to serve para TODAS as distribuições que rodam como um gateway de internet, sendo somente um caso de particularidade a questão de paths de configurações, como por exemplo, para instalar o CBQ no ubuntu basta usar apt-get install shaper -y.
Isto instalará ele e basta você localizar o path aonde o script shaper está (/etc/init.d/shaper) e seus respectivos confs (/etc/shaper).
No caso das outras distribuições (red hat based -> Centos, Fedora e Red Hat) podemos ver que seu path fica em /etc/sysconfig/cbq. No caso de red hat já existe um arquivo de exemplo que serve para mostrar como as coisas são configuradas no padrão, seu nome é cbq-0000.example e existe outro mas é um caso de utilização do próprio CBQ, o avpkt.
Neste caso iremos criar tudo na mão.
Antes de por a mão na massa temos de entender algumas regras PRIMÁRIAS do CBQ.
Abaixo seguem as mesmas:

O nome dos arquivos de download

cbq-0002-download.in

Todos os arquivos de download devem obedecer a algumas regras na hora de serem nomeados. A primeira delas é que todos os arquivos de download devem começar com cbq-

cbq-0002-download.in

A numeração sempre deve começar a partir do 0002;

cbq-0002-download.in

Todos os arquivos devem terminar com .in

cbq-0002-download.in

O conteúdo dos arquivos de download

DEVICE=eth1,10Mbit,1Mbit
RATE=64Kbit
WEIGHT=6Kbit
PRIO=5
RULE=10.0.0.2
BOUNDED=yes
ISOLATED=yes

DEVICE=eth1,10Mbit,1Mbit – Esta linha contém a interface que sai para os clientes da rede.
RATE=64Kbit – Quantidade de banda destinada ao cliente. Aqui coloca-se qualquer valor que se deseje separar para o IP do cliente.
WEIGHT=6Kbit – Taxa máxima de download que o cliente pode alcançar (com pequenas variações para mais ou para menos).
PRIO=5 – Prioridade com que o IP do cliente deve ser vigiado. O normal é deixar 5.
RULE=10.0.0.2 – IP do cliente a ser vigiado.
BOUNDED=yes – Se setado para yes o usuário estará limitado mesmo que o link esteja com folga.
ISOLATED=yes – Se setado para yes indica que o cliente não poderá emprestar banda pra ninguem.

Arquivos de upload
O nome dos arquivos de upload

cbq-0002-upload.out

Todos os arquivos de upload devem obedecer a algumas regras na hora de serem nomeados. A primeira delas é que todos os arquivos de upload devem começar com cbq-

cbq-0002-upload.out

A numeração sempre deve começar a partir do 0002;

cbq-0002-upload.out

Todos os arquivos devem terminar com .out

cbq-0002-upload.out

O conteúdo dos arquivos de upload

DEVICE=eth1,10Mbit,1Mbit
RATE=64Kbit
WEIGHT=6Kbit
PRIO=5
RULE=10.0.0.2,
BOUNDED=yes
ISOLATED=yes

DEVICE=eth1,10Mbit,1Mbit – Esta linha contém a interface que sai para os clientes da rede.
RATE=64Kbit – Quantidade de banda destinada ao cliente. Aqui coloca-se qualquer valor que se deseje separar para o IP do cliente.
WEIGHT=6Kbit – Taxa máxima de download que o cliente pode alcançar (com pequenas variações para mais ou para menos).
PRIO=5 – Prioridade com que o IP do cliente deve ser vigiado. O normal é deixar 5.
RULE=10.0.0.2, – IP do cliente a ser vigiado. Observe que no arquivo de upload, o IP termina com uma vírgula (,).
BOUNDED=yes – Se setado para yes o usuário estará limitado mesmo que o link esteja com folga.
ISOLATED=yes – Se setado para yes indica que o cliente não poderá emprestar banda pra ninguem.

Iniciando o CBQ

Depois de criadas todas as regras, é preciso compilá-las, com o comando (isto em fedora, redhat e centos):

root@appunixlabs~# cbq compile

No caso do Debian, Ubuntu, Mint e similares:

root@appunixlabs~# /etc/init.d/shaper compile

Basta, depois da compilação, iniciar o CBQ com o comando (isto em fedora, redhat e centos):

root@appunixlabs~# cbq start

No caso do Debian, Ubuntu, Mint e similares:

root@appunixlabs~# /etc/init.d/shaper start

Ou se desejar pará-lo (isto em fedora, redhat e centos):

root@appunixlabs~# cbq stop

No caso do Debian, Ubuntu, Mint e similares:

root@appunixlabs~# /etc/init.d/shaper stop

CBQ na inicialização

Adicione o comando cbq start ao rc.local para que carregue sozinho no ato do boot
(isto em fedora, redhat e centos):

root@appunixlabs~# echo "cbq start" >> /etc/rc.local

No caso do Debian, Ubuntu, Mint e similares:

root@appunixlabs~# echo "/etc/init.d/shaper start" >> /etc/rc.local

Fontes:

http://www.ubuntu.com/ubuntu (ubuntu)
http://www.debian.org/ (debian)
http://centos.org/ (centos)
http://www.projetofedora.org/ (fedora)
http://sourceforge.net/projects/cbqinit/ (cbq)
http://migre.me/5gcMr (cbq sob fedora)

Centos 5.6 Lançado e pronto para download

09/04/2011 by OwnServer

Foi lançado ainda ontem (08/04/2011) a nova versão do CentOs (um remaster perfeito do Red Hat Enterprise Linux). Para os amantes desta distribuição uma coisa importante a se considerar, as notas de lançamento! Veja as principais mudanças publicadas:

http://wiki.centos.org/Manuals/ReleaseNotes/CentOS5.6

A nota de lançamento ocorreu no maillist oficial, veja:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
We are pleased to announce the immediate availability of CentOS-5.6 for
i386 and x86_64 Architectures.
 
CentOS-5.6 is based on the upstream release EL 5.6 and includes
packages from all variants including Server and Client. All upstream
repositories have been combined into one, to make it easier for end
users to work with.
 
This is just an announcement email, not the release notes. The Release
Notes for CentOS-5.6 can be found on-line at :
<a href="http://wiki.centos.org/Manuals/ReleaseNotes/CentOS5.6">http://wiki.centos.org/Manuals/ReleaseNotes/CentOS5.6</a> and everyone is
encouraged to look through them once. Also worth browsing through are
the CentOS FAQs at <a href="http://wiki.centos.org/FAQ">http://wiki.centos.org/FAQ</a>
 
+++++++++++++++++++++++
Upgrading from CentOS-5.5 ( or CentOS-5.0 / 5.1 / 5.2 / 5.3 / 5.5 ):
 
If you are already running CentOS-5.5 or an older CentOS-5 distro, all
you need to do is update your machine via yum by running :
 
'yum update'
 
Running 'yum list updates' before doing the update is recommended, so
you can get a list of packages that are going to be updated. To check
you are indeed on CentOS-5.6, run : 'rpm -q centos-release' and that
should return: 'centos-release-5-6.el5.centos.1'
 
+++++++++++++++++++++++
Live-CD:
 
The LiveCDs are meant to be used to run a CentOS 5.6 environment. The
LiveCDs are setup in a way so as to allow running from either optical
media like cds and dvds or from USB keys and other portable media.
Release Notes for the CentOS-5.6 LiveCD can be found at :
<a href="http://wiki.centos.org/Manuals/ReleaseNotes/CentOSLiveCD5.6">http://wiki.centos.org/Manuals/ReleaseNotes/CentOSLiveCD5.6</a>
 
+++++++++++++++++++++++
Downloading CentOS-5.6 for new installs:
 
When possible, consider using torrents to run the downloads. Not only
does it help the community and keeps mirrors from running up high
bandwidth bills, in most cases you will find its also the fastest means
to download the distro. There are currently over three hundred people
seeding CentOS-5 and it's possible to get upto 100mbps downloads via
these torrents.
 
-- Via BitTorrent :
       CD:
<a href="http://mirror.centos.org/centos/5.6/isos/i386/CentOS-5.6-i386-bin-1to7.torrent">http://mirror.centos.org/centos/5.6/isos/i386/CentOS-5.6-i386-bin-1to7.torrent</a>
<a href="http://mirror.centos.org/centos/5.6/isos/x86_64/CentOS-5.6-x86_64-bin-1to8.torrent">http://mirror.centos.org/centos/5.6/isos/x86_64/CentOS-5.6-x86_64-bin-1to8.torrent</a>
 
       DVD:
<a href="http://mirror.centos.org/centos/5.6/isos/i386/CentOS-5.6-i386-bin-DVD.torrent">http://mirror.centos.org/centos/5.6/isos/i386/CentOS-5.6-i386-bin-DVD.torrent</a>
<a href="http://mirror.centos.org/centos/5.6/isos/x86_64/CentOS-5.6-x86_64-bin-DVD.torrent">http://mirror.centos.org/centos/5.6/isos/x86_64/CentOS-5.6-x86_64-bin-DVD.torrent</a>
 
       LiveCD:
<a href="http://mirror.centos.org/centos/5.6/isos/i386/CentOS-5.6-i386-LiveCD.torrent">http://mirror.centos.org/centos/5.6/isos/i386/CentOS-5.6-i386-LiveCD.torrent</a>
<a href="http://mirror.centos.org/centos/5.6/isos/x86_64/CentOS-5.6-x86_64-LiveCD.torrent">http://mirror.centos.org/centos/5.6/isos/x86_64/CentOS-5.6-x86_64-LiveCD.torrent</a>
 
md5sum's for these torrent files:
 
5933c19cd9483ce29b785955249ecd7c  CentOS-5.6-i386-bin-1to7.torrent
abb5949608423611e814a5d02325b6d2  CentOS-5.6-x86_64-bin-1to8.torrent
 
178a61311e7ee7ec2cd48a06cc84f80d  CentOS-5.6-i386-bin-DVD.torrent
01eb97a833faf9bdfdac239c59e1b1cf  CentOS-5.6-x86_64-bin-DVD.torrent
 
173948defd0661b0949c0c4badd050ff  CentOS-5.6-i386-LiveCD.torrent
dfc0ac767ba42e55b7e05c5922f30c51  CentOS-5.6-x86_64-LiveCD.torrent
 
Note: we had to redo the x86_64 DVD and CD torrent files, so ensure you
only use torrent files that match these published md5sum's
 
-- Via direct download:
Due to bandwidth considerations the CentOS Project does not publish ISOs
directly from our network machines. However direct downloads are
available from external mirrors over http, ftp and rsync. A geoip
based list is available at <a href="http://isoredirect.centos.org/centos/5/isos/">http://isoredirect.centos.org/centos/5/isos/</a>
to give you the best predictable match ( and only lists mirrors that are
updated already, so you don't need to waste time looking for a sync'd
mirror )
 
Some mirrors also publish DVD images that can be downloaded directly.
Refer to the mirrors list page at <a href="http://www.centos.org/mirrors">http://www.centos.org/mirrors</a> for more
details Mirrors that offer DVDs are clearly marked on the page.
 
+++++++++++++++++++++++
sha1sum for these ISOS:
 
i386:
90bede4d0fd898b5c707c1286090e104c7549e65  CentOS-5.6-i386-bin-1of7.iso
55d2e6715f20321f3133260e00626275a04ce135  CentOS-5.6-i386-bin-2of7.iso
e2456baf35f444d8ae31656e7879b7bcf6b5ad80  CentOS-5.6-i386-bin-3of7.iso
165531a4dec87215379732c0ab8caa5689bf6044  CentOS-5.6-i386-bin-4of7.iso
ee084789533a5db41e96d064af2dc071976a09c6  CentOS-5.6-i386-bin-5of7.iso
7669dabc486450315ccce87ab945e508252b02ca  CentOS-5.6-i386-bin-6of7.iso
ed9bf4539a68d7a86408e1cc56c37f68b1941df8  CentOS-5.6-i386-bin-7of7.iso
e44a55ef06293c3958a2b6aae3c3ce2d13580627  CentOS-5.6-i386-bin-DVD.iso
5ff43eb45051f804219d7e795b4f830dd2aa815c  CentOS-5.6-i386-netinstall.iso
bfa3146fecbe5dd6820f8261851baa4951b80cb6  CentOS-5.6-i386-LiveCD.iso
 
x86_64:
2b16a64a0b4d68a6b4263bffdbc5f99c3daf9070  CentOS-5.6-x86_64-bin-1of8.iso
d7e112eae4ee24538d41ec7955747526c71329ad  CentOS-5.6-x86_64-bin-2of8.iso
3c36e8d2b211455efb418f3b221395b39bbed9f4  CentOS-5.6-x86_64-bin-3of8.iso
68bfccf66bc0464ef4aded146320792ab22a2d3c  CentOS-5.6-x86_64-bin-4of8.iso
9287112b062f4c26de2cf65eddfba121e485c852  CentOS-5.6-x86_64-bin-5of8.iso
f8fed9a75ff845a0a2b77126099ae9af9c24f29e  CentOS-5.6-x86_64-bin-6of8.iso
0ccafbcfd28f71db18752d58ffe3b4efd97d6f0d  CentOS-5.6-x86_64-bin-7of8.iso
4061355f409cab0f6c9cc4b4c52e6f4edb41b0c8  CentOS-5.6-x86_64-bin-8of8.iso
99d97759316b0bec729fc85fcb4df33310d9eeb3  CentOS-5.6-x86_64-bin-DVD-1of2.iso
e28d90718d591c833d07d0b86f0d3d3486dc454c  CentOS-5.6-x86_64-bin-DVD-2of2.iso
6b8ff7f955ba9c0f86ab0a1d71aaee8e3b4c6976  CentOS-5.6-x86_64-netinstall.iso
1770511af5791256f9d87fb8f76bb02cd2bccd9c  CentOS-5.6-x86_64-LiveCD.iso
 
+++++++++++++++++++++++
md5sum for these ISOS:
 
i386:
53e824442449765ff6ff9e0306537bb9  CentOS-5.6-i386-bin-1of7.iso
c92b574c8d1f4da6d8d2cafe4eeac449  CentOS-5.6-i386-bin-2of7.iso
39ffba169ec63d9a3671f69448280c84  CentOS-5.6-i386-bin-3of7.iso
e98609d3d292a8167e2ce4e889691ff2  CentOS-5.6-i386-bin-4of7.iso
ecbfaca3dd610b3a9be6de908872450d  CentOS-5.6-i386-bin-5of7.iso
19ca4cbcf08aade0c9dd828f5dfd7f66  CentOS-5.6-i386-bin-6of7.iso
3e3a8a64e4a46b91f76f2b76ef46095c  CentOS-5.6-i386-bin-7of7.iso
181142a5845586579d5d4d96e43a4827  CentOS-5.6-i386-bin-DVD.iso
a710105f7f9fe3516f08f6f8514ed2b0  CentOS-5.6-i386-netinstall.iso
02f1199de0e5a982af53e65fd6d69b00  CentOS-5.6-i386-LiveCD.iso
 
x86_64:
6dce642fb9b9158f9ce18411127399e6  CentOS-5.6-x86_64-bin-1of8.iso
73b16680a9411f5397b289b419b34b03  CentOS-5.6-x86_64-bin-2of8.iso
b0fdc4f0098a648ea5fc27e26b2f1b26  CentOS-5.6-x86_64-bin-3of8.iso
f71c1c0c3ca2d19a6c48a938252b631d  CentOS-5.6-x86_64-bin-4of8.iso
09bb8351e4799c0c122d451c670359b3  CentOS-5.6-x86_64-bin-5of8.iso
c90a9de29c7c6708b396760007d0942e  CentOS-5.6-x86_64-bin-6of8.iso
0456cb515be6f3f2a0fa6e8be45d66b5  CentOS-5.6-x86_64-bin-7of8.iso
83c61f38fea4f22033dedc746c2bb67b  CentOS-5.6-x86_64-bin-8of8.iso
b37209879c0fb158fac25045527241ee  CentOS-5.6-x86_64-bin-DVD-1of2.iso
3eb277f8ca8d49cc8fcaf76d647169c4  CentOS-5.6-x86_64-bin-DVD-2of2.iso
02cf3a5e32aaa5eed27af775ad292beb  CentOS-5.6-x86_64-netinstall.iso
7449589dc0769d4e027832bfe3f6bfba  CentOS-5.6-x86_64-LiveCD.iso
 
+++++++++++++++++++++++
Pending Updates:
 
Since upstream released their 5.6 media, a series of updates have been
issued. These updates are currently syncing to the CentOS mirrors.
 
+++++++++++++++++++++++
Sources and Debuginfo packages:
 
srpms and debuginfo packages are still making their way to the CentOS
mirrors and should be online by the 13th April 2011.
 
+++++++++++++++++++++++
Getting Help:
 
The best place to start when looking for help with CentOS is at the wiki
( <a href="http://wiki.centos.org/GettingHelp">http://wiki.centos.org/GettingHelp</a> ) which lists various options and
communities who might be able to help. If you think there is a bug in
the system, do report it at <a href="http://bugs.centos.org/">http://bugs.centos.org/</a> - but keep in mind
that the bugs system is *not* a support mechanism.
 
Some Friendly URLs :
      <a href="http://www.centos.org/">http://www.centos.org/</a>
      <a href="http://wiki.centos.org/">http://wiki.centos.org/</a>
      <a href="http://lists.centos.org/">http://lists.centos.org/</a>
      <a href="http://bugs.centos.org/">http://bugs.centos.org/</a>
      <a href="irc:///#centos@irc.freenode.net">irc://#centos@irc.freenode.net</a>
 
+++++++++++++++++++++++
A big thanks to everyone who contributed towards this release, including
  the translation teams, the qa team, the artwork team, the CentOS
Developers and all the users out there. And a special shout out to all
the donors who have contributed machines, bandwidth and infrastructure
towards the CentOS Project. They make this possible.
 
Enjoy!
 
--
Karanbir Singh
The CentOS Project
irc: z00dax, #<a href="http://lists.centos.org/mailman/listinfo/centos-announce">centos at irc.freenode.net</a>
 
Nas notas de lançamento já estão disponíveis links para downloads!
 
Apreciem sem moderação!
:P

 

Como instalar Adobe Air (latest) 2.5.x no seu Fedora 14 (64 bits) x86_64 e tweetdeck

08/08/2015 by OwnServer

Olá pessoALL,

Há muito tempo estive a procura de instalar o adobe air e TweetDeck junto ao meu Fedora 14 (x86_64) 64 bits.

Serei bastante breve no que tange a instruções, que na verdade vou postar o que tive de fazer para colocar o sistema para funcionar, abaixo seguem a lista de todos os comandos que usei, entratanto no fim entendi que o erro resumia-se na condição de instalar toda arquitetura de pacotes 32 bits para poder operar o adobeair de maneira eficaz, assim como poder instalar o TweetDeck.

Primero logue-se como root, siga os comandos:

Como instalar o adobe air no fedora 14.

Primeiros comandos:

1
sudo yum install -y ld-linux.so.2 gtk2-devel.i586 libdbus-glib-1.so.2 libhal.so.1 rpm-devel.i586 libXt.so.6 gnome-keyring-devel.i586 libDCOP.so.4 libxml2-devel.i586 nss-devel.i586

1
rpm -Uhv http://download.fedora.redhat.com/pub/fedora/linux/releases/14/Everything/source/SRPMS/libXcomposite-0.4.2-1.fc14.src.rpm

1
rpm -Uhv http://rpm.pbone.net/index.php3/stat/3/srodzaj/2/search/libatk1.0_0-1.9.0-0.2.mdk10.1.thac.ia64.rpm

1
rpm -Uhv http://hany.sk/mirror/fedora/releases/14/Everything/source/SRPMS/atk-1.30.0-5.fc14.src.rpm

1
rpm -Uhv http://hany.sk/mirror/fedora/releases/13/Everything/source/SRPMS/gtk2-2.20.1-1.fc13.src.rpm

1
rpm -Uhv gtk2-2.22.0-1.fc14.1.src.rpm

1
rpm -Uhv http://download.fedora.redhat.com/pub/fedora/linux/releases/14/Everything/source/SRPMS/libXcomposite-0.4.2-1.fc14.src.rpm

1
rpm -Uhv http://download.fedora.redhat.com/pub/fedora/linux/releases/14/Everything/source/SRPMS/libatk1.0.so.0

1
rpm -Uhv http://rpm.pbone.net/index.php3/stat/3/srodzaj/2/search/libatk1.0_0-1.9.0-0.2.mdk10.1.thac.ia64.rpm

1
rpm -Uhv http://rpm.pbone.net/index.php3/stat/3/srodzaj/2/search/libatk1.0_0-1.9.0-0.2.mdk10.1.thac.ia64.rpm

1
rpm -Uhv http://hany.sk/mirror/fedora/releases/14/Everything/source/SRPMS/atk-1.30.0-5.fc14.src.rpm

1
rpm -Uhv http://hany.sk/mirror/fedora/releases/14/Everything/source/SRPMS/gtk2-2.22.0-1.fc14.1.src.rpm

1
yum install libxml libstdc++.so.5 gtk2.i686 libcanberra-gtk2.i686 PackageKit-gtk-module.i686 libxslt libxslt-devel mingw32-libxslt-static.noarch libxslt-debuginfo.x86_64 perl-XML-LibXSLT.x86_64 gtk-murrine-engine.x86_64 gtk-murrine-engine-debuginfo.x86_64 gtk-nodoka-engine.x86_64

1
rpm -ivh adobeair.i386.rpm --ignorearch

1
yum install ld-linux.so.2 gtk2-devel.i686 libdbus-glib-1.so.2 libhal.so.1 rpm-devel.i686 libXt.so.6 gnome-keyring-devel.i686 libDCOP.so.4 libxml2-devel.i686 nss-devel.i686 libxslt.i686 xterm -y

—-

Percebam que o ponto chave está abaixo, se instalasse os pacotes abaixo como sendo nomedopacote.x86_64 o Fedora iria instalar sem problemas, mas só rodaria se instalasse como i686    :

—

1
yum install libgnome-keyring.i686 gnome-keyring-pam.i686 gnome-keyring.i686 gnome-keyring-devel.i686 gnome-keyring-sharp.i686 gnome-keyring-debuginfo.i686 gnome-keyring-sharp-devel.i686 gsql.i686 -y

Depois acesse o site da Adobe e baixe o binário de instalação do Adobe Air no site da Adobe, como root dê um ./nome_do_binário.bin, a foto abaixo mostra a execução (ela foi tirada antes do último comando YUM acima que fizemos, por isso requeria as dependências posteriormente instaladas, não se PREOCUPE com o erro da foto, as dependências do último comando YUM sanarão tudinho para você):

Depois disto acesse o site do TweetDeck e instale-o.

Veja a foto da instalação sem problemas (assim que o adobe air estiver instalado, depois de todos os comandos YUM citados rode o instalador do tweetdeck no site, o sistema irá pedir autorização de root para ativar o tweetdeck no container adobe air):

A prova segue abaixo :P

Pesquisa

Categorias

  • Blog
  • cPanel
  • How Tos
  • Linux
  • Mac Os
  • MySQL
  • Wordpress

#Apoiadores

Patrocinador

Registre-se e ganhe $25



© 2022 AppUnix | Built using WordPress and MxGuard