Increase the size of /tmp (/usr/tmpDSK) partition in Linux?

How to increase the size of /tmp partition in Linux?
Proceed with the given steps:-
1) Stop MySql service and process kill the tailwatchd process. Additionally if you receive an error that /tmp is in use, do a “lsof |grep tmp” and see which processes use /tmp, and stop them.

[[email protected] ~]# /etc/init.d/mysqld stop
Stopping MySQL: [ OK ]
[[email protected] ~]# pstree -p | grep tailwatchd
Find the tailwatchd process id and kill it
[[email protected] ~]# kill -9 2522
2) Take a backup of /tmp as /tmp.bak
[[email protected] ~]#cp -prf /tmp /tmp.bak
3) Create a 2GB file in the avaliable freespace
[[email protected] ~]# dd if=/dev/zero of=/usr/tmpDSK bs=1024k count=2048
2048+0 records in
2048+0 records out
2147483648 bytes (2.1 GB) copied, 73.6908 seconds, 29.1 MB/s
[[email protected] ~]# du -sch /usr/tmpDSK
2.1G /usr/tmpDSK
2.1G total
4) Assign ext3 filesystem to the file
[[email protected] ~]# mkfs -t ext3 /usr/tmpDSK
mke2fs 1.39 (29-May-2006)
/usr/tmpDSK is not a block special device.
Proceed anyway? (y,n) y
Filesystem label=
OS type: Linux
262144 inodes, 524288 blocks
26214 blocks (5.00%) reserved for the super user
First data block=0
Writing inode tables: done
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 25 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
5) Check the file system type:-
[[email protected] ~]# file /usr/tmpDSK

/usr/tmpDSK: Linux rev 1.0 ext3 filesystem data (large files)
You may also use the following comands for making ext3 file system on a file:
[[email protected] ~]# mkfs.ext3 /usr/tmpDSK
[[email protected] ~]# mke2fs /usr/tmpDSK
6) Unmount /tmp partition
[[email protected] ~]# umount /tmp
7) Mount the new /tmp filesystem with noexec
[[email protected] ~]# mount -o loop,noexec,nosuid,rw /usr/tmpDSK /tmp
8) Set the correct permission for /tmp
[[email protected] ~]# install -d –mode=1777 /tmp
[[email protected] ~]# ls -ld /tmp
drwxrwxrwt 3 root root 4096 Feb 6 08:42 /tmp

( you may use the command chmod 1777 /tmp for doing the same )
[[email protected] ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda9 28G 6.4G 20G 25% /
/dev/sda8 99M 10M 84M 11% /boot
tmpfs 500M 0 500M 0% /dev/shm
/usr/tmpDSK 2.0G 68M 1.9G 4% /tmp
7)Restore the content of old /tmp.bkp directory
[[email protected] ~]# cp -rpf /tmp.bak/* /tmp
8) Restart the mysql and tailwathchd services.
[[email protected] ~]# /etc/init.d/mysql start
[[email protected] ~]# /scripts/restartsrv_tailwatchd
9)Edit the fstab and replace /tmp entry line with :-
/usr/tmpDSK /tmp ext3 loop,noexec,nosuid,rw 0 0
10) Mount all filesystems
[[email protected] ~]# mount -a

Check it now:-

