Archive for the 'Ubuntu / Debian' Category

Debian pptpd HOWTO

Installing MPPE Support Most people want their tunnels encrypted. Check the version of your kernel; if it is below 2.6.15-rc1 then you do not have MPPE support. To check further, test like this:

# modprobe ppp-compress-18 && echo success

If this fails, follow the Debian MPPE HOWTO, then return here.

Installing the Server ProgramInstall the pptpd package from the Debian Project:

# apt-get install pptpd



Configure IP Address RangeEdit the file /etc/pptpd.conf for the IP address range, for example:

localip 192.168.0.1
remoteip 192.168.0.234-238,192.168.0.245

Note: see pptpd.conf(5) for more details on the other options.Note: you will need to restart pptpd to make changes to /etc/pptpd.conf effective:

# /etc/init.d/pptpd restart



Adding UsersConfigure /etc/ppp/chap-secrets for the accounts, for example:

# echo “username pptpd password *” >> /etc/ppp/chap-secrets

Note: this method has all the usernames in one file. There are other ways, including authentication using Radius, or using Samba. Check the mailing list (subscribe, archives).Note: you do not need to restart pptpd, a change to chap-secrets is effective for the next connection.

TestingAttempt a connection from a client. On successful connection, a new interface should be created (e.g. ppp0), and the remote IP address of the interface should be pingable. If so, the rest of your problems are likely to be routing.Note: if you need to set up a Debian test client, see the PPTP Client Debian HOWTO. The test client cannot be on the same host, it doesn’t work.To diagnose faults, enable the options debug dump in /etc/ppp/pptpd-options. The change is effective on the next connection. The debug output goes to /var/log/debug, and the dump output and usual output to /var/log/messages.


PatchingIf you need to adopt a source code change made in CVS after the version you are running, see our Applying patches to Debian pptpd page.

Performance NotesOn a Debian system there may be scripts run by pppd when a network interface is brought up. These scripts are in the /etc/ppp/ip-up.d directory.Some of these scripts may run with incorrect assumptions … in particular the Debian Sarge exim4 package includes a script /etc/ppp/ip-up.d/exim4 that restarts exim4 or runs the queue. The assumption in this script is that the system has just connected to the internet through the PPP link.You may wish to customise this script. If your server has a default route via an ethernet interface, then either remove the script or add an exit command near the top.


Comments

If you have comments on this document, please send them to the author at james.cameron at hp.com. But if you need help, use the mailing list (subscribe, archives) so that we can share the load.

Sursa

Ubuntu PXE Install

hmmm trebuia sa instalez pe 23 de systeme windows/ubuntu :), sa instalez pe fiecare in parte nici nu intra in vorba puteam sa instalez pe un sistem si sa fac clona cu norton si sa arunc clona pe fiecare sistem in parte si era ok sau prin retea sa butez clona…..sau cum avem ubuntu server cu ldap si samba m-am hotarat sa fac prin network boot :D

http://wiki.koeln.ccc.de/index.php/Ubuntu_PXE_Install

What if…

Imi place :D ce sa spun linux on mobile si mai ales ubuntu mobile :D

Ubuntu Server 7.10: OpenLDAP + SAMBA Domain Controller

Nu de mult timp am ajuns admin de retea la fostul liceu >:) ca sa vezi :P si cum un admin de retea nu prea are ce sa faca daca nu se strica ceva a inceput plictiseala :( si una alta am reusit sa ard o sursa de la comp :) din greseala bineinteles :) a da si inainte de aia am instalat si configurat Active directory pe windows 2003 dar aveam o problema cu logarea dura cam foarte mult avei timp sa fumezi 2 tigari pana te loga :( :|

Continue reading ‘Ubuntu Server 7.10: OpenLDAP + SAMBA Domain Controller’

how to run a script at boot time?

cp file /etc/init.d/file

Change my example obove file with your scriptfile name.

chmod +x file

update-rc.d file defaults

Continue reading ‘how to run a script at boot time?’

How to install DHCP on Ubuntu/Debian

Assumed that “eth0″ is the interface for network card

IP Address 10.0.0.1

Range: 10.0.0.1 to 10.0.0.30

Subnet Mask: 255.255.255.224

DNS Servers: 193.226.98.1, 193.226.98.2

Domains:r2d2.dositei.ro

Gateway Address: 10.0.0.1

Continue reading ‘How to install DHCP on Ubuntu/Debian’

nano /etc/apt/sources.list

#
# deb cdrom:[Ubuntu-Server 7.10 _Gutsy Gibbon_ - Release i386 (20071016)]/ gutsy main restricted

#deb cdrom:[Ubuntu-Server 7.10 _Gutsy Gibbon_ - Release i386 (20071016)]/ gutsy main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
Continue reading ‘nano /etc/apt/sources.list’

PureFTPd And MySQL (Incl. Quota And Bandwidth Management)

Preliminary Note

In this tutorial I use the hostname openhell.org with the IP address 192.168.0.100. These settings might differ for you, so you have to replace them where appropriate.

Make sure that you are logged in as root (type in

sudo su

to become root), because we must run all the steps from this tutorial as root user. Also, if you want to use vi as your text editor (as suggested by this tutorial), you should run

Continue reading ‘PureFTPd And MySQL (Incl. Quota And Bandwidth Management)’

Basic Debian Source List

# Remember that you can only use http, ftp or file URIs

# CDROMs are managed through the apt-cdrom tool.
deb http://http.us.debian.org/debian stable main contrib non-free
deb http://non-us.debian.org/debian-non-US stable/non-US main contrib non-free
deb http://security.debian.org stable/updates main contrib non-free

# Uncomment if you want the apt-get source function to work
deb-src http://http.us.debian.org/debian stable main contrib non-free
deb-src http://non-us.debian.org/debian-non-US stable/non-US main contrib non-free
Sumber asal : www.debian.org