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 (183) Mac (21) Machine Learning (1) mySQL (53) Netbeans (6) Networking (1) Nexus (1) OpenVMS (6) Oracle (4) 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)

Sunday, 19 February 2023

Set date as a string

The following format allows you to set the current date from a string;

sudo date -s '2023-01-14 11:22:00'

where the above date refers to 14th Jan 2023

Friday, 17 February 2023

Debian Archive

Debian archive for sources.list

http://archive.debian.org/debian-archive/debian/dists/ 

The sources.list file may look like (need to check the deb-src entries);

deb [trusted=yes] http://archive.debian.org/debian-archive/debian/ squeeze main non-free contrib

deb-src [trusted=yes] http://archive.debian.org/debian-archive/debian/ squeeze main non-free contrib

deb [trusted=yes] http://archive.debian.org/debian-archive/debian/ wheezy main non-free contrib

deb-src [trusted=yes] http://archive.debian.org/debian-archive/debian/ wheezy main non-free contrib

deb [trusted=yes] http://archive.debian.org/debian-archive/debian/ jessie main non-free contrib

deb-src [trusted=yes] http://archive.debian.org/debian-archive/debian/ jessie main non-free contrib

deb [trusted=yes] http://deb.debian.org/debian/ buster main non-free contrib

deb-src [trusted=yes] http://deb.debian.org/debian/ buster main non-free contrib


Also:

echo "Acquire::Check-Valid-Until "false";" >> /etc/apt/apt.conf.d/99no-check-valid-until
echo "Acquire::AllowInsecureRepositories "true";" >> /etc/apt/apt.conf.d/99no-check-valid-until
echo "APT::Get::AllowUnauthenticated "true";" >> /etc/apt/apt.conf.d/99no-check-valid-until

apt-key add /root/archive-key-6.0.asc (acquired from the keys.html link below *)

See also:

https://wiki.debian.org/SourcesList

https://ftp-master.debian.org/keys.html (* get key file from here and do apt-ket add key-file)





Upgrading Debian 6 kernel

Attempts to do this through apt-get involved upgrading too many packages and in my opinion, was too risky. Therefor, an upgrade from Squeeze to Wheezy was done this way and from there, a kernel [5.15.94] was built on another box, in my case a Debian 11 VM running kernel [5.10.0-21]

Wednesday, 15 February 2023

Boot from GRUB commandline

There may be occasions where we need to boot manually from the GRUB menu and perhaps realize that you should just have installed LILO in the first place :)

Monday, 13 February 2023

Unable to boot system restored with fsarchiver

 TBA:

GRUB - Embedding is not possible


The following is the output of fdisk -l on both the machine to which the original backups were taken and also a machine to which a successful restoration has been carried out. In the case of the latter, both a physical and a VM.

FEC-A

FEC-B

The df output is the same for both physical machines, as in the device is /dev/cciss/c0d0p* which the VM follows the /dev/sda* format, which perhaps makes sense since the physical machines are the same and both have the same raid controller.



Tuesday, 24 January 2023

Multi cursor in VS code

 To put the cursor at the end of all lines in VS code, firstly, select all text and then do SHIFT+ALT+i

Additionally, to select multiple cursors anywhere in a vertical line, firstly, click the start point and then using SHIFT+CTRL click the second point

Thursday, 12 January 2023

Slackware 15 install on Thinkpad p53

The following is my account of installing Slackware 15 onto a Lenovo ThinkPad P53


Wednesday, 11 January 2023

Add Java to system PATH variable

 This method seems to work best for me;

There is a script /etc/profile that sets up environment variables and that also includes any scripts in /etc/profile.d so I chose to create a file /etc/profile.d/java.sh with 755 permissions with the following contents;

export JAVA_HOME="/opt/jdk1.8.0_341"
export PATH=$JAVA_HOME/bin:$PATH


Saturday, 7 January 2023

Find out which DNS server you're using

 On, we can check /etc/resolv.conf but how do we know which IP is actually being used?