[[email protected] ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda9 28G 6.4G 20G 25% /
/dev/sda8 99M 10M 84M 11% /boot
tmpfs 500M 0 500M 0% /dev/shm
/usr/tmpDSK 2.0G 68M 1.9G 4% /tmp


htop with freebsd

Most of the times i use htop to check cpu threads usage in linux. I have quite a few freebsd servers, so i ran into some issues when installing htop on vanilla freebsd. Well, you need to make some adjustments so that htop works,  so here it goes:

First you have to dynamically load the linux object in the kernel:

kldload linux

Then we have to make this loading permanent so addlinux_enable=”YES” to /etc/rc.conf.

After this, install a linux layer:

cd /usr/ports/emulators/linux_base-fc4 (for some strange reason fc6 is not working for me)
make install distclean

Go to /etc/fstab and add the following line:

linproc /compat/linux/proc linprocfs rw 0 0

Mount the new filesystem: mount linproc and go to/usr/ports/sysutils/htop and install as usual.


Linux TCP Tuning

Tuning TCP for Linux 2.4 and 2.6

NB: Recent versions of Linux (version 2.6.17 and later) have full autotuning with 4 MB maximum buffer sizes. Except in some rare cases, manual tuning is unlikely to substantially improve the performance of these kernels over most network paths, and is not generally recommended

Since autotuning and large default buffer sizes were released progressively over a succession of different kernel versions, it is best to inspect and only adjust the tuning as needed. When you upgrade kernels, you may want to consider removing any local tuning.

All system parameters can be read or set by accessing special files in the /proc file system. E.g.:

cat /proc/sys/net/ipv4/tcp_moderate_rcvbuf

If the parameter tcp_moderate_rcvbuf is present and has value 1 then autotuning is in effect. With autotuning, the receiver buffer size (and TCP window size) is dynamically updated (autotuned) for each connection. (Sender side autotuning has been present and unconditionally enabled for many years now).

The per connection memory space defaults are set with two 3 element arrays:

/proc/sys/net/ipv4/tcp_rmem – memory reserved for TCP rcv buffers
/proc/sys/net/ipv4/tcp_wmem – memory reserved for TCP snd buffers

These are arrays of three values: minimum, initial and maximum buffer size. They are used to set the bounds on autotuning and balance memory usage while under memory stress. Note that these are controls on the actual memory usage (not just TCP window size) and include memory used by the socket data structures as well as memory wasted by short packets in large buffers. The maximum values have to be larger than the BDP of the path by some suitable overhead.

With autotuning, the middle value just determines the initial buffer size. It is best to set it to some optimal value for typical small flows. With autotuning, excessively large initial buffer waste memory and can even hurt performance.

If autotuning is not present (Linux 2.4 before 2.4.27 or Linux 2.6 before 2.6.7), you may want to get a newer kernel. Alternately, you can adjust the default socket buffer size for all TCP connections by setting the middle tcp_rmem value to the calculated BDP. This is NOT recommended for kernels with autotuning. Since the sending side is autotuned, this is never recommended for tcp_wmem.

The maximum buffer size that applications can request (the maximum acceptable values for SO_SNDBUF and SO_RCVBUF arguments to the setsockopt() system call) can be limited with /proc variables:

/proc/sys/net/core/rmem_max – maximum receive window
/proc/sys/net/core/wmem_max – maximum send window

The kernel sets the actual memory limit to twice the requested value (effectively doubling rmem_max and wmem_max) to provide for sufficient memory overhead. You do not need to adjust these unless your are planing to use some form of application tuning.

NB: Manually adjusting socket buffer sizes with setsockopt() disables autotuning. Application that are optimized for other operating systems may implicitly defeat Linux autotuning.

The following values (which are the defaults for 2.6.17 with more than 1 GByte of memory) would be reasonable for all paths with a 4MB BDP or smaller (you must be root):

echo 1 > /proc/sys/net/ipv4/tcp_moderate_rcvbuf
echo 108544 > /proc/sys/net/core/wmem_max
echo 108544 > /proc/sys/net/core/rmem_max
echo “4096 87380 4194304” > /proc/sys/net/ipv4/tcp_rmem
echo “4096 16384 4194304” > /proc/sys/net/ipv4/tcp_wmem

Do not adjust tcp_mem unless you know exactly what you are doing. This array (in units of pages) determines how the system balances the total network buffer space against all other LOWMEM memory usage. The three elements are initialized at boot time to appropriate fractions of the available system memory.

You do not need to adjust rmem_default or wmem_default (at least not for TCP tuning). These are the default buffer sizes for non-TCP sockets (e.g. unix domain and UDP sockets).

All standard advanced TCP features are on by default. You can check them by:

cat /proc/sys/net/ipv4/tcp_timestamps
cat /proc/sys/net/ipv4/tcp_window_scaling
cat /proc/sys/net/ipv4/tcp_sack

Linux supports both /proc and sysctl (using alternate forms of the variable names – e.g. net.core.rmem_max) for inspecting and adjusting network tuning parameters. The following is a useful shortcut for inspecting all tcp parameters:

sysctl -a | fgrep tcp

For additional information on kernel variables, look at the documentation included with your kernel source, typically in some location such as /usr/src/linux-/Documentation/networking/ip-sysctl.txt. There is a very good (but slightly out of date) tutorial on network sysctl’s at

If you would like to have these changes to be preserved across reboots, you can add the tuning commands to your the file /etc/rc.d/rc.local .

Autotuning was prototyped under the Web100 project. Web100 also provides complete TCP instrumentation and some additional features to improve performance on paths with very large BDP.

De ce Open Source, nu poate supravietui fara Closed Source.

Articolul asta e ca raspuns la lunga rugaciune pe care a scris-o White-Wolf, ca si comentariu la postul despre warez, torrenti etc.

Se pare ca s-a pierdut ideea de open source in viziunea ta. De ce? Pentru ca, open source inseamna comunitate. Adica inseamna ca toti cei care FOLOSESC produsele, CONTRIBUIE.

In caz ca nu intelegi ce inseamna asta iti explic. Folosesti … wordpress care e open source, well, te apuci si codezi 2 3 plugins, apoi mai faci un bug fix, raportezi, si atunci de-abia inseamna ca faci parte din comunitate. Partea buna, e ca sunt destui care se plictisesc, au timp liber, sau sunt pasionati de coding, care stau si fac, pentru ca noi sa ne bucuram de ceea ce inseamna open source. Hell, poate ca nici un multumesc nu am zis niciodata la nici unul din developerii care au creat suita de programe open source care le folosesc. Nu conteaza. Conteaza urmatorul punct:

Conteaza SCOPUL in care folosesti tot ce vrei sa folosesti.

Eu sunt genul de om care imi place sa mearga tot ce am nevoie, cand am nevoie, pentru ca lucrez, si nu am timp sa fac debugging si bullshit. Se numeste pierdere de timp. Pentru asta folosesc pe laptop, windows Vista, si nu Ubuntu, sau alte distributii de linux.

De ce?

Pentru ca nu am chef sa stau sa folosesc nush ce program, sa imi crape, si sa trebeasca sa stau sa citesc logul de erori, si sa imi dau seama ca am nevoie de un patch, care ma duc pe pagina si developerii (care NU SUNT PLATITI) le-a fost lene sa implementeze un patch oficial, asa ca imi pierd vreo 3 ore sa caut pe forumuri si sa citesc pentru un fix.

Open source mai inseamna si ‘this software is provided AS IS’. Translatare in limba romana : Daca nu iti merge asta e frate nu ne plateste nimeni, si daca noi am decis sa mergem sa bem bere in loc sa facem un fix la program inseamna ca tu poti sa meri linistit sa cauti o alternativa. Si sa pierzi timp bineinteles.

M-am tot invartit in jurul degetului si nu am venit cu concluzia:

Open source = 0 Fara paid source. Foarte clar si foarte simplu. Atata timp cat pentru crearea unui lucru, omul este platit, si lucreaza pe bani, nu pe donatii care vin daca vin, daca nu nu vin, asta e. Produsul iese oarecum bun, dar FUNCTIONAL. Imi permit oricand sa ma duc si sa dau un telefon pentru un program care l-am cumparat : hey sefu` ce-i asta? vreau sa mearga, acum.

Tu ai impresia ca e un stol de randunele, care stau si lucreaza pentru Open source, sau vreo 10 negri mititei care fac coding 24/7 care nu au nevoie de mancare si apa, pentru ca singura lor satisfactie e sa faca coding.

Get serious dude 🙂 Open source e o alternativa, da recunosc, pentru cei care au timp la dispozitie, si chef, de munca, atunci cand dau drumu la film si nu gaseste codecu sa stau sa caut codecs, sau sa schimb playerul, etc etc etc. Crapa X-u. Nu mi-am facut updates la linux si s-a gasit unu care sa trimita spam de pe el. Dude get serious. Traim intr-o lume mare.

Nu spun ca Open source e wrong. Doamne fereste. E good, very good, pentru ca e o tona de informatie, care ajuta creierele noi, sa asimileze mai repede, si sa faca ceva brilliant. Dar, fara closed source, open source ar fi inexistent, pentru ca majoritatea developerilor din open source projects, au joburi, si lucreaza pentru proiecte care sunt closed source, si care le asigura un VENIT, si bani de mancare, pentru ca daca tie ti se rupe LAAARG, atunci nu te vad donand 10 $ pentru un apache project or whatever.

Ma duc sa fumez.

Discutii cu hackeri

[12:18] un_hacker: ia ma hosting moka . pt hacleri care for sa puna spam primu plan dela de acolo . intrati si facetiva va tine pagina 1 saptamana . bft la treaba 😉
[12:20] eu: din cauza la hacleri ca voi se duc pe pula si intra le belele oameni care vor sa faca chestii legale. ca e mai simplu sa furi decat sa muncesti pentru 1 ban
[12:20] un_hacker: mai simplu
[12:20] un_hacker: 😉
[12:21] eu: yeah mai simplu de ajuns la parnaie
[12:21] un_hacker: lol
[12:21] un_hacker: ma cati bani investeti tu in senzor
[12:21] un_hacker: asa
[12:21] un_hacker: cu aproximatie
[12:21] eu: well
[12:21] eu: toate serverele ma costa ..
[12:21] eu: cam **** $ pe luna
[12:21] un_hacker: aham
[12:21] un_hacker: cate server ai
[12:21] un_hacker: 7
[12:21] un_hacker: nu?
[12:21] eu: 9
[12:21] un_hacker: lol
[12:21] un_hacker: asa
[12:21] eu: cu inca 4 incoming
[12:22] un_hacker: si iti ies bani astia
[12:22] un_hacker: inapoi
[12:22] un_hacker: ?
[12:22] eu: =))
[12:22] un_hacker: zi ma
[12:22] eu: profitul meu lunar
[12:22] eu: legal
[12:22] eu: in cont
[12:22] eu: e de ***** $
[12:22] un_hacker: cat peste ****
[12:22] un_hacker: ai peste
[12:22] un_hacker: ?
[12:22] un_hacker: lol
[12:22] un_hacker: de unde
[12:22] un_hacker: ca nai cum atata
[12:22] un_hacker: :))
[12:22] eu: oh really
[12:23] eu: da ce crezi ca eu stau sa dau la peste ca voi?
[12:23] eu: sa prind carduri si sa ciordesc la oameni banii?
[12:23] un_hacker: pai cat e un bnc ma
[12:23] eu: habar naveti de la cine furati bani
[12:23] eu: a fost odata unu care a cumparat cu paypal
[12:23] eu: server
[12:23] eu: si s-a dovedit ca omu de la care furase
[12:23] eu: era pensionar
[12:23] eu: avea 60 ani
[12:23] un_hacker: si ?
[12:23] eu: hahahhaa
[12:23] eu: si ?
[12:24] eu: n-aveti pic de constiinta ma? :)))
[12:24] un_hacker: dal dracu de american
[12:24] un_hacker: are bani in cont
[12:24] un_hacker: se uita el
[12:24] un_hacker: la bani cate ii iau eu
[12:24] un_hacker: de 500 – 1000 de pe cont
[12:24] eu: nu toti au bani sa stii
[12:24] eu: nu toti americanii is full de bani
[12:24] eu: si partea a doua
[12:24] eu: e ca el a muncit sa stranga banii aia
[12:24] eu: tu vii si ii furi
[12:24] un_hacker: cine ii fura ma
[12:24] un_hacker: ;))
[12:25] un_hacker: eu nu muncesc
[12:25] un_hacker: pt bani aia
[12:25] un_hacker: dau spam
[12:25] un_hacker: zi de zi
[12:25] un_hacker: =))
[12:25] un_hacker: stau cu fata atata timp in fata la calc
[12:25] un_hacker: etc
[12:25] eu: de-aia o sa ajunteti toata viata sa munciti pentru altii :))))
[12:25] eu: ca atat va duce capu
[12:25] eu: pentru 500 1000 $
[12:25] un_hacker: lol
[12:25] eu: mai mult nu vedeti
[12:25] un_hacker: =))
[12:25] eu: =))
[12:25] un_hacker: pai ba
[12:25] un_hacker: eu zic ca scot
[12:25] un_hacker: 500 – 1000
[12:25] un_hacker: de pe fiecare card
[12:25] un_hacker: a sa nu ma toarne garda
[12:25] un_hacker: ca limita si asigurarea la banca din us
[12:26] un_hacker: este 1300 – 1400
[12:26] un_hacker: si eu iau ca si cum ar fi luati din asigurare
[12:26] un_hacker: pe 2 luni
[12:26] un_hacker: 😉
[12:26] un_hacker: intelgi
[12:26] un_hacker: 😉
[12:26] un_hacker: si nu prea se toarna
[12:26] un_hacker: oricum eu stau in spate rau de tot
[12:26] eu: nah .. niciodata nu o sa va inteleg.
[12:26] un_hacker: nu preama duc eu sA SCOT
[12:26] eu: pentru ca daca romania o sa ajunga doar o tara de hoti
[12:26] eu: asa cum se face acuma
[12:26] eu: ….
[12:26] eu: o sa dispara
[12:26] eu: tot
[12:27] eu: mortii masii va mai intrebati de ce merge rau in romania
[12:27] eu: pentru ca asa aveti toti mentalitatea
[12:27] eu: las ca e mai bine sa furam de la altii
[12:27] un_hacker: pai nui asa
[12:27] eu: ca pe noi nu ne duce capu sa facem bani
[12:27] un_hacker: eu nu FUR
[12:27] eu: mwahahhaha
[12:27] eu: lasa-ma ma
[12:27] un_hacker: cat timp stiu ca stau 4 ore pe zi in fata la calc.
[12:27] eu: esti in aceeasi oala
[12:27] eu: :))))
[12:27] eu: dai spam
[12:27] un_hacker: si dau spam
[12:27] eu: altu face cardurile
[12:27] un_hacker: si imi vin
[12:27] eu: altu ia banu
[12:28] eu: tot cacatu ala e
[12:28] un_hacker: eu am parte la zi ma
[12:28] un_hacker: de 2000
[12:28] un_hacker: si tu faci *****
[12:28] un_hacker: la luna
[12:28] un_hacker: 😐
[12:28] un_hacker: :))
[12:28] un_hacker: ce masina ai ma
[12:28] un_hacker: luati din bani legali
[12:28] un_hacker: ?
[12:28] eu: eu ?
[12:28] eu: acu dau de carnet
[12:28] eu: 🙂
[12:28] un_hacker: aha
[12:28] un_hacker: si nai masina a ?
[12:28] un_hacker: dar ce masina vrei sati ei
[12:29] un_hacker: la ce bani
[12:29] un_hacker: ?
[12:29] eu: maine am examen
[12:29] eu: daca il iau . prima masina e golf3 ca sa invat sa conduc
[12:29] eu: 7000 euro
[12:29] eu: nu
[12:29] eu: 8500 $
[12:29] eu: ca nush cat e in euro
[12:29] un_hacker: aham
[12:29] un_hacker: eu am bmw seria 5 ma
[12:29] un_hacker: …
[12:29] eu: si ? :)))
[12:29] un_hacker: pai zic
[12:29] un_hacker: tot mai bvine
[12:29] un_hacker: faci bani din ceea ce sa fac in romania
[12:29] un_hacker: bani
[12:29] un_hacker: sume mari
[12:29] un_hacker: la luna
[12:30] un_hacker: decat ***** mii
[12:30] eu: aia e bine pentru tine, care te multumesti sa furi de la altii
[12:30] eu: dar nu e bine pentru mine
[12:30] eu: care vreau sa simt ca am facut ceva
[12:30] eu: si ca am progresat
[12:30] eu: si ca nu sunt un retard
[12:30] un_hacker: pai progrsez
[12:30] un_hacker: vrei sa
[12:30] eu: si daca se sparge smecheria
[12:30] un_hacker: iau aku un brute
[12:30] eu: pula
[12:30] un_hacker: sa intru pe 127.190
[12:30] un_hacker: .mil
[12:30] un_hacker: ?
[12:30] un_hacker: =))
[12:30] eu: =)))
[12:30] un_hacker: progresez
[12:30] un_hacker: in cunostite ma…
[12:30] un_hacker: asta stai linistit
[12:30] un_hacker: Error in creating thread Error in creating thread
[12:30] eu: ce cunostinte is alea ma?
[12:30] un_hacker: iote
[12:30] eu: in ./
[12:30] eu: ?
[12:31] eu: ca iei un scanner si dai dupa roote?
[12:31] eu: :)))
[12:31] un_hacker: iau .gov`u si le termin
[12:31] eu: mwahahhaa
[12:31] un_hacker: le dau down
[12:31] eu: stii sa faci un exploit?
[12:31] eu: :))))
[12:31] eu: stii un pic de programare?
[12:31] un_hacker: da
[12:31] eu: stii sa repari un linux futut de un hacler ca tine?
[12:31] un_hacker: lol
[12:31] un_hacker: :))
[12:31] eu: stii sa instalezi macar un sistem de operare?
[12:31] un_hacker: ce intrebari is astea ma
[12:31] un_hacker: =))
[12:31] un_hacker: da
[12:31] un_hacker: loghic
[12:31] un_hacker: :))
[12:31] un_hacker: ca stiu sa instalez
[12:31] eu: windows
[12:31] un_hacker: linux si windowsu
[12:31] un_hacker: =))
[12:31] eu: =))
[12:31] un_hacker: la freebsd mam incurcat
[12:32] un_hacker: de era sami faram calc
[12:32] eu: neneeee :)))))
[12:32] eu: tottot hotie se numeste ce faci
[12:32] eu: si tot lamereala
[12:32] eu: :))))
[12:32] un_hacker: :4899 not_vnc4:wrong datas
[12:32] un_hacker: iote ma
[12:32] un_hacker: lol
[12:32] un_hacker: =))
[12:32] eu: ca ai tu bmw … fix pula
[12:32] un_hacker: pai da ma
[12:32] eu: bmw mil iau si eu mai greu
[12:32] eu: in vreo 4 luni
[12:32] eu: pula mea
[12:32] un_hacker: eu decat sa sau sai zic lu ala
[12:33] un_hacker: hai frate ia bncu
[12:33] un_hacker: ia pula de coaie frate
[12:33] un_hacker: mai bine
[12:33] eu: =))
[12:33] un_hacker: asa nu ma rog de nimeni sami deea bani
[12:33] un_hacker: etc
[12:33] un_hacker: imi iau singur
[12:33] eu: yes
[12:33] eu: logic
[12:33] un_hacker: ma servesc cat vreau
[12:33] un_hacker: =))
[12:33] eu: le bagi mana in buzunare la altii
[12:33] eu: =))
[12:33] eu: ce pula mea
[12:33] eu: asa o sa ajunga romania o natie de retards
[12:33] eu: care nu stiu decat sa fure
[12:33] un_hacker: lol
[12:34] eu: si te intrebi de ce se uita de-ampulea neamtu la tine
[12:34] eu: cand aude ca esti roman
[12:34] eu: sau cand mergi in anglia sa iti iei job
[12:34] un_hacker: :))
[12:34] un_hacker: in anglia
[12:34] eu: da pula mea :)))
[12:34] eu: asta e
[12:34] un_hacker: se fac bani multi
[12:34] un_hacker: 😀
[12:34] un_hacker: cu asta
[12:34] un_hacker: :X
[12:34] eu: =))
[12:34] un_hacker: e lira
[12:34] un_hacker: :X
[12:34] un_hacker: :))
[12:34] un_hacker: dachiar
[12:34] eu: da altceva stii?
[12:34] un_hacker: buna ideea
[12:34] eu: inafara de ciordeala?
[12:34] un_hacker: sa vad ce banci is pe acolo
[12:34] un_hacker: sa dau niste spamuri
[12:35] eu: oh well… hai ca nare sens
[12:35] un_hacker: da frate
[12:35] un_hacker: :))
[12:35] un_hacker: lol
[12:35] eu: am de invatat
[12:35] un_hacker: stiu
[12:35] un_hacker: femei
[12:35] un_hacker: bautura
[12:35] un_hacker: plm

