Welcome Guest ( Log In | Register )

15 Pages V  1 2 3 > »   
Reply to this topicStart new topic
> Setting up a server (for retards), Help the Linux Noob!

 
post Nov 17 2012, 18:04
Post #1
Ichy



~ Loli Trainer ~
***********
Group: Catgirl Camarilla
Posts: 13,061
Joined: 19-February 09
Level 500 (Dovahkiin)


Using a Tut to get h@h running on a Vserver.

QUOTE(G Just G @ Nov 12 2012, 10:35) *

Here's how I used to do it... get any of the 100Mb/s dedicated boxes. Stick with the Netherlands, Luxembourg, and the United States they're fast and where I keep my servers. I've got multiple 10Gb/s connections and I can safely say I've never seen H@H break 80Mb/s for a single server.

Go here:
[www.xirvik.com] http://www.xirvik.com/fastethernet_dedi.html

Instead of seed box for "Configure As" choose "Plain server with Root"

ask for them to install ubuntu 64bit 12.04 LTS

you'll get a login and password and an ip address

download [the.earth.li] putty

run putty: type in the IP address under "host name" and hit "Save" then hit Open

login to your server using the user account given

type: sudo apt-get update (this will update your repositories sometimes Xirvik's data center's don't use the latest version if you get prompted that updates are available you can type sudo apt-get upgrade to install them. Linux unlike Windows virtually never requires rebooting.)
type: sudo apt-get install openjdk-7-jre (when you type in "sudo" this is like running something as administrator in Windows -- it'll ask for the password that you used to log onto your server with type that in)
type: sudo apt-get install zip
type: sudo apt-get install screen (screen is a program that will allow you to continue running a program after you close your SSH session - this is how you are connected to your server when you follow these steps)

create a folder called H@H (command: mkdir H@H)

type screen

type cd H@H

type wget http://hentaiathome.net/get/HentaiAtHome_1.0.10.zip

type wget http://hentaiathome.net/get/sqlite-jdbc-3.7.2.jar

type: unzip HentaiAtHome_1.0.10.zip (linux has something called tab completion you can type in "Hen" and hit tab and it'll type the rest)

type: sudo java -jar HentaiAtHome.jar --disable_logging (disable logging the log file can get out of control sometimes)

H@H will now be running it'll prompt you for your user id, your key and the like.
Next time you want to view the status or restart your H@H client you'll need to type screen -x
Other things that are useful:

You can use this server for Hentai@Home proxy just enter the ip address/port and key under "My Home" on the gallery homepage (g.e-hentai.org) "My Settings" area. Under "Hentai@Home" set the H@H server to "All Networks Allowed [Restricted - Passkey Required] (Not Recommended)"

The following is very cool as well. You can use the server to download files through the Hath Downloader. See this post for details.

Also you've now got a 100Mb/s server with a dedicated IP address. There's a lot you can do with it.

If you want to easily manage your server you might check out a program called Webmin and if I remember I'll write up how to use WinSCP to do all sorts of awesome scripting related to H@H.

Nload is a very easy to read bandwidth monitor

You may want to check the next post for additional information.
If you find any of this post useful hit the karma button... for some reason I don't have a lot.
Update: steps updated to include screen steps. Also including update / upgrade command. Changed Java version from 6 to 7 as 7 is newer and therefor better than 6 which is old.


I finally managed to log in as root!

Managed to do everything up to:
CODE
sudo apt-get install openjdk-7-jre

here is saids:
CODE
root@Ichy:~# sudo apt-get install openjdk-7-jre
Reading package lists... Done
Building dependency tree... Done
E: Unable to locate package openjdk-7-jre

Someone hold my hand and guide me through this hell please!

This post has been edited by Ichy: Nov 17 2012, 18:05
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 17 2012, 18:15
Post #2
r3dd0ssal



Elite Poster
*********
Group: Gold Star Club
Posts: 6,823
Joined: 23-February 07
Level 370 (Godslayer)


Try "sudo apt-get install default-jre".

edit: and are you sure you did "sudo apt-get update"?

This post has been edited by DemonEyesBob: Nov 17 2012, 18:20
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 17 2012, 18:25
Post #3
Ichy



~ Loli Trainer ~
***********
Group: Catgirl Camarilla
Posts: 13,061
Joined: 19-February 09
Level 500 (Dovahkiin)


yes I did. It said:
CODE
Reading package lists... Done


"sudo apt-get install default-jre" got me teh same error:
CODE
Unable to locate package default-jre
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 17 2012, 18:26
Post #4
hzqr



Savagely Still
********
Group: Gold Star Club
Posts: 4,672
Joined: 13-May 09
Level 462 (Dovahkiin)


You can skip the "sudo" when you are root.

If default-jre fails, post the results of:

CODE
apt-cache search jre
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 17 2012, 18:33
Post #5
Ichy



~ Loli Trainer ~
***********
Group: Catgirl Camarilla
Posts: 13,061
Joined: 19-February 09
Level 500 (Dovahkiin)


QUOTE(Tiap @ Nov 17 2012, 18:26) *

You can skip the "sudo" when you are root.

If default-jre fails, post the results of:

CODE
apt-cache search jre


It waits for a second and then nothing happens, just a new root@Ichy appears.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 17 2012, 18:36
Post #6
r3dd0ssal



Elite Poster
*********
Group: Gold Star Club
Posts: 6,823
Joined: 23-February 07
Level 370 (Godslayer)


Type "cat /etc/apt/sources.list" and post the result please.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 17 2012, 18:42
Post #7
blue penguin



in umbra, igitur, pugnabimus
***********
Group: Gold Star Club
Posts: 10,044
Joined: 24-March 12
Level 500 (Godslayer)


Ichy,
Please also try to give us the full output, it often helps.

For example:
QUOTE(Ichy @ Nov 17 2012, 16:25) *

yes I did. It said:
CODE
Reading package lists... Done


"sudo apt-get install default-jre" got me teh same error:
CODE
Unable to locate package default-jre



written as this (note that my server have the jdk-7 so I used a random name intead):
CODE

root@fuji:[~]# apt-get install random-pkg
Reading package lists... Done
Building dependency tree      
Reading state information... Done
E: Unable to locate package random-pkg


QUOTE(Tiap @ Nov 17 2012, 16:26) *

You can skip the "sudo" when you are root.

If default-jre fails, post the results of:

CODE
apt-cache search jre



Tiap is 100% right, this shall help us to diagnose your problem.
And also try:
CODE
uname -a

so we know the version of your ubuntu.
My suspicion is that you got a server with an old ubuntu and probably it will only have only jdk-6 (not the jdk-7).
PS: jdk-6 will be enough to run h@h so do not worry.

EDIT: Sorry forget it.
QUOTE
It waits for a second and then nothing happens, just a new root@Ichy appears.




This post has been edited by blue penguin: Nov 17 2012, 18:44
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 17 2012, 18:50
Post #8
Ichy



~ Loli Trainer ~
***********
Group: Catgirl Camarilla
Posts: 13,061
Joined: 19-February 09
Level 500 (Dovahkiin)


Ok I tried:
CODE
root@Ichy:~# cat /etc/apt/sources.list
cat: /etc/apt/sources.list: No such file or directory
root@Ichy:~#


CODE
root@Ichy:~# apt-get update
Reading package lists... Done
root@Ichy:~#


CODE
root@Ichy:~# apt-get install openjdk-7-jre
Reading package lists... Done
Building dependency tree... Done
E: Unable to locate package openjdk-7-jre
root@Ichy:~#


apt-cache search jre ---> nothing happens

CODE
root@Ichy:~# uname -a
Linux Ichy 2.6.32-042stab063.2 #1 SMP Tue Oct 23 16:24:09 MSK 2012 x86_64 x86_64 x86_64 GNU/Linux
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 17 2012, 19:01
Post #9
blue penguin



in umbra, igitur, pugnabimus
***********
Group: Gold Star Club
Posts: 10,044
Joined: 24-March 12
Level 500 (Godslayer)


QUOTE(Ichy @ Nov 17 2012, 16:50) *

Ok I tried:
CODE
root@Ichy:~# cat /etc/apt/sources.list
cat: /etc/apt/sources.list: No such file or directory
root@Ichy:~#



Ok, looks like the server got configured to store the repositories somewhere else.

The following shall tell us you where the suorces.list fiels is located (I hope)
CODE
apt-config dump | grep 'Dir::Etc'

User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 17 2012, 19:03
Post #10
Ichy



~ Loli Trainer ~
***********
Group: Catgirl Camarilla
Posts: 13,061
Joined: 19-February 09
Level 500 (Dovahkiin)


CODE
root@Ichy:~# apt-config dump | grep 'Dir::Etc'
Dir::Etc "etc/apt/";
Dir::Etc::sourcelist "sources.list";
Dir::Etc::sourceparts "sources.list.d";
Dir::Etc::vendorlist "vendors.list";
Dir::Etc::vendorparts "vendors.list.d";
Dir::Etc::main "apt.conf";
Dir::Etc::netrc "auth.conf";
Dir::Etc::parts "apt.conf.d";
Dir::Etc::preferences "preferences";
Dir::Etc::preferencesparts "preferences.d";
Dir::Etc::trusted "trusted.gpg";
Dir::Etc::trustedparts "trusted.gpg.d";
root@Ichy:~#
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 17 2012, 19:07
Post #11
hzqr



Savagely Still
********
Group: Gold Star Club
Posts: 4,672
Joined: 13-May 09
Level 462 (Dovahkiin)


Try adding a repo manually. Assuming you followed the first post and installed Ubuntu 12.04:

CODE
mkdir -p /etc/apt; echo 'deb http://de.archive.ubuntu.com/ubuntu/ precise main' > /etc/apt/sources.list

Then start again from the "apt-get update" part.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 17 2012, 19:16
Post #12
blue penguin



in umbra, igitur, pugnabimus
***********
Group: Gold Star Club
Posts: 10,044
Joined: 24-March 12
Level 500 (Godslayer)


Very good, thanks Ichy. We have the diagnosis and the cure:

QUOTE(Ichy @ Nov 17 2012, 16:50) *

CODE
root@Ichy:~# cat /etc/apt/sources.list
cat: /etc/apt/sources.list: No such file or directory
root@Ichy:~#



and

QUOTE(Ichy @ Nov 17 2012, 17:03) *

CODE
root@Ichy:~# apt-config dump | grep 'Dir::Etc'
Dir::Etc "etc/apt/";
Dir::Etc::sourcelist "sources.list";
Dir::Etc::sourceparts "sources.list.d";
Dir::Etc::vendorlist "vendors.list";
Dir::Etc::vendorparts "vendors.list.d";
Dir::Etc::main "apt.conf";
Dir::Etc::netrc "auth.conf";
Dir::Etc::parts "apt.conf.d";
Dir::Etc::preferences "preferences";
Dir::Etc::preferencesparts "preferences.d";
Dir::Etc::trusted "trusted.gpg";
Dir::Etc::trustedparts "trusted.gpg.d";
root@Ichy:~#



Your atp-stuff (apt-get, apt-cache, apt-config, etc) is configured to use /etc/apt/sources.list but the file does not exist. In other words your advanced package tracker (apt) have no repositories to talk to.

The cure is easy, we will use apt-add-repository to add some ubuntu repositories. I will ask you to give me some time now to search for the correct repository for the version of ubuntu you are running (I don't wanna be responsible for breaking your brand new server).

From:
QUOTE

CODE
root@Ichy:~# uname -a
Linux Ichy 2.6.32-042stab063.2 #1 SMP Tue Oct 23 16:24:09 MSK 2012 x86_64 x86_64 x86_64 GNU/Linux



I can see a bunch of stuff about the operating system of this machine. But if you can tell me more about it, for example what the owners of the hardware itself told you the operating system is it might be helpful.

Will be back with you within a handful of hours.
If anyone knows the correct repo for this ubuntu version please fell free to post.



User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 17 2012, 19:17
Post #13
Ichy



~ Loli Trainer ~
***********
Group: Catgirl Camarilla
Posts: 13,061
Joined: 19-February 09
Level 500 (Dovahkiin)


I have [Stock]Ubuntu 11.10 x64. It is the newest version Bytesized has...
maybe aim fucked because of this?

CODE
root@Ichy:~# mkdir -p /etc/apt; echo 'deb http://de.archive.ubuntu.com/ubuntu/ precise main' > /etc/apt/sources.list
root@Ichy:~#

does nothing (IMG:[invalid] style_emoticons/default/cry.gif)

/edit: oh new post. brb will edit soon

/edit:

@ Blue penguin: I don't think it will be a problem if I break this box since it has some Control Panel called Solos VM where I can do a reinstall every time I want. I can even choose a Os:
Here a list of the ones I am allowed to choose:
CODE

CentOS 5
CentOS 5 - 2010-11-12

Debian 5
Debian 5 - 2010-11-12

Debian VarsBox
This is a customized version of Debian Linux. Out of the box, it is ready to run rtorrent + rutorrent. The first time you log in, VarsBox's home-brewed set up assistant will aid you in configuring your torrent client and creating a user account. Everything here is made to work out of the box, with no work or fumbling on your part.

Gentoo - Testing - 2011.08.11
Gentoo 2011.08.11 Image. Barebones, with only networking activated. Everything else will need to be manually configured. Make sure you read the Gentoo manuals.

Slackware-13.37-x86_64
Slackware 13.37 64bit

Ubuntu 10.04
Ubuntu 10.04 - 2011-07-26     

[Custom] Debian 5 - BySH v1.1.2
This template comes with rTorrent/ruTorrent, Deluge, Transmission, VLC and some other goodies installed. Read this wiki page for the howto: http://wiki.bytesized-hosting.com/wiki/index.php/Bytesized_Debian5

    [Stock] CentOS 6
Stock CentOS 6 x86_64 image from OpenVZ's site. Untested and unsupported for now. Use at your own risk.

[Stock] Debian 5
Debian 5.0 template

[Stock] Debian 6
Debian 6 (Squeeze) image

    [Stock] Ubuntu 10.04 - 32Bit
[Stock] Ubuntu 10.04 - 32Bit

[Stock] Ubuntu 10.04 x86_64
Clean image of Ubuntu 10.04 x86_64

[Stock] Ubuntu 11.04 32Bit
Ubuntu 11.04 32Bit

[Stock]Ubuntu 11.10 x64
Ubuntu 11.10 64bit stock image, clean OS ready for you to setup to your own measure :)


This post has been edited by Ichy: Nov 17 2012, 19:26
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 17 2012, 19:23
Post #14
hzqr



Savagely Still
********
Group: Gold Star Club
Posts: 4,672
Joined: 13-May 09
Level 462 (Dovahkiin)


CODE
echo 'deb http://de.archive.ubuntu.com/ubuntu/ oneiric main' > /etc/apt/sources.list; apt-get update;
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 17 2012, 19:25
Post #15
blue penguin



in umbra, igitur, pugnabimus
***********
Group: Gold Star Club
Posts: 10,044
Joined: 24-March 12
Level 500 (Godslayer)


QUOTE(Tiap @ Nov 17 2012, 17:23) *

CODE
echo 'deb http://de.archive.ubuntu.com/ubuntu/ oneiric main' > /etc/apt/sources.list; apt-get update;



Yup, my observations that is the repo as well.
Thanks Tiap
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 17 2012, 19:28
Post #16
Ichy



~ Loli Trainer ~
***********
Group: Catgirl Camarilla
Posts: 13,061
Joined: 19-February 09
Level 500 (Dovahkiin)


edited above and tried tiaps command. here the result!

CODE
root@Ichy:~# echo 'deb http://de.archive.ubuntu.com/ubuntu/ oneiric main' > /etc/apt/sources.list; apt-get update;
Ign http://de.archive.ubuntu.com oneiric InRelease
Get:1 http://de.archive.ubuntu.com oneiric Release.gpg [198 B]
Get:2 http://de.archive.ubuntu.com oneiric Release [40.8 kB]
Get:3 http://de.archive.ubuntu.com oneiric/main amd64 Packages [1226 kB]
Get:4 http://de.archive.ubuntu.com oneiric/main i386 Packages [1226 kB]
Get:5 http://de.archive.ubuntu.com oneiric/main TranslationIndex [3289 B]
Get:6 http://de.archive.ubuntu.com oneiric/main Translation-en [701 kB]
Fetched 3198 kB in 1s (2270 kB/s)
Reading package lists... Done
root@Ichy:~#


It did something! (IMG:[invalid] style_emoticons/default/happy.gif)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 17 2012, 19:37
Post #17
blue penguin



in umbra, igitur, pugnabimus
***********
Group: Gold Star Club
Posts: 10,044
Joined: 24-March 12
Level 500 (Godslayer)


You shall be able to follow with the rest of the tutorial now including
CODE

apt-get install openjdk-7-jre


Good luck,
Thanks again for Tiap,
if you struggel again shout,
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 17 2012, 19:42
Post #18
Ichy



~ Loli Trainer ~
***********
Group: Catgirl Camarilla
Posts: 13,061
Joined: 19-February 09
Level 500 (Dovahkiin)


noooooooo!

CODE
root@Ichy:~# apt-get install openjdk-7-jre
Reading package lists... Done
Building dependency tree... Done
Package openjdk-7-jre is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'openjdk-7-jre' has no installation candidate
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 17 2012, 19:45
Post #19
blue penguin



in umbra, igitur, pugnabimus
***********
Group: Gold Star Club
Posts: 10,044
Joined: 24-March 12
Level 500 (Godslayer)


QUOTE(Ichy @ Nov 17 2012, 17:42) *

noooooooo!

CODE
root@Ichy:~# apt-get install openjdk-7-jre
Reading package lists... Done
Building dependency tree... Done
Package openjdk-7-jre is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'openjdk-7-jre' has no installation candidate



Ekhm... crap,
lets try again that one:
CODE

apt-cache search jre


if it does not give any output we will dump more repositories (it might be that jre/jdk is in third party not main repository)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

 
post Nov 17 2012, 19:56
Post #20
Ichy



~ Loli Trainer ~
***********
Group: Catgirl Camarilla
Posts: 13,061
Joined: 19-February 09
Level 500 (Dovahkiin)


CODE

root@Ichy:~# apt-cache search jre
default-jre - Standard Java or Java compatible Runtime
default-jre-headless - Standard Java or Java compatible Runtime (headless)
docbook-xsl - stylesheets for processing DocBook XML to various output formats
gcj-4.4-jre - Java runtime environment using GIJ/classpath
gcj-4.4-jre-headless - Java runtime environment using GIJ/classpath (headless version)
gcj-4.4-jre-lib - Java runtime library for use with gcj (jar files)
gcj-4.6-jre - Java runtime environment using GIJ/classpath
gcj-4.6-jre-headless - Java runtime environment using GIJ/classpath (headless version)
gcj-4.6-jre-lib - Java runtime library for use with gcj (jar files)
gcj-jre - Java runtime environment using GIJ/classpath
gcj-jre-headless - Java runtime environment using GIJ/classpath (headless version)
icedtea-6-jre-cacao - Alternative JVM for OpenJDK, using Cacao
icedtea-6-jre-jamvm - Alternative JVM for OpenJDK, using JamVM
libreoffice - office productivity suite
openjdk-6-jre - OpenJDK Java runtime, using Hotspot JIT
openjdk-6-jre-headless - OpenJDK Java runtime, using Hotspot JIT (headless)
openjdk-6-jre-lib - OpenJDK Java runtime (architecture independent libraries)
root@Ichy:~#


Found something!
User is offlineProfile CardPM
Go to the top of the page
+Quote Post


15 Pages V  1 2 3 > » 
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 


Lo-Fi Version Time is now: 25th April 2024 - 11:50