Thursday, November 14, 2013

How to setup static ip address in debian or ubuntu desktop or ubuntu server UPDATED for ubuntu 16.04

                                                                 step 1
                                                       
                                                just check your interfaces
                                sudo ifconfig  or ifconfig (from root)

step 2

default DHCP(router gives out each time a new IP address)


step 3

backup your   network configuration file ( recommended ) 


step 4

just chek 

step 5

install arp-scan   (don't forget use sudo)    

step 6

use command      arp-scan -I eth0 -l
or
arp-scan --interface=eth0 --localnet
and

step 7

now you know which ip addresses on your LAN are occupied


step 8

check ip address of your default router 


step 9

results


step 10 

time to change your IP address
command    nano /etc/network/interfaces

step 11


   auto eth0
                     iface eth0  inet static
                      address 192.168.1.2  
                          netmask 255.255.255.0
                      gateway 192.168.1.1
                             broadcast 192.168.1.255
                                   nameservers 8.8.8.8  8.8.4.4

(number in red color need to be changed to the number you want)

to safe and exit nano text editor use command Ctrl+x and then press y

step 12 
(in case if you change your mind and want to use old settings)
just comment lines
you need to restart your system 
your choice
without living your desktop 

command     /etc/init.d/networking restart
or
you can do manually(just press restart button)  
the end for debian

step 13

this step  only for ubuntu desktop or server 
sudo nano /etc/network/interfaces

step 14


UBUNTU 16.04

Tuesday, November 12, 2013

How to make secure file transfer from remote host to your local host

                                                                                                                   step 1
                                                                                          scp  /root/Desktop/filename.png  root@192.168.1.2:root/Desktop

step 2 
connect over ssh to your server or remote host

step 3
change directory to  file you need 
cd /Documents/

step 4
if ssh not enabled  or disconnected 
use command on your local host 
(or enable ssh)
service ssh restart
192.168.8.21

step 5



scp lastrec root@192.168.1.2:/root/Desktop/datab
(don't forget use    sudo)

step 6
om my local host 192.168.1.2


step 7

on my remote server  192.168.1.21
 the end.


you have to be connected over ssh to remote host
 and  in your case possibly
scp  /home/john/file you want to   username@192.168.1.13:/home/adam/Desktop
                     

How to enable ssh connection on remote host

                                                              step 1
                                                                       

step 2

on remote host
etc/init.d/ssh start

step 3
on remote host
sudo sshd generate
step 4
make permanent on every start
                                                      update-rc.d ssh defaults  
step 5
check status
service ssh status

step 6 
(optional) on your host
sudo service ssh restart

Thursday, November 7, 2013

How to get rid of sending error reports to canonical

                                                           step 1


step 2 


step 3


step 4

then close window

The end

Tuesday, November 5, 2013

How to wake-on-lan ubuntu server 12.04

                                                     step 1
                                                 
                                 on your server type command is   apt-get install ethtool
                                                           
                                                               
                                                        step 2
                 
                                 verify  the wol is supported command is  ethtool eth0
                                                           
                                                          step 3

                                 see results  (don't forget use  sudo)
                                                           
                                                         step 4

                                 enable ethtool command is  ethtool -s eth0 wol g 

                                                          step 5

                                  verify  command is  ethtool eth0                  


step 6

step 7

on your host (from where you will send wake signal to your server)
command sudo apt-get install wakeonline

step 8

chek mac address on your server  
command is      sudo ifconfig  


step 9 

record and remember your mac address
   

step 10


send command to your server to start boot
wakeonlan  00:13:8f:c0:d7:90 

 in you case use mac address from your terminal ( see picture step 9 )


Monday, November 4, 2013

How to navigate in terminal CLI + GUI

                                                     1 step
                                                   
                                                     step 2
                                                             
how to start     ranger                   

step 3
move cursor Up , Down ,Left ,Right. 

step 4
hit Enter to see files


step 5

Depending on Linux version , if you got nano or vi or vim
for nano exit file command is Ctrl+x then press y
for vi or vim exit files command is :q  then press Enter

step 6 
to quit programm just type letter   q

How to make guake auto start on login

step 1 
gnome-session-properties

                                                         
                                                                     step 2


                                                                     The end
                                                   

wordpress problem with plugin updates

                                                           changing permissions will solve the problem                                    ...