Cannot install/update Click Be!/Fantastico/Universina?

If you have Fedora Core 5/6 or CentOS 5 or Red Hat Enterprise Linux 5 on your server and are experiencing troubles with respect to upgrades (forced or
otherwise) of Click Be! or Fantastico or Universina, please check the wget version that you have on your server.

If it is wget-1.10.2-3.3.fc5 or wget-1.10.2-7.el5 or wget-1.10.2-8.fc6.1, we suggest that you replace it immediately with an older and/or stabler
version. This version does not honor the “-P” switch.

An alternate version that we suggest is wget-1.10.2-3.2.1

You can use the following commands for this purpose:

rpm -qa wget ;
wget ;
rpm -e wget ;
rpm -ivh –force wget-1.10.2-3.2.1.i386.rpm ;
rpm -qa wget ;

Note: You must execute the commands shown above as root.

Reports suggest that the version of wget included with Fedora Core 7 does not have this problem, so that may be a better option for some people.

c’est foutu

[email protected] [/]# ls
-bash: /bin/ls: No such file or directory
[email protected] [/]# w
-bash: /usr/bin/w: No such file or directory
[email protected] [/]# ps aux
-bash: /bin/ps: No such file or directory
[email protected] [/]# ps
-bash: /bin/ps: No such file or directory
[email protected] [/]# ls
-bash: /bin/ls: No such file or directory
[email protected] [/]# w
-bash: /usr/bin/w: No such file or directory
[email protected] [/]# shutdown
-bash: /sbin/shutdown: /lib/ bad ELF interpreter: No such file or directory
[email protected] [/]# w
-bash: /usr/bin/w: No such file or directory
[email protected] [/]# ps x
-bash: /bin/ps: No such file or directory
[email protected] [/]# ls
-bash: /bin/ls: No such file or directory
[email protected] [/]# dmesg
-bash: /bin/dmesg: No such file or directory
[14:54] jugithamugi: oh
[14:54] jugithamugi: c’est foutu

