Check usb device id by using command
lsusb
It's show like this
Bus 003 Device 006: ID 03eb:2104 Atmel Corp. AVR ISP mkII
Then create this 70-avrdude_usbprog.rules in /etc/udev/rules.d/.
This following is 70-avrdude_usbprog.rules content.
# Atmel AVR ISP mkII
SUBSYSTEM=="usb", ATTRS{idVendor}=="03eb", ATTRS{idProduct}=="2104", TAG+="uaccess"
Execute this following command by root.
udevadm control --reload
Then unplug (usb) the AVRISP-MKII and plug it again.
It's work fine on Fedora Workstation 28.
Thanks for solution from Quichotte
https://forums.fedoraforum.org/showthread.php?265610-execute-avrdude-as-non-root
วันจันทร์ที่ 13 สิงหาคม พ.ศ. 2561
วันพุธที่ 14 กันยายน พ.ศ. 2559
"libkrb5.so" error on running Samba.
I've found solutions on reference website.
try following command.
yum upgrade krb5-libs
and Then edit file /etc/sysconfig/selinux.
set
SELINUX=disabled
Thanks for solution from.
https://www.experts-exchange.com/questions/22957825/Samba-net-ads-join-error.html#answer20312815
try following command.
yum upgrade krb5-libs
and Then edit file /etc/sysconfig/selinux.
set
SELINUX=disabled
Thanks for solution from.
https://www.experts-exchange.com/questions/22957825/Samba-net-ads-join-error.html#answer20312815
วันอังคารที่ 10 พฤศจิกายน พ.ศ. 2558
How to delete file on zfs file system when it has no space left.
open shell terminal and then type
echo "" > path_to_file_want_to_delete
now file want to delete is empty file. Then delete this file by use rm command.
Thanks for solution from
"https://forums.freenas.org/index.php?threads/disk-full-cant-delete-any-files-please-help.12252/"
echo "" > path_to_file_want_to_delete
now file want to delete is empty file. Then delete this file by use rm command.
Thanks for solution from
"https://forums.freenas.org/index.php?threads/disk-full-cant-delete-any-files-please-help.12252/"
วันพุธที่ 15 ตุลาคม พ.ศ. 2557
RT73 Driver compile problem on linux 2.6.38
I've FriendlyARM Tiny 6410 SDK and I've got and linux kernel sources from DVD. But when I'm compile new kernel to install to run Ubuntu I'm not found RT73USB wireless driver. I was solve this problem by download driver sources from railink official website (RT73_Linux_STA_Drv1.1.0.5) . But when I'm compile this driver i've found following problem.
rtmp_init.c:995:3: error: implicit declaration of function 'init_MUTEX'
and
rtmp_init.c:996:3: error: implicit declaration of function 'init_MUTEX_LOCKED'
I've found solution by modify source code to support linux 2.6.38 kernel by change init_MUTEX and init_MUTEX_LOCKED to sema_init function. Now It can compiled.
Thank you solution from
http://objectlayer.blogspot.com/2012/07/linux-kernel-2638-using-semainit.html
rtmp_init.c:995:3: error: implicit declaration of function 'init_MUTEX'
and
rtmp_init.c:996:3: error: implicit declaration of function 'init_MUTEX_LOCKED'
I've found solution by modify source code to support linux 2.6.38 kernel by change init_MUTEX and init_MUTEX_LOCKED to sema_init function. Now It can compiled.
Thank you solution from
http://objectlayer.blogspot.com/2012/07/linux-kernel-2638-using-semainit.html
วันจันทร์ที่ 13 ตุลาคม พ.ศ. 2557
Source List for ARM
/etc/apt/source.list
deb http://ports.ubuntu.com/ubuntu-ports karmic main universe
replace with
deb http://old-releases.ubuntu.com/ubuntu/ karmic main universe
Thanks for
http://readystate4.com/2011/11/21/low-powered-web-servers-and-resolving-issues-installing-ubuntu-on-an-android-galaxy-s/
วันอาทิตย์ที่ 12 ตุลาคม พ.ศ. 2557
"PRI Error on span 2: We think we're the CPE, but they think they're the CPE too" Problem.
I've found this massage on asterisk log (/var/log/asterisk/full)
PRI Error on span 2: We think we're the CPE, but they think they're the CPE too
This problem is solved by edit /etc/asterisk/dahdi-channels.conf
change
Note.
Solution from
http://community.spiceworks.com/topic/487804-pri-cards-where-is-the-problem
and
http://forums.digium.com/viewtopic.php?f=1&t=5937&start=0
PRI Error on span 2: We think we're the CPE, but they think they're the CPE too
This problem is solved by edit /etc/asterisk/dahdi-channels.conf
change
switchtype = national signalling = pri_net
Note.
Solution from
http://community.spiceworks.com/topic/487804-pri-cards-where-is-the-problem
and
http://forums.digium.com/viewtopic.php?f=1&t=5937&start=0
วันพฤหัสบดีที่ 18 กันยายน พ.ศ. 2557
SATA HDD on Wandboard Quad with Fedora20
I'm install FC20 into WB-Quad by following URL.
https://fedoraproject.org/wiki/Architectures/ARM/F20/Installation#For_the_Wandboard_.28Freescale_i.MX6.29
But it's cannot see any SATA devices on board. I've found solution on following URL.
http://www.swissdutch.ch/sata.php
It's require imx6q-wandboard.dtb but URL on site are loss. But I've found new on URL.
http://less.cogeco.net/fedora/linux/development/rawhide/armhfp/os/images/pxeboot/dtb/
And I choose imx6q-wandboard-revb1.dtb (My board is rev B1). Put it into __boot/dtb/ on sd-card. Then I'm modify __boot/extlinux/extlinux.conf by changed
"ftd /dtb/imx6q-wandboard.dtb"
to
"fdt /dtb/imx6q-wandboard-revb1.dtb".
Then create /etc/modules-load.d/imx.conf. This is inside it.
# Load ahci imx at boot
ahci_platform
ahci_imx
When I'm create directory /hdd finished i'm put this line to __/etc/fstab
/dev/sda1 /hdd ext4 defaults 0 0
And Then reboot.
Sources.
https://fedoraproject.org/wiki/Architectures/ARM/F20/Installation#For_the_Wandboard_.28Freescale_i.MX6.29
http://www.swissdutch.ch/sata.php
http://less.cogeco.net/fedora/linux/development/rawhide/armhfp/os/images/pxeboot/dtb/
https://fedoraproject.org/wiki/Architectures/ARM/F20/Installation#For_the_Wandboard_.28Freescale_i.MX6.29
But it's cannot see any SATA devices on board. I've found solution on following URL.
http://www.swissdutch.ch/sata.php
It's require imx6q-wandboard.dtb but URL on site are loss. But I've found new on URL.
http://less.cogeco.net/fedora/linux/development/rawhide/armhfp/os/images/pxeboot/dtb/
And I choose imx6q-wandboard-revb1.dtb (My board is rev B1). Put it into __boot/dtb/ on sd-card. Then I'm modify __boot/extlinux/extlinux.conf by changed
"ftd /dtb/imx6q-wandboard.dtb"
to
"fdt /dtb/imx6q-wandboard-revb1.dtb".
Then create /etc/modules-load.d/imx.conf. This is inside it.
# Load ahci imx at boot
ahci_platform
ahci_imx
When I'm create directory /hdd finished i'm put this line to __/etc/fstab
/dev/sda1 /hdd ext4 defaults 0 0
And Then reboot.
Sources.
https://fedoraproject.org/wiki/Architectures/ARM/F20/Installation#For_the_Wandboard_.28Freescale_i.MX6.29
http://www.swissdutch.ch/sata.php
http://less.cogeco.net/fedora/linux/development/rawhide/armhfp/os/images/pxeboot/dtb/
วันพุธที่ 17 กันยายน พ.ศ. 2557
iMX6-Quad wandboard cannot load fedora linux kernel problem solve.
I've install Fedora20 into Wandboard Quad by following URL.
https://fedoraproject.org/wiki/Architectures/ARM/F20/Installation#For_the_Wandboard_.28Freescale_i.MX6.29
But it found problem about cannot load linux. This is my error message.
Wrong Image format for sysboot command
ERROR: can't get kernel image!
I think it cannot find image on SD-Card. But I'm found this page.
https://fedoraproject.org/wiki/User:Mrunge/Wandboard_quad
And I'm recheck __/etc/fstab. This result
[root@localhost etc]# cat fstab
UUID=67fd65e0-63d0-492d-bac9-f1a7702e30ca / ext4 defaults,noatime 0 0
UUID=85e29c85-1d3f-4dd2-b0d5-f4a41fe95569 /boot ext3 defaults,noatime 0 0
UUID=a6c693c6-99c1-4e79-b522-7cae47d96d38 swap swap defaults,noatime 0 0
It's show root is mounted on UUID=67fd65e0-63d0-492d-bac9-f1a7702e30ca.
But when I'm cat __boot/extlinux/extlinux.conf it's show result.
# extlinux.conf generated by anaconda
#ui menu.c32
menu autoboot Welcome to Fedora. Automatic boot in # second{,s}. Press a key for options.
#menu title Fedora Boot Options.
#menu hidden
timeout 60
#totaltimeout 9000
label Fedora (3.11.10-301.fc20.armv7hl) 20 (Heisenbug)
kernel /vmlinuz-3.11.10-301.fc20.armv7hl
append console=ttymxc0,115200 root=UUID=7ee85ed8-de4a-4779-8658-2daed0d35e97 ro rhgb quiet LANG=en_US.UTF-8
fdt /dtb/imx6q-wandboard.dtb
initrd /initramfs-3.11.10-301.fc20.armv7hl.img
It's show root path is UUID=7ee85ed8-de4a-4779-8658-2daed0d35e97. Oh my god UUID is not correct. When i'm change UUID in __boot/extlinux/extlinux.conf to 67fd65e0-63d0-492d-bac9-f1a7702e30ca now it's boot correctly.
Reference Link
https://fedoraproject.org/wiki/Architectures/ARM/F20/Installation#For_the_Wandboard_.28Freescale_i.MX6.29
https://fedoraproject.org/wiki/User:Mrunge/Wandboard_quad
https://fedoraproject.org/wiki/Architectures/ARM/F20/Installation#For_the_Wandboard_.28Freescale_i.MX6.29
But it found problem about cannot load linux. This is my error message.
Wrong Image format for sysboot command
ERROR: can't get kernel image!
I think it cannot find image on SD-Card. But I'm found this page.
https://fedoraproject.org/wiki/User:Mrunge/Wandboard_quad
And I'm recheck __/etc/fstab. This result
[root@localhost etc]# cat fstab
UUID=67fd65e0-63d0-492d-bac9-f1a7702e30ca / ext4 defaults,noatime 0 0
UUID=85e29c85-1d3f-4dd2-b0d5-f4a41fe95569 /boot ext3 defaults,noatime 0 0
UUID=a6c693c6-99c1-4e79-b522-7cae47d96d38 swap swap defaults,noatime 0 0
But when I'm cat __boot/extlinux/extlinux.conf it's show result.
# extlinux.conf generated by anaconda
#ui menu.c32
menu autoboot Welcome to Fedora. Automatic boot in # second{,s}. Press a key for options.
#menu title Fedora Boot Options.
#menu hidden
timeout 60
#totaltimeout 9000
label Fedora (3.11.10-301.fc20.armv7hl) 20 (Heisenbug)
kernel /vmlinuz-3.11.10-301.fc20.armv7hl
append console=ttymxc0,115200 root=UUID=7ee85ed8-de4a-4779-8658-2daed0d35e97 ro rhgb quiet LANG=en_US.UTF-8
fdt /dtb/imx6q-wandboard.dtb
initrd /initramfs-3.11.10-301.fc20.armv7hl.img
It's show root path is UUID=7ee85ed8-de4a-4779-8658-2daed0d35e97. Oh my god UUID is not correct. When i'm change UUID in __boot/extlinux/extlinux.conf to 67fd65e0-63d0-492d-bac9-f1a7702e30ca now it's boot correctly.
Reference Link
https://fedoraproject.org/wiki/Architectures/ARM/F20/Installation#For_the_Wandboard_.28Freescale_i.MX6.29
https://fedoraproject.org/wiki/User:Mrunge/Wandboard_quad
วันอาทิตย์ที่ 17 พฤศจิกายน พ.ศ. 2556
How to install nemesis on Ubuntu
1. Install Dependency
apt-get install libdnet-dev
apt-get install libpcap-dev
2. Install Libnet
I'm assume build location at /usr/nembuild
wget http://ips-builder.googlecode.com/files/libnet-1.0.2a.tar.gz
tar -xf libnet-1.0.2a.tar.gz
cd Libnet-1.0.2a
./configure
make && make install
if found "make error 1" edit Makefile
change
MAN_PREFIX =
to
MAN_PREFIX = /usr/share/doc/
and then make it again!
3. Install Nemesis
I'm assume build location at /usr/nembuild
if you follow me from step 2 please type following line
cd ..
now you are at
/usr/nembuild/
wget http://heanet.dl.sourceforge.net/project/nemesis/nemesis/1.4/nemesis-1.4.tar.gz
tar -xf nemesis-1.4.tar.gz
cd nemesis-1.4
./configure --with-libnet-includes=/usr/nembuild/Libnet-1.0.2a/include --with-libnet-libraries=/usr/nembuild/Libnet-1.0.2a/lib
make && make install
if found
/usr/nembuild/Libnet-1.0.2a/include/libnet.h:87:8: warning: missing terminating " character [enabled by default]
/usr/nembuild/Libnet-1.0.2a/include/libnet.h:89:50: warning: missing terminating " character [enabled by default]
nemesis-functions.c: In function ‘nemesis_check_link’:
nemesis-functions.c:342:36: error: dereferencing pointer to incomplete type
make[2]: *** [nemesis-functions.o] Error 1
make[2]: Leaving directory `/usr/nembuild/nemesis-1.4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/nembuild/nemesis-1.4'
make: *** [all] Error 2
edit libnet-headers.h
vim ../Libnet-1.0.2a/include/libnet/libnet-headers.h
change
#if (!__GLIBC__)
struct ether_addr
{
u_char ether_addr_octet[6];
};
#endif
apt-get install libdnet-dev
apt-get install libpcap-dev
2. Install Libnet
I'm assume build location at /usr/nembuild
wget http://ips-builder.googlecode.com/files/libnet-1.0.2a.tar.gz
tar -xf libnet-1.0.2a.tar.gz
cd Libnet-1.0.2a
./configure
make && make install
if found "make error 1" edit Makefile
change
MAN_PREFIX =
to
MAN_PREFIX = /usr/share/doc/
and then make it again!
3. Install Nemesis
I'm assume build location at /usr/nembuild
if you follow me from step 2 please type following line
cd ..
now you are at
/usr/nembuild/
wget http://heanet.dl.sourceforge.net/project/nemesis/nemesis/1.4/nemesis-1.4.tar.gz
tar -xf nemesis-1.4.tar.gz
cd nemesis-1.4
./configure --with-libnet-includes=/usr/nembuild/Libnet-1.0.2a/include --with-libnet-libraries=/usr/nembuild/Libnet-1.0.2a/lib
make && make install
if found
/usr/nembuild/Libnet-1.0.2a/include/libnet.h:87:8: warning: missing terminating " character [enabled by default]
/usr/nembuild/Libnet-1.0.2a/include/libnet.h:89:50: warning: missing terminating " character [enabled by default]
nemesis-functions.c: In function ‘nemesis_check_link’:
nemesis-functions.c:342:36: error: dereferencing pointer to incomplete type
make[2]: *** [nemesis-functions.o] Error 1
make[2]: Leaving directory `/usr/nembuild/nemesis-1.4/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/nembuild/nemesis-1.4'
make: *** [all] Error 2
edit libnet-headers.h
vim ../Libnet-1.0.2a/include/libnet/libnet-headers.h
change
#if (!__GLIBC__)
struct ether_addr
{
u_char ether_addr_octet[6];
};
#endif
to
//#if (!__GLIBC__)
struct ether_addr
{
u_char ether_addr_octet[6];
};
//#endif
struct ether_addr
{
u_char ether_addr_octet[6];
};
//#endif
วันพุธที่ 10 ตุลาคม พ.ศ. 2555
EMC2 Video card Problem solve.
if you have problem about glx and etc on start up emc2 software on ubuntu 10LTS. It's mean you have video card problem i think. My System have PIII 1.13GHz and Voodoo5 5500 AGP card. Now I can solve this problem by use the following solution.
press CTRL + ALT + F1
login and run following command
sudo service gdm stop
sudo apt-get build-dep xserver-xorg-video-tdfx
sudo apt-get source xserver-xorg-video-tdfx
sudo apt-get install libglide3
sudo ldconfig
cd ~/xserver-xorg-video-tdfx-1.4.3/
./configure
make
make install
cd /usr/local/lib/xorg/modules/drivers/
sudo cp *.* /usr/lib/xorg/modules/drivers/
sudo Xorg -configure
sudo mv ~/xorg.conf.new /etc/X11/xorg.conf
Add the following red line to /etc/X11/xorg.conf
Section "Device
Identifier "Configured Video Device"
Driver "vesa"
Section "Module"
Load "glx"
Load "dri"
Load "GLcore"
Load "v4l"
press CTRL + ALT + F1
login and run following command
sudo service gdm stop
sudo apt-get build-dep xserver-xorg-video-tdfx
sudo apt-get source xserver-xorg-video-tdfx
sudo apt-get install libglide3
sudo ldconfig
cd ~/xserver-xorg-video-tdfx-1.4.3/
./configure
make
make install
cd /usr/local/lib/xorg/modules/drivers/
sudo cp *.* /usr/lib/xorg/modules/drivers/
sudo Xorg -configure
sudo mv ~/xorg.conf.new /etc/X11/xorg.conf
Add the following red line to /etc/X11/xorg.conf
Section "Device
Identifier "Configured Video Device"
Driver "vesa"
Section "Module"
Load "glx"
Load "dri"
Load "GLcore"
Load "v4l"
sudo service gdm start
reference link
วันจันทร์ที่ 1 ตุลาคม พ.ศ. 2555
On-screen keyboard not working when USB barcode scanner is connected Problem
When you connect a USB barcode scanner, the on-screen keyboard of your Android Tablet may stop working. To resolve this problem, take the following steps:
Open the Applications tab and tap Settings.
Tap Language & Input, and next Current input method.
Disable the Use Physical Keyboard option.
from : http://acer--uk.custhelp.com/app/answers/detail/a_id/12300/~/on-screen-keyboard-not-working-when-usb-barcode-scanner-is-connected
วันจันทร์ที่ 17 กันยายน พ.ศ. 2555
Command to Make MySQL with utf8 charset
make \
WITH_CHARSET=utf8 \
WITH_XCHARSET=all \
WITH_COLLATION=utf8_general_ci \
WITH_OPENSSL=yes \
BUILD_OPTIMIZED=yes \
install && make clean
How to Install PostgreSQL on FreeBSD using ports
Step 1 : Update ports
Step 2 : cd /usr/ports/databases/postgresql92-server
Step 3 : make && make install && make clean
Step 4 : /usr/local/etc/rc.d/postgresql initdb
Step 5 : Add following line to /usr/local/pgsql/data/pg_hba.conf
host all all _your_network_ password
Step 6 : Change this value in file /usr/local/pgsql/data/postgresql.conf
#listen_addresses = 'localhost' -> listen_addresses = '*'
#port = 5432 -> port = 5432
Step 7 : Add Following line to /etc/rc.conf
postgresql_class="postgres"
postgresql_enable="YES"
Step 8 : Start you postgres using command
/usr/local/etc/rc.d/postgresql start
Solution From : http://wiki.openstreetmap.org/wiki/User:S-s-s_wiki/Creating_a_local_OSM_server_under_FreeBSD
Step 2 : cd /usr/ports/databases/postgresql92-server
Step 3 : make && make install && make clean
Step 4 : /usr/local/etc/rc.d/postgresql initdb
Step 5 : Add following line to /usr/local/pgsql/data/pg_hba.conf
host all all _your_network_ password
Step 6 : Change this value in file /usr/local/pgsql/data/postgresql.conf
#listen_addresses = 'localhost' -> listen_addresses = '*'
#port = 5432 -> port = 5432
Step 7 : Add Following line to /etc/rc.conf
postgresql_class="postgres"
postgresql_enable="YES"
Step 8 : Start you postgres using command
/usr/local/etc/rc.d/postgresql start
Solution From : http://wiki.openstreetmap.org/wiki/User:S-s-s_wiki/Creating_a_local_OSM_server_under_FreeBSD
How add postgres user
Step 1 : Add Unix/Linux User
Step 2 : Using Superuser command
#su -l pgsql
Step 3 : Connect to Database Server
#psql template1
or
#psql -d template1 -U pgsql
Output
bla bla bla
template1=#
Step 4 : Add user
template1=#CREATE USER xman WITH PASSWORD 'mypass';
Step 5 : Add Database
template1=#CREATE DATABASE test1;
template1=#GRANT ALL PRIVILEGES ON DATABASE test1 to xman;
*** If you want to alter user to superuser use the following command
ALTER USER myuser WITH SUPERUSER;
template1=#\q
Step 6 : Test Login
$su -l xman
$psql -d test1 -U xman
Output
bla bla bla
test1=>
Solution from http://www.cyberciti.biz/faq/howto-add-postgresql-user-account/
Step 2 : Using Superuser command
#su -l pgsql
Step 3 : Connect to Database Server
#psql template1
or
#psql -d template1 -U pgsql
Output
bla bla bla
template1=#
Step 4 : Add user
template1=#CREATE USER xman WITH PASSWORD 'mypass';
Step 5 : Add Database
template1=#CREATE DATABASE test1;
template1=#GRANT ALL PRIVILEGES ON DATABASE test1 to xman;
*** If you want to alter user to superuser use the following command
ALTER USER myuser WITH SUPERUSER;
template1=#\q
Step 6 : Test Login
$su -l xman
$psql -d test1 -U xman
Output
bla bla bla
test1=>
Solution from http://www.cyberciti.biz/faq/howto-add-postgresql-user-account/
วันพุธที่ 9 พฤษภาคม พ.ศ. 2555
Java Error on FreeBSD
If found problem message
on FreeBSD 8. Add this line to /etc/fstab for solv this problem.
I'm tested with Sun JDK 7 on FreeBSD 8.2
Thanks for Solution from choudharypranay
http://forums.freebsd.org/showthread.php?t=20494
/usr/local/linux-sun-jdk1.7.0/bin/java: error while loading shared libraries: libjli.so: cannot open shared object file: No such file or directory
on FreeBSD 8. Add this line to /etc/fstab for solv this problem.
linprocfs /compat/linux/proc linprocfs rw 0 0
I'm tested with Sun JDK 7 on FreeBSD 8.2
Thanks for Solution from choudharypranay
http://forums.freebsd.org/showthread.php?t=20494
วันอังคารที่ 17 เมษายน พ.ศ. 2555
How to install openvpn client on Samsung Galaxy Tab 10.1
Hardware Requirement
Samsung Galaxy Tab 10.1 (I'm tested on rooted Official firmware : Android 3.2 HC.)
Software Requirement
1. OpenVPN Installer (from market)
2. OpenVPN Setting (from market)
3. BussyBox Installer (from market)
4. SSHDroid ssh server (from market)
PC Software Requirement
1. Putty ssh client
Step
1. If your tablet doesn't rooted please roote it's first.
2. Open BussyBox Installer and install bussy box to /system/xbin/
3. Connect your tabet to pc and copy openvpn configuration files to tablet /sdcard/openvpn/
5. Connnect you tablet to wifi-network (same the pc's network)
4. Open putty on your pc and connect it to your tablet (default username is root and password is admin)
5. run following command
cd /
mount -o remount rw /system
ln -s /system/xbin/busybox /system/bin/cp
6. On your tablet Open OpenVPN Installer
7. Install OpenVPN to /system/bin/ and choose path of ifconfig to "/system/xbin/busybox ifconfig"
if status showed "Binary Installed" it's mean installation success.
8. Open OpenVPN Setting and go to advance menu.
9. Do not checked on Load tun kernel module (Because i'm check for tun.ko is now loading to kernel. I'm using Tun.ko from market to check tun.ko in kernel module). Set Path to Configurations to "/sdcard/openvpn". Set Path to openvpn binary to "/system/bin/openvpn" and press back button. Now. You should see your open configuration connections.
10. Enjoy.
*** if you have problem about dns cannot change you can set dns by press connection you want and then select preference. Check on "Use VPN DNS Server" and set "VPN DNS Server" to your DNS Server.
Reference
http://vpnblog.info/android-openvpn-strongvpn.html
http://code.google.com/p/android-openvpn-installer/issues/detail?id=2
http://linux.about.com/od/commands/l/blcmdl8_mount.htm
Samsung Galaxy Tab 10.1 (I'm tested on rooted Official firmware : Android 3.2 HC.)
Software Requirement
1. OpenVPN Installer (from market)
2. OpenVPN Setting (from market)
3. BussyBox Installer (from market)
4. SSHDroid ssh server (from market)
PC Software Requirement
1. Putty ssh client
Step
1. If your tablet doesn't rooted please roote it's first.
2. Open BussyBox Installer and install bussy box to /system/xbin/
3. Connect your tabet to pc and copy openvpn configuration files to tablet /sdcard/openvpn/
5. Connnect you tablet to wifi-network (same the pc's network)
4. Open putty on your pc and connect it to your tablet (default username is root and password is admin)
5. run following command
cd /
mount -o remount rw /system
ln -s /system/xbin/busybox /system/bin/cp
6. On your tablet Open OpenVPN Installer
7. Install OpenVPN to /system/bin/ and choose path of ifconfig to "/system/xbin/busybox ifconfig"
if status showed "Binary Installed" it's mean installation success.
8. Open OpenVPN Setting and go to advance menu.
9. Do not checked on Load tun kernel module (Because i'm check for tun.ko is now loading to kernel. I'm using Tun.ko from market to check tun.ko in kernel module). Set Path to Configurations to "/sdcard/openvpn". Set Path to openvpn binary to "/system/bin/openvpn" and press back button. Now. You should see your open configuration connections.
10. Enjoy.
*** if you have problem about dns cannot change you can set dns by press connection you want and then select preference. Check on "Use VPN DNS Server" and set "VPN DNS Server" to your DNS Server.
Reference
http://vpnblog.info/android-openvpn-strongvpn.html
http://code.google.com/p/android-openvpn-installer/issues/detail?id=2
http://linux.about.com/od/commands/l/blcmdl8_mount.htm
How to root Samsung Galaxy Tab 10.1
Hardware Requirement
Samsung Galaxy Tab 10.1 (I'm tested on Official firmware : Android 3.2 HC.)
How to
1. if you don't have Samsung Galaxy Tab Driver for you computer please download and install it first.
2. download tabrooteasy.zip and then extract to local hard drive
3. connect your tablet to computer
4. copy Samsung_Galaxy_Tab_10.1_root.zip to root of sdcard
5. Power Off your tablet
6. Hold down PowerOn Button + Volumn Down Button and wait for Downloading Menu
7. Press Volumn UP button to select Downloading Menu and enter to Odin download mode
8. Open Odin3 v1.85.exe
9. Press PDA Button and open "recovery-cwm_4.0.0.4-sam-tab-10.1.tar.md5" file and then click start
10. Now the tablet is now restarting. If it's not restart you can restart it manually by press power on button.
11. Restart your tablet again and enter to recovery menu by hold down PowerOn Button + Volumn Down Button
12. Press volumn down button to select recovery menu and then press volumn up button to enter menu
13. Remember. Now I'm use thair button for
Volumn UP or Volumn Down for select menu
Power On button for enter menu
14. choose "install zip from sdcard" -> "choose zip from sdcard" -> "Samsung_Galaxy_Tab_10.1_root.zip" -> "Yes"
15. Back to main menu and reboot your tablet
16. Now tablet are rooted.
Original Article from http://galaxytabhacks.com/galaxy-tab-10-1-hacks/how-to-root-galaxy-tab-10-1-the-easy-way/
Samsung Galaxy Tab 10.1 (I'm tested on Official firmware : Android 3.2 HC.)
How to
1. if you don't have Samsung Galaxy Tab Driver for you computer please download and install it first.
2. download tabrooteasy.zip and then extract to local hard drive
3. connect your tablet to computer
4. copy Samsung_Galaxy_Tab_10.1_root.zip to root of sdcard
5. Power Off your tablet
6. Hold down PowerOn Button + Volumn Down Button and wait for Downloading Menu
7. Press Volumn UP button to select Downloading Menu and enter to Odin download mode
8. Open Odin3 v1.85.exe
9. Press PDA Button and open "recovery-cwm_4.0.0.4-sam-tab-10.1.tar.md5" file and then click start
10. Now the tablet is now restarting. If it's not restart you can restart it manually by press power on button.
11. Restart your tablet again and enter to recovery menu by hold down PowerOn Button + Volumn Down Button
12. Press volumn down button to select recovery menu and then press volumn up button to enter menu
13. Remember. Now I'm use thair button for
Volumn UP or Volumn Down for select menu
Power On button for enter menu
14. choose "install zip from sdcard" -> "choose zip from sdcard" -> "Samsung_Galaxy_Tab_10.1_root.zip" -> "Yes"
15. Back to main menu and reboot your tablet
16. Now tablet are rooted.
Original Article from http://galaxytabhacks.com/galaxy-tab-10-1-hacks/how-to-root-galaxy-tab-10-1-the-easy-way/
วันพฤหัสบดีที่ 23 กุมภาพันธ์ พ.ศ. 2555
OpenVPN Authen ldap with out other plugin.
I've found easy scripts for use in OpenVPN to authentication with LDAP (I'm tested on Windows AD). It's solution from Selivanov Pavel.
1. Install OpenVPN in normal step.
2. Install OpenLDAP in normal step.
3. create "ldap-check-user.sh" script in OpenVPN directory
#!/bin/bash
bind_dn="cn=<user>,cn=Users,dc=domain,dc=com"
bind_pass="<password>"
host=rserver
port=389
dn=`ldapsearch -x -D "$bind_dn" -w $bind_pass -h $host -p $port -LLL -s sub \
-b "cn=Users,dc=radix-tools" "(&(objectCategory=person)(objectClass=user)(sAMAccountName=$username))" "dn" | cut -d':' -f 2`
if [ $? != 0 ]; then
echo "Error: user $username not found."
exit 1
fi
ldapsearch -x -D "$dn" -w $password -h $host -p $port -LLL -s sub \
-b "cn=Users,dc=domain,dc=com" "(&(objectCategory=person)(objectClass=user)(sAMAccountName=$username))" > /dev/null 2>&1
if [ $? != 0 ]; then
echo "Error: password for $username is incorrect."
exit 1
fi
exit 0
4. Insert "auth-user-pass-verify ldap-check-user.sh via-env" in OpenVPN server configuration file.
5. Insert "auth-user-pass" in OpenVPN client configuration file.
6. Enjoy.
Thanks for solution from Selivanov Pavel
http://serverfault.com/questions/333426/openvpn-plugin-openvpn-auth-ldap-does-not-bind-to-active-directory
1. Install OpenVPN in normal step.
2. Install OpenLDAP in normal step.
3. create "ldap-check-user.sh" script in OpenVPN directory
#!/bin/bash
bind_dn="cn=<user>,cn=Users,dc=domain,dc=com"
bind_pass="<password>"
host=rserver
port=389
dn=`ldapsearch -x -D "$bind_dn" -w $bind_pass -h $host -p $port -LLL -s sub \
-b "cn=Users,dc=radix-tools" "(&(objectCategory=person)(objectClass=user)(sAMAccountName=$username))" "dn" | cut -d':' -f 2`
if [ $? != 0 ]; then
echo "Error: user $username not found."
exit 1
fi
ldapsearch -x -D "$dn" -w $password -h $host -p $port -LLL -s sub \
-b "cn=Users,dc=domain,dc=com" "(&(objectCategory=person)(objectClass=user)(sAMAccountName=$username))" > /dev/null 2>&1
if [ $? != 0 ]; then
echo "Error: password for $username is incorrect."
exit 1
fi
exit 0
4. Insert "auth-user-pass-verify ldap-check-user.sh via-env" in OpenVPN server configuration file.
5. Insert "auth-user-pass" in OpenVPN client configuration file.
6. Enjoy.
Thanks for solution from Selivanov Pavel
http://serverfault.com/questions/333426/openvpn-plugin-openvpn-auth-ldap-does-not-bind-to-active-directory
วันอาทิตย์ที่ 19 กุมภาพันธ์ พ.ศ. 2555
วันพุธที่ 15 กุมภาพันธ์ พ.ศ. 2555
Install Freeradius mysql Authen on FreeBSD step by step.
# Install freeradius from port
cd /usr/ports/net/freeradius2
make install clean
# Configuration
cd /usr/local/etc/raddb
vi sites-enabled/default
#at authenticate section
#remove "#" before "pam" after line "# Pluggable Authentication Modules."
#save and exit
# Test Config
#1'st terminal
radiusd -X
#2'nd terminal
radtest _yourSystemUser_ _yourSystemPassword_ localhost 0 testing123
#if show message "Access Accept" go to next step.
#MySQL Authen section now in /usr/local/etc/raddb directory
vi radiusd.conf
#remove "#" before "$INCLUDE sql.conf"
#save and exit
vi sites-enabled/default
#At "authorize" section
#remove "#" before "sql" after line "# See "Authorization Queries" in sql.conf"
#At "accounting" section
#remove "#" before "sql" after line "# See "Accounting queries" in sql.conf"
#Save and Exit
#MySQL Database section.
#Please create database "radius" first.
cd sql/mysql
mysql -u _MySQLUser_ -p_MySQLPasswd_ radius < schema.sql
mysql -u _MySQLUser_ -p_MySQLPasswd
INSERT INTO radcheck (UserName, Attribute, Value) VALUES ('guest', 'Password','guest');
exit
# Test SQL Authen Config
#1'st terminal
radiusd -X
#2'nd terminal
radtest guest guest localhost 0 testing123
#if show message "Access Accept" success.
cd /usr/ports/net/freeradius2
make install clean
# Configuration
cd /usr/local/etc/raddb
vi sites-enabled/default
#at authenticate section
#remove "#" before "pam" after line "# Pluggable Authentication Modules."
#save and exit
# Test Config
#1'st terminal
radiusd -X
#2'nd terminal
radtest _yourSystemUser_ _yourSystemPassword_ localhost 0 testing123
#if show message "Access Accept" go to next step.
#MySQL Authen section now in /usr/local/etc/raddb directory
vi radiusd.conf
#remove "#" before "$INCLUDE sql.conf"
#save and exit
vi sites-enabled/default
#At "authorize" section
#remove "#" before "sql" after line "# See "Authorization Queries" in sql.conf"
#At "accounting" section
#remove "#" before "sql" after line "# See "Accounting queries" in sql.conf"
#Save and Exit
#MySQL Database section.
#Please create database "radius" first.
cd sql/mysql
mysql -u _MySQLUser_ -p_MySQLPasswd_ radius < schema.sql
mysql -u _MySQLUser_ -p_MySQLPasswd
INSERT INTO radcheck (UserName, Attribute, Value) VALUES ('guest', 'Password','guest');
exit
# Test SQL Authen Config
#1'st terminal
radiusd -X
#2'nd terminal
radtest guest guest localhost 0 testing123
#if show message "Access Accept" success.
สมัครสมาชิก:
บทความ (Atom)