Tag: ubuntu

Linux

Change Ubuntu server from DHCP to a static IP address

1. Open interfaces file for editing: sudo nano / etc/network/interfacessudo nano / etc/network/interfaces 2. Change interfaces file contents to: auto eth0 iface eth0 inet static address 192.168.10.15 netmask 255.255.255.0 network 192.168.10.0 gateway 192.168.10.1 dns-nameservers 192.168.10.1 8.8.8.8auto eth0 iface eth0 inet static address 192.168.10.15 netmask 255.255.255.0 network 192.168.10.0 gateway 192.168.10.1 dns-nameservers 192.168.10.1 8.8.8.8 You will have …

Linux

Quick FTP Server Installation

Installation sudo apt-get install vsftpdsudo apt-get install vsftpd Upload files By default vsftpd is configured to authenticate system users and allow them to download files. If you want users to be able to upload files, edit configuration file: sudo nano / etc/vsftpd.confsudo nano / etc/vsftpd.conf write_enable=YES Restart vsftpd sudo service vsftpd restartsudo service vsftpd restart …

Ubuntu

How to execute a bash script in Ubuntu by double clicking it

> Ensure that your script begins with the correct command. For ex. #!/bin/bash#!/bin/bash > Install dconf Editor: sudo apt-get install dconf-editorsudo apt-get install dconf-editor > Open dconf Editor > Navigate to org > gnome > nautilus > preferences > Find executable-text-activation and from the dropdown menu select launch or ask.

SVN, Ubuntu

How do I install svn in Ubuntu 14

1. Add rabbitcvs repository sudo add-apt-repository ppa:rabbitvcs/ppasudo add-apt-repository ppa:rabbitvcs/ppa 2. Update system repos sudo apt-get updatesudo apt-get update 3. Install rabbitcvs components sudo apt-get install rabbitvcs-cli rabbitvcs-core rabbitvcs-gedit rabbitvcs-nautilus3sudo apt-get install rabbitvcs-cli rabbitvcs-core rabbitvcs-gedit rabbitvcs-nautilus3 4. Permissions sudo chown -R myusername:mygroup ~/.config/rabbitvcssudo chown -R myusername:mygroup ~/.config/rabbitvcs

Linux, Sniffing, Wireshark

Run Wireshark as a user rather than root – Ubuntu

Messages from wireshark: Running as user “root” and group “root”. This could be dangerous. Lua: Error during loading: [string “/usr/share/wireshark/init.lua”]:45: dofile has been disabled To fix them and run wireshark as normal user and not as root which is very dangerous do the following: sudo chgrp adm /usr/bin/dumpcapsudo chgrp adm /usr/bin/dumpcap sudo chmod 750 /usr/bin/dumpcapsudo …

Linux, Metasploit

How to install Metasploit Framework (Ubuntu)

1. Download Metasploit framework from here. 2. Make installer executable: chmod +x metasploit-latest-linux-xxx-installer.runchmod +x metasploit-latest-linux-xxx-installer.run 3. Run installer: ./metasploit-latest-linux-xxx-installer.run./metasploit-latest-linux-xxx-installer.run 4. Follow setup wizard to complete Metasploit installation. 5. To get latest Metasploit updates execute: sudo msfupdatesudo msfupdate 6. Run Metasploit: msfconsolemsfconsole

Email

How to send encrypted emails

We are going to see how we can send encrypted emails using thunderbird, Enigmail and OpenPGP standard. 1. Download & Install GnuPG. You will find it here or sudo apt-get install gnupg for ubuntu users. 2. Download & Install Thunderbird. You will find it here or sudo apt-get install thunderbird for ubuntu users. 3. Download …