Showing posts with label GNU/Linux. Show all posts
Showing posts with label GNU/Linux. Show all posts

Friday, January 2, 2015

The Linux Foundation

The Linux Foundation is a non-profit consortium dedicated to fostering the growth of Linux. Founded in 2007, The Linux Foundation sponsors the work of Linux creator Linus Torvalds and is supported by leading Linux and open source companies and developers from around the world.





http://www.linuxfoundation.org/

Wednesday, October 22, 2014

Beaglebone does not turn on. "A very sad evening :("

I have been working quite happily with the old bealglebone (white version, rev A6), I managed to crosscompile some educational c++ codes at the bone with debian. The beaglebone has been connected to a machine with debian wheezy. Sadly, an hour ago I begin to use the gpio to control some simple LEDS and switches, however, while using the input options I did not read well, hence I blow up the processor of my white bone. This another sign that I have to read so carefully. To be honest, I felt so confident and now I have learn again that I have to read quite carefully all the instructions in order to proceed in my experiments. Anyway, it does not affect me at all (well this is not true at least in the economical side) since I want to try with a Raspberry Pi. I hope I can have some little money to get one next year.

LESSON LEARNED




As Gerald said at [1] "the maximum voltage is 3.3V on the processor. From what you told me you powered the MAX232 with 5V. That means the signal to the processor is 5V. You blew up the processor. Next time I suggest you run the MAX232 at 3.3V.


[1] https://groups.google.com/forum/#!topic/beagleboard/l-bap8sB4rw


////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
LET ME ADD MY ADVENTURES WITH THE CROSSCOMPILATION UNDER DEBIAN WHEEZY

 Cross-compiling with debian Wheezy 7.6


deb http://http.us.debian.org/debian/ wheezy main

apt-get update
apt-get install build-essential


nano /etc/apt/sources.list
deb http://www.emdebian.org/debian/ unstable main

apt-get install emdebian-archive-keyring  ##IF NOT, THEN TRY: deb http://ftp.us.debian.org/debian/ squeeze main
apt-get update
apt-get install gcc-4.7-arm-linux-gnueabihf g++-4.7-arm-linux-gnueabihf




################################################

nano /etc/apt/sources.list
add this line to /etc/apt/sources.list :

deb http://ftp.us.debian.org/debian/ squeeze main


apt-get update
apt-get install emdebian-archive-keyring

deb http://www.emdebian.org/debian/ squeeze main
apt-get update


# apt-get install g++-4.4-arm-linux-gnueabi gcc-4.4-arm-linux-gnueabi
Reading package lists... Done
Building dependency tree      
Reading state information... Done
The following extra packages will be installed:
  binutils binutils-arm-linux-gnueabi cpp-4.4-arm-linux-gnueabi gcc-4.4-arm-linux-gnueabi-base gcc-4.4-base-armel-cross
  libc-bin-armel-cross libc-dev-bin-armel-cross libc6-armel-cross libc6-dev-armel-cross libgcc1-armel-cross libgmp3c2 libgomp1-armel-cross
  libstdc++6-4.4-dev-armel-cross libstdc++6-armel-cross linux-libc-dev-armel-cross
Suggested packages:
  binutils-doc gcc-4.4-locales gcc-4.4-doc libstdc++6-4.4-dbg-armel-cross libmudflap0-4.4-dev-armel-cross libgcc1-dbg-armel-cross
  libgomp1-dbg-armel-cross libmudflap0-dbg-armel-cross libcloog-ppl0 libppl-c2 libppl7
The following NEW packages will be installed:
  binutils binutils-arm-linux-gnueabi cpp-4.4-arm-linux-gnueabi g++-4.4-arm-linux-gnueabi gcc-4.4-arm-linux-gnueabi
  gcc-4.4-arm-linux-gnueabi-base gcc-4.4-base-armel-cross libc-bin-armel-cross libc-dev-bin-armel-cross libc6-armel-cross
  libc6-dev-armel-cross libgcc1-armel-cross libgmp3c2 libgomp1-armel-cross libstdc++6-4.4-dev-armel-cross libstdc++6-armel-cross
  linux-libc-dev-armel-cross
0 upgraded, 17 newly installed, 0 to remove and 0 not upgraded.
Need to get 24.1 MB of archives.
After this operation, 57.2 MB of additional disk space will be used.
Do you want to continue [Y/n]?



nano /etc/apt/sources.list

comment the following lines:
deb http://ftp.us.debian.org/debian/ squeeze main
deb http://www.emdebian.org/debian/ squeeze main

and add
deb http://http.us.debian.org/debian/ wheezy main

apt-get update
apt-get install eclipse eclipse-cdt

Monday, September 1, 2014

A bootable USB stick with Debian-7.6.0

