- some comments in makefile
- multiple infos in computer tuto
This commit is contained in:
@@ -46,16 +46,16 @@ VPATH = $(D_SRCS)
|
||||
LIBS =
|
||||
|
||||
F_INCLUDES = $(HEADERS:%=$(D_HEADERS)/%) \
|
||||
$(TEMPLATES:%=$(D_TEMPLATES)/%)
|
||||
$(TEMPLATES:%=$(D_TEMPLATES)/%)
|
||||
INCLUDES = -I$(D_HEADERS) \
|
||||
-I$(D_TEMPLATES)
|
||||
-I$(D_TEMPLATES)
|
||||
|
||||
D_SRCS = ./srcs
|
||||
SRCS = main.c
|
||||
|
||||
D_HEADERS = ./headers
|
||||
HEADERS = colors.h \
|
||||
tests.hpp
|
||||
tests.hpp
|
||||
|
||||
D_TEMPLATES = ./templates
|
||||
TEMPLATES = template.tpp
|
||||
@@ -78,6 +78,13 @@ endif
|
||||
|
||||
all: $(NAME)
|
||||
|
||||
# %.$(EXT) | $(D_OBJS) -> pipe is for order-only prerequisites :
|
||||
# - for each file "%.$(EXT)" :
|
||||
# - if it has been modified since last time
|
||||
# - execute rules on corresponding target file "$(D_OBJS)/%.o"
|
||||
# - and directory "$(D_OBJS)" is order-only prerequisite :
|
||||
# - it must exist before executing rule
|
||||
# - but last time modification is not checked
|
||||
$(D_OBJS)/%.o: %.$(EXT) | $(D_OBJS)
|
||||
@echo $(CYAN)"compilation (objects.o) :"$(RESET)
|
||||
$(CC) $(CFLAGS) -c $< -o $@
|
||||
|
||||
@@ -114,17 +114,28 @@ find | sort | grep -ve "node_modules/" -e ".git/" | sed 's#[^/]*/#|__ #g;s#__ |#
|
||||
ADD FORMULA TO FIND 12
|
||||
|
||||
**appimage :**
|
||||
**chmod +x <name>.appimage** make it executable
|
||||
(optional) **mv path/Nextcloud-xx.Appimage ~/.local/bin/nextcloud**
|
||||
**sudo vim /usr/share/applications/<name>.desktop** create a file.desktop with content :
|
||||
[Desktop Entry]
|
||||
Exec=/absolute/path/to/file/<name><.ext>
|
||||
Name=<name>
|
||||
Type=Application
|
||||
- **chmod +x <name>.appimage** make it executable
|
||||
- create name for execution command :
|
||||
- create an symlink in a bin location :
|
||||
- /usr/bin if application is installed by systeme app manager (not the case for appimages)
|
||||
- /usr/sbin if need sudo to execute
|
||||
- /usr/local/bin or /usr/local/sbin if installed manually by user
|
||||
- ~/.local/bin is accessible only for this user (PREFFERED LOCATION)
|
||||
- make sure "~/.local/bin" is in $PATH
|
||||
- **ln -s /absolut/path/to/program.appImage ~/.local/bin/<name>**
|
||||
.desktop file :
|
||||
- in : /usr/share/applications/<name>.desktop
|
||||
- or in : ~/.local/share/applications/<name>.desktop
|
||||
- **locate "*<name>*desktop"** : to locate if the .desktop file already exist
|
||||
- min content :
|
||||
[Desktop Entry]
|
||||
Exec=<program name> (if symlink created, otherwise path to the appimage file)
|
||||
Name=<name>
|
||||
Type=Application
|
||||
**( cd /usr/share/applications && chmod 644 <name>.desktop )** maybe change permissions
|
||||
|
||||
**applications :**
|
||||
**ln -s /path/to/executable /usr/bin**
|
||||
**ln -s /path/to/executable ~/.local/bin/**
|
||||
add /usr/share/applications/<name>.desktop as explained above for appimages
|
||||
**maybe, example with firefox :**
|
||||
Download Firefox
|
||||
@@ -187,7 +198,7 @@ find | sort | grep -ve "node_modules/" -e ".git/" | sed 's#[^/]*/#|__ #g;s#__ |#
|
||||
**to enable vi :** `export TERM=xterm`
|
||||
**locked files on nextcloud :** https://help.nextcloud.com/t/file-is-locked-how-to-unlock/1883
|
||||
**vi nextcloud.hugulumu.fr/nextcloud/config/config.php** : change maintenance mode to true
|
||||
**mysql -u hugugtzx -p**
|
||||
**mysql -u hugugtzx_next645 -p** : the db username and password are in the config.php file of previous step
|
||||
**(SHOW DATABASES;)**
|
||||
**USE hugugtzx_next645;**
|
||||
**(SHOW TABLES;)**
|
||||
@@ -249,7 +260,7 @@ find | sort | grep -ve "node_modules/" -e ".git/" | sed 's#[^/]*/#|__ #g;s#__ |#
|
||||
|
||||
|
||||
**list of automatic settings :**
|
||||
- install screen, omyzsh, keepassxc, curl, make, firefox, signal, gnome-tweaks, ffmpeg, yt-dlp
|
||||
- install screen, omyzsh, keepassxc, curl, make, firefox, signal, gnome-tweaks, ffmpeg, yt-dlp, element
|
||||
- install or configure to avoid screen blue light
|
||||
- install nextcloud client (apt ? or appimage ? appimage need fuse : https://github.com/AppImage/AppImageKit/wiki/FUSE), and launch at startup
|
||||
- install these settings (connection with bitbucket ? ssh ? https ?)
|
||||
@@ -333,7 +344,7 @@ find | sort | grep -ve "node_modules/" -e ".git/" | sed 's#[^/]*/#|__ #g;s#__ |#
|
||||
- create git project (having a local git project and beeing abble to push to a remote repo) :
|
||||
- on remote :
|
||||
- **mkdir my_project.git** ".git" is a convention for git "bare" repository
|
||||
- **cd my_project.gut**
|
||||
- **cd my_project.git**
|
||||
- **git init --bare** : create a bare repository (it's a repo without any content, just the commits)
|
||||
- **cd hooks** : navigate to the hook folder
|
||||
- **touch post-receive** : create a post-receive file
|
||||
|
||||
Reference in New Issue
Block a user