Hey,
Updated my -CURRENT today and found that my key bindings in cwm no longer working. Done a man cwmrc and found that binding has changed.
Previous ~/.cwmrc
=====
#bind key binding
bind 4-l lock
=====
Now:
=====
bind-key 4-l lock
=====
Working now like a charm. cwm rocks!
Showing posts with label -current. Show all posts
Showing posts with label -current. Show all posts
Wednesday, December 14, 2016
Friday, July 15, 2016
-c X200 amd64: Odoo 9, node.js npm "Abort Trap" error.
Hi,
Updated my OBSD today and git-pulled my Odoo 9 too. So I noticed 2 things, #1, kern.usermount's setting denied. #2, pledge() enforced on node (node.js). So my Odoo's Homepage is now messed up and informing a "Could not execute commend 'lessc'" info on the top part of the Homepage. This messed the Homepage only as other page (Discuss, Calendar etc) pages are ok. When I tried running npm, I get an error.
$ npm
Abort trap (core dumped)
Also dmesg is showing W^X violation.
node(12345): mmap W^X violation
So I'm unable to update less and so on. The truth is that I'm very new to the pledge(2) thingy and I need to find informations regarding this. If you have any info, do share with me. Later.
Update:
Bah! The info regarding this was already posted looooong ago. Ouch. Sorry for this.
https://www.openbsd.org/faq/current.html#r20160527
Updated my OBSD today and git-pulled my Odoo 9 too. So I noticed 2 things, #1, kern.usermount's setting denied. #2, pledge() enforced on node (node.js). So my Odoo's Homepage is now messed up and informing a "Could not execute commend 'lessc'" info on the top part of the Homepage. This messed the Homepage only as other page (Discuss, Calendar etc) pages are ok. When I tried running npm, I get an error.
$ npm
Abort trap (core dumped)
Also dmesg is showing W^X violation.
node(12345): mmap W^X violation
So I'm unable to update less and so on. The truth is that I'm very new to the pledge(2) thingy and I need to find informations regarding this. If you have any info, do share with me. Later.
Update:
Bah! The info regarding this was already posted looooong ago. Ouch. Sorry for this.
https://www.openbsd.org/faq/current.html#r20160527
Wednesday, June 15, 2016
-c X200 amd64: Nginx + PHP5 + PostgreSQL + Drupal 8. Headaches and joy. Finally working.
Hi,
In short, I'm happy my 3 days of headache are over. And Drupal 8 is working now (from my 2 days test.). Hey it's just an updated version from Drupal 7 (which is in package), how hard can the installation be? Yeah I thought the same, but Drupal 8 requires additional package to work properly. I'll tell you about it.
There's no Drupal 8 package available yet. But it's just a web app. Just download the tar file from official Drupal site, and extract it in /var/www/htdocs and it should be ok as I've installed Drupal 7 before.
Take note that the web server I'm using is Nginx. It's in package so I can install it.
# pkg_add nginx
Then I can start to disable httpd and enable Nginx.
# /etc/rc.d/httpd stop
Edit /etc/rc.conf.local
===== /etc/rc.conf.local starts =====
#httpd_flags=
pkg_scripts=nginx
===== /etc/rc.conf.local end =====
Then start Nginx.
# /etc/rc.d/nginx start
Drupal version is 8.1.2 now. So I download that version and extract the tar.gz file.
# tar zxvf drupal-8.1.2.tar.gz
# mv drupal-8.1.2 /var/www/htdocs/drupal8
Then I chown the folder and contents to www:daemon. Before this I just leave all website inside /var/www/htdocs to root:daemon.
# cd /var/www/htdocs
# chown -R www:daemon
Now, for the /etc/nginx/nginx.conf, I follow the nginx.conf available in Nginx Recipe site.
https://www.nginx.com/resources/wiki/start/topics/recipes/drupal/#
Take note to change the details inside. Then I copied the default.settings.php in drupal8, for the installation.
# cd drupal8
# cp sites/default/default.settings.php sites/default/settings.php
I don't need to change anything in settings.php as the installation will take care of it. And then I open up firefox and type "drupal.example.com" to open up the drupal installation. Do make sure the PostgreSQL part of the installation is ready (user and database for Drupal 8).
The installation went through. Then I was brought the Drupal 8's front page. Nice. I try clicking on the Content link.
The website encountered an unexpected error
What the.. This error took me 3 days to figure out the solution. I uncommented error log in nginx.conf, then check the log at /var/www/logs/error.log.
2016/06/14 16:02:13 [error] 48552#0: *89 FastCGI sent in stderr: "PHP message: Uncaught PHP Exception RuntimeException: "GuzzleHttp requires cURL, the allow_url_fopen ini setting, or a custom HTTP handler." at /htdocs/drupal8/vendor/guzzlehttp/guzzle/src/functions.php line 116" while reading response header from upstream, client: 127.0.0.1, server: drupal.example.com, request: "GET /node/add HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm.sock:", host: "drupal.example.com", referrer: "http://drupal.example.com/"
This is what I got. What GuzzleHttp? What? Searching around I found that I need to install curl. Fortunately it's in package.
# pkg_add php-curl
I choose the version similar to PHP5 version. Installed. Good. Opened drupal.example.com again. Click Content. Got the same error. What? Curl already installed!.
Doing more search and found that I need to define that curl library in /etc/php-5.6.ini. I put the details at the extension part.
===== /etc/php-5.6.ini start =====
* skipped *
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
extension=/usr/local/lib/php-5.6/modules/curl.so
* skipped *
===== / etc/php-5.6.ini end =====
Restarted both nginx & php-fpm.
# /etc/rc.d/nginx restart
# /etc/rc.d/php-fpm restart
Then check the website again. Wallah! It's working now. Yes! Ok I didn't put more info regarding PostgreSQL as I think I've already written something about it in the previous post. Somewhere.
Now the Drupal 8 is working, I can start learning the new app and do some little project that I've delayed sooooooooo long. Later.
In short, I'm happy my 3 days of headache are over. And Drupal 8 is working now (from my 2 days test.). Hey it's just an updated version from Drupal 7 (which is in package), how hard can the installation be? Yeah I thought the same, but Drupal 8 requires additional package to work properly. I'll tell you about it.
There's no Drupal 8 package available yet. But it's just a web app. Just download the tar file from official Drupal site, and extract it in /var/www/htdocs and it should be ok as I've installed Drupal 7 before.
Take note that the web server I'm using is Nginx. It's in package so I can install it.
# pkg_add nginx
Then I can start to disable httpd and enable Nginx.
# /etc/rc.d/httpd stop
Edit /etc/rc.conf.local
===== /etc/rc.conf.local starts =====
#httpd_flags=
pkg_scripts=nginx
===== /etc/rc.conf.local end =====
Then start Nginx.
# /etc/rc.d/nginx start
Drupal version is 8.1.2 now. So I download that version and extract the tar.gz file.
# tar zxvf drupal-8.1.2.tar.gz
# mv drupal-8.1.2 /var/www/htdocs/drupal8
Then I chown the folder and contents to www:daemon. Before this I just leave all website inside /var/www/htdocs to root:daemon.
# cd /var/www/htdocs
# chown -R www:daemon
Now, for the /etc/nginx/nginx.conf, I follow the nginx.conf available in Nginx Recipe site.
https://www.nginx.com/resources/wiki/start/topics/recipes/drupal/#
Take note to change the details inside. Then I copied the default.settings.php in drupal8, for the installation.
# cd drupal8
# cp sites/default/default.settings.php sites/default/settings.php
I don't need to change anything in settings.php as the installation will take care of it. And then I open up firefox and type "drupal.example.com" to open up the drupal installation. Do make sure the PostgreSQL part of the installation is ready (user and database for Drupal 8).
The installation went through. Then I was brought the Drupal 8's front page. Nice. I try clicking on the Content link.
The website encountered an unexpected error
What the.. This error took me 3 days to figure out the solution. I uncommented error log in nginx.conf, then check the log at /var/www/logs/error.log.
2016/06/14 16:02:13 [error] 48552#0: *89 FastCGI sent in stderr: "PHP message: Uncaught PHP Exception RuntimeException: "GuzzleHttp requires cURL, the allow_url_fopen ini setting, or a custom HTTP handler." at /htdocs/drupal8/vendor/guzzlehttp/guzzle/src/functions.php line 116" while reading response header from upstream, client: 127.0.0.1, server: drupal.example.com, request: "GET /node/add HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm.sock:", host: "drupal.example.com", referrer: "http://drupal.example.com/"
This is what I got. What GuzzleHttp? What? Searching around I found that I need to install curl. Fortunately it's in package.
# pkg_add php-curl
I choose the version similar to PHP5 version. Installed. Good. Opened drupal.example.com again. Click Content. Got the same error. What? Curl already installed!.
Doing more search and found that I need to define that curl library in /etc/php-5.6.ini. I put the details at the extension part.
===== /etc/php-5.6.ini start =====
* skipped *
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
extension=/usr/local/lib/php-5.6/modules/curl.so
* skipped *
===== / etc/php-5.6.ini end =====
Restarted both nginx & php-fpm.
# /etc/rc.d/nginx restart
# /etc/rc.d/php-fpm restart
Then check the website again. Wallah! It's working now. Yes! Ok I didn't put more info regarding PostgreSQL as I think I've already written something about it in the previous post. Somewhere.
Now the Drupal 8 is working, I can start learning the new app and do some little project that I've delayed sooooooooo long. Later.
Thursday, May 12, 2016
-c amd64 X200: Installation for Drupal 8.
Hi,
It's been quite some time. I'm busy with day's work. Ah and also my X200's battery just died. So it's immobile. It's just docked and that's it. Replacement battery or "new" thinkpad (I always buy used anyway.), I'm not sure. But not now.
Ok back to the latest project/test I'm going to do. Drupal 8 has been released, I know I'm a bit late, and it's an interesting update. So I really want to install it. Take note that I'm installing this, after I installed Drupal 7. So nearly all of the dependencies are already there. You might want to (re)visit my previous post on this at http://karlbsd.blogspot.my/2015/08/openbsd-58-c-amd64-httpd-postgresql.html.
Recap, this is httpd + Drupal 8 + PostgreSQL.
1) Download Drupal 8.
I head over to http://www.drupal.org and download the latest stable version 8.1.1 which is drupal-8.1.1.tar.gz.
2) Extract file and move to htdocs.
I tar the downloaded drupal-8.1.1.tar.gz and rename the directory to drupal8 while moving it to /var/www/htdocs.
$ tar zxvf drupal-8.1.1.tar.gz
$ mv drupal-8.1.1 /var/www/htdocs/drupal8
3) Prepare the local hostname.
This Drupal, like the previous version, will only be a local testing environment. I also have a few *.example.com sites here, a plain php site, some drupal 7 site so I need to have another local hostname. I'm choosing drupal.example.com as my Drupal 7 site will now have drupal7.example.com instead. For that, I edited 2 files, /etc/hosts and /etc/httpd.conf.
$ vi /etc/hosts
===== /etc/hosts starts =====
127.0.0.1 drupal.example.com
===== /etc/hosts ends =====
$ vi /etc/httpd.conf
===== /etc/httpd.conf starts =====
server "drupal.example.com" {
listen on $ext_addr port 80
directory {
index "index.php"
}
location "*.php*" {
fastcgi socket "/run/php-fpm.sock"
}
root "/htdocs/drupal8"
}
===== /etc/httpd.conf ends =====
4) Drupal 8 installation.
Now is the good stuff. After I restart (restarting httpd is also ok), I fire up my browser and type "drupal.example.org" and Drupal 8 installation page is displayed. Nice!.
At the Choose language page, I just choose the default English and click Save and continue.
Choose profile, I choose Standard and click Save and continue.
Verify requirements, I was shown a warning and 2 errors. I'll show what I've done to resolve the warning/errors.
In OpenBSD 5.8 and newer, and -Current, the opcache.so is readily available. It's just that it's not included in /etc/php-5.6.ini. So I edited /etc/php-5.6.ini. My changes is in bold.
For this one, it's just that I create a files directory inside /sites/default. Then I chown the directory to www:www.
It's been quite some time. I'm busy with day's work. Ah and also my X200's battery just died. So it's immobile. It's just docked and that's it. Replacement battery or "new" thinkpad (I always buy used anyway.), I'm not sure. But not now.
Ok back to the latest project/test I'm going to do. Drupal 8 has been released, I know I'm a bit late, and it's an interesting update. So I really want to install it. Take note that I'm installing this, after I installed Drupal 7. So nearly all of the dependencies are already there. You might want to (re)visit my previous post on this at http://karlbsd.blogspot.my/2015/08/openbsd-58-c-amd64-httpd-postgresql.html.
Recap, this is httpd + Drupal 8 + PostgreSQL.
1) Download Drupal 8.
I head over to http://www.drupal.org and download the latest stable version 8.1.1 which is drupal-8.1.1.tar.gz.
2) Extract file and move to htdocs.
I tar the downloaded drupal-8.1.1.tar.gz and rename the directory to drupal8 while moving it to /var/www/htdocs.
$ tar zxvf drupal-8.1.1.tar.gz
$ mv drupal-8.1.1 /var/www/htdocs/drupal8
3) Prepare the local hostname.
This Drupal, like the previous version, will only be a local testing environment. I also have a few *.example.com sites here, a plain php site, some drupal 7 site so I need to have another local hostname. I'm choosing drupal.example.com as my Drupal 7 site will now have drupal7.example.com instead. For that, I edited 2 files, /etc/hosts and /etc/httpd.conf.
$ vi /etc/hosts
===== /etc/hosts starts =====
127.0.0.1 drupal.example.com
===== /etc/hosts ends =====
$ vi /etc/httpd.conf
===== /etc/httpd.conf starts =====
server "drupal.example.com" {
listen on $ext_addr port 80
directory {
index "index.php"
}
location "*.php*" {
fastcgi socket "/run/php-fpm.sock"
}
root "/htdocs/drupal8"
}
===== /etc/httpd.conf ends =====
4) Drupal 8 installation.
Now is the good stuff. After I restart (restarting httpd is also ok), I fire up my browser and type "drupal.example.org" and Drupal 8 installation page is displayed. Nice!.
At the Choose language page, I just choose the default English and click Save and continue.
Choose profile, I choose Standard and click Save and continue.
Verify requirements, I was shown a warning and 2 errors. I'll show what I've done to resolve the warning/errors.
| PHP OPcode caching | Not enabled
PHP OPcode caching can improve your site's performance considerably. It ishighly recommended to haveOPcache installed on your server.
|
|---|
===== /etc/php-5.6.ini starts =====
* other sections skipped *
engine = On
* other sections skipped *
; zend.script_encoding =
; This is for Drupal 8
zend_extension=/usr/local/lib/php-5.6/modules/opcache.so
===== /etc/php-5.6.ini ends =====
And after restarting, the warning is gone.
| File system | Writable (public download method)
The directory sites/default/files does not exist. An automated attempt to create this directory failed, possibly due to a permissions problem. To proceed with the installation, either create the directory and modify its permissions manually or ensure that the installer has the permissions to create it automatically. For more information, see INSTALL.txt or the online handbook.
|
|---|
$ cd /var/www/htdocs/drupal8/sites/default
$ mkdir files
$ chown www:www files
| Settings file | The Settings file does not exist.
The Drupal installer requires that you create a ./sites/default/settings.php as part of the installation process. Copy the./sites/default/default.settings.php file to./sites/default/settings.php. More details about installing Drupal are available inINSTALL.txt.
|
|---|
This error is telling me that I haven't edited a settings.php file yet. So I need to copy the default.settings.php file to settings.php file.
$ cd /var/www/htdocs/drupal8/sites/default
$ cp default.settings.php settings.php
$ vi settings.php
===== settings.php starts =====
* other sections skipped *
/ **
* Database settings
* bla bla bla
*/
$database['default']['default'] = array(
'driver' => 'pgsql',
'database' => 'drupal',
'username' => 'drupal',
'password' => 'mypassword',
'host' => 'localhost',
'prefix' => '',
);
* other sections skipped *
===== settings.php ends =====
Take note that I have an existing Drupal 7 installation using the same database information. Exactly the same setting.
Then I click "try again" link at the bottom of the page.
Then the Database configuration page opens up.
I key in my Database password, then click Save and continue. Then I received an error stating that Drupal already been installed. Sheesh.
I dropped the previous drupal database in PostgreSQL, keeping the drupal username. Then I createdb a new drupal database. Please check your INSTALL.pgsql.txt file for details. Also I deleted the settings.php and copy default.settings.php to settings.php without changing anything. Just making sure the file is read/writable.
Then I restarted the Drupal installation again, and the installation went through.
On the configuration page, I just put the needed info and click Save and continue.
Drupal proceed to install. And after installing I can see the main page. Yeah!. Being amazed, I clicked on Content to start exploring and.. Error 404, Page not found. Ouch. Every other links gave the same error.
So I search the trusty-ol-internet, and found that this is related to Clean URL and mod_rewrite which unfortunately, users of OpenBSD's httpd can't use right now. Ouch. Again. I'm searching for anything relevant, maybe I'll try to disable the Clean URL thingy. But for now, I do know that Drupal 8 installation can go through. Later.
$ cd /var/www/htdocs/drupal8/sites/default
$ cp default.settings.php settings.php
$ vi settings.php
===== settings.php starts =====
* other sections skipped *
/ **
* Database settings
* bla bla bla
*/
$database['default']['default'] = array(
'driver' => 'pgsql',
'database' => 'drupal',
'username' => 'drupal',
'password' => 'mypassword',
'host' => 'localhost',
'prefix' => '',
);
* other sections skipped *
===== settings.php ends =====
Take note that I have an existing Drupal 7 installation using the same database information. Exactly the same setting.
Then I click "try again" link at the bottom of the page.
Then the Database configuration page opens up.
Database configuration
I key in my Database password, then click Save and continue. Then I received an error stating that Drupal already been installed. Sheesh.
I dropped the previous drupal database in PostgreSQL, keeping the drupal username. Then I createdb a new drupal database. Please check your INSTALL.pgsql.txt file for details. Also I deleted the settings.php and copy default.settings.php to settings.php without changing anything. Just making sure the file is read/writable.
Then I restarted the Drupal installation again, and the installation went through.
On the configuration page, I just put the needed info and click Save and continue.
Drupal proceed to install. And after installing I can see the main page. Yeah!. Being amazed, I clicked on Content to start exploring and.. Error 404, Page not found. Ouch. Every other links gave the same error.
So I search the trusty-ol-internet, and found that this is related to Clean URL and mod_rewrite which unfortunately, users of OpenBSD's httpd can't use right now. Ouch. Again. I'm searching for anything relevant, maybe I'll try to disable the Clean URL thingy. But for now, I do know that Drupal 8 installation can go through. Later.
Saturday, November 21, 2015
-C amd64 X200: Installing Odoo 8/9 using git.
Hi,
Personally, I've been waiting for this little project. Remember my post earlier regarding tryton? Well, here comes the good stuff. Odoo.
I used this info to install Odoo 9, the newest versionbut then after opening the web, the display is all over the places. Text overlapping and the sections not displayed correctly. So I used this same method and install Odoo 8, which only shown a one-time "JQuery outdated" version warning but doesn't ruin the experience.
What I'm trying to do is:
-Install Odoo 8 (Odoo 9 should be no different) - done
-Use Httpd to serve the web - not yet
-Autostart Odoo 8 after boot - not yet
I'm using this sites for references, which is great help.
https://www.odoo.com/documentation/8.0/setup/install.html
http://www.dvatp.com/tech/odoo_on_freebsd
Take note that this installation is supposed to be for Odoo 9, but after few showstopper, I downloaded Odoo 8 and run on-top of this method, which has no bad effect. Yet.
First, install all required programs.
Install git
Install Python 2.7
Install py-pip, then use pip to install setuptools and then upgrade it. It's because I had "egg_info" error in Odoo 9 if I didn't upgrade it. Then install python-ldap, as the python-ldap listed in Odoo's requirement.txt cannot be installed (more on this later). Then also I need to install py-psutil using pkg_add, instead of pip because I got "platform openbsd5 not supported" when installing. Then I upgrade psutil using pip.
Install NodeJS. In OpenBSD it's called node. First install node using pkg_add, then upgrade it using npm, then using npm to install less and less-plugin-clean-css and upgrading 'em.
Install PostgreSQL
Install this optional programs, in my system half of it has already been installed.:
Setting up Odoo 8 and PostgreSQL database for it.
Ok, for PostgreSQL, I just create a superuser named "odoo" which will require password.
Then I need to insert password for that new user.
Using Git, I download the latest Odoo 8.0 branch. I'm putting this in my home directory.
Yes, it's 2 "odoo" folder. Wait for it to finish downloading. After that you can see an "odoo" directory inside. Then go inside that directory.
Then I need to use pip to install the dependencies needed for Odoo 8.
This is when I have problem on psutil which gave "platform openbsd5 not supported" error, that's the reason I installed it above via pkg_add (not sure if odoo will use this other version.)
Then also I got an error about python-ldap cannot be installed. That's also the reason I installed python-ldap using pip manually. So, to make sure that the installation advances, I deleted those 2 requirement from the.. err.. requirement.txt.
In Odoo 9's requirement.txt:
psutil==2.2.0
python-ldap==2.4.19
In Odoo 8's requirement.txt:
psutil==2.1.1
python-ldap==2.4.15
Then run again the pip installer:
It's done! Now to create the configuration file. I created ".openerp-serverrc" file inside my home directory.
--------- ~/.openerp-serverrc start ---------
[option]
db_host = 127.0.0.1
db_port = 5432
db_user = odoo
db_password = mypass
addons_path = /home/myhome/odoo/addons
--------- ~/.openerp-serverrc ends ---------
Done. Now I need to run the server and then configure Odoo via web.
In that same terminal, I can see all the info on what Odoo is currently doing. Then, in browser, open http://127.0.0.1:8069 or http://localhost:8069.
This screenshot is for Odoo 9. For Odoo 8, the page is different but the input required is the same. In Odoo 9, after database creation, my Odoo homepage is chaos. Like I've said earlier, text overlapping, display corruption etc. And then there's 'Could not execute command 'lessc' on the top-left side. I read that I need to update less and less-plugin-clean-css via npm.
Then I drop the database by using this page:
http://localhost:8069/web/database/manager
Delete the database, then go to the start page to create new. Still the same issue. So then I download Odoo 8.0 branch instead (this method above is for Odoo 8.0 branch).
In Odoo 8, when I open the start page for the first time, there's error about JQuery version being old version, but still can load Database Manager page. After creating database, the page doesn't refresh to load the main page. I need to see the term I run ./openerp-server and see if it's idling. After that I open up the home page.
As you can see, there's the warning message. It doesn't cripple the site, AFAIK but I'm looking into this later. Currently I've installed the accounting module and all seems to be working fine.
Update 26/11/2015:
Good news. Odoo 9.0 is working now. The "lessc" issue has been resolved. What I did was update the NodeJs's npm and then less and less-plugin-clean-css
Then I started my Odoo 9. It's working! I'm not sure why the initial npm update above is not working. Anyway, it's good to know that it's working now.
ToDo: Set up httpd for Odoo 8
ToDo: Set up Odoo 8 in rc.d for automatic boot and shutdown.
p/s: I changed the Administrator's profile and when I tried to open back the home page, I was asked to enter email and password. I tried everything and can't log in. But then I didn't try this:
Email: admin
Password: my_odoo's_PgSQL's_password
And then only I can log in. Later.
Personally, I've been waiting for this little project. Remember my post earlier regarding tryton? Well, here comes the good stuff. Odoo.
I used this info to install Odoo 9, the newest version
What I'm trying to do is:
-Install Odoo 8 (Odoo 9 should be no different) - done
-Use Httpd to serve the web - not yet
-Autostart Odoo 8 after boot - not yet
I'm using this sites for references, which is great help.
https://www.odoo.com/documentation/8.0/setup/install.html
http://www.dvatp.com/tech/odoo_on_freebsd
Take note that this installation is supposed to be for Odoo 9, but after few showstopper, I downloaded Odoo 8 and run on-top of this method, which has no bad effect. Yet.
First, install all required programs.
Install git
$ su root -c 'pkg_add git'Install Python 2.7
Install py-pip, then use pip to install setuptools and then upgrade it. It's because I had "egg_info" error in Odoo 9 if I didn't upgrade it. Then install python-ldap, as the python-ldap listed in Odoo's requirement.txt cannot be installed (more on this later). Then also I need to install py-psutil using pkg_add, instead of pip because I got "platform openbsd5 not supported" when installing. Then I upgrade psutil using pip.
$ su root -c 'pkg_add py-pip'$ doas pip install --upgrade pip$ doas pip install setuptools$ doad pip install --upgrade setuptools$ doas pip install python-ldap$ su root -c 'pkg_add psutil'$ pip install --upgrade psutilInstall NodeJS. In OpenBSD it's called node. First install node using pkg_add, then upgrade it using npm, then using npm to install less and less-plugin-clean-css and upgrading 'em.
$ su root -c 'pkg_add node'$ doas npm install -g npm$ doas npm install less$ doas npm install -g less$ doas npm install less-plugin-clean-css$ doas npm install -g less-plugin-clean-cssInstall PostgreSQL
Install this optional programs, in my system half of it has already been installed.:
graphvizghostscriptpopplerantiwordcurlwkhtmltopdfLibreOfficeSetting up Odoo 8 and PostgreSQL database for it.
Ok, for PostgreSQL, I just create a superuser named "odoo" which will require password.
$ createuser -U postgres -P -s odooThen I need to insert password for that new user.
Using Git, I download the latest Odoo 8.0 branch. I'm putting this in my home directory.
$ cd ~$ git clone --depth 1 --branch 8.0 https://www.github.com/odoo/odooYes, it's 2 "odoo" folder. Wait for it to finish downloading. After that you can see an "odoo" directory inside. Then go inside that directory.
$ cd odooThen I need to use pip to install the dependencies needed for Odoo 8.
$ doas pip install -r requirements.txtThis is when I have problem on psutil which gave "platform openbsd5 not supported" error, that's the reason I installed it above via pkg_add (not sure if odoo will use this other version.)
Then also I got an error about python-ldap cannot be installed. That's also the reason I installed python-ldap using pip manually. So, to make sure that the installation advances, I deleted those 2 requirement from the.. err.. requirement.txt.
In Odoo 9's requirement.txt:
psutil==2.2.0
python-ldap==2.4.19
In Odoo 8's requirement.txt:
psutil==2.1.1
python-ldap==2.4.15
Then run again the pip installer:
$ doas pip install -r requirement.txtIt's done! Now to create the configuration file. I created ".openerp-serverrc" file inside my home directory.
$ vi ~/.openerp-serverrc--------- ~/.openerp-serverrc start ---------
[option]
db_host = 127.0.0.1
db_port = 5432
db_user = odoo
db_password = mypass
addons_path = /home/myhome/odoo/addons
--------- ~/.openerp-serverrc ends ---------
Done. Now I need to run the server and then configure Odoo via web.
$ cd ~/odoo$ ./odoo.py &In that same terminal, I can see all the info on what Odoo is currently doing. Then, in browser, open http://127.0.0.1:8069 or http://localhost:8069.
This screenshot is for Odoo 9. For Odoo 8, the page is different but the input required is the same. In Odoo 9, after database creation, my Odoo homepage is chaos. Like I've said earlier, text overlapping, display corruption etc. And then there's 'Could not execute command 'lessc' on the top-left side. I read that I need to update less and less-plugin-clean-css via npm.
$ doas npm install -g less$ doas npm install -g less-plugin-clean-cssThen I drop the database by using this page:
http://localhost:8069/web/database/manager
Delete the database, then go to the start page to create new. Still the same issue. So then I download Odoo 8.0 branch instead (this method above is for Odoo 8.0 branch).
In Odoo 8, when I open the start page for the first time, there's error about JQuery version being old version, but still can load Database Manager page. After creating database, the page doesn't refresh to load the main page. I need to see the term I run ./openerp-server and see if it's idling. After that I open up the home page.
As you can see, there's the warning message. It doesn't cripple the site, AFAIK but I'm looking into this later. Currently I've installed the accounting module and all seems to be working fine.
Update 26/11/2015:
Good news. Odoo 9.0 is working now. The "lessc" issue has been resolved. What I did was update the NodeJs's npm and then less and less-plugin-clean-css
$ doas npm install -g npm$ doas npm install -g less less-plugin-clean-cssThen I started my Odoo 9. It's working! I'm not sure why the initial npm update above is not working. Anyway, it's good to know that it's working now.
ToDo: Set up httpd for Odoo 8
ToDo: Set up Odoo 8 in rc.d for automatic boot and shutdown.
p/s: I changed the Administrator's profile and when I tried to open back the home page, I was asked to enter email and password. I tried everything and can't log in. But then I didn't try this:
Email: admin
Password: my_odoo's_PgSQL's_password
And then only I can log in. Later.
Thursday, November 12, 2015
-C amd64 X200: Using xdimmer to dim the laptop monitor.
Hi,
Great news. I've been using this since I updated my snapshot a few days ago now. This is the utility that I've been waiting for!
xdimmer
http://openports.se/x11/xdimmer
"xdimmer is a small utility to automatically dim the screen when
no keyboard or mouse input has been detected in the configured
number of seconds, and brighten it once input is detected."
What a great battery saver! So, as I'm using ~/.xsession, I just add this line before the execution of my window manager (cwm, what else!):
xdimmer -t 360 &
So, after 360 seconds of keyboard/mouse inactivity, xdimmer will dim my laptop's monitor to the default percentage (which is 5 percent).
Thanks to the contributor! Later.
Great news. I've been using this since I updated my snapshot a few days ago now. This is the utility that I've been waiting for!
xdimmer
http://openports.se/x11/xdimmer
"xdimmer is a small utility to automatically dim the screen when
no keyboard or mouse input has been detected in the configured
number of seconds, and brighten it once input is detected."
What a great battery saver! So, as I'm using ~/.xsession, I just add this line before the execution of my window manager (cwm, what else!):
xdimmer -t 360 &
So, after 360 seconds of keyboard/mouse inactivity, xdimmer will dim my laptop's monitor to the default percentage (which is 5 percent).
Thanks to the contributor! Later.
-C amd64 X200: LibreOffice 5 is here!
Hey,
Updated my lappy to the new snapshots a few days ago and now it's LibreOffice 5 time! Yeah!. Nice OpenBSD, nice.
Later.
Updated my lappy to the new snapshots a few days ago and now it's LibreOffice 5 time! Yeah!. Nice OpenBSD, nice.
Later.
Wednesday, September 30, 2015
5.8-C amd64 X200: Lock X after suspend.
Hi,
Got a good tips from OpenBSD.newbies mailing list. How to lock the machine after suspend. Ok, normally, if I didn't xlock my X session and put the machine under suspend mode (eg: close the lid), my session will be restored when the machine wakes. My session is exposed. So here's how to automatically lock the session when the machine goes into suspend mode.
1) Create a suspend file inside /etc/apm.
In my machine, there's no /etc/apm folder. So I need to create it first. Then create a suspend file inside it.
$ doas mkdir /etc/apm
$ doas vi /etc/apm/suspend
----- /etc/apm/suspend starts -----
#!/bin/sh
pkill -USR1 xidle
----- /etc/apm/suspend ends -----
Then I need to make this suspend executable.
$ doas chmod 744 /etc/apm/suspend
2) Get xidle running on start.
I edited my
.xsession file and add this text:
----- ~/.xsession starts -----
xidle &
----- ~/.xsession ends -----
Then I run the xidle program.
$ xidle &
So basically when I close my machine's lid, suspend will trigger xidle to lock the machine. Nice stuff.
Reference:
http://www.mail-archive.com/openbsd-newbies@sfobug.theapt.org/msg00043.html
Got a good tips from OpenBSD.newbies mailing list. How to lock the machine after suspend. Ok, normally, if I didn't xlock my X session and put the machine under suspend mode (eg: close the lid), my session will be restored when the machine wakes. My session is exposed. So here's how to automatically lock the session when the machine goes into suspend mode.
1) Create a suspend file inside /etc/apm.
In my machine, there's no /etc/apm folder. So I need to create it first. Then create a suspend file inside it.
$ doas mkdir /etc/apm
$ doas vi /etc/apm/suspend
----- /etc/apm/suspend starts -----
#!/bin/sh
pkill -USR1 xidle
----- /etc/apm/suspend ends -----
Then I need to make this suspend executable.
$ doas chmod 744 /etc/apm/suspend
2) Get xidle running on start.
I edited my
.xsession file and add this text:
----- ~/.xsession starts -----
xidle &
----- ~/.xsession ends -----
Then I run the xidle program.
$ xidle &
So basically when I close my machine's lid, suspend will trigger xidle to lock the machine. Nice stuff.
Reference:
http://www.mail-archive.com/openbsd-newbies@sfobug.theapt.org/msg00043.html
5.8-C amd64 X200: Bye sudo, hi doas.
Hey,
Done updating, rebuilding the userland and following the.. err.. "Following -current" guide, now to reboot.
$ sudo reboot
ksh: sudo: not found
Oh. Yeah. I forgot. sudo is old news. Now it's doas time.
man doas
man doas.conf
Now, after all the setups, all I have to do to reboot is:
$ doas reboot
http://www.tedunangst.com/flak/post/out-with-the-old-in-with-the-less
http://www.tedunangst.com/flak/post/doas
Now it's just a matter of learning new habit. Later.
Done updating, rebuilding the userland and following the.. err.. "Following -current" guide, now to reboot.
$ sudo reboot
ksh: sudo: not found
Oh. Yeah. I forgot. sudo is old news. Now it's doas time.
man doas
man doas.conf
Now, after all the setups, all I have to do to reboot is:
$ doas reboot
http://www.tedunangst.com/flak/post/out-with-the-old-in-with-the-less
http://www.tedunangst.com/flak/post/doas
Now it's just a matter of learning new habit. Later.
Tuesday, September 29, 2015
5.8-C amd64 X200: httpd error after upgrading snapshot.
Hi,
I downloaded the 29th September's SNAPSHOT and installed it successfully. But, after I rebooted, this error greeted me:
httpd(xxxx): syscall 5
The "xxxx" is replaced by bunch of numbers. Ouch. Searching the net about this but found no answer so far. I'm guessing that this is related to php, php-fpm or something. But I'm not sure.
UPDATE 30/09/2015:
Ok I asked misc regarding this and Ted Unangst has given the answer:
"The latest snapshots include a bunch of tame() calls in userland programs, but some of them were added optimistically. httpd is trying to do something it's not yet permitted to do.
For now, please report such errors.
If you need a working version, the diffs aren't committed yet, so you can rebuild httpd from source and it should work fine."
http://www.mail-archive.com/misc@openbsd.org/msg141426.html
Now, who said that the devs are bunch of man-eating-flame-throwing monster? As long as we search for answer first before asking (to see if it's already been asked and/or solved), and provide sufficient details (dmesg, related .conf files etc) when asking, you will get informative answers.
Ok. So it's basically new stuff in the httpd's snapshot. And to get a working httpd, I need to rebuild it. I've done port installation stuff but rebuilding a base program? I've never done this. But this is a good learning process. So I use the official guide:
http://www.openbsd.org/faq/faq5.html#Bld
I follow the "Following -current" guide. Then build the userland (I didn't build the kernel). It took some time. When it's done, I rebooted and httpd is working again! Yeah!
I noticed there's changes about php-fpm so I go through the Following -current page:
http://www.openbsd.org/faq/current.html#20150918
The previously named php_fpm rc script has been renamed according to PHP's version installed. So I edited my /etc/rc.conf.local.
----- /etc/rc.conf.local starts -----
pkg_scripts=php56_fpm
----- /etc/rc.conf.local ends -----
Just to be sure, I pkg_delete php-fpm then reinstall it. Reboot.
All is ok now. Thanks to Ted Unangst and all the people in misc@OpenBSD.
I think there's a way to just rebuild httpd, without rebuilding all userland. I'm searching for info on this.
Update 1st October 2015:
Stuart Henderson @misc has given a tip on how to update just the httpd.
http://article.gmane.org/gmane.os.openbsd.misc/225370
Nice!. Learning something new everyday. Later.
I downloaded the 29th September's SNAPSHOT and installed it successfully. But, after I rebooted, this error greeted me:
httpd(xxxx): syscall 5
The "xxxx" is replaced by bunch of numbers. Ouch. Searching the net about this but found no answer so far. I'm guessing that this is related to php, php-fpm or something. But I'm not sure.
UPDATE 30/09/2015:
Ok I asked misc regarding this and Ted Unangst has given the answer:
"The latest snapshots include a bunch of tame() calls in userland programs, but some of them were added optimistically. httpd is trying to do something it's not yet permitted to do.
For now, please report such errors.
If you need a working version, the diffs aren't committed yet, so you can rebuild httpd from source and it should work fine."
http://www.mail-archive.com/misc@openbsd.org/msg141426.html
Now, who said that the devs are bunch of man-eating-flame-throwing monster? As long as we search for answer first before asking (to see if it's already been asked and/or solved), and provide sufficient details (dmesg, related .conf files etc) when asking, you will get informative answers.
Ok. So it's basically new stuff in the httpd's snapshot. And to get a working httpd, I need to rebuild it. I've done port installation stuff but rebuilding a base program? I've never done this. But this is a good learning process. So I use the official guide:
http://www.openbsd.org/faq/faq5.html#Bld
I follow the "Following -current" guide. Then build the userland (I didn't build the kernel). It took some time. When it's done, I rebooted and httpd is working again! Yeah!
I noticed there's changes about php-fpm so I go through the Following -current page:
http://www.openbsd.org/faq/current.html#20150918
The previously named php_fpm rc script has been renamed according to PHP's version installed. So I edited my /etc/rc.conf.local.
----- /etc/rc.conf.local starts -----
pkg_scripts=php56_fpm
----- /etc/rc.conf.local ends -----
Just to be sure, I pkg_delete php-fpm then reinstall it. Reboot.
All is ok now. Thanks to Ted Unangst and all the people in misc@OpenBSD.
I think there's a way to just rebuild httpd, without rebuilding all userland. I'm searching for info on this.
Update 1st October 2015:
Stuart Henderson @misc has given a tip on how to update just the httpd.
$ cd /usr/src/usr.sbin/httpd $ cvs up -PdA $ make obj && make depend && make $ su root -c 'make install'
http://article.gmane.org/gmane.os.openbsd.misc/225370
Nice!. Learning something new everyday. Later.
Saturday, September 12, 2015
5.8-C X200 amd64: lib.c.81 not found after upgrading -current, and bunch of others.
Okay, so here I was, updating my -current system. Because, yeah, it's been a while. Fired up my ftp, grab the bsd*, *tgz and all, the usual stuff. Upgraded my system, done changing timezone and sysmerge. All is good. So I upgraded my packages. This is what happened.
Update candidates: xz-5.2.1 -> xz-5.2.1
Can't install xz-5.2.1 because of libraries
|library c.81.0 not found
| /usr/lib/libc.so.78.1 (system): bad major
| /usr/lib/libc.so.79.0 (system): bad major
| /usr/lib/libc.so.80.0 (system): bad major
| /usr/lib/libc.so.80.1 (system): bad major
| /usr/lib/libc.so.82.0 (system): bad major
Ack!. Then I this bunch of warnings like:
Can't install pkg_name because of libraries
Ok. Not bunch. But a lot. I'm guessing that this is about new version of libraries. So, after searching for answers, I found this:
http://comments.gmane.org/gmane.os.openbsd.misc/224817
Whew I'm grateful this is not because of some mistakes I made while upgrading. I even did another upgrade just to make sure. Yeah, so I need to wait for a few days before upgrading my packages. Later.
Update candidates: xz-5.2.1 -> xz-5.2.1
Can't install xz-5.2.1 because of libraries
|library c.81.0 not found
| /usr/lib/libc.so.78.1 (system): bad major
| /usr/lib/libc.so.79.0 (system): bad major
| /usr/lib/libc.so.80.0 (system): bad major
| /usr/lib/libc.so.80.1 (system): bad major
| /usr/lib/libc.so.82.0 (system): bad major
Ack!. Then I this bunch of warnings like:
Can't install pkg_name because of libraries
Ok. Not bunch. But a lot. I'm guessing that this is about new version of libraries. So, after searching for answers, I found this:
http://comments.gmane.org/gmane.os.openbsd.misc/224817
Whew I'm grateful this is not because of some mistakes I made while upgrading. I even did another upgrade just to make sure. Yeah, so I need to wait for a few days before upgrading my packages. Later.
Wednesday, September 02, 2015
5.8-S amd64 X200: httpd Virtual Host.
Hi,
I've been having headache trying to solve the Virtual Hosting issue when using OpenBSD's new httpd (starting from 5.7) included in the base. After fairly quite a lot a trial and errors (mostly errors) and nearly downloading nginx today, I finally got the Virtual Host working now.
I really like the concept of OpenBSD's new httpd. Simple configuration, the devs are keeping the code simple and it's in the base. I also got Drupal 7 working fine (except for clean url, which is minor as this is for developing, not production) and I'm having fun learning Drupal here. But so far, I only managed to get 1 site working at a time. That means, I need to reconfigure my /etc/httpd.conf every time I want to change the website I want to work on. If I only want to work on a single site, this would not pose a problem. But I have more than 1 website I want to work on, so this is tiring me down.
I know that the httpd is chrooted by default, but I didn't know how to configure it properly until now. Well "properly" is not as "perfect" but more to "got it to work" kind of saying. So please correct me if you find anything that's wrong here. So here it goes.
My scenario, I'm working in 1 Drupal 7 site, then 1 another html/php site. The directory is as below:
/var/www/htdocs (the /var/www is the chroot directory)
/var/www/htdocs/drupal7 (my drupal dev directory, the default as installed)
/var/www/htdocs/karl (my html/php dev site)
For Drupal 7 installations and configurations, you can check my previous post. Now here's my /etc/httpd.conf.
---- /etc/httpd.conf start ----
I've been having headache trying to solve the Virtual Hosting issue when using OpenBSD's new httpd (starting from 5.7) included in the base. After fairly quite a lot a trial and errors (mostly errors) and nearly downloading nginx today, I finally got the Virtual Host working now.
I really like the concept of OpenBSD's new httpd. Simple configuration, the devs are keeping the code simple and it's in the base. I also got Drupal 7 working fine (except for clean url, which is minor as this is for developing, not production) and I'm having fun learning Drupal here. But so far, I only managed to get 1 site working at a time. That means, I need to reconfigure my /etc/httpd.conf every time I want to change the website I want to work on. If I only want to work on a single site, this would not pose a problem. But I have more than 1 website I want to work on, so this is tiring me down.
I know that the httpd is chrooted by default, but I didn't know how to configure it properly until now. Well "properly" is not as "perfect" but more to "got it to work" kind of saying. So please correct me if you find anything that's wrong here. So here it goes.
My scenario, I'm working in 1 Drupal 7 site, then 1 another html/php site. The directory is as below:
/var/www/htdocs (the /var/www is the chroot directory)
/var/www/htdocs/drupal7 (my drupal dev directory, the default as installed)
/var/www/htdocs/karl (my html/php dev site)
For Drupal 7 installations and configurations, you can check my previous post. Now here's my /etc/httpd.conf.
---- /etc/httpd.conf start ----
# Macros
ext_addr="*"
# Server
server "default" {
listen on $ext_addr port 80
directory {
auto index
}
location "*.php*" {
fastcgi socket "/run/php-fpm.sock"
}
location "/cgi-bin/*" {
fastcgi
root "/"
}
}---- /etc/httpd.conf end ----
Now that's for the default site. I noticed that if I change the upper part to:
server "www.example.com" {
listen on $ext_addr port 80
alias "example.com"Then if I just type "example.com" in my browser, it will display my local site's main page instead of the internet's site. Take note that it's easier to use "Private Window" (Firefox) or "Incognito Window" (Chrome) for testing purpose. I also set the index to be created automatically because I don't want to create any site inside the root "/htdocs" directory and this is just a local development machine. Now for the Virtual Host setting inside /etc/httpd.conf.
---- /etc/httpd.conf continues ----
# virtual server for Drupal
server "drupal.example.com" {
listen on $ext_addr port 80
directory {
index "index.php"
}
location "*.php*" {
fastcgi socket "/run/php-fpm.sock"
}
root "/htdocs/drupal7"
}
# virtual server for Karl
server "karl.example.com" {
listen on $ext_addr port 80
location "*.php*" {
fastcgi socket "/run/php-fpm.sock"
}
root "/htdocs/karl"
}
types {
includes "/usr/share/misc/mime.types"
}---- /etc/httpd.conf ends ----
Now this is the simplest working form of my /etc/httpd.conf. On httpd side, this should be ok. Now for the important part, making the Virtual Host part work. As httpd works in chroot by default, it will only access files inside /var/www for safety reason. So I need to create an etc directory inside /var/www.
# mkdir /var/www/etcThen I need to copy /etc/hosts and /etc/resolv.conf into /var/www/etcb.
# cp /etc/hosts /var/www/etc
# cp /etc/resolv.conf /var/www/etcThis is the content of both files:
---- /var/www/etc/hosts start ----
127.0.0.1 localhost www.example.com
::1 localhost www.example.com---- /var/www/etc/hosts end ----
---- /var/www/etc/resolv.conf start ----
# Generated by em0 dhclient
search Home
nameserver 127.0.0.1
lookup file bind---- /var/www/etc/resolv.conf end ----
Ok. I was thinking that to make Virtual Host using httpd works, I need to edit that /var/www/etc/hosts file, as that is the chroot directory. I was wrong. I didn't manage to get the Virtual Host working by editing that file. It was the /etc/hosts file that needs editing. Here's mine.
---- /etc/hosts start ----
127.0.0.1 localhost www.example.com
127.0.0.1 drupal.example.com
127.0.0.1 karl.example.com
::1 localhost www.example.com---- /etc/hosts end ----
I only use 2 Virtual Hosts as of now, but I'm guessing that more can be set up with appropriate configuration changes. So now I restarted the httpd.
# sudo /etc/rc.d/httpd restartOpen up my browser, typed all 3 urls:
www.example.com
drupal.example.com
karl.example.com
and all open up the appropriate pages. I'm loving this! Now this leave only 1 more minor thing to be done, the Clean URL. But like I've said, it's only a minor thing. Later.
Friday, August 07, 2015
SNAPSHOT amd64 X200: httpd + PostgreSQL + Drupal 7.
Hey,
Starting with 5.7, OpenBSD have their own httpd replacing nginx in base. This httpd is fairly new and un/fortunately I'm trying to learn Drupal nowadays. Sure I can install Apache or nginx from port but I want to test the new httpd.
Take note!
1) I'm currently on -CURRENT using snapshot.
2) I never installed drupal or any web app before.
3) This is a Work In Progress and will be updated until it's done.
So I guess that's quite a warning for you guys. My installation might not be the correct one or might not even install correctly but I will try to make sure I find out how to make this work. Googling for info on the new httpd with Drupal only return less than handful of info. But as always, web searching is needed. So without any delays, here I go.
SETTING UP HTTPD.
As I'm going Openbsd's own (and new) httpd, the program has been already installed. To enable it, I just need to edit /etc/httpd.conf. I commented all the entries in that file except for this few lines (mostly the "A minimal default server" entries).
---- /etc/httpd.conf start ----
# Macros
ext_addr="*"
# A minimal default server
server "default" {
listen on $ext_addr port 80
location "*.php" {
fastcgi socket "/run/php-fpm.sock"
}
root "/htdocs"
}
# Include MIME types instead of the built-in ones
types {
include "/usr/share/misc/mime.types"
}
---- /etc/httpd.conf end ----Starting with 5.7, OpenBSD have their own httpd replacing nginx in base. This httpd is fairly new and un/fortunately I'm trying to learn Drupal nowadays. Sure I can install Apache or nginx from port but I want to test the new httpd.
Take note!
1) I'm currently on -CURRENT using snapshot.
2) I never installed drupal or any web app before.
So I guess that's quite a warning for you guys. My installation might not be the correct one or might not even install correctly but I will try to make sure I find out how to make this work. Googling for info on the new httpd with Drupal only return less than handful of info. But as always, web searching is needed. So without any delays, here I go.
SETTING UP HTTPD.
As I'm going Openbsd's own (and new) httpd, the program has been already installed. To enable it, I just need to edit /etc/httpd.conf. I commented all the entries in that file except for this few lines (mostly the "A minimal default server" entries).
---- /etc/httpd.conf start ----
# Macros
ext_addr="*"
# A minimal default server
server "default" {
listen on $ext_addr port 80
location "*.php" {
fastcgi socket "/run/php-fpm.sock"
}
root "/htdocs"
}
# Include MIME types instead of the built-in ones
types {
include "/usr/share/misc/mime.types"
}
As a simple rule-of-a-thumb, start with the minimum configuration then adjust from there. It's easier to check for error/mistakes. As Drupal is a PHP program, I need to install PHP. I also will be using PostgreSQL for the database. What I've installed is:
php-5.6.11
php-fpm.5.6.11p0
php-gd-5.6.11 (this might be dependency, I can't recall right now)
php-pdo_pgsql-5.6.11 (I'll be using PostgreSQL instead of MySQL)
postgresql-client-9.4.4
postgresql-contrib-9.4.4
postgresql-docs-9.4.4 (optional, but I want it)
postgresql-server-9.4.4
As we can see in the /etc/httpd.conf, there's "php-fpm" entry. As the package has been installed, I need to make it start at boot along with httpd by editing /etc/rc.conf.local.
---- /etc/rc.conf.local start ----
httpd_flags=
slowcgi=
pkg_scripts=php_fpm postgresql
---- /etc/rc.conf.local end ----
The "slowcgi" came with httpd, so I add it in /etc/rc.conf.local. Now we can either start httpd, slowcgi & php-fpm manually now or reboot. Unlike Apache, there's no template webpage that you can see after your httpd has started. So I created a Hello World-like index.html file inside the webserver's root directory which is /var/www/htdocs/. So now I open up my web browser and insert the URL as either "localhost" or "127.0.0.1" (without quotes), I can see the Hello World page. Httpd is running fine. To test the PHP function, I created a phpinfo.php file inside the same directory with this value:
---- /var/www/htdocs/phpinfo.php start ----
<?php phpinfo(); ?>
---- /var/www/htdocs/phpinfo.php end ----
I open the URL "localhost/phpinfo.php" in my browser, the PHP Version page is displayed and I know PHP is working fine.
INSTALLING DRUPAL.
I just pkg_add drupal-7.32.p1. Then I read the info in /usr/local/share/doc/pkg-readmes/drupal-7.32p1 telling me to symlink (symbolic link) the drupal7.conf and follow the database setup for PostgreSQL which is:
ln -sf /var/www/conf/modules.sample/drupal7.conf /var/www/conf/modules
createuser -U postgres --pwprompt --no-superuser --createdb --no-createrole drupal
createdb -U drupal -E UTF8 drupal
The "postgres" name is my PostgreSQL's admin name. There will be input request for password so I create a password, verify it and make sure I don't forget it. For drupal7.conf, I haven't touch anything, yet.
SETTING UP DRUPAL.
Webserver running? Check. PostgreSQL running? Check. Drupal running? Not yet. I tried putting "localhost/drupal7" and "127.0.0.1/drupal7" in the browser but both didn't work. I got Error 403 Forbidden. Ouch. I'm seriously lack of experience for this httpd and drupal stuff so I thought that maybe I need to install either Apache or Nginx (assuming that nobody done drupal with httpd yet). That's until I read a hint in www.drupal.org. So, I insert this in my browser:
http://localhost/drupal7/install.php
And wallah!, the Drupal installation page appears!. Yes! It's making progress. So I proceed with the installation as below:
Choose profile = Standard > Save and continue
Choose language = English (built-in) > Sane and continue
Verify requirements = all is ok except for "Unicode library = Error"
7th August: Ok. The error is about a deprecated function in PHP which must be disabled for Drupal's installation to continue. Yeah quite confusing. The exact error is:
| Unicode library | Error | |
| Multibyte string input conversion in PHP is active and must be disabled. Check the php.ini mbstring.http_input setting. Please refer to the PHP mbstring documentationfor more information. | ||
I opened the PHP mbstring documentation but nothing can help me on this. So I google for tips and found that there's 2 ways to resolve this.
1) Add this lines in .htaccess in Drupal's web root (/var/www/htdocs/drupal7)
php_value mbstring.http_input pass
php_value mbstring.http_output pass
---- .htaccess end ----
I checked the Drupal's web root, but there's no .htacces file inside. I think this is related to Apache but just to make sure, I downloaded a sample .htacces file from www.drupal.org . Restarted the httpd, open the installation page and still have that error. So this is not working for me.
2) Add this line in ../drupal7/sites/default/setting.php
---- setting.php start ----
ini_set('mbstring.http_input', 'pass');
ini_set('mbstring.http_output', 'pass');
---- setting.php end ----
Restarted the httpd. And open the installation page and greeted by this warning message:
- Deprecated function: ini_set(): Use of mbstring.http_input is deprecated in include_once() (line 318 of /htdocs/drupal7/sites/default/settings.php).
- Deprecated function: ini_set(): Use of mbstring.http_output is deprecated in include_once() (line 319 of /htdocs/drupal7/sites/default/settings.php).
When I click Save and continue, this message appears in every page. But then the Verify requirement page passed successfully (although the warning is still there). So I'm now at the Set up database page.
Set up database:
Database = PostgreSQL
Database name* = drupal (the one I set before in PostgreSQL)
Database username* = drupal
Database password* = (the password I entered back then in PostgreSQL)
But now I'm in dilemma. I don't know if that "Deprecated function:" warning is harmless or not. I think I will search for more clue before I click on that "Save and continue" button.
Update 9th August: Searching on the net point me out to the most relevant issue stated in drupal's site at:
https://www.drupal.org/node/2332295
There's patch files listed on the top of that page and the most relevant one is the file:
drupal7-unicode_requirements-2332295-23.patch
That file will be patching /includes/unicode.inc file in the root Drupal's folder. I read the patch file, and compared with the current unicode.inc file and found that this is the correct patch. Now to patch it.
PATCHING DRUPAL
I downloaded the patch file, and move it to Drupal's root folder at /var/www/htdocs/drupal7 . Patching is something I rarely do so I refresh what I can by using man patch.
I need to test the patch first, to see if it's working as it's supposed to be. So I proceed with the testing command:
# sudo patch -C includes/unicode.inc drupal7-unicode_requirements-2332295-23.patch
Then the result came:
---- message snipped ----
Patching file includes/unicode.inc using Plan A...
Hunk #1 succeeded at 116.
done
Looks fine to me. So then I proceed with the actual patching:
# sudo patch includes/unicode.inc drupal7-unicode_requirements-2332295-23.patch
Done. Now to test the Drupal's installation. Just remember to delete/comment back both the "ini_set" lines I added in sites/default/settings.php. Restarted httpd and proceed with installation again.
INSTALLATION.
- Get browser to open http://127.0.0.1/drupal7/install.php
- Choose profile > Standard > Save and continue = passed
- Choose language > English (built-in) > Save and continue = passed
- Verify requirements = passed
- Set up database
> Database name = drupal
> Database username = drupal
> Database password = (same as when I set in PostgreSQL)
> Save and continue
Got this error:
In order for Drupal to work, and to continue with the installation process, you must resolve all issues reported below. For more help with configuring your database server, see the installation handbook. If you are unsure what any of this means you should probably contact your hosting provider.
Failed to connect to your database server. The server reports the following message: SQLSTATE[08006] [7] could not translate host name "localhost" to address: no address associated with name.
- Is the database server running?
- Does the database exist, and have you entered the correct database name?
- Have you entered the correct username and password?
- Have you entered the correct database hostname?
Ok. I read that because httpd in OpenBSD is chrooted, I need to copy /etc/hosts and put it in /var/www/etc/. By default there's no etc/ folder in www so I need to mkdir it. Make sure that "hosts" file at least have this line:
127.0.0.1 localhost www.example.com
Now that should be it. Restarted httpd again and run throught the installation again.
- Set up database
> blablabla
> Save and continue = passed
- Install profile (it will take a moment = passed
- Configure site
> Site name* = default
> Site e-mail address* = noreply@example.com (can be changed)
> Username = karl
> E-mail address = (real email address)
> Password* = *********
> Confirm password* = *********
> Default country = Malaysia
> Default time zone = Asia/Kuala Lumpur
> Check for updates automatically = checked
> Received e-mail notifications = checked
> Save and continue = FINISHED!
Congratulations, I installed Drupal. Now to visit my local site.
Unfortunately, currently I can't use http://127.0.0.1/drupal7/ to visit my site (which if my httpd configured correctly, should be the correct address) but I can visit the site by using complete URL instead.
http://127.0.0.1/drupal7/index.html
For Drupal, all seems ok. I need to further test out and start exploring. For httpd issue above, I will also do the same. I will update on these issues when I found any tips. Enjoy the screenshot. Later.
UPDATE!: Bah although Drupal has been installed successfully, it's not functioning as it should. I have a feeling it's related to OpenBSD's httpd's setting. I would be grateful if someone can point me to relevant setting for this issue. Thanks in advance.
Update 10th August: Ok I have configured the /etc/httpd.conf file and now Drupal is working fine. Here's my configuration:
---- /etc/httpd.conf start ----
ext_addr="*"
server "default" {
listen on $ext_addr port 80
directory {
index "index.php"
}
location "*.php" {
fastcgi socket "/run/php-fpm.sock"
}
location "/cgi-bin/*" {
fastcgi
root "/"
}
root "/htdocs/drupal7"
}
---- /etc/httpd.conf end ----
Restarted the httpd server. Now when I type www.example.com or 127.0.0.1 or localhost in my browser, I can see the Drupal start page. I typed my Username and Password then I can see the site correctly. No more errors.
I've also posted a Hello World! entry to test it out. Enjoy the screenshot. Later.
Saturday, September 15, 2012
5.2 amd64 K43U: Conky not showing correct cpu core's load.
Well, I'm getting more comfortable with cwm. In fact I installed conky again because of cwm. Currently cwm is my main window manager and although spectrwm is still my favorite, I've been using cwm more.
I just found out something interesting today. I'm interested in playing with conky again after I found cwm. Thinking that it will be a great combination. Installation went fine, although I noticed that there's more dependencies needed to install conky now (or I didn't notice it earlier in previous versions).
Then I noticed that the graph and load percentage for 2nd core of my cpu is zero. Nil. Nada. Reading about updates of 5.2 tells me that that version have much more improvements on SMP handling, so obviously OpenBSD is not the issue here. Then I use xstatbar and found that both of my cpu cores are displayed and working as usual. I double check the man for conky and it's confirmed that cpu0 is for all cores, cpu1 is for 1st core and cpu2 is for the 2nd core. So, something wrong with conky again huh. Ok. I know it's not written with OpenBSD in mind so I'm not complaining. Gonna find some sort of workaround for this.
I might try dzen and see if it's any good. Later.
p/s: Oh, this is my 200th post for this blog-o-mine. Hah!
I just found out something interesting today. I'm interested in playing with conky again after I found cwm. Thinking that it will be a great combination. Installation went fine, although I noticed that there's more dependencies needed to install conky now (or I didn't notice it earlier in previous versions).
Then I noticed that the graph and load percentage for 2nd core of my cpu is zero. Nil. Nada. Reading about updates of 5.2 tells me that that version have much more improvements on SMP handling, so obviously OpenBSD is not the issue here. Then I use xstatbar and found that both of my cpu cores are displayed and working as usual. I double check the man for conky and it's confirmed that cpu0 is for all cores, cpu1 is for 1st core and cpu2 is for the 2nd core. So, something wrong with conky again huh. Ok. I know it's not written with OpenBSD in mind so I'm not complaining. Gonna find some sort of workaround for this.
I might try dzen and see if it's any good. Later.
p/s: Oh, this is my 200th post for this blog-o-mine. Hah!
Wednesday, September 12, 2012
amd64 K43U: Upgrading to 5.2-current (via FTP) & cwm - Calm Window Manager.
Hi,
Currently I'm upgrading my K43U to 5.2-current. Using FTP install. But that's not my main point.
Calm Window Manager, or cwm has been in OpenBSD's base install since 4.2. But only now I have the privilege of knowing about it. Sheesh. I'm currently testing it and I can say that it's as fast as spectrwm. But I haven't configured any of it yet. As always, man is the way.
Upgrading 5.1-current to 5.2-current:
Most of the steps are the same as 5.1 amd64: Following -current & radeon 6.14.3 installation topic I posted before. The only thing that's different is the method I'm getting the snapshot files and updating the packages. For this one, I used my Celcom Broadband connection and retrieve all the essential files via ftp.
So first of all, I fired up the Celcom connection, you can check the 4.8 - Script to connect to Celcom 3G link. Bolded is my input:
# celcom3g connect
Connection Celcom3G...
Then it's time to get the files. My fav server is ftp.OpenBSD.org. I make sure I'm in the dir that I want to store all the files first:
# cd /mnt/snapshot/amd64/
# ftp ftp.OpenBSD.org
Connected to openbsd.sunsite.ualberta.ca.
220 openbsd.srv.ualberta.ca FTP server ready.
name (ftp.OpenBSD.org:karl):
Ah. Login name? Err. I just hit Return and got this:
530 User karl access denied.
ftp: Login karl failed.
Now it's getting interesting. After reading the manpage, I found that I should use "-a" to login anonymously. So back to ftp:
# ftp -a ftp.OpenBSD.org
*** Login successful printout ***
Great. Now to get the files.
ftp> cd pub/OpenBSD/snapshots/amd64/
250 CWD command successful.
ftp> mget bsd*
ftp> mget *.tgz
ftp> quit
After this the steps are the same as my previous post. After I done upgrading the OpenBSD to 5.2-current, I updates my packages online (without downloading to local dir like I've always do before).
# export PKG_PATH=http://ftp.OpenBSD.org/pub/OpenBSD/snapshots/packages/amd64/
# sudo pkg_add -vui
Then enjoy, wait, it'll take some time depending on how many stuff you installed already. After a brief testing last night, noticeable improvement is the radeon driver which is updated to 6.14.6. Previously playing 720p mkv movie will stutter like mad but now it's smooth although tearing effect is there. I still have to explore more to comment more on 5.2-current.
Oh, regarding cwm. What's the different between cwm and spectrwm? Short answer:
cwm = stacking
spectrwm = tiling
But cwm is already in base, and spectrwm is available in package. I still need to explore cwm more. Later.
Currently I'm upgrading my K43U to 5.2-current. Using FTP install. But that's not my main point.
Calm Window Manager, or cwm has been in OpenBSD's base install since 4.2. But only now I have the privilege of knowing about it. Sheesh. I'm currently testing it and I can say that it's as fast as spectrwm. But I haven't configured any of it yet. As always, man is the way.
Upgrading 5.1-current to 5.2-current:
Most of the steps are the same as 5.1 amd64: Following -current & radeon 6.14.3 installation topic I posted before. The only thing that's different is the method I'm getting the snapshot files and updating the packages. For this one, I used my Celcom Broadband connection and retrieve all the essential files via ftp.
So first of all, I fired up the Celcom connection, you can check the 4.8 - Script to connect to Celcom 3G link. Bolded is my input:
# celcom3g connect
Connection Celcom3G...
Then it's time to get the files. My fav server is ftp.OpenBSD.org. I make sure I'm in the dir that I want to store all the files first:
# cd /mnt/snapshot/amd64/
# ftp ftp.OpenBSD.org
Connected to openbsd.sunsite.ualberta.ca.
220 openbsd.srv.ualberta.ca FTP server ready.
name (ftp.OpenBSD.org:karl):
Ah. Login name? Err. I just hit Return and got this:
530 User karl access denied.
ftp: Login karl failed.
Now it's getting interesting. After reading the manpage, I found that I should use "-a" to login anonymously. So back to ftp:
# ftp -a ftp.OpenBSD.org
*** Login successful printout ***
Great. Now to get the files.
ftp> cd pub/OpenBSD/snapshots/amd64/
250 CWD command successful.
ftp> mget bsd*
ftp> mget *.tgz
ftp> quit
After this the steps are the same as my previous post. After I done upgrading the OpenBSD to 5.2-current, I updates my packages online (without downloading to local dir like I've always do before).
# export PKG_PATH=http://ftp.OpenBSD.org/pub/OpenBSD/snapshots/packages/amd64/
# sudo pkg_add -vui
Then enjoy, wait, it'll take some time depending on how many stuff you installed already. After a brief testing last night, noticeable improvement is the radeon driver which is updated to 6.14.6. Previously playing 720p mkv movie will stutter like mad but now it's smooth although tearing effect is there. I still have to explore more to comment more on 5.2-current.
Oh, regarding cwm. What's the different between cwm and spectrwm? Short answer:
cwm = stacking
spectrwm = tiling
But cwm is already in base, and spectrwm is available in package. I still need to explore cwm more. Later.
Tuesday, March 20, 2012
5.1 amd64 K43U: Alpine > UW-IMAP > OfflineIMAP > Davmail > OWA stuck.
1) Install Alpine+ldap, setting up DavMail.
Install Alpine using port with FLAVOR set to ldap. I just referred to my previous post. So this post will focus more on OfflineIMAP and UW-IMAPd side of the project.
1) Install imap-uw2007
read the /usr/local/share/doc/pkg_readmes/uw-imap-2007f and follow the instruction. For me, I vim /etc/inetd.conf and add:
imap stream tcp nowait root /usr/local/libexec/imapd imapd
imap stream tcp6 nowait root /usr/local/libexec/imapd imapd
And it's also stated a way to enable plain text login. So I vim /etc/c-client.cf and change:
#set disable-plaintext nil
to
set disable-plaintext nil
You can restart inetd, but I just reboot. Then I telnet to localhost:143.
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK [CAPABILITY IMAP4REV1 I18NLEVEL=1 LITERAL+ SASL-IR LOGIN-REFERRALS STARTTLS] localhost IMAP4rev1 2007f.404 at Tue, 20 Mar 2012 13:27:16 +0800 (MYT)
So far so good. In Alpine I just need to Add Folder collection (S+L+A) with the details:
Nickname: UW-IMAPd
Server: localhost:143
Path: mail/MyCompany/INBOX/
View:
Then after I saved the settings, inside folder list (L) Alpine will ask for my username (same as my OpenBSD's login name) and password (also same as my OpenBSD's password) then I can manipulate my IMAP's INBOX folder. I can add folders, delete etc. So this part is ok.
3) Installing and configuring OfflineIMAP.
I installed OfflineIMAP from OpenBSD's packages. Then I create ~/.offlineimaprc and put the basic as stated in offlineimap.org.
[general]
accounts = MyCompany
[Account MyCompany]
localrepository = Local
remoterepository = Remote
[Repository Local]
type = IMAP
remotehost = localhost
remoteport = 143
remoteuser = karl
[Repository Remote]
type = IMAP
remotehost = locahost
remoteport = 1143
remoteuser = ASIA\karl
Then I run OfflineIMAP by issuing offlineimap. Lo and behold, I got this error:
$ offlineimap
OfflineIMAP 6.3.4
Copyright 2002-2011 John Goerzen & contributors.
Licensed under the GNU GPL v2+ (v2 or any later version).
Account sync MyCompany:
***** Processing account MyCompany
Copying folder structure from IMAP to MappedIMAP
Establishing connection to localhost:1143.
WARNING: Error occured attempting to sync account 'MyCompany':
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/offlineimap/accounts.py", line 177, in syncrunner self.sync()
File "/usr/local/lib/python2.7/site-packages/offlineimap/accounts.py", line 235, in sync remoterepos.syncfoldersto(localrepos, [statusrepos])
File "/usr/local/lib/python2.7/site-packages/offlineimap/repository/Base.py", line 124, in syncfoldersto srcfolders = src.getfolders()
File "/usr/local/lib/python2.7/site-packages/offlineimap/repository/IMAP.py", line 303, in getfolders self.accountname, self))
File "/usr/local/lib/python2.7/site-packages/offlineimap/folder/IMAP.py", line 32, in __init__ self.name = imaputil.dequote(name)
File "/usr/local/lib/python2.7/site-packages/offlineimap/imaputil.py", line 36, in dequote if not (string[0] == '"' and string[-1] == '"'): IndexError: string index out of range
***** Finished processing account MyCompany
Eh. Bah. Something is wrong somewhere. Help....
Install Alpine using port with FLAVOR set to ldap. I just referred to my previous post. So this post will focus more on OfflineIMAP and UW-IMAPd side of the project.
1) Install imap-uw2007
read the /usr/local/share/doc/pkg_readmes/uw-imap-2007f and follow the instruction. For me, I vim /etc/inetd.conf and add:
imap stream tcp nowait root /usr/local/libexec/imapd imapd
imap stream tcp6 nowait root /usr/local/libexec/imapd imapd
And it's also stated a way to enable plain text login. So I vim /etc/c-client.cf and change:
#set disable-plaintext nil
to
set disable-plaintext nil
You can restart inetd, but I just reboot. Then I telnet to localhost:143.
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK [CAPABILITY IMAP4REV1 I18NLEVEL=1 LITERAL+ SASL-IR LOGIN-REFERRALS STARTTLS] localhost IMAP4rev1 2007f.404 at Tue, 20 Mar 2012 13:27:16 +0800 (MYT)
So far so good. In Alpine I just need to Add Folder collection (S+L+A) with the details:
Nickname: UW-IMAPd
Server: localhost:143
Path: mail/MyCompany/INBOX/
View:
Then after I saved the settings, inside folder list (L) Alpine will ask for my username (same as my OpenBSD's login name) and password (also same as my OpenBSD's password) then I can manipulate my IMAP's INBOX folder. I can add folders, delete etc. So this part is ok.
3) Installing and configuring OfflineIMAP.
I installed OfflineIMAP from OpenBSD's packages. Then I create ~/.offlineimaprc and put the basic as stated in offlineimap.org.
[general]
accounts = MyCompany
[Account MyCompany]
localrepository = Local
remoterepository = Remote
[Repository Local]
type = IMAP
remotehost = localhost
remoteport = 143
remoteuser = karl
[Repository Remote]
type = IMAP
remotehost = locahost
remoteport = 1143
remoteuser = ASIA\karl
Then I run OfflineIMAP by issuing offlineimap. Lo and behold, I got this error:
$ offlineimap
OfflineIMAP 6.3.4
Copyright 2002-2011 John Goerzen & contributors.
Licensed under the GNU GPL v2+ (v2 or any later version).
Account sync MyCompany:
***** Processing account MyCompany
Copying folder structure from IMAP to MappedIMAP
Establishing connection to localhost:1143.
WARNING: Error occured attempting to sync account 'MyCompany':
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/offlineimap/accounts.py", line 177, in syncrunner self.sync()
File "/usr/local/lib/python2.7/site-packages/offlineimap/accounts.py", line 235, in sync remoterepos.syncfoldersto(localrepos, [statusrepos])
File "/usr/local/lib/python2.7/site-packages/offlineimap/repository/Base.py", line 124, in syncfoldersto srcfolders = src.getfolders()
File "/usr/local/lib/python2.7/site-packages/offlineimap/repository/IMAP.py", line 303, in getfolders self.accountname, self))
File "/usr/local/lib/python2.7/site-packages/offlineimap/folder/IMAP.py", line 32, in __init__ self.name = imaputil.dequote(name)
File "/usr/local/lib/python2.7/site-packages/offlineimap/imaputil.py", line 36, in dequote if not (string[0] == '"' and string[-1] == '"'): IndexError: string index out of range
***** Finished processing account MyCompany
Eh. Bah. Something is wrong somewhere. Help....
Sunday, March 18, 2012
5.1 amd64 K43U: Alpine reloaded, but snapshot has been updated.
Heyya,
I was trying to install Alpine this evening but aspell dependency is giving out error like something have changed. Then I checked my fav snapshot site and found that it's updated since 15th March.
So I'll be updating the snapshot tomorrow.
What's with Alpine again? Well previously I mentioned about trying to make Alpine to be offline email client (Alpine+UW-IMAPD+DavMail+OfflineIMAP) but the adventure never took off. So I'm visiting the trail again. Heh.
p/s: Not to mention that the Alpine+DavMail+OWA post have the most comment by readers. So it might be a useful post to some people. Later
I was trying to install Alpine this evening but aspell dependency is giving out error like something have changed. Then I checked my fav snapshot site and found that it's updated since 15th March.
So I'll be updating the snapshot tomorrow.
What's with Alpine again? Well previously I mentioned about trying to make Alpine to be offline email client (Alpine+UW-IMAPD+DavMail+OfflineIMAP) but the adventure never took off. So I'm visiting the trail again. Heh.
p/s: Not to mention that the Alpine+DavMail+OWA post have the most comment by readers. So it might be a useful post to some people. Later
Saturday, March 17, 2012
Thunderbird 9: Fixing screwed menu bar position.
Hi,
my -current is using Thunderbird 9x. And yesterday, somehow, I managed to screw the layout of it's Menu bar and Toolbar. The Menu bar should be on top, then below it the Toolbar. But by some magical keyboard shortcut I would never have known nor I can recall, I managed to swap the position between those 2 and leaving the Toolbar on top and below it, the Menu bar. It was ugly, dysfunctional and just plain wrong.
After a few misleading internet articles and forums regarding the issue, or nearly identical issues, I was left with the option of delete-and-test procedure. There's .thunderbird folder inside my $HOME and all the related settings is inside xxxxxxxx.default folder. Because there's a bunch of files, I deleted a subfolder inside then open up Thunderbird just to see did the layout was reverted back to normal. After nearly clearing the content of the .thunderbird folder, I found that the folder extensions is the one that I'm looking for.
So after I deleted the extensions folder, the layout reverted back to factory-default at the expense of losing my downloaded theme. Ah well that made me think that I can achieve the same result by changing theme to default and so it seems so. Better to lose the themes than lose my email settings. Later then.
my -current is using Thunderbird 9x. And yesterday, somehow, I managed to screw the layout of it's Menu bar and Toolbar. The Menu bar should be on top, then below it the Toolbar. But by some magical keyboard shortcut I would never have known nor I can recall, I managed to swap the position between those 2 and leaving the Toolbar on top and below it, the Menu bar. It was ugly, dysfunctional and just plain wrong.
After a few misleading internet articles and forums regarding the issue, or nearly identical issues, I was left with the option of delete-and-test procedure. There's .thunderbird folder inside my $HOME and all the related settings is inside xxxxxxxx.default folder. Because there's a bunch of files, I deleted a subfolder inside then open up Thunderbird just to see did the layout was reverted back to normal. After nearly clearing the content of the .thunderbird folder, I found that the folder extensions is the one that I'm looking for.
So after I deleted the extensions folder, the layout reverted back to factory-default at the expense of losing my downloaded theme. Ah well that made me think that I can achieve the same result by changing theme to default and so it seems so. Better to lose the themes than lose my email settings. Later then.
Wednesday, March 14, 2012
5.1 amd64 K43U: dmesg version 2.
OpenBSD 5.1 (GENERIC.MP) #207: Sun Feb 12 09:42:14 MST 2012
deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8165330944 (7787MB)
avail mem = 7933804544 (7566MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xeafd0 (50 entries)
bios0: vendor American Megatrends Inc. version "220" date 02/20/2012
bios0: ASUSTeK Computer Inc. K43U
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC MCFG HPET SSDT SSDT SLIC
acpi0: wakeup devices SBAZ(S4) P0PC(S4) GEC_(S4) UHC1(S4) UHC2(S4) USB3(S4) UHC4(S4) USB5(S4) UHC6(S4) UHC7(S4) PE20(S4) PE21(S4) PE22(S4) PE23(S4) SLPB(S4)
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD E-450 APU with Radeon(tm) HD Graphics, 1646.70 MHz
cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,SSSE3,CX16,POPCNT,NXE,MMXX,FFXSR,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,IBS,SKINIT
cpu0: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 512KB 64b/line 16-way L2 cache
cpu0: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
cpu0: apic clock running at 199MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD E-450 APU with Radeon(tm) HD Graphics, 1646.50 MHz
cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,SSSE3,CX16,POPCNT,NXE,MMXX,FFXSR,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,IBS,SKINIT
cpu1: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 512KB 64b/line 16-way L2 cache
cpu1: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
ioapic0 at mainbus0: apid 3 pa 0xfec00000, version 21, 24 pins
acpimcfg0 at acpi0 addr 0xe0000000, bus 0-255
acpihpet0 at acpi0: 14318180 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 3 (PE20)
acpiprt2 at acpi0: bus 4 (PE21)
acpiprt3 at acpi0: bus -1 (PE22)
acpiprt4 at acpi0: bus -1 (PE23)
acpiprt5 at acpi0: bus -1 (BR15)
acpiprt6 at acpi0: bus -1 (PCE6)
acpiprt7 at acpi0: bus -1 (PCE7)
acpiprt8 at acpi0: bus -1 (PCE8)
acpiprt9 at acpi0: bus 1 (PCE4)
acpiec0 at acpi0
acpicpu0 at acpi0: C2, PSS
acpicpu1 at acpi0: C2, PSS
acpitz0 at acpi0: critical temperature is 99 degC
acpibat0 at acpi0: BAT1 model "PA3533U " serial 41167 type Li-Ion oem "ASUSTEK"
acpiac0 at acpi0: AC unit online
acpibtn0 at acpi0: PWRB
acpibtn1 at acpi0: SLPB
acpibtn2 at acpi0: LID_
acpivideo0 at acpi0: VGA_
acpivideo1 at acpi0: VGA_
cpu0: 1646 MHz: speeds: 1650 1320 825 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "AMD AMD64 14h Host" rev 0x00
vga1 at pci0 dev 1 function 0 "ATI Radeon HD 6320" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
radeondrm0 at vga1: apic 3 int 18
drm0 at radeondrm0
azalia0 at pci0 dev 1 function 1 "ATI Radeon HD 6310 HD Audio" rev 0x00: msi
azalia0: no supported codecs
ppb0 at pci0 dev 4 function 0 "AMD AMD64 14h PCIE" rev 0x00: msi
pci1 at ppb0 bus 1
ahci0 at pci0 dev 17 function 0 "ATI SBx00 SATA" rev 0x40: apic 3 int 19, AHCI 1.2
scsibus0 at ahci0: 32 targets
sd0 at scsibus0 targ 0 lun 0: SCSI3 0/direct fixed naa.50014ee6ac21175d
sd0: 476940MB, 512 bytes/sector, 976773168 sectors
cd0 at scsibus0 targ 1 lun 0: ATAPI 5/cdrom removable
ohci0 at pci0 dev 18 function 0 "ATI SB700 USB" rev 0x00: apic 3 int 18, version 1.0, legacy support
ehci0 at pci0 dev 18 function 2 "ATI SB700 USB2" rev 0x00: apic 3 int 17
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "ATI EHCI root hub" rev 2.00/1.00 addr 1
ohci1 at pci0 dev 19 function 0 "ATI SB700 USB" rev 0x00: apic 3 int 18, version 1.0, legacy support
ehci1 at pci0 dev 19 function 2 "ATI SB700 USB2" rev 0x00: apic 3 int 17
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 "ATI EHCI root hub" rev 2.00/1.00 addr 1
piixpm0 at pci0 dev 20 function 0 "ATI SBx00 SMBus" rev 0x42: polling
iic0 at piixpm0
spdmem0 at iic0 addr 0x50: 4GB DDR3 SDRAM PC3-10600 SO-DIMM
spdmem1 at iic0 addr 0x51: 4GB DDR3 SDRAM PC3-10600 SO-DIMM
pciide0 at pci0 dev 20 function 1 "ATI SB700 IDE" rev 0x40: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility
azalia1 at pci0 dev 20 function 2 "ATI SBx00 HD Audio" rev 0x40: apic 3 int 16
azalia1: codecs: Realtek ALC269
audio0 at azalia1
pcib0 at pci0 dev 20 function 3 "ATI SB700 ISA" rev 0x40
ppb1 at pci0 dev 20 function 4 "ATI SB600 PCI" rev 0x40
pci2 at ppb1 bus 2
ohci2 at pci0 dev 20 function 5 "ATI SB700 USB" rev 0x00: apic 3 int 18, version 1.0, legacy support
ppb2 at pci0 dev 21 function 0 "ATI SB800 PCIE" rev 0x00
pci3 at ppb2 bus 3
re0 at pci3 dev 0 function 0 "Realtek 8168" rev 0x06: RTL8168E/8111E-VL (0x2c80), apic 3 int 16, address 14:da:e9:a2:a3:06
rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 5
ppb3 at pci0 dev 21 function 1 "ATI SB800 PCIE" rev 0x00
pci4 at ppb3 bus 4
athn0 at pci4 dev 0 function 0 "Atheros AR9285" rev 0x01: apic 3 int 17
athn0: AR9285 rev 2 (1T1R), ROM rev 14, address d0:df:9a:85:1a:ef
ohci3 at pci0 dev 22 function 0 "ATI SB700 USB" rev 0x00: apic 3 int 18, version 1.0, legacy support
ehci2 at pci0 dev 22 function 2 "ATI SB700 USB2" rev 0x00: apic 3 int 17
usb2 at ehci2: USB revision 2.0
uhub2 at usb2 "ATI EHCI root hub" rev 2.00/1.00 addr 1
pchb1 at pci0 dev 24 function 0 "AMD AMD64 14h Link Cfg" rev 0x43
pchb2 at pci0 dev 24 function 1 "AMD AMD64 14h Address Map" rev 0x00
pchb3 at pci0 dev 24 function 2 "AMD AMD64 14h DRAM Cfg" rev 0x00
km0 at pci0 dev 24 function 3 "AMD AMD64 14h Misc Cfg" rev 0x00
pchb4 at pci0 dev 24 function 4 "AMD AMD64 14h CPU Power" rev 0x00
pchb5 at pci0 dev 24 function 5 "AMD AMD64 14h Reserved" rev 0x00
pchb6 at pci0 dev 24 function 6 "AMD AMD64 14h NB Power" rev 0x00
pchb7 at pci0 dev 24 function 7 "AMD AMD64 14h Reserved" rev 0x00
usb3 at ohci0: USB revision 1.0
uhub3 at usb3 "ATI OHCI root hub" rev 1.00/1.00 addr 1
usb4 at ohci1: USB revision 1.0
uhub4 at usb4 "ATI OHCI root hub" rev 1.00/1.00 addr 1
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
usb5 at ohci2: USB revision 1.0
uhub5 at usb5 "ATI OHCI root hub" rev 1.00/1.00 addr 1
usb6 at ohci3: USB revision 1.0
uhub6 at usb6 "ATI OHCI root hub" rev 1.00/1.00 addr 1
mtrr: Pentium Pro MTRR support
uvideo0 at uhub0 port 3 configuration 1 interface 0 "04081-00050100C417910FV ASUS USB2.0 WebCam" rev 2.00/0.05 addr 2
video0 at uvideo0
umass0 at uhub0 port 5 configuration 1 interface 0 "Generic USB2.0-CRW" rev 2.00/38.82 addr 3
umass0: using SCSI over Bulk-Only
scsibus1 at umass0: 2 targets, initiator 0
sd1 at scsibus1 targ 1 lun 0: SCSI0 0/direct removable serial.0bda0138516388200000
uhidev0 at uhub3 port 1 configuration 1 interface 0 "Logitech USB-PS/2 Optical Mouse" rev 2.00/20.00 addr 2
uhidev0: iclass 3/1
ums0 at uhidev0: 3 buttons, Z dir
wsmouse1 at ums0 mux 0
ugen0 at uhub3 port 4 "Lite-On Technology product 0x3002" rev 1.10/0.01 addr 3
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
root on sd0a (e777c1bb59b96fd1.a) swap on sd0b dump on sd0b
This dmesg have Multi-Card detected and speaker working.
deraadt@amd64.openbsd.org:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 8165330944 (7787MB)
avail mem = 7933804544 (7566MB)
mainbus0 at root
bios0 at mainbus0: SMBIOS rev. 2.7 @ 0xeafd0 (50 entries)
bios0: vendor American Megatrends Inc. version "220" date 02/20/2012
bios0: ASUSTeK Computer Inc. K43U
acpi0 at bios0: rev 2
acpi0: sleep states S0 S3 S4 S5
acpi0: tables DSDT FACP APIC MCFG HPET SSDT SSDT SLIC
acpi0: wakeup devices SBAZ(S4) P0PC(S4) GEC_(S4) UHC1(S4) UHC2(S4) USB3(S4) UHC4(S4) USB5(S4) UHC6(S4) UHC7(S4) PE20(S4) PE21(S4) PE22(S4) PE23(S4) SLPB(S4)
acpitimer0 at acpi0: 3579545 Hz, 32 bits
acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: AMD E-450 APU with Radeon(tm) HD Graphics, 1646.70 MHz
cpu0: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,SSSE3,CX16,POPCNT,NXE,MMXX,FFXSR,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,IBS,SKINIT
cpu0: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 512KB 64b/line 16-way L2 cache
cpu0: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
cpu0: apic clock running at 199MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: AMD E-450 APU with Radeon(tm) HD Graphics, 1646.50 MHz
cpu1: FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,HTT,SSE3,MWAIT,SSSE3,CX16,POPCNT,NXE,MMXX,FFXSR,LONG,LAHF,CMPLEG,SVM,EAPICSP,AMCR8,ABM,SSE4A,MASSE,3DNOWP,IBS,SKINIT
cpu1: 32KB 64b/line 2-way I-cache, 32KB 64b/line 8-way D-cache, 512KB 64b/line 16-way L2 cache
cpu1: DTLB 40 4KB entries fully associative, 8 4MB entries fully associative
ioapic0 at mainbus0: apid 3 pa 0xfec00000, version 21, 24 pins
acpimcfg0 at acpi0 addr 0xe0000000, bus 0-255
acpihpet0 at acpi0: 14318180 Hz
acpiprt0 at acpi0: bus 0 (PCI0)
acpiprt1 at acpi0: bus 3 (PE20)
acpiprt2 at acpi0: bus 4 (PE21)
acpiprt3 at acpi0: bus -1 (PE22)
acpiprt4 at acpi0: bus -1 (PE23)
acpiprt5 at acpi0: bus -1 (BR15)
acpiprt6 at acpi0: bus -1 (PCE6)
acpiprt7 at acpi0: bus -1 (PCE7)
acpiprt8 at acpi0: bus -1 (PCE8)
acpiprt9 at acpi0: bus 1 (PCE4)
acpiec0 at acpi0
acpicpu0 at acpi0: C2, PSS
acpicpu1 at acpi0: C2, PSS
acpitz0 at acpi0: critical temperature is 99 degC
acpibat0 at acpi0: BAT1 model "PA3533U " serial 41167 type Li-Ion oem "ASUSTEK"
acpiac0 at acpi0: AC unit online
acpibtn0 at acpi0: PWRB
acpibtn1 at acpi0: SLPB
acpibtn2 at acpi0: LID_
acpivideo0 at acpi0: VGA_
acpivideo1 at acpi0: VGA_
cpu0: 1646 MHz: speeds: 1650 1320 825 MHz
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0 "AMD AMD64 14h Host" rev 0x00
vga1 at pci0 dev 1 function 0 "ATI Radeon HD 6320" rev 0x00
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
radeondrm0 at vga1: apic 3 int 18
drm0 at radeondrm0
azalia0 at pci0 dev 1 function 1 "ATI Radeon HD 6310 HD Audio" rev 0x00: msi
azalia0: no supported codecs
ppb0 at pci0 dev 4 function 0 "AMD AMD64 14h PCIE" rev 0x00: msi
pci1 at ppb0 bus 1
ahci0 at pci0 dev 17 function 0 "ATI SBx00 SATA" rev 0x40: apic 3 int 19, AHCI 1.2
scsibus0 at ahci0: 32 targets
sd0 at scsibus0 targ 0 lun 0:
sd0: 476940MB, 512 bytes/sector, 976773168 sectors
cd0 at scsibus0 targ 1 lun 0:
ohci0 at pci0 dev 18 function 0 "ATI SB700 USB" rev 0x00: apic 3 int 18, version 1.0, legacy support
ehci0 at pci0 dev 18 function 2 "ATI SB700 USB2" rev 0x00: apic 3 int 17
usb0 at ehci0: USB revision 2.0
uhub0 at usb0 "ATI EHCI root hub" rev 2.00/1.00 addr 1
ohci1 at pci0 dev 19 function 0 "ATI SB700 USB" rev 0x00: apic 3 int 18, version 1.0, legacy support
ehci1 at pci0 dev 19 function 2 "ATI SB700 USB2" rev 0x00: apic 3 int 17
usb1 at ehci1: USB revision 2.0
uhub1 at usb1 "ATI EHCI root hub" rev 2.00/1.00 addr 1
piixpm0 at pci0 dev 20 function 0 "ATI SBx00 SMBus" rev 0x42: polling
iic0 at piixpm0
spdmem0 at iic0 addr 0x50: 4GB DDR3 SDRAM PC3-10600 SO-DIMM
spdmem1 at iic0 addr 0x51: 4GB DDR3 SDRAM PC3-10600 SO-DIMM
pciide0 at pci0 dev 20 function 1 "ATI SB700 IDE" rev 0x40: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility
azalia1 at pci0 dev 20 function 2 "ATI SBx00 HD Audio" rev 0x40: apic 3 int 16
azalia1: codecs: Realtek ALC269
audio0 at azalia1
pcib0 at pci0 dev 20 function 3 "ATI SB700 ISA" rev 0x40
ppb1 at pci0 dev 20 function 4 "ATI SB600 PCI" rev 0x40
pci2 at ppb1 bus 2
ohci2 at pci0 dev 20 function 5 "ATI SB700 USB" rev 0x00: apic 3 int 18, version 1.0, legacy support
ppb2 at pci0 dev 21 function 0 "ATI SB800 PCIE" rev 0x00
pci3 at ppb2 bus 3
re0 at pci3 dev 0 function 0 "Realtek 8168" rev 0x06: RTL8168E/8111E-VL (0x2c80), apic 3 int 16, address 14:da:e9:a2:a3:06
rgephy0 at re0 phy 7: RTL8169S/8110S PHY, rev. 5
ppb3 at pci0 dev 21 function 1 "ATI SB800 PCIE" rev 0x00
pci4 at ppb3 bus 4
athn0 at pci4 dev 0 function 0 "Atheros AR9285" rev 0x01: apic 3 int 17
athn0: AR9285 rev 2 (1T1R), ROM rev 14, address d0:df:9a:85:1a:ef
ohci3 at pci0 dev 22 function 0 "ATI SB700 USB" rev 0x00: apic 3 int 18, version 1.0, legacy support
ehci2 at pci0 dev 22 function 2 "ATI SB700 USB2" rev 0x00: apic 3 int 17
usb2 at ehci2: USB revision 2.0
uhub2 at usb2 "ATI EHCI root hub" rev 2.00/1.00 addr 1
pchb1 at pci0 dev 24 function 0 "AMD AMD64 14h Link Cfg" rev 0x43
pchb2 at pci0 dev 24 function 1 "AMD AMD64 14h Address Map" rev 0x00
pchb3 at pci0 dev 24 function 2 "AMD AMD64 14h DRAM Cfg" rev 0x00
km0 at pci0 dev 24 function 3 "AMD AMD64 14h Misc Cfg" rev 0x00
pchb4 at pci0 dev 24 function 4 "AMD AMD64 14h CPU Power" rev 0x00
pchb5 at pci0 dev 24 function 5 "AMD AMD64 14h Reserved" rev 0x00
pchb6 at pci0 dev 24 function 6 "AMD AMD64 14h NB Power" rev 0x00
pchb7 at pci0 dev 24 function 7 "AMD AMD64 14h Reserved" rev 0x00
usb3 at ohci0: USB revision 1.0
uhub3 at usb3 "ATI OHCI root hub" rev 1.00/1.00 addr 1
usb4 at ohci1: USB revision 1.0
uhub4 at usb4 "ATI OHCI root hub" rev 1.00/1.00 addr 1
isa0 at pcib0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pms0 at pckbc0 (aux slot)
pckbc0: using irq 12 for aux slot
wsmouse0 at pms0 mux 0
pcppi0 at isa0 port 0x61
spkr0 at pcppi0
usb5 at ohci2: USB revision 1.0
uhub5 at usb5 "ATI OHCI root hub" rev 1.00/1.00 addr 1
usb6 at ohci3: USB revision 1.0
uhub6 at usb6 "ATI OHCI root hub" rev 1.00/1.00 addr 1
mtrr: Pentium Pro MTRR support
uvideo0 at uhub0 port 3 configuration 1 interface 0 "04081-00050100C417910FV ASUS USB2.0 WebCam" rev 2.00/0.05 addr 2
video0 at uvideo0
umass0 at uhub0 port 5 configuration 1 interface 0 "Generic USB2.0-CRW" rev 2.00/38.82 addr 3
umass0: using SCSI over Bulk-Only
scsibus1 at umass0: 2 targets, initiator 0
sd1 at scsibus1 targ 1 lun 0:
uhidev0 at uhub3 port 1 configuration 1 interface 0 "Logitech USB-PS/2 Optical Mouse" rev 2.00/20.00 addr 2
uhidev0: iclass 3/1
ums0 at uhidev0: 3 buttons, Z dir
wsmouse1 at ums0 mux 0
ugen0 at uhub3 port 4 "Lite-On Technology product 0x3002" rev 1.10/0.01 addr 3
vscsi0 at root
scsibus2 at vscsi0: 256 targets
softraid0 at root
scsibus3 at softraid0: 256 targets
root on sd0a (e777c1bb59b96fd1.a) swap on sd0b dump on sd0b
This dmesg have Multi-Card detected and speaker working.
5.1 amd64 K43U: Updated BIOS to 2.20 and found some issues.
Hi,
I updated my K43U's BIOS 2 days ago to version 2.20 from previous version 2.17. Then I noticed something. I'm not sure this is related to me updating the BIOS but for sure, I noticed this issue after updating the BIOS.
Sometime the speaker will not function. Result of mixerctl will show that the speaker is not muted and if I attach a headphone, mixerctl will update accordingly - headphone works and detaching the headphone will result in still no sound coming out from the speaker. Rebooting will result in the same issue unless I opt for shutting down, then boot the machine. In Win7 the speaker is working fine with no issue so this might not be a BIOS update issue.
I also notice that this machine's Multicard Reader will sometime be detected and sometime not. If you refer to my dmesg, there no card reader detected but sometime I can see this dmesg result added:
umass0 at uhub0 port 5 configuration 1 interface 0 "Generic USB2.0-CRW" rev 2.00/38.82 addr 3
umass0: using SCSI over Bulk-Only
scsibus1 at umass0: 2 targets, initiator 0
sd1 at scsibus1 targ 1 lun 0: SCSI0 0/direct removable serial.0bda0138516388200000
To make it ever more weirder, when Multi-Card is detected, the speaker will have no problem. Eh. But then I never tested the Card Reader in either OpenBSD or Win7 so I don't know if it's faulty or what. My machine have 2 years warranty so I better make sure.
UPDATE 14/03/12: I found that my Realtek MultiCard Reader is not working. Even in Win7. So I better send the machine to Asus Service Center ASAP.
Later.
I updated my K43U's BIOS 2 days ago to version 2.20 from previous version 2.17. Then I noticed something. I'm not sure this is related to me updating the BIOS but for sure, I noticed this issue after updating the BIOS.
Sometime the speaker will not function. Result of mixerctl will show that the speaker is not muted and if I attach a headphone, mixerctl will update accordingly - headphone works and detaching the headphone will result in still no sound coming out from the speaker. Rebooting will result in the same issue unless I opt for shutting down, then boot the machine. In Win7 the speaker is working fine with no issue so this might not be a BIOS update issue.
I also notice that this machine's Multicard Reader will sometime be detected and sometime not. If you refer to my dmesg, there no card reader detected but sometime I can see this dmesg result added:
umass0 at uhub0 port 5 configuration 1 interface 0 "Generic USB2.0-CRW" rev 2.00/38.82 addr 3
umass0: using SCSI over Bulk-Only
scsibus1 at umass0: 2 targets, initiator 0
sd1 at scsibus1 targ 1 lun 0:
To make it ever more weirder, when Multi-Card is detected, the speaker will have no problem. Eh. But then I never tested the Card Reader in either OpenBSD or Win7 so I don't know if it's faulty or what. My machine have 2 years warranty so I better make sure.
UPDATE 14/03/12: I found that my Realtek MultiCard Reader is not working. Even in Win7. So I better send the machine to Asus Service Center ASAP.
Later.
Subscribe to:
Posts (Atom)
6.5 amd64: Modify existing certbot certificates.
Hi, It's been quite some time eh. As you can see, I still upgrade my OpenBSD system regularly but currently I do not have the time to ...
-
Firstly, yeah I changed the blog's title. As I'm using ONLY OpenBSD nowadays, I think it's appropriate to change the title as I...
-
Ah. Now I'm back to using xdm as my login manager. Using Wikibook's Guide to X11 as a guideline, I managed to write a rough hack to...
-
Hi, OpenBSD 5.7 is out and what am I gonna wait for? Ok now I'm running 5.7-CURRENT using snapshot, newly upgraded from 5.7-RELEASE b...





