OverWorked Posted June 29, 2006 Posted June 29, 2006 I've decided to take the plunge into the murky world of Linux by giving myself a project. I'm going to set up a Linux Intranet server and run a CMS on it. Ubuntu 6.06 Dapper Drake seems to be popular so I've gone with that. I've tried the LAMP server installation, and also the generic server, working through Perfect Setup. Apache is working, as I can browse to the machine and get the default Apache page. Now, how do I get my web site onto the server? Ubuntu doesn't seem to have a ftp server installed, and I'm having real dificulty installing one. I've added more repositories, like this. I keep getting :- root@web1:~# apt-get install proftpd proftpd-common ucf Reading package lists... Done Building dependency tree... Done E: Couldn't find package proftpd root@web1:~# I've tried accessing the repositories via a browser. The only one I can see is freecontrib.org. Is this normal? [Whilst typing this I've tried apt-get update. It seems to be getting security.ubuntu.com, but not archive... I did this yesterday and it took 3 hours to complete - is there any way to stop it?] Thanks. I've learnt a lot in the last couple of days doing this, but have hit a wall now. :?
indie Posted June 29, 2006 Posted June 29, 2006 Do this: sudo cp /etc/apt/sources.list /etc/apt/sources.bak sudo nano -w /etc/apt/sources.list Delete any entries from the sources file and add the following, watch out for linewraps!: deb http://us.archive.ubuntu.com/ubuntu dapper main restricted deb-src http://us.archive.ubuntu.com/ubuntu dapper main restricted deb http://us.archive.ubuntu.com/ubuntu dapper-updates main restricted deb-src http://us.archive.ubuntu.com/ubuntu dapper-updates main restricted deb http://us.archive.ubuntu.com/ubuntu dapper universe deb-src http://us.archive.ubuntu.com/ubuntu dapper universe deb http://us.archive.ubuntu.com/ubuntu dapper-backports main restricted universe multiverse deb-src http://us.archive.ubuntu.com/ubuntu dapper-backports main restricted universe multiverse deb http://security.ubuntu.com/ubuntu dapper-security main restricted deb-src http://security.ubuntu.com/ubuntu dapper-security main restricted deb http://security.ubuntu.com/ubuntu dapper-security universe deb-src http://security.ubuntu.com/ubuntu dapper-security universe deb http://archive.ubuntu.com/ubuntu dapper multiverse deb-src http://archive.ubuntu.com/ubuntu dapper multiverse deb http://archive.ubuntu.com/ubuntu dapper-backports main restricted universe multiverse Then do: sudo apt-get update sudo apt-get install proftpd You might want to omit sudo if you're already logged in as root though!
CyberNerd Posted June 29, 2006 Posted June 29, 2006 ubuntu does have a ssh server, ssh can transfer files using sftp over port 22 (secure ftp) enable ssh apt-get install openssh-server go get winscp http://winscp.net/eng/index.php and try
CyberNerd Posted June 29, 2006 Posted June 29, 2006 also apt-cache search searchstrig is a good trick if you don't know the exact name of the package your trying to install
beeswax Posted June 29, 2006 Posted June 29, 2006 @Overworked: you might want to view this thread from the second page onwards. you're possibly a bit farther on than I am but you might find some useful stuff there.
Geoff Posted June 29, 2006 Posted June 29, 2006 CyberNerds approach is what we use here. Also grab putty for remote management. http://www.putty.nl
OverWorked Posted June 29, 2006 Author Posted June 29, 2006 @beeswax - I think you're slightly ahead, it's just that I haven't tried the GUI. I've just downloaded the Desktop version of Ubuntu, in case the server (non-GUI) is too much for me to start with. @Geoff - I'm already using putty, it's great. It has several advantages over directly using the console, like copy & paste with the mouse.
beeswax Posted June 29, 2006 Posted June 29, 2006 I couldn't get things (setting up a new mysql database for a start) to work with the gui, so re-installed the LAMP server again, did it command line, and voila! There's a database somewhere in there and I've got to access it. the LAMP server's not on any network at the moment (another reason for using the gui) so I'm wondering about just connecting peer to peer and learning how to do things remotely for the time being. I'm assuming that it all works similarly to any webhost which provides a database in that you log in to a control panel (would that be ipconfig?) and go on from there. another problem, of sorts, is that the server sits on the desk, just to the right of me, and it's just so easy to go over to it and work on it.
Geoff Posted June 29, 2006 Posted June 29, 2006 If you have a headless LAMP server (like ours) you might find installing phpmyadmin (apt-get install phpmyadmin) useful for doing database admin stuff.
beeswax Posted June 29, 2006 Posted June 29, 2006 by headless do you mean without a gui? I'll try to fit that in tomorrow tho' it's busy (half) day with an audit coming up.
Geoff Posted June 29, 2006 Posted June 29, 2006 Headless means minus a monitor and keyboard. Basically shoved in a cupboard with power and net connection.
beeswax Posted June 29, 2006 Posted June 29, 2006 so would headless descibe most techies' offices then?
ico2 Posted June 29, 2006 Posted June 29, 2006 Personally I find vsftpd the easiest ftp daemon to configure, I would guess it is in ubuntu.
OverWorked Posted July 7, 2006 Author Posted July 7, 2006 After a few days doing less interesting stuff, I've just got back to this and installed the Ubuntu LAMP server, just like beeswax. http://security.ubuntu.com is easily accessible, and I can update from this no problem. I still can't access anything on http://archive.ubuntu.com, or any of the sub domains, so I've commented out these entries from /etc/apt/sources.list Is the server down at the moment? I've been having this trouble for over a week now.
pete Posted July 7, 2006 Posted July 7, 2006 I still can't access anything on http://archive.ubuntu.com, or any of the sub domains, so I've commented out these entries from /etc/apt/sources.list Is the server down at the moment? I've been having this trouble for over a week now. gb.archive.ubuntu.com works fine from here as of now. I'm assuming you've set your proxy server? Mine's set in my ~/,bashrc: # Work Proxy HTTP_PROXY="http://proxyIP:80" http_proxy="http://proxyIP:80" ftp_proxy="http://proxyIP:80" FTP_PROXY="http://proxyIP:80" no_proxy="http://localservers" export HTTP_PROXY http_proxy ftp_proxy FTP_PROXY no_proxy my /etc/apt/sources.list uses ftp by default, looks like this and works. You don't want PLF or multiverse for a server though. deb [url]ftp://gb.archive.ubuntu.com/ubuntu/[/url] dapper main restricted deb-src [url]ftp://gb.archive.ubuntu.com/ubuntu/[/url] dapper main restricted ## Major bug fix updates produced after the final release of the ## distribution. deb [url]ftp://gb.archive.ubuntu.com/ubuntu/[/url] dapper-updates main restricted deb-src [url]ftp://gb.archive.ubuntu.com/ubuntu/[/url] dapper-updates main restricted ## Uncomment the following two lines to add software from the 'universe' ## repository. deb [url]ftp://gb.archive.ubuntu.com/ubuntu/[/url] dapper universe deb-src [url]ftp://gb.archive.ubuntu.com/ubuntu/[/url] dapper universe ## Uncomment the following two lines to add software from the 'backports' ## repository. deb [url]ftp://gb.archive.ubuntu.com/ubuntu/[/url] dapper-backports main restricted universe multiverse deb-src [url]ftp://gb.archive.ubuntu.com/ubuntu/[/url] dapper-backports main restricted universe multiverse deb [url]ftp://security.ubuntu.com/ubuntu[/url] dapper-security main restricted deb-src [url]ftp://security.ubuntu.com/ubuntu[/url] dapper-security main restricted deb [url]ftp://security.ubuntu.com/ubuntu[/url] dapper-security universe deb-src [url]ftp://security.ubuntu.com/ubuntu[/url] dapper-security universe ## PLF # deb [url]http://packages.freecontrib.org/ubuntu/plf/[/url] dapper free non-free # deb-src [url]http://packages.freecontrib.org/ubuntu/plf/[/url] dapper free non-free
Geoff Posted July 7, 2006 Posted July 7, 2006 You can also set the proxy for apt in /etc/apt/apt.conf Aquire::http::Proxy "http://proxy.lancsngfl.ac.uk:8080/";
OverWorked Posted July 7, 2006 Author Posted July 7, 2006 It seems like it's a problem with our LEA's ISP. No surprise there - we've had this sort of problem before with a few web sites and email servers unreachable. Techs in other schools have stories of strange DNS entries at the ISP. I've checked my proxy configuration in /etc/apt/apt.conf and it's correct. Besides, I can access security.ubuntu.com no problem, so that proves the entry for the proxy server is correct. From a browser on my XP desktop at work, I can access security... but not archive... . I'm writing this from home, where I've just set up Ubuntu LAMP server on a virtual machine, and it accesses the default repositories right out of the box with no reconfiguration. Fortunately, we're getting a new ISP next term, after years of poor service from the current one. @ Pete & Geoff: Sorry for taking your time, and thanks for the information. You've helped me narrow the cause of the fault.
Geoff Posted July 7, 2006 Posted July 7, 2006 Might be ECN support? echo 0 > /proc/sys/net/ipv4/tcp_ecn Alternatively it might be Window Scaling? echo 0 > /proc/sys/net/ipv4/tcp_window_scaling If doing either fixes the problem, then your ISP has a busted router that needs fixing.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now