Upgrading PostgreSQL on Cpanel Server

Guide available for CentOS / Fedora / RHEL

  • Make sure if you have postgresql intalled
    rpm -qa | grep postgres | tee /root/rpm_pgsql

    The above will list all the installed postgresql rpm packages and store the output to /root/rpm_pgsql. You can use this list to remove all the postgresql related rpm later.

  • Backup all your databases
    su postgres -
    mkdir backups 
    pg_dumpall > /var/lib/pgsql/backups/postgresql_backup

    exit will logout from the postgres user

  • Now stop the postgrsql daemon using the following command
    /sbin/service postgresql stop
  • Backup the whole database folder
    mv /var/lib/pgsql /var/lib/pgsql_old
  • Remove the old rpms using rpm -e, you can use the previously stored /root/rpm_pgsql to remove the postgresql rpm and its depended, for example the perl-DBD-pg depends on it. So you will be removing the /root/rpm_pgsql list + perl-DBD-gpFor example, it might differ on your servers
    rpm -e rh-postgresql-server
    rpm -e rh-postgresql
    rpm -e rh-postgresql-devel
    rpm -e rh-postgresql-python
    rpm -e rh-postgresql-libs
    rpm -e perl-DBD-Pg
  • Download the new version of postgreSQL from the postgresql download site into
    /usr/local/src or any directory you prefer.
  • After you have download the postgreSQL rpms from PostgreSQL download site.
    Download the following rpms


    To install

    rpm -Uhv postgresql*.rpm
  • After you have installed the new postgreSQL rpms login to WHM usinghttps://ip:2087
    under the SQL service Menu
    Postgres Config
    Install new configuration and change the password
  • To restore the old databases
    psql template1 < /var/lib/pgsql_old/postgresql_backup_file

    The above will restore the databases

  • Notes: This is a manual installation, on the current cPanel 11, /scripts/installpostgres will definitely do the job, the guide is pretty old, but still, this should be very easy to do.
  • VERY CAREFUL, in order to have apache/php working with postgres, you have to recompile, either from WHM, either from shell, with postgres support.

