četvrtak, 13. prosinca 2012.

How to disable/stop screensaver when watching a video in Xubuntu

Xfce4, Xubuntu

How to disable/stop screensaver when watching a video in Xubuntu.

When you watch a video the screensaver activates or the monitor turns off,
to stop this you need to uncheck the Monitor power manager control box.
Menu > Settings > Settings Manager > Power Manager > General > Monitor power manager control "uncheck"


Zaustavljanje paljenja screensavera u Xubuntu pri gledanju video sadržaja.
Prilikom gledanja filmova ili serija u video playeru, upali se screensever ili se ugasi monitor.
Da to spriječimo potrebno je isključiti kvačicu u Monitor power manager control.
Menu > Settings > Settings Manager > Power Manager > General > Monitor power manager control "isključiti kvačicu".


utorak, 4. rujna 2012.

nedjelja, 5. kolovoza 2012.

If you cannot login to Xubuntu, Ubuntu then repair /home/user/.Xauthority

If you cannot login to Xubuntu, Ubuntu then repair /home/user/.Xauthority 

First open Terminal, Terminator or any Command line

$ cd /home/user    
(change user with you computer username)


$ ls -Shla | grep “Xauthority”

$ mv .Xauthority .Xauthority.old

$ touch .Xauthority

$ chown user:user .Xauthority
(change user:user with you computer username)

$ sudo shutdown -r now

ponedjeljak, 30. srpnja 2012.

How do you close "smtp port 25" on ubuntu, xubuntu ?

How do you close "smtp port 25" on ubuntu, xubuntu ?

You probably have Postfix installed and running.


$ sudo apt-get remove postfix


nedjelja, 29. srpnja 2012.

Window Manager or Window Borders doesn't load

When Window Manager or Window Borders doesn't load in xubuntu
do the next;

open Terminal, Terminator or ALT+F2

$ rm -rf ~/.cache/sessions

$ xfwm4 --replace &

Install Medibuntu on Ubuntu 12.04 LTS Precise Pangolin

Install Medibuntu on Ubuntu 12.04  LTS  Precise Pangolin

$ sudo -E wget --output-document=/etc/apt/sources.list.d/medibuntu.list http://www.medibuntu.org/sources.list.d/$(lsb_release -cs).list && sudo apt-get --quiet update && sudo apt-get --yes --quiet --allow-unauthenticated install medibuntu-keyring && sudo apt-get --quiet update

$ sudo apt-get install app-install-data-medibuntu apport-hooks-medibuntu

Check md5sum of ISO on Linux

Check md5sum of ISO on Linux

Open Terminal, Terminator or any coomand line:

$ cd ~/Downloads

$ md5sum FILE-NAME

subota, 16. lipnja 2012.

ARP Scan

ARP Scan

$ sudo arp-scan -l

$ sudo arp-scan 192.168.1.0/24

----------------------------------------------------

ARP Scan Realtime

$ sudo watch arp-scan --interface=wlan0 -l

$ sudo watch arp-scan --interface=eth0 192.168.1.0/24

----------------------------------------------------

Delete Routes in ubuntu

delete route

$ sudo route del [-net|-host] netmask gw dev X

example:
$ sudo route del -host 192.20.0.0 netmask 255.255.255.0 gw 192.168.1.1 dev eth0
$ sudo route  del -net 192.20.0.0 netmask 255.255.255.0 gw 192.168.1.1 dev eth0
or
$ sudo route  del -host 192.20.0.0 gw 192.168.1.1 dev eth0
$ sudo route  del -net 192.20.0.0 gw 192.168.1.1 dev eth0

$ sudo /etc/init.d/networking restart
or
$ sudo /etc/init.d/networking start
$ sudo /etc/init.d/networking stop

$ route -n

Add routes in ubuntu

add routes

$ sudo route add [-net|-host] netmask gw dev X

example:
$ sudo route add -host 192.20.0.0 netmask 255.255.255.0 gw 192.168.1.1 dev eth0
$ sudo route add -net 192.20.0.0 netmask 255.255.255.0 gw 192.168.1.1 dev eth0
or
$ sudo route add -host 192.20.0.0 gw 192.168.1.1 dev eth0
$ sudo route add -net 192.20.0.0 gw 192.168.1.1 dev eth0

$ sudo /etc/init.d/networking restart
or
$ sudo /etc/init.d/networking start
$ sudo /etc/init.d/networking stop

$ route -n

Add hosts in ubuntu

add hosts

$ sudo gedit /etc/hosts
$ sudo /etc/init.d/networking restart

