Showing posts with label linux. Show all posts
Showing posts with label linux. Show all posts

Sunday, July 7, 2024

raspberry pico,linux on ipad

Raspberry Pi Pico 

Microcontroller Development Board

Pico Displays


Need to put that 1st gen iPad to use.  

Apple Cortex A7 processor

https://konradybcio.pl/linuxona7/

https://ipadlinux.org/



Thursday, May 9, 2024

building zed code editor on pop_os!

 building zed code editor on pop_os!

 

 https://github.com/zed-industries/zed/blob/main/docs/src/development/linux.md


Success!  Don't forget to install clang

Sunday, July 10, 2022

MediaWiki on Alpine Linux with Docker

# On Docker Alpine Linux

#  install pkgs

apk add curl lighttpd php php-dom php-json php-pgsql php-cgi php-mbstring php-xml php-ctype php-fileinfo php-iconv php-zlib php-gd php-session imagemagick diffutils

 #

#

 apk add postgresql postgresql-client openrc

 

#

mkdir -p /usr/share/webapps/

cd /usr/share/webapps/

 

# latest release of MediaWiki

# https://www.mediawiki.org/wiki/Download

 

curl https://releases.wikimedia.org/mediawiki/1.38/mediawiki-1.38.2.tar.gz >mw.tar.gz

 

tar zxvf mw.tar.gz

mv mediawiki-1.38.2 mediawiki

# rm mw.tar.gz

chown -R lighttpd /usr/share/webapps/

ln -s /usr/share/webapps/mediawiki/ /var/www/localhost/htdocs/mediawiki

 

# Edit lighttpd.conf and uncomment include "mod_fastcgi.conf"

nano /etc/lighttpd/lighttpd.conf

 

Starting

/etc/init.d/postgresql setup 


# hmmmm puzzling output

# touch
/run/openrc/softlevel
# more complaints
touch: /run/openrc/softlevel: No such file or directory

mkdir -p /run/openrc

touch /run/openrc/softlevel


/etc/init.d/postgresql setup 

# Success goto next step 







/etc/init.d/postgresql start && rc-update add postgresql default


#
* WARNING: postgresql is already starting




rc-update add postgresql default
#
# * service postgresql added to runlevel default
#

# run this now
/etc/init.d/lighttpd start && rc-update add lighttpd default








Config your wiki

Install the wiki accessing
http://WEBSERVER_IP_ADDRESS/mediawiki/mw-config/index.php
When you finish, press "Install MediaWiki" button, and that's all. :) You have MediaWiki working. To access go to http://WEBSERVER_IP_ADDRESS/mediawiki and enjoy!

 

docker inspect [containerID] | grep IPAddress

rc-status -a

 

# ps is different on Alpine!



 

 

 

 

 

https://wiki.alpinelinux.org/wiki/MediaWiki

Tuesday, February 22, 2022

Install awesome wm on Alpine Linux Docker

 Install awesome window manager

 

 

https://wiki.alpinelinux.org/wiki/Awesome(wm)_Setup

more /etc/apk/repositories apk add nano
apk add awesome feh lxterminal
apk add lua
apk add adwaita-gtk2-theme adwaita-icon-theme
apk add cairo-gobject pango


 

# save your image 

# from host shell

 docker commit 2240105620b7 baxter/awsm:version01

 

# startx not found

# login to <new user>

 

 

https://thispointer.com/docker-how-to-stop-remove-a-running-container-by-id-or-name/

 

 

 


 

 

 

 

 

Tuesday, September 21, 2021

Using Alpine Linux

 Using Alpine Linux

adduser -h /home/buster -s /bin/ash buster
passwd username
deluser username

# as root
apk update
apk upgrade
apk add pkgname
#
apk info nano
apk add nano
 
# show version
cat /etc/os-release
 
 
 
 
 
# doas = sudo
apk add doas
adduser <YourUsername> wheel
 
nano /etc/doas.d/doas.conf
# add this line:
permit persist :wheel
 
 
 
# apk add sed attr dialog bash bash-completion grep util-linux pciutils usbutils binutils findutils readline lsof less nano curl
 

 

# for Mac keyboard
https://superuser.com/questions/918823/how-to-copy-and-paste-selected-text-in-nano-on-a-mac
 
https://itsfoss.com/nano-editor-guide/
https://linuxhandbook.com/cut-copy-paste-nano/

 
https://www.cyberciti.biz/faq/how-to-add-and-delete-users-on-alpine-linux/


docker commit [ContainerID]

Monday, September 20, 2021

Docker Alpine Linux on m1 Apple Silicon

Docker on m1 Apple Silicon

  • Get the Docker.dmg for the m1 (580 MB)
  •  Install Docker
  •  launch Docker (CLI button next to run)

Alpine Linux on Docker

  • pull down the official Alpine Linux image for Docker
  • in your docker shell cli (see above) type:
docker pull alpine 

Alpine Linux 








Monday, June 7, 2010

SUSE SLES10 SP2, 15" Dell LCD, Proliant DL380 G3

This has been driving me nuts for years. I have one of these very loud beasts (Proliant DL380 G3) but it never worked right with the lcd monitor. Run of the mill 15" Dell LCD 1500FP from about 10 years ago. Searched everywhere, found some informative tidbits, including a configurator and also helpful specs from DELL.

The revelation was throughout the SLES10 SP2 installation process the video looked perfect only when the installation finished did the monitor freak out and say Out of Sync.

So I wasted 6+ hours reading /etc/X11/xorg.conf, messing with SaX2 and reading the log. Instead what worked for me was:
  1. Gather as much information as you from the specs page especially the Horizontal Sync in kHz, the Vertical Sync in Hz and the Pixel/Dot Clock Frequency MHz. For the 1500FP it was hsync 48.3 vsync 60 and px clock 65.
  2. Enter 48.3, 60, 65 into the configurator and it will generate the correct modeline
  3. Before you finish the SLES10 install, test the graphics hardware configuration. Don't let SaX confuse you change the monitor to VESA, 1028 x 768 @ 60 Hz and it shows up correctly.
Ahhh now to update some Smart Array firmware.


PS: Wait! Where do you use the modeline you ask? Well one of these days you'll accidentally click on SaX2 and if your settings get blown away you can try using your generate modeline!