Inviato da luca il Gio, 02/05/2013 - 22:20
apt-get install libpcre3-dev php5-dev
sudo pecl install APC
sudo echo "extension=apc.so
apc.shm_segments=1
apc.shm_size=32
apc.ttl=7200
apc.user_ttl=7200
apc.enable_cli=1
apc.stat=1
apc.stat_ctime=1" > /etc/php5/conf.d/apc.ini
sudo service apache2 restart
#or
sudo service php5-fpm restart
Inviato da luca il Mer, 02/01/2013 - 09:46
Lightdm is quite faster than gdm so I'll use it. A brief log of operation required to use it. (installa package gnome-shell first)
sudo -s
#install a greeter, the login screen. unity-greeter seems buggy with gnome.
apt-get install lightdm-gtk-greeter
#set the greeter
nano /etc/lightdm/lightdm.conf
[SeatDefaults]
greeter-session=lightdm-gtk-greeter
user-session=gnome-shell
autologin-user=
#set gnome-shell as default
sudo /usr/lib/lightdm/lightdm-set-defaults -s gnome-shell
Inviato da luca il Sab, 29/12/2012 - 17:31
The following packages have unmet dependencies:
linux-image-server : Depends: linux-image-3.2.0-27-generic but it is not installed
E: Unmet dependencies. Try using -f.
apt-get install -f
...
(Reading database ... dpkg: error processing .. linux-image-generic
No space left on device
Inviato da luca il Sab, 13/10/2012 - 10:09
compass watch --trace
LoadError on line 70 of /usr/lib/ruby/vendor_ruby/sass/../compass/commands/watch_project.rb: no such file to load -- fssm
/usr/lib/ruby/vendor_ruby/sass/../compass/commands/watch_project.rb:70:in `perform'
/usr/lib/ruby/vendor_ruby/sass/../compass/commands/base.rb:18:in `execute'
/usr/lib/ruby/vendor_ruby/sass/../compass/commands/project_base.rb:19:in `execute'
/usr/lib/ruby/vendor_ruby/sass/../compass/exec/sub_command_ui.rb:43:in `perform!'
/usr/lib/ruby/vendor_ruby/sass/../compass/exec/sub_command_ui.rb:15:in `run!'
/usr/bin/compass:25
Inviato da luca il Sab, 22/09/2012 - 10:56
Server side
sudo apt-get install nfs-kernel-server nfs-common portmap
Define the exportable directories
Format is like
/dir ip/snet(option1,option2,optionN)
Don't add spaces between the ip and the parenteses of options!
nano /etc/exports
/data 192.168.10.0/24(rw,async)
For a full list of options see http://www.troubleshooters.com/linux/nfs.htm
Define network allow/deny to daemons (optional)
Inviato da luca il Sab, 16/06/2012 - 18:36
#rescue an ubuntu server from a livecd
apt-get install lvm2
# avviato disco lvm da interfaccia, non riuscendolo a fare da shell :(
#mount lvm disk group
vgscan
vgchange -a y
lvdisplay
# find path in /dev/[volume lvm]/*
mount /dev/earth/root /mnt
mount --bind /dev /mnt/dev
mount --bind /proc /mnt/proc
mount /dev/sda1 /mnt/boot
chroot /mnt
mount sys
# ls -n /boot/vmlinuz*
update-initramfs -u -k 2.x.x-x-generic-pae
grub2-install /dev/sda
reboot
Inviato da luca il Ven, 13/04/2012 - 14:34
After a fresh ubuntu install, I was missing the network drivers. So, copyied the install iso content on an usb, proceed adding reference to sources.list
nano /etc/apt/sources.list
## add local dir to lists, should contain a dists/ folder
deb file:///media/disk lucid main restricted
#refresh the packages list
apt-get update
apt-get install gcc
make install
Inviato da luca il Mer, 07/12/2011 - 15:26
Inviato da luca il Sab, 03/09/2011 - 09:06
ModSecurity: Open Source Web Application Firewall is a open source project that aim to secure web application running on webserver like Apache and block penetration or hacking attempt investigating in the body of http request.
I report some step I followed to install on my test web server
Inviato da luca il Ven, 01/07/2011 - 16:07
I've tryied installing ubuntu server (10.04-amd64) from usb on an Asus eee pc.
The installer blocked asking me specifyng a cdrom driver from where take installation files.
I found this
http://www.revouser.com/forum/viewtopic.php?f=7&t=794
(Thanks to ninebladed !)
that show how to mount an iso directly from the usb stick. and it work! :)