Change hostname in ubuntu

change hostname

$ sudo gedit /etc/hostname
$ sudo /etc/init.d/hostname restart

nedjelja, 3. lipnja 2012.

IP Scanners

1. arp-scan
2. nmap
3. Angry IP Scanner

---------------------------------
1. arp-scan

sudo apt-get install arp-scan
$ sudo arp-scan -l    #Scans the local network
$ sudo arp-scan 192.168.1.0/24     #Scans 192.168.1.0 255.255.255.0
$ sudo arp-scan 192.168.1.1-192.168.1.254     #Scans the obvious range

 ---------------------------------
2. nmap

sudo apt-get install nmap
$ sudo nmap -sP 192.168.1.0/24     #Scans 192.168.1.0 255.255.255.0
$ sudo nmap -sP 192.168.1.1-254     #Scans the obvious range

 ---------------------------------
3. Angry IP Scanner

http://www.angryip.org/w/Download
or
http://sourceforge.net/projects/ipscan/files/ipscan3-binary/3.0-beta6/ipscan_3.0-beta6_i386.deb

$ sudo dpkg -i  ipscan_3.0-beta6_i386.deb

 --------------------------------- 

četvrtak, 15. ožujka 2012.

E: Could not get lock /var/lib/apt/lists/lock

When I try to update or upgrade, the terminal shows me this message;

user@user:~$ sudo apt-get update && sudo apt-get upgrade && sudo apt-get autoremove && sudo apt-get autoclean && sudo apt-get clean
[sudo] password for user:
E: Could not get lock /var/lib/apt/lists/lock - open (11: Resource temporarily unavailable)
E: Unable to lock directory /var/lib/apt/lists/


Enter this line to fix the problem:

user@user:~$ sudo rm /var/lib/apt/lists/lock


Enter this line to update and upgrade:

user@user:~$ sudo apt-get update && sudo apt-get upgrade && sudo apt-get autoremove && sudo apt-get autoclean && sudo apt-get clean

četvrtak, 23. veljače 2012.

Check open ports


$ sudo lsof -Pni4 | grep LISTEN

$ sudo lsof -i -P | grep -i "listen"

or

$ sudo su -

# lsof -Pni4 | grep LISTEN

# lsof -i -P | grep -i "listen"

subota, 18. veljače 2012.

petak, 17. veljače 2012.

Get your external IP address

Get your external IP address

$ $ curl -s http://checkip.dyndns.org/ | grep -o "[[:digit:].]\+"

or

$ dig +short myip.opendns.com @resolver1.opendns.com

or

$ curl ip.appspot.com

or

$ sudo apt-get install curl

$ curl ifconfig.me

$ watch -n 1 "netstat -tpanl | grep ESTABLISHED"
Monitor TCP opened connections

How to check Linux version from command line

$ cat /proc/version

Ubuntu / Xubuntu

$ cat /etc/lsb-release

nedjelja, 12. veljače 2012.

petak, 27. siječnja 2012.

How to remove Kubuntu-desktop 11.10

Remove Kubuntu-desktop 11.10 , and install Xubuntu-desktop

