Fixing TouchPad in linux

Fixing TouchPad in linux

May 07

I recently switched to Crunchbang (#!) linux and fortunately my Touchpad on my EEEPC 900ha wasn’t exactly working the way i wanted it. So this gave me a chance to learn how to fix the issue.

It wasn’t using it two finger tap for right click. Luckily “d2ogch3n” on CrunchBang forum was able to give me the fix to my issue. So like everything i learn i wanted to share with my viewers.

adding these lines to /usr/share/X11/xorg.conf.d/50-synaptics.conf underneath MatchIsTouchpad “on”

Option "TapButton1" "1"
Option "TapButton2" "2"
Option "TapButton3" "3"

Then Logout/reboot and right click should work.

Now if that did work, but you may need to play with the TapButton2 and TapButton3. For me i needed to switch it like this:
Option "TapButton2" "3"
Option "TapButton3" "2"

Just play with it some until it gets to working the way your TouchPad
is set.
Any questions or if it doesn’t work for you, then please comment below!
Thanks

Django “Python Manage.py runserver” Error Fix!

Django “Python Manage.py runserver” Error Fix!

Apr 23

django 3.1 final was just released. So upgrading to the next version is always fun to test out new features.

After installing django 3.1 when you run:
python manage.py runserver

You might see this error:
Traceback (most recent call last):

File "manage.py", line 11, in
execute_manager(settings)
File "/usr/local/lib/python2.6/dist-packages/django/core/management/__init__.py", line 438, in execute_manager
utility.execute()
File "/usr/local/lib/python2.6/dist-packages/django/core/management/__init__.py", line 379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/lib/python 2.6/dist-packages/django/core/management/__init__.py", line 261, in fetch_command
klass = load_command_class(app_name, subcommand)
File "/usr/local/lib/python2.6/dist-packages/django/core/management/__init__.py", line 67, in load_command_class
module = import_module('%s.management.commands.%s' % (app_name, name))
File "/usr/local/lib/python2.6/dist-packages/django/utils/importlib.py", line 35, in import_module
__import__(name)
File "/usr/local/lib/python2.6/dist-packages/django/core/management/commands /runserver.py", line 8, in
from django.core.handlers.wsgi import WSGIHandler
File "/usr/local/lib/python2.6/dist-packages/django/core/handlers/wsgi.py", line 11, in
from django.core import signals
File "/usr/local/lib/python2.6/dist-packages/django/core/signals.py", line 1, in
from django.dispatch import Signal
File "/usr/local/lib/python2.6/dist-packages/django/dispatch/__init__.py", line 9, in
from django.dispatch.dispatcher import Signal, receiver
ImportError: cannot import name receiver

This is because you have installed more then one version of django.
To fix this Delete django (/usr/local/lib/python2.6/dist-packages/django) Just delete the whole folder. Now reinstall django again and your working!

Any questions please comment below!

How to: Compiling C in Linux

How to: Compiling C in Linux

Mar 15

Learning the programming language C can be difficult, compiling it shouldn’t.
In linux we use GCC command in terminal for compiling.
GCC is the GNU project c and c++ compiler

For simple programs like this hello world:
#include

main()
{
printf("Hello World");

}
Save this as Helloworld.c
the “.c” is the file extension for the C Language

Now to compile this in the terminal, directed to the same folder as the file, type:
gcc -o Run Helloworld.c
gcc is the compiler
-o Run is gearing the output name
Helloworld.c is our file name.

Now in the terminal type:
./Run
To run your Hello world example!
Easy right?!

Any questions or comments please post below
-John Riselvato

Howto: Remove a Folder/Directory in Terminal

Howto: Remove a Folder/Directory in Terminal

Mar 09

First starting off with a terminal, it might seem a little tricky to navigate your system without a GUI. Luckily with a little practice its easy to do.
Today we will cover the process needed to remove an entire directory/folder from the terminal.
As most of you know:
rm
is used to remove a file. Now if you run that same thing for a folder it wont allow you to do such.
Luckily you were rather close to removing that folder, all that was needed was a -R. For example we have a folder called ‘Trash’
we do:
rm -R Trash
to get rid of that folder and all of its files inside.
Simple enough. More questions on rm command run ‘man rm‘ in your terminal!
Good luck on more terminal navigation!

Linux Malicious Commands to Know!

Linux Malicious Commands to Know!

Feb 21

These commands will erase your hard drive:


sudo mkfs
sudo mkfs.ext3
sudo mkfs.bfs
sudo mkfs.cramfs
sudo mkfs.ext2
sudo mkfs.minix
sudo mkfs.msdos
sudo mkfs.reiserfs
sudo mkfs.vfat

These will damage your operating system.


sudo rm -rf / (deletes all your files on your system)
sudo rm -rf * (deletes all your files on your system)
rm -rf * or rm -rf *.* (deletes all your files on your system)
rm -rf ~/ & (deletes all your files on your system)

 

luckily for the most part you don’t have to worry about people doing these command because of ‘sudo’ unless they know your password :/

well now you know, use this power for good!

AD Space

SEO Powered by Platinum SEO from Techblissonline