Tag Archive for 'ubuntu'

Script pentru afisare utilizatori linux, bash login, home directory

#!/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 “home directori for:” $2
cat /etc/passwd|grep  $2|cut -f6 -d’:’
;;
( * )
reset
echo “Utilizati una din urmatoarele comenzi…”
echo “list-users | list-valid-users | get-user-home <nume utilizator>”

;;

esac

  • Share/Bookmark

Badea Ion taranul tehnologic

Berlo: hey
Vuko: scuze
Vuko: sal
Berlo: stii cumva dak softurile care iti monitorizeaza temperatura procesorului etc pot sa greseasca?
Vuko: da
Berlo: aha si cum imi dau seama in afara sa pun mana pe procesor ?:))
Vuko: :) )
Vuko: pai la cate grade iti sta
Continue reading ‘Badea Ion taranul tehnologic’

  • Share/Bookmark

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/Bookmark

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 cu ldap si samba m-am hotarat sa fac prin network boot :D

http://wiki.koeln.ccc.de/index.php/Ubuntu_PXE_Install

  • Share/Bookmark

What if…

Imi place :D ce sa spun linux on mobile si mai ales ubuntu mobile :D

  • Share/Bookmark

How to install DHCP on Ubuntu/Debian

Assumed that “eth0″ is the interface for network card

IP Address 10.0.0.1

Range: 10.0.0.1 to 10.0.0.30

Subnet Mask: 255.255.255.224

DNS Servers: 193.226.98.1, 193.226.98.2

Domains:r2d2.dositei.ro

Gateway Address: 10.0.0.1

Continue reading ‘How to install DHCP on Ubuntu/Debian’

  • Share/Bookmark

nano /etc/apt/sources.list

#
# deb cdrom:[Ubuntu-Server 7.10 _Gutsy Gibbon_ - Release i386 (20071016)]/ gutsy main restricted

#deb cdrom:[Ubuntu-Server 7.10 _Gutsy Gibbon_ - Release i386 (20071016)]/ gutsy main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to
# newer versions of the distribution.
Continue reading ‘nano /etc/apt/sources.list’

  • Share/Bookmark