$ sudo apt-get remove akonadi-backend-mysql akonadi-server akregator amarok amarok-common amarok-utils appmenu-gtk appmenu-gtk3 appmenu-qt apport-kde apturl-kde ark bluedevil cdparanoia cdrdao cryptsetup docbook-xsl dolphin dragonplayer dvd+rw-tools freespacenotifier gnupg-agent gnupg2 gpgsm growisofs gstreamer0.10-qapt gtk2-engines-oxygen gwenview ibus-qt4 icoutils jockey-kde k3b k3b-data kaccessible kaddressbook kamera kate kate-data katepart kcalc kde-baseapps-bin kde-baseapps-data kde-config-gtk kde-config-touchpad kde-runtime kde-runtime-data kde-style-oxygen kde-wallpapers-default kde-window-manager kde-window-manager-common kde-workspace kde-workspace-bin kde-workspace-data kde-workspace-kgreet-plugins kde-zeroconf kdebase-runtime kdegames-card-data kdegraphics-strigi-analyzer kdelibs-bin kdelibs5-data kdelibs5-plugins kdemultimedia-kio-plugins kdenetwork-filesharing kdepasswd kdepim-kresources kdepim-runtime kdepim-strigi-plugins kdepimlibs-kio-plugins kdesudo kdm kdoctools khelpcenter4 kinfocenter klipper kmag kmail kmenuedit kmix kmousetool knotes konsole kontact kopete kopete-message-indicator korganizer kpat kppp ksnapshot ksysguard ksysguardd ksystemlog ktimetracker ktorrent ktorrent-data kubuntu-debug-installer kubuntu-default-settings kubuntu-desktop kubuntu-docs kubuntu-firefox-installer kubuntu-netbook-default-settings kubuntu-notification-helper kubuntu-web-shortcuts kvkbd kwalletmanager language-selector-kde libakonadi-calendar4 libakonadi-contact4 libakonadi-kabc4 libakonadi-kcal4 libakonadi-kde4 libakonadi-kmime4 libakonadi-notes4 libakonadiprotocolinternals1 libassuan0 libattica0 libbluedevil1 libboost-program-options1.46.1 libcalendarsupport4 libcanberra-pulse libcln6 libclucene0ldbl libdbusmenu-qt2 libdebconf-kde0 libdiscid0 libdlrestrictions1 libdmtx0a libepub0 libeventviews4 libflac++6 libgadu3 libgpgme++2 libgpgme11 libgps19 libgrantlee-core0 libibus-qt1 libincidenceeditorsng4 libindicate-qt1 libiodbc2 libk3b6 libkabc4 libkactivities-bin libkactivities6 libkalarmcal2 libkateinterfaces4 libkatepartinterfaces4 libkblog4 libkcal4 libkcalcore4 libkcalutils4 libkcddb4 libkcmutils4 libkde3support4 libkdeclarative5 libkdecorations4 libkdecore5 libkdegames5a libkdepim4 libkdepimdbusinterfaces4 libkdesu5 libkdeui5 libkdewebkit5 libkdgantt2 libkdnssd4 libkemoticons4 libkephal4abi1 libkexiv2-10 libkexiv2-data libkfile4 libkholidays4 libkhtml5 libkidletime4 libkimap4 libkio5 libkipi-data libkipi8 libkjsapi4 libkjsembed4 libkldap4 libkleo4 libkmanagesieve4 libkmbox4 libkmediaplayer4 libkmime4 libknewstuff2-4 libknewstuff3-4 libknotifyconfig4 libkntlm4 libkonq-common libkonq5-templates libkonq5abi1 libkontactinterface4 libkopete4 libkparts4 libkpgp4 libkpimidentities4 libkpimtextedit4 libkpimutils4 libkprintutils4 libkpty4 libkresources4 libkrosscore4 libksba8 libkscreensaver5 libksgrd4 libksieve4 libksieveui4 libksignalplotter4 libktexteditor4 libktnef4 libktorrent-l10n libktorrent3 libkunitconversion4 libkwineffects1abi3 libkwinglutils1 libkworkspace4 libkworkspace4abi1 libkxmlrpcclient4 liblastfm0 libmailcommon4 libmailtransport4 libmessagecomposer4 libmessagecore4 libmessagelist4 libmessageviewer4 libmicroblog4 libmsn0.3 libmuonprivate1 libmusicbrainz3-6 libmygpo-qt1 libnepomuk4 libnepomukquery4a libnepomukutils4 libntrack-qt4-1 libntrack0 libokularcore1abi1 libphonon4 libplasma-geolocation-interface4 libplasma3 libplasmaclock4abi3 libplasmagenericshell4 libpolkit-qt-1-1 libpoppler-qt4-3 libprison0 libprocesscore4abi1 libprocessui4a libpth20 libqalculate5 libqapt-runtime libqapt1 libqca2 libqca2-plugin-ossl libqgpgme1 libqimageblitz4 libqjson0 libqrencode3 libqt4-designer libqt4-help libqt4-opengl libqt4-qt3support libqt4-scripttools libqt4-sql-sqlite libqt4-svg libqt4-test libqtassistantclient4 libqtglib-2.0-0 libqtgstreamer-0.10-0 libqtscript4-core libqtscript4-gui libqtscript4-network libqtscript4-sql libqtscript4-uitools libqtscript4-xml libqtwebkit4 libreoffice-kde libreoffice-style-oxygen libsolid4 libsolidcontrol4abi2 libsolidcontrolifaces4abi2 libsoprano4 libssh-4 libstreamanalyzer0 libstreams0 libsyndication4 libtag-extras1 libtaskmanager4abi3 libtemplateparser4 libthreadweaver4 libvirtodbc0 libweather-ion6 libxml2-utils libzip1 muon muon-installer muon-notifier muon-updater mysql-client-core-5.1 mysql-server-core-5.1 ntrack-module-libnl-0 obexd-client odbcinst odbcinst1debian2 okular okular-extra-backends oxygen-cursor-theme oxygen-icon-theme oxygen-icon-theme-complete partitionmanager phonon phonon-backend-gstreamer pinentry-gtk2 pinentry-qt4 plasma-dataengines-addons plasma-dataengines-workspace plasma-desktop plasma-netbook plasma-scriptengine-javascript plasma-scriptengine-python plasma-widget-facebook plasma-widget-folderview plasma-widget-kimpanel plasma-widget-kimpanel-backend-ibus plasma-widget-menubar plasma-widget-message-indicator plasma-widget-networkmanagement plasma-widgets-addons plasma-widgets-workspace plymouth-theme-kubuntu-logo plymouth-theme-kubuntu-text printer-applet pulseaudio-module-bluetooth python-kde4 python-pyudev python-qt4 python-qt4-dbus python-sip qapt-batch qapt-deb-installer quassel quassel-data rekonq shared-desktop-ontologies software-properties-kde soprano-daemon system-config-printer-kde systemsettings tasks-icons update-manager-kde usb-creator-kde userconfig virtuoso-minimal virtuoso-opensource-6.1-bin virtuoso-opensource-6.1-common wodim && sudo apt-get install xubuntu-desktop

