Ubuntu, network operations, basics
I still discovering Ubuntu for myself and like this OS more and more everyday, it is much more comfortable for work rather than Windows 7, no viruses, no antiviruses, no headache, no problems, just freedom 🙂
Today I have discovered how it is easy to work with network, for example I need to add a shared resource.
I have found that I can use Samba, but samba is not installed on my Ubuntu, and here I can use a super tricky apt-get install again, I just love this command and Terminal in general, you can get any necessary software in a few seconds using the Terminal:
— Install samba
1. ~$sudo apt-get install samba4
— Install samba file system
2. ~$sudo apt-get install smbfs
— Mount any resource into the existed folder in your home directory or anywhere you like, then you can use it as a regular folder!
3. ~$sudo smbmount //192.168.1.55/shara ~/smbShare -o, rw
To learn how to use this command you can always use following command:
In general you can use ‘man’ for any command in Terminal and it will return a super detailed description of the command, very cool (to exit from the ‘man’ you can click ‘Q’).
To discover network you can use following commands:
— Use network first address to discover, what computers are up or not:
~$nmap -sP 192.168.1.1/24
You will get something like this:
Starting Nmap 5.00 ( http://nmap.org ) at 2011-02-25 11:24 EET
Host 192.168.1.1 is up (0.0011s latency).
Host 192.168.1.2 is up (0.0078s latency).
Host 192.168.1.3 is up (0.017s latency).
Host 192.168.1.33 is up (0.021s latency).
Host 192.168.1.36 is up (0.020s latency).
Host 192.168.1.39 is up (0.0064s latency).
Host 192.168.1.41 is up (0.026s latency).
Host 192.168.1.42 is up (0.0026s latency).
Host 192.168.1.44 is up (0.022s latency).
Host 192.168.1.48 is up (0.027s latency).
Host 192.168.1.51 is up (0.0055s latency).
Host 192.168.1.52 is up (0.0074s latency).
Host 192.168.1.54 is up (0.0014s latency).
Host 192.168.1.55 is up (0.021s latency).
Host 192.168.1.57 is up (0.021s latency).
Host 192.168.1.58 is up (0.016s latency).
Host 192.168.1.59 is up (0.020s latency).
Host 192.168.1.61 is up (0.0073s latency).
Host 192.168.1.233 is up (0.00011s latency).
Nmap done: 256 IP addresses (19 hosts up) scanned in 4.85 seconds
To check what ports are up on your computer and what connections are currently used, you can just use a simple command:
If you need to use remote Windows X desktop, it is very very easy, just type in terminal:
— Use IP you need, it will open a windowed remote desktop application!
If you need more detailed information about these commands, just use ‘man’ command to check very detailed documentation with examples.
1 . broadcast address ping
~$ping 192.168.1.255 -b
2 . find your IP (will list current network interfaces):
3. Also you can use GUI tool to connect to the shared resource:
Places/Connect to Server/Windows Share
Type the IP, you want to connect and enjoy browsing in the window based UI 🙂
Happy network discovering (: