Simple way to secure copy from one linux system to another:
root@myhost: ~# scp -P 22 <filename> root@<ip address or hostname>:<full directory path of file to copy>
Hit enter
You should get prompted for password to remote system. Enter the password and wait until the file copies over.
Done.
Showing posts with label Linux. Show all posts
Showing posts with label Linux. Show all posts
Wednesday, December 3, 2014
Tuesday, May 7, 2013
How to statically assign an IP address in Linux...and keep it after reboot
Whether you're using Fedora version gazillion, Ubuntu 10, or Backtrack, I'm sure you've experienced some issue with setting your network configuration...and ensuring the figures you enter actually stick after a reboot. How annoying is that? It certainly makes you feel like a noob when you can't get your systems to talk because of an IP configuration error.
Well, you're not alone. There are some variances of Linux that do not save the IP configuration you input unless you hard code it into the appropriate networking file. You can set it 'ifconfig eth0 192.168.x.x/24 or go into the GUI of Fedora, but it loses its config after a simple reboot. Here's a simple way to avoid all that mess:
Well, you're not alone. There are some variances of Linux that do not save the IP configuration you input unless you hard code it into the appropriate networking file. You can set it 'ifconfig eth0 192.168.x.x/24 or go into the GUI of Fedora, but it loses its config after a simple reboot. Here's a simple way to avoid all that mess:
Wednesday, February 6, 2013
Difference between Apt-get 'update' and Apt-get 'upgrade'
For some reason, I was confused between which option was better to ensure you receive all the latest and greatest updates to your Ubuntu related distros specifically Backtrack.
So I did some digging and came across this site to pull the following info:
So I did some digging and came across this site to pull the following info:
- 'Apt-get update'
- update
- Used to re-synchronize the package index files from their sources. The indexes of available packages are fetched from the location(s) specified in /etc/apt/sources.list (5). An update should always be performed before an upgrade or dist-upgrade.
- 'Apt-get upgrade'
- upgrade
- Used to install the newest versions of all packages currently installed on the system from the sources enumerated in /etc/apt/sources.list (5). Packages currently installed with new versions available are retrieved and upgraded; under no circumstances are currently installed packages removed, nor are packages that are not already installed retrieved and installed. New versions of currently installed packages that cannot be upgraded without changing the install status of another package will be left at their current version. An update must be performed first so that apt-get knows that new versions of packages are available.
- 'Apt-get dist-upgrade'
- dist-upgrade
- In addition to performing the function of upgrade, this option also intelligently handles changing dependencies with new versions of packages; apt-get has a "smart" conflict resolution system, and it will attempt to upgrade the most important packages at the expense of less important ones, if necessary.
- The /etc/apt/sources.list file contains a list of locations fromwhich to retrieve desired package files.
Thursday, November 8, 2012
Need to restart networking using Linux
Nothing in IT is a stupid question.
You need to restart your network interface without having to take the long route and rebooting your system?
Do this:
You need to restart your network interface without having to take the long route and rebooting your system?
Do this:
sudo /etc/init.d/networking restart
Subscribe to:
Posts (Atom)