Against PIPA, SOPA, ACTA

Movie:

Fahrenheit 451 (1966) 

The world gone amok. 
Illiterates have taken over  the government and banned reading books. 
This is a great film, I guarantee you will like it.
 

Hrvatski podnaslovi;
http://titlovi.com/titlovi/fahrenheit-451-19078/

utorak, 24. siječnja 2012.

Three Ways to Tweak Ubuntu Linux's Unity Desktop




The most traditional--and most complicated--approach to tweaking Ubuntu is to use the CompizConfig Settings Manager, which is available in the Ubuntu Software Center. This tool includes an Ubuntu Unity Plugin among its Desktop options, and that plugin can be used to configure various aspects of Unity. There are actually step-by-step instructions for doing it this way on How-To Geek. Be warned, though, that it's not always a straightforward process, especially for the beginner. Easier approaches are now available, such as via the following two tools.


Late last month the Ubuntu Tweak development team announced the release of version 0.6.0 of its popular open source tool for customizing Ubuntu. Targeting Ubuntu 11.10, or “Oneiric Ocelot,” the latest version of this application lets users tweak their installations via desktop and system options that Unity doesn't provide. Twelve key areas of Oneiric Ocelot can be customized using Ubuntu Tweak 0.6.0, and Unity Settings are included for the first time, giving users an easy way to change the behavior and size of the desktop's Launcher, for example, as well as the Dash size and even blur type. The software is now available for free download from the Ubuntu Tweak project site.


The Ubuntu Tweak tool has been around for a while, but a newer alternative recently emerged in the form of MyUnity. This tool gives you another way to modify Unity's Dash, Launcher, and Panel, as well as font settings and Dash blur, among other features. Starting with Ubuntu 12.04, “Precise Pangolin,” MyUnity will reportedly be included in the Ubuntu Software Center. In the meantime, instructions for downloading and installing it are available from the software's Italian developer (scroll down on that page for the English version).



Source: 
http://www.pcworld.com/businesscenter/article/248475/three_ways_to_tweak_ubuntu_linuxs_unity_desktop.html

Show all listening and established ports

----------------------------------

Show all listening and established ports TCP and UDP together with the PID of the associated process.

open CLI, Terminal, Terminator;

$ netstat -plantu

----------------------------------

ponedjeljak, 23. siječnja 2012.

mounting local directory to a remote directory with sshfs

sshfs usage
you can use this command for mounting local directory to a remote directory..

open CLI, terminal, terminator;

first install sshfs

$ sudo apt-get install sshfs
$ sshfs -o nonempty /home/user/Desktop/mountdirectory -p 22 root@remotehost:/home/user/Desktop/

nedjelja, 22. siječnja 2012.

Solved problem with Xubuntu Weather plugin

Xubuntu xfce4 Weather plugin
Xfce (Xubuntu 11.10)

open CLI, terminal, terminator;

$ sudo add-apt-repository ppa:lordnightcon/xfce4.8-weather-plugin
$ sudo apt-get update
$ sudo apt-get install xfce4.8-weather-plugin


or you can go to this site, download plugin, and install;
https://launchpad.net/ubuntu/+archive/primary/+files/xfce4-weather-plugin_0.7.4-3_i386.deb


https://launchpad.net/ubuntu/+source/xfce4-weather-plugin