Random Linux

Linux, video games and web hosting

perl -MMIME::Base64 -e 'print encode_base64("user");'

perl -MMIME::Base64 -e 'print encode_base64("password");'

August 18th, 2016

Posted In: General

Leave a Comment

We don’t usually write articles about rooting or jailbreaking phones and tablets but this particular model was hard to find any information on the system and what firmware it uses.

This method should work on most any tablet , phone or netbook using Wondermedias wm8850 processor. First what we’re going to do is identify the model of your tablet or netbook. To do this download  wonder media analyzer to your phone/tablet/netbook. Before running the analyzer make sure you have a SD card inserted and mounted. When you run the analyzer it will generate a file in the root of your SD card with all of the device configuration. What we are looking for is the model type this should be at the top of the report.

Model
wmt.model.no
PID10_8199

In this case the wm8850 netbook is model pid10_8199 with that information check to see if your model is supported (Most 8850 devices are at this point). Once you have confirmed your device is in the supported list we’rewgoing to download and run uberoid which will root your phone/tablet/netbook and install an updated firmware. Download 8850_Univeral_Uberoid and extract the Firmwareinstall directory and wmt_scriptcmd to the root of your SD card.

Now that we have the firmware we need to change a few configurations to make it update the right firmware for your device. Open the Firmwareinstall/config directory. Find the file that starts with “+” and rename it with out the “+” for example “+testfirmware.bla” to “testfirmware.bla”, afer you have changed that file locate the file with your model number and add “+” to it. In my case PID10_8199.fwc to +PID10_8199.fwc.  Open the file and make sure it has all of the appropriate entries in <cmd> that were in the model.txt file. Add any that aren’t present, sometimes you will need to add “<cmd>setenv wmt.gpo.wifi 6:1:6:0xD8110040:0xD8110080:0xD81100C0</cmd>” as it is missing in some firmwares. You may also want to edit settings_remove line to not include developer_options and tethering which will give you access to them.

Once you’ve made all the necessary changes reboot your tablet/phone/netbook, remember to keep the SD card in your system when you reboot, so it will load the firmware update. Once it has completed installing remove the SD card and it will reboot. If every thing was done correctly you should be rooted and firmware updated.

April 21st, 2014

Posted In: General

Tags:

Leave a Comment

Sometimes after installing XFCE/Xubuntu along side Ubuntu LightDM the configuration for your present and active sound devices will get overwritten or removed. The first thing you should do is go to “Application Menu -> Multimedia -> Pulse Volume Control” Click the “Configuration” tab and check what audio devices it is listing. If it doesn’t display any skip to the section titled “Update”.

 

Check:

Configuration

Configuration

Output Devices

Output Devices

 

If it shows your sound devices click the “Output Devices” tab and make sure the sound device which should be outputting sound is not muted and that it has “Speakers” or “Headphones” in the “port” dropdown box which ever the case may be. Your sound should be functional now

 

Update:

If the “Configuration” tab doesn’t show any of your audio devices run the following commands from a terminal window.

