Friday, July 10, 2009

Pear Module in Ubuntu doesn’t work

I have tried this tips to install and configure Pear Module and check the Pear Module but when run my script this error still appear

Warning: require_once(System.php): failed to open stream:
No such file or directory in /path/to/check_pear.php on line 2

After did some checking, i found the culprit which is apparmor. I added pear include_path into apparmor.d/usr.sbin.apache2 then restart apparmor daemon.

Done, and now my php script can call pear module.

Tuesday, May 19, 2009

How to enable issue / banner message when user log in

Login as root and edit ssh config file:
# pico /etc/ssh/sshd_config
Find this variable in the config file
#Banner /etc/issue.net
Uncomment it and save the file.
Restart openssh server.
# /etc/init.d/ssh restart

Friday, February 20, 2009

How to enable banner message (MOTD) in Ubuntu (Linux) Login

Edit /etc/motd.tail and put your welcome message in that file.
Enable ssh login to print welcome banner when user login:
Edit /etc/ssh/sshd_config
Find -> PrintMotd no and enable it -> PrintMotd yes
Save the file and restart ssh daemon.

Monday, February 9, 2009

Folder access restriction on IIS

I need to give restriction to one of folder in my website so it can be access only from my office network.

Go to Control Panel > Administrative Tools > IIS Manager
Browse your file and choose which folder that you want to give access restriction then right click > Properties > Directory Security
Find IP address and domain name restrictions section click Edit button.
Choose Denied access and click Add...
You can choose type of restrictions you need to be allow, what i want is allow my office network so i choose Group of computers
I key in
Network ID: 10.0.0.0 (my office network ip range)
Subnet mask: 255.255.0.0

How to create / build .deb packages

Came across the websites i found detail how to build .deb packages.

Another easy way to create .deb.
Install it and when you compile a software type "sudo checkinstall -D" instead of "sudo make install", it will install the software giving synaptic all the needed informations to see it and create a .deb.