Reviving the blog

After almost 2 years of no posts today I'm reviving the blog 🎉

As part of the reviving process I've changed the blog to the Jekyll static website and blog platform and I've also changed the old Bootstrap theme to a new one, kasper.

The blog is hosted as a GitHub page and it's source can be found at: https://github.com/otzy007/oprod.net

Author's profile picture Andrei G

Migrating from Joomla to ruhoh

It's about time to migrate the site from the old Joomla 1.5 CMS to a new one. So I've choosed ruhoh instead of upgrading to a new Joomla version because ruhoh generates a static website that I can easily host it almost anywhere without the need of a database or some server side scripting. Right now it's hosted on GitHub.

Now oprod.net website is still under development, it still needs a new downloads page and some minor design things.

So... Welcome to the new website.

Author's profile picture Andrei G on blog

Slackware64 packages repository

I've created my own repository with some Slackware64 packages at: https://sourceforge.net/projects/slackware64pack/files

Right now there are only nightly builds for XBMC and KDevelop available, but in the future more will come ;)

Author's profile picture Andrei G

Playing with Rails: Slackware ChangeLogs on Twitter

While I was playing with Ruby on Rails and the Twitter Gem I've developed a small app to tweet any new changes in the Slackware's ChangeLog file.

Here's the link to the app: http://slackware-changelog.oprod.net

There you will find the accounts for different Slackware versions.

Author's profile picture Andrei G

Falling snowflakes on your Tumblr page

I see that a previous article gets lots of hits from people who want to put the falling snowflakes script on their Tumblr pages.

In order to put this script you need to go to your page and click "Customize". Then you will need need to click "Edit HTML", scroll down to the end of the code and before </body> paste this code:

<script type="text/javascript" src="http://ec2.oprod.net/snow/snow.js"></script>

Don't forget to save ;)

The script can be used also on Wordpress, Blogger or other CMS.

If you want to download the script or just to share your appreciation for it go to peters1.dk

Author's profile picture Andrei G

JRemoteShell: a simple shell server wrote in Java

Here's a small shell server written in Java by me.

It has basic features such as: ls, cd, head, mv, cp and also: get and put, to get/put files on the server.

Please note that this application is not safe to use because it doesn't use encryption or authentication.

To connect to the server you can use Putty with a raw connection or netcat:

nc host 8100

To use "get" or "put" for file transfer you must first type put or get followed by the name of the file and then connect to port 8101 using nc.

For get: nc host 8101 > file

For put: nc host 8101 < get

Download JAR file: https://github.com/downloads/otzy007/JRemoteShell/JRemoteShell.jar.zip

Github repository: https://github.com/otzy007/JRemoteShell

Source snapshot: https://github.com/downloads/otzy007/JRemoteShell/otzy007-JRemoteShell-d66e2b9.zip

Author's profile picture Andrei G

Simple Java template for KDevelop