killall pulseaudio; rm -r ~/.config/pulse/* ; rm -r ~/.pulse*
If it says it couldn't remove the files in question it means pulse never created them when it was loaded. 

Now run the following commands from terminal, once they have completed reboot your computer, once you are back in XFCE open “Pulse Volume Control” and  follow the directions from the section titled Check.

sudo add-apt-repository ppa:ubuntu-audio-dev/ppa; sudo apt-get update;sudo apt-get dist-upgrade; sudo apt-get install pavucontrol linux-sound-base alsa-base alsa-utils lightdm ubuntu-desktop  linux-image-`uname -r` libasound2; sudo apt-get -y –reinstall install linux-sound-base alsa-base alsa-utils lightdm ubuntu-desktop  linux-image-`uname -r` libasound2; killall pulseaudio; rm -r ~/.pulse*; ubuntu-support-status; sudo usermod -aG `cat /etc/group | grep -e ‘^pulse:’ -e ‘^audio:’ -e ‘^pulse-access:’ -e ‘^pulse-rt:’ -e ‘^video:’ | awk -F: ‘{print $1}’ | tr ‘\n’ ‘,’ | sed ‘s:,$::g’` `whoami`

 

October 28th, 2013

Posted In: General, How To

Tags: , , , , , , , , , , , , , , ,

Leave a Comment

When running playonlinux if it suddently freezes or locks up  with the following text you will need to upgrade your installation of playonlinux. There is a bug in older versions due to GTK changes made to the system it freezes

 

[install_plugins] Message: Checking plugin: Capture…
[install_plugins] Message: Checking plugin: ScreeddentnCap…
[install_plugins] Message: Checking plugin: PlayOnLinux Vault…

 

To resolve this issue you will need to update playonlinux. Firstly backup your playonluinux configurations and all of your prefixes. Once you have done this remove the current installation. Go to http://www.playonlinux.com/en/download.html and download the package for your distribution.

October 27th, 2013

Posted In: General

Tags: , , , , , , ,

Leave a Comment

Splash screens are every were created to basically cover up the boot process. If your like me you prefer to see the initiation  process so you can watch for errors and  . To disable the boot you will need to make the following.changes to /etc/default/grub

Find the line GRUB_CMDLINE_LINUX_DEFAULT=”quiet splash” and change it to GRUB_CMDLINE_LINUX_DEFAULT=”text”
After making the change in GRUB_CMDLINE_LINUX_DEFAULT you will need to rebuild and apply the new changes by running sudo update-grub2.

Now when you boot you will get a grub boot menu   after selecting which installation or mode to use.  Now you should see the verbose boot process rather the splash screen.

October 27th, 2013

Posted In: General, How To

Tags: , , , ,

Leave a Comment

If you are new to Ubuntu or you recently upgraded your installation to 11.xx or higher you will notice that the system monitors you are familiar with are not compatible with new desktop. No worries though, there are a number of monitors available going by the name of “Indicators”, these tools will embed into your unity tool bar much the same way that your previous monitors had.

General System Monitor:

monitor You can install this indicator by using the following commands or by searching for “multiload” from the Ubuntu Software Center

sudo apt-get install indicator-multiload

or from the ppa repository:

sudo add-apt-repository ppa:indicator-multiload/stable-daily
sudo apt-get update
sudo apt-get install indicator-multiload

This indicator is a port of the original System Monitor GNOME Panel applet (gnome-system-monitor applet).
and provides monitoring for the following Network, memory and cpu usage.

August 16th, 2013

Posted In: General, How To

Tags: , , , , , , , , , ,

Leave a Comment

How do I find out CPU Information such as speed, processor, and cache on Linux operating systems?

You can get information about your CPU by using the following command in a terminal window.

cat /proc/cpuinfo

Sample output:processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 20
model           : 2
model name      : AMD E-300 APU with Radeon(tm) HD Graphics
stepping        : 0
microcode       : 0x500010d
cpu MHz         : 780.000
cache size      : 512 KB
physical id     : 0
siblings        : 2
core id         : 0
cpu cores       : 2
apicid          : 0
initial apicid  : 0
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 6
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc nonstop_tsc extd_apicid aperfmperf pni monitor ssse3 cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch ibs skinit wdt arat npt lbrv svm_lock nrip_save pausefilter
bogomips        : 2595.34
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate

August 16th, 2013

Posted In: General, How To

Tags: , , ,

Leave a Comment

Linux up until the past few years has been left out of the emulators market as far as availability luckily this has change and now there are ports of almost every major system emulator including some emulators that are written strictly for the linux operating system, the following site has a nearly complete list of all emulators that are available through the Ubuntu package manager and what repository they are in, The site is also slowly adding source files that can be compiled on any other linux distribution.

The list: http://retro-gaming-world.com/emulators-for-ubuntu/

April 23rd, 2013

Posted In: General, VIdeo Games

Tags: , , , , , , , , , , , ,

Leave a Comment

ow do I use bash for loop to repeat certain task under Linux / UNIX operating system? How do I set infinite loops using for statement? How do I use three-parameter for loop control expression?

A ‘for loop’ is a bash programming language statement which allows code to be repeatedly executed. A for loop is classified as an iteration statement i.e. it is the repetition of a process within a bash script.

For example, you can run UNIX command or task 5 times or read and process list of files using a for loop. A for loop can be used at a shell prompt or within a shell script itself.

for loop syntax

Numeric ranges for syntax is as follows:

for VARIABLE in 1 2 3 4 5 .. N
do
	command1
	command2
	commandN
done

OR

for VARIABLE in file1 file2 file3
do
	command1 on $VARIABLE
	command2
	commandN
done

OR

for OUTPUT in $(Linux-Or-Unix-Command-Here)
do
	command1 on $OUTPUT
	command2 on $OUTPUT
	commandN
done

Examples

This type of for loop is characterized by counting. The range is specified by a beginning (#1) and ending number (#5). The for loop executes a sequence of commands for each member in a list of items. A representative example in BASH is as follows to display welcome message 5 times with for loop:

#!/bin/bash
for i in 1 2 3 4 5
do
   echo "Welcome $i times"
done

Sometimes you may need to set a step value (allowing one to count by two’s or to count backwards for instance). Latest bash version 3.0+ has inbuilt support for setting up ranges:

#!/bin/bash
for i in {1..5}
do
   echo "Welcome $i times"
done

Bash v4.0+ has inbuilt support for setting up a step value using {START..END..INCREMENT} syntax:

#!/bin/bash
echo "Bash version ${BASH_VERSION}..."
for i in {0..10..2}
  do
     echo "Welcome $i times"
 done

Sample outputs:

Bash version 4.0.33(0)-release...
Welcome 0 times
Welcome 2 times
Welcome 4 times
Welcome 6 times
Welcome 8 times
Welcome 10 times

Three-expression bash for loops syntax

This type of for loop share a common heritage with the C programming language. It is characterized by a three-parameter loop control expression; consisting of an initializer (EXP1), a loop-test or condition (EXP2), and a counting expression (EXP3).

for (( EXP1; EXP2; EXP3 ))
do
	command1
	command2
	command3
done

A representative three-expression example in bash as follows:

#!/bin/bash
for (( c=1; c<=5; c++ ))
do
   echo "Welcome $c times"
done

Sample output:

Welcome 1 times
Welcome 2 times
Welcome 3 times
Welcome 4 times
Welcome 5 times

How do I use for as infinite loops?

Infinite for loop can be created with empty expressions, such as:

#!/bin/bash
for (( ; ; ))
do
   echo "infinite loops [ hit CTRL+C to stop]"
done

Conditional exit with break

You can do early exit with break statement inside the for loop. You can exit from within a FOR, WHILE or UNTIL loop using break. General break statement inside the for loop:

for I in 1 2 3 4 5
do
  statements1      #Executed for all values of ''I'', up to a disaster-condition if any.
  statements2
  if (disaster-condition)
  then
	break       	   #Abandon the loop.
  fi
  statements3          #While good and, no disaster-condition.
done

Following shell script will go though all files stored in /etc directory. The for loop will be abandon when /etc/resolv.conf file found.

#!/bin/bash
for file in /etc/*
do
	if [ "${file}" == "/etc/resolv.conf" ]
	then
		countNameservers=$(grep -c nameserver /etc/resolv.conf)
		echo "Total  ${countNameservers} nameservers defined in ${file}"
		break
	fi
done

Early continuation with continue statement

To resume the next iteration of the enclosing FOR, WHILE or UNTIL loop use continue statement.

for I in 1 2 3 4 5
do
  statements1      #Executed for all values of ''I'', up to a disaster-condition if any.
  statements2
  if (condition)
  then
	continue   #Go to next iteration of I in the loop and skip statements3
  fi
  statements3
done

This script make backup of all file names specified on command line. If .bak file exists, it will skip the cp command.

#!/bin/bash
FILES="[email protected]"
for f in $FILES
do
        # if .bak backup file exists, read next file
	if [ -f ${f}.bak ]
	then
		echo "Skiping $f file..."
		continue  # read next file and skip cp command
	fi
        # we are hear means no backup file exists, just use cp command to copy file
	/bin/cp $f $f.bak
done

March 27th, 2013

Posted In: General, How To

Tags: , , , ,

Leave a Comment

Next Page »