Skip to main content

Primary links

  • Home
  • AI
  • Kubernetes
  • Incus
  • Ansible
  • Terraform
  • OpenStack
  • Virtualization
  • Linux
  • SmartHome
  • HowTo

Misc

  • Linux
  • Hardware
  • Programming
  • Databases
  • Multimedia
  • Windows

Cloud

  • OpenStack
  • cloud-config
  • nextcloud

Virtualization

  • Virtualization
  • Incus
  • Docker
  • KVM
  • Kubernetes
  • LXC
  • LXD
  • QEMU
  • VMware
  • VirtualBox
  • multipass
  • podman
  • vagrant
  • XEN

Network

  • DNS
  • Firewall
  • Linux
  • OpenvSwitch
  • SSL
  • VLAN
  • VPN
  • iPXE
  • namespaces
  • nmcli
  • tcpdump

Storage

  • CEPH
  • DRBD
  • LVM
  • S3
  • ZFS
  • btrfs

Automation / CI/CD

  • Install
  • Ansible
  • GitLab
  • LLM
  • Preseed
  • Puppet
  • Terraform
  • Ubuntu autoinstall

Monitoring / Visualisation

  • Grafana
  • Icinga
  • Prometheus
  • Monitoring
  • ELK
  • mermaid

Install Wine

Install
https://gitlab.winehq.org/wine/wine/-/wikis/Debian-Ubuntu

sudo mkdir -pm755 /etc/apt/keyrings
sudo wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/plucky/winehq-plucky.sources
sudo dpkg --add-architecture i386
wget -O - https://dl.winehq.org/wine-builds/winehq.key | sudo gpg --dearmor -o /etc/apt/keyrings/winehq-archive.key -
sudo apt update
sudo apt install --install-recommends winehq-staging

[embed_url: https://raw.githubusercontent.com/panticz/installit/master/install.wine.sh]

winetricks

sudo apt-get install -y winetricks
#sudo winetricks --self-update

# winetricks BASH completion
wget https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks.bash-completion -O- | sudo tee /etc/bash_completion.d/winetricks
source /etc/bash_completion.d/winetricks

Downgrade to Wine 1.2.x (64 bit)

sudo apt-get remove wine1.4
cd /tmp
wget http://ie.archive.ubuntu.com/ubuntu/pool/universe/w/wine1.2/wine1.2_1.2.3-0ubuntu1_amd64.deb
wget http://ie.archive.ubuntu.com/ubuntu/pool/universe/n/nss-mdns/lib32nss-mdns_0.10-3.1ubuntu1_amd64.deb
sudo dpkg -i wine1.2_1.2.3-0ubuntu1_amd64.deb lib32nss-mdns_0.10-3.1ubuntu1_amd64.deb
wine --version

OPTIONAL: fake ie6 installation

wget kegel.com/wine/winetricks -P /tmp; sh /tmp/winetricks fakeie6

Snap package
https://snapcraft.io/wine-platform-6-stable

Debug

wine --version

Compile wine (deprected)

Auto update Ubuntu PXE files

Update script
[embed_url: https://raw.githubusercontent.com/panticz/preseed/master/pxe/scripts/update.ubuntu.pxe.files.sh]

Create cronjob
[embed_url: https://raw.githubusercontent.com/panticz/preseed/master/pxe/scripts/update.ubuntu.pxe.files.cronjob]

Configure PXE
wget https://installit.googlecode.com/hg/preseed/preseed.precise.i386.conf -O /var/lib/tftpboot/pxelinux.cfg/preseed.precise.i386.conf
wget https://installit.googlecode.com/hg/preseed/preseed.precise.amd64.conf -O /var/lib/tftpboot/pxelinux.cfg/preseed.precise.amd64.conf
wget https://installit.googlecode.com/hg/preseed/preseed.quantal.i386.conf -O /var/lib/tftpboot/pxelinux.cfg/preseed.quantal.i386.conf
wget https://installit.googlecode.com/hg/preseed/preseed.quantal.amd64.conf -O /var/lib/tftpboot/pxelinux.cfg/preseed.quantal.amd64.conf

vi /var/lib/tftpboot/default
MENU SEPARATOR
MENU BEGIN
MENU TITLE + Preseed
    MENU INCLUDE pxelinux.cfg/preseed.oneiric.i386.conf
    MENU INCLUDE pxelinux.cfg/preseed.oneiric.amd64.conf
    MENU INCLUDE pxelinux.cfg/preseed.precise.i386.conf
    MENU INCLUDE pxelinux.cfg/preseed.precise.amd64.conf
    MENU INCLUDE pxelinux.cfg/preseed.quantal.i386.conf
    MENU INCLUDE pxelinux.cfg/preseed.quantal.amd64.conf

    MENU SEPARATOR
    LABEL Back
    MENU EXIT
MENU END

Magento: formal customer name

<?php
$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/formal/Customer.php.formal.diff";

echo "$URL";
echo "<div><pre>";
</pre></div>
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));

curl_close($c);

echo "";

?>

<?php
$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/formal/Hello.php.formal.diff";

echo "$URL";
echo "<div><pre>";
</pre></div>
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));

curl_close($c);

echo "";

?>

<?php
$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/formal/Order.php.diff";

echo "$URL";
echo "<div><pre>";
</pre></div>
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));

curl_close($c);

echo "";

?>

<?php
$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/formal/hello.phtml.formal.diff";

echo "$URL";
echo "<div><pre>";
</pre></div>
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));

curl_close($c);

echo "";

?>

<?php
$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/formal/order_new.html";

