Labels

Android (1) Apache (1) bash (2) boost (2) C (37) C++ (5) cheatsheet (2) CLion (6) css (3) Debian (34) DL (17) dns (1) Docker (3) Dreamweaver (2) Eclipse (3) fail2ban (5) git (6) GitHub (5) Hacking (4) html (8) http (1) iOS (1) iPad (1) IRC (1) Java (33) javascript (3) Linux (184) Mac (21) Machine Learning (1) mySQL (53) Netbeans (6) Networking (1) Nexus (1) OpenVMS (6) Oracle (5) Pandas (3) php (17) Postgresql (8) Python (9) raid (1) RedHat (15) Samba (3) Slackware (52) SQL (14) ssh (1) svn (1) tar (1) ThinkPad (1) Virtualbox (4) Visual Basic (2) Visual Studio (1) Windows (8) wire (1)

Tuesday, 18 August 2020

Gascut stamping instructions

How to populate Gas Cut stamping if this has not been completed automatically.

Sunday, 16 August 2020

Linux Display Managers


Debian/Ubuntu

/etc/X11/default-display-manager

RedHat/CentOS/Fedora

/etc/sysconfig/desktop

OpenSuSe

/etc/sysconfig/displaymanager


OR on systemd systems, do;


systemctl status display-manager


To switch Display Managers (Debian)

sudo dpkg-reconfigure <displayManagerName>

Actually with the above, we can use any installed DisplayManager and then from the prompt, simply choose the one we wish to switch to.

To restart the Display Manager (Debian), do;

sudo service <displayManager> restart

Example: sudo service gdm restart



See also here 

and here for the good old RedHat logo, which is a must for any Applications Menu logo.

Saturday, 15 August 2020

Linux - UEFI or Legacy boot.

To find out whether we are booted in UEFI or Legacy mode, so;

[ -d /sys/firmware/efi ] && echo UEFI || echo Legacy

Basically, if the refi file exists, we are in UEFI mode.

I'm not sure if the /sys folder is even there on < 2.6 kernels, it doesn't appear on my Slackware 8.1 (specifically for the SCS machine).

Thursday, 13 August 2020

Some apt-get stuff



To search for packages, do;


apt-cache search package

To update package list, do;


apt-get update

 

See also here

 

Wednesday, 12 August 2020

Kill a running query in mysql

If we are finding that we are struggling to connect to a MySQL database, it can be a result of a long running query and this can usually be terminated as follows;

Firstly, login to the MySQL database and run;

show processlist;

We can then kill the process bu the ID as follows;

kill id;

This can be verified bu again running show processlist; to ensure that the query has indeed been stopped.


Saturday, 25 July 2020

Switch between text and graphical environments in Debian or RHEL

To switch between booting to a graphical environment and a console


Firstly run

systemctl get-default

which will show current setting, either

graphical.target

or

multi-user.target


To change, use 

systemctl set-default [graphical.target or multi-user.target]

To effect the change without rebooting, do

systemctl start [graphical.target or multi-user.target]


Of course in Slackware, we would simply edit Default Runlevel in /etc/inittab