HOW TO ENABLE GUI ROOT LOGIN IN DEBIAN 11

AT YOUR OWN RISK

First open a terminal and type su then your root password that you created when installing your Debian 11.

Stay in root terminal and type “nano /etc/gdm3/daemon.conf”. This command opens the file “daemon.conf” in nano.

Under security type “AllowRoot=true”. So your security section in the file should look like this:[security]AllowRoot=true

Save the file and exit nano.

Stay in root terminal and type “nano /etc/pam.d/gdm-password”. This command opens the file “gdm-password” in nano.

Within this file you have comment out the line containing “auth required pam_succeed_if.so user != root quiet_success” so that it looks like this #auth required pam_succeed_if.so user != root quiet_successSave the file and exit.

Now you should be able to login as root in you GUI Debian 11.

credit https://economictheoryblog.com/2021/11/02/how-to-enable-gui-root-login-in-debian-11/

INTERNET BANDWIDTH RESTRICTION BY IP ADDRESS (Home Router level)

Use gargoyle router (alternative firmware to OEM  router firmware). More capable than stock OEM (well for me – Tplink routers 6+ years)

This requires installation of custom firmware, to your router, which voids your warranty and may brick (kill) your router if done wrong.

site : https://www.gargoyle-router.com/

downloads : https://www.gargoyle-router.com/download.php

find your compatible router model, from the download list.

two versions exist for example for TP_LINK ACHER C5 Version 1

  1. To upgrade straight from OEM – gargoyle_1.12.0-ar71xx-generic-archer-c5-v1-squashfs-factory.bin
  2. To upgrade once a new version is released – gargoyle_1.12.0-ar71xx-generic-archer-c5-v1-squashfs-sysupgrade.bin

download and install the firmware

instruction straight from the developers – https://www.gargoyle-router.com/wiki/doku.php?id=install_guide (MUST READ)

Once you have setup your router and can access internet, the fun begins.

Go to Firewall > Quotas 

 

 

 

 

 

 

 

Add New Quota

Every drop down has various options, example is the simplest restriction.

Applies to: IP address or range to be restricted. Single IP restricts each IP individually while range groups multiple IPs and restricts  as a group.

Max Upload / Download: maximum upload and download file size allowed at full bandwidth before restriction kicks in. User assigned.
Max Up + Down: combined maximum upload and download file size allowed at full bandwidth before restriction kicks in. User assigned.

Quota Resets: when the restrictions lift, before threshold is reached again.

Quota active: when restrictions apply. Drop down > more options.

When Exceeded: Throttle Bandwidth to slow the IP user to set values

1kBytes/s = 0.008mbps hence, Desired mbps / 0.008 = right kBytes/s

5mbps / 0.008 = 625kBytes

 

ADD

 

 

 

 

 

 

 

 

 

Save Changes

 

 

Before

 

 

 

 

After

 

 

Done

Windows IP renewal script

If Windows 10 keeps showing the no internet icon but you have internet on other devices i.e. tablet, phone.

you can use the CMD to release and renew your ip address using below commands

ipconfig /release
ipconfig /renew
ipconfig /registerdns

Or create a .bat script to auto mate the process.

open notepad.

paste below

echo off
cls
ipconfig /release
ipconfig /renew
ipconfig /registerdns
exit

save is as a *.bat file for example iprenewal.bat

you can now run the commands by double clicking on the *.bat file

a CMD wondow will appear run commands then disapper

Done.

[solved]: E: The value ‘testing’ is invalid for APT

[solved]: E: The value ‘testing’ is invalid for APT::Default-Release as such a release is not available in the sources

If you get the above error in Linux, then you are not alone.

I was following this post http://forums.debian.net/viewtopic.php?p=436909 to install Compiz on Debian 7 and ended up with the error “E: The value ‘testing’ is invalid for APT::Default-Release as such a release is not available in the sources”

At least this worked for me in Debian 7

  1. open nano in terminal as root
  2. navigated to /etc/apt/apt.conf
  3. commented the line APT::Default-Release “testing”; by adding // at the start of the line
  4. saved the file

and everything went back to normal.

Fix Inverted Controls for Batman Arkham Asylum (PC Version) with a gamepad.

If BatMan walks forward while you press down on the left analog stick and walks backward when you press up on the analog stick.

If you are used to the normal XBOX/XBOX360 controller layout, you may notice the X/Y and A/B control bindings are backwards as well.

This how this issue can be easily fixed.

1) Browse to the “\BmGame\Config\” directory where the game is installed. For example:”C:\Program Files (x86)\Eidos\Batman Arkham Asylum\BmGame\Config”

