ubuntu

Install APC on ubuntu

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

ubuntu + gnome-shell + lightdm

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

boot space is over

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 

 

compass watch errror due fssm

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

mounting nfs shares

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)

kernel panic – not syncing: VFS: unable to mount root fs on unknown-block(0,0)

#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




Add local folder to sources.list

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

 

Netbeans 7.1 on Ubuntu 10.10 with java 7 oracle

This not true, I've gone back to 6.9 waiting for an officiale solution.... :(

Recently I tried Netbeans 7.x beta / rc but seemed really slow. So I've tryeed to use the oracle java instead of openjdk

Package can be downloaded there:

http://www.oracle.com/technetwork/java/javase/downloads/index.html

Installing mod-security on ubuntu 10.04

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

Install ubuntu server from usb without cd

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! :)

Subscribe to RSS - ubuntu