You are not logged in.

#1 2012-07-17 02:03:33

kirafreaky
Member
Registered: 2012-07-17
Posts: 27

[SOLVED] Cannot execute web browser on Awesome WM

I'm new with Arch Linux and AwesomeWM and I can't figure out how to execute Firefox or Chromium. I've modified my rc.lua file in ~/.config/awesome/ adding the variable in this way:

  browser = "chromium" 

(or "firefox"),and then:

 myawesomemenu = {
    { "www", browser }, 

When I try to launch the app in the menu, it seems to be loading it, but then nothing happens.

Last edited by kirafreaky (2012-07-19 04:00:00)

Offline

#2 2012-07-17 03:36:32

mjheagle8
Member
From: /home/mjheagle8
Registered: 2009-07-12
Posts: 186

Re: [SOLVED] Cannot execute web browser on Awesome WM

check the output of tty1 (or wherever you launched X) and see if there are any error messages being produced.


Desktop/Laptop - DWM :: VM - screen
Registered Linux User Number 483137 :: Victory! :: GitHub

Offline

#3 2012-07-17 03:37:08

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,742

Re: [SOLVED] Cannot execute web browser on Awesome WM

What happens if you open a terminal and try to start them from the command line.  The output could be telling.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#4 2012-07-17 03:51:36

kirafreaky
Member
Registered: 2012-07-17
Posts: 27

Re: [SOLVED] Cannot execute web browser on Awesome WM

mjheagle8, It doesn't show any error there.

ewaller, with Firefox nothing happens but with Chromium it shows me this error:  /usr/lib/chromium/chromium: error while loading shared libraries: /usr/lib/libevent-2.0.so.5: file too short

Last edited by kirafreaky (2012-07-17 03:54:16)

Offline

#5 2012-07-17 04:06:05

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,742

Re: [SOLVED] Cannot execute web browser on Awesome WM

Is your system fully up to date?  ( sudo pacman -Syu )
Have you successfully completed the /lib & glib migration ? https://bbs.archlinux.org/viewtopic.php?id=145006
What is the output of ls -l /usr/lib/libevent*   ??


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#6 2012-07-17 18:00:54

kirafreaky
Member
Registered: 2012-07-17
Posts: 27

Re: [SOLVED] Cannot execute web browser on Awesome WM

I've updated my system and solved the glibc problem. Anyway I cannot open a browser.

the output of ls -l /usr/lib/libevent*    is:

 lrwxrwxrwx 1 root root 21 May 21 17:22 /lib/libevent-2.0.so.5 -> libevent-2.0.so.5.1.7
-rwxr-xr-x 1 root root  0 May 21 17:22 /lib/libevent-2.0.so.5.1.7
-rw-r--r-- 1 root root 0 May 21 17:22 /lib/libevent.a
lrwxrwxrwx 1 root root 21 May 21 17:22 /lib/libevent-2.0.so -> libevent-2.0.so.5.1.7
lrwxrwxrwx 1 root root 26 May 21 17:22 /lib/libevent-core-2.0.so.5 -> libevent_core-2.0.so.5.1.7
-rwxr-xr-x 1 root root  0 May 21 17:22 /lib/libevent_core-2.0.so.5.1.7
-rw-r--r-- 1 root root 0 May 21 17:22 /lib/libevent_core.a
lrwxrwxrwx 1 root root 26 May 21 17:22 /lib/libevent-core.so. -> libevent_core-2.0.so.5.1.7
lrwxrwxrwx 1 root root 27 May 21 17:22 /lib/libevent_extra-2.0.so.5 -> libevent_extra-2.0.so.5.1.7
-rwxr-xr-x 1 root root  0 May 21 17:22 /lib/libevent_extra-2.0.so.5.1.7
-rw-r--r-- 1 root root 0 May 21 17:22 /lib/libevent_extra.a
lrwxrwxrwx 1 root root 27 May 21 17:22 /lib/libevent_extra.so -> libevent_extra-2.0.so.5.1.7
lrwxrwxrwx 1 root root 29 May 21 17:22 /lib/libevent_openssl-2.0.so.5 -> libevent_openssl-2.0.so.5.1.7
-rwxr-xr-x 1 root root  0 May 21 17:22 /lib/libevent_openssl-2.0.so.5.1.7
-rw-r--r-- 1 root root 0 May 21 17:22 /lib/libevent_openssl.a
lrwxrwxrwx 1 root root 29 May 21 17:22 /lib/libevent_openssl.so -> libevent_openssl-2.0.so.5.1.7
lrwxrwxrwx 1 root root 30 May 21 17:22 /lib/libevent_pthreads-2.0.so.5 -> libevent_pthreads-2.0.so.5.1.7
-rwxr-xr-x 1 root root  0 May 21 17:22 /lib/libevent_pthreads-2.0.so.5.1.7
-rw-r--r-- 1 root root 0 May 21 17:22 /lib/libevent_pthreads.a
lrwxrwxrwx 1 root root 30 May 21 17:22 /lib/libevent_pthreads.so -> libevent_pthreads-2.0.so.5.1.7 

Offline

#7 2012-07-17 19:25:20

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,742

Re: [SOLVED] Cannot execute web browser on Awesome WM

Well, I tend to agree that a zero length library is probably too short tongue

...
lrwxrwxrwx 1 root root 21 May 21 17:22 /lib/libevent-2.0.so.5 -> libevent-2.0.so.5.1.7
-rwxr-xr-x 1 root root  0 May 21 17:22 /lib/libevent-2.0.so.5.1.7
...

can you please post the output of :
ls -l /
and of
ls -l /usr/lib/libevent*

I am convinced you are still dealing with a hosed /lib -> /usr/lib link.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#8 2012-07-17 20:46:57

doug piston
Member
From: Seattle
Registered: 2011-09-11
Posts: 387
Website

Re: [SOLVED] Cannot execute web browser on Awesome WM

Why add a variable?

inet = {   
    { "www", "firefox" }
    }

You can look at my rc.lua in my sig below. Also many different examples are in the Awesome screenshot thread.



EDIT:


I should learn to read better. Apologies, didn't see the portion about it not working in terminals as well.

Last edited by doug piston (2012-07-17 21:02:06)

Offline

#9 2012-07-17 20:49:33

kirafreaky
Member
Registered: 2012-07-17
Posts: 27

Re: [SOLVED] Cannot execute web browser on Awesome WM

ls -l /   :

 total 1137
drwxr-xr-x 2 root root 4096 Jul 17 11:38 bin
drwxr-xr-x 4 root root 1024 Jul 17 11:38 boot
drwxr-xr-x 16 root root 3100 Jul 17 11:38 dev
drwxr-xr-x 63 root root 4096 Jul 17 11:38 etc
drwxr-xr-x 4 root root 4096 Jul 17 11:38 home
lrwxrwxrwx 1 root root 7  Jul 7 05:09 lib -> usr/lib
lrwxrwxrwx 1 root root 7  Jul 7 05:09 lib64 -> usr/lib
drwx------ 2 root root 16384 Dec 31  2000 lost+found
drwxr-xr-x 2 root root 4096 Jun 20 04:31 media 
drwxr-xr-x 2 root root 4096 Jun 20 04:31 mnt
drwxr-xr-x 2 root root 4096 Jun 20 04:31 opt
dr-xr-xr-x 90 root root 0 Jul 17 14:47 proc
drwxr-x--- 15 root root 4096 Jul 11 03:25 root
drwxr-xr-x 16 root root 440 Jun 17 14:48 run
drwxr-xr-x 2 root root 4096 Jul 17 12:09 sbin
-rw-r--r-- 1 root root 1101800 Jul 11 01:21 slim.png
drwxr-xr-x 4 root root 4096 Jun 20 04:31 srv 

ls -l /usr/lib/libevent*  :

 lrwxrwxrwx 1 root root 21 May 21 17:22 /lib/libevent-2.0.so.5 -> libevent-2.0.so.5.1.7
-rwxr-xr-x 1 root root  0 May 21 17:22 /lib/libevent-2.0.so.5.1.7
-rw-r--r-- 1 root root 0 May 21 17:22 /lib/libevent.a
lrwxrwxrwx 1 root root 21 May 21 17:22 /lib/libevent-2.0.so -> libevent-2.0.so.5.1.7
lrwxrwxrwx 1 root root 26 May 21 17:22 /lib/libevent-core-2.0.so.5 -> libevent_core-2.0.so.5.1.7
-rwxr-xr-x 1 root root  0 May 21 17:22 /lib/libevent_core-2.0.so.5.1.7
-rw-r--r-- 1 root root 0 May 21 17:22 /lib/libevent_core.a
lrwxrwxrwx 1 root root 26 May 21 17:22 /lib/libevent-core.so. -> libevent_core-2.0.so.5.1.7
lrwxrwxrwx 1 root root 27 May 21 17:22 /lib/libevent_extra-2.0.so.5 -> libevent_extra-2.0.so.5.1.7
-rwxr-xr-x 1 root root  0 May 21 17:22 /lib/libevent_extra-2.0.so.5.1.7
-rw-r--r-- 1 root root 0 May 21 17:22 /lib/libevent_extra.a
lrwxrwxrwx 1 root root 27 May 21 17:22 /lib/libevent_extra.so -> libevent_extra-2.0.so.5.1.7
lrwxrwxrwx 1 root root 29 May 21 17:22 /lib/libevent_openssl-2.0.so.5 -> libevent_openssl-2.0.so.5.1.7
-rwxr-xr-x 1 root root  0 May 21 17:22 /lib/libevent_openssl-2.0.so.5.1.7
-rw-r--r-- 1 root root 0 May 21 17:22 /lib/libevent_openssl.a
lrwxrwxrwx 1 root root 29 May 21 17:22 /lib/libevent_openssl.so -> libevent_openssl-2.0.so.5.1.7
lrwxrwxrwx 1 root root 30 May 21 17:22 /lib/libevent_pthreads-2.0.so.5 -> libevent_pthreads-2.0.so.5.1.7
-rwxr-xr-x 1 root root  0 May 21 17:22 /lib/libevent_pthreads-2.0.so.5.1.7
-rw-r--r-- 1 root root 0 May 21 17:22 /lib/libevent_pthreads.a
lrwxrwxrwx 1 root root 30 May 21 17:22 /lib/libevent_pthreads.so -> libevent_pthreads-2.0.so.5.1.7 

Offline

#10 2012-07-17 20:54:12

kirafreaky
Member
Registered: 2012-07-17
Posts: 27

Re: [SOLVED] Cannot execute web browser on Awesome WM

doug piston, I've tried that too but didn't have success.

Offline

#11 2012-07-17 21:54:45

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,742

Re: [SOLVED] Cannot execute web browser on Awesome WM

Okay, try re-installing libevent.

# pacman -S libevent

Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#12 2012-07-17 22:24:19

kirafreaky
Member
Registered: 2012-07-17
Posts: 27

Re: [SOLVED] Cannot execute web browser on Awesome WM

Thanks for your help ewaller, but didn't work hmm. I should add when I instaled Arch Linux I downloaded the Gnome DE and then removed it and started using awesome-git, but there were some bugs, so i removed it and installed awesome last stable version with Yaourt.. Maybe there is some gnome package interfering with it, but I don't really know.

EDIT: With awesome-git the browser didn't work too.

Last edited by kirafreaky (2012-07-17 22:28:06)

Offline

#13 2012-07-18 02:00:23

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,742

Re: [SOLVED] Cannot execute web browser on Awesome WM

I am afraid I am running out of airspeed, altitude and ideas, all at once.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#14 2012-07-18 02:20:44

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: [SOLVED] Cannot execute web browser on Awesome WM

kirafreaky,

I recommend removing the most recent version of libevent from /var/cache/pacman/pkg/ and then reinstall as ewaller had suggested.

Offline

#15 2012-07-18 03:09:24

kirafreaky
Member
Registered: 2012-07-17
Posts: 27

Re: [SOLVED] Cannot execute web browser on Awesome WM

skottish,

Thanks for the suggestion, I followed it but  it didn't removed the problem.

Offline

#16 2012-07-18 03:11:28

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: [SOLVED] Cannot execute web browser on Awesome WM

kirafreaky wrote:

skottish,

Thanks for the suggestion, I followed it but  it didn't removed the problem.

Do you still have 0 byte files for libevent?

Offline

#17 2012-07-18 03:18:58

kirafreaky
Member
Registered: 2012-07-17
Posts: 27

Re: [SOLVED] Cannot execute web browser on Awesome WM

skottish wrote:
kirafreaky wrote:

skottish,

Thanks for the suggestion, I followed it but  it didn't removed the problem.

Do you still have 0 byte files for libevent?

Yep, I still have them.

Offline

#18 2012-07-18 03:23:03

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: [SOLVED] Cannot execute web browser on Awesome WM

kirafreaky wrote:
skottish wrote:
kirafreaky wrote:

skottish,

Thanks for the suggestion, I followed it but  it didn't removed the problem.

Do you still have 0 byte files for libevent?

Yep, I still have them.

Drat! Pesky little bug.

You can try to remove libevent with -Rdd and reinstall.

Offline

#19 2012-07-18 03:39:10

kirafreaky
Member
Registered: 2012-07-17
Posts: 27

Re: [SOLVED] Cannot execute web browser on Awesome WM

skottish wrote:
kirafreaky wrote:
skottish wrote:

Do you still have 0 byte files for libevent?

Yep, I still have them.

Drat! Pesky little bug.

You can try to remove libevent with -Rdd and reinstall.

Sorry for asking this, how do i use -Rdd? I tried "sudo rm -Rdd libevent" but it gives me a bash.

Offline

#20 2012-07-18 03:41:00

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,742

Re: [SOLVED] Cannot execute web browser on Awesome WM

That should be

 sudo pacman -Rdd libevent

Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#21 2012-07-18 03:44:58

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: [SOLVED] Cannot execute web browser on Awesome WM

kirafreaky wrote:
skottish wrote:
kirafreaky wrote:

Yep, I still have them.

Drat! Pesky little bug.

You can try to remove libevent with -Rdd and reinstall.

Sorry for asking this, how do i use -Rdd? I tried "sudo rm -Rdd libevent" but it gives me a bash.

pacman -Rdd libevent

It removes a package while ignoring dependecies. Just make sure that you reinstall right away just in case anything else needs it.

If that fails, I would make a copy of the package in the cache and place it in some directory by itself. Use bsdtar to decompress it while not being root:

bsdtar -xf libevent-<whatever the rest of file is called>

and check to see if any of the files inside are zero byte. If they are, you'll probably need switch mirrors to get the file. I'm not sure how modern pacman could miss such a thing, but it has happened in the past.

Offline

#22 2012-07-18 03:57:30

kirafreaky
Member
Registered: 2012-07-17
Posts: 27

Re: [SOLVED] Cannot execute web browser on Awesome WM

Damn, no success here. Should I try reinstalling Arch linux? hmm

EDIT: I still get 0 byte files
EDIT: I haven't used bsdtar, I'll try it.

Last edited by kirafreaky (2012-07-18 04:02:51)

Offline

#23 2012-07-18 04:03:17

Zancarius
Member
From: NM, USA
Registered: 2012-05-06
Posts: 207

Re: [SOLVED] Cannot execute web browser on Awesome WM

kirafreaky wrote:

Damn, no success here. Should I try reinstalling Arch linux? hmm

EDIT: I still get 0 byte files

Did you try what skottish suggested, e.g.:

tar tvf /var/pacman/cache/pkg/libevent-*

That should show you whether the package you received from the mirror contains the correct files. I can't see how that would happen, but it's certainly worth a shot.


He who has no .plan has small finger.
~Confucius on UNIX.

Offline

#24 2012-07-18 04:45:47

kirafreaky
Member
Registered: 2012-07-17
Posts: 27

Re: [SOLVED] Cannot execute web browser on Awesome WM

So I used this command:

 tar tvf /var/cache/pacman/pkg/libevent-* 

and I found  a lot of 0 bytes files

-rw-r--r--  root/root    520 2012-05-21 17:22 .PKINFO
drwxr-xr-x  root/root       0 2012-05-21 17:22 usr/
drwxr-xr-x  root/root       0 2012-05-21 17:22 usr/bin
drwxr-xr-x  root/root       0 2012-05-21 17:22 usr/include 
drwxr-xr-x  root/root       0 2012-05-21 17:22 usr/lib
lrwxrwxrwx  root root       0 2012-02-21 17:22 usr/lib/libevent-2.0.so.5 -> libevent-2.0.so.5.1.7   ... 

Offline

#25 2012-07-18 04:51:55

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,742

Re: [SOLVED] Cannot execute web browser on Awesome WM

Is that the complete output ?  I would expect directories and soft links to be zero.  The last five lines fall into that category.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

Board footer

Powered by FluxBB