To enable the template move the archive to: /usr/share/apps/kdevappwizard/templates/simple_java.tar.bz2 or `~/.kde4/share/apps/kdevappwizard/templates/simple_java.tar.bz2

Download: https://opendesktop.org/content/download.php?content=145846&id=1&tan=74368116

Author's profile picture Andrei G

Compress RAM with zRam in Slackware

Update: you can find the tarball for this script at: http://github.com/downloads/otzy007/enable-zRam-in-Slackware/enable-zram-noarch.tgz

Referring to this article it seems that using a swap disk is slower than compressing the data in the memory. Enabling this under Slackware Linux it's pretty easy. Create the file /etc/rc.d/rc.zram and put this script into it:

#!/bin/bash
#
# /etc/rc.d/rc.zram
# Script to start zRam (Virtual Swap Compressed in RAM)
#
# Size of swap space in MB
# default 1GB

SIZE=1024

start() {
  modprobe zram
  echo $SIZE*1024*1024 | bc > /sys/block/zram0/disksize
  mkswap /dev/zram0
  swapon /dev/zram0
}

stop() {
  swapoff /dev/zram0
}

case "$1" in
  start)
    start
  ;;

  stop)
    stop
  ;;

  restart)
    echo 1 > /sys/block/zram0/reset
  ;;

  *)
  echo "Usage: $0 (start|stop|restart)"
esac

Remember to make it executable: chmod +x /etc/rc.d/rc.zram

Also copy this lines to /etc/rc.d/rc.local or /etc/rc.d/rc.M

# Start zram swap space
if [ -x /etc/rc.d/rc.zram ]
then
        /etc/rc.d/rc.zram start
fi
Author's profile picture Andrei G

Turning ON/OFF wireless on ASUS K52j

Here's a quick fix to enable/disable wireless using Fn+F2 on Slackware Linux on ASUS K52j and also the LED to indicate the status of the wireless. First you need to create this file: /etc/acpi/events/etc/acpi/events/asus-wireless-switch This file will contain the hotkey and the path to the script which is setting the wireless ON/OFF. The /etc/acpi/events/etc/acpi/events/asus-wireless-switch content will be:

#Enable the Fn-F2 button to turn on/off wireless
#/etc/acpi/events/default
event=hotkey ATKD 0000005d
action=/etc/acpi/asus-wireless-switch.sh

Then create another one: /etc/acpi/asus-wireless-switch.sh

With this script in it:

#/etc/acpi/asus-wireless-switch.sh
#based on http://ubuntuforums.org/archive/index.php/t-1460790.html
#!/bin/sh
WLANSTATUS=`cat /sys/class/ieee80211/phy0/rfkill*/state`

test -z $WLANSTATUS && exit 1

if [ $WLANSTATUS = 0 ]; then
        echo 0 > /sys/devices/platform/asus_laptop/wlan
        echo 1 > /sys/class/ieee80211/phy0/rfkill*/state
elif [ $WLANSTATUS = 1 ]; then
        echo 1 > /sys/devices/platform/asus_laptop/wlan
        echo 0 > /sys/class/ieee80211/phy0/rfkill*/state
fi
Author's profile picture Andrei G

Simple KDevelop C CMake and Makefile templates

Head over to the new KDevelop templates section for two KDevelop C templates. One is using a Makefile to compile and the other CMake. To use them just copy the archives to /usr/share/apps/kdevappwizard/templates/ or~/.kde4/share/apps/kdevappwizard/templates`

CMake template: https://sourceforge.net/projects/otzy-007.u/files/cmake_plainc.tar.bz2/download

Makefile template: http://opendesktop.org/content/show.php/Simple+C+Makefile+Template?content=138514

Author's profile picture Andrei G

KDE downloads section and more ;)

Now there's a KDE section on oprod.net. The first things I've add are two C templates for KDevelop: one is a CMake compiled project and the another is a

Author's profile picture Andrei G

My SlackBuilds

Right now I don't have any new projects, I'm just contributing to slackbuilds.org with SlackBuild scripts. You can see my contributions at: http://slackbuilds.org/gitweb/?p=slackbuilds.git&a=search&h=HEAD&st=author&s=otzy_007

Author's profile picture Andrei G

viewtyconv (the ffmpeg way)

Here's the new viewtyconv script. It can be used to convert movies into DivX format for LG KU990 Viewty or similar phones from a Bash Shell. Now it's using [[ffmpeg]], no longer [[mencoder]]. To use this script you'll need to have installed ffmpeg and also lame. Ffmpeg must be configured with --enable-libmp3lame, otherwise the script will not work.

#!/bin/bash
#
#by otzy_007 http://oprod.net
#
ffmpeg -i $1 -vcodec mpeg4 -s 400x240 -acodec libmp3lame -ab 128k -vtag DIVX $2

You can also download the scripts from here: http://oprod.net/index.php/downloads/category/3-viewtyconv

Author's profile picture Andrei G

public g.ho.st service is closing

After moving from g.ho.st to ghost.cc the free g.ho.st Virtual Computer is closing on March 15. Here's the announcement: http://ghost.cc/home/SignUp.jsp Now I'm downloading all my files but where I will find another g.ho.st like service to put my files on using ftp an also to get lot of space for them?

Author's profile picture Andrei G

hplip 3.9.12 on Slackware 13.0

I've got a new HP printer, HP F2480, which it wasn't  supported by the older hplip 3.9.4b version avaible for Slackware 13.0

So I've build the latest 3.9.12 version modifying the SlackBuild avaible here: ftp://ftp.slackware.com/pub/slackware/slackware_source/ap/hplip/ . For version 3.9.12  that patch is no longer needed so I've removed it.

To build the new version you'll need to download the hplip source avaible here: http://prdownloads.sourceforge.net/hplip/hplip-3.9.12.tar.gz and also the modified SlackBuild avaible here: http://oprod.net/slackware/hplip/slackbuild/  

Author's profile picture Andrei G