Showing posts with label Technology. Show all posts
Showing posts with label Technology. Show all posts

Tuesday, July 28, 2015

Repairing a Windows 7 installation that won't boot:

1. Insert Windows 7 installation disk, boot from the disk, and choose "Repair Windows" at the bottom left of the second screen

2. Try to run the following command:

sfc /scannow /offbootdir=[DRIVELETTER]:\ /offwindir=[DRIVELETTER]:\windows


------------------------
If you get a message saying "There is a system repair pending which requires reboot to complete", try this command:

cd c:\windows\winsxs
find "pending" /i 

Then:

rename [FILENAME].xml [FILENAME].xml.bak

If you get an error message at any point, run this command (while still in the winsxs folder) and then retry the above rename operation:

icacls * /T /Q /C /RESET

Now repeat step 2 to check for errors.

Monday, July 27, 2015

Harden Security and Misc. Tasks for Ubuntu 15+


Remove Misc. Lenses from the Unity Dash:
Note: You may not want to do this if you're new to Ubuntu 14+
sudo apt-get autoremove unity-lens-music unity-lens-photos unity-lens-video

Install Unity Tweak Tools:
sudo apt-get install unity-tweak-tool

Install Ubuntu Tweak:
http://ubuntu-tweak.com/

Install Preload:
Predicts applications and loads them into memory based on the ones you run the most.
sudo apt-get install preload

Enable the firewall:
sudo ufw enable

Secure shared memory space:
sudo gedit /etc/fstab

Add the following line:
none /run/shm tmpfs rw,noexec,nosuid,nodev 0 0

Deny "su" to everyone except administrators:
sudo dpkg-statoverride --update --add root sudo 4750 /bin/su

Secure your Home directory:
chmod 0700 /home/username

Disable guest account access:
echo allow-guest=false | sudo tee -a /usr/share/lightdm/lightdm.conf.d/50-ubuntu.conf

Misc. other security tools

Friday, July 10, 2015

17 Things To Do After Installing Ubuntu 14.04


1) Always show menus:
gsettings set com.canonical.Unity always-show-menus true

2) Install Privacy Indicator:
"The goal of Privacy Indicator is to make it easy it change settings that influence the user’s privacy or the automatic collection of data and to delete automatically collected data."
http://www.florian-diesch.de/software/indicator-privacy/
or
http://www.florian-diesch.de/software/indicator-privacy/dist/indicator-privacy_0.05_all.deb

3) Install Unity Folders:
"Easy way to organize your apps, files, folders, chrome web apps, links and shell scripts. Tested on Ubuntu 14.04"
http://unity-folders.exceptionfound.com/
or
http://unity-folders.exceptionfound.com/unity-launcher-folders_1.0.3_all.deb

4) Install System Load Indicator:
"A system load monitor capable of displaying graphs for CPU, ram, and swap space use, plus network traffic."
https://apps.ubuntu.com/cat/applications/precise/indicator-multiload/

5) Install Laptop Mode Tools (if applicable):
"Laptop mode is a Linux kernel feature that allows your laptop to save considerable power, by allowing the hard drive to spin down for longer periods of time."
sudo apt-get install laptop-mode-tools

6) Install Bleachbit:
"Free cache, delete cookies, clear Internet history, shred temporary files, delete logs, and discard junk."
sudo apt-get install bleachbit

7) Install codecs and enable DVD playback:
sudo apt-get install gstreamer0.10-plugins-ugly gxine libdvdread4 icedax tagtool easytag id3tool lame nautilus-script-audio-convert libmad0 mpg321 gstreamer1.0-libav

8) Enable playing encrypted DVDs:
sudo /usr/share/doc/libdvdread4/./install-css.sh

9) Install Flash plugin on browser:
sudo apt-get install flashplugin-installer

10) Install Preload:
"Speeds up application load time by monitoring the software that is loaded and used day to day, the software used most often, and cache them in memory."
sudo apt-get install preload

11) Swappiness:
"Swappiness is a Linux kernel parameter that controls the relative weight given to swapping out runtime memory."
sudo gedit /etc/sysctl.conf

Add the following lines:
#Use workable swap level
vm.swappiness=10


#Improve cache management
vm.vfs_cache_pressure=50


12) Re-enable Ctl-Alt-Backspace:
sudo gedit /etc/default/keyboard

Replace XKBOPTIONS="" with this line:
XKBOPTIONS="terminate:ctrl_alt_bksp"

13) Block connections to Ubuntu's Ad server
sudo iptables -A OUTPUT -d 91.189.92.11 -j DROP

14) Install extra archive utilities:
sudo apt-get install p7zip-rar p7zip-full unace unrar zip unzip sharutils rar uudeview mpack arj cabextract file-roller

15) Install GNOME Music player:
sudo apt-get install gnome-music

16) Install rkhunter and chkrootkit:
sudo apt-get install rkhunter chkrootkit

Run and update rkhunter using the following commands:
sudo rkhunter --update
sudo rkhunter -c -l Desktop/rkhunterlog.txt

Run chkrootkit by simply running:
sudo chkrootkit

17) Install Aptik:
"Aptik is an open source package that simplify backup and restore of PPAs, Applications and Packages after a fresh installation or upgradation of Debian based Ubuntu, Linux Mint and other Ubuntu derivatives."
http://www.teejeetech.in/
or
http://dl.dropbox.com/u/67740416/linux/aptik-latest-i386.deb?dl=1

Sunday, June 8, 2014

Dell Inspiron 1501 Wireless Fix on Linux