Original guide here

How do I disable the IPv6 protocol?

Red Hat Enterprise Linux 4 has Internet Protocol Version 6 (IPv6) enabled by default. In certain situations, it may be desirable to disable IPv6.

To do this, first remove this line from /etc/modprobe.conf if this line exists. (Most Red Hat Enterprise Linux systems will not have one).

alias net-pf-10 ipv6

Next, add the following line to /etc/modprobe.conf:

alias net-pf-10 off

Reboot the system. IPv6 support should now be disabled.

To re-enable IPv6, simply remove the alias net-pf-10 off line from /etc/modprobe.conf and reboot the machine.

UPDATE: the ipv6 still it’s not disabled, so we continue with:

Add to /etc/sysconfig/network file:   
/etc/sysconfig/network-scripts/ifcfg-XXXXX file;

Network updates and shit

Weee, aseara am reusit in final sa mutam pe noul server, care se numeste Psycho. Serverele eu le dau nume, la fel si compurilor 🙂 avem asa :

Primul meu comp, mai traieste si acum, e un Shuttle XPC – p4 1,8 512 mb ram, 160 gb drive, si se numeste Ariel

Compul mare, e primul comp cumparat din banii mei, si e un Intel Core2Duo 6400 2,13 ghz, cu 1 gb DDRAM, si 300 gb drive cred, si se numeste bineinteles katmai

