You are not logged in.
Hi,
I'v just completed a core installation of arch offline on my PC but i need an internet connection to install a desktop environment (LXDE) etc. I connect to the internet throught ethernet but the problem is im living in a dorm room with internet from a school network so i have to login with a username and password to access the internet. This is making arch think that i don't have a connection (which i guess i dont have at the moment..) I managed to do a net install of arch on my laptop by inserting an openSUSE live cd, loging in to the internet then quickly rebooting. This tricked the network into thinking i had logged in (for a short while) and this way i was able to install a desktop environment and firefox by repeating the procedure. This isn't working for me on my PC.
Is there any workaround to this problem? I've been searching the internet but havent found anything that works. I thought that i could possibly use my iPhone as a personal hotspot and connect it via usb but then i figured i probably need some software installed to do that.
Thank you for any help!
-D
Last edited by daarlinx (2012-01-17 22:21:06)
Offline
Chroot from liveCD.
Offline
I'm supposing you to login you open a webbrowser and it redirects you via a proxy server to the login page.
Have a look at that login page source code for the fields names.
Then have a look at the wget manpage.
and the option listed under "‘--post-file=file" there.
If you manage to figure it out with that, it is a one-liner when you start your network.
edit: Lennie's idea is way more KISS.
Last edited by Strike0 (2012-01-17 21:12:28)
Offline
I agree with Lennie, use chroot since you know you can connect via a Live CD.
I did something similar recently to get network running with a Gentoo install. It went something like this - by the way this isn't going to be a totally accurate script:
1) Boot to the Live CD and open a command prompt.
2) As root:
mkdir /mnt/arch
mkdir /mnt/arch/boot
mkdir /mnt/arch/var
The idea being that you create a folder below /mnt/arch (which will be your Arch /) for each of your partitions which you created when installing.
3) As root mount each of your partitions to the new folders:
sudo mount /dev/sda5 /mnt/arch/;
sudo mount /dev/sda6 /mnt/arch/boot;
sudo mount /dev/sda7 /mnt/arch/var;
sudo mount /dev/sda8 /mnt/arch/home;
Obviously your partition numbers need to replace those above.
4) Now you need to do the chroot but first you need a couple of things from the Live CD:
NOTE: I'm not sure about this part if you're using a Suse disc - maybe someone else can advise? An Arch Live CD / DVD would be handy here.
mount -t proc none /mnt/arch/proc
mount -o bind /dev /mnt/arch/dev
5) Now copy resolv.conf for the network:
cp -L /etc/resolv.conf /mnt/gentoo/etc/resolv.conf
6) Finally chroot into your Arch installation:
chroot /mnt/arch /bin/bash
env-update
source /etc/profile
You should now be in your Arch installation and be able to ping a server:
ping www.google.co.uk
From here you should be able to install whatever network tools you need. Be careful to make sure that you get all the mounts right of course. I can't guarantee this will work as written but it is pretty close I think.
Rich
Offline
Thanks for the help! I got it working by installing links (text based browser that comes on the core cd). All I had to do after that was run
dhcpcd
then start links and I could log on as usual
-D
edit: Yes Strike0, that is how I log in btw
Last edited by daarlinx (2012-01-17 22:24:05)
Offline