2) Right click on the “DefaultInput.ini” file and select Properties.

3) Verify that the “Read-only” option is not selected.

4) Next, right click the “DefaultInput.ini” file again and select “Open with…” then choose Notepad.

5) Locate the following entry within the file:
.Bindings=(Name=”XboxTypeS_LeftY”,Command=”Axis aBaseY Speed=1.0 DeadZone=0.3 | Axis aRawLHJoyUp Speed=1.0 DeadZone=0.0″ )

6) Within the entry find the 2 variables that say “Speed”, change both from ‘1.0’ to ‘-1.0’

7) It should now look like:.Bindings=(Name=”XboxTypeS_LeftY”,Command=”Axis aBaseY Speed=-1.0DeadZone=0.3 | Axis aRawLHJoyUp Speed=-1.0 DeadZone=0.0″ )

8) Thats it! Simply save the file then test out the game.

Follow these next steps ONLY if you would like to swap the X/Y and A/B controller buttons within the game.

9) Locate the following entries:
.Bindings=(Name=”XboxTypeS_A”,Command=”DebugCamSingleFrameStep | Run | ContextSensitive |CapeGlide | AcceptConversation | Evade | DebugMenuSelectA | CancelBatarangCamera”)

.Bindings=(Name=”XboxTypeS_B”,Command=”HangFromVantagePoint | BlockBreaker | DebugCamMoreSpeed | OnRelease DebugCamNormalSpeed | ExitAgilityMode | SkipCutscene | CancelGadget | DebugMenuSelectB | CancelBatarangCamera”)

.Bindings=(Name=”XboxTypeS_X”,Command=”QuickStrike | AttackSilentFinish | DebugMenuSelectX | CancelBatarangCamera”)

.Bindings=(Name=”XboxTypeS_Y”,Command=”Grab | ActivateNoise | AttackFearFinish | DebugMenuSelectY | SpecialMoveCheat | CancelBatarangCamera”)

10) Simply change the letters (A, B, X, Y) in each entry to swap the default button controls.
a. Change “XboxTypeS_A” to “XboxTypeS_B”
b. Change “XboxTypeS_B” to “XboxTypeS_A”
c. Change “XboxTypeS_X” to “XboxTypeS_Y”
d. Change “XboxTypeS_Y” to “XboxTypeS_X”

11) Lastly, save the file and test it out!

Update/Restore iPod

Have done this on an ipod nano.

Plug your iPod and launch your iTunes if it doesn’t do so automatically.

click on the iPod on the left bar of your iTunes window.

on the right hand side of iTunes window choose the appropriate option under version.

follow the on screen direction and exercise patients this may take some time.

iTunes will download and update/restore your iPod.

If  iTune fails to do this you can get the firmware for your version at “http://www.felixbruns.de/iPod/firmware/”

then place it in the following location “C:\Users\<username>\AppData\Roaming\Apple Computer\iTunes\iPod Software Updates”

close and open iTunes

choose update/restore

iTunes will extract and do the rest.

Note: update retains your files and settings

restore formats your gadget (everything is lost), so backup before your restore.

Fix JDownloader’s Jumbled fonts in Linux

If you experience this in you Linux box

Then you need to change your java plugin from openjdk to the jre on sunjava’s website.

  1. Download the jre
  2. Install it
  3. Change the default java enviroment by typing “sudo update-alternatives –config java” into the terminal without the quotes. (before config java is two “-“ signs, wordpress is converting to one).
  4. choose the alternative by inputing the number infront of it and press enter.
  5. Relaunch your JDownloader and walla!!!

Thats it. Good luck in downloading the entire internet.

Howto: Office 2007 on Linux with Wine

Microsoft Office 2007 is the most recent Windows version of the Microsoft Office system, Microsoft’s productivity suite. Office 2007 requires Windows XP with Service Pack 2 or 3, Windows Server 2003 with Service Pack 1 or higher, or Windows Vista.

And Now!!!

Getting Wine Ready for Office 2007 Wine Configuration

The following guide is based on a clean configuration directory and running in a 1024×768 virtual desktop.

Wine version used: wine-1.1.31
Windows version emulated: Windows XP
Office version: Microsoft Office 2007

Download, Install & Configure wine

  1. Download and install the latest Wine available for your distro
  2. In terminal type  winecfg
  3. When the configuration dialog appears set the virtual desktop in the graphics tab and click OK.
  4. Download winetricks using wget: $ wget http://www.kegel.com/wine/winetricks
  5. In terminal type sh winetricks msxml3 dotnet20 gdiplus riched20 riched30 vcrun2005sp1 allfonts

Installing cross over games libraries

