Tag Archives: ubuntu

Ubuntu 14.04 with Grasehotspot 3.8 error because p2p1 network card name

Published by:

Menginstal grasehotspot yang merupakan software berbasis web untuk mengatur lalu lintas user internet berupa hotspot merupakan tantangan sendiri di Ubuntu 14.04. Dengan cpu dan motherboard keluaran terbaru. Seperti beberapa hari ini saya mencobanya di I5 + 8Gb DDr3 + motherboard (gigabyte mungkin) cukup memberikan pelajaran yang sangat bernilai.

Pertama, ubuntu 14.04 ternyata memberikan penamaan lan port yang sesuai dengan keberadaan port nya. Os ini tidak lagi menggunakan eth0 dan seterusnya, tapi dengan kode seperti p2p1 dan p3p1. Kira-kira demikian. Ketika masuk pada instalasi grasehotspot, maka barulah konfigurasi ini mengalami keanehan.

Yaitu program hotspot yang berjalan mulus di server, sekarang tidak jalan. Client tidak mendapatkan ip dari server. Ketika diperiksa di server, dengan perintah sudo ifconfig

Hasilnya ada urusan internet dengan p2p1 dan p3p1. Sebenarnya server internet berjalan, tapi device lain yang akan menggunakan grasehotspot, tidak jalan.

Salah satu solusinya adalah merubah penamaan p2p1 dsb tersebut kembali ke eth0 dan atau eth1.

Disini ada satu sumber bagaimana melakukannya : link

Langkah pertama yang disebutkan disana adalah mengubah parameter boot melalui grub.
Edit /etc/default/grub misalnya dengan vi atau nano editor

root@server:#nano /etc/default/grub

edit line dengan parameter di bawah dan isikan seperti tercantum

GRUB_CMDLINE_LINUX_DEFAULT=”net.ifnames=1 biosdevname=0″

Create if none and edit if any the /etc/udev/rules.d/70-persistent-rules
Find out the p2p1 and p3p1 mac address that we can find out with

root@server:#ifconfig

Now edit

root@server:#nano /etc/udev/rules.d/70-persistent-rules

Add these line

SUBSYSTEM==”net”, ACTION==”add”, ATTR{address}==”macadress”, NAME=”eth0″
SUBSYSTEM==”net”, ACTION==”add”, ATTR{address}==”macadress”, NAME=”eth1″

Dont’ forget to change the network configuration if static

root@server:#nano /etc/network/interfaces

Change any setting with p2p1 or p3p1 to eth0 and eth1. After that restart the computer.

It should be eth0 and eth1. So the grasehotspot should be running like mine.

wireshark ubuntu

Published by:

source : https://ubuntuforums.org/showthread.php?t=2039978
this is how to install wireshark :
sudo apt-get install libcap2-bin wireshark
sudo chgrp myusername /usr/bin/dumpcap
sudo chmod 750 /usr/bin/dumpcap
sudo setcap cap_net_raw,cap_net_admin+eip /usr/bin/dumpcap

http://askubuntu.com/questions/74059/how-do-i-run-wireshark-with-root-privileges
this command add extra functionality to run wireshark in user mode, don't have to change to root desktop

sudo dpkg-reconfigure wireshark-common

My Ubuntu Goes to BusyBox On Startup

Published by:

This is happened because the electricity in my city is black out. When I start my laptop, it show the bootloader option but after I pressed enter, the system can not boot into the operating system. It is said that it can not mount sda.

I try to access it using the boot operating system through my flash disk, but I can’t mount the sda.

After I read in ubuntuforum, I try this command.

sudo e2fsck -f -b 32768 -y /dev/sda1

source: ubuntuforum.org

After It done doing some processing, I reboot and the system back to normal

firefox (in ubuntu) libavcodec error

Published by:

The error I meant is the message displayed at the top of the firefox, said libavcodec is vulnerable and expired (for some reason). After googling and find the article in http://askubuntu.com/questions/851190/how-to-update-libavcodec-on-ubuntu-14-04, the problem is libavcodec is disabled as default.

Libavcodec is needed to play the streaming in the website. Except for youtube. I still can play youtube with libavcodec disabled. I wonder why.

Anyway the solution is make the libavcodec enable.

Here is how

type about:config in the address bar, enter
click “I accept the risk” search libavcodec
change media.libavcodec.allow-obsolete;false to true

askubuntu.com

virtualbox shared folder – another way mounting shared folder using samba

Published by:

my host is slackware.
the virtual machine is windows xp.
I am going to add the folder in my slackware into the windows using samba in the slackware.

first setting the samba in the slackware. I think I have another post about samba in this blog. Then in the virtualbox, set the network setting into two nic. The first nic as bridge adapter and the other as nat.

Later in the virtual machine, we will see the lan address of the bridge. Then set it manually to the same network address as host. If the host is 192.168.1.1 then the bridge is 192.168.1.2

Next, through the network browser file manager in windows, browse to 192.168.1.1, we will see the samba share right over there.

installing zoneminder 1.29 in ubuntu 14.04 server x86_64

Published by:

first step

https://wiki.zoneminder.com/Ubuntu_Server_14.04_64-bit_with_Zoneminder_1.29.0_the_easy_way

second, moving the recording partition

https://wiki.zoneminder.com/Using_a_dedicated_Hard_Drive

third

see how the ip camera setting with zoneminder

fourth, set the filter for automatic deletion

http://zoneminder.readthedocs.org/en/latest/faq.html

fifth, set the timer when to record and stop

using crontab