Step 1
~$ sudo apt-get install gnome-control-center gnome-online-accounts
Step 2
Search Gnome Control Center from DASH and open Settings.
Beware that Unity Control Center looks similar to Gnome but it won't work in Unity (at least as of my posting date).
Step 3
Add your Google account and respond to succeeding instructions. When asked about applications to integrate with your online account, ensure you include FILES.
Step 4
Open FILES (or Nautilus). Your online account should be in the right panel.
Assumptions
Ubuntu 16.04 LTS
Saturday, July 8, 2017
Monday, April 4, 2016
Installing SSH server in Kali [Reminders]
Installing SSH server in Kali [Reminders]
Considerations- Kali 2016.1 Rolling Edition
Install
~# apt-get update
~# apt-get install openssh-server
~# update-rc.d -f ssh remove
~# update-rc.d -f ssh defaults
Create security keys
~# cd /etc/ssh/
~# mkdir tsktsktsk
~# mv ssh_host_* tsktsktsk
~# dpkg-reconfigure openssh-server
Allow root account
~# edit /etc/ssh/sshd_config
Find PermitRootLogin without-password
change to PermitRootLogin yes
~# sudo service ssh restart
Auto-start the ssh server on boot
~# update-rc.d -f ssh enable 2 3 4 5
Friday, April 1, 2016
OpenVAS install sequence
[How to]
OpenVAS install sequence
Parameters:
- Kali 2016.1 Rolling Edition
- OpenVAS 8.0
~# apt-get update
~# apt-get install openvas
~# openvas-setup
~# vi /lib/systemd/system/greenbone-security-assistant.service
Change --listen=127.0.0.1
to --listen=0.0.0.0
This will allow remote browsers to connect to Greenbone.
~# openvas-nvt-sync --wget OV_HTTP_FEED
Do this if NVT sync through rsync failed.
Source of NVT: http://www.openvas.org/openvas-nvt-feed-current.tar.bz2
~# openvas-start
~# openvasmd --user=admin --new-password=blahblah
This is to assign a password to admin because this was skipped during setup.
The setup only created the admin account.
Run OpenVAS at https://localhost:9392 or https://serveripaddress:9392
Friday, September 11, 2015
[How-to] Enable Hibernate in Ubuntu
[How-to] Enable HIBERNATE in Ubuntu
I enabled Hibernate in my Ubuntu 14.04 by following these:To enable the Hibernate menu
as instructed by http://ubuntuhandbook.org/index.php/2014/04/enable-hibernate-ubuntu-14-04/
~$ sudo vi /var/lib/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla
[Re-enable hibernate by default in upower]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes
[Re-enable hibernate by default in logind]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate
ResultActive=yes
[Re-enable hibernate for multiple users by default in logind]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate-multiple-sessions
ResultActive=yes
Setup SWAP as space to hibernate
as instructed by https://help.ubuntu.com/community/SwapFaq
~$ sudo blkid
Copy the UUID of swap
~$ sudo vi /etc/default/grub
Look for the line GRUB_CMDLINE_LINUX=""
Replace with GRUB_CMDLINE_LINUX="resume=UUID=yourUUID"
~$ sudo update-grub
~$ sudo vi /etc/initramfs-tools/conf.d/resume
Ensure that it contains RESUME=UUID=yourUUID
~$ sudo update-initramfs -u
~$ sudo reboot
Friday, March 13, 2015
Installing JAVA on Ubuntu 14.04LTS
Install Oracle Java in Ubuntu 14.04LTS
9 Sep 2015
My script when I installed JAVA in my Ubuntu 14.04 64-bit
~$ sudo apt-add-repository ppa:webupd8team/java
~$ sudo apt-get update
~$ sudo apt-get install oracle-java8-installer
13 Mar 2015
This was my script when I installed JAVA SE JDK in my Ubuntu 14.04LTS.
JRE_HOME=$JAVA_HOME/jre
PATH=$PATH:$HOME/bin:$JAVA_HOME/bin:$JRE_HOME/bin
export JAVA_HOME
export PATH
Source: http://www.wikihow.com/Install-Oracle-Java-JDK-on-Ubuntu-Linux
9 Sep 2015
My script when I installed JAVA in my Ubuntu 14.04 64-bit
~$ sudo apt-add-repository ppa:webupd8team/java
~$ sudo apt-get update
~$ sudo apt-get install oracle-java8-installer
13 Mar 2015
This was my script when I installed JAVA SE JDK in my Ubuntu 14.04LTS.
- wget -c http://download.oracle.com/otn-pub/java/jdk/8u40-b26/jdk-8u40-linux-i586.tar.gz
- cp -r jdk-8u40-linux-i586.tar.gz /usr/local/java/
- sudo cp -r jdk-8u40-linux-i586.tar.gz /usr/local/java/
- cd /usr/local/java
- sudo tar xvzf jdk-8u40-linux-i586.tar.gz
- sudo gedit /etc/profile ## and append the following:
JRE_HOME=$JAVA_HOME/jre
PATH=$PATH:$HOME/bin:$JAVA_HOME/bin:$JRE_HOME/bin
export JAVA_HOME
export PATH
- sudo update-alternatives --install "/usr/bin/java" "java" "/usr/local/java/jdk1.8.0_40/bin/java" 1
- sudo update-alternatives --install "/usr/bin/javac" "javac" "/usr/local/java/jdk1.8.0_40/bin/javac" 1
- sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/local/java/jdk1.8.0_20/bin/javaws" 1
- sudo update-alternatives --install "/usr/bin/javaws" "javaws" "/usr/local/java/jdk1.8.0_40/bin/javaws" 1
- sudo update-alternatives --set java /usr/local/java/jdk1.8.0_40/bin/java
- sudo update-alternatives --set javac /usr/local/java/jdk1.8.0_40/bin/javac
- sudo update-alternatives --set javaws /usr/local/java/jdk1.8.0_40/bin/javaws
- source /etc/profile
- cd /usr/lib/mozilla/plugins ## create if none
- sudo ln -s /usr/local/java/jdk1.8.0_40/jre/lib/i386/libnpjp2.so
- java -version
- javac -version
- sudo reboot
Source: http://www.wikihow.com/Install-Oracle-Java-JDK-on-Ubuntu-Linux
Thursday, January 29, 2015
[How-to] Mount /home to another disk partition
[How-to] Mount /home to another disk partition
I need to free up some space in my linux(Ubuntu) main partition. I decided to move my /home folder to another partition. So I did the following, as instructed here, https://help.ubuntu.com/community/Partitioning/Home/Moving:
I need to free up some space in my linux(Ubuntu) main partition. I decided to move my /home folder to another partition. So I did the following, as instructed here, https://help.ubuntu.com/community/Partitioning/Home/Moving:
~$ sudo blkid
~$ sudo cp /etc/fstab /etc/fstab.$(date +%Y-%m-%d)
~$ cmp /etc/fstab /etc/fstab.$(date +%Y-%m-%d)
~$ sudo gedit /etc/fstab
and appended
UUID=???????? /media/home ext4 defaults 0 2
~$ sudo mkdir /media/home
~$ sudo mount -a
~$ sudo rsync -aXS --exclude='/*/.gvfs' /home/. /media/home/.
~$ sudo diff -r /home /media/home
~$ sudo gedit /etc/fstab
and edited /media/home to /home
~$ cd / && sudo mv /home /old_home && sudo mkdir /home
~$ reboot
~$ sudo rm -r /old_home
~$ sudo rmdir /media/home
Kali Linux - My Disaster Recovery Script
~# update-rc.d ssh enable
~# cat /etc/apt/sources.list
deb http://security.kali.org/kali-security kali/updates main contrib non-free
deb http://http.kali.org/kali kali main contrib non-free
~# echo export http_proxy=\"http://userid:password@proxyaddressordomainname:8080/\" >> ~/.bashrc
~# echo export https_proxy=\"http://userid:password@proxyaddressordomainname:8080/\" >> ~/.bashrc
~# echo export ftp_proxy=\"http://userid:password@proxyaddressordomainname:8080/\" >> ~/.bashrc
~# echo export all_proxy=\"socks://userid:password@proxyaddressordomainname:8080/\" >> ~/.bashrc
~# openvas-mkcert
~# oepnvas-mkcert-client -i
~# openvas-nvt-sync --wget OV_HTTP_FEED
~# openvassd
~# openvasmd --rebuild --progress
~# openvasmd --create-user=openvasadmin --new-password=1234567890
~# openvasmd -p 9390 -a 0~# gsad --http-only --listen=0 -p 9392~# openvas-check-setup
~# cat /etc/apt/sources.list
deb http://security.kali.org/kali-security kali/updates main contrib non-free
deb http://http.kali.org/kali kali main contrib non-free
~# echo export http_proxy=\"http://userid:password@proxyaddressordomainname:8080/\" >> ~/.bashrc
~# echo export https_proxy=\"http://userid:password@proxyaddressordomainname:8080/\" >> ~/.bashrc
~# echo export ftp_proxy=\"http://userid:password@proxyaddressordomainname:8080/\" >> ~/.bashrc
~# echo export all_proxy=\"socks://userid:password@proxyaddressordomainname:8080/\" >> ~/.bashrc
~# openvas-mkcert
~# oepnvas-mkcert-client -i
~# openvas-nvt-sync --wget OV_HTTP_FEED
~# openvassd
~# openvasmd --rebuild --progress
~# openvasmd --create-user=openvasadmin --new-password=1234567890
~# openvasmd -p 9390 -a 0~# gsad --http-only --listen=0 -p 9392~# openvas-check-setup
Friday, July 18, 2014
Install SketchUp Make 2014 into Ubuntu 14.04
Install SketchUp Make 2014 into Ubuntu 14.04
This post of Ji M exactly worked for me, http://ubuntuhandbook.org/index.php/2014/06/install-google-sketchup-ubuntu1404/
Summary:
1. Configure Wine > Applications > Windows Version
Select Windows 7
2. Configure Wine > Libraries > New override for library
Add riched20
3. Install SketchUp
4. Launch SketchUp with no RubyAPI by:
SketchUp.exe /DisableRubyAPI
or
Edit the command on the application's desktop link.
Problem:
The application hangs at start-up immediately after selecting a template. Step no. 4 above corrected the problem.
This post of Ji M exactly worked for me, http://ubuntuhandbook.org/index.php/2014/06/install-google-sketchup-ubuntu1404/
Summary:
1. Configure Wine > Applications > Windows Version
Select Windows 7
2. Configure Wine > Libraries > New override for library
Add riched20
3. Install SketchUp
4. Launch SketchUp with no RubyAPI by:
SketchUp.exe /DisableRubyAPI
or
Edit the command on the application's desktop link.
Problem:
The application hangs at start-up immediately after selecting a template. Step no. 4 above corrected the problem.
Saturday, July 12, 2014
Avast Linux Guide
Download Avast Linux here:
http://files.avast.com/files/linux/avast4workstation_1.3.0-2_i386.deb
or from my backup:https://drive.google.com/file/d/0B4CqOxmp5noLNnFUQzFkSUZ0NU0/edit?usp=sharing
WARNING:
Installation Procedure:
sudo dpkg -i avast4workstation_1.3.0-2_i386.deb
Installed Application
Executables from terminal
- avast
- avast-update
- avastgui
Error on Updating
When updating, the /home/[user]/.avast/400.vps will increase in size. If size breaches the size of kernel shared memory, a kernel error will again occur. Increase again the size of kernel.shmmax as instructed above.
References
https://forum.avast.com/index.php?topic=91145.0
https://forum.avast.com/index.php?topic=116665.0
http://files.avast.com/files/linux/avast4workstation_1.3.0-2_i386.deb
or from my backup:https://drive.google.com/file/d/0B4CqOxmp5noLNnFUQzFkSUZ0NU0/edit?usp=sharing
WARNING:
Installation Procedure:
sudo dpkg -i avast4workstation_1.3.0-2_i386.deb
On Kernel error try this: sudo sysctl -w kernel.shmmax=128000000 or to permanently effect the settingecho sysctl -w kernel.shmmax=128000000 >> /etc/init.d/rcSInstalled Application
Executables from terminal
- avast
- avast-update
- avastgui
Error on Updating
When updating, the /home/[user]/.avast/400.vps will increase in size. If size breaches the size of kernel shared memory, a kernel error will again occur. Increase again the size of kernel.shmmax as instructed above.
References
https://forum.avast.com/index.php?topic=91145.0
https://forum.avast.com/index.php?topic=116665.0
Friday, July 11, 2014
Error VMWare when upgrading to Ubuntu 14.04
Problem:
Error VMWare when upgrading to Ubuntu 14.04
Solution:
This post help me fix error in Virtual Network Device.
http://askubuntu.com/questions/449629/error-installing-vmware-workstation-on-ubuntu
Error VMWare when upgrading to Ubuntu 14.04
Solution:
This post help me fix error in Virtual Network Device.
http://askubuntu.com/questions/449629/error-installing-vmware-workstation-on-ubuntu
Friday, July 4, 2014
How to resize pictures in Ubuntu
In Ubuntu, this is how I resize my image files
First, I installed imagemagick
First, I installed imagemagick
~# sudo apt-get install imagemagick
To resize file individually~# convert [imagefilename] -resize 1366 [newimagefilename]
The [newimagefilename] can be the same as the original filename if the original file is not intend not to be preserved.
1366 will be the new size, change this with desired figure.
To deal with multiple files, I use loop like this:
~# for file in *.JPG; do convert $file -resize 1366 $file; done
Saturday, May 24, 2014
How to Install and Calibrate Joystick in Ubuntu
How to Install and Calibrate Joystick in Ubuntu
~$ sudo apt-get update
~$ sudo apt-get install joystick
~$ sudo apt-get install jstest-gtk
To calibrate, open jstest-gtk from search key.
~$ sudo apt-get update
~$ sudo apt-get install joystick
~$ sudo apt-get install jstest-gtk
To calibrate, open jstest-gtk from search key.
Friday, March 7, 2014
[How-to]Merge PDF files
In Ubuntu, this is how I merged my PDF files.
~# gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=finished.pdf fileone.pdf filetwo.pdf
gs............................starts the Ghostscript program
-dBATCH.......................Exit after processing files
-dNOPAUSE.....................no user confirmation
-q............................no process messages
-sDEVICE=pdfwrite.............PDF format
-sOutputFile=finished.pdf.....specify output filename
Friday, December 6, 2013
Ubuntu Desktop - What to install next?
Security
Sophos (Antivirus for Linux): See instruction here: https://www.sophos.com/en-us/products/free-tools/sophos-antivirus-for-linux.aspxChoose some security options from here, https://wiki.ubuntu.com/BasicSecurity
- https://addons.mozilla.org/en-US/firefox/addon/noscript/
- https://addons.mozilla.org/en-US/firefox/addon/adblock-plus/
- https://addons.mozilla.org/en-US/firefox/addon/betterprivacy/
- https://chrome.google.com/webstore/detail/adblock-plus/cfhdojbkjhnklbpkdaibdccddilifddb?hl=en-US
~$ sudo apt-get update
~$ sudo apt-get install gufw
Run gufw in Dash and follow the instructions here,https://wiki.ubuntu.com/BasicSecurity/Firewall
Restrict Dash
~$ gsettings set com.canonical.Unity.Lenses remote-content-search none
This will tell Dash not to search the internet.
System Settings > Security & Privacy > Search > Off
This will tell Dash to exclude online searches from its displays.
Crypto
~$ sudo apt-get install seahorse-nautilus
Nautilus plugin for GnuPG.
Multimedia Support
~$ sudo apt-get install flashplugin-installer~$ sudo apt-get install vlc
~$ install JAVA, http://kumpurmi.blogspot.com/2015/03/installing-java-on-ubuntu-1404lts.html
~$ sudo apt-get install ubuntu-restricted-extras
~$ sudo apt-get install libdvdread4
~$ sudo /usr/share/doc/libdvdread4/install-css.sh
~$ sudo apt-get install libav-tools (This is a command-line video converter, avconv.)
~$ sudo apt-get install phonon-backend-vlc, minitube
~$ sudo apt-get install imagemagick (This is a command-line for resizing image files that can work on multiple files in one batch.)
Archive Utilities
~$ sudo apt-get install rarInternet
Google ChromeExtension:
Printer - Canon
~$ sudo add-apt-repository ppa:michael-gruz/canon-trunk~$ sudo apt-get update
~$ sudo apt-get install cnijfilter-ip1900series
or download the driver from here, https://drive.google.com/file/d/0B4CqOxmp5noLdEdmT2lUZmtrLTg/edit?usp=sharing, and
and install the driver at Systems Settings > Printers > Add
Fix Flash
Download flash player installer.~$ tar -xzf install_flash_player_11_linux.i386.tar.gz
~$ mkdir -p $HOME/.mozilla/plugins
~$ cp libflashplayer.so $HOME/.mozilla/plugins
Theme
~$ sudo apt-get install unity-tweak-toolFile Sharing
Install Filezilla from Ubuntu Software CenterPhone Manager
WammuProprietary Device Drivers
Dash > Additional DriversSelect device and appropriate driver offered by Ubuntu
Click Apply
Monday, July 15, 2013
How to Create a virtual DVD/CD drive
How to Create a Virtual DVD/CD drive
Step 1: Create a folder ~$ mkdir /mnt/blablahThe folder created will be the drive's location/address.Step 2:Load your content (iso file)~$ mount -t iso9660 -o loop "<path>/image.iso" /mnt/blablah
Monday, July 1, 2013
[How-to] Install VMWare Tools Offline
[How-to] Install VMWare Tools Offline in Linux
Step 1: Download vmware-tools-*.component.tar from https://softwareupdate.vmware.com/cds/While VMWare player makes it convenient for users to just click "Download and Install" in order to update VMWare tools, sometimes we find ourselves in a situation compelling us to download the VMWare Tools manually. In my case, my Internet service is slow so I had to download the VMWare Tools from a friend's broadband. And, manually transported the downloaded file to my PC.
Step 2: Untar
Example:
tar -xvf vmware-tools-*
Step 3: Install
vmware-installer --install-component=vmware-tools-*
The command will pop-out a graphic interface.
Example:
~$ sudo vmware-installer --install-component= /media/BACKUP/vmware-tools-windows-9.2.3-1031769.i386.component
Step 4: Proceed to the virtual Machine. Click Update VMWare Tool. This should mount an ISO to the VM's virtual CD drive.
If it did not run, navigate the setup.exe or equivalent in the CD drive. The installation process should begin. Respond to the dialog box prompts until installation is completed.
If it did not mount, manually mount the new .iso which you can find at /usr/lib/vmware/isoimages.
Sunday, June 30, 2013
Ubuntu - Dependency Error
TRY THIS, when dependency error occurs during installation.
~$ sudo apt-get install -f
The command-line particularly help me when I was installing Google Chrome in my Ubuntu. During installation, this error occurred:
dpkg: dependency problems prevent configuration of google-chrome-stable: google-chrome-stable depends on libxss1;
however: Package libxss1 is not installed.
dpkg: error processing google-chrome-stable (--install): dependency problems - leaving unconfigured
Processing triggers for desktop-file-utils ...
Processing triggers for bamfdaemon ...
Rebuilding /usr/share/applications/bamf.index...
Processing triggers for gnome-menus ...
Processing triggers for man-db ...
Errors were encountered while processing: google-chrome-stable
So I issued sudo apt-get install -f and reissued the command to install Google Chrome. Thereafter, everything is alright.
Tuesday, April 30, 2013
How to reset UBUNTU Unity and Compiz
I messed up with the Compiz configuration. I was supposed to disable Compiz and so I unchecked every option. But as a result, I lost desktop side bar launcher, the top desktop menu bar, and everything except for the mouse pointer. I restarted the computer using the power button but my desktop still came back just showing only the wallpaper and mouse pointer.
The Google advice that helped me were:
Ctrl-Alt-T //This is to open the terminal window.
$ dconf reset -f /org/compiz/
$ setsid unity
The above reset my Unity and Compiz. Instantly, my desktop returned to normal.
Additional, but I did not do this anymore because the former is enough then.
-> Install dconf tools, $ apt-get install dconf-tools.
The Google advice that helped me were:
Ctrl-Alt-T //This is to open the terminal window.
$ dconf reset -f /org/compiz/
$ setsid unity
The above reset my Unity and Compiz. Instantly, my desktop returned to normal.
Additional, but I did not do this anymore because the former is enough then.
-> Install dconf tools, $ apt-get install dconf-tools.
Sunday, March 10, 2013
Thursday, March 7, 2013
What is EXERCISE?
What is physical EXERCISE?
Any physical activity that will accelerate heart beat to atleast 60% of MHR (or "Maximum Heart Rate")
MHR = 220 - AGE
Subscribe to:
Posts (Atom)
