Archive for the ‘Linux’ Category

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

Creating Multiple Users on Multiple servers

Hey wassup, I was locking for a method to create multiple users on multiple Linux/Unix machines with different user id group id….. so i brows the internet back and forth and didnt found nothing what i was locking for . So i give up browsing and started scripting, shell scripting exactly because every Linux/Unix system [...]

Share

HPUX Hardware Components

Every recent HP-UX system has several hardware components: One or more PA-RISC or Itanium single- or dual-core CPUs for processing data One or more Cell Boards or an MIO Controller hosting CPU and memory One or more System/Local Bus Adapters that provide connectivity to expansion buses One or more PC11/0 expansion buses with slots for [...]

Share

Cute Penguin Porn

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