PDA

View Full Version : Arch Linux



sb89
02-03-11, 16:04
I've been using Ubuntu for a while now and want to explore Linux a bit more. I've heard about Arch and from what I've read it's a lot more customisable. So does anyone know of any tutorials/guides I should look at for getting started?

mrnothersan
02-03-11, 20:22
Here is a Beginners guide straight off their website:

https://wiki.archlinux.org/index.php/Beginners'_Guide

:)

iGoD ReLeNtLeS
02-03-11, 21:06
i would say try it in a virtual machine whilst you get to know how to use it ;) i found it quite a big jump from ubuntu :)

Lorem-Ipsum
02-03-11, 21:59
I am an arch linux user and will never go back to anything else. You do have to build it from scratch but if you follow the beginner's guide and are reasonably familiar with the command line you shouldn't run into any problems.

sb89
03-03-11, 11:49
I'm definately going to give it a go. Bought a new hard drive (just waiting for it to be delivered) since my current one is starting to fail. Hopefully arrives tommorow and I can get started.

I've dual booted before, can't remember the order thats best to install the OS's. It's Windows then Linux right?

Lorem-Ipsum
03-03-11, 12:05
I'm definately going to give it a go. Bought a new hard drive (just waiting for it to be delivered) since my current one is starting to fail. Hopefully arrives tommorow and I can get started.

I've dual booted before, can't remember the order thats best to install the OS's. It's Windows then Linux right?

Yes windows then linux should work fine.

You can do it the other way round but it takes more effort.

sb89
08-03-11, 17:02
Got it all up and running now. Just one question though. Is there a terminal command that will remove unneeded packages that aren't being used? For example a package that was installed because it was a dependancy but the package that depended on it is now removed.

Just looking for a command to tidy the system up.

andyn
08-03-11, 17:14
A bit trickier than it first seems, because of course just because a package has no other packages depending on it, it doesn't necessarily follow that it's unwanted :).

However, a bit of google-jitsu turns up the following:

http://ubuntuforums.org/archive/index.php/t-20001.html

Has some discussion on the topic.

Lorem-Ipsum
08-03-11, 17:23
A bit trickier than it first seems, because of course just because a package has no other packages depending on it, it doesn't necessarily follow that it's unwanted :).

However, a bit of google-jitsu turns up the following:

http://ubuntuforums.org/archive/index.php/t-20001.html

Has some discussion on the topic.

That's just for ubuntu/apt based systems.

Remove unneeded dependencies: pacman -Rs $(pacman -Qtdq) - Dangerous as it can remove packages you still want.
Remove package and its unneeded dependencies: pacman -Rs

andyn
08-03-11, 17:27
Ah, sorry, misread.

Same principle though with both systems, it's best when removing a package to remove the unneeded dependencies at that time, because it's much more difficult to come along later and work out which packages you are actually using and which ones you aren't.

youngTY
09-03-11, 08:52
I've been using Ubuntu for a while now and want to explore Linux a bit more. I've heard about Arch and from what I've read it's a lot more customisable. So does anyone know of any tutorials/guides I should look at for getting started?

I may have to download this, I have used Ubuntu and the Mint Debian edition but never used Arch. :)

sb89
09-03-11, 13:19
Another question.

I'm currently coding a distributed program for one of my uni projects. Everytime I try to connect with the client to the server, I'm given a "Connection refused to host: 127.0.01" error.

I done some reading and think I've found the problem. It's something to do with my hosts file.



#
# /etc/hosts: static lookup table for host names
#

#<ip-address> <hostname.domain.org> <hostname>
127.0.0.1 localhost.localdomain localhost steven

# End of file


I'm supposed to add my actual ip or something but I'm not sure what exactly I have to change/add. Any help would be appreciated.

andyn
09-03-11, 13:24
/etc/hosts is just a shortcut way of mapping names to numbers, basically it predates the existence of DNS - it's a primitive way of doing the same thing.

127.0.0.1 is the 'local host', it's known as the loopback connection, basically it's a 'virtual' IP address mapping to the machine you are on

First question is: are the client and the server running on the same machine?

Second question is: which IP address and port(s) are the server process binding to?

sb89
09-03-11, 13:46
/etc/hosts is just a shortcut way of mapping names to numbers, basically it predates the existence of DNS - it's a primitive way of doing the same thing.

127.0.0.1 is the 'local host', it's known as the loopback connection, basically it's a 'virtual' IP address mapping to the machine you are on

First question is: are the client and the server running on the same machine?

Second question is: which IP address and port(s) are the server process binding to?

Client and Server both run fine what run on the same machine. Trying them on different machines is when the problem occurs.

Is what happens when I run the the server the way we were told to do
Registering rmi://localhost.localdomain:50010/ShoutService

EDIT:Got it working
changed it to

#
# /etc/hosts: static lookup table for host names
#

#<ip-address> <hostname.domain.org> <hostname>
127.0.0.1 localhost.localdomain localhost
192.168.0.2 steven

# End of file

andyn
09-03-11, 13:53
Still not sure exactly what you are doing.

But basically the client will need to connect to the server using the IP address or a valid network name for that server's network connection.

EG. if you server (machine) is 192.168.1.1, and your server (application) has bound to that ethernet interface on port 100 then the client would need to connect to that IP address, port 100.

If the server (app) is only bound to the localhost interface, it's never going to be possible to connect to it from a different machine. Localhost (127.0.0.1) ALWAYS means 'this machine where the code is running right now'.

So as I said, you need to establish which externally accessible interfaces and ports the server application is bound to. And then you need to configure the client to connect to that address and port.

sb89
09-03-11, 13:56
Got it working now. Cheers for your help anyway.

It is a bit odd trying to explain it as we're using java rmi. Basically I have to build a client and server for a MUD.