Install: Betavine Connetion Manager (UMTS / SMS manager)

<?php
$URL="http://dl.dropbox.com/u/4170695/scripts/install.bcm.sh";

echo "wget $URL -O - | bash -";
echo "<div><pre>";
</pre></div>
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));

curl_close($c);

echo "";

?>

Links
http://www.betavine.net/bvportal/resources/datacards/os/ubuntu
http://www.betavine.net/bvportal/community/linux
https://forge.betavine.net/

Magento: Use customer suffix as salutation

<?php
$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/salutation/Abstract.php.salutation.diff";

echo "$URL";
echo "<div><pre>";
</pre></div>
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));

curl_close($c);

echo "";

?>

<?php
$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/salutation/Customer.php.salutation.diff";

echo "$URL";
echo "<div><pre>";
</pre></div>
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));

curl_close($c);

echo "";

?>

<?php
$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/salutation/config.xml.salutation.diff";

echo "$URL";
echo "<div><pre>";
</pre></div>
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));

curl_close($c);

echo "";

?>

OPTIONAL: fix address block
<?php
$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/salutation/config.xml.address.diff";

echo "$URL";
echo "<div><pre>";
</pre></div>
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));

curl_close($c);

echo "";

?>

Magento: disable share wishlist

Disable Share Wishlist

mkdir -p ./app/design/frontend/default/default/template/wishlist/
cp ./app/design/frontend/base/default/template/wishlist/view.phtml ./app/design/frontend/default/default/template/wishlist/view.phtml
wget -nv http://dl.dropbox.com/u/4170695/magento/wishlist/view.phtml.diff -O /tmp/view.phtml.diff

patch -p2 ./app/design/frontend/default/default/template/wishlist/view.phtml <?php echo "<" ?> /tmp/view.phtml.diff
<?php
$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/wishlist/view.phtml.diff";

echo "$URL";
echo "<div><pre>";
</pre></div>
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));

curl_close($c);

echo "";

?>

Magento: Customize Recently Viewed Products block

Move block from right to bottom
<?php
$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/recently-viewed/recently-viewed.xml";

echo "$URL";
echo "<div><pre>";
</pre></div>
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));

curl_close($c);

echo "";

?>

Fix design
<?php
$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/recently-viewed/recently-viewed.css";

echo "$URL";
echo "<div><pre>";
</pre></div>
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));

curl_close($c);

echo "";

?>

Patch product_viewed.phtml

mkdir -p ./app/design/frontend/default/default/template/reports/
cp ./app/design/frontend/base/default/template/reports/product_viewed.phtml ./app/design/frontend/default/default/template/reports/product_viewed.phtml
wget -nv http://dl.dropbox.com/u/4170695/magento/recently-viewed/product_viewed.phtml.diff -O /tmp/product_viewed.phtml.diff

patch -p2 ./app/design/frontend/default/default/template/reports/product_viewed.phtml <?php echo "<" ?> /tmp/product_viewed.phtml.diff
<?php
$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/recently-viewed/product_viewed.phtml.diff";

echo "$URL";
echo "<div><pre>";
</pre></div>
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));

curl_close($c);

echo "";

?>

Change item count to 4
Go Admin > System > Configuration > Catatlog > Catalog
Recently Viewed/Compared Products
Default Recently Viewed Products count: 4

or run this SQL command:
UPDATE core_config_data SET value = '4' WHERE path = 'catalog/recently_products/viewed_count';

JavaScript / jQuery

jQuery
http://www.work-paper.de/jquery-cookie/
http://code-tricks.com/create-a-simple-html5-tabs-using-jquery/

Magento: customize footer

customize footer
<?php
$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/footer/footer.phtml.diff";

echo "$URL";
echo "<div><pre>";
</pre></div>
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));

curl_close($c);

echo "";

?>

remove footer links
<?php
$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/footer/local.xml";

echo "$URL";
echo "<div><pre>";
</pre></div>
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));

curl_close($c);

echo "";

?>

Links
http://www.matthias-zeis.com/archiv/footer-links-magento-anpassen

Magento: Search by Category

<?php
$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/catalogsearch/form.mini.phtml";

echo "$URL";
echo "<div><pre>";
</pre></div>
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));

curl_close($c);

echo "";

?>

<?php
$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/catalogsearch/catalogsearch.xml.diff";

echo "$URL";
echo "<div><pre>";
</pre></div>
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));

curl_close($c);

echo "";

?>

<?php
$URL="http://" . $_SERVER['SERVER_NAME'] . "/sites/default/files/magento/catalogsearch/Query.php.diff";

echo "$URL";
echo "<div><pre>";
</pre></div>
$c = curl_init();
curl_setopt($c, CURLOPT_URL, $URL);
echo htmlspecialchars(curl_exec($c));

curl_close($c);

echo "";

?>

Links:
http://stackoverflow.com/questions/4273898/how-to-sort-a-category-list-array-alphabetically-in-magento

Pagination

  • First page
  • Previous page
  • …
  • Page 40
  • Page 41
  • Page 42
  • Page 43
  • Page 44
  • Page 45
  • Page 46
  • Page 47
  • Page 48
  • …
  • Next page
  • Last page
Profiles GitHub StackOverflow LinkedIn Xing
Contact Imprint
© panticz 2026

Cookie-Einstellungen

Diese Website nutzt eingebettete Inhalte von Drittanbietern (z.B. YouTube, SoundCloud). Beim Laden dieser Inhalte werden Daten an die jeweiligen Anbieter übermittelt. Datenverarbeitungserklärung