41 Search results

For the term "change%20user".

Disable Bluetooth Debian

sudo vi /etc/bluetooth/main.conf change to: InitiallyPowered = false But that is not enough sudo apt-get install rfkill sudo vi /etc/rc.local add line: rfkill block bluetooth That should do it. If not sudo vi /etc/modprobe.d/blacklist.conf add lines: blacklist bluetooth blacklist btusb if not sudo vi /etc/init/bluetooth.override add line: manual

Debian Tracker How To Disable

You do not want to uninstall Tracker (on a desktop) as there are dependencies you may want to keep/it makes sense to keep. But Disabling Tracker from auto-start on startup will save resources. Edit ALL tracker desktop files sudo vi /etc/xdg/autostart/tracker-* change this below line from =true to =false X-GNOME-Autostart-enabled=false Kill and Remove databases sudo tracker-control -r

Could not chdir to home directory home Permission denied

This one has caught me a couple times and I keep forgetting how simple it is to solve. When you create a new user and then login as the new user, you get this message: Could not chdir to home directory /home/user: Permission denied -bash: /home/user .bash_profile: Permission denied And you find that you are not (and not able to...

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 =...

vi cheat sheet

Command of the day :.,$s/find-this-string/replace-with-this-string/g     Quitting :x Exit, saving changes :wq Exit, saving changes :q Exit as long as there have been no changes ZZ Exit and save changes if any have been made :q! Exit and ignore any changes Motion h Move left j Move down k Move up l Move right w Move to next word...

How to Edit the DNS of your Domain Name

This is how to Edit the DNS of your Domain Name (example here is for GoDaddy) The general method is similar at most hosts. An “A record” connects your domain name to your server IP address. This is what allows users to type your domain name in a Web browser to access your website. The DNS (domain name service) translates the...

Backup MYSQL Database Automatically

Enter into crontab 25 7 * * * root mysqldump -u root -pPASSWORD –all-databases > /home/username/msql_database_`'+%m-%d-%Y'`.sql Enter at prompt mysqldump -u root -pPASSWORD –all-databases > /home/username/database_all.sql Change admin Password mysqladmin -u root -pOLDPASSWORD password NEWPASSWORD

How To Harden Debian Server

Its not enough to harden just Debain. Its necessary to harden the rest of Apache-MySQL-PHP as well. Harden MYSQL sudo mysql_secure_installation answer Yes to all questions (but no need to change password) Disabling SSH root login and settings sudo vi /etc/ssh/sshd_config change PermitRootLogin yes to PermitRootLogin no LoginGraceTime 120 to LoginGraceTime 30 add line AllowUsers username username username Consider disabling...

How to Customize Apache Log Format for Fail2ban

Customize apache2 other_vhosts_access.log format so fail2ban can use it. sudo vi /etc/apache2/apache2.conf On line 255 insert LogFormat “%t %v:%p %h %l %u \”%r\” %>s %O \”%{Referer}i\” \”%{User-Agent}i\”” fail2ban Comment out the following line #LogFormat “%v:%p %h %l %u %t \”%r\” %>s %O \”%{Referer}i\” \”%{User-Agent}i\”” vhost_combined sudo vi /etc/apache2/conf.d/other-vhosts-access-log change the end of the line (or duplicate and comment out) as...

Set BASH as Default Shell

Enter at the prompt $ bash If command not found error, install BASH # pkg_add -r -v bash Now find where BASH is installed $ which bash You should see (Ubuntu) /bin/bash Change shell to BASH $ chsh -s /bin/bash username username is your User Name You should see: Password: Provide your login password You’ll need to logout (exit) and...