└── README.md /README.md: -------------------------------------------------------------------------------- 1 | # SolveSessionProblems 2 | 3 | [![All Contributors](https://img.shields.io/badge/all_contributors-1-red.svg?style=flat-square)](#contributors-) 4 | 5 | 6 |

7 | 8 | Gatsby 9 | 10 |

11 |

12 | Solution to each problem 13 |

14 | 15 | ### About 16 | 17 | This repo for 1337 students where they can find solutions of every session problem 18 | 19 | 20 | 21 | # SolveSessionProblems 22 | 23 | 24 | 25 | 26 | 27 | **Problem List:** 28 | 29 | - [x] Problem 1 : Full disk 30 | - [x] Problem 2 : ctkahp quit unexpectedly 31 | - [x] Problem 3 : iscsi-target problem 32 | - [x] Problem 4 : install brew 33 | - [x] Problem 5 : No more .DS_Store 34 | - [x] Problem 6 : Norminete Time-out 35 | - [x] Problem 7 : Unavailable 36 | - [x] Problem 8 : Install valgrind 37 | - [x] Problem 9 : valgrind: Unknown/uninstalled VG_PLATFORM 'amd64-darwin' 38 | - [x] Problem 10: Losing all the configuration & the extension on VScode 39 | - [x] Problem 11: clone old repos vogsphere-v2 40 | 41 | 42 | ## Solutions : 43 | 44 | 45 | ### Problem 1 : Full disk 46 | 47 | easy, use this tool **[Cclean](https://github.com/su-omb/Cleaner_42)** developed by the student : Omar Bouykourne. 48 | 49 | ### Problem 2 : ctkahp quit unexpectedly 50 | 51 | You have to remake the symbolic links to goinfre directories and also clean the Chrome cache. 52 | 53 | ### Problem 3 : iscsi-target problem 54 | 55 | New service is deployed by 1337 Staff **[iscsi-tools](https://iscsi-tools.1337.ma)** , so you could by yourself fix iscsi-target problems, first you have to login in intra (using your mobile phone or your peer computer) and click on fix iscsi. (easy-peasy 😁) 56 | 57 | ### Problem 4 : install brew 58 | 59 | script 1: 60 | 61 | ```sh 62 | git clone --branch 2.0.6 https://github.com/Homebrew/brew.git $HOME/brew 63 | export PATH=$HOME/brew/bin:$PATH 64 | echo 'export PATH=$HOME/brew/bin:$PATH' >> $HOME/.zshrc 65 | source ~/.zshrc 66 | ``` 67 | 68 | script 2: 69 | 70 | ```sh 71 | 72 | #!/usr/sh 73 | rm -rfv $HOME/.brew && git clone --progress --verbose --depth=1 https://github.com/Homebrew/brew $HOME/.brew && echo 'export PATH=$HOME/.brew/bin:$PATH' >> $HOME/.zshrc && source $HOME/.zshrc && brew update -v 74 | ``` 75 | 76 | script 3: 77 | 78 | ```sh 79 | 80 | rm -rf $HOME/.brew && git clone --depth=1 https://github.com/Homebrew/brew $HOME/.brew && export PATH=$HOME/.brew/bin:$PATH && brew update && echo "export PATH=$HOME/.brew/bin:$PATH" >> ~/.zshrc 81 | ``` 82 | 83 | 84 | 85 | ### Problem 5 : No more .DS_Store 86 | 87 | script : 88 | ```sh 89 | find ~Desktop -name .DS_Store -depth -exec rm {} \; 90 | ``` 91 | **P.S :** Add it as an alias 92 | 93 | ### Problem 6 : Norminete Time-out 94 | 95 | 96 | 97 | Use this tool **[codam-norminette-plus](https://github.com/thijsdejong/codam-norminette-plus)** and you can also use this extension on vs code **[Codam Norminette](https://marketplace.visualstudio.com/items?itemName=thijsdejong.codam-norminette)** 98 | 99 | 100 | ### Problem 7 : Unavailable 101 | 102 | 103 | 104 | To solve this problem follow these steps : 105 | 106 | **1. open iTerm** 107 | 108 | 109 | **2. execute the following command until you find this result "kdestroy: krb5_cc_destroy: No credentials cache file found"** 110 | 111 | ```sh 112 | $ kdestroy 113 | ``` 114 | 115 | **3. execute and fill-in it with your infos** 116 | ```sh 117 | $ kinit 118 | ``` 119 | 120 | **4. Go to SETTINGS -> Security.** 121 | 122 | click here : [link](https://profile.intra.42.fr/securities) 123 | 124 | And click on : 125 | 126 | 127 | 128 | **5. Finally, log out from your session and re-login** 129 | 130 | 131 | ### Problem 8: Install valgrind 132 | 133 | 1. install brew first (check problem 4) 134 | 2. run this : 135 | 136 | ```sh 137 | $ brew install valgrind 138 | ``` 139 | ### Problem 9: valgrind: Unknown/uninstalled VG_PLATFORM 'amd64-darwin'  140 | 141 | 1. remove valgrind (if it exist) 142 | ```sh 143 | $ brew uninstall -f valgrind 144 | ``` 145 | 2. And run this : 146 | 147 | ```sh 148 | $ git clone https://github.com/Echelon9/valgrind.git 149 | $ cd valgrind 150 | $ git checkout feature/v3.14/macos-mojave-support-v2 151 | $ ./autogen.sh 152 | $ ./configure --prefix=/Users/"login"/valgrind 153 | $ make install 154 | ``` 155 | 3. And finally, add this to this file **~/.zshrc** 156 | ```sh 157 | export PATH="/Users/"login"/valgrind/bin:$PATH" 158 | ``` 159 | ### Problem 10: Lost all the configuration & the extension on VScode 160 | 161 | Use this extension on vs code (U should have a github account) **[Settings Sync](https://marketplace.visualstudio.com/items?itemName=Shan.code-settings-sync)** 162 | 163 | ### Problem 11: clone old repos vogsphere-v2 164 | 165 | Run this : 166 | ```sh 167 | $ ssh-keygen -t rsa 168 | $ cd ~/.ssh 169 | $ cat id_rsa.pub 170 | ``` 171 | Then copy the result to **Vogsphere v2 SSH Keys** [here](https://profile.intra.42.fr/gitlab_users/new) 172 | 173 | 174 | 175 | 176 | --------------------------------------------------------------------------------