fomenta wrote:
Yeah, I try to do as much as possible by the command line because of the speed, but Shredder's examples of Eclipse and Wireshark are excellent examples of where using a GUI dominates.
I know you're into the BT3 stuff -- so a lot of these apps might be fun:
http://sectools.org/ -- many run only on Linux or have weak Windows ports
Here are some cool things I've done on Linux that can help you get acquainted with it -- if you need help w any of these let me know
Check - Install Apache2, get PHP working, get MySQL working, get phpMyAdmin working
-- Install Subversion Server and Configure that box or another to commit to a repository on your subversion server over ssh
-- Play with the firewall (iptables)
-- Generate a self-signed cert, and set up apache to use SSL
-- Create and check in a pgp key (I'll sign it!)
-- Set up WebSVN
-- Set up a cron job to automatically add and commit files in a certain directory to your repo
-- Access folders on your linux box from your windows box via Samba
[vadmin@localhost ~]$ yum -y install httpd php mysql mysql-server php-mysql
Loaded plugins: presto, refresh-packagekit
You need to be root to perform this command.
[vadmin@localhost ~]$ su
Password:
su: incorrect password
[vadmin@localhost ~]$ sector7g
Command not found.
* Downloading details about the software sources... su
* Downloading list of packages..
[vadmin@localhost ~]$ su
Password:
[root@localhost vadmin]# yum -y install httpd php mysql mysql-server php-mysql
Loaded plugins: presto, refresh-packagekit
Setting up Install Process
Package httpd-2.2.15-1.fc13.i686 already installed and latest version
Resolving Dependencies
--> Running transaction check
---> Package mysql.i686 0:5.1.47-1.fc13 set to be updated
--> Processing Dependency: mysql-libs = 5.1.47-1.fc13 for package: mysql-5.1.47-1.fc13.i686
---> Package mysql-server.i686 0:5.1.47-1.fc13 set to be updated
--> Processing Dependency: perl-DBD-MySQL for package: mysql-server-5.1.47-1.fc13.i686
--> Processing Dependency: perl-DBI for package: mysql-server-5.1.47-1.fc13.i686
--> Processing Dependency: perl(DBI) for package: mysql-server-5.1.47-1.fc13.i686
---> Package php.i686 0:5.3.2-2.fc13 set to be updated
--> Processing Dependency: php-cli = 5.3.2-2.fc13 for package: php-5.3.2-2.fc13.i686
--> Processing Dependency: php-common = 5.3.2-2.fc13 for package: php-5.3.2-2.fc13.i686
---> Package php-mysql.i686 0:5.3.2-2.fc13 set to be updated
--> Processing Dependency: php-pdo for package: php-mysql-5.3.2-2.fc13.i686
--> Running transaction check
---> Package mysql-libs.i686 0:5.1.47-1.fc13 set to be updated
---> Package perl-DBD-MySQL.i686 0:4.013-3.fc13 set to be updated
---> Package perl-DBI.i686 0:1.609-4.fc13 set to be updated
---> Package php-cli.i686 0:5.3.2-2.fc13 set to be updated
---> Package php-common.i686 0:5.3.2-2.fc13 set to be updated
---> Package php-pdo.i686 0:5.3.2-2.fc13 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
mysql i686 5.1.47-1.fc13 updates 897 k
mysql-server i686 5.1.47-1.fc13 updates 8.2 M
php i686 5.3.2-2.fc13 updates 1.1 M
php-mysql i686 5.3.2-2.fc13 updates 72 k
Installing for dependencies:
perl-DBD-MySQL i686 4.013-3.fc13 fedora 134 k
perl-DBI i686 1.609-4.fc13 fedora 707 k
php-cli i686 5.3.2-2.fc13 updates 2.2 M
php-common i686 5.3.2-2.fc13 updates 515 k
php-pdo i686 5.3.2-2.fc13 updates 70 k
Updating for dependencies:
mysql-libs i686 5.1.47-1.fc13 updates 1.2 M
Transaction Summary
================================================================================
Install 9 Package(s)
Upgrade 1 Package(s)
Total download size: 15 M
Downloading Packages:
Setting up and reading Presto delta metadata
fedora/prestodelta | 414 B 00:00
updates/prestodelta | 22 kB 00:00
Processing delta metadata
Package(s) data still to download: 15 M
(1/10): mysql-5.1.47-1.fc13.i686.rpm | 897 kB 00:01
(2/10): mysql-libs-5.1.47-1.fc13.i686.rpm | 1.2 MB 00:01
(3/10): mysql-server-5.1.47-1.fc13.i686.rpm | 8.2 MB 00:07
(4/10): perl-DBD-MySQL-4.013-3.fc13.i686.rpm | 134 kB 00:00
(5/10): perl-DBI-1.609-4.fc13.i686.rpm | 707 kB 00:00
(6/10): php-5.3.2-2.fc13.i686.rpm | 1.1 MB 00:01
(7/10): php-cli-5.3.2-2.fc13.i686.rpm | 2.2 MB 00:02
(8/10): php-common-5.3.2-2.fc13.i686.rpm | 515 kB 00:00
(9/10): php-mysql-5.3.2-2.fc13.i686.rpm | 72 kB 00:00
(10/10): php-pdo-5.3.2-2.fc13.i686.rpm | 70 kB 00:00
--------------------------------------------------------------------------------
Total 921 kB/s | 15 MB 00:16
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID e8e40fde: NOKEY
fedora/gpgkey | 3.2 kB 00:00 ...
Importing GPG key 0xE8E40FDE "Fedora (13) <fedora@fedoraproject.org>" from /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-i386
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Updating : mysql-libs-5.1.47-1.fc13.i686 1/11
Installing : php-common-5.3.2-2.fc13.i686 2/11
Installing : perl-DBI-1.609-4.fc13.i686 3/11
Installing : perl-DBD-MySQL-4.013-3.fc13.i686 4/11
Installing : php-pdo-5.3.2-2.fc13.i686 5/11
Installing : php-cli-5.3.2-2.fc13.i686 6/11
Installing : mysql-5.1.47-1.fc13.i686 7/11
Installing : mysql-server-5.1.47-1.fc13.i686 8/11
Installing : php-5.3.2-2.fc13.i686 9/11
Installing : php-mysql-5.3.2-2.fc13.i686 10/11
Cleanup : mysql-libs-5.1.45-2.fc13.i686 11/11
Installed:
mysql.i686 0:5.1.47-1.fc13 mysql-server.i686 0:5.1.47-1.fc13
php.i686 0:5.3.2-2.fc13 php-mysql.i686 0:5.3.2-2.fc13
Dependency Installed:
perl-DBD-MySQL.i686 0:4.013-3.fc13 perl-DBI.i686 0:1.609-4.fc13
php-cli.i686 0:5.3.2-2.fc13 php-common.i686 0:5.3.2-2.fc13
php-pdo.i686 0:5.3.2-2.fc13
Dependency Updated:
mysql-libs.i686 0:5.1.47-1.fc13
Complete!
[root@localhost vadmin]# /sbin/chkconfig httpd on
[root@localhost vadmin]# /sbin/chkconfig --add mysqld
[root@localhost vadmin]# /sbin/chkconfig mysqld on
[root@localhost vadmin]# /sbin/service httpd start
Starting httpd: [ OK ]
[root@localhost vadmin]# /sbin/service mysqld start
Initializing MySQL database: Installing MySQL system tables...
OK
Filling help tables...
OK
To start mysqld at boot time you have to copy
support-files/mysql.server to the right place for your system
PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER !
To do so, start the server, then issue the following commands:
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h localhost.localdomain password 'new-password'
Alternatively you can run:
/usr/bin/mysql_secure_installation
which will also give you the option of removing the test
databases and anonymous user created by default. This is
strongly recommended for production servers.
See the manual for more instructions.
You can start the MySQL daemon with:
cd /usr ; /usr/bin/mysqld_safe &
You can test the MySQL daemon with mysql-test-run.pl
cd /usr/mysql-test ; perl mysql-test-run.pl
Please report any problems with the /usr/bin/mysqlbug script!
[ OK ]
Starting mysqld: [ OK ]
[root@localhost vadmin]# mysqladmin -u root password 'n00bfest'
[root@localhost vadmin]# mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.1.47 Source distribution
Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
This software comes with ABSOLUTELY NO WARRANTY. This is free software,
and you are welcome to modify and redistribute it under the GPL v2 license
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> DROP DATABASE test;
Query OK, 0 rows affected (0.00 sec)
mysql> DELETE FROM mysql.user WHERE user = '';
Query OK, 2 rows affected (0.00 sec)
mysql> FLUSH PRIVILEGES
->