Bitcoin Forum

Bitcoin => Mining support => Topic started by: brunoshady on July 13, 2011, 10:19:14 PM



Title: how can I start only the terminal on Ubuntu 11?
Post by: brunoshady on July 13, 2011, 10:19:14 PM
How can I start only the terminal, without the gnome, in Ubuntu 11?


already tried to uninstall gdm but had no success =/


Title: Re: how can I start only the terminal on Ubuntu 11?
Post by: SomeoneWeird on July 13, 2011, 10:55:14 PM
Install the server version.


Title: Re: how can I start only the terminal on Ubuntu 11?
Post by: brunoshady on July 13, 2011, 11:00:19 PM
how can I do it with a normal version already installed?


Title: Re: how can I start only the terminal on Ubuntu 11?
Post by: drawoc on July 14, 2011, 12:23:57 AM
There are several ways.

If you want, you can just remove the entire xserver (package xserver-xorg).

Another way, if you want to keep X installed, is to go to /etc/init.d, and move the files "gdm" and "xorg-common" somewhere else.

Edit: If you're mining with an ATI card, you need the xserver running to mine. In that case, you might want to simply replace GNOME with a more lightweight alternative.


Title: Re: how can I start only the terminal on Ubuntu 11?
Post by: brunoshady on July 14, 2011, 01:27:22 AM
I don't want to uninstall anything...


for ati mining, the xserver need to be running?


Title: Re: how can I start only the terminal on Ubuntu 11?
Post by: drawoc on July 14, 2011, 04:49:02 AM
I don't want to uninstall anything...

for ati mining, the xserver need to be running?

Yeah, Nvidia has a set of special scripts that let you run CUDA stuff without the xserver, but for ATI it has to be running. If you just want a more lightweight desktop you could try running LXDE or even just openbox on its own (which is what I do).

If you still want to not start the Xserver at boot, go to /etc/init.d, and move the files "gdm" and "xorg-common" somewhere else. If you do this, you can still start the xserver by running "startx".


Title: Re: how can I start only the terminal on Ubuntu 11?
Post by: JoelKatz on July 14, 2011, 01:55:16 PM
Modify the default runlevel in /etc/inittab if you're using init.
If you're using systemd, change the default target link in /etc/systemd/system

Normally, runlevel 1 is single user mode, 3 is full multi-user, and 5 is multi-user with GUI. So you should change 5 to 3.


Title: Re: how can I start only the terminal on Ubuntu 11?
Post by: drawoc on July 14, 2011, 02:46:19 PM
Modify the default runlevel in /etc/inittab if you're using init.
If you're using systemd, change the default target link in /etc/systemd/system

Normally, runlevel 1 is single user mode, 3 is full multi-user, and 5 is multi-user with GUI. So you should change 5 to 3.

Ubuntu switched to upstart recently (they used to use inittab). Anyway, their runlevels were always messed up even when they used inittab - 1 was single user mode, 2 and up were multi-user w/ X.

Anyway, this got me thinking that the easiest way to disable X would probably be to modify the kernel options passed by GRUB.

In /etc/default/grub, there's a line like:
Code:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
replace it with:
Code:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash text"
and then run:
Code:
sudo update-grub

Then, at any time, you can simply run startx if you'd like to run X.


Title: Re: how can I start only the terminal on Ubuntu 11?
Post by: brunoshady on July 14, 2011, 03:05:43 PM
another question...



when I'm on ssh and start the miner, how can I get the screen again after close and open again?


for example:


I open ssh now and run some random miner, and then exits...

later the same day, I want to see how things are going, how can I open again and see the hashes? (echos/prints from the previous session)



Already tried the cat /dev/pts/2 but nothing happens, only black screen


Title: Re: how can I start only the terminal on Ubuntu 11?
Post by: SomeoneWeird on July 14, 2011, 03:11:30 PM
another question...



when I'm on ssh and start the miner, how can I get the screen again after close and open again?


for example:


I open ssh now and run some random miner, and then exits...

later the same day, I want to see how things are going, how can I open again and see the hashes? (echos/prints from the previous session)



Already tried the cat /dev/pts/2 but nothing happens, only black screen

unless you use screen or something, starting a miner then closing that ssh session will end the miner.


Title: Re: how can I start only the terminal on Ubuntu 11?
Post by: Rob P. on July 15, 2011, 12:11:14 AM
when I'm on ssh and start the miner, how can I get the screen again after close and open again?

Use screen:

Code:
sudo apt-get install screen

Start your miners (assuming 2 GPUs) using:

Code:
/usr/bin/screen -dmS gpu0 phoenix.py -q 3 -v -u http://${MINERUSER}:${MINERPASS}@${MINERSERV} -k phatk WORKSIZE=128 VECTORS BFI_INT FASTLOOP=false AGGRESSION=15 DEVICE=0
/usr/bin/screen -dmS gpu1 phoenix.py -q 3 -v -u http://${MINERUSER}:${MINERPASS}@${MINERSERV} -k phatk WORKSIZE=128 VECTORS BFI_INT FASTLOOP=false AGGRESSION=15 DEVICE=1

Obviously, replace the variables with things that work for you.

Connect to a miner GPU0 using:
Code:
screen -r gpu0

To exit a miner screen and leave it running use:  CNTL-A, D