This is an old revision of the document!
Table of Contents
list of hardware
ubuntu lshw Other commands dimdecode lspci
Find Out BIOS Version Using a Command Line Option
From: https://www.cyberciti.biz/faq/check-bios-version-linux/
sudo dmidecode -s bios-version dmidecode | less
Linux Force fsck on the Next Reboot or Boot Sequence
From: http://www.cyberciti.biz/faq/linux-force-fsck-on-the-next-reboot-or-boot-sequence/
touch /forcefsk echo y > forcefsk
Securing iptables
From: http://www.techrepublic.com/blog/10-things/10-iptables-rules-to-help-secure-your-linux-box/ From: http://sharadchhetri.com/2013/06/15/how-to-protect-from-port-scanning-and-smurf-attack-in-linux-server-by-iptables/
Mastering iptables could take a while, but if you have a few rules to cover the basic security needs, you'll be well on your way to protecting your Linux system. Jack Wallen explains some key rules to get you started. Also How to protect from port scanning using iptables
psad: Linux Detect And Block Port Scan Attacks In Real Time
From: http://www.cyberciti.biz/faq/linux-detect-port-scan-attacks/
psad makes use of Netfilter log messages to detect, alert, and (optionally) block port scans and other suspect traffic. For tcp scans psad analyzes tcp flags to determine the scan type (syn, fin, xmas, etc.) and corresponding command line options that could be supplied to nmap to generate such a scan. In addition, psad makes use of many tcp, udp, and icmp signatures contained within the Snort intrusion detection system.
Renaming Files Batch
From: http://www.linux-magazine.com/Online/Blogs/Off-the-Beat-Bruce-Byfield-s-Blog/Bulk-Renamers Mar 18, 2011 GMT Bruce Byfield
pyRenamer I have not checked which came first, but GPRename and pyRenamer have almost identical interfaces. The main difference is in the organization of the tabs; pyRenamer has six to GPRename's four, and, although GPRename's are more clearly named, pyRenamer, like KRename, has options specific to certain types of files. PyRenamer's tabs: Patterns (which can be used to change the types of characters used in file names); Substitutions (common changes, such as spaces to underscores or capitalization); the self-explanatory Insert/Delete; and Images and Music (for renaming these types of file using their metadata). PyRenamer also makes extensive use of building blocks, but mercifully provides dialogs as a crib, and has the considerable advantage of allowing you to set up multiple renaming options in a single pass. You can also rename files one at a time, before applying all changes. A particularly useful option in pyRename is Remove Accents, accessible with one click and helpful in creating files that BASH can use regardless of locales. My sole complaint about pyRenamer is that you cannot set up multiple Replace patterns at the same time. However, since you can remain on the Substitutions tab and apply patterns one at a time, the inconvenience is not as great as it might have been. After working with the others, the simplicity and arrangement of pyRenamer makes it my tool of choice for renaming on the desktop.
bad fstab entry
openSuse had mounts in fstab that could not be executed because the file system was destroyed by a badly behaving disk. i used this command to reformat the drive. rebooting then allowed the drive to mount.
mke2fs -j /dev/hdb1
tune2fs
will configure when the filesystem is rechecked for no corruption.
succesfully installed Java on Firefox
To solve it delete your Java 1.5.0JDK and replace it for a j2sdk1.4.2_07 (that's mine ^^ )
$ ln -s /usr/java/j2sdk1.4.2_07/jre/plugin/i386/ns610-gcc32/libjavaplugin_oji.so /usr/lib/firefox-<yourversion>/plugins
If you have any browsers running close them and restart after the ln -s
you succesfully installed Java on Firefox