All about Information Technology!

August, 2012

Linux Add User To Group

Add new user to existing group sudo useradd -G group_name user_name Add new user to new group sudo groupadd group_name sudo useradd -G group_name user_name Add existing user to existing group sudo usermod -a -G group_name user_name Change existing user primary group sudo usermod -g group_name user_name

>>

, , , , , , , ,

Installing VirtualBox on Mac OS X 10.5.8

Download latest VirtualBox from here. Follow the instructions of the installer. If you are getting the following error: “Running VirtualBox VM’s detected! The installer has detected running Virtual Machines.” Then download and install a previous build of VirtualBox. It will work! For older builds of VirtualBox see here.

>>

, , , , , , , , , , ,

Monitor the changes made to OS by the installation of new software

Attack Surface Analyzer takes a snapshot of your system state before and after the installation of product(s) and displays the changes to a number of key elements of the Windows attack surface. Allows: – Developers to view changes in the attack surface resulting from the introduction of their code on to the Windows platform – [...]

>>

, , , , , , , , , , ,

Printer Paused – “/usr/lib/cups/backend/hp failed”

If you have this problem with your CUPS and HP printer: /usr/lib/cups/backend/hp failed try to resume your printer. 1. Open your favorite browser, 2. open url: http://localhost:631/printers/, 3. select your printer by clicking on it, 4. from Maintenance dropdown box select Resume Printer, 5. type your username and password, 6. and you are ready to [...]

>>

, , , , , , , ,

Change the hostname or computer name in linux

1. Open a terminal window. 2. Type the following command and hit Enter: sudo gedit /etc/hostname 3. Replace the current computer name with the desired new name and save. 4. Type the following command: sudo gedit /etc/hosts 5. Change the old 127.0.1.1 line to your new hostname. 6. Reboot

>>

, , , , , ,

How to partition disk using fdisk

List partitions on the disk device sudo fdisk -l /dev/sda Enter command mode to work on disk’s partitions sudo fdisk /dev/sda Type m and press Enter to see a list of available commands Command (m for help): m Command action a toggle a bootable flag b edit bsd disklabel c toggle the dos compatibility flag [...]

>>

, , , ,

Get information about the processor – Linux

Gather all information about your processor: cat /proc/cpuinfo Get the number of processors on your system: cat /proc/cpuinfo | grep processor | wc -l Get the model of your processor/s: cat /proc/cpuinfo | grep -m 1 "model name"

>>

, , , , , , ,

Inspect network connections with netstat

List network connections, open ports and the programs running behind those ports with netstat. Open a terminal and type: netstat -ape -a, –all, –listening display all sockets (default: connected) -p, –programs display PID/Program name for sockets -e, –extend display other/more information Output: Proto Recv-Q Send-Q Local Address Foreign Address State User Inode PID/Program name tcp [...]

>>

, , , , , , ,

Show logged in users and what they are doing

Open your terminal and issue the command w yes! just type w. It’s just so simple! Output: 18:11:03 up 1:01, 3 users, load average: 0.58, 0.59, 0.94 USER TTY FROM LOGIN@ IDLE JCPU PCPU WHAT username tty7 17:31 1:00m 2:20 0.20s gnome-session – username pts/0 :0 17:35 31:32 48.29s 48.10s /opt/Adobe username pts/4 :0 17:39 [...]

>>

, , ,

Take photos and videos with your webcam in Linux

Cheese uses your webcam to take photos and videos, applies fancy special effects and lets you share the fun with others. It was written as part of Google’s 2007 Summer of Code lead by daniel g. siegel and mentored by Raphaël Slinckx. Under the hood, Cheese uses GStreamer to apply fancy effects to photos and [...]

>>

, , , , , ,

Previous Posts