1 usb fat format and rename the label
------------------------------------

root@N55SL:/home/mapx/Desktop# umount /dev/sdb1
root@N55SL:/home/mapx/Desktop# mkfs.vfat /dev/sdb1
mkfs.vfat 3.0.12 (29 Oct 2011)
root@N55SL:/home/mapx/Desktop# mlabel -i /dev/sdb1 -s ::"debian76"
Volume has no label
root@N55SL:/home/mapx/Desktop#





2 copy and sync the DVD image to the usb stick
---------------------------------------------

root@N55SL:/home/mapx/xfiles/debian# ll
total 3903628
drwxrwxr-x 2 mapx mapx 4096 Aug 22 14:11 ./
drwxrwxr-x 31 mapx mapx 4096 Aug 22 14:11 ../
-rw-r--r-- 1 mapx mapx 3997302784 Jul 24 19:21 debian-7.6.0-i386-DVD-1.iso
root@N55SL:/home/mapx/xfiles/debian# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 378137980 136815204 222394976 39% /
udev 1370408 8 1370400 1% /dev
tmpfs 275548 876 274672 1% /run
none 5120 8 5112 1% /run/lock
none 1377724 600 1377124 1% /run/shm
/dev/sdb1 7794860 4 7794856 1% /media/DEBIAN76
root@N55SL:/home/mapx/xfiles/debian# cp debian-7.6.0-i386-DVD-1.iso /dev/sdb1

root@N55SL:/home/mapx/xfiles/debian# sync



