wget -c http://the-failed-download-s.url
Archive for April, 2007
Resume a download with wget
Thursday, April 19th, 2007Change locale on Ubuntu to make MC usable with a non utf-8 capable terminal
Thursday, April 12th, 2007I like to use OpenSSH for Windows on my XP box, but unfortunately it does not understand utf-8.
Ubuntu, however forces utf-8.
balint@s-xxx:~$ locale
LANG=en_US.UTF-8
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
LC_ALL=
All we need to do is to remove the ‘.UTF-8′ from all listings, by inserting the following lines into our .bashrc (or the configuration file of the shell we use):
export LANG=en_US
export LC_ALL=en_US
Assign fix IP to an ethernet interface on Ubuntu
Thursday, April 12th, 2007Edit /etc/network/interfaces, and do it like this below:
Make sure, you have all interfaces listed and automatically started:
auto lo eth0 eth1
iface lo inet loopback
First uncomment the DHCP, if it was active for eth0:
# The primary network interface
#auto eth0
#iface eth0 inet dhcp
Now you can enter the fixed values for eth0:
#custom
iface eth0 inet static
address 10.1.1.233
netmask 255.255.255.0
network 10.1.1.0
broadcast 10.1.1.255
gateway 10.1.1.254
If you have more interfaces, type all in as abowe.
iface eth1 inet static
address 80.xx.xx.xx
netmask 255.255.255.0
broadcast 80.xx.xx.254
network 80.xx.xx.0
Configure pptpd vpn with ms-chapv2 and mppe on Ubuntu
Monday, April 2nd, 2007We’ve installed a NAT+VPN to get rid of Microsoft’s one, and implemented the same functionality with PoPToP version 1.3.0.
The necessary settings are the following:
1) try if you have the necessary kernel modules (in Ubuntu 6.10, all is included. if you don’t have them, you’re doomed - you need to re-compile your kernel)
modprobe ppp_mppe
modprobe ip_gre
if the reply is the well known unix’s golden silence, you need to add the modules to /etc/modules:
ppp_mppe
ip_gre
to have it loaded, and reboot.
2) Install pptpd
apt-get install pptpd
3) in /etc/pptpd.conf, have the following:
option /etc/ppp/options.pptpd
speed 115200
localip 10.1.1.10 #our eth0
remoteip 10.1.1.228-238 #our ip stack
listen xx.xx.xx.250 #our eth1
4) change /etc/ppp/options to the following:
lock
noauth
refuse-eap
refuse-chap
refuse-mschap
nobsdcomp
nodeflate
require-mppe-128
5) in /etc/ppp/pap-secrets, don’t forget to add the blank user and password
* *
4) use the following settings in /etc/ppp/options.pptp:
lock
name pptpd
proxyarp
asyncmap 0
-chap
-mschap
+mschap-v2
require-mppe
lcp-echo-failure 30
lcp-echo-interval 5
ipcp-accept-local
ipcp-accept-remote
This setup will work with any Windows 2000/XP client, and all pptp configs on Linuxes. (with regards to http://poptop.sourceforge.net/dox/radius_mysql.html)
Enjoy
Install XServer and Xfce4 on Ubuntu Server
Monday, April 2nd, 2007I just wanted to have a nice GUI on a test environment, so without getting 200 megabytes for xubuntu-desktop or 524 megabytes for ubuntu-desktop, I simply installed the following:
apt-get install xserver-xorg
apt-get install xfce4
with these packages - only about 40 megabytes to download - you’ll have a clean and working desktop.
I found some errors, possibly because I previously installed X.org, that I needed to
ln /usr/X11/Xorg -> /etc/X11/X
first, then
sudo Xorg -configure
to let it happen:)
NOTE: *make sure to have a mouse and a keyboard attached* or this setup will be broken.
Of course, you can enter
Option "AllowMouseOpenFail" "1"
into your xorg.conf > Section “ServerLayout”
If you too configure it via ssh and start X by error, and see the .XAthority file locked error, type:
xauth -b quit
