FreeBSD
How to find Ethernet MAC address of my PC in various operating systems
Feb 7th
This article explains how to find MAC address of the PC in Linux, Windows, FreeBSP, NetBSP, OpenBSD, Caldera/SCO, IRIX, HP-UX, NeXTStep, AIX, Tru64 UNIX etc.Typically each Ethernet adapter in the world is programmed with an unique MAC address by the manufacturer. In other words, no two Ethernet adapters will have same MAC address.
In Linux (Fedora/Ubuntu/Other flavours)
[neo@techpulp ~]# ifconfig eth0 eth0 Link encap:Ethernet HWaddr 00:A3:B2:01:5E:4B inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0 ...
If you have more than one Ethernet adapters in the system, you can use “ifconfig -a” command.
In Microsoft Windows NT/2000/2003/XP Open Run Command Window by pressing R while holding Windows Start Key. Otherwise Click More >
How to lock and unlock an user account in FreeBSD
Sep 5th
Any user account can be locked or unlocked only by Administrator (i.e root user). This is done using pw command as explained below.
To lock a user account (mark) from logging in:
[root@techpulp ~]# pw lock mark
To unlock a user account (mark):
[root@techpulp ~]# pw unlock mark
How to install screen command in FreeBSD
Sep 1st
To install screen command in FreeBSD, run the following commands after logging in as super user (root). Note that you should have valid Internet connection.
[root@techpulp ~]# cd /usr/ports/sysutils/screen [root@techpulp ~]# make install
The above command should download screen command from FreeBSD repository and install it in your system.
How to enable auto login for SSH
Apr 23rd
This article assumes that the host name of server is “server1.techpulp.com” and that of client machine is “client1.techpulp.com“. You can replace these with your own domain names or IP addresses to suit your needs.
Login to the server system to which you would like password-less login.
[neo@client1 ~]$ ssh neo@server1.techpulp.com neo@server1.techpulp.com's password: [neo@server1 ~]$
Generate a RSA key pair in the server as shown below. Just press ENTER key when it prompts for passphrase. The following example may be exactly as shown below and may vary based on the version of ssh-keygen present in your server system. But it prompts you for same input More >


Recent Comments