1
0

os.md 2.1 KB

OS

Tips related to exploitation systems

Install iso

Ubuntu or debian

Use startup disk creator under ubuntu.

Command line

Check what is you USB drive with lsblk

Unmount with sudo umount /dev/sdb1

Install iso with

sudo dd bs=4M if=dsl-4.4.10.iso of=/dev/sdb status=progress oflag=sync

Ubuntu server

Fix disabled ethernet

Get interface name (e.g.: enp2s0): ip addr

Edit the file /etc/netplan/00-installer-config.yaml and fix your interface name.

Ubuntu desktop

Tips to set Ubuntu desktop.

Change default terminal to Xfce terminal

Install xfce terminal with Ubuntu software.

Use the command : sudo update-alternatives --config x-terminal-emulator

Game save folder for Gog games

FTL and Into the Breach saves are in .local/share/ folder.

Add desktp apps

Set your desktop file in ~/.local/share/applications/.

Tutorial to create a desktop file.

Complete list of keys on freedesktop.org.

Grub

sudo update-grub

Install dynamic library

Tested with box2d.

Install includes

Header files (*.h) must rely in a include folder, like /usr/local/include/. You can group headers in folders, but you have to take folders into account for preprocessing :

On your file system :

include
|—— hello.h
\—— box2d
	|── b2_world.h
	\—— box2d.h

In C++ :

#include <hello.h>
#include <box2d/box2d.h>

Library

Compiled files (*.a or *.so, commonly generated through a buil system like make or cmake), must rely in a linked folder, like /usr/local/lib.

Linking

If your static lib is named libhello.a, you link with the compiler flag -lhello.

For instance, libbox2d.a is linked with the flag -lbox2d.

Windows and Linux

Time clash

Use same time as windows

timedatectl set-local-rtc 1 --adjust-system-clock

Revert

timedatectl set-local-rtc 0 --adjust-system-clock