Laptopul e primul laptop primit cadou :)))) si se numeste Laptop, si e un Intel Core Duo la 1.8, cu 120 gb drive si  1 gb ram

Serverul de shells, i se spune Rage, pentru ca are cea mai frumoasa configuratie : Dual Opteron 246, 4 gb DDRAM, si cu un hdd de 200 gb.

Server web 1 – P4 3.0, 2 GB DDRAM, 4 x 300 gb drives . I se spune Nemesis, pentru ca prima versiune de nemesis, a fost acum vreo 2 sau 3 ani, cand am hostat ze biggest DC++ hub din world, pentru 3 luni, care se intampla sa fie al meu si al lui Immune. Certuri cu isp-ul de atunci pentru banda folosita – 85mb/s constant timp de 3 luni era woow 🙂 dar am avut hub cu 12300 useri constant. I se spune nemesis, – pentru ca am confundat cu Phoenix, pasarea care se ridica etc, dar e ireparabil acum :))) asa ca a ramas nemesis, cu intelesul lui Phoenix pentru mine
Server Web 2 – i se spune Raptor, si a fost primul meu server pe care am pus mana, a trebuit formatat de 3 ori acum 5 ani, pentru ca nu imi intrasem in mana cu system updaterele pe linux.

Server web 3 – i se spune Inet, si e un AMD 3200+ cu 2 gb ddram

