I just spent two hours trying to figure this out: Why wget was not retrieving URL with variable correctly. I have a php script that need to be run with crontab through the control panel. Those requires variables on the url. Example of cron.php:
http://www.mydomain.com/cron.php?cron=do&day=15
This cron works fine from the browser. However, when I use this [...]
If you are using ‘locate’ command in Linux and get an error message: locate: can not open /var/lib/mlocate/mlocate.db’ no such file or directory, don’t worry because this normally happen when you run ‘locate’ for the first time.
To fix this, you need to create or update mlocate database, a database used by locate. Simply execute updatedb [...]
I Just installed CentOS and tried to run the yum tool to install MySQL Server:
# yum install mysql-server
But I keep getting the same error, here is the result:
# yum install mysql-server
Setting up Install Process
Setting up repositories
Cannot find a valid baseurl for repo: update
Error: Cannot find a valid baseurl for repo: update
I figured out that my [...]
Kebiasaannya, dalam mana-mana distribusi Linux, IP Forwarding akan dinyahaktif secara default. IP Forwarding sangat berguna dalam persekitaran router/gateway atau untuk menjadikan Linux box sebagai pelayan VPN.
Untuk memeriksa IP Forwading, gunakan arahan:
# sysctl net.ipv4.ip_forward net.ipv4.ip_forward = 0
Atau:
# echo 1 > /proc/sys/net/ipv4/ip_forward
Untuk mengaktif IP forwarding, sunting /etc/sysctl.conf dan tambah:
net.ipv4.ip_forward = 1
Untuk tukar hostname dalam Linux, boleh gunakan arahan hostname
Untuk mengetahui hostname semasa taipkan arahan:
# hostname
Untuk mengetahui FQDN dalam sistem, gunakan arahan:
# hostname –fqd
Untuk menukar hostname, guna arahan:
# hostname NAMA_BARU
Untuk install sudo dalam Debian:
# aptitude install sudo
Fail configuration terletak di /etc/sudoers
Anda seorang penggemar Linux tetapi sering menggunakan Windows untuk kerja-kerja seharian? Ada berita baik untuk anda.
Selain menjalankan Linux di dalam Windows menggunakan produk-produk emulator seperti VMware dan VirtualBox, terdapat distribusi Linux yang dinamakan andLinux membolehkan anda menjalan aplikasi Linux di atas pelantar Windows sambil kedua-dua sistem operasi Windows dan Linux berjalan secara serentak.
andLinux akan didatangkan [...]
To avoid malicious attacks from ping, you may disable ICMP echo response by adding the following lines to /etc/sysctl.conf file.
net.ipv4.icmp_echo_ignore_broadcasts = 1
net.ipv4.icmp_echo_ignore_all = 1
Then run the following command:
# sysctl -p