Posts Tagged ‘Linux’

hosts.allow hosts.deny

Hosts: /etc/hosts is used to resolve hostnames for machines behind the firewall, on the 192.168.1. LAN. If an entry is found in /etc/hosts, there is no need to go to the DNS to resolve either hostname or ip address. Here is an example # Do not remove the following line, or various programs # that [...]

Share

ClamAV + samba

This is a howto on getting samba + clamav  to work on a rpm system First thing first I need do install samba file server and clamav anti-virus, after configurating my samba share i have made 2 directory’s in /home virus logs the virus folder contains the infected files found during scanning and the logs [...]

Share

Script pentru afisare utilizatori linux, bash login, home directory

[code] #!/bin/bash case $1 in ( list-users ) reset echo "Listing users..... " cat /etc/passwd |cut -d ':' -f1 ;; ( list-valid-users ) reset echo "Listing valid users for god >:)" cat test|grep -w  "/bin/sh"$|cut -f1 -d':' cat test|grep -w  "/bin/bash"$|cut -f1 -d':' ;; ( get-user-home ) reset echo "Listing the users home...and username" echo [...]

Share

Download Manager BASH

Anul trecut la faculta avem de facut un download manager in bash la SO(Sisteme de operare) printre altele, era un proiect destul de interesant dupa parerea mea, dar ar fi mult mai interesant sa fi avut si o interfata web un script php care sa apeleze comenzile de bash jumatate php jumatate bash nu ii [...]

Share

how to run a script at boot time?

Your script should be in /etc/init.d/ directory. Then you have to make a symlink from your run-level directory. I.e you’re in run-level 5 (multiuser with X) chmod +x cp /etc/init.d ln -s /etc/init.d/ /etc/rc.d/rc5.d/S50 ln -s /etc/init.d/ /etc/rc.d/rc5.d/K50

Share

Unix Nerd Seeks Love – Funny Craigslist Post

This is a real posting at craigslist classifieds: There is a sad truth to the world today. I am part of a dying breed of people known as “shell users.” We are an old-fashioned bunch, preferring the warm glow of a green screen full of text over the cold blockiness of a graphical interface. We [...]

Share

Debian pptpd HOWTO

Installing MPPE Support Most people want their tunnels encrypted. Check the version of your kernel; if it is below 2.6.15-rc1 then you do not have MPPE support. To check further, test like this: # modprobe ppp-compress-18 && echo success If this fails, follow the Debian MPPE HOWTO, then return here. Installing the Server ProgramInstall the [...]

Share

Basic Linux Commands

cd (change directory) cd myfolder Changes the current working directory to “myfolder” cd .. Go up one level to the current working directory. cd ../.. Go up two levels to the current working directory. cd / Changes the current working directory to the root directory. cd ~ Changes the current working directory to your home [...]

Share

Inca un pinguin la colectie

Am fost si eu astazi prin oras sa caut un cadou, nu dau nume pt cine ) pana sa ma hotarasc ce cadou sa iau mi-am facut mie cadouri ptrintre care un pinguin care lam pus la colectie cu ceilalti “big happy penguin family” )

Share

Ubuntu PXE Install

hmmm trebuia sa instalez pe 23 de systeme windows/ubuntu , sa instalez pe fiecare in parte nici nu intra in vorba puteam sa instalez pe un sistem si sa fac clona cu norton si sa arunc clona pe fiecare sistem in parte si era ok sau prin retea sa butez clona…..sau cum avem ubuntu server [...]

Share