Welcome to 42 Trolls! Hereโs the ultimate guide to prank your friends at 42 School.
Weโve organized the pranks into four categories:
- ๐ข Slightly Annoying : Simple pranks that are easy to undo (like modifying .zshrc)
- ๐ก Moderately Annoying : A step up! These pranks are a bit more troublesome but can be undone with the right know-how ๐
- ๐ Very Annoying : Ready for more? These pranks involve taking control of hardware featuresโฆ like sound, graphics, and storage!
- ๐ด Ultra Annoying : The final countdownโฆ Ultra annoying pranks, like session scripts or resets.
Simple pranks that are easy to undo (like modifying .zshrc)
Lock the screen of the person youโre pranking.
ft_lockAlways wanted to be an actor in The Matrix? Create a Matrix effect, but without the budget to hire developers.
echo 'cat /dev/urandom' >> ~/.zshrc๐งน How to remove ?
Remove the line 'alias cat /dev/urandom' from your ~/.zshrc file to stop the Matrix effect. Or use this command:
sed -i '/cat /dev/urandom/d' ~/.zshrcReplace the cat command with rev, which prints the file in reverse.
echo 'alias cat="rev"' >> ~/.zshrc๐งน How to remove ?
Remove the line 'alias cat="rev"' from your ~/.zshrc file to restore the original cat command. Or use this command:
sed -i '/alias cat="rev"/d' ~/.zshrcReplace the man command with a message saying No manual entry for {command}.
echo 'man() { echo "No manual entry for $1"; }' >> ~/.zshrc๐งน How to remove ?
Remove the line 'alias man="echo No manual entry for {command}"' from your ~/.zshrc file to restore the original man command. Or use this command:
sed -i '/alias man="echo No manual entry for {command}"/d' ~/.zshrcReplace the font in the title bar of some apps with a symbol font, but with a really big size...
gsettings set org.gnome.desktop.wm.preferences titlebar-uses-system-font false && gsettings set org.gnome.desktop.wm.preferences titlebar-font 'wasy10 256'๐งน How to remove ?
Restore the title bar font to the system default with this command:
gsettings set org.gnome.desktop.wm.preferences titlebar-uses-system-font trueThis command make the cursor at size of 256px.
Note
Some cursor are not avaible at a size of 256px. In this case, Gnome will take the larger.
gsettings set org.gnome.desktop.interface cursor-size 256๐งน How to remove ?
Use this command :
gsettings set org.gnome.desktop.interface cursor-size 24Update the buttons of the title bar with 3 close buttons
gsettings set org.gnome.desktop.wm.preferences button-layout ':close,close,close'๐งน How to remove ?
Use this command :
gsettings set org.gnome.desktop.wm.preferences button-layout ':minimize,maximize,close'Remove all the buttons of the title bar
gsettings set org.gnome.desktop.wm.preferences button-layout ':'๐งน How to remove ?
Use this command :
gsettings set org.gnome.desktop.wm.preferences button-layout ':minimize,maximize,close'A step up! These pranks are a bit more troublesome but can be undone with the right know-how ๐
Tired of an ad-free terminal? Now you can add ads to pop up when you type commands in your terminal.
curl https://raw.githubusercontent.com/godetremy/42-trolls/refs/heads/main/adsh/install.sh | bash๐งน How to remove ?
Remove the line at end of the .zshrc file, then delete the folder .adsh in your home, or use this command :
curl https://raw.githubusercontent.com/godetremy/42-trolls/refs/heads/main/adsh/uninstall.sh | bash๐ช Want to contribute ?
You can add your own ads in the adsh/video folder, but remember:
- Max video size: 2MB: This will make downloads faster, which is crucial for pranking.
- No 4K videos: High resolution can cause lag in mpv, plus, itโs unnecessary โ terminal windows wonโt display 1920x1080 resolution anyway.
Once youโve added your video, donโt forget to update the video variable in adsh/install.sh and adsh/adsh.sh
A feeling like Isac Newton, when you type letter are falling from the top of your screen.
curl https://raw.githubusercontent.com/godetremy/42-trolls/refs/heads/main/fallingkey/run.sh | bash๐งน How to remove ?
The easy way is to logout, but if you don't want to do this you can find ft_keyboard in the sytem monitor.
pkill -f ft_keyboardReady for more? These pranks involve taking control of hardware featuresโฆ like sound, graphics, and storage!
Set the volume to 75%, and play Never Gonna Give You Up by Rick Astley in VLC fullscreen.
pactl set-sink-mute @DEFAULT_SINK@ false && pactl set-sink-volume @DEFAULT_SINK@ 75% && cvlc https://dn720407.ca.archive.org/0/items/rick-roll/Rick%20Roll.ia.mp4 -f --no-video-title-show --mouse-hide-timeout 0Replace the lock button. Now when you lock, Mario say "Non".
curl https://raw.githubusercontent.com/godetremy/42-trolls/refs/heads/main/nolock/install.sh | bash๐งน How to remove ?
Use this command :
curl https://raw.githubusercontent.com/godetremy/42-trolls/refs/heads/main/nolock/uninstall.sh | bashThe default configuration of mouse is so boring... Why not randomize all the button of your mouse every 2s ?
while true; do xmodmap -e "pointer = $(shuf -e 1 2 3 | paste -sd ' ')" ; sleep 2; done & disown๐งน How to remove ?
The simplest method is to disconnect, but we wish you good luck finding the right button... ๐
Then you can use this command to reset the original mapping.
xmodmap -e "pointer = 1 2 3"Your parents didnโt teach you manners? Neither did the terminal! From now on, you must add the magic word stp at the end of every command to execute it.
curl https://raw.githubusercontent.com/godetremy/42-trolls/refs/heads/main/bepolite/install.sh | bash๐งน How to remove ?
Find these linse in your ~/.zshrc then delete the content between.
# === BePolite start ===
...
# === BePolite end ===The final countdownโฆ Ultra annoying pranks, like session scripts or resets.
Delete all files in the session โ this will reset the session completely.
Caution
This action cannot be undone. This is more than just a troll. All files in the session will be deleted. Make sure you have your friendโs permission before using this.
touch ~/.reset