3 Boot Device Selection
--------------------------
I have chosen the USB Storage Stick on the gateway machine.
(I am going to save and reboot, let's see what happens, wish me good luck)

###############################
it does not work, now lets try


2nd trying
##########
dd if=debian-*-netinst.iso of=/dev/sdX
# dd if=debian-7.6.0-i386-DVD-1.iso of=/dev/sdb1

root@N55SL:/home/mapx/xfiles/debian# dd if=debian-7.6.0-i386-DVD-1.iso of=/dev/sdb1
7807232+0 records in
7807232+0 records out
3997302784 bytes (4.0 GB) copied, 382.07 s, 10.5 MB/s





3th trying
##########
$ wget http://d-i.debian.org/daily-images/i386/daily/hd-media/boot.img.gz



root@N55SL:/home/mapx/xfiles/debian# umount /dev/sdb1
root@N55SL:/home/mapx/xfiles/debian# mkfs.vfat /dev/sdb1
mkfs.vfat 3.0.12 (29 Oct 2011)

root@N55SL:/home/mapx/xfiles/debian# zcat boot.img.gz > /dev/sdb1


disconect and connect USB stick so as to mount the stick again!



root@N55SL:/home/mapx/xfiles/debian# cp debian-7.6.0-i386-DVD-1.iso /dev/sdb1
root@N55SL:/home/mapx/xfiles/debian# sync



4th trying
##########

cat debian-7.6.0-i386-DVD-1.iso > /dev/sdb1
sync



5th trying
##########

Following the instructions with the app unetbootin [http://unetbootin.sourceforge.net/]
the bootable USB stick has worked.



Sunday, April 20, 2014

Debian 7 wheezy

Last week I installed debian 7.4 wheezy, and I am starting to think that this is really the Universal Operative System.





Nonetheless, there is a little thing that one have to fix soon after installing which is the no firmware for wireless network connection, hence, for that purpose the following explanations is a very good one to solve that issue.

"If you have not installed wireless firmware to support your wireless network card during Debian wheezy installation you can do so later by enabling debian's non-free repository. Here is how you do it. First open your /etc/apt/sources.list file and change line ( your repository mirror may be different ):
from:
deb http://http.debian.net/debian/ wheezy main
to:
deb http://http.debian.net/debian/ wheezy main non-free
Once done update packages list with a command:
# apt-get update
After the above command you can install firmware-iwlwifi with command:
# apt-get install firmware-iwlwifi

and you are done. Then may wont to simply use modprobe to load iwlwifi module or reboot." [1]

[1] http://linuxconfig.org/install-intel-wireless-firmware-on-debian-7-wheezy

Saturday, April 19, 2014

Why doesn't Chromium have “Chrome PDF Viewer” plugin?



  1. Close Chromium
  2. Download Chrome from Chrome distro
  3. Install it on your Ubuntu release
  4. cd /usr/lib/chromium-browser/
  5. sudo cp /opt/google/chrome/*.so .
  6. Start Chromium
HAPPY FACE :)


Wednesday, April 9, 2014

Why am I going to migrate from Ubuntu to debian?







File browsers in GNU/Linux

#TODO -- #add an image of each one!

nautilus - file manager and graphical shell for GNOME
dolphin - file manager for KDE 4
konqueror - KDE 4's advanced file manager, web browser and document viewer
bsc - graphical file manager with two panels
clex - command line file manager which uses the ncurses library
emelfm2 - file manager for X/gtk
fdclone - console-base lightweight file manager
filerunner - X-Based FTP program & file manager
gentoo - a fully GUI-configurable, two-pane X file manager
gnome-commander - nice and fast file manager for the GNOME desktop
gpe-filemanager - file manager for GPE
krusader - twin-panel (commander-style) file manager
lfm - simple but powerful file manager for the UNIX console
mc - Midnight Commander - a powerful file manager
pcmanfm - an extremely fast and lightweight file manager for X
pcmanfm-nohal - an extremely fast and lightweight file manager for X
rox-filer - A simple graphical file manager for X11
thunar - File Manager for Xfce
tkdesk - Tk/tcl based X11 Desktop/File manager
tuxcmd - twin-panel (commander-style) file manager using GTK+ 2
vfu - A versatile text-based filemanager
vifm - a ncurses based file manager with vi like keybindings
worker - highly configurable two-paned file manager for X
xfe - A lightweight file manager for X11
xfm - X file and application manager
xnc - X Northern Captain nc/mc-like filemanager for X
ytree - A file manager for terminals

http://ubuntuforums.org/showthread.php?t=1508095

Sunday, March 16, 2014

How do I remap F3 and F4 keys to ( )

You do not know how annoying is to press SHIFT + 9 and SHIFT + 0 every time you want to get the parenthesis "(" ")". Henceforth, in Ubuntu 12.01 is possible to remap F3 and F4, actually any key, so as to have a more enjoyable experience while coding.

1. Start terminal window and run xev. Now it's active and waits for you to press a key. Then press the key whose behavior you want to change:

$xev

KeyRelease event, serial 36, synthetic NO, window 0x5a00001,
    root 0xb5, subw 0x0, time 4740799, (-257,-664), root:(468,237),
    state 0x11, keycode 18 (keysym 0x28, parenleft), same_screen YES,
    XKeysymToKeycode returns keycode: 187
    XLookupString gives 1 bytes: (28) "("
    XFilterEvent returns: False

KeyPress event, serial 36, synthetic NO, window 0x5a00001,
    root 0xb5, subw 0x0, time 4741289, (-257,-664), root:(468,237),
    state 0x11, keycode 19 (keysym 0x29, parenright), same_screen YES,
    XKeysymToKeycode returns keycode: 188
    XLookupString gives 1 bytes: (29) ")"
    XmbLookupString gives 1 bytes: (29) ")"
    XFilterEvent returns: False

KeyRelease event, serial 36, synthetic NO, window 0x5a00001,
    root 0xb5, subw 0x0, time 4894370, (-353,-482), root:(372,419),
    state 0x10, keycode 69 (keysym 0xffc0, F3), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False

KeyRelease event, serial 36, synthetic NO, window 0x5a00001,
    root 0xb5, subw 0x0, time 4895370, (-353,-482), root:(372,419),
    state 0x10, keycode 70 (keysym 0xffc1, F4), same_screen YES,
    XLookupString gives 0 bytes: 
    XFilterEvent returns: False


2. Now when you want to swap the two keys use xmodmap

$ xmodmap -e "keycode 69 = parenleft"
$ xmodmap -e "keycode 70 = parenright"




+++++TESTING+++++
Soonafter remaping the keys,
key night and key zero have been disable! :S
It will be necessary to read more detailed information to get 
an appropriate config.

Nonetheless, after rebooting the previous-mentioned commands are working and it does not need to remap the keys 9 and 0 again, i.e.

xmodmap -e "keycode 18 = 9"
xmodmap -e "keycode 19 = 0"

KeyRelease event, serial 36, synthetic NO, window 0x4a00001,
    root 0xb5, subw 0x0, time 212931, (-415,-323), root:(548,578),
    state 0x10, keycode 18 (keysym 0x39, 9), same_screen YES,
    XLookupString gives 1 bytes: (39) "9"
    XFilterEvent returns: False

KeyPress event, serial 36, synthetic NO, window 0x4a00001,
    root 0xb5, subw 0x0, time 213451, (-415,-323), root:(548,578),
    state 0x10, keycode 19 (keysym 0x30, 0), same_screen YES,
    XLookupString gives 1 bytes: (30) "0"
    XmbLookupString gives 1 bytes: (30) "0"
    XFilterEvent returns: False

+++++++++++


Note: These change are for the active x session only and will be lost after reboot. When you want to save the changes permanently you have to run the following commands after the ones above:
xmodmap -pke >~/.Xmodmap
(it creates a files called .Xmodmap in your home directory ~ )
Then you have to create a file called .xinitrc in your home directory where you put this commandline xmodmap .Xmodmap in.