nedjelja, 17. lipnja 2018.

Change vendor and update all packages from Packman repo in OpenSuse 15.0



Add all Packman repo into OpenSuse Leap 15.0:
$ sudo zypper ar -f http://packman.jacobs-university.de/suse/openSUSE_Leap_15.0/ Packman-repo-15.0

Show all repos in OpenSuse:
$ sudo zypper repos





$ sudo zypper install --from [repository] [package]

In my case update gstreamer-plugins-bad-lang package from Packman repo:
$ sudo zypper install --from Packman-repo-15.0 gstreamer-plugins-bad-lang

Change vendor and update all packages from Packman repo:
$ sudo zypper dup --from Packman-repo-15.0

Refresh repo, update packages and upgrade and clean OpenSuse:
$ sudo zypper ref && sudo zypper update -y && sudo zypper dup -y && sudo zypper clean

subota, 16. lipnja 2018.

Allow CUPS to install printer in Chrome browser

This procedure will allow CUPS to install printer in Chrome browser. If Chrome shows unauthorized message, do the following.

CUPS > Administration > Add printer on Chrome shows:
Unauthorized
Enter your username and password or the root username and password to access this page. If you are using Kerberos authentication, make sure you have a valid Kerberos ticket.



Create a copy of the CUPS config file:
# cp /etc/cups/cupsd.conf /etc/cups/cupsd.conf-BAK



Edit CUPS:
# vim /etc/cups/cupsd.conf

Change:

AuthType Default
Require user @SYSTEM
Order deny,allow


To:

AuthType None
# AuthType Default
# Require user @SYSTEM
Order deny,allow




Restart CUPS after editing:
# systemctl restart cups


četvrtak, 2. ožujka 2017.

CTRL key stopped working on HP ProBook 450

Left CTRL key stopped working on HP ProBook 450 G2

My laptop runs on Linux and Windows 10 and on both systems the CTRL key did
not work properly.

BIOS was the problem.

If your CTRL key does not work, first check if you can use FN key
instead of CTRL.
For example, FN+C is the same as CTRL+C or FN+V is the same as CTRL+V.
You can try this with a line from a text.
If the FN key works as CTRL key then

turn off your laptop,
unplug it,
TAKE OUT THE BATTERY for 10-15 seconds and then put it back in and turn
the laptop on.

The CTRL key should work normally now.

ponedjeljak, 28. studenoga 2016.

How to install Popcorn Time on Linux, Watch torrent movies instantly

Linux 32 bit - Installation with CLI, Terminator
1. $ cd ~/Downloads
2. $ mkdir popcorn-time && cd popcorn-time
3. $ wget https://github.com/PopcornTime-CE/desktop/releases/download/v0.4.0-2/popcorn-time-community-v0.4.0-2-32bit.tar.xz
tar --xz -xvf popcorn-time-community-v0.4.0-2-32bit.tar.xz
4. $ ./install

Linux 64 bit - Installation with CLI, Terminator
1. $ cd ~/Downloads
2. $ mkdir popcorn-time && cd popcorn-time
3. $ wget https://github.com/PopcornTime-CE/desktop/releases/download/v0.4.0-2/popcorn-time-community-v0.4.0-2-64bit.tar.xz
tar --xz -xvf popcorn-time-community-v0.4.0-2-64bit.tar.xz
4. $ ./install

ponedjeljak, 7. studenoga 2016.

UFW on Raspbian, Raspberry Pi iptables-persistent

After upgrading Raspbian OS, and after restarting Raspberry Pi iptables is empty.
I can't connect to Raspberry PI with NFS. 


To normally start UFW after boot do the following:

$ sudo apt-get install iptables-persistent
$ sudo invoke-rc.d iptables-persistent save

nedjelja, 16. kolovoza 2015.

How to upgrade OpenSuse 13.1 to 13.2

How to upgrade OpenSuse 13.1 to 13.2




$ su

# cat /etc/os-release

# cp -Rv /etc/zypp/repos.d /etc/zypp/repos.d.orig

# sed -i 's/13.1/13.2/g' /etc/zypp/repos.d/*

# zypper lr --uri

# zypper ref

# zypper refresh && zypper update && zypper dup

# cat /etc/os-release

petak, 31. srpnja 2015.

configure NFS server and NFS client in OpenSuse

Example:
NFS Server IP: 192.168.1.5
NFS Client IP: 192.168.1.100
/home/user/folder : /home/your_username/your_folder


----------------------------------------
Configure NFS Server in OpenSuse 13.1:

SERVER nfs:
----------------------------------------

# zypper install nfs-kernel-server yast2-nfs-server

# systemctl enable rpcbind.service
# systemctl start rpcbind.service
# systemctl enable nfsserver.service
# systemctl start nfsserver.service

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

# vi /etc/exports

### share for all subnet:
/home/user/folder 192.168.1.0/24(rw,async,insecure,no_root_squash,no_subtree_check,nohide)
### share for one ip:
/home/user/folder 192.168.1.100(rw,async,insecure,no_root_squash,no_subtree_check,nohide)

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

# systemctl restart rpcbind.service
# systemctl restart nfsserver.service
# exportfs -a


----------------------------------------
----------------------------------------
Configure NFS Client in OpenSuse 13.1:

CLIENT nfs:
----------------------------------------

# systemctl enable rpcbind.service
# systemctl start rpcbind.service

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

# showmount -e 192.168.1.5

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

# vi /etc/fstab

192.168.1.5:/home/user_server/folder_server /client_home/client_username/client_folder   nfs     rw,async,hard,intr 0 0


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

Allow ports in firewall for nfs clients:
# yast > Security and Users > Firewall > Allowed Services > Add

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