The following commands will get wireless working on an Dell Inspiron laptop 1501:

sudo apt-get purge bcmwl-kernel-source broadcom-sta-common broadcom-sta-source
sudo apt-get install b43-fwcutter firmware-b43-installer


If the latter two are already installed, add "--reinstall" at the end of the second command.

Finally, reboot the machine and use Fn-F2 if the wifi light doesn't automatically illuminate.

Thursday, May 1, 2014

Steps for installing MonoDevelop 4 on Linux Mint 16

Before beginning, here's a screenshot of the final result:


 


#First purge the currently installed mono runtime and other related programs
sudo apt-get purge mono-runtime monodevelop
sudo apt-get update
sudo apt-get remove libmono-profiler mono-jay
 
#Some have claimed that the following command broke their system, but it worked fine on my system.  Use at your own risk!
sudo apt-get autoremove
 
#Reinstall the mono runtime and other supplementary programs
sudo apt-get install mono-runtime mono-complete
sudo apt-get install mono-devel mono-gmcs
 
sudo apt-get install build-essential autoconf automake bison flex gtk-sharp2-gapi boo gdb valac libfontconfig1-dev libcairo2-dev libpango1.0-dev libfreetype6-dev libexif-dev libtiff4-dev libgif-dev zlib1g-dev libatk1.0-dev libjpeg8-dev libjpeg-turbo8-dev libglib2.0-dev libgtk2.0-dev libglade2-dev libart-2.0-dev libgnomevfs2-dev libgnome-desktop-dev libgnome2-dev libgnomecanvas2-dev libgnomeui-dev libgnomeprint2.2-dev libgnomeprintui2.2-dev libpanel-applet-4-dev libnautilus-extension-dev librsvg2-dev libgtkhtml3.14-dev libgtksourceview2.0-dev libgtksourceview2.0-dev libvte-dev libwnck-dev libnspr4-dev libnss3-dev libwebkit-dev libvala-0.18-dev libexif-dev libjpeg-dev libpng-dev libtiff-def
sudo apt-get install monodevelop
 
sudo apt-get install mono-utils mono-winforms-a11y mono-vbnc mono-tools-gui mono-runtime-sgen mono-gac mono-csharp-shell mono-addins-utils mono-3-opt
 
#For Mono
sudo nano directhex-monoxide-saucy.list
sudo add-apt-repository ppa:directhex/monoxide
sudo apt-get update && sudo apt-get dist-upgrade
 
#For MonoDevelop try one of the following steps (see below for commands to build from sources).  The first installs the release version; the second installs the beta version
sudo add-apt-repository ppa:ermshiperete/monodevelop
OR
sudo add-apt repository ppa:ermshiperete/monodevelop-beta
sudo apt-get install monodevelop-4.0

#An alternative installation method that uses a different repository
sudo add-apt-repository ppa:keks9n/monodevelop-latest
sudo apt-get install monodevelop-latest
sudo apt-get update && sudo apt-get dist-upgrade
sudo apt-get install monodevelop-latest


#Build packages from sources


#Build libgdiplus:
cd libgdiplus
./autogen.sh --prefix=/usr/local
make
make install
 
#Build mono:
sudo apt-get build-dep mono
sudo apt-get install mono-gmcs
git clone https://github.com/mono/mono.git
cd mono
./autogen.sh –prefix=/usr/local
make -j5 2>&1 | tee build.log
sudo make install
sudo apt-get remove mono-gmcs
 
#Build mono-addins:
git clone https://github.com/mono/mono-addins.git
cd mono-addins
./autogen.sh --prefix=/usr/local
make -j5 2>&1 | tee build.log
sudo make install
 
#Build gtk#:
sudo git clone -b gtk-sharp-2-12-branch https://github.com/mono/gtk-sharp.git
cd gtk-sharp/
sudo ./bootstrap-2.12 --prefix=/usr/local
make -j5 2>&1 | tee build.log
sudo make install

#Build xsp:
sudo git clone git://github.com/mono/xsp.git
sudo ./autogen.sh --prefix=/usr/local
sudo make -j5 2>&1 | tee build.log
sudo make install

#Build MonoDevelop 
sudo git clone git://github.com/mono/monodevelop
sudo ./configure
sudo make
sudo checkinstall
 
--Note--
Portions of the above were derived from the following websites:

Saturday, November 24, 2012

BugZilla Resources & Information

Linux Distribution:

Upgrading Virtual Bugzilla Server:

Required Modules for Linux (Ubuntu shown):

  • Required: apache2 mysql-server libappconfig-perl libdate-calc-perl libtemplate-perl libmime-perl build-essential libdatetime-timezone-perl libdatetime-perl libemail-send-perl libemail-mime-perl libemail-mime-modifier-perl libdbi-perl libdbd-mysql-perl libcgi-pm-perl
  • Optional: apache2-mpm-prefork libapache2-mod-perl2 libapache2-mod-perl2-dev libchart-perl libxml-perl libxml-twig-perl perlmagick libgd-graph-perl libtemplate-plugin-gd-perl libsoap-lite-perl libhtml-scrubber-perl libjson-rpc-perl libdaemon-generic-perl libtheschwartz-perl libtest-taint-perl libauthen-radius-perl libfile-slurp-perl libencode-detect-perl libmodule-build-perl
  • Even More Optional: libtemplate-perl-doc bzr

Bugzilla Configuration:

BugZilla Email Configuration:

Security:

SSH/SFTP:

IIS Related:

How-To:

Troubleshooting: