maandag 7 mei 2012

Moving mysql data folder


check your mysql setup , and maybe take a backup

stop mysql
$/etc/init.d/mysql stop

move the data folder

$mv /var/lib/mysql /var/db/

create a symlink so everything can find teh new data folder

$ln -s /var/db/msql /var/lib/mysql


edit the apparmor file

$nano /etc/apparmor.d/usr.sbin.mysqld

find the  2 entries that point to /var/lib/mysql and change the appropriately (in my case /var/db/mysql)

restart apparmor
$/etc/init.d/apparmor restart 

start mysql
/etc/init.d/mysql start 


check if everything is ok 













maandag 5 maart 2012

Mobistar USB modem on debian

Hi


I got a hold of a Mobistar USB modem for mobile internet
thought it would make a great addition to my Thikpad x200S running Debian unstable
installing it was easy, but i thought i'd document the steps anyway since i also haven't written anything here for a while .

plugging it in an doing ls-usb
it identifies as a huawei e173
Bus 001 Device 022: ID 12d1:1c0b Huawei Technologies Co., Ltd. E173 (modem off)

this is the built in storage device

i googled a bit and found instructions here
http://sussexcomputerworks.co.uk/Linux/kubuntu-1004-and-the-t-mobile-broadband-615-usb-device.html


long story short
install usb-modeswitch and wvdial
$apt-get install usb-modeswitch wvdial

make a config file
nano /etc/usb_modeswitch.d/12d1:1c0b


and add the following to it

########################################################
# Huawei E173s

DefaultVendor= 0x12d1
DefaultProduct= 0x1c0b

TargetVendor= 0x12d1
TargetProduct= 0x1c05

CheckSuccess=20

MessageEndpoint= 0x0f
MessageContent= "55534243123456780000000000000011062000000100000000000000000000"





then do the necessary modprobes

$ usb-modeswitch -c /etc/usb_modeswitch.d/12d1:1c0b
$ modprobe usbserial vendor 0x2d1 product 0x1c05


i also had to unplug the usb device and plug it back in


now if i do

$wvdialconf

wvdial finds my modem and creates a /etc/wvdial.conf file
edit this file to add your login and password for the sim card

i don't have an extra active sim here at the moment ... will p update this post when i've tested with that too

Greetz

WOuter