- some comments in makefile
- multiple infos in computer tuto
This commit is contained in:
@@ -78,6 +78,13 @@ endif
|
|||||||
|
|
||||||
all: $(NAME)
|
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)
|
$(D_OBJS)/%.o: %.$(EXT) | $(D_OBJS)
|
||||||
@echo $(CYAN)"compilation (objects.o) :"$(RESET)
|
@echo $(CYAN)"compilation (objects.o) :"$(RESET)
|
||||||
$(CC) $(CFLAGS) -c $< -o $@
|
$(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
|
ADD FORMULA TO FIND 12
|
||||||
|
|
||||||
**appimage :**
|
**appimage :**
|
||||||
**chmod +x <name>.appimage** make it executable
|
- **chmod +x <name>.appimage** make it executable
|
||||||
(optional) **mv path/Nextcloud-xx.Appimage ~/.local/bin/nextcloud**
|
- create name for execution command :
|
||||||
**sudo vim /usr/share/applications/<name>.desktop** create a file.desktop with content :
|
- 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]
|
[Desktop Entry]
|
||||||
Exec=/absolute/path/to/file/<name><.ext>
|
Exec=<program name> (if symlink created, otherwise path to the appimage file)
|
||||||
Name=<name>
|
Name=<name>
|
||||||
Type=Application
|
Type=Application
|
||||||
**( cd /usr/share/applications && chmod 644 <name>.desktop )** maybe change permissions
|
**( cd /usr/share/applications && chmod 644 <name>.desktop )** maybe change permissions
|
||||||
|
|
||||||
**applications :**
|
**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
|
add /usr/share/applications/<name>.desktop as explained above for appimages
|
||||||
**maybe, example with firefox :**
|
**maybe, example with firefox :**
|
||||||
Download 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`
|
**to enable vi :** `export TERM=xterm`
|
||||||
**locked files on nextcloud :** https://help.nextcloud.com/t/file-is-locked-how-to-unlock/1883
|
**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
|
**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;)**
|
**(SHOW DATABASES;)**
|
||||||
**USE hugugtzx_next645;**
|
**USE hugugtzx_next645;**
|
||||||
**(SHOW TABLES;)**
|
**(SHOW TABLES;)**
|
||||||
@@ -249,7 +260,7 @@ find | sort | grep -ve "node_modules/" -e ".git/" | sed 's#[^/]*/#|__ #g;s#__ |#
|
|||||||
|
|
||||||
|
|
||||||
**list of automatic settings :**
|
**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 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 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 ?)
|
- 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) :
|
- create git project (having a local git project and beeing abble to push to a remote repo) :
|
||||||
- on remote :
|
- on remote :
|
||||||
- **mkdir my_project.git** ".git" is a convention for git "bare" repository
|
- **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)
|
- **git init --bare** : create a bare repository (it's a repo without any content, just the commits)
|
||||||
- **cd hooks** : navigate to the hook folder
|
- **cd hooks** : navigate to the hook folder
|
||||||
- **touch post-receive** : create a post-receive file
|
- **touch post-receive** : create a post-receive file
|
||||||
|
|||||||
Reference in New Issue
Block a user