—————————————————————————– #!/bin/bash username=someUser password=somePass externalip=your.servers.ip.adress apt-get -y –force-yes update apt-get -y –force-yes install pptpd cp -R /etc/ppp/pptpd-options /etc/pptpd.conf echo -e “ms-dns 8.8.8.8\nms-dns 8.8.4.4” >> /etc/pptpd.conf echo -e “localip 10.0.0.1\nremoteip 10.0.0.10-100” >> /etc/pptpd.conf echo -e “$username * $password *” >> /etc/ppp/chap-secrets iptables -t nat -A POSTROUTING -j SNAT -s 10.0.0.0/16 –to-source $externalip /etc/init.d/pptpd restart —————————————————————————– You […]
Month: June 2012
This explenation is for Debian 6.0, may differ slightly for other distros. First stop MySQL; /etc/init.d/mysql stop Create a bash script; vim /var/startmysql.sh Containing; #! /bin/bash ulimit -s 40 /etc/init.d/mysql start From now on, start MySQL using this bash script. But first, alter the MySQL config file; vim /etc/mysql/my.cnf In the [mysqld] part of the […]
vim /etc/udev/rules.d/70-persistent-net.rules Remove the first line (which should say eth0 at the end) Rename “eth1” in the second line (now the first, and probably only line) to “eth0” Save Reboot cp /etc/udev/rules.d/70-persistent-net.rules /var/70-persistent-net.rules.cpy sed -i ‘/SUBSYSTEM.*”eth0″/d’ /etc/udev/rules.d/70-persistent-net.rules sed -i ‘s/eth1/eth0/g’ /etc/udev/rules.d/70-persistent-net.rules
Requires: newspost rar par2 (install with apt-get) Note that if you want the at now command at the end of the bashes to work (ex. at now + 2 minutes) you have to have at installed ánd you need to include the full path to the script when running it. ex. nohup /var/bashes/rar_par.sh >> /dev/null […]
mkdir /var/newspost chmod 777 /var/newspost cd /var/newspost wget http://newspost.unixcab.org/download/newspost-2.1.1.tar.gz tar zxvf newspost-2.1.1.tar.gz cd newspost* make make install cd ~ rm -r /var/newspost If you get errors during make or make install, try the following command, and then try again. Open Command
1) Open up Command Prompt (CMD) 2)type in cd then the location of the file ex. cd C:\Windows.old\Users\Admin\AppData\Roaming\SecuROM\UserData 3)type in dir /x 4)Next to the file you want to delete it will say the files 8.3 name (ex. FILENA~1 or 9926~1) 5)type del then the files 8.3 name ex. del 9926~1 After this is done, […]
http://forums.bizhat.com/linux-freebsd-opensource/59013-how-install-windows-7-ubuntu-without-burnning-disc.html
1. Put the Windows 7 installation disc in the disc drive, and power cycle your PC after setting it to boot from CD Drive in BIOS. 2. Press a any key when you are prompted & select [language, time, currency, keyboard etc.] & click Next . Select Repair Your Computer option in the dialog window. […]
Run in background and redirect output to null nohup somecommand >> /dev/null 2>&1 & Example with mysql backup (I use it so it wont timeout over SSH): nohup mysqldump -A –password=password | gzip > /home/backups/somebackup.sql.gz | >> /dev/null 2>&1 &