Server web 4 – i se spune Psycho, in memoria pisoiului lui Steve, care se numea Psycho, si care fura pizza din bucatarie si o tara prin sufragerie ca nu avea treaba sa se fereasca. Intel core2duo 1.8 ghz, 1 hdd wd raptorX 10krpm – 36 gb + 1 hdd 500 gb wd – 7200 rpm.

Cam atat despre numirea compurilor pe ziua de azi.

Anyways, am mutat gtop de pe raptor pe psycho. Ar trebui sa fie notata o performanta superioara, si un timp de incarcare mult mai scurt al site-ului.

a PS – pentru cei care ati avut probleme ieri cu accesarea web server nemesis si shell server rage, au existat modificari la retea, si a fost anulat uplinkul cu Cogent, in loc au intrat XEEX, si Tiscali. Se planifica se pare un BGP total de 71 gbps numai din Tier 1 providers. Probleme la routarea ip-urilor pe noii provideri se pare ca nu au fost, doar deconectarea totala, atunci cand s-a scos definitiv Cogent.

Ca sa dau o idee ce inseamna Cogent – OUT : inainte, un traceroute de la serverele din chicago pana in bucuresti, trecea prin 24 de noduri (hops), acum acest trace e facut in 7 hops, prin Tiscali. Testat ieri. Performantele ar trebui sa fie cu mult sporite. GG loving ISP.

Brb working la spam protection 🙂