Leo on April 3rd, 2009

apt-get install build-essential

Popularity: 1% [?]

Tags:

Source: http://ubuntuforums.org/showthread.php?t=791804

setup

1. sudo apt-get install apache2
2. sudo apt-get install openssl
3. sudo apt-get install ssl-cert

create ssl certificate:
sudo make-ssl-cert /usr/share/ssl-cert/ssleay.cnf /etc/ssl/private/localhost.pem

switch to apache sites configuration:
cd /etc/apache2/sites-available/

bakup the default configuration:
sudo cp default default.backup.date

be sure to listen the port 80 for the default:
sudo sed -i ‘1,2s/\*/*:80/’ default

create the ssl configuration:
sudo cp default ssl

set the ssl port:
sudo sed -i ‘1,2s/\*:80/*:443/’ ssl
sudo sed -i “3a\\\tSSLEngine On\n\tSSLCertificateFile /etc/ssl/private/localhost.pem” ssl

enable ssl:
sudo a2ensite ssl
sudo a2enmod ssl

restart apache2:
sudo /etc/init.d/apache2 restart

Popularity: 1% [?]

Tags:

AIX 5.3

1. Create a rc.local file in /etc/
2. Apply proper permissions
a.    chown root:sys /etc/rc.local
b.    chmod 744 /etc/rc.local
3. Add an entry in /etc/inittab so whenever the server is rebooted the script will be started.
a. mkitab -i rcnfs "rclocal:2:wait:/etc/rc.local > /dev/console 2>&1"
4. add your services to rc.local

Popularity: 1% [?]

Tags:

Leo on April 3rd, 2009

Just add the following entries in your /home/username/.profile

alias __A=`echo “\020″`
alias __B=`echo “\016″`
alias __C=`echo “\006″`
alias __D=`echo “\002″`
alias __H=`echo “\001″`
set -o emacs

Popularity: 1% [?]

Tags:

Leo on April 3rd, 2009

You have to change you limits

1. Open /etc/security/limits and assign to your username thw following:
oracle:
fsize = -1
core = -1
cpu = -1
data = -1
rss = -1
stack = -1
nofiles = -1

http://www.leonardoborda.com

Popularity: 1% [?]

Tags:

Taking into account you have already a working Openvpn server, follow the steps bellow to configure static ip address to Openvpn users:

1. Create a folder called ccd inside /etc/openvpn/.

#mkdir /etc/openvpn/ccd

2. Add the following line to the openvpn server configuration file:

client-config-dir ccd

3. In /etc/openvpn/ccd/ you will create one file for each user you want to have a fixed ip address. You must name the file exactly as the “common name” of the user certificate file. If you don’t know what is in his “common name” just run the following command to find it. It is right on the top, look for CN=user.

# root@srv-openvpn:~/openvpn/keys# openssl x509 -in user.crt -text |grep -i 'CN='|grep -i "Subject"

PS: in case the CN name has white spaces the file name will have to be created using “_”. eg. CN=Leo B the file name will be Leo_B.
4. Once created open the file and add the following line:

ifconfig-push 10.10.80.100 10.10.80.101

Use your own network of course. You can add ordinary Openvpn parameters into this file if you want. For example you can push another gateway for this specific user.

5. Restart Openvpn server and check whether the user has acquired the specified ip address.
And there we go!

Good luck!
Leonardo Borda

Popularity: 44% [?]

Tags:

Leo on March 20th, 2009

Grub
1. at the boot screen enter in edit mode:
1.1 Select the line that starts with kernel
1.2 Add at the end single
1.3 at the grub boot screen type ‘b’ to boot in user single mode.

LILO
1. at the LILO boot screen prompt or if you are using the graphical LILO, you press Ctrl-x to exit the graphical screen and go to the boot: prompt type:
1.1 linux single

Popularity: 1% [?]

Tags: ,

Leo on March 10th, 2009

1. Check who is connected to the tty

#who
srv-srv1:~/test# w
08:50:26 up 152 days, 15:53,  2 users,  load average: 0.00, 0.02, 0.01
USER     TTY      FROM              LOGIN@   IDLE   JCPU   PCPU WHAT
root     pts/0    wks1 08:27    0.00s  0.04s  0.00s w
root     pts/2    wks1 Mon09   15:41m  0.17s  0.17s -bash

2. Verify its PID
ps -u root |grep -i pts/2

3. kill the connection
# kill -9 <PID>

Popularity: 1% [?]

Tags: ,

Leo on March 6th, 2009

Photos about my travels around the world.

Popularity: 1% [?]

Leo on March 6th, 2009

Space reserved for projects that I have been working on.

Coming soon…

Popularity: 1% [?]