Practical Linux Projects
Practical Linux Projects
1. Security
a) get antivirus program working on ubuntu
-see how clamtk works, whether it is always running, how to turn it on/off,e tc.
Most importantly, very few people ever have trouble with viruses on Linux because almost all
malware is designed for Windows. The best policy, from what I have read, is to be careful about
what websites you visit and what you accept.
It's called iptables (or IP tables). It works by way of “chains”, the most basic of which are those
that “accept” and those that “drop”. To see the chains currently set, the command is: (sudo)
iptables -L
As of right now, I can't tell what it's doing but it is at least doing something. In the future, I
might keep my eye open for a GUI app that manages Ubuntu firewall (one is Shorewall, but it is
supposedly more advanced and may be CLI-based)
2. Backup
a) figure out the easiest way to back up all files (for free or one-type payment for backup
system) – problem is 175G of books
Using Clonezilla
requirements:
-external hard drive (must be at least same size as original hard drive)
-clonezilla iso image (http://clonezilla.org/downloads.php
For now:
just get an external hard drive and copy all data files
1) buy external hard drive
2) if doesn't work with ext4 (which is current file system), just format current hard drive to NTFS so it
is compatible with external
3) just backup /home after partitioning (one partition for backup, one partition for Fedora, one partition
for Ubuntu 18.04)
4) optional: if you want to backup preferences, can use symbolic links to move the /usr/local and /opt
directories to (for example) /home/ur-local and homeopt
Verdict: buy at least 250G (but probably 1T) external hard drive at Best Buy, hopefully with ext4 file
system, but if not can format computer for NTFS)
3. Disk partitioning
a) make sure you know how to partition a disk in ubuntu, in theory and in practice and could do
it if you wanted to
b) understand for what purposes disks are partitioned
After partitions are created, need to generate file systems on the partitions.
Size:
30 GiB per partition
3 partitions (1 for Ubuntu, 1 for Fedora, 1 for backup)
original hard disk: when you erase and partition: 2 partitions
Procedure for creating and including new partitions (even while system is running):
1. backup the current boot sectors and data on the hard disk in question
-dd command to copy MBR (identically sized partitions only):
dd if=/dev/sda of=/dev/sdb bs=512 count=1
-dd command for two discs with different size partitions:
dd if=/dev/sda of=/tmp/mbrsda.bak bs=512 count=1
-to restore the image to any sdb:
dd if=/tmp/mbrsda.bak of=/dev/sdb bs=446 count=1
-here's what another source says to do:
“Data and boot-sector contents can be saved using the dd program (among others)”:
dd if=/dev/sda of=/dev/st0 “ (will save all of the sda hard disk to magnetic tape)