Anda di halaman 1dari 3

How to install Shallot and make Onion domains + limit shallot

CPU usage

I use Debian 8 jessie and to make onion domains I had to install


Shallot.

I had to use wget command to download it from the Github:

wget https://github.com/katmagic/Shallot/archive/master.zip

if you get problem with the uknown certificate, use this command:

wget --no-check-certificate
https://github.com/katmagic/Shallot/archive/master.zip

after download, type ls-la and you will see master.zip

unzip it: unzip master.zip

you will see now Shallot-master folder.

Now you need to configure it and install it:

cd Shallot-master

./configure

make

when you try to cinfigure it, if you have fresh debian, you will get the
dependencies problem, you must install additional packages in oder to
install Shallot. I tried:

sudo apt-get install make autoconf automake libtool gcc

but again I had to install: sudo apt-get install build-essential

Then I got the problem with C compiler and I tried: sudo apt-get
install libcurl4-openssl-dev

for some people this worked, but for me, this solved my problem:

sudo apt-get install libssl-dev

Now the Shallot worked, you can test it with:

cd Shallot-master #if you are not already inside of that folder


./shallot ^test

Don't forget that you need very good hardware to chose many letters,
if you chose 4 letters like "test", you get the result in 2 seconds, if you
chose 6 letters, you must wait 30 minutes, for 7 letters, your computer
will have to work 1 day (my computer worked 2 days).

You can decide to save the result from the shallot in a file called
domain1, you should type like this (ohmygod is 7 letters):

./shallot ^ohmygod > domain1

But again, there is a problem. Shallot will take 100% of your CPU and
you will get very slow laptop/PC/server, you will not be able to use it.
Therefore, I decided to limit the shallot process, how much CPU it can
use. Beside it, to log out from the terminal session, I decided to install
tmux and start shallot inside of tmux, in that way, shallot run in the
background, even after I closed the terminal session on my server. I
limited CPU usage to 30% and I chose 7 letters from my onion domain
and I waited 2 days that Shallot finish the task.

sudo apt-get install tmux

tmux #to start tmux session

./shallot ^ohmygod > domain1

go out from the tmux with the command:

ctrl+b d #or ctrl+b :detach

sudo apt-get install cpulimit

top command will list all processes and you can use the shallot ID to
limit CPU, but you can also use the name of the process shallot:

top #to list all processes and see the ID of shallot, in my case the
shallot process ID was 19439

ctrl+c #to go out from the top command

cpulimit -p 19439 -l 30

or if you don't want to find out ID, just use the name of the process you
want to limit
cpulimit -e shallot -l 30