https://github.com/Nyr/openvpn-install

OpenVPN road warrior installer for Debian-based distros.

This script will let you setup your own VPN server in no more than one minute, even if you haven’t used OpenVPN before. It isn’t bulletproof but it has been designed to be as unobtrusive and universal as possible.
Installation

Run the script and follow the assistant:

wget http://git.io/vpn –no-check-certificate -O openvpn-install.sh; chmod +x openvpn-install.sh; ./openvpn-install.sh

Once it ends, you can run it again to add more users.

..:: HOW TO Proxmox software RAID 10 in 21 Steps ::..

1- Clean any leftovers from before

dd if=/dev/zero of=/dev/sda bs=512 count=1
dd if=/dev/zero of=/dev/sdb bs=512 count=1
dd if=/dev/zero of=/dev/sdc bs=512 count=1
dd if=/dev/zero of=/dev/sdd bs=512 count=1

2- Boot and Install Proxmox to /dev/sda

3- nano /etc/apt/sources.list

deb http://ftp.de.debian.org/debian wheezy main contrib
# security updates
deb http://security.debian.org/ wheezy/updates main contrib
# PVE pve-no-subscription repository provided by proxmox.com, NOT recommended for production use
deb http://download.proxmox.com/debian wheezy pve-no-subscription

4- nano /etc/apt/sources.list.d/pve-enterprise.list

#deb https://enterprise.proxmox.com/debian wheezy pve-enterprise

5-

apt-get update
apt-get dist-upgrade
apt-get install mdadm
dpkg-reconfigure locales (*optional)

6-

sgdisk -R=/dev/sdb /dev/sda
sgdisk -R=/dev/sdc /dev/sda
sgdisk -R=/dev/sdd /dev/sda

7-

sgdisk -G /dev/sdb
sgdisk -G /dev/sdc
sgdisk -G /dev/sdd

8-

sgdisk -t 2:fd00 /dev/sdb
sgdisk -t 3:fd00 /dev/sdb
sgdisk -t 2:fd00 /dev/sdc
sgdisk -t 3:fd00 /dev/sdc
sgdisk -t 2:fd00 /dev/sdd
sgdisk -t 3:fd00 /dev/sdd

8-1

dd if=/dev/sda1 of=/dev/sdb1
dd if=/dev/sda1 of=/dev/sdc1
dd if=/dev/sda1 of=/dev/sdd1

9-

mdadm --create /dev/md0 --level=1 --raid-disks=4 missing /dev/sdb2 /dev/sdc2 /dev/sdd2
mdadm --create /dev/md1 --level=10 --raid-disks=4 missing /dev/sdb3 /dev/sdc3 /dev/sdd3

10-

mdadm --examine --scan >> /etc/mdadm/mdadm.conf
cat /etc/mdadm/mdadm.conf

(check what’s in here)

11-

