Difference between revisions of "Linux Notes"

From Simson Garfinkel
Jump to navigationJump to search
m
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
Simson's notes on Linux.
Some notes on Linux, perhaps quite old


==Initial Setup==
===Fedora===
To install Fedora from the Live User:
* Application->System Tools->Install to Hard Drive
To enable remote access:
* Fedora now defaults to firewall on so you probably need to run:
    system-config-firewall
It may not be installed so need to yum install system-config-firewall.  There is another firewall tool used by default, but it isn't yet feature complete so I still use system-config-firewall. Then allow port 22.
Also be sure that  sshd is started/enabled:
    systemctl enable sshd.service
    systemctl start sshd.service


==Find current Linux Version==
==Find current Linux Version==
;ubuntu
===ubuntu===
     cat  /etc/lsb-release
     cat  /etc/lsb-release


Line 23: Line 39:
     sudo do-release-upgrade
     sudo do-release-upgrade


===Installing Fedora from the Live User===
==Ignoring TCP Reset==
Application->System Tools->Install to Hard Drive
Mac:
    ipfw add 1000 drop tcp from any to me tcpflags rst in


==Apt Help==
Linux:
    iptables -I FORWARD -p tcp --tcp-flags RST RST -j DROP

Revision as of 03:48, 20 January 2014

Some notes on Linux, perhaps quite old

Initial Setup

Fedora

To install Fedora from the Live User:

  • Application->System Tools->Install to Hard Drive

To enable remote access:

  • Fedora now defaults to firewall on so you probably need to run:
   system-config-firewall

It may not be installed so need to yum install system-config-firewall. There is another firewall tool used by default, but it isn't yet feature complete so I still use system-config-firewall. Then allow port 22.

Also be sure that sshd is started/enabled:

   systemctl enable sshd.service
   systemctl start sshd.service

Find current Linux Version

ubuntu

   cat  /etc/lsb-release

Updating, Upgrading and Installing

Update Fedora

 sudo yum update        # downloads and installs out-of-date RPMs
 sudo yum list installed # shows what is installed
 sudo yum list                # shows all packages available.

Update Ubuntu

 sudo apt-get update    # updates the databases
 sudo apt-get upgrade   # downloads and installs the .apt files

Upgrade Ubuntu

  1. See https://help.ubuntu.com/community/NattyUpgrades
  2. In System->Administration->Update Manager, click on "Settings" and chose the set of releases you wish.

Network Upgrade for Ubuntu Servers

   sudo apt-get install update-manager-core
   sudo do-release-upgrade

Ignoring TCP Reset

Mac:

   ipfw add 1000 drop tcp from any to me tcpflags rst in

Linux:

   iptables -I FORWARD -p tcp --tcp-flags RST RST -j DROP