Shorewall – Open ports for specific IP
I had to search a lot and to experiment in order to manage something obviously simple and practical:Leave the shorewall firewall running, but open "holes" from specific IPs e.g. from…
I had to search a lot and to experiment in order to manage something obviously simple and practical:Leave the shorewall firewall running, but open "holes" from specific IPs e.g. from…
Use the following code:PATH=$PATH:/myprogram/binexport PATH
Find the processes to be killed: ps -ef | grep httpd Kill them: kill -9 12345 56789
Extract a .zip file in the current directory: unzip package.zip . Extract a .tar.gz file in the current directory: tar -xvzf package.tar.gzCompress a file to .zip format:zip notes.txt.zip notes.txtCompress a…
To install vnserver: [root@MYSERVER /]# urpmi --media main vnc[root@MYSERVER /]# urpmi --media main vnc-serverPlease insert the medium named "Main media"rpm -ivh vnc-4_1_3-x86_linux.rpmerror: Failed dependencies: libstdc++-libc6.2-2.so.3 is needed by vnc-4.1.3-1.i386SOLUTION:with MANDRIVA…
If you want to run a script at the initialization of your pc, for example to mount some disk, you should go to /etc/rc.d directory and edit the rc.local file:…
Monitor CPU and disk utilization with the following commands: df (disk free): [root@K8H6B1 nista]# dfFilesystem Size Used Avail Use% Mounted on/dev/sda1 128G 47G 75G 39% //dev/sda6 328G 4,5G 324G 2%…
Use the following code to execute some long running command and log out from your ssh session: at -f mount.sh now
For True Type Fonts: Copy the .ttf file (e.g. AGENO___.TTF) from the windows machine and put it into /usr/share/fonts/TTF/windowsfonts. Then change it to 8 characters and lowercase: mv AGENO___.TTF agentora.ttf…
Use the following code as an example: mount -t ext2 /dev/sdb5 /mnt/repmount -t ntfs /dev/sdc5 /mnt/usb1#for FreeAgent:mount -t ntfs /dev/sdd1 /mnt/usb2#for Western Digital:mount -t ntfs /dev/sdc1 /mnt/usb2 Other useful commands:…