Posteet: xarkam / Recent posteets posted to Posteet 60 Upgrade Postgresql /view/2231 uninstall Postgres 9.4, install 9.3, backup the database using pg_dumpall > backup.sql, uninstall Postgres 9.3, install Postgres 9.4, restore the databases using psql -d postgres -f backup.sql [postgresql] [ubuntu] ]]> xarkam Wed, 01 Jul 2015 11:13:30 +0000 postgresql ubuntu VMWare Screen Resolution Linux 1920x1080 /view/2221 #!/bin/bash xrandr --newmode "1920x1080_60.00" 173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync xrandr --addmode Virtual1 1920x1080_60.00 xrandr --output Virtual1 --mode 1920x1080_60.00 [linux] [resolution] [screen] [vmware] ]]> xarkam Mon, 08 Jun 2015 17:32:43 +0000 linux resolution screen vmware Remove safely dev package /view/2211 apt-get remove --purge $(aptitude -F '%p' search '~i -dev$') [apt-get] [dev packages] [remove] [safely] ]]> xarkam Sun, 31 May 2015 18:42:36 +0000 apt-get dev packages remove safely Putty sessions save /view/2201 regedit /e "%userprofile%desktopputty-sessions.reg" HKEY_CURRENT_USERSoftwareSimonTathamPuTTYSessions [putty] [save] [sessions] ]]> xarkam Tue, 12 May 2015 10:16:28 +0000 putty save sessions Ubuntu list automatic security updated packages /view/2191 #!/bin/bash cat /var/run/reboot-required.pkgs xargs aptitude changelog < /var/run/reboot-required.pkgs | grep urgency=high [automatic update] [list security updates] [ubuntu] ]]> xarkam Fri, 08 May 2015 09:32:24 +0000 automatic update list security updates ubuntu List installed kernel on debian and derivative /view/2181 dpkg -l | grep linux-image | awk {'print $2'} | grep -v extra [debian] [dpkg] [kernel] [list] [ubuntu] ]]> xarkam Sun, 03 May 2015 10:47:04 +0000 debian dpkg kernel list ubuntu Get php SSL version and if activated under Ubuntu like / Debian /view/2166 echo '<?php phpinfo(); ?>' | php 2>&1 |grep -i ssl [openssl] [php] ]]> xarkam Fri, 25 Jan 2013 01:34:07 +0000 openssl php Changer les droits sur des dossiers ou fichiers uniquement /view/847 # Change les droits des répertoires et sous répertoires du dossiers courant # Changer la directive -type d par -type f pour ne changer que les droits des fichiers find -type d -exec chmod 770 {} \; [chmod] [find] ]]> xarkam Fri, 21 Mar 2008 10:46:46 +0000 chmod find