Labels

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

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

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]

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 http://archive.debian.org/debian-archive/debian/ squeeze main non-free contribs

deb-src http://archive.debian.org/debian-archive/debian/ squeeze main non-free contribs

deb http://archive.debian.org/debian-archive/debian/ wheezy main non-free contribs

deb-src http://archive.debian.org/debian-archive/debian/ wheezy main non-free contribs

deb http://archive.debian.org/debian-archive/debian/ jessie main non-free contribs

deb-src http://archive.debian.org/debian-archive/debian/ jessie main non-free contribs

deb http://deb.debian.org/debian/ buster main non-free contribs

deb-src http://deb.debian.org/debian/ buster main non-free contribs


See also https://wiki.debian.org/SourcesList

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.