41 Search results

For the term "linux%20services%20disable".

Unix-Linux Does Not Require Disk Defrag

I’m a convert to Linux in the last several years. I don’t remember when it happened exactly, but I vividly remember the first time I (tried to) used Microsoft Office 2007, I was sure I was on the right path. Recently some friends have asked me why they should make the migration to Linux. I can list many reasons, but...

Basic Linux Commands

Ubuntu 12.04 LTS Tested Linux ls sort by date modified ls -t Linux ls only directories sort directory verbose ls /path/to/directory/* -d -l Linux find and delete files older than X days find /path/to/files* -mtime +5 -exec rm {} \;

Harden Ubuntu Lamp with Bastille Linux

https://help.ubuntu.com/community/BastilleLinux sudo apt-get install bastille sudo apt-get install perl-tk sudo bastille -x

Linux Services | View All | Stopping and Starting

How To see all services available, type in terminal; sudo service –status-all How To see all services running and ports, type in terminal; sudo netstat -plunt How To remove a service from startup at boot sudo update-rc.d -f [service] remove How To enable a service to run on boot sudo update-rc.d [service] defaults

Handy Linux Directory Rules

Linux Directory Rules rsync -vaz ~/qwerty ~/mydir CREATES a /qwerty directory under the ~/mydir directory COPIES the DIRECTORY and CONTENTS of the ~/qwerty directory into this newly created directory Without a trailing slash / it means “COPY THE DIRECTORY” rsync -vaz ~/qwerty/ ~/mydir Does NOT CREATE /qwerty directory COPIES the CONTENTS of the ~/qwerty directory to the mydir directory A...

Customize Debian Linux grub2

I wanted to remove the splash image while booting Debian 7 Wheezy and watch the code execute, while also use the full screen resolution.

Mark Bad Blocks Check Hard Drive Linux

Which disk? sudo fdisk -l Non-destructive read-write test If you want to preserve your data try this first sudo badblocks -svn /dev/sdb smartmon Check to see if your fix worked sudo apt-get install smartmontools sudo smartctl –all /dev/sdb sudo smartctl -A /dev/sdb sudo smartctl -a /dev/sdb | grep -i reallocated Use DD to automatically mark bad blocks – destructive if...

How To Fix a missing eth0 adapter after moving HDD from one machine to another

Debian/Ubuntu Linux : How To Fix a missing eth0 adapter after moving HDD from one machine to another. Explanation : Debian and Ubuntu write the MAC address of the ethernet adapter to a file that prevents the eth card in the new machine from being recognized. Delete the lines in this persistent-net.rules file and upon reboot, linux will see the...

Harden Ubuntu Server 12.04 LTS

Its not enough to harden just Ubuntu. Its necessary to harden the rest of LAMP as well. So here is how I do it. Harden MYSQL sudo mysql_secure_installation answer Yes to all questions (but no need to change password) Harden PHP – and tune performance sudo apt-get install php5-suhosin sudo vi /etc/php5/apache2/php.ini uncomment this code or update setting max_execution_time =...