[Quick Links] |
Search Site

Site Details

rendered in 0.0697 secs

Captain's Log | Thursday 26th of January 2017

How can I see what display (logon) manager I'm running, and stop it from auto loading?

pstree -s $(pidof X)
  init---mdm---mdm---Xorg---2*[{Xorg}]

Okay so here we're using mdm for or login manager and display manager. First I like to setup mdm to auto login, so after I've typed my credentials at the terminal and manually launch mdm, I don't have to login again.
sudo mdmsetup
Then got ahead and use the pretty interface to turn on auto login if this is your preference. Now let's stop it auto loading at boot.
sudo vim  /etc/default/grub
  ...
- GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
+ GRUB_CMDLINE_LINUX_DEFAULT="quiet splash text"
:wq
sudo update-grubtra
sudo reboot

Login at the text prompt and then you can manually launch mdm and not have it prompt for your login again:
sudo service mdm start

How about the active GPU driver loaded by linux (graphics card)? | mint 17

sudo lshw -c video | grep -E 'product|driver='

  alternative
sudo modinfo -F filename `sudo lshw -c video | awk '/configuration: driver/{print $2}' | cut -d= -f2`
  alternative to the alternative
lspci -nnk | grep -i vga -A3 | grep 'in use'

I have a fresh ubuntu mint setup, and tips to getting some starter tools installed? (stack it up)

sudo add-apt-repository ppa:maarten-baert/simplescreenrecorder
sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo add-apt-repository ppa:noobslab/indicators
sudo add-apt-repository ppa:ondrej/php5-5.6

#percona-toolkit | allows you to dump out mysql privs with a tool included called, pt-show-grants
#silversearcher-ag | required for CtrlSF vim plugin to work ( ctrlsf_ackprg )
#dnsutils | contains dig command which we use for purge script to get external ip

sudo apt-get update && sudo apt-get upgrade && sudo apt-get install vim-gnome git apache2 mysql-server php5-mysql php5 libapache2-mod-php5 php5-mcrypt php5-curl php5-gd php5-cli php5-xmlrpc build-essential mysql-workbench ssh shutter unison terminator procmail mailutils sshfs libgoo-canvas-perl gnome-web-photo htop php-pear php5-dev gparted xbindkeys xdotool xautomation filezilla gedit unrar speedometer chromium-browser simplescreenrecorder boot-repair cmake python-dev hardinfo xpad elinks silversearcher-ag transmission-cli transmission-remote-cli transmission-remote-gtk copyq k3b percona-toolkit dnsutils

sudo mysql_install_db
sudo /usr/bin/mysql_secure_installation

sudo a2enmod rewrite
sudo a2enmod ssl
sudo service apache2 restart
  
sudo pear channel-discover pear.phpmd.org
sudo pear channel-discover pear.pdepend.org
sudo pear install -Z --alldeps phpmd/PHP_PMD
sudo pear install -Z --alldeps php_codesniffer
  
  note: pear install of phpmd/PHP_PMD above also does some jazzy required stuff to get zend framework and xdebug prepped
  
wget https://PHAR.phpunit.de/phpunit.phar
chmod +x phpunit.phar
sudo mv phpunit.phar /usr/local/bin/phpunit
  
wget -c http://static.phpmd.org/php/latest/phpmd.phar
chmod +x ./phpmd.phar
sudo mv ./phpmd.phar /usr/bin/phpmd

before running this, make sure sudo apt-get upgrade doesn't say it's holding any packages back, i.e. php. Because if it is, and then you install xdebug below, and then upgrade php you'll start getting: The Zend Engine API version 220131226 which is installed, is newer. type errors. If everything looks good, you upgrade but still get these errors, see this page for how to install xdebug correctly: xdebug tailored install   
sudo pecl install -Z xdebug (not path it gives for .so file)

sudo updatedb
locate php.ini
sudo vim /etc/php5/apache2/php.ini
sudo vim /etc/php5/cli/php.ini

-display_errors = Off
+display_errors = On

-display_startup_errors = On
+display_startup_errors = On

+zend_extension=(use path you noted above for .so file)
:wq
sudo service apache2 restart

  ftp rick111.prf to .unison and run it manually, when happy, cron purge_rick111.sh
  
chmod +x ~/.fzf/install
~/.fzf/install
chmod +x ~/.fzf/bin/fzf
chmod +x ~/.fzf/bin/fzf-tmux
:wq
  reload terminator
  
  install composer, first follow download instructions from here and then follow the global instructions from here
composer global require "laravel/installer"

optional

sudo apt-get install ntp ntpdate
sudo service ntp stop
sudo ntpdate -s time.nist.gov
sudo service ntp start
#confirm timezone is set right
sudo dpkg-reconfigure tzdata