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_lock
Always 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 ?
Use this command :
sed -i '' "s/cat \/dev\/urandom//g" ~/.zshrc
Or remove the line at end of the .zshrc
file.
Replace the cat
command with rev
, which prints the file in reverse.
echo 'alias cat="rev"' >> ~/.zshrc
๐งน How to remove ?
Use this command :
sed -i '' "s/alias cat=\"rev\"//g" ~/.zshrc
Or remove the line at end of the .zshrc
file.
Replace the man command with a message saying No manual entry for {command}
.
echo 'man() { echo "No manual entry for $1"; }' >> ~/.zshrc
๐งน How to remove ?
Use this command :
sed -i '' "s/man() { echo \"No manual entry for $1\"; }//g" ~/.zshrc
Or remove the line at end of the .zshrc
file.
Replace 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 ?
Use this command :
gsettings set org.gnome.desktop.wm.preferences titlebar-uses-system-font true
This 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 24
Update 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 bit more annoying, but still easy to remove.
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 ?
Use this command :
curl https://raw.githubusercontent.com/godetremy/42-trolls/refs/heads/main/adsh/uninstall.sh | bash
Or remove the line at end of the .zshrc
file, then delete the folder .adsh
in your home.
๐ช 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.
Time to take control of hardware capabilitiesโฆ 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 0
Replace 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 | bash
The default configuration of mouse is so boring... Why not randomize all the button of your mouse every 2s ?
while true; do
xmodmap -e "$(echo "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"
The final (countdown?) โ ultra annoying pranks, like session scripts or resets. Only use these if your friend is really your enemy. ๐
Because 5GB is too small, experience the 420T session.
echo '/usr/bin/zenity --error --title="bocal" --text="Your home is full! (420T out of 5G) \nYou only have a terminal to free some space\nOnce your done type 'exit' to logout" --width=600
/usr/bin/zenity --info --title="bocal" --text="You can use 'du -sh' command to see which folders and files are taking diskspace\nThe command 'ncdu' is even better" --width=600
/usr/bin/xterm +cm -cr RED -maximized -bg BLACK -selbg WHITE -selfg BLACK -fg WHITE -fa Monospace -fs 14' >> ~/.profile
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