Just install the ipxe package (apt install ipxe) and run sudo update-grub afterwards.
Binary Now
Notes to myself.
Monday, January 18, 2021
OpenWrt on HP Microserver Gen8
This was done when the server already had a working debian in its own partition. Can be done also in a new/empty disk using a live install disk.
- Download required files:
- rootfs image (e.g. https://downloads.openwrt.org/releases/19.07.5/targets/x86/64/openwrt-19.07.5-x86-64-rootfs-ext4.img.gz).
- kernel (e.g. https://downloads.openwrt.org/releases/19.07.5/targets/x86/64/openwrt-19.07.5-x86-64-vmlinuz).
- Network driver: kmod-libphy and kmod-tg3 (https://downloads.openwrt.org/releases/19.07.5/targets/x86/64/packages/kmod-libphy_4.14.209-1_x86_64.ipk and https://downloads.openwrt.org/releases/19.07.5/targets/x86/64/packages/kmod-tg3_4.14.209-1_x86_64.ipk).
- Prepare a partition for OpenWrt
- Copy image to hard disk partition with dd or similar tool.
- Copy kernel to /boot.
- Copy both ipk files for the network driver to /tmp.
- Install grub2 to the disk if not present already.
- Write a grub entry for OpenWrt, e.g. (modify partition location/id as needed):
menuentry 'OpenWrt 19.07.5 (on /dev/sdc2)' --class openwrt --class gnu-linux --class gnu --class os $menuentry_id_option 'osprober-gnulinux-simple-57f8f4bc-abf4-655f-bf67-946fc0f9f25b' { insmod part_msdos insmod ext2 set root='hd2,msdos2' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd2,msdos2 --hint-efi=hd2,msdos2 --hint-baremetal=ahci2,msdos2 57f8f4bc-abf4-655f-bf67-946fc0f9f25b else search --no-floppy --fs-uuid --set=root 57f8f4bc-abf4-655f-bf67-946fc0f9f25b fi linux /boot/vmlinuz root=/dev/sdc2 }
- Update-grub
- Boot
- opkg install /tmp/kmod-libphy... and opkg install /tmp/kmod-tg3
- Configure as needed
- Once you have internet connection consider install additional packages (e.g. nano, luci-admin-full).
Labels:
microserver,
openwrt
Location:
08840 Viladecans, Barcelona, España
Saturday, January 30, 2016
Fix permissions on MySQL/MariaDB for Kodi
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'password1'; GRANT ALL PRIVILEGES ON *.* TO 'xbmc'@'%' IDENTIFIED BY 'password2'; GRANT ALL PRIVILEGES ON *.* TO 'kodi'@'%' IDENTIFIED BY 'password3'; FLUSH PRIVILEGES;
Saturday, November 29, 2014
Saturday, July 12, 2014
Fixing Arch Linux on cubox-i4
Chromium displays ";" instead of "ñ" or "ç":
/etc/locale.conf:
LANG="en_US.UTF-8"
/etc/locale.gen
en_US.UTF-8 UTF-8
en_US ISO-8859-1
es_ES.UTF-8 UTF-8
es_ES ISO-8859-1
es_ES@euro ISO-8859-15
Run locale-gen
xfce terminal displays square instead of "ñ" or "ç"
Edit > Preferences > Advanced > Encoding = UTF-8
xorg does not start
/etc/ld.so.conf.d/mesa.conf
/usr/lib/mesa
/etc/ld.so.conf.d/gpu-viv-bin-mx6q.conf
/opt/fsl/lib
Run ldconfig.
glxinfo/glxgears complain with "Error: couldn't find RGB GLX visual or fbconfig"
ln -s /usr/lib/xorg/modules/extensions/libglx.xorg /usr/lib/xorg/modules/extensions/libglx.so
/etc/locale.conf:
LANG="en_US.UTF-8"
/etc/locale.gen
en_US.UTF-8 UTF-8
en_US ISO-8859-1
es_ES.UTF-8 UTF-8
es_ES ISO-8859-1
es_ES@euro ISO-8859-15
Run locale-gen
xfce terminal displays square instead of "ñ" or "ç"
Edit > Preferences > Advanced > Encoding = UTF-8
xorg does not start
/etc/ld.so.conf.d/mesa.conf
/usr/lib/mesa
/etc/ld.so.conf.d/gpu-viv-bin-mx6q.conf
/opt/fsl/lib
Run ldconfig.
glxinfo/glxgears complain with "Error: couldn't find RGB GLX visual or fbconfig"
ln -s /usr/lib/xorg/modules/extensions/libglx.xorg /usr/lib/xorg/modules/extensions/libglx.so
Saturday, March 29, 2014
Rufus - Create bootable USB drives the easy way
I normally use UNetbootin for my bootable USB drives but Rufus worked great when I used it recently.
Saturday, March 22, 2014
config.txt for (Raspberry PI) + (HDMI to VGA Video + Audio Adapter)
Here's our known-good /boot/config.txt which will set the resolution to 800x600 and enable the audio out of the adapter. we have a couple other resolution options documented as well!:
# uncomment if you get no picture on HDMI for a default "safe" mode #hdmi_safe=1 # uncomment this if your display has a black border of unused pixels visible # and your display can output without overscan #disable_overscan=1 # uncomment the following to adjust overscan. Use positive numbers if console # goes off screen, and negative if there is too much border #overscan_left=16 #overscan_right=16 #overscan_top=16 #overscan_bottom=16 # uncomment to force a console size. By default it will be display's size minus # overscan. #framebuffer_width=1280 #framebuffer_height=720 # uncomment if hdmi display is not detected and composite is being output #hdmi_force_hotplug=1 # uncomment to force a specific HDMI mode (this will force VGA) hdmi_group=2 hdmi_mode=87 # Put your VGA monitor resolution below # hdmi_cvt =# width width in pixels # height height in pixels # framerate framerate in Hz # aspect aspect ratio 1=4:3, 2=14:9, 3=16:9, 4=5:4, 5=16:10, 6=15:9 # margins 0=margins disabled, 1=margins enabled # interlace 0=progressive, 1=interlaced # rb 0=normal, 1=reduced blanking # For example, 800x600 @ 60 Hz hdmi_cvt=800 600 60 1 0 0 1 # or maybe 800x480 @ 60 Hz #hdmi_cvt=800 480 60 6 0 0 1 # or, 1024 x 768 @ 50 Hz #hdmi_cvt=1024 768 60 1 0 0 1 # or if you're not sure, nothing beats 640x480 #hdmi_cvt=640 460 60 1 0 0 1 # see http://www.raspberrypi.org/forum/viewtopic.php?f=29&t=24679 # uncomment to force a HDMI mode rather than DVI. This can make audio work in # DMT (computer monitor) modes ############################################################### ### THIS LINE IS WHAT ENABLES THE AUDIO OUT OF THE ADAPTER! ### hdmi_drive=2 ############################################################### # uncomment to increase signal to HDMI, if you have interference, blanking, or # no display #config_hdmi_boost=4 # uncomment for composite PAL #sdtv_mode=2 #uncomment to overclock the arm. 700 MHz is the default. #arm_freq=800 # for more options see http://elinux.org/RPi_config.txt
[Taken from http://www.adafruit.com/products/1151#Technical_Details]
Monday, March 17, 2014
TVheadend playlist
The playlist with the TV channels available from TVheadend is http://tv_headend_ip:9981/playlist/channels .
Source: http://astrolinux22.blogspot.com.es/2013/06/auto-generate-vlcsmplayer-tv-playlists.html
______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________
VLC streaming - link soup
Streaming examples and how to use the telnet interface
https://www.videolan.org/doc/streaming-howto/en/ch05.html
How to use :sout-keep to keep the playlist streaming
https://wiki.videolan.org/Documentation:Streaming_HowTo_New/
“The combination of :sout-keep and dst=gather:std mean that the stream is kept open and subsequent items are played through the same stream.”
How to stream content using the GUI
https://wiki.videolan.org/Documentation:Streaming_HowTo/Easy_Streaming_Newer_Versions/
Sunday, March 16, 2014
Split flac by cue file in Linux
Just two steps:
Source: http://bytebin.wordpress.com/2009/11/20/split-flac-by-cue-file-in-linux/
#Split
shnsplit -f sample.cue -o flac -t “%n. %t” sample.flac
#Transfer tags
cuetag sample.cue *.*.flac
Source: http://bytebin.wordpress.com/2009/11/20/split-flac-by-cue-file-in-linux/
Subscribe to:
Posts (Atom)