Installing Microsoft Office 2007 Office 2007 requires a libraries, which are not included in a default Wine-installation. These libraries could be obtained from CrossOver Games, which is a derived version of Wine made to support games under Linux.

OR

You can download them from here or rapidshare or megaupload.

If you download directly from the blog remember to rename the file to a .zip extension to be able to extract them, i.e. ‘wine plugins.zip‘

  1. Copy rpcrt4.dll.so and msxml3.dll to your system32 wine installation directory, by default its is /home/<username>/.wine/drive_c/windows/system32/
  2. Rename the native Wine-dll version of rpcrt4.dll to rpcrt4.dll.bak
  3. Rename CrossOver Games version into the original name rpcrt4.dll
  4. Rename the native Wine-dll version of msxml3.dll into msxml3.dll.bak
  5. Rename CrossOver Games version into the original name msxml3.dll
  6. After the renaming it is time to run winecfg again and set msxml3.dll and rpcrt4.dll to “native windows”  under the ‘Libraries‘ tab.
  7. Save and exit.

Installing office 2007

  1. Insert the Office 2007 cd media into drive
  2. Open it and run setup.exe
  3. Type the serial number and click install.

Your installation should work flawlessly if you follow the instructions properly.

If you need clarity fell free to ask a question in the comment section.

Oh! you can search youtube for How to Install Office 2007 in Linux it will return some good video how tos.

KBps vs kbps

Kilo Bytes Per Second vs. Kilo Bits Per Second

This post is intended to clarify the confusion that many have regarding KBps and kbps.

Measure of file size: KBps
File size i.e. how big the file or how much space a file occupies in the hard disk measured in terms of KiloBytes (KB upper case “K” and upper case “B”). In computing terms the upper case stands for 1024. 1024 is computed from 210. (2 power 10). 2 denote the number of characters in the binary system which is used to store data in the disc (ones and zeroes).
Other abbreviations like mega, giga and terra also use the base as 1024,

1KB (KiloByte) = 1024 Bytes (approximately 1000 Bytes)
1MB (MegaByte) = 1024 KB (approximately 1000 KiloBytes or 1 million Bytes)
1GB (GigaByte) = 1024 MB (approximately 1000 MegaBytes or 1 billion Bytes)
1TB (TerraByte) = 1024 GB (approximately 1000 GigaBytes or 1 trillion Bytes)

Measure of data transfer speeds: kbps
Data transfer speed over the networks (including the internet) is calculated in terms of bits per second: kilobits (kb small case k and small case b). The higher the kbps i.e. more the bits transferred per second, more the speed, faster the network/connection. Here k stands for 1000 (103 )

1 kbps (kilo bits per second) = 1000 bits per second
1 Mbps (mega bits per second) = 1000 kilo bits per second.
1 Gbps (giga bits per second) = 1,000 mega bits per second.

ISP bandwidth and download speeds
As mentioned earlier data transfer speeds are always calculated in terms of kilo bits per second (kbps) so an ISP connectivity of 512 kbps promises of transfer of at the max 512 thousand bits per second.

On the other hand, file size measure is always in Kilo Bytes and thus download speeds are always calculated based on how many Bytes per second are downloaded and hence Kilo Bytes per second (KBps).

NB: KBps and kbps are not interchangeable.

So an internet connectivity of say 512kbps can never achieve a download speed of 512 KBps. To calculate the maximum download speed of a connection, we need to use a simple formula as below.

Download KBPS speed = (Kbps value*1000) /8)) / 1024.

I.e. For a connectivity of 512 kbps

kbps value * 1000 = 512 * 1000 = 512000

512000 / 8 = 64000

64000 / 1024 = 62.5 KBps

Therefore theoretically an internet connection of 512kbps bandwidth can download at a speed of 62.5 KBps

or

just multiply the kbps value with 0.1220703125 to get the KBps value.

512 kbps * 0.1220703125 = 62.5 KBps. Simple!

Internet connectivity Download speed (approx)
256 kbps 31.3 KBps
384 kbps 46.9 KBps
512 kbps 62.5 KBps
768 kbps 93.8 KBps
1 mbps ~ 1000kbps 122.1 KBps

I have mentioned download speed as approximate because they will vary (always reduce) by 15 to 20% due to network signal loss, computer hardware overheads etc.

So for realistic, real world figures always reduce 15 to 20% from the computed KBPS download speedsNow I guess the confusion of kbps and KBps has cleared away.
Just remember when you talk in terms of network speed always use bites per second (bps) and when you talk in terms of storage and files its always Bytes per second (Bps).
And next time you want to complain when your 512 kbps connection does not give you download speeds of 512KBps don’t because now you know why.