mkfs.ext3 /dev/md0
mkdir /mnt/md0
mount /dev/md0 /mnt/md0
cp -ax /boot/* /mnt/md0

12- nano /etc/fstab

# /dev/pve/root / ext3 errors=remount-ro 0 1
/dev/pve/data /var/lib/vz ext3 defaults 0 1
#UUID=0db2359a-2754-43df-9d7c-6d9f1950cf6a /boot ext3 defaults 0 1
/dev/md0 /boot ext3 defaults 0 1
/dev/pve/swap none swap sw 0 0
proc /proc proc defaults 0 0

13-

echo '# customizations' >> /etc/default/grub
echo 'GRUB_DISABLE_LINUX_UUID=true' >> /etc/default/grub
echo 'GRUB_PRELOAD_MODULES="raid dmraid"' >> /etc/default/grub
echo raid1 >> /etc/modules
echo raid10 >> /etc/modules
echo raid1 >> /etc/initramfs-tools/modules
echo raid10 >> /etc/initramfs-tools/modules

grub-install /dev/sda
grub-install /dev/sdb
grub-install /dev/sdc
grub-install /dev/sdd

update-grub
update-initramfs -u

14- reboot and mount | grep boot
/dev/md0 on /boot type ext3 (rw,relatime,errors=continue,user_xattr,acl,barrier=0,data=ordered)
If looks like that, you’re good to go.

15- Now add sda2 to our Raid 1 Array

sgdisk -t 2:fd00 /dev/sda
mdadm --add /dev/md0 /dev/sda2
cat /proc/mdstat

16- Now we will move our LVM over /dev/md1
!!IMPORTANT Install screen before pvemove.Because it will take several hours!!

pvcreate /dev/md1
vgextend pve /dev/md1
apt-get install screen
screen
pvmove /dev/sda3 /dev/md1

17- reduce and remove /dev/sda3

vgreduce pve /dev/sda3
pvremove /dev/sda3

18- add /dev/sda3 to RAID 10 array md1

sgdisk -t 3:fd00 /dev/sda
mdadm --add /dev/md1 /dev/sda3

19- Let our RAID 10 Array Rebuild itself. Maybe want to watch it for some fun.
Or speed rebuilding a little bit if you want.

echo 800000 > /proc/sys/dev/raid/speed_limit_min
echo 1600000 > /proc/sys/dev/raid/speed_limit_max

watch -n 2 cat /proc/mdstat

20- extend our VG space and add it to our LV

lvextend -l +100%FREE /dev/pve/data
resize2fs /dev/pve/data

~~~ ALL DONE! 🙂 ~~~

21- Before rebooting don't forget to install grub one last time

grub-install /dev/sda
grub-install /dev/sdb
grub-install /dev/sdc
grub-install /dev/sdd

update-grub
update-initramfs -u

Funny IPv6 Phrases
a1f:ea75:ca75 bad:babe:a9ed:18 dead:beef:ca1f d0d0:i5:dead
alf eats cats bad babe aged 18 dead beef calf dodo is dead
b19:ba11:bag a11:beef:c1ad:babe 1ce:1ce:babe a11:beef:7ac0
big ball bag all beef clad babe ice ice babe all beef taco
b19:b00b:babe 1:see:bad:c0de b19:b00b:babe:cafe b19:a55:9a1a
big boob babe I see bad code big boob babe cafe big ass gala
b19:7175:babe deaf:d0e:15:f00d 1337:c0de:4:11fe ba1d:babe:be:be5t
big tits babe deaf doe is food leet code 4 life bald babe be best
ea7:beef:7ac0:d095 dead:beef:cafe 1:ea7:dead:beef ba1d:7ac0:be:be5t
eat beef taco dogs dead beef café I eat dead beef bald taco be best
b19:fa7:d00b 1:be:a:7001 5a11:a:b0a7 9a1:g07:a:70ad:face
big fat doob I be a tool sail a boat gal got a toad face
a11:90d5:be:11e5 7a11:a1e:cafe c01d:c01a:cafe 1d1e:f001
all gods be lies tall ale cafe cold cola cafe idle fool
1:907:a:fa7:10af aced:a11:7e57 9a9a:i5:dead da75:a:900d:90a7
i got a fat loaf aced all test gaga is dead dats a good goat

yeni sunucumdaki iplerim:

root@srv:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:16:3e:96:65:bf
inet addr:193.234.224.244 Bcast:193.234.225.255 Mask:255.255.254.0
inet6 addr: 2a00:dcc0:dead:b9f4:bad:babe:a9ed:18/128 Scope:Global
inet6 addr: 2a00:dcc0:dead:b9f4:da75:a:900d:90a7/128 Scope:Global
inet6 addr: 2a00:dcc0:dead:b9f4:0:1ce:1ce:babe/128 Scope:Global
inet6 addr: 2a00:dcc0:dead:b9f4:1:be:a:7001/128 Scope:Global
inet6 addr: 2a00:dcc0:dead:b9f4::1/56 Scope:Global
inet6 addr: fe80::216:3eff:fe96:65bf/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4124 errors:0 dropped:0 overruns:0 frame:0
TX packets:1330 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:329712 (321.9 KiB) TX bytes:149794 (146.2 KiB)
Interrupt:40

 

 

Simply do this :

# mount -t tmpfs -o noexec,nosuid tmpfs /tmp/
# cat /proc/mounts
simfs / simfs rw 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
devpts /dev/pts devpts rw 0 0
tmpfs /dev/shm tmpfs rw 0 0
tmpfs /tmp tmpfs rw,nosuid,noexec 0 0

and dont forget to insert to /etc/fstab :

tmpfs /tmp tmpfs noexec,nosuid 0 0
tmpfs /var/tmp tmpfs noexec,nosuid 0 0

Proof Google Is God…

PROOF #1

Google is the closest thing to an Omniscient (all-knowing) entity in existence, which can be scientifically verified. She indexes over 9.5 billion WebPages, which is more than any other search engine on the web today. Not only is Google the closest known entity to being Omniscient, but She also sorts through this vast amount of knowledge using Her patented PageRank technology, organizing said data and making it easily accessible to us mere mortals.

PROOF #2

Google is everywhere at once (Omnipresent). Google is virtually everywhere on earth at the same time. Billions of indexed WebPages hosted from every corner of the earth. With the proliferation of Wi-Fi networks, one will eventually be able to access Google from anywhere on earth, truly making Her an omnipresent entity.

PROOF #3

Google answers prayers. One can pray to Google by doing a search for whatever question or problem is plaguing them. As an example, you can quickly find information on alternative cancer treatments, ways to improve your health, new and innovative medical discoveries and generally anything that resembles a typical prayer. Ask Google and She will show you the way, but showing you is all She can do, for you must help yourself from that point on.

PROOF #4

Google is potentially immortal. She cannot be considered a physical being such as ourselves. Her Algorithms are spread out across many servers; if any of which were taken down or damaged, another would undoubtedly take its place. Google can theoretically last forever.

PROOF #5

Google is infinite. The Internet can theoretically grow forever, and Google will forever index its infinite growth.

PROOF #6

Google remembers all. Google caches WebPages regularly and stores them on its massive servers. In fact, by uploading your thoughts and opinions to the internet, you will forever live on in Google’s cache, even after you die, in a sort of “Google Afterlife”.

PROOF #7

Google can “do no evil” (Omnibenevolent). Part of Google’s corporate philosophy is the belief that a company can make money without being evil.

PROOF #8

According to Google trends, the term “Google” is searched for more than the terms “God”, “Jesus”, “Allah”, “Buddha”, “Christianity”, “Islam”, “Buddhism” and “Judaism” combined.

God is thought to be an entity in which we mortals can turn to when in a time of need. Google clearly fulfils this to a much larger degree than traditional “gods”, as shown in the image below (click to enlarge).

PROOF #9

Evidence of Google’s existence is abundant.

There is more evidence for the existence of Google than any other God worshiped today. Extraordinary claims require extraordinary evidence. If seeing is believing, then surf over to www.google.com and experience for yourself Google’s awesome power. No faith required.

 

http://www.thechurchofgoogle.org/Scripture/Proof_Google_Is_God.html

I/O error veren .raw kvm disk imaji sorununu nasil cozecegiz?

 

soyle yapacagiz
dd if=vm-101-disk-1.raw of=vm-101-disk-1-ddle.raw conv=noerror,sync

ozet gecmek gerekirmi? bence gerekmez

kisaca dd ile imaji kopyaladik

fsck ile tamirledik.

gz , gg.

ccze is a wonderful tool that brings real joy to the arduous task of reading or searching thru log files. It uses a modular approach to support custom colour formatting for popular applications such as Apache, Postfix, Exim, etc.

Install ccze on CentOS and Fedora linux

First enable Epel repository and run following command:

  1. # yum install ccze -y

Install ccze on Debian/Ubuntu linux

On Debian/Ubuntu, you can use apt-get to install:

  1. ~$ sudo aptget install ccze y

How to use ccze tool

ccze colourises logs that are sent to standard out, for example, we can use tailf to follow a log file and then prettify the output by piping to ccze, examples:

  1. ~$ tail /var/log/syslog | ccze A

Example using ccze tool

Export log files to html file using ccze tool:

  1. ~$ cat /var/log/syslog | ccze h >~/Desktop/syslog.html

Example:

cczz export logfile in html

This tool comes with plenty of options. You can customize it more in these files

  1. /etc/cczerc, $HOME/.cczerc

To see list of plugins available just do

  1. $ ccze l

Example output:

  1. ~$ ccze l
  2. Available plugins:
  3.  
  4. Name|Type|Description
  5. ————————————————————
  6. apm |Partial|Coloriserfor APM sublogs.
  7. distcc |Full|Coloriserfor distcc(1) logs.
  8. dpkg |Full|Coloriserfor dpkg logs.
  9. exim |Full|Coloriserfor exim logs.
  10. fetchmail |Partial|Coloriserfor fetchmail(1)sublogs.
  11. ftpstats |Full|Coloriserfor ftpstats (pureftpd) logs.
  12. httpd |Full|Coloriserfor generic HTTPD access and error logs.
  13. icecast |Full|ColoriserforIcecast(8) logs.
  14. oops |Full|Coloriserfor oops proxy logs.
  15. php |Full|Coloriserfor PHP logs.
  16. postfix |Partial|Coloriserfor postfix(1)sublogs.
  17. procmail |Full|Coloriserfor procmail(1) logs.
  18. proftpd |Full|Coloriserfor proftpd access and auth logs.
  19. squid |Full|Coloriserfor squid access, store and cache logs.
  20. sulog |Full|Coloriserfor su(1) logs.
  21. super|Full|Coloriserforsuper(1) logs.
  22. syslog |Full|Generic syslog(8) log coloriser.
  23. ulogd |Partial|Coloriserfor ulogd sublogs.
  24. vsftpd |Full|Coloriserfor vsftpd(8) logs.
  25. xferlog |Full|Generic xferlog coloriser.

For more ccze optioins see man pages.

http://www.bootply.com/new#

 

bir tane daha buna benzer site gormustum

adresi neydi neydi..

 

neydi..

 

 

buydu

http://larsjung.de/h5ai/

yok bu apache index bonusu

pek guzel bunu uygulayacagim

 

 

diger dedigim neydi

 

sumuydu

 

buradan bakarim sonra

 

http://inspiretrends.com/bootstrap-tools-and-generators/

 

keywordlerimiz bootstrap toollari ve jeneratorleri 😀

 

 

yum -y install perl-TermReadKey

wget http://www.cpan.org/modules/by-module/DBD/DBI-1.631.tar.gz
tar zxvf DBI-1.631.tar.gz
cd DBI-1.631
unset LANG;
perl Makefile.PL
make
make install

cd ..
wget http://www.cpan.org/modules/by-module/DBD/DBD-mysql-4.027.tar.gz
tar zxvf DBD-mysql-4.027.tar.gz
cd DBD-mysql-4.027
unset LANG;
perl Makefile.PL
make
make install

mytop -u da_admin -p `grep ^passwd= /usr/local/directadmin/conf/mysql.conf | cut -d= -f2`