Giuseppe’s Weblog

Just another WordPress.com weblog

Archive for the ‘Linux’ Category

Creare un Ram Disk

nessun commento

su AIX

mkramdisk 40000
mkfs -V jfs /dev/ramdisk0
mkdir /pathToMyRamDrive
mount -V jfs -o nointegrity /dev/ramdisk0 /pathToMyRamDrive
chown myuser:mygroup /pathToMyRamDrive

umount /dev/ramdisk0
rmramdisk /dev/ramdisk0

su Linux

sudo mkdir /media/ramdisk
sudo mount /dev/ram0 /media/ramdisk/
sudo mount -t tmpfs -0 size=1G tmpfs /media/ramdisk/

Written by gfiorito

Marzo 20, 2009 alle 9:10 am

Pubblicato in HowTo, Linux

X11 tcp trouble

nessun commento

abilitare che gli host remoti possano connettersi lanciado il comando:

xhost +

exportare il DISPLAY:

export DISPLAY=<ip_x_host>:0.0

per verificare che ci siano connessioni attive in ascolto:

netstat --tcp --listen | grep x11

se non ve ne sono, verificare il file di configurazione gdm.conf la riga:

DisallowTCP=false (diu default sta a true)

(il file sotto ubuntu e’ in /etc/gdm/gdm.conf eventualmente cercarlo sotto /etc, con il comando find /etc |grep gdm.conf)

Written by gfiorito

Giugno 27, 2008 alle 12:20 pm

Pubblicato in HowTo, Linux, Ubuntu

Static routes Ubuntu

nessun commento

Creare un file eseguibile nella cartella:
/etc/network/if-up.d/

con le rotte statiche da aggiungere come nell’esempio:

#!/bin/sh
# Set static routes
#
/sbin/route add -net 10.10.22.0/24 gw 10.10.20.254 dev eth0
/sbin/route add -host 10.10.10.50 gw 10.10.20.254 dev eth0

Written by gfiorito

Maggio 14, 2008 alle 10:04 am

Pubblicato in HowTo, Linux, Ubuntu